if_loop.c (105194) | if_loop.c (106939) |
---|---|
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.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 --- 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.2 (Berkeley) 1/9/95 |
34 * $FreeBSD: head/sys/net/if_loop.c 105194 2002-10-16 01:54:46Z sam $ | 34 * $FreeBSD: head/sys/net/if_loop.c 106939 2002-11-15 00:00:15Z sam $ |
35 */ 36 37/* 38 * Loopback interface driver for protocol testing and timing. 39 */ 40 41#include "opt_atalk.h" 42#include "opt_inet.h" --- 254 unchanged lines hidden (view full) --- 297 * will only read from the mbuf (i.e., it won't 298 * try to free it or keep a pointer a to it). 299 */ 300 m0.m_next = m; 301 m0.m_len = 4; 302 m0.m_data = (char *)⁡ 303 n = &m0; 304 } | 35 */ 36 37/* 38 * Loopback interface driver for protocol testing and timing. 39 */ 40 41#include "opt_atalk.h" 42#include "opt_inet.h" --- 254 unchanged lines hidden (view full) --- 297 * will only read from the mbuf (i.e., it won't 298 * try to free it or keep a pointer a to it). 299 */ 300 m0.m_next = m; 301 m0.m_len = 4; 302 m0.m_data = (char *)⁡ 303 n = &m0; 304 } |
305 bpf_mtap(ifp, n); | 305 BPF_MTAP(ifp, n); |
306 } 307 308 /* Strip away media header */ 309 if (hlen > 0) { 310 m_adj(m, hlen); 311#if defined(__alpha__) || defined(__ia64__) || defined(__sparc64__) 312 /* The alpha doesn't like unaligned data. 313 * We move data down in the first mbuf */ --- 135 unchanged lines hidden --- | 306 } 307 308 /* Strip away media header */ 309 if (hlen > 0) { 310 m_adj(m, hlen); 311#if defined(__alpha__) || defined(__ia64__) || defined(__sparc64__) 312 /* The alpha doesn't like unaligned data. 313 * We move data down in the first mbuf */ --- 135 unchanged lines hidden --- |