Deleted Added
full compact
if_loop.c (10957) if_loop.c (11819)
1/*
2 * Copyright (c) 1982, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)if_loop.c 8.1 (Berkeley) 6/10/93
1/*
2 * Copyright (c) 1982, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)if_loop.c 8.1 (Berkeley) 6/10/93
34 * $Id: if_loop.c,v 1.12 1995/09/09 18:10:22 davidg Exp $
34 * $Id: if_loop.c,v 1.13 1995/09/22 17:57:48 wollman Exp $
35 */
36
37/*
38 * Loopback interface driver for protocol testing and timing.
39 */
40#include "loop.h"
41#if NLOOP > 0
42

--- 15 unchanged lines hidden (view full) ---

58
59#ifdef INET
60#include <netinet/in.h>
61#include <netinet/in_systm.h>
62#include <netinet/in_var.h>
63#include <netinet/ip.h>
64#endif
65
35 */
36
37/*
38 * Loopback interface driver for protocol testing and timing.
39 */
40#include "loop.h"
41#if NLOOP > 0
42

--- 15 unchanged lines hidden (view full) ---

58
59#ifdef INET
60#include <netinet/in.h>
61#include <netinet/in_systm.h>
62#include <netinet/in_var.h>
63#include <netinet/ip.h>
64#endif
65
66#ifdef IPX
67#include <netipx/ipx.h>
68#include <netipx/ipx_if.h>
69#endif
70
66#ifdef NS
67#include <netns/ns.h>
68#include <netns/ns_if.h>
69#endif
70
71#ifdef ISO
72#include <netiso/iso.h>
73#include <netiso/iso_var.h>

--- 90 unchanged lines hidden (view full) ---

164 switch (dst->sa_family) {
165
166#ifdef INET
167 case AF_INET:
168 ifq = &ipintrq;
169 isr = NETISR_IP;
170 break;
171#endif
71#ifdef NS
72#include <netns/ns.h>
73#include <netns/ns_if.h>
74#endif
75
76#ifdef ISO
77#include <netiso/iso.h>
78#include <netiso/iso_var.h>

--- 90 unchanged lines hidden (view full) ---

169 switch (dst->sa_family) {
170
171#ifdef INET
172 case AF_INET:
173 ifq = &ipintrq;
174 isr = NETISR_IP;
175 break;
176#endif
177#ifdef IPX
178 case AF_IPX:
179 ifq = &ipxintrq;
180 isr = NETISR_IPX;
181 break;
182#endif
172#ifdef NS
173 case AF_NS:
174 ifq = &nsintrq;
175 isr = NETISR_NS;
176 break;
177#endif
178#ifdef ISO
179 case AF_ISO:

--- 92 unchanged lines hidden ---
183#ifdef NS
184 case AF_NS:
185 ifq = &nsintrq;
186 isr = NETISR_NS;
187 break;
188#endif
189#ifdef ISO
190 case AF_ISO:

--- 92 unchanged lines hidden ---