Changeset View
Changeset View
Standalone View
Standalone View
sys/netpfil/pf/pf_mtag.h
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | |||||
struct pf_mtag { | struct pf_mtag { | ||||
void *hdr; /* saved hdr pos in mbuf, for ECN */ | void *hdr; /* saved hdr pos in mbuf, for ECN */ | ||||
u_int16_t qid; /* queue id */ | u_int16_t qid; /* queue id */ | ||||
u_int32_t qid_hash; /* queue hashid used by WFQ like algos */ | u_int32_t qid_hash; /* queue hashid used by WFQ like algos */ | ||||
u_int16_t tag; /* tag id */ | u_int16_t tag; /* tag id */ | ||||
u_int8_t flags; | u_int8_t flags; | ||||
u_int8_t routed; | u_int8_t routed; | ||||
u_int16_t dnpipe; | |||||
u_int32_t dnflags; | |||||
}; | }; | ||||
static __inline struct pf_mtag * | static __inline struct pf_mtag * | ||||
pf_find_mtag(struct mbuf *m) | pf_find_mtag(struct mbuf *m) | ||||
{ | { | ||||
struct m_tag *mtag; | struct m_tag *mtag; | ||||
if ((mtag = m_tag_find(m, PACKET_TAG_PF, NULL)) == NULL) | if ((mtag = m_tag_find(m, PACKET_TAG_PF, NULL)) == NULL) | ||||
return (NULL); | return (NULL); | ||||
return ((struct pf_mtag *)(mtag + 1)); | return ((struct pf_mtag *)(mtag + 1)); | ||||
} | } | ||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
#endif /* _NET_PF_MTAG_H_ */ | #endif /* _NET_PF_MTAG_H_ */ |