Deleted Added
full compact
if_disc.c (131670) if_disc.c (132199)
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 * From: @(#)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

--- 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 * From: @(#)if_loop.c 8.1 (Berkeley) 6/10/93
30 * $FreeBSD: head/sys/net/if_disc.c 131670 2004-07-06 03:16:55Z bms $
30 * $FreeBSD: head/sys/net/if_disc.c 132199 2004-07-15 08:26:07Z phk $
31 */
32
33/*
34 * Discard interface driver for protocol testing and timing.
35 * (Based on the loopback.)
36 */
37
38#include <sys/param.h>

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

150 LIST_REMOVE(sc, sc_list);
151 mtx_unlock(&disc_mtx);
152 disc_destroy(sc);
153 mtx_lock(&disc_mtx);
154 }
155 mtx_unlock(&disc_mtx);
156 mtx_destroy(&disc_mtx);
157 break;
31 */
32
33/*
34 * Discard interface driver for protocol testing and timing.
35 * (Based on the loopback.)
36 */
37
38#include <sys/param.h>

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

150 LIST_REMOVE(sc, sc_list);
151 mtx_unlock(&disc_mtx);
152 disc_destroy(sc);
153 mtx_lock(&disc_mtx);
154 }
155 mtx_unlock(&disc_mtx);
156 mtx_destroy(&disc_mtx);
157 break;
158 default:
159 return (EOPNOTSUPP);
158 }
159 return (0);
160}
161
162static moduledata_t disc_mod = {
163 "if_disc",
164 disc_modevent,
165 NULL

--- 96 unchanged lines hidden ---
160 }
161 return (0);
162}
163
164static moduledata_t disc_mod = {
165 "if_disc",
166 disc_modevent,
167 NULL

--- 96 unchanged lines hidden ---