Deleted Added
full compact
uipc_mbuf.c (103626) uipc_mbuf.c (105194)
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

--- 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 * @(#)uipc_mbuf.c 8.2 (Berkeley) 1/4/94
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

--- 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 * @(#)uipc_mbuf.c 8.2 (Berkeley) 1/4/94
34 * $FreeBSD: head/sys/kern/uipc_mbuf.c 103626 2002-09-19 08:28:41Z julian $
34 * $FreeBSD: head/sys/kern/uipc_mbuf.c 105194 2002-10-16 01:54:46Z sam $
35 */
36
37#include "opt_mac.h"
38#include "opt_param.h"
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/kernel.h>

--- 41 unchanged lines hidden (view full) ---

84#endif
85 to->m_data = to->m_pktdat;
86 to->m_flags = from->m_flags & M_COPYFLAGS;
87 to->m_pkthdr = from->m_pkthdr;
88#ifdef MAC
89 mac_init_mbuf(to, 1); /* XXXMAC no way to fail */
90 mac_create_mbuf_from_mbuf(from, to);
91#endif
35 */
36
37#include "opt_mac.h"
38#include "opt_param.h"
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/kernel.h>

--- 41 unchanged lines hidden (view full) ---

84#endif
85 to->m_data = to->m_pktdat;
86 to->m_flags = from->m_flags & M_COPYFLAGS;
87 to->m_pkthdr = from->m_pkthdr;
88#ifdef MAC
89 mac_init_mbuf(to, 1); /* XXXMAC no way to fail */
90 mac_create_mbuf_from_mbuf(from, to);
91#endif
92 from->m_pkthdr.aux = NULL;
92 SLIST_INIT(&from->m_pkthdr.tags);
93}
94
95/*
96 * Lesser-used path for M_PREPEND:
97 * allocate new mbuf to prepend to chain,
98 * copy junk along.
99 */
100struct mbuf *

--- 639 unchanged lines hidden ---
93}
94
95/*
96 * Lesser-used path for M_PREPEND:
97 * allocate new mbuf to prepend to chain,
98 * copy junk along.
99 */
100struct mbuf *

--- 639 unchanged lines hidden ---