39#ifndef _NETINET_IGMP_H_
40#define _NETINET_IGMP_H_
77#define IGMP_V3_QUERY_MINLEN 12
78#define IGMP_EXP(x) (((x) >> 4) & 0x07)
79#define IGMP_MANT(x) ((x) & 0x0f)
80#define IGMP_QRESV(x) (((x) >> 4) & 0x0f)
81#define IGMP_SFLAG(x) (((x) >> 3) & 0x01)
82#define IGMP_QRV(x) ((x) & 0x07)
91#define IGMP_GRPREC_HDRLEN 8
104#define IGMP_V3_REPORT_MINLEN 8
105#define IGMP_V3_REPORT_MAXRECS 65535
110#define IGMP_HOST_MEMBERSHIP_QUERY 0x11
111#define IGMP_v1_HOST_MEMBERSHIP_REPORT 0x12
112#define IGMP_DVMRP 0x13
114#define IGMP_v2_HOST_MEMBERSHIP_REPORT 0x16
115#define IGMP_HOST_LEAVE_MESSAGE 0x17
116#define IGMP_MTRACE_REPLY 0x1e
117#define IGMP_MTRACE_QUERY 0x1f
118#define IGMP_v3_HOST_MEMBERSHIP_REPORT 0x22
123#define IGMP_DO_NOTHING 0
124#define IGMP_MODE_IS_INCLUDE 1
125#define IGMP_MODE_IS_EXCLUDE 2
126#define IGMP_CHANGE_TO_INCLUDE_MODE 3
127#define IGMP_CHANGE_TO_EXCLUDE_MODE 4
128#define IGMP_ALLOW_NEW_SOURCES 5
129#define IGMP_BLOCK_OLD_SOURCES 6
134#define IGMP_V3_GENERAL_QUERY 1
135#define IGMP_V3_GROUP_QUERY 2
136#define IGMP_V3_GROUP_SOURCE_QUERY 3
141#define IGMP_V1V2_MAX_RI 10
142#define IGMP_MAX_HOST_REPORT_DELAY IGMP_V1V2_MAX_RI
148#define IGMP_TIMER_SCALE 10
struct in_addr igmp_group
struct in_addr igmp_group