if_loop.c (97289) | if_loop.c (105194) |
---|---|
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 97289 2002-05-25 20:17:04Z brooks $ | 34 * $FreeBSD: head/sys/net/if_loop.c 105194 2002-10-16 01:54:46Z 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" --- 176 unchanged lines hidden (view full) --- 219 if (! (n->m_flags & M_EXT)) { 220 m_freem(n); 221 goto contiguousfail; 222 } 223 224 m_copydata(m, 0, m->m_pkthdr.len, mtod(n, caddr_t)); 225 n->m_pkthdr = m->m_pkthdr; 226 n->m_len = m->m_pkthdr.len; | 35 */ 36 37/* 38 * Loopback interface driver for protocol testing and timing. 39 */ 40 41#include "opt_atalk.h" 42#include "opt_inet.h" --- 176 unchanged lines hidden (view full) --- 219 if (! (n->m_flags & M_EXT)) { 220 m_freem(n); 221 goto contiguousfail; 222 } 223 224 m_copydata(m, 0, m->m_pkthdr.len, mtod(n, caddr_t)); 225 n->m_pkthdr = m->m_pkthdr; 226 n->m_len = m->m_pkthdr.len; |
227 n->m_pkthdr.aux = m->m_pkthdr.aux; 228 m->m_pkthdr.aux = (struct mbuf *)NULL; | 227 SLIST_INIT(&m->m_pkthdr.tags); |
229 m_freem(m); 230 m = n; 231 } 232 if (0) { 233contiguousfail: 234 printf("looutput: mbuf allocation failed\n"); 235 } 236 --- 213 unchanged lines hidden --- | 228 m_freem(m); 229 m = n; 230 } 231 if (0) { 232contiguousfail: 233 printf("looutput: mbuf allocation failed\n"); 234 } 235 --- 213 unchanged lines hidden --- |