Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/net/icmp More adaptation to changed ifconfig output fo...



details:   https://anonhg.NetBSD.org/src/rev/77e23b15f98e
branches:  trunk
changeset: 348041:77e23b15f98e
user:      kre <kre%NetBSD.org@localhost>
date:      Sun Oct 02 04:46:07 2016 +0000

description:
More adaptation to changed ifconfig output format.

diffstat:

 tests/net/icmp/t_icmp6_redirect.sh |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r ec8aca7808ea -r 77e23b15f98e tests/net/icmp/t_icmp6_redirect.sh
--- a/tests/net/icmp/t_icmp6_redirect.sh        Sun Oct 02 04:29:25 2016 +0000
+++ b/tests/net/icmp/t_icmp6_redirect.sh        Sun Oct 02 04:46:07 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_icmp6_redirect.sh,v 1.2 2016/08/10 22:17:44 kre Exp $
+#      $NetBSD: t_icmp6_redirect.sh,v 1.3 2016/10/02 04:46:07 kre Exp $
 #
 # Copyright (c) 2015 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -50,7 +50,8 @@
 {
 
        export RUMP_SERVER=${1}
-       rump.ifconfig ${2} inet6 | awk "/fe80/ {sub(/%$2/, \"\"); print \$2;}"
+       rump.ifconfig ${2} inet6 |
+           awk "/fe80/ {sub(/%$2/, \"\"); sub(/\\/[0-9]*/, \"\"); print \$2;}"
        unset RUMP_SERVER
 
        return 0



Home | Main Index | Thread Index | Old Index