Deleted Added
full compact
if_disc.c (257176) if_disc.c (262763)
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 257176 2013-10-26 17:58:36Z glebius $
30 * $FreeBSD: head/sys/net/if_disc.c 262763 2014-03-05 01:17:47Z glebius $
31 */
32
33/*
34 * Discard interface driver for protocol testing and timing.
35 * (Based on the loopback.)
36 */
37
38#include <sys/param.h>

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

181 return (0);
182}
183
184/* ARGSUSED */
185static void
186discrtrequest(int cmd, struct rtentry *rt, struct rt_addrinfo *info)
187{
188 RT_LOCK_ASSERT(rt);
31 */
32
33/*
34 * Discard interface driver for protocol testing and timing.
35 * (Based on the loopback.)
36 */
37
38#include <sys/param.h>

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

181 return (0);
182}
183
184/* ARGSUSED */
185static void
186discrtrequest(int cmd, struct rtentry *rt, struct rt_addrinfo *info)
187{
188 RT_LOCK_ASSERT(rt);
189 rt->rt_rmx.rmx_mtu = DSMTU;
189 rt->rt_mtu = DSMTU;
190}
191
192/*
193 * Process an ioctl request.
194 */
195static int
196discioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
197{

--- 48 unchanged lines hidden ---
190}
191
192/*
193 * Process an ioctl request.
194 */
195static int
196discioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
197{

--- 48 unchanged lines hidden ---