1 | /* automatically generated by rust-bindgen 0.66.1 */ |
2 | |
3 | pub type __s8 = crate::ctypes::c_schar; |
4 | pub type __u8 = crate::ctypes::c_uchar; |
5 | pub type __s16 = crate::ctypes::c_short; |
6 | pub type __u16 = crate::ctypes::c_ushort; |
7 | pub type __s32 = crate::ctypes::c_int; |
8 | pub type __u32 = crate::ctypes::c_uint; |
9 | pub type __s64 = crate::ctypes::c_longlong; |
10 | pub type __u64 = crate::ctypes::c_ulonglong; |
11 | pub type __kernel_key_t = crate::ctypes::c_int; |
12 | pub type __kernel_mqd_t = crate::ctypes::c_int; |
13 | pub type __kernel_old_uid_t = crate::ctypes::c_ushort; |
14 | pub type __kernel_old_gid_t = crate::ctypes::c_ushort; |
15 | pub type __kernel_old_dev_t = crate::ctypes::c_ulong; |
16 | pub type __kernel_long_t = crate::ctypes::c_long; |
17 | pub type __kernel_ulong_t = crate::ctypes::c_ulong; |
18 | pub type __kernel_ino_t = __kernel_ulong_t; |
19 | pub type __kernel_mode_t = crate::ctypes::c_uint; |
20 | pub type __kernel_pid_t = crate::ctypes::c_int; |
21 | pub type __kernel_ipc_pid_t = crate::ctypes::c_int; |
22 | pub type __kernel_uid_t = crate::ctypes::c_uint; |
23 | pub type __kernel_gid_t = crate::ctypes::c_uint; |
24 | pub type __kernel_suseconds_t = __kernel_long_t; |
25 | pub type __kernel_daddr_t = crate::ctypes::c_int; |
26 | pub type __kernel_uid32_t = crate::ctypes::c_uint; |
27 | pub type __kernel_gid32_t = crate::ctypes::c_uint; |
28 | pub type __kernel_size_t = __kernel_ulong_t; |
29 | pub type __kernel_ssize_t = __kernel_long_t; |
30 | pub type __kernel_ptrdiff_t = __kernel_long_t; |
31 | pub type __kernel_off_t = __kernel_long_t; |
32 | pub type __kernel_loff_t = crate::ctypes::c_longlong; |
33 | pub type __kernel_old_time_t = __kernel_long_t; |
34 | pub type __kernel_time_t = __kernel_long_t; |
35 | pub type __kernel_time64_t = crate::ctypes::c_longlong; |
36 | pub type __kernel_clock_t = __kernel_long_t; |
37 | pub type __kernel_timer_t = crate::ctypes::c_int; |
38 | pub type __kernel_clockid_t = crate::ctypes::c_int; |
39 | pub type __kernel_caddr_t = *mut crate::ctypes::c_char; |
40 | pub type __kernel_uid16_t = crate::ctypes::c_ushort; |
41 | pub type __kernel_gid16_t = crate::ctypes::c_ushort; |
42 | pub type __le16 = __u16; |
43 | pub type __be16 = __u16; |
44 | pub type __le32 = __u32; |
45 | pub type __be32 = __u32; |
46 | pub type __le64 = __u64; |
47 | pub type __be64 = __u64; |
48 | pub type __sum16 = __u16; |
49 | pub type __wsum = __u32; |
50 | pub type __poll_t = crate::ctypes::c_uint; |
51 | #[repr (C, packed)] |
52 | #[derive (Debug, Copy, Clone)] |
53 | pub struct ethhdr { |
54 | pub h_dest: [crate::ctypes::c_uchar; 6usize], |
55 | pub h_source: [crate::ctypes::c_uchar; 6usize], |
56 | pub h_proto: __be16, |
57 | } |
58 | pub const ETH_ALEN: u32 = 6; |
59 | pub const ETH_TLEN: u32 = 2; |
60 | pub const ETH_HLEN: u32 = 14; |
61 | pub const ETH_ZLEN: u32 = 60; |
62 | pub const ETH_DATA_LEN: u32 = 1500; |
63 | pub const ETH_FRAME_LEN: u32 = 1514; |
64 | pub const ETH_FCS_LEN: u32 = 4; |
65 | pub const ETH_MIN_MTU: u32 = 68; |
66 | pub const ETH_MAX_MTU: u32 = 65535; |
67 | pub const ETH_P_LOOP: u32 = 96; |
68 | pub const ETH_P_PUP: u32 = 512; |
69 | pub const ETH_P_PUPAT: u32 = 513; |
70 | pub const ETH_P_TSN: u32 = 8944; |
71 | pub const ETH_P_ERSPAN2: u32 = 8939; |
72 | pub const ETH_P_IP: u32 = 2048; |
73 | pub const ETH_P_X25: u32 = 2053; |
74 | pub const ETH_P_ARP: u32 = 2054; |
75 | pub const ETH_P_BPQ: u32 = 2303; |
76 | pub const ETH_P_IEEEPUP: u32 = 2560; |
77 | pub const ETH_P_IEEEPUPAT: u32 = 2561; |
78 | pub const ETH_P_BATMAN: u32 = 17157; |
79 | pub const ETH_P_DEC: u32 = 24576; |
80 | pub const ETH_P_DNA_DL: u32 = 24577; |
81 | pub const ETH_P_DNA_RC: u32 = 24578; |
82 | pub const ETH_P_DNA_RT: u32 = 24579; |
83 | pub const ETH_P_LAT: u32 = 24580; |
84 | pub const ETH_P_DIAG: u32 = 24581; |
85 | pub const ETH_P_CUST: u32 = 24582; |
86 | pub const ETH_P_SCA: u32 = 24583; |
87 | pub const ETH_P_TEB: u32 = 25944; |
88 | pub const ETH_P_RARP: u32 = 32821; |
89 | pub const ETH_P_ATALK: u32 = 32923; |
90 | pub const ETH_P_AARP: u32 = 33011; |
91 | pub const ETH_P_8021Q: u32 = 33024; |
92 | pub const ETH_P_ERSPAN: u32 = 35006; |
93 | pub const ETH_P_IPX: u32 = 33079; |
94 | pub const ETH_P_IPV6: u32 = 34525; |
95 | pub const ETH_P_PAUSE: u32 = 34824; |
96 | pub const ETH_P_SLOW: u32 = 34825; |
97 | pub const ETH_P_WCCP: u32 = 34878; |
98 | pub const ETH_P_MPLS_UC: u32 = 34887; |
99 | pub const ETH_P_MPLS_MC: u32 = 34888; |
100 | pub const ETH_P_ATMMPOA: u32 = 34892; |
101 | pub const ETH_P_PPP_DISC: u32 = 34915; |
102 | pub const ETH_P_PPP_SES: u32 = 34916; |
103 | pub const ETH_P_LINK_CTL: u32 = 34924; |
104 | pub const ETH_P_ATMFATE: u32 = 34948; |
105 | pub const ETH_P_PAE: u32 = 34958; |
106 | pub const ETH_P_PROFINET: u32 = 34962; |
107 | pub const ETH_P_REALTEK: u32 = 34969; |
108 | pub const ETH_P_AOE: u32 = 34978; |
109 | pub const ETH_P_ETHERCAT: u32 = 34980; |
110 | pub const ETH_P_8021AD: u32 = 34984; |
111 | pub const ETH_P_802_EX1: u32 = 34997; |
112 | pub const ETH_P_PREAUTH: u32 = 35015; |
113 | pub const ETH_P_TIPC: u32 = 35018; |
114 | pub const ETH_P_LLDP: u32 = 35020; |
115 | pub const ETH_P_MRP: u32 = 35043; |
116 | pub const ETH_P_MACSEC: u32 = 35045; |
117 | pub const ETH_P_8021AH: u32 = 35047; |
118 | pub const ETH_P_MVRP: u32 = 35061; |
119 | pub const ETH_P_1588: u32 = 35063; |
120 | pub const ETH_P_NCSI: u32 = 35064; |
121 | pub const ETH_P_PRP: u32 = 35067; |
122 | pub const ETH_P_CFM: u32 = 35074; |
123 | pub const ETH_P_FCOE: u32 = 35078; |
124 | pub const ETH_P_IBOE: u32 = 35093; |
125 | pub const ETH_P_TDLS: u32 = 35085; |
126 | pub const ETH_P_FIP: u32 = 35092; |
127 | pub const ETH_P_80221: u32 = 35095; |
128 | pub const ETH_P_HSR: u32 = 35119; |
129 | pub const ETH_P_NSH: u32 = 35151; |
130 | pub const ETH_P_LOOPBACK: u32 = 36864; |
131 | pub const ETH_P_QINQ1: u32 = 37120; |
132 | pub const ETH_P_QINQ2: u32 = 37376; |
133 | pub const ETH_P_QINQ3: u32 = 37632; |
134 | pub const ETH_P_EDSA: u32 = 56026; |
135 | pub const ETH_P_DSA_8021Q: u32 = 56027; |
136 | pub const ETH_P_DSA_A5PSW: u32 = 57345; |
137 | pub const ETH_P_IFE: u32 = 60734; |
138 | pub const ETH_P_AF_IUCV: u32 = 64507; |
139 | pub const ETH_P_802_3_MIN: u32 = 1536; |
140 | pub const ETH_P_802_3: u32 = 1; |
141 | pub const ETH_P_AX25: u32 = 2; |
142 | pub const ETH_P_ALL: u32 = 3; |
143 | pub const ETH_P_802_2: u32 = 4; |
144 | pub const ETH_P_SNAP: u32 = 5; |
145 | pub const ETH_P_DDCMP: u32 = 6; |
146 | pub const ETH_P_WAN_PPP: u32 = 7; |
147 | pub const ETH_P_PPP_MP: u32 = 8; |
148 | pub const ETH_P_LOCALTALK: u32 = 9; |
149 | pub const ETH_P_CAN: u32 = 12; |
150 | pub const ETH_P_CANFD: u32 = 13; |
151 | pub const ETH_P_CANXL: u32 = 14; |
152 | pub const ETH_P_PPPTALK: u32 = 16; |
153 | pub const ETH_P_TR_802_2: u32 = 17; |
154 | pub const ETH_P_MOBITEX: u32 = 21; |
155 | pub const ETH_P_CONTROL: u32 = 22; |
156 | pub const ETH_P_IRDA: u32 = 23; |
157 | pub const ETH_P_ECONET: u32 = 24; |
158 | pub const ETH_P_HDLC: u32 = 25; |
159 | pub const ETH_P_ARCNET: u32 = 26; |
160 | pub const ETH_P_DSA: u32 = 27; |
161 | pub const ETH_P_TRAILER: u32 = 28; |
162 | pub const ETH_P_PHONET: u32 = 245; |
163 | pub const ETH_P_IEEE802154: u32 = 246; |
164 | pub const ETH_P_CAIF: u32 = 247; |
165 | pub const ETH_P_XDSA: u32 = 248; |
166 | pub const ETH_P_MAP: u32 = 249; |
167 | pub const ETH_P_MCTP: u32 = 250; |
168 | |