Changeset View
Changeset View
Standalone View
Standalone View
stable/10/sys/sys/mbuf.h
Show First 20 Lines • Show All 200 Lines • ▼ Show 20 Lines | |||||
#define m_type m_hdr.mh_type | #define m_type m_hdr.mh_type | ||||
#define m_flags m_hdr.mh_flags | #define m_flags m_hdr.mh_flags | ||||
#define m_nextpkt m_hdr.mh_nextpkt | #define m_nextpkt m_hdr.mh_nextpkt | ||||
#define m_pkthdr M_dat.MH.MH_pkthdr | #define m_pkthdr M_dat.MH.MH_pkthdr | ||||
#define m_ext M_dat.MH.MH_dat.MH_ext | #define m_ext M_dat.MH.MH_dat.MH_ext | ||||
#define m_pktdat M_dat.MH.MH_dat.MH_databuf | #define m_pktdat M_dat.MH.MH_dat.MH_databuf | ||||
#define m_dat M_dat.M_databuf | #define m_dat M_dat.M_databuf | ||||
/* | /* | ||||
* NOTE: forwards compatibility definitions for mbuf(9) | |||||
* | |||||
* These aren't 1:1 with the macros in r277203; in particular they're exposed | |||||
* to both userland and kernel, whereas this is exposed to just _KERNEL -- to | |||||
* avoid disruption with existing KBI/KPIs | |||||
*/ | |||||
#define MHSIZE offsetof(struct mbuf, m_dat) | |||||
#define MPKTHSIZE offsetof(struct mbuf, m_pktdat) | |||||
/* | |||||
* mbuf flags of global significance and layer crossing. | * mbuf flags of global significance and layer crossing. | ||||
* Those of only protocol/layer specific significance are to be mapped | * Those of only protocol/layer specific significance are to be mapped | ||||
* to M_PROTO[1-12] and cleared at layer handoff boundaries. | * to M_PROTO[1-12] and cleared at layer handoff boundaries. | ||||
* NB: Limited to the lower 24 bits. | * NB: Limited to the lower 24 bits. | ||||
*/ | */ | ||||
#define M_EXT 0x00000001 /* has associated external storage */ | #define M_EXT 0x00000001 /* has associated external storage */ | ||||
#define M_PKTHDR 0x00000002 /* start of record */ | #define M_PKTHDR 0x00000002 /* start of record */ | ||||
#define M_EOR 0x00000004 /* end of record */ | #define M_EOR 0x00000004 /* end of record */ | ||||
▲ Show 20 Lines • Show All 958 Lines • Show Last 20 Lines |