uipc_mbuf.c (123740) | uipc_mbuf.c (123823) |
---|---|
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 123740 2003-12-23 02:36:43Z peter $"); | 37__FBSDID("$FreeBSD: head/sys/kern/uipc_mbuf.c 123823 2003-12-25 01:17:27Z silby $"); |
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> --- 930 unchanged lines hidden (view full) --- 976 977 m_fixhdr(m0); /* Needed sanity check */ 978 979 m_final = m_getcl(how, MT_DATA, M_PKTHDR); 980 981 if (m_final == NULL) 982 goto nospace; 983 | 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> --- 930 unchanged lines hidden (view full) --- 976 977 m_fixhdr(m0); /* Needed sanity check */ 978 979 m_final = m_getcl(how, MT_DATA, M_PKTHDR); 980 981 if (m_final == NULL) 982 goto nospace; 983 |
984 if (m_dup_pkthdr(m_final, m0, how) == NULL) | 984 if (m_dup_pkthdr(m_final, m0, how) == 0) |
985 goto nospace; 986 987 m_new = m_final; 988 989 if (length == -1) 990 length = 1 + (arc4random() & 255); 991 992 while (progress < m0->m_pkthdr.len) { --- 38 unchanged lines hidden --- | 985 goto nospace; 986 987 m_new = m_final; 988 989 if (length == -1) 990 length = 1 + (arc4random() & 255); 991 992 while (progress < m0->m_pkthdr.len) { --- 38 unchanged lines hidden --- |