1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef _UAPI_LINUX_IGMP_H 20 #define _UAPI_LINUX_IGMP_H 21 #include <linux/types.h> 22 #include <asm/byteorder.h> 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 struct igmphdr { 25 __u8 type; 26 __u8 code; 27 __sum16 csum; 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 __be32 group; 30 }; 31 #define IGMPV3_MODE_IS_INCLUDE 1 32 #define IGMPV3_MODE_IS_EXCLUDE 2 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 #define IGMPV3_CHANGE_TO_INCLUDE 3 35 #define IGMPV3_CHANGE_TO_EXCLUDE 4 36 #define IGMPV3_ALLOW_NEW_SOURCES 5 37 #define IGMPV3_BLOCK_OLD_SOURCES 6 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 struct igmpv3_grec { 40 __u8 grec_type; 41 __u8 grec_auxwords; 42 __be16 grec_nsrcs; 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 __be32 grec_mca; 45 __be32 grec_src[0]; 46 }; 47 struct igmpv3_report { 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 __u8 type; 50 __u8 resv1; 51 __be16 csum; 52 __be16 resv2; 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 __be16 ngrec; 55 struct igmpv3_grec grec[0]; 56 }; 57 struct igmpv3_query { 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 __u8 type; 60 __u8 code; 61 __be16 csum; 62 __be32 group; 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 #ifdef __LITTLE_ENDIAN_BITFIELD 65 __u8 qrv : 3, suppress : 1, resv : 4; 66 #elif defined(__BIG_ENDIAN_BITFIELD) 67 __u8 resv : 4, suppress : 1, qrv : 3; 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 #else 70 #error "Please fix <asm/byteorder.h>" 71 #endif 72 __u8 qqic; 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 __be16 nsrcs; 75 __be32 srcs[0]; 76 }; 77 #define IGMP_HOST_MEMBERSHIP_QUERY 0x11 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 #define IGMP_HOST_MEMBERSHIP_REPORT 0x12 80 #define IGMP_DVMRP 0x13 81 #define IGMP_PIM 0x14 82 #define IGMP_TRACE 0x15 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 #define IGMPV2_HOST_MEMBERSHIP_REPORT 0x16 85 #define IGMP_HOST_LEAVE_MESSAGE 0x17 86 #define IGMPV3_HOST_MEMBERSHIP_REPORT 0x22 87 #define IGMP_MTRACE_RESP 0x1e 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 #define IGMP_MTRACE 0x1f 90 #define IGMP_DELAYING_MEMBER 0x01 91 #define IGMP_IDLE_MEMBER 0x02 92 #define IGMP_LAZY_MEMBER 0x03 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 #define IGMP_SLEEPING_MEMBER 0x04 95 #define IGMP_AWAKENING_MEMBER 0x05 96 #define IGMP_MINLEN 8 97 #define IGMP_MAX_HOST_REPORT_DELAY 10 98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 #define IGMP_TIMER_SCALE 10 100 #define IGMP_AGE_THRESHOLD 400 101 #define IGMP_ALL_HOSTS htonl(0xE0000001L) 102 #define IGMP_ALL_ROUTER htonl(0xE0000002L) 103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104 #define IGMPV3_ALL_MCR htonl(0xE0000016L) 105 #define IGMP_LOCAL_GROUP htonl(0xE0000000L) 106 #define IGMP_LOCAL_GROUP_MASK htonl(0xFFFFFF00L) 107 #endif 108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109