From 6b29f984ec0cf451c9b093e06a83ecf6c1260ebb Mon Sep 17 00:00:00 2001 From: florian <> Date: Sat, 6 Jun 2015 13:13:07 +0000 Subject: [PATCH] Allow rtsol keyword in hostname.if(5) with net.inet6.ip6.forwarding=1. "inet6 autoconf" was working before and rtsol should behave the same. OK phessler --- src/etc/netstart | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/etc/netstart b/src/etc/netstart index 9ef97409..ca60a55f 100644 --- a/src/etc/netstart +++ b/src/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.144 2014/12/03 19:55:49 florian Exp $ +# $OpenBSD: netstart,v 1.145 2015/06/06 13:13:07 florian Exp $ # Strip comments (and leading/trailing whitespace if IFS is set) # from a file and spew to stdout @@ -242,13 +242,8 @@ ifmstart "" "trunk svlan vlan carp gif gre pfsync pppoe tun bridge" ifmstart "trunk svlan vlan carp" if [ "$ip6kernel" = "YES" -a "x$rtsolif" != "x" ]; then - fw=`sysctl -n net.inet6.ip6.forwarding` - if [ "x$fw" = "x0" ]; then - echo "IPv6 autoconf:$rtsolif" - ifconfig $rtsolif inet6 autoconf - else - echo "IPv6 autoconf not supported while IPv6 forwarding is enabled" - fi + echo "IPv6 autoconf:$rtsolif" + ifconfig $rtsolif inet6 autoconf fi # Look for default routes in /etc/mygate.