dbs_utils/net/net_gen/mod.rs
1// Copyright TUNTAP, 2017 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the THIRD-PARTY file.
4
5#![allow(clippy::all)]
6#![allow(non_upper_case_globals)]
7#![allow(non_camel_case_types)]
8#![allow(non_snake_case)]
9#![allow(unaligned_references)]
10#![allow(missing_docs)]
11#![allow(deref_nullptr)]
12
13// generated with bindgen /usr/include/linux/if.h --no-unstable-rust
14// --constified-enum '*' --with-derive-default -- -D __UAPI_DEF_IF_IFNAMSIZ -D
15// __UAPI_DEF_IF_NET_DEVICE_FLAGS -D __UAPI_DEF_IF_IFREQ -D __UAPI_DEF_IF_IFMAP
16// Name is "iff" to avoid conflicting with "if" keyword.
17// Generated against Linux 4.11 to include fix "uapi: fix linux/if.h userspace
18// compilation errors".
19// Manual fixup of ifrn_name to be of type c_uchar instead of c_char.
20pub mod iff;
21// generated with bindgen /usr/include/linux/if_tun.h --no-unstable-rust
22// --constified-enum '*' --with-derive-default
23pub mod if_tun;
24// generated with bindgen /usr/include/linux/in.h --no-unstable-rust
25// --constified-enum '*' --with-derive-default
26// Name is "inn" to avoid conflicting with "in" keyword.
27pub mod inn;
28// generated with bindgen /usr/include/linux/sockios.h --no-unstable-rust
29// --constified-enum '*' --with-derive-default
30pub mod sockios;
31pub use if_tun::*;
32pub use iff::*;
33pub use inn::*;
34pub use sockios::*;