Deleted Added
full compact
mbuf.h (142069) mbuf.h (142215)
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 142069 2005-02-18 22:31:19Z ru $
30 * $FreeBSD: head/sys/sys/mbuf.h 142215 2005-02-22 13:04:05Z 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

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

659#define PACKET_TAG_MACLABEL (19 | MTAG_PERSISTENT) /* MAC label */
660#define PACKET_TAG_PF_ROUTED 21 /* PF routed, avoid loops */
661#define PACKET_TAG_PF_FRAGCACHE 22 /* PF fragment cached */
662#define PACKET_TAG_PF_QID 23 /* PF ALTQ queue id */
663#define PACKET_TAG_PF_TAG 24 /* PF tagged */
664#define PACKET_TAG_RTSOCKFAM 25 /* rtsock sa family */
665#define PACKET_TAG_PF_TRANSLATE_LOCALHOST 26 /* PF translate localhost */
666#define PACKET_TAG_IPOPTIONS 27 /* Saved IP options */
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

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

659#define PACKET_TAG_MACLABEL (19 | MTAG_PERSISTENT) /* MAC label */
660#define PACKET_TAG_PF_ROUTED 21 /* PF routed, avoid loops */
661#define PACKET_TAG_PF_FRAGCACHE 22 /* PF fragment cached */
662#define PACKET_TAG_PF_QID 23 /* PF ALTQ queue id */
663#define PACKET_TAG_PF_TAG 24 /* PF tagged */
664#define PACKET_TAG_RTSOCKFAM 25 /* rtsock sa family */
665#define PACKET_TAG_PF_TRANSLATE_LOCALHOST 26 /* PF translate localhost */
666#define PACKET_TAG_IPOPTIONS 27 /* Saved IP options */
667#define PACKET_TAG_CARP 28 /* CARP info */
667
668/* Packet tag routines. */
669struct m_tag *m_tag_alloc(u_int32_t, int, int, int);
670void m_tag_delete(struct mbuf *, struct m_tag *);
671void m_tag_delete_chain(struct mbuf *, struct m_tag *);
672void m_tag_free_default(struct m_tag *);
673struct m_tag *m_tag_locate(struct mbuf *, u_int32_t, int, struct m_tag *);
674struct m_tag *m_tag_copy(struct m_tag *, int);

--- 91 unchanged lines hidden ---
668
669/* Packet tag routines. */
670struct m_tag *m_tag_alloc(u_int32_t, int, int, int);
671void m_tag_delete(struct mbuf *, struct m_tag *);
672void m_tag_delete_chain(struct mbuf *, struct m_tag *);
673void m_tag_free_default(struct m_tag *);
674struct m_tag *m_tag_locate(struct mbuf *, u_int32_t, int, struct m_tag *);
675struct m_tag *m_tag_copy(struct m_tag *, int);

--- 91 unchanged lines hidden ---