|
#define | USING_MBUF_CONSTRUCTOR 0 |
|
#define | MSIZE 256 |
|
#define | MCLBYTES 2048 |
|
#define | M_MOVE_PKTHDR(to, from) m_move_pkthdr((to), (from)) |
|
#define | MGET(m, how, type) ((m) = m_get((how), (type))) |
|
#define | MGETHDR(m, how, type) ((m) = m_gethdr((how), (type))) |
|
#define | MCLGET(m, how) m_clget((m), (how)) |
|
#define | M_HDR_PAD ((sizeof(intptr_t)==4) ? 2 : 6) /* modified for __Userspace__ */ |
|
#define | M_COPYALL 1000000000 |
|
#define | mtod(m, t) ((t)((m)->m_data)) |
|
#define | dtom(x) ((struct mbuf *)((intptr_t)(x) & ~(MSIZE-1))) |
|
#define | MBUF_MEM_NAME "mbuf" |
|
#define | MBUF_CLUSTER_MEM_NAME "mbuf_cluster" |
|
#define | MBUF_EXTREFCNT_MEM_NAME "mbuf_ext_refcnt" |
|
#define | MT_NOINIT |
|
#define | MLEN ((int)(MSIZE - sizeof(struct m_hdr))) /* normal data len */ |
|
#define | MHLEN ((int)(MLEN - sizeof(struct pkthdr))) /* data len w/pkthdr */ |
|
#define | MINCLSIZE ((int)(MHLEN + 1)) /* smallest amount to put in cluster */ |
|
#define | M_MAXCOMPRESS (MHLEN / 2) /* max amount to copy for compression */ |
|
#define | m_next m_hdr.mh_next |
|
#define | m_len m_hdr.mh_len |
|
#define | m_data m_hdr.mh_data |
|
#define | m_type m_hdr.mh_type |
|
#define | m_flags m_hdr.mh_flags |
|
#define | m_nextpkt m_hdr.mh_nextpkt |
|
#define | m_act m_nextpkt |
|
#define | m_pkthdr M_dat.MH.MH_pkthdr |
|
#define | m_ext M_dat.MH.MH_dat.MH_ext |
|
#define | m_pktdat M_dat.MH.MH_dat.MH_databuf |
|
#define | m_dat M_dat.M_databuf |
|
#define | M_EXT 0x0001 /* has associated external storage */ |
|
#define | M_PKTHDR 0x0002 /* start of record */ |
|
#define | M_EOR 0x0004 /* end of record */ |
|
#define | M_RDONLY 0x0008 /* associated data is marked read-only */ |
|
#define | M_PROTO1 0x0010 /* protocol-specific */ |
|
#define | M_PROTO2 0x0020 /* protocol-specific */ |
|
#define | M_PROTO3 0x0040 /* protocol-specific */ |
|
#define | M_PROTO4 0x0080 /* protocol-specific */ |
|
#define | M_PROTO5 0x0100 /* protocol-specific */ |
|
#define | M_FREELIST 0x8000 /* mbuf is on the free list */ |
|
#define | M_COPYFLAGS |
|
#define | M_BCAST 0x0200 /* send/received as link-level broadcast */ |
|
#define | M_MCAST 0x0400 /* send/received as link-level multicast */ |
|
#define | M_FRAG 0x0800 /* packet is a fragment of a larger packet */ |
|
#define | M_FIRSTFRAG 0x1000 /* packet is first fragment */ |
|
#define | M_LASTFRAG 0x2000 /* packet is last fragment */ |
|
#define | M_VLANTAG 0x10000 /* ether_vtag is valid */ |
|
#define | M_PROMISC 0x20000 /* packet was not for us */ |
|
#define | M_NOFREE 0x40000 /* do not free mbuf - it is embedded in the cluster */ |
|
#define | EXT_CLUSTER 1 /* mbuf cluster */ |
|
#define | EXT_SFBUF 2 /* sendfile(2)'s sf_bufs */ |
|
#define | EXT_JUMBOP 3 /* jumbo cluster 4096 bytes */ |
|
#define | EXT_JUMBO9 4 /* jumbo cluster 9216 bytes */ |
|
#define | EXT_JUMBO16 5 /* jumbo cluster 16184 bytes */ |
|
#define | EXT_PACKET 6 /* mbuf+cluster from packet zone */ |
|
#define | EXT_MBUF 7 /* external mbuf reference (M_IOVEC) */ |
|
#define | EXT_NET_DRV 100 /* custom ext_buf provided by net driver(s) */ |
|
#define | EXT_MOD_TYPE 200 /* custom module's ext_buf type */ |
|
#define | EXT_DISPOSABLE 300 /* can throw this buffer away w/page flipping */ |
|
#define | EXT_EXTREF 400 /* has externally maintained ref_cnt ptr */ |
|
#define | MT_NOTMBUF 0 /* USED INTERNALLY ONLY! Object is not mbuf */ |
|
#define | MT_DATA 1 /* dynamic (data) allocation */ |
|
#define | MT_HEADER MT_DATA /* packet header, use M_PKTHDR instead */ |
|
#define | MT_SONAME 8 /* socket name */ |
|
#define | MT_CONTROL 14 /* extra-data protocol message */ |
|
#define | MT_OOBDATA 15 /* expedited data */ |
|
#define | MT_NTYPES 16 /* number of mbuf types for mbtypes[] */ |
|
#define | MT_NOINIT |
|
#define | MBTOM(how) (how) |
|
#define | M_WRITABLE(m) |
|
#define | M_LEADINGSPACE(m) |
|
#define | M_TRAILINGSPACE(m) |
|
#define | M_PREPEND(m, plen, how) |
|
#define | M_ALIGN(m, len) |
|
#define | MH_ALIGN(m, len) |
|
|
struct mbuf * | m_gethdr (int how, short type) |
|
struct mbuf * | m_get (int how, short type) |
|
struct mbuf * | m_free (struct mbuf *m) |
|
void | m_clget (struct mbuf *m, int how) |
|
void | mbuf_init (void *) |
|
struct mbuf * | m_split (struct mbuf *, int, int) |
|
void | m_cat (struct mbuf *m, struct mbuf *n) |
|
void | m_adj (struct mbuf *, int) |
|
void | mb_free_ext (struct mbuf *) |
|
void | m_freem (struct mbuf *) |
|
struct m_tag * | m_tag_alloc (u_int32_t, int, int, int) |
|
struct mbuf * | m_copym (struct mbuf *, int, int, int) |
|
void | m_copyback (struct mbuf *, int, int, caddr_t) |
|
struct mbuf * | m_pullup (struct mbuf *, int) |
|
struct mbuf * | m_pulldown (struct mbuf *, int off, int len, int *offp) |
|
int | m_dup_pkthdr (struct mbuf *, struct mbuf *, int) |
|
struct m_tag * | m_tag_copy (struct m_tag *, int) |
|
int | m_tag_copy_chain (struct mbuf *, struct mbuf *, int) |
|
struct mbuf * | m_prepend (struct mbuf *, int, int) |
|
void | m_copydata (const struct mbuf *, int, int, caddr_t) |
|
void | m_tag_delete (struct mbuf *, struct m_tag *) |
|
void | m_tag_delete_chain (struct mbuf *, struct m_tag *) |
|
void | m_move_pkthdr (struct mbuf *, struct mbuf *) |
|
void | m_tag_free_default (struct m_tag *) |
|