/src/sys/netinet/ |
igmp.h | 1 /* $NetBSD: igmp.h,v 1.15 2021/02/03 18:13:13 roy Exp $ */ 34 * @(#)igmp.h 8.1 (Berkeley) 6/10/93 71 * @(#)igmp.h 8.1 (Berkeley) 6/10/93 78 * Internet Group Management Protocol (IGMP) definitions. 84 * IGMP packet format. 86 struct igmp { struct 87 uint8_t igmp_type; /* version & type of IGMP message */ 93 __CTASSERT(sizeof(struct igmp) == 8); 113 * States for the IGMP v2 state table. 122 * States for IGMP router version cache [all...] |
igmp.c | 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; local in function:igmp_input 224 igmp = mtod(m, struct igmp *); 238 switch (igmp->igmp_type) { 246 if (igmp->igmp_code == 0) 597 struct igmp *igmp; local in function:igmp_sendpkt [all...] |
/src/usr.sbin/mrouted/ |
igmp.c | 1 /* $NetBSD: igmp.c,v 1.14 2009/04/17 16:05:43 lukem Exp $ */ 26 u_int32_t dvmrp_genid; /* IGMP generation id */ 36 * Open and initialize the igmp socket, and fill in the non-changing 49 logit(LOG_ERR, errno, "IGMP socket"); 113 case IGMP_MTRACE_QUERY: return "IGMP trace query "; 114 case IGMP_MTRACE_REPLY: return "IGMP trace reply "; 115 default: return "unknown IGMP msg "; 120 * Process a newly received IGMP packet that is sitting in the input 128 struct igmp *igmp; local in function:accept_igmp 307 struct igmp *igmp; local in function:send_igmp [all...] |
/src/usr.sbin/mrinfo/ |
mrinfo.c | 435 struct igmp *igmp; local in function:main 502 igmp = (struct igmp *) (recv_buf + iphdrlen); 503 group = igmp->igmp_group.s_addr; 507 "IP data field too short (%u bytes) for IGMP, from %s", 511 if (igmp->igmp_type != IGMP_DVMRP) 514 switch (igmp->igmp_code) { 529 switch (igmp->igmp_code) { 539 accept_neighbors(src, dst, (u_char *)(igmp + 1) [all...] |
/src/usr.sbin/mtrace/ |
mtrace.c | 88 struct igmp igmp; /* IGMP header */ member in struct:resp_buf 396 struct igmp *igmp; local in function:send_recv 506 igmp = (struct igmp *) (recv_buf + iphdrlen); 510 "IP data field too short (%u bytes) for IGMP from %s\n", 515 switch (igmp->igmp_type) { 518 if (igmp->igmp_code != DVMRP_NEIGHBORS2) continue 622 struct igmp *igmp; local in function:passive_mode [all...] |