diff --git a/sys/netinet/igmp.c b/sys/netinet/igmp.c index 12a1552be78f..2cf1e7cde7ae 100644 --- a/sys/netinet/igmp.c +++ b/sys/netinet/igmp.c @@ -49,8 +49,11 @@ * MULTICAST Revision: 3.5.1.4 */ +#include "opt_mac.h" + #include #include +#include #include #include #include @@ -447,6 +450,9 @@ igmp_sendpkt(inm, type, addr) return; m->m_pkthdr.rcvif = loif; +#ifdef MAC + mac_create_mbuf_linklayer(inm->inm_ifp, m); +#endif m->m_pkthdr.len = sizeof(struct ip) + IGMP_MINLEN; MH_ALIGN(m, IGMP_MINLEN + sizeof(struct ip)); m->m_data += sizeof(struct ip);