2016-12-11 07:15:26 +08:00
|
|
|
use libc;
|
|
|
|
|
2017-09-25 07:51:19 +08:00
|
|
|
#[cfg(any(feature = "phy-raw_socket",
|
|
|
|
feature = "phy-tap_interface"))]
|
2016-12-11 07:15:26 +08:00
|
|
|
pub const SIOCGIFMTU: libc::c_ulong = 0x8921;
|
2017-09-25 07:51:19 +08:00
|
|
|
#[cfg(any(feature = "phy-raw_socket"))]
|
2016-12-11 07:15:26 +08:00
|
|
|
pub const SIOCGIFINDEX: libc::c_ulong = 0x8933;
|
2017-09-25 07:51:19 +08:00
|
|
|
#[cfg(any(feature = "phy-raw_socket"))]
|
2017-06-15 18:12:11 +08:00
|
|
|
pub const ETH_P_ALL: libc::c_short = 0x0003;
|
2016-12-11 07:15:26 +08:00
|
|
|
|
2017-09-25 07:51:19 +08:00
|
|
|
#[cfg(feature = "phy-tap_interface")]
|
2016-12-11 07:15:26 +08:00
|
|
|
pub const TUNSETIFF: libc::c_ulong = 0x400454CA;
|
2017-09-25 07:51:19 +08:00
|
|
|
#[cfg(feature = "phy-tap_interface")]
|
2016-12-11 07:15:26 +08:00
|
|
|
pub const IFF_TAP: libc::c_int = 0x0002;
|
2017-09-25 07:51:19 +08:00
|
|
|
#[cfg(feature = "phy-tap_interface")]
|
2016-12-11 07:15:26 +08:00
|
|
|
pub const IFF_NO_PI: libc::c_int = 0x1000;
|
|
|
|
|