blob: c20e13510cbbeb84461c692150fb129e9bec5a2a [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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 */
24struct igmphdr {
Tao Baod7db5942015-01-28 10:07:51 -080025 __u8 type;
26 __u8 code;
27 __sum16 csum;
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 __be32 group;
Ben Cheng655a7c02013-10-16 16:09:24 -070030};
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 */
39struct igmpv3_grec {
Tao Baod7db5942015-01-28 10:07:51 -080040 __u8 grec_type;
41 __u8 grec_auxwords;
42 __be16 grec_nsrcs;
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 __be32 grec_mca;
45 __be32 grec_src[0];
Ben Cheng655a7c02013-10-16 16:09:24 -070046};
47struct igmpv3_report {
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 __u8 type;
50 __u8 resv1;
51 __be16 csum;
52 __be16 resv2;
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 __be16 ngrec;
55 struct igmpv3_grec grec[0];
Ben Cheng655a7c02013-10-16 16:09:24 -070056};
57struct igmpv3_query {
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 __u8 type;
60 __u8 code;
61 __be16 csum;
62 __be32 group;
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#ifdef __LITTLE_ENDIAN_BITFIELD
Tao Baod7db5942015-01-28 10:07:51 -080065 __u8 qrv : 3, suppress : 1, resv : 4;
Ben Cheng655a7c02013-10-16 16:09:24 -070066#elif defined(__BIG_ENDIAN_BITFIELD)
Tao Baod7db5942015-01-28 10:07:51 -080067 __u8 resv : 4, suppress : 1, qrv : 3;
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#else
70#error "Please fix <asm/byteorder.h>"
71#endif
Tao Baod7db5942015-01-28 10:07:51 -080072 __u8 qqic;
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 __be16 nsrcs;
75 __be32 srcs[0];
Ben Cheng655a7c02013-10-16 16:09:24 -070076};
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 */