summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-12-21 19:18:47 +0100
committercinap_lenrek <cinap_lenrek@gmx.de>2012-12-21 19:18:47 +0100
commit44ac7fe940175fdb7fe80fdf9303c98653ee6ff4 (patch)
tree8973a1467599fd18d3a3296d5836ccc8e3a4d5a1
parent2c1c1e40055c4cd4c414d90e9d0c8286e339810f (diff)
downloadplan9front-44ac7fe940175fdb7fe80fdf9303c98653ee6ff4.tar.xz
6in4: use localmask instead of hardcoded /128 when adding address to interface
-rw-r--r--sys/src/cmd/ip/6in4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/ip/6in4.c b/sys/src/cmd/ip/6in4.c
index f27c25a04..df3c51270 100644
--- a/sys/src/cmd/ip/6in4.c
+++ b/sys/src/cmd/ip/6in4.c
@@ -191,7 +191,7 @@ setup(int *v6net, int *tunp)
if (*v6net < 0 || fprint(cfd, "bind pkt") < 0)
sysfatal("can't bind packet interface: %r");
/* 1280 is MTU, apparently from rfc2460 */
- if (fprint(cfd, "add %I /128 %I 1280", local6, remote6) <= 0)
+ if (fprint(cfd, "add %I %M %I 1280", local6, localmask, remote6) <= 0)
sysfatal("can't set local ipv6 address: %r");
close(cfd);
if (debug)