Home | History | Annotate | Download | only in netinet

Lines Matching defs:igmp

1 /*	$NetBSD: igmp.c,v 1.70 2020/05/15 06:34:34 maxv Exp $	*/
33 * Internet Group Management Protocol (IGMP) routines.
43 __KERNEL_RCSID(0, "$NetBSD: igmp.c,v 1.70 2020/05/15 06:34:34 maxv Exp $");
66 #include <netinet/igmp.h>
189 struct igmp *igmp;
224 igmp = mtod(m, struct igmp *);
238 switch (igmp->igmp_type) {
246 if (igmp->igmp_code == 0) {
292 timer = igmp->igmp_code * PR_FASTHZ / IGMP_TIMER_SCALE;
344 if (!IN_MULTICAST(igmp->igmp_group.s_addr) ||
345 !in_hosteq(igmp->igmp_group, ip->ip_dst)) {
372 inm = in_lookup_multi(igmp->igmp_group, ifp);
417 if (!IN_MULTICAST(igmp->igmp_group.s_addr) ||
418 !in_hosteq(igmp->igmp_group, ip->ip_dst)) {
447 inm = in_lookup_multi(igmp->igmp_group, ifp);
470 * Pass all valid IGMP packets up to any process(es) listening
471 * on a raw IGMP socket.
590 * igmp_sendpkt: construct an IGMP packet, given the multicast structure
597 struct igmp *igmp;
623 igmp = mtod(m, struct igmp *);
624 igmp->igmp_type = type;
625 igmp->igmp_code = 0;
626 igmp->igmp_group = inm->inm_addr;
627 igmp->igmp_cksum = 0;
628 igmp->igmp_cksum = in_cksum(m, IGMP_MINLEN);
681 CTLTYPE_NODE, "igmp",
688 SYSCTL_DESCR("IGMP statistics"),