uipc_mbuf2.c (139804) | uipc_mbuf2.c (141616) |
---|---|
1/* $KAME: uipc_mbuf2.c,v 1.31 2001/11/28 11:08:53 itojun Exp $ */ 2/* $NetBSD: uipc_mbuf.c,v 1.40 1999/04/01 00:23:25 thorpej Exp $ */ 3 4/*- 5 * Copyright (C) 1999 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 47 unchanged lines hidden (view full) --- 56 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 57 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 58 * SUCH DAMAGE. 59 * 60 * @(#)uipc_mbuf.c 8.4 (Berkeley) 2/14/95 61 */ 62 63#include <sys/cdefs.h> | 1/* $KAME: uipc_mbuf2.c,v 1.31 2001/11/28 11:08:53 itojun Exp $ */ 2/* $NetBSD: uipc_mbuf.c,v 1.40 1999/04/01 00:23:25 thorpej Exp $ */ 3 4/*- 5 * Copyright (C) 1999 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 47 unchanged lines hidden (view full) --- 56 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 57 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 58 * SUCH DAMAGE. 59 * 60 * @(#)uipc_mbuf.c 8.4 (Berkeley) 2/14/95 61 */ 62 63#include <sys/cdefs.h> |
64__FBSDID("$FreeBSD: head/sys/kern/uipc_mbuf2.c 139804 2005-01-06 23:35:40Z imp $"); | 64__FBSDID("$FreeBSD: head/sys/kern/uipc_mbuf2.c 141616 2005-02-10 12:02:37Z phk $"); |
65 66/*#define PULLDOWN_DEBUG*/ 67 68#include "opt_mac.h" 69 70#include <sys/param.h> 71#include <sys/systm.h> 72#include <sys/kernel.h> 73#include <sys/lock.h> 74#include <sys/mac.h> 75#include <sys/malloc.h> 76#include <sys/mbuf.h> 77#include <sys/mutex.h> 78 | 65 66/*#define PULLDOWN_DEBUG*/ 67 68#include "opt_mac.h" 69 70#include <sys/param.h> 71#include <sys/systm.h> 72#include <sys/kernel.h> 73#include <sys/lock.h> 74#include <sys/mac.h> 75#include <sys/malloc.h> 76#include <sys/mbuf.h> 77#include <sys/mutex.h> 78 |
79MALLOC_DEFINE(M_PACKET_TAGS, "mbuf tags", "packet-attached information"); | 79static MALLOC_DEFINE(M_PACKET_TAGS, "mbuf tags", "packet-attached information"); |
80 81/* can't call it m_dup(), as freebsd[34] uses m_dup() with different arg */ 82static struct mbuf *m_dup1(struct mbuf *, int, int, int); 83 84/* 85 * ensure that [off, off + len) is contiguous on the mbuf chain "m". 86 * packet chain before "off" is kept untouched. 87 * if offp == NULL, the target will start at <retval, 0> on resulting chain. --- 366 unchanged lines hidden --- | 80 81/* can't call it m_dup(), as freebsd[34] uses m_dup() with different arg */ 82static struct mbuf *m_dup1(struct mbuf *, int, int, int); 83 84/* 85 * ensure that [off, off + len) is contiguous on the mbuf chain "m". 86 * packet chain before "off" is kept untouched. 87 * if offp == NULL, the target will start at <retval, 0> on resulting chain. --- 366 unchanged lines hidden --- |