1// Code generated by cmd/cgo -godefs; DO NOT EDIT.
2// cgo -godefs defs_linux.go
3
4package ipv4
5
6const (
7	sysIP_TOS             = 0x1
8	sysIP_TTL             = 0x2
9	sysIP_HDRINCL         = 0x3
10	sysIP_OPTIONS         = 0x4
11	sysIP_ROUTER_ALERT    = 0x5
12	sysIP_RECVOPTS        = 0x6
13	sysIP_RETOPTS         = 0x7
14	sysIP_PKTINFO         = 0x8
15	sysIP_PKTOPTIONS      = 0x9
16	sysIP_MTU_DISCOVER    = 0xa
17	sysIP_RECVERR         = 0xb
18	sysIP_RECVTTL         = 0xc
19	sysIP_RECVTOS         = 0xd
20	sysIP_MTU             = 0xe
21	sysIP_FREEBIND        = 0xf
22	sysIP_TRANSPARENT     = 0x13
23	sysIP_RECVRETOPTS     = 0x7
24	sysIP_ORIGDSTADDR     = 0x14
25	sysIP_RECVORIGDSTADDR = 0x14
26	sysIP_MINTTL          = 0x15
27	sysIP_NODEFRAG        = 0x16
28	sysIP_UNICAST_IF      = 0x32
29
30	sysIP_MULTICAST_IF           = 0x20
31	sysIP_MULTICAST_TTL          = 0x21
32	sysIP_MULTICAST_LOOP         = 0x22
33	sysIP_ADD_MEMBERSHIP         = 0x23
34	sysIP_DROP_MEMBERSHIP        = 0x24
35	sysIP_UNBLOCK_SOURCE         = 0x25
36	sysIP_BLOCK_SOURCE           = 0x26
37	sysIP_ADD_SOURCE_MEMBERSHIP  = 0x27
38	sysIP_DROP_SOURCE_MEMBERSHIP = 0x28
39	sysIP_MSFILTER               = 0x29
40	sysMCAST_JOIN_GROUP          = 0x2a
41	sysMCAST_LEAVE_GROUP         = 0x2d
42	sysMCAST_JOIN_SOURCE_GROUP   = 0x2e
43	sysMCAST_LEAVE_SOURCE_GROUP  = 0x2f
44	sysMCAST_BLOCK_SOURCE        = 0x2b
45	sysMCAST_UNBLOCK_SOURCE      = 0x2c
46	sysMCAST_MSFILTER            = 0x30
47	sysIP_MULTICAST_ALL          = 0x31
48
49	sysICMP_FILTER = 0x1
50
51	sysSO_EE_ORIGIN_NONE         = 0x0
52	sysSO_EE_ORIGIN_LOCAL        = 0x1
53	sysSO_EE_ORIGIN_ICMP         = 0x2
54	sysSO_EE_ORIGIN_ICMP6        = 0x3
55	sysSO_EE_ORIGIN_TXSTATUS     = 0x4
56	sysSO_EE_ORIGIN_TIMESTAMPING = 0x4
57
58	sizeofKernelSockaddrStorage = 0x80
59	sizeofSockaddrInet          = 0x10
60	sizeofInetPktinfo           = 0xc
61	sizeofSockExtendedErr       = 0x10
62
63	sizeofIPMreq         = 0x8
64	sizeofIPMreqn        = 0xc
65	sizeofIPMreqSource   = 0xc
66	sizeofGroupReq       = 0x88
67	sizeofGroupSourceReq = 0x108
68
69	sizeofICMPFilter = 0x4
70)
71
72type kernelSockaddrStorage struct {
73	Family  uint16
74	X__data [126]int8
75}
76
77type sockaddrInet struct {
78	Family uint16
79	Port   uint16
80	Addr   [4]byte /* in_addr */
81	X__pad [8]uint8
82}
83
84type inetPktinfo struct {
85	Ifindex  int32
86	Spec_dst [4]byte /* in_addr */
87	Addr     [4]byte /* in_addr */
88}
89
90type sockExtendedErr struct {
91	Errno  uint32
92	Origin uint8
93	Type   uint8
94	Code   uint8
95	Pad    uint8
96	Info   uint32
97	Data   uint32
98}
99
100type ipMreq struct {
101	Multiaddr [4]byte /* in_addr */
102	Interface [4]byte /* in_addr */
103}
104
105type ipMreqn struct {
106	Multiaddr [4]byte /* in_addr */
107	Address   [4]byte /* in_addr */
108	Ifindex   int32
109}
110
111type ipMreqSource struct {
112	Multiaddr  uint32
113	Interface  uint32
114	Sourceaddr uint32
115}
116
117type groupReq struct {
118	Interface uint32
119	Pad_cgo_0 [4]byte
120	Group     kernelSockaddrStorage
121}
122
123type groupSourceReq struct {
124	Interface uint32
125	Pad_cgo_0 [4]byte
126	Group     kernelSockaddrStorage
127	Source    kernelSockaddrStorage
128}
129
130type icmpFilter struct {
131	Data uint32
132}
133