summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2009-03-04 02:55:04 +0000
committerbms <bms@FreeBSD.org>2009-03-04 02:55:04 +0000
commitda364171714e283d7d17873aeb34a4e2b848654b (patch)
tree55c017ed7c405d3b7d26a7a2481dccfcdaaf4602
parentab0c661e242e97e85ef6c217e60eda3b875a2b9f (diff)
downloadFreeBSD-src-da364171714e283d7d17873aeb34a4e2b848654b.zip
FreeBSD-src-da364171714e283d7d17873aeb34a4e2b848654b.tar.gz
Overlay a uint16_t field suitable for use by the
IGMPv3 code. It is used to maintain the number of group records contained in a pending IGMPv3 output mbuf chain.
-rw-r--r--sys/sys/mbuf.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index 4d7e641..05b28de2 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -122,9 +122,13 @@ struct pkthdr {
int csum_flags; /* flags regarding checksum */
int csum_data; /* data field used by csum routines */
u_int16_t tso_segsz; /* TSO segment size */
- u_int16_t ether_vtag; /* Ethernet 802.1p+q vlan tag */
+ union {
+ u_int16_t vt_vtag; /* Ethernet 802.1p+q vlan tag */
+ u_int16_t vt_nrecs; /* # of IGMPv3 records in this chain */
+ } PH_vt;
SLIST_HEAD(packet_tags, m_tag) tags; /* list of packet tags */
};
+#define ether_vtag PH_vt.vt_vtag
/*
* Description of external storage mapped into mbuf; valid only if M_EXT is
OpenPOWER on IntegriCloud