Go to the documentation of this file.
16 #ifndef _UAPI_LINUX_IGMP_H
17 #define _UAPI_LINUX_IGMP_H
19 #include <linux/types.h>
20 #include <asm/byteorder.h>
38 #define IGMPV3_MODE_IS_INCLUDE 1
39 #define IGMPV3_MODE_IS_EXCLUDE 2
40 #define IGMPV3_CHANGE_TO_INCLUDE 3
41 #define IGMPV3_CHANGE_TO_EXCLUDE 4
42 #define IGMPV3_ALLOW_NEW_SOURCES 5
43 #define IGMPV3_BLOCK_OLD_SOURCES 6
67 #if defined(__LITTLE_ENDIAN_BITFIELD)
71 #elif defined(__BIG_ENDIAN_BITFIELD)
76 #error "Please fix <asm/byteorder.h>"
83 #define IGMP_HOST_MEMBERSHIP_QUERY 0x11
84 #define IGMP_HOST_MEMBERSHIP_REPORT 0x12
85 #define IGMP_DVMRP 0x13
87 #define IGMP_TRACE 0x15
88 #define IGMPV2_HOST_MEMBERSHIP_REPORT 0x16
89 #define IGMP_HOST_LEAVE_MESSAGE 0x17
90 #define IGMPV3_HOST_MEMBERSHIP_REPORT 0x22
92 #define IGMP_MTRACE_RESP 0x1e
93 #define IGMP_MTRACE 0x1f
100 #define IGMP_DELAYING_MEMBER 0x01
101 #define IGMP_IDLE_MEMBER 0x02
102 #define IGMP_LAZY_MEMBER 0x03
103 #define IGMP_SLEEPING_MEMBER 0x04
104 #define IGMP_AWAKENING_MEMBER 0x05
106 #define IGMP_MINLEN 8
108 #define IGMP_MAX_HOST_REPORT_DELAY 10
111 #define IGMP_TIMER_SCALE 10
114 #define IGMP_AGE_THRESHOLD 400
118 #define IGMP_ALL_HOSTS htonl(0xE0000001L)
119 #define IGMP_ALL_ROUTER htonl(0xE0000002L)
120 #define IGMPV3_ALL_MCR htonl(0xE0000016L)
121 #define IGMP_LOCAL_GROUP htonl(0xE0000000L)
122 #define IGMP_LOCAL_GROUP_MASK htonl(0xFFFFFF00L)