From 44ac7fe940175fdb7fe80fdf9303c98653ee6ff4 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Fri, 21 Dec 2012 19:18:47 +0100 Subject: [PATCH] 6in4: use localmask instead of hardcoded /128 when adding address to interface --- sys/src/cmd/ip/6in4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)