diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-01-08 00:56:46 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-01-08 00:56:46 +0000 |
commit | 69aebb875685a11bea04972f102640e29a273ea6 (patch) | |
tree | b6164bf3d46cc311357b5796a47969344c1fade5 /sys/net/if_loop.c | |
parent | f2b23511b00acad5ac786927adf6ae9f92c43b54 (diff) |
inet6 support; NRL/cmetz
Diffstat (limited to 'sys/net/if_loop.c')
-rw-r--r-- | sys/net/if_loop.c | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c index 5a5de07700a..57dbd3fe733 100644 --- a/sys/net/if_loop.c +++ b/sys/net/if_loop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_loop.c,v 1.10 1998/06/26 09:14:37 deraadt Exp $ */ +/* $OpenBSD: if_loop.c,v 1.11 1999/01/08 00:56:45 deraadt Exp $ */ /* $NetBSD: if_loop.c,v 1.15 1996/05/07 02:40:33 thorpej Exp $ */ /* @@ -37,6 +37,18 @@ */ /* +%%% portions-copyright-nrl-95 +Portions of this software are Copyright 1995-1998 by Randall Atkinson, +Ronald Lee, Daniel McDonald, Bao Phan, and Chris Winters. All Rights +Reserved. All rights under this copyright have been assigned to the US +Naval Research Laboratory (NRL). The NRL Copyright Notice and License +Agreement Version 1.1 (January 17, 1995) applies to these portions of the +software. +You should have received a copy of the license with this software. If you +didn't get a copy, you may request one from <license@ipv6.nrl.navy.mil>. +*/ + +/* * Loopback interface driver for protocol testing and timing. */ @@ -91,6 +103,11 @@ #include <net/bpf.h> #endif +#ifdef INET6 +#include <netinet6/in6.h> +#include <netinet6/in6_var.h> +#endif /* INET6 */ + #define LOMTU (32768) struct ifnet loif[NLOOP]; @@ -174,6 +191,12 @@ looutput(ifp, m, dst, rt) isr = NETISR_IP; break; #endif +#ifdef INET6 + case AF_INET6: + ifq = &ipv6intrq; + isr = NETISR_IPV6; + break; +#endif /* INET6 */ #ifdef NS case AF_NS: ifq = &nsintrq; @@ -271,6 +294,11 @@ loioctl(ifp, cmd, data) break; #endif +#ifdef INET6 + case AF_INET6: + break; +#endif /* INET6 */ + default: error = EAFNOSUPPORT; break; |