Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/net/net More adaptation to new ifconfig output format ...
details: https://anonhg.NetBSD.org/src/rev/ec8aca7808ea
branches: trunk
changeset: 348040:ec8aca7808ea
user: kre <kre%NetBSD.org@localhost>
date: Sun Oct 02 04:29:25 2016 +0000
description:
More adaptation to new ifconfig output format - prefix length is now
appended to the address, rather than a second parameter, so needs to be
deleted if just the bare address is what we want (which it is here).
diffstat:
tests/net/net/t_ipv6address.sh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 46d3bc1c51b5 -r ec8aca7808ea tests/net/net/t_ipv6address.sh
--- a/tests/net/net/t_ipv6address.sh Sat Oct 01 22:15:04 2016 +0000
+++ b/tests/net/net/t_ipv6address.sh Sun Oct 02 04:29:25 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_ipv6address.sh,v 1.7 2016/08/10 21:33:52 kre Exp $
+# $NetBSD: t_ipv6address.sh,v 1.8 2016/10/02 04:29:25 kre Exp $
#
# Copyright (c) 2015 Internet Initiative Japan Inc.
# All rights reserved.
@@ -202,7 +202,7 @@
{
export RUMP_SERVER=${1}
rump.ifconfig ${2} inet6 | grep "fe80" \
- | awk '{print $2}' | sed -e "s/%$2//g"
+ | awk '{print $2}' | sed -e "s/%$2//g" -e 's;/[0-9]*$;;'
unset RUMP_SERVER
return 0
Home |
Main Index |
Thread Index |
Old Index