ref: 44ac7fe940175fdb7fe80fdf9303c98653ee6ff4
parent: 2c1c1e40055c4cd4c414d90e9d0c8286e339810f
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Fri Dec 21 14:18:47 EST 2012
6in4: use localmask instead of hardcoded /128 when adding address to interface
--- a/sys/src/cmd/ip/6in4.c
+++ b/sys/src/cmd/ip/6in4.c
@@ -191,7 +191,7 @@
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)
--
⑨