• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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,
66  suppress:1,
67  resv:4;
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 #elif defined(__BIG_ENDIAN_BITFIELD)
70  __u8 resv:4,
71  suppress:1,
72  qrv:3;
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 #else
75 #error "Please fix <asm/byteorder.h>"
76 #endif
77  __u8 qqic;
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79  __be16 nsrcs;
80  __be32 srcs[0];
81 };
82 #define IGMP_HOST_MEMBERSHIP_QUERY 0x11
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 #define IGMP_HOST_MEMBERSHIP_REPORT 0x12
85 #define IGMP_DVMRP 0x13
86 #define IGMP_PIM 0x14
87 #define IGMP_TRACE 0x15
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 #define IGMPV2_HOST_MEMBERSHIP_REPORT 0x16
90 #define IGMP_HOST_LEAVE_MESSAGE 0x17
91 #define IGMPV3_HOST_MEMBERSHIP_REPORT 0x22
92 #define IGMP_MTRACE_RESP 0x1e
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94 #define IGMP_MTRACE 0x1f
95 #define IGMP_DELAYING_MEMBER 0x01
96 #define IGMP_IDLE_MEMBER 0x02
97 #define IGMP_LAZY_MEMBER 0x03
98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 #define IGMP_SLEEPING_MEMBER 0x04
100 #define IGMP_AWAKENING_MEMBER 0x05
101 #define IGMP_MINLEN 8
102 #define IGMP_MAX_HOST_REPORT_DELAY 10
103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 #define IGMP_TIMER_SCALE 10
105 #define IGMP_AGE_THRESHOLD 400
106 #define IGMP_ALL_HOSTS htonl(0xE0000001L)
107 #define IGMP_ALL_ROUTER htonl(0xE0000002L)
108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 #define IGMPV3_ALL_MCR htonl(0xE0000016L)
110 #define IGMP_LOCAL_GROUP htonl(0xE0000000L)
111 #define IGMP_LOCAL_GROUP_MASK htonl(0xFFFFFF00L)
112 #endif
113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114