igmp.c (dd5a318ba33f74801a479c7cf4cdb11ef72e9d9c) igmp.c (34333b16cdbff9a44599686b809052878716f44e)
1/*-
2 * Copyright (c) 1988 Stephen Deering.
3 * Copyright (c) 1992, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Stephen Deering of Stanford University.
8 *

--- 448 unchanged lines hidden (view full) ---

457{
458 struct mbuf *m;
459 struct igmp *igmp;
460 struct ip *ip;
461 struct ip_moptions imo;
462
463 IN_MULTI_LOCK_ASSERT();
464
1/*-
2 * Copyright (c) 1988 Stephen Deering.
3 * Copyright (c) 1992, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Stephen Deering of Stanford University.
8 *

--- 448 unchanged lines hidden (view full) ---

457{
458 struct mbuf *m;
459 struct igmp *igmp;
460 struct ip *ip;
461 struct ip_moptions imo;
462
463 IN_MULTI_LOCK_ASSERT();
464
465 MGETHDR(m, M_DONTWAIT, MT_HEADER);
465 MGETHDR(m, M_DONTWAIT, MT_DATA);
466 if (m == NULL)
467 return;
468
469 m->m_pkthdr.rcvif = loif;
470#ifdef MAC
471 mac_create_mbuf_linklayer(inm->inm_ifp, m);
472#endif
473 m->m_pkthdr.len = sizeof(struct ip) + IGMP_MINLEN;

--- 37 unchanged lines hidden ---
466 if (m == NULL)
467 return;
468
469 m->m_pkthdr.rcvif = loif;
470#ifdef MAC
471 mac_create_mbuf_linklayer(inm->inm_ifp, m);
472#endif
473 m->m_pkthdr.len = sizeof(struct ip) + IGMP_MINLEN;

--- 37 unchanged lines hidden ---