Deleted Added
full compact
if_loop.c (128209) if_loop.c (130933)
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

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)if_loop.c 8.2 (Berkeley) 1/9/95
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

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)if_loop.c 8.2 (Berkeley) 1/9/95
30 * $FreeBSD: head/sys/net/if_loop.c 128209 2004-04-14 00:57:49Z brooks $
30 * $FreeBSD: head/sys/net/if_loop.c 130933 2004-06-22 20:13:25Z brooks $
31 */
32
33/*
34 * Loopback interface driver for protocol testing and timing.
35 */
36
37#include "opt_atalk.h"
38#include "opt_inet.h"

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

49#include <sys/module.h>
50#include <machine/bus.h>
51#include <sys/rman.h>
52#include <sys/socket.h>
53#include <sys/sockio.h>
54#include <sys/sysctl.h>
55
56#include <net/if.h>
31 */
32
33/*
34 * Loopback interface driver for protocol testing and timing.
35 */
36
37#include "opt_atalk.h"
38#include "opt_inet.h"

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

49#include <sys/module.h>
50#include <machine/bus.h>
51#include <sys/rman.h>
52#include <sys/socket.h>
53#include <sys/sockio.h>
54#include <sys/sysctl.h>
55
56#include <net/if.h>
57#include <net/if_clone.h>
57#include <net/if_types.h>
58#include <net/netisr.h>
59#include <net/route.h>
60#include <net/bpf.h>
61#include <net/bpfdesc.h>
62
63#ifdef INET
64#include <netinet/in.h>

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

107
108struct ifnet *loif = NULL; /* Used externally */
109
110static MALLOC_DEFINE(M_LO, LONAME, "Loopback Interface");
111
112static struct mtx lo_mtx;
113static LIST_HEAD(lo_list, lo_softc) lo_list;
114
58#include <net/if_types.h>
59#include <net/netisr.h>
60#include <net/route.h>
61#include <net/bpf.h>
62#include <net/bpfdesc.h>
63
64#ifdef INET
65#include <netinet/in.h>

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

108
109struct ifnet *loif = NULL; /* Used externally */
110
111static MALLOC_DEFINE(M_LO, LONAME, "Loopback Interface");
112
113static struct mtx lo_mtx;
114static LIST_HEAD(lo_list, lo_softc) lo_list;
115
115struct if_clone lo_cloner = IF_CLONE_INITIALIZER(LONAME,
116 lo_clone_create, lo_clone_destroy, 1, IF_MAXUNIT);
116IFC_SIMPLE_DECLARE(lo, 1);
117
118static void
119lo_clone_destroy(ifp)
120 struct ifnet *ifp;
121{
122 struct lo_softc *sc;
123
124 sc = ifp->if_softc;

--- 265 unchanged lines hidden ---
117
118static void
119lo_clone_destroy(ifp)
120 struct ifnet *ifp;
121{
122 struct lo_softc *sc;
123
124 sc = ifp->if_softc;

--- 265 unchanged lines hidden ---