uipc_mbuf.c (123564) | uipc_mbuf.c (123740) |
---|---|
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 --- 20 unchanged lines hidden (view full) --- 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 * @(#)uipc_mbuf.c 8.2 (Berkeley) 1/4/94 34 */ 35 36#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 --- 20 unchanged lines hidden (view full) --- 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 * @(#)uipc_mbuf.c 8.2 (Berkeley) 1/4/94 34 */ 35 36#include <sys/cdefs.h> |
37__FBSDID("$FreeBSD: head/sys/kern/uipc_mbuf.c 123564 2003-12-16 14:13:47Z bms $"); | 37__FBSDID("$FreeBSD: head/sys/kern/uipc_mbuf.c 123740 2003-12-23 02:36:43Z peter $"); |
38 39#include "opt_mac.h" 40#include "opt_param.h" 41#include "opt_mbuf_stress_test.h" 42 43#include <sys/param.h> 44#include <sys/systm.h> 45#include <sys/kernel.h> --- 846 unchanged lines hidden (view full) --- 892 if (m0->m_pkthdr.len > MHLEN) 893 m_final = m_getcl(how, MT_DATA, M_PKTHDR); 894 else 895 m_final = m_gethdr(how, MT_DATA); 896 897 if (m_final == NULL) 898 goto nospace; 899 | 38 39#include "opt_mac.h" 40#include "opt_param.h" 41#include "opt_mbuf_stress_test.h" 42 43#include <sys/param.h> 44#include <sys/systm.h> 45#include <sys/kernel.h> --- 846 unchanged lines hidden (view full) --- 892 if (m0->m_pkthdr.len > MHLEN) 893 m_final = m_getcl(how, MT_DATA, M_PKTHDR); 894 else 895 m_final = m_gethdr(how, MT_DATA); 896 897 if (m_final == NULL) 898 goto nospace; 899 |
900 if (m_dup_pkthdr(m_final, m0, how) == NULL) | 900 if (m_dup_pkthdr(m_final, m0, how) == 0) |
901 goto nospace; 902 903 m_new = m_final; 904 905 while (progress < m0->m_pkthdr.len) { 906 length = m0->m_pkthdr.len - progress; 907 if (length > MCLBYTES) 908 length = MCLBYTES; --- 122 unchanged lines hidden --- | 901 goto nospace; 902 903 m_new = m_final; 904 905 while (progress < m0->m_pkthdr.len) { 906 length = m0->m_pkthdr.len - progress; 907 if (length > MCLBYTES) 908 length = MCLBYTES; --- 122 unchanged lines hidden --- |