Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/mbuf.h
Show First 20 Lines • Show All 144 Lines • ▼ Show 20 Lines | |||||
struct m_snd_tag { | struct m_snd_tag { | ||||
struct ifnet *ifp; /* network interface tag belongs to */ | struct ifnet *ifp; /* network interface tag belongs to */ | ||||
const struct if_snd_tag_sw *sw; | const struct if_snd_tag_sw *sw; | ||||
volatile u_int refcount; | volatile u_int refcount; | ||||
}; | }; | ||||
/* | /* | ||||
* Record/packet header in first mbuf of chain; valid only if M_PKTHDR is set. | * Record/packet header in first mbuf of chain; valid only if M_PKTHDR is set. | ||||
* Size ILP32: 48 | * Size ILP32: 52 | ||||
* LP64: 56 | * LP64: 64 | ||||
* Compile-time assertions in uipc_mbuf.c test these values to ensure that | * Compile-time assertions in uipc_mbuf.c test these values to ensure that | ||||
* they are correct. | * they are correct. | ||||
*/ | */ | ||||
struct pkthdr { | struct pkthdr { | ||||
union { | union { | ||||
struct m_snd_tag *snd_tag; /* send tag, if any */ | struct m_snd_tag *snd_tag; /* send tag, if any */ | ||||
struct ifnet *rcvif; /* rcv interface */ | struct ifnet *rcvif; /* rcv interface */ | ||||
struct { | struct { | ||||
uint16_t rcvidx; /* rcv interface index ... */ | uint16_t rcvidx; /* rcv interface index ... */ | ||||
uint16_t rcvgen; /* ... and generation count */ | uint16_t rcvgen; /* ... and generation count */ | ||||
}; | |||||
}; | |||||
union { | |||||
struct ifnet *leaf_rcvif; /* leaf rcv interface */ | |||||
struct { | |||||
uint16_t leaf_rcvidx; /* leaf rcv interface index ... */ | |||||
uint16_t leaf_rcvgen; /* ... and generation count */ | |||||
}; | }; | ||||
}; | }; | ||||
SLIST_HEAD(packet_tags, m_tag) tags; /* list of packet tags */ | SLIST_HEAD(packet_tags, m_tag) tags; /* list of packet tags */ | ||||
int32_t len; /* total packet length */ | int32_t len; /* total packet length */ | ||||
/* Layer crossing persistent information. */ | /* Layer crossing persistent information. */ | ||||
uint32_t flowid; /* packet's 4-tuple system */ | uint32_t flowid; /* packet's 4-tuple system */ | ||||
uint32_t csum_flags; /* checksum and offload features */ | uint32_t csum_flags; /* checksum and offload features */ | ||||
▲ Show 20 Lines • Show All 1,523 Lines • Show Last 20 Lines |