summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/sys/mbuf.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index cc7211f..bd9bd5c 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -251,8 +251,6 @@ union mcluster {
* MGETHDR(struct mbuf *m, int how, int type)
* allocates an mbuf and initializes it to contain a packet header
* and internal data.
- *
- * Warning: MGETHDR() does *not* initialize m->m_pkthdr.rcvif.
*/
#define MGET(m, how, type) do { \
struct mbuf *_mm; \
@@ -302,6 +300,7 @@ union mcluster {
_mm->m_nextpkt = NULL; \
_mm->m_data = _mm->m_pktdat; \
_mm->m_flags = M_PKTHDR; \
+ _mm->m_pkthdr.rcvif = NULL; \
(m) = _mm; \
splx(_ms); \
} else { \
OpenPOWER on IntegriCloud