1655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/**************************************************************************** 2655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng **************************************************************************** 3655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** 4655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** This header was automatically generated from a Linux kernel header 5655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** of the same name, to make information necessary for userspace to 6655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** call into the kernel available to libc. It contains only constants, 7655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** structures, and macros generated from the original header, and thus, 8655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** contains no copyrightable information. 9655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** 10655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** To edit the content of this header, modify the corresponding 11655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** source file (e.g. under external/kernel-headers/original/) then 12655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** run bionic/libc/kernel/tools/update_all.py 13655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** 14655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** Any manual change here will be lost the next time this script will 15655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** be run. You've been warned! 16655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng *** 17655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng **************************************************************************** 18655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng ****************************************************************************/ 19655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#ifndef _UAPI_LINUX_IGMP_H 20655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define _UAPI_LINUX_IGMP_H 21655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#include <linux/types.h> 22655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#include <asm/byteorder.h> 23655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct igmphdr { 25d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 type; 26d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 code; 27d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __sum16 csum; 28655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __be32 group; 30655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng}; 31655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMPV3_MODE_IS_INCLUDE 1 32655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMPV3_MODE_IS_EXCLUDE 2 33655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMPV3_CHANGE_TO_INCLUDE 3 35655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMPV3_CHANGE_TO_EXCLUDE 4 36655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMPV3_ALLOW_NEW_SOURCES 5 37655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMPV3_BLOCK_OLD_SOURCES 6 38655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct igmpv3_grec { 40d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 grec_type; 41d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 grec_auxwords; 42d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __be16 grec_nsrcs; 43655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __be32 grec_mca; 45d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __be32 grec_src[0]; 46655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng}; 47655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct igmpv3_report { 48655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 type; 50d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 resv1; 51d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __be16 csum; 52d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __be16 resv2; 53655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __be16 ngrec; 55d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao struct igmpv3_grec grec[0]; 56655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng}; 57655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct igmpv3_query { 58655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 type; 60d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 code; 61d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __be16 csum; 62d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __be32 group; 63655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#ifdef __LITTLE_ENDIAN_BITFIELD 65d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 qrv : 3, suppress : 1, resv : 4; 66655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#elif defined(__BIG_ENDIAN_BITFIELD) 67d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 resv : 4, suppress : 1, qrv : 3; 68655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#else 70655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#error "Please fix <asm/byteorder.h>" 71655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#endif 72d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __u8 qqic; 73655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __be16 nsrcs; 75d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao __be32 srcs[0]; 76655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng}; 77655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMP_HOST_MEMBERSHIP_QUERY 0x11 78655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMP_HOST_MEMBERSHIP_REPORT 0x12 80655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMP_DVMRP 0x13 81655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMP_PIM 0x14 82655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMP_TRACE 0x15 83655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMPV2_HOST_MEMBERSHIP_REPORT 0x16 85655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMP_HOST_LEAVE_MESSAGE 0x17 86655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMPV3_HOST_MEMBERSHIP_REPORT 0x22 87655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMP_MTRACE_RESP 0x1e 88655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMP_MTRACE 0x1f 90655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMP_DELAYING_MEMBER 0x01 91655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMP_IDLE_MEMBER 0x02 92655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMP_LAZY_MEMBER 0x03 93655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMP_SLEEPING_MEMBER 0x04 95655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMP_AWAKENING_MEMBER 0x05 96655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMP_MINLEN 8 97655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMP_MAX_HOST_REPORT_DELAY 10 98655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMP_TIMER_SCALE 10 100655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMP_AGE_THRESHOLD 400 101655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMP_ALL_HOSTS htonl(0xE0000001L) 102655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMP_ALL_ROUTER htonl(0xE0000002L) 103655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMPV3_ALL_MCR htonl(0xE0000016L) 105655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMP_LOCAL_GROUP htonl(0xE0000000L) 106655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IGMP_LOCAL_GROUP_MASK htonl(0xFFFFFF00L) 107655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#endif 108655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109