|
#define | MLEN (MSIZE - sizeof(struct m_hdr)) /* normal data len */ |
|
#define | MHLEN (MLEN - sizeof(struct pkthdr)) /* data len w/pkthdr */ |
|
#define | MINCLSIZE (MHLEN + MLEN) /* smallest amount to put in cluster */ |
|
#define | M_MAXCOMPRESS (MHLEN / 2) /* max amount to copy for compression */ |
|
#define | mtod(m, t) ((t)((m)->m_data)) |
|
#define | dtom(x) ((struct mbuf *)((intptr_t)(x) & ~(MSIZE-1))) |
|
#define | mtocl(x) (((uintptr_t)(x) - (uintptr_t)mbutl) >> MCLSHIFT) |
|
#define | cltom(x) ((caddr_t)((u_long)mbutl + ((u_long)(x) << MCLSHIFT))) |
|
#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_PROTO1 0x0008 /* protocol-specific */ |
|
#define | M_BCAST 0x0100 /* send/received as link-level broadcast */ |
|
#define | M_MCAST 0x0200 /* send/received as link-level multicast */ |
|
#define | M_COPYFLAGS (M_PKTHDR|M_EOR|M_PROTO1|M_BCAST|M_MCAST) |
|
#define | MT_FREE 0 /* should be on free list */ |
|
#define | MT_DATA 1 /* dynamic (data) allocation */ |
|
#define | MT_HEADER 2 /* packet header */ |
|
#define | MT_SOCKET 3 /* socket structure */ |
|
#define | MT_PCB 4 /* protocol control block */ |
|
#define | MT_RTABLE 5 /* routing tables */ |
|
#define | MT_HTABLE 6 /* IMP host tables */ |
|
#define | MT_ATABLE 7 /* address resolution tables */ |
|
#define | MT_SONAME 8 /* socket name */ |
|
#define | MT_SOOPTS 10 /* socket options */ |
|
#define | MT_FTABLE 11 /* fragment reassembly header */ |
|
#define | MT_RIGHTS 12 /* access rights */ |
|
#define | MT_IFADDR 13 /* interface address */ |
|
#define | MT_CONTROL 14 /* extra-data protocol message */ |
|
#define | MT_OOBDATA 15 /* expedited data */ |
|
#define | M_DONTWAIT M_NOWAIT |
|
#define | M_WAIT M_WAITOK |
|
#define | MBUFLOCK(code) |
|
#define | MGET(m, how, type) |
|
#define | MGETHDR(m, how, type) |
|
#define | MCLALLOC(p, how) |
|
#define | MCLGET(m, how) |
|
#define | MCLFREE(p) |
|
#define | MFREE(m, n) |
|
#define | M_COPY_PKTHDR(to, from) |
|
#define | M_ALIGN(m, len) |
|
#define | MH_ALIGN(m, len) |
|
#define | M_LEADINGSPACE(m) |
|
#define | M_TRAILINGSPACE(m) |
|
#define | M_PREPEND(m, plen, how) |
|
#define | MCHTYPE(m, t) |
|
#define | M_COPYALL (uint32_t)1000000000L |
|
#define | m_copy(m, o, l) m_copym((m), (o), (l), M_DONTWAIT) |
|