From 69aebb875685a11bea04972f102640e29a273ea6 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 8 Jan 1999 00:56:46 +0000 Subject: inet6 support; NRL/cmetz --- sys/net/if_loop.c | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'sys/net/if_loop.c') 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 $ */ /* @@ -36,6 +36,18 @@ * @(#)if_loop.c 8.1 (Berkeley) 6/10/93 */ +/* +%%% 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 . +*/ + /* * Loopback interface driver for protocol testing and timing. */ @@ -91,6 +103,11 @@ #include #endif +#ifdef INET6 +#include +#include +#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; -- cgit v1.2.3