mbuf.h (143761) | mbuf.h (145883) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1988, 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 --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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 * @(#)mbuf.h 8.5 (Berkeley) 2/19/95 | 1/*- 2 * Copyright (c) 1982, 1986, 1988, 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 --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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 * @(#)mbuf.h 8.5 (Berkeley) 2/19/95 |
30 * $FreeBSD: head/sys/sys/mbuf.h 143761 2005-03-17 19:34:57Z jmg $ | 30 * $FreeBSD: head/sys/sys/mbuf.h 145883 2005-05-04 18:55:03Z emax $ |
31 */ 32 33#ifndef _SYS_MBUF_H_ 34#define _SYS_MBUF_H_ 35 36/* XXX: These includes suck. Sorry! */ 37#include <sys/queue.h> 38#ifdef _KERNEL --- 538 unchanged lines hidden (view full) --- 577struct mbuf *m_getptr(struct mbuf *, int, int *); 578u_int m_length(struct mbuf *, struct mbuf **); 579void m_move_pkthdr(struct mbuf *, struct mbuf *); 580struct mbuf *m_prepend(struct mbuf *, int, int); 581void m_print(const struct mbuf *, int); 582struct mbuf *m_pulldown(struct mbuf *, int, int, int *); 583struct mbuf *m_pullup(struct mbuf *, int); 584struct mbuf *m_split(struct mbuf *, int, int); | 31 */ 32 33#ifndef _SYS_MBUF_H_ 34#define _SYS_MBUF_H_ 35 36/* XXX: These includes suck. Sorry! */ 37#include <sys/queue.h> 38#ifdef _KERNEL --- 538 unchanged lines hidden (view full) --- 577struct mbuf *m_getptr(struct mbuf *, int, int *); 578u_int m_length(struct mbuf *, struct mbuf **); 579void m_move_pkthdr(struct mbuf *, struct mbuf *); 580struct mbuf *m_prepend(struct mbuf *, int, int); 581void m_print(const struct mbuf *, int); 582struct mbuf *m_pulldown(struct mbuf *, int, int, int *); 583struct mbuf *m_pullup(struct mbuf *, int); 584struct mbuf *m_split(struct mbuf *, int, int); |
585struct mbuf *m_uiotombuf(struct uio *, int, int); | 585struct mbuf *m_uiotombuf(struct uio *, int, int, int); |
586 587/*- 588 * Network packets may have annotations attached by affixing a list 589 * of "packet tags" to the pkthdr structure. Packet tags are 590 * dynamically allocated semi-opaque data structures that have 591 * a fixed header (struct m_tag) that specifies the size of the 592 * memory block and a <cookie,type> pair that identifies it. 593 * The cookie is a 32-bit unique unsigned value used to identify --- 174 unchanged lines hidden --- | 586 587/*- 588 * Network packets may have annotations attached by affixing a list 589 * of "packet tags" to the pkthdr structure. Packet tags are 590 * dynamically allocated semi-opaque data structures that have 591 * a fixed header (struct m_tag) that specifies the size of the 592 * memory block and a <cookie,type> pair that identifies it. 593 * The cookie is a 32-bit unique unsigned value used to identify --- 174 unchanged lines hidden --- |