diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2014-06-23 18:51:16 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2014-06-23 18:51:16 +0000 |
commit | 66fb641b30b8e1fc92e1188ed4fb4f86b4adbb49 (patch) | |
tree | 41a280c022b8ab281dac159277ece70b74b12794 /sys/net | |
parent | 7ff67a9f7ffdfa9931fa094b97fefa85c3cfe08f (diff) |
turn of IPv6 for new interfaces by default. this really just means there
is no link-local address assigned by default, which - by default, since
INET6 is in the GENERIC kernels - makes the machine and services on it
reachable. No such thing in IPv4 land.
since assigning an inet6 address manually or running rtsol(d) etc resets the
NOINET6 flag and causes the link-local to be assigned, this really is a noop
for all inet6 users with the exception of those ONLY using the default
link-local address. These needs to run "ifconfig <if> inet6 eui64" or put
the equivalent in hostname.if.
discussed at length with many, ok at least by krw todd benno sthen
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 8b06554355e..f73f8d2698c 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.290 2014/06/07 11:04:14 henning Exp $ */ +/* $OpenBSD: if.c,v 1.291 2014/06/23 18:51:15 henning Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -423,6 +423,9 @@ if_attach(struct ifnet *ifp) #else TAILQ_INSERT_TAIL(&ifnet, ifp, if_list); #endif +#ifdef INET6 + ifp->if_xflags |= IFXF_NOINET6; +#endif m_clinitifp(ifp); |