Bug#738942: properly implement kfreebsd inet6 auto
Package: ifupdown
Version: 0.7.47.2
Tags: ipv6 patch
User: debian-bsd@lists.debian.org
Usertags: kfreebsd
Hi,
Please consider this patch to the implementation of the 'inet6 auto'
stanza for kfreebsd. In the current one (which I wrote) I erroneously
tried to enable accept_rtadv via the sysctl, which is global, and
doesn't affect the interfaces that are already attached.
The correct way to do this (and have tested) is as follows:
--- a/ifupdown-0.7.47.2/inet6.defn 2013-10-19 19:24:55.000000000 +0100
+++ b/ifupdown-0.7.47.2/inet6.defn 2014-02-14 02:17:11.316206389 +0000
@@ -239,8 +239,7 @@
hwaddress cleanup_hwaddress
up
- sysctl -q -e -w net.inet6.ip6.accept_rtadv=1
- ifconfig %iface% up
+ ifconfig %iface% inet6 accept_rtadv up
dhclient -6 -S -pf /run/dhclient6.%iface%.pid -lf /var/lib/dhcp/dhclient6.%iface%.leases %iface% \
if (var_true("dhcp", ifd) && execable("/sbin/dhclient"))
Thanks!
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: kfreebsd-amd64 (x86_64)
Kernel: kFreeBSD 9.0-2-amd64-xenhvm
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Reply to: