uipc_mbuf.c (278920) | uipc_mbuf.c (282594) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1988, 1991, 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 --- 16 unchanged lines hidden (view full) --- 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 * @(#)uipc_mbuf.c 8.2 (Berkeley) 1/4/94 30 */ 31 32#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1982, 1986, 1988, 1991, 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 --- 16 unchanged lines hidden (view full) --- 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 * @(#)uipc_mbuf.c 8.2 (Berkeley) 1/4/94 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/kern/uipc_mbuf.c 278920 2015-02-17 20:52:51Z glebius $"); | 33__FBSDID("$FreeBSD: head/sys/kern/uipc_mbuf.c 282594 2015-05-07 18:35:01Z ae $"); |
34 35#include "opt_param.h" 36#include "opt_mbuf_stress_test.h" 37#include "opt_mbuf_profiling.h" 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/kernel.h> --- 766 unchanged lines hidden (view full) --- 808 809 if (top == NULL) { /* First one, must be PKTHDR */ 810 if (!m_dup_pkthdr(n, m, how)) { 811 m_free(n); 812 goto nospace; 813 } 814 if ((n->m_flags & M_EXT) == 0) 815 nsize = MHLEN; | 34 35#include "opt_param.h" 36#include "opt_mbuf_stress_test.h" 37#include "opt_mbuf_profiling.h" 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/kernel.h> --- 766 unchanged lines hidden (view full) --- 808 809 if (top == NULL) { /* First one, must be PKTHDR */ 810 if (!m_dup_pkthdr(n, m, how)) { 811 m_free(n); 812 goto nospace; 813 } 814 if ((n->m_flags & M_EXT) == 0) 815 nsize = MHLEN; |
816 n->m_flags &= ~M_RDONLY; |
|
816 } 817 n->m_len = 0; 818 819 /* Link it into the new chain */ 820 *p = n; 821 p = &n->m_next; 822 823 /* Copy data from original mbuf(s) into new mbuf */ --- 1227 unchanged lines hidden --- | 817 } 818 n->m_len = 0; 819 820 /* Link it into the new chain */ 821 *p = n; 822 p = &n->m_next; 823 824 /* Copy data from original mbuf(s) into new mbuf */ --- 1227 unchanged lines hidden --- |