summaryrefslogtreecommitdiff
path: root/sys/netinet6/in6.c
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>1999-12-09 13:59:58 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>1999-12-09 13:59:58 +0000
commitd62b29b12c164a072217ec7865e01185435964d1 (patch)
treea71b398923a8b2d535f6389074ddb6313d196aee /sys/netinet6/in6.c
parent5292cfc403d7b1b27391a342e66456888f900c81 (diff)
do not perform IPv6 initialization for loopback interface.
MUST make lo0 up before any IPv6 operations. it will be considered a pilot error if you don't. (I prefer to have lo0 initialized automatically)
Diffstat (limited to 'sys/netinet6/in6.c')
-rw-r--r--sys/netinet6/in6.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c
index b046e1d8671..02f3da2447f 100644
--- a/sys/netinet6/in6.c
+++ b/sys/netinet6/in6.c
@@ -1905,6 +1905,9 @@ in6_if_up(ifp)
}
switch (ifp->if_type) {
+ case IFT_LOOP:
+ in6_ifattach(ifp, IN6_IFT_LOOP, NULL, 1);
+ break;
case IFT_SLIP:
case IFT_PPP:
case IFT_DUMMY: