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_IN_H
20655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define _UAPI_LINUX_IN_H
21655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#include <linux/types.h>
22655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#include <linux/socket.h>
23655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengenum {
25655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng IPPROTO_IP = 0,
2638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define IPPROTO_IP IPPROTO_IP
27655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng IPPROTO_ICMP = 1,
28655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
2938062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define IPPROTO_ICMP IPPROTO_ICMP
3038062f954c637861348dd8078cefb73554e6f12cChristopher Ferris IPPROTO_IGMP = 2,
3138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define IPPROTO_IGMP IPPROTO_IGMP
32655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng IPPROTO_IPIP = 4,
3338062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
3438062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define IPPROTO_IPIP IPPROTO_IPIP
35655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng IPPROTO_TCP = 6,
3638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define IPPROTO_TCP IPPROTO_TCP
37655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng IPPROTO_EGP = 8,
38655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
3938062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define IPPROTO_EGP IPPROTO_EGP
4038062f954c637861348dd8078cefb73554e6f12cChristopher Ferris IPPROTO_PUP = 12,
4138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define IPPROTO_PUP IPPROTO_PUP
42655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng IPPROTO_UDP = 17,
4338062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
4438062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define IPPROTO_UDP IPPROTO_UDP
45655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng IPPROTO_IDP = 22,
4638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define IPPROTO_IDP IPPROTO_IDP
4738062f954c637861348dd8078cefb73554e6f12cChristopher Ferris IPPROTO_TP = 29,
4838062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
4938062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define IPPROTO_TP IPPROTO_TP
50655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng IPPROTO_DCCP = 33,
5138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define IPPROTO_DCCP IPPROTO_DCCP
5238062f954c637861348dd8078cefb73554e6f12cChristopher Ferris IPPROTO_IPV6 = 41,
53655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
5438062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define IPPROTO_IPV6 IPPROTO_IPV6
5538062f954c637861348dd8078cefb73554e6f12cChristopher Ferris IPPROTO_RSVP = 46,
5638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define IPPROTO_RSVP IPPROTO_RSVP
57655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng IPPROTO_GRE = 47,
5838062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
5938062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define IPPROTO_GRE IPPROTO_GRE
60655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng IPPROTO_ESP = 50,
6138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define IPPROTO_ESP IPPROTO_ESP
62655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng IPPROTO_AH = 51,
63655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
6438062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define IPPROTO_AH IPPROTO_AH
6538062f954c637861348dd8078cefb73554e6f12cChristopher Ferris IPPROTO_MTP = 92,
6638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define IPPROTO_MTP IPPROTO_MTP
67655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng IPPROTO_BEETPH = 94,
6838062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
6938062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define IPPROTO_BEETPH IPPROTO_BEETPH
7038062f954c637861348dd8078cefb73554e6f12cChristopher Ferris IPPROTO_ENCAP = 98,
7138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define IPPROTO_ENCAP IPPROTO_ENCAP
72655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng IPPROTO_PIM = 103,
7338062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
7438062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define IPPROTO_PIM IPPROTO_PIM
75655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng IPPROTO_COMP = 108,
7638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define IPPROTO_COMP IPPROTO_COMP
77655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng IPPROTO_SCTP = 132,
78655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
7938062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define IPPROTO_SCTP IPPROTO_SCTP
80655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng IPPROTO_UDPLITE = 136,
8138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define IPPROTO_UDPLITE IPPROTO_UDPLITE
82655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng IPPROTO_RAW = 255,
8338062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
8438062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define IPPROTO_RAW IPPROTO_RAW
85655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng IPPROTO_MAX
86655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
87655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct in_addr {
8838062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng __be32 s_addr;
90655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
91655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_TOS 1
92655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_TTL 2
9338062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_HDRINCL 3
95655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_OPTIONS 4
96655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_ROUTER_ALERT 5
97655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_RECVOPTS 6
9838062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_RETOPTS 7
100655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_PKTINFO 8
101655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_PKTOPTIONS 9
102655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_MTU_DISCOVER 10
10338062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_RECVERR 11
105655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_RECVTTL 12
106655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_RECVTOS 13
107655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_MTU 14
10838062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_FREEBIND 15
110655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_IPSEC_POLICY 16
111655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_XFRM_POLICY 17
112655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_PASSSEC 18
11338062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_TRANSPARENT 19
115655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_RECVRETOPTS IP_RETOPTS
116655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_ORIGDSTADDR 20
117655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_RECVORIGDSTADDR IP_ORIGDSTADDR
11838062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_MINTTL 21
120655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_NODEFRAG 22
121655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_PMTUDISC_DONT 0
122655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_PMTUDISC_WANT 1
12338062f954c637861348dd8078cefb73554e6f12cChristopher Ferris/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_PMTUDISC_DO 2
125655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_PMTUDISC_PROBE 3
12638062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define IP_PMTUDISC_INTERFACE 4
127655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_MULTICAST_IF 32
128655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_MULTICAST_TTL 33
130655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_MULTICAST_LOOP 34
131655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_ADD_MEMBERSHIP 35
132655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_DROP_MEMBERSHIP 36
133655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_UNBLOCK_SOURCE 37
135655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_BLOCK_SOURCE 38
136655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_ADD_SOURCE_MEMBERSHIP 39
137655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_DROP_SOURCE_MEMBERSHIP 40
138655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_MSFILTER 41
140655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define MCAST_JOIN_GROUP 42
141655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define MCAST_BLOCK_SOURCE 43
142655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define MCAST_UNBLOCK_SOURCE 44
143655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define MCAST_LEAVE_GROUP 45
145655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define MCAST_JOIN_SOURCE_GROUP 46
146655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define MCAST_LEAVE_SOURCE_GROUP 47
147655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define MCAST_MSFILTER 48
148655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_MULTICAST_ALL 49
150655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_UNICAST_IF 50
151655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define MCAST_EXCLUDE 0
152655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define MCAST_INCLUDE 1
153655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_DEFAULT_MULTICAST_TTL 1
155655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_DEFAULT_MULTICAST_LOOP 1
156655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct ip_mreq {
157655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng struct in_addr imr_multiaddr;
158655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng struct in_addr imr_interface;
160655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
161655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct ip_mreqn {
162655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng struct in_addr imr_multiaddr;
163655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng struct in_addr imr_address;
165655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng int imr_ifindex;
166655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
167655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct ip_mreq_source {
168655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng __be32 imr_multiaddr;
170655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng __be32 imr_interface;
171655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng __be32 imr_sourceaddr;
172655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
173655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct ip_msfilter {
175655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng __be32 imsf_multiaddr;
176655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng __be32 imsf_interface;
177655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng __u32 imsf_fmode;
178655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng __u32 imsf_numsrc;
180655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng __be32 imsf_slist[1];
181655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
182655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IP_MSFILTER_SIZE(numsrc)   (sizeof(struct ip_msfilter) - sizeof(__u32)   + (numsrc) * sizeof(__u32))
183655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct group_req {
185655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng __u32 gr_interface;
186655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng struct __kernel_sockaddr_storage gr_group;
187655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
188655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
189655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct group_source_req {
190655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng __u32 gsr_interface;
191655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng struct __kernel_sockaddr_storage gsr_group;
192655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng struct __kernel_sockaddr_storage gsr_source;
193655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
195655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct group_filter {
196655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng __u32 gf_interface;
197655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng struct __kernel_sockaddr_storage gf_group;
198655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
199655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng __u32 gf_fmode;
200655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng __u32 gf_numsrc;
201655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng struct __kernel_sockaddr_storage gf_slist[1];
202655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
203655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define GROUP_FILTER_SIZE(numsrc)   (sizeof(struct group_filter) - sizeof(struct __kernel_sockaddr_storage)   + (numsrc) * sizeof(struct __kernel_sockaddr_storage))
205655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct in_pktinfo {
206655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng int ipi_ifindex;
207655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng struct in_addr ipi_spec_dst;
208655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
209655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng struct in_addr ipi_addr;
210655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
211655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define __SOCK_SIZE__ 16
212655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Chengstruct sockaddr_in {
213655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
214655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng __kernel_sa_family_t sin_family;
215655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng __be16 sin_port;
216655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng struct in_addr sin_addr;
217655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng unsigned char __pad[__SOCK_SIZE__ - sizeof(short int) -
218655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
219655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng sizeof(unsigned short int) - sizeof(struct in_addr)];
220655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng};
221655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define sin_zero __pad
222655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IN_CLASSA(a) ((((long int) (a)) & 0x80000000) == 0)
223655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
224655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IN_CLASSA_NET 0xff000000
225655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IN_CLASSA_NSHIFT 24
226655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IN_CLASSA_HOST (0xffffffff & ~IN_CLASSA_NET)
227655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IN_CLASSA_MAX 128
228655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
229655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IN_CLASSB(a) ((((long int) (a)) & 0xc0000000) == 0x80000000)
230655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IN_CLASSB_NET 0xffff0000
231655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IN_CLASSB_NSHIFT 16
232655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IN_CLASSB_HOST (0xffffffff & ~IN_CLASSB_NET)
233655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
234655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IN_CLASSB_MAX 65536
235655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IN_CLASSC(a) ((((long int) (a)) & 0xe0000000) == 0xc0000000)
236655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IN_CLASSC_NET 0xffffff00
237655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IN_CLASSC_NSHIFT 8
238655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
239655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IN_CLASSC_HOST (0xffffffff & ~IN_CLASSC_NET)
240655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IN_CLASSD(a) ((((long int) (a)) & 0xf0000000) == 0xe0000000)
241655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IN_MULTICAST(a) IN_CLASSD(a)
242655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IN_MULTICAST_NET 0xF0000000
243655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
244655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IN_EXPERIMENTAL(a) ((((long int) (a)) & 0xf0000000) == 0xf0000000)
245655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IN_BADCLASS(a) IN_EXPERIMENTAL((a))
246655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define INADDR_ANY ((unsigned long int) 0x00000000)
247655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define INADDR_BROADCAST ((unsigned long int) 0xffffffff)
248655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
249655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define INADDR_NONE ((unsigned long int) 0xffffffff)
250655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IN_LOOPBACKNET 127
251655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define INADDR_LOOPBACK 0x7f000001
252655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define IN_LOOPBACK(a) ((((long int) (a)) & 0xff000000) == 0x7f000000)
253655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
254655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define INADDR_UNSPEC_GROUP 0xe0000000U
255655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define INADDR_ALLHOSTS_GROUP 0xe0000001U
256655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define INADDR_ALLRTRS_GROUP 0xe0000002U
257655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#define INADDR_MAX_LOCAL_GROUP 0xe00000ffU
258655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
259655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#include <asm/byteorder.h>
260655a7c081f83b8351ed5f11a6c6accd9458293a8Ben Cheng#endif
261