Lines Matching refs:igmp
64 * @(#)igmp.c 8.1 (Berkeley) 7/19/93
101 #include <netinet/igmp.h>
109 static MALLOC_DEFINE(M_IGMP, "igmp", "igmp state");
164 printf("[igmp.c, _find_rti] --> entering \n");
169 printf("[igmp.c, _find_rti] --> found old entry \n");
186 if (rti) printf("[igmp.c, _find_rti] --> created an entry \n");
196 struct igmp *igmp;
206 int timer; /** timer value in the igmp query header **/
233 igmp = mtod(m, struct igmp *);
243 timer = igmp->igmp_code * PR_FASTHZ / IGMP_TIMER_SCALE;
263 switch (igmp->igmp_type) {
271 if (igmp->igmp_code == 0) {
284 igmp->igmp_group.s_addr != 0) {
294 if (igmp->igmp_group.s_addr != 0 &&
295 !IN_MULTICAST(ntohl(igmp->igmp_group.s_addr))) {
317 (igmp->igmp_group.s_addr == 0 ||
318 igmp->igmp_group.s_addr == inm->inm_addr.s_addr)) {
349 if (!IN_MULTICAST(ntohl(igmp->igmp_group.s_addr))) {
372 IN_LOOKUP_MULTI(igmp->igmp_group, ifp, inm);
457 printf("[igmp.c,_slowtimo] -- > entering \n");
469 printf("[igmp.c,_slowtimo] -- > exiting \n");
479 struct igmp *igmp;
497 igmp = mtod(m, struct igmp *);
498 igmp->igmp_type = type;
499 igmp->igmp_code = 0;
500 igmp->igmp_group = inm->inm_addr;
501 igmp->igmp_cksum = 0;
502 igmp->igmp_cksum = in_cksum(m, IGMP_MINLEN);
512 ip->ip_dst.s_addr = addr ? addr : igmp->igmp_group.s_addr;