Deleted Added
full compact
mbuf.h (154577) mbuf.h (155051)
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 154577 2006-01-20 13:43:11Z andre $
30 * $FreeBSD: head/sys/sys/mbuf.h 155051 2006-01-30 13:45:15Z glebius $
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

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

332
333extern uma_zone_t zone_mbuf;
334extern uma_zone_t zone_clust;
335extern uma_zone_t zone_pack;
336extern uma_zone_t zone_jumbo4;
337extern uma_zone_t zone_jumbo9;
338extern uma_zone_t zone_jumbo16;
339extern uma_zone_t zone_ext_refcnt;
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

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

332
333extern uma_zone_t zone_mbuf;
334extern uma_zone_t zone_clust;
335extern uma_zone_t zone_pack;
336extern uma_zone_t zone_jumbo4;
337extern uma_zone_t zone_jumbo9;
338extern uma_zone_t zone_jumbo16;
339extern uma_zone_t zone_ext_refcnt;
340extern uma_zone_t zone_mtag_vlan;
340
341static __inline struct mbuf *m_get(int how, short type);
342static __inline struct mbuf *m_gethdr(int how, short type);
343static __inline struct mbuf *m_getcl(int how, short type, int flags);
344static __inline struct mbuf *m_getjcl(int how, short type, int flags, int size);
345static __inline struct mbuf *m_getclr(int how, short type); /* XXX */
346static __inline struct mbuf *m_free(struct mbuf *m);
347static __inline void m_clget(struct mbuf *m, int how);

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

755#define PACKET_TAG_PF_FRAGCACHE 22 /* PF fragment cached */
756#define PACKET_TAG_PF_QID 23 /* PF ALTQ queue id */
757#define PACKET_TAG_PF_TAG 24 /* PF tagged */
758#define PACKET_TAG_RTSOCKFAM 25 /* rtsock sa family */
759#define PACKET_TAG_PF_TRANSLATE_LOCALHOST 26 /* PF translate localhost */
760#define PACKET_TAG_IPOPTIONS 27 /* Saved IP options */
761#define PACKET_TAG_CARP 28 /* CARP info */
762
341
342static __inline struct mbuf *m_get(int how, short type);
343static __inline struct mbuf *m_gethdr(int how, short type);
344static __inline struct mbuf *m_getcl(int how, short type, int flags);
345static __inline struct mbuf *m_getjcl(int how, short type, int flags, int size);
346static __inline struct mbuf *m_getclr(int how, short type); /* XXX */
347static __inline struct mbuf *m_free(struct mbuf *m);
348static __inline void m_clget(struct mbuf *m, int how);

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

756#define PACKET_TAG_PF_FRAGCACHE 22 /* PF fragment cached */
757#define PACKET_TAG_PF_QID 23 /* PF ALTQ queue id */
758#define PACKET_TAG_PF_TAG 24 /* PF tagged */
759#define PACKET_TAG_RTSOCKFAM 25 /* rtsock sa family */
760#define PACKET_TAG_PF_TRANSLATE_LOCALHOST 26 /* PF translate localhost */
761#define PACKET_TAG_IPOPTIONS 27 /* Saved IP options */
762#define PACKET_TAG_CARP 28 /* CARP info */
763
764/* Specific cookies and tags. */
765#define MTAG_VLAN 1035328035
766#define MTAG_VLAN_TAG 0 /* tag of VLAN interface */
767
763/* Packet tag routines. */
764struct m_tag *m_tag_alloc(u_int32_t, int, int, int);
765void m_tag_delete(struct mbuf *, struct m_tag *);
766void m_tag_delete_chain(struct mbuf *, struct m_tag *);
767void m_tag_free_default(struct m_tag *);
768struct m_tag *m_tag_locate(struct mbuf *, u_int32_t, int, struct m_tag *);
769struct m_tag *m_tag_copy(struct m_tag *, int);
770int m_tag_copy_chain(struct mbuf *, struct mbuf *, int);

--- 90 unchanged lines hidden ---
768/* Packet tag routines. */
769struct m_tag *m_tag_alloc(u_int32_t, int, int, int);
770void m_tag_delete(struct mbuf *, struct m_tag *);
771void m_tag_delete_chain(struct mbuf *, struct m_tag *);
772void m_tag_free_default(struct m_tag *);
773struct m_tag *m_tag_locate(struct mbuf *, u_int32_t, int, struct m_tag *);
774struct m_tag *m_tag_copy(struct m_tag *, int);
775int m_tag_copy_chain(struct mbuf *, struct mbuf *, int);

--- 90 unchanged lines hidden ---