Source-Changes-HG archive

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

[src/trunk]: src/tests/net/if_tun Compensate for the new world order of ifcon...



details:   https://anonhg.NetBSD.org/src/rev/056443ece22b
branches:  trunk
changeset: 348036:056443ece22b
user:      kre <kre%NetBSD.org@localhost>
date:      Sat Oct 01 20:18:06 2016 +0000

description:
Compensate for the new world order of ifconfig output format,
and the new default netmask for point to point links.

diffstat:

 tests/net/if_tun/t_tun.sh |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (29 lines):

diff -r 044ffb88689f -r 056443ece22b tests/net/if_tun/t_tun.sh
--- a/tests/net/if_tun/t_tun.sh Sat Oct 01 17:17:20 2016 +0000
+++ b/tests/net/if_tun/t_tun.sh Sat Oct 01 20:18:06 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_tun.sh,v 1.2 2016/09/05 04:35:46 ozaki-r Exp $
+#      $NetBSD: t_tun.sh,v 1.3 2016/10/01 20:18:06 kre Exp $
 #
 # Copyright (c) 2016 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -110,8 +110,7 @@
        atf_check -s exit:0 rump.ifconfig tun0 create
        atf_check -s exit:0 rump.ifconfig tun0 ${IP_LOCAL} ${IP_REMOTE} up
        atf_check -s exit:0 \
-           -o match:"inet ${IP_LOCAL} -> ${IP_REMOTE} netmask 0xff000000" \
-           rump.ifconfig tun0
+           -o match:"inet ${IP_LOCAL}/32 -> ${IP_REMOTE}" rump.ifconfig tun0
        $DEBUG && rump.netstat -nr -f inet
        check_route_entry ${IP_REMOTE} ${IP_LOCAL} UH tun0
 
@@ -119,8 +118,7 @@
        atf_check -s exit:0 rump.ifconfig tun0 create
        atf_check -s exit:0 rump.ifconfig tun0 ${IP_REMOTE} ${IP_LOCAL} up
        atf_check -s exit:0 \
-           -o match:"inet ${IP_REMOTE} -> ${IP_LOCAL} netmask 0xff000000" \
-           rump.ifconfig tun0
+           -o match:"inet ${IP_REMOTE}/32 -> ${IP_LOCAL}" rump.ifconfig tun0
        $DEBUG && rump.netstat -nr -f inet
        check_route_entry ${IP_LOCAL} ${IP_REMOTE} UH tun0
 }



Home | Main Index | Thread Index | Old Index