linux_net_bindings/
lib.rs#![expect(missing_docs)]
#![cfg(unix)]
#![expect(unsafe_code)]
use nix::ioctl_write_ptr_bad;
use nix::request_code_write;
use std::os::raw::c_int;
#[allow(non_camel_case_types)]
#[allow(non_upper_case_globals)]
#[expect(clippy::missing_safety_doc)]
#[expect(clippy::undocumented_unsafe_blocks)]
#[expect(clippy::ref_as_ptr)]
#[expect(clippy::ptr_as_ptr)]
pub mod gen_if;
#[allow(non_camel_case_types)]
#[allow(non_upper_case_globals)]
#[expect(clippy::missing_safety_doc)]
#[expect(clippy::undocumented_unsafe_blocks)]
#[expect(clippy::ref_as_ptr)]
#[expect(clippy::ptr_as_ptr)]
pub mod gen_if_tun;
ioctl_write_ptr_bad!(
tun_set_iff,
request_code_write!(b'T', 202, size_of::<c_int>()),
gen_if::ifreq
);