Deleted Added
full compact
if_loop.c (195699) if_loop.c (195727)
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 195699 2009-07-14 22:48:30Z rwatson $
30 * $FreeBSD: head/sys/net/if_loop.c 195727 2009-07-16 21:13:04Z rwatson $
31 */
32
33/*
34 * Loopback interface driver for protocol testing and timing.
35 */
36
37#include "opt_atalk.h"
38#include "opt_inet.h"

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

108static int vnet_loif_idetach(const void *);
109#endif
110
111VNET_DEFINE(struct ifnet *, loif); /* Used externally */
112
113#ifdef VIMAGE
114static VNET_DEFINE(struct ifc_simple_data *, lo_cloner_data);
115static VNET_DEFINE(struct if_clone *, lo_cloner);
31 */
32
33/*
34 * Loopback interface driver for protocol testing and timing.
35 */
36
37#include "opt_atalk.h"
38#include "opt_inet.h"

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

108static int vnet_loif_idetach(const void *);
109#endif
110
111VNET_DEFINE(struct ifnet *, loif); /* Used externally */
112
113#ifdef VIMAGE
114static VNET_DEFINE(struct ifc_simple_data *, lo_cloner_data);
115static VNET_DEFINE(struct if_clone *, lo_cloner);
116#define V_lo_cloner_data VNET_GET(lo_cloner_data)
117#define V_lo_cloner VNET_GET(lo_cloner)
116#define V_lo_cloner_data VNET(lo_cloner_data)
117#define V_lo_cloner VNET(lo_cloner)
118
119MALLOC_DEFINE(M_LO_CLONER, "lo_cloner", "lo_cloner");
120#endif
121
122#ifdef VIMAGE
123static const vnet_modinfo_t vnet_loif_modinfo = {
124 .vmi_id = VNET_MOD_LOIF,
125 .vmi_dependson = VNET_MOD_IF_CLONE,

--- 351 unchanged lines hidden ---
118
119MALLOC_DEFINE(M_LO_CLONER, "lo_cloner", "lo_cloner");
120#endif
121
122#ifdef VIMAGE
123static const vnet_modinfo_t vnet_loif_modinfo = {
124 .vmi_id = VNET_MOD_LOIF,
125 .vmi_dependson = VNET_MOD_IF_CLONE,

--- 351 unchanged lines hidden ---