diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/.github/FUNDING.yml b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/.github/FUNDING.yml new file mode 100644 index 0000000000000000000000000000000000000000..750707701cdae985156601cc906195021ba6a6e5 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/.github/FUNDING.yml @@ -0,0 +1 @@ +github: dtolnay diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/.github/workflows/ci.yml b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/.github/workflows/ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..ccff8670500f318e52d8dd0ec3e6c3cd88582b4a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/.github/workflows/ci.yml @@ -0,0 +1,147 @@ +name: CI + +on: + push: + pull_request: + workflow_dispatch: + schedule: [cron: "40 1 * * *"] + +permissions: + contents: read + +env: + RUSTFLAGS: -Dwarnings + +jobs: + pre_ci: + uses: dtolnay/.github/.github/workflows/pre_ci.yml@master + + test: + name: Rust ${{matrix.rust}} + needs: pre_ci + if: needs.pre_ci.outputs.continue + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + rust: [nightly, beta, stable, 1.82.0, 1.80.0, 1.76.0] + timeout-minutes: 45 + steps: + - uses: actions/checkout@v6 + - uses: dtolnay/rust-toolchain@master + with: + toolchain: ${{matrix.rust}} + components: rust-src + - name: Enable type layout randomization + run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zrandomize-layout >> $GITHUB_ENV + if: matrix.rust == 'nightly' + - name: Enable nightly-only tests + run: echo RUSTFLAGS=${RUSTFLAGS}\ --cfg=anyhow_nightly_testing >> $GITHUB_ENV + if: matrix.rust == 'nightly' + - run: cargo test + - run: cargo check --no-default-features + - run: cargo check --features backtrace + if: matrix.rust != '1.80.0' && matrix.rust != '1.76.0' + - uses: actions/upload-artifact@v6 + if: matrix.rust == 'nightly' && always() + with: + name: Cargo.lock + path: Cargo.lock + continue-on-error: true + + build: + name: Rust ${{matrix.rust}} + needs: pre_ci + if: needs.pre_ci.outputs.continue + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + rust: [1.68.0] + timeout-minutes: 45 + steps: + - uses: actions/checkout@v6 + - uses: dtolnay/rust-toolchain@master + with: + toolchain: ${{matrix.rust}} + components: rust-src + - run: cargo check --manifest-path tests/crate/Cargo.toml + - run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-features + + minimal: + name: Minimal versions + needs: pre_ci + if: needs.pre_ci.outputs.continue + runs-on: ubuntu-latest + timeout-minutes: 45 + steps: + - uses: actions/checkout@v6 + - uses: dtolnay/rust-toolchain@nightly + - run: cargo generate-lockfile -Z minimal-versions + - run: cargo check --locked --features backtrace + + windows: + name: Windows + needs: pre_ci + if: needs.pre_ci.outputs.continue + runs-on: windows-latest + timeout-minutes: 45 + steps: + - uses: actions/checkout@v6 + - uses: dtolnay/rust-toolchain@stable + with: + components: rust-src + - run: cargo check --features backtrace + + doc: + name: Documentation + needs: pre_ci + if: needs.pre_ci.outputs.continue + runs-on: ubuntu-latest + timeout-minutes: 45 + env: + RUSTDOCFLAGS: -Dwarnings + steps: + - uses: actions/checkout@v6 + - uses: dtolnay/rust-toolchain@nightly + with: + components: rust-src + - uses: dtolnay/install@cargo-docs-rs + - run: cargo docs-rs + + clippy: + name: Clippy + runs-on: ubuntu-latest + if: github.event_name != 'pull_request' + timeout-minutes: 45 + steps: + - uses: actions/checkout@v6 + - uses: dtolnay/rust-toolchain@nightly + with: + components: clippy, rust-src + - run: cargo clippy --tests -- -Dclippy::all -Dclippy::pedantic + + miri: + name: Miri + needs: pre_ci + if: needs.pre_ci.outputs.continue + runs-on: ubuntu-latest + timeout-minutes: 45 + steps: + - uses: actions/checkout@v6 + - uses: dtolnay/rust-toolchain@miri + - run: cargo miri setup + - run: cargo miri test + env: + MIRIFLAGS: -Zmiri-strict-provenance + + outdated: + name: Outdated + runs-on: ubuntu-latest + if: github.event_name != 'pull_request' + timeout-minutes: 45 + steps: + - uses: actions/checkout@v6 + - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/install@cargo-outdated + - run: cargo outdated --workspace --exit-code 1 diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/backtrace.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/backtrace.rs new file mode 100644 index 0000000000000000000000000000000000000000..aa2ccdc8dea429db3361d92a35f6eb711ab6569c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/backtrace.rs @@ -0,0 +1,410 @@ +#[cfg(std_backtrace)] +pub(crate) use std::backtrace::{Backtrace, BacktraceStatus}; + +#[cfg(all(not(std_backtrace), feature = "backtrace"))] +pub(crate) use self::capture::{Backtrace, BacktraceStatus}; + +#[cfg(not(any(std_backtrace, feature = "backtrace")))] +pub(crate) enum Backtrace {} + +#[cfg(std_backtrace)] +macro_rules! impl_backtrace { + () => { + std::backtrace::Backtrace + }; +} + +#[cfg(all(not(std_backtrace), feature = "backtrace"))] +macro_rules! impl_backtrace { + () => { + impl core::fmt::Debug + core::fmt::Display + }; +} + +#[cfg(any(std_backtrace, feature = "backtrace"))] +macro_rules! backtrace { + () => { + Some(crate::backtrace::Backtrace::capture()) + }; +} + +#[cfg(not(any(std_backtrace, feature = "backtrace")))] +macro_rules! backtrace { + () => { + None + }; +} + +#[cfg(error_generic_member_access)] +macro_rules! backtrace_if_absent { + ($err:expr) => { + match $crate::nightly::request_ref_backtrace($err as &dyn core::error::Error) { + Some(_) => None, + None => backtrace!(), + } + }; +} + +#[cfg(all( + any(feature = "std", not(anyhow_no_core_error)), + not(error_generic_member_access), + any(std_backtrace, feature = "backtrace") +))] +macro_rules! backtrace_if_absent { + ($err:expr) => { + backtrace!() + }; +} + +#[cfg(all( + any(feature = "std", not(anyhow_no_core_error)), + not(std_backtrace), + not(feature = "backtrace"), +))] +macro_rules! backtrace_if_absent { + ($err:expr) => { + None + }; +} + +#[cfg(all(not(std_backtrace), feature = "backtrace"))] +mod capture { + use alloc::borrow::{Cow, ToOwned as _}; + use alloc::vec::Vec; + use backtrace::{BacktraceFmt, BytesOrWideString, Frame, PrintFmt, SymbolName}; + use core::cell::UnsafeCell; + use core::fmt::{self, Debug, Display}; + use core::sync::atomic::{AtomicUsize, Ordering}; + use std::env; + use std::path::{self, Path, PathBuf}; + use std::sync::Once; + + pub(crate) struct Backtrace { + inner: Inner, + } + + pub(crate) enum BacktraceStatus { + Unsupported, + Disabled, + Captured, + } + + enum Inner { + Unsupported, + Disabled, + Captured(LazilyResolvedCapture), + } + + struct Capture { + actual_start: usize, + resolved: bool, + frames: Vec, + } + + struct BacktraceFrame { + frame: Frame, + symbols: Vec, + } + + struct BacktraceSymbol { + name: Option>, + filename: Option, + lineno: Option, + colno: Option, + } + + enum BytesOrWide { + Bytes(Vec), + Wide(Vec), + } + + impl Debug for Backtrace { + fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { + let capture = match &self.inner { + Inner::Unsupported => return fmt.write_str(""), + Inner::Disabled => return fmt.write_str(""), + Inner::Captured(c) => c.force(), + }; + + let frames = &capture.frames[capture.actual_start..]; + + write!(fmt, "Backtrace ")?; + + let mut dbg = fmt.debug_list(); + + for frame in frames { + if frame.frame.ip().is_null() { + continue; + } + + dbg.entries(&frame.symbols); + } + + dbg.finish() + } + } + + impl Debug for BacktraceFrame { + fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { + let mut dbg = fmt.debug_list(); + dbg.entries(&self.symbols); + dbg.finish() + } + } + + impl Debug for BacktraceSymbol { + fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { + write!(fmt, "{{ ")?; + + if let Some(fn_name) = self.name.as_ref().map(|b| SymbolName::new(b)) { + write!(fmt, "fn: \"{:#}\"", fn_name)?; + } else { + write!(fmt, "fn: ")?; + } + + if let Some(fname) = self.filename.as_ref() { + write!(fmt, ", file: \"{:?}\"", fname)?; + } + + if let Some(line) = self.lineno { + write!(fmt, ", line: {:?}", line)?; + } + + write!(fmt, " }}") + } + } + + impl Debug for BytesOrWide { + fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { + output_filename( + fmt, + match self { + BytesOrWide::Bytes(w) => BytesOrWideString::Bytes(w), + BytesOrWide::Wide(w) => BytesOrWideString::Wide(w), + }, + PrintFmt::Short, + env::current_dir().as_ref().ok(), + ) + } + } + + impl Backtrace { + fn enabled() -> bool { + static ENABLED: AtomicUsize = AtomicUsize::new(0); + match ENABLED.load(Ordering::Relaxed) { + 0 => {} + 1 => return false, + _ => return true, + } + let enabled = match env::var_os("RUST_LIB_BACKTRACE") { + Some(s) => s != "0", + None => match env::var_os("RUST_BACKTRACE") { + Some(s) => s != "0", + None => false, + }, + }; + ENABLED.store(enabled as usize + 1, Ordering::Relaxed); + enabled + } + + #[inline(never)] // want to make sure there's a frame here to remove + pub(crate) fn capture() -> Backtrace { + if Backtrace::enabled() { + Backtrace::create(Backtrace::capture as usize) + } else { + let inner = Inner::Disabled; + Backtrace { inner } + } + } + + // Capture a backtrace which starts just before the function addressed + // by `ip` + fn create(ip: usize) -> Backtrace { + let mut frames = Vec::new(); + let mut actual_start = None; + backtrace::trace(|frame| { + frames.push(BacktraceFrame { + frame: frame.clone(), + symbols: Vec::new(), + }); + if frame.symbol_address() as usize == ip && actual_start.is_none() { + actual_start = Some(frames.len() + 1); + } + true + }); + + // If no frames came out, assume that this is an unsupported platform + // since `backtrace` doesn't provide a way of learning this right + // now, and this should be a good enough approximation. + let inner = if frames.is_empty() { + Inner::Unsupported + } else { + Inner::Captured(LazilyResolvedCapture::new(Capture { + actual_start: actual_start.unwrap_or(0), + frames, + resolved: false, + })) + }; + + Backtrace { inner } + } + + pub(crate) fn status(&self) -> BacktraceStatus { + match self.inner { + Inner::Unsupported => BacktraceStatus::Unsupported, + Inner::Disabled => BacktraceStatus::Disabled, + Inner::Captured(_) => BacktraceStatus::Captured, + } + } + } + + impl Display for Backtrace { + fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { + let capture = match &self.inner { + Inner::Unsupported => return fmt.write_str("unsupported backtrace"), + Inner::Disabled => return fmt.write_str("disabled backtrace"), + Inner::Captured(c) => c.force(), + }; + + let full = fmt.alternate(); + let (frames, style) = if full { + (&capture.frames[..], PrintFmt::Full) + } else { + (&capture.frames[capture.actual_start..], PrintFmt::Short) + }; + + // When printing paths we try to strip the cwd if it exists, + // otherwise we just print the path as-is. Note that we also only do + // this for the short format, because if it's full we presumably + // want to print everything. + let cwd = env::current_dir(); + let mut print_path = move |fmt: &mut fmt::Formatter, path: BytesOrWideString| { + output_filename(fmt, path, style, cwd.as_ref().ok()) + }; + + let mut f = BacktraceFmt::new(fmt, style, &mut print_path); + f.add_context()?; + for frame in frames { + let mut f = f.frame(); + if frame.symbols.is_empty() { + f.print_raw(frame.frame.ip(), None, None, None)?; + } else { + for symbol in frame.symbols.iter() { + f.print_raw_with_column( + frame.frame.ip(), + symbol.name.as_ref().map(|b| SymbolName::new(b)), + symbol.filename.as_ref().map(|b| match b { + BytesOrWide::Bytes(w) => BytesOrWideString::Bytes(w), + BytesOrWide::Wide(w) => BytesOrWideString::Wide(w), + }), + symbol.lineno, + symbol.colno, + )?; + } + } + } + f.finish()?; + Ok(()) + } + } + + struct LazilyResolvedCapture { + sync: Once, + capture: UnsafeCell, + } + + impl LazilyResolvedCapture { + fn new(capture: Capture) -> Self { + LazilyResolvedCapture { + sync: Once::new(), + capture: UnsafeCell::new(capture), + } + } + + fn force(&self) -> &Capture { + self.sync.call_once(|| { + // Safety: This exclusive reference can't overlap with any + // others. `Once` guarantees callers will block until this + // closure returns. `Once` also guarantees only a single caller + // will enter this closure. + unsafe { &mut *self.capture.get() }.resolve(); + }); + + // Safety: This shared reference can't overlap with the exclusive + // reference above. + unsafe { &*self.capture.get() } + } + } + + // Safety: Access to the inner value is synchronized using a thread-safe + // `Once`. So long as `Capture` is `Sync`, `LazilyResolvedCapture` is too + unsafe impl Sync for LazilyResolvedCapture where Capture: Sync {} + + impl Capture { + fn resolve(&mut self) { + // If we're already resolved, nothing to do! + if self.resolved { + return; + } + self.resolved = true; + + for frame in self.frames.iter_mut() { + let symbols = &mut frame.symbols; + let frame = &frame.frame; + backtrace::resolve_frame(frame, |symbol| { + symbols.push(BacktraceSymbol { + name: symbol.name().map(|m| m.as_bytes().to_vec()), + filename: symbol.filename_raw().map(|b| match b { + BytesOrWideString::Bytes(b) => BytesOrWide::Bytes(b.to_owned()), + BytesOrWideString::Wide(b) => BytesOrWide::Wide(b.to_owned()), + }), + lineno: symbol.lineno(), + colno: symbol.colno(), + }); + }); + } + } + } + + // Prints the filename of the backtrace frame. + fn output_filename( + fmt: &mut fmt::Formatter, + bows: BytesOrWideString, + print_fmt: PrintFmt, + cwd: Option<&PathBuf>, + ) -> fmt::Result { + let file: Cow = match bows { + #[cfg(unix)] + BytesOrWideString::Bytes(bytes) => { + use std::os::unix::ffi::OsStrExt; + Path::new(std::ffi::OsStr::from_bytes(bytes)).into() + } + #[cfg(not(unix))] + BytesOrWideString::Bytes(bytes) => { + Path::new(std::str::from_utf8(bytes).unwrap_or("")).into() + } + #[cfg(windows)] + BytesOrWideString::Wide(wide) => { + use std::os::windows::ffi::OsStringExt; + Cow::Owned(std::ffi::OsString::from_wide(wide).into()) + } + #[cfg(not(windows))] + BytesOrWideString::Wide(_wide) => Path::new("").into(), + }; + if print_fmt == PrintFmt::Short && file.is_absolute() { + if let Some(cwd) = cwd { + if let Ok(stripped) = file.strip_prefix(&cwd) { + if let Some(s) = stripped.to_str() { + return write!(fmt, ".{}{}", path::MAIN_SEPARATOR, s); + } + } + } + } + Display::fmt(&file.display(), fmt) + } +} + +fn _assert_send_sync() { + fn assert() {} + assert::(); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/chain.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/chain.rs new file mode 100644 index 0000000000000000000000000000000000000000..e56bc6696280ef303d352e08f9912830ade4b90f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/chain.rs @@ -0,0 +1,102 @@ +use self::ChainState::*; +use crate::StdError; + +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +use alloc::vec::{self, Vec}; + +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +pub(crate) use crate::Chain; + +#[cfg(all(not(feature = "std"), anyhow_no_core_error))] +pub(crate) struct Chain<'a> { + state: ChainState<'a>, +} + +#[derive(Clone)] +pub(crate) enum ChainState<'a> { + Linked { + next: Option<&'a (dyn StdError + 'static)>, + }, + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + Buffered { + rest: vec::IntoIter<&'a (dyn StdError + 'static)>, + }, +} + +impl<'a> Chain<'a> { + #[cold] + pub fn new(head: &'a (dyn StdError + 'static)) -> Self { + Chain { + state: ChainState::Linked { next: Some(head) }, + } + } +} + +impl<'a> Iterator for Chain<'a> { + type Item = &'a (dyn StdError + 'static); + + fn next(&mut self) -> Option { + match &mut self.state { + Linked { next } => { + let error = (*next)?; + *next = error.source(); + Some(error) + } + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + Buffered { rest } => rest.next(), + } + } + + fn size_hint(&self) -> (usize, Option) { + let len = self.len(); + (len, Some(len)) + } +} + +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +impl DoubleEndedIterator for Chain<'_> { + fn next_back(&mut self) -> Option { + match &mut self.state { + Linked { mut next } => { + let mut rest = Vec::new(); + while let Some(cause) = next { + next = cause.source(); + rest.push(cause); + } + let mut rest = rest.into_iter(); + let last = rest.next_back(); + self.state = Buffered { rest }; + last + } + Buffered { rest } => rest.next_back(), + } + } +} + +impl ExactSizeIterator for Chain<'_> { + fn len(&self) -> usize { + match &self.state { + Linked { mut next } => { + let mut len = 0; + while let Some(cause) = next { + next = cause.source(); + len += 1; + } + len + } + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + Buffered { rest } => rest.len(), + } + } +} + +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +impl Default for Chain<'_> { + fn default() -> Self { + Chain { + state: ChainState::Buffered { + rest: Vec::new().into_iter(), + }, + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/context.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/context.rs new file mode 100644 index 0000000000000000000000000000000000000000..52e6ab6fdb315e935c80f8bed8fbfb121c3f0493 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/context.rs @@ -0,0 +1,193 @@ +use crate::error::ContextError; +use crate::{Context, Error, StdError}; +use core::convert::Infallible; +use core::fmt::{self, Debug, Display, Write}; + +#[cfg(error_generic_member_access)] +use crate::nightly::{self, Request}; + +mod ext { + use super::*; + + pub trait StdError { + fn ext_context(self, context: C) -> Error + where + C: Display + Send + Sync + 'static; + } + + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + impl StdError for E + where + E: crate::StdError + Send + Sync + 'static, + { + fn ext_context(self, context: C) -> Error + where + C: Display + Send + Sync + 'static, + { + let backtrace = backtrace_if_absent!(&self); + Error::construct_from_context(context, self, backtrace) + } + } + + impl StdError for Error { + fn ext_context(self, context: C) -> Error + where + C: Display + Send + Sync + 'static, + { + self.context(context) + } + } +} + +impl Context for Result +where + E: ext::StdError + Send + Sync + 'static, +{ + fn context(self, context: C) -> Result + where + C: Display + Send + Sync + 'static, + { + // Not using map_err to save 2 useless frames off the captured backtrace + // in ext_context. + match self { + Ok(ok) => Ok(ok), + Err(error) => Err(error.ext_context(context)), + } + } + + fn with_context(self, context: F) -> Result + where + C: Display + Send + Sync + 'static, + F: FnOnce() -> C, + { + match self { + Ok(ok) => Ok(ok), + Err(error) => Err(error.ext_context(context())), + } + } +} + +/// ``` +/// # type T = (); +/// # +/// use anyhow::{Context, Result}; +/// +/// fn maybe_get() -> Option { +/// # const IGNORE: &str = stringify! { +/// ... +/// # }; +/// # unimplemented!() +/// } +/// +/// fn demo() -> Result<()> { +/// let t = maybe_get().context("there is no T")?; +/// # const IGNORE: &str = stringify! { +/// ... +/// # }; +/// # unimplemented!() +/// } +/// ``` +impl Context for Option { + fn context(self, context: C) -> Result + where + C: Display + Send + Sync + 'static, + { + // Not using ok_or_else to save 2 useless frames off the captured + // backtrace. + match self { + Some(ok) => Ok(ok), + None => Err(Error::construct_from_display(context, backtrace!())), + } + } + + fn with_context(self, context: F) -> Result + where + C: Display + Send + Sync + 'static, + F: FnOnce() -> C, + { + match self { + Some(ok) => Ok(ok), + None => Err(Error::construct_from_display(context(), backtrace!())), + } + } +} + +impl Debug for ContextError +where + C: Display, + E: Debug, +{ + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + f.debug_struct("Error") + .field("context", &Quoted(&self.context)) + .field("source", &self.error) + .finish() + } +} + +impl Display for ContextError +where + C: Display, +{ + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + Display::fmt(&self.context, f) + } +} + +impl StdError for ContextError +where + C: Display, + E: StdError + 'static, +{ + fn source(&self) -> Option<&(dyn StdError + 'static)> { + Some(&self.error) + } + + #[cfg(error_generic_member_access)] + fn provide<'a>(&'a self, request: &mut Request<'a>) { + nightly::provide(&self.error, request); + } +} + +impl StdError for ContextError +where + C: Display, +{ + fn source(&self) -> Option<&(dyn StdError + 'static)> { + Some(unsafe { crate::ErrorImpl::error(self.error.inner.by_ref()) }) + } + + #[cfg(error_generic_member_access)] + fn provide<'a>(&'a self, request: &mut Request<'a>) { + Error::provide(&self.error, request); + } +} + +struct Quoted(C); + +impl Debug for Quoted +where + C: Display, +{ + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_char('"')?; + Quoted(&mut *formatter).write_fmt(format_args!("{}", self.0))?; + formatter.write_char('"')?; + Ok(()) + } +} + +impl Write for Quoted<&mut fmt::Formatter<'_>> { + fn write_str(&mut self, s: &str) -> fmt::Result { + Display::fmt(&s.escape_debug(), self.0) + } +} + +pub(crate) mod private { + use super::*; + + pub trait Sealed {} + + impl Sealed for Result where E: ext::StdError {} + impl Sealed for Option {} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/ensure.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/ensure.rs new file mode 100644 index 0000000000000000000000000000000000000000..795757d4b77561836d5a522a71bed973873a0722 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/ensure.rs @@ -0,0 +1,935 @@ +use crate::Error; +use alloc::string::String; +use core::fmt::{self, Debug, Write}; +use core::mem::MaybeUninit; +use core::ptr; +use core::slice; +use core::str; + +#[doc(hidden)] +pub trait BothDebug { + fn __dispatch_ensure(self, msg: &'static str) -> Error; +} + +impl BothDebug for (A, B) +where + A: Debug, + B: Debug, +{ + fn __dispatch_ensure(self, msg: &'static str) -> Error { + render(msg, &self.0, &self.1) + } +} + +#[doc(hidden)] +pub trait NotBothDebug { + fn __dispatch_ensure(self, msg: &'static str) -> Error; +} + +impl NotBothDebug for &(A, B) { + fn __dispatch_ensure(self, msg: &'static str) -> Error { + Error::msg(msg) + } +} + +struct Buf { + bytes: [MaybeUninit; 40], + written: usize, +} + +impl Buf { + fn new() -> Self { + Buf { + bytes: [MaybeUninit::uninit(); 40], + written: 0, + } + } + + fn as_str(&self) -> &str { + unsafe { + str::from_utf8_unchecked(slice::from_raw_parts( + self.bytes.as_ptr().cast::(), + self.written, + )) + } + } +} + +impl Write for Buf { + fn write_str(&mut self, s: &str) -> fmt::Result { + if s.bytes().any(|b| b == b' ' || b == b'\n') { + return Err(fmt::Error); + } + + let remaining = self.bytes.len() - self.written; + if s.len() > remaining { + return Err(fmt::Error); + } + + unsafe { + ptr::copy_nonoverlapping( + s.as_ptr(), + self.bytes.as_mut_ptr().add(self.written).cast::(), + s.len(), + ); + } + self.written += s.len(); + Ok(()) + } +} + +fn render(msg: &'static str, lhs: &dyn Debug, rhs: &dyn Debug) -> Error { + let mut lhs_buf = Buf::new(); + if fmt::write(&mut lhs_buf, format_args!("{:?}", lhs)).is_ok() { + let mut rhs_buf = Buf::new(); + if fmt::write(&mut rhs_buf, format_args!("{:?}", rhs)).is_ok() { + let lhs_str = lhs_buf.as_str(); + let rhs_str = rhs_buf.as_str(); + // "{msg} ({lhs} vs {rhs})" + let len = msg.len() + 2 + lhs_str.len() + 4 + rhs_str.len() + 1; + let mut string = String::with_capacity(len); + string.push_str(msg); + string.push_str(" ("); + string.push_str(lhs_str); + string.push_str(" vs "); + string.push_str(rhs_str); + string.push(')'); + return Error::msg(string); + } + } + Error::msg(msg) +} + +#[doc(hidden)] +#[macro_export] +macro_rules! __parse_ensure { + (atom () $bail:tt $fuel:tt {($($rhs:tt)+) ($($lhs:tt)+) $op:tt} $dup:tt $(,)?) => { + $crate::__fancy_ensure!($($lhs)+, $op, $($rhs)+) + }; + + // low precedence control flow constructs + + (0 $stack:tt ($($bail:tt)*) $fuel:tt $parse:tt $dup:tt return $($rest:tt)*) => { + $crate::__fallback_ensure!($($bail)*) + }; + + (0 $stack:tt ($($bail:tt)*) $fuel:tt $parse:tt $dup:tt break $($rest:tt)*) => { + $crate::__fallback_ensure!($($bail)*) + }; + + (0 $stack:tt ($($bail:tt)*) $fuel:tt $parse:tt $dup:tt continue $($rest:tt)*) => { + $crate::__fallback_ensure!($($bail)*) + }; + + (0 $stack:tt ($($bail:tt)*) $fuel:tt $parse:tt $dup:tt yield $($rest:tt)*) => { + $crate::__fallback_ensure!($($bail)*) + }; + + (0 $stack:tt ($($bail:tt)*) $fuel:tt $parse:tt $dup:tt move $($rest:tt)*) => { + $crate::__fallback_ensure!($($bail)*) + }; + + // unary operators + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($deref:tt $($dup:tt)*) * $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $deref) $($parse)*} ($($rest)*) $($rest)*) + }; + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($not:tt $($dup:tt)*) ! $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $not) $($parse)*} ($($rest)*) $($rest)*) + }; + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($neg:tt $($dup:tt)*) - $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $neg) $($parse)*} ($($rest)*) $($rest)*) + }; + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($let:tt $($dup:tt)*) let $($rest:tt)*) => { + $crate::__parse_ensure!(pat $stack $bail ($($fuel)*) {($($buf)* $let) $($parse)*} ($($rest)*) $($rest)*) + }; + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($lifetime:tt $colon:tt $($dup:tt)*) $label:lifetime : $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $lifetime $colon) $($parse)*} ($($rest)*) $($rest)*) + }; + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($and:tt $mut:tt $($dup:tt)*) &mut $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $and $mut) $($parse)*} ($($rest)*) $($rest)*) + }; + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($and:tt $raw:tt $mut:tt $($dup:tt)*) &raw mut $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $and $raw $mut) $($parse)*} ($($rest)*) $($rest)*) + }; + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($and:tt $raw:tt $const:tt $($dup:tt)*) &raw const $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $and $raw $const) $($parse)*} ($($rest)*) $($rest)*) + }; + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($and:tt $($dup:tt)*) & $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $and) $($parse)*} ($($rest)*) $($rest)*) + }; + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($andand:tt $mut:tt $($dup:tt)*) &&mut $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $andand $mut) $($parse)*} ($($rest)*) $($rest)*) + }; + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($andand:tt $raw:tt $mut:tt $($dup:tt)*) &&raw mut $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $andand $raw $mut) $($parse)*} ($($rest)*) $($rest)*) + }; + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($andand:tt $raw:tt $const:tt $($dup:tt)*) &&raw const $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $andand $raw $const) $($parse)*} ($($rest)*) $($rest)*) + }; + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($andand:tt $($dup:tt)*) && $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $andand) $($parse)*} ($($rest)*) $($rest)*) + }; + + // control flow constructs + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($if:tt $($dup:tt)*) if $($rest:tt)*) => { + $crate::__parse_ensure!(0 (cond $stack) $bail ($($fuel)*) {($($buf)* $if) $($parse)*} ($($rest)*) $($rest)*) + }; + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($match:tt $($dup:tt)*) match $($rest:tt)*) => { + $crate::__parse_ensure!(0 (cond $stack) $bail ($($fuel)*) {($($buf)* $match) $($parse)*} ($($rest)*) $($rest)*) + }; + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($while:tt $($dup:tt)*) while $($rest:tt)*) => { + $crate::__parse_ensure!(0 (cond $stack) $bail ($($fuel)*) {($($buf)* $while) $($parse)*} ($($rest)*) $($rest)*) + }; + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($for:tt $($dup:tt)*) for $($rest:tt)*) => { + $crate::__parse_ensure!(pat (cond $stack) $bail ($($fuel)*) {($($buf)* $for) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom (cond $stack:tt) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($brace:tt $($dup:tt)*) {$($block:tt)*} $($rest:tt)*) => { + $crate::__parse_ensure!(cond $stack $bail ($($fuel)*) {($($buf)* $brace) $($parse)*} ($($rest)*) $($rest)*) + }; + + (cond $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($else:tt $if:tt $($dup:tt)*) else if $($rest:tt)*) => { + $crate::__parse_ensure!(0 (cond $stack) $bail ($($fuel)*) {($($buf)* $else $if) $($parse)*} ($($rest)*) $($rest)*) + }; + + (cond $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($else:tt $brace:tt $($dup:tt)*) else {$($block:tt)*} $($rest:tt)*) => { + $crate::__parse_ensure!(atom $stack $bail ($($fuel)*) {($($buf)* $else $brace) $($parse)*} ($($rest)*) $($rest)*) + }; + + (cond $stack:tt $bail:tt (~$($fuel:tt)*) $parse:tt $dup:tt $($rest:tt)*) => { + $crate::__parse_ensure!(atom $stack $bail ($($fuel)*) $parse $dup $($rest)*) + }; + + // atomic expressions + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($paren:tt $($dup:tt)*) ($($content:tt)*) $($rest:tt)*) => { + $crate::__parse_ensure!(atom $stack $bail ($($fuel)*) {($($buf)* $paren) $($parse)*} ($($rest)*) $($rest)*) + }; + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($bracket:tt $($dup:tt)*) [$($array:tt)*] $($rest:tt)*) => { + $crate::__parse_ensure!(atom $stack $bail ($($fuel)*) {($($buf)* $bracket) $($parse)*} ($($rest)*) $($rest)*) + }; + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($brace:tt $($dup:tt)*) {$($block:tt)*} $($rest:tt)*) => { + $crate::__parse_ensure!(atom $stack $bail ($($fuel)*) {($($buf)* $brace) $($parse)*} ($($rest)*) $($rest)*) + }; + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($loop:tt $block:tt $($dup:tt)*) loop {$($body:tt)*} $($rest:tt)*) => { + $crate::__parse_ensure!(atom $stack $bail ($($fuel)*) {($($buf)* $loop $block) $($parse)*} ($($rest)*) $($rest)*) + }; + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($async:tt $block:tt $($dup:tt)*) async {$($body:tt)*} $($rest:tt)*) => { + $crate::__parse_ensure!(atom $stack $bail ($($fuel)*) {($($buf)* $async $block) $($parse)*} ($($rest)*) $($rest)*) + }; + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($async:tt $move:tt $block:tt $($dup:tt)*) async move {$($body:tt)*} $($rest:tt)*) => { + $crate::__parse_ensure!(atom $stack $bail ($($fuel)*) {($($buf)* $async $move $block) $($parse)*} ($($rest)*) $($rest)*) + }; + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($unsafe:tt $block:tt $($dup:tt)*) unsafe {$($body:tt)*} $($rest:tt)*) => { + $crate::__parse_ensure!(atom $stack $bail ($($fuel)*) {($($buf)* $unsafe $block) $($parse)*} ($($rest)*) $($rest)*) + }; + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($const:tt $block:tt $($dup:tt)*) const {$($body:tt)*} $($rest:tt)*) => { + // TODO: this is mostly useless due to https://github.com/rust-lang/rust/issues/86730 + $crate::__parse_ensure!(atom $stack $bail ($($fuel)*) {($($buf)* $const $block) $($parse)*} ($($rest)*) $($rest)*) + }; + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($literal:tt $($dup:tt)*) $lit:literal $($rest:tt)*) => { + $crate::__parse_ensure!(atom $stack $bail ($($fuel)*) {($($buf)* $literal) $($parse)*} ($($rest)*) $($rest)*) + }; + + // path expressions + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($colons:tt $ident:tt $($dup:tt)*) :: $i:ident $($rest:tt)*) => { + $crate::__parse_ensure!(epath (atom $stack) $bail ($($fuel)*) {($($buf)* $colons $ident) $($parse)*} ($($rest)*) $($rest)*) + }; + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($ident:tt $($dup:tt)*) $i:ident $($rest:tt)*) => { + $crate::__parse_ensure!(epath (atom $stack) $bail ($($fuel)*) {($($buf)* $ident) $($parse)*} ($($rest)*) $($rest)*) + }; + + (0 $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($langle:tt $($dup:tt)*) < $($rest:tt)*) => { + $crate::__parse_ensure!(type (qpath (epath (atom $stack))) $bail ($($fuel)*) {($($buf)* $langle) $($parse)*} ($($rest)*) $($rest)*) + }; + + (epath $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($colons:tt $langle:tt $($dup:tt)*) :: < $($rest:tt)*) => { + $crate::__parse_ensure!(generic (epath $stack) $bail ($($fuel)*) {($($buf)* $colons $langle) $($parse)*} ($($rest)*) $($rest)*) + }; + + (epath $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($colons:tt $langle:tt $($dup:tt)*) :: << $($rest:tt)*) => { + $crate::__parse_ensure!(type (qpath (tpath (arglist (epath $stack)))) $bail ($($fuel)*) {($($buf)* $colons $langle) $($parse)*} ($($rest)*) $($rest)*) + }; + + (epath $stack:tt ($($bail:tt)*) (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} $dup:tt :: <- - $($rest:tt)*) => { + $crate::__fallback_ensure!($($bail)*) + }; + + (epath $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($colons:tt $larrow:tt $($dup:tt)*) :: <- $lit:literal $($rest:tt)*) => { + $crate::__parse_ensure!(generic (epath $stack) $bail ($($fuel)*) {($($buf)* $colons $larrow) $($parse)*} ($($dup)*) $($dup)*) + }; + + (epath $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($colons:tt $ident:tt $($dup:tt)*) :: $i:ident $($rest:tt)*) => { + $crate::__parse_ensure!(epath $stack $bail ($($fuel)*) {($($buf)* $colons $ident) $($parse)*} ($($rest)*) $($rest)*) + }; + + (epath ($pop:ident $stack:tt) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($bang:tt $args:tt $($dup:tt)*) ! ($($mac:tt)*) $($rest:tt)*) => { + $crate::__parse_ensure!($pop $stack $bail ($($fuel)*) {($($buf)* $bang $args) $($parse)*} ($($rest)*) $($rest)*) + }; + + (epath ($pop:ident $stack:tt) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($bang:tt $args:tt $($dup:tt)*) ! [$($mac:tt)*] $($rest:tt)*) => { + $crate::__parse_ensure!($pop $stack $bail ($($fuel)*) {($($buf)* $bang $args) $($parse)*} ($($rest)*) $($rest)*) + }; + + (epath ($pop:ident $stack:tt) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($bang:tt $args:tt $($dup:tt)*) ! {$($mac:tt)*} $($rest:tt)*) => { + $crate::__parse_ensure!($pop $stack $bail ($($fuel)*) {($($buf)* $bang $args) $($parse)*} ($($rest)*) $($rest)*) + }; + + (epath (split ($pop:ident $stack:tt)) $bail:tt (~$($fuel:tt)*) $parse:tt $dup:tt $($rest:tt)*) => { + $crate::__parse_ensure!($pop (split $stack) $bail ($($fuel)*) $parse $dup $($rest)*) + }; + + (epath ($pop:ident $stack:tt) $bail:tt (~$($fuel:tt)*) $parse:tt $dup:tt $($rest:tt)*) => { + $crate::__parse_ensure!($pop $stack $bail ($($fuel)*) $parse $dup $($rest)*) + }; + + // trailer expressions + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($paren:tt $($dup:tt)*) ($($call:tt)*) $($rest:tt)*) => { + $crate::__parse_ensure!(atom $stack $bail ($($fuel)*) {($($buf)* $paren) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($bracket:tt $($dup:tt)*) [$($index:tt)*] $($rest:tt)*) => { + $crate::__parse_ensure!(atom $stack $bail ($($fuel)*) {($($buf)* $bracket) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($brace:tt $($dup:tt)*) {$($init:tt)*} $($rest:tt)*) => { + $crate::__parse_ensure!(atom $stack $bail ($($fuel)*) {($($buf)* $brace) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($question:tt $($dup:tt)*) ? $($rest:tt)*) => { + $crate::__parse_ensure!(atom $stack $bail ($($fuel)*) {($($buf)* $question) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($dot:tt $ident:tt $colons:tt $langle:tt $($dup:tt)*) . $i:ident :: < $($rest:tt)*) => { + $crate::__parse_ensure!(generic (atom $stack) $bail ($($fuel)*) {($($buf)* $dot $ident $colons $langle) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($dot:tt $ident:tt $colons:tt $langle:tt $($dup:tt)*) . $i:ident :: << $($rest:tt)*) => { + $crate::__parse_ensure!(type (qpath (tpath (arglist (atom $stack)))) $bail ($($fuel)*) {($($buf)* $dot $ident $colons $langle) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom $stack:tt ($($bail:tt)*) (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} $dup:tt . $i:ident :: <- - $($rest:tt)*) => { + $crate::__fallback_ensure!($($bail)*) + }; + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($dot:tt $ident:tt $colons:tt $larrow:tt $($dup:tt)*) . $i:ident :: <- $lit:literal $($rest:tt)*) => { + $crate::__parse_ensure!(generic (atom $stack) $bail ($($fuel)*) {($($buf)* $dot $ident $colons $larrow) $($parse)*} ($($dup)*) $($dup)*) + }; + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($dot:tt $field:tt $($dup:tt)*) . $i:ident $($rest:tt)*) => { + $crate::__parse_ensure!(atom $stack $bail ($($fuel)*) {($($buf)* $dot $field) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom $stack:tt ($($bail:tt)*) (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} $dup:tt . - $($rest:tt)*) => { + $crate::__fallback_ensure!($($bail)*) + }; + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($dot:tt $index:tt $($dup:tt)*) . $lit:literal $($rest:tt)*) => { + $crate::__parse_ensure!(atom $stack $bail ($($fuel)*) {($($buf)* $dot $index) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($as:tt $($dup:tt)*) as $($rest:tt)*) => { + $crate::__parse_ensure!(type (atom $stack) $bail ($($fuel)*) {($($buf)* $as) $($parse)*} ($($rest)*) $($rest)*) + }; + + // types + + (type ($pop:ident $stack:tt) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($bracket:tt $($dup:tt)*) [$($content:tt)*] $($rest:tt)*) => { + $crate::__parse_ensure!($pop $stack $bail ($($fuel)*) {($($buf)* $bracket) $($parse)*} ($($rest)*) $($rest)*) + }; + + (type ($pop:ident $stack:tt) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($paren:tt $($dup:tt)*) ($($content:tt)*) $($rest:tt)*) => { + $crate::__parse_ensure!($pop $stack $bail ($($fuel)*) {($($buf)* $paren) $($parse)*} ($($rest)*) $($rest)*) + }; + + (type $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($star:tt $const:tt $($dup:tt)*) *const $($rest:tt)*) => { + $crate::__parse_ensure!(type $stack $bail ($($fuel)*) {($($buf)* $star $const) $($parse)*} ($($rest)*) $($rest)*) + }; + + (type $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($star:tt $mut:tt $($dup:tt)*) *mut $($rest:tt)*) => { + $crate::__parse_ensure!(type $stack $bail ($($fuel)*) {($($buf)* $star $mut) $($parse)*} ($($rest)*) $($rest)*) + }; + + (type $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($and:tt $lifetime:tt $mut:tt $($dup:tt)*) & $l:lifetime mut $($rest:tt)*) => { + $crate::__parse_ensure!(type $stack $bail ($($fuel)*) {($($buf)* $and $lifetime $mut) $($parse)*} ($($rest)*) $($rest)*) + }; + + (type $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($and:tt $mut:tt $($dup:tt)*) & mut $($rest:tt)*) => { + $crate::__parse_ensure!(type $stack $bail ($($fuel)*) {($($buf)* $and $mut) $($parse)*} ($($rest)*) $($rest)*) + }; + + (type $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($and:tt $lifetime:tt $($dup:tt)*) & $l:lifetime $($rest:tt)*) => { + $crate::__parse_ensure!(type $stack $bail ($($fuel)*) {($($buf)* $and $lifetime) $($parse)*} ($($rest)*) $($rest)*) + }; + + (type $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($and:tt $($dup:tt)*) & $($rest:tt)*) => { + $crate::__parse_ensure!(type $stack $bail ($($fuel)*) {($($buf)* $and) $($parse)*} ($($rest)*) $($rest)*) + }; + + (type $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($and:tt $lifetime:tt $mut:tt $($dup:tt)*) && $l:lifetime mut $($rest:tt)*) => { + $crate::__parse_ensure!(type $stack $bail ($($fuel)*) {($($buf)* $and $lifetime $mut) $($parse)*} ($($rest)*) $($rest)*) + }; + + (type $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($and:tt $mut:tt $($dup:tt)*) && mut $($rest:tt)*) => { + $crate::__parse_ensure!(type $stack $bail ($($fuel)*) {($($buf)* $and $mut) $($parse)*} ($($rest)*) $($rest)*) + }; + + (type $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($and:tt $lifetime:tt $($dup:tt)*) && $l:lifetime $($rest:tt)*) => { + $crate::__parse_ensure!(type $stack $bail ($($fuel)*) {($($buf)* $and $lifetime) $($parse)*} ($($rest)*) $($rest)*) + }; + + (type $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($and:tt $($dup:tt)*) && $($rest:tt)*) => { + $crate::__parse_ensure!(type $stack $bail ($($fuel)*) {($($buf)* $and) $($parse)*} ($($rest)*) $($rest)*) + }; + + (type $stack:tt ($($bail:tt)*) (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} $dup:tt unsafe extern - $($rest:tt)*) => { + $crate::__fallback_ensure!($($bail)*) + }; + + (type $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($unsafe:tt $(extern $($abi:literal)?)? fn $($dup:tt)*) unsafe $($rest:tt)*) => { + $crate::__parse_ensure!(type $stack $bail ($($fuel)*) {($($buf)* $unsafe) $($parse)*} ($($rest)*) $($rest)*) + }; + + (type $stack:tt ($($bail:tt)*) (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} $dup:tt extern - $($rest:tt)*) => { + $crate::__fallback_ensure!($($bail)*) + }; + + (type $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($extern:tt $abi:tt fn $($dup:tt)*) extern $lit:literal $($rest:tt)*) => { + $crate::__parse_ensure!(type $stack $bail ($($fuel)*) {($($buf)* $extern $abi) $($parse)*} ($($rest)*) $($rest)*) + }; + + (type $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($extern:tt fn $($dup:tt)*) extern $($rest:tt)*) => { + $crate::__parse_ensure!(type $stack $bail ($($fuel)*) {($($buf)* $extern) $($parse)*} ($($rest)*) $($rest)*) + }; + + (type $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($fn:tt $paren:tt $arrow:tt $($dup:tt)*) fn ($($args:tt)*) -> $($rest:tt)*) => { + $crate::__parse_ensure!(type $stack $bail ($($fuel)*) {($($buf)* $fn $paren $arrow) $($parse)*} ($($rest)*) $($rest)*) + }; + + (type ($pop:ident $stack:tt) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($fn:tt $paren:tt $($dup:tt)*) fn ($($args:tt)*) $($rest:tt)*) => { + $crate::__parse_ensure!($pop $stack $bail ($($fuel)*) {($($buf)* $fn $paren) $($parse)*} ($($rest)*) $($rest)*) + }; + + (type $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($impl:tt $($dup:tt)*) impl $($rest:tt)*) => { + $crate::__parse_ensure!(type $stack $bail ($($fuel)*) {($($buf)* $impl) $($parse)*} ($($rest)*) $($rest)*) + }; + + (type $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($dyn:tt $($dup:tt)*) dyn $($rest:tt)*) => { + $crate::__parse_ensure!(type $stack $bail ($($fuel)*) {($($buf)* $dyn) $($parse)*} ($($rest)*) $($rest)*) + }; + + (type ($pop:ident $stack:tt) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($wild:tt $($dup:tt)*) _ $($rest:tt)*) => { + $crate::__parse_ensure!($pop $stack $bail ($($fuel)*) {($($buf)* $wild) $($parse)*} ($($rest)*) $($rest)*) + }; + + (type ($pop:ident $stack:tt) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($never:tt $($dup:tt)*) ! $($rest:tt)*) => { + $crate::__parse_ensure!($pop $stack $bail ($($fuel)*) {($($buf)* $never) $($parse)*} ($($rest)*) $($rest)*) + }; + + (type $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($for:tt $langle:tt $($dup:tt)*) for < $($rest:tt)*) => { + $crate::__parse_ensure!(generic (type $stack) $bail ($($fuel)*) {($($buf)* $for $langle) $($parse)*} ($($rest)*) $($rest)*) + }; + + // path types + + (type $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($colons:tt $ident:tt $($dup:tt)*) :: $i:ident $($rest:tt)*) => { + $crate::__parse_ensure!(tpath $stack $bail ($($fuel)*) {($($buf)* $colons $ident) $($parse)*} ($($rest)*) $($rest)*) + }; + + (type $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($ident:tt $($dup:tt)*) $i:ident $($rest:tt)*) => { + $crate::__parse_ensure!(tpath $stack $bail ($($fuel)*) {($($buf)* $ident) $($parse)*} ($($rest)*) $($rest)*) + }; + + (type $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($langle:tt $($dup:tt)*) < $($rest:tt)*) => { + $crate::__parse_ensure!(type (qpath (tpath $stack)) $bail ($($fuel)*) {($($buf)* $langle) $($parse)*} ($($rest)*) $($rest)*) + }; + + (tpath $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($langle:tt $($dup:tt)*) < $($rest:tt)*) => { + $crate::__parse_ensure!(generic (tpath $stack) $bail ($($fuel)*) {($($buf)* $langle) $($parse)*} ($($rest)*) $($rest)*) + }; + + (tpath $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($langle:tt $($dup:tt)*) << $($rest:tt)*) => { + $crate::__parse_ensure!(type (qpath (tpath (arglist (tpath $stack)))) $bail ($($fuel)*) {($($buf)* $langle) $($parse)*} ($($rest)*) $($rest)*) + }; + + (tpath $stack:tt ($($bail:tt)*) (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} $dup:tt <- - $($rest:tt)*) => { + $crate::__fallback_ensure!($($bail)*) + }; + + (tpath $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($larrow:tt $($dup:tt)*) <- $lit:literal $($rest:tt)*) => { + $crate::__parse_ensure!(generic (tpath $stack) $bail ($($fuel)*) {($($buf)* $larrow) $($parse)*} ($($dup)*) $($dup)*) + }; + + (tpath $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($colons:tt $langle:tt $($dup:tt)*) :: < $($rest:tt)*) => { + $crate::__parse_ensure!(generic (tpath $stack) $bail ($($fuel)*) {($($buf)* $colons $langle) $($parse)*} ($($rest)*) $($rest)*) + }; + + (tpath $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($colons:tt $langle:tt $($dup:tt)*) :: << $($rest:tt)*) => { + $crate::__parse_ensure!(type (qpath (tpath (arglist (tpath $stack)))) $bail ($($fuel)*) {($($buf)* $colons $langle) $($parse)*} ($($rest)*) $($rest)*) + }; + + (tpath $stack:tt ($($bail:tt)*) (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} $dup:tt :: <- - $($rest:tt)*) => { + $crate::__fallback_ensure!($($bail)*) + }; + + (tpath $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($colons:tt $larrow:tt $($dup:tt)*) :: <- $lit:literal $($rest:tt)*) => { + $crate::__parse_ensure!(generic (tpath $stack) $bail ($($fuel)*) {($($buf)* $colons $larrow) $($parse)*} ($($dup)*) $($dup)*) + }; + + (tpath $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($colons:tt $ident:tt $($dup:tt)*) :: $i:ident $($rest:tt)*) => { + $crate::__parse_ensure!(tpath $stack $bail ($($fuel)*) {($($buf)* $colons $ident) $($parse)*} ($($rest)*) $($rest)*) + }; + + (tpath $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($paren:tt $arrow:tt $($dup:tt)*) ($($args:tt)*) -> $($rest:tt)*) => { + $crate::__parse_ensure!(type $stack $bail ($($fuel)*) {($($buf)* $paren $arrow) $($parse)*} ($($rest)*) $($rest)*) + }; + + (tpath $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($paren:tt $($dup:tt)*) ($($args:tt)*) $($rest:tt)*) => { + $crate::__parse_ensure!(object $stack $bail ($($fuel)*) {($($buf)* $paren) $($parse)*} ($($rest)*) $($rest)*) + }; + + (tpath $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($colons:tt $paren:tt $arrow:tt $($dup:tt)*) :: ($($args:tt)*) -> $($rest:tt)*) => { + $crate::__parse_ensure!(type $stack $bail ($($fuel)*) {($($buf)* $colons $paren $arrow) $($parse)*} ($($rest)*) $($rest)*) + }; + + (tpath $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($colons:tt $paren:tt $($dup:tt)*) :: ($($args:tt)*) $($rest:tt)*) => { + $crate::__parse_ensure!(object $stack $bail ($($fuel)*) {($($buf)* $colons $paren) $($parse)*} ($($rest)*) $($rest)*) + }; + + (tpath ($pop:ident $stack:tt) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($bang:tt $args:tt $($dup:tt)*) ! ($($mac:tt)*) $($rest:tt)*) => { + $crate::__parse_ensure!($pop $stack $bail ($($fuel)*) {($($buf)* $bang $args) $($parse)*} ($($rest)*) $($rest)*) + }; + + (tpath ($pop:ident $stack:tt) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($bang:tt $args:tt $($dup:tt)*) ! [$($mac:tt)*] $($rest:tt)*) => { + $crate::__parse_ensure!($pop $stack $bail ($($fuel)*) {($($buf)* $bang $args) $($parse)*} ($($rest)*) $($rest)*) + }; + + (tpath ($pop:ident $stack:tt) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($bang:tt $args:tt $($dup:tt)*) ! {$($mac:tt)*} $($rest:tt)*) => { + $crate::__parse_ensure!($pop $stack $bail ($($fuel)*) {($($buf)* $bang $args) $($parse)*} ($($rest)*) $($rest)*) + }; + + (tpath $stack:tt $bail:tt (~$($fuel:tt)*) $parse:tt $dup:tt $($rest:tt)*) => { + $crate::__parse_ensure!(object $stack $bail ($($fuel)*) $parse $dup $($rest)*) + }; + + // qualified paths + + (qpath (split ($pop:ident $stack:tt)) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($rangle:tt $colons:tt $ident:tt $($dup:tt)*) >> :: $i:ident $($rest:tt)*) => { + $crate::__parse_ensure!($pop $stack $bail ($($fuel)*) {($($buf)* $rangle $colons $ident) $($parse)*} ($($rest)*) $($rest)*) + }; + + (qpath ($pop:ident $stack:tt) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($rangle:tt $colons:tt $ident:tt $($dup:tt)*) > :: $i:ident $($rest:tt)*) => { + $crate::__parse_ensure!($pop $stack $bail ($($fuel)*) {($($buf)* $rangle $colons $ident) $($parse)*} ($($rest)*) $($rest)*) + }; + + (qpath $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($as:tt $($dup:tt)*) as $($rest:tt)*) => { + $crate::__parse_ensure!(type (qpath $stack) $bail ($($fuel)*) {($($buf)* $as) $($parse)*} ($($rest)*) $($rest)*) + }; + + // trait objects + + (object (arglist $stack:tt) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($plus:tt $colons:tt $ident:tt $($dup:tt)*) + :: $i:ident $($rest:tt)*) => { + $crate::__parse_ensure!(tpath (arglist $stack) $bail ($($fuel)*) {($($buf)* $plus $colons $ident) $($parse)*} ($($rest)*) $($rest)*) + }; + + (object (arglist $stack:tt) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($plus:tt $ident:tt $($dup:tt)*) + $i:ident $($rest:tt)*) => { + $crate::__parse_ensure!(tpath (arglist $stack) $bail ($($fuel)*) {($($buf)* $plus $ident) $($parse)*} ($($rest)*) $($rest)*) + }; + + (object (split ($pop:ident $stack:tt)) $bail:tt (~$($fuel:tt)*) $parse:tt $dup:tt $($rest:tt)*) => { + $crate::__parse_ensure!($pop (split $stack) $bail ($($fuel)*) $parse $dup $($rest)*) + }; + + (object ($pop:ident $stack:tt) $bail:tt (~$($fuel:tt)*) $parse:tt $dup:tt $($rest:tt)*) => { + $crate::__parse_ensure!($pop $stack $bail ($($fuel)*) $parse $dup $($rest)*) + }; + + // angle bracketed generic arguments + + (generic (split ($pop:ident $stack:tt)) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($rangle:tt $($dup:tt)*) >> $($rest:tt)*) => { + $crate::__parse_ensure!($pop $stack $bail ($($fuel)*) {($($buf)* $rangle) $($parse)*} ($($rest)*) $($rest)*) + }; + + (generic ($pop:ident $stack:tt) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($rangle:tt $($dup:tt)*) > $($rest:tt)*) => { + $crate::__parse_ensure!($pop $stack $bail ($($fuel)*) {($($buf)* $rangle) $($parse)*} ($($rest)*) $($rest)*) + }; + + (generic ($pop:ident $stack:tt) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($rangle:tt $($dup:tt)*) >> $($rest:tt)*) => { + $crate::__parse_ensure!($pop (split $stack) $bail ($($fuel)*) {($($buf)*) $($parse)*} ($rangle $($rest)*) $rangle $($rest)*) + }; + + (generic $stack:tt ($($bail:tt)*) (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} $dup:tt - - $($rest:tt)*) => { + $crate::__fallback_ensure!($($bail)*) + }; + + (generic $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($neg:tt $($dup:tt)*) - $lit:literal $($rest:tt)*) => { + $crate::__parse_ensure!(generic $stack $bail ($($fuel)*) {($($buf)* $neg) $($parse)*} ($($dup)*) $($dup)*) + }; + + (generic $stack:tt ($($bail:tt)*) (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} $dup:tt - $($rest:tt)*) => { + $crate::__fallback_ensure!($($bail)*) + }; + + (generic $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($literal:tt $($dup:tt)*) $lit:literal $($rest:tt)*) => { + $crate::__parse_ensure!(arglist $stack $bail ($($fuel)*) {($($buf)* $literal) $($parse)*} ($($rest)*) $($rest)*) + }; + + (generic $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($brace:tt $($dup:tt)*) {$($block:tt)*} $($rest:tt)*) => { + $crate::__parse_ensure!(arglist $stack $bail ($($fuel)*) {($($buf)* $brace) $($parse)*} ($($rest)*) $($rest)*) + }; + + (generic $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($lifetime:tt $($dup:tt)*) $l:lifetime $($rest:tt)*) => { + $crate::__parse_ensure!(arglist $stack $bail ($($fuel)*) {($($buf)* $lifetime) $($parse)*} ($($rest)*) $($rest)*) + }; + + (generic $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($assoc:tt $eq:tt $($dup:tt)*) $ident:ident = $($rest:tt)*) => { + $crate::__parse_ensure!(type (arglist $stack) $bail ($($fuel)*) {($($buf)* $assoc $eq) $($parse)*} ($($rest)*) $($rest)*) + }; + + (generic $stack:tt $bail:tt (~$($fuel:tt)*) $parse:tt $dup:tt $($rest:tt)*) => { + $crate::__parse_ensure!(type (arglist $stack) $bail ($($fuel)*) $parse $dup $($rest)*) + }; + + (arglist $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($comma:tt $($dup:tt)*) , $($rest:tt)*) => { + $crate::__parse_ensure!(generic $stack $bail ($($fuel)*) {($($buf)* $comma) $($parse)*} ($($rest)*) $($rest)*) + }; + + (arglist (split ($pop:ident $stack:tt)) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($rangle:tt $($dup:tt)*) >> $($rest:tt)*) => { + $crate::__parse_ensure!($pop $stack $bail ($($fuel)*) {($($buf)*) $rangle $($parse)*} ($($rest)*) $($rest)*) + }; + + (arglist ($pop:ident $stack:tt) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($rangle:tt $($dup:tt)*) > $($rest:tt)*) => { + $crate::__parse_ensure!($pop $stack $bail ($($fuel)*) {($($buf)* $rangle) $($parse)*} ($($rest)*) $($rest)*) + }; + + (arglist ($pop:ident $stack:tt) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($rangle:tt $($dup:tt)*) >> $($rest:tt)*) => { + $crate::__parse_ensure!($pop (split $stack) $bail ($($fuel)*) {($($buf)*) $($parse)*} ($rangle $($rest)*) $rangle $($rest)*) + }; + + // patterns + + (pat $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($pipe:tt $($dup:tt)*) | $($rest:tt)*) => { + $crate::__parse_ensure!(pat $stack $bail ($($fuel)*) {($($buf)* $pipe) $($parse)*} ($($rest)*) $($rest)*) + }; + + (pat $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($eq:tt $($dup:tt)*) = $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $eq) $($parse)*} ($($rest)*) $($rest)*) + }; + + (pat $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($in:tt $($dup:tt)*) in $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $in) $($parse)*} ($($rest)*) $($rest)*) + }; + + (pat $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($ref:tt $($dup:tt)*) ref $($rest:tt)*) => { + $crate::__parse_ensure!(pat $stack $bail ($($fuel)*) {($($buf)* $ref) $($parse)*} ($($rest)*) $($rest)*) + }; + + (pat $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($mut:tt $($dup:tt)*) mut $($rest:tt)*) => { + $crate::__parse_ensure!(pat $stack $bail ($($fuel)*) {($($buf)* $mut) $($parse)*} ($($rest)*) $($rest)*) + }; + + (pat $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($at:tt $($dup:tt)*) @ $($rest:tt)*) => { + $crate::__parse_ensure!(pat $stack $bail ($($fuel)*) {($($buf)* $at) $($parse)*} ($($rest)*) $($rest)*) + }; + + (pat $stack:tt ($($bail:tt)*) (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} $dup:tt - - $($rest:tt)*) => { + $crate::__fallback_ensure!($($bail)*) + }; + + (pat $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($neg:tt $($dup:tt)*) - $lit:literal $($rest:tt)*) => { + $crate::__parse_ensure!(pat $stack $bail ($($fuel)*) {($($buf)* $neg) $($parse)*} ($($dup)*) $($dup)*) + }; + + (pat $stack:tt ($($bail:tt)*) (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} $dup:tt - $($rest:tt)*) => { + $crate::__fallback_ensure!($($bail)*) + }; + + (pat $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($literal:tt $($dup:tt)*) $lit:literal $($rest:tt)*) => { + $crate::__parse_ensure!(pat $stack $bail ($($fuel)*) {($($buf)* $literal) $($parse)*} ($($rest)*) $($rest)*) + }; + + (pat $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($range:tt $($dup:tt)*) .. $($rest:tt)*) => { + $crate::__parse_ensure!(pat $stack $bail ($($fuel)*) {($($buf)* $range) $($parse)*} ($($rest)*) $($rest)*) + }; + + (pat $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($range:tt $($dup:tt)*) ..= $($rest:tt)*) => { + $crate::__parse_ensure!(pat $stack $bail ($($fuel)*) {($($buf)* $range) $($parse)*} ($($rest)*) $($rest)*) + }; + + (pat $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($and:tt $($dup:tt)*) & $($rest:tt)*) => { + $crate::__parse_ensure!(pat $stack $bail ($($fuel)*) {($($buf)* $and) $($parse)*} ($($rest)*) $($rest)*) + }; + + (pat $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($andand:tt $($dup:tt)*) && $($rest:tt)*) => { + $crate::__parse_ensure!(pat $stack $bail ($($fuel)*) {($($buf)* $andand) $($parse)*} ($($rest)*) $($rest)*) + }; + + (pat $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($paren:tt $($dup:tt)*) ($($content:tt)*) $($rest:tt)*) => { + $crate::__parse_ensure!(pat $stack $bail ($($fuel)*) {($($buf)* $paren) $($parse)*} ($($rest)*) $($rest)*) + }; + + (pat $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($bracket:tt $($dup:tt)*) [$($content:tt)*] $($rest:tt)*) => { + $crate::__parse_ensure!(pat $stack $bail ($($fuel)*) {($($buf)* $bracket) $($parse)*} ($($rest)*) $($rest)*) + }; + + (pat $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($brace:tt $($dup:tt)*) {$($content:tt)*} $($rest:tt)*) => { + $crate::__parse_ensure!(pat $stack $bail ($($fuel)*) {($($buf)* $brace) $($parse)*} ($($rest)*) $($rest)*) + }; + + (pat $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($wild:tt $($dup:tt)*) _ $($rest:tt)*) => { + $crate::__parse_ensure!(pat $stack $bail ($($fuel)*) {($($buf)* $wild) $($parse)*} ($($rest)*) $($rest)*) + }; + + (pat $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($colons:tt $ident:tt $($dup:tt)*) :: $i:ident $($rest:tt)*) => { + $crate::__parse_ensure!(epath (pat $stack) $bail ($($fuel)*) {($($buf)* $colons $ident) $($parse)*} ($($rest)*) $($rest)*) + }; + + (pat $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($ident:tt $($dup:tt)*) $i:ident $($rest:tt)*) => { + $crate::__parse_ensure!(epath (pat $stack) $bail ($($fuel)*) {($($buf)* $ident) $($parse)*} ($($rest)*) $($rest)*) + }; + + (pat $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($langle:tt $($dup:tt)*) < $($rest:tt)*) => { + $crate::__parse_ensure!(type (qpath (epath (pat $stack))) $bail ($($fuel)*) {($($buf)* $langle) $($parse)*} ($($rest)*) $($rest)*) + }; + + // comparison binary operators + + (atom () $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($eq:tt $($dup:tt)*) == $($rest:tt)*) => { + $crate::__parse_ensure!(0 () $bail ($($fuel)*) {() $($parse)* ($($buf)*) $eq} ($($rest)*) $($rest)*) + }; + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)+) $($parse:tt)*} ($eq:tt $($dup:tt)*) == $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $eq) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom () $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($le:tt $($dup:tt)*) <= $($rest:tt)*) => { + $crate::__parse_ensure!(0 () $bail ($($fuel)*) {() $($parse)* ($($buf)*) $le} ($($rest)*) $($rest)*) + }; + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)+) $($parse:tt)*} ($le:tt $($dup:tt)*) <= $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $le) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom () $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($lt:tt $($dup:tt)*) < $($rest:tt)*) => { + $crate::__parse_ensure!(0 () $bail ($($fuel)*) {() $($parse)* ($($buf)*) $lt} ($($rest)*) $($rest)*) + }; + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)+) $($parse:tt)*} ($lt:tt $($dup:tt)*) < $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $lt) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom () $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($ne:tt $($dup:tt)*) != $($rest:tt)*) => { + $crate::__parse_ensure!(0 () $bail ($($fuel)*) {() $($parse)* ($($buf)*) $ne} ($($rest)*) $($rest)*) + }; + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)+) $($parse:tt)*} ($ne:tt $($dup:tt)*) != $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $ne) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom () $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($ge:tt $($dup:tt)*) >= $($rest:tt)*) => { + $crate::__parse_ensure!(0 () $bail ($($fuel)*) {() $($parse)* ($($buf)*) $ge} ($($rest)*) $($rest)*) + }; + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)+) $($parse:tt)*} ($ge:tt $($dup:tt)*) >= $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $ge) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom (split ()) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} $dup:tt >> $($rest:tt)*) => { + $crate::__parse_ensure!(0 () $bail ($($fuel)*) {() $($parse)* ($($buf)* > ) > } ($($rest)*) $($rest)*) + }; + + (atom () $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($gt:tt $($dup:tt)*) > $($rest:tt)*) => { + $crate::__parse_ensure!(0 () $bail ($($fuel)*) {() $($parse)* ($($buf)*) $gt} ($($rest)*) $($rest)*) + }; + + (atom (split $stack:tt) $bail:tt (~$($fuel:tt)*) {($($buf:tt)+) $($parse:tt)*} ($rangle:tt $($dup:tt)*) >> $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $rangle) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)+) $($parse:tt)*} ($gt:tt $($dup:tt)*) > $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $gt) $($parse)*} ($($rest)*) $($rest)*) + }; + + // high precedence binary operators + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($add:tt $($dup:tt)*) + $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $add) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($sub:tt $($dup:tt)*) - $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $sub) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($mul:tt $($dup:tt)*) * $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $mul) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($div:tt $($dup:tt)*) / $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $div) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($rem:tt $($dup:tt)*) % $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $rem) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($bitxor:tt $($dup:tt)*) ^ $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $bitxor) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($bitand:tt $($dup:tt)*) & $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $bitand) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($bitor:tt $($dup:tt)*) | $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $bitor) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($shl:tt $($dup:tt)*) << $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $shl) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom $stack:tt $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($shr:tt $($dup:tt)*) >> $($rest:tt)*) => { + $crate::__parse_ensure!(0 $stack $bail ($($fuel)*) {($($buf)* $shr) $($parse)*} ($($rest)*) $($rest)*) + }; + + // low precedence binary operators + + (atom ($($stack:tt)+) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($and:tt $($dup:tt)*) && $($rest:tt)*) => { + $crate::__parse_ensure!(0 ($($stack)*) $bail ($($fuel)*) {($($buf)* $and) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom ($($stack:tt)+) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($or:tt $($dup:tt)*) || $($rest:tt)*) => { + $crate::__parse_ensure!(0 ($($stack)*) $bail ($($fuel)*) {($($buf)* $or) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom ($($stack:tt)+) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($assign:tt $($dup:tt)*) = $($rest:tt)*) => { + $crate::__parse_ensure!(0 ($($stack)*) $bail ($($fuel)*) {($($buf)* $assign) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom ($($stack:tt)+) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($addeq:tt $($dup:tt)*) += $($rest:tt)*) => { + $crate::__parse_ensure!(0 ($($stack)*) $bail ($($fuel)*) {($($buf)* $addeq) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom ($($stack:tt)+) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($subeq:tt $($dup:tt)*) -= $($rest:tt)*) => { + $crate::__parse_ensure!(0 ($($stack)*) $bail ($($fuel)*) {($($buf)* $subeq) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom ($($stack:tt)+) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($muleq:tt $($dup:tt)*) *= $($rest:tt)*) => { + $crate::__parse_ensure!(0 ($($stack)*) $bail ($($fuel)*) {($($buf)* $muleq) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom ($($stack:tt)+) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($diveq:tt $($dup:tt)*) /= $($rest:tt)*) => { + $crate::__parse_ensure!(0 ($($stack)*) $bail ($($fuel)*) {($($buf)* $diveq) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom ($($stack:tt)+) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($remeq:tt $($dup:tt)*) %= $($rest:tt)*) => { + $crate::__parse_ensure!(0 ($($stack)*) $bail ($($fuel)*) {($($buf)* $remeq) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom ($($stack:tt)+) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($bitxoreq:tt $($dup:tt)*) ^= $($rest:tt)*) => { + $crate::__parse_ensure!(0 ($($stack)*) $bail ($($fuel)*) {($($buf)* $bitxoreq) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom ($($stack:tt)+) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($bitandeq:tt $($dup:tt)*) &= $($rest:tt)*) => { + $crate::__parse_ensure!(0 ($($stack)*) $bail ($($fuel)*) {($($buf)* $bitandeq) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom ($($stack:tt)+) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($bitoreq:tt $($dup:tt)*) |= $($rest:tt)*) => { + $crate::__parse_ensure!(0 ($($stack)*) $bail ($($fuel)*) {($($buf)* $bitoreq) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom ($($stack:tt)+) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($shleq:tt $($dup:tt)*) <<= $($rest:tt)*) => { + $crate::__parse_ensure!(0 ($($stack)*) $bail ($($fuel)*) {($($buf)* $shleq) $($parse)*} ($($rest)*) $($rest)*) + }; + + (atom ($($stack:tt)+) $bail:tt (~$($fuel:tt)*) {($($buf:tt)*) $($parse:tt)*} ($shreq:tt $($dup:tt)*) >>= $($rest:tt)*) => { + $crate::__parse_ensure!(0 ($($stack)*) $bail ($($fuel)*) {($($buf)* $shreq) $($parse)*} ($($rest)*) $($rest)*) + }; + + // unrecognized expression + + ($state:tt $stack:tt ($($bail:tt)*) $($rest:tt)*) => { + $crate::__fallback_ensure!($($bail)*) + }; +} + +#[doc(hidden)] +#[macro_export] +macro_rules! __fancy_ensure { + ($lhs:expr, $op:tt, $rhs:expr) => { + match (&$lhs, &$rhs) { + (lhs, rhs) => { + if !(lhs $op rhs) { + #[allow(unused_imports)] + use $crate::__private::{BothDebug, NotBothDebug}; + return Err((lhs, rhs).__dispatch_ensure( + $crate::__private::concat!( + "Condition failed: `", + $crate::__private::stringify!($lhs), + " ", + $crate::__private::stringify!($op), + " ", + $crate::__private::stringify!($rhs), + "`", + ), + )); + } + } + } + }; +} + +#[doc(hidden)] +#[macro_export] +macro_rules! __fallback_ensure { + ($cond:expr $(,)?) => { + if $crate::__private::not($cond) { + return $crate::__private::Err($crate::Error::msg( + $crate::__private::concat!("Condition failed: `", $crate::__private::stringify!($cond), "`") + )); + } + }; + ($cond:expr, $msg:literal $(,)?) => { + if $crate::__private::not($cond) { + return $crate::__private::Err($crate::__anyhow!($msg)); + } + }; + ($cond:expr, $err:expr $(,)?) => { + if $crate::__private::not($cond) { + return $crate::__private::Err($crate::__anyhow!($err)); + } + }; + ($cond:expr, $fmt:expr, $($arg:tt)*) => { + if $crate::__private::not($cond) { + return $crate::__private::Err($crate::__anyhow!($fmt, $($arg)*)); + } + }; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/error.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/error.rs new file mode 100644 index 0000000000000000000000000000000000000000..d9444f23c8fd6f158bd8242a547908418883ad24 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/error.rs @@ -0,0 +1,1086 @@ +use crate::backtrace::Backtrace; +use crate::chain::Chain; +#[cfg(error_generic_member_access)] +use crate::nightly::{self, Request}; +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +use crate::ptr::Mut; +use crate::ptr::{Own, Ref}; +use crate::{Error, StdError}; +use alloc::boxed::Box; +use core::any::TypeId; +use core::fmt::{self, Debug, Display}; +use core::mem::ManuallyDrop; +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +use core::ops::{Deref, DerefMut}; +use core::panic::{RefUnwindSafe, UnwindSafe}; +use core::ptr; +use core::ptr::NonNull; + +impl Error { + /// Create a new error object from any error type. + /// + /// The error type must be threadsafe and `'static`, so that the `Error` + /// will be as well. + /// + /// If the error type does not provide a backtrace, a backtrace will be + /// created here to ensure that a backtrace exists. + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + #[cold] + #[must_use] + pub fn new(error: E) -> Self + where + E: StdError + Send + Sync + 'static, + { + let backtrace = backtrace_if_absent!(&error); + Error::construct_from_std(error, backtrace) + } + + /// Create a new error object from a printable error message. + /// + /// If the argument implements std::error::Error, prefer `Error::new` + /// instead which preserves the underlying error's cause chain and + /// backtrace. If the argument may or may not implement std::error::Error + /// now or in the future, use `anyhow!(err)` which handles either way + /// correctly. + /// + /// `Error::msg("...")` is equivalent to `anyhow!("...")` but occasionally + /// convenient in places where a function is preferable over a macro, such + /// as iterator or stream combinators: + /// + /// ``` + /// # mod ffi { + /// # pub struct Input; + /// # pub struct Output; + /// # pub async fn do_some_work(_: Input) -> Result { + /// # unimplemented!() + /// # } + /// # } + /// # + /// # use ffi::{Input, Output}; + /// # + /// use anyhow::{Error, Result}; + /// use futures::stream::{Stream, StreamExt, TryStreamExt}; + /// + /// async fn demo(stream: S) -> Result> + /// where + /// S: Stream, + /// { + /// stream + /// .then(ffi::do_some_work) // returns Result + /// .map_err(Error::msg) + /// .try_collect() + /// .await + /// } + /// ``` + #[cold] + #[must_use] + pub fn msg(message: M) -> Self + where + M: Display + Debug + Send + Sync + 'static, + { + Error::construct_from_adhoc(message, backtrace!()) + } + + /// Construct an error object from a type-erased standard library error. + /// + /// This is mostly useful for interop with other error libraries. + /// + /// # Example + /// + /// Here is a skeleton of a library that provides its own error abstraction. + /// The pair of `From` impls provide bidirectional support for `?` + /// conversion between `Report` and `anyhow::Error`. + /// + /// ``` + /// use std::error::Error as StdError; + /// + /// pub struct Report {/* ... */} + /// + /// impl From for Report + /// where + /// E: Into, + /// Result<(), E>: anyhow::Context<(), E>, + /// { + /// fn from(error: E) -> Self { + /// let anyhow_error: anyhow::Error = error.into(); + /// let boxed_error: Box = anyhow_error.into(); + /// Report::from_boxed(boxed_error) + /// } + /// } + /// + /// impl From for anyhow::Error { + /// fn from(report: Report) -> Self { + /// let boxed_error: Box = report.into_boxed(); + /// anyhow::Error::from_boxed(boxed_error) + /// } + /// } + /// + /// impl Report { + /// fn from_boxed(boxed_error: Box) -> Self { + /// todo!() + /// } + /// fn into_boxed(self) -> Box { + /// todo!() + /// } + /// } + /// + /// // Example usage: can use `?` in both directions. + /// fn a() -> anyhow::Result<()> { + /// b()?; + /// Ok(()) + /// } + /// fn b() -> Result<(), Report> { + /// a()?; + /// Ok(()) + /// } + /// ``` + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + #[cold] + #[must_use] + pub fn from_boxed(boxed_error: Box) -> Self { + let backtrace = backtrace_if_absent!(&*boxed_error); + Error::construct_from_boxed(boxed_error, backtrace) + } + + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + #[cold] + pub(crate) fn construct_from_std(error: E, backtrace: Option) -> Self + where + E: StdError + Send + Sync + 'static, + { + let vtable = &ErrorVTable { + object_drop: object_drop::, + object_ref: object_ref::, + object_boxed: object_boxed::, + object_reallocate_boxed: object_reallocate_boxed::, + object_downcast: object_downcast::, + object_drop_rest: object_drop_front::, + #[cfg(all( + not(error_generic_member_access), + any(std_backtrace, feature = "backtrace") + ))] + object_backtrace: no_backtrace, + }; + + // Safety: passing vtable that operates on the right type E. + unsafe { Error::construct(error, vtable, backtrace) } + } + + #[cold] + pub(crate) fn construct_from_adhoc(message: M, backtrace: Option) -> Self + where + M: Display + Debug + Send + Sync + 'static, + { + use crate::wrapper::MessageError; + let error: MessageError = MessageError(message); + let vtable = &ErrorVTable { + object_drop: object_drop::>, + object_ref: object_ref::>, + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + object_boxed: object_boxed::>, + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + object_reallocate_boxed: object_reallocate_boxed::>, + object_downcast: object_downcast::, + object_drop_rest: object_drop_front::, + #[cfg(all( + not(error_generic_member_access), + any(std_backtrace, feature = "backtrace") + ))] + object_backtrace: no_backtrace, + }; + + // Safety: MessageError is repr(transparent) so it is okay for the + // vtable to allow casting the MessageError to M. + unsafe { Error::construct(error, vtable, backtrace) } + } + + #[cold] + pub(crate) fn construct_from_display(message: M, backtrace: Option) -> Self + where + M: Display + Send + Sync + 'static, + { + use crate::wrapper::DisplayError; + let error: DisplayError = DisplayError(message); + let vtable = &ErrorVTable { + object_drop: object_drop::>, + object_ref: object_ref::>, + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + object_boxed: object_boxed::>, + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + object_reallocate_boxed: object_reallocate_boxed::>, + object_downcast: object_downcast::, + object_drop_rest: object_drop_front::, + #[cfg(all( + not(error_generic_member_access), + any(std_backtrace, feature = "backtrace") + ))] + object_backtrace: no_backtrace, + }; + + // Safety: DisplayError is repr(transparent) so it is okay for the + // vtable to allow casting the DisplayError to M. + unsafe { Error::construct(error, vtable, backtrace) } + } + + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + #[cold] + pub(crate) fn construct_from_context( + context: C, + error: E, + backtrace: Option, + ) -> Self + where + C: Display + Send + Sync + 'static, + E: StdError + Send + Sync + 'static, + { + let error: ContextError = ContextError { context, error }; + + let vtable = &ErrorVTable { + object_drop: object_drop::>, + object_ref: object_ref::>, + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + object_boxed: object_boxed::>, + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + object_reallocate_boxed: object_reallocate_boxed::>, + object_downcast: context_downcast::, + object_drop_rest: context_drop_rest::, + #[cfg(all( + not(error_generic_member_access), + any(std_backtrace, feature = "backtrace") + ))] + object_backtrace: no_backtrace, + }; + + // Safety: passing vtable that operates on the right type. + unsafe { Error::construct(error, vtable, backtrace) } + } + + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + #[cold] + pub(crate) fn construct_from_boxed( + error: Box, + backtrace: Option, + ) -> Self { + use crate::wrapper::BoxedError; + let error = BoxedError(error); + let vtable = &ErrorVTable { + object_drop: object_drop::, + object_ref: object_ref::, + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + object_boxed: object_boxed::, + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + object_reallocate_boxed: object_reallocate_boxed::, + object_downcast: object_downcast::>, + object_drop_rest: object_drop_front::>, + #[cfg(all( + not(error_generic_member_access), + any(std_backtrace, feature = "backtrace") + ))] + object_backtrace: no_backtrace, + }; + + // Safety: BoxedError is repr(transparent) so it is okay for the vtable + // to allow casting to Box. + unsafe { Error::construct(error, vtable, backtrace) } + } + + // Takes backtrace as argument rather than capturing it here so that the + // user sees one fewer layer of wrapping noise in the backtrace. + // + // Unsafe because the given vtable must have sensible behavior on the error + // value of type E. + #[cold] + unsafe fn construct( + error: E, + vtable: &'static ErrorVTable, + backtrace: Option, + ) -> Self + where + E: StdError + Send + Sync + 'static, + { + let inner: Box> = Box::new(ErrorImpl { + vtable, + backtrace, + _object: error, + }); + // Erase the concrete type of E from the compile-time type system. This + // is equivalent to the safe unsize coercion from Box> to + // Box> except that the + // result is a thin pointer. The necessary behavior for manipulating the + // underlying ErrorImpl is preserved in the vtable provided by the + // caller rather than a builtin fat pointer vtable. + let inner = Own::new(inner).cast::(); + Error { inner } + } + + /// Wrap the error value with additional context. + /// + /// For attaching context to a `Result` as it is propagated, the + /// [`Context`][crate::Context] extension trait may be more convenient than + /// this function. + /// + /// The primary reason to use `error.context(...)` instead of + /// `result.context(...)` via the `Context` trait would be if the context + /// needs to depend on some data held by the underlying error: + /// + /// ``` + /// # use std::fmt::{self, Debug, Display}; + /// # + /// # type T = (); + /// # + /// # impl std::error::Error for ParseError {} + /// # impl Debug for ParseError { + /// # fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + /// # unimplemented!() + /// # } + /// # } + /// # impl Display for ParseError { + /// # fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + /// # unimplemented!() + /// # } + /// # } + /// # + /// use anyhow::Result; + /// use std::fs::File; + /// use std::path::Path; + /// + /// struct ParseError { + /// line: usize, + /// column: usize, + /// } + /// + /// fn parse_impl(file: File) -> Result { + /// # const IGNORE: &str = stringify! { + /// ... + /// # }; + /// # unimplemented!() + /// } + /// + /// pub fn parse(path: impl AsRef) -> Result { + /// let file = File::open(&path)?; + /// parse_impl(file).map_err(|error| { + /// let context = format!( + /// "only the first {} lines of {} are valid", + /// error.line, path.as_ref().display(), + /// ); + /// anyhow::Error::new(error).context(context) + /// }) + /// } + /// ``` + #[cold] + #[must_use] + pub fn context(self, context: C) -> Self + where + C: Display + Send + Sync + 'static, + { + let error: ContextError = ContextError { + context, + error: self, + }; + + let vtable = &ErrorVTable { + object_drop: object_drop::>, + object_ref: object_ref::>, + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + object_boxed: object_boxed::>, + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + object_reallocate_boxed: object_reallocate_boxed::>, + object_downcast: context_chain_downcast::, + object_drop_rest: context_chain_drop_rest::, + #[cfg(all( + not(error_generic_member_access), + any(std_backtrace, feature = "backtrace") + ))] + object_backtrace: context_backtrace::, + }; + + // As the cause is anyhow::Error, we already have a backtrace for it. + let backtrace = None; + + // Safety: passing vtable that operates on the right type. + unsafe { Error::construct(error, vtable, backtrace) } + } + + /// Get the backtrace for this Error. + /// + /// In order for the backtrace to be meaningful, one of the two environment + /// variables `RUST_LIB_BACKTRACE=1` or `RUST_BACKTRACE=1` must be defined + /// and `RUST_LIB_BACKTRACE` must not be `0`. Backtraces are somewhat + /// expensive to capture in Rust, so we don't necessarily want to be + /// capturing them all over the place all the time. + /// + /// - If you want panics and errors to both have backtraces, set + /// `RUST_BACKTRACE=1`; + /// - If you want only errors to have backtraces, set + /// `RUST_LIB_BACKTRACE=1`; + /// - If you want only panics to have backtraces, set `RUST_BACKTRACE=1` and + /// `RUST_LIB_BACKTRACE=0`. + /// + /// # Stability + /// + /// Standard library backtraces are only available when using Rust ≥ + /// 1.65. On older compilers, this function is only available if the crate's + /// "backtrace" feature is enabled, and will use the `backtrace` crate as + /// the underlying backtrace implementation. The return type of this + /// function on old compilers is `&(impl Debug + Display)`. + /// + /// ```toml + /// [dependencies] + /// anyhow = { version = "1.0", features = ["backtrace"] } + /// ``` + #[cfg(any(std_backtrace, feature = "backtrace"))] + pub fn backtrace(&self) -> &impl_backtrace!() { + unsafe { ErrorImpl::backtrace(self.inner.by_ref()) } + } + + /// An iterator of the chain of source errors contained by this Error. + /// + /// This iterator will visit every error in the cause chain of this error + /// object, beginning with the error that this error object was created + /// from. + /// + /// # Example + /// + /// ``` + /// use anyhow::Error; + /// use std::io; + /// + /// pub fn underlying_io_error_kind(error: &Error) -> Option { + /// for cause in error.chain() { + /// if let Some(io_error) = cause.downcast_ref::() { + /// return Some(io_error.kind()); + /// } + /// } + /// None + /// } + /// ``` + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + #[cold] + pub fn chain(&self) -> Chain { + unsafe { ErrorImpl::chain(self.inner.by_ref()) } + } + + /// The lowest level cause of this error — this error's cause's + /// cause's cause etc. + /// + /// The root cause is the last error in the iterator produced by + /// [`chain()`][Error::chain]. + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + #[allow(clippy::double_ended_iterator_last)] + pub fn root_cause(&self) -> &(dyn StdError + 'static) { + self.chain().last().unwrap() + } + + /// Returns true if `E` is the type held by this error object. + /// + /// For errors with context, this method returns true if `E` matches the + /// type of the context `C` **or** the type of the error on which the + /// context has been attached. For details about the interaction between + /// context and downcasting, [see here]. + /// + /// [see here]: crate::Context#effect-on-downcasting + pub fn is(&self) -> bool + where + E: Display + Debug + Send + Sync + 'static, + { + self.downcast_ref::().is_some() + } + + /// Attempt to downcast the error object to a concrete type. + pub fn downcast(mut self) -> Result + where + E: Display + Debug + Send + Sync + 'static, + { + let target = TypeId::of::(); + let inner = self.inner.by_mut(); + unsafe { + // Use vtable to find NonNull<()> which points to a value of type E + // somewhere inside the data structure. + let addr = match (vtable(inner.ptr).object_downcast)(inner.by_ref(), target) { + Some(addr) => addr.by_mut().extend(), + None => return Err(self), + }; + + // Prepare to read E out of the data structure. We'll drop the rest + // of the data structure separately so that E is not dropped. + let outer = ManuallyDrop::new(self); + + // Read E from where the vtable found it. + let error = addr.cast::().read(); + + // Drop rest of the data structure outside of E. + (vtable(outer.inner.ptr).object_drop_rest)(outer.inner, target); + + Ok(error) + } + } + + /// Downcast this error object by reference. + /// + /// # Example + /// + /// ``` + /// # use anyhow::anyhow; + /// # use std::fmt::{self, Display}; + /// # use std::task::Poll; + /// # + /// # #[derive(Debug)] + /// # enum DataStoreError { + /// # Censored(()), + /// # } + /// # + /// # impl Display for DataStoreError { + /// # fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + /// # unimplemented!() + /// # } + /// # } + /// # + /// # impl std::error::Error for DataStoreError {} + /// # + /// # const REDACTED_CONTENT: () = (); + /// # + /// # let error = anyhow!("..."); + /// # let root_cause = &error; + /// # + /// # let ret = + /// // If the error was caused by redaction, then return a tombstone instead + /// // of the content. + /// match root_cause.downcast_ref::() { + /// Some(DataStoreError::Censored(_)) => Ok(Poll::Ready(REDACTED_CONTENT)), + /// None => Err(error), + /// } + /// # ; + /// ``` + pub fn downcast_ref(&self) -> Option<&E> + where + E: Display + Debug + Send + Sync + 'static, + { + let target = TypeId::of::(); + unsafe { + // Use vtable to find NonNull<()> which points to a value of type E + // somewhere inside the data structure. + let addr = (vtable(self.inner.ptr).object_downcast)(self.inner.by_ref(), target)?; + Some(addr.cast::().deref()) + } + } + + /// Downcast this error object by mutable reference. + pub fn downcast_mut(&mut self) -> Option<&mut E> + where + E: Display + Debug + Send + Sync + 'static, + { + let target = TypeId::of::(); + unsafe { + // Use vtable to find NonNull<()> which points to a value of type E + // somewhere inside the data structure. + let addr = + (vtable(self.inner.ptr).object_downcast)(self.inner.by_ref(), target)?.by_mut(); + Some(addr.cast::().deref_mut()) + } + } + + /// Convert to a standard library error trait object. + /// + /// This is implemented as a cheap pointer cast that does not allocate or + /// deallocate memory. Like [`anyhow::Error::from_boxed`], it's useful for + /// interop with other error libraries. + /// + /// The same conversion is also available as + /// impl From<anyhow::Error> + /// for Box<dyn Error + Send + Sync + 'static>. + /// + /// If a backtrace was collected during construction of the `anyhow::Error`, + /// that backtrace remains accessible using the standard library `Error` + /// trait's provider API, but as a consequence, the resulting boxed error + /// can no longer be downcast to its original underlying type. + /// + /// ``` + #[cfg_attr(not(error_generic_member_access), doc = "# _ = stringify! {")] + /// #![feature(error_generic_member_access)] + /// + /// use anyhow::anyhow; + /// use std::backtrace::Backtrace; + /// use thiserror::Error; + /// + /// #[derive(Error, Debug)] + /// #[error("...")] + /// struct MyError; + /// + /// let anyhow_error = anyhow!(MyError); + /// println!("{}", anyhow_error.backtrace()); // has Backtrace + /// assert!(anyhow_error.downcast_ref::().is_some()); // can downcast + /// + /// let boxed_dyn_error = anyhow_error.into_boxed_dyn_error(); + /// assert!(std::error::request_ref::(&*boxed_dyn_error).is_some()); // has Backtrace + /// assert!(boxed_dyn_error.downcast_ref::().is_none()); // can no longer downcast + #[cfg_attr(not(error_generic_member_access), doc = "# };")] + /// ``` + /// + /// [`anyhow::Error::from_boxed`]: Self::from_boxed + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + #[must_use] + pub fn into_boxed_dyn_error(self) -> Box { + let outer = ManuallyDrop::new(self); + unsafe { + // Use vtable to attach ErrorImpl's native StdError vtable for + // the right original type E. + (vtable(outer.inner.ptr).object_boxed)(outer.inner) + } + } + + /// Convert to a standard library error trait object. + /// + /// Unlike `self.into_boxed_dyn_error()`, this method relocates the + /// underlying error into a new allocation in order to make it downcastable + /// to `&E` or `Box` for its original underlying error type. Any + /// backtrace collected during construction of the `anyhow::Error` is + /// discarded. + /// + /// ``` + #[cfg_attr(not(error_generic_member_access), doc = "# _ = stringify!{")] + /// #![feature(error_generic_member_access)] + /// + /// use anyhow::anyhow; + /// use std::backtrace::Backtrace; + /// use thiserror::Error; + /// + /// #[derive(Error, Debug)] + /// #[error("...")] + /// struct MyError; + /// + /// let anyhow_error = anyhow!(MyError); + /// println!("{}", anyhow_error.backtrace()); // has Backtrace + /// assert!(anyhow_error.downcast_ref::().is_some()); // can downcast + /// + /// let boxed_dyn_error = anyhow_error.reallocate_into_boxed_dyn_error_without_backtrace(); + /// assert!(std::error::request_ref::(&*boxed_dyn_error).is_none()); // Backtrace lost + /// assert!(boxed_dyn_error.downcast_ref::().is_some()); // can downcast to &MyError + /// assert!(boxed_dyn_error.downcast::().is_ok()); // can downcast to Box + #[cfg_attr(not(error_generic_member_access), doc = "# };")] + /// ``` + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + #[must_use] + pub fn reallocate_into_boxed_dyn_error_without_backtrace( + self, + ) -> Box { + let outer = ManuallyDrop::new(self); + unsafe { + // Use vtable to attach E's native StdError vtable for the right + // original type E. + (vtable(outer.inner.ptr).object_reallocate_boxed)(outer.inner) + } + } + + #[cfg(error_generic_member_access)] + pub(crate) fn provide<'a>(&'a self, request: &mut Request<'a>) { + unsafe { ErrorImpl::provide(self.inner.by_ref(), request) } + } + + // Called by thiserror when you have `#[source] anyhow::Error`. This provide + // implementation includes the anyhow::Error's Backtrace if any, unlike + // deref'ing to dyn Error where the provide implementation would include + // only the original error's Backtrace from before it got wrapped into an + // anyhow::Error. + #[cfg(error_generic_member_access)] + #[doc(hidden)] + pub fn thiserror_provide<'a>(&'a self, request: &mut Request<'a>) { + Self::provide(self, request); + } +} + +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +impl From for Error +where + E: StdError + Send + Sync + 'static, +{ + #[cold] + fn from(error: E) -> Self { + let backtrace = backtrace_if_absent!(&error); + Error::construct_from_std(error, backtrace) + } +} + +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +impl Deref for Error { + type Target = dyn StdError + Send + Sync + 'static; + + fn deref(&self) -> &Self::Target { + unsafe { ErrorImpl::error(self.inner.by_ref()) } + } +} + +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +impl DerefMut for Error { + fn deref_mut(&mut self) -> &mut Self::Target { + unsafe { ErrorImpl::error_mut(self.inner.by_mut()) } + } +} + +impl Display for Error { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + unsafe { ErrorImpl::display(self.inner.by_ref(), formatter) } + } +} + +impl Debug for Error { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + unsafe { ErrorImpl::debug(self.inner.by_ref(), formatter) } + } +} + +impl Drop for Error { + fn drop(&mut self) { + unsafe { + // Invoke the vtable's drop behavior. + (vtable(self.inner.ptr).object_drop)(self.inner); + } + } +} + +struct ErrorVTable { + object_drop: unsafe fn(Own), + object_ref: unsafe fn(Ref) -> Ref, + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + object_boxed: unsafe fn(Own) -> Box, + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + object_reallocate_boxed: unsafe fn(Own) -> Box, + object_downcast: unsafe fn(Ref, TypeId) -> Option>, + object_drop_rest: unsafe fn(Own, TypeId), + #[cfg(all( + not(error_generic_member_access), + any(std_backtrace, feature = "backtrace") + ))] + object_backtrace: unsafe fn(Ref) -> Option<&Backtrace>, +} + +// Safety: requires layout of *e to match ErrorImpl. +unsafe fn object_drop(e: Own) { + // Cast back to ErrorImpl so that the allocator receives the correct + // Layout to deallocate the Box's memory. + let unerased_own = e.cast::>(); + drop(unsafe { unerased_own.boxed() }); +} + +// Safety: requires layout of *e to match ErrorImpl. +unsafe fn object_drop_front(e: Own, target: TypeId) { + // Drop the fields of ErrorImpl other than E as well as the Box allocation, + // without dropping E itself. This is used by downcast after doing a + // ptr::read to take ownership of the E. + let _ = target; + let unerased_own = e.cast::>>(); + drop(unsafe { unerased_own.boxed() }); +} + +// Safety: requires layout of *e to match ErrorImpl. +unsafe fn object_ref(e: Ref) -> Ref +where + E: StdError + Send + Sync + 'static, +{ + // Attach E's native StdError vtable onto a pointer to self._object. + let unerased_ref = e.cast::>(); + Ref::from_raw(unsafe { + NonNull::new_unchecked(ptr::addr_of!((*unerased_ref.as_ptr())._object).cast_mut()) + }) +} + +// Safety: requires layout of *e to match ErrorImpl. +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +unsafe fn object_boxed(e: Own) -> Box +where + E: StdError + Send + Sync + 'static, +{ + // Attach ErrorImpl's native StdError vtable. The StdError impl is below. + let unerased_own = e.cast::>(); + unsafe { unerased_own.boxed() } +} + +// Safety: requires layout of *e to match ErrorImpl. +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +unsafe fn object_reallocate_boxed(e: Own) -> Box +where + E: StdError + Send + Sync + 'static, +{ + // Attach E's native StdError vtable. + let unerased_own = e.cast::>(); + Box::new(unsafe { unerased_own.boxed() }._object) +} + +// Safety: requires layout of *e to match ErrorImpl. +unsafe fn object_downcast(e: Ref, target: TypeId) -> Option> +where + E: 'static, +{ + if TypeId::of::() == target { + // Caller is looking for an E pointer and e is ErrorImpl, take a + // pointer to its E field. + let unerased_ref = e.cast::>(); + Some( + Ref::from_raw(unsafe { + NonNull::new_unchecked(ptr::addr_of!((*unerased_ref.as_ptr())._object).cast_mut()) + }) + .cast::<()>(), + ) + } else { + None + } +} + +#[cfg(all( + not(error_generic_member_access), + any(std_backtrace, feature = "backtrace") +))] +fn no_backtrace(e: Ref) -> Option<&Backtrace> { + let _ = e; + None +} + +// Safety: requires layout of *e to match ErrorImpl>. +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +unsafe fn context_downcast(e: Ref, target: TypeId) -> Option> +where + C: 'static, + E: 'static, +{ + if TypeId::of::() == target { + let unerased_ref = e.cast::>>(); + let unerased = unsafe { unerased_ref.deref() }; + Some(Ref::new(&unerased._object.context).cast::<()>()) + } else if TypeId::of::() == target { + let unerased_ref = e.cast::>>(); + let unerased = unsafe { unerased_ref.deref() }; + Some(Ref::new(&unerased._object.error).cast::<()>()) + } else { + None + } +} + +// Safety: requires layout of *e to match ErrorImpl>. +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +unsafe fn context_drop_rest(e: Own, target: TypeId) +where + C: 'static, + E: 'static, +{ + // Called after downcasting by value to either the C or the E and doing a + // ptr::read to take ownership of that value. + if TypeId::of::() == target { + let unerased_own = e.cast::, E>>>(); + drop(unsafe { unerased_own.boxed() }); + } else { + let unerased_own = e.cast::>>>(); + drop(unsafe { unerased_own.boxed() }); + } +} + +// Safety: requires layout of *e to match ErrorImpl>. +unsafe fn context_chain_downcast(e: Ref, target: TypeId) -> Option> +where + C: 'static, +{ + let unerased_ref = e.cast::>>(); + let unerased = unsafe { unerased_ref.deref() }; + if TypeId::of::() == target { + Some(Ref::new(&unerased._object.context).cast::<()>()) + } else { + // Recurse down the context chain per the inner error's vtable. + let source = &unerased._object.error; + unsafe { (vtable(source.inner.ptr).object_downcast)(source.inner.by_ref(), target) } + } +} + +// Safety: requires layout of *e to match ErrorImpl>. +unsafe fn context_chain_drop_rest(e: Own, target: TypeId) +where + C: 'static, +{ + // Called after downcasting by value to either the C or one of the causes + // and doing a ptr::read to take ownership of that value. + if TypeId::of::() == target { + let unerased_own = e.cast::, Error>>>(); + // Drop the entire rest of the data structure rooted in the next Error. + drop(unsafe { unerased_own.boxed() }); + } else { + let unerased_own = e.cast::>>>(); + let unerased = unsafe { unerased_own.boxed() }; + // Read the Own from the next error. + let inner = unerased._object.error.inner; + drop(unerased); + let vtable = unsafe { vtable(inner.ptr) }; + // Recursively drop the next error using the same target typeid. + unsafe { (vtable.object_drop_rest)(inner, target) }; + } +} + +// Safety: requires layout of *e to match ErrorImpl>. +#[cfg(all( + not(error_generic_member_access), + any(std_backtrace, feature = "backtrace") +))] +#[allow(clippy::unnecessary_wraps)] +unsafe fn context_backtrace(e: Ref) -> Option<&Backtrace> +where + C: 'static, +{ + let unerased_ref = e.cast::>>(); + let unerased = unsafe { unerased_ref.deref() }; + let backtrace = unsafe { ErrorImpl::backtrace(unerased._object.error.inner.by_ref()) }; + Some(backtrace) +} + +// NOTE: If working with `ErrorImpl<()>`, references should be avoided in favor +// of raw pointers and `NonNull`. +// repr C to ensure that E remains in the final position. +#[repr(C)] +pub(crate) struct ErrorImpl { + vtable: &'static ErrorVTable, + backtrace: Option, + // NOTE: Don't use directly. Use only through vtable. Erased type may have + // different alignment. + _object: E, +} + +// Reads the vtable out of `p`. This is the same as `p.as_ref().vtable`, but +// avoids converting `p` into a reference. +unsafe fn vtable(p: NonNull) -> &'static ErrorVTable { + // NOTE: This assumes that `ErrorVTable` is the first field of ErrorImpl. + unsafe { *(p.as_ptr() as *const &'static ErrorVTable) } +} + +// repr C to ensure that ContextError has the same layout as +// ContextError, E> and ContextError>. +#[repr(C)] +pub(crate) struct ContextError { + pub context: C, + pub error: E, +} + +impl ErrorImpl { + fn erase(&self) -> Ref { + // Erase the concrete type of E but preserve the vtable in self.vtable + // for manipulating the resulting thin pointer. This is analogous to an + // unsize coercion. + Ref::new(self).cast::() + } +} + +impl ErrorImpl { + pub(crate) unsafe fn error(this: Ref) -> &(dyn StdError + Send + Sync + 'static) { + // Use vtable to attach E's native StdError vtable for the right + // original type E. + unsafe { (vtable(this.ptr).object_ref)(this).deref() } + } + + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + pub(crate) unsafe fn error_mut(this: Mut) -> &mut (dyn StdError + Send + Sync + 'static) { + // Use vtable to attach E's native StdError vtable for the right + // original type E. + unsafe { + (vtable(this.ptr).object_ref)(this.by_ref()) + .by_mut() + .deref_mut() + } + } + + #[cfg(any(std_backtrace, feature = "backtrace"))] + pub(crate) unsafe fn backtrace(this: Ref) -> &Backtrace { + // This unwrap can only panic if the underlying error's backtrace method + // is nondeterministic, which would only happen in maliciously + // constructed code. + unsafe { this.deref() } + .backtrace + .as_ref() + .or_else(|| { + #[cfg(error_generic_member_access)] + return nightly::request_ref_backtrace(unsafe { Self::error(this) }); + #[cfg(not(error_generic_member_access))] + return unsafe { (vtable(this.ptr).object_backtrace)(this) }; + }) + .expect("backtrace capture failed") + } + + #[cfg(error_generic_member_access)] + unsafe fn provide<'a>(this: Ref<'a, Self>, request: &mut Request<'a>) { + if let Some(backtrace) = unsafe { &this.deref().backtrace } { + nightly::provide_ref_backtrace(request, backtrace); + } + nightly::provide(unsafe { Self::error(this) }, request); + } + + #[cold] + pub(crate) unsafe fn chain(this: Ref) -> Chain { + Chain::new(unsafe { Self::error(this) }) + } +} + +impl StdError for ErrorImpl +where + E: StdError, +{ + fn source(&self) -> Option<&(dyn StdError + 'static)> { + unsafe { ErrorImpl::error(self.erase()).source() } + } + + #[cfg(error_generic_member_access)] + fn provide<'a>(&'a self, request: &mut Request<'a>) { + unsafe { ErrorImpl::provide(self.erase(), request) } + } +} + +impl Debug for ErrorImpl +where + E: Debug, +{ + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + unsafe { ErrorImpl::debug(self.erase(), formatter) } + } +} + +impl Display for ErrorImpl +where + E: Display, +{ + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + unsafe { Display::fmt(ErrorImpl::error(self.erase()), formatter) } + } +} + +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +impl From for Box { + #[cold] + fn from(error: Error) -> Self { + error.into_boxed_dyn_error() + } +} + +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +impl From for Box { + #[cold] + fn from(error: Error) -> Self { + error.into_boxed_dyn_error() + } +} + +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +impl From for Box { + #[cold] + fn from(error: Error) -> Self { + error.into_boxed_dyn_error() + } +} + +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +impl AsRef for Error { + fn as_ref(&self) -> &(dyn StdError + Send + Sync + 'static) { + &**self + } +} + +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +impl AsRef for Error { + fn as_ref(&self) -> &(dyn StdError + 'static) { + &**self + } +} + +impl UnwindSafe for Error {} +impl RefUnwindSafe for Error {} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/fmt.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/fmt.rs new file mode 100644 index 0000000000000000000000000000000000000000..85c84a9ca434739ac58177f44f0c8be771f7a002 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/fmt.rs @@ -0,0 +1,158 @@ +use crate::chain::Chain; +use crate::error::ErrorImpl; +use crate::ptr::Ref; +use core::fmt::{self, Debug, Write}; + +impl ErrorImpl { + pub(crate) unsafe fn display(this: Ref, f: &mut fmt::Formatter) -> fmt::Result { + write!(f, "{}", unsafe { Self::error(this) })?; + + if f.alternate() { + let chain = unsafe { Self::chain(this) }; + for cause in chain.skip(1) { + write!(f, ": {}", cause)?; + } + } + + Ok(()) + } + + pub(crate) unsafe fn debug(this: Ref, f: &mut fmt::Formatter) -> fmt::Result { + let error = unsafe { Self::error(this) }; + + if f.alternate() { + return Debug::fmt(error, f); + } + + write!(f, "{}", error)?; + + if let Some(cause) = error.source() { + write!(f, "\n\nCaused by:")?; + let multiple = cause.source().is_some(); + for (n, error) in Chain::new(cause).enumerate() { + writeln!(f)?; + let mut indented = Indented { + inner: f, + number: if multiple { Some(n) } else { None }, + started: false, + }; + write!(indented, "{}", error)?; + } + } + + #[cfg(any(std_backtrace, feature = "backtrace"))] + { + use crate::backtrace::BacktraceStatus; + use alloc::string::ToString; + + let backtrace = unsafe { Self::backtrace(this) }; + if let BacktraceStatus::Captured = backtrace.status() { + let mut backtrace = backtrace.to_string(); + write!(f, "\n\n")?; + if backtrace.starts_with("stack backtrace:") { + // Capitalize to match "Caused by:" + backtrace.replace_range(0..1, "S"); + } else { + // "stack backtrace:" prefix was removed in + // https://github.com/rust-lang/backtrace-rs/pull/286 + writeln!(f, "Stack backtrace:")?; + } + backtrace.truncate(backtrace.trim_end().len()); + write!(f, "{}", backtrace)?; + } + } + + Ok(()) + } +} + +struct Indented<'a, D> { + inner: &'a mut D, + number: Option, + started: bool, +} + +impl Write for Indented<'_, T> +where + T: Write, +{ + fn write_str(&mut self, s: &str) -> fmt::Result { + for (i, line) in s.split('\n').enumerate() { + if !self.started { + self.started = true; + match self.number { + Some(number) => write!(self.inner, "{: >5}: ", number)?, + None => self.inner.write_str(" ")?, + } + } else if i > 0 { + self.inner.write_char('\n')?; + if self.number.is_some() { + self.inner.write_str(" ")?; + } else { + self.inner.write_str(" ")?; + } + } + + self.inner.write_str(line)?; + } + + Ok(()) + } +} + +#[cfg(test)] +mod tests { + use super::*; + use alloc::string::String; + + #[test] + fn one_digit() { + let input = "verify\nthis"; + let expected = " 2: verify\n this"; + let mut output = String::new(); + + Indented { + inner: &mut output, + number: Some(2), + started: false, + } + .write_str(input) + .unwrap(); + + assert_eq!(expected, output); + } + + #[test] + fn two_digits() { + let input = "verify\nthis"; + let expected = " 12: verify\n this"; + let mut output = String::new(); + + Indented { + inner: &mut output, + number: Some(12), + started: false, + } + .write_str(input) + .unwrap(); + + assert_eq!(expected, output); + } + + #[test] + fn no_digits() { + let input = "verify\nthis"; + let expected = " verify\n this"; + let mut output = String::new(); + + Indented { + inner: &mut output, + number: None, + started: false, + } + .write_str(input) + .unwrap(); + + assert_eq!(expected, output); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/kind.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/kind.rs new file mode 100644 index 0000000000000000000000000000000000000000..a9f40c33d42970fe7187d04199f1c9bff408a667 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/kind.rs @@ -0,0 +1,121 @@ +// Tagged dispatch mechanism for resolving the behavior of `anyhow!($expr)`. +// +// When anyhow! is given a single expr argument to turn into anyhow::Error, we +// want the resulting Error to pick up the input's implementation of source() +// and backtrace() if it has a std::error::Error impl, otherwise require nothing +// more than Display and Debug. +// +// Expressed in terms of specialization, we want something like: +// +// trait AnyhowNew { +// fn new(self) -> Error; +// } +// +// impl AnyhowNew for T +// where +// T: Display + Debug + Send + Sync + 'static, +// { +// default fn new(self) -> Error { +// /* no std error impl */ +// } +// } +// +// impl AnyhowNew for T +// where +// T: std::error::Error + Send + Sync + 'static, +// { +// fn new(self) -> Error { +// /* use std error's source() and backtrace() */ +// } +// } +// +// Since specialization is not stable yet, instead we rely on autoref behavior +// of method resolution to perform tagged dispatch. Here we have two traits +// AdhocKind and TraitKind that both have an anyhow_kind() method. AdhocKind is +// implemented whether or not the caller's type has a std error impl, while +// TraitKind is implemented only when a std error impl does exist. The ambiguity +// is resolved by AdhocKind requiring an extra autoref so that it has lower +// precedence. +// +// The anyhow! macro will set up the call in this form: +// +// #[allow(unused_imports)] +// use $crate::__private::{AdhocKind, TraitKind}; +// let error = $msg; +// (&error).anyhow_kind().new(error) + +use crate::Error; +use core::fmt::{Debug, Display}; + +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +use crate::StdError; +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +use alloc::boxed::Box; + +pub struct Adhoc; + +#[doc(hidden)] +pub trait AdhocKind: Sized { + #[inline] + fn anyhow_kind(&self) -> Adhoc { + Adhoc + } +} + +impl AdhocKind for &T where T: ?Sized + Display + Debug + Send + Sync + 'static {} + +impl Adhoc { + #[cold] + pub fn new(self, message: M) -> Error + where + M: Display + Debug + Send + Sync + 'static, + { + Error::construct_from_adhoc(message, backtrace!()) + } +} + +pub struct Trait; + +#[doc(hidden)] +pub trait TraitKind: Sized { + #[inline] + fn anyhow_kind(&self) -> Trait { + Trait + } +} + +impl TraitKind for E where E: Into {} + +impl Trait { + #[cold] + pub fn new(self, error: E) -> Error + where + E: Into, + { + error.into() + } +} + +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +pub struct Boxed; + +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +#[doc(hidden)] +pub trait BoxedKind: Sized { + #[inline] + fn anyhow_kind(&self) -> Boxed { + Boxed + } +} + +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +impl BoxedKind for Box {} + +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +impl Boxed { + #[cold] + pub fn new(self, error: Box) -> Error { + let backtrace = backtrace_if_absent!(&*error); + Error::construct_from_boxed(error, backtrace) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/lib.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/lib.rs new file mode 100644 index 0000000000000000000000000000000000000000..9e0e499485ac7b006072793457a91c3c3c50a471 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/lib.rs @@ -0,0 +1,728 @@ +//! [![github]](https://github.com/dtolnay/anyhow) [![crates-io]](https://crates.io/crates/anyhow) [![docs-rs]](https://docs.rs/anyhow) +//! +//! [github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github +//! [crates-io]: https://img.shields.io/badge/crates.io-fc8d62?style=for-the-badge&labelColor=555555&logo=rust +//! [docs-rs]: https://img.shields.io/badge/docs.rs-66c2a5?style=for-the-badge&labelColor=555555&logo=docs.rs +//! +//!
+//! +//! This library provides [`anyhow::Error`][Error], a trait object based error +//! type for easy idiomatic error handling in Rust applications. +//! +//!
+//! +//! # Details +//! +//! - Use `Result`, or equivalently `anyhow::Result`, as +//! the return type of any fallible function. +//! +//! Within the function, use `?` to easily propagate any error that implements +//! the [`std::error::Error`] trait. +//! +//! ``` +//! # pub trait Deserialize {} +//! # +//! # mod serde_json { +//! # use super::Deserialize; +//! # use std::io; +//! # +//! # pub fn from_str(json: &str) -> io::Result { +//! # unimplemented!() +//! # } +//! # } +//! # +//! # struct ClusterMap; +//! # +//! # impl Deserialize for ClusterMap {} +//! # +//! use anyhow::Result; +//! +//! fn get_cluster_info() -> Result { +//! let config = std::fs::read_to_string("cluster.json")?; +//! let map: ClusterMap = serde_json::from_str(&config)?; +//! Ok(map) +//! } +//! # +//! # fn main() {} +//! ``` +//! +//! - Attach context to help the person troubleshooting the error understand +//! where things went wrong. A low-level error like "No such file or +//! directory" can be annoying to debug without more context about what higher +//! level step the application was in the middle of. +//! +//! ``` +//! # struct It; +//! # +//! # impl It { +//! # fn detach(&self) -> Result<()> { +//! # unimplemented!() +//! # } +//! # } +//! # +//! use anyhow::{Context, Result}; +//! +//! fn main() -> Result<()> { +//! # return Ok(()); +//! # +//! # const _: &str = stringify! { +//! ... +//! # }; +//! # +//! # let it = It; +//! # let path = "./path/to/instrs.json"; +//! # +//! it.detach().context("Failed to detach the important thing")?; +//! +//! let content = std::fs::read(path) +//! .with_context(|| format!("Failed to read instrs from {}", path))?; +//! # +//! # const _: &str = stringify! { +//! ... +//! # }; +//! # +//! # Ok(()) +//! } +//! ``` +//! +//! ```console +//! Error: Failed to read instrs from ./path/to/instrs.json +//! +//! Caused by: +//! No such file or directory (os error 2) +//! ``` +//! +//! - Downcasting is supported and can be by value, by shared reference, or by +//! mutable reference as needed. +//! +//! ``` +//! # use anyhow::anyhow; +//! # use std::fmt::{self, Display}; +//! # use std::task::Poll; +//! # +//! # #[derive(Debug)] +//! # enum DataStoreError { +//! # Censored(()), +//! # } +//! # +//! # impl Display for DataStoreError { +//! # fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { +//! # unimplemented!() +//! # } +//! # } +//! # +//! # impl std::error::Error for DataStoreError {} +//! # +//! # const REDACTED_CONTENT: () = (); +//! # +//! # let error = anyhow!("..."); +//! # let root_cause = &error; +//! # +//! # let ret = +//! // If the error was caused by redaction, then return a +//! // tombstone instead of the content. +//! match root_cause.downcast_ref::() { +//! Some(DataStoreError::Censored(_)) => Ok(Poll::Ready(REDACTED_CONTENT)), +//! None => Err(error), +//! } +//! # ; +//! ``` +//! +//! - If using Rust ≥ 1.65, a backtrace is captured and printed with the +//! error if the underlying error type does not already provide its own. In +//! order to see backtraces, they must be enabled through the environment +//! variables described in [`std::backtrace`]: +//! +//! - If you want panics and errors to both have backtraces, set +//! `RUST_BACKTRACE=1`; +//! - If you want only errors to have backtraces, set `RUST_LIB_BACKTRACE=1`; +//! - If you want only panics to have backtraces, set `RUST_BACKTRACE=1` and +//! `RUST_LIB_BACKTRACE=0`. +//! +//! [`std::backtrace`]: std::backtrace#environment-variables +//! +//! - Anyhow works with any error type that has an impl of `std::error::Error`, +//! including ones defined in your crate. We do not bundle a `derive(Error)` +//! macro but you can write the impls yourself or use a standalone macro like +//! [thiserror]. +//! +//! [thiserror]: https://github.com/dtolnay/thiserror +//! +//! ``` +//! use thiserror::Error; +//! +//! #[derive(Error, Debug)] +//! pub enum FormatError { +//! #[error("Invalid header (expected {expected:?}, got {found:?})")] +//! InvalidHeader { +//! expected: String, +//! found: String, +//! }, +//! #[error("Missing attribute: {0}")] +//! MissingAttribute(String), +//! } +//! ``` +//! +//! - One-off error messages can be constructed using the `anyhow!` macro, which +//! supports string interpolation and produces an `anyhow::Error`. +//! +//! ``` +//! # use anyhow::{anyhow, Result}; +//! # +//! # fn demo() -> Result<()> { +//! # let missing = "..."; +//! return Err(anyhow!("Missing attribute: {}", missing)); +//! # Ok(()) +//! # } +//! ``` +//! +//! A `bail!` macro is provided as a shorthand for the same early return. +//! +//! ``` +//! # use anyhow::{bail, Result}; +//! # +//! # fn demo() -> Result<()> { +//! # let missing = "..."; +//! bail!("Missing attribute: {}", missing); +//! # Ok(()) +//! # } +//! ``` +//! +//!
+//! +//! # No-std support +//! +//! In no_std mode, almost all of the same API is available and works the same +//! way. To depend on Anyhow in no_std mode, disable our default enabled "std" +//! feature in Cargo.toml. A global allocator is required. +//! +//! ```toml +//! [dependencies] +//! anyhow = { version = "1.0", default-features = false } +//! ``` +//! +//! With versions of Rust older than 1.81, no_std mode may require an additional +//! `.map_err(Error::msg)` when working with a non-Anyhow error type inside a +//! function that returns Anyhow's error type, as the trait that `?`-based error +//! conversions are defined by is only available in std in those old versions. + +#![doc(html_root_url = "https://docs.rs/anyhow/1.0.101")] +#![cfg_attr(error_generic_member_access, feature(error_generic_member_access))] +#![no_std] +#![deny(dead_code, unsafe_op_in_unsafe_fn, unused_imports, unused_mut)] +#![allow( + clippy::doc_markdown, + clippy::elidable_lifetime_names, + clippy::enum_glob_use, + clippy::explicit_auto_deref, + clippy::extra_unused_type_parameters, + clippy::incompatible_msrv, + clippy::let_underscore_untyped, + clippy::missing_errors_doc, + clippy::missing_panics_doc, + clippy::module_name_repetitions, + clippy::must_use_candidate, + clippy::needless_doctest_main, + clippy::needless_lifetimes, + clippy::new_ret_no_self, + clippy::redundant_else, + clippy::return_self_not_must_use, + clippy::struct_field_names, + clippy::uninlined_format_args, + clippy::unused_self, + clippy::used_underscore_binding, + clippy::wildcard_imports, + clippy::wrong_self_convention +)] +#![allow(unknown_lints, mismatched_lifetime_syntaxes)] + +#[cfg(all( + anyhow_nightly_testing, + feature = "std", + not(error_generic_member_access) +))] +compile_error!("Build script probe failed to compile."); + +extern crate alloc; + +#[cfg(feature = "std")] +extern crate std; + +#[macro_use] +mod backtrace; +mod chain; +mod context; +mod ensure; +mod error; +mod fmt; +mod kind; +mod macros; +#[cfg(error_generic_member_access)] +mod nightly; +mod ptr; +mod wrapper; + +use crate::error::ErrorImpl; +use crate::ptr::Own; +use core::fmt::Display; + +#[cfg(all(not(feature = "std"), anyhow_no_core_error))] +use core::fmt::Debug; + +#[cfg(feature = "std")] +use std::error::Error as StdError; + +#[cfg(not(any(feature = "std", anyhow_no_core_error)))] +use core::error::Error as StdError; + +#[cfg(all(not(feature = "std"), anyhow_no_core_error))] +trait StdError: Debug + Display { + fn source(&self) -> Option<&(dyn StdError + 'static)> { + None + } +} + +#[doc(no_inline)] +pub use anyhow as format_err; + +/// The `Error` type, a wrapper around a dynamic error type. +/// +/// `Error` works a lot like `Box`, but with these +/// differences: +/// +/// - `Error` requires that the error is `Send`, `Sync`, and `'static`. +/// - `Error` guarantees that a backtrace is available, even if the underlying +/// error type does not provide one. +/// - `Error` is represented as a narrow pointer — exactly one word in +/// size instead of two. +/// +///
+/// +/// # Display representations +/// +/// When you print an error object using "{}" or to_string(), only the outermost +/// underlying error or context is printed, not any of the lower level causes. +/// This is exactly as if you had called the Display impl of the error from +/// which you constructed your anyhow::Error. +/// +/// ```console +/// Failed to read instrs from ./path/to/instrs.json +/// ``` +/// +/// To print causes as well using anyhow's default formatting of causes, use the +/// alternate selector "{:#}". +/// +/// ```console +/// Failed to read instrs from ./path/to/instrs.json: No such file or directory (os error 2) +/// ``` +/// +/// The Debug format "{:?}" includes your backtrace if one was captured. Note +/// that this is the representation you get by default if you return an error +/// from `fn main` instead of printing it explicitly yourself. +/// +/// ```console +/// Error: Failed to read instrs from ./path/to/instrs.json +/// +/// Caused by: +/// No such file or directory (os error 2) +/// ``` +/// +/// and if there is a backtrace available: +/// +/// ```console +/// Error: Failed to read instrs from ./path/to/instrs.json +/// +/// Caused by: +/// No such file or directory (os error 2) +/// +/// Stack backtrace: +/// 0: ::ext_context +/// at /git/anyhow/src/backtrace.rs:26 +/// 1: core::result::Result::map_err +/// at /git/rustc/src/libcore/result.rs:596 +/// 2: anyhow::context:: for core::result::Result>::with_context +/// at /git/anyhow/src/context.rs:58 +/// 3: testing::main +/// at src/main.rs:5 +/// 4: std::rt::lang_start +/// at /git/rustc/src/libstd/rt.rs:61 +/// 5: main +/// 6: __libc_start_main +/// 7: _start +/// ``` +/// +/// To see a conventional struct-style Debug representation, use "{:#?}". +/// +/// ```console +/// Error { +/// context: "Failed to read instrs from ./path/to/instrs.json", +/// source: Os { +/// code: 2, +/// kind: NotFound, +/// message: "No such file or directory", +/// }, +/// } +/// ``` +/// +/// If none of the built-in representations are appropriate and you would prefer +/// to render the error and its cause chain yourself, it can be done something +/// like this: +/// +/// ``` +/// use anyhow::{Context, Result}; +/// +/// fn main() { +/// if let Err(err) = try_main() { +/// eprintln!("ERROR: {}", err); +/// err.chain().skip(1).for_each(|cause| eprintln!("because: {}", cause)); +/// std::process::exit(1); +/// } +/// } +/// +/// fn try_main() -> Result<()> { +/// # const IGNORE: &str = stringify! { +/// ... +/// # }; +/// # Ok(()) +/// } +/// ``` +#[repr(transparent)] +pub struct Error { + inner: Own, +} + +/// Iterator of a chain of source errors. +/// +/// This type is the iterator returned by [`Error::chain`]. +/// +/// # Example +/// +/// ``` +/// use anyhow::Error; +/// use std::io; +/// +/// pub fn underlying_io_error_kind(error: &Error) -> Option { +/// for cause in error.chain() { +/// if let Some(io_error) = cause.downcast_ref::() { +/// return Some(io_error.kind()); +/// } +/// } +/// None +/// } +/// ``` +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +#[derive(Clone)] +pub struct Chain<'a> { + state: crate::chain::ChainState<'a>, +} + +/// `Result` +/// +/// This is a reasonable return type to use throughout your application but also +/// for `fn main`; if you do, failures will be printed along with any +/// [context][Context] and a backtrace if one was captured. +/// +/// `anyhow::Result` may be used with one *or* two type parameters. +/// +/// ```rust +/// use anyhow::Result; +/// +/// # const IGNORE: &str = stringify! { +/// fn demo1() -> Result {...} +/// // ^ equivalent to std::result::Result +/// +/// fn demo2() -> Result {...} +/// // ^ equivalent to std::result::Result +/// # }; +/// ``` +/// +/// # Example +/// +/// ``` +/// # pub trait Deserialize {} +/// # +/// # mod serde_json { +/// # use super::Deserialize; +/// # use std::io; +/// # +/// # pub fn from_str(json: &str) -> io::Result { +/// # unimplemented!() +/// # } +/// # } +/// # +/// # #[derive(Debug)] +/// # struct ClusterMap; +/// # +/// # impl Deserialize for ClusterMap {} +/// # +/// use anyhow::Result; +/// +/// fn main() -> Result<()> { +/// # return Ok(()); +/// let config = std::fs::read_to_string("cluster.json")?; +/// let map: ClusterMap = serde_json::from_str(&config)?; +/// println!("cluster info: {:#?}", map); +/// Ok(()) +/// } +/// ``` +pub type Result = core::result::Result; + +/// Provides the `context` method for `Result`. +/// +/// This trait is sealed and cannot be implemented for types outside of +/// `anyhow`. +/// +///
+/// +/// # Example +/// +/// ``` +/// use anyhow::{Context, Result}; +/// use std::fs; +/// use std::path::PathBuf; +/// +/// pub struct ImportantThing { +/// path: PathBuf, +/// } +/// +/// impl ImportantThing { +/// # const IGNORE: &'static str = stringify! { +/// pub fn detach(&mut self) -> Result<()> {...} +/// # }; +/// # fn detach(&mut self) -> Result<()> { +/// # unimplemented!() +/// # } +/// } +/// +/// pub fn do_it(mut it: ImportantThing) -> Result> { +/// it.detach().context("Failed to detach the important thing")?; +/// +/// let path = &it.path; +/// let content = fs::read(path) +/// .with_context(|| format!("Failed to read instrs from {}", path.display()))?; +/// +/// Ok(content) +/// } +/// ``` +/// +/// When printed, the outermost context would be printed first and the lower +/// level underlying causes would be enumerated below. +/// +/// ```console +/// Error: Failed to read instrs from ./path/to/instrs.json +/// +/// Caused by: +/// No such file or directory (os error 2) +/// ``` +/// +/// Refer to the [Display representations] documentation for other forms in +/// which this context chain can be rendered. +/// +/// [Display representations]: Error#display-representations +/// +///
+/// +/// # Effect on downcasting +/// +/// After attaching context of type `C` onto an error of type `E`, the resulting +/// `anyhow::Error` may be downcast to `C` **or** to `E`. +/// +/// That is, in codebases that rely on downcasting, Anyhow's context supports +/// both of the following use cases: +/// +/// - **Attaching context whose type is insignificant onto errors whose type +/// is used in downcasts.** +/// +/// In other error libraries whose context is not designed this way, it can +/// be risky to introduce context to existing code because new context might +/// break existing working downcasts. In Anyhow, any downcast that worked +/// before adding context will continue to work after you add a context, so +/// you should freely add human-readable context to errors wherever it would +/// be helpful. +/// +/// ``` +/// # use anyhow::bail; +/// # use thiserror::Error; +/// # +/// # #[derive(Error, Debug)] +/// # #[error("???")] +/// # struct SuspiciousError; +/// # +/// # fn helper() -> Result<()> { +/// # bail!(SuspiciousError); +/// # } +/// # +/// use anyhow::{Context, Result}; +/// +/// fn do_it() -> Result<()> { +/// helper().context("Failed to complete the work")?; +/// # const IGNORE: &str = stringify! { +/// ... +/// # }; +/// # unreachable!() +/// } +/// +/// fn main() { +/// let err = do_it().unwrap_err(); +/// if let Some(e) = err.downcast_ref::() { +/// // If helper() returned SuspiciousError, this downcast will +/// // correctly succeed even with the context in between. +/// # return; +/// } +/// # panic!("expected downcast to succeed"); +/// } +/// ``` +/// +/// - **Attaching context whose type is used in downcasts onto errors whose +/// type is insignificant.** +/// +/// Some codebases prefer to use machine-readable context to categorize +/// lower level errors in a way that will be actionable to higher levels of +/// the application. +/// +/// ``` +/// # use anyhow::bail; +/// # use thiserror::Error; +/// # +/// # #[derive(Error, Debug)] +/// # #[error("???")] +/// # struct HelperFailed; +/// # +/// # fn helper() -> Result<()> { +/// # bail!("no such file or directory"); +/// # } +/// # +/// use anyhow::{Context, Result}; +/// +/// fn do_it() -> Result<()> { +/// helper().context(HelperFailed)?; +/// # const IGNORE: &str = stringify! { +/// ... +/// # }; +/// # unreachable!() +/// } +/// +/// fn main() { +/// let err = do_it().unwrap_err(); +/// if let Some(e) = err.downcast_ref::() { +/// // If helper failed, this downcast will succeed because +/// // HelperFailed is the context that has been attached to +/// // that error. +/// # return; +/// } +/// # panic!("expected downcast to succeed"); +/// } +/// ``` +pub trait Context: context::private::Sealed { + /// Wrap the error value with additional context. + fn context(self, context: C) -> Result + where + C: Display + Send + Sync + 'static; + + /// Wrap the error value with additional context that is evaluated lazily + /// only once an error does occur. + fn with_context(self, f: F) -> Result + where + C: Display + Send + Sync + 'static, + F: FnOnce() -> C; +} + +/// Equivalent to `Ok::<_, anyhow::Error>(value)`. +/// +/// This simplifies creation of an `anyhow::Result` in places where type +/// inference cannot deduce the `E` type of the result — without needing +/// to write `Ok::<_, anyhow::Error>(value)`. +/// +/// One might think that `anyhow::Result::Ok(value)` would work in such cases +/// but it does not. +/// +/// ```console +/// error[E0282]: type annotations needed for `std::result::Result` +/// --> src/main.rs:11:13 +/// | +/// 11 | let _ = anyhow::Result::Ok(1); +/// | - ^^^^^^^^^^^^^^^^^^ cannot infer type for type parameter `E` declared on the enum `Result` +/// | | +/// | consider giving this pattern the explicit type `std::result::Result`, where the type parameter `E` is specified +/// ``` +#[allow(non_snake_case)] +#[inline] +pub fn Ok(value: T) -> Result { + Result::Ok(value) +} + +// Not public API. Referenced by macro-generated code. +#[doc(hidden)] +pub mod __private { + use self::not::Bool; + use crate::Error; + use alloc::fmt; + use core::fmt::Arguments; + + #[doc(hidden)] + pub use crate::ensure::{BothDebug, NotBothDebug}; + #[doc(hidden)] + pub use alloc::format; + #[doc(hidden)] + pub use core::result::Result::Err; + #[doc(hidden)] + pub use core::{concat, format_args, stringify}; + + #[doc(hidden)] + pub mod kind { + #[doc(hidden)] + pub use crate::kind::{AdhocKind, TraitKind}; + + #[cfg(any(feature = "std", not(anyhow_no_core_error)))] + #[doc(hidden)] + pub use crate::kind::BoxedKind; + } + + #[doc(hidden)] + #[inline] + #[cold] + pub fn format_err(args: Arguments) -> Error { + if let Some(message) = args.as_str() { + // anyhow!("literal"), can downcast to &'static str + Error::msg(message) + } else { + // anyhow!("interpolate {var}"), can downcast to String + Error::msg(fmt::format(args)) + } + } + + #[doc(hidden)] + #[inline] + #[cold] + #[must_use] + pub fn must_use(error: Error) -> Error { + error + } + + #[doc(hidden)] + #[inline] + pub fn not(cond: impl Bool) -> bool { + cond.not() + } + + mod not { + #[doc(hidden)] + pub trait Bool { + fn not(self) -> bool; + } + + impl Bool for bool { + #[inline] + fn not(self) -> bool { + !self + } + } + + impl Bool for &bool { + #[inline] + fn not(self) -> bool { + !*self + } + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/macros.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/macros.rs new file mode 100644 index 0000000000000000000000000000000000000000..1558de56a25236181d4b8d12e7f7614d147cdc6f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/macros.rs @@ -0,0 +1,245 @@ +/// Return early with an error. +/// +/// This macro is equivalent to +/// return Err([anyhow!($args\...)][anyhow!]). +/// +/// The surrounding function's or closure's return value is required to be +/// Result<_, [anyhow::Error][crate::Error]>. +/// +/// [anyhow!]: crate::anyhow +/// +/// # Example +/// +/// ``` +/// # use anyhow::{bail, Result}; +/// # +/// # fn has_permission(user: usize, resource: usize) -> bool { +/// # true +/// # } +/// # +/// # fn main() -> Result<()> { +/// # let user = 0; +/// # let resource = 0; +/// # +/// if !has_permission(user, resource) { +/// bail!("permission denied for accessing {}", resource); +/// } +/// # Ok(()) +/// # } +/// ``` +/// +/// ``` +/// # use anyhow::{bail, Result}; +/// # use thiserror::Error; +/// # +/// # const MAX_DEPTH: usize = 1; +/// # +/// #[derive(Error, Debug)] +/// enum ScienceError { +/// #[error("recursion limit exceeded")] +/// RecursionLimitExceeded, +/// # #[error("...")] +/// # More = (stringify! { +/// ... +/// # }, 1).1, +/// } +/// +/// # fn main() -> Result<()> { +/// # let depth = 0; +/// # +/// if depth > MAX_DEPTH { +/// bail!(ScienceError::RecursionLimitExceeded); +/// } +/// # Ok(()) +/// # } +/// ``` +#[macro_export] +#[cfg_attr(not(anyhow_no_clippy_format_args), clippy::format_args)] +macro_rules! bail { + ($msg:literal $(,)?) => { + return $crate::__private::Err($crate::__anyhow!($msg)) + }; + ($err:expr $(,)?) => { + return $crate::__private::Err($crate::__anyhow!($err)) + }; + ($fmt:expr, $($arg:tt)*) => { + return $crate::__private::Err($crate::__anyhow!($fmt, $($arg)*)) + }; +} + +macro_rules! __ensure { + ($ensure:item) => { + /// Return early with an error if a condition is not satisfied. + /// + /// This macro is equivalent to + /// if !$cond { return Err([anyhow!($args\...)][anyhow!]); }. + /// + /// The surrounding function's or closure's return value is required to be + /// Result<_, [anyhow::Error][crate::Error]>. + /// + /// Analogously to `assert!`, `ensure!` takes a condition and exits the function + /// if the condition fails. Unlike `assert!`, `ensure!` returns an `Error` + /// rather than panicking. + /// + /// [anyhow!]: crate::anyhow + /// + /// # Example + /// + /// ``` + /// # use anyhow::{ensure, Result}; + /// # + /// # fn main() -> Result<()> { + /// # let user = 0; + /// # + /// ensure!(user == 0, "only user 0 is allowed"); + /// # Ok(()) + /// # } + /// ``` + /// + /// ``` + /// # use anyhow::{ensure, Result}; + /// # use thiserror::Error; + /// # + /// # const MAX_DEPTH: usize = 1; + /// # + /// #[derive(Error, Debug)] + /// enum ScienceError { + /// #[error("recursion limit exceeded")] + /// RecursionLimitExceeded, + /// # #[error("...")] + /// # More = (stringify! { + /// ... + /// # }, 1).1, + /// } + /// + /// # fn main() -> Result<()> { + /// # let depth = 0; + /// # + /// ensure!(depth <= MAX_DEPTH, ScienceError::RecursionLimitExceeded); + /// # Ok(()) + /// # } + /// ``` + $ensure + }; +} + +#[cfg(doc)] +__ensure![ + #[macro_export] + macro_rules! ensure { + ($cond:expr $(,)?) => { + if !$cond { + return $crate::__private::Err($crate::Error::msg( + $crate::__private::concat!("Condition failed: `", $crate::__private::stringify!($cond), "`") + )); + } + }; + ($cond:expr, $msg:literal $(,)?) => { + if !$cond { + return $crate::__private::Err($crate::__anyhow!($msg)); + } + }; + ($cond:expr, $err:expr $(,)?) => { + if !$cond { + return $crate::__private::Err($crate::__anyhow!($err)); + } + }; + ($cond:expr, $fmt:expr, $($arg:tt)*) => { + if !$cond { + return $crate::__private::Err($crate::__anyhow!($fmt, $($arg)*)); + } + }; + } +]; + +#[cfg(not(doc))] +__ensure![ + #[macro_export] + #[cfg_attr(not(anyhow_no_clippy_format_args), clippy::format_args)] + macro_rules! ensure { + ($($tt:tt)*) => { + $crate::__parse_ensure!( + /* state */ 0 + /* stack */ () + /* bail */ ($($tt)*) + /* fuel */ (~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~) + /* parse */ {()} + /* dup */ ($($tt)*) + /* rest */ $($tt)* + ) + }; + } +]; + +/// Construct an ad-hoc error from a string or existing non-`anyhow` error +/// value. +/// +/// This evaluates to an [`Error`][crate::Error]. It can take either just a +/// string, or a format string with arguments. It also can take any custom type +/// which implements `Debug` and `Display`. +/// +/// If called with a single argument whose type implements `std::error::Error` +/// (in addition to `Debug` and `Display`, which are always required), then that +/// Error impl's `source` is preserved as the `source` of the resulting +/// `anyhow::Error`. +/// +/// # Example +/// +/// ``` +/// # type V = (); +/// # +/// use anyhow::{anyhow, Result}; +/// +/// fn lookup(key: &str) -> Result { +/// if key.len() != 16 { +/// return Err(anyhow!("key length must be 16 characters, got {:?}", key)); +/// } +/// +/// // ... +/// # Ok(()) +/// } +/// ``` +#[macro_export] +#[cfg_attr(not(anyhow_no_clippy_format_args), clippy::format_args)] +macro_rules! anyhow { + ($msg:literal $(,)?) => { + $crate::__private::must_use({ + let error = $crate::__private::format_err($crate::__private::format_args!($msg)); + error + }) + }; + ($err:expr $(,)?) => { + $crate::__private::must_use({ + use $crate::__private::kind::*; + let error = match $err { + error => (&error).anyhow_kind().new(error), + }; + error + }) + }; + ($fmt:expr, $($arg:tt)*) => { + $crate::Error::msg($crate::__private::format!($fmt, $($arg)*)) + }; +} + +// Not public API. This is used in the implementation of some of the other +// macros, in which the must_use call is not needed because the value is known +// to be used. +#[doc(hidden)] +#[macro_export] +macro_rules! __anyhow { + ($msg:literal $(,)?) => ({ + let error = $crate::__private::format_err($crate::__private::format_args!($msg)); + error + }); + ($err:expr $(,)?) => ({ + use $crate::__private::kind::*; + let error = match $err { + error => (&error).anyhow_kind().new(error), + }; + error + }); + ($fmt:expr, $($arg:tt)*) => { + $crate::Error::msg($crate::__private::format!($fmt, $($arg)*)) + }; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/nightly.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/nightly.rs new file mode 100644 index 0000000000000000000000000000000000000000..125fe36ad7a12ed9e5375f5f1519209c8011f791 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/nightly.rs @@ -0,0 +1,58 @@ +// This code exercises the surface area that we expect of the Error generic +// member access API. If the current toolchain is able to compile it, then +// anyhow is able to provide backtrace support. + +#![cfg_attr(anyhow_build_probe, feature(error_generic_member_access))] + +use core::error::{self, Error}; +use std::backtrace::Backtrace; + +pub use core::error::Request; + +#[cfg(anyhow_build_probe)] +const _: () = { + use core::fmt::{self, Debug, Display}; + + struct MyError(Backtrace); + + impl Debug for MyError { + fn fmt(&self, _formatter: &mut fmt::Formatter) -> fmt::Result { + unimplemented!() + } + } + + impl Display for MyError { + fn fmt(&self, _formatter: &mut fmt::Formatter) -> fmt::Result { + unimplemented!() + } + } + + impl Error for MyError { + fn provide<'a>(&'a self, request: &mut Request<'a>) { + provide_ref_backtrace(request, &self.0); + } + } +}; + +// Include in sccache cache key. +#[cfg(anyhow_build_probe)] +const _: Option<&str> = option_env!("RUSTC_BOOTSTRAP"); + +pub fn request_ref_backtrace(err: &dyn Error) -> Option<&Backtrace> { + request_ref::(err) +} + +fn request_ref<'a, T>(err: &'a (impl Error + ?Sized)) -> Option<&'a T> +where + T: 'static + ?Sized, +{ + error::request_ref::(err) +} + +pub fn provide_ref_backtrace<'a>(request: &mut Request<'a>, backtrace: &'a Backtrace) { + Request::provide_ref(request, backtrace); +} + +pub fn provide<'a>(err: &'a (impl Error + ?Sized), request: &mut Request<'a>) { + Error::provide(err, request); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/ptr.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/ptr.rs new file mode 100644 index 0000000000000000000000000000000000000000..4d6b3ab322937a45b8180ae705503816151688ff --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/ptr.rs @@ -0,0 +1,187 @@ +use alloc::boxed::Box; +use core::marker::PhantomData; +use core::ptr::NonNull; + +#[repr(transparent)] +pub struct Own +where + T: ?Sized, +{ + pub ptr: NonNull, +} + +unsafe impl Send for Own where T: ?Sized {} + +unsafe impl Sync for Own where T: ?Sized {} + +impl Copy for Own where T: ?Sized {} + +impl Clone for Own +where + T: ?Sized, +{ + fn clone(&self) -> Self { + *self + } +} + +impl Own +where + T: ?Sized, +{ + pub fn new(ptr: Box) -> Self { + Own { + ptr: unsafe { NonNull::new_unchecked(Box::into_raw(ptr)) }, + } + } + + pub fn cast(self) -> Own { + Own { + ptr: self.ptr.cast(), + } + } + + pub unsafe fn boxed(self) -> Box { + unsafe { Box::from_raw(self.ptr.as_ptr()) } + } + + pub fn by_ref(&self) -> Ref { + Ref { + ptr: self.ptr, + lifetime: PhantomData, + } + } + + pub fn by_mut(&mut self) -> Mut { + Mut { + ptr: self.ptr, + lifetime: PhantomData, + } + } +} + +#[repr(transparent)] +pub struct Ref<'a, T> +where + T: ?Sized, +{ + pub ptr: NonNull, + lifetime: PhantomData<&'a T>, +} + +impl<'a, T> Copy for Ref<'a, T> where T: ?Sized {} + +impl<'a, T> Clone for Ref<'a, T> +where + T: ?Sized, +{ + fn clone(&self) -> Self { + *self + } +} + +impl<'a, T> Ref<'a, T> +where + T: ?Sized, +{ + pub fn new(ptr: &'a T) -> Self { + Ref { + ptr: NonNull::from(ptr), + lifetime: PhantomData, + } + } + + pub fn from_raw(ptr: NonNull) -> Self { + Ref { + ptr, + lifetime: PhantomData, + } + } + + pub fn cast(self) -> Ref<'a, U::Target> { + Ref { + ptr: self.ptr.cast(), + lifetime: PhantomData, + } + } + + pub fn by_mut(self) -> Mut<'a, T> { + Mut { + ptr: self.ptr, + lifetime: PhantomData, + } + } + + pub fn as_ptr(self) -> *const T { + self.ptr.as_ptr().cast_const() + } + + pub unsafe fn deref(self) -> &'a T { + unsafe { &*self.ptr.as_ptr() } + } +} + +#[repr(transparent)] +pub struct Mut<'a, T> +where + T: ?Sized, +{ + pub ptr: NonNull, + lifetime: PhantomData<&'a mut T>, +} + +impl<'a, T> Copy for Mut<'a, T> where T: ?Sized {} + +impl<'a, T> Clone for Mut<'a, T> +where + T: ?Sized, +{ + fn clone(&self) -> Self { + *self + } +} + +impl<'a, T> Mut<'a, T> +where + T: ?Sized, +{ + pub fn cast(self) -> Mut<'a, U::Target> { + Mut { + ptr: self.ptr.cast(), + lifetime: PhantomData, + } + } + + pub fn by_ref(self) -> Ref<'a, T> { + Ref { + ptr: self.ptr, + lifetime: PhantomData, + } + } + + pub fn extend<'b>(self) -> Mut<'b, T> { + Mut { + ptr: self.ptr, + lifetime: PhantomData, + } + } + + pub unsafe fn deref_mut(self) -> &'a mut T { + unsafe { &mut *self.ptr.as_ptr() } + } +} + +impl<'a, T> Mut<'a, T> { + pub unsafe fn read(self) -> T { + unsafe { self.ptr.as_ptr().read() } + } +} + +// Force turbofish on all calls of `.cast::()`. +pub trait CastTo { + type Target; +} + +impl CastTo for T { + type Target = T; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/wrapper.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/wrapper.rs new file mode 100644 index 0000000000000000000000000000000000000000..bad3ddda4fcd1dc5f80b7843f404288fac0f04d3 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/src/wrapper.rs @@ -0,0 +1,84 @@ +use crate::StdError; +use core::fmt::{self, Debug, Display}; + +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +use alloc::boxed::Box; + +#[cfg(error_generic_member_access)] +use crate::nightly::{self, Request}; + +#[repr(transparent)] +pub struct MessageError(pub M); + +impl Debug for MessageError +where + M: Display + Debug, +{ + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + Debug::fmt(&self.0, f) + } +} + +impl Display for MessageError +where + M: Display + Debug, +{ + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + Display::fmt(&self.0, f) + } +} + +impl StdError for MessageError where M: Display + Debug + 'static {} + +#[repr(transparent)] +pub struct DisplayError(pub M); + +impl Debug for DisplayError +where + M: Display, +{ + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + Display::fmt(&self.0, f) + } +} + +impl Display for DisplayError +where + M: Display, +{ + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + Display::fmt(&self.0, f) + } +} + +impl StdError for DisplayError where M: Display + 'static {} + +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +#[repr(transparent)] +pub struct BoxedError(pub Box); + +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +impl Debug for BoxedError { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + Debug::fmt(&self.0, f) + } +} + +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +impl Display for BoxedError { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + Display::fmt(&self.0, f) + } +} + +#[cfg(any(feature = "std", not(anyhow_no_core_error)))] +impl StdError for BoxedError { + fn source(&self) -> Option<&(dyn StdError + 'static)> { + self.0.source() + } + + #[cfg(error_generic_member_access)] + fn provide<'a>(&'a self, request: &mut Request<'a>) { + nightly::provide(&*self.0, request); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/common/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/common/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..fc165a5be90c76446700891ce55a70cade729981 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/common/mod.rs @@ -0,0 +1,14 @@ +use anyhow::{bail, Result}; +use std::io; + +pub fn bail_literal() -> Result<()> { + bail!("oh no!"); +} + +pub fn bail_fmt() -> Result<()> { + bail!("{} {}!", "oh", "no"); +} + +pub fn bail_error() -> Result<()> { + bail!(io::Error::new(io::ErrorKind::Other, "oh no!")); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/compiletest.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/compiletest.rs new file mode 100644 index 0000000000000000000000000000000000000000..23a6a065ec960a031726c8c26222b0405d4f5851 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/compiletest.rs @@ -0,0 +1,7 @@ +#[rustversion::attr(not(nightly), ignore = "requires nightly")] +#[cfg_attr(miri, ignore = "incompatible with miri")] +#[test] +fn ui() { + let t = trybuild::TestCases::new(); + t.compile_fail("tests/ui/*.rs"); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/drop/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/drop/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..7da4bf55a1042f31b0752a125e3f9368462e65dc --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/drop/mod.rs @@ -0,0 +1,53 @@ +#![allow(clippy::module_name_repetitions)] + +use std::error::Error as StdError; +use std::fmt::{self, Display}; +use std::sync::atomic::{AtomicBool, Ordering}; +use std::sync::Arc; + +#[derive(Debug)] +pub struct Flag { + atomic: Arc, +} + +impl Flag { + pub fn new() -> Self { + Flag { + atomic: Arc::new(AtomicBool::new(false)), + } + } + + pub fn get(&self) -> bool { + self.atomic.load(Ordering::Relaxed) + } +} + +#[derive(Debug)] +pub struct DetectDrop { + has_dropped: Flag, +} + +impl DetectDrop { + pub fn new(has_dropped: &Flag) -> Self { + DetectDrop { + has_dropped: Flag { + atomic: Arc::clone(&has_dropped.atomic), + }, + } + } +} + +impl StdError for DetectDrop {} + +impl Display for DetectDrop { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + write!(f, "oh no!") + } +} + +impl Drop for DetectDrop { + fn drop(&mut self) { + let already_dropped = self.has_dropped.atomic.swap(true, Ordering::Relaxed); + assert!(!already_dropped); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_autotrait.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_autotrait.rs new file mode 100644 index 0000000000000000000000000000000000000000..080b3b9e00e3c987cc34bd3edefda3844b95fea6 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_autotrait.rs @@ -0,0 +1,34 @@ +#![allow(clippy::extra_unused_type_parameters)] + +use anyhow::Error; +use std::panic::{RefUnwindSafe, UnwindSafe}; + +#[test] +fn test_send() { + fn assert_send() {} + assert_send::(); +} + +#[test] +fn test_sync() { + fn assert_sync() {} + assert_sync::(); +} + +#[test] +fn test_unwind_safe() { + fn assert_unwind_safe() {} + assert_unwind_safe::(); +} + +#[test] +fn test_ref_unwind_safe() { + fn assert_ref_unwind_safe() {} + assert_ref_unwind_safe::(); +} + +#[test] +fn test_unpin() { + fn assert_unpin() {} + assert_unpin::(); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_backtrace.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_backtrace.rs new file mode 100644 index 0000000000000000000000000000000000000000..938c1c24ee3215b438cee98727f5cab27029eba0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_backtrace.rs @@ -0,0 +1,15 @@ +#![allow(clippy::let_underscore_untyped)] + +#[rustversion::not(nightly)] +#[ignore = "requires nightly"] +#[test] +fn test_backtrace() {} + +#[rustversion::nightly] +#[test] +fn test_backtrace() { + use anyhow::anyhow; + + let error = anyhow!("oh no!"); + let _ = error.backtrace(); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_boxed.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_boxed.rs new file mode 100644 index 0000000000000000000000000000000000000000..fb1fb132d50c8eacdf9aaf61250c0ce6aa91a413 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_boxed.rs @@ -0,0 +1,45 @@ +#![allow( + // Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422 + clippy::nonstandard_macro_braces, +)] + +use anyhow::anyhow; +use std::error::Error as StdError; +use std::io; +use thiserror::Error; + +#[derive(Error, Debug)] +#[error("outer")] +struct MyError { + source: io::Error, +} + +#[test] +fn test_boxed_str() { + let error = Box::::from("oh no!"); + let error = anyhow!(error); + assert_eq!("oh no!", error.to_string()); + assert_eq!( + "oh no!", + error + .downcast_ref::>() + .unwrap() + .to_string() + ); +} + +#[test] +fn test_boxed_thiserror() { + let error = MyError { + source: io::Error::new(io::ErrorKind::Other, "oh no!"), + }; + let error = anyhow!(error); + assert_eq!("oh no!", error.source().unwrap().to_string()); +} + +#[test] +fn test_boxed_anyhow() { + let error = anyhow!("oh no!").context("it failed"); + let error = anyhow!(error); + assert_eq!("oh no!", error.source().unwrap().to_string()); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_chain.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_chain.rs new file mode 100644 index 0000000000000000000000000000000000000000..c8b901ab41d8f549680e1b458ed74d0ab199df06 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_chain.rs @@ -0,0 +1,69 @@ +use anyhow::{anyhow, Chain, Error}; + +fn error() -> Error { + anyhow!({ 0 }).context(1).context(2).context(3) +} + +#[test] +fn test_iter() { + let e = error(); + let mut chain = e.chain(); + assert_eq!("3", chain.next().unwrap().to_string()); + assert_eq!("2", chain.next().unwrap().to_string()); + assert_eq!("1", chain.next().unwrap().to_string()); + assert_eq!("0", chain.next().unwrap().to_string()); + assert!(chain.next().is_none()); + assert!(chain.next_back().is_none()); +} + +#[test] +fn test_rev() { + let e = error(); + let mut chain = e.chain().rev(); + assert_eq!("0", chain.next().unwrap().to_string()); + assert_eq!("1", chain.next().unwrap().to_string()); + assert_eq!("2", chain.next().unwrap().to_string()); + assert_eq!("3", chain.next().unwrap().to_string()); + assert!(chain.next().is_none()); + assert!(chain.next_back().is_none()); +} + +#[test] +fn test_len() { + let e = error(); + let mut chain = e.chain(); + assert_eq!(4, chain.len()); + assert_eq!((4, Some(4)), chain.size_hint()); + assert_eq!("3", chain.next().unwrap().to_string()); + assert_eq!(3, chain.len()); + assert_eq!((3, Some(3)), chain.size_hint()); + assert_eq!("0", chain.next_back().unwrap().to_string()); + assert_eq!(2, chain.len()); + assert_eq!((2, Some(2)), chain.size_hint()); + assert_eq!("2", chain.next().unwrap().to_string()); + assert_eq!(1, chain.len()); + assert_eq!((1, Some(1)), chain.size_hint()); + assert_eq!("1", chain.next_back().unwrap().to_string()); + assert_eq!(0, chain.len()); + assert_eq!((0, Some(0)), chain.size_hint()); + assert!(chain.next().is_none()); +} + +#[test] +fn test_default() { + let mut c = Chain::default(); + assert!(c.next().is_none()); +} + +#[test] +#[allow(clippy::redundant_clone)] +fn test_clone() { + let e = error(); + let mut chain = e.chain().clone(); + assert_eq!("3", chain.next().unwrap().to_string()); + assert_eq!("2", chain.next().unwrap().to_string()); + assert_eq!("1", chain.next().unwrap().to_string()); + assert_eq!("0", chain.next().unwrap().to_string()); + assert!(chain.next().is_none()); + assert!(chain.next_back().is_none()); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_context.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_context.rs new file mode 100644 index 0000000000000000000000000000000000000000..2053fc9e571449d60a984db464e10c6fd651e743 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_context.rs @@ -0,0 +1,172 @@ +#![allow( + // Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422 + clippy::nonstandard_macro_braces, +)] + +mod drop; + +use crate::drop::{DetectDrop, Flag}; +use anyhow::{Context, Error, Result}; +use std::fmt::{self, Display}; +use thiserror::Error; + +// https://github.com/dtolnay/anyhow/issues/18 +#[test] +fn test_inference() -> Result<()> { + let x = "1"; + let y: u32 = x.parse().context("...")?; + assert_eq!(y, 1); + Ok(()) +} + +macro_rules! context_type { + ($name:ident) => { + #[derive(Debug)] + struct $name { + message: &'static str, + #[allow(dead_code)] + drop: DetectDrop, + } + + impl Display for $name { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + f.write_str(self.message) + } + } + }; +} + +context_type!(HighLevel); +context_type!(MidLevel); + +#[derive(Error, Debug)] +#[error("{message}")] +struct LowLevel { + message: &'static str, + drop: DetectDrop, +} + +struct Dropped { + low: Flag, + mid: Flag, + high: Flag, +} + +impl Dropped { + fn none(&self) -> bool { + !self.low.get() && !self.mid.get() && !self.high.get() + } + + fn all(&self) -> bool { + self.low.get() && self.mid.get() && self.high.get() + } +} + +fn make_chain() -> (Error, Dropped) { + let dropped = Dropped { + low: Flag::new(), + mid: Flag::new(), + high: Flag::new(), + }; + + let low = LowLevel { + message: "no such file or directory", + drop: DetectDrop::new(&dropped.low), + }; + + // impl Context for Result + let mid = Err::<(), LowLevel>(low) + .context(MidLevel { + message: "failed to load config", + drop: DetectDrop::new(&dropped.mid), + }) + .unwrap_err(); + + // impl Context for Result + let high = Err::<(), Error>(mid) + .context(HighLevel { + message: "failed to start server", + drop: DetectDrop::new(&dropped.high), + }) + .unwrap_err(); + + (high, dropped) +} + +#[test] +fn test_downcast_ref() { + let (err, dropped) = make_chain(); + + assert!(!err.is::()); + assert!(err.downcast_ref::().is_none()); + + assert!(err.is::()); + let high = err.downcast_ref::().unwrap(); + assert_eq!(high.to_string(), "failed to start server"); + + assert!(err.is::()); + let mid = err.downcast_ref::().unwrap(); + assert_eq!(mid.to_string(), "failed to load config"); + + assert!(err.is::()); + let low = err.downcast_ref::().unwrap(); + assert_eq!(low.to_string(), "no such file or directory"); + + assert!(dropped.none()); + drop(err); + assert!(dropped.all()); +} + +#[test] +fn test_downcast_high() { + let (err, dropped) = make_chain(); + + let err = err.downcast::().unwrap(); + assert!(!dropped.high.get()); + assert!(dropped.low.get() && dropped.mid.get()); + + drop(err); + assert!(dropped.all()); +} + +#[test] +fn test_downcast_mid() { + let (err, dropped) = make_chain(); + + let err = err.downcast::().unwrap(); + assert!(!dropped.mid.get()); + assert!(dropped.low.get() && dropped.high.get()); + + drop(err); + assert!(dropped.all()); +} + +#[test] +fn test_downcast_low() { + let (err, dropped) = make_chain(); + + let err = err.downcast::().unwrap(); + assert!(!dropped.low.get()); + assert!(dropped.mid.get() && dropped.high.get()); + + drop(err); + assert!(dropped.all()); +} + +#[test] +fn test_unsuccessful_downcast() { + let (err, dropped) = make_chain(); + + let err = err.downcast::().unwrap_err(); + assert!(dropped.none()); + + drop(err); + assert!(dropped.all()); +} + +#[test] +fn test_root_cause() { + let (err, _) = make_chain(); + + assert_eq!(err.root_cause().to_string(), "no such file or directory"); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_convert.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_convert.rs new file mode 100644 index 0000000000000000000000000000000000000000..6da171d1b8906687e3cbb3fbaae8faf864b66d3d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_convert.rs @@ -0,0 +1,46 @@ +#![allow(clippy::unnecessary_wraps)] + +mod drop; + +use self::drop::{DetectDrop, Flag}; +use anyhow::{Error, Result}; +use std::error::Error as StdError; + +#[test] +fn test_convert() { + let has_dropped = Flag::new(); + let error = Error::new(DetectDrop::new(&has_dropped)); + let box_dyn = Box::::from(error); + assert_eq!("oh no!", box_dyn.to_string()); + drop(box_dyn); + assert!(has_dropped.get()); +} + +#[test] +fn test_convert_send() { + let has_dropped = Flag::new(); + let error = Error::new(DetectDrop::new(&has_dropped)); + let box_dyn = Box::::from(error); + assert_eq!("oh no!", box_dyn.to_string()); + drop(box_dyn); + assert!(has_dropped.get()); +} + +#[test] +fn test_convert_send_sync() { + let has_dropped = Flag::new(); + let error = Error::new(DetectDrop::new(&has_dropped)); + let box_dyn = Box::::from(error); + assert_eq!("oh no!", box_dyn.to_string()); + drop(box_dyn); + assert!(has_dropped.get()); +} + +#[test] +fn test_question_mark() -> Result<(), Box> { + fn f() -> Result<()> { + Ok(()) + } + f()?; + Ok(()) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_downcast.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_downcast.rs new file mode 100644 index 0000000000000000000000000000000000000000..b4470d551ab49783f0adcbbe4596497b26591755 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_downcast.rs @@ -0,0 +1,123 @@ +#![allow(clippy::assertions_on_result_states, clippy::wildcard_imports)] + +mod common; +mod drop; + +use self::common::*; +use self::drop::{DetectDrop, Flag}; +use anyhow::Error; +use std::error::Error as StdError; +use std::fmt::{self, Display}; +use std::io; + +#[test] +fn test_downcast() { + assert_eq!( + "oh no!", + bail_literal().unwrap_err().downcast::<&str>().unwrap(), + ); + assert_eq!( + "oh no!", + bail_fmt().unwrap_err().downcast::().unwrap(), + ); + assert_eq!( + "oh no!", + bail_error() + .unwrap_err() + .downcast::() + .unwrap() + .to_string(), + ); +} + +#[test] +fn test_downcast_ref() { + assert_eq!( + "oh no!", + *bail_literal().unwrap_err().downcast_ref::<&str>().unwrap(), + ); + assert_eq!( + "oh no!", + bail_fmt().unwrap_err().downcast_ref::().unwrap(), + ); + assert_eq!( + "oh no!", + bail_error() + .unwrap_err() + .downcast_ref::() + .unwrap() + .to_string(), + ); +} + +#[test] +fn test_downcast_mut() { + assert_eq!( + "oh no!", + *bail_literal().unwrap_err().downcast_mut::<&str>().unwrap(), + ); + assert_eq!( + "oh no!", + bail_fmt().unwrap_err().downcast_mut::().unwrap(), + ); + assert_eq!( + "oh no!", + bail_error() + .unwrap_err() + .downcast_mut::() + .unwrap() + .to_string(), + ); + + let mut bailed = bail_fmt().unwrap_err(); + *bailed.downcast_mut::().unwrap() = "clobber".to_string(); + assert_eq!(bailed.downcast_ref::().unwrap(), "clobber"); + assert_eq!(bailed.downcast_mut::().unwrap(), "clobber"); + assert_eq!(bailed.downcast::().unwrap(), "clobber"); +} + +#[test] +fn test_drop() { + let has_dropped = Flag::new(); + let error = Error::new(DetectDrop::new(&has_dropped)); + drop(error.downcast::().unwrap()); + assert!(has_dropped.get()); +} + +#[test] +fn test_as_ref() { + let error = bail_error().unwrap_err(); + let ref_dyn: &dyn StdError = error.as_ref(); + assert_eq!("oh no!", ref_dyn.to_string()); + let ref_dyn_send_sync: &(dyn StdError + Send + Sync) = error.as_ref(); + assert_eq!("oh no!", ref_dyn_send_sync.to_string()); +} + +#[test] +fn test_large_alignment() { + #[repr(align(64))] + #[derive(Debug)] + struct LargeAlignedError(&'static str); + + impl Display for LargeAlignedError { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + f.write_str(self.0) + } + } + + impl StdError for LargeAlignedError {} + + let error = Error::new(LargeAlignedError("oh no!")); + assert_eq!( + "oh no!", + error.downcast_ref::().unwrap().0 + ); +} + +#[test] +fn test_unsuccessful_downcast() { + let mut error = bail_error().unwrap_err(); + assert!(error.downcast_ref::<&str>().is_none()); + assert!(error.downcast_mut::<&str>().is_none()); + assert!(error.downcast::<&str>().is_err()); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_ensure.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_ensure.rs new file mode 100644 index 0000000000000000000000000000000000000000..dc95160609a6ebb8ba5e7c61cadacd92210846fa --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_ensure.rs @@ -0,0 +1,756 @@ +#![allow( + clippy::bool_to_int_with_if, + clippy::char_lit_as_u8, + clippy::deref_addrof, + clippy::diverging_sub_expression, + clippy::erasing_op, + clippy::extra_unused_type_parameters, + clippy::if_same_then_else, + clippy::ifs_same_cond, + clippy::ignored_unit_patterns, + clippy::items_after_statements, + clippy::let_and_return, + clippy::let_underscore_untyped, + clippy::literal_string_with_formatting_args, + clippy::match_bool, + clippy::needless_else, + clippy::never_loop, + clippy::overly_complex_bool_expr, + clippy::ptr_cast_constness, + clippy::redundant_closure_call, + clippy::redundant_pattern_matching, + clippy::too_many_lines, + clippy::uninlined_format_args, + clippy::unit_arg, + clippy::unnecessary_cast, + clippy::while_immutable_condition, + clippy::zero_ptr, + irrefutable_let_patterns +)] + +use self::Enum::Generic; +use anyhow::{anyhow, ensure, Chain, Error, Result}; +use std::fmt::{self, Debug}; +use std::iter; +use std::marker::{PhantomData, PhantomData as P}; +use std::mem; +use std::ops::Add; +use std::ptr; + +struct S; + +impl Add for S { + type Output = bool; + fn add(self, rhs: T) -> Self::Output { + let _ = rhs; + false + } +} + +trait Trait: Sized { + const V: usize = 0; + fn t(self, i: i32) -> i32 { + i + } +} + +impl Trait for T {} + +enum Enum { + #[allow(dead_code)] + Thing(PhantomData), + Generic, +} + +impl PartialEq for Enum { + fn eq(&self, rhs: &Self) -> bool { + mem::discriminant(self) == mem::discriminant(rhs) + } +} + +impl Debug for Enum { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str("Generic") + } +} + +#[track_caller] +fn assert_err(result: impl FnOnce() -> Result, expected: &'static str) { + let actual = result().unwrap_err().to_string(); + + // In general different rustc versions will format the interpolated lhs and + // rhs $:expr fragment with insignificant differences in whitespace or + // punctuation, so we check the message in full against nightly and do just + // a cursory test on older toolchains. + if rustversion::cfg!(nightly) && !cfg!(miri) { + assert_eq!(actual, expected); + } else { + assert_eq!(actual.contains(" vs "), expected.contains(" vs ")); + } +} + +#[test] +fn test_recursion() { + // Must not blow the default #[recursion_limit], which is 128. + #[rustfmt::skip] + let test = || Ok(ensure!( + false | false | false | false | false | false | false | false | false | + false | false | false | false | false | false | false | false | false | + false | false | false | false | false | false | false | false | false | + false | false | false | false | false | false | false | false | false | + false | false | false | false | false | false | false | false | false | + false | false | false | false | false | false | false | false | false | + false | false | false | false | false | false | false | false | false + )); + + test().unwrap_err(); +} + +#[test] +fn test_low_precedence_control_flow() { + #[allow(unreachable_code)] + let test = || { + let val = loop { + // Break has lower precedence than the comparison operators so the + // expression here is `S + (break (1 == 1))`. It would be bad if the + // ensure macro partitioned this input into `(S + break 1) == (1)` + // because that means a different thing than what was written. + ensure!(S + break 1 == 1); + }; + Ok(val) + }; + + assert!(test().unwrap()); +} + +#[test] +fn test_low_precedence_binary_operator() { + // Must not partition as `false == (true && false)`. + let test = || Ok(ensure!(false == true && false)); + assert_err(test, "Condition failed: `false == true && false`"); + + // But outside the root level, it is fine. + let test = || Ok(ensure!(while false == true && false {} < ())); + assert_err( + test, + "Condition failed: `while false == true && false {} < ()` (() vs ())", + ); + + let a = 15; + let b = 3; + let test = || Ok(ensure!(a <= b || a - b <= 10)); + assert_err(test, "Condition failed: `a <= b || a - b <= 10`"); +} + +#[test] +fn test_high_precedence_binary_operator() { + let a = 15; + let b = 3; + let test = || Ok(ensure!(a - b <= 10)); + assert_err(test, "Condition failed: `a - b <= 10` (12 vs 10)"); +} + +#[test] +fn test_closure() { + // Must not partition as `(S + move) || (1 == 1)` by treating move as an + // identifier, nor as `(S + move || 1) == (1)` by misinterpreting the + // closure precedence. + let test = || Ok(ensure!(S + move || 1 == 1)); + assert_err(test, "Condition failed: `S + move || 1 == 1`"); + + let test = || Ok(ensure!(S + || 1 == 1)); + assert_err(test, "Condition failed: `S + || 1 == 1`"); + + // Must not partition as `S + ((move | ()) | 1) == 1` by treating those + // pipes as bitwise-or. + let test = || Ok(ensure!(S + move |()| 1 == 1)); + assert_err(test, "Condition failed: `S + move |()| 1 == 1`"); + + let test = || Ok(ensure!(S + |()| 1 == 1)); + assert_err(test, "Condition failed: `S + |()| 1 == 1`"); +} + +#[test] +fn test_unary() { + let mut x = &1; + let test = || Ok(ensure!(*x == 2)); + assert_err(test, "Condition failed: `*x == 2` (1 vs 2)"); + + let test = || Ok(ensure!(!x == 1)); + assert_err(test, "Condition failed: `!x == 1` (-2 vs 1)"); + + let test = || Ok(ensure!(-x == 1)); + assert_err(test, "Condition failed: `-x == 1` (-1 vs 1)"); + + let test = || Ok(ensure!(&x == &&2)); + assert_err(test, "Condition failed: `&x == &&2` (1 vs 2)"); + + let test = || Ok(ensure!(&mut x == *&&mut &2)); + assert_err(test, "Condition failed: `&mut x == *&&mut &2` (1 vs 2)"); +} + +#[rustversion::since(1.82)] +#[test] +fn test_raw_addr() { + let mut x = 1; + let test = || Ok(ensure!(S + &raw const x != S + &raw mut x)); + assert_err( + test, + "Condition failed: `S + &raw const x != S + &raw mut x` (false vs false)", + ); +} + +#[test] +fn test_if() { + #[rustfmt::skip] + let test = || Ok(ensure!(if false {}.t(1) == 2)); + assert_err(test, "Condition failed: `if false {}.t(1) == 2` (1 vs 2)"); + + #[rustfmt::skip] + let test = || Ok(ensure!(if false {} else {}.t(1) == 2)); + assert_err( + test, + "Condition failed: `if false {} else {}.t(1) == 2` (1 vs 2)", + ); + + #[rustfmt::skip] + let test = || Ok(ensure!(if false {} else if false {}.t(1) == 2)); + assert_err( + test, + "Condition failed: `if false {} else if false {}.t(1) == 2` (1 vs 2)", + ); + + #[rustfmt::skip] + let test = || Ok(ensure!(if let 1 = 2 {}.t(1) == 2)); + assert_err( + test, + "Condition failed: `if let 1 = 2 {}.t(1) == 2` (1 vs 2)", + ); + + #[rustfmt::skip] + let test = || Ok(ensure!(if let 1 | 2 = 2 {}.t(1) == 2)); + assert_err( + test, + "Condition failed: `if let 1 | 2 = 2 {}.t(1) == 2` (1 vs 2)", + ); + + #[rustfmt::skip] + let test = || Ok(ensure!(if let | 1 | 2 = 2 {}.t(1) == 2)); + assert_err( + test, + "Condition failed: `if let | 1 | 2 = 2 {}.t(1) == 2` (1 vs 2)", + ); +} + +#[test] +fn test_loop() { + #[rustfmt::skip] + let test = || Ok(ensure!(1 + loop { break 1 } == 1)); + assert_err( + test, + "Condition failed: `1 + loop { break 1 } == 1` (2 vs 1)", + ); + + #[rustfmt::skip] + let test = || Ok(ensure!(1 + 'a: loop { break 'a 1 } == 1)); + assert_err( + test, + "Condition failed: `1 + 'a: loop { break 'a 1 } == 1` (2 vs 1)", + ); + + #[rustfmt::skip] + let test = || Ok(ensure!(while false {}.t(1) == 2)); + assert_err( + test, + "Condition failed: `while false {}.t(1) == 2` (1 vs 2)", + ); + + #[rustfmt::skip] + let test = || Ok(ensure!(while let None = Some(1) {}.t(1) == 2)); + assert_err( + test, + "Condition failed: `while let None = Some(1) {}.t(1) == 2` (1 vs 2)", + ); + + #[rustfmt::skip] + let test = || Ok(ensure!(for _x in iter::once(0) {}.t(1) == 2)); + assert_err( + test, + "Condition failed: `for _x in iter::once(0) {}.t(1) == 2` (1 vs 2)", + ); + + #[rustfmt::skip] + let test = || Ok(ensure!(for | _x in iter::once(0) {}.t(1) == 2)); + assert_err( + test, + "Condition failed: `for | _x in iter::once(0) {}.t(1) == 2` (1 vs 2)", + ); + + #[rustfmt::skip] + let test = || Ok(ensure!(for true | false in iter::empty() {}.t(1) == 2)); + assert_err( + test, + "Condition failed: `for true | false in iter::empty() {}.t(1) == 2` (1 vs 2)", + ); +} + +#[test] +fn test_match() { + #[rustfmt::skip] + let test = || Ok(ensure!(match 1 == 1 { true => 1, false => 0 } == 2)); + assert_err( + test, + "Condition failed: `match 1 == 1 { true => 1, false => 0 } == 2` (1 vs 2)", + ); +} + +#[test] +fn test_atom() { + let test = || Ok(ensure!([false, false].len() > 3)); + assert_err( + test, + "Condition failed: `[false, false].len() > 3` (2 vs 3)", + ); + + #[rustfmt::skip] + let test = || Ok(ensure!({ let x = 1; x } >= 3)); + assert_err(test, "Condition failed: `{ let x = 1; x } >= 3` (1 vs 3)"); + + let test = || Ok(ensure!(S + async { 1 } == true)); + assert_err( + test, + "Condition failed: `S + async { 1 } == true` (false vs true)", + ); + + let test = || Ok(ensure!(S + async move { 1 } == true)); + assert_err( + test, + "Condition failed: `S + async move { 1 } == true` (false vs true)", + ); + + let x = &1; + let test = || Ok(ensure!(S + unsafe { ptr::read(x) } == true)); + assert_err( + test, + "Condition failed: `S + unsafe { ptr::read(x) } == true` (false vs true)", + ); +} + +#[test] +fn test_path() { + let test = || Ok(ensure!(crate::S.t(1) == 2)); + assert_err(test, "Condition failed: `crate::S.t(1) == 2` (1 vs 2)"); + + let test = || Ok(ensure!(::anyhow::Error::root_cause.t(1) == 2)); + assert_err( + test, + "Condition failed: `::anyhow::Error::root_cause.t(1) == 2` (1 vs 2)", + ); + + let test = || Ok(ensure!(Error::msg::<&str>.t(1) == 2)); + assert_err( + test, + "Condition failed: `Error::msg::<&str>.t(1) == 2` (1 vs 2)", + ); + + #[rustfmt::skip] + let test = || Ok(ensure!(Error::msg::<&str,>.t(1) == 2)); + assert_err( + test, + "Condition failed: `Error::msg::<&str,>.t(1) == 2` (1 vs 2)", + ); + + let test = || Ok(ensure!(Error::msg::<::Owned>.t(1) == 2)); + assert_err( + test, + "Condition failed: `Error::msg::<::Owned>.t(1) == 2` (1 vs 2)", + ); + + let test = || Ok(ensure!(Chain::<'static>::new.t(1) == 2)); + assert_err( + test, + "Condition failed: `Chain::<'static>::new.t(1) == 2` (1 vs 2)", + ); + + #[rustfmt::skip] + let test = || Ok(ensure!(Chain::<'static,>::new.t(1) == 2)); + assert_err( + test, + "Condition failed: `Chain::<'static,>::new.t(1) == 2` (1 vs 2)", + ); + + fn f() {} + let test = || Ok(ensure!(f::<1>() != ())); + assert_err(test, "Condition failed: `f::<1>() != ()` (() vs ())"); + let test = || Ok(ensure!(f::<-1>() != ())); + assert_err(test, "Condition failed: `f::<-1>() != ()` (() vs ())"); + + fn g() {} + let test = || Ok(ensure!(g::() != ())); + assert_err(test, "Condition failed: `g::() != ()` (() vs ())"); + let test = || Ok(ensure!(g::() != ())); + assert_err(test, "Condition failed: `g::() != ()` (() vs ())"); + + #[derive(PartialOrd, PartialEq, Debug)] + enum E<'a, T> { + #[allow(dead_code)] + T(&'a T), + U, + } + + #[rustfmt::skip] + let test = || Ok(ensure!(E::U::<>>E::U::)); + assert_err(test, "Condition failed: `E::U::<> > E::U::` (U vs U)"); + + #[rustfmt::skip] + let test = || Ok(ensure!(E::U::>E::U)); + assert_err(test, "Condition failed: `E::U:: > E::U` (U vs U)"); + + #[rustfmt::skip] + let test = || Ok(ensure!(E::U::>E::U)); + assert_err(test, "Condition failed: `E::U:: > E::U` (U vs U)"); + + let test = || Ok(ensure!(Generic:: != Generic)); + assert_err( + test, + "Condition failed: `Generic:: != Generic` (Generic vs Generic)", + ); + + let test = || Ok(ensure!(Generic:: != Generic)); + assert_err( + test, + "Condition failed: `Generic:: != Generic` (Generic vs Generic)", + ); + + #[rustfmt::skip] + let test = || { + Ok(ensure!( + Generic:: != Generic + )) + }; + assert_err( + test, + "Condition failed: `Generic:: != Generic` (Generic vs Generic)", + ); +} + +#[test] +fn test_macro() { + let test = || Ok(ensure!(anyhow!("...").to_string().len() <= 1)); + assert_err( + test, + "Condition failed: `anyhow!(\"...\").to_string().len() <= 1` (3 vs 1)", + ); + + let test = || Ok(ensure!(vec![1].len() < 1)); + assert_err(test, "Condition failed: `vec![1].len() < 1` (1 vs 1)"); + + let test = || Ok(ensure!(stringify! {} != "")); + assert_err( + test, + "Condition failed: `stringify! {} != \"\"` (\"\" vs \"\")", + ); +} + +#[test] +fn test_trailer() { + let test = || Ok(ensure!((|| 1)() == 2)); + assert_err(test, "Condition failed: `(|| 1)() == 2` (1 vs 2)"); + + let test = || Ok(ensure!(b"hmm"[1] == b'c')); + assert_err(test, "Condition failed: `b\"hmm\"[1] == b'c'` (109 vs 99)"); + + let test = || Ok(ensure!(PhantomData:: {} != PhantomData)); + assert_err( + test, + "Condition failed: `PhantomData:: {} != PhantomData` (PhantomData vs PhantomData)", + ); + + let result = Ok::<_, Error>(1); + let test = || Ok(ensure!(result? == 2)); + assert_err(test, "Condition failed: `result? == 2` (1 vs 2)"); + + let test = || Ok(ensure!((2, 3).1 == 2)); + assert_err(test, "Condition failed: `(2, 3).1 == 2` (3 vs 2)"); + + #[rustfmt::skip] + let test = || Ok(ensure!((2, (3, 4)). 1.1 == 2)); + assert_err(test, "Condition failed: `(2, (3, 4)).1.1 == 2` (4 vs 2)"); + + let err = anyhow!(""); + let test = || Ok(ensure!(err.is::<&str>() == false)); + assert_err( + test, + "Condition failed: `err.is::<&str>() == false` (true vs false)", + ); + + let test = || Ok(ensure!(err.is::<::Owned>() == true)); + assert_err( + test, + "Condition failed: `err.is::<::Owned>() == true` (false vs true)", + ); +} + +#[test] +fn test_whitespace() { + #[derive(Debug)] + pub struct Point { + #[allow(dead_code)] + pub x: i32, + #[allow(dead_code)] + pub y: i32, + } + + let point = Point { x: 0, y: 0 }; + let test = || Ok(ensure!("" == format!("{:#?}", point))); + assert_err( + test, + "Condition failed: `\"\" == format!(\"{:#?}\", point)`", + ); +} + +#[test] +fn test_too_long() { + let test = || Ok(ensure!("" == "x".repeat(10))); + assert_err( + test, + "Condition failed: `\"\" == \"x\".repeat(10)` (\"\" vs \"xxxxxxxxxx\")", + ); + + let test = || Ok(ensure!("" == "x".repeat(80))); + assert_err(test, "Condition failed: `\"\" == \"x\".repeat(80)`"); +} + +#[test] +fn test_as() { + let test = || Ok(ensure!('\0' as u8 > 1)); + assert_err(test, "Condition failed: `'\\0' as u8 > 1` (0 vs 1)"); + + let test = || Ok(ensure!('\0' as ::std::primitive::u8 > 1)); + assert_err( + test, + "Condition failed: `'\\0' as ::std::primitive::u8 > 1` (0 vs 1)", + ); + + let test = || Ok(ensure!(&[0] as &[i32] == [1])); + assert_err( + test, + "Condition failed: `&[0] as &[i32] == [1]` ([0] vs [1])", + ); + + let test = || Ok(ensure!(0 as *const () as *mut _ == 1 as *mut ())); + assert_err( + test, + "Condition failed: `0 as *const () as *mut _ == 1 as *mut ()` (0x0 vs 0x1)", + ); + + let s = ""; + let test = || Ok(ensure!(s as &str != s)); + assert_err(test, "Condition failed: `s as &str != s` (\"\" vs \"\")"); + + let test = || Ok(ensure!(&s as &&str != &s)); + assert_err(test, "Condition failed: `&s as &&str != &s` (\"\" vs \"\")"); + + let test = || Ok(ensure!(s as &'static str != s)); + assert_err( + test, + "Condition failed: `s as &'static str != s` (\"\" vs \"\")", + ); + + let test = || Ok(ensure!(&s as &&'static str != &s)); + assert_err( + test, + "Condition failed: `&s as &&'static str != &s` (\"\" vs \"\")", + ); + + let m: &mut str = Default::default(); + let test = || Ok(ensure!(m as &mut str != s)); + assert_err( + test, + "Condition failed: `m as &mut str != s` (\"\" vs \"\")", + ); + + let test = || Ok(ensure!(&m as &&mut str != &s)); + assert_err( + test, + "Condition failed: `&m as &&mut str != &s` (\"\" vs \"\")", + ); + + let test = || Ok(ensure!(&m as &&'static mut str != &s)); + assert_err( + test, + "Condition failed: `&m as &&'static mut str != &s` (\"\" vs \"\")", + ); + + let f = || {}; + let test = || Ok(ensure!(f as fn() as usize * 0 != 0)); + assert_err( + test, + "Condition failed: `f as fn() as usize * 0 != 0` (0 vs 0)", + ); + + let test = || Ok(ensure!(f as fn() -> () as usize * 0 != 0)); + assert_err( + test, + "Condition failed: `f as fn() -> () as usize * 0 != 0` (0 vs 0)", + ); + + let test = || Ok(ensure!(f as for<'a> fn() as usize * 0 != 0)); + assert_err( + test, + "Condition failed: `f as for<'a> fn() as usize * 0 != 0` (0 vs 0)", + ); + + let test = || Ok(ensure!(f as unsafe fn() as usize * 0 != 0)); + assert_err( + test, + "Condition failed: `f as unsafe fn() as usize * 0 != 0` (0 vs 0)", + ); + + #[rustfmt::skip] + let test = || Ok(ensure!(f as extern "Rust" fn() as usize * 0 != 0)); + assert_err( + test, + "Condition failed: `f as extern \"Rust\" fn() as usize * 0 != 0` (0 vs 0)", + ); + + extern "C" fn extern_fn() {} + #[rustfmt::skip] + #[allow(missing_abi)] + let test = || Ok(ensure!(extern_fn as extern fn() as usize * 0 != 0)); + assert_err( + test, + "Condition failed: `extern_fn as extern fn() as usize * 0 != 0` (0 vs 0)", + ); + + let f = || -> ! { panic!() }; + let test = || Ok(ensure!(f as fn() -> ! as usize * 0 != 0)); + assert_err( + test, + "Condition failed: `f as fn() -> ! as usize * 0 != 0` (0 vs 0)", + ); + + trait EqDebug: PartialEq + Debug { + type Assoc; + } + + impl EqDebug for S + where + S: PartialEq + Debug, + { + type Assoc = bool; + } + + let test = || Ok(ensure!(&0 as &dyn EqDebug != &0)); + assert_err( + test, + "Condition failed: `&0 as &dyn EqDebug != &0` (0 vs 0)", + ); + + let test = || { + Ok(ensure!( + PhantomData as PhantomData<::Owned> != PhantomData + )) + }; + assert_err( + test, + "Condition failed: `PhantomData as PhantomData<::Owned> != PhantomData` (PhantomData vs PhantomData)", + ); + + macro_rules! int { + (...) => { + u8 + }; + } + + let test = || Ok(ensure!(0 as int!(...) != 0)); + assert_err(test, "Condition failed: `0 as int!(...) != 0` (0 vs 0)"); + + let test = || Ok(ensure!(0 as int![...] != 0)); + assert_err(test, "Condition failed: `0 as int![...] != 0` (0 vs 0)"); + + let test = || Ok(ensure!(0 as int! {...} != 0)); + assert_err(test, "Condition failed: `0 as int! {...} != 0` (0 vs 0)"); +} + +#[test] +fn test_pat() { + let test = || Ok(ensure!(if let ref mut _x @ 0 = 0 { 0 } else { 1 } == 1)); + assert_err( + test, + "Condition failed: `if let ref mut _x @ 0 = 0 { 0 } else { 1 } == 1` (0 vs 1)", + ); + + let test = || Ok(ensure!(if let -1..=1 = 0 { 0 } else { 1 } == 1)); + assert_err( + test, + "Condition failed: `if let -1..=1 = 0 { 0 } else { 1 } == 1` (0 vs 1)", + ); + + let test = || Ok(ensure!(if let &0 = &0 { 0 } else { 1 } == 1)); + assert_err( + test, + "Condition failed: `if let &0 = &0 { 0 } else { 1 } == 1` (0 vs 1)", + ); + + let test = || Ok(ensure!(if let &&0 = &&0 { 0 } else { 1 } == 1)); + assert_err( + test, + "Condition failed: `if let &&0 = &&0 { 0 } else { 1 } == 1` (0 vs 1)", + ); + + let test = || Ok(ensure!(if let &mut 0 = &mut 0 { 0 } else { 1 } == 1)); + assert_err( + test, + "Condition failed: `if let &mut 0 = &mut 0 { 0 } else { 1 } == 1` (0 vs 1)", + ); + + let test = || Ok(ensure!(if let &&mut 0 = &&mut 0 { 0 } else { 1 } == 1)); + assert_err( + test, + "Condition failed: `if let &&mut 0 = &&mut 0 { 0 } else { 1 } == 1` (0 vs 1)", + ); + + let test = || Ok(ensure!(if let (0, 1) = (0, 1) { 0 } else { 1 } == 1)); + assert_err( + test, + "Condition failed: `if let (0, 1) = (0, 1) { 0 } else { 1 } == 1` (0 vs 1)", + ); + + let test = || Ok(ensure!(if let [0] = b"\0" { 0 } else { 1 } == 1)); + assert_err( + test, + "Condition failed: `if let [0] = b\"\\0\" { 0 } else { 1 } == 1` (0 vs 1)", + ); + + let p = PhantomData::; + let test = || Ok(ensure!(if let P:: {} = p { 0 } else { 1 } == 1)); + assert_err( + test, + "Condition failed: `if let P:: {} = p { 0 } else { 1 } == 1` (0 vs 1)", + ); + + let test = || Ok(ensure!(if let ::std::marker::PhantomData = p {} != ())); + assert_err( + test, + "Condition failed: `if let ::std::marker::PhantomData = p {} != ()` (() vs ())", + ); + + let test = || Ok(ensure!(if let ::V = 0 { 0 } else { 1 } == 1)); + assert_err( + test, + "Condition failed: `if let ::V = 0 { 0 } else { 1 } == 1` (0 vs 1)", + ); + + let test = || Ok(ensure!(for _ in iter::once(()) {} != ())); + assert_err( + test, + "Condition failed: `for _ in iter::once(()) {} != ()` (() vs ())", + ); + + let test = || Ok(ensure!(if let stringify!(x) = "x" { 0 } else { 1 } == 1)); + assert_err( + test, + "Condition failed: `if let stringify!(x) = \"x\" { 0 } else { 1 } == 1` (0 vs 1)", + ); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_ffi.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_ffi.rs new file mode 100644 index 0000000000000000000000000000000000000000..59578af91a666d8ce2dcc58fcb490ba42311eafa --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_ffi.rs @@ -0,0 +1,19 @@ +#![deny(improper_ctypes, improper_ctypes_definitions)] +#![allow(clippy::uninlined_format_args)] + +use anyhow::anyhow; + +#[no_mangle] +pub extern "C" fn anyhow1(err: anyhow::Error) { + println!("{:?}", err); +} + +#[no_mangle] +pub extern "C" fn anyhow2(err: &mut Option) { + *err = Some(anyhow!("ffi error")); +} + +#[no_mangle] +pub extern "C" fn anyhow3() -> Option { + Some(anyhow!("ffi error")) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_fmt.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_fmt.rs new file mode 100644 index 0000000000000000000000000000000000000000..8206f22c41dd712ef4ef63dd155e12ab625818ef --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_fmt.rs @@ -0,0 +1,93 @@ +use anyhow::{bail, Context, Result}; +use std::io; + +fn f() -> Result<()> { + bail!(io::Error::new(io::ErrorKind::PermissionDenied, "oh no!")); +} + +fn g() -> Result<()> { + f().context("f failed") +} + +fn h() -> Result<()> { + g().context("g failed") +} + +const EXPECTED_ALTDISPLAY_F: &str = "oh no!"; + +const EXPECTED_ALTDISPLAY_G: &str = "f failed: oh no!"; + +const EXPECTED_ALTDISPLAY_H: &str = "g failed: f failed: oh no!"; + +const EXPECTED_DEBUG_F: &str = "oh no!"; + +const EXPECTED_DEBUG_G: &str = "\ +f failed + +Caused by: + oh no!\ +"; + +const EXPECTED_DEBUG_H: &str = "\ +g failed + +Caused by: + 0: f failed + 1: oh no!\ +"; + +const EXPECTED_ALTDEBUG_F: &str = "\ +Custom { + kind: PermissionDenied, + error: \"oh no!\", +}\ +"; + +const EXPECTED_ALTDEBUG_G: &str = "\ +Error { + context: \"f failed\", + source: Custom { + kind: PermissionDenied, + error: \"oh no!\", + }, +}\ +"; + +const EXPECTED_ALTDEBUG_H: &str = "\ +Error { + context: \"g failed\", + source: Error { + context: \"f failed\", + source: Custom { + kind: PermissionDenied, + error: \"oh no!\", + }, + }, +}\ +"; + +#[test] +fn test_display() { + assert_eq!("g failed", h().unwrap_err().to_string()); +} + +#[test] +fn test_altdisplay() { + assert_eq!(EXPECTED_ALTDISPLAY_F, format!("{:#}", f().unwrap_err())); + assert_eq!(EXPECTED_ALTDISPLAY_G, format!("{:#}", g().unwrap_err())); + assert_eq!(EXPECTED_ALTDISPLAY_H, format!("{:#}", h().unwrap_err())); +} + +#[test] +fn test_debug() { + assert_eq!(EXPECTED_DEBUG_F, format!("{:?}", f().unwrap_err())); + assert_eq!(EXPECTED_DEBUG_G, format!("{:?}", g().unwrap_err())); + assert_eq!(EXPECTED_DEBUG_H, format!("{:?}", h().unwrap_err())); +} + +#[test] +fn test_altdebug() { + assert_eq!(EXPECTED_ALTDEBUG_F, format!("{:#?}", f().unwrap_err())); + assert_eq!(EXPECTED_ALTDEBUG_G, format!("{:#?}", g().unwrap_err())); + assert_eq!(EXPECTED_ALTDEBUG_H, format!("{:#?}", h().unwrap_err())); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_macros.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_macros.rs new file mode 100644 index 0000000000000000000000000000000000000000..0689506965430f17d2f9ffe0c34a225e34c93d9f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_macros.rs @@ -0,0 +1,97 @@ +#![allow( + clippy::assertions_on_result_states, + clippy::eq_op, + clippy::incompatible_msrv, // https://github.com/rust-lang/rust-clippy/issues/12257 + clippy::items_after_statements, + clippy::match_single_binding, + clippy::needless_pass_by_value, + clippy::shadow_unrelated, + clippy::uninlined_format_args, + clippy::wildcard_imports +)] + +mod common; + +use self::common::*; +use anyhow::{anyhow, ensure, Result}; +use std::cell::Cell; +use std::future; + +#[test] +fn test_messages() { + assert_eq!("oh no!", bail_literal().unwrap_err().to_string()); + assert_eq!("oh no!", bail_fmt().unwrap_err().to_string()); + assert_eq!("oh no!", bail_error().unwrap_err().to_string()); +} + +#[test] +fn test_ensure() { + let f = || { + ensure!(1 + 1 == 2, "This is correct"); + Ok(()) + }; + assert!(f().is_ok()); + + let v = 1; + let f = || { + ensure!(v + v == 2, "This is correct, v: {}", v); + Ok(()) + }; + assert!(f().is_ok()); + + let f = || { + ensure!(v + v == 1, "This is not correct, v: {}", v); + Ok(()) + }; + assert!(f().is_err()); + + let f = || { + ensure!(v + v == 1); + Ok(()) + }; + assert_eq!( + f().unwrap_err().to_string(), + "Condition failed: `v + v == 1` (2 vs 1)", + ); +} + +#[test] +fn test_ensure_nonbool() -> Result<()> { + struct Struct { + condition: bool, + } + + let s = Struct { condition: true }; + match &s { + Struct { condition } => ensure!(condition), // &bool + } + + Ok(()) +} + +#[test] +fn test_temporaries() { + fn require_send_sync(_: impl Send + Sync) {} + + require_send_sync(async { + // If anyhow hasn't dropped any temporary format_args it creates by the + // time it's done evaluating, those will stick around until the + // semicolon, which is on the other side of the await point, making the + // enclosing future non-Send. + future::ready(anyhow!("...")).await; + }); + + fn message(cell: Cell<&str>) -> &str { + cell.get() + } + + require_send_sync(async { + future::ready(anyhow!(message(Cell::new("...")))).await; + }); +} + +#[test] +fn test_brace_escape() { + let err = anyhow!("unterminated ${{..}} expression"); + assert_eq!("unterminated ${..} expression", err.to_string()); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_repr.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_repr.rs new file mode 100644 index 0000000000000000000000000000000000000000..2976cd86204a54e08088d7ca76a91ff15c55c790 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_repr.rs @@ -0,0 +1,30 @@ +#![allow(clippy::extra_unused_type_parameters)] + +mod drop; + +use self::drop::{DetectDrop, Flag}; +use anyhow::Error; +use std::mem; + +#[test] +fn test_error_size() { + assert_eq!(mem::size_of::(), mem::size_of::()); +} + +#[test] +fn test_null_pointer_optimization() { + assert_eq!(mem::size_of::>(), mem::size_of::()); +} + +#[test] +fn test_autotraits() { + fn assert() {} + assert::(); +} + +#[test] +fn test_drop() { + let has_dropped = Flag::new(); + drop(Error::new(DetectDrop::new(&has_dropped))); + assert!(has_dropped.get()); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_source.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_source.rs new file mode 100644 index 0000000000000000000000000000000000000000..018267d315fa7c51ad6d8c26f6e97b5db23f7761 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/test_source.rs @@ -0,0 +1,62 @@ +use anyhow::anyhow; +use std::error::Error as StdError; +use std::fmt::{self, Display}; +use std::io; + +#[derive(Debug)] +enum TestError { + Io(io::Error), +} + +impl Display for TestError { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + match self { + TestError::Io(e) => Display::fmt(e, formatter), + } + } +} + +impl StdError for TestError { + fn source(&self) -> Option<&(dyn StdError + 'static)> { + match self { + TestError::Io(io) => Some(io), + } + } +} + +#[test] +fn test_literal_source() { + let error = anyhow!("oh no!"); + assert!(error.source().is_none()); +} + +#[test] +fn test_variable_source() { + let msg = "oh no!"; + let error = anyhow!(msg); + assert!(error.source().is_none()); + + let msg = msg.to_owned(); + let error = anyhow!(msg); + assert!(error.source().is_none()); +} + +#[test] +fn test_fmt_source() { + let error = anyhow!("{} {}!", "oh", "no"); + assert!(error.source().is_none()); +} + +#[test] +fn test_io_source() { + let io = io::Error::new(io::ErrorKind::Other, "oh no!"); + let error = anyhow!(TestError::Io(io)); + assert_eq!("oh no!", error.source().unwrap().to_string()); +} + +#[test] +fn test_anyhow_from_anyhow() { + let error = anyhow!("oh no!").context("context"); + let error = anyhow!(error); + assert_eq!("oh no!", error.source().unwrap().to_string()); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/chained-comparison.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/chained-comparison.rs new file mode 100644 index 0000000000000000000000000000000000000000..4521b51c8ca216e795cbe0292bd9ae684ff813c8 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/chained-comparison.rs @@ -0,0 +1,8 @@ +use anyhow::{ensure, Result}; + +fn main() -> Result<()> { + // `ensure!` must not partition this into `(false) == (false == true)` + // because Rust doesn't ordinarily allow this form of expression. + ensure!(false == false == true); + Ok(()) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/chained-comparison.stderr b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/chained-comparison.stderr new file mode 100644 index 0000000000000000000000000000000000000000..2a4c66508a0a651806b5e77ae97e97267c123145 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/chained-comparison.stderr @@ -0,0 +1,10 @@ +error: comparison operators cannot be chained + --> tests/ui/chained-comparison.rs:6:19 + | +6 | ensure!(false == false == true); + | ^^ ^^ + | +help: split the comparison into two + | +6 | ensure!(false == false && false == true); + | ++++++++ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/empty-ensure.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/empty-ensure.rs new file mode 100644 index 0000000000000000000000000000000000000000..139b743bbf9bdf9a7fe6b4ec3fa90a57f8fa0306 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/empty-ensure.rs @@ -0,0 +1,6 @@ +use anyhow::{ensure, Result}; + +fn main() -> Result<()> { + ensure!(); + Ok(()) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/empty-ensure.stderr b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/empty-ensure.stderr new file mode 100644 index 0000000000000000000000000000000000000000..bf0229a2b238b3be78b35b4d7793c7e474056219 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/empty-ensure.stderr @@ -0,0 +1,12 @@ +error: unexpected end of macro invocation + --> tests/ui/empty-ensure.rs:4:5 + | +4 | ensure!(); + | ^^^^^^^^^ missing tokens in macro arguments + | +note: while trying to match meta-variable `$cond:expr` + --> src/ensure.rs + | + | ($cond:expr $(,)?) => { + | ^^^^^^^^^^ + = note: this error originates in the macro `$crate::__parse_ensure` which comes from the expansion of the macro `ensure` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/ensure-nonbool.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/ensure-nonbool.rs new file mode 100644 index 0000000000000000000000000000000000000000..c7df4e17c2f3dd8f6a68b5e56811fdde9f68af56 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/ensure-nonbool.rs @@ -0,0 +1,40 @@ +use anyhow::{ensure, Result}; +use std::ops::{Deref, Not}; + +struct Bool(bool); + +struct DerefBool(bool); + +struct NotBool(bool); + +impl Deref for DerefBool { + type Target = bool; + fn deref(&self) -> &Self::Target { + &self.0 + } +} + +impl Not for NotBool { + type Output = bool; + fn not(self) -> Self::Output { + !self.0 + } +} + +fn main() -> Result<()> { + ensure!("..."); + + let mut s = Bool(true); + match &mut s { + Bool(cond) => ensure!(cond), + } + + let db = DerefBool(true); + ensure!(db); + ensure!(&db); + + let nb = NotBool(true); + ensure!(nb); + + Ok(()) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/ensure-nonbool.stderr b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/ensure-nonbool.stderr new file mode 100644 index 0000000000000000000000000000000000000000..5a4e0eccd5a33a5717c1e878152e7de8bb06dd17 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/ensure-nonbool.stderr @@ -0,0 +1,113 @@ +error[E0277]: the trait bound `&str: anyhow::__private::not::Bool` is not satisfied + --> tests/ui/ensure-nonbool.rs:25:13 + | +25 | ensure!("..."); + | --------^^^^^- + | | | + | | the trait `anyhow::__private::not::Bool` is not implemented for `&str` + | required by a bound introduced by this call + | +help: the following other types implement trait `anyhow::__private::not::Bool` + --> src/lib.rs + | + | impl Bool for bool { + | ^^^^^^^^^^^^^^^^^^ `bool` +... + | impl Bool for &bool { + | ^^^^^^^^^^^^^^^^^^^ `&bool` +note: required by a bound in `anyhow::__private::not` + --> src/lib.rs + | + | pub fn not(cond: impl Bool) -> bool { + | ^^^^ required by this bound in `not` + +error[E0277]: the trait bound `&mut bool: anyhow::__private::not::Bool` is not satisfied + --> tests/ui/ensure-nonbool.rs:29:31 + | +29 | Bool(cond) => ensure!(cond), + | --------^^^^- + | | | + | | the trait `anyhow::__private::not::Bool` is not implemented for `&mut bool` + | required by a bound introduced by this call + | + = note: `anyhow::__private::not::Bool` is implemented for `&bool`, but not for `&mut bool` +note: required by a bound in `anyhow::__private::not` + --> src/lib.rs + | + | pub fn not(cond: impl Bool) -> bool { + | ^^^^ required by this bound in `not` +help: consider dereferencing here + | +29 | Bool(cond) => ensure!(*cond), + | + + +error[E0277]: the trait bound `DerefBool: anyhow::__private::not::Bool` is not satisfied + --> tests/ui/ensure-nonbool.rs:33:13 + | +33 | ensure!(db); + | --------^^- + | | | + | | unsatisfied trait bound + | required by a bound introduced by this call + | +help: the trait `anyhow::__private::not::Bool` is not implemented for `DerefBool` + --> tests/ui/ensure-nonbool.rs:6:1 + | + 6 | struct DerefBool(bool); + | ^^^^^^^^^^^^^^^^ +note: required by a bound in `anyhow::__private::not` + --> src/lib.rs + | + | pub fn not(cond: impl Bool) -> bool { + | ^^^^ required by this bound in `not` +help: consider dereferencing here + | +33 | ensure!(*db); + | + + +error[E0277]: the trait bound `&DerefBool: anyhow::__private::not::Bool` is not satisfied + --> tests/ui/ensure-nonbool.rs:34:13 + | +34 | ensure!(&db); + | --------^^^- + | | | + | | the trait `anyhow::__private::not::Bool` is not implemented for `&DerefBool` + | required by a bound introduced by this call + | +note: required by a bound in `anyhow::__private::not` + --> src/lib.rs + | + | pub fn not(cond: impl Bool) -> bool { + | ^^^^ required by this bound in `not` +help: consider dereferencing here + | +34 | ensure!(&*db); + | + + +error[E0277]: the trait bound `NotBool: anyhow::__private::not::Bool` is not satisfied + --> tests/ui/ensure-nonbool.rs:37:13 + | +37 | ensure!(nb); + | --------^^- + | | | + | | unsatisfied trait bound + | required by a bound introduced by this call + | +help: the trait `anyhow::__private::not::Bool` is not implemented for `NotBool` + --> tests/ui/ensure-nonbool.rs:8:1 + | + 8 | struct NotBool(bool); + | ^^^^^^^^^^^^^^ +help: the following other types implement trait `anyhow::__private::not::Bool` + --> src/lib.rs + | + | impl Bool for bool { + | ^^^^^^^^^^^^^^^^^^ `bool` +... + | impl Bool for &bool { + | ^^^^^^^^^^^^^^^^^^^ `&bool` +note: required by a bound in `anyhow::__private::not` + --> src/lib.rs + | + | pub fn not(cond: impl Bool) -> bool { + | ^^^^ required by this bound in `not` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/must-use.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/must-use.rs new file mode 100644 index 0000000000000000000000000000000000000000..ea4e58f55ee43cd023b63c11749e9da7197c0140 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/must-use.rs @@ -0,0 +1,11 @@ +#![deny(unused_must_use)] + +use anyhow::anyhow; + +fn main() -> anyhow::Result<()> { + if true { + // meant to write bail! + anyhow!("it failed"); + } + Ok(()) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/must-use.stderr b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/must-use.stderr new file mode 100644 index 0000000000000000000000000000000000000000..b2a3f3146a448ad79ca2588fe0ed65c385e6b144 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/must-use.stderr @@ -0,0 +1,15 @@ +error: unused return value of `anyhow::__private::must_use` that must be used + --> tests/ui/must-use.rs:8:9 + | +8 | anyhow!("it failed"); + | ^^^^^^^^^^^^^^^^^^^^ + | +note: the lint level is defined here + --> tests/ui/must-use.rs:1:9 + | +1 | #![deny(unused_must_use)] + | ^^^^^^^^^^^^^^^ +help: use `let _ = ...` to ignore the resulting value + | +8 | let _ = anyhow!("it failed"); + | +++++++ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/no-impl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/no-impl.rs new file mode 100644 index 0000000000000000000000000000000000000000..d2e89afc1b36e2c053381a3ed8420490d0954eef --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/no-impl.rs @@ -0,0 +1,8 @@ +use anyhow::anyhow; + +#[derive(Debug)] +struct Error; + +fn main() { + let _ = anyhow!(Error); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/no-impl.stderr b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/no-impl.stderr new file mode 100644 index 0000000000000000000000000000000000000000..9b584df412c208d8452d6e77ad8ab3bc0192e294 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/no-impl.stderr @@ -0,0 +1,32 @@ +error[E0599]: the method `anyhow_kind` exists for reference `&Error`, but its trait bounds were not satisfied + --> tests/ui/no-impl.rs:7:13 + | +4 | struct Error; + | ------------ doesn't satisfy `Error: Into`, `Error: anyhow::kind::TraitKind` or `Error: std::fmt::Display` +... +7 | let _ = anyhow!(Error); + | ^^^^^^^^^^^^^^ method cannot be called on `&Error` due to unsatisfied trait bounds + | + = note: the following trait bounds were not satisfied: + `Error: Into` + which is required by `Error: anyhow::kind::TraitKind` + `Error: std::fmt::Display` + which is required by `&Error: anyhow::kind::AdhocKind` + `&Error: Into` + which is required by `&Error: anyhow::kind::TraitKind` +note: the traits `Into` and `std::fmt::Display` must be implemented + --> $RUST/core/src/fmt/mod.rs + | + | pub trait Display: PointeeSized { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + ::: $RUST/core/src/convert/mod.rs + | + | pub const trait Into: Sized { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + = help: items from traits can only be used if the trait is implemented and in scope + = note: the following traits define an item `anyhow_kind`, perhaps you need to implement one of them: + candidate #1: `anyhow::kind::AdhocKind` + candidate #2: `anyhow::kind::BoxedKind` + candidate #3: `anyhow::kind::TraitKind` + = note: this error originates in the macro `anyhow` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/temporary-value.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/temporary-value.rs new file mode 100644 index 0000000000000000000000000000000000000000..803809b238f0d2109be19bd53142ee0582b69732 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/temporary-value.rs @@ -0,0 +1,5 @@ +use anyhow::anyhow; + +fn main() { + let _ = anyhow!(&String::new()); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/temporary-value.stderr b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/temporary-value.stderr new file mode 100644 index 0000000000000000000000000000000000000000..c92ec92d461f36a36add0ca7dc06d9e109f9b45c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/temporary-value.stderr @@ -0,0 +1,15 @@ +error[E0716]: temporary value dropped while borrowed + --> tests/ui/temporary-value.rs:4:22 + | +4 | let _ = anyhow!(&String::new()); + | ---------^^^^^^^^^^^^^- + | | | + | | creates a temporary value which is freed while still in use + | temporary value is freed at the end of this statement + | argument requires that borrow lasts for `'static` + | +note: requirement that the value outlives `'static` introduced here + --> src/kind.rs + | + | M: Display + Debug + Send + Sync + 'static, + | ^^^^^^^ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/wrong-interpolation.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/wrong-interpolation.rs new file mode 100644 index 0000000000000000000000000000000000000000..b870ca713d4adf9625bc06b4d9b4ba1761d0bc77 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/wrong-interpolation.rs @@ -0,0 +1,5 @@ +use anyhow::{bail, Result}; + +fn main() -> Result<()> { + bail!("{} not found"); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/wrong-interpolation.stderr b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/wrong-interpolation.stderr new file mode 100644 index 0000000000000000000000000000000000000000..55a29641136719dda63cb8f6570871418e306ece --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.101/tests/ui/wrong-interpolation.stderr @@ -0,0 +1,5 @@ +error: 1 positional argument in format string, but no arguments were given + --> tests/ui/wrong-interpolation.rs:4:12 + | +4 | bail!("{} not found"); + | ^^ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_builder/04_02_parse.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_builder/04_02_parse.rs new file mode 100644 index 0000000000000000000000000000000000000000..a3f79040d72c8b630cdb59626b44b0ac83ea022f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_builder/04_02_parse.rs @@ -0,0 +1,17 @@ +use clap::{arg, command, value_parser}; + +fn main() { + let matches = command!() // requires `cargo` feature + .arg( + arg!() + .help("Network port to use") + .value_parser(value_parser!(u16).range(1..)), + ) + .get_matches(); + + // Note, it's safe to call unwrap() because the arg is required + let port: u16 = *matches + .get_one::("PORT") + .expect("'PORT' is required and parsing will fail if its missing"); + println!("PORT = {port}"); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_builder/04_02_validate.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_builder/04_02_validate.md new file mode 100644 index 0000000000000000000000000000000000000000..949072bee55a3d139ce00a94726cae8d41cc47c5 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_builder/04_02_validate.md @@ -0,0 +1,29 @@ +```console +$ 04_02_validate --help +A simple to use, efficient, and full-featured Command Line Argument Parser + +Usage: 04_02_validate[EXE] + +Arguments: + Network port to use + +Options: + -h, --help Print help + -V, --version Print version + +$ 04_02_validate 22 +PORT = 22 + +$ 04_02_validate foobar +? failed +error: invalid value 'foobar' for '': `foobar` isn't a port number + +For more information, try '--help'. + +$ 04_02_validate 0 +? failed +error: invalid value '0' for '': port not in range 1-65535 + +For more information, try '--help'. + +``` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_builder/04_02_validate.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_builder/04_02_validate.rs new file mode 100644 index 0000000000000000000000000000000000000000..0ce53d654472314e812c53ea27a9c6736f8bc523 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_builder/04_02_validate.rs @@ -0,0 +1,36 @@ +use std::ops::RangeInclusive; + +use clap::{arg, command}; + +fn main() { + let matches = command!() // requires `cargo` feature + .arg( + arg!() + .help("Network port to use") + .value_parser(port_in_range), + ) + .get_matches(); + + // Note, it's safe to call unwrap() because the arg is required + let port: u16 = *matches + .get_one::("PORT") + .expect("'PORT' is required and parsing will fail if its missing"); + println!("PORT = {port}"); +} + +const PORT_RANGE: RangeInclusive = 1..=65535; + +fn port_in_range(s: &str) -> Result { + let port: usize = s + .parse() + .map_err(|_| format!("`{s}` isn't a port number"))?; + if PORT_RANGE.contains(&port) { + Ok(port as u16) + } else { + Err(format!( + "port not in range {}-{}", + PORT_RANGE.start(), + PORT_RANGE.end() + )) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_builder/04_03_relations.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_builder/04_03_relations.md new file mode 100644 index 0000000000000000000000000000000000000000..dd0c35a68310bbaefc1bff430e46e224b8e52487 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_builder/04_03_relations.md @@ -0,0 +1,53 @@ +```console +$ 04_03_relations --help +A simple to use, efficient, and full-featured Command Line Argument Parser + +Usage: 04_03_relations[EXE] [OPTIONS] <--set-ver |--major|--minor|--patch> [INPUT_FILE] + +Arguments: + [INPUT_FILE] some regular input + +Options: + --set-ver set version manually + --major auto inc major + --minor auto inc minor + --patch auto inc patch + --spec-in some special input argument + -c + -h, --help Print help + -V, --version Print version + +$ 04_03_relations +? failed +error: the following required arguments were not provided: + <--set-ver |--major|--minor|--patch> + +Usage: 04_03_relations[EXE] <--set-ver |--major|--minor|--patch> [INPUT_FILE] + +For more information, try '--help'. + +$ 04_03_relations --major +Version: 2.2.3 + +$ 04_03_relations --major --minor +? failed +error: the argument '--major' cannot be used with '--minor' + +Usage: 04_03_relations[EXE] <--set-ver |--major|--minor|--patch> [INPUT_FILE] + +For more information, try '--help'. + +$ 04_03_relations --major -c config.toml +? failed +error: the following required arguments were not provided: + > + +Usage: 04_03_relations[EXE] -c <--set-ver |--major|--minor|--patch> > + +For more information, try '--help'. + +$ 04_03_relations --major -c config.toml --spec-in input.txt +Version: 2.2.3 +Doing work using input input.txt and config config.toml + +``` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_builder/04_03_relations.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_builder/04_03_relations.rs new file mode 100644 index 0000000000000000000000000000000000000000..935e7a334c396aa2637d187f0eacb42b1c239a79 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_builder/04_03_relations.rs @@ -0,0 +1,78 @@ +use std::path::PathBuf; + +use clap::{arg, command, value_parser, ArgAction, ArgGroup}; + +fn main() { + // Create application like normal + let matches = command!() // requires `cargo` feature + // Add the version arguments + .arg(arg!(--"set-ver" "set version manually")) + .arg(arg!(--major "auto inc major").action(ArgAction::SetTrue)) + .arg(arg!(--minor "auto inc minor").action(ArgAction::SetTrue)) + .arg(arg!(--patch "auto inc patch").action(ArgAction::SetTrue)) + // Create a group, make it required, and add the above arguments + .group( + ArgGroup::new("vers") + .required(true) + .args(["set-ver", "major", "minor", "patch"]), + ) + // Arguments can also be added to a group individually, these two arguments + // are part of the "input" group which is not required + .arg( + arg!([INPUT_FILE] "some regular input") + .value_parser(value_parser!(PathBuf)) + .group("input"), + ) + .arg( + arg!(--"spec-in" "some special input argument") + .value_parser(value_parser!(PathBuf)) + .group("input"), + ) + // Now let's assume we have a -c [config] argument which requires one of + // (but **not** both) the "input" arguments + .arg( + arg!(config: -c ) + .value_parser(value_parser!(PathBuf)) + .requires("input"), + ) + .get_matches(); + + // Let's assume the old version 1.2.3 + let mut major = 1; + let mut minor = 2; + let mut patch = 3; + + // See if --set-ver was used to set the version manually + let version = if let Some(ver) = matches.get_one::("set-ver") { + ver.to_owned() + } else { + // Increment the one requested (in a real program, we'd reset the lower numbers) + let (maj, min, pat) = ( + matches.get_flag("major"), + matches.get_flag("minor"), + matches.get_flag("patch"), + ); + match (maj, min, pat) { + (true, _, _) => major += 1, + (_, true, _) => minor += 1, + (_, _, true) => patch += 1, + _ => unreachable!(), + }; + format!("{major}.{minor}.{patch}") + }; + + println!("Version: {version}"); + + // Check for usage of -c + if matches.contains_id("config") { + let input = matches + .get_one::("INPUT_FILE") + .unwrap_or_else(|| matches.get_one::("spec-in").unwrap()) + .display(); + println!( + "Doing work using input {} and config {}", + input, + matches.get_one::("config").unwrap().display() + ); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_builder/04_04_custom.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_builder/04_04_custom.md new file mode 100644 index 0000000000000000000000000000000000000000..0a83eb9b8e6ee65c2e14195124a8ad22c48402c6 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_builder/04_04_custom.md @@ -0,0 +1,52 @@ +```console +$ 04_04_custom --help +A simple to use, efficient, and full-featured Command Line Argument Parser + +Usage: 04_04_custom[EXE] [OPTIONS] [INPUT_FILE] + +Arguments: + [INPUT_FILE] some regular input + +Options: + --set-ver set version manually + --major auto inc major + --minor auto inc minor + --patch auto inc patch + --spec-in some special input argument + -c + -h, --help Print help + -V, --version Print version + +$ 04_04_custom +? failed +error: Can only modify one version field + +Usage: 04_04_custom[EXE] [OPTIONS] [INPUT_FILE] + +For more information, try '--help'. + +$ 04_04_custom --major +Version: 2.2.3 + +$ 04_04_custom --major --minor +? failed +error: Can only modify one version field + +Usage: 04_04_custom[EXE] [OPTIONS] [INPUT_FILE] + +For more information, try '--help'. + +$ 04_04_custom --major -c config.toml +? failed +Version: 2.2.3 +error: INPUT_FILE or --spec-in is required when using --config + +Usage: 04_04_custom[EXE] [OPTIONS] [INPUT_FILE] + +For more information, try '--help'. + +$ 04_04_custom --major -c config.toml --spec-in input.txt +Version: 2.2.3 +Doing work using input input.txt and config config.toml + +``` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_builder/04_04_custom.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_builder/04_04_custom.rs new file mode 100644 index 0000000000000000000000000000000000000000..98019dc71fe39cec8a824f571480a596471b6785 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_builder/04_04_custom.rs @@ -0,0 +1,84 @@ +use std::path::PathBuf; + +use clap::error::ErrorKind; +use clap::{arg, command, value_parser, ArgAction}; + +fn main() { + // Create application like normal + let mut cmd = command!() // requires `cargo` feature + // Add the version arguments + .arg(arg!(--"set-ver" "set version manually")) + .arg(arg!(--major "auto inc major").action(ArgAction::SetTrue)) + .arg(arg!(--minor "auto inc minor").action(ArgAction::SetTrue)) + .arg(arg!(--patch "auto inc patch").action(ArgAction::SetTrue)) + // Arguments can also be added to a group individually, these two arguments + // are part of the "input" group which is not required + .arg(arg!([INPUT_FILE] "some regular input").value_parser(value_parser!(PathBuf))) + .arg( + arg!(--"spec-in" "some special input argument") + .value_parser(value_parser!(PathBuf)), + ) + // Now let's assume we have a -c [config] argument which requires one of + // (but **not** both) the "input" arguments + .arg(arg!(config: -c ).value_parser(value_parser!(PathBuf))); + let matches = cmd.get_matches_mut(); + + // Let's assume the old version 1.2.3 + let mut major = 1; + let mut minor = 2; + let mut patch = 3; + + // See if --set-ver was used to set the version manually + let version = if let Some(ver) = matches.get_one::("set-ver") { + if matches.get_flag("major") || matches.get_flag("minor") || matches.get_flag("patch") { + cmd.error( + ErrorKind::ArgumentConflict, + "Can't do relative and absolute version change", + ) + .exit(); + } + ver.clone() + } else { + // Increment the one requested (in a real program, we'd reset the lower numbers) + let (maj, min, pat) = ( + matches.get_flag("major"), + matches.get_flag("minor"), + matches.get_flag("patch"), + ); + match (maj, min, pat) { + (true, false, false) => major += 1, + (false, true, false) => minor += 1, + (false, false, true) => patch += 1, + _ => { + cmd.error( + ErrorKind::ArgumentConflict, + "Can only modify one version field", + ) + .exit(); + } + }; + format!("{major}.{minor}.{patch}") + }; + + println!("Version: {version}"); + + // Check for usage of -c + if matches.contains_id("config") { + let input = matches + .get_one::("INPUT_FILE") + .or_else(|| matches.get_one::("spec-in")) + .unwrap_or_else(|| { + cmd.error( + ErrorKind::MissingRequiredArgument, + "INPUT_FILE or --spec-in is required when using --config", + ) + .exit() + }) + .display(); + println!( + "Doing work using input {} and config {}", + input, + matches.get_one::("config").unwrap().display() + ); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_builder/05_01_assert.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_builder/05_01_assert.rs new file mode 100644 index 0000000000000000000000000000000000000000..b42c5762e76a555c968bf3d4d8b2be70227d70f7 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_builder/05_01_assert.rs @@ -0,0 +1,25 @@ +use clap::{arg, command, value_parser}; + +fn main() { + let matches = cmd().get_matches(); + + // Note, it's safe to call unwrap() because the arg is required + let port: usize = *matches + .get_one::("PORT") + .expect("'PORT' is required and parsing will fail if its missing"); + println!("PORT = {port}"); +} + +fn cmd() -> clap::Command { + command!() // requires `cargo` feature + .arg( + arg!() + .help("Network port to use") + .value_parser(value_parser!(usize)), + ) +} + +#[test] +fn verify_cmd() { + cmd().debug_assert(); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/01_quick.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/01_quick.md new file mode 100644 index 0000000000000000000000000000000000000000..21bbfe1a65bdc4fe05809fdb891e2945e480b0be --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/01_quick.md @@ -0,0 +1,35 @@ +```console +$ 01_quick_derive --help +A simple to use, efficient, and full-featured Command Line Argument Parser + +Usage: 01_quick_derive[EXE] [OPTIONS] [NAME] [COMMAND] + +Commands: + test does testing things + help Print this message or the help of the given subcommand(s) + +Arguments: + [NAME] Optional name to operate on + +Options: + -c, --config Sets a custom config file + -d, --debug... Turn debugging information on + -h, --help Print help + -V, --version Print version + +``` + +By default, the program does nothing: +```console +$ 01_quick_derive +Debug mode is off + +``` + +But you can mix and match the various features +```console +$ 01_quick_derive -dd test +Debug mode is on +Not printing testing lists... + +``` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/01_quick.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/01_quick.rs new file mode 100644 index 0000000000000000000000000000000000000000..ba68efa70db77d0686aaf4ce65eba660df75182a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/01_quick.rs @@ -0,0 +1,68 @@ +use std::path::PathBuf; + +use clap::{Parser, Subcommand}; + +#[derive(Parser)] +#[command(version, about, long_about = None)] +struct Cli { + /// Optional name to operate on + name: Option, + + /// Sets a custom config file + #[arg(short, long, value_name = "FILE")] + config: Option, + + /// Turn debugging information on + #[arg(short, long, action = clap::ArgAction::Count)] + debug: u8, + + #[command(subcommand)] + command: Option, +} + +#[derive(Subcommand)] +enum Commands { + /// does testing things + Test { + /// lists test values + #[arg(short, long)] + list: bool, + }, +} + +fn main() { + let cli = Cli::parse(); + + // You can check the value provided by positional arguments, or option arguments + if let Some(name) = cli.name.as_deref() { + println!("Value for name: {name}"); + } + + if let Some(config_path) = cli.config.as_deref() { + println!("Value for config: {}", config_path.display()); + } + + // You can see how many times a particular flag or argument occurred + // Note, only flags can have multiple occurrences + match cli.debug { + 0 => println!("Debug mode is off"), + 1 => println!("Debug mode is kind of on"), + 2 => println!("Debug mode is on"), + _ => println!("Don't be crazy"), + } + + // You can check for the existence of subcommands, and if found use their + // matches just as you would the top level cmd + match &cli.command { + Some(Commands::Test { list }) => { + if *list { + println!("Printing testing lists..."); + } else { + println!("Not printing testing lists..."); + } + } + None => {} + } + + // Continued program logic goes here... +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/02_app_settings.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/02_app_settings.md new file mode 100644 index 0000000000000000000000000000000000000000..90da3ae19b889d634a16c361d4e5afb79191a5c7 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/02_app_settings.md @@ -0,0 +1,17 @@ +```console +$ 02_app_settings_derive --help +A simple to use, efficient, and full-featured Command Line Argument Parser + +Usage: 02_app_settings_derive[EXE] --two --one + +Options: + --two + + --one + + -h, --help + Print help + -V, --version + Print version + +``` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/02_app_settings.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/02_app_settings.rs new file mode 100644 index 0000000000000000000000000000000000000000..bc416246761a591d65f27f6ea9bede26ea7fcfc1 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/02_app_settings.rs @@ -0,0 +1,18 @@ +use clap::Parser; + +#[derive(Parser)] +#[command(version, about, long_about = None)] +#[command(next_line_help = true)] +struct Cli { + #[arg(long)] + two: String, + #[arg(long)] + one: String, +} + +fn main() { + let cli = Cli::parse(); + + println!("two: {:?}", cli.two); + println!("one: {:?}", cli.one); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/02_apps.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/02_apps.md new file mode 100644 index 0000000000000000000000000000000000000000..b5ae1147fd76390e8449e38da6a3159209370bc7 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/02_apps.md @@ -0,0 +1,16 @@ +```console +$ 02_apps_derive --help +Does awesome things + +Usage: 02_apps_derive[EXE] --two --one + +Options: + --two + --one + -h, --help Print help + -V, --version Print version + +$ 02_apps_derive --version +MyApp 1.0 + +``` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/02_apps.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/02_apps.rs new file mode 100644 index 0000000000000000000000000000000000000000..52aae9e83e2bab5dfe5453d3c2c7db4f37609aaa --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/02_apps.rs @@ -0,0 +1,19 @@ +use clap::Parser; + +#[derive(Parser)] +#[command(name = "MyApp")] +#[command(version = "1.0")] +#[command(about = "Does awesome things", long_about = None)] +struct Cli { + #[arg(long)] + two: String, + #[arg(long)] + one: String, +} + +fn main() { + let cli = Cli::parse(); + + println!("two: {:?}", cli.two); + println!("one: {:?}", cli.one); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/02_crate.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/02_crate.md new file mode 100644 index 0000000000000000000000000000000000000000..3f6446064090a82ae337a0aea1cca5f31a4bf7bb --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/02_crate.md @@ -0,0 +1,16 @@ +```console +$ 02_crate_derive --help +A simple to use, efficient, and full-featured Command Line Argument Parser + +Usage: 02_crate_derive[EXE] --two --one + +Options: + --two + --one + -h, --help Print help + -V, --version Print version + +$ 02_crate_derive --version +clap [..] + +``` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/02_crate.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/02_crate.rs new file mode 100644 index 0000000000000000000000000000000000000000..5dec591fe03acc33c378e74f55fa9ea0d314c301 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/02_crate.rs @@ -0,0 +1,17 @@ +use clap::Parser; + +#[derive(Parser)] +#[command(version, about, long_about = None)] // Read from `Cargo.toml` +struct Cli { + #[arg(long)] + two: String, + #[arg(long)] + one: String, +} + +fn main() { + let cli = Cli::parse(); + + println!("two: {:?}", cli.two); + println!("one: {:?}", cli.one); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_01_flag_bool.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_01_flag_bool.md new file mode 100644 index 0000000000000000000000000000000000000000..976226003bf13b5a5da108c0794fb788d688e2da --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_01_flag_bool.md @@ -0,0 +1,26 @@ +```console +$ 03_01_flag_bool_derive --help +A simple to use, efficient, and full-featured Command Line Argument Parser + +Usage: 03_01_flag_bool_derive[EXE] [OPTIONS] + +Options: + -v, --verbose + -h, --help Print help + -V, --version Print version + +$ 03_01_flag_bool_derive +verbose: false + +$ 03_01_flag_bool_derive --verbose +verbose: true + +$ 03_01_flag_bool_derive --verbose --verbose +? failed +error: the argument '--verbose' cannot be used multiple times + +Usage: 03_01_flag_bool_derive[EXE] [OPTIONS] + +For more information, try '--help'. + +``` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_01_flag_bool.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_01_flag_bool.rs new file mode 100644 index 0000000000000000000000000000000000000000..067ae9e2d747b812c40b54b2dfcc336698bc6ebc --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_01_flag_bool.rs @@ -0,0 +1,14 @@ +use clap::Parser; + +#[derive(Parser)] +#[command(version, about, long_about = None)] +struct Cli { + #[arg(short, long)] + verbose: bool, +} + +fn main() { + let cli = Cli::parse(); + + println!("verbose: {:?}", cli.verbose); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_01_flag_count.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_01_flag_count.md new file mode 100644 index 0000000000000000000000000000000000000000..56ef9cafd9117814e3991b37b4f72f69abc64386 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_01_flag_count.md @@ -0,0 +1,21 @@ +```console +$ 03_01_flag_count_derive --help +A simple to use, efficient, and full-featured Command Line Argument Parser + +Usage: 03_01_flag_count_derive[EXE] [OPTIONS] + +Options: + -v, --verbose... + -h, --help Print help + -V, --version Print version + +$ 03_01_flag_count_derive +verbose: 0 + +$ 03_01_flag_count_derive --verbose +verbose: 1 + +$ 03_01_flag_count_derive --verbose --verbose +verbose: 2 + +``` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_01_flag_count.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_01_flag_count.rs new file mode 100644 index 0000000000000000000000000000000000000000..769342b123e86b14fd064eff9436d15b69cbf682 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_01_flag_count.rs @@ -0,0 +1,14 @@ +use clap::Parser; + +#[derive(Parser)] +#[command(version, about, long_about = None)] +struct Cli { + #[arg(short, long, action = clap::ArgAction::Count)] + verbose: u8, +} + +fn main() { + let cli = Cli::parse(); + + println!("verbose: {:?}", cli.verbose); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_02_option.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_02_option.md new file mode 100644 index 0000000000000000000000000000000000000000..5f71847edd65f60cb8a74ea87c9e1762cc5b30e9 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_02_option.md @@ -0,0 +1,36 @@ +```console +$ 03_02_option_derive --help +A simple to use, efficient, and full-featured Command Line Argument Parser + +Usage: 03_02_option_derive[EXE] --name + +Options: + -n, --name + -h, --help Print help + -V, --version Print version + +$ 03_02_option_derive +? 2 +error: the following required arguments were not provided: + --name + +Usage: 03_02_option_derive[EXE] --name + +For more information, try '--help'. + +$ 03_02_option_derive --name bob +name: "bob" + +$ 03_02_option_derive --name=bob +name: "bob" + +$ 03_02_option_derive -n bob +name: "bob" + +$ 03_02_option_derive -n=bob +name: "bob" + +$ 03_02_option_derive -nbob +name: "bob" + +``` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_02_option.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_02_option.rs new file mode 100644 index 0000000000000000000000000000000000000000..4646e320a079a9e2a340c223409a4a5bd5c582c3 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_02_option.rs @@ -0,0 +1,14 @@ +use clap::Parser; + +#[derive(Parser)] +#[command(version, about, long_about = None)] +struct Cli { + #[arg(short, long)] + name: String, +} + +fn main() { + let cli = Cli::parse(); + + println!("name: {:?}", cli.name); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_02_option_mult.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_02_option_mult.md new file mode 100644 index 0000000000000000000000000000000000000000..9952c51d4a1bdfe23bb98d50bac085ade31ef8cf --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_02_option_mult.md @@ -0,0 +1,24 @@ +```console +$ 03_02_option_mult_derive --help +A simple to use, efficient, and full-featured Command Line Argument Parser + +Usage: 03_02_option_mult_derive[EXE] [OPTIONS] + +Options: + -n, --name + -h, --help Print help + -V, --version Print version + +$ 03_02_option_mult_derive +name: [] + +$ 03_02_option_mult_derive --name bob +name: ["bob"] + +$ 03_02_option_mult_derive --name bob --name john +name: ["bob", "john"] + +$ 03_02_option_mult_derive --name bob --name=john -n tom -n=chris -nsteve +name: ["bob", "john", "tom", "chris", "steve"] + +``` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_02_option_mult.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_02_option_mult.rs new file mode 100644 index 0000000000000000000000000000000000000000..6e928f2832692ea78113f7d39d796bd18733f27f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_02_option_mult.rs @@ -0,0 +1,14 @@ +use clap::Parser; + +#[derive(Parser)] +#[command(version, about, long_about = None)] +struct Cli { + #[arg(short, long)] + name: Vec, +} + +fn main() { + let cli = Cli::parse(); + + println!("name: {:?}", cli.name); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_03_positional.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_03_positional.md new file mode 100644 index 0000000000000000000000000000000000000000..8a4cfd58ce15701c8f911f4d0ae85f7574603f1b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_03_positional.md @@ -0,0 +1,26 @@ +```console +$ 03_03_positional_derive --help +A simple to use, efficient, and full-featured Command Line Argument Parser + +Usage: 03_03_positional_derive[EXE] + +Arguments: + + +Options: + -h, --help Print help + -V, --version Print version + +$ 03_03_positional_derive +? 2 +error: the following required arguments were not provided: + + +Usage: 03_03_positional_derive[EXE] + +For more information, try '--help'. + +$ 03_03_positional_derive bob +name: "bob" + +``` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_03_positional.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_03_positional.rs new file mode 100644 index 0000000000000000000000000000000000000000..b69c07782ad6b3fdfb73153dca0b02f221e4df8d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_03_positional.rs @@ -0,0 +1,13 @@ +use clap::Parser; + +#[derive(Parser)] +#[command(version, about, long_about = None)] +struct Cli { + name: String, +} + +fn main() { + let cli = Cli::parse(); + + println!("name: {:?}", cli.name); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_03_positional_mult.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_03_positional_mult.md new file mode 100644 index 0000000000000000000000000000000000000000..8f295e02ba4287b76fb095664f91cb02022dd600 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_03_positional_mult.md @@ -0,0 +1,23 @@ +```console +$ 03_03_positional_mult_derive --help +A simple to use, efficient, and full-featured Command Line Argument Parser + +Usage: 03_03_positional_mult_derive[EXE] [NAME]... + +Arguments: + [NAME]... + +Options: + -h, --help Print help + -V, --version Print version + +$ 03_03_positional_mult_derive +name: [] + +$ 03_03_positional_mult_derive bob +name: ["bob"] + +$ 03_03_positional_mult_derive bob john +name: ["bob", "john"] + +``` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_03_positional_mult.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_03_positional_mult.rs new file mode 100644 index 0000000000000000000000000000000000000000..ee550a306045e2ee07cf88004de5fde1d4cab5ef --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_03_positional_mult.rs @@ -0,0 +1,13 @@ +use clap::Parser; + +#[derive(Parser)] +#[command(version, about, long_about = None)] +struct Cli { + name: Vec, +} + +fn main() { + let cli = Cli::parse(); + + println!("name: {:?}", cli.name); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_04_subcommands.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_04_subcommands.md new file mode 100644 index 0000000000000000000000000000000000000000..3ae0677440280e4a899815d8efd2d2167929a2ad --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_04_subcommands.md @@ -0,0 +1,61 @@ +```console +$ 03_04_subcommands_derive help +A simple to use, efficient, and full-featured Command Line Argument Parser + +Usage: 03_04_subcommands_derive[EXE] + +Commands: + add Adds files to myapp + help Print this message or the help of the given subcommand(s) + +Options: + -h, --help Print help + -V, --version Print version + +$ 03_04_subcommands_derive help add +Adds files to myapp + +Usage: 03_04_subcommands_derive[EXE] add [NAME] + +Arguments: + [NAME] + +Options: + -h, --help Print help + -V, --version Print version + +$ 03_04_subcommands_derive add bob +'myapp add' was used, name is: Some("bob") + +``` + +When specifying commands with `command: Commands`, they are [required][crate::Command::subcommand_required]. +By default, a missing subcommand will [show help rather than error][crate::Command::arg_required_else_help]. +```console +$ 03_04_subcommands_derive +? failed +A simple to use, efficient, and full-featured Command Line Argument Parser + +Usage: 03_04_subcommands_derive[EXE] + +Commands: + add Adds files to myapp + help Print this message or the help of the given subcommand(s) + +Options: + -h, --help Print help + -V, --version Print version + +``` +To make a subcommand optional, wrap it in an `Option` (e.g. `command: Option`). + +Since we specified [`#[command(propagate_version = true)]`][crate::Command::propagate_version], +the `--version` flag is available in all subcommands: +```console +$ 03_04_subcommands_derive --version +clap [..] + +$ 03_04_subcommands_derive add --version +clap-add [..] + +``` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_04_subcommands.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_04_subcommands.rs new file mode 100644 index 0000000000000000000000000000000000000000..a90910b0729a8abf6b49f3ea45b250fd0dfa28f2 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_04_subcommands.rs @@ -0,0 +1,27 @@ +use clap::{Parser, Subcommand}; + +#[derive(Parser)] +#[command(version, about, long_about = None)] +#[command(propagate_version = true)] +struct Cli { + #[command(subcommand)] + command: Commands, +} + +#[derive(Subcommand)] +enum Commands { + /// Adds files to myapp + Add { name: Option }, +} + +fn main() { + let cli = Cli::parse(); + + // You can check for the existence of subcommands, and if found use their + // matches just as you would the top level cmd + match &cli.command { + Commands::Add { name } => { + println!("'myapp add' was used, name is: {name:?}"); + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_04_subcommands_alt.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_04_subcommands_alt.rs new file mode 100644 index 0000000000000000000000000000000000000000..5c1e0610c3aaccca05bc258ee9957a578c58751d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_04_subcommands_alt.rs @@ -0,0 +1,32 @@ +use clap::{Args, Parser, Subcommand}; + +#[derive(Parser)] +#[command(version, about, long_about = None)] +#[command(propagate_version = true)] +struct Cli { + #[command(subcommand)] + command: Commands, +} + +#[derive(Subcommand)] +enum Commands { + /// Adds files to myapp + Add(AddArgs), +} + +#[derive(Args)] +struct AddArgs { + name: Option, +} + +fn main() { + let cli = Cli::parse(); + + // You can check for the existence of subcommands, and if found use their + // matches just as you would the top level cmd + match &cli.command { + Commands::Add(name) => { + println!("'myapp add' was used, name is: {:?}", name.name); + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_05_default_values.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_05_default_values.md new file mode 100644 index 0000000000000000000000000000000000000000..994cb3328227d98cfae5b4c3d331fadb07672ecc --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_05_default_values.md @@ -0,0 +1,20 @@ +```console +$ 03_05_default_values_derive --help +A simple to use, efficient, and full-featured Command Line Argument Parser + +Usage: 03_05_default_values_derive[EXE] [PORT] + +Arguments: + [PORT] [default: 2020] + +Options: + -h, --help Print help + -V, --version Print version + +$ 03_05_default_values_derive +port: 2020 + +$ 03_05_default_values_derive 22 +port: 22 + +``` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_05_default_values.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_05_default_values.rs new file mode 100644 index 0000000000000000000000000000000000000000..543010d3e62b79096fde153b09245d4410f5e0b2 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_05_default_values.rs @@ -0,0 +1,14 @@ +use clap::Parser; + +#[derive(Parser)] +#[command(version, about, long_about = None)] +struct Cli { + #[arg(default_value_t = 2020)] + port: u16, +} + +fn main() { + let cli = Cli::parse(); + + println!("port: {:?}", cli.port); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_06_optional.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_06_optional.md new file mode 100644 index 0000000000000000000000000000000000000000..eda036c21e5bc575a299ec7fc4c3e0ec6b33d1bf --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_06_optional.md @@ -0,0 +1,20 @@ +```console +$ 03_06_optional_derive --help +A simple to use, efficient, and full-featured Command Line Argument Parser + +Usage: 03_06_optional_derive[EXE] [NAME] + +Arguments: + [NAME] + +Options: + -h, --help Print help + -V, --version Print version + +$ 03_06_optional_derive +name: None + +$ 03_06_optional_derive bob +name: Some("bob") + +``` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_06_optional.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_06_optional.rs new file mode 100644 index 0000000000000000000000000000000000000000..3187af5239d439868bb532d2519a0062cf0b510c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/03_06_optional.rs @@ -0,0 +1,13 @@ +use clap::Parser; + +#[derive(Parser)] +#[command(version, about, long_about = None)] +struct Cli { + name: Option, +} + +fn main() { + let cli = Cli::parse(); + + println!("name: {:?}", cli.name); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_01_enum.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_01_enum.md new file mode 100644 index 0000000000000000000000000000000000000000..89db08c96ea794cead575f34801b10d2ee8921ff --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_01_enum.md @@ -0,0 +1,47 @@ +```console +$ 04_01_enum_derive --help +A simple to use, efficient, and full-featured Command Line Argument Parser + +Usage: 04_01_enum_derive[EXE] + +Arguments: + + What mode to run the program in + + Possible values: + - fast: Run swiftly + - slow: Crawl slowly but steadily + +Options: + -h, --help + Print help (see a summary with '-h') + + -V, --version + Print version + +$ 04_01_enum_derive -h +A simple to use, efficient, and full-featured Command Line Argument Parser + +Usage: 04_01_enum_derive[EXE] + +Arguments: + What mode to run the program in [possible values: fast, slow] + +Options: + -h, --help Print help (see more with '--help') + -V, --version Print version + +$ 04_01_enum_derive fast +Hare + +$ 04_01_enum_derive slow +Tortoise + +$ 04_01_enum_derive medium +? failed +error: invalid value 'medium' for '' + [possible values: fast, slow] + +For more information, try '--help'. + +``` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_01_enum.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_01_enum.rs new file mode 100644 index 0000000000000000000000000000000000000000..95e1fdb64e9710141c0108b48c8337c62ecd95a7 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_01_enum.rs @@ -0,0 +1,32 @@ +use clap::{Parser, ValueEnum}; + +#[derive(Parser)] +#[command(version, about, long_about = None)] +struct Cli { + /// What mode to run the program in + #[arg(value_enum)] + mode: Mode, +} + +#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, ValueEnum)] +enum Mode { + /// Run swiftly + Fast, + /// Crawl slowly but steadily + /// + /// This paragraph is ignored because there is no long help text for possible values. + Slow, +} + +fn main() { + let cli = Cli::parse(); + + match cli.mode { + Mode::Fast => { + println!("Hare"); + } + Mode::Slow => { + println!("Tortoise"); + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_02_parse.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_02_parse.md new file mode 100644 index 0000000000000000000000000000000000000000..573b43cc79304c0bb722dda73759ed3c1f3e014e --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_02_parse.md @@ -0,0 +1,29 @@ +```console +$ 04_02_parse_derive --help +A simple to use, efficient, and full-featured Command Line Argument Parser + +Usage: 04_02_parse_derive[EXE] + +Arguments: + Network port to use + +Options: + -h, --help Print help + -V, --version Print version + +$ 04_02_parse_derive 22 +PORT = 22 + +$ 04_02_parse_derive foobar +? failed +error: invalid value 'foobar' for '': invalid digit found in string + +For more information, try '--help'. + +$ 04_02_parse_derive 0 +? failed +error: invalid value '0' for '': 0 is not in 1..=65535 + +For more information, try '--help'. + +``` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_02_parse.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_02_parse.rs new file mode 100644 index 0000000000000000000000000000000000000000..860ecbc23c13cb18bf44d530f748780fadb4f525 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_02_parse.rs @@ -0,0 +1,15 @@ +use clap::Parser; + +#[derive(Parser)] +#[command(version, about, long_about = None)] +struct Cli { + /// Network port to use + #[arg(value_parser = clap::value_parser!(u16).range(1..))] + port: u16, +} + +fn main() { + let cli = Cli::parse(); + + println!("PORT = {}", cli.port); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_02_validate.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_02_validate.md new file mode 100644 index 0000000000000000000000000000000000000000..f8835fdca0ba82136f83807d92c59bf2f4a8d212 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_02_validate.md @@ -0,0 +1,29 @@ +```console +$ 04_02_validate_derive --help +A simple to use, efficient, and full-featured Command Line Argument Parser + +Usage: 04_02_validate_derive[EXE] + +Arguments: + Network port to use + +Options: + -h, --help Print help + -V, --version Print version + +$ 04_02_validate_derive 22 +PORT = 22 + +$ 04_02_validate_derive foobar +? failed +error: invalid value 'foobar' for '': `foobar` isn't a port number + +For more information, try '--help'. + +$ 04_02_validate_derive 0 +? failed +error: invalid value '0' for '': port not in range 1-65535 + +For more information, try '--help'. + +``` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_02_validate.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_02_validate.rs new file mode 100644 index 0000000000000000000000000000000000000000..7e493738ca0a4504aa9eafed18d4bbca10e9a891 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_02_validate.rs @@ -0,0 +1,34 @@ +use std::ops::RangeInclusive; + +use clap::Parser; + +#[derive(Parser)] +#[command(version, about, long_about = None)] +struct Cli { + /// Network port to use + #[arg(value_parser = port_in_range)] + port: u16, +} + +fn main() { + let cli = Cli::parse(); + + println!("PORT = {}", cli.port); +} + +const PORT_RANGE: RangeInclusive = 1..=65535; + +fn port_in_range(s: &str) -> Result { + let port: usize = s + .parse() + .map_err(|_| format!("`{s}` isn't a port number"))?; + if PORT_RANGE.contains(&port) { + Ok(port as u16) + } else { + Err(format!( + "port not in range {}-{}", + PORT_RANGE.start(), + PORT_RANGE.end() + )) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_03_relations.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_03_relations.md new file mode 100644 index 0000000000000000000000000000000000000000..6eafb9fbbd7ffab66066353f1a38c8f0c12107af --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_03_relations.md @@ -0,0 +1,53 @@ +```console +$ 04_03_relations_derive --help +A simple to use, efficient, and full-featured Command Line Argument Parser + +Usage: 04_03_relations_derive[EXE] [OPTIONS] <--set-ver |--major|--minor|--patch> [INPUT_FILE] + +Arguments: + [INPUT_FILE] some regular input + +Options: + --set-ver set version manually + --major auto inc major + --minor auto inc minor + --patch auto inc patch + --spec-in some special input argument + -c + -h, --help Print help + -V, --version Print version + +$ 04_03_relations_derive +? failed +error: the following required arguments were not provided: + <--set-ver |--major|--minor|--patch> + +Usage: 04_03_relations_derive[EXE] <--set-ver |--major|--minor|--patch> [INPUT_FILE] + +For more information, try '--help'. + +$ 04_03_relations_derive --major +Version: 2.2.3 + +$ 04_03_relations_derive --major --minor +? failed +error: the argument '--major' cannot be used with '--minor' + +Usage: 04_03_relations_derive[EXE] <--set-ver |--major|--minor|--patch> [INPUT_FILE] + +For more information, try '--help'. + +$ 04_03_relations_derive --major -c config.toml +? failed +error: the following required arguments were not provided: + > + +Usage: 04_03_relations_derive[EXE] -c <--set-ver |--major|--minor|--patch> > + +For more information, try '--help'. + +$ 04_03_relations_derive --major -c config.toml --spec-in input.txt +Version: 2.2.3 +Doing work using input input.txt and config config.toml + +``` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_03_relations.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_03_relations.rs new file mode 100644 index 0000000000000000000000000000000000000000..0bbbd8a6fc248d3b0e3041d2871b0388830642c3 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_03_relations.rs @@ -0,0 +1,75 @@ +use clap::{Args, Parser}; + +#[derive(Parser)] +#[command(version, about, long_about = None)] +struct Cli { + #[command(flatten)] + vers: Vers, + + /// some regular input + #[arg(group = "input")] + input_file: Option, + + /// some special input argument + #[arg(long, group = "input")] + spec_in: Option, + + #[arg(short, requires = "input")] + config: Option, +} + +#[derive(Args)] +#[group(required = true, multiple = false)] +struct Vers { + /// set version manually + #[arg(long, value_name = "VER")] + set_ver: Option, + + /// auto inc major + #[arg(long)] + major: bool, + + /// auto inc minor + #[arg(long)] + minor: bool, + + /// auto inc patch + #[arg(long)] + patch: bool, +} + +fn main() { + let cli = Cli::parse(); + + // Let's assume the old version 1.2.3 + let mut major = 1; + let mut minor = 2; + let mut patch = 3; + + // See if --set_ver was used to set the version manually + let vers = &cli.vers; + let version = if let Some(ver) = vers.set_ver.as_deref() { + ver.to_string() + } else { + // Increment the one requested (in a real program, we'd reset the lower numbers) + let (maj, min, pat) = (vers.major, vers.minor, vers.patch); + match (maj, min, pat) { + (true, _, _) => major += 1, + (_, true, _) => minor += 1, + (_, _, true) => patch += 1, + _ => unreachable!(), + }; + format!("{major}.{minor}.{patch}") + }; + + println!("Version: {version}"); + + // Check for usage of -c + if let Some(config) = cli.config.as_deref() { + let input = cli + .input_file + .as_deref() + .unwrap_or_else(|| cli.spec_in.as_deref().unwrap()); + println!("Doing work using input {input} and config {config}"); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_04_custom.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_04_custom.md new file mode 100644 index 0000000000000000000000000000000000000000..c601e9fb4d85dbca69be6b555b1b2f18c9490df3 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_04_custom.md @@ -0,0 +1,52 @@ +```console +$ 04_04_custom_derive --help +A simple to use, efficient, and full-featured Command Line Argument Parser + +Usage: 04_04_custom_derive[EXE] [OPTIONS] [INPUT_FILE] + +Arguments: + [INPUT_FILE] some regular input + +Options: + --set-ver set version manually + --major auto inc major + --minor auto inc minor + --patch auto inc patch + --spec-in some special input argument + -c + -h, --help Print help + -V, --version Print version + +$ 04_04_custom_derive +? failed +error: Can only modify one version field + +Usage: clap [OPTIONS] [INPUT_FILE] + +For more information, try '--help'. + +$ 04_04_custom_derive --major +Version: 2.2.3 + +$ 04_04_custom_derive --major --minor +? failed +error: Can only modify one version field + +Usage: clap [OPTIONS] [INPUT_FILE] + +For more information, try '--help'. + +$ 04_04_custom_derive --major -c config.toml +? failed +Version: 2.2.3 +error: INPUT_FILE or --spec-in is required when using --config + +Usage: clap [OPTIONS] [INPUT_FILE] + +For more information, try '--help'. + +$ 04_04_custom_derive --major -c config.toml --spec-in input.txt +Version: 2.2.3 +Doing work using input input.txt and config config.toml + +``` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_04_custom.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_04_custom.rs new file mode 100644 index 0000000000000000000000000000000000000000..4acf76529747348c5aed234b7d464d73d893dce7 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/04_04_custom.rs @@ -0,0 +1,91 @@ +use clap::error::ErrorKind; +use clap::{CommandFactory, Parser}; + +#[derive(Parser)] +#[command(version, about, long_about = None)] +struct Cli { + /// set version manually + #[arg(long, value_name = "VER")] + set_ver: Option, + + /// auto inc major + #[arg(long)] + major: bool, + + /// auto inc minor + #[arg(long)] + minor: bool, + + /// auto inc patch + #[arg(long)] + patch: bool, + + /// some regular input + input_file: Option, + + /// some special input argument + #[arg(long)] + spec_in: Option, + + #[arg(short)] + config: Option, +} + +fn main() { + let cli = Cli::parse(); + + // Let's assume the old version 1.2.3 + let mut major = 1; + let mut minor = 2; + let mut patch = 3; + + // See if --set-ver was used to set the version manually + let version = if let Some(ver) = cli.set_ver.as_deref() { + if cli.major || cli.minor || cli.patch { + let mut cmd = Cli::command(); + cmd.error( + ErrorKind::ArgumentConflict, + "Can't do relative and absolute version change", + ) + .exit(); + } + ver.to_string() + } else { + // Increment the one requested (in a real program, we'd reset the lower numbers) + let (maj, min, pat) = (cli.major, cli.minor, cli.patch); + match (maj, min, pat) { + (true, false, false) => major += 1, + (false, true, false) => minor += 1, + (false, false, true) => patch += 1, + _ => { + let mut cmd = Cli::command(); + cmd.error( + ErrorKind::ArgumentConflict, + "Can only modify one version field", + ) + .exit(); + } + }; + format!("{major}.{minor}.{patch}") + }; + + println!("Version: {version}"); + + // Check for usage of -c + if let Some(config) = cli.config.as_deref() { + let input = cli + .input_file + .as_deref() + // 'or' is preferred to 'or_else' here since `Option::as_deref` is 'const' + .or(cli.spec_in.as_deref()) + .unwrap_or_else(|| { + let mut cmd = Cli::command(); + cmd.error( + ErrorKind::MissingRequiredArgument, + "INPUT_FILE or --spec-in is required when using --config", + ) + .exit() + }); + println!("Doing work using input {input} and config {config}"); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/05_01_assert.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/05_01_assert.rs new file mode 100644 index 0000000000000000000000000000000000000000..5a573aa2ab747737c159edf6ed1fff4472045307 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/tutorial_derive/05_01_assert.rs @@ -0,0 +1,20 @@ +use clap::Parser; + +#[derive(Parser)] +#[command(version, about, long_about = None)] +struct Cli { + /// Network port to use + port: u16, +} + +fn main() { + let cli = Cli::parse(); + + println!("PORT = {}", cli.port); +} + +#[test] +fn verify_cli() { + use clap::CommandFactory; + Cli::command().debug_assert(); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/builtin.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/builtin.md new file mode 100644 index 0000000000000000000000000000000000000000..f4d3b9db6d318f87cef4b37198426a265a348526 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/builtin.md @@ -0,0 +1,59 @@ +Help: +```console +$ typed-derive builtin --help +Usage: typed-derive builtin [OPTIONS] + +Options: + --port Support for discrete numbers [default: 22] [possible values: 22, 80] + --log-level Support enums from a foreign crate that don't implement `ValueEnum` [default: info] [possible values: trace, debug, info, warn, error] + -h, --help Print help + +``` + +Discrete numbers +```console +$ typed-derive builtin --port 22 +Builtin(BuiltInParsers { port: 22, log_level: Info }) + +$ typed-derive builtin --port 80 +Builtin(BuiltInParsers { port: 80, log_level: Info }) + +$ typed-derive builtin --port +? failed +error: a value is required for '--port ' but none was supplied + [possible values: 22, 80] + +For more information, try '--help'. + +$ typed-derive builtin --port 3000 +? failed +error: invalid value '3000' for '--port ' + [possible values: 22, 80] + +For more information, try '--help'. + +``` + +Enums from crates that can't implement `ValueEnum` +```console +$ typed-derive builtin --log-level debug +Builtin(BuiltInParsers { port: 22, log_level: Debug }) + +$ typed-derive builtin --log-level error +Builtin(BuiltInParsers { port: 22, log_level: Error }) + +$ typed-derive builtin --log-level +? failed +error: a value is required for '--log-level ' but none was supplied + [possible values: trace, debug, info, warn, error] + +For more information, try '--help'. + +$ typed-derive builtin --log-level critical +? failed +error: invalid value 'critical' for '--log-level ' + [possible values: trace, debug, info, warn, error] + +For more information, try '--help'. + +``` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/builtin.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/builtin.rs new file mode 100644 index 0000000000000000000000000000000000000000..99b352b8c704fc236794a95768009bdff2eb6f8c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/builtin.rs @@ -0,0 +1,25 @@ +use clap::builder::TypedValueParser as _; +use clap::Args; + +use crate::foreign_crate; + +#[derive(Args, Debug)] +pub(crate) struct BuiltInParsers { + /// Support for discrete numbers + #[arg( + long, + default_value_t = 22, + value_parser = clap::builder::PossibleValuesParser::new(["22", "80"]) + .map(|s| s.parse::().unwrap()), + )] + port: usize, + + /// Support enums from a foreign crate that don't implement `ValueEnum` + #[arg( + long, + default_value_t = foreign_crate::LogLevel::Info, + value_parser = clap::builder::PossibleValuesParser::new(["trace", "debug", "info", "warn", "error"]) + .map(|s| s.parse::().unwrap()), + )] + log_level: foreign_crate::LogLevel, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/custom.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/custom.md new file mode 100644 index 0000000000000000000000000000000000000000..13984b8bd1816d432a22416ac98b81b30f0a1b21 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/custom.md @@ -0,0 +1,40 @@ +Help: +```console +$ typed-derive custom --help +Usage: typed-derive custom [OPTIONS] + +Options: + --target-version + Hand-implement `TypedValueParser` + + Possible values: + - major: Increase the major version (x.0.0) + - minor: Increase the minor version (x.y.0) + - patch: Increase the patch version (x.y.z) + + -h, --help + Print help (see a summary with '-h') + +``` + +Defines (key-value pairs) +```console +$ typed-derive custom --target-version major +Custom(CustomParser { target_version: Some(Relative(Major)) }) + +$ typed-derive custom --target-version 10.0.0 +Custom(CustomParser { target_version: Some(Absolute(Version { major: 10, minor: 0, patch: 0 })) }) + +$ typed-derive custom --target-version 10 +? failed +error: invalid value '10' for '--target-version ': unexpected end of input while parsing major version number + +For more information, try '--help'. + +$ typed-derive custom --target-version blue +? failed +error: invalid value 'blue' for '--target-version ': unexpected character 'b' while parsing major version number + +For more information, try '--help'. + +``` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/custom.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/custom.rs new file mode 100644 index 0000000000000000000000000000000000000000..7f3f07283b5f14069b827efaf2a75ccae3c2a6d6 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/custom.rs @@ -0,0 +1,83 @@ +use clap::Args; + +use crate::implicit::BumpLevel; + +#[derive(Args, Debug)] +pub(crate) struct CustomParser { + /// Hand-implement `TypedValueParser` + #[arg(long)] + target_version: Option, +} + +/// Enum or custom value +#[derive(Clone, Debug)] +pub(crate) enum TargetVersion { + Relative(BumpLevel), + Absolute(semver::Version), +} + +impl std::fmt::Display for TargetVersion { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> { + match self { + TargetVersion::Relative(bump_level) => { + write!(f, "{bump_level}") + } + TargetVersion::Absolute(version) => { + write!(f, "{version}") + } + } + } +} + +impl std::str::FromStr for TargetVersion { + type Err = String; + + fn from_str(s: &str) -> Result { + if let Ok(bump_level) = BumpLevel::from_str(s) { + Ok(TargetVersion::Relative(bump_level)) + } else { + Ok(TargetVersion::Absolute( + semver::Version::parse(s).map_err(|e| e.to_string())?, + )) + } + } +} + +/// Default to `TargetVersionParser` for `TargetVersion`, instead of `FromStr` +impl clap::builder::ValueParserFactory for TargetVersion { + type Parser = TargetVersionParser; + + fn value_parser() -> Self::Parser { + TargetVersionParser + } +} + +#[derive(Copy, Clone)] +pub(crate) struct TargetVersionParser; + +impl clap::builder::TypedValueParser for TargetVersionParser { + type Value = TargetVersion; + + fn parse_ref( + &self, + cmd: &clap::Command, + arg: Option<&clap::Arg>, + value: &std::ffi::OsStr, + ) -> Result { + let inner_parser = ::from_str; + inner_parser.parse_ref(cmd, arg, value) + } + + fn possible_values( + &self, + ) -> Option + '_>> { + let inner_parser = clap::builder::EnumValueParser::::new(); + #[allow(clippy::needless_collect)] // Erasing a lifetime + inner_parser.possible_values().map(|ps| { + let ps = ps.collect::>(); + let ps: Box + '_> = + Box::new(ps.into_iter()); + ps + }) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/fn_parser.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/fn_parser.md new file mode 100644 index 0000000000000000000000000000000000000000..51f6b4a2d0b57d77c1338c181b66889dad582ad5 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/fn_parser.md @@ -0,0 +1,29 @@ +Help: +```console +$ typed-derive fn-parser --help +Usage: typed-derive fn-parser [OPTIONS] + +Options: + -D Hand-written parser for tuples + -h, --help Print help + +``` + +Defines (key-value pairs) +```console +$ typed-derive fn-parser -D Foo=10 -D Alice=30 +FnParser(FnParser { defines: [("Foo", 10), ("Alice", 30)] }) + +$ typed-derive fn-parser -D Foo +? failed +error: invalid value 'Foo' for '-D ': invalid KEY=value: no `=` found in `Foo` + +For more information, try '--help'. + +$ typed-derive fn-parser -D Foo=Bar +? failed +error: invalid value 'Foo=Bar' for '-D ': invalid digit found in string + +For more information, try '--help'. + +``` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/fn_parser.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/fn_parser.rs new file mode 100644 index 0000000000000000000000000000000000000000..0ff6d14e736179930fca1571d6d7714a446154da --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/fn_parser.rs @@ -0,0 +1,24 @@ +use std::error::Error; + +use clap::Args; + +#[derive(Args, Debug)] +pub(crate) struct FnParser { + /// Hand-written parser for tuples + #[arg(short = 'D', value_name = "KEY=VALUE", value_parser = parse_key_val::)] + defines: Vec<(String, i32)>, +} + +/// Parse a single key-value pair +fn parse_key_val(s: &str) -> Result<(T, U), Box> +where + T: std::str::FromStr, + T::Err: Error + Send + Sync + 'static, + U: std::str::FromStr, + U::Err: Error + Send + Sync + 'static, +{ + let pos = s + .find('=') + .ok_or_else(|| format!("invalid KEY=value: no `=` found in `{s}`"))?; + Ok((s[..pos].parse()?, s[pos + 1..].parse()?)) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/foreign_crate.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/foreign_crate.rs new file mode 100644 index 0000000000000000000000000000000000000000..8d806be0b18fcaef7e7a8ee3a8d76b6ff298aaee --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/foreign_crate.rs @@ -0,0 +1,35 @@ +#[derive(Copy, Clone, PartialEq, Eq, Debug)] +pub(crate) enum LogLevel { + Trace, + Debug, + Info, + Warn, + Error, +} + +impl std::fmt::Display for LogLevel { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + let s = match self { + Self::Trace => "trace", + Self::Debug => "debug", + Self::Info => "info", + Self::Warn => "warn", + Self::Error => "error", + }; + s.fmt(f) + } +} +impl std::str::FromStr for LogLevel { + type Err = String; + + fn from_str(s: &str) -> Result { + match s { + "trace" => Ok(Self::Trace), + "debug" => Ok(Self::Debug), + "info" => Ok(Self::Info), + "warn" => Ok(Self::Warn), + "error" => Ok(Self::Error), + _ => Err(format!("Unknown log level: {s}")), + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/implicit.md b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/implicit.md new file mode 100644 index 0000000000000000000000000000000000000000..25fe613cbbcea9927dfc4bc6e8ca90d0edc84bc3 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/implicit.md @@ -0,0 +1,97 @@ +Help: +```console +$ typed-derive implicit --help +Usage: typed-derive implicit [OPTIONS] + +Options: + -O + Implicitly using `std::str::FromStr` + + -I + Allow invalid UTF-8 paths + + --bind + Handle IP addresses + + --sleep + Allow human-readable durations + + --bump-level + Custom enums + + Possible values: + - major: Increase the major version (x.0.0) + - minor: Increase the minor version (x.y.0) + - patch: Increase the patch version (x.y.z) + + -h, --help + Print help (see a summary with '-h') + +``` + +Optimization-level (number) +```console +$ typed-derive implicit -O 1 +Implicit(ImplicitParsers { optimization: Some(1), include: None, bind: None, sleep: None, bump_level: None }) + +$ typed-derive implicit -O plaid +? failed +error: invalid value 'plaid' for '-O ': invalid digit found in string + +For more information, try '--help'. + +``` + +Include (path) +```console +$ typed-derive implicit -I../hello +Implicit(ImplicitParsers { optimization: None, include: Some("../hello"), bind: None, sleep: None, bump_level: None }) + +``` + +IP Address +```console +$ typed-derive implicit --bind 192.0.0.1 +Implicit(ImplicitParsers { optimization: None, include: None, bind: Some(192.0.0.1), sleep: None, bump_level: None }) + +$ typed-derive implicit --bind localhost +? failed +error: invalid value 'localhost' for '--bind ': invalid IP address syntax + +For more information, try '--help'. + +``` + +Time +```console +$ typed-derive implicit --sleep 10s +Implicit(ImplicitParsers { optimization: None, include: None, bind: None, sleep: Some(10s), bump_level: None }) + +$ typed-derive implicit --sleep forever +? failed +error: invalid value 'forever' for '--sleep ': failed to parse "forever" in the "friendly" format: parsing a friendly duration requires it to start with a unit value (a decimal integer) after an optional sign, but no integer was found + +For more information, try '--help'. + +``` + +Version field +```console +$ typed-derive implicit --bump-level minor +Implicit(ImplicitParsers { optimization: None, include: None, bind: None, sleep: None, bump_level: Some(Minor) }) + +$ typed-derive implicit --bump-level 10.0.0 +? failed +error: invalid value '10.0.0' for '--bump-level ' + [possible values: major, minor, patch] + +For more information, try '--help'. + +$ typed-derive implicit --bump-level blue +? failed +error: invalid value 'blue' for '--bump-level ' + [possible values: major, minor, patch] + +For more information, try '--help'. + +``` diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/implicit.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/implicit.rs new file mode 100644 index 0000000000000000000000000000000000000000..6fd130af7277900eb0a009a0a95b8474f680017b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/implicit.rs @@ -0,0 +1,62 @@ +use clap::Args; +use clap::ValueEnum; + +#[derive(Args, Debug)] +pub(crate) struct ImplicitParsers { + /// Implicitly using `std::str::FromStr` + #[arg(short = 'O')] + optimization: Option, + + /// Allow invalid UTF-8 paths + #[arg(short = 'I', value_name = "DIR", value_hint = clap::ValueHint::DirPath)] + include: Option, + + /// Handle IP addresses + #[arg(long)] + bind: Option, + + /// Allow human-readable durations + #[arg(long)] + sleep: Option, + + /// Custom enums + #[arg(long)] + bump_level: Option, +} + +#[derive(Debug, Clone, Copy, ValueEnum)] +#[value(rename_all = "kebab-case")] +pub(crate) enum BumpLevel { + /// Increase the major version (x.0.0) + Major, + /// Increase the minor version (x.y.0) + Minor, + /// Increase the patch version (x.y.z) + Patch, +} + +impl std::fmt::Display for BumpLevel { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + use clap::ValueEnum; + + self.to_possible_value() + .expect("no values are skipped") + .get_name() + .fmt(f) + } +} + +impl std::str::FromStr for BumpLevel { + type Err = String; + + fn from_str(s: &str) -> Result { + use clap::ValueEnum; + + for variant in Self::value_variants() { + if variant.to_possible_value().unwrap().matches(s, false) { + return Ok(*variant); + } + } + Err(format!("Invalid variant: {s}")) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/main.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/main.rs new file mode 100644 index 0000000000000000000000000000000000000000..c8ab00df37d249aa3741e0f06ef8ff9bc01c78aa --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap-4.5.60/examples/typed-derive/main.rs @@ -0,0 +1,22 @@ +use clap::Parser; + +mod builtin; +mod custom; +mod fn_parser; +mod foreign_crate; +mod implicit; + +#[derive(Parser, Debug)] // requires `derive` feature +#[command(term_width = 0)] // Just to make testing across clap features easier +#[command(bin_name = "typed-derive")] // Make testing easier by avoiding `.exe` in Usage on Windows +enum Cli { + Implicit(implicit::ImplicitParsers), + Builtin(builtin::BuiltInParsers), + FnParser(fn_parser::FnParser), + Custom(custom::CustomParser), +} + +fn main() { + let cli = Cli::parse(); + println!("{cli:?}"); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/auxvec.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/auxvec.rs new file mode 100644 index 0000000000000000000000000000000000000000..0943414c713f4f900fc51b22b97fa7e4bb672ab9 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/auxvec.rs @@ -0,0 +1,32 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_MINSIGSTKSZ: u32 = 51; +pub const AT_VECTOR_SIZE_ARCH: u32 = 2; +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_PLATFORM: u32 = 15; +pub const AT_HWCAP: u32 = 16; +pub const AT_CLKTCK: u32 = 17; +pub const AT_SECURE: u32 = 23; +pub const AT_BASE_PLATFORM: u32 = 24; +pub const AT_RANDOM: u32 = 25; +pub const AT_HWCAP2: u32 = 26; +pub const AT_RSEQ_FEATURE_SIZE: u32 = 27; +pub const AT_RSEQ_ALIGN: u32 = 28; +pub const AT_HWCAP3: u32 = 29; +pub const AT_HWCAP4: u32 = 30; +pub const AT_EXECFN: u32 = 31; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/bootparam.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/bootparam.rs new file mode 100644 index 0000000000000000000000000000000000000000..bff15e373cd12fce9e91f11af9ee8efb9065775b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/bootparam.rs @@ -0,0 +1,3 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + + diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/btrfs.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/btrfs.rs new file mode 100644 index 0000000000000000000000000000000000000000..ea84acbd9e4e418b1a6ba4ee791e04f7eeb51461 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/btrfs.rs @@ -0,0 +1,1896 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_rwf_t = crate::ctypes::c_int; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v1 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub master_key_descriptor: [__u8; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_key { +pub mode: __u32, +pub raw: [__u8; 64usize], +pub size: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v2 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub log2_data_unit_size: __u8, +pub __reserved: [__u8; 3usize], +pub master_key_identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_policy_ex_arg { +pub policy_size: __u64, +pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_key_specifier { +pub type_: __u32, +pub __reserved: __u32, +pub u: fscrypt_key_specifier__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct fscrypt_provisioning_key_payload { +pub type_: __u32, +pub flags: __u32, +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +pub struct fscrypt_add_key_arg { +pub key_spec: fscrypt_key_specifier, +pub raw_size: __u32, +pub key_id: __u32, +pub flags: __u32, +pub __reserved: [__u32; 7usize], +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_remove_key_arg { +pub key_spec: fscrypt_key_specifier, +pub removal_status_flags: __u32, +pub __reserved: [__u32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_key_status_arg { +pub key_spec: fscrypt_key_specifier, +pub __reserved: [__u32; 6usize], +pub status: __u32, +pub status_flags: __u32, +pub user_count: __u32, +pub __out_reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mount_attr { +pub attr_set: __u64, +pub attr_clr: __u64, +pub propagation: __u64, +pub userns_fd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct statmount { +pub size: __u32, +pub mnt_opts: __u32, +pub mask: __u64, +pub sb_dev_major: __u32, +pub sb_dev_minor: __u32, +pub sb_magic: __u64, +pub sb_flags: __u32, +pub fs_type: __u32, +pub mnt_id: __u64, +pub mnt_parent_id: __u64, +pub mnt_id_old: __u32, +pub mnt_parent_id_old: __u32, +pub mnt_attr: __u64, +pub mnt_propagation: __u64, +pub mnt_peer_group: __u64, +pub mnt_master: __u64, +pub propagate_from: __u64, +pub mnt_root: __u32, +pub mnt_point: __u32, +pub mnt_ns_id: __u64, +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub supported_mask: __u64, +pub mnt_uidmap_num: __u32, +pub mnt_uidmap: __u32, +pub mnt_gidmap_num: __u32, +pub mnt_gidmap: __u32, +pub __spare2: [__u64; 43usize], +pub str_: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mnt_id_req { +pub size: __u32, +pub spare: __u32, +pub mnt_id: __u64, +pub param: __u64, +pub mnt_ns_id: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_clone_range { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fstrim_range { +pub start: __u64, +pub len: __u64, +pub minlen: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsuuid2 { +pub len: __u8, +pub uuid: [__u8; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fs_sysfs_path { +pub len: __u8, +pub name: [__u8; 128usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_dedupe_range_info { +pub dest_fd: __s64, +pub dest_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct file_dedupe_range { +pub src_offset: __u64, +pub src_length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct files_stat_struct { +pub nr_files: crate::ctypes::c_ulong, +pub nr_free_files: crate::ctypes::c_ulong, +pub max_files: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct inodes_stat_t { +pub nr_inodes: crate::ctypes::c_long, +pub nr_unused: crate::ctypes::c_long, +pub dummy: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsxattr { +pub fsx_xflags: __u32, +pub fsx_extsize: __u32, +pub fsx_nextents: __u32, +pub fsx_projid: __u32, +pub fsx_cowextsize: __u32, +pub fsx_pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct page_region { +pub start: __u64, +pub end: __u64, +pub categories: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pm_scan_arg { +pub size: __u64, +pub flags: __u64, +pub start: __u64, +pub end: __u64, +pub walk_end: __u64, +pub vec: __u64, +pub vec_len: __u64, +pub max_pages: __u64, +pub category_inverted: __u64, +pub category_mask: __u64, +pub category_anyof_mask: __u64, +pub return_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct procmap_query { +pub size: __u64, +pub query_flags: __u64, +pub query_addr: __u64, +pub vma_start: __u64, +pub vma_end: __u64, +pub vma_flags: __u64, +pub vma_page_size: __u64, +pub vma_offset: __u64, +pub inode: __u64, +pub dev_major: __u32, +pub dev_minor: __u32, +pub vma_name_size: __u32, +pub build_id_size: __u32, +pub vma_name_addr: __u64, +pub build_id_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_vol_args { +pub fd: __s64, +pub name: [crate::ctypes::c_char; 4088usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_limit { +pub flags: __u64, +pub max_rfer: __u64, +pub max_excl: __u64, +pub rsv_rfer: __u64, +pub rsv_excl: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_qgroup_inherit { +pub flags: __u64, +pub num_qgroups: __u64, +pub num_ref_copies: __u64, +pub num_excl_copies: __u64, +pub lim: btrfs_qgroup_limit, +pub qgroups: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_qgroup_limit_args { +pub qgroupid: __u64, +pub lim: btrfs_qgroup_limit, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_vol_args_v2 { +pub fd: __s64, +pub transid: __u64, +pub flags: __u64, +pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1, +pub __bindgen_anon_2: btrfs_ioctl_vol_args_v2__bindgen_ty_2, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1 { +pub size: __u64, +pub qgroup_inherit: *mut btrfs_qgroup_inherit, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_scrub_progress { +pub data_extents_scrubbed: __u64, +pub tree_extents_scrubbed: __u64, +pub data_bytes_scrubbed: __u64, +pub tree_bytes_scrubbed: __u64, +pub read_errors: __u64, +pub csum_errors: __u64, +pub verify_errors: __u64, +pub no_csum: __u64, +pub csum_discards: __u64, +pub super_errors: __u64, +pub malloc_errors: __u64, +pub uncorrectable_errors: __u64, +pub corrected_errors: __u64, +pub last_physical: __u64, +pub unverified_errors: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_scrub_args { +pub devid: __u64, +pub start: __u64, +pub end: __u64, +pub flags: __u64, +pub progress: btrfs_scrub_progress, +pub unused: [__u64; 109usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_dev_replace_start_params { +pub srcdevid: __u64, +pub cont_reading_from_srcdev_mode: __u64, +pub srcdev_name: [__u8; 1025usize], +pub tgtdev_name: [__u8; 1025usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_dev_replace_status_params { +pub replace_state: __u64, +pub progress_1000: __u64, +pub time_started: __u64, +pub time_stopped: __u64, +pub num_write_errors: __u64, +pub num_uncorrectable_read_errors: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_dev_replace_args { +pub cmd: __u64, +pub result: __u64, +pub __bindgen_anon_1: btrfs_ioctl_dev_replace_args__bindgen_ty_1, +pub spare: [__u64; 64usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_dev_info_args { +pub devid: __u64, +pub uuid: [__u8; 16usize], +pub bytes_used: __u64, +pub total_bytes: __u64, +pub fsid: [__u8; 16usize], +pub unused: [__u64; 377usize], +pub path: [__u8; 1024usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_fs_info_args { +pub max_id: __u64, +pub num_devices: __u64, +pub fsid: [__u8; 16usize], +pub nodesize: __u32, +pub sectorsize: __u32, +pub clone_alignment: __u32, +pub csum_type: __u16, +pub csum_size: __u16, +pub flags: __u64, +pub generation: __u64, +pub metadata_uuid: [__u8; 16usize], +pub reserved: [__u8; 944usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_feature_flags { +pub compat_flags: __u64, +pub compat_ro_flags: __u64, +pub incompat_flags: __u64, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct btrfs_balance_args { +pub profiles: __u64, +pub __bindgen_anon_1: btrfs_balance_args__bindgen_ty_1, +pub devid: __u64, +pub pstart: __u64, +pub pend: __u64, +pub vstart: __u64, +pub vend: __u64, +pub target: __u64, +pub flags: __u64, +pub __bindgen_anon_2: btrfs_balance_args__bindgen_ty_2, +pub stripes_min: __u32, +pub stripes_max: __u32, +pub unused: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_balance_args__bindgen_ty_1__bindgen_ty_1 { +pub usage_min: __u32, +pub usage_max: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_balance_args__bindgen_ty_2__bindgen_ty_1 { +pub limit_min: __u32, +pub limit_max: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_balance_progress { +pub expected: __u64, +pub considered: __u64, +pub completed: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_balance_args { +pub flags: __u64, +pub state: __u64, +pub data: btrfs_balance_args, +pub meta: btrfs_balance_args, +pub sys: btrfs_balance_args, +pub stat: btrfs_balance_progress, +pub unused: [__u64; 72usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_ino_lookup_args { +pub treeid: __u64, +pub objectid: __u64, +pub name: [crate::ctypes::c_char; 4080usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_ino_lookup_user_args { +pub dirid: __u64, +pub treeid: __u64, +pub name: [crate::ctypes::c_char; 256usize], +pub path: [crate::ctypes::c_char; 3824usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_search_key { +pub tree_id: __u64, +pub min_objectid: __u64, +pub max_objectid: __u64, +pub min_offset: __u64, +pub max_offset: __u64, +pub min_transid: __u64, +pub max_transid: __u64, +pub min_type: __u32, +pub max_type: __u32, +pub nr_items: __u32, +pub unused: __u32, +pub unused1: __u64, +pub unused2: __u64, +pub unused3: __u64, +pub unused4: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_search_header { +pub transid: __u64, +pub objectid: __u64, +pub offset: __u64, +pub type_: __u32, +pub len: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_search_args { +pub key: btrfs_ioctl_search_key, +pub buf: [crate::ctypes::c_char; 3992usize], +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_search_args_v2 { +pub key: btrfs_ioctl_search_key, +pub buf_size: __u64, +pub buf: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_clone_range_args { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_defrag_range_args { +pub start: __u64, +pub len: __u64, +pub flags: __u64, +pub extent_thresh: __u32, +pub __bindgen_anon_1: btrfs_ioctl_defrag_range_args__bindgen_ty_1, +pub unused: [__u32; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_defrag_range_args__bindgen_ty_1__bindgen_ty_1 { +pub type_: __u8, +pub level: __s8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_same_extent_info { +pub fd: __s64, +pub logical_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_same_args { +pub logical_offset: __u64, +pub length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_space_info { +pub flags: __u64, +pub total_bytes: __u64, +pub used_bytes: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_space_args { +pub space_slots: __u64, +pub total_spaces: __u64, +pub spaces: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_data_container { +pub bytes_left: __u32, +pub bytes_missing: __u32, +pub elem_cnt: __u32, +pub elem_missed: __u32, +pub val: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_ino_path_args { +pub inum: __u64, +pub size: __u64, +pub reserved: [__u64; 4usize], +pub fspath: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_logical_ino_args { +pub logical: __u64, +pub size: __u64, +pub reserved: [__u64; 3usize], +pub flags: __u64, +pub inodes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_dev_stats { +pub devid: __u64, +pub nr_items: __u64, +pub flags: __u64, +pub values: [__u64; 5usize], +pub unused: [__u64; 121usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_quota_ctl_args { +pub cmd: __u64, +pub status: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_quota_rescan_args { +pub flags: __u64, +pub progress: __u64, +pub reserved: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_qgroup_assign_args { +pub assign: __u64, +pub src: __u64, +pub dst: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_qgroup_create_args { +pub create: __u64, +pub qgroupid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_timespec { +pub sec: __u64, +pub nsec: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_received_subvol_args { +pub uuid: [crate::ctypes::c_char; 16usize], +pub stransid: __u64, +pub rtransid: __u64, +pub stime: btrfs_ioctl_timespec, +pub rtime: btrfs_ioctl_timespec, +pub flags: __u64, +pub reserved: [__u64; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_send_args { +pub send_fd: __s64, +pub clone_sources_count: __u64, +pub clone_sources: *mut __u64, +pub parent_root: __u64, +pub flags: __u64, +pub version: __u32, +pub reserved: [__u8; 28usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_subvol_info_args { +pub treeid: __u64, +pub name: [crate::ctypes::c_char; 256usize], +pub parent_id: __u64, +pub dirid: __u64, +pub generation: __u64, +pub flags: __u64, +pub uuid: [__u8; 16usize], +pub parent_uuid: [__u8; 16usize], +pub received_uuid: [__u8; 16usize], +pub ctransid: __u64, +pub otransid: __u64, +pub stransid: __u64, +pub rtransid: __u64, +pub ctime: btrfs_ioctl_timespec, +pub otime: btrfs_ioctl_timespec, +pub stime: btrfs_ioctl_timespec, +pub rtime: btrfs_ioctl_timespec, +pub reserved: [__u64; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_subvol_rootref_args { +pub min_treeid: __u64, +pub rootref: [btrfs_ioctl_get_subvol_rootref_args__bindgen_ty_1; 255usize], +pub num_items: __u8, +pub align: [__u8; 7usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_subvol_rootref_args__bindgen_ty_1 { +pub treeid: __u64, +pub dirid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_encoded_io_args { +pub iov: *const iovec, +pub iovcnt: crate::ctypes::c_ulong, +pub offset: __s64, +pub flags: __u64, +pub len: __u64, +pub unencoded_len: __u64, +pub unencoded_offset: __u64, +pub compression: __u32, +pub encryption: __u32, +pub reserved: [__u8; 64usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_subvol_wait { +pub subvolid: __u64, +pub mode: __u32, +pub count: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_disk_key { +pub objectid: __le64, +pub type_: __u8, +pub offset: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_key { +pub objectid: __u64, +pub type_: __u8, +pub offset: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_header { +pub csum: [__u8; 32usize], +pub fsid: [__u8; 16usize], +pub bytenr: __le64, +pub flags: __le64, +pub chunk_tree_uuid: [__u8; 16usize], +pub generation: __le64, +pub owner: __le64, +pub nritems: __le32, +pub level: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_root_backup { +pub tree_root: __le64, +pub tree_root_gen: __le64, +pub chunk_root: __le64, +pub chunk_root_gen: __le64, +pub extent_root: __le64, +pub extent_root_gen: __le64, +pub fs_root: __le64, +pub fs_root_gen: __le64, +pub dev_root: __le64, +pub dev_root_gen: __le64, +pub csum_root: __le64, +pub csum_root_gen: __le64, +pub total_bytes: __le64, +pub bytes_used: __le64, +pub num_devices: __le64, +pub unused_64: [__le64; 4usize], +pub tree_root_level: __u8, +pub chunk_root_level: __u8, +pub extent_root_level: __u8, +pub fs_root_level: __u8, +pub dev_root_level: __u8, +pub csum_root_level: __u8, +pub unused_8: [__u8; 10usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_item { +pub key: btrfs_disk_key, +pub offset: __le32, +pub size: __le32, +} +#[repr(C, packed)] +pub struct btrfs_leaf { +pub header: btrfs_header, +pub items: __IncompleteArrayField, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_key_ptr { +pub key: btrfs_disk_key, +pub blockptr: __le64, +pub generation: __le64, +} +#[repr(C, packed)] +pub struct btrfs_node { +pub header: btrfs_header, +pub ptrs: __IncompleteArrayField, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_item { +pub devid: __le64, +pub total_bytes: __le64, +pub bytes_used: __le64, +pub io_align: __le32, +pub io_width: __le32, +pub sector_size: __le32, +pub type_: __le64, +pub generation: __le64, +pub start_offset: __le64, +pub dev_group: __le32, +pub seek_speed: __u8, +pub bandwidth: __u8, +pub uuid: [__u8; 16usize], +pub fsid: [__u8; 16usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_stripe { +pub devid: __le64, +pub offset: __le64, +pub dev_uuid: [__u8; 16usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_chunk { +pub length: __le64, +pub owner: __le64, +pub stripe_len: __le64, +pub type_: __le64, +pub io_align: __le32, +pub io_width: __le32, +pub sector_size: __le32, +pub num_stripes: __le16, +pub sub_stripes: __le16, +pub stripe: btrfs_stripe, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_super_block { +pub csum: [__u8; 32usize], +pub fsid: [__u8; 16usize], +pub bytenr: __le64, +pub flags: __le64, +pub magic: __le64, +pub generation: __le64, +pub root: __le64, +pub chunk_root: __le64, +pub log_root: __le64, +pub __unused_log_root_transid: __le64, +pub total_bytes: __le64, +pub bytes_used: __le64, +pub root_dir_objectid: __le64, +pub num_devices: __le64, +pub sectorsize: __le32, +pub nodesize: __le32, +pub __unused_leafsize: __le32, +pub stripesize: __le32, +pub sys_chunk_array_size: __le32, +pub chunk_root_generation: __le64, +pub compat_flags: __le64, +pub compat_ro_flags: __le64, +pub incompat_flags: __le64, +pub csum_type: __le16, +pub root_level: __u8, +pub chunk_root_level: __u8, +pub log_root_level: __u8, +pub dev_item: btrfs_dev_item, +pub label: [crate::ctypes::c_char; 256usize], +pub cache_generation: __le64, +pub uuid_tree_generation: __le64, +pub metadata_uuid: [__u8; 16usize], +pub nr_global_roots: __u64, +pub reserved: [__le64; 27usize], +pub sys_chunk_array: [__u8; 2048usize], +pub super_roots: [btrfs_root_backup; 4usize], +pub padding: [__u8; 565usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_free_space_entry { +pub offset: __le64, +pub bytes: __le64, +pub type_: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_free_space_header { +pub location: btrfs_disk_key, +pub generation: __le64, +pub num_entries: __le64, +pub num_bitmaps: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_raid_stride { +pub devid: __le64, +pub physical: __le64, +} +#[repr(C, packed)] +pub struct btrfs_stripe_extent { +pub __bindgen_anon_1: btrfs_stripe_extent__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_stripe_extent__bindgen_ty_1 { +pub __empty_strides: btrfs_stripe_extent__bindgen_ty_1__bindgen_ty_1, +pub strides: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_stripe_extent__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_item { +pub refs: __le64, +pub generation: __le64, +pub flags: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_item_v0 { +pub refs: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_tree_block_info { +pub key: btrfs_disk_key, +pub level: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_data_ref { +pub root: __le64, +pub objectid: __le64, +pub offset: __le64, +pub count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_shared_data_ref { +pub count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_owner_ref { +pub root_id: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_inline_ref { +pub type_: __u8, +pub offset: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_extent { +pub chunk_tree: __le64, +pub chunk_objectid: __le64, +pub chunk_offset: __le64, +pub length: __le64, +pub chunk_tree_uuid: [__u8; 16usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_inode_ref { +pub index: __le64, +pub name_len: __le16, +} +#[repr(C, packed)] +pub struct btrfs_inode_extref { +pub parent_objectid: __le64, +pub index: __le64, +pub name_len: __le16, +pub name: __IncompleteArrayField<__u8>, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_timespec { +pub sec: __le64, +pub nsec: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_inode_item { +pub generation: __le64, +pub transid: __le64, +pub size: __le64, +pub nbytes: __le64, +pub block_group: __le64, +pub nlink: __le32, +pub uid: __le32, +pub gid: __le32, +pub mode: __le32, +pub rdev: __le64, +pub flags: __le64, +pub sequence: __le64, +pub reserved: [__le64; 4usize], +pub atime: btrfs_timespec, +pub ctime: btrfs_timespec, +pub mtime: btrfs_timespec, +pub otime: btrfs_timespec, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dir_log_item { +pub end: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dir_item { +pub location: btrfs_disk_key, +pub transid: __le64, +pub data_len: __le16, +pub name_len: __le16, +pub type_: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_root_item { +pub inode: btrfs_inode_item, +pub generation: __le64, +pub root_dirid: __le64, +pub bytenr: __le64, +pub byte_limit: __le64, +pub bytes_used: __le64, +pub last_snapshot: __le64, +pub flags: __le64, +pub refs: __le32, +pub drop_progress: btrfs_disk_key, +pub drop_level: __u8, +pub level: __u8, +pub generation_v2: __le64, +pub uuid: [__u8; 16usize], +pub parent_uuid: [__u8; 16usize], +pub received_uuid: [__u8; 16usize], +pub ctransid: __le64, +pub otransid: __le64, +pub stransid: __le64, +pub rtransid: __le64, +pub ctime: btrfs_timespec, +pub otime: btrfs_timespec, +pub stime: btrfs_timespec, +pub rtime: btrfs_timespec, +pub reserved: [__le64; 8usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_root_ref { +pub dirid: __le64, +pub sequence: __le64, +pub name_len: __le16, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct btrfs_disk_balance_args { +pub profiles: __le64, +pub __bindgen_anon_1: btrfs_disk_balance_args__bindgen_ty_1, +pub devid: __le64, +pub pstart: __le64, +pub pend: __le64, +pub vstart: __le64, +pub vend: __le64, +pub target: __le64, +pub flags: __le64, +pub __bindgen_anon_2: btrfs_disk_balance_args__bindgen_ty_2, +pub stripes_min: __le32, +pub stripes_max: __le32, +pub unused: [__le64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_disk_balance_args__bindgen_ty_1__bindgen_ty_1 { +pub usage_min: __le32, +pub usage_max: __le32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_disk_balance_args__bindgen_ty_2__bindgen_ty_1 { +pub limit_min: __le32, +pub limit_max: __le32, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct btrfs_balance_item { +pub flags: __le64, +pub data: btrfs_disk_balance_args, +pub meta: btrfs_disk_balance_args, +pub sys: btrfs_disk_balance_args, +pub unused: [__le64; 4usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_file_extent_item { +pub generation: __le64, +pub ram_bytes: __le64, +pub compression: __u8, +pub encryption: __u8, +pub other_encoding: __le16, +pub type_: __u8, +pub disk_bytenr: __le64, +pub disk_num_bytes: __le64, +pub offset: __le64, +pub num_bytes: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_csum_item { +pub csum: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_stats_item { +pub values: [__le64; 5usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_replace_item { +pub src_devid: __le64, +pub cursor_left: __le64, +pub cursor_right: __le64, +pub cont_reading_from_srcdev_mode: __le64, +pub replace_state: __le64, +pub time_started: __le64, +pub time_stopped: __le64, +pub num_write_errors: __le64, +pub num_uncorrectable_read_errors: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_free_space_info { +pub extent_count: __le32, +pub flags: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_status_item { +pub version: __le64, +pub generation: __le64, +pub flags: __le64, +pub rescan: __le64, +pub enable_gen: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_info_item { +pub generation: __le64, +pub rfer: __le64, +pub rfer_cmpr: __le64, +pub excl: __le64, +pub excl_cmpr: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_limit_item { +pub flags: __le64, +pub max_rfer: __le64, +pub max_excl: __le64, +pub rsv_rfer: __le64, +pub rsv_excl: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_verity_descriptor_item { +pub size: __le64, +pub reserved: [__le64; 2usize], +pub encryption: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iovec { +pub _address: u8, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_SIZEBITS: u32 = 14; +pub const _IOC_DIRBITS: u32 = 2; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 16383; +pub const _IOC_DIRMASK: u32 = 3; +pub const _IOC_NRSHIFT: u32 = 0; +pub const _IOC_TYPESHIFT: u32 = 8; +pub const _IOC_SIZESHIFT: u32 = 16; +pub const _IOC_DIRSHIFT: u32 = 30; +pub const _IOC_NONE: u32 = 0; +pub const _IOC_WRITE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const IOC_IN: u32 = 1073741824; +pub const IOC_OUT: u32 = 2147483648; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 1073676288; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const NR_OPEN: u32 = 1024; +pub const NGROUPS_MAX: u32 = 65536; +pub const ARG_MAX: u32 = 131072; +pub const LINK_MAX: u32 = 127; +pub const MAX_CANON: u32 = 255; +pub const MAX_INPUT: u32 = 255; +pub const NAME_MAX: u32 = 255; +pub const PATH_MAX: u32 = 4096; +pub const PIPE_BUF: u32 = 4096; +pub const XATTR_NAME_MAX: u32 = 255; +pub const XATTR_SIZE_MAX: u32 = 65536; +pub const XATTR_LIST_MAX: u32 = 65536; +pub const RTSIG_MAX: u32 = 32; +pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; +pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; +pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; +pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; +pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; +pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; +pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; +pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; +pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; +pub const FSCRYPT_POLICY_V1: u32 = 0; +pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; +pub const FSCRYPT_POLICY_V2: u32 = 2; +pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; +pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; +pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; +pub const FSCRYPT_ADD_KEY_FLAG_HW_WRAPPED: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; +pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; +pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; +pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; +pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; +pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FS_POLICY_FLAGS_VALID: u32 = 7; +pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; +pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; +pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; +pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; +pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; +pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; +pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; +pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; +pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FS_MAX_KEY_SIZE: u32 = 64; +pub const MS_RDONLY: u32 = 1; +pub const MS_NOSUID: u32 = 2; +pub const MS_NODEV: u32 = 4; +pub const MS_NOEXEC: u32 = 8; +pub const MS_SYNCHRONOUS: u32 = 16; +pub const MS_REMOUNT: u32 = 32; +pub const MS_MANDLOCK: u32 = 64; +pub const MS_DIRSYNC: u32 = 128; +pub const MS_NOSYMFOLLOW: u32 = 256; +pub const MS_NOATIME: u32 = 1024; +pub const MS_NODIRATIME: u32 = 2048; +pub const MS_BIND: u32 = 4096; +pub const MS_MOVE: u32 = 8192; +pub const MS_REC: u32 = 16384; +pub const MS_VERBOSE: u32 = 32768; +pub const MS_SILENT: u32 = 32768; +pub const MS_POSIXACL: u32 = 65536; +pub const MS_UNBINDABLE: u32 = 131072; +pub const MS_PRIVATE: u32 = 262144; +pub const MS_SLAVE: u32 = 524288; +pub const MS_SHARED: u32 = 1048576; +pub const MS_RELATIME: u32 = 2097152; +pub const MS_KERNMOUNT: u32 = 4194304; +pub const MS_I_VERSION: u32 = 8388608; +pub const MS_STRICTATIME: u32 = 16777216; +pub const MS_LAZYTIME: u32 = 33554432; +pub const MS_SUBMOUNT: u32 = 67108864; +pub const MS_NOREMOTELOCK: u32 = 134217728; +pub const MS_NOSEC: u32 = 268435456; +pub const MS_BORN: u32 = 536870912; +pub const MS_ACTIVE: u32 = 1073741824; +pub const MS_NOUSER: u32 = 2147483648; +pub const MS_RMT_MASK: u32 = 41943121; +pub const MS_MGC_VAL: u32 = 3236757504; +pub const MS_MGC_MSK: u32 = 4294901760; +pub const OPEN_TREE_CLONE: u32 = 1; +pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; +pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; +pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; +pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; +pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; +pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; +pub const MOVE_MOUNT_SET_GROUP: u32 = 256; +pub const MOVE_MOUNT_BENEATH: u32 = 512; +pub const MOVE_MOUNT__MASK: u32 = 887; +pub const FSOPEN_CLOEXEC: u32 = 1; +pub const FSPICK_CLOEXEC: u32 = 1; +pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; +pub const FSPICK_NO_AUTOMOUNT: u32 = 4; +pub const FSPICK_EMPTY_PATH: u32 = 8; +pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const MOUNT_ATTR_RDONLY: u32 = 1; +pub const MOUNT_ATTR_NOSUID: u32 = 2; +pub const MOUNT_ATTR_NODEV: u32 = 4; +pub const MOUNT_ATTR_NOEXEC: u32 = 8; +pub const MOUNT_ATTR__ATIME: u32 = 112; +pub const MOUNT_ATTR_RELATIME: u32 = 0; +pub const MOUNT_ATTR_NOATIME: u32 = 16; +pub const MOUNT_ATTR_STRICTATIME: u32 = 32; +pub const MOUNT_ATTR_NODIRATIME: u32 = 128; +pub const MOUNT_ATTR_IDMAP: u32 = 1048576; +pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; +pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; +pub const MNT_ID_REQ_SIZE_VER0: u32 = 24; +pub const MNT_ID_REQ_SIZE_VER1: u32 = 32; +pub const STATMOUNT_SB_BASIC: u32 = 1; +pub const STATMOUNT_MNT_BASIC: u32 = 2; +pub const STATMOUNT_PROPAGATE_FROM: u32 = 4; +pub const STATMOUNT_MNT_ROOT: u32 = 8; +pub const STATMOUNT_MNT_POINT: u32 = 16; +pub const STATMOUNT_FS_TYPE: u32 = 32; +pub const STATMOUNT_MNT_NS_ID: u32 = 64; +pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; +pub const STATMOUNT_SUPPORTED_MASK: u32 = 4096; +pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; +pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; +pub const LSMT_ROOT: i32 = -1; +pub const LISTMOUNT_REVERSE: u32 = 1; +pub const INR_OPEN_CUR: u32 = 1024; +pub const INR_OPEN_MAX: u32 = 4096; +pub const BLOCK_SIZE_BITS: u32 = 10; +pub const BLOCK_SIZE: u32 = 1024; +pub const IO_INTEGRITY_CHK_GUARD: u32 = 1; +pub const IO_INTEGRITY_CHK_REFTAG: u32 = 2; +pub const IO_INTEGRITY_CHK_APPTAG: u32 = 4; +pub const IO_INTEGRITY_VALID_FLAGS: u32 = 7; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const SEEK_DATA: u32 = 3; +pub const SEEK_HOLE: u32 = 4; +pub const SEEK_MAX: u32 = 4; +pub const RENAME_NOREPLACE: u32 = 1; +pub const RENAME_EXCHANGE: u32 = 2; +pub const RENAME_WHITEOUT: u32 = 4; +pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; +pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; +pub const NR_FILE: u32 = 8192; +pub const FS_XFLAG_REALTIME: u32 = 1; +pub const FS_XFLAG_PREALLOC: u32 = 2; +pub const FS_XFLAG_IMMUTABLE: u32 = 8; +pub const FS_XFLAG_APPEND: u32 = 16; +pub const FS_XFLAG_SYNC: u32 = 32; +pub const FS_XFLAG_NOATIME: u32 = 64; +pub const FS_XFLAG_NODUMP: u32 = 128; +pub const FS_XFLAG_RTINHERIT: u32 = 256; +pub const FS_XFLAG_PROJINHERIT: u32 = 512; +pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; +pub const FS_XFLAG_EXTSIZE: u32 = 2048; +pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; +pub const FS_XFLAG_NODEFRAG: u32 = 8192; +pub const FS_XFLAG_FILESTREAM: u32 = 16384; +pub const FS_XFLAG_DAX: u32 = 32768; +pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_HASATTR: u32 = 2147483648; +pub const BMAP_IOCTL: u32 = 1; +pub const FSLABEL_MAX: u32 = 256; +pub const FS_SECRM_FL: u32 = 1; +pub const FS_UNRM_FL: u32 = 2; +pub const FS_COMPR_FL: u32 = 4; +pub const FS_SYNC_FL: u32 = 8; +pub const FS_IMMUTABLE_FL: u32 = 16; +pub const FS_APPEND_FL: u32 = 32; +pub const FS_NODUMP_FL: u32 = 64; +pub const FS_NOATIME_FL: u32 = 128; +pub const FS_DIRTY_FL: u32 = 256; +pub const FS_COMPRBLK_FL: u32 = 512; +pub const FS_NOCOMP_FL: u32 = 1024; +pub const FS_ENCRYPT_FL: u32 = 2048; +pub const FS_BTREE_FL: u32 = 4096; +pub const FS_INDEX_FL: u32 = 4096; +pub const FS_IMAGIC_FL: u32 = 8192; +pub const FS_JOURNAL_DATA_FL: u32 = 16384; +pub const FS_NOTAIL_FL: u32 = 32768; +pub const FS_DIRSYNC_FL: u32 = 65536; +pub const FS_TOPDIR_FL: u32 = 131072; +pub const FS_HUGE_FILE_FL: u32 = 262144; +pub const FS_EXTENT_FL: u32 = 524288; +pub const FS_VERITY_FL: u32 = 1048576; +pub const FS_EA_INODE_FL: u32 = 2097152; +pub const FS_EOFBLOCKS_FL: u32 = 4194304; +pub const FS_NOCOW_FL: u32 = 8388608; +pub const FS_DAX_FL: u32 = 33554432; +pub const FS_INLINE_DATA_FL: u32 = 268435456; +pub const FS_PROJINHERIT_FL: u32 = 536870912; +pub const FS_CASEFOLD_FL: u32 = 1073741824; +pub const FS_RESERVED_FL: u32 = 2147483648; +pub const FS_FL_USER_VISIBLE: u32 = 253951; +pub const FS_FL_USER_MODIFIABLE: u32 = 229631; +pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; +pub const SYNC_FILE_RANGE_WRITE: u32 = 2; +pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; +pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; +pub const PROCFS_IOCTL_MAGIC: u8 = 102u8; +pub const PAGE_IS_WPALLOWED: u32 = 1; +pub const PAGE_IS_WRITTEN: u32 = 2; +pub const PAGE_IS_FILE: u32 = 4; +pub const PAGE_IS_PRESENT: u32 = 8; +pub const PAGE_IS_SWAPPED: u32 = 16; +pub const PAGE_IS_PFNZERO: u32 = 32; +pub const PAGE_IS_HUGE: u32 = 64; +pub const PAGE_IS_SOFT_DIRTY: u32 = 128; +pub const PAGE_IS_GUARD: u32 = 256; +pub const PM_SCAN_WP_MATCHING: u32 = 1; +pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const BTRFS_IOCTL_MAGIC: u32 = 148; +pub const BTRFS_VOL_NAME_MAX: u32 = 255; +pub const BTRFS_LABEL_SIZE: u32 = 256; +pub const BTRFS_PATH_NAME_MAX: u32 = 4087; +pub const BTRFS_DEVICE_PATH_NAME_MAX: u32 = 1024; +pub const BTRFS_SUBVOL_NAME_MAX: u32 = 4039; +pub const BTRFS_SUBVOL_CREATE_ASYNC: u32 = 1; +pub const BTRFS_SUBVOL_RDONLY: u32 = 2; +pub const BTRFS_SUBVOL_QGROUP_INHERIT: u32 = 4; +pub const BTRFS_DEVICE_SPEC_BY_ID: u32 = 8; +pub const BTRFS_SUBVOL_SPEC_BY_ID: u32 = 16; +pub const BTRFS_VOL_ARG_V2_FLAGS_SUPPORTED: u32 = 30; +pub const BTRFS_FSID_SIZE: u32 = 16; +pub const BTRFS_UUID_SIZE: u32 = 16; +pub const BTRFS_UUID_UNPARSED_SIZE: u32 = 37; +pub const BTRFS_QGROUP_LIMIT_MAX_RFER: u32 = 1; +pub const BTRFS_QGROUP_LIMIT_MAX_EXCL: u32 = 2; +pub const BTRFS_QGROUP_LIMIT_RSV_RFER: u32 = 4; +pub const BTRFS_QGROUP_LIMIT_RSV_EXCL: u32 = 8; +pub const BTRFS_QGROUP_LIMIT_RFER_CMPR: u32 = 16; +pub const BTRFS_QGROUP_LIMIT_EXCL_CMPR: u32 = 32; +pub const BTRFS_QGROUP_INHERIT_SET_LIMITS: u32 = 1; +pub const BTRFS_QGROUP_INHERIT_FLAGS_SUPP: u32 = 1; +pub const BTRFS_DEVICE_REMOVE_ARGS_MASK: u32 = 8; +pub const BTRFS_SUBVOL_CREATE_ARGS_MASK: u32 = 6; +pub const BTRFS_SUBVOL_DELETE_ARGS_MASK: u32 = 16; +pub const BTRFS_SCRUB_READONLY: u32 = 1; +pub const BTRFS_SCRUB_SUPPORTED_FLAGS: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_CONT_READING_FROM_SRCDEV_MODE_ALWAYS: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_CONT_READING_FROM_SRCDEV_MODE_AVOID: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_NEVER_STARTED: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_STARTED: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_FINISHED: u32 = 2; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_CANCELED: u32 = 3; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_SUSPENDED: u32 = 4; +pub const BTRFS_IOCTL_DEV_REPLACE_CMD_START: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_CMD_STATUS: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_CMD_CANCEL: u32 = 2; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_NO_ERROR: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_NOT_STARTED: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_ALREADY_STARTED: u32 = 2; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_SCRUB_INPROGRESS: u32 = 3; +pub const BTRFS_FS_INFO_FLAG_CSUM_INFO: u32 = 1; +pub const BTRFS_FS_INFO_FLAG_GENERATION: u32 = 2; +pub const BTRFS_FS_INFO_FLAG_METADATA_UUID: u32 = 4; +pub const BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE: u32 = 1; +pub const BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE_VALID: u32 = 2; +pub const BTRFS_FEATURE_COMPAT_RO_VERITY: u32 = 4; +pub const BTRFS_FEATURE_COMPAT_RO_BLOCK_GROUP_TREE: u32 = 8; +pub const BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF: u32 = 1; +pub const BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL: u32 = 2; +pub const BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS: u32 = 4; +pub const BTRFS_FEATURE_INCOMPAT_COMPRESS_LZO: u32 = 8; +pub const BTRFS_FEATURE_INCOMPAT_COMPRESS_ZSTD: u32 = 16; +pub const BTRFS_FEATURE_INCOMPAT_BIG_METADATA: u32 = 32; +pub const BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF: u32 = 64; +pub const BTRFS_FEATURE_INCOMPAT_RAID56: u32 = 128; +pub const BTRFS_FEATURE_INCOMPAT_SKINNY_METADATA: u32 = 256; +pub const BTRFS_FEATURE_INCOMPAT_NO_HOLES: u32 = 512; +pub const BTRFS_FEATURE_INCOMPAT_METADATA_UUID: u32 = 1024; +pub const BTRFS_FEATURE_INCOMPAT_RAID1C34: u32 = 2048; +pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; +pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; +pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; +pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; +pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; +pub const BTRFS_BALANCE_DATA: u32 = 1; +pub const BTRFS_BALANCE_SYSTEM: u32 = 2; +pub const BTRFS_BALANCE_METADATA: u32 = 4; +pub const BTRFS_BALANCE_TYPE_MASK: u32 = 7; +pub const BTRFS_BALANCE_FORCE: u32 = 8; +pub const BTRFS_BALANCE_RESUME: u32 = 16; +pub const BTRFS_BALANCE_ARGS_PROFILES: u32 = 1; +pub const BTRFS_BALANCE_ARGS_USAGE: u32 = 2; +pub const BTRFS_BALANCE_ARGS_DEVID: u32 = 4; +pub const BTRFS_BALANCE_ARGS_DRANGE: u32 = 8; +pub const BTRFS_BALANCE_ARGS_VRANGE: u32 = 16; +pub const BTRFS_BALANCE_ARGS_LIMIT: u32 = 32; +pub const BTRFS_BALANCE_ARGS_LIMIT_RANGE: u32 = 64; +pub const BTRFS_BALANCE_ARGS_STRIPES_RANGE: u32 = 128; +pub const BTRFS_BALANCE_ARGS_USAGE_RANGE: u32 = 1024; +pub const BTRFS_BALANCE_ARGS_MASK: u32 = 1279; +pub const BTRFS_BALANCE_ARGS_CONVERT: u32 = 256; +pub const BTRFS_BALANCE_ARGS_SOFT: u32 = 512; +pub const BTRFS_BALANCE_STATE_RUNNING: u32 = 1; +pub const BTRFS_BALANCE_STATE_PAUSE_REQ: u32 = 2; +pub const BTRFS_BALANCE_STATE_CANCEL_REQ: u32 = 4; +pub const BTRFS_INO_LOOKUP_PATH_MAX: u32 = 4080; +pub const BTRFS_INO_LOOKUP_USER_PATH_MAX: u32 = 3824; +pub const BTRFS_DEFRAG_RANGE_COMPRESS: u32 = 1; +pub const BTRFS_DEFRAG_RANGE_START_IO: u32 = 2; +pub const BTRFS_DEFRAG_RANGE_COMPRESS_LEVEL: u32 = 4; +pub const BTRFS_DEFRAG_RANGE_FLAGS_SUPP: u32 = 7; +pub const BTRFS_SAME_DATA_DIFFERS: u32 = 1; +pub const BTRFS_LOGICAL_INO_ARGS_IGNORE_OFFSET: u32 = 1; +pub const BTRFS_DEV_STATS_RESET: u32 = 1; +pub const BTRFS_QUOTA_CTL_ENABLE: u32 = 1; +pub const BTRFS_QUOTA_CTL_DISABLE: u32 = 2; +pub const BTRFS_QUOTA_CTL_RESCAN__NOTUSED: u32 = 3; +pub const BTRFS_QUOTA_CTL_ENABLE_SIMPLE_QUOTA: u32 = 4; +pub const BTRFS_SEND_FLAG_NO_FILE_DATA: u32 = 1; +pub const BTRFS_SEND_FLAG_OMIT_STREAM_HEADER: u32 = 2; +pub const BTRFS_SEND_FLAG_OMIT_END_CMD: u32 = 4; +pub const BTRFS_SEND_FLAG_VERSION: u32 = 8; +pub const BTRFS_SEND_FLAG_COMPRESSED: u32 = 16; +pub const BTRFS_SEND_FLAG_MASK: u32 = 31; +pub const BTRFS_MAX_ROOTREF_BUFFER_NUM: u32 = 255; +pub const BTRFS_ENCODED_IO_COMPRESSION_NONE: u32 = 0; +pub const BTRFS_ENCODED_IO_COMPRESSION_ZLIB: u32 = 1; +pub const BTRFS_ENCODED_IO_COMPRESSION_ZSTD: u32 = 2; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_4K: u32 = 3; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_8K: u32 = 4; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_16K: u32 = 5; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_32K: u32 = 6; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7; +pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8; +pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0; +pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2; +pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3; +pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4; +pub const BTRFS_MAGIC: u64 = 5575266562640200287; +pub const BTRFS_MAX_LEVEL: u32 = 8; +pub const BTRFS_NAME_LEN: u32 = 255; +pub const BTRFS_LINK_MAX: u32 = 65535; +pub const BTRFS_ROOT_TREE_OBJECTID: u32 = 1; +pub const BTRFS_EXTENT_TREE_OBJECTID: u32 = 2; +pub const BTRFS_CHUNK_TREE_OBJECTID: u32 = 3; +pub const BTRFS_DEV_TREE_OBJECTID: u32 = 4; +pub const BTRFS_FS_TREE_OBJECTID: u32 = 5; +pub const BTRFS_ROOT_TREE_DIR_OBJECTID: u32 = 6; +pub const BTRFS_CSUM_TREE_OBJECTID: u32 = 7; +pub const BTRFS_QUOTA_TREE_OBJECTID: u32 = 8; +pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; +pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; +pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; +pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; +pub const BTRFS_BALANCE_OBJECTID: i32 = -4; +pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; +pub const BTRFS_TREE_LOG_OBJECTID: i32 = -6; +pub const BTRFS_TREE_LOG_FIXUP_OBJECTID: i32 = -7; +pub const BTRFS_TREE_RELOC_OBJECTID: i32 = -8; +pub const BTRFS_DATA_RELOC_TREE_OBJECTID: i32 = -9; +pub const BTRFS_EXTENT_CSUM_OBJECTID: i32 = -10; +pub const BTRFS_FREE_SPACE_OBJECTID: i32 = -11; +pub const BTRFS_FREE_INO_OBJECTID: i32 = -12; +pub const BTRFS_MULTIPLE_OBJECTIDS: i32 = -255; +pub const BTRFS_FIRST_FREE_OBJECTID: u32 = 256; +pub const BTRFS_LAST_FREE_OBJECTID: i32 = -256; +pub const BTRFS_FIRST_CHUNK_TREE_OBJECTID: u32 = 256; +pub const BTRFS_DEV_ITEMS_OBJECTID: u32 = 1; +pub const BTRFS_BTREE_INODE_OBJECTID: u32 = 1; +pub const BTRFS_EMPTY_SUBVOL_DIR_OBJECTID: u32 = 2; +pub const BTRFS_DEV_REPLACE_DEVID: u32 = 0; +pub const BTRFS_INODE_ITEM_KEY: u32 = 1; +pub const BTRFS_INODE_REF_KEY: u32 = 12; +pub const BTRFS_INODE_EXTREF_KEY: u32 = 13; +pub const BTRFS_XATTR_ITEM_KEY: u32 = 24; +pub const BTRFS_VERITY_DESC_ITEM_KEY: u32 = 36; +pub const BTRFS_VERITY_MERKLE_ITEM_KEY: u32 = 37; +pub const BTRFS_ORPHAN_ITEM_KEY: u32 = 48; +pub const BTRFS_DIR_LOG_ITEM_KEY: u32 = 60; +pub const BTRFS_DIR_LOG_INDEX_KEY: u32 = 72; +pub const BTRFS_DIR_ITEM_KEY: u32 = 84; +pub const BTRFS_DIR_INDEX_KEY: u32 = 96; +pub const BTRFS_EXTENT_DATA_KEY: u32 = 108; +pub const BTRFS_EXTENT_CSUM_KEY: u32 = 128; +pub const BTRFS_ROOT_ITEM_KEY: u32 = 132; +pub const BTRFS_ROOT_BACKREF_KEY: u32 = 144; +pub const BTRFS_ROOT_REF_KEY: u32 = 156; +pub const BTRFS_EXTENT_ITEM_KEY: u32 = 168; +pub const BTRFS_METADATA_ITEM_KEY: u32 = 169; +pub const BTRFS_EXTENT_OWNER_REF_KEY: u32 = 172; +pub const BTRFS_TREE_BLOCK_REF_KEY: u32 = 176; +pub const BTRFS_EXTENT_DATA_REF_KEY: u32 = 178; +pub const BTRFS_SHARED_BLOCK_REF_KEY: u32 = 182; +pub const BTRFS_SHARED_DATA_REF_KEY: u32 = 184; +pub const BTRFS_BLOCK_GROUP_ITEM_KEY: u32 = 192; +pub const BTRFS_FREE_SPACE_INFO_KEY: u32 = 198; +pub const BTRFS_FREE_SPACE_EXTENT_KEY: u32 = 199; +pub const BTRFS_FREE_SPACE_BITMAP_KEY: u32 = 200; +pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; +pub const BTRFS_DEV_ITEM_KEY: u32 = 216; +pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; +pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; +pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; +pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; +pub const BTRFS_QGROUP_RELATION_KEY: u32 = 246; +pub const BTRFS_BALANCE_ITEM_KEY: u32 = 248; +pub const BTRFS_TEMPORARY_ITEM_KEY: u32 = 248; +pub const BTRFS_DEV_STATS_KEY: u32 = 249; +pub const BTRFS_PERSISTENT_ITEM_KEY: u32 = 249; +pub const BTRFS_DEV_REPLACE_KEY: u32 = 250; +pub const BTRFS_UUID_KEY_SUBVOL: u32 = 251; +pub const BTRFS_UUID_KEY_RECEIVED_SUBVOL: u32 = 252; +pub const BTRFS_STRING_ITEM_KEY: u32 = 253; +pub const BTRFS_MAX_METADATA_BLOCKSIZE: u32 = 65536; +pub const BTRFS_CSUM_SIZE: u32 = 32; +pub const BTRFS_FT_UNKNOWN: u32 = 0; +pub const BTRFS_FT_REG_FILE: u32 = 1; +pub const BTRFS_FT_DIR: u32 = 2; +pub const BTRFS_FT_CHRDEV: u32 = 3; +pub const BTRFS_FT_BLKDEV: u32 = 4; +pub const BTRFS_FT_FIFO: u32 = 5; +pub const BTRFS_FT_SOCK: u32 = 6; +pub const BTRFS_FT_SYMLINK: u32 = 7; +pub const BTRFS_FT_XATTR: u32 = 8; +pub const BTRFS_FT_MAX: u32 = 9; +pub const BTRFS_FT_ENCRYPTED: u32 = 128; +pub const BTRFS_INODE_NODATASUM: u32 = 1; +pub const BTRFS_INODE_NODATACOW: u32 = 2; +pub const BTRFS_INODE_READONLY: u32 = 4; +pub const BTRFS_INODE_NOCOMPRESS: u32 = 8; +pub const BTRFS_INODE_PREALLOC: u32 = 16; +pub const BTRFS_INODE_SYNC: u32 = 32; +pub const BTRFS_INODE_IMMUTABLE: u32 = 64; +pub const BTRFS_INODE_APPEND: u32 = 128; +pub const BTRFS_INODE_NODUMP: u32 = 256; +pub const BTRFS_INODE_NOATIME: u32 = 512; +pub const BTRFS_INODE_DIRSYNC: u32 = 1024; +pub const BTRFS_INODE_COMPRESS: u32 = 2048; +pub const BTRFS_INODE_ROOT_ITEM_INIT: u32 = 2147483648; +pub const BTRFS_INODE_FLAG_MASK: u32 = 2147487743; +pub const BTRFS_INODE_RO_VERITY: u32 = 1; +pub const BTRFS_INODE_RO_FLAG_MASK: u32 = 1; +pub const BTRFS_SYSTEM_CHUNK_ARRAY_SIZE: u32 = 2048; +pub const BTRFS_NUM_BACKUP_ROOTS: u32 = 4; +pub const BTRFS_FREE_SPACE_EXTENT: u32 = 1; +pub const BTRFS_FREE_SPACE_BITMAP: u32 = 2; +pub const BTRFS_HEADER_FLAG_WRITTEN: u32 = 1; +pub const BTRFS_HEADER_FLAG_RELOC: u32 = 2; +pub const BTRFS_SUPER_FLAG_ERROR: u32 = 4; +pub const BTRFS_SUPER_FLAG_SEEDING: u64 = 4294967296; +pub const BTRFS_SUPER_FLAG_METADUMP: u64 = 8589934592; +pub const BTRFS_SUPER_FLAG_METADUMP_V2: u64 = 17179869184; +pub const BTRFS_SUPER_FLAG_CHANGING_FSID: u64 = 34359738368; +pub const BTRFS_SUPER_FLAG_CHANGING_FSID_V2: u64 = 68719476736; +pub const BTRFS_SUPER_FLAG_CHANGING_BG_TREE: u64 = 274877906944; +pub const BTRFS_SUPER_FLAG_CHANGING_DATA_CSUM: u64 = 549755813888; +pub const BTRFS_SUPER_FLAG_CHANGING_META_CSUM: u64 = 1099511627776; +pub const BTRFS_EXTENT_FLAG_DATA: u32 = 1; +pub const BTRFS_EXTENT_FLAG_TREE_BLOCK: u32 = 2; +pub const BTRFS_BLOCK_FLAG_FULL_BACKREF: u32 = 256; +pub const BTRFS_BACKREF_REV_MAX: u32 = 256; +pub const BTRFS_BACKREF_REV_SHIFT: u32 = 56; +pub const BTRFS_OLD_BACKREF_REV: u32 = 0; +pub const BTRFS_MIXED_BACKREF_REV: u32 = 1; +pub const BTRFS_EXTENT_FLAG_SUPER: u64 = 281474976710656; +pub const BTRFS_ROOT_SUBVOL_RDONLY: u32 = 1; +pub const BTRFS_ROOT_SUBVOL_DEAD: u64 = 281474976710656; +pub const BTRFS_DEV_REPLACE_ITEM_CONT_READING_FROM_SRCDEV_MODE_ALWAYS: u32 = 0; +pub const BTRFS_DEV_REPLACE_ITEM_CONT_READING_FROM_SRCDEV_MODE_AVOID: u32 = 1; +pub const BTRFS_BLOCK_GROUP_DATA: u32 = 1; +pub const BTRFS_BLOCK_GROUP_SYSTEM: u32 = 2; +pub const BTRFS_BLOCK_GROUP_METADATA: u32 = 4; +pub const BTRFS_BLOCK_GROUP_RAID0: u32 = 8; +pub const BTRFS_BLOCK_GROUP_RAID1: u32 = 16; +pub const BTRFS_BLOCK_GROUP_DUP: u32 = 32; +pub const BTRFS_BLOCK_GROUP_RAID10: u32 = 64; +pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; +pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; +pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; +pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; +pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; +pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; +pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; +pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; +pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; +pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; +pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; +pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; +pub const BTRFS_QGROUP_STATUS_FLAG_INCONSISTENT: u32 = 4; +pub const BTRFS_QGROUP_STATUS_FLAG_SIMPLE_MODE: u32 = 8; +pub const BTRFS_QGROUP_STATUS_FLAGS_MASK: u32 = 15; +pub const BTRFS_QGROUP_STATUS_VERSION: u32 = 1; +pub const BTRFS_FILE_EXTENT_INLINE: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_FILE_EXTENT_INLINE; +pub const BTRFS_FILE_EXTENT_REG: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_FILE_EXTENT_REG; +pub const BTRFS_FILE_EXTENT_PREALLOC: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_FILE_EXTENT_PREALLOC; +pub const BTRFS_NR_FILE_EXTENT_TYPES: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_NR_FILE_EXTENT_TYPES; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum fsconfig_command { +FSCONFIG_SET_FLAG = 0, +FSCONFIG_SET_STRING = 1, +FSCONFIG_SET_BINARY = 2, +FSCONFIG_SET_PATH = 3, +FSCONFIG_SET_PATH_EMPTY = 4, +FSCONFIG_SET_FD = 5, +FSCONFIG_CMD_CREATE = 6, +FSCONFIG_CMD_RECONFIGURE = 7, +FSCONFIG_CMD_CREATE_EXCL = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum procmap_query_flags { +PROCMAP_QUERY_VMA_READABLE = 1, +PROCMAP_QUERY_VMA_WRITABLE = 2, +PROCMAP_QUERY_VMA_EXECUTABLE = 4, +PROCMAP_QUERY_VMA_SHARED = 8, +PROCMAP_QUERY_COVERING_OR_NEXT_VMA = 16, +PROCMAP_QUERY_FILE_BACKED_VMA = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum btrfs_dev_stat_values { +BTRFS_DEV_STAT_WRITE_ERRS = 0, +BTRFS_DEV_STAT_READ_ERRS = 1, +BTRFS_DEV_STAT_FLUSH_ERRS = 2, +BTRFS_DEV_STAT_CORRUPTION_ERRS = 3, +BTRFS_DEV_STAT_GENERATION_ERRS = 4, +BTRFS_DEV_STAT_VALUES_MAX = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum btrfs_err_code { +BTRFS_ERROR_DEV_RAID1_MIN_NOT_MET = 1, +BTRFS_ERROR_DEV_RAID10_MIN_NOT_MET = 2, +BTRFS_ERROR_DEV_RAID5_MIN_NOT_MET = 3, +BTRFS_ERROR_DEV_RAID6_MIN_NOT_MET = 4, +BTRFS_ERROR_DEV_TGT_REPLACE = 5, +BTRFS_ERROR_DEV_MISSING_NOT_FOUND = 6, +BTRFS_ERROR_DEV_ONLY_WRITABLE = 7, +BTRFS_ERROR_DEV_EXCL_RUN_IN_PROGRESS = 8, +BTRFS_ERROR_DEV_RAID1C3_MIN_NOT_MET = 9, +BTRFS_ERROR_DEV_RAID1C4_MIN_NOT_MET = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum btrfs_csum_type { +BTRFS_CSUM_TYPE_CRC32 = 0, +BTRFS_CSUM_TYPE_XXHASH = 1, +BTRFS_CSUM_TYPE_SHA256 = 2, +BTRFS_CSUM_TYPE_BLAKE2 = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +BTRFS_FILE_EXTENT_INLINE = 0, +BTRFS_FILE_EXTENT_REG = 1, +BTRFS_FILE_EXTENT_PREALLOC = 2, +BTRFS_NR_FILE_EXTENT_TYPES = 3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { +pub version: __u8, +pub v1: fscrypt_policy_v1, +pub v2: fscrypt_policy_v2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_key_specifier__bindgen_ty_1 { +pub __reserved: [__u8; 32usize], +pub descriptor: [__u8; 8usize], +pub identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { +pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, +pub unused: [__u64; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_vol_args_v2__bindgen_ty_2 { +pub name: [crate::ctypes::c_char; 4040usize], +pub devid: __u64, +pub subvolid: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_dev_replace_args__bindgen_ty_1 { +pub start: btrfs_ioctl_dev_replace_start_params, +pub status: btrfs_ioctl_dev_replace_status_params, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_balance_args__bindgen_ty_1 { +pub usage: __u64, +pub __bindgen_anon_1: btrfs_balance_args__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_balance_args__bindgen_ty_2 { +pub limit: __u64, +pub __bindgen_anon_1: btrfs_balance_args__bindgen_ty_2__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_defrag_range_args__bindgen_ty_1 { +pub compress_type: __u32, +pub compress: btrfs_ioctl_defrag_range_args__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_disk_balance_args__bindgen_ty_1 { +pub usage: __le64, +pub __bindgen_anon_1: btrfs_disk_balance_args__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_disk_balance_args__bindgen_ty_2 { +pub limit: __le64, +pub __bindgen_anon_1: btrfs_disk_balance_args__bindgen_ty_2__bindgen_ty_1, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/elf_uapi.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/elf_uapi.rs new file mode 100644 index 0000000000000000000000000000000000000000..7f7c25aeb2437a13c0c794b48791264254a6477d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/elf_uapi.rs @@ -0,0 +1,654 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type Elf32_Addr = __u32; +pub type Elf32_Half = __u16; +pub type Elf32_Off = __u32; +pub type Elf32_Sword = __s32; +pub type Elf32_Word = __u32; +pub type Elf32_Versym = __u16; +pub type Elf64_Addr = __u64; +pub type Elf64_Half = __u16; +pub type Elf64_SHalf = __s16; +pub type Elf64_Off = __u64; +pub type Elf64_Sword = __s32; +pub type Elf64_Word = __u32; +pub type Elf64_Xword = __u64; +pub type Elf64_Sxword = __s64; +pub type Elf64_Versym = __u16; +pub type Elf32_Rel = elf32_rel; +pub type Elf64_Rel = elf64_rel; +pub type Elf32_Rela = elf32_rela; +pub type Elf64_Rela = elf64_rela; +pub type Elf32_Sym = elf32_sym; +pub type Elf64_Sym = elf64_sym; +pub type Elf32_Ehdr = elf32_hdr; +pub type Elf64_Ehdr = elf64_hdr; +pub type Elf32_Phdr = elf32_phdr; +pub type Elf64_Phdr = elf64_phdr; +pub type Elf32_Shdr = elf32_shdr; +pub type Elf64_Shdr = elf64_shdr; +pub type Elf32_Nhdr = elf32_note; +pub type Elf64_Nhdr = elf64_note; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct Elf32_Dyn { +pub d_tag: Elf32_Sword, +pub d_un: Elf32_Dyn__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct Elf64_Dyn { +pub d_tag: Elf64_Sxword, +pub d_un: Elf64_Dyn__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_rel { +pub r_offset: Elf32_Addr, +pub r_info: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_rel { +pub r_offset: Elf64_Addr, +pub r_info: Elf64_Xword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_rela { +pub r_offset: Elf32_Addr, +pub r_info: Elf32_Word, +pub r_addend: Elf32_Sword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_rela { +pub r_offset: Elf64_Addr, +pub r_info: Elf64_Xword, +pub r_addend: Elf64_Sxword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_sym { +pub st_name: Elf32_Word, +pub st_value: Elf32_Addr, +pub st_size: Elf32_Word, +pub st_info: crate::ctypes::c_uchar, +pub st_other: crate::ctypes::c_uchar, +pub st_shndx: Elf32_Half, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_sym { +pub st_name: Elf64_Word, +pub st_info: crate::ctypes::c_uchar, +pub st_other: crate::ctypes::c_uchar, +pub st_shndx: Elf64_Half, +pub st_value: Elf64_Addr, +pub st_size: Elf64_Xword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_hdr { +pub e_ident: [crate::ctypes::c_uchar; 16usize], +pub e_type: Elf32_Half, +pub e_machine: Elf32_Half, +pub e_version: Elf32_Word, +pub e_entry: Elf32_Addr, +pub e_phoff: Elf32_Off, +pub e_shoff: Elf32_Off, +pub e_flags: Elf32_Word, +pub e_ehsize: Elf32_Half, +pub e_phentsize: Elf32_Half, +pub e_phnum: Elf32_Half, +pub e_shentsize: Elf32_Half, +pub e_shnum: Elf32_Half, +pub e_shstrndx: Elf32_Half, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_hdr { +pub e_ident: [crate::ctypes::c_uchar; 16usize], +pub e_type: Elf64_Half, +pub e_machine: Elf64_Half, +pub e_version: Elf64_Word, +pub e_entry: Elf64_Addr, +pub e_phoff: Elf64_Off, +pub e_shoff: Elf64_Off, +pub e_flags: Elf64_Word, +pub e_ehsize: Elf64_Half, +pub e_phentsize: Elf64_Half, +pub e_phnum: Elf64_Half, +pub e_shentsize: Elf64_Half, +pub e_shnum: Elf64_Half, +pub e_shstrndx: Elf64_Half, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_phdr { +pub p_type: Elf32_Word, +pub p_offset: Elf32_Off, +pub p_vaddr: Elf32_Addr, +pub p_paddr: Elf32_Addr, +pub p_filesz: Elf32_Word, +pub p_memsz: Elf32_Word, +pub p_flags: Elf32_Word, +pub p_align: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_phdr { +pub p_type: Elf64_Word, +pub p_flags: Elf64_Word, +pub p_offset: Elf64_Off, +pub p_vaddr: Elf64_Addr, +pub p_paddr: Elf64_Addr, +pub p_filesz: Elf64_Xword, +pub p_memsz: Elf64_Xword, +pub p_align: Elf64_Xword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_shdr { +pub sh_name: Elf32_Word, +pub sh_type: Elf32_Word, +pub sh_flags: Elf32_Word, +pub sh_addr: Elf32_Addr, +pub sh_offset: Elf32_Off, +pub sh_size: Elf32_Word, +pub sh_link: Elf32_Word, +pub sh_info: Elf32_Word, +pub sh_addralign: Elf32_Word, +pub sh_entsize: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_shdr { +pub sh_name: Elf64_Word, +pub sh_type: Elf64_Word, +pub sh_flags: Elf64_Xword, +pub sh_addr: Elf64_Addr, +pub sh_offset: Elf64_Off, +pub sh_size: Elf64_Xword, +pub sh_link: Elf64_Word, +pub sh_info: Elf64_Word, +pub sh_addralign: Elf64_Xword, +pub sh_entsize: Elf64_Xword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_note { +pub n_namesz: Elf32_Word, +pub n_descsz: Elf32_Word, +pub n_type: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_note { +pub n_namesz: Elf64_Word, +pub n_descsz: Elf64_Word, +pub n_type: Elf64_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Elf32_Verdef { +pub vd_version: Elf32_Half, +pub vd_flags: Elf32_Half, +pub vd_ndx: Elf32_Half, +pub vd_cnt: Elf32_Half, +pub vd_hash: Elf32_Word, +pub vd_aux: Elf32_Word, +pub vd_next: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Elf64_Verdef { +pub vd_version: Elf64_Half, +pub vd_flags: Elf64_Half, +pub vd_ndx: Elf64_Half, +pub vd_cnt: Elf64_Half, +pub vd_hash: Elf64_Word, +pub vd_aux: Elf64_Word, +pub vd_next: Elf64_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Elf32_Verdaux { +pub vda_name: Elf32_Word, +pub vda_next: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Elf64_Verdaux { +pub vda_name: Elf64_Word, +pub vda_next: Elf64_Word, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const EM_NONE: u32 = 0; +pub const EM_M32: u32 = 1; +pub const EM_SPARC: u32 = 2; +pub const EM_386: u32 = 3; +pub const EM_68K: u32 = 4; +pub const EM_88K: u32 = 5; +pub const EM_486: u32 = 6; +pub const EM_860: u32 = 7; +pub const EM_MIPS: u32 = 8; +pub const EM_MIPS_RS3_LE: u32 = 10; +pub const EM_MIPS_RS4_BE: u32 = 10; +pub const EM_PARISC: u32 = 15; +pub const EM_SPARC32PLUS: u32 = 18; +pub const EM_PPC: u32 = 20; +pub const EM_PPC64: u32 = 21; +pub const EM_SPU: u32 = 23; +pub const EM_ARM: u32 = 40; +pub const EM_SH: u32 = 42; +pub const EM_SPARCV9: u32 = 43; +pub const EM_H8_300: u32 = 46; +pub const EM_IA_64: u32 = 50; +pub const EM_X86_64: u32 = 62; +pub const EM_S390: u32 = 22; +pub const EM_CRIS: u32 = 76; +pub const EM_M32R: u32 = 88; +pub const EM_MN10300: u32 = 89; +pub const EM_OPENRISC: u32 = 92; +pub const EM_ARCOMPACT: u32 = 93; +pub const EM_XTENSA: u32 = 94; +pub const EM_BLACKFIN: u32 = 106; +pub const EM_UNICORE: u32 = 110; +pub const EM_ALTERA_NIOS2: u32 = 113; +pub const EM_TI_C6000: u32 = 140; +pub const EM_HEXAGON: u32 = 164; +pub const EM_NDS32: u32 = 167; +pub const EM_AARCH64: u32 = 183; +pub const EM_TILEPRO: u32 = 188; +pub const EM_MICROBLAZE: u32 = 189; +pub const EM_TILEGX: u32 = 191; +pub const EM_ARCV2: u32 = 195; +pub const EM_RISCV: u32 = 243; +pub const EM_BPF: u32 = 247; +pub const EM_CSKY: u32 = 252; +pub const EM_LOONGARCH: u32 = 258; +pub const EM_FRV: u32 = 21569; +pub const EM_ALPHA: u32 = 36902; +pub const EM_CYGNUS_M32R: u32 = 36929; +pub const EM_S390_OLD: u32 = 41872; +pub const EM_CYGNUS_MN10300: u32 = 48879; +pub const PT_NULL: u32 = 0; +pub const PT_LOAD: u32 = 1; +pub const PT_DYNAMIC: u32 = 2; +pub const PT_INTERP: u32 = 3; +pub const PT_NOTE: u32 = 4; +pub const PT_SHLIB: u32 = 5; +pub const PT_PHDR: u32 = 6; +pub const PT_TLS: u32 = 7; +pub const PT_LOOS: u32 = 1610612736; +pub const PT_HIOS: u32 = 1879048191; +pub const PT_LOPROC: u32 = 1879048192; +pub const PT_HIPROC: u32 = 2147483647; +pub const PT_GNU_EH_FRAME: u32 = 1685382480; +pub const PT_GNU_STACK: u32 = 1685382481; +pub const PT_GNU_RELRO: u32 = 1685382482; +pub const PT_GNU_PROPERTY: u32 = 1685382483; +pub const PT_AARCH64_MEMTAG_MTE: u32 = 1879048194; +pub const PN_XNUM: u32 = 65535; +pub const ET_NONE: u32 = 0; +pub const ET_REL: u32 = 1; +pub const ET_EXEC: u32 = 2; +pub const ET_DYN: u32 = 3; +pub const ET_CORE: u32 = 4; +pub const ET_LOPROC: u32 = 65280; +pub const ET_HIPROC: u32 = 65535; +pub const DT_NULL: u32 = 0; +pub const DT_NEEDED: u32 = 1; +pub const DT_PLTRELSZ: u32 = 2; +pub const DT_PLTGOT: u32 = 3; +pub const DT_HASH: u32 = 4; +pub const DT_STRTAB: u32 = 5; +pub const DT_SYMTAB: u32 = 6; +pub const DT_RELA: u32 = 7; +pub const DT_RELASZ: u32 = 8; +pub const DT_RELAENT: u32 = 9; +pub const DT_STRSZ: u32 = 10; +pub const DT_SYMENT: u32 = 11; +pub const DT_INIT: u32 = 12; +pub const DT_FINI: u32 = 13; +pub const DT_SONAME: u32 = 14; +pub const DT_RPATH: u32 = 15; +pub const DT_SYMBOLIC: u32 = 16; +pub const DT_REL: u32 = 17; +pub const DT_RELSZ: u32 = 18; +pub const DT_RELENT: u32 = 19; +pub const DT_PLTREL: u32 = 20; +pub const DT_DEBUG: u32 = 21; +pub const DT_TEXTREL: u32 = 22; +pub const DT_JMPREL: u32 = 23; +pub const DT_ENCODING: u32 = 32; +pub const OLD_DT_LOOS: u32 = 1610612736; +pub const DT_LOOS: u32 = 1610612749; +pub const DT_HIOS: u32 = 1879044096; +pub const DT_VALRNGLO: u32 = 1879047424; +pub const DT_VALRNGHI: u32 = 1879047679; +pub const DT_ADDRRNGLO: u32 = 1879047680; +pub const DT_GNU_HASH: u32 = 1879047925; +pub const DT_ADDRRNGHI: u32 = 1879047935; +pub const DT_VERSYM: u32 = 1879048176; +pub const DT_RELACOUNT: u32 = 1879048185; +pub const DT_RELCOUNT: u32 = 1879048186; +pub const DT_FLAGS_1: u32 = 1879048187; +pub const DT_VERDEF: u32 = 1879048188; +pub const DT_VERDEFNUM: u32 = 1879048189; +pub const DT_VERNEED: u32 = 1879048190; +pub const DT_VERNEEDNUM: u32 = 1879048191; +pub const OLD_DT_HIOS: u32 = 1879048191; +pub const DT_LOPROC: u32 = 1879048192; +pub const DT_HIPROC: u32 = 2147483647; +pub const STB_LOCAL: u32 = 0; +pub const STB_GLOBAL: u32 = 1; +pub const STB_WEAK: u32 = 2; +pub const STN_UNDEF: u32 = 0; +pub const STT_NOTYPE: u32 = 0; +pub const STT_OBJECT: u32 = 1; +pub const STT_FUNC: u32 = 2; +pub const STT_SECTION: u32 = 3; +pub const STT_FILE: u32 = 4; +pub const STT_COMMON: u32 = 5; +pub const STT_TLS: u32 = 6; +pub const VER_FLG_BASE: u32 = 1; +pub const VER_FLG_WEAK: u32 = 2; +pub const EI_NIDENT: u32 = 16; +pub const PF_R: u32 = 4; +pub const PF_W: u32 = 2; +pub const PF_X: u32 = 1; +pub const SHT_NULL: u32 = 0; +pub const SHT_PROGBITS: u32 = 1; +pub const SHT_SYMTAB: u32 = 2; +pub const SHT_STRTAB: u32 = 3; +pub const SHT_RELA: u32 = 4; +pub const SHT_HASH: u32 = 5; +pub const SHT_DYNAMIC: u32 = 6; +pub const SHT_NOTE: u32 = 7; +pub const SHT_NOBITS: u32 = 8; +pub const SHT_REL: u32 = 9; +pub const SHT_SHLIB: u32 = 10; +pub const SHT_DYNSYM: u32 = 11; +pub const SHT_NUM: u32 = 12; +pub const SHT_LOPROC: u32 = 1879048192; +pub const SHT_HIPROC: u32 = 2147483647; +pub const SHT_LOUSER: u32 = 2147483648; +pub const SHT_HIUSER: u32 = 4294967295; +pub const SHF_WRITE: u32 = 1; +pub const SHF_ALLOC: u32 = 2; +pub const SHF_EXECINSTR: u32 = 4; +pub const SHF_MERGE: u32 = 16; +pub const SHF_STRINGS: u32 = 32; +pub const SHF_INFO_LINK: u32 = 64; +pub const SHF_LINK_ORDER: u32 = 128; +pub const SHF_OS_NONCONFORMING: u32 = 256; +pub const SHF_GROUP: u32 = 512; +pub const SHF_TLS: u32 = 1024; +pub const SHF_RELA_LIVEPATCH: u32 = 1048576; +pub const SHF_RO_AFTER_INIT: u32 = 2097152; +pub const SHF_ORDERED: u32 = 67108864; +pub const SHF_EXCLUDE: u32 = 134217728; +pub const SHF_MASKOS: u32 = 267386880; +pub const SHF_MASKPROC: u32 = 4026531840; +pub const SHN_UNDEF: u32 = 0; +pub const SHN_LORESERVE: u32 = 65280; +pub const SHN_LOPROC: u32 = 65280; +pub const SHN_HIPROC: u32 = 65311; +pub const SHN_LIVEPATCH: u32 = 65312; +pub const SHN_ABS: u32 = 65521; +pub const SHN_COMMON: u32 = 65522; +pub const SHN_HIRESERVE: u32 = 65535; +pub const EI_MAG0: u32 = 0; +pub const EI_MAG1: u32 = 1; +pub const EI_MAG2: u32 = 2; +pub const EI_MAG3: u32 = 3; +pub const EI_CLASS: u32 = 4; +pub const EI_DATA: u32 = 5; +pub const EI_VERSION: u32 = 6; +pub const EI_OSABI: u32 = 7; +pub const EI_PAD: u32 = 8; +pub const ELFMAG0: u32 = 127; +pub const ELFMAG1: u8 = 69u8; +pub const ELFMAG2: u8 = 76u8; +pub const ELFMAG3: u8 = 70u8; +pub const ELFMAG: &[u8; 5] = b"\x7FELF\0"; +pub const SELFMAG: u32 = 4; +pub const ELFCLASSNONE: u32 = 0; +pub const ELFCLASS32: u32 = 1; +pub const ELFCLASS64: u32 = 2; +pub const ELFCLASSNUM: u32 = 3; +pub const ELFDATANONE: u32 = 0; +pub const ELFDATA2LSB: u32 = 1; +pub const ELFDATA2MSB: u32 = 2; +pub const EV_NONE: u32 = 0; +pub const EV_CURRENT: u32 = 1; +pub const EV_NUM: u32 = 2; +pub const ELFOSABI_NONE: u32 = 0; +pub const ELFOSABI_LINUX: u32 = 3; +pub const ELF_OSABI: u32 = 0; +pub const NN_GNU_PROPERTY_TYPE_0: &[u8; 4] = b"GNU\0"; +pub const NT_GNU_PROPERTY_TYPE_0: u32 = 5; +pub const NN_PRSTATUS: &[u8; 5] = b"CORE\0"; +pub const NT_PRSTATUS: u32 = 1; +pub const NN_PRFPREG: &[u8; 5] = b"CORE\0"; +pub const NT_PRFPREG: u32 = 2; +pub const NN_PRPSINFO: &[u8; 5] = b"CORE\0"; +pub const NT_PRPSINFO: u32 = 3; +pub const NN_TASKSTRUCT: &[u8; 5] = b"CORE\0"; +pub const NT_TASKSTRUCT: u32 = 4; +pub const NN_AUXV: &[u8; 5] = b"CORE\0"; +pub const NT_AUXV: u32 = 6; +pub const NN_SIGINFO: &[u8; 5] = b"CORE\0"; +pub const NT_SIGINFO: u32 = 1397311305; +pub const NN_FILE: &[u8; 5] = b"CORE\0"; +pub const NT_FILE: u32 = 1179208773; +pub const NN_PRXFPREG: &[u8; 6] = b"LINUX\0"; +pub const NT_PRXFPREG: u32 = 1189489535; +pub const NN_PPC_VMX: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_VMX: u32 = 256; +pub const NN_PPC_SPE: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_SPE: u32 = 257; +pub const NN_PPC_VSX: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_VSX: u32 = 258; +pub const NN_PPC_TAR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TAR: u32 = 259; +pub const NN_PPC_PPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_PPR: u32 = 260; +pub const NN_PPC_DSCR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_DSCR: u32 = 261; +pub const NN_PPC_EBB: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_EBB: u32 = 262; +pub const NN_PPC_PMU: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_PMU: u32 = 263; +pub const NN_PPC_TM_CGPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CGPR: u32 = 264; +pub const NN_PPC_TM_CFPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CFPR: u32 = 265; +pub const NN_PPC_TM_CVMX: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CVMX: u32 = 266; +pub const NN_PPC_TM_CVSX: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CVSX: u32 = 267; +pub const NN_PPC_TM_SPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_SPR: u32 = 268; +pub const NN_PPC_TM_CTAR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CTAR: u32 = 269; +pub const NN_PPC_TM_CPPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CPPR: u32 = 270; +pub const NN_PPC_TM_CDSCR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CDSCR: u32 = 271; +pub const NN_PPC_PKEY: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_PKEY: u32 = 272; +pub const NN_PPC_DEXCR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_DEXCR: u32 = 273; +pub const NN_PPC_HASHKEYR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_HASHKEYR: u32 = 274; +pub const NN_386_TLS: &[u8; 6] = b"LINUX\0"; +pub const NT_386_TLS: u32 = 512; +pub const NN_386_IOPERM: &[u8; 6] = b"LINUX\0"; +pub const NT_386_IOPERM: u32 = 513; +pub const NN_X86_XSTATE: &[u8; 6] = b"LINUX\0"; +pub const NT_X86_XSTATE: u32 = 514; +pub const NN_X86_SHSTK: &[u8; 6] = b"LINUX\0"; +pub const NT_X86_SHSTK: u32 = 516; +pub const NN_X86_XSAVE_LAYOUT: &[u8; 6] = b"LINUX\0"; +pub const NT_X86_XSAVE_LAYOUT: u32 = 517; +pub const NN_S390_HIGH_GPRS: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_HIGH_GPRS: u32 = 768; +pub const NN_S390_TIMER: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_TIMER: u32 = 769; +pub const NN_S390_TODCMP: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_TODCMP: u32 = 770; +pub const NN_S390_TODPREG: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_TODPREG: u32 = 771; +pub const NN_S390_CTRS: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_CTRS: u32 = 772; +pub const NN_S390_PREFIX: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_PREFIX: u32 = 773; +pub const NN_S390_LAST_BREAK: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_LAST_BREAK: u32 = 774; +pub const NN_S390_SYSTEM_CALL: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_SYSTEM_CALL: u32 = 775; +pub const NN_S390_TDB: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_TDB: u32 = 776; +pub const NN_S390_VXRS_LOW: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_VXRS_LOW: u32 = 777; +pub const NN_S390_VXRS_HIGH: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_VXRS_HIGH: u32 = 778; +pub const NN_S390_GS_CB: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_GS_CB: u32 = 779; +pub const NN_S390_GS_BC: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_GS_BC: u32 = 780; +pub const NN_S390_RI_CB: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_RI_CB: u32 = 781; +pub const NN_S390_PV_CPU_DATA: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_PV_CPU_DATA: u32 = 782; +pub const NN_ARM_VFP: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_VFP: u32 = 1024; +pub const NN_ARM_TLS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_TLS: u32 = 1025; +pub const NN_ARM_HW_BREAK: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_HW_BREAK: u32 = 1026; +pub const NN_ARM_HW_WATCH: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_HW_WATCH: u32 = 1027; +pub const NN_ARM_SYSTEM_CALL: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_SYSTEM_CALL: u32 = 1028; +pub const NN_ARM_SVE: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_SVE: u32 = 1029; +pub const NN_ARM_PAC_MASK: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_PAC_MASK: u32 = 1030; +pub const NN_ARM_PACA_KEYS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_PACA_KEYS: u32 = 1031; +pub const NN_ARM_PACG_KEYS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_PACG_KEYS: u32 = 1032; +pub const NN_ARM_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_TAGGED_ADDR_CTRL: u32 = 1033; +pub const NN_ARM_PAC_ENABLED_KEYS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_PAC_ENABLED_KEYS: u32 = 1034; +pub const NN_ARM_SSVE: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_SSVE: u32 = 1035; +pub const NN_ARM_ZA: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_ZA: u32 = 1036; +pub const NN_ARM_ZT: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_ZT: u32 = 1037; +pub const NN_ARM_FPMR: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_FPMR: u32 = 1038; +pub const NN_ARM_POE: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_POE: u32 = 1039; +pub const NN_ARM_GCS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_GCS: u32 = 1040; +pub const NN_ARC_V2: &[u8; 6] = b"LINUX\0"; +pub const NT_ARC_V2: u32 = 1536; +pub const NN_VMCOREDD: &[u8; 6] = b"LINUX\0"; +pub const NT_VMCOREDD: u32 = 1792; +pub const NN_MIPS_DSP: &[u8; 6] = b"LINUX\0"; +pub const NT_MIPS_DSP: u32 = 2048; +pub const NN_MIPS_FP_MODE: &[u8; 6] = b"LINUX\0"; +pub const NT_MIPS_FP_MODE: u32 = 2049; +pub const NN_MIPS_MSA: &[u8; 6] = b"LINUX\0"; +pub const NT_MIPS_MSA: u32 = 2050; +pub const NN_RISCV_CSR: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_CSR: u32 = 2304; +pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_VECTOR: u32 = 2305; +pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_CPUCFG: u32 = 2560; +pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_CSR: u32 = 2561; +pub const NN_LOONGARCH_LSX: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_LSX: u32 = 2562; +pub const NN_LOONGARCH_LASX: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_LASX: u32 = 2563; +pub const NN_LOONGARCH_LBT: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_LBT: u32 = 2564; +pub const NN_LOONGARCH_HW_BREAK: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_HW_BREAK: u32 = 2565; +pub const NN_LOONGARCH_HW_WATCH: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_HW_WATCH: u32 = 2566; +pub const GNU_PROPERTY_AARCH64_FEATURE_1_AND: u32 = 3221225472; +pub const GNU_PROPERTY_AARCH64_FEATURE_1_BTI: u32 = 1; +#[repr(C)] +#[derive(Copy, Clone)] +pub union Elf32_Dyn__bindgen_ty_1 { +pub d_val: Elf32_Sword, +pub d_ptr: Elf32_Addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union Elf64_Dyn__bindgen_ty_1 { +pub d_val: Elf64_Xword, +pub d_ptr: Elf64_Addr, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/errno.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/errno.rs new file mode 100644 index 0000000000000000000000000000000000000000..48eaf61f93450ac4c0b622351a597022885ad4bb --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/errno.rs @@ -0,0 +1,135 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EDEADLK: u32 = 35; +pub const ENAMETOOLONG: u32 = 36; +pub const ENOLCK: u32 = 37; +pub const ENOSYS: u32 = 38; +pub const ENOTEMPTY: u32 = 39; +pub const ELOOP: u32 = 40; +pub const EWOULDBLOCK: u32 = 11; +pub const ENOMSG: u32 = 42; +pub const EIDRM: u32 = 43; +pub const ECHRNG: u32 = 44; +pub const EL2NSYNC: u32 = 45; +pub const EL3HLT: u32 = 46; +pub const EL3RST: u32 = 47; +pub const ELNRNG: u32 = 48; +pub const EUNATCH: u32 = 49; +pub const ENOCSI: u32 = 50; +pub const EL2HLT: u32 = 51; +pub const EBADE: u32 = 52; +pub const EBADR: u32 = 53; +pub const EXFULL: u32 = 54; +pub const ENOANO: u32 = 55; +pub const EBADRQC: u32 = 56; +pub const EBADSLT: u32 = 57; +pub const EDEADLOCK: u32 = 35; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EMULTIHOP: u32 = 72; +pub const EDOTDOT: u32 = 73; +pub const EBADMSG: u32 = 74; +pub const EOVERFLOW: u32 = 75; +pub const ENOTUNIQ: u32 = 76; +pub const EBADFD: u32 = 77; +pub const EREMCHG: u32 = 78; +pub const ELIBACC: u32 = 79; +pub const ELIBBAD: u32 = 80; +pub const ELIBSCN: u32 = 81; +pub const ELIBMAX: u32 = 82; +pub const ELIBEXEC: u32 = 83; +pub const EILSEQ: u32 = 84; +pub const ERESTART: u32 = 85; +pub const ESTRPIPE: u32 = 86; +pub const EUSERS: u32 = 87; +pub const ENOTSOCK: u32 = 88; +pub const EDESTADDRREQ: u32 = 89; +pub const EMSGSIZE: u32 = 90; +pub const EPROTOTYPE: u32 = 91; +pub const ENOPROTOOPT: u32 = 92; +pub const EPROTONOSUPPORT: u32 = 93; +pub const ESOCKTNOSUPPORT: u32 = 94; +pub const EOPNOTSUPP: u32 = 95; +pub const EPFNOSUPPORT: u32 = 96; +pub const EAFNOSUPPORT: u32 = 97; +pub const EADDRINUSE: u32 = 98; +pub const EADDRNOTAVAIL: u32 = 99; +pub const ENETDOWN: u32 = 100; +pub const ENETUNREACH: u32 = 101; +pub const ENETRESET: u32 = 102; +pub const ECONNABORTED: u32 = 103; +pub const ECONNRESET: u32 = 104; +pub const ENOBUFS: u32 = 105; +pub const EISCONN: u32 = 106; +pub const ENOTCONN: u32 = 107; +pub const ESHUTDOWN: u32 = 108; +pub const ETOOMANYREFS: u32 = 109; +pub const ETIMEDOUT: u32 = 110; +pub const ECONNREFUSED: u32 = 111; +pub const EHOSTDOWN: u32 = 112; +pub const EHOSTUNREACH: u32 = 113; +pub const EALREADY: u32 = 114; +pub const EINPROGRESS: u32 = 115; +pub const ESTALE: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EDQUOT: u32 = 122; +pub const ENOMEDIUM: u32 = 123; +pub const EMEDIUMTYPE: u32 = 124; +pub const ECANCELED: u32 = 125; +pub const ENOKEY: u32 = 126; +pub const EKEYEXPIRED: u32 = 127; +pub const EKEYREVOKED: u32 = 128; +pub const EKEYREJECTED: u32 = 129; +pub const EOWNERDEAD: u32 = 130; +pub const ENOTRECOVERABLE: u32 = 131; +pub const ERFKILL: u32 = 132; +pub const EHWPOISON: u32 = 133; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/general.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/general.rs new file mode 100644 index 0000000000000000000000000000000000000000..d8ad1d07fde60ba5b94cfa42a691f05bd1adc843 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/general.rs @@ -0,0 +1,3182 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_sighandler_t = ::core::option::Option; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type cap_user_header_t = *mut __user_cap_header_struct; +pub type cap_user_data_t = *mut __user_cap_data_struct; +pub type __kernel_rwf_t = crate::ctypes::c_int; +pub type old_sigset_t = crate::ctypes::c_ulong; +pub type __signalfn_t = ::core::option::Option; +pub type __sighandler_t = __signalfn_t; +pub type __restorefn_t = ::core::option::Option; +pub type __sigrestore_t = __restorefn_t; +pub type stack_t = sigaltstack; +pub type sigval_t = sigval; +pub type siginfo_t = siginfo; +pub type sigevent_t = sigevent; +pub type cc_t = crate::ctypes::c_uchar; +pub type speed_t = crate::ctypes::c_uint; +pub type tcflag_t = crate::ctypes::c_uint; +pub type __fsword_t = __kernel_long_t; +#[repr(C)] +#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] +pub struct __BindgenBitfieldUnit { +storage: Storage, +} +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_fd_set { +pub fds_bits: [crate::ctypes::c_ulong; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_fsid_t { +pub val: [crate::ctypes::c_int; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __user_cap_header_struct { +pub version: __u32, +pub pid: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __user_cap_data_struct { +pub effective: __u32, +pub permitted: __u32, +pub inheritable: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vfs_cap_data { +pub magic_etc: __le32, +pub data: [vfs_cap_data__bindgen_ty_1; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vfs_cap_data__bindgen_ty_1 { +pub permitted: __le32, +pub inheritable: __le32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vfs_ns_cap_data { +pub magic_etc: __le32, +pub data: [vfs_ns_cap_data__bindgen_ty_1; 2usize], +pub rootid: __le32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vfs_ns_cap_data__bindgen_ty_1 { +pub permitted: __le32, +pub inheritable: __le32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct f_owner_ex { +pub type_: crate::ctypes::c_int, +pub pid: __kernel_pid_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct flock { +pub l_type: crate::ctypes::c_short, +pub l_whence: crate::ctypes::c_short, +pub l_start: __kernel_off_t, +pub l_len: __kernel_off_t, +pub l_pid: __kernel_pid_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct flock64 { +pub l_type: crate::ctypes::c_short, +pub l_whence: crate::ctypes::c_short, +pub l_start: __kernel_loff_t, +pub l_len: __kernel_loff_t, +pub l_pid: __kernel_pid_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct open_how { +pub flags: __u64, +pub mode: __u64, +pub resolve: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct epoll_event { +pub events: __poll_t, +pub data: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct epoll_params { +pub busy_poll_usecs: __u32, +pub busy_poll_budget: __u16, +pub prefer_busy_poll: __u8, +pub __pad: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v1 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub master_key_descriptor: [__u8; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_key { +pub mode: __u32, +pub raw: [__u8; 64usize], +pub size: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v2 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub log2_data_unit_size: __u8, +pub __reserved: [__u8; 3usize], +pub master_key_identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_policy_ex_arg { +pub policy_size: __u64, +pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_key_specifier { +pub type_: __u32, +pub __reserved: __u32, +pub u: fscrypt_key_specifier__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct fscrypt_provisioning_key_payload { +pub type_: __u32, +pub flags: __u32, +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +pub struct fscrypt_add_key_arg { +pub key_spec: fscrypt_key_specifier, +pub raw_size: __u32, +pub key_id: __u32, +pub flags: __u32, +pub __reserved: [__u32; 7usize], +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_remove_key_arg { +pub key_spec: fscrypt_key_specifier, +pub removal_status_flags: __u32, +pub __reserved: [__u32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_key_status_arg { +pub key_spec: fscrypt_key_specifier, +pub __reserved: [__u32; 6usize], +pub status: __u32, +pub status_flags: __u32, +pub user_count: __u32, +pub __out_reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mount_attr { +pub attr_set: __u64, +pub attr_clr: __u64, +pub propagation: __u64, +pub userns_fd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct statmount { +pub size: __u32, +pub mnt_opts: __u32, +pub mask: __u64, +pub sb_dev_major: __u32, +pub sb_dev_minor: __u32, +pub sb_magic: __u64, +pub sb_flags: __u32, +pub fs_type: __u32, +pub mnt_id: __u64, +pub mnt_parent_id: __u64, +pub mnt_id_old: __u32, +pub mnt_parent_id_old: __u32, +pub mnt_attr: __u64, +pub mnt_propagation: __u64, +pub mnt_peer_group: __u64, +pub mnt_master: __u64, +pub propagate_from: __u64, +pub mnt_root: __u32, +pub mnt_point: __u32, +pub mnt_ns_id: __u64, +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub supported_mask: __u64, +pub mnt_uidmap_num: __u32, +pub mnt_uidmap: __u32, +pub mnt_gidmap_num: __u32, +pub mnt_gidmap: __u32, +pub __spare2: [__u64; 43usize], +pub str_: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mnt_id_req { +pub size: __u32, +pub spare: __u32, +pub mnt_id: __u64, +pub param: __u64, +pub mnt_ns_id: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_clone_range { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fstrim_range { +pub start: __u64, +pub len: __u64, +pub minlen: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsuuid2 { +pub len: __u8, +pub uuid: [__u8; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fs_sysfs_path { +pub len: __u8, +pub name: [__u8; 128usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_dedupe_range_info { +pub dest_fd: __s64, +pub dest_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct file_dedupe_range { +pub src_offset: __u64, +pub src_length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct files_stat_struct { +pub nr_files: crate::ctypes::c_ulong, +pub nr_free_files: crate::ctypes::c_ulong, +pub max_files: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct inodes_stat_t { +pub nr_inodes: crate::ctypes::c_long, +pub nr_unused: crate::ctypes::c_long, +pub dummy: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsxattr { +pub fsx_xflags: __u32, +pub fsx_extsize: __u32, +pub fsx_nextents: __u32, +pub fsx_projid: __u32, +pub fsx_cowextsize: __u32, +pub fsx_pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct page_region { +pub start: __u64, +pub end: __u64, +pub categories: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pm_scan_arg { +pub size: __u64, +pub flags: __u64, +pub start: __u64, +pub end: __u64, +pub walk_end: __u64, +pub vec: __u64, +pub vec_len: __u64, +pub max_pages: __u64, +pub category_inverted: __u64, +pub category_mask: __u64, +pub category_anyof_mask: __u64, +pub return_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct procmap_query { +pub size: __u64, +pub query_flags: __u64, +pub query_addr: __u64, +pub vma_start: __u64, +pub vma_end: __u64, +pub vma_flags: __u64, +pub vma_page_size: __u64, +pub vma_offset: __u64, +pub inode: __u64, +pub dev_major: __u32, +pub dev_minor: __u32, +pub vma_name_size: __u32, +pub build_id_size: __u32, +pub vma_name_addr: __u64, +pub build_id_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct futex_waitv { +pub val: __u64, +pub uaddr: __u64, +pub flags: __u32, +pub __reserved: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct robust_list { +pub next: *mut robust_list, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct robust_list_head { +pub list: robust_list, +pub futex_offset: crate::ctypes::c_long, +pub list_op_pending: *mut robust_list, +} +#[repr(C)] +#[derive(Debug)] +pub struct inotify_event { +pub wd: __s32, +pub mask: __u32, +pub cookie: __u32, +pub len: __u32, +pub name: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cachestat_range { +pub off: __u64, +pub len: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cachestat { +pub nr_cache: __u64, +pub nr_dirty: __u64, +pub nr_writeback: __u64, +pub nr_evicted: __u64, +pub nr_recently_evicted: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pollfd { +pub fd: crate::ctypes::c_int, +pub events: crate::ctypes::c_short, +pub revents: crate::ctypes::c_short, +} +#[repr(C)] +#[derive(Debug)] +pub struct rand_pool_info { +pub entropy_count: crate::ctypes::c_int, +pub buf_size: crate::ctypes::c_int, +pub buf: __IncompleteArrayField<__u32>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vgetrandom_opaque_params { +pub size_of_opaque_state: __u32, +pub mmap_prot: __u32, +pub mmap_flags: __u32, +pub reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_timespec { +pub tv_sec: __kernel_time64_t, +pub tv_nsec: crate::ctypes::c_longlong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_itimerspec { +pub it_interval: __kernel_timespec, +pub it_value: __kernel_timespec, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_long_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timespec { +pub tv_sec: __kernel_old_time_t, +pub tv_nsec: crate::ctypes::c_long, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_itimerval { +pub it_interval: __kernel_old_timeval, +pub it_value: __kernel_old_timeval, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sock_timeval { +pub tv_sec: __s64, +pub tv_usec: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rusage { +pub ru_utime: __kernel_old_timeval, +pub ru_stime: __kernel_old_timeval, +pub ru_maxrss: __kernel_long_t, +pub ru_ixrss: __kernel_long_t, +pub ru_idrss: __kernel_long_t, +pub ru_isrss: __kernel_long_t, +pub ru_minflt: __kernel_long_t, +pub ru_majflt: __kernel_long_t, +pub ru_nswap: __kernel_long_t, +pub ru_inblock: __kernel_long_t, +pub ru_oublock: __kernel_long_t, +pub ru_msgsnd: __kernel_long_t, +pub ru_msgrcv: __kernel_long_t, +pub ru_nsignals: __kernel_long_t, +pub ru_nvcsw: __kernel_long_t, +pub ru_nivcsw: __kernel_long_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rlimit { +pub rlim_cur: __kernel_ulong_t, +pub rlim_max: __kernel_ulong_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rlimit64 { +pub rlim_cur: __u64, +pub rlim_max: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct clone_args { +pub flags: __u64, +pub pidfd: __u64, +pub child_tid: __u64, +pub parent_tid: __u64, +pub exit_signal: __u64, +pub stack: __u64, +pub stack_size: __u64, +pub tls: __u64, +pub set_tid: __u64, +pub set_tid_size: __u64, +pub cgroup: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigset_t { +pub sig: [crate::ctypes::c_ulong; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigaction { +pub sa_handler: __sighandler_t, +pub sa_flags: crate::ctypes::c_ulong, +pub sa_restorer: __sigrestore_t, +pub sa_mask: sigset_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigaltstack { +pub ss_sp: *mut crate::ctypes::c_void, +pub ss_flags: crate::ctypes::c_int, +pub ss_size: __kernel_size_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_1 { +pub _pid: __kernel_pid_t, +pub _uid: __kernel_uid32_t, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __sifields__bindgen_ty_2 { +pub _tid: __kernel_timer_t, +pub _overrun: crate::ctypes::c_int, +pub _sigval: sigval_t, +pub _sys_private: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __sifields__bindgen_ty_3 { +pub _pid: __kernel_pid_t, +pub _uid: __kernel_uid32_t, +pub _sigval: sigval_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_4 { +pub _pid: __kernel_pid_t, +pub _uid: __kernel_uid32_t, +pub _status: crate::ctypes::c_int, +pub _utime: __kernel_clock_t, +pub _stime: __kernel_clock_t, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __sifields__bindgen_ty_5 { +pub _addr: *mut crate::ctypes::c_void, +pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { +pub _dummy_bnd: [crate::ctypes::c_char; 8usize], +pub _lower: *mut crate::ctypes::c_void, +pub _upper: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { +pub _dummy_pkey: [crate::ctypes::c_char; 8usize], +pub _pkey: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { +pub _data: crate::ctypes::c_ulong, +pub _type: __u32, +pub _flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_6 { +pub _band: crate::ctypes::c_long, +pub _fd: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_7 { +pub _call_addr: *mut crate::ctypes::c_void, +pub _syscall: crate::ctypes::c_int, +pub _arch: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct siginfo { +pub __bindgen_anon_1: siginfo__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { +pub si_signo: crate::ctypes::c_int, +pub si_errno: crate::ctypes::c_int, +pub si_code: crate::ctypes::c_int, +pub _sifields: __sifields, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sigevent { +pub sigev_value: sigval_t, +pub sigev_signo: crate::ctypes::c_int, +pub sigev_notify: crate::ctypes::c_int, +pub _sigev_un: sigevent__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { +pub _function: ::core::option::Option, +pub _attribute: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statx_timestamp { +pub tv_sec: __s64, +pub tv_nsec: __u32, +pub __reserved: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statx { +pub stx_mask: __u32, +pub stx_blksize: __u32, +pub stx_attributes: __u64, +pub stx_nlink: __u32, +pub stx_uid: __u32, +pub stx_gid: __u32, +pub stx_mode: __u16, +pub __spare0: [__u16; 1usize], +pub stx_ino: __u64, +pub stx_size: __u64, +pub stx_blocks: __u64, +pub stx_attributes_mask: __u64, +pub stx_atime: statx_timestamp, +pub stx_btime: statx_timestamp, +pub stx_ctime: statx_timestamp, +pub stx_mtime: statx_timestamp, +pub stx_rdev_major: __u32, +pub stx_rdev_minor: __u32, +pub stx_dev_major: __u32, +pub stx_dev_minor: __u32, +pub stx_mnt_id: __u64, +pub stx_dio_mem_align: __u32, +pub stx_dio_offset_align: __u32, +pub stx_subvol: __u64, +pub stx_atomic_write_unit_min: __u32, +pub stx_atomic_write_unit_max: __u32, +pub stx_atomic_write_segments_max: __u32, +pub stx_dio_read_offset_align: __u32, +pub stx_atomic_write_unit_max_opt: __u32, +pub __spare2: [__u32; 1usize], +pub __spare3: [__u64; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct termios { +pub c_iflag: tcflag_t, +pub c_oflag: tcflag_t, +pub c_cflag: tcflag_t, +pub c_lflag: tcflag_t, +pub c_line: cc_t, +pub c_cc: [cc_t; 19usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct termios2 { +pub c_iflag: tcflag_t, +pub c_oflag: tcflag_t, +pub c_cflag: tcflag_t, +pub c_lflag: tcflag_t, +pub c_line: cc_t, +pub c_cc: [cc_t; 19usize], +pub c_ispeed: speed_t, +pub c_ospeed: speed_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ktermios { +pub c_iflag: tcflag_t, +pub c_oflag: tcflag_t, +pub c_cflag: tcflag_t, +pub c_lflag: tcflag_t, +pub c_line: cc_t, +pub c_cc: [cc_t; 19usize], +pub c_ispeed: speed_t, +pub c_ospeed: speed_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct winsize { +pub ws_row: crate::ctypes::c_ushort, +pub ws_col: crate::ctypes::c_ushort, +pub ws_xpixel: crate::ctypes::c_ushort, +pub ws_ypixel: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct termio { +pub c_iflag: crate::ctypes::c_ushort, +pub c_oflag: crate::ctypes::c_ushort, +pub c_cflag: crate::ctypes::c_ushort, +pub c_lflag: crate::ctypes::c_ushort, +pub c_line: crate::ctypes::c_uchar, +pub c_cc: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timespec { +pub tv_sec: __kernel_old_time_t, +pub tv_nsec: crate::ctypes::c_long, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timeval { +pub tv_sec: __kernel_old_time_t, +pub tv_usec: __kernel_suseconds_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct itimerspec { +pub it_interval: timespec, +pub it_value: timespec, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct itimerval { +pub it_interval: timeval, +pub it_value: timeval, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timezone { +pub tz_minuteswest: crate::ctypes::c_int, +pub tz_dsttime: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iovec { +pub iov_base: *mut crate::ctypes::c_void, +pub iov_len: __kernel_size_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dmabuf_cmsg { +pub frag_offset: __u64, +pub frag_size: __u32, +pub frag_token: __u32, +pub dmabuf_id: __u32, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dmabuf_token { +pub token_start: __u32, +pub token_count: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xattr_args { +pub value: __u64, +pub size: __u32, +pub flags: __u32, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct uffd_msg { +pub event: __u8, +pub reserved1: __u8, +pub reserved2: __u16, +pub reserved3: __u32, +pub arg: uffd_msg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { +pub flags: __u64, +pub address: __u64, +pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { +pub ufd: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { +pub from: __u64, +pub to: __u64, +pub len: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { +pub start: __u64, +pub end: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { +pub reserved1: __u64, +pub reserved2: __u64, +pub reserved3: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_api { +pub api: __u64, +pub features: __u64, +pub ioctls: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_range { +pub start: __u64, +pub len: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_register { +pub range: uffdio_range, +pub mode: __u64, +pub ioctls: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_copy { +pub dst: __u64, +pub src: __u64, +pub len: __u64, +pub mode: __u64, +pub copy: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_zeropage { +pub range: uffdio_range, +pub mode: __u64, +pub zeropage: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_writeprotect { +pub range: uffdio_range, +pub mode: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_continue { +pub range: uffdio_range, +pub mode: __u64, +pub mapped: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_poison { +pub range: uffdio_range, +pub mode: __u64, +pub updated: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_move { +pub dst: __u64, +pub src: __u64, +pub len: __u64, +pub mode: __u64, +pub move_: __s64, +} +#[repr(C)] +#[derive(Debug)] +pub struct linux_dirent64 { +pub d_ino: crate::ctypes::c_ulong, +pub d_off: crate::ctypes::c_long, +pub d_reclen: __u16, +pub d_type: __u8, +pub d_name: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stat { +pub st_dev: crate::ctypes::c_ulong, +pub st_ino: crate::ctypes::c_ulong, +pub st_mode: crate::ctypes::c_uint, +pub st_nlink: crate::ctypes::c_uint, +pub st_uid: crate::ctypes::c_uint, +pub st_gid: crate::ctypes::c_uint, +pub st_rdev: crate::ctypes::c_ulong, +pub __pad1: crate::ctypes::c_ulong, +pub st_size: crate::ctypes::c_long, +pub st_blksize: crate::ctypes::c_int, +pub __pad2: crate::ctypes::c_int, +pub st_blocks: crate::ctypes::c_long, +pub st_atime: crate::ctypes::c_long, +pub st_atime_nsec: crate::ctypes::c_ulong, +pub st_mtime: crate::ctypes::c_long, +pub st_mtime_nsec: crate::ctypes::c_ulong, +pub st_ctime: crate::ctypes::c_long, +pub st_ctime_nsec: crate::ctypes::c_ulong, +pub __unused4: crate::ctypes::c_uint, +pub __unused5: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statfs { +pub f_type: __kernel_long_t, +pub f_bsize: __kernel_long_t, +pub f_blocks: __kernel_long_t, +pub f_bfree: __kernel_long_t, +pub f_bavail: __kernel_long_t, +pub f_files: __kernel_long_t, +pub f_ffree: __kernel_long_t, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: __kernel_long_t, +pub f_frsize: __kernel_long_t, +pub f_flags: __kernel_long_t, +pub f_spare: [__kernel_long_t; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statfs64 { +pub f_type: __kernel_long_t, +pub f_bsize: __kernel_long_t, +pub f_blocks: __u64, +pub f_bfree: __u64, +pub f_bavail: __u64, +pub f_files: __u64, +pub f_ffree: __u64, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: __kernel_long_t, +pub f_frsize: __kernel_long_t, +pub f_flags: __kernel_long_t, +pub f_spare: [__kernel_long_t; 4usize], +} +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct compat_statfs64 { +pub f_type: __u32, +pub f_bsize: __u32, +pub f_blocks: __u64, +pub f_bfree: __u64, +pub f_bavail: __u64, +pub f_files: __u64, +pub f_ffree: __u64, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: __u32, +pub f_frsize: __u32, +pub f_flags: __u32, +pub f_spare: [__u32; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_desc { +pub entry_number: crate::ctypes::c_uint, +pub base_addr: crate::ctypes::c_uint, +pub limit: crate::ctypes::c_uint, +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, +pub __bindgen_padding_0: [u8; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct kernel_sigset_t { +pub sig: [crate::ctypes::c_ulong; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct kernel_sigaction { +pub sa_handler_kernel: __kernel_sighandler_t, +pub sa_flags: crate::ctypes::c_ulong, +pub sa_restorer: __sigrestore_t, +pub sa_mask: kernel_sigset_t, +} +pub const LINUX_VERSION_CODE: u32 = 397312; +pub const LINUX_VERSION_MAJOR: u32 = 6; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 16; +pub const LINUX_VERSION_SUBLEVEL: u32 = 0; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const __FD_SETSIZE: u32 = 1024; +pub const _LINUX_CAPABILITY_VERSION_1: u32 = 429392688; +pub const _LINUX_CAPABILITY_U32S_1: u32 = 1; +pub const _LINUX_CAPABILITY_VERSION_2: u32 = 537333798; +pub const _LINUX_CAPABILITY_U32S_2: u32 = 2; +pub const _LINUX_CAPABILITY_VERSION_3: u32 = 537396514; +pub const _LINUX_CAPABILITY_U32S_3: u32 = 2; +pub const VFS_CAP_REVISION_MASK: u32 = 4278190080; +pub const VFS_CAP_REVISION_SHIFT: u32 = 24; +pub const VFS_CAP_FLAGS_MASK: i64 = -4278190081; +pub const VFS_CAP_FLAGS_EFFECTIVE: u32 = 1; +pub const VFS_CAP_REVISION_1: u32 = 16777216; +pub const VFS_CAP_U32_1: u32 = 1; +pub const VFS_CAP_REVISION_2: u32 = 33554432; +pub const VFS_CAP_U32_2: u32 = 2; +pub const VFS_CAP_REVISION_3: u32 = 50331648; +pub const VFS_CAP_U32_3: u32 = 2; +pub const VFS_CAP_U32: u32 = 2; +pub const VFS_CAP_REVISION: u32 = 50331648; +pub const _LINUX_CAPABILITY_VERSION: u32 = 429392688; +pub const _LINUX_CAPABILITY_U32S: u32 = 1; +pub const CAP_CHOWN: u32 = 0; +pub const CAP_DAC_OVERRIDE: u32 = 1; +pub const CAP_DAC_READ_SEARCH: u32 = 2; +pub const CAP_FOWNER: u32 = 3; +pub const CAP_FSETID: u32 = 4; +pub const CAP_KILL: u32 = 5; +pub const CAP_SETGID: u32 = 6; +pub const CAP_SETUID: u32 = 7; +pub const CAP_SETPCAP: u32 = 8; +pub const CAP_LINUX_IMMUTABLE: u32 = 9; +pub const CAP_NET_BIND_SERVICE: u32 = 10; +pub const CAP_NET_BROADCAST: u32 = 11; +pub const CAP_NET_ADMIN: u32 = 12; +pub const CAP_NET_RAW: u32 = 13; +pub const CAP_IPC_LOCK: u32 = 14; +pub const CAP_IPC_OWNER: u32 = 15; +pub const CAP_SYS_MODULE: u32 = 16; +pub const CAP_SYS_RAWIO: u32 = 17; +pub const CAP_SYS_CHROOT: u32 = 18; +pub const CAP_SYS_PTRACE: u32 = 19; +pub const CAP_SYS_PACCT: u32 = 20; +pub const CAP_SYS_ADMIN: u32 = 21; +pub const CAP_SYS_BOOT: u32 = 22; +pub const CAP_SYS_NICE: u32 = 23; +pub const CAP_SYS_RESOURCE: u32 = 24; +pub const CAP_SYS_TIME: u32 = 25; +pub const CAP_SYS_TTY_CONFIG: u32 = 26; +pub const CAP_MKNOD: u32 = 27; +pub const CAP_LEASE: u32 = 28; +pub const CAP_AUDIT_WRITE: u32 = 29; +pub const CAP_AUDIT_CONTROL: u32 = 30; +pub const CAP_SETFCAP: u32 = 31; +pub const CAP_MAC_OVERRIDE: u32 = 32; +pub const CAP_MAC_ADMIN: u32 = 33; +pub const CAP_SYSLOG: u32 = 34; +pub const CAP_WAKE_ALARM: u32 = 35; +pub const CAP_BLOCK_SUSPEND: u32 = 36; +pub const CAP_AUDIT_READ: u32 = 37; +pub const CAP_PERFMON: u32 = 38; +pub const CAP_BPF: u32 = 39; +pub const CAP_CHECKPOINT_RESTORE: u32 = 40; +pub const CAP_LAST_CAP: u32 = 40; +pub const O_DIRECTORY: u32 = 16384; +pub const O_NOFOLLOW: u32 = 32768; +pub const O_DIRECT: u32 = 65536; +pub const O_LARGEFILE: u32 = 131072; +pub const O_ACCMODE: u32 = 3; +pub const O_RDONLY: u32 = 0; +pub const O_WRONLY: u32 = 1; +pub const O_RDWR: u32 = 2; +pub const O_CREAT: u32 = 64; +pub const O_EXCL: u32 = 128; +pub const O_NOCTTY: u32 = 256; +pub const O_TRUNC: u32 = 512; +pub const O_APPEND: u32 = 1024; +pub const O_NONBLOCK: u32 = 2048; +pub const O_DSYNC: u32 = 4096; +pub const FASYNC: u32 = 8192; +pub const O_NOATIME: u32 = 262144; +pub const O_CLOEXEC: u32 = 524288; +pub const __O_SYNC: u32 = 1048576; +pub const O_SYNC: u32 = 1052672; +pub const O_PATH: u32 = 2097152; +pub const __O_TMPFILE: u32 = 4194304; +pub const O_TMPFILE: u32 = 4210688; +pub const O_NDELAY: u32 = 2048; +pub const F_DUPFD: u32 = 0; +pub const F_GETFD: u32 = 1; +pub const F_SETFD: u32 = 2; +pub const F_GETFL: u32 = 3; +pub const F_SETFL: u32 = 4; +pub const F_GETLK: u32 = 5; +pub const F_SETLK: u32 = 6; +pub const F_SETLKW: u32 = 7; +pub const F_SETOWN: u32 = 8; +pub const F_GETOWN: u32 = 9; +pub const F_SETSIG: u32 = 10; +pub const F_GETSIG: u32 = 11; +pub const F_SETOWN_EX: u32 = 15; +pub const F_GETOWN_EX: u32 = 16; +pub const F_GETOWNER_UIDS: u32 = 17; +pub const F_OFD_GETLK: u32 = 36; +pub const F_OFD_SETLK: u32 = 37; +pub const F_OFD_SETLKW: u32 = 38; +pub const F_OWNER_TID: u32 = 0; +pub const F_OWNER_PID: u32 = 1; +pub const F_OWNER_PGRP: u32 = 2; +pub const FD_CLOEXEC: u32 = 1; +pub const F_RDLCK: u32 = 0; +pub const F_WRLCK: u32 = 1; +pub const F_UNLCK: u32 = 2; +pub const F_EXLCK: u32 = 4; +pub const F_SHLCK: u32 = 8; +pub const LOCK_SH: u32 = 1; +pub const LOCK_EX: u32 = 2; +pub const LOCK_NB: u32 = 4; +pub const LOCK_UN: u32 = 8; +pub const LOCK_MAND: u32 = 32; +pub const LOCK_READ: u32 = 64; +pub const LOCK_WRITE: u32 = 128; +pub const LOCK_RW: u32 = 192; +pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; +pub const RESOLVE_NO_XDEV: u32 = 1; +pub const RESOLVE_NO_MAGICLINKS: u32 = 2; +pub const RESOLVE_NO_SYMLINKS: u32 = 4; +pub const RESOLVE_BENEATH: u32 = 8; +pub const RESOLVE_IN_ROOT: u32 = 16; +pub const RESOLVE_CACHED: u32 = 32; +pub const F_SETLEASE: u32 = 1024; +pub const F_GETLEASE: u32 = 1025; +pub const F_NOTIFY: u32 = 1026; +pub const F_DUPFD_QUERY: u32 = 1027; +pub const F_CREATED_QUERY: u32 = 1028; +pub const F_CANCELLK: u32 = 1029; +pub const F_DUPFD_CLOEXEC: u32 = 1030; +pub const F_SETPIPE_SZ: u32 = 1031; +pub const F_GETPIPE_SZ: u32 = 1032; +pub const F_ADD_SEALS: u32 = 1033; +pub const F_GET_SEALS: u32 = 1034; +pub const F_SEAL_SEAL: u32 = 1; +pub const F_SEAL_SHRINK: u32 = 2; +pub const F_SEAL_GROW: u32 = 4; +pub const F_SEAL_WRITE: u32 = 8; +pub const F_SEAL_FUTURE_WRITE: u32 = 16; +pub const F_SEAL_EXEC: u32 = 32; +pub const F_GET_RW_HINT: u32 = 1035; +pub const F_SET_RW_HINT: u32 = 1036; +pub const F_GET_FILE_RW_HINT: u32 = 1037; +pub const F_SET_FILE_RW_HINT: u32 = 1038; +pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; +pub const RWH_WRITE_LIFE_NONE: u32 = 1; +pub const RWH_WRITE_LIFE_SHORT: u32 = 2; +pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; +pub const RWH_WRITE_LIFE_LONG: u32 = 4; +pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; +pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const DN_ACCESS: u32 = 1; +pub const DN_MODIFY: u32 = 2; +pub const DN_CREATE: u32 = 4; +pub const DN_DELETE: u32 = 8; +pub const DN_RENAME: u32 = 16; +pub const DN_ATTRIB: u32 = 32; +pub const DN_MULTISHOT: u32 = 2147483648; +pub const AT_FDCWD: i32 = -100; +pub const AT_SYMLINK_NOFOLLOW: u32 = 256; +pub const AT_SYMLINK_FOLLOW: u32 = 1024; +pub const AT_NO_AUTOMOUNT: u32 = 2048; +pub const AT_EMPTY_PATH: u32 = 4096; +pub const AT_STATX_SYNC_TYPE: u32 = 24576; +pub const AT_STATX_SYNC_AS_STAT: u32 = 0; +pub const AT_STATX_FORCE_SYNC: u32 = 8192; +pub const AT_STATX_DONT_SYNC: u32 = 16384; +pub const AT_RECURSIVE: u32 = 32768; +pub const AT_RENAME_NOREPLACE: u32 = 1; +pub const AT_RENAME_EXCHANGE: u32 = 2; +pub const AT_RENAME_WHITEOUT: u32 = 4; +pub const AT_EACCESS: u32 = 512; +pub const AT_REMOVEDIR: u32 = 512; +pub const AT_HANDLE_FID: u32 = 512; +pub const AT_HANDLE_MNT_ID_UNIQUE: u32 = 1; +pub const AT_HANDLE_CONNECTABLE: u32 = 2; +pub const AT_EXECVE_CHECK: u32 = 65536; +pub const EPOLL_CLOEXEC: u32 = 524288; +pub const EPOLL_CTL_ADD: u32 = 1; +pub const EPOLL_CTL_DEL: u32 = 2; +pub const EPOLL_CTL_MOD: u32 = 3; +pub const EPOLL_IOC_TYPE: u32 = 138; +pub const POSIX_FADV_NORMAL: u32 = 0; +pub const POSIX_FADV_RANDOM: u32 = 1; +pub const POSIX_FADV_SEQUENTIAL: u32 = 2; +pub const POSIX_FADV_WILLNEED: u32 = 3; +pub const POSIX_FADV_DONTNEED: u32 = 4; +pub const POSIX_FADV_NOREUSE: u32 = 5; +pub const FALLOC_FL_ALLOCATE_RANGE: u32 = 0; +pub const FALLOC_FL_KEEP_SIZE: u32 = 1; +pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; +pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; +pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; +pub const FALLOC_FL_ZERO_RANGE: u32 = 16; +pub const FALLOC_FL_INSERT_RANGE: u32 = 32; +pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; +pub const NR_OPEN: u32 = 1024; +pub const NGROUPS_MAX: u32 = 65536; +pub const ARG_MAX: u32 = 131072; +pub const LINK_MAX: u32 = 127; +pub const MAX_CANON: u32 = 255; +pub const MAX_INPUT: u32 = 255; +pub const NAME_MAX: u32 = 255; +pub const PATH_MAX: u32 = 4096; +pub const PIPE_BUF: u32 = 4096; +pub const XATTR_NAME_MAX: u32 = 255; +pub const XATTR_SIZE_MAX: u32 = 65536; +pub const XATTR_LIST_MAX: u32 = 65536; +pub const RTSIG_MAX: u32 = 32; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_SIZEBITS: u32 = 14; +pub const _IOC_DIRBITS: u32 = 2; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 16383; +pub const _IOC_DIRMASK: u32 = 3; +pub const _IOC_NRSHIFT: u32 = 0; +pub const _IOC_TYPESHIFT: u32 = 8; +pub const _IOC_SIZESHIFT: u32 = 16; +pub const _IOC_DIRSHIFT: u32 = 30; +pub const _IOC_NONE: u32 = 0; +pub const _IOC_WRITE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const IOC_IN: u32 = 1073741824; +pub const IOC_OUT: u32 = 2147483648; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 1073676288; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; +pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; +pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; +pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; +pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; +pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; +pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; +pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; +pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; +pub const FSCRYPT_POLICY_V1: u32 = 0; +pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; +pub const FSCRYPT_POLICY_V2: u32 = 2; +pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; +pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; +pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; +pub const FSCRYPT_ADD_KEY_FLAG_HW_WRAPPED: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; +pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; +pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; +pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; +pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; +pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FS_POLICY_FLAGS_VALID: u32 = 7; +pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; +pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; +pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; +pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; +pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; +pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; +pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; +pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; +pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FS_MAX_KEY_SIZE: u32 = 64; +pub const MS_RDONLY: u32 = 1; +pub const MS_NOSUID: u32 = 2; +pub const MS_NODEV: u32 = 4; +pub const MS_NOEXEC: u32 = 8; +pub const MS_SYNCHRONOUS: u32 = 16; +pub const MS_REMOUNT: u32 = 32; +pub const MS_MANDLOCK: u32 = 64; +pub const MS_DIRSYNC: u32 = 128; +pub const MS_NOSYMFOLLOW: u32 = 256; +pub const MS_NOATIME: u32 = 1024; +pub const MS_NODIRATIME: u32 = 2048; +pub const MS_BIND: u32 = 4096; +pub const MS_MOVE: u32 = 8192; +pub const MS_REC: u32 = 16384; +pub const MS_VERBOSE: u32 = 32768; +pub const MS_SILENT: u32 = 32768; +pub const MS_POSIXACL: u32 = 65536; +pub const MS_UNBINDABLE: u32 = 131072; +pub const MS_PRIVATE: u32 = 262144; +pub const MS_SLAVE: u32 = 524288; +pub const MS_SHARED: u32 = 1048576; +pub const MS_RELATIME: u32 = 2097152; +pub const MS_KERNMOUNT: u32 = 4194304; +pub const MS_I_VERSION: u32 = 8388608; +pub const MS_STRICTATIME: u32 = 16777216; +pub const MS_LAZYTIME: u32 = 33554432; +pub const MS_SUBMOUNT: u32 = 67108864; +pub const MS_NOREMOTELOCK: u32 = 134217728; +pub const MS_NOSEC: u32 = 268435456; +pub const MS_BORN: u32 = 536870912; +pub const MS_ACTIVE: u32 = 1073741824; +pub const MS_NOUSER: u32 = 2147483648; +pub const MS_RMT_MASK: u32 = 41943121; +pub const MS_MGC_VAL: u32 = 3236757504; +pub const MS_MGC_MSK: u32 = 4294901760; +pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_CLOEXEC: u32 = 524288; +pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; +pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; +pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; +pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; +pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; +pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; +pub const MOVE_MOUNT_SET_GROUP: u32 = 256; +pub const MOVE_MOUNT_BENEATH: u32 = 512; +pub const MOVE_MOUNT__MASK: u32 = 887; +pub const FSOPEN_CLOEXEC: u32 = 1; +pub const FSPICK_CLOEXEC: u32 = 1; +pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; +pub const FSPICK_NO_AUTOMOUNT: u32 = 4; +pub const FSPICK_EMPTY_PATH: u32 = 8; +pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const MOUNT_ATTR_RDONLY: u32 = 1; +pub const MOUNT_ATTR_NOSUID: u32 = 2; +pub const MOUNT_ATTR_NODEV: u32 = 4; +pub const MOUNT_ATTR_NOEXEC: u32 = 8; +pub const MOUNT_ATTR__ATIME: u32 = 112; +pub const MOUNT_ATTR_RELATIME: u32 = 0; +pub const MOUNT_ATTR_NOATIME: u32 = 16; +pub const MOUNT_ATTR_STRICTATIME: u32 = 32; +pub const MOUNT_ATTR_NODIRATIME: u32 = 128; +pub const MOUNT_ATTR_IDMAP: u32 = 1048576; +pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; +pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; +pub const MNT_ID_REQ_SIZE_VER0: u32 = 24; +pub const MNT_ID_REQ_SIZE_VER1: u32 = 32; +pub const STATMOUNT_SB_BASIC: u32 = 1; +pub const STATMOUNT_MNT_BASIC: u32 = 2; +pub const STATMOUNT_PROPAGATE_FROM: u32 = 4; +pub const STATMOUNT_MNT_ROOT: u32 = 8; +pub const STATMOUNT_MNT_POINT: u32 = 16; +pub const STATMOUNT_FS_TYPE: u32 = 32; +pub const STATMOUNT_MNT_NS_ID: u32 = 64; +pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; +pub const STATMOUNT_SUPPORTED_MASK: u32 = 4096; +pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; +pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; +pub const LSMT_ROOT: i32 = -1; +pub const LISTMOUNT_REVERSE: u32 = 1; +pub const INR_OPEN_CUR: u32 = 1024; +pub const INR_OPEN_MAX: u32 = 4096; +pub const BLOCK_SIZE_BITS: u32 = 10; +pub const BLOCK_SIZE: u32 = 1024; +pub const IO_INTEGRITY_CHK_GUARD: u32 = 1; +pub const IO_INTEGRITY_CHK_REFTAG: u32 = 2; +pub const IO_INTEGRITY_CHK_APPTAG: u32 = 4; +pub const IO_INTEGRITY_VALID_FLAGS: u32 = 7; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const SEEK_DATA: u32 = 3; +pub const SEEK_HOLE: u32 = 4; +pub const SEEK_MAX: u32 = 4; +pub const RENAME_NOREPLACE: u32 = 1; +pub const RENAME_EXCHANGE: u32 = 2; +pub const RENAME_WHITEOUT: u32 = 4; +pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; +pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; +pub const NR_FILE: u32 = 8192; +pub const FS_XFLAG_REALTIME: u32 = 1; +pub const FS_XFLAG_PREALLOC: u32 = 2; +pub const FS_XFLAG_IMMUTABLE: u32 = 8; +pub const FS_XFLAG_APPEND: u32 = 16; +pub const FS_XFLAG_SYNC: u32 = 32; +pub const FS_XFLAG_NOATIME: u32 = 64; +pub const FS_XFLAG_NODUMP: u32 = 128; +pub const FS_XFLAG_RTINHERIT: u32 = 256; +pub const FS_XFLAG_PROJINHERIT: u32 = 512; +pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; +pub const FS_XFLAG_EXTSIZE: u32 = 2048; +pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; +pub const FS_XFLAG_NODEFRAG: u32 = 8192; +pub const FS_XFLAG_FILESTREAM: u32 = 16384; +pub const FS_XFLAG_DAX: u32 = 32768; +pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_HASATTR: u32 = 2147483648; +pub const BMAP_IOCTL: u32 = 1; +pub const FSLABEL_MAX: u32 = 256; +pub const FS_SECRM_FL: u32 = 1; +pub const FS_UNRM_FL: u32 = 2; +pub const FS_COMPR_FL: u32 = 4; +pub const FS_SYNC_FL: u32 = 8; +pub const FS_IMMUTABLE_FL: u32 = 16; +pub const FS_APPEND_FL: u32 = 32; +pub const FS_NODUMP_FL: u32 = 64; +pub const FS_NOATIME_FL: u32 = 128; +pub const FS_DIRTY_FL: u32 = 256; +pub const FS_COMPRBLK_FL: u32 = 512; +pub const FS_NOCOMP_FL: u32 = 1024; +pub const FS_ENCRYPT_FL: u32 = 2048; +pub const FS_BTREE_FL: u32 = 4096; +pub const FS_INDEX_FL: u32 = 4096; +pub const FS_IMAGIC_FL: u32 = 8192; +pub const FS_JOURNAL_DATA_FL: u32 = 16384; +pub const FS_NOTAIL_FL: u32 = 32768; +pub const FS_DIRSYNC_FL: u32 = 65536; +pub const FS_TOPDIR_FL: u32 = 131072; +pub const FS_HUGE_FILE_FL: u32 = 262144; +pub const FS_EXTENT_FL: u32 = 524288; +pub const FS_VERITY_FL: u32 = 1048576; +pub const FS_EA_INODE_FL: u32 = 2097152; +pub const FS_EOFBLOCKS_FL: u32 = 4194304; +pub const FS_NOCOW_FL: u32 = 8388608; +pub const FS_DAX_FL: u32 = 33554432; +pub const FS_INLINE_DATA_FL: u32 = 268435456; +pub const FS_PROJINHERIT_FL: u32 = 536870912; +pub const FS_CASEFOLD_FL: u32 = 1073741824; +pub const FS_RESERVED_FL: u32 = 2147483648; +pub const FS_FL_USER_VISIBLE: u32 = 253951; +pub const FS_FL_USER_MODIFIABLE: u32 = 229631; +pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; +pub const SYNC_FILE_RANGE_WRITE: u32 = 2; +pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; +pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; +pub const PROCFS_IOCTL_MAGIC: u8 = 102u8; +pub const PAGE_IS_WPALLOWED: u32 = 1; +pub const PAGE_IS_WRITTEN: u32 = 2; +pub const PAGE_IS_FILE: u32 = 4; +pub const PAGE_IS_PRESENT: u32 = 8; +pub const PAGE_IS_SWAPPED: u32 = 16; +pub const PAGE_IS_PFNZERO: u32 = 32; +pub const PAGE_IS_HUGE: u32 = 64; +pub const PAGE_IS_SOFT_DIRTY: u32 = 128; +pub const PAGE_IS_GUARD: u32 = 256; +pub const PM_SCAN_WP_MATCHING: u32 = 1; +pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FUTEX_WAIT: u32 = 0; +pub const FUTEX_WAKE: u32 = 1; +pub const FUTEX_FD: u32 = 2; +pub const FUTEX_REQUEUE: u32 = 3; +pub const FUTEX_CMP_REQUEUE: u32 = 4; +pub const FUTEX_WAKE_OP: u32 = 5; +pub const FUTEX_LOCK_PI: u32 = 6; +pub const FUTEX_UNLOCK_PI: u32 = 7; +pub const FUTEX_TRYLOCK_PI: u32 = 8; +pub const FUTEX_WAIT_BITSET: u32 = 9; +pub const FUTEX_WAKE_BITSET: u32 = 10; +pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; +pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; +pub const FUTEX_LOCK_PI2: u32 = 13; +pub const FUTEX_PRIVATE_FLAG: u32 = 128; +pub const FUTEX_CLOCK_REALTIME: u32 = 256; +pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_WAIT_PRIVATE: u32 = 128; +pub const FUTEX_WAKE_PRIVATE: u32 = 129; +pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; +pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; +pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; +pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; +pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; +pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; +pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; +pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; +pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; +pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; +pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX2_SIZE_U8: u32 = 0; +pub const FUTEX2_SIZE_U16: u32 = 1; +pub const FUTEX2_SIZE_U32: u32 = 2; +pub const FUTEX2_SIZE_U64: u32 = 3; +pub const FUTEX2_NUMA: u32 = 4; +pub const FUTEX2_MPOL: u32 = 8; +pub const FUTEX2_PRIVATE: u32 = 128; +pub const FUTEX2_SIZE_MASK: u32 = 3; +pub const FUTEX_32: u32 = 2; +pub const FUTEX_NO_NODE: i32 = -1; +pub const FUTEX_WAITV_MAX: u32 = 128; +pub const FUTEX_WAITERS: u32 = 2147483648; +pub const FUTEX_OWNER_DIED: u32 = 1073741824; +pub const FUTEX_TID_MASK: u32 = 1073741823; +pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; +pub const FUTEX_OP_SET: u32 = 0; +pub const FUTEX_OP_ADD: u32 = 1; +pub const FUTEX_OP_OR: u32 = 2; +pub const FUTEX_OP_ANDN: u32 = 3; +pub const FUTEX_OP_XOR: u32 = 4; +pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; +pub const FUTEX_OP_CMP_EQ: u32 = 0; +pub const FUTEX_OP_CMP_NE: u32 = 1; +pub const FUTEX_OP_CMP_LT: u32 = 2; +pub const FUTEX_OP_CMP_LE: u32 = 3; +pub const FUTEX_OP_CMP_GT: u32 = 4; +pub const FUTEX_OP_CMP_GE: u32 = 5; +pub const IN_ACCESS: u32 = 1; +pub const IN_MODIFY: u32 = 2; +pub const IN_ATTRIB: u32 = 4; +pub const IN_CLOSE_WRITE: u32 = 8; +pub const IN_CLOSE_NOWRITE: u32 = 16; +pub const IN_OPEN: u32 = 32; +pub const IN_MOVED_FROM: u32 = 64; +pub const IN_MOVED_TO: u32 = 128; +pub const IN_CREATE: u32 = 256; +pub const IN_DELETE: u32 = 512; +pub const IN_DELETE_SELF: u32 = 1024; +pub const IN_MOVE_SELF: u32 = 2048; +pub const IN_UNMOUNT: u32 = 8192; +pub const IN_Q_OVERFLOW: u32 = 16384; +pub const IN_IGNORED: u32 = 32768; +pub const IN_CLOSE: u32 = 24; +pub const IN_MOVE: u32 = 192; +pub const IN_ONLYDIR: u32 = 16777216; +pub const IN_DONT_FOLLOW: u32 = 33554432; +pub const IN_EXCL_UNLINK: u32 = 67108864; +pub const IN_MASK_CREATE: u32 = 268435456; +pub const IN_MASK_ADD: u32 = 536870912; +pub const IN_ISDIR: u32 = 1073741824; +pub const IN_ONESHOT: u32 = 2147483648; +pub const IN_ALL_EVENTS: u32 = 4095; +pub const IN_CLOEXEC: u32 = 524288; +pub const IN_NONBLOCK: u32 = 2048; +pub const ADFS_SUPER_MAGIC: u32 = 44533; +pub const AFFS_SUPER_MAGIC: u32 = 44543; +pub const AFS_SUPER_MAGIC: u32 = 1397113167; +pub const AUTOFS_SUPER_MAGIC: u32 = 391; +pub const CEPH_SUPER_MAGIC: u32 = 12805120; +pub const CODA_SUPER_MAGIC: u32 = 1937076805; +pub const CRAMFS_MAGIC: u32 = 684539205; +pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; +pub const DEBUGFS_MAGIC: u32 = 1684170528; +pub const SECURITYFS_MAGIC: u32 = 1935894131; +pub const SELINUX_MAGIC: u32 = 4185718668; +pub const SMACK_MAGIC: u32 = 1128357203; +pub const RAMFS_MAGIC: u32 = 2240043254; +pub const TMPFS_MAGIC: u32 = 16914836; +pub const HUGETLBFS_MAGIC: u32 = 2508478710; +pub const SQUASHFS_MAGIC: u32 = 1936814952; +pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; +pub const EFS_SUPER_MAGIC: u32 = 4278867; +pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; +pub const EXT2_SUPER_MAGIC: u32 = 61267; +pub const EXT3_SUPER_MAGIC: u32 = 61267; +pub const XENFS_SUPER_MAGIC: u32 = 2881100148; +pub const EXT4_SUPER_MAGIC: u32 = 61267; +pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; +pub const NILFS_SUPER_MAGIC: u32 = 13364; +pub const F2FS_SUPER_MAGIC: u32 = 4076150800; +pub const HPFS_SUPER_MAGIC: u32 = 4187351113; +pub const ISOFS_SUPER_MAGIC: u32 = 38496; +pub const JFFS2_SUPER_MAGIC: u32 = 29366; +pub const XFS_SUPER_MAGIC: u32 = 1481003842; +pub const PSTOREFS_MAGIC: u32 = 1634035564; +pub const EFIVARFS_MAGIC: u32 = 3730735588; +pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; +pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; +pub const FUSE_SUPER_MAGIC: u32 = 1702057286; +pub const BCACHEFS_SUPER_MAGIC: u32 = 3393526350; +pub const MINIX_SUPER_MAGIC: u32 = 4991; +pub const MINIX_SUPER_MAGIC2: u32 = 5007; +pub const MINIX2_SUPER_MAGIC: u32 = 9320; +pub const MINIX2_SUPER_MAGIC2: u32 = 9336; +pub const MINIX3_SUPER_MAGIC: u32 = 19802; +pub const MSDOS_SUPER_MAGIC: u32 = 19780; +pub const EXFAT_SUPER_MAGIC: u32 = 538032816; +pub const NCP_SUPER_MAGIC: u32 = 22092; +pub const NFS_SUPER_MAGIC: u32 = 26985; +pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; +pub const OPENPROM_SUPER_MAGIC: u32 = 40865; +pub const QNX4_SUPER_MAGIC: u32 = 47; +pub const QNX6_SUPER_MAGIC: u32 = 1746473250; +pub const AFS_FS_MAGIC: u32 = 1799439955; +pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; +pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9] = b"ReIsErFs\0"; +pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr2Fs\0"; +pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr3Fs\0"; +pub const SMB_SUPER_MAGIC: u32 = 20859; +pub const CIFS_SUPER_MAGIC: u32 = 4283649346; +pub const SMB2_SUPER_MAGIC: u32 = 4266872130; +pub const CGROUP_SUPER_MAGIC: u32 = 2613483; +pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; +pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; +pub const STACK_END_MAGIC: u32 = 1470918301; +pub const TRACEFS_MAGIC: u32 = 1953653091; +pub const V9FS_MAGIC: u32 = 16914839; +pub const BDEVFS_MAGIC: u32 = 1650746742; +pub const DAXFS_MAGIC: u32 = 1684300152; +pub const BINFMTFS_MAGIC: u32 = 1112100429; +pub const DEVPTS_SUPER_MAGIC: u32 = 7377; +pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; +pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; +pub const PIPEFS_MAGIC: u32 = 1346981957; +pub const PROC_SUPER_MAGIC: u32 = 40864; +pub const SOCKFS_MAGIC: u32 = 1397703499; +pub const SYSFS_MAGIC: u32 = 1650812274; +pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; +pub const MTD_INODE_FS_MAGIC: u32 = 288389204; +pub const ANON_INODE_FS_MAGIC: u32 = 151263540; +pub const BTRFS_TEST_MAGIC: u32 = 1936880249; +pub const NSFS_MAGIC: u32 = 1853056627; +pub const BPF_FS_MAGIC: u32 = 3405662737; +pub const AAFS_MAGIC: u32 = 1513908720; +pub const ZONEFS_MAGIC: u32 = 1515144787; +pub const UDF_SUPER_MAGIC: u32 = 352400198; +pub const DMA_BUF_MAGIC: u32 = 1145913666; +pub const DEVMEM_MAGIC: u32 = 1162691661; +pub const SECRETMEM_MAGIC: u32 = 1397048141; +pub const PID_FS_MAGIC: u32 = 1346978886; +pub const PROT_READ: u32 = 1; +pub const PROT_WRITE: u32 = 2; +pub const PROT_EXEC: u32 = 4; +pub const PROT_SEM: u32 = 8; +pub const PROT_NONE: u32 = 0; +pub const PROT_GROWSDOWN: u32 = 16777216; +pub const PROT_GROWSUP: u32 = 33554432; +pub const MAP_TYPE: u32 = 15; +pub const MAP_FIXED: u32 = 16; +pub const MAP_ANONYMOUS: u32 = 32; +pub const MAP_POPULATE: u32 = 32768; +pub const MAP_NONBLOCK: u32 = 65536; +pub const MAP_STACK: u32 = 131072; +pub const MAP_HUGETLB: u32 = 262144; +pub const MAP_SYNC: u32 = 524288; +pub const MAP_FIXED_NOREPLACE: u32 = 1048576; +pub const MAP_UNINITIALIZED: u32 = 67108864; +pub const MLOCK_ONFAULT: u32 = 1; +pub const MS_ASYNC: u32 = 1; +pub const MS_INVALIDATE: u32 = 2; +pub const MS_SYNC: u32 = 4; +pub const MADV_NORMAL: u32 = 0; +pub const MADV_RANDOM: u32 = 1; +pub const MADV_SEQUENTIAL: u32 = 2; +pub const MADV_WILLNEED: u32 = 3; +pub const MADV_DONTNEED: u32 = 4; +pub const MADV_FREE: u32 = 8; +pub const MADV_REMOVE: u32 = 9; +pub const MADV_DONTFORK: u32 = 10; +pub const MADV_DOFORK: u32 = 11; +pub const MADV_HWPOISON: u32 = 100; +pub const MADV_SOFT_OFFLINE: u32 = 101; +pub const MADV_MERGEABLE: u32 = 12; +pub const MADV_UNMERGEABLE: u32 = 13; +pub const MADV_HUGEPAGE: u32 = 14; +pub const MADV_NOHUGEPAGE: u32 = 15; +pub const MADV_DONTDUMP: u32 = 16; +pub const MADV_DODUMP: u32 = 17; +pub const MADV_WIPEONFORK: u32 = 18; +pub const MADV_KEEPONFORK: u32 = 19; +pub const MADV_COLD: u32 = 20; +pub const MADV_PAGEOUT: u32 = 21; +pub const MADV_POPULATE_READ: u32 = 22; +pub const MADV_POPULATE_WRITE: u32 = 23; +pub const MADV_DONTNEED_LOCKED: u32 = 24; +pub const MADV_COLLAPSE: u32 = 25; +pub const MADV_GUARD_INSTALL: u32 = 102; +pub const MADV_GUARD_REMOVE: u32 = 103; +pub const MAP_FILE: u32 = 0; +pub const PKEY_UNRESTRICTED: u32 = 0; +pub const PKEY_DISABLE_ACCESS: u32 = 1; +pub const PKEY_DISABLE_WRITE: u32 = 2; +pub const PKEY_ACCESS_MASK: u32 = 3; +pub const MAP_GROWSDOWN: u32 = 256; +pub const MAP_DENYWRITE: u32 = 2048; +pub const MAP_EXECUTABLE: u32 = 4096; +pub const MAP_LOCKED: u32 = 8192; +pub const MAP_NORESERVE: u32 = 16384; +pub const MCL_CURRENT: u32 = 1; +pub const MCL_FUTURE: u32 = 2; +pub const MCL_ONFAULT: u32 = 4; +pub const SHADOW_STACK_SET_TOKEN: u32 = 1; +pub const SHADOW_STACK_SET_MARKER: u32 = 2; +pub const PROT_BTI: u32 = 16; +pub const PROT_MTE: u32 = 32; +pub const PKEY_DISABLE_EXECUTE: u32 = 4; +pub const PKEY_DISABLE_READ: u32 = 8; +pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; +pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; +pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; +pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; +pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; +pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; +pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; +pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; +pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; +pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; +pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; +pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; +pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; +pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; +pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; +pub const MREMAP_MAYMOVE: u32 = 1; +pub const MREMAP_FIXED: u32 = 2; +pub const MREMAP_DONTUNMAP: u32 = 4; +pub const OVERCOMMIT_GUESS: u32 = 0; +pub const OVERCOMMIT_ALWAYS: u32 = 1; +pub const OVERCOMMIT_NEVER: u32 = 2; +pub const MAP_SHARED: u32 = 1; +pub const MAP_PRIVATE: u32 = 2; +pub const MAP_SHARED_VALIDATE: u32 = 3; +pub const MAP_DROPPABLE: u32 = 8; +pub const MAP_HUGE_SHIFT: u32 = 26; +pub const MAP_HUGE_MASK: u32 = 63; +pub const MAP_HUGE_16KB: u32 = 939524096; +pub const MAP_HUGE_64KB: u32 = 1073741824; +pub const MAP_HUGE_512KB: u32 = 1275068416; +pub const MAP_HUGE_1MB: u32 = 1342177280; +pub const MAP_HUGE_2MB: u32 = 1409286144; +pub const MAP_HUGE_8MB: u32 = 1543503872; +pub const MAP_HUGE_16MB: u32 = 1610612736; +pub const MAP_HUGE_32MB: u32 = 1677721600; +pub const MAP_HUGE_256MB: u32 = 1879048192; +pub const MAP_HUGE_512MB: u32 = 1946157056; +pub const MAP_HUGE_1GB: u32 = 2013265920; +pub const MAP_HUGE_2GB: u32 = 2080374784; +pub const MAP_HUGE_16GB: u32 = 2281701376; +pub const POLLIN: u32 = 1; +pub const POLLPRI: u32 = 2; +pub const POLLOUT: u32 = 4; +pub const POLLERR: u32 = 8; +pub const POLLHUP: u32 = 16; +pub const POLLNVAL: u32 = 32; +pub const POLLRDNORM: u32 = 64; +pub const POLLRDBAND: u32 = 128; +pub const POLLWRNORM: u32 = 256; +pub const POLLWRBAND: u32 = 512; +pub const POLLMSG: u32 = 1024; +pub const POLLREMOVE: u32 = 4096; +pub const POLLRDHUP: u32 = 8192; +pub const GRND_NONBLOCK: u32 = 1; +pub const GRND_RANDOM: u32 = 2; +pub const GRND_INSECURE: u32 = 4; +pub const LINUX_REBOOT_MAGIC1: u32 = 4276215469; +pub const LINUX_REBOOT_MAGIC2: u32 = 672274793; +pub const LINUX_REBOOT_MAGIC2A: u32 = 85072278; +pub const LINUX_REBOOT_MAGIC2B: u32 = 369367448; +pub const LINUX_REBOOT_MAGIC2C: u32 = 537993216; +pub const LINUX_REBOOT_CMD_RESTART: u32 = 19088743; +pub const LINUX_REBOOT_CMD_HALT: u32 = 3454992675; +pub const LINUX_REBOOT_CMD_CAD_ON: u32 = 2309737967; +pub const LINUX_REBOOT_CMD_CAD_OFF: u32 = 0; +pub const LINUX_REBOOT_CMD_POWER_OFF: u32 = 1126301404; +pub const LINUX_REBOOT_CMD_RESTART2: u32 = 2712847316; +pub const LINUX_REBOOT_CMD_SW_SUSPEND: u32 = 3489725666; +pub const LINUX_REBOOT_CMD_KEXEC: u32 = 1163412803; +pub const RUSAGE_SELF: u32 = 0; +pub const RUSAGE_CHILDREN: i32 = -1; +pub const RUSAGE_BOTH: i32 = -2; +pub const RUSAGE_THREAD: u32 = 1; +pub const RLIM64_INFINITY: i32 = -1; +pub const PRIO_MIN: i32 = -20; +pub const PRIO_MAX: u32 = 20; +pub const PRIO_PROCESS: u32 = 0; +pub const PRIO_PGRP: u32 = 1; +pub const PRIO_USER: u32 = 2; +pub const _STK_LIM: u32 = 8388608; +pub const MLOCK_LIMIT: u32 = 8388608; +pub const RLIMIT_CPU: u32 = 0; +pub const RLIMIT_FSIZE: u32 = 1; +pub const RLIMIT_DATA: u32 = 2; +pub const RLIMIT_STACK: u32 = 3; +pub const RLIMIT_CORE: u32 = 4; +pub const RLIMIT_RSS: u32 = 5; +pub const RLIMIT_NPROC: u32 = 6; +pub const RLIMIT_NOFILE: u32 = 7; +pub const RLIMIT_MEMLOCK: u32 = 8; +pub const RLIMIT_AS: u32 = 9; +pub const RLIMIT_LOCKS: u32 = 10; +pub const RLIMIT_SIGPENDING: u32 = 11; +pub const RLIMIT_MSGQUEUE: u32 = 12; +pub const RLIMIT_NICE: u32 = 13; +pub const RLIMIT_RTPRIO: u32 = 14; +pub const RLIMIT_RTTIME: u32 = 15; +pub const RLIM_NLIMITS: u32 = 16; +pub const RLIM_INFINITY: i32 = -1; +pub const CSIGNAL: u32 = 255; +pub const CLONE_VM: u32 = 256; +pub const CLONE_FS: u32 = 512; +pub const CLONE_FILES: u32 = 1024; +pub const CLONE_SIGHAND: u32 = 2048; +pub const CLONE_PIDFD: u32 = 4096; +pub const CLONE_PTRACE: u32 = 8192; +pub const CLONE_VFORK: u32 = 16384; +pub const CLONE_PARENT: u32 = 32768; +pub const CLONE_THREAD: u32 = 65536; +pub const CLONE_NEWNS: u32 = 131072; +pub const CLONE_SYSVSEM: u32 = 262144; +pub const CLONE_SETTLS: u32 = 524288; +pub const CLONE_PARENT_SETTID: u32 = 1048576; +pub const CLONE_CHILD_CLEARTID: u32 = 2097152; +pub const CLONE_DETACHED: u32 = 4194304; +pub const CLONE_UNTRACED: u32 = 8388608; +pub const CLONE_CHILD_SETTID: u32 = 16777216; +pub const CLONE_NEWCGROUP: u32 = 33554432; +pub const CLONE_NEWUTS: u32 = 67108864; +pub const CLONE_NEWIPC: u32 = 134217728; +pub const CLONE_NEWUSER: u32 = 268435456; +pub const CLONE_NEWPID: u32 = 536870912; +pub const CLONE_NEWNET: u32 = 1073741824; +pub const CLONE_IO: u32 = 2147483648; +pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; +pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_NEWTIME: u32 = 128; +pub const CLONE_ARGS_SIZE_VER0: u32 = 64; +pub const CLONE_ARGS_SIZE_VER1: u32 = 80; +pub const CLONE_ARGS_SIZE_VER2: u32 = 88; +pub const SCHED_NORMAL: u32 = 0; +pub const SCHED_FIFO: u32 = 1; +pub const SCHED_RR: u32 = 2; +pub const SCHED_BATCH: u32 = 3; +pub const SCHED_IDLE: u32 = 5; +pub const SCHED_DEADLINE: u32 = 6; +pub const SCHED_EXT: u32 = 7; +pub const SCHED_RESET_ON_FORK: u32 = 1073741824; +pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; +pub const SCHED_FLAG_RECLAIM: u32 = 2; +pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; +pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; +pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; +pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; +pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; +pub const SCHED_FLAG_KEEP_ALL: u32 = 24; +pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; +pub const SCHED_FLAG_ALL: u32 = 127; +pub const SA_RESTORER: u32 = 67108864; +pub const MINSIGSTKSZ: u32 = 5120; +pub const SIGSTKSZ: u32 = 16384; +pub const _NSIG: u32 = 64; +pub const _NSIG_BPW: u32 = 64; +pub const _NSIG_WORDS: u32 = 1; +pub const SIGHUP: u32 = 1; +pub const SIGINT: u32 = 2; +pub const SIGQUIT: u32 = 3; +pub const SIGILL: u32 = 4; +pub const SIGTRAP: u32 = 5; +pub const SIGABRT: u32 = 6; +pub const SIGIOT: u32 = 6; +pub const SIGBUS: u32 = 7; +pub const SIGFPE: u32 = 8; +pub const SIGKILL: u32 = 9; +pub const SIGUSR1: u32 = 10; +pub const SIGSEGV: u32 = 11; +pub const SIGUSR2: u32 = 12; +pub const SIGPIPE: u32 = 13; +pub const SIGALRM: u32 = 14; +pub const SIGTERM: u32 = 15; +pub const SIGSTKFLT: u32 = 16; +pub const SIGCHLD: u32 = 17; +pub const SIGCONT: u32 = 18; +pub const SIGSTOP: u32 = 19; +pub const SIGTSTP: u32 = 20; +pub const SIGTTIN: u32 = 21; +pub const SIGTTOU: u32 = 22; +pub const SIGURG: u32 = 23; +pub const SIGXCPU: u32 = 24; +pub const SIGXFSZ: u32 = 25; +pub const SIGVTALRM: u32 = 26; +pub const SIGPROF: u32 = 27; +pub const SIGWINCH: u32 = 28; +pub const SIGIO: u32 = 29; +pub const SIGPOLL: u32 = 29; +pub const SIGPWR: u32 = 30; +pub const SIGSYS: u32 = 31; +pub const SIGUNUSED: u32 = 31; +pub const SIGRTMIN: u32 = 32; +pub const SIGRTMAX: u32 = 64; +pub const SA_NOCLDSTOP: u32 = 1; +pub const SA_NOCLDWAIT: u32 = 2; +pub const SA_SIGINFO: u32 = 4; +pub const SA_UNSUPPORTED: u32 = 1024; +pub const SA_EXPOSE_TAGBITS: u32 = 2048; +pub const SA_ONSTACK: u32 = 134217728; +pub const SA_RESTART: u32 = 268435456; +pub const SA_NODEFER: u32 = 1073741824; +pub const SA_RESETHAND: u32 = 2147483648; +pub const SA_NOMASK: u32 = 1073741824; +pub const SA_ONESHOT: u32 = 2147483648; +pub const SIG_BLOCK: u32 = 0; +pub const SIG_UNBLOCK: u32 = 1; +pub const SIG_SETMASK: u32 = 2; +pub const SI_MAX_SIZE: u32 = 128; +pub const SI_USER: u32 = 0; +pub const SI_KERNEL: u32 = 128; +pub const SI_QUEUE: i32 = -1; +pub const SI_TIMER: i32 = -2; +pub const SI_MESGQ: i32 = -3; +pub const SI_ASYNCIO: i32 = -4; +pub const SI_SIGIO: i32 = -5; +pub const SI_TKILL: i32 = -6; +pub const SI_DETHREAD: i32 = -7; +pub const SI_ASYNCNL: i32 = -60; +pub const ILL_ILLOPC: u32 = 1; +pub const ILL_ILLOPN: u32 = 2; +pub const ILL_ILLADR: u32 = 3; +pub const ILL_ILLTRP: u32 = 4; +pub const ILL_PRVOPC: u32 = 5; +pub const ILL_PRVREG: u32 = 6; +pub const ILL_COPROC: u32 = 7; +pub const ILL_BADSTK: u32 = 8; +pub const ILL_BADIADDR: u32 = 9; +pub const __ILL_BREAK: u32 = 10; +pub const __ILL_BNDMOD: u32 = 11; +pub const NSIGILL: u32 = 11; +pub const FPE_INTDIV: u32 = 1; +pub const FPE_INTOVF: u32 = 2; +pub const FPE_FLTDIV: u32 = 3; +pub const FPE_FLTOVF: u32 = 4; +pub const FPE_FLTUND: u32 = 5; +pub const FPE_FLTRES: u32 = 6; +pub const FPE_FLTINV: u32 = 7; +pub const FPE_FLTSUB: u32 = 8; +pub const __FPE_DECOVF: u32 = 9; +pub const __FPE_DECDIV: u32 = 10; +pub const __FPE_DECERR: u32 = 11; +pub const __FPE_INVASC: u32 = 12; +pub const __FPE_INVDEC: u32 = 13; +pub const FPE_FLTUNK: u32 = 14; +pub const FPE_CONDTRAP: u32 = 15; +pub const NSIGFPE: u32 = 15; +pub const SEGV_MAPERR: u32 = 1; +pub const SEGV_ACCERR: u32 = 2; +pub const SEGV_BNDERR: u32 = 3; +pub const SEGV_PKUERR: u32 = 4; +pub const SEGV_ACCADI: u32 = 5; +pub const SEGV_ADIDERR: u32 = 6; +pub const SEGV_ADIPERR: u32 = 7; +pub const SEGV_MTEAERR: u32 = 8; +pub const SEGV_MTESERR: u32 = 9; +pub const SEGV_CPERR: u32 = 10; +pub const NSIGSEGV: u32 = 10; +pub const BUS_ADRALN: u32 = 1; +pub const BUS_ADRERR: u32 = 2; +pub const BUS_OBJERR: u32 = 3; +pub const BUS_MCEERR_AR: u32 = 4; +pub const BUS_MCEERR_AO: u32 = 5; +pub const NSIGBUS: u32 = 5; +pub const TRAP_BRKPT: u32 = 1; +pub const TRAP_TRACE: u32 = 2; +pub const TRAP_BRANCH: u32 = 3; +pub const TRAP_HWBKPT: u32 = 4; +pub const TRAP_UNK: u32 = 5; +pub const TRAP_PERF: u32 = 6; +pub const NSIGTRAP: u32 = 6; +pub const TRAP_PERF_FLAG_ASYNC: u32 = 1; +pub const CLD_EXITED: u32 = 1; +pub const CLD_KILLED: u32 = 2; +pub const CLD_DUMPED: u32 = 3; +pub const CLD_TRAPPED: u32 = 4; +pub const CLD_STOPPED: u32 = 5; +pub const CLD_CONTINUED: u32 = 6; +pub const NSIGCHLD: u32 = 6; +pub const POLL_IN: u32 = 1; +pub const POLL_OUT: u32 = 2; +pub const POLL_MSG: u32 = 3; +pub const POLL_ERR: u32 = 4; +pub const POLL_PRI: u32 = 5; +pub const POLL_HUP: u32 = 6; +pub const NSIGPOLL: u32 = 6; +pub const SYS_SECCOMP: u32 = 1; +pub const SYS_USER_DISPATCH: u32 = 2; +pub const NSIGSYS: u32 = 2; +pub const EMT_TAGOVF: u32 = 1; +pub const NSIGEMT: u32 = 1; +pub const SIGEV_SIGNAL: u32 = 0; +pub const SIGEV_NONE: u32 = 1; +pub const SIGEV_THREAD: u32 = 2; +pub const SIGEV_THREAD_ID: u32 = 4; +pub const SIGEV_MAX_SIZE: u32 = 64; +pub const SS_ONSTACK: u32 = 1; +pub const SS_DISABLE: u32 = 2; +pub const SS_AUTODISARM: u32 = 2147483648; +pub const SS_FLAG_BITS: u32 = 2147483648; +pub const S_IFMT: u32 = 61440; +pub const S_IFSOCK: u32 = 49152; +pub const S_IFLNK: u32 = 40960; +pub const S_IFREG: u32 = 32768; +pub const S_IFBLK: u32 = 24576; +pub const S_IFDIR: u32 = 16384; +pub const S_IFCHR: u32 = 8192; +pub const S_IFIFO: u32 = 4096; +pub const S_ISUID: u32 = 2048; +pub const S_ISGID: u32 = 1024; +pub const S_ISVTX: u32 = 512; +pub const S_IRWXU: u32 = 448; +pub const S_IRUSR: u32 = 256; +pub const S_IWUSR: u32 = 128; +pub const S_IXUSR: u32 = 64; +pub const S_IRWXG: u32 = 56; +pub const S_IRGRP: u32 = 32; +pub const S_IWGRP: u32 = 16; +pub const S_IXGRP: u32 = 8; +pub const S_IRWXO: u32 = 7; +pub const S_IROTH: u32 = 4; +pub const S_IWOTH: u32 = 2; +pub const S_IXOTH: u32 = 1; +pub const STATX_TYPE: u32 = 1; +pub const STATX_MODE: u32 = 2; +pub const STATX_NLINK: u32 = 4; +pub const STATX_UID: u32 = 8; +pub const STATX_GID: u32 = 16; +pub const STATX_ATIME: u32 = 32; +pub const STATX_MTIME: u32 = 64; +pub const STATX_CTIME: u32 = 128; +pub const STATX_INO: u32 = 256; +pub const STATX_SIZE: u32 = 512; +pub const STATX_BLOCKS: u32 = 1024; +pub const STATX_BASIC_STATS: u32 = 2047; +pub const STATX_BTIME: u32 = 2048; +pub const STATX_MNT_ID: u32 = 4096; +pub const STATX_DIOALIGN: u32 = 8192; +pub const STATX_MNT_ID_UNIQUE: u32 = 16384; +pub const STATX_SUBVOL: u32 = 32768; +pub const STATX_WRITE_ATOMIC: u32 = 65536; +pub const STATX_DIO_READ_ALIGN: u32 = 131072; +pub const STATX__RESERVED: u32 = 2147483648; +pub const STATX_ALL: u32 = 4095; +pub const STATX_ATTR_COMPRESSED: u32 = 4; +pub const STATX_ATTR_IMMUTABLE: u32 = 16; +pub const STATX_ATTR_APPEND: u32 = 32; +pub const STATX_ATTR_NODUMP: u32 = 64; +pub const STATX_ATTR_ENCRYPTED: u32 = 2048; +pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; +pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; +pub const STATX_ATTR_VERITY: u32 = 1048576; +pub const STATX_ATTR_DAX: u32 = 2097152; +pub const STATX_ATTR_WRITE_ATOMIC: u32 = 4194304; +pub const IGNBRK: u32 = 1; +pub const BRKINT: u32 = 2; +pub const IGNPAR: u32 = 4; +pub const PARMRK: u32 = 8; +pub const INPCK: u32 = 16; +pub const ISTRIP: u32 = 32; +pub const INLCR: u32 = 64; +pub const IGNCR: u32 = 128; +pub const ICRNL: u32 = 256; +pub const IXANY: u32 = 2048; +pub const OPOST: u32 = 1; +pub const OCRNL: u32 = 8; +pub const ONOCR: u32 = 16; +pub const ONLRET: u32 = 32; +pub const OFILL: u32 = 64; +pub const OFDEL: u32 = 128; +pub const B0: u32 = 0; +pub const B50: u32 = 1; +pub const B75: u32 = 2; +pub const B110: u32 = 3; +pub const B134: u32 = 4; +pub const B150: u32 = 5; +pub const B200: u32 = 6; +pub const B300: u32 = 7; +pub const B600: u32 = 8; +pub const B1200: u32 = 9; +pub const B1800: u32 = 10; +pub const B2400: u32 = 11; +pub const B4800: u32 = 12; +pub const B9600: u32 = 13; +pub const B19200: u32 = 14; +pub const B38400: u32 = 15; +pub const EXTA: u32 = 14; +pub const EXTB: u32 = 15; +pub const ADDRB: u32 = 536870912; +pub const CMSPAR: u32 = 1073741824; +pub const CRTSCTS: u32 = 2147483648; +pub const IBSHIFT: u32 = 16; +pub const TCOOFF: u32 = 0; +pub const TCOON: u32 = 1; +pub const TCIOFF: u32 = 2; +pub const TCION: u32 = 3; +pub const TCIFLUSH: u32 = 0; +pub const TCOFLUSH: u32 = 1; +pub const TCIOFLUSH: u32 = 2; +pub const NCCS: u32 = 19; +pub const VINTR: u32 = 0; +pub const VQUIT: u32 = 1; +pub const VERASE: u32 = 2; +pub const VKILL: u32 = 3; +pub const VEOF: u32 = 4; +pub const VTIME: u32 = 5; +pub const VMIN: u32 = 6; +pub const VSWTC: u32 = 7; +pub const VSTART: u32 = 8; +pub const VSTOP: u32 = 9; +pub const VSUSP: u32 = 10; +pub const VEOL: u32 = 11; +pub const VREPRINT: u32 = 12; +pub const VDISCARD: u32 = 13; +pub const VWERASE: u32 = 14; +pub const VLNEXT: u32 = 15; +pub const VEOL2: u32 = 16; +pub const IUCLC: u32 = 512; +pub const IXON: u32 = 1024; +pub const IXOFF: u32 = 4096; +pub const IMAXBEL: u32 = 8192; +pub const IUTF8: u32 = 16384; +pub const OLCUC: u32 = 2; +pub const ONLCR: u32 = 4; +pub const NLDLY: u32 = 256; +pub const NL0: u32 = 0; +pub const NL1: u32 = 256; +pub const CRDLY: u32 = 1536; +pub const CR0: u32 = 0; +pub const CR1: u32 = 512; +pub const CR2: u32 = 1024; +pub const CR3: u32 = 1536; +pub const TABDLY: u32 = 6144; +pub const TAB0: u32 = 0; +pub const TAB1: u32 = 2048; +pub const TAB2: u32 = 4096; +pub const TAB3: u32 = 6144; +pub const XTABS: u32 = 6144; +pub const BSDLY: u32 = 8192; +pub const BS0: u32 = 0; +pub const BS1: u32 = 8192; +pub const VTDLY: u32 = 16384; +pub const VT0: u32 = 0; +pub const VT1: u32 = 16384; +pub const FFDLY: u32 = 32768; +pub const FF0: u32 = 0; +pub const FF1: u32 = 32768; +pub const CBAUD: u32 = 4111; +pub const CSIZE: u32 = 48; +pub const CS5: u32 = 0; +pub const CS6: u32 = 16; +pub const CS7: u32 = 32; +pub const CS8: u32 = 48; +pub const CSTOPB: u32 = 64; +pub const CREAD: u32 = 128; +pub const PARENB: u32 = 256; +pub const PARODD: u32 = 512; +pub const HUPCL: u32 = 1024; +pub const CLOCAL: u32 = 2048; +pub const CBAUDEX: u32 = 4096; +pub const BOTHER: u32 = 4096; +pub const B57600: u32 = 4097; +pub const B115200: u32 = 4098; +pub const B230400: u32 = 4099; +pub const B460800: u32 = 4100; +pub const B500000: u32 = 4101; +pub const B576000: u32 = 4102; +pub const B921600: u32 = 4103; +pub const B1000000: u32 = 4104; +pub const B1152000: u32 = 4105; +pub const B1500000: u32 = 4106; +pub const B2000000: u32 = 4107; +pub const B2500000: u32 = 4108; +pub const B3000000: u32 = 4109; +pub const B3500000: u32 = 4110; +pub const B4000000: u32 = 4111; +pub const CIBAUD: u32 = 269418496; +pub const ISIG: u32 = 1; +pub const ICANON: u32 = 2; +pub const XCASE: u32 = 4; +pub const ECHO: u32 = 8; +pub const ECHOE: u32 = 16; +pub const ECHOK: u32 = 32; +pub const ECHONL: u32 = 64; +pub const NOFLSH: u32 = 128; +pub const TOSTOP: u32 = 256; +pub const ECHOCTL: u32 = 512; +pub const ECHOPRT: u32 = 1024; +pub const ECHOKE: u32 = 2048; +pub const FLUSHO: u32 = 4096; +pub const PENDIN: u32 = 16384; +pub const IEXTEN: u32 = 32768; +pub const EXTPROC: u32 = 65536; +pub const TCSANOW: u32 = 0; +pub const TCSADRAIN: u32 = 1; +pub const TCSAFLUSH: u32 = 2; +pub const TIOCPKT_DATA: u32 = 0; +pub const TIOCPKT_FLUSHREAD: u32 = 1; +pub const TIOCPKT_FLUSHWRITE: u32 = 2; +pub const TIOCPKT_STOP: u32 = 4; +pub const TIOCPKT_START: u32 = 8; +pub const TIOCPKT_NOSTOP: u32 = 16; +pub const TIOCPKT_DOSTOP: u32 = 32; +pub const TIOCPKT_IOCTL: u32 = 64; +pub const TIOCSER_TEMT: u32 = 1; +pub const NCC: u32 = 8; +pub const TIOCM_LE: u32 = 1; +pub const TIOCM_DTR: u32 = 2; +pub const TIOCM_RTS: u32 = 4; +pub const TIOCM_ST: u32 = 8; +pub const TIOCM_SR: u32 = 16; +pub const TIOCM_CTS: u32 = 32; +pub const TIOCM_CAR: u32 = 64; +pub const TIOCM_RNG: u32 = 128; +pub const TIOCM_DSR: u32 = 256; +pub const TIOCM_CD: u32 = 64; +pub const TIOCM_RI: u32 = 128; +pub const TIOCM_OUT1: u32 = 8192; +pub const TIOCM_OUT2: u32 = 16384; +pub const TIOCM_LOOP: u32 = 32768; +pub const ITIMER_REAL: u32 = 0; +pub const ITIMER_VIRTUAL: u32 = 1; +pub const ITIMER_PROF: u32 = 2; +pub const CLOCK_REALTIME: u32 = 0; +pub const CLOCK_MONOTONIC: u32 = 1; +pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; +pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; +pub const CLOCK_MONOTONIC_RAW: u32 = 4; +pub const CLOCK_REALTIME_COARSE: u32 = 5; +pub const CLOCK_MONOTONIC_COARSE: u32 = 6; +pub const CLOCK_BOOTTIME: u32 = 7; +pub const CLOCK_REALTIME_ALARM: u32 = 8; +pub const CLOCK_BOOTTIME_ALARM: u32 = 9; +pub const CLOCK_SGI_CYCLE: u32 = 10; +pub const CLOCK_TAI: u32 = 11; +pub const MAX_CLOCKS: u32 = 16; +pub const CLOCKS_MASK: u32 = 1; +pub const CLOCKS_MONO: u32 = 1; +pub const TIMER_ABSTIME: u32 = 1; +pub const UIO_FASTIOV: u32 = 8; +pub const UIO_MAXIOV: u32 = 1024; +pub const __NR_io_setup: u32 = 0; +pub const __NR_io_destroy: u32 = 1; +pub const __NR_io_submit: u32 = 2; +pub const __NR_io_cancel: u32 = 3; +pub const __NR_io_getevents: u32 = 4; +pub const __NR_setxattr: u32 = 5; +pub const __NR_lsetxattr: u32 = 6; +pub const __NR_fsetxattr: u32 = 7; +pub const __NR_getxattr: u32 = 8; +pub const __NR_lgetxattr: u32 = 9; +pub const __NR_fgetxattr: u32 = 10; +pub const __NR_listxattr: u32 = 11; +pub const __NR_llistxattr: u32 = 12; +pub const __NR_flistxattr: u32 = 13; +pub const __NR_removexattr: u32 = 14; +pub const __NR_lremovexattr: u32 = 15; +pub const __NR_fremovexattr: u32 = 16; +pub const __NR_getcwd: u32 = 17; +pub const __NR_lookup_dcookie: u32 = 18; +pub const __NR_eventfd2: u32 = 19; +pub const __NR_epoll_create1: u32 = 20; +pub const __NR_epoll_ctl: u32 = 21; +pub const __NR_epoll_pwait: u32 = 22; +pub const __NR_dup: u32 = 23; +pub const __NR_dup3: u32 = 24; +pub const __NR_fcntl: u32 = 25; +pub const __NR_inotify_init1: u32 = 26; +pub const __NR_inotify_add_watch: u32 = 27; +pub const __NR_inotify_rm_watch: u32 = 28; +pub const __NR_ioctl: u32 = 29; +pub const __NR_ioprio_set: u32 = 30; +pub const __NR_ioprio_get: u32 = 31; +pub const __NR_flock: u32 = 32; +pub const __NR_mknodat: u32 = 33; +pub const __NR_mkdirat: u32 = 34; +pub const __NR_unlinkat: u32 = 35; +pub const __NR_symlinkat: u32 = 36; +pub const __NR_linkat: u32 = 37; +pub const __NR_renameat: u32 = 38; +pub const __NR_umount2: u32 = 39; +pub const __NR_mount: u32 = 40; +pub const __NR_pivot_root: u32 = 41; +pub const __NR_nfsservctl: u32 = 42; +pub const __NR_statfs: u32 = 43; +pub const __NR_fstatfs: u32 = 44; +pub const __NR_truncate: u32 = 45; +pub const __NR_ftruncate: u32 = 46; +pub const __NR_fallocate: u32 = 47; +pub const __NR_faccessat: u32 = 48; +pub const __NR_chdir: u32 = 49; +pub const __NR_fchdir: u32 = 50; +pub const __NR_chroot: u32 = 51; +pub const __NR_fchmod: u32 = 52; +pub const __NR_fchmodat: u32 = 53; +pub const __NR_fchownat: u32 = 54; +pub const __NR_fchown: u32 = 55; +pub const __NR_openat: u32 = 56; +pub const __NR_close: u32 = 57; +pub const __NR_vhangup: u32 = 58; +pub const __NR_pipe2: u32 = 59; +pub const __NR_quotactl: u32 = 60; +pub const __NR_getdents64: u32 = 61; +pub const __NR_lseek: u32 = 62; +pub const __NR_read: u32 = 63; +pub const __NR_write: u32 = 64; +pub const __NR_readv: u32 = 65; +pub const __NR_writev: u32 = 66; +pub const __NR_pread64: u32 = 67; +pub const __NR_pwrite64: u32 = 68; +pub const __NR_preadv: u32 = 69; +pub const __NR_pwritev: u32 = 70; +pub const __NR_sendfile: u32 = 71; +pub const __NR_pselect6: u32 = 72; +pub const __NR_ppoll: u32 = 73; +pub const __NR_signalfd4: u32 = 74; +pub const __NR_vmsplice: u32 = 75; +pub const __NR_splice: u32 = 76; +pub const __NR_tee: u32 = 77; +pub const __NR_readlinkat: u32 = 78; +pub const __NR_newfstatat: u32 = 79; +pub const __NR_fstat: u32 = 80; +pub const __NR_sync: u32 = 81; +pub const __NR_fsync: u32 = 82; +pub const __NR_fdatasync: u32 = 83; +pub const __NR_sync_file_range: u32 = 84; +pub const __NR_timerfd_create: u32 = 85; +pub const __NR_timerfd_settime: u32 = 86; +pub const __NR_timerfd_gettime: u32 = 87; +pub const __NR_utimensat: u32 = 88; +pub const __NR_acct: u32 = 89; +pub const __NR_capget: u32 = 90; +pub const __NR_capset: u32 = 91; +pub const __NR_personality: u32 = 92; +pub const __NR_exit: u32 = 93; +pub const __NR_exit_group: u32 = 94; +pub const __NR_waitid: u32 = 95; +pub const __NR_set_tid_address: u32 = 96; +pub const __NR_unshare: u32 = 97; +pub const __NR_futex: u32 = 98; +pub const __NR_set_robust_list: u32 = 99; +pub const __NR_get_robust_list: u32 = 100; +pub const __NR_nanosleep: u32 = 101; +pub const __NR_getitimer: u32 = 102; +pub const __NR_setitimer: u32 = 103; +pub const __NR_kexec_load: u32 = 104; +pub const __NR_init_module: u32 = 105; +pub const __NR_delete_module: u32 = 106; +pub const __NR_timer_create: u32 = 107; +pub const __NR_timer_gettime: u32 = 108; +pub const __NR_timer_getoverrun: u32 = 109; +pub const __NR_timer_settime: u32 = 110; +pub const __NR_timer_delete: u32 = 111; +pub const __NR_clock_settime: u32 = 112; +pub const __NR_clock_gettime: u32 = 113; +pub const __NR_clock_getres: u32 = 114; +pub const __NR_clock_nanosleep: u32 = 115; +pub const __NR_syslog: u32 = 116; +pub const __NR_ptrace: u32 = 117; +pub const __NR_sched_setparam: u32 = 118; +pub const __NR_sched_setscheduler: u32 = 119; +pub const __NR_sched_getscheduler: u32 = 120; +pub const __NR_sched_getparam: u32 = 121; +pub const __NR_sched_setaffinity: u32 = 122; +pub const __NR_sched_getaffinity: u32 = 123; +pub const __NR_sched_yield: u32 = 124; +pub const __NR_sched_get_priority_max: u32 = 125; +pub const __NR_sched_get_priority_min: u32 = 126; +pub const __NR_sched_rr_get_interval: u32 = 127; +pub const __NR_restart_syscall: u32 = 128; +pub const __NR_kill: u32 = 129; +pub const __NR_tkill: u32 = 130; +pub const __NR_tgkill: u32 = 131; +pub const __NR_sigaltstack: u32 = 132; +pub const __NR_rt_sigsuspend: u32 = 133; +pub const __NR_rt_sigaction: u32 = 134; +pub const __NR_rt_sigprocmask: u32 = 135; +pub const __NR_rt_sigpending: u32 = 136; +pub const __NR_rt_sigtimedwait: u32 = 137; +pub const __NR_rt_sigqueueinfo: u32 = 138; +pub const __NR_rt_sigreturn: u32 = 139; +pub const __NR_setpriority: u32 = 140; +pub const __NR_getpriority: u32 = 141; +pub const __NR_reboot: u32 = 142; +pub const __NR_setregid: u32 = 143; +pub const __NR_setgid: u32 = 144; +pub const __NR_setreuid: u32 = 145; +pub const __NR_setuid: u32 = 146; +pub const __NR_setresuid: u32 = 147; +pub const __NR_getresuid: u32 = 148; +pub const __NR_setresgid: u32 = 149; +pub const __NR_getresgid: u32 = 150; +pub const __NR_setfsuid: u32 = 151; +pub const __NR_setfsgid: u32 = 152; +pub const __NR_times: u32 = 153; +pub const __NR_setpgid: u32 = 154; +pub const __NR_getpgid: u32 = 155; +pub const __NR_getsid: u32 = 156; +pub const __NR_setsid: u32 = 157; +pub const __NR_getgroups: u32 = 158; +pub const __NR_setgroups: u32 = 159; +pub const __NR_uname: u32 = 160; +pub const __NR_sethostname: u32 = 161; +pub const __NR_setdomainname: u32 = 162; +pub const __NR_getrlimit: u32 = 163; +pub const __NR_setrlimit: u32 = 164; +pub const __NR_getrusage: u32 = 165; +pub const __NR_umask: u32 = 166; +pub const __NR_prctl: u32 = 167; +pub const __NR_getcpu: u32 = 168; +pub const __NR_gettimeofday: u32 = 169; +pub const __NR_settimeofday: u32 = 170; +pub const __NR_adjtimex: u32 = 171; +pub const __NR_getpid: u32 = 172; +pub const __NR_getppid: u32 = 173; +pub const __NR_getuid: u32 = 174; +pub const __NR_geteuid: u32 = 175; +pub const __NR_getgid: u32 = 176; +pub const __NR_getegid: u32 = 177; +pub const __NR_gettid: u32 = 178; +pub const __NR_sysinfo: u32 = 179; +pub const __NR_mq_open: u32 = 180; +pub const __NR_mq_unlink: u32 = 181; +pub const __NR_mq_timedsend: u32 = 182; +pub const __NR_mq_timedreceive: u32 = 183; +pub const __NR_mq_notify: u32 = 184; +pub const __NR_mq_getsetattr: u32 = 185; +pub const __NR_msgget: u32 = 186; +pub const __NR_msgctl: u32 = 187; +pub const __NR_msgrcv: u32 = 188; +pub const __NR_msgsnd: u32 = 189; +pub const __NR_semget: u32 = 190; +pub const __NR_semctl: u32 = 191; +pub const __NR_semtimedop: u32 = 192; +pub const __NR_semop: u32 = 193; +pub const __NR_shmget: u32 = 194; +pub const __NR_shmctl: u32 = 195; +pub const __NR_shmat: u32 = 196; +pub const __NR_shmdt: u32 = 197; +pub const __NR_socket: u32 = 198; +pub const __NR_socketpair: u32 = 199; +pub const __NR_bind: u32 = 200; +pub const __NR_listen: u32 = 201; +pub const __NR_accept: u32 = 202; +pub const __NR_connect: u32 = 203; +pub const __NR_getsockname: u32 = 204; +pub const __NR_getpeername: u32 = 205; +pub const __NR_sendto: u32 = 206; +pub const __NR_recvfrom: u32 = 207; +pub const __NR_setsockopt: u32 = 208; +pub const __NR_getsockopt: u32 = 209; +pub const __NR_shutdown: u32 = 210; +pub const __NR_sendmsg: u32 = 211; +pub const __NR_recvmsg: u32 = 212; +pub const __NR_readahead: u32 = 213; +pub const __NR_brk: u32 = 214; +pub const __NR_munmap: u32 = 215; +pub const __NR_mremap: u32 = 216; +pub const __NR_add_key: u32 = 217; +pub const __NR_request_key: u32 = 218; +pub const __NR_keyctl: u32 = 219; +pub const __NR_clone: u32 = 220; +pub const __NR_execve: u32 = 221; +pub const __NR_mmap: u32 = 222; +pub const __NR_fadvise64: u32 = 223; +pub const __NR_swapon: u32 = 224; +pub const __NR_swapoff: u32 = 225; +pub const __NR_mprotect: u32 = 226; +pub const __NR_msync: u32 = 227; +pub const __NR_mlock: u32 = 228; +pub const __NR_munlock: u32 = 229; +pub const __NR_mlockall: u32 = 230; +pub const __NR_munlockall: u32 = 231; +pub const __NR_mincore: u32 = 232; +pub const __NR_madvise: u32 = 233; +pub const __NR_remap_file_pages: u32 = 234; +pub const __NR_mbind: u32 = 235; +pub const __NR_get_mempolicy: u32 = 236; +pub const __NR_set_mempolicy: u32 = 237; +pub const __NR_migrate_pages: u32 = 238; +pub const __NR_move_pages: u32 = 239; +pub const __NR_rt_tgsigqueueinfo: u32 = 240; +pub const __NR_perf_event_open: u32 = 241; +pub const __NR_accept4: u32 = 242; +pub const __NR_recvmmsg: u32 = 243; +pub const __NR_wait4: u32 = 260; +pub const __NR_prlimit64: u32 = 261; +pub const __NR_fanotify_init: u32 = 262; +pub const __NR_fanotify_mark: u32 = 263; +pub const __NR_name_to_handle_at: u32 = 264; +pub const __NR_open_by_handle_at: u32 = 265; +pub const __NR_clock_adjtime: u32 = 266; +pub const __NR_syncfs: u32 = 267; +pub const __NR_setns: u32 = 268; +pub const __NR_sendmmsg: u32 = 269; +pub const __NR_process_vm_readv: u32 = 270; +pub const __NR_process_vm_writev: u32 = 271; +pub const __NR_kcmp: u32 = 272; +pub const __NR_finit_module: u32 = 273; +pub const __NR_sched_setattr: u32 = 274; +pub const __NR_sched_getattr: u32 = 275; +pub const __NR_renameat2: u32 = 276; +pub const __NR_seccomp: u32 = 277; +pub const __NR_getrandom: u32 = 278; +pub const __NR_memfd_create: u32 = 279; +pub const __NR_bpf: u32 = 280; +pub const __NR_execveat: u32 = 281; +pub const __NR_userfaultfd: u32 = 282; +pub const __NR_membarrier: u32 = 283; +pub const __NR_mlock2: u32 = 284; +pub const __NR_copy_file_range: u32 = 285; +pub const __NR_preadv2: u32 = 286; +pub const __NR_pwritev2: u32 = 287; +pub const __NR_pkey_mprotect: u32 = 288; +pub const __NR_pkey_alloc: u32 = 289; +pub const __NR_pkey_free: u32 = 290; +pub const __NR_statx: u32 = 291; +pub const __NR_io_pgetevents: u32 = 292; +pub const __NR_rseq: u32 = 293; +pub const __NR_kexec_file_load: u32 = 294; +pub const __NR_pidfd_send_signal: u32 = 424; +pub const __NR_io_uring_setup: u32 = 425; +pub const __NR_io_uring_enter: u32 = 426; +pub const __NR_io_uring_register: u32 = 427; +pub const __NR_open_tree: u32 = 428; +pub const __NR_move_mount: u32 = 429; +pub const __NR_fsopen: u32 = 430; +pub const __NR_fsconfig: u32 = 431; +pub const __NR_fsmount: u32 = 432; +pub const __NR_fspick: u32 = 433; +pub const __NR_pidfd_open: u32 = 434; +pub const __NR_clone3: u32 = 435; +pub const __NR_close_range: u32 = 436; +pub const __NR_openat2: u32 = 437; +pub const __NR_pidfd_getfd: u32 = 438; +pub const __NR_faccessat2: u32 = 439; +pub const __NR_process_madvise: u32 = 440; +pub const __NR_epoll_pwait2: u32 = 441; +pub const __NR_mount_setattr: u32 = 442; +pub const __NR_quotactl_fd: u32 = 443; +pub const __NR_landlock_create_ruleset: u32 = 444; +pub const __NR_landlock_add_rule: u32 = 445; +pub const __NR_landlock_restrict_self: u32 = 446; +pub const __NR_memfd_secret: u32 = 447; +pub const __NR_process_mrelease: u32 = 448; +pub const __NR_futex_waitv: u32 = 449; +pub const __NR_set_mempolicy_home_node: u32 = 450; +pub const __NR_cachestat: u32 = 451; +pub const __NR_fchmodat2: u32 = 452; +pub const __NR_map_shadow_stack: u32 = 453; +pub const __NR_futex_wake: u32 = 454; +pub const __NR_futex_wait: u32 = 455; +pub const __NR_futex_requeue: u32 = 456; +pub const __NR_statmount: u32 = 457; +pub const __NR_listmount: u32 = 458; +pub const __NR_lsm_get_self_attr: u32 = 459; +pub const __NR_lsm_set_self_attr: u32 = 460; +pub const __NR_lsm_list_modules: u32 = 461; +pub const __NR_mseal: u32 = 462; +pub const __NR_setxattrat: u32 = 463; +pub const __NR_getxattrat: u32 = 464; +pub const __NR_listxattrat: u32 = 465; +pub const __NR_removexattrat: u32 = 466; +pub const __NR_open_tree_attr: u32 = 467; +pub const WNOHANG: u32 = 1; +pub const WUNTRACED: u32 = 2; +pub const WSTOPPED: u32 = 2; +pub const WEXITED: u32 = 4; +pub const WCONTINUED: u32 = 8; +pub const WNOWAIT: u32 = 16777216; +pub const __WNOTHREAD: u32 = 536870912; +pub const __WALL: u32 = 1073741824; +pub const __WCLONE: u32 = 2147483648; +pub const P_ALL: u32 = 0; +pub const P_PID: u32 = 1; +pub const P_PGID: u32 = 2; +pub const P_PIDFD: u32 = 3; +pub const XATTR_CREATE: u32 = 1; +pub const XATTR_REPLACE: u32 = 2; +pub const XATTR_OS2_PREFIX: &[u8; 5] = b"os2.\0"; +pub const XATTR_MAC_OSX_PREFIX: &[u8; 5] = b"osx.\0"; +pub const XATTR_BTRFS_PREFIX: &[u8; 7] = b"btrfs.\0"; +pub const XATTR_HURD_PREFIX: &[u8; 5] = b"gnu.\0"; +pub const XATTR_SECURITY_PREFIX: &[u8; 10] = b"security.\0"; +pub const XATTR_SYSTEM_PREFIX: &[u8; 8] = b"system.\0"; +pub const XATTR_TRUSTED_PREFIX: &[u8; 9] = b"trusted.\0"; +pub const XATTR_USER_PREFIX: &[u8; 6] = b"user.\0"; +pub const XATTR_EVM_SUFFIX: &[u8; 4] = b"evm\0"; +pub const XATTR_NAME_EVM: &[u8; 13] = b"security.evm\0"; +pub const XATTR_IMA_SUFFIX: &[u8; 4] = b"ima\0"; +pub const XATTR_NAME_IMA: &[u8; 13] = b"security.ima\0"; +pub const XATTR_SELINUX_SUFFIX: &[u8; 8] = b"selinux\0"; +pub const XATTR_NAME_SELINUX: &[u8; 17] = b"security.selinux\0"; +pub const XATTR_SMACK_SUFFIX: &[u8; 8] = b"SMACK64\0"; +pub const XATTR_SMACK_IPIN: &[u8; 12] = b"SMACK64IPIN\0"; +pub const XATTR_SMACK_IPOUT: &[u8; 13] = b"SMACK64IPOUT\0"; +pub const XATTR_SMACK_EXEC: &[u8; 12] = b"SMACK64EXEC\0"; +pub const XATTR_SMACK_TRANSMUTE: &[u8; 17] = b"SMACK64TRANSMUTE\0"; +pub const XATTR_SMACK_MMAP: &[u8; 12] = b"SMACK64MMAP\0"; +pub const XATTR_NAME_SMACK: &[u8; 17] = b"security.SMACK64\0"; +pub const XATTR_NAME_SMACKIPIN: &[u8; 21] = b"security.SMACK64IPIN\0"; +pub const XATTR_NAME_SMACKIPOUT: &[u8; 22] = b"security.SMACK64IPOUT\0"; +pub const XATTR_NAME_SMACKEXEC: &[u8; 21] = b"security.SMACK64EXEC\0"; +pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26] = b"security.SMACK64TRANSMUTE\0"; +pub const XATTR_NAME_SMACKMMAP: &[u8; 21] = b"security.SMACK64MMAP\0"; +pub const XATTR_APPARMOR_SUFFIX: &[u8; 9] = b"apparmor\0"; +pub const XATTR_NAME_APPARMOR: &[u8; 18] = b"security.apparmor\0"; +pub const XATTR_CAPS_SUFFIX: &[u8; 11] = b"capability\0"; +pub const XATTR_NAME_CAPS: &[u8; 20] = b"security.capability\0"; +pub const XATTR_BPF_LSM_SUFFIX: &[u8; 5] = b"bpf.\0"; +pub const XATTR_NAME_BPF_LSM: &[u8; 14] = b"security.bpf.\0"; +pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17] = b"posix_acl_access\0"; +pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24] = b"system.posix_acl_access\0"; +pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18] = b"posix_acl_default\0"; +pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25] = b"system.posix_acl_default\0"; +pub const MFD_CLOEXEC: u32 = 1; +pub const MFD_ALLOW_SEALING: u32 = 2; +pub const MFD_HUGETLB: u32 = 4; +pub const MFD_NOEXEC_SEAL: u32 = 8; +pub const MFD_EXEC: u32 = 16; +pub const MFD_HUGE_SHIFT: u32 = 26; +pub const MFD_HUGE_MASK: u32 = 63; +pub const MFD_HUGE_64KB: u32 = 1073741824; +pub const MFD_HUGE_512KB: u32 = 1275068416; +pub const MFD_HUGE_1MB: u32 = 1342177280; +pub const MFD_HUGE_2MB: u32 = 1409286144; +pub const MFD_HUGE_8MB: u32 = 1543503872; +pub const MFD_HUGE_16MB: u32 = 1610612736; +pub const MFD_HUGE_32MB: u32 = 1677721600; +pub const MFD_HUGE_256MB: u32 = 1879048192; +pub const MFD_HUGE_512MB: u32 = 1946157056; +pub const MFD_HUGE_1GB: u32 = 2013265920; +pub const MFD_HUGE_2GB: u32 = 2080374784; +pub const MFD_HUGE_16GB: u32 = 2281701376; +pub const TFD_TIMER_ABSTIME: u32 = 1; +pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; +pub const TFD_CLOEXEC: u32 = 524288; +pub const TFD_NONBLOCK: u32 = 2048; +pub const USERFAULTFD_IOC: u32 = 170; +pub const _UFFDIO_REGISTER: u32 = 0; +pub const _UFFDIO_UNREGISTER: u32 = 1; +pub const _UFFDIO_WAKE: u32 = 2; +pub const _UFFDIO_COPY: u32 = 3; +pub const _UFFDIO_ZEROPAGE: u32 = 4; +pub const _UFFDIO_MOVE: u32 = 5; +pub const _UFFDIO_WRITEPROTECT: u32 = 6; +pub const _UFFDIO_CONTINUE: u32 = 7; +pub const _UFFDIO_POISON: u32 = 8; +pub const _UFFDIO_API: u32 = 63; +pub const UFFDIO: u32 = 170; +pub const UFFD_EVENT_PAGEFAULT: u32 = 18; +pub const UFFD_EVENT_FORK: u32 = 19; +pub const UFFD_EVENT_REMAP: u32 = 20; +pub const UFFD_EVENT_REMOVE: u32 = 21; +pub const UFFD_EVENT_UNMAP: u32 = 22; +pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; +pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; +pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; +pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; +pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; +pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; +pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; +pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; +pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; +pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; +pub const UFFD_FEATURE_SIGBUS: u32 = 128; +pub const UFFD_FEATURE_THREAD_ID: u32 = 256; +pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; +pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; +pub const UFFD_FEATURE_EXACT_ADDRESS: u32 = 2048; +pub const UFFD_FEATURE_WP_HUGETLBFS_SHMEM: u32 = 4096; +pub const UFFD_FEATURE_WP_UNPOPULATED: u32 = 8192; +pub const UFFD_FEATURE_POISON: u32 = 16384; +pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; +pub const UFFD_FEATURE_MOVE: u32 = 65536; +pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const DT_UNKNOWN: u32 = 0; +pub const DT_FIFO: u32 = 1; +pub const DT_CHR: u32 = 2; +pub const DT_DIR: u32 = 4; +pub const DT_BLK: u32 = 6; +pub const DT_REG: u32 = 8; +pub const DT_LNK: u32 = 10; +pub const DT_SOCK: u32 = 12; +pub const STAT_HAVE_NSEC: u32 = 1; +pub const F_OK: u32 = 0; +pub const R_OK: u32 = 4; +pub const W_OK: u32 = 2; +pub const X_OK: u32 = 1; +pub const UTIME_NOW: u32 = 1073741823; +pub const UTIME_OMIT: u32 = 1073741822; +pub const MNT_FORCE: u32 = 1; +pub const MNT_DETACH: u32 = 2; +pub const MNT_EXPIRE: u32 = 4; +pub const UMOUNT_NOFOLLOW: u32 = 8; +pub const UMOUNT_UNUSED: u32 = 2147483648; +pub const STDIN_FILENO: u32 = 0; +pub const STDOUT_FILENO: u32 = 1; +pub const STDERR_FILENO: u32 = 2; +pub const RWF_HIPRI: u32 = 1; +pub const RWF_DSYNC: u32 = 2; +pub const RWF_SYNC: u32 = 4; +pub const RWF_NOWAIT: u32 = 8; +pub const RWF_APPEND: u32 = 16; +pub const EFD_SEMAPHORE: u32 = 1; +pub const EFD_CLOEXEC: u32 = 524288; +pub const EFD_NONBLOCK: u32 = 2048; +pub const EPOLLIN: u32 = 1; +pub const EPOLLPRI: u32 = 2; +pub const EPOLLOUT: u32 = 4; +pub const EPOLLERR: u32 = 8; +pub const EPOLLHUP: u32 = 16; +pub const EPOLLNVAL: u32 = 32; +pub const EPOLLRDNORM: u32 = 64; +pub const EPOLLRDBAND: u32 = 128; +pub const EPOLLWRNORM: u32 = 256; +pub const EPOLLWRBAND: u32 = 512; +pub const EPOLLMSG: u32 = 1024; +pub const EPOLLRDHUP: u32 = 8192; +pub const EPOLLEXCLUSIVE: u32 = 268435456; +pub const EPOLLWAKEUP: u32 = 536870912; +pub const EPOLLONESHOT: u32 = 1073741824; +pub const EPOLLET: u32 = 2147483648; +pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336; +pub const TFD_CREATE_FLAGS: u32 = 526336; +pub const TFD_SETTIME_FLAGS: u32 = 1; +pub const UFFD_API: u32 = 170; +pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; +pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; +pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; +pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; +pub const UFFDIO_COPY_MODE_WP: u32 = 2; +pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; +pub const SPLICE_F_MOVE: u32 = 1; +pub const SPLICE_F_NONBLOCK: u32 = 2; +pub const SPLICE_F_MORE: u32 = 4; +pub const SPLICE_F_GIFT: u32 = 8; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum fsconfig_command { +FSCONFIG_SET_FLAG = 0, +FSCONFIG_SET_STRING = 1, +FSCONFIG_SET_BINARY = 2, +FSCONFIG_SET_PATH = 3, +FSCONFIG_SET_PATH_EMPTY = 4, +FSCONFIG_SET_FD = 5, +FSCONFIG_CMD_CREATE = 6, +FSCONFIG_CMD_RECONFIGURE = 7, +FSCONFIG_CMD_CREATE_EXCL = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum procmap_query_flags { +PROCMAP_QUERY_VMA_READABLE = 1, +PROCMAP_QUERY_VMA_WRITABLE = 2, +PROCMAP_QUERY_VMA_EXECUTABLE = 4, +PROCMAP_QUERY_VMA_SHARED = 8, +PROCMAP_QUERY_COVERING_OR_NEXT_VMA = 16, +PROCMAP_QUERY_FILE_BACKED_VMA = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum membarrier_cmd { +MEMBARRIER_CMD_QUERY = 0, +MEMBARRIER_CMD_GLOBAL = 1, +MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, +MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, +MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, +MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, +MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, +MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, +MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, +MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, +MEMBARRIER_CMD_GET_REGISTRATIONS = 512, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum membarrier_cmd_flag { +MEMBARRIER_CMD_FLAG_CPU = 1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { +pub version: __u8, +pub v1: fscrypt_policy_v1, +pub v2: fscrypt_policy_v2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_key_specifier__bindgen_ty_1 { +pub __reserved: [__u8; 32usize], +pub descriptor: [__u8; 8usize], +pub identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union sigval { +pub sival_int: crate::ctypes::c_int, +pub sival_ptr: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __sifields { +pub _kill: __sifields__bindgen_ty_1, +pub _timer: __sifields__bindgen_ty_2, +pub _rt: __sifields__bindgen_ty_3, +pub _sigchld: __sifields__bindgen_ty_4, +pub _sigfault: __sifields__bindgen_ty_5, +pub _sigpoll: __sifields__bindgen_ty_6, +pub _sigsys: __sifields__bindgen_ty_7, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __sifields__bindgen_ty_5__bindgen_ty_1 { +pub _trapno: crate::ctypes::c_int, +pub _addr_lsb: crate::ctypes::c_short, +pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, +pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, +pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union siginfo__bindgen_ty_1 { +pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, +pub _si_pad: [crate::ctypes::c_int; 32usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union sigevent__bindgen_ty_1 { +pub _pad: [crate::ctypes::c_int; 12usize], +pub _tid: crate::ctypes::c_int, +pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union uffd_msg__bindgen_ty_1 { +pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, +pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, +pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, +pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, +pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { +pub ptid: __u32, +} +impl __BindgenBitfieldUnit { +#[inline] +pub const fn new(storage: Storage) -> Self { +Self { storage } +} +} +impl __BindgenBitfieldUnit +where +Storage: AsRef<[u8]> + AsMut<[u8]>, +{ +#[inline] +fn extract_bit(byte: u8, index: usize) -> bool { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +byte & mask == mask +} +#[inline] +pub fn get_bit(&self, index: usize) -> bool { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = self.storage.as_ref()[byte_index]; +Self::extract_bit(byte, index) +} +#[inline] +pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; +Self::extract_bit(byte, index) +} +#[inline] +fn change_bit(byte: u8, index: usize, val: bool) -> u8 { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +if val { +byte | mask +} else { +byte & !mask +} +} +#[inline] +pub fn set_bit(&mut self, index: usize, val: bool) { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = &mut self.storage.as_mut()[byte_index]; +*byte = Self::change_bit(*byte, index, val); +} +#[inline] +pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; +} +#[inline] +pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if self.get_bit(i + bit_offset) { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +self.set_bit(index + bit_offset, val_bit_is_set); +} +} +#[inline] +pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +} +} +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl membarrier_cmd { +pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; +} +impl user_desc { +#[inline] +pub fn seg_32bit(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn contents(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +} +#[inline] +pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 2u8, val as u64) +} +} +#[inline] +pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +} +#[inline] +pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +} +} +#[inline] +pub fn read_exec_only(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +} +#[inline] +pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +} +} +#[inline] +pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +} +#[inline] +pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +} +} +#[inline] +pub fn seg_not_present(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +} +#[inline] +pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(5usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +} +} +#[inline] +pub fn useable(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +} +#[inline] +pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(6usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; +seg_32bit as u64 +}); +__bindgen_bitfield_unit.set(1usize, 2u8, { +let contents: u32 = unsafe { ::core::mem::transmute(contents) }; +contents as u64 +}); +__bindgen_bitfield_unit.set(3usize, 1u8, { +let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; +read_exec_only as u64 +}); +__bindgen_bitfield_unit.set(4usize, 1u8, { +let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; +limit_in_pages as u64 +}); +__bindgen_bitfield_unit.set(5usize, 1u8, { +let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; +seg_not_present as u64 +}); +__bindgen_bitfield_unit.set(6usize, 1u8, { +let useable: u32 = unsafe { ::core::mem::transmute(useable) }; +useable as u64 +}); +__bindgen_bitfield_unit +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/if_arp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/if_arp.rs new file mode 100644 index 0000000000000000000000000000000000000000..870b8515e7af1d867bb6b311bb47325f101cdd7d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/if_arp.rs @@ -0,0 +1,2791 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_sa_family_t = crate::ctypes::c_ushort; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __kernel_sockaddr_storage { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { +pub ss_family: __kernel_sa_family_t, +pub __data: [crate::ctypes::c_char; 126usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sockaddr { +pub __storage: __kernel_sockaddr_storage, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sync_serial_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct te1_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +pub slot_map: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct raw_hdlc_proto { +pub encoding: crate::ctypes::c_ushort, +pub parity: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto { +pub t391: crate::ctypes::c_uint, +pub t392: crate::ctypes::c_uint, +pub n391: crate::ctypes::c_uint, +pub n392: crate::ctypes::c_uint, +pub n393: crate::ctypes::c_uint, +pub lmi: crate::ctypes::c_ushort, +pub dce: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc { +pub dlci: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc_info { +pub dlci: crate::ctypes::c_uint, +pub master: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cisco_proto { +pub interval: crate::ctypes::c_uint, +pub timeout: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct x25_hdlc_proto { +pub dce: crate::ctypes::c_ushort, +pub modulo: crate::ctypes::c_uint, +pub window: crate::ctypes::c_uint, +pub t1: crate::ctypes::c_uint, +pub t2: crate::ctypes::c_uint, +pub n2: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifmap { +pub mem_start: crate::ctypes::c_ulong, +pub mem_end: crate::ctypes::c_ulong, +pub base_addr: crate::ctypes::c_ushort, +pub irq: crate::ctypes::c_uchar, +pub dma: crate::ctypes::c_uchar, +pub port: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct if_settings { +pub type_: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +pub ifs_ifsu: if_settings__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifreq { +pub ifr_ifrn: ifreq__bindgen_ty_1, +pub ifr_ifru: ifreq__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifconf { +pub ifc_len: crate::ctypes::c_int, +pub ifc_ifcu: ifconf__bindgen_ty_1, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct ethhdr { +pub h_dest: [crate::ctypes::c_uchar; 6usize], +pub h_source: [crate::ctypes::c_uchar; 6usize], +pub h_proto: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_pkt { +pub spkt_family: crate::ctypes::c_ushort, +pub spkt_device: [crate::ctypes::c_uchar; 14usize], +pub spkt_protocol: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_ll { +pub sll_family: crate::ctypes::c_ushort, +pub sll_protocol: __be16, +pub sll_ifindex: crate::ctypes::c_int, +pub sll_hatype: crate::ctypes::c_ushort, +pub sll_pkttype: crate::ctypes::c_uchar, +pub sll_halen: crate::ctypes::c_uchar, +pub sll_addr: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats_v3 { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +pub tp_freeze_q_cnt: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_rollover_stats { +pub tp_all: __u64, +pub tp_huge: __u64, +pub tp_failed: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_auxdata { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr { +pub tp_status: crate::ctypes::c_ulong, +pub tp_len: crate::ctypes::c_uint, +pub tp_snaplen: crate::ctypes::c_uint, +pub tp_mac: crate::ctypes::c_ushort, +pub tp_net: crate::ctypes::c_ushort, +pub tp_sec: crate::ctypes::c_uint, +pub tp_usec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket2_hdr { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +pub tp_padding: [__u8; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr_variant1 { +pub tp_rxhash: __u32, +pub tp_vlan_tci: __u32, +pub tp_vlan_tpid: __u16, +pub tp_padding: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket3_hdr { +pub tp_next_offset: __u32, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_snaplen: __u32, +pub tp_len: __u32, +pub tp_status: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub __bindgen_anon_1: tpacket3_hdr__bindgen_ty_1, +pub tp_padding: [__u8; 8usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_bd_ts { +pub ts_sec: crate::ctypes::c_uint, +pub __bindgen_anon_1: tpacket_bd_ts__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_hdr_v1 { +pub block_status: __u32, +pub num_pkts: __u32, +pub offset_to_first_pkt: __u32, +pub blk_len: __u32, +pub seq_num: __u64, +pub ts_first_pkt: tpacket_bd_ts, +pub ts_last_pkt: tpacket_bd_ts, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_block_desc { +pub version: __u32, +pub offset_to_priv: __u32, +pub hdr: tpacket_bd_header_u, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req3 { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +pub tp_retire_blk_tov: crate::ctypes::c_uint, +pub tp_sizeof_priv: crate::ctypes::c_uint, +pub tp_feature_req_word: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct packet_mreq { +pub mr_ifindex: crate::ctypes::c_int, +pub mr_type: crate::ctypes::c_ushort, +pub mr_alen: crate::ctypes::c_ushort, +pub mr_address: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fanout_args { +pub id: __u16, +pub type_flags: __u16, +pub max_num_members: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_nl { +pub nl_family: __kernel_sa_family_t, +pub nl_pad: crate::ctypes::c_ushort, +pub nl_pid: __u32, +pub nl_groups: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsghdr { +pub nlmsg_len: __u32, +pub nlmsg_type: __u16, +pub nlmsg_flags: __u16, +pub nlmsg_seq: __u32, +pub nlmsg_pid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsgerr { +pub error: crate::ctypes::c_int, +pub msg: nlmsghdr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_pktinfo { +pub group: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_req { +pub nm_block_size: crate::ctypes::c_uint, +pub nm_block_nr: crate::ctypes::c_uint, +pub nm_frame_size: crate::ctypes::c_uint, +pub nm_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_hdr { +pub nm_status: crate::ctypes::c_uint, +pub nm_len: crate::ctypes::c_uint, +pub nm_group: __u32, +pub nm_pid: __u32, +pub nm_uid: __u32, +pub nm_gid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlattr { +pub nla_len: __u16, +pub nla_type: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nla_bitfield32 { +pub value: __u32, +pub selector: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats { +pub rx_packets: __u32, +pub tx_packets: __u32, +pub rx_bytes: __u32, +pub tx_bytes: __u32, +pub rx_errors: __u32, +pub tx_errors: __u32, +pub rx_dropped: __u32, +pub tx_dropped: __u32, +pub multicast: __u32, +pub collisions: __u32, +pub rx_length_errors: __u32, +pub rx_over_errors: __u32, +pub rx_crc_errors: __u32, +pub rx_frame_errors: __u32, +pub rx_fifo_errors: __u32, +pub rx_missed_errors: __u32, +pub tx_aborted_errors: __u32, +pub tx_carrier_errors: __u32, +pub tx_fifo_errors: __u32, +pub tx_heartbeat_errors: __u32, +pub tx_window_errors: __u32, +pub rx_compressed: __u32, +pub tx_compressed: __u32, +pub rx_nohandler: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +pub collisions: __u64, +pub rx_length_errors: __u64, +pub rx_over_errors: __u64, +pub rx_crc_errors: __u64, +pub rx_frame_errors: __u64, +pub rx_fifo_errors: __u64, +pub rx_missed_errors: __u64, +pub tx_aborted_errors: __u64, +pub tx_carrier_errors: __u64, +pub tx_fifo_errors: __u64, +pub tx_heartbeat_errors: __u64, +pub tx_window_errors: __u64, +pub rx_compressed: __u64, +pub tx_compressed: __u64, +pub rx_nohandler: __u64, +pub rx_otherhost_dropped: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_hw_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_ifmap { +pub mem_start: __u64, +pub mem_end: __u64, +pub base_addr: __u64, +pub irq: __u16, +pub dma: __u8, +pub port: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_bridge_id { +pub prio: [__u8; 2usize], +pub addr: [__u8; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_cacheinfo { +pub max_reasm_len: __u32, +pub tstamp: __u32, +pub reachable_time: __u32, +pub retrans_time: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_qos_mapping { +pub from: __u32, +pub to: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tunnel_msg { +pub family: __u8, +pub flags: __u8, +pub reserved2: __u16, +pub ifindex: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vxlan_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_geneve_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_mac { +pub vf: __u32, +pub mac: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_broadcast { +pub broadcast: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan_info { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +pub vlan_proto: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_tx_rate { +pub vf: __u32, +pub rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rate { +pub vf: __u32, +pub min_tx_rate: __u32, +pub max_tx_rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_spoofchk { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_guid { +pub vf: __u32, +pub guid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_link_state { +pub vf: __u32, +pub link_state: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rss_query_en { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_trust { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_port_vsi { +pub vsi_mgr_id: __u8, +pub vsi_type_id: [__u8; 3usize], +pub vsi_type_version: __u8, +pub pad: [__u8; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct if_stats_msg { +pub family: __u8, +pub pad1: __u8, +pub pad2: __u16, +pub ifindex: __u32, +pub filter_mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_rmnet_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct arpreq { +pub arp_pa: sockaddr, +pub arp_ha: sockaddr, +pub arp_flags: crate::ctypes::c_int, +pub arp_netmask: sockaddr, +pub arp_dev: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct arpreq_old { +pub arp_pa: sockaddr, +pub arp_ha: sockaddr, +pub arp_flags: crate::ctypes::c_int, +pub arp_netmask: sockaddr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct arphdr { +pub ar_hrd: __be16, +pub ar_pro: __be16, +pub ar_hln: crate::ctypes::c_uchar, +pub ar_pln: crate::ctypes::c_uchar, +pub ar_op: __be16, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _K_SS_MAXSIZE: u32 = 128; +pub const SOCK_SNDBUF_LOCK: u32 = 1; +pub const SOCK_RCVBUF_LOCK: u32 = 2; +pub const SOCK_BUF_LOCK_MASK: u32 = 3; +pub const SOCK_TXREHASH_DEFAULT: u32 = 255; +pub const SOCK_TXREHASH_DISABLED: u32 = 0; +pub const SOCK_TXREHASH_ENABLED: u32 = 1; +pub const IFNAMSIZ: u32 = 16; +pub const IFALIASZ: u32 = 256; +pub const ALTIFNAMSIZ: u32 = 128; +pub const GENERIC_HDLC_VERSION: u32 = 4; +pub const CLOCK_DEFAULT: u32 = 0; +pub const CLOCK_EXT: u32 = 1; +pub const CLOCK_INT: u32 = 2; +pub const CLOCK_TXINT: u32 = 3; +pub const CLOCK_TXFROMRX: u32 = 4; +pub const ENCODING_DEFAULT: u32 = 0; +pub const ENCODING_NRZ: u32 = 1; +pub const ENCODING_NRZI: u32 = 2; +pub const ENCODING_FM_MARK: u32 = 3; +pub const ENCODING_FM_SPACE: u32 = 4; +pub const ENCODING_MANCHESTER: u32 = 5; +pub const PARITY_DEFAULT: u32 = 0; +pub const PARITY_NONE: u32 = 1; +pub const PARITY_CRC16_PR0: u32 = 2; +pub const PARITY_CRC16_PR1: u32 = 3; +pub const PARITY_CRC16_PR0_CCITT: u32 = 4; +pub const PARITY_CRC16_PR1_CCITT: u32 = 5; +pub const PARITY_CRC32_PR0_CCITT: u32 = 6; +pub const PARITY_CRC32_PR1_CCITT: u32 = 7; +pub const LMI_DEFAULT: u32 = 0; +pub const LMI_NONE: u32 = 1; +pub const LMI_ANSI: u32 = 2; +pub const LMI_CCITT: u32 = 3; +pub const LMI_CISCO: u32 = 4; +pub const IF_GET_IFACE: u32 = 1; +pub const IF_GET_PROTO: u32 = 2; +pub const IF_IFACE_V35: u32 = 4096; +pub const IF_IFACE_V24: u32 = 4097; +pub const IF_IFACE_X21: u32 = 4098; +pub const IF_IFACE_T1: u32 = 4099; +pub const IF_IFACE_E1: u32 = 4100; +pub const IF_IFACE_SYNC_SERIAL: u32 = 4101; +pub const IF_IFACE_X21D: u32 = 4102; +pub const IF_PROTO_HDLC: u32 = 8192; +pub const IF_PROTO_PPP: u32 = 8193; +pub const IF_PROTO_CISCO: u32 = 8194; +pub const IF_PROTO_FR: u32 = 8195; +pub const IF_PROTO_FR_ADD_PVC: u32 = 8196; +pub const IF_PROTO_FR_DEL_PVC: u32 = 8197; +pub const IF_PROTO_X25: u32 = 8198; +pub const IF_PROTO_HDLC_ETH: u32 = 8199; +pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200; +pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201; +pub const IF_PROTO_FR_PVC: u32 = 8202; +pub const IF_PROTO_FR_ETH_PVC: u32 = 8203; +pub const IF_PROTO_RAW: u32 = 8204; +pub const IFHWADDRLEN: u32 = 6; +pub const ETH_ALEN: u32 = 6; +pub const ETH_TLEN: u32 = 2; +pub const ETH_HLEN: u32 = 14; +pub const ETH_ZLEN: u32 = 60; +pub const ETH_DATA_LEN: u32 = 1500; +pub const ETH_FRAME_LEN: u32 = 1514; +pub const ETH_FCS_LEN: u32 = 4; +pub const ETH_MIN_MTU: u32 = 68; +pub const ETH_MAX_MTU: u32 = 65535; +pub const ETH_P_LOOP: u32 = 96; +pub const ETH_P_PUP: u32 = 512; +pub const ETH_P_PUPAT: u32 = 513; +pub const ETH_P_TSN: u32 = 8944; +pub const ETH_P_ERSPAN2: u32 = 8939; +pub const ETH_P_IP: u32 = 2048; +pub const ETH_P_X25: u32 = 2053; +pub const ETH_P_ARP: u32 = 2054; +pub const ETH_P_BPQ: u32 = 2303; +pub const ETH_P_IEEEPUP: u32 = 2560; +pub const ETH_P_IEEEPUPAT: u32 = 2561; +pub const ETH_P_BATMAN: u32 = 17157; +pub const ETH_P_DEC: u32 = 24576; +pub const ETH_P_DNA_DL: u32 = 24577; +pub const ETH_P_DNA_RC: u32 = 24578; +pub const ETH_P_DNA_RT: u32 = 24579; +pub const ETH_P_LAT: u32 = 24580; +pub const ETH_P_DIAG: u32 = 24581; +pub const ETH_P_CUST: u32 = 24582; +pub const ETH_P_SCA: u32 = 24583; +pub const ETH_P_TEB: u32 = 25944; +pub const ETH_P_RARP: u32 = 32821; +pub const ETH_P_ATALK: u32 = 32923; +pub const ETH_P_AARP: u32 = 33011; +pub const ETH_P_8021Q: u32 = 33024; +pub const ETH_P_ERSPAN: u32 = 35006; +pub const ETH_P_IPX: u32 = 33079; +pub const ETH_P_IPV6: u32 = 34525; +pub const ETH_P_PAUSE: u32 = 34824; +pub const ETH_P_SLOW: u32 = 34825; +pub const ETH_P_WCCP: u32 = 34878; +pub const ETH_P_MPLS_UC: u32 = 34887; +pub const ETH_P_MPLS_MC: u32 = 34888; +pub const ETH_P_ATMMPOA: u32 = 34892; +pub const ETH_P_PPP_DISC: u32 = 34915; +pub const ETH_P_PPP_SES: u32 = 34916; +pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_ATMFATE: u32 = 34948; +pub const ETH_P_PAE: u32 = 34958; +pub const ETH_P_PROFINET: u32 = 34962; +pub const ETH_P_REALTEK: u32 = 34969; +pub const ETH_P_AOE: u32 = 34978; +pub const ETH_P_ETHERCAT: u32 = 34980; +pub const ETH_P_8021AD: u32 = 34984; +pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_PREAUTH: u32 = 35015; +pub const ETH_P_TIPC: u32 = 35018; +pub const ETH_P_LLDP: u32 = 35020; +pub const ETH_P_MRP: u32 = 35043; +pub const ETH_P_MACSEC: u32 = 35045; +pub const ETH_P_8021AH: u32 = 35047; +pub const ETH_P_MVRP: u32 = 35061; +pub const ETH_P_1588: u32 = 35063; +pub const ETH_P_NCSI: u32 = 35064; +pub const ETH_P_PRP: u32 = 35067; +pub const ETH_P_CFM: u32 = 35074; +pub const ETH_P_FCOE: u32 = 35078; +pub const ETH_P_IBOE: u32 = 35093; +pub const ETH_P_TDLS: u32 = 35085; +pub const ETH_P_FIP: u32 = 35092; +pub const ETH_P_80221: u32 = 35095; +pub const ETH_P_HSR: u32 = 35119; +pub const ETH_P_NSH: u32 = 35151; +pub const ETH_P_LOOPBACK: u32 = 36864; +pub const ETH_P_QINQ1: u32 = 37120; +pub const ETH_P_QINQ2: u32 = 37376; +pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_EDSA: u32 = 56026; +pub const ETH_P_DSA_8021Q: u32 = 56027; +pub const ETH_P_DSA_A5PSW: u32 = 57345; +pub const ETH_P_IFE: u32 = 60734; +pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_802_3_MIN: u32 = 1536; +pub const ETH_P_802_3: u32 = 1; +pub const ETH_P_AX25: u32 = 2; +pub const ETH_P_ALL: u32 = 3; +pub const ETH_P_802_2: u32 = 4; +pub const ETH_P_SNAP: u32 = 5; +pub const ETH_P_DDCMP: u32 = 6; +pub const ETH_P_WAN_PPP: u32 = 7; +pub const ETH_P_PPP_MP: u32 = 8; +pub const ETH_P_LOCALTALK: u32 = 9; +pub const ETH_P_CAN: u32 = 12; +pub const ETH_P_CANFD: u32 = 13; +pub const ETH_P_CANXL: u32 = 14; +pub const ETH_P_PPPTALK: u32 = 16; +pub const ETH_P_TR_802_2: u32 = 17; +pub const ETH_P_MOBITEX: u32 = 21; +pub const ETH_P_CONTROL: u32 = 22; +pub const ETH_P_IRDA: u32 = 23; +pub const ETH_P_ECONET: u32 = 24; +pub const ETH_P_HDLC: u32 = 25; +pub const ETH_P_ARCNET: u32 = 26; +pub const ETH_P_DSA: u32 = 27; +pub const ETH_P_TRAILER: u32 = 28; +pub const ETH_P_PHONET: u32 = 245; +pub const ETH_P_IEEE802154: u32 = 246; +pub const ETH_P_CAIF: u32 = 247; +pub const ETH_P_XDSA: u32 = 248; +pub const ETH_P_MAP: u32 = 249; +pub const ETH_P_MCTP: u32 = 250; +pub const __LITTLE_ENDIAN: u32 = 1234; +pub const PACKET_HOST: u32 = 0; +pub const PACKET_BROADCAST: u32 = 1; +pub const PACKET_MULTICAST: u32 = 2; +pub const PACKET_OTHERHOST: u32 = 3; +pub const PACKET_OUTGOING: u32 = 4; +pub const PACKET_LOOPBACK: u32 = 5; +pub const PACKET_USER: u32 = 6; +pub const PACKET_KERNEL: u32 = 7; +pub const PACKET_FASTROUTE: u32 = 6; +pub const PACKET_ADD_MEMBERSHIP: u32 = 1; +pub const PACKET_DROP_MEMBERSHIP: u32 = 2; +pub const PACKET_RECV_OUTPUT: u32 = 3; +pub const PACKET_RX_RING: u32 = 5; +pub const PACKET_STATISTICS: u32 = 6; +pub const PACKET_COPY_THRESH: u32 = 7; +pub const PACKET_AUXDATA: u32 = 8; +pub const PACKET_ORIGDEV: u32 = 9; +pub const PACKET_VERSION: u32 = 10; +pub const PACKET_HDRLEN: u32 = 11; +pub const PACKET_RESERVE: u32 = 12; +pub const PACKET_TX_RING: u32 = 13; +pub const PACKET_LOSS: u32 = 14; +pub const PACKET_VNET_HDR: u32 = 15; +pub const PACKET_TX_TIMESTAMP: u32 = 16; +pub const PACKET_TIMESTAMP: u32 = 17; +pub const PACKET_FANOUT: u32 = 18; +pub const PACKET_TX_HAS_OFF: u32 = 19; +pub const PACKET_QDISC_BYPASS: u32 = 20; +pub const PACKET_ROLLOVER_STATS: u32 = 21; +pub const PACKET_FANOUT_DATA: u32 = 22; +pub const PACKET_IGNORE_OUTGOING: u32 = 23; +pub const PACKET_VNET_HDR_SZ: u32 = 24; +pub const PACKET_FANOUT_HASH: u32 = 0; +pub const PACKET_FANOUT_LB: u32 = 1; +pub const PACKET_FANOUT_CPU: u32 = 2; +pub const PACKET_FANOUT_ROLLOVER: u32 = 3; +pub const PACKET_FANOUT_RND: u32 = 4; +pub const PACKET_FANOUT_QM: u32 = 5; +pub const PACKET_FANOUT_CBPF: u32 = 6; +pub const PACKET_FANOUT_EBPF: u32 = 7; +pub const PACKET_FANOUT_FLAG_ROLLOVER: u32 = 4096; +pub const PACKET_FANOUT_FLAG_UNIQUEID: u32 = 8192; +pub const PACKET_FANOUT_FLAG_IGNORE_OUTGOING: u32 = 16384; +pub const PACKET_FANOUT_FLAG_DEFRAG: u32 = 32768; +pub const TP_STATUS_KERNEL: u32 = 0; +pub const TP_STATUS_USER: u32 = 1; +pub const TP_STATUS_COPY: u32 = 2; +pub const TP_STATUS_LOSING: u32 = 4; +pub const TP_STATUS_CSUMNOTREADY: u32 = 8; +pub const TP_STATUS_VLAN_VALID: u32 = 16; +pub const TP_STATUS_BLK_TMO: u32 = 32; +pub const TP_STATUS_VLAN_TPID_VALID: u32 = 64; +pub const TP_STATUS_CSUM_VALID: u32 = 128; +pub const TP_STATUS_GSO_TCP: u32 = 256; +pub const TP_STATUS_AVAILABLE: u32 = 0; +pub const TP_STATUS_SEND_REQUEST: u32 = 1; +pub const TP_STATUS_SENDING: u32 = 2; +pub const TP_STATUS_WRONG_FORMAT: u32 = 4; +pub const TP_STATUS_TS_SOFTWARE: u32 = 536870912; +pub const TP_STATUS_TS_SYS_HARDWARE: u32 = 1073741824; +pub const TP_STATUS_TS_RAW_HARDWARE: u32 = 2147483648; +pub const TP_FT_REQ_FILL_RXHASH: u32 = 1; +pub const TPACKET_ALIGNMENT: u32 = 16; +pub const PACKET_MR_MULTICAST: u32 = 0; +pub const PACKET_MR_PROMISC: u32 = 1; +pub const PACKET_MR_ALLMULTI: u32 = 2; +pub const PACKET_MR_UNICAST: u32 = 3; +pub const NETLINK_ROUTE: u32 = 0; +pub const NETLINK_UNUSED: u32 = 1; +pub const NETLINK_USERSOCK: u32 = 2; +pub const NETLINK_FIREWALL: u32 = 3; +pub const NETLINK_SOCK_DIAG: u32 = 4; +pub const NETLINK_NFLOG: u32 = 5; +pub const NETLINK_XFRM: u32 = 6; +pub const NETLINK_SELINUX: u32 = 7; +pub const NETLINK_ISCSI: u32 = 8; +pub const NETLINK_AUDIT: u32 = 9; +pub const NETLINK_FIB_LOOKUP: u32 = 10; +pub const NETLINK_CONNECTOR: u32 = 11; +pub const NETLINK_NETFILTER: u32 = 12; +pub const NETLINK_IP6_FW: u32 = 13; +pub const NETLINK_DNRTMSG: u32 = 14; +pub const NETLINK_KOBJECT_UEVENT: u32 = 15; +pub const NETLINK_GENERIC: u32 = 16; +pub const NETLINK_SCSITRANSPORT: u32 = 18; +pub const NETLINK_ECRYPTFS: u32 = 19; +pub const NETLINK_RDMA: u32 = 20; +pub const NETLINK_CRYPTO: u32 = 21; +pub const NETLINK_SMC: u32 = 22; +pub const NETLINK_INET_DIAG: u32 = 4; +pub const MAX_LINKS: u32 = 32; +pub const NLM_F_REQUEST: u32 = 1; +pub const NLM_F_MULTI: u32 = 2; +pub const NLM_F_ACK: u32 = 4; +pub const NLM_F_ECHO: u32 = 8; +pub const NLM_F_DUMP_INTR: u32 = 16; +pub const NLM_F_DUMP_FILTERED: u32 = 32; +pub const NLM_F_ROOT: u32 = 256; +pub const NLM_F_MATCH: u32 = 512; +pub const NLM_F_ATOMIC: u32 = 1024; +pub const NLM_F_DUMP: u32 = 768; +pub const NLM_F_REPLACE: u32 = 256; +pub const NLM_F_EXCL: u32 = 512; +pub const NLM_F_CREATE: u32 = 1024; +pub const NLM_F_APPEND: u32 = 2048; +pub const NLM_F_NONREC: u32 = 256; +pub const NLM_F_BULK: u32 = 512; +pub const NLM_F_CAPPED: u32 = 256; +pub const NLM_F_ACK_TLVS: u32 = 512; +pub const NLMSG_ALIGNTO: u32 = 4; +pub const NLMSG_NOOP: u32 = 1; +pub const NLMSG_ERROR: u32 = 2; +pub const NLMSG_DONE: u32 = 3; +pub const NLMSG_OVERRUN: u32 = 4; +pub const NLMSG_MIN_TYPE: u32 = 16; +pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; +pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; +pub const NETLINK_PKTINFO: u32 = 3; +pub const NETLINK_BROADCAST_ERROR: u32 = 4; +pub const NETLINK_NO_ENOBUFS: u32 = 5; +pub const NETLINK_RX_RING: u32 = 6; +pub const NETLINK_TX_RING: u32 = 7; +pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; +pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; +pub const NETLINK_CAP_ACK: u32 = 10; +pub const NETLINK_EXT_ACK: u32 = 11; +pub const NETLINK_GET_STRICT_CHK: u32 = 12; +pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; +pub const NET_MAJOR: u32 = 36; +pub const NLA_F_NESTED: u32 = 32768; +pub const NLA_F_NET_BYTEORDER: u32 = 16384; +pub const NLA_TYPE_MASK: i32 = -49153; +pub const NLA_ALIGNTO: u32 = 4; +pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; +pub const MACVLAN_FLAG_NODST: u32 = 2; +pub const IPVLAN_F_PRIVATE: u32 = 1; +pub const IPVLAN_F_VEPA: u32 = 2; +pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; +pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; +pub const MAX_VLAN_LIST_LEN: u32 = 1; +pub const PORT_PROFILE_MAX: u32 = 40; +pub const PORT_UUID_MAX: u32 = 16; +pub const PORT_SELF_VF: i32 = -1; +pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; +pub const XDP_FLAGS_SKB_MODE: u32 = 2; +pub const XDP_FLAGS_DRV_MODE: u32 = 4; +pub const XDP_FLAGS_HW_MODE: u32 = 8; +pub const XDP_FLAGS_REPLACE: u32 = 16; +pub const XDP_FLAGS_MODES: u32 = 14; +pub const XDP_FLAGS_MASK: u32 = 31; +pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; +pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; +pub const MAX_ADDR_LEN: u32 = 32; +pub const INIT_NETDEV_GROUP: u32 = 0; +pub const NET_NAME_UNKNOWN: u32 = 0; +pub const NET_NAME_ENUM: u32 = 1; +pub const NET_NAME_PREDICTABLE: u32 = 2; +pub const NET_NAME_USER: u32 = 3; +pub const NET_NAME_RENAMED: u32 = 4; +pub const NET_ADDR_PERM: u32 = 0; +pub const NET_ADDR_RANDOM: u32 = 1; +pub const NET_ADDR_STOLEN: u32 = 2; +pub const NET_ADDR_SET: u32 = 3; +pub const ARPHRD_NETROM: u32 = 0; +pub const ARPHRD_ETHER: u32 = 1; +pub const ARPHRD_EETHER: u32 = 2; +pub const ARPHRD_AX25: u32 = 3; +pub const ARPHRD_PRONET: u32 = 4; +pub const ARPHRD_CHAOS: u32 = 5; +pub const ARPHRD_IEEE802: u32 = 6; +pub const ARPHRD_ARCNET: u32 = 7; +pub const ARPHRD_APPLETLK: u32 = 8; +pub const ARPHRD_DLCI: u32 = 15; +pub const ARPHRD_ATM: u32 = 19; +pub const ARPHRD_METRICOM: u32 = 23; +pub const ARPHRD_IEEE1394: u32 = 24; +pub const ARPHRD_EUI64: u32 = 27; +pub const ARPHRD_INFINIBAND: u32 = 32; +pub const ARPHRD_SLIP: u32 = 256; +pub const ARPHRD_CSLIP: u32 = 257; +pub const ARPHRD_SLIP6: u32 = 258; +pub const ARPHRD_CSLIP6: u32 = 259; +pub const ARPHRD_RSRVD: u32 = 260; +pub const ARPHRD_ADAPT: u32 = 264; +pub const ARPHRD_ROSE: u32 = 270; +pub const ARPHRD_X25: u32 = 271; +pub const ARPHRD_HWX25: u32 = 272; +pub const ARPHRD_CAN: u32 = 280; +pub const ARPHRD_MCTP: u32 = 290; +pub const ARPHRD_PPP: u32 = 512; +pub const ARPHRD_CISCO: u32 = 513; +pub const ARPHRD_HDLC: u32 = 513; +pub const ARPHRD_LAPB: u32 = 516; +pub const ARPHRD_DDCMP: u32 = 517; +pub const ARPHRD_RAWHDLC: u32 = 518; +pub const ARPHRD_RAWIP: u32 = 519; +pub const ARPHRD_TUNNEL: u32 = 768; +pub const ARPHRD_TUNNEL6: u32 = 769; +pub const ARPHRD_FRAD: u32 = 770; +pub const ARPHRD_SKIP: u32 = 771; +pub const ARPHRD_LOOPBACK: u32 = 772; +pub const ARPHRD_LOCALTLK: u32 = 773; +pub const ARPHRD_FDDI: u32 = 774; +pub const ARPHRD_BIF: u32 = 775; +pub const ARPHRD_SIT: u32 = 776; +pub const ARPHRD_IPDDP: u32 = 777; +pub const ARPHRD_IPGRE: u32 = 778; +pub const ARPHRD_PIMREG: u32 = 779; +pub const ARPHRD_HIPPI: u32 = 780; +pub const ARPHRD_ASH: u32 = 781; +pub const ARPHRD_ECONET: u32 = 782; +pub const ARPHRD_IRDA: u32 = 783; +pub const ARPHRD_FCPP: u32 = 784; +pub const ARPHRD_FCAL: u32 = 785; +pub const ARPHRD_FCPL: u32 = 786; +pub const ARPHRD_FCFABRIC: u32 = 787; +pub const ARPHRD_IEEE802_TR: u32 = 800; +pub const ARPHRD_IEEE80211: u32 = 801; +pub const ARPHRD_IEEE80211_PRISM: u32 = 802; +pub const ARPHRD_IEEE80211_RADIOTAP: u32 = 803; +pub const ARPHRD_IEEE802154: u32 = 804; +pub const ARPHRD_IEEE802154_MONITOR: u32 = 805; +pub const ARPHRD_PHONET: u32 = 820; +pub const ARPHRD_PHONET_PIPE: u32 = 821; +pub const ARPHRD_CAIF: u32 = 822; +pub const ARPHRD_IP6GRE: u32 = 823; +pub const ARPHRD_NETLINK: u32 = 824; +pub const ARPHRD_6LOWPAN: u32 = 825; +pub const ARPHRD_VSOCKMON: u32 = 826; +pub const ARPHRD_VOID: u32 = 65535; +pub const ARPHRD_NONE: u32 = 65534; +pub const ARPOP_REQUEST: u32 = 1; +pub const ARPOP_REPLY: u32 = 2; +pub const ARPOP_RREQUEST: u32 = 3; +pub const ARPOP_RREPLY: u32 = 4; +pub const ARPOP_InREQUEST: u32 = 8; +pub const ARPOP_InREPLY: u32 = 9; +pub const ARPOP_NAK: u32 = 10; +pub const ATF_COM: u32 = 2; +pub const ATF_PERM: u32 = 4; +pub const ATF_PUBL: u32 = 8; +pub const ATF_USETRAILERS: u32 = 16; +pub const ATF_NETMASK: u32 = 32; +pub const ATF_DONTPUB: u32 = 64; +pub const IF_OPER_UNKNOWN: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_UNKNOWN; +pub const IF_OPER_NOTPRESENT: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_NOTPRESENT; +pub const IF_OPER_DOWN: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_DOWN; +pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_LOWERLAYERDOWN; +pub const IF_OPER_TESTING: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_TESTING; +pub const IF_OPER_DORMANT: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_DORMANT; +pub const IF_OPER_UP: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_UP; +pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_2 = _bindgen_ty_2::IF_LINK_MODE_DEFAULT; +pub const IF_LINK_MODE_DORMANT: _bindgen_ty_2 = _bindgen_ty_2::IF_LINK_MODE_DORMANT; +pub const IF_LINK_MODE_TESTING: _bindgen_ty_2 = _bindgen_ty_2::IF_LINK_MODE_TESTING; +pub const NETLINK_UNCONNECTED: _bindgen_ty_3 = _bindgen_ty_3::NETLINK_UNCONNECTED; +pub const NETLINK_CONNECTED: _bindgen_ty_3 = _bindgen_ty_3::NETLINK_CONNECTED; +pub const IFLA_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_UNSPEC; +pub const IFLA_ADDRESS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_ADDRESS; +pub const IFLA_BROADCAST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_BROADCAST; +pub const IFLA_IFNAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IFNAME; +pub const IFLA_MTU: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MTU; +pub const IFLA_LINK: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINK; +pub const IFLA_QDISC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_QDISC; +pub const IFLA_STATS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_STATS; +pub const IFLA_COST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_COST; +pub const IFLA_PRIORITY: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PRIORITY; +pub const IFLA_MASTER: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MASTER; +pub const IFLA_WIRELESS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_WIRELESS; +pub const IFLA_PROTINFO: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROTINFO; +pub const IFLA_TXQLEN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TXQLEN; +pub const IFLA_MAP: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAP; +pub const IFLA_WEIGHT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_WEIGHT; +pub const IFLA_OPERSTATE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_OPERSTATE; +pub const IFLA_LINKMODE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINKMODE; +pub const IFLA_LINKINFO: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINKINFO; +pub const IFLA_NET_NS_PID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NET_NS_PID; +pub const IFLA_IFALIAS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IFALIAS; +pub const IFLA_NUM_VF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NUM_VF; +pub const IFLA_VFINFO_LIST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_VFINFO_LIST; +pub const IFLA_STATS64: _bindgen_ty_4 = _bindgen_ty_4::IFLA_STATS64; +pub const IFLA_VF_PORTS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_VF_PORTS; +pub const IFLA_PORT_SELF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PORT_SELF; +pub const IFLA_AF_SPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_AF_SPEC; +pub const IFLA_GROUP: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GROUP; +pub const IFLA_NET_NS_FD: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NET_NS_FD; +pub const IFLA_EXT_MASK: _bindgen_ty_4 = _bindgen_ty_4::IFLA_EXT_MASK; +pub const IFLA_PROMISCUITY: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROMISCUITY; +pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NUM_TX_QUEUES; +pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NUM_RX_QUEUES; +pub const IFLA_CARRIER: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER; +pub const IFLA_PHYS_PORT_ID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PHYS_PORT_ID; +pub const IFLA_CARRIER_CHANGES: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER_CHANGES; +pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PHYS_SWITCH_ID; +pub const IFLA_LINK_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINK_NETNSID; +pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PHYS_PORT_NAME; +pub const IFLA_PROTO_DOWN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROTO_DOWN; +pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_MAX_SEGS; +pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_MAX_SIZE; +pub const IFLA_PAD: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PAD; +pub const IFLA_XDP: _bindgen_ty_4 = _bindgen_ty_4::IFLA_XDP; +pub const IFLA_EVENT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_EVENT; +pub const IFLA_NEW_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NEW_NETNSID; +pub const IFLA_IF_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IF_NETNSID; +pub const IFLA_TARGET_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IF_NETNSID; +pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER_UP_COUNT; +pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER_DOWN_COUNT; +pub const IFLA_NEW_IFINDEX: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NEW_IFINDEX; +pub const IFLA_MIN_MTU: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MIN_MTU; +pub const IFLA_MAX_MTU: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_MTU; +pub const IFLA_PROP_LIST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROP_LIST; +pub const IFLA_ALT_IFNAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_ALT_IFNAME; +pub const IFLA_PERM_ADDRESS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PERM_ADDRESS; +pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROTO_DOWN_REASON; +pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PARENT_DEV_NAME; +pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PARENT_DEV_BUS_NAME; +pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_MAX_SIZE; +pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TSO_MAX_SIZE; +pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TSO_MAX_SEGS; +pub const IFLA_ALLMULTI: _bindgen_ty_4 = _bindgen_ty_4::IFLA_ALLMULTI; +pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT; +pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE; +pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE; +pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON; +pub const IFLA_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX; +pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC; +pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_MASK; +pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_VALUE; +pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_PROTO_DOWN_REASON_CNT; +pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_VALUE; +pub const IFLA_INET_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_INET_UNSPEC; +pub const IFLA_INET_CONF: _bindgen_ty_6 = _bindgen_ty_6::IFLA_INET_CONF; +pub const __IFLA_INET_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_INET_MAX; +pub const IFLA_INET6_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_UNSPEC; +pub const IFLA_INET6_FLAGS: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_FLAGS; +pub const IFLA_INET6_CONF: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_CONF; +pub const IFLA_INET6_STATS: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_STATS; +pub const IFLA_INET6_MCAST: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_MCAST; +pub const IFLA_INET6_CACHEINFO: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_CACHEINFO; +pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_ICMP6STATS; +pub const IFLA_INET6_TOKEN: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_TOKEN; +pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_ADDR_GEN_MODE; +pub const IFLA_INET6_RA_MTU: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_RA_MTU; +pub const __IFLA_INET6_MAX: _bindgen_ty_7 = _bindgen_ty_7::__IFLA_INET6_MAX; +pub const IFLA_BR_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_UNSPEC; +pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FORWARD_DELAY; +pub const IFLA_BR_HELLO_TIME: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_HELLO_TIME; +pub const IFLA_BR_MAX_AGE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MAX_AGE; +pub const IFLA_BR_AGEING_TIME: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_AGEING_TIME; +pub const IFLA_BR_STP_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_STATE; +pub const IFLA_BR_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_PRIORITY; +pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_FILTERING; +pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_PROTOCOL; +pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_GROUP_FWD_MASK; +pub const IFLA_BR_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_ROOT_ID; +pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_BRIDGE_ID; +pub const IFLA_BR_ROOT_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_ROOT_PORT; +pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_ROOT_PATH_COST; +pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TOPOLOGY_CHANGE; +pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; +pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_HELLO_TIMER; +pub const IFLA_BR_TCN_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TCN_TIMER; +pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TOPOLOGY_CHANGE_TIMER; +pub const IFLA_BR_GC_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_GC_TIMER; +pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_GROUP_ADDR; +pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_FLUSH; +pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_ROUTER; +pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_SNOOPING; +pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERY_USE_IFADDR; +pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER; +pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_HASH_ELASTICITY; +pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_HASH_MAX; +pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_LAST_MEMBER_CNT; +pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_STARTUP_QUERY_CNT; +pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_LAST_MEMBER_INTVL; +pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_MEMBERSHIP_INTVL; +pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_INTVL; +pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERY_INTVL; +pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; +pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; +pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_NF_CALL_IPTABLES; +pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_NF_CALL_IP6TABLES; +pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_NF_CALL_ARPTABLES; +pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_DEFAULT_PVID; +pub const IFLA_BR_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_PAD; +pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_STATS_ENABLED; +pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_STATS_ENABLED; +pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_IGMP_VERSION; +pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_MLD_VERSION; +pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_STATS_PER_PORT; +pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BOOLOPT; +pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; +pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; +pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; +pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; +pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; +pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_UNSPEC; +pub const IFLA_BRPORT_STATE: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_STATE; +pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PRIORITY; +pub const IFLA_BRPORT_COST: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_COST; +pub const IFLA_BRPORT_MODE: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MODE; +pub const IFLA_BRPORT_GUARD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_GUARD; +pub const IFLA_BRPORT_PROTECT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PROTECT; +pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_FAST_LEAVE; +pub const IFLA_BRPORT_LEARNING: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_LEARNING; +pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_UNICAST_FLOOD; +pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PROXYARP; +pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_LEARNING_SYNC; +pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PROXYARP_WIFI; +pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_ROOT_ID; +pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BRIDGE_ID; +pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_DESIGNATED_PORT; +pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_DESIGNATED_COST; +pub const IFLA_BRPORT_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_ID; +pub const IFLA_BRPORT_NO: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NO; +pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; +pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_CONFIG_PENDING; +pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MESSAGE_AGE_TIMER; +pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_FORWARD_DELAY_TIMER; +pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_HOLD_TIMER; +pub const IFLA_BRPORT_FLUSH: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_FLUSH; +pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MULTICAST_ROUTER; +pub const IFLA_BRPORT_PAD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PAD; +pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_FLOOD; +pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_TO_UCAST; +pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_VLAN_TUNNEL; +pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BCAST_FLOOD; +pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_GROUP_FWD_MASK; +pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_SUPPRESS; +pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_ISOLATED; +pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_PORT; +pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MRP_RING_OPEN; +pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MRP_IN_OPEN; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; +pub const IFLA_BRPORT_LOCKED: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_LOCKED; +pub const IFLA_BRPORT_MAB: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MAB; +pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_N_GROUPS; +pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; +pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; +pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; +pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; +pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; +pub const IFLA_INFO_DATA: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_DATA; +pub const IFLA_INFO_XSTATS: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_XSTATS; +pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_SLAVE_KIND; +pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_SLAVE_DATA; +pub const __IFLA_INFO_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_INFO_MAX; +pub const IFLA_VLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_UNSPEC; +pub const IFLA_VLAN_ID: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_ID; +pub const IFLA_VLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_FLAGS; +pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_EGRESS_QOS; +pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_INGRESS_QOS; +pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_PROTOCOL; +pub const __IFLA_VLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_VLAN_MAX; +pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VLAN_QOS_UNSPEC; +pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VLAN_QOS_MAPPING; +pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VLAN_QOS_MAX; +pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_UNSPEC; +pub const IFLA_MACVLAN_MODE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MODE; +pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_FLAGS; +pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR_MODE; +pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR; +pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR_DATA; +pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR_COUNT; +pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_BC_QUEUE_LEN; +pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_BC_QUEUE_LEN_USED; +pub const IFLA_MACVLAN_BC_CUTOFF: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_BC_CUTOFF; +pub const __IFLA_MACVLAN_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_MACVLAN_MAX; +pub const IFLA_VRF_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_VRF_UNSPEC; +pub const IFLA_VRF_TABLE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_VRF_TABLE; +pub const __IFLA_VRF_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_VRF_MAX; +pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_VRF_PORT_UNSPEC; +pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_16 = _bindgen_ty_16::IFLA_VRF_PORT_TABLE; +pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_VRF_PORT_MAX; +pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_UNSPEC; +pub const IFLA_MACSEC_SCI: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_SCI; +pub const IFLA_MACSEC_PORT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_PORT; +pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ICV_LEN; +pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_CIPHER_SUITE; +pub const IFLA_MACSEC_WINDOW: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_WINDOW; +pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ENCODING_SA; +pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ENCRYPT; +pub const IFLA_MACSEC_PROTECT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_PROTECT; +pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_INC_SCI; +pub const IFLA_MACSEC_ES: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ES; +pub const IFLA_MACSEC_SCB: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_SCB; +pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_REPLAY_PROTECT; +pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_VALIDATION; +pub const IFLA_MACSEC_PAD: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_PAD; +pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_OFFLOAD; +pub const __IFLA_MACSEC_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_MACSEC_MAX; +pub const IFLA_XFRM_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_UNSPEC; +pub const IFLA_XFRM_LINK: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_LINK; +pub const IFLA_XFRM_IF_ID: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_IF_ID; +pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_COLLECT_METADATA; +pub const __IFLA_XFRM_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_XFRM_MAX; +pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::IFLA_IPVLAN_UNSPEC; +pub const IFLA_IPVLAN_MODE: _bindgen_ty_19 = _bindgen_ty_19::IFLA_IPVLAN_MODE; +pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_19 = _bindgen_ty_19::IFLA_IPVLAN_FLAGS; +pub const __IFLA_IPVLAN_MAX: _bindgen_ty_19 = _bindgen_ty_19::__IFLA_IPVLAN_MAX; +pub const IFLA_NETKIT_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_UNSPEC; +pub const IFLA_NETKIT_PEER_INFO: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_INFO; +pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PRIMARY; +pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY; +pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY; +pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB; +pub const IFLA_NETKIT_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; +pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX; +pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC; +pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_BYTES; +pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_PKTS; +pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_DROPS; +pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_BYTES; +pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_PKTS; +pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_DROPS; +pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_PAD; +pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_21 = _bindgen_ty_21::__VNIFILTER_ENTRY_STATS_MAX; +pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_START; +pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_END; +pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_GROUP; +pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_GROUP6; +pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_STATS; +pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_22 = _bindgen_ty_22::__VXLAN_VNIFILTER_ENTRY_MAX; +pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::VXLAN_VNIFILTER_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_23 = _bindgen_ty_23::VXLAN_VNIFILTER_ENTRY; +pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_23 = _bindgen_ty_23::__VXLAN_VNIFILTER_MAX; +pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UNSPEC; +pub const IFLA_VXLAN_ID: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_ID; +pub const IFLA_VXLAN_GROUP: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GROUP; +pub const IFLA_VXLAN_LINK: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LINK; +pub const IFLA_VXLAN_LOCAL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LOCAL; +pub const IFLA_VXLAN_TTL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_TTL; +pub const IFLA_VXLAN_TOS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_TOS; +pub const IFLA_VXLAN_LEARNING: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LEARNING; +pub const IFLA_VXLAN_AGEING: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_AGEING; +pub const IFLA_VXLAN_LIMIT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LIMIT; +pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_PORT_RANGE; +pub const IFLA_VXLAN_PROXY: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_PROXY; +pub const IFLA_VXLAN_RSC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_RSC; +pub const IFLA_VXLAN_L2MISS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_L2MISS; +pub const IFLA_VXLAN_L3MISS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_L3MISS; +pub const IFLA_VXLAN_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_PORT; +pub const IFLA_VXLAN_GROUP6: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GROUP6; +pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LOCAL6; +pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UDP_CSUM; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; +pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_REMCSUM_TX; +pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_REMCSUM_RX; +pub const IFLA_VXLAN_GBP: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GBP; +pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_REMCSUM_NOPARTIAL; +pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_COLLECT_METADATA; +pub const IFLA_VXLAN_LABEL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LABEL; +pub const IFLA_VXLAN_GPE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GPE; +pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_TTL_INHERIT; +pub const IFLA_VXLAN_DF: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_DF; +pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_VNIFILTER; +pub const IFLA_VXLAN_LOCALBYPASS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LOCALBYPASS; +pub const IFLA_VXLAN_LABEL_POLICY: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LABEL_POLICY; +pub const IFLA_VXLAN_RESERVED_BITS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_RESERVED_BITS; +pub const __IFLA_VXLAN_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_VXLAN_MAX; +pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UNSPEC; +pub const IFLA_GENEVE_ID: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ID; +pub const IFLA_GENEVE_REMOTE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_REMOTE; +pub const IFLA_GENEVE_TTL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_TTL; +pub const IFLA_GENEVE_TOS: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_TOS; +pub const IFLA_GENEVE_PORT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT; +pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_COLLECT_METADATA; +pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_REMOTE6; +pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UDP_CSUM; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; +pub const IFLA_GENEVE_LABEL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LABEL; +pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_TTL_INHERIT; +pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; +pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; +pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; +pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; +pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; +pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_ETHERTYPE; +pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_SRCPORT_MIN; +pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_MULTIPROTO_MODE; +pub const __IFLA_BAREUDP_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_BAREUDP_MAX; +pub const IFLA_PPP_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_PPP_UNSPEC; +pub const IFLA_PPP_DEV_FD: _bindgen_ty_27 = _bindgen_ty_27::IFLA_PPP_DEV_FD; +pub const __IFLA_PPP_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_PPP_MAX; +pub const IFLA_GTP_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_UNSPEC; +pub const IFLA_GTP_FD0: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_FD0; +pub const IFLA_GTP_FD1: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_FD1; +pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_PDP_HASHSIZE; +pub const IFLA_GTP_ROLE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_ROLE; +pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_CREATE_SOCKETS; +pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_RESTART_COUNT; +pub const IFLA_GTP_LOCAL: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_LOCAL; +pub const IFLA_GTP_LOCAL6: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_LOCAL6; +pub const __IFLA_GTP_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_GTP_MAX; +pub const IFLA_BOND_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_UNSPEC; +pub const IFLA_BOND_MODE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MODE; +pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ACTIVE_SLAVE; +pub const IFLA_BOND_MIIMON: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MIIMON; +pub const IFLA_BOND_UPDELAY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_UPDELAY; +pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_DOWNDELAY; +pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_USE_CARRIER; +pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_INTERVAL; +pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_IP_TARGET; +pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_VALIDATE; +pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_ALL_TARGETS; +pub const IFLA_BOND_PRIMARY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PRIMARY; +pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PRIMARY_RESELECT; +pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_FAIL_OVER_MAC; +pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_XMIT_HASH_POLICY; +pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_RESEND_IGMP; +pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_NUM_PEER_NOTIF; +pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ALL_SLAVES_ACTIVE; +pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MIN_LINKS; +pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LP_INTERVAL; +pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PACKETS_PER_SLAVE; +pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_LACP_RATE; +pub const IFLA_BOND_AD_SELECT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_SELECT; +pub const IFLA_BOND_AD_INFO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_INFO; +pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_ACTOR_SYS_PRIO; +pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_USER_PORT_KEY; +pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_ACTOR_SYSTEM; +pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_TLB_DYNAMIC_LB; +pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PEER_NOTIF_DELAY; +pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_LACP_ACTIVE; +pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSED_MAX; +pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_NS_IP6_TARGET; +pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_COUPLED_CONTROL; +pub const __IFLA_BOND_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_MAX; +pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_UNSPEC; +pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_AGGREGATOR; +pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_NUM_PORTS; +pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_ACTOR_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_PARTNER_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_PARTNER_MAC; +pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_BOND_AD_INFO_MAX; +pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_UNSPEC; +pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_STATE; +pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_MII_STATUS; +pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; +pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PERM_HWADDR; +pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_QUEUE_ID; +pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; +pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; +pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; +pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; +pub const __IFLA_VF_INFO_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_INFO_MAX; +pub const IFLA_VF_UNSPEC: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_UNSPEC; +pub const IFLA_VF_MAC: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_MAC; +pub const IFLA_VF_VLAN: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_VLAN; +pub const IFLA_VF_TX_RATE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_TX_RATE; +pub const IFLA_VF_SPOOFCHK: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_SPOOFCHK; +pub const IFLA_VF_LINK_STATE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_LINK_STATE; +pub const IFLA_VF_RATE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_RATE; +pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_RSS_QUERY_EN; +pub const IFLA_VF_STATS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS; +pub const IFLA_VF_TRUST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_TRUST; +pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_IB_NODE_GUID; +pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_IB_PORT_GUID; +pub const IFLA_VF_VLAN_LIST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_VLAN_LIST; +pub const IFLA_VF_BROADCAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_BROADCAST; +pub const __IFLA_VF_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_MAX; +pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_VLAN_INFO_UNSPEC; +pub const IFLA_VF_VLAN_INFO: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_VLAN_INFO; +pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_VLAN_INFO_MAX; +pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_LINK_STATE_AUTO; +pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_LINK_STATE_ENABLE; +pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_LINK_STATE_DISABLE; +pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_VF_LINK_STATE_MAX; +pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_RX_PACKETS; +pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_TX_PACKETS; +pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_RX_BYTES; +pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_TX_BYTES; +pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_BROADCAST; +pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_MULTICAST; +pub const IFLA_VF_STATS_PAD: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_PAD; +pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_RX_DROPPED; +pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_TX_DROPPED; +pub const __IFLA_VF_STATS_MAX: _bindgen_ty_36 = _bindgen_ty_36::__IFLA_VF_STATS_MAX; +pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_37 = _bindgen_ty_37::IFLA_VF_PORT_UNSPEC; +pub const IFLA_VF_PORT: _bindgen_ty_37 = _bindgen_ty_37::IFLA_VF_PORT; +pub const __IFLA_VF_PORT_MAX: _bindgen_ty_37 = _bindgen_ty_37::__IFLA_VF_PORT_MAX; +pub const IFLA_PORT_UNSPEC: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_UNSPEC; +pub const IFLA_PORT_VF: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_VF; +pub const IFLA_PORT_PROFILE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_PROFILE; +pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_VSI_TYPE; +pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_INSTANCE_UUID; +pub const IFLA_PORT_HOST_UUID: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_HOST_UUID; +pub const IFLA_PORT_REQUEST: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_REQUEST; +pub const IFLA_PORT_RESPONSE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_RESPONSE; +pub const __IFLA_PORT_MAX: _bindgen_ty_38 = _bindgen_ty_38::__IFLA_PORT_MAX; +pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_PREASSOCIATE; +pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_PREASSOCIATE_RR; +pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_ASSOCIATE; +pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_DISASSOCIATE; +pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_SUCCESS; +pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_INVALID_FORMAT; +pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_UNUSED_VTID; +pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_VTID_VIOLATION; +pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; +pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_OUT_OF_SYNC; +pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_SUCCESS; +pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_INPROGRESS; +pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_INVALID; +pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_BADSTATE; +pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_ERROR; +pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_UNSPEC; +pub const IFLA_IPOIB_PKEY: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_PKEY; +pub const IFLA_IPOIB_MODE: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_MODE; +pub const IFLA_IPOIB_UMCAST: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_UMCAST; +pub const __IFLA_IPOIB_MAX: _bindgen_ty_41 = _bindgen_ty_41::__IFLA_IPOIB_MAX; +pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_42 = _bindgen_ty_42::IPOIB_MODE_DATAGRAM; +pub const IPOIB_MODE_CONNECTED: _bindgen_ty_42 = _bindgen_ty_42::IPOIB_MODE_CONNECTED; +pub const HSR_PROTOCOL_HSR: _bindgen_ty_43 = _bindgen_ty_43::HSR_PROTOCOL_HSR; +pub const HSR_PROTOCOL_PRP: _bindgen_ty_43 = _bindgen_ty_43::HSR_PROTOCOL_PRP; +pub const HSR_PROTOCOL_MAX: _bindgen_ty_43 = _bindgen_ty_43::HSR_PROTOCOL_MAX; +pub const IFLA_HSR_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_UNSPEC; +pub const IFLA_HSR_SLAVE1: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SLAVE1; +pub const IFLA_HSR_SLAVE2: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SLAVE2; +pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_MULTICAST_SPEC; +pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SUPERVISION_ADDR; +pub const IFLA_HSR_SEQ_NR: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SEQ_NR; +pub const IFLA_HSR_VERSION: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_VERSION; +pub const IFLA_HSR_PROTOCOL: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_PROTOCOL; +pub const IFLA_HSR_INTERLINK: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_INTERLINK; +pub const __IFLA_HSR_MAX: _bindgen_ty_44 = _bindgen_ty_44::__IFLA_HSR_MAX; +pub const IFLA_STATS_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_UNSPEC; +pub const IFLA_STATS_LINK_64: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_64; +pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_XSTATS; +pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_XSTATS_SLAVE; +pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_OFFLOAD_XSTATS; +pub const IFLA_STATS_AF_SPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_AF_SPEC; +pub const __IFLA_STATS_MAX: _bindgen_ty_45 = _bindgen_ty_45::__IFLA_STATS_MAX; +pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_STATS_GETSET_UNSPEC; +pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_46 = _bindgen_ty_46::IFLA_STATS_GET_FILTERS; +pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_46 = _bindgen_ty_46::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_STATS_GETSET_MAX; +pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_47 = _bindgen_ty_47::LINK_XSTATS_TYPE_UNSPEC; +pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_47 = _bindgen_ty_47::LINK_XSTATS_TYPE_BRIDGE; +pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_47 = _bindgen_ty_47::LINK_XSTATS_TYPE_BOND; +pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_47 = _bindgen_ty_47::__LINK_XSTATS_TYPE_MAX; +pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_CPU_HIT; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_HW_S_INFO; +pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_48 = _bindgen_ty_48::__IFLA_OFFLOAD_XSTATS_MAX; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_49 = _bindgen_ty_49::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_49 = _bindgen_ty_49::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_49 = _bindgen_ty_49::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; +pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_49 = _bindgen_ty_49::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; +pub const XDP_ATTACHED_NONE: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_NONE; +pub const XDP_ATTACHED_DRV: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_DRV; +pub const XDP_ATTACHED_SKB: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_SKB; +pub const XDP_ATTACHED_HW: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_HW; +pub const XDP_ATTACHED_MULTI: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_MULTI; +pub const IFLA_XDP_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_UNSPEC; +pub const IFLA_XDP_FD: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_FD; +pub const IFLA_XDP_ATTACHED: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_ATTACHED; +pub const IFLA_XDP_FLAGS: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_FLAGS; +pub const IFLA_XDP_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_PROG_ID; +pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_DRV_PROG_ID; +pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_SKB_PROG_ID; +pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_HW_PROG_ID; +pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_EXPECTED_FD; +pub const __IFLA_XDP_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_XDP_MAX; +pub const IFLA_EVENT_NONE: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_NONE; +pub const IFLA_EVENT_REBOOT: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_REBOOT; +pub const IFLA_EVENT_FEATURES: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_FEATURES; +pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_BONDING_FAILOVER; +pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_NOTIFY_PEERS; +pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_IGMP_RESEND; +pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_BONDING_OPTIONS; +pub const IFLA_TUN_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_UNSPEC; +pub const IFLA_TUN_OWNER: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_OWNER; +pub const IFLA_TUN_GROUP: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_GROUP; +pub const IFLA_TUN_TYPE: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_TYPE; +pub const IFLA_TUN_PI: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_PI; +pub const IFLA_TUN_VNET_HDR: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_VNET_HDR; +pub const IFLA_TUN_PERSIST: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_PERSIST; +pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_MULTI_QUEUE; +pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_NUM_QUEUES; +pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_NUM_DISABLED_QUEUES; +pub const __IFLA_TUN_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_TUN_MAX; +pub const IFLA_RMNET_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_UNSPEC; +pub const IFLA_RMNET_MUX_ID: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_MUX_ID; +pub const IFLA_RMNET_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_FLAGS; +pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX; +pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC; +pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING; +pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX; +pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC; +pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; +pub const IFLA_DSA_MASTER: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; +pub const __IFLA_DSA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__IFLA_DSA_MAX; +pub const IFLA_OVPN_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::IFLA_OVPN_UNSPEC; +pub const IFLA_OVPN_MODE: _bindgen_ty_57 = _bindgen_ty_57::IFLA_OVPN_MODE; +pub const __IFLA_OVPN_MAX: _bindgen_ty_57 = _bindgen_ty_57::__IFLA_OVPN_MAX; +pub const IF_PORT_UNKNOWN: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_UNKNOWN; +pub const IF_PORT_10BASE2: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_10BASE2; +pub const IF_PORT_10BASET: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_10BASET; +pub const IF_PORT_AUI: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_AUI; +pub const IF_PORT_100BASET: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_100BASET; +pub const IF_PORT_100BASETX: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_100BASETX; +pub const IF_PORT_100BASEFX: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_100BASEFX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum net_device_flags { +IFF_UP = 1, +IFF_BROADCAST = 2, +IFF_DEBUG = 4, +IFF_LOOPBACK = 8, +IFF_POINTOPOINT = 16, +IFF_NOTRAILERS = 32, +IFF_RUNNING = 64, +IFF_NOARP = 128, +IFF_PROMISC = 256, +IFF_ALLMULTI = 512, +IFF_MASTER = 1024, +IFF_SLAVE = 2048, +IFF_MULTICAST = 4096, +IFF_PORTSEL = 8192, +IFF_AUTOMEDIA = 16384, +IFF_DYNAMIC = 32768, +IFF_LOWER_UP = 65536, +IFF_DORMANT = 131072, +IFF_ECHO = 262144, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +IF_OPER_UNKNOWN = 0, +IF_OPER_NOTPRESENT = 1, +IF_OPER_DOWN = 2, +IF_OPER_LOWERLAYERDOWN = 3, +IF_OPER_TESTING = 4, +IF_OPER_DORMANT = 5, +IF_OPER_UP = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IF_LINK_MODE_DEFAULT = 0, +IF_LINK_MODE_DORMANT = 1, +IF_LINK_MODE_TESTING = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tpacket_versions { +TPACKET_V1 = 0, +TPACKET_V2 = 1, +TPACKET_V3 = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nlmsgerr_attrs { +NLMSGERR_ATTR_UNUSED = 0, +NLMSGERR_ATTR_MSG = 1, +NLMSGERR_ATTR_OFFS = 2, +NLMSGERR_ATTR_COOKIE = 3, +NLMSGERR_ATTR_POLICY = 4, +NLMSGERR_ATTR_MISS_TYPE = 5, +NLMSGERR_ATTR_MISS_NEST = 6, +__NLMSGERR_ATTR_MAX = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl_mmap_status { +NL_MMAP_STATUS_UNUSED = 0, +NL_MMAP_STATUS_RESERVED = 1, +NL_MMAP_STATUS_VALID = 2, +NL_MMAP_STATUS_COPY = 3, +NL_MMAP_STATUS_SKIP = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +NETLINK_UNCONNECTED = 0, +NETLINK_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_attribute_type { +NL_ATTR_TYPE_INVALID = 0, +NL_ATTR_TYPE_FLAG = 1, +NL_ATTR_TYPE_U8 = 2, +NL_ATTR_TYPE_U16 = 3, +NL_ATTR_TYPE_U32 = 4, +NL_ATTR_TYPE_U64 = 5, +NL_ATTR_TYPE_S8 = 6, +NL_ATTR_TYPE_S16 = 7, +NL_ATTR_TYPE_S32 = 8, +NL_ATTR_TYPE_S64 = 9, +NL_ATTR_TYPE_BINARY = 10, +NL_ATTR_TYPE_STRING = 11, +NL_ATTR_TYPE_NUL_STRING = 12, +NL_ATTR_TYPE_NESTED = 13, +NL_ATTR_TYPE_NESTED_ARRAY = 14, +NL_ATTR_TYPE_BITFIELD32 = 15, +NL_ATTR_TYPE_SINT = 16, +NL_ATTR_TYPE_UINT = 17, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_policy_type_attr { +NL_POLICY_TYPE_ATTR_UNSPEC = 0, +NL_POLICY_TYPE_ATTR_TYPE = 1, +NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, +NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, +NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, +NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, +NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, +NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, +NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, +NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, +NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, +NL_POLICY_TYPE_ATTR_PAD = 11, +NL_POLICY_TYPE_ATTR_MASK = 12, +__NL_POLICY_TYPE_ATTR_MAX = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IFLA_UNSPEC = 0, +IFLA_ADDRESS = 1, +IFLA_BROADCAST = 2, +IFLA_IFNAME = 3, +IFLA_MTU = 4, +IFLA_LINK = 5, +IFLA_QDISC = 6, +IFLA_STATS = 7, +IFLA_COST = 8, +IFLA_PRIORITY = 9, +IFLA_MASTER = 10, +IFLA_WIRELESS = 11, +IFLA_PROTINFO = 12, +IFLA_TXQLEN = 13, +IFLA_MAP = 14, +IFLA_WEIGHT = 15, +IFLA_OPERSTATE = 16, +IFLA_LINKMODE = 17, +IFLA_LINKINFO = 18, +IFLA_NET_NS_PID = 19, +IFLA_IFALIAS = 20, +IFLA_NUM_VF = 21, +IFLA_VFINFO_LIST = 22, +IFLA_STATS64 = 23, +IFLA_VF_PORTS = 24, +IFLA_PORT_SELF = 25, +IFLA_AF_SPEC = 26, +IFLA_GROUP = 27, +IFLA_NET_NS_FD = 28, +IFLA_EXT_MASK = 29, +IFLA_PROMISCUITY = 30, +IFLA_NUM_TX_QUEUES = 31, +IFLA_NUM_RX_QUEUES = 32, +IFLA_CARRIER = 33, +IFLA_PHYS_PORT_ID = 34, +IFLA_CARRIER_CHANGES = 35, +IFLA_PHYS_SWITCH_ID = 36, +IFLA_LINK_NETNSID = 37, +IFLA_PHYS_PORT_NAME = 38, +IFLA_PROTO_DOWN = 39, +IFLA_GSO_MAX_SEGS = 40, +IFLA_GSO_MAX_SIZE = 41, +IFLA_PAD = 42, +IFLA_XDP = 43, +IFLA_EVENT = 44, +IFLA_NEW_NETNSID = 45, +IFLA_IF_NETNSID = 46, +IFLA_CARRIER_UP_COUNT = 47, +IFLA_CARRIER_DOWN_COUNT = 48, +IFLA_NEW_IFINDEX = 49, +IFLA_MIN_MTU = 50, +IFLA_MAX_MTU = 51, +IFLA_PROP_LIST = 52, +IFLA_ALT_IFNAME = 53, +IFLA_PERM_ADDRESS = 54, +IFLA_PROTO_DOWN_REASON = 55, +IFLA_PARENT_DEV_NAME = 56, +IFLA_PARENT_DEV_BUS_NAME = 57, +IFLA_GRO_MAX_SIZE = 58, +IFLA_TSO_MAX_SIZE = 59, +IFLA_TSO_MAX_SEGS = 60, +IFLA_ALLMULTI = 61, +IFLA_DEVLINK_PORT = 62, +IFLA_GSO_IPV4_MAX_SIZE = 63, +IFLA_GRO_IPV4_MAX_SIZE = 64, +IFLA_DPLL_PIN = 65, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +IFLA_NETNS_IMMUTABLE = 67, +__IFLA_MAX = 68, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_5 { +IFLA_PROTO_DOWN_REASON_UNSPEC = 0, +IFLA_PROTO_DOWN_REASON_MASK = 1, +IFLA_PROTO_DOWN_REASON_VALUE = 2, +__IFLA_PROTO_DOWN_REASON_CNT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_6 { +IFLA_INET_UNSPEC = 0, +IFLA_INET_CONF = 1, +__IFLA_INET_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_7 { +IFLA_INET6_UNSPEC = 0, +IFLA_INET6_FLAGS = 1, +IFLA_INET6_CONF = 2, +IFLA_INET6_STATS = 3, +IFLA_INET6_MCAST = 4, +IFLA_INET6_CACHEINFO = 5, +IFLA_INET6_ICMP6STATS = 6, +IFLA_INET6_TOKEN = 7, +IFLA_INET6_ADDR_GEN_MODE = 8, +IFLA_INET6_RA_MTU = 9, +__IFLA_INET6_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum in6_addr_gen_mode { +IN6_ADDR_GEN_MODE_EUI64 = 0, +IN6_ADDR_GEN_MODE_NONE = 1, +IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, +IN6_ADDR_GEN_MODE_RANDOM = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_8 { +IFLA_BR_UNSPEC = 0, +IFLA_BR_FORWARD_DELAY = 1, +IFLA_BR_HELLO_TIME = 2, +IFLA_BR_MAX_AGE = 3, +IFLA_BR_AGEING_TIME = 4, +IFLA_BR_STP_STATE = 5, +IFLA_BR_PRIORITY = 6, +IFLA_BR_VLAN_FILTERING = 7, +IFLA_BR_VLAN_PROTOCOL = 8, +IFLA_BR_GROUP_FWD_MASK = 9, +IFLA_BR_ROOT_ID = 10, +IFLA_BR_BRIDGE_ID = 11, +IFLA_BR_ROOT_PORT = 12, +IFLA_BR_ROOT_PATH_COST = 13, +IFLA_BR_TOPOLOGY_CHANGE = 14, +IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, +IFLA_BR_HELLO_TIMER = 16, +IFLA_BR_TCN_TIMER = 17, +IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, +IFLA_BR_GC_TIMER = 19, +IFLA_BR_GROUP_ADDR = 20, +IFLA_BR_FDB_FLUSH = 21, +IFLA_BR_MCAST_ROUTER = 22, +IFLA_BR_MCAST_SNOOPING = 23, +IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, +IFLA_BR_MCAST_QUERIER = 25, +IFLA_BR_MCAST_HASH_ELASTICITY = 26, +IFLA_BR_MCAST_HASH_MAX = 27, +IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, +IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, +IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, +IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, +IFLA_BR_MCAST_QUERIER_INTVL = 32, +IFLA_BR_MCAST_QUERY_INTVL = 33, +IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, +IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, +IFLA_BR_NF_CALL_IPTABLES = 36, +IFLA_BR_NF_CALL_IP6TABLES = 37, +IFLA_BR_NF_CALL_ARPTABLES = 38, +IFLA_BR_VLAN_DEFAULT_PVID = 39, +IFLA_BR_PAD = 40, +IFLA_BR_VLAN_STATS_ENABLED = 41, +IFLA_BR_MCAST_STATS_ENABLED = 42, +IFLA_BR_MCAST_IGMP_VERSION = 43, +IFLA_BR_MCAST_MLD_VERSION = 44, +IFLA_BR_VLAN_STATS_PER_PORT = 45, +IFLA_BR_MULTI_BOOLOPT = 46, +IFLA_BR_MCAST_QUERIER_STATE = 47, +IFLA_BR_FDB_N_LEARNED = 48, +IFLA_BR_FDB_MAX_LEARNED = 49, +__IFLA_BR_MAX = 50, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_9 { +BRIDGE_MODE_UNSPEC = 0, +BRIDGE_MODE_HAIRPIN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_10 { +IFLA_BRPORT_UNSPEC = 0, +IFLA_BRPORT_STATE = 1, +IFLA_BRPORT_PRIORITY = 2, +IFLA_BRPORT_COST = 3, +IFLA_BRPORT_MODE = 4, +IFLA_BRPORT_GUARD = 5, +IFLA_BRPORT_PROTECT = 6, +IFLA_BRPORT_FAST_LEAVE = 7, +IFLA_BRPORT_LEARNING = 8, +IFLA_BRPORT_UNICAST_FLOOD = 9, +IFLA_BRPORT_PROXYARP = 10, +IFLA_BRPORT_LEARNING_SYNC = 11, +IFLA_BRPORT_PROXYARP_WIFI = 12, +IFLA_BRPORT_ROOT_ID = 13, +IFLA_BRPORT_BRIDGE_ID = 14, +IFLA_BRPORT_DESIGNATED_PORT = 15, +IFLA_BRPORT_DESIGNATED_COST = 16, +IFLA_BRPORT_ID = 17, +IFLA_BRPORT_NO = 18, +IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, +IFLA_BRPORT_CONFIG_PENDING = 20, +IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, +IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, +IFLA_BRPORT_HOLD_TIMER = 23, +IFLA_BRPORT_FLUSH = 24, +IFLA_BRPORT_MULTICAST_ROUTER = 25, +IFLA_BRPORT_PAD = 26, +IFLA_BRPORT_MCAST_FLOOD = 27, +IFLA_BRPORT_MCAST_TO_UCAST = 28, +IFLA_BRPORT_VLAN_TUNNEL = 29, +IFLA_BRPORT_BCAST_FLOOD = 30, +IFLA_BRPORT_GROUP_FWD_MASK = 31, +IFLA_BRPORT_NEIGH_SUPPRESS = 32, +IFLA_BRPORT_ISOLATED = 33, +IFLA_BRPORT_BACKUP_PORT = 34, +IFLA_BRPORT_MRP_RING_OPEN = 35, +IFLA_BRPORT_MRP_IN_OPEN = 36, +IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, +IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, +IFLA_BRPORT_LOCKED = 39, +IFLA_BRPORT_MAB = 40, +IFLA_BRPORT_MCAST_N_GROUPS = 41, +IFLA_BRPORT_MCAST_MAX_GROUPS = 42, +IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, +IFLA_BRPORT_BACKUP_NHID = 44, +__IFLA_BRPORT_MAX = 45, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_11 { +IFLA_INFO_UNSPEC = 0, +IFLA_INFO_KIND = 1, +IFLA_INFO_DATA = 2, +IFLA_INFO_XSTATS = 3, +IFLA_INFO_SLAVE_KIND = 4, +IFLA_INFO_SLAVE_DATA = 5, +__IFLA_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_12 { +IFLA_VLAN_UNSPEC = 0, +IFLA_VLAN_ID = 1, +IFLA_VLAN_FLAGS = 2, +IFLA_VLAN_EGRESS_QOS = 3, +IFLA_VLAN_INGRESS_QOS = 4, +IFLA_VLAN_PROTOCOL = 5, +__IFLA_VLAN_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_13 { +IFLA_VLAN_QOS_UNSPEC = 0, +IFLA_VLAN_QOS_MAPPING = 1, +__IFLA_VLAN_QOS_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_14 { +IFLA_MACVLAN_UNSPEC = 0, +IFLA_MACVLAN_MODE = 1, +IFLA_MACVLAN_FLAGS = 2, +IFLA_MACVLAN_MACADDR_MODE = 3, +IFLA_MACVLAN_MACADDR = 4, +IFLA_MACVLAN_MACADDR_DATA = 5, +IFLA_MACVLAN_MACADDR_COUNT = 6, +IFLA_MACVLAN_BC_QUEUE_LEN = 7, +IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, +IFLA_MACVLAN_BC_CUTOFF = 9, +__IFLA_MACVLAN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_mode { +MACVLAN_MODE_PRIVATE = 1, +MACVLAN_MODE_VEPA = 2, +MACVLAN_MODE_BRIDGE = 4, +MACVLAN_MODE_PASSTHRU = 8, +MACVLAN_MODE_SOURCE = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_macaddr_mode { +MACVLAN_MACADDR_ADD = 0, +MACVLAN_MACADDR_DEL = 1, +MACVLAN_MACADDR_FLUSH = 2, +MACVLAN_MACADDR_SET = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_15 { +IFLA_VRF_UNSPEC = 0, +IFLA_VRF_TABLE = 1, +__IFLA_VRF_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_16 { +IFLA_VRF_PORT_UNSPEC = 0, +IFLA_VRF_PORT_TABLE = 1, +__IFLA_VRF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_17 { +IFLA_MACSEC_UNSPEC = 0, +IFLA_MACSEC_SCI = 1, +IFLA_MACSEC_PORT = 2, +IFLA_MACSEC_ICV_LEN = 3, +IFLA_MACSEC_CIPHER_SUITE = 4, +IFLA_MACSEC_WINDOW = 5, +IFLA_MACSEC_ENCODING_SA = 6, +IFLA_MACSEC_ENCRYPT = 7, +IFLA_MACSEC_PROTECT = 8, +IFLA_MACSEC_INC_SCI = 9, +IFLA_MACSEC_ES = 10, +IFLA_MACSEC_SCB = 11, +IFLA_MACSEC_REPLAY_PROTECT = 12, +IFLA_MACSEC_VALIDATION = 13, +IFLA_MACSEC_PAD = 14, +IFLA_MACSEC_OFFLOAD = 15, +__IFLA_MACSEC_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_18 { +IFLA_XFRM_UNSPEC = 0, +IFLA_XFRM_LINK = 1, +IFLA_XFRM_IF_ID = 2, +IFLA_XFRM_COLLECT_METADATA = 3, +__IFLA_XFRM_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_validation_type { +MACSEC_VALIDATE_DISABLED = 0, +MACSEC_VALIDATE_CHECK = 1, +MACSEC_VALIDATE_STRICT = 2, +__MACSEC_VALIDATE_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_offload { +MACSEC_OFFLOAD_OFF = 0, +MACSEC_OFFLOAD_PHY = 1, +MACSEC_OFFLOAD_MAC = 2, +__MACSEC_OFFLOAD_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_19 { +IFLA_IPVLAN_UNSPEC = 0, +IFLA_IPVLAN_MODE = 1, +IFLA_IPVLAN_FLAGS = 2, +__IFLA_IPVLAN_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ipvlan_mode { +IPVLAN_MODE_L2 = 0, +IPVLAN_MODE_L3 = 1, +IPVLAN_MODE_L3S = 2, +IPVLAN_MODE_MAX = 3, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_action { +NETKIT_NEXT = -1, +NETKIT_PASS = 0, +NETKIT_DROP = 2, +NETKIT_REDIRECT = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_mode { +NETKIT_L2 = 0, +NETKIT_L3 = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_20 { +IFLA_NETKIT_UNSPEC = 0, +IFLA_NETKIT_PEER_INFO = 1, +IFLA_NETKIT_PRIMARY = 2, +IFLA_NETKIT_POLICY = 3, +IFLA_NETKIT_PEER_POLICY = 4, +IFLA_NETKIT_MODE = 5, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +IFLA_NETKIT_HEADROOM = 8, +IFLA_NETKIT_TAILROOM = 9, +__IFLA_NETKIT_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_21 { +VNIFILTER_ENTRY_STATS_UNSPEC = 0, +VNIFILTER_ENTRY_STATS_RX_BYTES = 1, +VNIFILTER_ENTRY_STATS_RX_PKTS = 2, +VNIFILTER_ENTRY_STATS_RX_DROPS = 3, +VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, +VNIFILTER_ENTRY_STATS_TX_BYTES = 5, +VNIFILTER_ENTRY_STATS_TX_PKTS = 6, +VNIFILTER_ENTRY_STATS_TX_DROPS = 7, +VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, +VNIFILTER_ENTRY_STATS_PAD = 9, +__VNIFILTER_ENTRY_STATS_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_22 { +VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY_START = 1, +VXLAN_VNIFILTER_ENTRY_END = 2, +VXLAN_VNIFILTER_ENTRY_GROUP = 3, +VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, +VXLAN_VNIFILTER_ENTRY_STATS = 5, +__VXLAN_VNIFILTER_ENTRY_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_23 { +VXLAN_VNIFILTER_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY = 1, +__VXLAN_VNIFILTER_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_24 { +IFLA_VXLAN_UNSPEC = 0, +IFLA_VXLAN_ID = 1, +IFLA_VXLAN_GROUP = 2, +IFLA_VXLAN_LINK = 3, +IFLA_VXLAN_LOCAL = 4, +IFLA_VXLAN_TTL = 5, +IFLA_VXLAN_TOS = 6, +IFLA_VXLAN_LEARNING = 7, +IFLA_VXLAN_AGEING = 8, +IFLA_VXLAN_LIMIT = 9, +IFLA_VXLAN_PORT_RANGE = 10, +IFLA_VXLAN_PROXY = 11, +IFLA_VXLAN_RSC = 12, +IFLA_VXLAN_L2MISS = 13, +IFLA_VXLAN_L3MISS = 14, +IFLA_VXLAN_PORT = 15, +IFLA_VXLAN_GROUP6 = 16, +IFLA_VXLAN_LOCAL6 = 17, +IFLA_VXLAN_UDP_CSUM = 18, +IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, +IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, +IFLA_VXLAN_REMCSUM_TX = 21, +IFLA_VXLAN_REMCSUM_RX = 22, +IFLA_VXLAN_GBP = 23, +IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, +IFLA_VXLAN_COLLECT_METADATA = 25, +IFLA_VXLAN_LABEL = 26, +IFLA_VXLAN_GPE = 27, +IFLA_VXLAN_TTL_INHERIT = 28, +IFLA_VXLAN_DF = 29, +IFLA_VXLAN_VNIFILTER = 30, +IFLA_VXLAN_LOCALBYPASS = 31, +IFLA_VXLAN_LABEL_POLICY = 32, +IFLA_VXLAN_RESERVED_BITS = 33, +__IFLA_VXLAN_MAX = 34, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_df { +VXLAN_DF_UNSET = 0, +VXLAN_DF_SET = 1, +VXLAN_DF_INHERIT = 2, +__VXLAN_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_label_policy { +VXLAN_LABEL_FIXED = 0, +VXLAN_LABEL_INHERIT = 1, +__VXLAN_LABEL_END = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_25 { +IFLA_GENEVE_UNSPEC = 0, +IFLA_GENEVE_ID = 1, +IFLA_GENEVE_REMOTE = 2, +IFLA_GENEVE_TTL = 3, +IFLA_GENEVE_TOS = 4, +IFLA_GENEVE_PORT = 5, +IFLA_GENEVE_COLLECT_METADATA = 6, +IFLA_GENEVE_REMOTE6 = 7, +IFLA_GENEVE_UDP_CSUM = 8, +IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, +IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, +IFLA_GENEVE_LABEL = 11, +IFLA_GENEVE_TTL_INHERIT = 12, +IFLA_GENEVE_DF = 13, +IFLA_GENEVE_INNER_PROTO_INHERIT = 14, +IFLA_GENEVE_PORT_RANGE = 15, +__IFLA_GENEVE_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_geneve_df { +GENEVE_DF_UNSET = 0, +GENEVE_DF_SET = 1, +GENEVE_DF_INHERIT = 2, +__GENEVE_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_26 { +IFLA_BAREUDP_UNSPEC = 0, +IFLA_BAREUDP_PORT = 1, +IFLA_BAREUDP_ETHERTYPE = 2, +IFLA_BAREUDP_SRCPORT_MIN = 3, +IFLA_BAREUDP_MULTIPROTO_MODE = 4, +__IFLA_BAREUDP_MAX = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_27 { +IFLA_PPP_UNSPEC = 0, +IFLA_PPP_DEV_FD = 1, +__IFLA_PPP_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_gtp_role { +GTP_ROLE_GGSN = 0, +GTP_ROLE_SGSN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_28 { +IFLA_GTP_UNSPEC = 0, +IFLA_GTP_FD0 = 1, +IFLA_GTP_FD1 = 2, +IFLA_GTP_PDP_HASHSIZE = 3, +IFLA_GTP_ROLE = 4, +IFLA_GTP_CREATE_SOCKETS = 5, +IFLA_GTP_RESTART_COUNT = 6, +IFLA_GTP_LOCAL = 7, +IFLA_GTP_LOCAL6 = 8, +__IFLA_GTP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_29 { +IFLA_BOND_UNSPEC = 0, +IFLA_BOND_MODE = 1, +IFLA_BOND_ACTIVE_SLAVE = 2, +IFLA_BOND_MIIMON = 3, +IFLA_BOND_UPDELAY = 4, +IFLA_BOND_DOWNDELAY = 5, +IFLA_BOND_USE_CARRIER = 6, +IFLA_BOND_ARP_INTERVAL = 7, +IFLA_BOND_ARP_IP_TARGET = 8, +IFLA_BOND_ARP_VALIDATE = 9, +IFLA_BOND_ARP_ALL_TARGETS = 10, +IFLA_BOND_PRIMARY = 11, +IFLA_BOND_PRIMARY_RESELECT = 12, +IFLA_BOND_FAIL_OVER_MAC = 13, +IFLA_BOND_XMIT_HASH_POLICY = 14, +IFLA_BOND_RESEND_IGMP = 15, +IFLA_BOND_NUM_PEER_NOTIF = 16, +IFLA_BOND_ALL_SLAVES_ACTIVE = 17, +IFLA_BOND_MIN_LINKS = 18, +IFLA_BOND_LP_INTERVAL = 19, +IFLA_BOND_PACKETS_PER_SLAVE = 20, +IFLA_BOND_AD_LACP_RATE = 21, +IFLA_BOND_AD_SELECT = 22, +IFLA_BOND_AD_INFO = 23, +IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, +IFLA_BOND_AD_USER_PORT_KEY = 25, +IFLA_BOND_AD_ACTOR_SYSTEM = 26, +IFLA_BOND_TLB_DYNAMIC_LB = 27, +IFLA_BOND_PEER_NOTIF_DELAY = 28, +IFLA_BOND_AD_LACP_ACTIVE = 29, +IFLA_BOND_MISSED_MAX = 30, +IFLA_BOND_NS_IP6_TARGET = 31, +IFLA_BOND_COUPLED_CONTROL = 32, +__IFLA_BOND_MAX = 33, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_30 { +IFLA_BOND_AD_INFO_UNSPEC = 0, +IFLA_BOND_AD_INFO_AGGREGATOR = 1, +IFLA_BOND_AD_INFO_NUM_PORTS = 2, +IFLA_BOND_AD_INFO_ACTOR_KEY = 3, +IFLA_BOND_AD_INFO_PARTNER_KEY = 4, +IFLA_BOND_AD_INFO_PARTNER_MAC = 5, +__IFLA_BOND_AD_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_31 { +IFLA_BOND_SLAVE_UNSPEC = 0, +IFLA_BOND_SLAVE_STATE = 1, +IFLA_BOND_SLAVE_MII_STATUS = 2, +IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, +IFLA_BOND_SLAVE_PERM_HWADDR = 4, +IFLA_BOND_SLAVE_QUEUE_ID = 5, +IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, +IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, +IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, +IFLA_BOND_SLAVE_PRIO = 9, +__IFLA_BOND_SLAVE_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_32 { +IFLA_VF_INFO_UNSPEC = 0, +IFLA_VF_INFO = 1, +__IFLA_VF_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_33 { +IFLA_VF_UNSPEC = 0, +IFLA_VF_MAC = 1, +IFLA_VF_VLAN = 2, +IFLA_VF_TX_RATE = 3, +IFLA_VF_SPOOFCHK = 4, +IFLA_VF_LINK_STATE = 5, +IFLA_VF_RATE = 6, +IFLA_VF_RSS_QUERY_EN = 7, +IFLA_VF_STATS = 8, +IFLA_VF_TRUST = 9, +IFLA_VF_IB_NODE_GUID = 10, +IFLA_VF_IB_PORT_GUID = 11, +IFLA_VF_VLAN_LIST = 12, +IFLA_VF_BROADCAST = 13, +__IFLA_VF_MAX = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_34 { +IFLA_VF_VLAN_INFO_UNSPEC = 0, +IFLA_VF_VLAN_INFO = 1, +__IFLA_VF_VLAN_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_35 { +IFLA_VF_LINK_STATE_AUTO = 0, +IFLA_VF_LINK_STATE_ENABLE = 1, +IFLA_VF_LINK_STATE_DISABLE = 2, +__IFLA_VF_LINK_STATE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_36 { +IFLA_VF_STATS_RX_PACKETS = 0, +IFLA_VF_STATS_TX_PACKETS = 1, +IFLA_VF_STATS_RX_BYTES = 2, +IFLA_VF_STATS_TX_BYTES = 3, +IFLA_VF_STATS_BROADCAST = 4, +IFLA_VF_STATS_MULTICAST = 5, +IFLA_VF_STATS_PAD = 6, +IFLA_VF_STATS_RX_DROPPED = 7, +IFLA_VF_STATS_TX_DROPPED = 8, +__IFLA_VF_STATS_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_37 { +IFLA_VF_PORT_UNSPEC = 0, +IFLA_VF_PORT = 1, +__IFLA_VF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_38 { +IFLA_PORT_UNSPEC = 0, +IFLA_PORT_VF = 1, +IFLA_PORT_PROFILE = 2, +IFLA_PORT_VSI_TYPE = 3, +IFLA_PORT_INSTANCE_UUID = 4, +IFLA_PORT_HOST_UUID = 5, +IFLA_PORT_REQUEST = 6, +IFLA_PORT_RESPONSE = 7, +__IFLA_PORT_MAX = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_39 { +PORT_REQUEST_PREASSOCIATE = 0, +PORT_REQUEST_PREASSOCIATE_RR = 1, +PORT_REQUEST_ASSOCIATE = 2, +PORT_REQUEST_DISASSOCIATE = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_40 { +PORT_VDP_RESPONSE_SUCCESS = 0, +PORT_VDP_RESPONSE_INVALID_FORMAT = 1, +PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, +PORT_VDP_RESPONSE_UNUSED_VTID = 3, +PORT_VDP_RESPONSE_VTID_VIOLATION = 4, +PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, +PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, +PORT_PROFILE_RESPONSE_SUCCESS = 256, +PORT_PROFILE_RESPONSE_INPROGRESS = 257, +PORT_PROFILE_RESPONSE_INVALID = 258, +PORT_PROFILE_RESPONSE_BADSTATE = 259, +PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, +PORT_PROFILE_RESPONSE_ERROR = 261, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_41 { +IFLA_IPOIB_UNSPEC = 0, +IFLA_IPOIB_PKEY = 1, +IFLA_IPOIB_MODE = 2, +IFLA_IPOIB_UMCAST = 3, +__IFLA_IPOIB_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_42 { +IPOIB_MODE_DATAGRAM = 0, +IPOIB_MODE_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_43 { +HSR_PROTOCOL_HSR = 0, +HSR_PROTOCOL_PRP = 1, +HSR_PROTOCOL_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_44 { +IFLA_HSR_UNSPEC = 0, +IFLA_HSR_SLAVE1 = 1, +IFLA_HSR_SLAVE2 = 2, +IFLA_HSR_MULTICAST_SPEC = 3, +IFLA_HSR_SUPERVISION_ADDR = 4, +IFLA_HSR_SEQ_NR = 5, +IFLA_HSR_VERSION = 6, +IFLA_HSR_PROTOCOL = 7, +IFLA_HSR_INTERLINK = 8, +__IFLA_HSR_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_45 { +IFLA_STATS_UNSPEC = 0, +IFLA_STATS_LINK_64 = 1, +IFLA_STATS_LINK_XSTATS = 2, +IFLA_STATS_LINK_XSTATS_SLAVE = 3, +IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, +IFLA_STATS_AF_SPEC = 5, +__IFLA_STATS_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_46 { +IFLA_STATS_GETSET_UNSPEC = 0, +IFLA_STATS_GET_FILTERS = 1, +IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, +__IFLA_STATS_GETSET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_47 { +LINK_XSTATS_TYPE_UNSPEC = 0, +LINK_XSTATS_TYPE_BRIDGE = 1, +LINK_XSTATS_TYPE_BOND = 2, +__LINK_XSTATS_TYPE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_48 { +IFLA_OFFLOAD_XSTATS_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, +IFLA_OFFLOAD_XSTATS_L3_STATS = 3, +__IFLA_OFFLOAD_XSTATS_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_49 { +IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, +__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_50 { +XDP_ATTACHED_NONE = 0, +XDP_ATTACHED_DRV = 1, +XDP_ATTACHED_SKB = 2, +XDP_ATTACHED_HW = 3, +XDP_ATTACHED_MULTI = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_51 { +IFLA_XDP_UNSPEC = 0, +IFLA_XDP_FD = 1, +IFLA_XDP_ATTACHED = 2, +IFLA_XDP_FLAGS = 3, +IFLA_XDP_PROG_ID = 4, +IFLA_XDP_DRV_PROG_ID = 5, +IFLA_XDP_SKB_PROG_ID = 6, +IFLA_XDP_HW_PROG_ID = 7, +IFLA_XDP_EXPECTED_FD = 8, +__IFLA_XDP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_52 { +IFLA_EVENT_NONE = 0, +IFLA_EVENT_REBOOT = 1, +IFLA_EVENT_FEATURES = 2, +IFLA_EVENT_BONDING_FAILOVER = 3, +IFLA_EVENT_NOTIFY_PEERS = 4, +IFLA_EVENT_IGMP_RESEND = 5, +IFLA_EVENT_BONDING_OPTIONS = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_53 { +IFLA_TUN_UNSPEC = 0, +IFLA_TUN_OWNER = 1, +IFLA_TUN_GROUP = 2, +IFLA_TUN_TYPE = 3, +IFLA_TUN_PI = 4, +IFLA_TUN_VNET_HDR = 5, +IFLA_TUN_PERSIST = 6, +IFLA_TUN_MULTI_QUEUE = 7, +IFLA_TUN_NUM_QUEUES = 8, +IFLA_TUN_NUM_DISABLED_QUEUES = 9, +__IFLA_TUN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_54 { +IFLA_RMNET_UNSPEC = 0, +IFLA_RMNET_MUX_ID = 1, +IFLA_RMNET_FLAGS = 2, +__IFLA_RMNET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_55 { +IFLA_MCTP_UNSPEC = 0, +IFLA_MCTP_NET = 1, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_56 { +IFLA_DSA_UNSPEC = 0, +IFLA_DSA_CONDUIT = 1, +__IFLA_DSA_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ovpn_mode { +OVPN_MODE_P2P = 0, +OVPN_MODE_MP = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_57 { +IFLA_OVPN_UNSPEC = 0, +IFLA_OVPN_MODE = 1, +__IFLA_OVPN_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_58 { +IF_PORT_UNKNOWN = 0, +IF_PORT_10BASE2 = 1, +IF_PORT_10BASET = 2, +IF_PORT_AUI = 3, +IF_PORT_100BASET = 4, +IF_PORT_100BASETX = 5, +IF_PORT_100BASEFX = 6, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __kernel_sockaddr_storage__bindgen_ty_1 { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, +pub __align: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union if_settings__bindgen_ty_1 { +pub raw_hdlc: *mut raw_hdlc_proto, +pub cisco: *mut cisco_proto, +pub fr: *mut fr_proto, +pub fr_pvc: *mut fr_proto_pvc, +pub fr_pvc_info: *mut fr_proto_pvc_info, +pub x25: *mut x25_hdlc_proto, +pub sync: *mut sync_serial_settings, +pub te1: *mut te1_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_1 { +pub ifrn_name: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_2 { +pub ifru_addr: sockaddr, +pub ifru_dstaddr: sockaddr, +pub ifru_broadaddr: sockaddr, +pub ifru_netmask: sockaddr, +pub ifru_hwaddr: sockaddr, +pub ifru_flags: crate::ctypes::c_short, +pub ifru_ivalue: crate::ctypes::c_int, +pub ifru_mtu: crate::ctypes::c_int, +pub ifru_map: ifmap, +pub ifru_slave: [crate::ctypes::c_char; 16usize], +pub ifru_newname: [crate::ctypes::c_char; 16usize], +pub ifru_data: *mut crate::ctypes::c_void, +pub ifru_settings: if_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifconf__bindgen_ty_1 { +pub ifcu_buf: *mut crate::ctypes::c_char, +pub ifcu_req: *mut ifreq, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_stats_u { +pub stats1: tpacket_stats, +pub stats3: tpacket_stats_v3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket3_hdr__bindgen_ty_1 { +pub hv1: tpacket_hdr_variant1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_ts__bindgen_ty_1 { +pub ts_usec: crate::ctypes::c_uint, +pub ts_nsec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_header_u { +pub bh1: tpacket_hdr_v1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_req_u { +pub req: tpacket_req, +pub req3: tpacket_req3, +} +impl nlmsgerr_attrs { +pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; +} +impl netlink_policy_type_attr { +pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; +} +impl macsec_validation_type { +pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; +} +impl macsec_offload { +pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; +} +impl ifla_vxlan_df { +pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; +} +impl ifla_vxlan_label_policy { +pub const VXLAN_LABEL_MAX: ifla_vxlan_label_policy = ifla_vxlan_label_policy::VXLAN_LABEL_INHERIT; +} +impl ifla_geneve_df { +pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/if_ether.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/if_ether.rs new file mode 100644 index 0000000000000000000000000000000000000000..8e621d756deeb609dbc18330ccb9d53438148876 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/if_ether.rs @@ -0,0 +1,170 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct ethhdr { +pub h_dest: [crate::ctypes::c_uchar; 6usize], +pub h_source: [crate::ctypes::c_uchar; 6usize], +pub h_proto: __be16, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const ETH_ALEN: u32 = 6; +pub const ETH_TLEN: u32 = 2; +pub const ETH_HLEN: u32 = 14; +pub const ETH_ZLEN: u32 = 60; +pub const ETH_DATA_LEN: u32 = 1500; +pub const ETH_FRAME_LEN: u32 = 1514; +pub const ETH_FCS_LEN: u32 = 4; +pub const ETH_MIN_MTU: u32 = 68; +pub const ETH_MAX_MTU: u32 = 65535; +pub const ETH_P_LOOP: u32 = 96; +pub const ETH_P_PUP: u32 = 512; +pub const ETH_P_PUPAT: u32 = 513; +pub const ETH_P_TSN: u32 = 8944; +pub const ETH_P_ERSPAN2: u32 = 8939; +pub const ETH_P_IP: u32 = 2048; +pub const ETH_P_X25: u32 = 2053; +pub const ETH_P_ARP: u32 = 2054; +pub const ETH_P_BPQ: u32 = 2303; +pub const ETH_P_IEEEPUP: u32 = 2560; +pub const ETH_P_IEEEPUPAT: u32 = 2561; +pub const ETH_P_BATMAN: u32 = 17157; +pub const ETH_P_DEC: u32 = 24576; +pub const ETH_P_DNA_DL: u32 = 24577; +pub const ETH_P_DNA_RC: u32 = 24578; +pub const ETH_P_DNA_RT: u32 = 24579; +pub const ETH_P_LAT: u32 = 24580; +pub const ETH_P_DIAG: u32 = 24581; +pub const ETH_P_CUST: u32 = 24582; +pub const ETH_P_SCA: u32 = 24583; +pub const ETH_P_TEB: u32 = 25944; +pub const ETH_P_RARP: u32 = 32821; +pub const ETH_P_ATALK: u32 = 32923; +pub const ETH_P_AARP: u32 = 33011; +pub const ETH_P_8021Q: u32 = 33024; +pub const ETH_P_ERSPAN: u32 = 35006; +pub const ETH_P_IPX: u32 = 33079; +pub const ETH_P_IPV6: u32 = 34525; +pub const ETH_P_PAUSE: u32 = 34824; +pub const ETH_P_SLOW: u32 = 34825; +pub const ETH_P_WCCP: u32 = 34878; +pub const ETH_P_MPLS_UC: u32 = 34887; +pub const ETH_P_MPLS_MC: u32 = 34888; +pub const ETH_P_ATMMPOA: u32 = 34892; +pub const ETH_P_PPP_DISC: u32 = 34915; +pub const ETH_P_PPP_SES: u32 = 34916; +pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_ATMFATE: u32 = 34948; +pub const ETH_P_PAE: u32 = 34958; +pub const ETH_P_PROFINET: u32 = 34962; +pub const ETH_P_REALTEK: u32 = 34969; +pub const ETH_P_AOE: u32 = 34978; +pub const ETH_P_ETHERCAT: u32 = 34980; +pub const ETH_P_8021AD: u32 = 34984; +pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_PREAUTH: u32 = 35015; +pub const ETH_P_TIPC: u32 = 35018; +pub const ETH_P_LLDP: u32 = 35020; +pub const ETH_P_MRP: u32 = 35043; +pub const ETH_P_MACSEC: u32 = 35045; +pub const ETH_P_8021AH: u32 = 35047; +pub const ETH_P_MVRP: u32 = 35061; +pub const ETH_P_1588: u32 = 35063; +pub const ETH_P_NCSI: u32 = 35064; +pub const ETH_P_PRP: u32 = 35067; +pub const ETH_P_CFM: u32 = 35074; +pub const ETH_P_FCOE: u32 = 35078; +pub const ETH_P_IBOE: u32 = 35093; +pub const ETH_P_TDLS: u32 = 35085; +pub const ETH_P_FIP: u32 = 35092; +pub const ETH_P_80221: u32 = 35095; +pub const ETH_P_HSR: u32 = 35119; +pub const ETH_P_NSH: u32 = 35151; +pub const ETH_P_LOOPBACK: u32 = 36864; +pub const ETH_P_QINQ1: u32 = 37120; +pub const ETH_P_QINQ2: u32 = 37376; +pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_EDSA: u32 = 56026; +pub const ETH_P_DSA_8021Q: u32 = 56027; +pub const ETH_P_DSA_A5PSW: u32 = 57345; +pub const ETH_P_IFE: u32 = 60734; +pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_802_3_MIN: u32 = 1536; +pub const ETH_P_802_3: u32 = 1; +pub const ETH_P_AX25: u32 = 2; +pub const ETH_P_ALL: u32 = 3; +pub const ETH_P_802_2: u32 = 4; +pub const ETH_P_SNAP: u32 = 5; +pub const ETH_P_DDCMP: u32 = 6; +pub const ETH_P_WAN_PPP: u32 = 7; +pub const ETH_P_PPP_MP: u32 = 8; +pub const ETH_P_LOCALTALK: u32 = 9; +pub const ETH_P_CAN: u32 = 12; +pub const ETH_P_CANFD: u32 = 13; +pub const ETH_P_CANXL: u32 = 14; +pub const ETH_P_PPPTALK: u32 = 16; +pub const ETH_P_TR_802_2: u32 = 17; +pub const ETH_P_MOBITEX: u32 = 21; +pub const ETH_P_CONTROL: u32 = 22; +pub const ETH_P_IRDA: u32 = 23; +pub const ETH_P_ECONET: u32 = 24; +pub const ETH_P_HDLC: u32 = 25; +pub const ETH_P_ARCNET: u32 = 26; +pub const ETH_P_DSA: u32 = 27; +pub const ETH_P_TRAILER: u32 = 28; +pub const ETH_P_PHONET: u32 = 245; +pub const ETH_P_IEEE802154: u32 = 246; +pub const ETH_P_CAIF: u32 = 247; +pub const ETH_P_XDSA: u32 = 248; +pub const ETH_P_MAP: u32 = 249; +pub const ETH_P_MCTP: u32 = 250; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/if_packet.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/if_packet.rs new file mode 100644 index 0000000000000000000000000000000000000000..6deaf325da2dcccdcfc92fc7fd75df85f9ffec3a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/if_packet.rs @@ -0,0 +1,311 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_pkt { +pub spkt_family: crate::ctypes::c_ushort, +pub spkt_device: [crate::ctypes::c_uchar; 14usize], +pub spkt_protocol: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_ll { +pub sll_family: crate::ctypes::c_ushort, +pub sll_protocol: __be16, +pub sll_ifindex: crate::ctypes::c_int, +pub sll_hatype: crate::ctypes::c_ushort, +pub sll_pkttype: crate::ctypes::c_uchar, +pub sll_halen: crate::ctypes::c_uchar, +pub sll_addr: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats_v3 { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +pub tp_freeze_q_cnt: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_rollover_stats { +pub tp_all: __u64, +pub tp_huge: __u64, +pub tp_failed: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_auxdata { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr { +pub tp_status: crate::ctypes::c_ulong, +pub tp_len: crate::ctypes::c_uint, +pub tp_snaplen: crate::ctypes::c_uint, +pub tp_mac: crate::ctypes::c_ushort, +pub tp_net: crate::ctypes::c_ushort, +pub tp_sec: crate::ctypes::c_uint, +pub tp_usec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket2_hdr { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +pub tp_padding: [__u8; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr_variant1 { +pub tp_rxhash: __u32, +pub tp_vlan_tci: __u32, +pub tp_vlan_tpid: __u16, +pub tp_padding: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket3_hdr { +pub tp_next_offset: __u32, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_snaplen: __u32, +pub tp_len: __u32, +pub tp_status: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub __bindgen_anon_1: tpacket3_hdr__bindgen_ty_1, +pub tp_padding: [__u8; 8usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_bd_ts { +pub ts_sec: crate::ctypes::c_uint, +pub __bindgen_anon_1: tpacket_bd_ts__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_hdr_v1 { +pub block_status: __u32, +pub num_pkts: __u32, +pub offset_to_first_pkt: __u32, +pub blk_len: __u32, +pub seq_num: __u64, +pub ts_first_pkt: tpacket_bd_ts, +pub ts_last_pkt: tpacket_bd_ts, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_block_desc { +pub version: __u32, +pub offset_to_priv: __u32, +pub hdr: tpacket_bd_header_u, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req3 { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +pub tp_retire_blk_tov: crate::ctypes::c_uint, +pub tp_sizeof_priv: crate::ctypes::c_uint, +pub tp_feature_req_word: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct packet_mreq { +pub mr_ifindex: crate::ctypes::c_int, +pub mr_type: crate::ctypes::c_ushort, +pub mr_alen: crate::ctypes::c_ushort, +pub mr_address: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fanout_args { +pub id: __u16, +pub type_flags: __u16, +pub max_num_members: __u32, +} +pub const __LITTLE_ENDIAN: u32 = 1234; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const PACKET_HOST: u32 = 0; +pub const PACKET_BROADCAST: u32 = 1; +pub const PACKET_MULTICAST: u32 = 2; +pub const PACKET_OTHERHOST: u32 = 3; +pub const PACKET_OUTGOING: u32 = 4; +pub const PACKET_LOOPBACK: u32 = 5; +pub const PACKET_USER: u32 = 6; +pub const PACKET_KERNEL: u32 = 7; +pub const PACKET_FASTROUTE: u32 = 6; +pub const PACKET_ADD_MEMBERSHIP: u32 = 1; +pub const PACKET_DROP_MEMBERSHIP: u32 = 2; +pub const PACKET_RECV_OUTPUT: u32 = 3; +pub const PACKET_RX_RING: u32 = 5; +pub const PACKET_STATISTICS: u32 = 6; +pub const PACKET_COPY_THRESH: u32 = 7; +pub const PACKET_AUXDATA: u32 = 8; +pub const PACKET_ORIGDEV: u32 = 9; +pub const PACKET_VERSION: u32 = 10; +pub const PACKET_HDRLEN: u32 = 11; +pub const PACKET_RESERVE: u32 = 12; +pub const PACKET_TX_RING: u32 = 13; +pub const PACKET_LOSS: u32 = 14; +pub const PACKET_VNET_HDR: u32 = 15; +pub const PACKET_TX_TIMESTAMP: u32 = 16; +pub const PACKET_TIMESTAMP: u32 = 17; +pub const PACKET_FANOUT: u32 = 18; +pub const PACKET_TX_HAS_OFF: u32 = 19; +pub const PACKET_QDISC_BYPASS: u32 = 20; +pub const PACKET_ROLLOVER_STATS: u32 = 21; +pub const PACKET_FANOUT_DATA: u32 = 22; +pub const PACKET_IGNORE_OUTGOING: u32 = 23; +pub const PACKET_VNET_HDR_SZ: u32 = 24; +pub const PACKET_FANOUT_HASH: u32 = 0; +pub const PACKET_FANOUT_LB: u32 = 1; +pub const PACKET_FANOUT_CPU: u32 = 2; +pub const PACKET_FANOUT_ROLLOVER: u32 = 3; +pub const PACKET_FANOUT_RND: u32 = 4; +pub const PACKET_FANOUT_QM: u32 = 5; +pub const PACKET_FANOUT_CBPF: u32 = 6; +pub const PACKET_FANOUT_EBPF: u32 = 7; +pub const PACKET_FANOUT_FLAG_ROLLOVER: u32 = 4096; +pub const PACKET_FANOUT_FLAG_UNIQUEID: u32 = 8192; +pub const PACKET_FANOUT_FLAG_IGNORE_OUTGOING: u32 = 16384; +pub const PACKET_FANOUT_FLAG_DEFRAG: u32 = 32768; +pub const TP_STATUS_KERNEL: u32 = 0; +pub const TP_STATUS_USER: u32 = 1; +pub const TP_STATUS_COPY: u32 = 2; +pub const TP_STATUS_LOSING: u32 = 4; +pub const TP_STATUS_CSUMNOTREADY: u32 = 8; +pub const TP_STATUS_VLAN_VALID: u32 = 16; +pub const TP_STATUS_BLK_TMO: u32 = 32; +pub const TP_STATUS_VLAN_TPID_VALID: u32 = 64; +pub const TP_STATUS_CSUM_VALID: u32 = 128; +pub const TP_STATUS_GSO_TCP: u32 = 256; +pub const TP_STATUS_AVAILABLE: u32 = 0; +pub const TP_STATUS_SEND_REQUEST: u32 = 1; +pub const TP_STATUS_SENDING: u32 = 2; +pub const TP_STATUS_WRONG_FORMAT: u32 = 4; +pub const TP_STATUS_TS_SOFTWARE: u32 = 536870912; +pub const TP_STATUS_TS_SYS_HARDWARE: u32 = 1073741824; +pub const TP_STATUS_TS_RAW_HARDWARE: u32 = 2147483648; +pub const TP_FT_REQ_FILL_RXHASH: u32 = 1; +pub const TPACKET_ALIGNMENT: u32 = 16; +pub const PACKET_MR_MULTICAST: u32 = 0; +pub const PACKET_MR_PROMISC: u32 = 1; +pub const PACKET_MR_ALLMULTI: u32 = 2; +pub const PACKET_MR_UNICAST: u32 = 3; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tpacket_versions { +TPACKET_V1 = 0, +TPACKET_V2 = 1, +TPACKET_V3 = 2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_stats_u { +pub stats1: tpacket_stats, +pub stats3: tpacket_stats_v3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket3_hdr__bindgen_ty_1 { +pub hv1: tpacket_hdr_variant1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_ts__bindgen_ty_1 { +pub ts_usec: crate::ctypes::c_uint, +pub ts_nsec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_header_u { +pub bh1: tpacket_hdr_v1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_req_u { +pub req: tpacket_req, +pub req3: tpacket_req3, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/image.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/image.rs new file mode 100644 index 0000000000000000000000000000000000000000..92449817ff1f3a1821eaafa4b0c0f4913947a4c9 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/image.rs @@ -0,0 +1,80 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct arm64_image_header { +pub code0: __le32, +pub code1: __le32, +pub text_offset: __le64, +pub image_size: __le64, +pub flags: __le64, +pub res2: __le64, +pub res3: __le64, +pub res4: __le64, +pub magic: __le32, +pub res5: __le32, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const ARM64_IMAGE_MAGIC: &[u8; 5] = b"ARMd\0"; +pub const ARM64_IMAGE_FLAG_BE_SHIFT: u32 = 0; +pub const ARM64_IMAGE_FLAG_PAGE_SIZE_SHIFT: u32 = 1; +pub const ARM64_IMAGE_FLAG_PHYS_BASE_SHIFT: u32 = 3; +pub const ARM64_IMAGE_FLAG_BE_MASK: u32 = 1; +pub const ARM64_IMAGE_FLAG_PAGE_SIZE_MASK: u32 = 3; +pub const ARM64_IMAGE_FLAG_PHYS_BASE_MASK: u32 = 1; +pub const ARM64_IMAGE_FLAG_LE: u32 = 0; +pub const ARM64_IMAGE_FLAG_BE: u32 = 1; +pub const ARM64_IMAGE_FLAG_PAGE_SIZE_4K: u32 = 1; +pub const ARM64_IMAGE_FLAG_PAGE_SIZE_16K: u32 = 2; +pub const ARM64_IMAGE_FLAG_PAGE_SIZE_64K: u32 = 3; +pub const ARM64_IMAGE_FLAG_PHYS_BASE: u32 = 1; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/io_uring.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/io_uring.rs new file mode 100644 index 0000000000000000000000000000000000000000..6c7be8cca21d531d8ee64486eba7e834839f787a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/io_uring.rs @@ -0,0 +1,1440 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_rwf_t = crate::ctypes::c_int; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +pub struct __BindgenUnionField(::core::marker::PhantomData); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v1 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub master_key_descriptor: [__u8; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_key { +pub mode: __u32, +pub raw: [__u8; 64usize], +pub size: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v2 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub log2_data_unit_size: __u8, +pub __reserved: [__u8; 3usize], +pub master_key_identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_policy_ex_arg { +pub policy_size: __u64, +pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_key_specifier { +pub type_: __u32, +pub __reserved: __u32, +pub u: fscrypt_key_specifier__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct fscrypt_provisioning_key_payload { +pub type_: __u32, +pub flags: __u32, +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +pub struct fscrypt_add_key_arg { +pub key_spec: fscrypt_key_specifier, +pub raw_size: __u32, +pub key_id: __u32, +pub flags: __u32, +pub __reserved: [__u32; 7usize], +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_remove_key_arg { +pub key_spec: fscrypt_key_specifier, +pub removal_status_flags: __u32, +pub __reserved: [__u32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_key_status_arg { +pub key_spec: fscrypt_key_specifier, +pub __reserved: [__u32; 6usize], +pub status: __u32, +pub status_flags: __u32, +pub user_count: __u32, +pub __out_reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mount_attr { +pub attr_set: __u64, +pub attr_clr: __u64, +pub propagation: __u64, +pub userns_fd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct statmount { +pub size: __u32, +pub mnt_opts: __u32, +pub mask: __u64, +pub sb_dev_major: __u32, +pub sb_dev_minor: __u32, +pub sb_magic: __u64, +pub sb_flags: __u32, +pub fs_type: __u32, +pub mnt_id: __u64, +pub mnt_parent_id: __u64, +pub mnt_id_old: __u32, +pub mnt_parent_id_old: __u32, +pub mnt_attr: __u64, +pub mnt_propagation: __u64, +pub mnt_peer_group: __u64, +pub mnt_master: __u64, +pub propagate_from: __u64, +pub mnt_root: __u32, +pub mnt_point: __u32, +pub mnt_ns_id: __u64, +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub supported_mask: __u64, +pub mnt_uidmap_num: __u32, +pub mnt_uidmap: __u32, +pub mnt_gidmap_num: __u32, +pub mnt_gidmap: __u32, +pub __spare2: [__u64; 43usize], +pub str_: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mnt_id_req { +pub size: __u32, +pub spare: __u32, +pub mnt_id: __u64, +pub param: __u64, +pub mnt_ns_id: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_clone_range { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fstrim_range { +pub start: __u64, +pub len: __u64, +pub minlen: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsuuid2 { +pub len: __u8, +pub uuid: [__u8; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fs_sysfs_path { +pub len: __u8, +pub name: [__u8; 128usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_dedupe_range_info { +pub dest_fd: __s64, +pub dest_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct file_dedupe_range { +pub src_offset: __u64, +pub src_length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct files_stat_struct { +pub nr_files: crate::ctypes::c_ulong, +pub nr_free_files: crate::ctypes::c_ulong, +pub max_files: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct inodes_stat_t { +pub nr_inodes: crate::ctypes::c_long, +pub nr_unused: crate::ctypes::c_long, +pub dummy: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsxattr { +pub fsx_xflags: __u32, +pub fsx_extsize: __u32, +pub fsx_nextents: __u32, +pub fsx_projid: __u32, +pub fsx_cowextsize: __u32, +pub fsx_pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct page_region { +pub start: __u64, +pub end: __u64, +pub categories: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pm_scan_arg { +pub size: __u64, +pub flags: __u64, +pub start: __u64, +pub end: __u64, +pub walk_end: __u64, +pub vec: __u64, +pub vec_len: __u64, +pub max_pages: __u64, +pub category_inverted: __u64, +pub category_mask: __u64, +pub category_anyof_mask: __u64, +pub return_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct procmap_query { +pub size: __u64, +pub query_flags: __u64, +pub query_addr: __u64, +pub vma_start: __u64, +pub vma_end: __u64, +pub vma_flags: __u64, +pub vma_page_size: __u64, +pub vma_offset: __u64, +pub inode: __u64, +pub dev_major: __u32, +pub dev_minor: __u32, +pub vma_name_size: __u32, +pub build_id_size: __u32, +pub vma_name_addr: __u64, +pub build_id_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_timespec { +pub tv_sec: __kernel_time64_t, +pub tv_nsec: crate::ctypes::c_longlong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_itimerspec { +pub it_interval: __kernel_timespec, +pub it_value: __kernel_timespec, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_long_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timespec { +pub tv_sec: __kernel_old_time_t, +pub tv_nsec: crate::ctypes::c_long, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_itimerval { +pub it_interval: __kernel_old_timeval, +pub it_value: __kernel_old_timeval, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sock_timeval { +pub tv_sec: __s64, +pub tv_usec: __s64, +} +#[repr(C)] +pub struct io_uring_sqe { +pub opcode: __u8, +pub flags: __u8, +pub ioprio: __u16, +pub fd: __s32, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, +pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, +pub len: __u32, +pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, +pub user_data: __u64, +pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, +pub personality: __u16, +pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, +pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { +pub cmd_op: __u32, +pub __pad1: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_2__bindgen_ty_1 { +pub level: __u32, +pub optname: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { +pub addr_len: __u16, +pub __pad3: [__u16; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_2 { +pub write_stream: __u8, +pub __pad4: [__u8; 3usize], +} +#[repr(C)] +pub struct io_uring_sqe__bindgen_ty_6 { +pub __bindgen_anon_1: __BindgenUnionField, +pub __bindgen_anon_2: __BindgenUnionField, +pub optval: __BindgenUnionField<__u64>, +pub cmd: __BindgenUnionField<[__u8; 0usize]>, +pub bindgen_union_field: [u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { +pub addr3: __u64, +pub __pad2: [__u64; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_2 { +pub attr_ptr: __u64, +pub attr_type_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_attr_pi { +pub flags: __u16, +pub app_tag: __u16, +pub len: __u32, +pub addr: __u64, +pub seed: __u64, +pub rsvd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct io_uring_cqe { +pub user_data: __u64, +pub res: __s32, +pub flags: __u32, +pub big_cqe: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_sqring_offsets { +pub head: __u32, +pub tail: __u32, +pub ring_mask: __u32, +pub ring_entries: __u32, +pub flags: __u32, +pub dropped: __u32, +pub array: __u32, +pub resv1: __u32, +pub user_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_cqring_offsets { +pub head: __u32, +pub tail: __u32, +pub ring_mask: __u32, +pub ring_entries: __u32, +pub overflow: __u32, +pub cqes: __u32, +pub flags: __u32, +pub resv1: __u32, +pub user_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_params { +pub sq_entries: __u32, +pub cq_entries: __u32, +pub flags: __u32, +pub sq_thread_cpu: __u32, +pub sq_thread_idle: __u32, +pub features: __u32, +pub wq_fd: __u32, +pub resv: [__u32; 3usize], +pub sq_off: io_sqring_offsets, +pub cq_off: io_cqring_offsets, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_files_update { +pub offset: __u32, +pub resv: __u32, +pub fds: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_region_desc { +pub user_addr: __u64, +pub size: __u64, +pub flags: __u32, +pub id: __u32, +pub mmap_offset: __u64, +pub __resv: [__u64; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_mem_region_reg { +pub region_uptr: __u64, +pub flags: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_rsrc_register { +pub nr: __u32, +pub flags: __u32, +pub resv2: __u64, +pub data: __u64, +pub tags: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_rsrc_update { +pub offset: __u32, +pub resv: __u32, +pub data: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_rsrc_update2 { +pub offset: __u32, +pub resv: __u32, +pub data: __u64, +pub tags: __u64, +pub nr: __u32, +pub resv2: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_probe_op { +pub op: __u8, +pub resv: __u8, +pub flags: __u16, +pub resv2: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct io_uring_probe { +pub last_op: __u8, +pub ops_len: __u8, +pub resv: __u16, +pub resv2: [__u32; 3usize], +pub ops: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct io_uring_restriction { +pub opcode: __u16, +pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, +pub resv: __u8, +pub resv2: [__u32; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_clock_register { +pub clockid: __u32, +pub __resv: [__u32; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_clone_buffers { +pub src_fd: __u32, +pub flags: __u32, +pub src_off: __u32, +pub dst_off: __u32, +pub nr: __u32, +pub pad: [__u32; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf { +pub addr: __u64, +pub len: __u32, +pub bid: __u16, +pub resv: __u16, +} +#[repr(C)] +pub struct io_uring_buf_ring { +pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_buf_ring__bindgen_ty_1 { +pub __bindgen_anon_1: __BindgenUnionField, +pub __bindgen_anon_2: __BindgenUnionField, +pub bindgen_union_field: [u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { +pub resv1: __u64, +pub resv2: __u32, +pub resv3: __u16, +pub tail: __u16, +} +#[repr(C)] +#[derive(Debug)] +pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { +pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, +pub bufs: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_reg { +pub ring_addr: __u64, +pub ring_entries: __u32, +pub bgid: __u16, +pub flags: __u16, +pub resv: [__u64; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_status { +pub buf_group: __u32, +pub head: __u32, +pub resv: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_napi { +pub busy_poll_to: __u32, +pub prefer_busy_poll: __u8, +pub opcode: __u8, +pub pad: [__u8; 2usize], +pub op_param: __u32, +pub resv: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_reg_wait { +pub ts: __kernel_timespec, +pub min_wait_usec: __u32, +pub flags: __u32, +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub pad: [__u32; 3usize], +pub pad2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_getevents_arg { +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub min_wait_usec: __u32, +pub ts: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sync_cancel_reg { +pub addr: __u64, +pub fd: __s32, +pub flags: __u32, +pub timeout: __kernel_timespec, +pub opcode: __u8, +pub pad: [__u8; 7usize], +pub pad2: [__u64; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_file_index_range { +pub off: __u32, +pub len: __u32, +pub resv: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_recvmsg_out { +pub namelen: __u32, +pub controllen: __u32, +pub payloadlen: __u32, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 3usize], +} +pub const NR_OPEN: u32 = 1024; +pub const NGROUPS_MAX: u32 = 65536; +pub const ARG_MAX: u32 = 131072; +pub const LINK_MAX: u32 = 127; +pub const MAX_CANON: u32 = 255; +pub const MAX_INPUT: u32 = 255; +pub const NAME_MAX: u32 = 255; +pub const PATH_MAX: u32 = 4096; +pub const PIPE_BUF: u32 = 4096; +pub const XATTR_NAME_MAX: u32 = 255; +pub const XATTR_SIZE_MAX: u32 = 65536; +pub const XATTR_LIST_MAX: u32 = 65536; +pub const RTSIG_MAX: u32 = 32; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_SIZEBITS: u32 = 14; +pub const _IOC_DIRBITS: u32 = 2; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 16383; +pub const _IOC_DIRMASK: u32 = 3; +pub const _IOC_NRSHIFT: u32 = 0; +pub const _IOC_TYPESHIFT: u32 = 8; +pub const _IOC_SIZESHIFT: u32 = 16; +pub const _IOC_DIRSHIFT: u32 = 30; +pub const _IOC_NONE: u32 = 0; +pub const _IOC_WRITE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const IOC_IN: u32 = 1073741824; +pub const IOC_OUT: u32 = 2147483648; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 1073676288; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; +pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; +pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; +pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; +pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; +pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; +pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; +pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; +pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; +pub const FSCRYPT_POLICY_V1: u32 = 0; +pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; +pub const FSCRYPT_POLICY_V2: u32 = 2; +pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; +pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; +pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; +pub const FSCRYPT_ADD_KEY_FLAG_HW_WRAPPED: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; +pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; +pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; +pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; +pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; +pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FS_POLICY_FLAGS_VALID: u32 = 7; +pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; +pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; +pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; +pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; +pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; +pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; +pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; +pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; +pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FS_MAX_KEY_SIZE: u32 = 64; +pub const MS_RDONLY: u32 = 1; +pub const MS_NOSUID: u32 = 2; +pub const MS_NODEV: u32 = 4; +pub const MS_NOEXEC: u32 = 8; +pub const MS_SYNCHRONOUS: u32 = 16; +pub const MS_REMOUNT: u32 = 32; +pub const MS_MANDLOCK: u32 = 64; +pub const MS_DIRSYNC: u32 = 128; +pub const MS_NOSYMFOLLOW: u32 = 256; +pub const MS_NOATIME: u32 = 1024; +pub const MS_NODIRATIME: u32 = 2048; +pub const MS_BIND: u32 = 4096; +pub const MS_MOVE: u32 = 8192; +pub const MS_REC: u32 = 16384; +pub const MS_VERBOSE: u32 = 32768; +pub const MS_SILENT: u32 = 32768; +pub const MS_POSIXACL: u32 = 65536; +pub const MS_UNBINDABLE: u32 = 131072; +pub const MS_PRIVATE: u32 = 262144; +pub const MS_SLAVE: u32 = 524288; +pub const MS_SHARED: u32 = 1048576; +pub const MS_RELATIME: u32 = 2097152; +pub const MS_KERNMOUNT: u32 = 4194304; +pub const MS_I_VERSION: u32 = 8388608; +pub const MS_STRICTATIME: u32 = 16777216; +pub const MS_LAZYTIME: u32 = 33554432; +pub const MS_SUBMOUNT: u32 = 67108864; +pub const MS_NOREMOTELOCK: u32 = 134217728; +pub const MS_NOSEC: u32 = 268435456; +pub const MS_BORN: u32 = 536870912; +pub const MS_ACTIVE: u32 = 1073741824; +pub const MS_NOUSER: u32 = 2147483648; +pub const MS_RMT_MASK: u32 = 41943121; +pub const MS_MGC_VAL: u32 = 3236757504; +pub const MS_MGC_MSK: u32 = 4294901760; +pub const OPEN_TREE_CLONE: u32 = 1; +pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; +pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; +pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; +pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; +pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; +pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; +pub const MOVE_MOUNT_SET_GROUP: u32 = 256; +pub const MOVE_MOUNT_BENEATH: u32 = 512; +pub const MOVE_MOUNT__MASK: u32 = 887; +pub const FSOPEN_CLOEXEC: u32 = 1; +pub const FSPICK_CLOEXEC: u32 = 1; +pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; +pub const FSPICK_NO_AUTOMOUNT: u32 = 4; +pub const FSPICK_EMPTY_PATH: u32 = 8; +pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const MOUNT_ATTR_RDONLY: u32 = 1; +pub const MOUNT_ATTR_NOSUID: u32 = 2; +pub const MOUNT_ATTR_NODEV: u32 = 4; +pub const MOUNT_ATTR_NOEXEC: u32 = 8; +pub const MOUNT_ATTR__ATIME: u32 = 112; +pub const MOUNT_ATTR_RELATIME: u32 = 0; +pub const MOUNT_ATTR_NOATIME: u32 = 16; +pub const MOUNT_ATTR_STRICTATIME: u32 = 32; +pub const MOUNT_ATTR_NODIRATIME: u32 = 128; +pub const MOUNT_ATTR_IDMAP: u32 = 1048576; +pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; +pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; +pub const MNT_ID_REQ_SIZE_VER0: u32 = 24; +pub const MNT_ID_REQ_SIZE_VER1: u32 = 32; +pub const STATMOUNT_SB_BASIC: u32 = 1; +pub const STATMOUNT_MNT_BASIC: u32 = 2; +pub const STATMOUNT_PROPAGATE_FROM: u32 = 4; +pub const STATMOUNT_MNT_ROOT: u32 = 8; +pub const STATMOUNT_MNT_POINT: u32 = 16; +pub const STATMOUNT_FS_TYPE: u32 = 32; +pub const STATMOUNT_MNT_NS_ID: u32 = 64; +pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; +pub const STATMOUNT_SUPPORTED_MASK: u32 = 4096; +pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; +pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; +pub const LSMT_ROOT: i32 = -1; +pub const LISTMOUNT_REVERSE: u32 = 1; +pub const INR_OPEN_CUR: u32 = 1024; +pub const INR_OPEN_MAX: u32 = 4096; +pub const BLOCK_SIZE_BITS: u32 = 10; +pub const BLOCK_SIZE: u32 = 1024; +pub const IO_INTEGRITY_CHK_GUARD: u32 = 1; +pub const IO_INTEGRITY_CHK_REFTAG: u32 = 2; +pub const IO_INTEGRITY_CHK_APPTAG: u32 = 4; +pub const IO_INTEGRITY_VALID_FLAGS: u32 = 7; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const SEEK_DATA: u32 = 3; +pub const SEEK_HOLE: u32 = 4; +pub const SEEK_MAX: u32 = 4; +pub const RENAME_NOREPLACE: u32 = 1; +pub const RENAME_EXCHANGE: u32 = 2; +pub const RENAME_WHITEOUT: u32 = 4; +pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; +pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; +pub const NR_FILE: u32 = 8192; +pub const FS_XFLAG_REALTIME: u32 = 1; +pub const FS_XFLAG_PREALLOC: u32 = 2; +pub const FS_XFLAG_IMMUTABLE: u32 = 8; +pub const FS_XFLAG_APPEND: u32 = 16; +pub const FS_XFLAG_SYNC: u32 = 32; +pub const FS_XFLAG_NOATIME: u32 = 64; +pub const FS_XFLAG_NODUMP: u32 = 128; +pub const FS_XFLAG_RTINHERIT: u32 = 256; +pub const FS_XFLAG_PROJINHERIT: u32 = 512; +pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; +pub const FS_XFLAG_EXTSIZE: u32 = 2048; +pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; +pub const FS_XFLAG_NODEFRAG: u32 = 8192; +pub const FS_XFLAG_FILESTREAM: u32 = 16384; +pub const FS_XFLAG_DAX: u32 = 32768; +pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_HASATTR: u32 = 2147483648; +pub const BMAP_IOCTL: u32 = 1; +pub const FSLABEL_MAX: u32 = 256; +pub const FS_SECRM_FL: u32 = 1; +pub const FS_UNRM_FL: u32 = 2; +pub const FS_COMPR_FL: u32 = 4; +pub const FS_SYNC_FL: u32 = 8; +pub const FS_IMMUTABLE_FL: u32 = 16; +pub const FS_APPEND_FL: u32 = 32; +pub const FS_NODUMP_FL: u32 = 64; +pub const FS_NOATIME_FL: u32 = 128; +pub const FS_DIRTY_FL: u32 = 256; +pub const FS_COMPRBLK_FL: u32 = 512; +pub const FS_NOCOMP_FL: u32 = 1024; +pub const FS_ENCRYPT_FL: u32 = 2048; +pub const FS_BTREE_FL: u32 = 4096; +pub const FS_INDEX_FL: u32 = 4096; +pub const FS_IMAGIC_FL: u32 = 8192; +pub const FS_JOURNAL_DATA_FL: u32 = 16384; +pub const FS_NOTAIL_FL: u32 = 32768; +pub const FS_DIRSYNC_FL: u32 = 65536; +pub const FS_TOPDIR_FL: u32 = 131072; +pub const FS_HUGE_FILE_FL: u32 = 262144; +pub const FS_EXTENT_FL: u32 = 524288; +pub const FS_VERITY_FL: u32 = 1048576; +pub const FS_EA_INODE_FL: u32 = 2097152; +pub const FS_EOFBLOCKS_FL: u32 = 4194304; +pub const FS_NOCOW_FL: u32 = 8388608; +pub const FS_DAX_FL: u32 = 33554432; +pub const FS_INLINE_DATA_FL: u32 = 268435456; +pub const FS_PROJINHERIT_FL: u32 = 536870912; +pub const FS_CASEFOLD_FL: u32 = 1073741824; +pub const FS_RESERVED_FL: u32 = 2147483648; +pub const FS_FL_USER_VISIBLE: u32 = 253951; +pub const FS_FL_USER_MODIFIABLE: u32 = 229631; +pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; +pub const SYNC_FILE_RANGE_WRITE: u32 = 2; +pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; +pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; +pub const PROCFS_IOCTL_MAGIC: u8 = 102u8; +pub const PAGE_IS_WPALLOWED: u32 = 1; +pub const PAGE_IS_WRITTEN: u32 = 2; +pub const PAGE_IS_FILE: u32 = 4; +pub const PAGE_IS_PRESENT: u32 = 8; +pub const PAGE_IS_SWAPPED: u32 = 16; +pub const PAGE_IS_PFNZERO: u32 = 32; +pub const PAGE_IS_HUGE: u32 = 64; +pub const PAGE_IS_SOFT_DIRTY: u32 = 128; +pub const PAGE_IS_GUARD: u32 = 256; +pub const PM_SCAN_WP_MATCHING: u32 = 1; +pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; +pub const IORING_FILE_INDEX_ALLOC: i32 = -1; +pub const IORING_SETUP_IOPOLL: u32 = 1; +pub const IORING_SETUP_SQPOLL: u32 = 2; +pub const IORING_SETUP_SQ_AFF: u32 = 4; +pub const IORING_SETUP_CQSIZE: u32 = 8; +pub const IORING_SETUP_CLAMP: u32 = 16; +pub const IORING_SETUP_ATTACH_WQ: u32 = 32; +pub const IORING_SETUP_R_DISABLED: u32 = 64; +pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; +pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; +pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; +pub const IORING_SETUP_SQE128: u32 = 1024; +pub const IORING_SETUP_CQE32: u32 = 2048; +pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; +pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; +pub const IORING_SETUP_NO_MMAP: u32 = 16384; +pub const IORING_SETUP_REGISTERED_FD_ONLY: u32 = 32768; +pub const IORING_SETUP_NO_SQARRAY: u32 = 65536; +pub const IORING_SETUP_HYBRID_IOPOLL: u32 = 131072; +pub const IORING_URING_CMD_FIXED: u32 = 1; +pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_FSYNC_DATASYNC: u32 = 1; +pub const IORING_TIMEOUT_ABS: u32 = 1; +pub const IORING_TIMEOUT_UPDATE: u32 = 2; +pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; +pub const IORING_TIMEOUT_REALTIME: u32 = 8; +pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; +pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; +pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; +pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; +pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; +pub const IORING_POLL_ADD_MULTI: u32 = 1; +pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; +pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; +pub const IORING_POLL_ADD_LEVEL: u32 = 8; +pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; +pub const IORING_ASYNC_CANCEL_FD: u32 = 2; +pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; +pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; +pub const IORING_ASYNC_CANCEL_USERDATA: u32 = 16; +pub const IORING_ASYNC_CANCEL_OP: u32 = 32; +pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; +pub const IORING_RECV_MULTISHOT: u32 = 2; +pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; +pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; +pub const IORING_RECVSEND_BUNDLE: u32 = 16; +pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; +pub const IORING_ACCEPT_MULTISHOT: u32 = 1; +pub const IORING_ACCEPT_DONTWAIT: u32 = 2; +pub const IORING_ACCEPT_POLL_FIRST: u32 = 4; +pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; +pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; +pub const IORING_FIXED_FD_NO_CLOEXEC: u32 = 1; +pub const IORING_NOP_INJECT_RESULT: u32 = 1; +pub const IORING_NOP_FILE: u32 = 2; +pub const IORING_NOP_FIXED_FILE: u32 = 4; +pub const IORING_NOP_FIXED_BUFFER: u32 = 8; +pub const IORING_CQE_F_BUFFER: u32 = 1; +pub const IORING_CQE_F_MORE: u32 = 2; +pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; +pub const IORING_CQE_F_NOTIF: u32 = 8; +pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; +pub const IORING_OFF_SQ_RING: u32 = 0; +pub const IORING_OFF_CQ_RING: u32 = 134217728; +pub const IORING_OFF_SQES: u32 = 268435456; +pub const IORING_OFF_PBUF_RING: u32 = 2147483648; +pub const IORING_OFF_PBUF_SHIFT: u32 = 16; +pub const IORING_OFF_MMAP_MASK: u32 = 4160749568; +pub const IORING_SQ_NEED_WAKEUP: u32 = 1; +pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; +pub const IORING_SQ_TASKRUN: u32 = 4; +pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; +pub const IORING_ENTER_GETEVENTS: u32 = 1; +pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; +pub const IORING_ENTER_SQ_WAIT: u32 = 4; +pub const IORING_ENTER_EXT_ARG: u32 = 8; +pub const IORING_ENTER_REGISTERED_RING: u32 = 16; +pub const IORING_ENTER_ABS_TIMER: u32 = 32; +pub const IORING_ENTER_EXT_ARG_REG: u32 = 64; +pub const IORING_ENTER_NO_IOWAIT: u32 = 128; +pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; +pub const IORING_FEAT_NODROP: u32 = 2; +pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; +pub const IORING_FEAT_RW_CUR_POS: u32 = 8; +pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; +pub const IORING_FEAT_FAST_POLL: u32 = 32; +pub const IORING_FEAT_POLL_32BITS: u32 = 64; +pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; +pub const IORING_FEAT_EXT_ARG: u32 = 256; +pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; +pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; +pub const IORING_FEAT_CQE_SKIP: u32 = 2048; +pub const IORING_FEAT_LINKED_FILE: u32 = 4096; +pub const IORING_FEAT_REG_REG_RING: u32 = 8192; +pub const IORING_FEAT_RECVSEND_BUNDLE: u32 = 16384; +pub const IORING_FEAT_MIN_TIMEOUT: u32 = 32768; +pub const IORING_FEAT_RW_ATTR: u32 = 65536; +pub const IORING_FEAT_NO_IOWAIT: u32 = 131072; +pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; +pub const IORING_REGISTER_FILES_SKIP: i32 = -2; +pub const IO_URING_OP_SUPPORTED: u32 = 1; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; +pub const IORING_MEM_REGION_TYPE_USER: _bindgen_ty_1 = _bindgen_ty_1::IORING_MEM_REGION_TYPE_USER; +pub const IORING_MEM_REGION_REG_WAIT_ARG: _bindgen_ty_2 = _bindgen_ty_2::IORING_MEM_REGION_REG_WAIT_ARG; +pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_REGISTER_DST_REPLACE: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_DST_REPLACE; +pub const IORING_REG_WAIT_TS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REG_WAIT_TS; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum fsconfig_command { +FSCONFIG_SET_FLAG = 0, +FSCONFIG_SET_STRING = 1, +FSCONFIG_SET_BINARY = 2, +FSCONFIG_SET_PATH = 3, +FSCONFIG_SET_PATH_EMPTY = 4, +FSCONFIG_SET_FD = 5, +FSCONFIG_CMD_CREATE = 6, +FSCONFIG_CMD_RECONFIGURE = 7, +FSCONFIG_CMD_CREATE_EXCL = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum procmap_query_flags { +PROCMAP_QUERY_VMA_READABLE = 1, +PROCMAP_QUERY_VMA_WRITABLE = 2, +PROCMAP_QUERY_VMA_EXECUTABLE = 4, +PROCMAP_QUERY_VMA_SHARED = 8, +PROCMAP_QUERY_COVERING_OR_NEXT_VMA = 16, +PROCMAP_QUERY_FILE_BACKED_VMA = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_sqe_flags_bit { +IOSQE_FIXED_FILE_BIT = 0, +IOSQE_IO_DRAIN_BIT = 1, +IOSQE_IO_LINK_BIT = 2, +IOSQE_IO_HARDLINK_BIT = 3, +IOSQE_ASYNC_BIT = 4, +IOSQE_BUFFER_SELECT_BIT = 5, +IOSQE_CQE_SKIP_SUCCESS_BIT = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_op { +IORING_OP_NOP = 0, +IORING_OP_READV = 1, +IORING_OP_WRITEV = 2, +IORING_OP_FSYNC = 3, +IORING_OP_READ_FIXED = 4, +IORING_OP_WRITE_FIXED = 5, +IORING_OP_POLL_ADD = 6, +IORING_OP_POLL_REMOVE = 7, +IORING_OP_SYNC_FILE_RANGE = 8, +IORING_OP_SENDMSG = 9, +IORING_OP_RECVMSG = 10, +IORING_OP_TIMEOUT = 11, +IORING_OP_TIMEOUT_REMOVE = 12, +IORING_OP_ACCEPT = 13, +IORING_OP_ASYNC_CANCEL = 14, +IORING_OP_LINK_TIMEOUT = 15, +IORING_OP_CONNECT = 16, +IORING_OP_FALLOCATE = 17, +IORING_OP_OPENAT = 18, +IORING_OP_CLOSE = 19, +IORING_OP_FILES_UPDATE = 20, +IORING_OP_STATX = 21, +IORING_OP_READ = 22, +IORING_OP_WRITE = 23, +IORING_OP_FADVISE = 24, +IORING_OP_MADVISE = 25, +IORING_OP_SEND = 26, +IORING_OP_RECV = 27, +IORING_OP_OPENAT2 = 28, +IORING_OP_EPOLL_CTL = 29, +IORING_OP_SPLICE = 30, +IORING_OP_PROVIDE_BUFFERS = 31, +IORING_OP_REMOVE_BUFFERS = 32, +IORING_OP_TEE = 33, +IORING_OP_SHUTDOWN = 34, +IORING_OP_RENAMEAT = 35, +IORING_OP_UNLINKAT = 36, +IORING_OP_MKDIRAT = 37, +IORING_OP_SYMLINKAT = 38, +IORING_OP_LINKAT = 39, +IORING_OP_MSG_RING = 40, +IORING_OP_FSETXATTR = 41, +IORING_OP_SETXATTR = 42, +IORING_OP_FGETXATTR = 43, +IORING_OP_GETXATTR = 44, +IORING_OP_SOCKET = 45, +IORING_OP_URING_CMD = 46, +IORING_OP_SEND_ZC = 47, +IORING_OP_SENDMSG_ZC = 48, +IORING_OP_READ_MULTISHOT = 49, +IORING_OP_WAITID = 50, +IORING_OP_FUTEX_WAIT = 51, +IORING_OP_FUTEX_WAKE = 52, +IORING_OP_FUTEX_WAITV = 53, +IORING_OP_FIXED_FD_INSTALL = 54, +IORING_OP_FTRUNCATE = 55, +IORING_OP_BIND = 56, +IORING_OP_LISTEN = 57, +IORING_OP_RECV_ZC = 58, +IORING_OP_EPOLL_WAIT = 59, +IORING_OP_READV_FIXED = 60, +IORING_OP_WRITEV_FIXED = 61, +IORING_OP_PIPE = 62, +IORING_OP_LAST = 63, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_msg_ring_flags { +IORING_MSG_DATA = 0, +IORING_MSG_SEND_FD = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_register_op { +IORING_REGISTER_BUFFERS = 0, +IORING_UNREGISTER_BUFFERS = 1, +IORING_REGISTER_FILES = 2, +IORING_UNREGISTER_FILES = 3, +IORING_REGISTER_EVENTFD = 4, +IORING_UNREGISTER_EVENTFD = 5, +IORING_REGISTER_FILES_UPDATE = 6, +IORING_REGISTER_EVENTFD_ASYNC = 7, +IORING_REGISTER_PROBE = 8, +IORING_REGISTER_PERSONALITY = 9, +IORING_UNREGISTER_PERSONALITY = 10, +IORING_REGISTER_RESTRICTIONS = 11, +IORING_REGISTER_ENABLE_RINGS = 12, +IORING_REGISTER_FILES2 = 13, +IORING_REGISTER_FILES_UPDATE2 = 14, +IORING_REGISTER_BUFFERS2 = 15, +IORING_REGISTER_BUFFERS_UPDATE = 16, +IORING_REGISTER_IOWQ_AFF = 17, +IORING_UNREGISTER_IOWQ_AFF = 18, +IORING_REGISTER_IOWQ_MAX_WORKERS = 19, +IORING_REGISTER_RING_FDS = 20, +IORING_UNREGISTER_RING_FDS = 21, +IORING_REGISTER_PBUF_RING = 22, +IORING_UNREGISTER_PBUF_RING = 23, +IORING_REGISTER_SYNC_CANCEL = 24, +IORING_REGISTER_FILE_ALLOC_RANGE = 25, +IORING_REGISTER_PBUF_STATUS = 26, +IORING_REGISTER_NAPI = 27, +IORING_UNREGISTER_NAPI = 28, +IORING_REGISTER_CLOCK = 29, +IORING_REGISTER_CLONE_BUFFERS = 30, +IORING_REGISTER_SEND_MSG_RING = 31, +IORING_REGISTER_ZCRX_IFQ = 32, +IORING_REGISTER_RESIZE_RINGS = 33, +IORING_REGISTER_MEM_REGION = 34, +IORING_REGISTER_LAST = 35, +IORING_REGISTER_USE_REGISTERED_RING = 2147483648, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_wq_type { +IO_WQ_BOUND = 0, +IO_WQ_UNBOUND = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +IORING_MEM_REGION_TYPE_USER = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IORING_MEM_REGION_REG_WAIT_ARG = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +IORING_REGISTER_SRC_REGISTERED = 1, +IORING_REGISTER_DST_REPLACE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_register_pbuf_ring_flags { +IOU_PBUF_RING_MMAP = 1, +IOU_PBUF_RING_INC = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_op { +IO_URING_NAPI_REGISTER_OP = 0, +IO_URING_NAPI_STATIC_ADD_ID = 1, +IO_URING_NAPI_STATIC_DEL_ID = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_tracking_strategy { +IO_URING_NAPI_TRACKING_DYNAMIC = 0, +IO_URING_NAPI_TRACKING_STATIC = 1, +IO_URING_NAPI_TRACKING_INACTIVE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_register_restriction_op { +IORING_RESTRICTION_REGISTER_OP = 0, +IORING_RESTRICTION_SQE_OP = 1, +IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, +IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, +IORING_RESTRICTION_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IORING_REG_WAIT_TS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_socket_op { +SOCKET_URING_OP_SIOCINQ = 0, +SOCKET_URING_OP_SIOCOUTQ = 1, +SOCKET_URING_OP_GETSOCKOPT = 2, +SOCKET_URING_OP_SETSOCKOPT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { +pub version: __u8, +pub v1: fscrypt_policy_v1, +pub v2: fscrypt_policy_v2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_key_specifier__bindgen_ty_1 { +pub __reserved: [__u8; 32usize], +pub descriptor: [__u8; 8usize], +pub identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_1 { +pub off: __u64, +pub addr2: __u64, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_2 { +pub addr: __u64, +pub splice_off_in: __u64, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_2__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_3 { +pub rw_flags: __kernel_rwf_t, +pub fsync_flags: __u32, +pub poll_events: __u16, +pub poll32_events: __u32, +pub sync_range_flags: __u32, +pub msg_flags: __u32, +pub timeout_flags: __u32, +pub accept_flags: __u32, +pub cancel_flags: __u32, +pub open_flags: __u32, +pub statx_flags: __u32, +pub fadvise_advice: __u32, +pub splice_flags: __u32, +pub rename_flags: __u32, +pub unlink_flags: __u32, +pub hardlink_flags: __u32, +pub xattr_flags: __u32, +pub msg_ring_flags: __u32, +pub uring_cmd_flags: __u32, +pub waitid_flags: __u32, +pub futex_flags: __u32, +pub install_fd_flags: __u32, +pub nop_flags: __u32, +pub pipe_flags: __u32, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_4 { +pub buf_index: __u16, +pub buf_group: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_5 { +pub splice_fd_in: __s32, +pub file_index: __u32, +pub zcrx_ifq_idx: __u32, +pub optlen: __u32, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, +pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_5__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_restriction__bindgen_ty_1 { +pub register_op: __u8, +pub sqe_op: __u8, +pub sqe_flags: __u8, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl __BindgenUnionField { +#[inline] +pub const fn new() -> Self { +__BindgenUnionField(::core::marker::PhantomData) +} +#[inline] +pub unsafe fn as_ref(&self) -> &T { +::core::mem::transmute(self) +} +#[inline] +pub unsafe fn as_mut(&mut self) -> &mut T { +::core::mem::transmute(self) +} +} +impl ::core::default::Default for __BindgenUnionField { +#[inline] +fn default() -> Self { +Self::new() +} +} +impl ::core::clone::Clone for __BindgenUnionField { +#[inline] +fn clone(&self) -> Self { +*self +} +} +impl ::core::marker::Copy for __BindgenUnionField {} +impl ::core::fmt::Debug for __BindgenUnionField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__BindgenUnionField") +} +} +impl ::core::hash::Hash for __BindgenUnionField { +fn hash(&self, _state: &mut H) {} +} +impl ::core::cmp::PartialEq for __BindgenUnionField { +fn eq(&self, _other: &__BindgenUnionField) -> bool { +true +} +} +impl ::core::cmp::Eq for __BindgenUnionField {} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/ioctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/ioctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..13aef4bb2117a4c0a3377e5f05ecab3a7b17e77b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/ioctl.rs @@ -0,0 +1,1502 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const FIONREAD: u32 = 21531; +pub const FIONBIO: u32 = 21537; +pub const FIOCLEX: u32 = 21585; +pub const FIONCLEX: u32 = 21584; +pub const FIOASYNC: u32 = 21586; +pub const FIOQSIZE: u32 = 21600; +pub const TCXONC: u32 = 21514; +pub const TCFLSH: u32 = 21515; +pub const TIOCSCTTY: u32 = 21518; +pub const TIOCSPGRP: u32 = 21520; +pub const TIOCOUTQ: u32 = 21521; +pub const TIOCSTI: u32 = 21522; +pub const TIOCSWINSZ: u32 = 21524; +pub const TIOCMGET: u32 = 21525; +pub const TIOCMBIS: u32 = 21526; +pub const TIOCMBIC: u32 = 21527; +pub const TIOCMSET: u32 = 21528; +pub const TIOCSSOFTCAR: u32 = 21530; +pub const TIOCLINUX: u32 = 21532; +pub const TIOCCONS: u32 = 21533; +pub const TIOCSSERIAL: u32 = 21535; +pub const TIOCPKT: u32 = 21536; +pub const TIOCNOTTY: u32 = 21538; +pub const TIOCSETD: u32 = 21539; +pub const TIOCSBRK: u32 = 21543; +pub const TIOCCBRK: u32 = 21544; +pub const TIOCSRS485: u32 = 21551; +pub const TIOCSPTLCK: u32 = 1074025521; +pub const TIOCSIG: u32 = 1074025526; +pub const TIOCVHANGUP: u32 = 21559; +pub const TIOCSERCONFIG: u32 = 21587; +pub const TIOCSERGWILD: u32 = 21588; +pub const TIOCSERSWILD: u32 = 21589; +pub const TIOCSLCKTRMIOS: u32 = 21591; +pub const TIOCSERGSTRUCT: u32 = 21592; +pub const TIOCSERGETLSR: u32 = 21593; +pub const TIOCSERGETMULTI: u32 = 21594; +pub const TIOCSERSETMULTI: u32 = 21595; +pub const TIOCMIWAIT: u32 = 21596; +pub const TCGETS: u32 = 21505; +pub const TCGETA: u32 = 21509; +pub const TCSBRK: u32 = 21513; +pub const TCSBRKP: u32 = 21541; +pub const TCSETA: u32 = 21510; +pub const TCSETAF: u32 = 21512; +pub const TCSETAW: u32 = 21511; +pub const TIOCEXCL: u32 = 21516; +pub const TIOCNXCL: u32 = 21517; +pub const TIOCGDEV: u32 = 2147767346; +pub const TIOCGEXCL: u32 = 2147767360; +pub const TIOCGICOUNT: u32 = 21597; +pub const TIOCGLCKTRMIOS: u32 = 21590; +pub const TIOCGPGRP: u32 = 21519; +pub const TIOCGPKT: u32 = 2147767352; +pub const TIOCGPTLCK: u32 = 2147767353; +pub const TIOCGPTN: u32 = 2147767344; +pub const TIOCGPTPEER: u32 = 21569; +pub const TIOCGRS485: u32 = 21550; +pub const TIOCGSERIAL: u32 = 21534; +pub const TIOCGSID: u32 = 21545; +pub const TIOCGSOFTCAR: u32 = 21529; +pub const TIOCGWINSZ: u32 = 21523; +pub const TCGETS2: u32 = 2150388778; +pub const TCGETX: u32 = 21554; +pub const TCSETS: u32 = 21506; +pub const TCSETS2: u32 = 1076646955; +pub const TCSETSF: u32 = 21508; +pub const TCSETSF2: u32 = 1076646957; +pub const TCSETSW: u32 = 21507; +pub const TCSETSW2: u32 = 1076646956; +pub const TCSETX: u32 = 21555; +pub const TCSETXF: u32 = 21556; +pub const TCSETXW: u32 = 21557; +pub const TIOCGETD: u32 = 21540; +pub const MTIOCGET: u32 = 2150657282; +pub const BLKSSZGET: u32 = 4712; +pub const BLKPBSZGET: u32 = 4731; +pub const BLKROSET: u32 = 4701; +pub const BLKROGET: u32 = 4702; +pub const BLKRRPART: u32 = 4703; +pub const BLKGETSIZE: u32 = 4704; +pub const BLKFLSBUF: u32 = 4705; +pub const BLKRASET: u32 = 4706; +pub const BLKRAGET: u32 = 4707; +pub const BLKFRASET: u32 = 4708; +pub const BLKFRAGET: u32 = 4709; +pub const BLKSECTSET: u32 = 4710; +pub const BLKSECTGET: u32 = 4711; +pub const BLKPG: u32 = 4713; +pub const BLKBSZGET: u32 = 2148012656; +pub const BLKBSZSET: u32 = 1074270833; +pub const BLKGETSIZE64: u32 = 2148012658; +pub const BLKTRACESETUP: u32 = 3225948787; +pub const BLKTRACESTART: u32 = 4724; +pub const BLKTRACESTOP: u32 = 4725; +pub const BLKTRACETEARDOWN: u32 = 4726; +pub const BLKDISCARD: u32 = 4727; +pub const BLKIOMIN: u32 = 4728; +pub const BLKIOOPT: u32 = 4729; +pub const BLKALIGNOFF: u32 = 4730; +pub const BLKDISCARDZEROES: u32 = 4732; +pub const BLKSECDISCARD: u32 = 4733; +pub const BLKROTATIONAL: u32 = 4734; +pub const BLKZEROOUT: u32 = 4735; +pub const FIEMAP_MAX_OFFSET: i32 = -1; +pub const FIEMAP_FLAG_SYNC: u32 = 1; +pub const FIEMAP_FLAG_XATTR: u32 = 2; +pub const FIEMAP_FLAG_CACHE: u32 = 4; +pub const FIEMAP_FLAGS_COMPAT: u32 = 3; +pub const FIEMAP_EXTENT_LAST: u32 = 1; +pub const FIEMAP_EXTENT_UNKNOWN: u32 = 2; +pub const FIEMAP_EXTENT_DELALLOC: u32 = 4; +pub const FIEMAP_EXTENT_ENCODED: u32 = 8; +pub const FIEMAP_EXTENT_DATA_ENCRYPTED: u32 = 128; +pub const FIEMAP_EXTENT_NOT_ALIGNED: u32 = 256; +pub const FIEMAP_EXTENT_DATA_INLINE: u32 = 512; +pub const FIEMAP_EXTENT_DATA_TAIL: u32 = 1024; +pub const FIEMAP_EXTENT_UNWRITTEN: u32 = 2048; +pub const FIEMAP_EXTENT_MERGED: u32 = 4096; +pub const FIEMAP_EXTENT_SHARED: u32 = 8192; +pub const UFFDIO_REGISTER: u32 = 3223366144; +pub const UFFDIO_UNREGISTER: u32 = 2148575745; +pub const UFFDIO_WAKE: u32 = 2148575746; +pub const UFFDIO_COPY: u32 = 3223890435; +pub const UFFDIO_ZEROPAGE: u32 = 3223366148; +pub const UFFDIO_WRITEPROTECT: u32 = 3222841862; +pub const UFFDIO_API: u32 = 3222841919; +pub const NS_GET_USERNS: u32 = 46849; +pub const NS_GET_PARENT: u32 = 46850; +pub const NS_GET_NSTYPE: u32 = 46851; +pub const KDGETLED: u32 = 19249; +pub const KDSETLED: u32 = 19250; +pub const KDGKBLED: u32 = 19300; +pub const KDSKBLED: u32 = 19301; +pub const KDGKBTYPE: u32 = 19251; +pub const KDADDIO: u32 = 19252; +pub const KDDELIO: u32 = 19253; +pub const KDENABIO: u32 = 19254; +pub const KDDISABIO: u32 = 19255; +pub const KDSETMODE: u32 = 19258; +pub const KDGETMODE: u32 = 19259; +pub const KDMKTONE: u32 = 19248; +pub const KIOCSOUND: u32 = 19247; +pub const GIO_CMAP: u32 = 19312; +pub const PIO_CMAP: u32 = 19313; +pub const GIO_FONT: u32 = 19296; +pub const GIO_FONTX: u32 = 19307; +pub const PIO_FONT: u32 = 19297; +pub const PIO_FONTX: u32 = 19308; +pub const PIO_FONTRESET: u32 = 19309; +pub const GIO_SCRNMAP: u32 = 19264; +pub const GIO_UNISCRNMAP: u32 = 19305; +pub const PIO_SCRNMAP: u32 = 19265; +pub const PIO_UNISCRNMAP: u32 = 19306; +pub const GIO_UNIMAP: u32 = 19302; +pub const PIO_UNIMAP: u32 = 19303; +pub const PIO_UNIMAPCLR: u32 = 19304; +pub const KDGKBMODE: u32 = 19268; +pub const KDSKBMODE: u32 = 19269; +pub const KDGKBMETA: u32 = 19298; +pub const KDSKBMETA: u32 = 19299; +pub const KDGKBENT: u32 = 19270; +pub const KDSKBENT: u32 = 19271; +pub const KDGKBSENT: u32 = 19272; +pub const KDSKBSENT: u32 = 19273; +pub const KDGKBDIACR: u32 = 19274; +pub const KDGETKEYCODE: u32 = 19276; +pub const KDSETKEYCODE: u32 = 19277; +pub const KDSIGACCEPT: u32 = 19278; +pub const VT_OPENQRY: u32 = 22016; +pub const VT_GETMODE: u32 = 22017; +pub const VT_SETMODE: u32 = 22018; +pub const VT_GETSTATE: u32 = 22019; +pub const VT_RELDISP: u32 = 22021; +pub const VT_ACTIVATE: u32 = 22022; +pub const VT_WAITACTIVE: u32 = 22023; +pub const VT_DISALLOCATE: u32 = 22024; +pub const VT_RESIZE: u32 = 22025; +pub const VT_RESIZEX: u32 = 22026; +pub const FIOSETOWN: u32 = 35073; +pub const SIOCSPGRP: u32 = 35074; +pub const FIOGETOWN: u32 = 35075; +pub const SIOCGPGRP: u32 = 35076; +pub const SIOCATMARK: u32 = 35077; +pub const SIOCGSTAMP: u32 = 35078; +pub const TIOCINQ: u32 = 21531; +pub const SIOCADDRT: u32 = 35083; +pub const SIOCDELRT: u32 = 35084; +pub const SIOCGIFNAME: u32 = 35088; +pub const SIOCSIFLINK: u32 = 35089; +pub const SIOCGIFCONF: u32 = 35090; +pub const SIOCGIFFLAGS: u32 = 35091; +pub const SIOCSIFFLAGS: u32 = 35092; +pub const SIOCGIFADDR: u32 = 35093; +pub const SIOCSIFADDR: u32 = 35094; +pub const SIOCGIFDSTADDR: u32 = 35095; +pub const SIOCSIFDSTADDR: u32 = 35096; +pub const SIOCGIFBRDADDR: u32 = 35097; +pub const SIOCSIFBRDADDR: u32 = 35098; +pub const SIOCGIFNETMASK: u32 = 35099; +pub const SIOCSIFNETMASK: u32 = 35100; +pub const SIOCGIFMETRIC: u32 = 35101; +pub const SIOCSIFMETRIC: u32 = 35102; +pub const SIOCGIFMEM: u32 = 35103; +pub const SIOCSIFMEM: u32 = 35104; +pub const SIOCGIFMTU: u32 = 35105; +pub const SIOCSIFMTU: u32 = 35106; +pub const SIOCSIFHWADDR: u32 = 35108; +pub const SIOCGIFENCAP: u32 = 35109; +pub const SIOCSIFENCAP: u32 = 35110; +pub const SIOCGIFHWADDR: u32 = 35111; +pub const SIOCGIFSLAVE: u32 = 35113; +pub const SIOCSIFSLAVE: u32 = 35120; +pub const SIOCADDMULTI: u32 = 35121; +pub const SIOCDELMULTI: u32 = 35122; +pub const SIOCDARP: u32 = 35155; +pub const SIOCGARP: u32 = 35156; +pub const SIOCSARP: u32 = 35157; +pub const SIOCDRARP: u32 = 35168; +pub const SIOCGRARP: u32 = 35169; +pub const SIOCSRARP: u32 = 35170; +pub const SIOCGIFMAP: u32 = 35184; +pub const SIOCSIFMAP: u32 = 35185; +pub const SIOCRTMSG: u32 = 35085; +pub const SIOCSIFNAME: u32 = 35107; +pub const SIOCGIFINDEX: u32 = 35123; +pub const SIOGIFINDEX: u32 = 35123; +pub const SIOCSIFPFLAGS: u32 = 35124; +pub const SIOCGIFPFLAGS: u32 = 35125; +pub const SIOCDIFADDR: u32 = 35126; +pub const SIOCSIFHWBROADCAST: u32 = 35127; +pub const SIOCGIFCOUNT: u32 = 35128; +pub const SIOCGIFBR: u32 = 35136; +pub const SIOCSIFBR: u32 = 35137; +pub const SIOCGIFTXQLEN: u32 = 35138; +pub const SIOCSIFTXQLEN: u32 = 35139; +pub const SIOCADDDLCI: u32 = 35200; +pub const SIOCDELDLCI: u32 = 35201; +pub const SIOCDEVPRIVATE: u32 = 35312; +pub const SIOCPROTOPRIVATE: u32 = 35296; +pub const FIBMAP: u32 = 1; +pub const FIGETBSZ: u32 = 2; +pub const FIFREEZE: u32 = 3221510263; +pub const FITHAW: u32 = 3221510264; +pub const FITRIM: u32 = 3222820985; +pub const FICLONE: u32 = 1074041865; +pub const FICLONERANGE: u32 = 1075876877; +pub const FIDEDUPERANGE: u32 = 3222836278; +pub const FS_IOC_GETFLAGS: u32 = 2148034049; +pub const FS_IOC_SETFLAGS: u32 = 1074292226; +pub const FS_IOC_GETVERSION: u32 = 2148038145; +pub const FS_IOC_SETVERSION: u32 = 1074296322; +pub const FS_IOC_FIEMAP: u32 = 3223348747; +pub const FS_IOC32_GETFLAGS: u32 = 2147771905; +pub const FS_IOC32_SETFLAGS: u32 = 1074030082; +pub const FS_IOC32_GETVERSION: u32 = 2147776001; +pub const FS_IOC32_SETVERSION: u32 = 1074034178; +pub const FS_IOC_FSGETXATTR: u32 = 2149341215; +pub const FS_IOC_FSSETXATTR: u32 = 1075599392; +pub const FS_IOC_GETFSLABEL: u32 = 2164298801; +pub const FS_IOC_SETFSLABEL: u32 = 1090556978; +pub const EXT4_IOC_GETVERSION: u32 = 2148034051; +pub const EXT4_IOC_SETVERSION: u32 = 1074292228; +pub const EXT4_IOC_GETVERSION_OLD: u32 = 2148038145; +pub const EXT4_IOC_SETVERSION_OLD: u32 = 1074296322; +pub const EXT4_IOC_GETRSVSZ: u32 = 2148034053; +pub const EXT4_IOC_SETRSVSZ: u32 = 1074292230; +pub const EXT4_IOC_GROUP_EXTEND: u32 = 1074292231; +pub const EXT4_IOC_MIGRATE: u32 = 26121; +pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 26124; +pub const EXT4_IOC_RESIZE_FS: u32 = 1074292240; +pub const EXT4_IOC_SWAP_BOOT: u32 = 26129; +pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 26130; +pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 26152; +pub const EXT4_IOC_GETSTATE: u32 = 1074030121; +pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; +pub const EXT4_IOC_CHECKPOINT: u32 = 1074030123; +pub const EXT4_IOC_SHUTDOWN: u32 = 2147768445; +pub const EXT4_IOC32_GETVERSION: u32 = 2147771907; +pub const EXT4_IOC32_SETVERSION: u32 = 1074030084; +pub const EXT4_IOC32_GETRSVSZ: u32 = 2147771909; +pub const EXT4_IOC32_SETRSVSZ: u32 = 1074030086; +pub const EXT4_IOC32_GROUP_EXTEND: u32 = 1074030087; +pub const EXT4_IOC32_GETVERSION_OLD: u32 = 2147776001; +pub const EXT4_IOC32_SETVERSION_OLD: u32 = 1074034178; +pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 2148030015; +pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; +pub const LIRC_SET_SEND_CARRIER: u32 = 1074030867; +pub const AUTOFS_IOC_PROTOSUBVER: u32 = 2147783527; +pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; +pub const FSI_SCOM_WRITE: u32 = 3223352066; +pub const ATM_GETCIRANGE: u32 = 1074815370; +pub const DMA_BUF_SET_NAME_B: u32 = 1074291201; +pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; +pub const TUNSETPERSIST: u32 = 1074025675; +pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 1074554389; +pub const CEC_RECEIVE: u32 = 3224920326; +pub const MGSL_IOCGPARAMS: u32 = 2150657281; +pub const ENI_SETMULT: u32 = 1074815335; +pub const RIO_GET_EVENT_MASK: u32 = 2147773710; +pub const LIRC_GET_MAX_TIMEOUT: u32 = 2147772681; +pub const USBDEVFS_CLAIMINTERFACE: u32 = 2147767567; +pub const CHIOMOVE: u32 = 1075077889; +pub const SONYPI_IOCGBATFLAGS: u32 = 2147579399; +pub const BTRFS_IOC_SYNC: u32 = 37896; +pub const VIDIOC_TRY_FMT: u32 = 3234879040; +pub const LIRC_SET_REC_MODE: u32 = 1074030866; +pub const VIDIOC_DQEVENT: u32 = 2156418649; +pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 46338; +pub const UVCIOC_CTRL_MAP: u32 = 3227546912; +pub const VHOST_SET_BACKEND_FEATURES: u32 = 1074310949; +pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 1074311008; +pub const UI_SET_KEYBIT: u32 = 1074025829; +pub const LIRC_SET_REC_TIMEOUT: u32 = 1074030872; +pub const FS_IOC_GET_ENCRYPTION_KEY_STATUS: u32 = 3229640218; +pub const BTRFS_IOC_TREE_SEARCH_V2: u32 = 3228603409; +pub const VHOST_SET_VRING_BASE: u32 = 1074310930; +pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 1074294025; +pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3223344713; +pub const LIRC_GET_REC_MODE: u32 = 2147772674; +pub const PPGETTIME: u32 = 2148561045; +pub const BTRFS_IOC_RM_DEV: u32 = 1342215179; +pub const ATM_SETBACKEND: u32 = 1073897970; +pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; +pub const FBIO_WAITEVENT: u32 = 18056; +pub const SWITCHTEC_IOCTL_PORT_TO_PFF: u32 = 3222034245; +pub const NVME_IOCTL_IO_CMD: u32 = 3225964099; +pub const IPMICTL_RECEIVE_MSG_TRUNC: u32 = 3224398091; +pub const FDTWADDLE: u32 = 601; +pub const NVME_IOCTL_SUBMIT_IO: u32 = 1076907586; +pub const NILFS_IOCTL_SYNC: u32 = 2148036234; +pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; +pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; +pub const DM_DEV_STATUS: u32 = 3241737479; +pub const TEE_IOC_CLOSE_SESSION: u32 = 2147787781; +pub const NS_GETPSTAT: u32 = 3222298977; +pub const UI_SET_PROPBIT: u32 = 1074025838; +pub const TUNSETFILTEREBPF: u32 = 2147767521; +pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 1074031874; +pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; +pub const WDIOC_SETOPTIONS: u32 = 2147768068; +pub const VHOST_SCSI_SET_ENDPOINT: u32 = 1088991040; +pub const MGSL_IOCGTXIDLE: u32 = 27907; +pub const ATM_ADDLECSADDR: u32 = 1074815374; +pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; +pub const FDGETPRM: u32 = 2149581316; +pub const HIDIOCAPPLICATION: u32 = 18434; +pub const ENI_MEMDUMP: u32 = 1074815328; +pub const PTP_SYS_OFFSET2: u32 = 1128283406; +pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; +pub const DMA_BUF_SET_NAME_A: u32 = 1074029057; +pub const PTP_PIN_GETFUNC: u32 = 3227532550; +pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; +pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 1074312776; +pub const RTC_EPOCH_READ: u32 = 2148036621; +pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; +pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; +pub const ATM_GETLECSADDR: u32 = 1074815376; +pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; +pub const SONET_GETDIAG: u32 = 2147770644; +pub const ATMMPC_DATA: u32 = 25049; +pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 2148296989; +pub const HIDIOCGCOLLECTIONINDEX: u32 = 1075333136; +pub const RPMSG_CREATE_EPT_IOCTL: u32 = 1076409601; +pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; +pub const UI_DEV_SETUP: u32 = 1079792899; +pub const ISST_IF_IO_CMD: u32 = 1074331138; +pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 2149084423; +pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; +pub const BLKGETNRZONES: u32 = 2147750533; +pub const VIDIOC_G_MODULATOR: u32 = 3225703990; +pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; +pub const USBDEVFS_SETINTERFACE: u32 = 2148029700; +pub const PPPIOCGCHAN: u32 = 2147775543; +pub const EVIOCGVERSION: u32 = 2147763457; +pub const VHOST_NET_SET_BACKEND: u32 = 1074310960; +pub const USBDEVFS_REAPURBNDELAY: u32 = 1074287885; +pub const RNDZAPENTCNT: u32 = 20996; +pub const VIDIOC_G_PARM: u32 = 3234616853; +pub const TUNGETDEVNETNS: u32 = 21731; +pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 1074030877; +pub const VHOST_SET_VRING_ERR: u32 = 1074310946; +pub const VDUSE_VQ_SETUP: u32 = 1075872020; +pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221787492; +pub const VIDIOC_S_FREQUENCY: u32 = 1076647481; +pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 1075377428; +pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; +pub const WDIOC_GETPRETIMEOUT: u32 = 2147768073; +pub const USBDEVFS_DROP_PRIVILEGES: u32 = 1074025758; +pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 1342215191; +pub const VHOST_VSOCK_SET_RUNNING: u32 = 1074048865; +pub const STP_SET_OPTIONS: u32 = 1074275586; +pub const FBIO_RADEON_GET_MIRROR: u32 = 2148024323; +pub const IVTVFB_IOC_DMA_FRAME: u32 = 1075336896; +pub const IPMICTL_SEND_COMMAND: u32 = 2150131981; +pub const VIDIOC_G_ENC_INDEX: u32 = 2283296332; +pub const DFL_FPGA_FME_PORT_PR: u32 = 46720; +pub const CHIOSVOLTAG: u32 = 1076912914; +pub const ATM_SETESIF: u32 = 1074815373; +pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 1075323652; +pub const PMU_IOC_GET_MODEL: u32 = 2148024835; +pub const JSIOCGBTNMAP: u32 = 2214619700; +pub const USBDEVFS_HUB_PORTINFO: u32 = 2155894035; +pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; +pub const FDCLRPRM: u32 = 577; +pub const BTRFS_IOC_SCRUB: u32 = 3288372251; +pub const USBDEVFS_DISCONNECT: u32 = 21782; +pub const TUNSETVNETBE: u32 = 1074025694; +pub const ATMTCP_REMOVE: u32 = 24975; +pub const VHOST_VDPA_GET_CONFIG: u32 = 2148052851; +pub const PPPIOCGNPMODE: u32 = 3221779532; +pub const FDGETDRVPRM: u32 = 2155872785; +pub const TUNSETVNETLE: u32 = 1074025692; +pub const PHN_SETREG: u32 = 1074294790; +pub const PPPIOCDETACH: u32 = 1074033724; +pub const MMTIMER_GETRES: u32 = 2148035841; +pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; +pub const PPGETFLAGS: u32 = 2147774618; +pub const VDUSE_DEV_GET_FEATURES: u32 = 2148040977; +pub const CAPI_MANUFACTURER_CMD: u32 = 3222291232; +pub const VIDIOC_G_TUNER: u32 = 3226752541; +pub const DM_TABLE_STATUS: u32 = 3241737484; +pub const DM_DEV_ARM_POLL: u32 = 3241737488; +pub const NE_CREATE_VM: u32 = 2148052512; +pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; +pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 62735; +pub const DFL_FPGA_PORT_DMA_MAP: u32 = 46659; +pub const MGSL_IOCGXCTRL: u32 = 27926; +pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 1076372225; +pub const SONYPI_IOCGBLUE: u32 = 2147579400; +pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 62743; +pub const I2OHTML: u32 = 3224398089; +pub const VFIO_GET_API_VERSION: u32 = 15204; +pub const IDT77105_GETSTATZ: u32 = 1074815283; +pub const I2OPARMSET: u32 = 3223873795; +pub const TEE_IOC_CANCEL: u32 = 2148049924; +pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; +pub const DFL_FPGA_PORT_RESET: u32 = 46656; +pub const PPPIOCGASYNCMAP: u32 = 2147775576; +pub const EVIOCGKEYCODE_V2: u32 = 2150122756; +pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; +pub const HIDIOCSUSAGE: u32 = 1075333132; +pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323664; +pub const PTP_EXTTS_REQUEST: u32 = 1074806018; +pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; +pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; +pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 1088991041; +pub const JSIOCGAXES: u32 = 2147576337; +pub const HIDIOCSFLAG: u32 = 1074022415; +pub const PTP_PEROUT_REQUEST2: u32 = 1077427468; +pub const PPWDATA: u32 = 1073836166; +pub const PTP_CLOCK_GETCAPS: u32 = 2152742145; +pub const FDGETMAXERRS: u32 = 2148794894; +pub const TUNSETQUEUE: u32 = 1074025689; +pub const PTP_ENABLE_PPS: u32 = 1074019588; +pub const SIOCSIFATMTCP: u32 = 24960; +pub const CEC_ADAP_G_LOG_ADDRS: u32 = 2153537795; +pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; +pub const NBD_SET_BLKSIZE: u32 = 43777; +pub const NBD_SET_TIMEOUT: u32 = 43785; +pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 1074048834; +pub const RIO_UNMAP_INBOUND: u32 = 1074294034; +pub const ATM_QUERYLOOP: u32 = 1074815316; +pub const DFL_FPGA_GET_API_VERSION: u32 = 46592; +pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 21795; +pub const FBIO_CURSOR: u32 = 3228059144; +pub const RNDCLEARPOOL: u32 = 20998; +pub const VIDIOC_QUERYSTD: u32 = 2148030015; +pub const DMA_BUF_IOCTL_SYNC: u32 = 1074291200; +pub const SCIF_RECV: u32 = 3222827783; +pub const PTP_PIN_GETFUNC2: u32 = 3227532559; +pub const FW_CDEV_IOC_ALLOCATE: u32 = 3223331586; +pub const CEC_ADAP_G_CAPS: u32 = 3226231040; +pub const VIDIOC_G_FBUF: u32 = 2150651402; +pub const PTP_ENABLE_PPS2: u32 = 1074019597; +pub const PCITEST_CLEAR_IRQ: u32 = 20496; +pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 2147772688; +pub const BTRFS_IOC_DEVICES_READY: u32 = 2415957031; +pub const JSIOCGAXMAP: u32 = 2151705138; +pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 2148541196; +pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 1074799383; +pub const RTC_WIE_OFF: u32 = 28688; +pub const PPGETMODE: u32 = 2147774616; +pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; +pub const PTP_SYS_OFFSET: u32 = 1128283397; +pub const BTRFS_IOC_SPACE_INFO: u32 = 3222311956; +pub const VIDIOC_SUBDEV_ENUM_FRAME_SIZE: u32 = 3225441866; +pub const ND_IOCTL_VENDOR: u32 = 3221769737; +pub const SCIF_VREADFROM: u32 = 3223876364; +pub const BTRFS_IOC_TRANS_START: u32 = 37894; +pub const INOTIFY_IOC_SETNEXTWD: u32 = 1074022656; +pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 2148021006; +pub const TUNDETACHFILTER: u32 = 1074812118; +pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; +pub const IOC_PR_CLEAR: u32 = 1074819277; +pub const SCIF_READFROM: u32 = 3223876362; +pub const PPPIOCGDEBUG: u32 = 2147775553; +pub const BLKGETZONESZ: u32 = 2147750532; +pub const HIDIOCGUSAGES: u32 = 3491514387; +pub const SONYPI_IOCGTEMP: u32 = 2147579404; +pub const UI_SET_MSCBIT: u32 = 1074025832; +pub const APM_IOC_SUSPEND: u32 = 16642; +pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; +pub const RTC_PLL_GET: u32 = 2149609489; +pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; +pub const USBDEVFS_DISCSIGNAL: u32 = 2148553998; +pub const LIRC_GET_MIN_TIMEOUT: u32 = 2147772680; +pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 2174244674; +pub const DM_TARGET_MSG: u32 = 3241737486; +pub const SONYPI_IOCGBAT1REM: u32 = 2147644931; +pub const EVIOCSFF: u32 = 1076905344; +pub const TUNSETGROUP: u32 = 1074025678; +pub const EVIOCGKEYCODE: u32 = 2148025604; +pub const KCOV_REMOTE_ENABLE: u32 = 1075340134; +pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; +pub const FDEJECT: u32 = 602; +pub const TUNSETOFFLOAD: u32 = 1074025680; +pub const PPPIOCCONNECT: u32 = 1074033722; +pub const ATM_ADDADDR: u32 = 1074815368; +pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 33043; +pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; +pub const VHOST_VDPA_GET_STATUS: u32 = 2147594097; +pub const CCISS_PASSTHRU: u32 = 3227009547; +pub const MGSL_IOCCLRMODCOUNT: u32 = 27919; +pub const TEE_IOC_SUPPL_SEND: u32 = 2148574215; +pub const ATMARPD_CTRL: u32 = 25057; +pub const UI_ABS_SETUP: u32 = 1075598596; +pub const UI_DEV_DESTROY: u32 = 21762; +pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; +pub const RTC_AIE_ON: u32 = 28673; +pub const AUTOFS_IOC_EXPIRE: u32 = 2165085029; +pub const PPPIOCSDEBUG: u32 = 1074033728; +pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; +pub const PPPIOCSMRU: u32 = 1074033746; +pub const CCISS_DEREGDISK: u32 = 16908; +pub const UI_DEV_CREATE: u32 = 21761; +pub const FUSE_DEV_IOC_CLONE: u32 = 2147804416; +pub const BTRFS_IOC_START_SYNC: u32 = 2148045848; +pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 1074294401; +pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 2148021011; +pub const DM_TABLE_CLEAR: u32 = 3241737482; +pub const CCISS_GETINTINFO: u32 = 2148024834; +pub const PPPIOCSASYNCMAP: u32 = 1074033751; +pub const I2OEVTGET: u32 = 2154326283; +pub const NVME_IOCTL_RESET: u32 = 20036; +pub const PPYIELD: u32 = 28813; +pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; +pub const TUNSETCARRIER: u32 = 1074025698; +pub const DM_DEV_WAIT: u32 = 3241737480; +pub const RTC_WIE_ON: u32 = 28687; +pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; +pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; +pub const MGSL_IOCSPARAMS: u32 = 1076915456; +pub const RTC_SET_TIME: u32 = 1076129802; +pub const VHOST_RESET_OWNER: u32 = 44802; +pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 1091072232; +pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; +pub const UDF_GETEABLOCK: u32 = 2148035649; +pub const VFIO_IOMMU_MAP_DMA: u32 = 15217; +pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 1075861082; +pub const HIDIOCGFLAG: u32 = 2147764238; +pub const HIDIOCGUCODE: u32 = 3222816781; +pub const VIDIOC_OMAP3ISP_AF_CFG: u32 = 3226228421; +pub const DM_REMOVE_ALL: u32 = 3241737473; +pub const ASPEED_LPC_CTRL_IOCTL_MAP: u32 = 1074835969; +pub const CCISS_GETFIRMVER: u32 = 2147762696; +pub const ND_IOCTL_ARS_START: u32 = 3223342594; +pub const PPPIOCSMRRU: u32 = 1074033723; +pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; +pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 2147792642; +pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; +pub const PPSETTIME: u32 = 1074819222; +pub const RTC_ALM_READ: u32 = 2149871624; +pub const VDUSE_SET_API_VERSION: u32 = 1074299137; +pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 1075342600; +pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; +pub const USBDEVFS_CONNECT: u32 = 21783; +pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; +pub const ATMARP_MKIP: u32 = 25058; +pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 15216; +pub const CCISS_GETHEARTBEAT: u32 = 2147762694; +pub const ATM_RSTADDR: u32 = 1074815367; +pub const NBD_SET_SIZE: u32 = 43778; +pub const UDF_GETVOLIDENT: u32 = 2148035650; +pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; +pub const MGSL_IOCSTXIDLE: u32 = 27906; +pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; +pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; +pub const PPRSTATUS: u32 = 2147577985; +pub const MGSL_IOCTXENABLE: u32 = 27908; +pub const UDF_GETEASIZE: u32 = 2147773504; +pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; +pub const VHOST_SET_OWNER: u32 = 44801; +pub const RIO_ALLOC_DMA: u32 = 3222826259; +pub const RIO_CM_CHAN_ACCEPT: u32 = 3221775111; +pub const I2OHRTGET: u32 = 3222825217; +pub const ATM_SETCIRANGE: u32 = 1074815371; +pub const HPET_IE_ON: u32 = 26625; +pub const PERF_EVENT_IOC_ID: u32 = 2148017159; +pub const TUNSETSNDBUF: u32 = 1074025684; +pub const PTP_PIN_SETFUNC: u32 = 1080048903; +pub const PPPIOCDISCONN: u32 = 29753; +pub const VIDIOC_QUERYCTRL: u32 = 3225703972; +pub const PPEXCL: u32 = 28815; +pub const PCITEST_MSI: u32 = 1074024451; +pub const FDWERRORCLR: u32 = 598; +pub const AUTOFS_IOC_FAIL: u32 = 37729; +pub const USBDEVFS_IOCTL: u32 = 3222295826; +pub const VIDIOC_S_STD: u32 = 1074288152; +pub const F2FS_IOC_RESIZE_FS: u32 = 1074328848; +pub const SONET_SETDIAG: u32 = 3221512466; +pub const BTRFS_IOC_DEFRAG: u32 = 1342215170; +pub const CCISS_GETDRIVVER: u32 = 2147762697; +pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 2148034839; +pub const HPET_IRQFREQ: u32 = 1074292742; +pub const ATM_GETESI: u32 = 1074815365; +pub const CCISS_GETLUNINFO: u32 = 2148286993; +pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; +pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; +pub const PERF_EVENT_IOC_SET_BPF: u32 = 1074013192; +pub const UDMABUF_CREATE_LIST: u32 = 1074296131; +pub const VHOST_SET_LOG_BASE: u32 = 1074310916; +pub const ZATM_GETPOOL: u32 = 1074815329; +pub const BR2684_SETFILT: u32 = 1075601808; +pub const RNDGETPOOL: u32 = 2148028930; +pub const PPS_GETPARAMS: u32 = 2148036769; +pub const IOC_PR_RESERVE: u32 = 1074819273; +pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; +pub const RIO_CM_CHAN_CLOSE: u32 = 1073898244; +pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; +pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; +pub const PMU_IOC_GET_BACKLIGHT: u32 = 2148024833; +pub const USBDEVFS_GET_CAPABILITIES: u32 = 2147767578; +pub const SCIF_WRITETO: u32 = 3223876363; +pub const UDF_RELOCATE_BLOCKS: u32 = 3221777475; +pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; +pub const CCISS_REGNEWD: u32 = 16910; +pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 1074033169; +pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; +pub const CAPI_GET_VERSION: u32 = 3222291207; +pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 2228770626; +pub const VFIO_EEH_PE_OP: u32 = 15225; +pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; +pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 2148070674; +pub const NBD_SET_SIZE_BLOCKS: u32 = 43783; +pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 45312; +pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; +pub const VIDIOC_S_AUDOUT: u32 = 1077171762; +pub const VIDIOC_S_FMT: u32 = 3234878981; +pub const PPPIOCATTACH: u32 = 1074033725; +pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310948; +pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; +pub const CCISS_BIG_PASSTHRU: u32 = 3227533842; +pub const IPMICTL_SET_MY_LUN_CMD: u32 = 2147772691; +pub const PCITEST_LEGACY_IRQ: u32 = 20482; +pub const USBDEVFS_SUBMITURB: u32 = 2151175434; +pub const AUTOFS_IOC_READY: u32 = 37728; +pub const BTRFS_IOC_SEND: u32 = 1078498342; +pub const VIDIOC_G_EXT_CTRLS: u32 = 3223344711; +pub const JSIOCSBTNMAP: u32 = 1140877875; +pub const PPPIOCSFLAGS: u32 = 1074033753; +pub const NVRAM_INIT: u32 = 28736; +pub const RFKILL_IOCTL_NOINPUT: u32 = 20993; +pub const BTRFS_IOC_BALANCE: u32 = 1342215180; +pub const FS_IOC_GETFSMAP: u32 = 3233830971; +pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 2147772699; +pub const STP_POLICY_ID_GET: u32 = 2148541697; +pub const PPSETFLAGS: u32 = 1074032795; +pub const CEC_ADAP_S_PHYS_ADDR: u32 = 1073897730; +pub const ATMTCP_CREATE: u32 = 24974; +pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 45314; +pub const PPPIOCGXASYNCMAP: u32 = 2149610576; +pub const VHOST_SET_VRING_CALL: u32 = 1074310945; +pub const LIRC_GET_FEATURES: u32 = 2147772672; +pub const GSMIOC_DISABLE_NET: u32 = 18179; +pub const AUTOFS_IOC_CATATONIC: u32 = 37730; +pub const NBD_DO_IT: u32 = 43779; +pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 1074030879; +pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772697; +pub const EVIOCSCLOCKID: u32 = 1074021792; +pub const USBDEVFS_FREE_STREAMS: u32 = 2148029725; +pub const FSI_SCOM_RESET: u32 = 1074033411; +pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 2148024838; +pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; +pub const FDDEFPRM: u32 = 1075839555; +pub const TEE_IOC_INVOKE: u32 = 2148574211; +pub const USBDEVFS_BULK: u32 = 3222820098; +pub const SCIF_VWRITETO: u32 = 3223876365; +pub const SONYPI_IOCSBRT: u32 = 1073837568; +pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; +pub const RTC_PIE_ON: u32 = 28677; +pub const BTRFS_IOC_SCAN_DEV: u32 = 1342215172; +pub const PPPIOCXFERUNIT: u32 = 29774; +pub const WDIOC_GETTIMEOUT: u32 = 2147768071; +pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3234370597; +pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 1074312774; +pub const FBIO_WAITFORVSYNC: u32 = 1074021920; +pub const RTC_PIE_OFF: u32 = 28678; +pub const EVIOCGRAB: u32 = 1074021776; +pub const PMU_IOC_SET_BACKLIGHT: u32 = 1074283010; +pub const EVIOCGREP: u32 = 2148025603; +pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 1074275339; +pub const UFFDIO_CONTINUE: u32 = 3223366151; +pub const VDUSE_GET_API_VERSION: u32 = 2148040960; +pub const RTC_RD_TIME: u32 = 2149871625; +pub const FDMSGOFF: u32 = 582; +pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 2148296988; +pub const CAPI_GET_ERRCODE: u32 = 2147631905; +pub const PCITEST_SET_IRQTYPE: u32 = 1074024456; +pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; +pub const MATROXFB_SET_OUTPUT_MODE: u32 = 1074294522; +pub const RIO_DEV_ADD: u32 = 1075866903; +pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; +pub const FBIO_RADEON_SET_MIRROR: u32 = 1074282500; +pub const PCITEST_GET_IRQTYPE: u32 = 20489; +pub const JSIOCGVERSION: u32 = 2147772929; +pub const SONYPI_IOCSBLUE: u32 = 1073837577; +pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 13074; +pub const F2FS_IOC_GET_FEATURES: u32 = 2147808524; +pub const SCIF_REG: u32 = 3223876360; +pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 1081634440; +pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 1074012933; +pub const RIO_WAIT_FOR_ASYNC: u32 = 1074294038; +pub const VHOST_SET_VRING_NUM: u32 = 1074310928; +pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; +pub const RIO_FREE_DMA: u32 = 1074294036; +pub const MGSL_IOCRXENABLE: u32 = 27909; +pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 1977; +pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 2148034838; +pub const PPPIOCGL2TPSTATS: u32 = 2152231990; +pub const PERF_EVENT_IOC_PERIOD: u32 = 1074275332; +pub const PTP_PIN_SETFUNC2: u32 = 1080048912; +pub const CHIOEXCHANGE: u32 = 1075602178; +pub const NILFS_IOCTL_GET_SUINFO: u32 = 2149084804; +pub const CEC_DQEVENT: u32 = 3226493191; +pub const UI_SET_SWBIT: u32 = 1074025837; +pub const VHOST_VDPA_SET_CONFIG: u32 = 1074311028; +pub const TUNSETIFF: u32 = 1074025674; +pub const CHIOPOSITION: u32 = 1074553603; +pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 1074030879; +pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 1074304019; +pub const RIO_UNMAP_OUTBOUND: u32 = 1076391184; +pub const CAPI_CLR_FLAGS: u32 = 2147762981; +pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323663; +pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 2148036344; +pub const EVIOCSMASK: u32 = 1074808211; +pub const BTRFS_IOC_FORGET_DEV: u32 = 1342215173; +pub const CXL_MEM_QUERY_COMMANDS: u32 = 2148060673; +pub const CEC_S_MODE: u32 = 1074028809; +pub const MGSL_IOCSIF: u32 = 27914; +pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; +pub const PPSETMODE: u32 = 1074032768; +pub const VFIO_DEVICE_SET_IRQS: u32 = 15214; +pub const VIDIOC_PREPARE_BUF: u32 = 3227014749; +pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 2151964938; +pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 1092645098; +pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; +pub const UDMABUF_CREATE: u32 = 1075344706; +pub const SONET_CLRDIAG: u32 = 3221512467; +pub const PHN_SET_REG: u32 = 1074294785; +pub const RNDADDTOENTCNT: u32 = 1074024961; +pub const VBG_IOCTL_CHECK_BALLOON: u32 = 3223344657; +pub const VIDIOC_OMAP3ISP_STAT_REQ: u32 = 3223869126; +pub const PPS_FETCH: u32 = 3221778596; +pub const RTC_AIE_OFF: u32 = 28674; +pub const VFIO_GROUP_SET_CONTAINER: u32 = 15208; +pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 1074275094; +pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 15224; +pub const VFIO_IOMMU_GET_INFO: u32 = 15216; +pub const DM_DEV_SUSPEND: u32 = 3241737478; +pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 2147677461; +pub const FW_CDEV_IOC_STOP_ISO: u32 = 1074012939; +pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; +pub const ATMMPC_CTRL: u32 = 25048; +pub const PPPIOCSXASYNCMAP: u32 = 1075868751; +pub const CHIOGSTATUS: u32 = 1074815752; +pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; +pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 2147773699; +pub const CAPI_SET_FLAGS: u32 = 2147762980; +pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 15210; +pub const VHOST_SET_MEM_TABLE: u32 = 1074310915; +pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 1074294520; +pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 46658; +pub const VHOST_GET_FEATURES: u32 = 2148052736; +pub const LIRC_GET_REC_RESOLUTION: u32 = 2147772679; +pub const PACKET_CTRL_CMD: u32 = 3222820865; +pub const LIRC_SET_TRANSMITTER_MASK: u32 = 1074030871; +pub const BTRFS_IOC_ADD_DEV: u32 = 1342215178; +pub const JSIOCGCORR: u32 = 2149870114; +pub const VIDIOC_G_FMT: u32 = 3234878980; +pub const RTC_EPOCH_SET: u32 = 1074294798; +pub const CAPI_GET_PROFILE: u32 = 3225436937; +pub const ATM_GETLOOP: u32 = 1074815314; +pub const SCIF_LISTEN: u32 = 1074033410; +pub const NBD_CLEAR_QUE: u32 = 43781; +pub const F2FS_IOC_MOVE_RANGE: u32 = 3223385353; +pub const LIRC_GET_LENGTH: u32 = 2147772687; +pub const I8K_SET_FAN: u32 = 3221776775; +pub const FDSETMAXERRS: u32 = 1075053132; +pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 2151699968; +pub const SNAPSHOT_SET_SWAP_AREA: u32 = 1074541325; +pub const LIRC_GET_REC_TIMEOUT: u32 = 2147772708; +pub const EVIOCRMFF: u32 = 1074021761; +pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; +pub const PPRDATA: u32 = 2147577989; +pub const RIO_MPORT_GET_PROPERTIES: u32 = 2150657284; +pub const TUNSETVNETHDRSZ: u32 = 1074025688; +pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; +pub const GSMIOC_GETCONF: u32 = 2152482560; +pub const LIRC_GET_SEND_MODE: u32 = 2147772673; +pub const PPPIOCSACTIVE: u32 = 1074820166; +pub const SIOCGSTAMPNS_NEW: u32 = 2148567303; +pub const IPMICTL_RECEIVE_MSG: u32 = 3224398092; +pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 1074030869; +pub const UI_END_FF_ERASE: u32 = 1074550219; +pub const SWITCHTEC_IOCTL_FLASH_PART_INFO: u32 = 3222296385; +pub const FW_CDEV_IOC_SEND_PHY_PACKET: u32 = 3222807317; +pub const NBD_SET_FLAGS: u32 = 43786; +pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 15212; +pub const REISERFS_IOC_UNPACK: u32 = 1074318593; +pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 1074012935; +pub const RIO_SET_EVENT_MASK: u32 = 1074031885; +pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 2148021012; +pub const VDUSE_VQ_INJECT_IRQ: u32 = 1074037015; +pub const I2OPASSTHRU: u32 = 2148559116; +pub const IOC_OPAL_SET_PW: u32 = 1109422304; +pub const FSI_SCOM_READ: u32 = 3223352065; +pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 2147790704; +pub const VIDIOC_QBUF: u32 = 3227014671; +pub const VIDIOC_S_TUNER: u32 = 1079268894; +pub const TUNGETVNETHDRSZ: u32 = 2147767511; +pub const CAPI_NCCI_GETUNIT: u32 = 2147762983; +pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 2147792455; +pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; +pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; +pub const TEE_IOC_VERSION: u32 = 2148312064; +pub const VIDIOC_LOG_STATUS: u32 = 22086; +pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 2150656277; +pub const VHOST_SET_LOG_FD: u32 = 1074048775; +pub const SCIF_SEND: u32 = 3222827782; +pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; +pub const NS_ADJBUFLEV: u32 = 24931; +pub const VIDIOC_DBG_S_REGISTER: u32 = 1077433935; +pub const NILFS_IOCTL_RESIZE: u32 = 1074294411; +pub const PHN_GETREG: u32 = 3221778437; +pub const I2OSWDL: u32 = 3224398085; +pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 22019; +pub const JSIOCGBUTTONS: u32 = 2147576338; +pub const VFIO_IOMMU_ENABLE: u32 = 15219; +pub const DM_DEV_RENAME: u32 = 3241737477; +pub const MEDIA_IOC_SETUP_LINK: u32 = 3224665091; +pub const VIDIOC_ENUMOUTPUT: u32 = 3225966128; +pub const STP_POLICY_ID_SET: u32 = 3222283520; +pub const VHOST_VDPA_SET_CONFIG_CALL: u32 = 1074048887; +pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; +pub const VIDIOC_S_CROP: u32 = 1075074620; +pub const WDIOC_GETTEMP: u32 = 2147768067; +pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 1092120804; +pub const UI_SET_LEDBIT: u32 = 1074025833; +pub const NBD_SET_SOCK: u32 = 43776; +pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 1342215231; +pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; +pub const I2OSWUL: u32 = 3224398086; +pub const IOCTL_MEI_NOTIFY_GET: u32 = 2147764227; +pub const FDFMTTRK: u32 = 1074528840; +pub const MMTIMER_GETBITS: u32 = 27908; +pub const VIDIOC_ENUMSTD: u32 = 3225966105; +pub const VHOST_GET_VRING_BASE: u32 = 3221794578; +pub const VFIO_DEVICE_IOEVENTFD: u32 = 15220; +pub const ATMARP_SETENTRY: u32 = 25059; +pub const CCISS_REVALIDVOLS: u32 = 16906; +pub const MGSL_IOCLOOPTXDONE: u32 = 27913; +pub const RTC_VL_READ: u32 = 2147774483; +pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; +pub const RIO_DEV_DEL: u32 = 1075866904; +pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; +pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; +pub const SONYPI_IOCSFAN: u32 = 1073837579; +pub const SPIOCSTYPE: u32 = 1074295041; +pub const IPMICTL_REGISTER_FOR_CMD: u32 = 2147641614; +pub const I8K_GET_FAN: u32 = 3221776774; +pub const TUNGETVNETBE: u32 = 2147767519; +pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; +pub const UI_END_FF_UPLOAD: u32 = 1080579529; +pub const TOSH_SMM: u32 = 3222828176; +pub const SONYPI_IOCGBAT2REM: u32 = 2147644933; +pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 2148070673; +pub const PPPIOCSNPMODE: u32 = 1074295883; +pub const USBDEVFS_CONTROL: u32 = 3222820096; +pub const HIDIOCGUSAGE: u32 = 3222816779; +pub const TUNSETTXFILTER: u32 = 1074025681; +pub const TUNGETVNETLE: u32 = 2147767517; +pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; +pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; +pub const MGSL_IOCGXSYNC: u32 = 27924; +pub const HIDIOCGFIELDINFO: u32 = 3224913930; +pub const VIDIOC_SUBDEV_G_STD: u32 = 2148029975; +pub const I2OVALIDATE: u32 = 2147772680; +pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; +pub const NILFS_IOCTL_GET_CPINFO: u32 = 2149084802; +pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; +pub const VFAT_IOCTL_READDIR_SHORT: u32 = 2184212994; +pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; +pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 2148070675; +pub const FDGETDRVSTAT: u32 = 2152727058; +pub const SYNC_IOC_MERGE: u32 = 3224387075; +pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; +pub const PPPIOCBRIDGECHAN: u32 = 1074033717; +pub const LIRC_SET_SEND_MODE: u32 = 1074030865; +pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 1074818315; +pub const ATM_GETTYPE: u32 = 1074815364; +pub const PHN_GETREGS: u32 = 3223875591; +pub const FDSETEMSGTRESH: u32 = 586; +pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; +pub const MGSL_IOCWAITEVENT: u32 = 3221515528; +pub const CAPI_INSTALLED: u32 = 2147631906; +pub const EVIOCGMASK: u32 = 2148550034; +pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 2148045849; +pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; +pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; +pub const GSMIOC_GETFIRST: u32 = 2147763972; +pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 1074012952; +pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; +pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 62724; +pub const CAPI_GET_SERIAL: u32 = 3221504776; +pub const FDSETDRVPRM: u32 = 1082131088; +pub const IOC_OPAL_SAVE: u32 = 1092120796; +pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; +pub const TUNSETIFINDEX: u32 = 1074025690; +pub const CCISS_SETINTINFO: u32 = 1074283011; +pub const RTC_VL_CLR: u32 = 28692; +pub const VIDIOC_REQBUFS: u32 = 3222558216; +pub const USBDEVFS_REAPURBNDELAY32: u32 = 1074025741; +pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; +pub const USBDEVFS_SETCONFIGURATION: u32 = 2147767557; +pub const CCISS_GETNODENAME: u32 = 2148549124; +pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; +pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; +pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 15217; +pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 1076372242; +pub const LPSETTIMEOUT_NEW: u32 = 1074791951; +pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; +pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; +pub const FDRAWCMD: u32 = 600; +pub const SCIF_UNREG: u32 = 3222303497; +pub const PPPIOCGIDLE64: u32 = 2148561983; +pub const USBDEVFS_RELEASEINTERFACE: u32 = 2147767568; +pub const VIDIOC_CROPCAP: u32 = 3224131130; +pub const DFL_FPGA_PORT_GET_INFO: u32 = 46657; +pub const PHN_SET_REGS: u32 = 1074294787; +pub const ATMLEC_DATA: u32 = 25041; +pub const PPPOEIOCDFWD: u32 = 45313; +pub const VIDIOC_S_SELECTION: u32 = 3225441887; +pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 13065; +pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; +pub const VIDIOC_S_CTRL: u32 = 3221771804; +pub const ZATM_SETPOOL: u32 = 1074815331; +pub const MTIOCPOS: u32 = 2148035843; +pub const PMU_IOC_SLEEP: u32 = 16896; +pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; +pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; +pub const NILFS_IOCTL_GET_SUSTAT: u32 = 2150657669; +pub const VIDIOC_QUERYCAP: u32 = 2154321408; +pub const HPET_INFO: u32 = 2149083139; +pub const VIDIOC_AM437X_CCDC_CFG: u32 = 1074288321; +pub const DM_LIST_DEVICES: u32 = 3241737474; +pub const TUNSETOWNER: u32 = 1074025676; +pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; +pub const RNDADDENTROPY: u32 = 1074287107; +pub const USBDEVFS_RESET: u32 = 21780; +pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 1342215182; +pub const USBDEVFS_FORBID_SUSPEND: u32 = 21793; +pub const FDGETDRVTYP: u32 = 2148532751; +pub const PPWCONTROL: u32 = 1073836164; +pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; +pub const KCOV_DISABLE: u32 = 25445; +pub const IOC_OPAL_ACTIVATE_LSP: u32 = 1092120799; +pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 2148577144; +pub const PPPIOCSPASS: u32 = 1074820167; +pub const RIO_CM_CHAN_CONNECT: u32 = 1074291464; +pub const I2OSWDEL: u32 = 3224398087; +pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 2148296211; +pub const IOC_OPAL_MBR_DONE: u32 = 1091596521; +pub const PPPIOCSMAXCID: u32 = 1074033745; +pub const PPSETPHASE: u32 = 1074032788; +pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 1074311029; +pub const USBDEVFS_GET_SPEED: u32 = 21791; +pub const SONET_GETFRAMING: u32 = 2147770646; +pub const VIDIOC_QUERYBUF: u32 = 3227014665; +pub const VIDIOC_S_EDID: u32 = 3223868969; +pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 1075352617; +pub const PPS_GETCAP: u32 = 2148036771; +pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 13071; +pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 1074030873; +pub const SCIF_GET_NODEIDS: u32 = 3222827790; +pub const NBD_DISCONNECT: u32 = 43784; +pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; +pub const VFIO_IOMMU_DISABLE: u32 = 15220; +pub const SNAPSHOT_CREATE_IMAGE: u32 = 1074017041; +pub const SNAPSHOT_POWER_OFF: u32 = 13072; +pub const APM_IOC_STANDBY: u32 = 16641; +pub const PPPIOCGUNIT: u32 = 2147775574; +pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 1074041702; +pub const SCIF_BIND: u32 = 3221779201; +pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 22368; +pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 1074818688; +pub const IOC_OPAL_LOCK_UNLOCK: u32 = 1092120797; +pub const F2FS_IOC_SET_PIN_FILE: u32 = 1074066701; +pub const PPPIOCGRASYNCMAP: u32 = 2147775573; +pub const MMTIMER_MMAPAVAIL: u32 = 27910; +pub const I2OPASSTHRU32: u32 = 2148034828; +pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 1074050689; +pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 2156156515; +pub const UI_SET_SNDBIT: u32 = 1074025834; +pub const VIDIOC_G_AUDOUT: u32 = 2150913585; +pub const RTC_PLL_SET: u32 = 1075867666; +pub const VIDIOC_ENUMAUDIO: u32 = 3224655425; +pub const AUTOFS_DEV_IOCTL_TIMEOUT: u32 = 3222836090; +pub const VBG_IOCTL_DRIVER_VERSION_INFO: u32 = 3224131072; +pub const VHOST_SCSI_GET_EVENTS_MISSED: u32 = 1074048836; +pub const VHOST_SET_VRING_ADDR: u32 = 1076408081; +pub const VDUSE_CREATE_DEV: u32 = 1095794946; +pub const FDFLUSH: u32 = 587; +pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; +pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 1074312836; +pub const F2FS_IOC_GET_PIN_FILE: u32 = 2147808526; +pub const SCIF_CONNECT: u32 = 3221779203; +pub const BLKREPORTZONE: u32 = 3222278786; +pub const AUTOFS_IOC_ASKUMOUNT: u32 = 2147783536; +pub const ATM_ADDPARTY: u32 = 1074815476; +pub const FDSETPRM: u32 = 1075839554; +pub const ATM_GETSTATZ: u32 = 1074815313; +pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; +pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 2180551740; +pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 1075861083; +pub const SEV_ISSUE_CMD: u32 = 3222295296; +pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; +pub const PCITEST_COPY: u32 = 1074286598; +pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 2147772690; +pub const CHIOGPICKER: u32 = 2147771140; +pub const CAPI_NCCI_OPENCOUNT: u32 = 2147762982; +pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; +pub const PERF_EVENT_IOC_SET_FILTER: u32 = 1074275334; +pub const IOC_OPAL_REVERT_TPR: u32 = 1091072226; +pub const CHIOGVPARAMS: u32 = 2154849043; +pub const PTP_PEROUT_REQUEST: u32 = 1077427459; +pub const FSI_SCOM_CHECK: u32 = 2147775232; +pub const RTC_IRQP_READ: u32 = 2148036619; +pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 2149084421; +pub const HIDIOCGRDESCSIZE: u32 = 2147764225; +pub const UI_GET_VERSION: u32 = 2147767597; +pub const NILFS_IOCTL_GET_CPSTAT: u32 = 2149084803; +pub const CCISS_GETBUSTYPES: u32 = 2147762695; +pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 15223; +pub const VIDIOC_EXPBUF: u32 = 3225441808; +pub const UI_SET_RELBIT: u32 = 1074025830; +pub const VFIO_SET_IOMMU: u32 = 15206; +pub const VIDIOC_S_MODULATOR: u32 = 1078220343; +pub const TUNGETFILTER: u32 = 2148553947; +pub const CCISS_SETNODENAME: u32 = 1074807301; +pub const FBIO_GETCONTROL2: u32 = 2148025993; +pub const TUNSETDEBUG: u32 = 1074025673; +pub const DM_DEV_REMOVE: u32 = 3241737476; +pub const HIDIOCSUSAGES: u32 = 1344030740; +pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; +pub const FBIOGET_VBLANK: u32 = 2149598738; +pub const ATM_GETSTAT: u32 = 1074815312; +pub const VIDIOC_G_JPEGCOMP: u32 = 2156680765; +pub const TUNATTACHFILTER: u32 = 1074812117; +pub const UI_SET_ABSBIT: u32 = 1074025831; +pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 2147792453; +pub const USBDEVFS_REAPURB32: u32 = 1074025740; +pub const BTRFS_IOC_TRANS_END: u32 = 37895; +pub const CAPI_REGISTER: u32 = 1074545409; +pub const F2FS_IOC_COMPRESS_FILE: u32 = 62744; +pub const USBDEVFS_DISCARDURB: u32 = 21771; +pub const HE_GET_REG: u32 = 1074815328; +pub const ATM_SETLOOP: u32 = 1074815315; +pub const ATMSIGD_CTRL: u32 = 25072; +pub const CIOC_KERNEL_VERSION: u32 = 3221775114; +pub const BTRFS_IOC_CLONE_RANGE: u32 = 1075876877; +pub const SNAPSHOT_UNFREEZE: u32 = 13058; +pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 62723; +pub const PMU_IOC_HAS_ADB: u32 = 2148024836; +pub const I2OGETIOPS: u32 = 2149607680; +pub const VIDIOC_S_FBUF: u32 = 1076909579; +pub const PPRCONTROL: u32 = 2147577987; +pub const CHIOSPICKER: u32 = 1074029317; +pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 15221; +pub const TUNGETSNDBUF: u32 = 2147767507; +pub const GSMIOC_SETCONF: u32 = 1078740737; +pub const IOC_PR_PREEMPT: u32 = 1075343563; +pub const KCOV_INIT_TRACE: u32 = 2148033281; +pub const SONYPI_IOCGBAT1CAP: u32 = 2147644930; +pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 2148554560; +pub const MTIOCTOP: u32 = 1074294017; +pub const VHOST_VDPA_SET_STATUS: u32 = 1073852274; +pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 1074048835; +pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 15221; +pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; +pub const PPPIOCGMRU: u32 = 2147775571; +pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; +pub const PPPIOCGFLAGS: u32 = 2147775578; +pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; +pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; +pub const ATM_DELLECSADDR: u32 = 1074815375; +pub const FW_CDEV_IOC_GET_SPEED: u32 = 8977; +pub const PPPIOCGIDLE32: u32 = 2148037695; +pub const VFIO_DEVICE_RESET: u32 = 15215; +pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; +pub const WDIOC_GETSTATUS: u32 = 2147768065; +pub const BTRFS_IOC_SET_FEATURES: u32 = 1076925497; +pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; +pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; +pub const PCITEST_READ: u32 = 1074286597; +pub const VFIO_GROUP_GET_STATUS: u32 = 15207; +pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 2148036347; +pub const USBDEVFS_CLEAR_HALT: u32 = 2147767573; +pub const VIDIOC_DECODER_CMD: u32 = 3225966176; +pub const VIDIOC_G_AUDIO: u32 = 2150913569; +pub const CCISS_RESCANDISK: u32 = 16912; +pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 1074818316; +pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 1091596519; +pub const USBDEVFS_REAPURB: u32 = 1074287884; +pub const DFL_FPGA_CHECK_EXTENSION: u32 = 46593; +pub const AUTOFS_IOC_PROTOVER: u32 = 2147783523; +pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; +pub const BTRFS_IOC_GET_FEATURES: u32 = 2149094457; +pub const PCITEST_MSIX: u32 = 1074024455; +pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 1076925456; +pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; +pub const DM_GET_TARGET_VERSION: u32 = 3241737489; +pub const PPPIOCGIDLE: u32 = 2148561983; +pub const NVRAM_SETCKS: u32 = 28737; +pub const WDIOC_GETSUPPORT: u32 = 2150127360; +pub const GSMIOC_ENABLE_NET: u32 = 1077167874; +pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 2151986177; +pub const NE_ADD_VCPU: u32 = 3221532193; +pub const EVIOCSKEYCODE_V2: u32 = 1076380932; +pub const PTP_SYS_OFFSET_EXTENDED2: u32 = 3300932882; +pub const SCIF_FENCE_WAIT: u32 = 3221517072; +pub const RIO_TRANSFER: u32 = 3222826261; +pub const FSL_HV_IOCTL_DOORBELL: u32 = 3221794566; +pub const RIO_MPORT_MAINT_WRITE_LOCAL: u32 = 1075342598; +pub const I2OEVTREG: u32 = 1074555146; +pub const I2OPARMGET: u32 = 3223873796; +pub const EVIOCGID: u32 = 2148025602; +pub const BTRFS_IOC_QGROUP_CREATE: u32 = 1074828330; +pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; +pub const VIDIOC_S_PARM: u32 = 3234616854; +pub const TUNSETSTEERINGEBPF: u32 = 2147767520; +pub const ATM_GETNAMES: u32 = 1074815363; +pub const VIDIOC_QUERYMENU: u32 = 3224131109; +pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 46660; +pub const I2OLCTGET: u32 = 3222825218; +pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 1074816532; +pub const NS_SETBUFLEV: u32 = 1074815330; +pub const BLKCLOSEZONE: u32 = 1074795143; +pub const SONET_GETFRSENSE: u32 = 2147901719; +pub const UI_SET_EVBIT: u32 = 1074025828; +pub const DM_LIST_VERSIONS: u32 = 3241737485; +pub const HIDIOCGSTRING: u32 = 2164541444; +pub const PPPIOCATTCHAN: u32 = 1074033720; +pub const VDUSE_DEV_SET_CONFIG: u32 = 1074299154; +pub const TUNGETFEATURES: u32 = 2147767503; +pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 15209; +pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 2147772689; +pub const CCISS_REGNEWDISK: u32 = 1074020877; +pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 2156156515; +pub const PHN_SETREGS: u32 = 1076391944; +pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 2147774992; +pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; +pub const TUNGETIFF: u32 = 2147767506; +pub const PTP_CLOCK_GETCAPS2: u32 = 2152742154; +pub const BTRFS_IOC_RESIZE: u32 = 1342215171; +pub const VHOST_SET_VRING_ENDIAN: u32 = 1074310931; +pub const PPS_KC_BIND: u32 = 1074294949; +pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 62727; +pub const UI_SET_FFBIT: u32 = 1074025835; +pub const IPMICTL_GET_MY_LUN_CMD: u32 = 2147772692; +pub const CEC_ADAP_G_PHYS_ADDR: u32 = 2147639553; +pub const CEC_G_MODE: u32 = 2147770632; +pub const USBDEVFS_RESETEP: u32 = 2147767555; +pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 31872; +pub const USBDEVFS_ALLOC_STREAMS: u32 = 2148029724; +pub const MGSL_IOCSXCTRL: u32 = 27925; +pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; +pub const PPPIOCUNBRIDGECHAN: u32 = 29748; +pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 62722; +pub const ISST_IF_GET_PLATFORM_INFO: u32 = 2148072960; +pub const SCIF_FENCE_MARK: u32 = 3222303503; +pub const USBDEVFS_RELEASE_PORT: u32 = 2147767577; +pub const VFIO_CHECK_EXTENSION: u32 = 15205; +pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 2150667307; +pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 2147774995; +pub const UI_SET_PHYS: u32 = 1074287980; +pub const FDWERRORGET: u32 = 2150105623; +pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; +pub const MGSL_IOCGSTATS: u32 = 27911; +pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 1074050817; +pub const SIOCGSTAMP_NEW: u32 = 2148567302; +pub const RTC_WKALM_RD: u32 = 2150133776; +pub const PHN_GET_REG: u32 = 3221778432; +pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; +pub const PHN_NOT_OH: u32 = 28676; +pub const PPGETMODES: u32 = 2147774615; +pub const CHIOGPARAMS: u32 = 2148819718; +pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 15219; +pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310947; +pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; +pub const BTRFS_IOC_RM_DEV_V2: u32 = 1342215226; +pub const MGSL_IOCWAITGPIO: u32 = 3222301970; +pub const PMU_IOC_CAN_SLEEP: u32 = 2148024837; +pub const KCOV_ENABLE: u32 = 25444; +pub const BTRFS_IOC_CLONE: u32 = 1074041865; +pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; +pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 1074012942; +pub const AGPIOC_ALLOCATE: u32 = 3221766406; +pub const NE_SET_USER_MEMORY_REGION: u32 = 1075359267; +pub const MGSL_IOCTXABORT: u32 = 27910; +pub const MGSL_IOCSGPIO: u32 = 1074818320; +pub const LIRC_SET_REC_CARRIER: u32 = 1074030868; +pub const F2FS_IOC_FLUSH_DEVICE: u32 = 1074328842; +pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 13060; +pub const RTC_UIE_OFF: u32 = 28676; +pub const BT_BMC_IOCTL_SMS_ATN: u32 = 45312; +pub const NVME_IOCTL_ID: u32 = 20032; +pub const NE_START_ENCLAVE: u32 = 3222318628; +pub const VIDIOC_STREAMON: u32 = 1074026002; +pub const FDPOLLDRVSTAT: u32 = 2152727059; +pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; +pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; +pub const VIDIOC_SUBDEV_S_STD: u32 = 1074288152; +pub const WDIOC_GETTIMELEFT: u32 = 2147768074; +pub const ATM_GETLINKRATE: u32 = 1074815361; +pub const RTC_WKALM_SET: u32 = 1076391951; +pub const VHOST_GET_BACKEND_FEATURES: u32 = 2148052774; +pub const ATMARP_ENCAP: u32 = 25061; +pub const CAPI_GET_FLAGS: u32 = 2147762979; +pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772696; +pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 1074050690; +pub const NS_GET_OWNER_UID: u32 = 46852; +pub const VIDIOC_OVERLAY: u32 = 1074025998; +pub const BTRFS_IOC_WAIT_SYNC: u32 = 1074304022; +pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; +pub const VHOST_GET_VRING_ENDIAN: u32 = 1074310932; +pub const ATM_GETADDR: u32 = 1074815366; +pub const PHN_GET_REGS: u32 = 3221778434; +pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; +pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; +pub const SNAPSHOT_S2RAM: u32 = 13067; +pub const JSIOCSAXMAP: u32 = 1077963313; +pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 1073935638; +pub const VBG_IOCTL_HGCM_DISCONNECT: u32 = 3223082501; +pub const SCIF_FENCE_SIGNAL: u32 = 3223876369; +pub const VFIO_DEVICE_GET_PCI_HOT_RESET_INFO: u32 = 15216; +pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; +pub const MMTIMER_GETOFFSET: u32 = 27904; +pub const RIO_CM_CHAN_LISTEN: u32 = 1073898246; +pub const ATM_SETSC: u32 = 1074029041; +pub const F2FS_IOC_SHUTDOWN: u32 = 2147768445; +pub const NVME_IOCTL_RESCAN: u32 = 20038; +pub const BLKOPENZONE: u32 = 1074795142; +pub const DM_VERSION: u32 = 3241737472; +pub const CEC_TRANSMIT: u32 = 3224920325; +pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; +pub const SIOCMKCLIP: u32 = 25056; +pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 45313; +pub const HIDIOCGVERSION: u32 = 2147764225; +pub const VIDIOC_S_INPUT: u32 = 3221509671; +pub const VIDIOC_G_CROP: u32 = 3222558267; +pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 1074030883; +pub const EVIOCGEFFECTS: u32 = 2147763588; +pub const UVCIOC_CTRL_QUERY: u32 = 3222304033; +pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 1094217963; +pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; +pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; +pub const USBDEVFS_GETDRIVER: u32 = 1090802952; +pub const IDT77105_GETSTAT: u32 = 1074815282; +pub const HIDIOCINITREPORT: u32 = 18437; +pub const VFIO_DEVICE_GET_INFO: u32 = 15211; +pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; +pub const RNDGETENTCNT: u32 = 2147766784; +pub const PPPIOCNEWUNIT: u32 = 3221517374; +pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; +pub const FDRESET: u32 = 596; +pub const IOC_PR_REGISTER: u32 = 1075343560; +pub const HIDIOCSREPORT: u32 = 1074546696; +pub const TEE_IOC_OPEN_SESSION: u32 = 2148574210; +pub const TEE_IOC_SUPPL_RECV: u32 = 2148574214; +pub const BTRFS_IOC_BALANCE_CTL: u32 = 1074041889; +pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; +pub const HIDIOCGRAWINFO: u32 = 2148026371; +pub const PPPIOCSCOMPRESS: u32 = 1074820173; +pub const USBDEVFS_CONNECTINFO: u32 = 1074287889; +pub const BLKRESETZONE: u32 = 1074795139; +pub const CHIOINITELEM: u32 = 25361; +pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 1074818700; +pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; +pub const RIO_MPORT_MAINT_HDID_SET: u32 = 1073900801; +pub const PPGETPHASE: u32 = 2147774617; +pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 2164806939; +pub const FDMSGON: u32 = 581; +pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; +pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; +pub const MEDIA_REQUEST_IOC_REINIT: u32 = 31873; +pub const IOC_OPAL_ERASE_LR: u32 = 1091596518; +pub const FDFMTBEG: u32 = 583; +pub const RNDRESEEDCRNG: u32 = 20999; +pub const ISST_IF_GET_PHY_ID: u32 = 3221814785; +pub const TUNSETNOCSUM: u32 = 1074025672; +pub const SONET_GETSTAT: u32 = 2149867792; +pub const TFD_IOC_SET_TICKS: u32 = 1074287616; +pub const PPDATADIR: u32 = 1074032784; +pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 1091596517; +pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; +pub const RIO_CM_CHAN_SEND: u32 = 1074815753; +pub const PPWCTLONIRQ: u32 = 1073836178; +pub const SONYPI_IOCGBRT: u32 = 2147579392; +pub const IOC_PR_RELEASE: u32 = 1074819274; +pub const PPCLRIRQ: u32 = 2147774611; +pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 2147772698; +pub const MGSL_IOCSXSYNC: u32 = 27923; +pub const HPET_IE_OFF: u32 = 26626; +pub const IOC_OPAL_ACTIVATE_USR: u32 = 1091596513; +pub const SONET_SETFRAMING: u32 = 1074028821; +pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 1074013193; +pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; +pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; +pub const BLKFINISHZONE: u32 = 1074795144; +pub const EVIOCREVOKE: u32 = 1074021777; +pub const VFIO_DEVICE_FEATURE: u32 = 15221; +pub const CCISS_GETPCIINFO: u32 = 2148024833; +pub const ISST_IF_MBOX_COMMAND: u32 = 3221814787; +pub const SCIF_ACCEPTREQ: u32 = 3222303492; +pub const PERF_EVENT_IOC_QUERY_BPF: u32 = 3221758986; +pub const VIDIOC_STREAMOFF: u32 = 1074026003; +pub const VDUSE_DESTROY_DEV: u32 = 1090552067; +pub const FDGETFDCSTAT: u32 = 2150105621; +pub const VIDIOC_S_PRIORITY: u32 = 1074026052; +pub const SNAPSHOT_FREEZE: u32 = 13057; +pub const VIDIOC_ENUMINPUT: u32 = 3226490394; +pub const ZATM_GETPOOLZ: u32 = 1074815330; +pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 1074294026; +pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; +pub const VIDIOC_G_STD: u32 = 2148029975; +pub const USBDEVFS_ALLOW_SUSPEND: u32 = 21794; +pub const SONET_GETSTATZ: u32 = 2149867793; +pub const SCIF_ACCEPTREG: u32 = 3221779205; +pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; +pub const PPPIOCSRASYNCMAP: u32 = 1074033748; +pub const IOCTL_MEI_NOTIFY_SET: u32 = 1074022402; +pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 2151715885; +pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 1074066694; +pub const ATMLEC_CTRL: u32 = 25040; +pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 2148036345; +pub const DM_DEV_CREATE: u32 = 3241737475; +pub const VHOST_VDPA_GET_VRING_NUM: u32 = 2147659638; +pub const VIDIOC_G_CTRL: u32 = 3221771803; +pub const NBD_CLEAR_SOCK: u32 = 43780; +pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 15218; +pub const WDIOC_KEEPALIVE: u32 = 2147768069; +pub const NVME_IOCTL_SUBSYS_RESET: u32 = 20037; +pub const PTP_EXTTS_REQUEST2: u32 = 1074806027; +pub const PCITEST_BAR: u32 = 20481; +pub const MGSL_IOCGGPIO: u32 = 2148560145; +pub const EVIOCSREP: u32 = 1074283779; +pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 15213; +pub const HPET_DPI: u32 = 26629; +pub const VDUSE_VQ_SETUP_KICKFD: u32 = 1074299158; +pub const ND_IOCTL_CALL: u32 = 3225439754; +pub const HIDIOCGDEVINFO: u32 = 2149337091; +pub const DM_TABLE_DEPS: u32 = 3241737483; +pub const BTRFS_IOC_DEV_INFO: u32 = 3489698846; +pub const VDUSE_IOTLB_GET_FD: u32 = 3223355664; +pub const FW_CDEV_IOC_GET_INFO: u32 = 3223855872; +pub const VIDIOC_G_PRIORITY: u32 = 2147767875; +pub const ATM_NEWBACKENDIF: u32 = 1073897971; +pub const VIDIOC_S_EXT_CTRLS: u32 = 3223344712; +pub const VIDIOC_SUBDEV_ENUM_DV_TIMINGS: u32 = 3230946914; +pub const VIDIOC_OMAP3ISP_CCDC_CFG: u32 = 3224917697; +pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 1076909650; +pub const DM_TABLE_LOAD: u32 = 3241737481; +pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 62721; +pub const VIDIOC_G_OUTPUT: u32 = 2147767854; +pub const ATM_DROPPARTY: u32 = 1074029045; +pub const CHIOGELEM: u32 = 1080845072; +pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 2152240185; +pub const EVIOCSKEYCODE: u32 = 1074283780; +pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; +pub const TUNSETLINK: u32 = 1074025677; +pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; +pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 37916; +pub const PPS_SETPARAMS: u32 = 1074294946; +pub const IOC_OPAL_LR_SETUP: u32 = 1093169379; +pub const FW_CDEV_IOC_DEALLOCATE: u32 = 1074012931; +pub const WDIOC_SETTIMEOUT: u32 = 3221509894; +pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 22369; +pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; +pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 15222; +pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 1074836224; +pub const VIDIOC_G_EDID: u32 = 3223868968; +pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 1075377419; +pub const RIO_MAP_INBOUND: u32 = 3223874833; +pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 1091072222; +pub const USBDEVFS_CLAIM_PORT: u32 = 2147767576; +pub const VIDIOC_S_AUDIO: u32 = 1077171746; +pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 2148558363; +pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 1076372243; +pub const BTRFS_IOC_SNAP_DESTROY: u32 = 1342215183; +pub const SNAPSHOT_FREE: u32 = 13061; +pub const I8K_GET_SPEED: u32 = 3221776773; +pub const HIDIOCGREPORT: u32 = 1074546695; +pub const HPET_EPI: u32 = 26628; +pub const JSIOCSCORR: u32 = 1076128289; +pub const IOC_PR_PREEMPT_ABORT: u32 = 1075343564; +pub const RIO_MAP_OUTBOUND: u32 = 3223874831; +pub const ATM_SETESI: u32 = 1074815372; +pub const FW_CDEV_IOC_START_ISO: u32 = 1074799370; +pub const ATM_DELADDR: u32 = 1074815369; +pub const PPFCONTROL: u32 = 1073901710; +pub const SONYPI_IOCGFAN: u32 = 2147579402; +pub const RTC_IRQP_SET: u32 = 1074294796; +pub const PCITEST_WRITE: u32 = 1074286596; +pub const PPCLAIM: u32 = 28811; +pub const VIDIOC_S_JPEGCOMP: u32 = 1082938942; +pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 2147641615; +pub const VHOST_SET_FEATURES: u32 = 1074310912; +pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; +pub const VIDIOC_DQBUF: u32 = 3227014673; +pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 2214630434; +pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 1074304026; +pub const ATMLEC_MCAST: u32 = 25042; +pub const MMTIMER_GETFREQ: u32 = 2148035842; +pub const VIDIOC_G_SELECTION: u32 = 3225441886; +pub const RTC_ALM_SET: u32 = 1076129799; +pub const PPPOEIOCSFWD: u32 = 1074311424; +pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 2147772702; +pub const FS_IOC_ENABLE_VERITY: u32 = 1082156677; +pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; +pub const FDFMTEND: u32 = 585; +pub const DMA_BUF_SET_NAME: u32 = 1074291201; +pub const UI_BEGIN_FF_UPLOAD: u32 = 3228063176; +pub const RTC_UIE_ON: u32 = 28675; +pub const PPRELEASE: u32 = 28812; +pub const VFIO_IOMMU_UNMAP_DMA: u32 = 15218; +pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3228587714; +pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; +pub const VFAT_IOCTL_READDIR_BOTH: u32 = 2184212993; +pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; +pub const VHOST_SET_VRING_KICK: u32 = 1074310944; +pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 1342215192; +pub const BTRFS_IOC_SNAP_CREATE: u32 = 1342215169; +pub const SONYPI_IOCGBAT2CAP: u32 = 2147644932; +pub const PPNEGOT: u32 = 1074032785; +pub const NBD_PRINT_DEBUG: u32 = 43782; +pub const BTRFS_IOC_INO_LOOKUP_USER: u32 = 3489698878; +pub const BTRFS_IOC_GET_SUBVOL_ROOTREF: u32 = 3489698877; +pub const FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS: u32 = 3225445913; +pub const BTRFS_IOC_FS_INFO: u32 = 2214630431; +pub const VIDIOC_ENUM_FMT: u32 = 3225441794; +pub const VIDIOC_G_INPUT: u32 = 2147767846; +pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; +pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 2147792515; +pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; +pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 1077974060; +pub const MMTIMER_GETCOUNTER: u32 = 2148035849; +pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; +pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 37934; +pub const RIO_CM_CHAN_BIND: u32 = 1074291461; +pub const HIDIOCGRDESC: u32 = 2416199682; +pub const MGSL_IOCGIF: u32 = 27915; +pub const VIDIOC_S_OUTPUT: u32 = 3221509679; +pub const HIDIOCGREPORTINFO: u32 = 3222030345; +pub const WDIOC_GETBOOTSTATUS: u32 = 2147768066; +pub const VDUSE_VQ_GET_INFO: u32 = 3224404245; +pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 1076142677; +pub const BLKGETDISKSEQ: u32 = 2148012672; +pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; +pub const ACRN_IOCTL_DESTROY_VM: u32 = 41489; +pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 1075094099; +pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 41522; +pub const ACRN_IOCTL_IRQFD: u32 = 1075356273; +pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; +pub const ACRN_IOCTL_INJECT_MSI: u32 = 1074831907; +pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 41523; +pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 1075094100; +pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 1074307633; +pub const ACRN_IOCTL_SET_IRQLINE: u32 = 1074307621; +pub const ACRN_IOCTL_START_VM: u32 = 41490; +pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 1093181974; +pub const ACRN_IOCTL_SET_MEMSEG: u32 = 1075880513; +pub const ACRN_IOCTL_PAUSE_VM: u32 = 41491; +pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 41525; +pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 1075880514; +pub const ACRN_IOCTL_IOEVENTFD: u32 = 1075880560; +pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 1076142678; +pub const ACRN_IOCTL_RESET_VM: u32 = 41493; +pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 41524; +pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 1074307620; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/landlock.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/landlock.rs new file mode 100644 index 0000000000000000000000000000000000000000..4767a6ec7caec5df63151abdf782fa54d37fb76f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/landlock.rs @@ -0,0 +1,104 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct landlock_ruleset_attr { +pub handled_access_fs: __u64, +pub handled_access_net: __u64, +pub scoped: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct landlock_path_beneath_attr { +pub allowed_access: __u64, +pub parent_fd: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct landlock_net_port_attr { +pub allowed_access: __u64, +pub port: __u64, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; +pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; +pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; +pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; +pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; +pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; +pub const LANDLOCK_ACCESS_FS_READ_DIR: u32 = 8; +pub const LANDLOCK_ACCESS_FS_REMOVE_DIR: u32 = 16; +pub const LANDLOCK_ACCESS_FS_REMOVE_FILE: u32 = 32; +pub const LANDLOCK_ACCESS_FS_MAKE_CHAR: u32 = 64; +pub const LANDLOCK_ACCESS_FS_MAKE_DIR: u32 = 128; +pub const LANDLOCK_ACCESS_FS_MAKE_REG: u32 = 256; +pub const LANDLOCK_ACCESS_FS_MAKE_SOCK: u32 = 512; +pub const LANDLOCK_ACCESS_FS_MAKE_FIFO: u32 = 1024; +pub const LANDLOCK_ACCESS_FS_MAKE_BLOCK: u32 = 2048; +pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; +pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; +pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; +pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; +pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; +pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum landlock_rule_type { +LANDLOCK_RULE_PATH_BENEATH = 1, +LANDLOCK_RULE_NET_PORT = 2, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/loop_device.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/loop_device.rs new file mode 100644 index 0000000000000000000000000000000000000000..839064df39c547352d0537676c1e7d933341a886 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/loop_device.rs @@ -0,0 +1,134 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct loop_info { +pub lo_number: crate::ctypes::c_int, +pub lo_device: __kernel_old_dev_t, +pub lo_inode: crate::ctypes::c_ulong, +pub lo_rdevice: __kernel_old_dev_t, +pub lo_offset: crate::ctypes::c_int, +pub lo_encrypt_type: crate::ctypes::c_int, +pub lo_encrypt_key_size: crate::ctypes::c_int, +pub lo_flags: crate::ctypes::c_int, +pub lo_name: [crate::ctypes::c_char; 64usize], +pub lo_encrypt_key: [crate::ctypes::c_uchar; 32usize], +pub lo_init: [crate::ctypes::c_ulong; 2usize], +pub reserved: [crate::ctypes::c_char; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct loop_info64 { +pub lo_device: __u64, +pub lo_inode: __u64, +pub lo_rdevice: __u64, +pub lo_offset: __u64, +pub lo_sizelimit: __u64, +pub lo_number: __u32, +pub lo_encrypt_type: __u32, +pub lo_encrypt_key_size: __u32, +pub lo_flags: __u32, +pub lo_file_name: [__u8; 64usize], +pub lo_crypt_name: [__u8; 64usize], +pub lo_encrypt_key: [__u8; 32usize], +pub lo_init: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct loop_config { +pub fd: __u32, +pub block_size: __u32, +pub info: loop_info64, +pub __reserved: [__u64; 8usize], +} +pub const LO_NAME_SIZE: u32 = 64; +pub const LO_KEY_SIZE: u32 = 32; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const LO_CRYPT_NONE: u32 = 0; +pub const LO_CRYPT_XOR: u32 = 1; +pub const LO_CRYPT_DES: u32 = 2; +pub const LO_CRYPT_FISH2: u32 = 3; +pub const LO_CRYPT_BLOW: u32 = 4; +pub const LO_CRYPT_CAST128: u32 = 5; +pub const LO_CRYPT_IDEA: u32 = 6; +pub const LO_CRYPT_DUMMY: u32 = 9; +pub const LO_CRYPT_SKIPJACK: u32 = 10; +pub const LO_CRYPT_CRYPTOAPI: u32 = 18; +pub const MAX_LO_CRYPT: u32 = 20; +pub const LOOP_SET_FD: u32 = 19456; +pub const LOOP_CLR_FD: u32 = 19457; +pub const LOOP_SET_STATUS: u32 = 19458; +pub const LOOP_GET_STATUS: u32 = 19459; +pub const LOOP_SET_STATUS64: u32 = 19460; +pub const LOOP_GET_STATUS64: u32 = 19461; +pub const LOOP_CHANGE_FD: u32 = 19462; +pub const LOOP_SET_CAPACITY: u32 = 19463; +pub const LOOP_SET_DIRECT_IO: u32 = 19464; +pub const LOOP_SET_BLOCK_SIZE: u32 = 19465; +pub const LOOP_CONFIGURE: u32 = 19466; +pub const LOOP_CTL_ADD: u32 = 19584; +pub const LOOP_CTL_REMOVE: u32 = 19585; +pub const LOOP_CTL_GET_FREE: u32 = 19586; +pub const LO_FLAGS_READ_ONLY: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_READ_ONLY; +pub const LO_FLAGS_AUTOCLEAR: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_AUTOCLEAR; +pub const LO_FLAGS_PARTSCAN: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_PARTSCAN; +pub const LO_FLAGS_DIRECT_IO: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_DIRECT_IO; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +LO_FLAGS_READ_ONLY = 1, +LO_FLAGS_AUTOCLEAR = 4, +LO_FLAGS_PARTSCAN = 8, +LO_FLAGS_DIRECT_IO = 16, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/mempolicy.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/mempolicy.rs new file mode 100644 index 0000000000000000000000000000000000000000..51914ccda4aae99462299b196a931dd5feea3a80 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/mempolicy.rs @@ -0,0 +1,175 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EDEADLK: u32 = 35; +pub const ENAMETOOLONG: u32 = 36; +pub const ENOLCK: u32 = 37; +pub const ENOSYS: u32 = 38; +pub const ENOTEMPTY: u32 = 39; +pub const ELOOP: u32 = 40; +pub const EWOULDBLOCK: u32 = 11; +pub const ENOMSG: u32 = 42; +pub const EIDRM: u32 = 43; +pub const ECHRNG: u32 = 44; +pub const EL2NSYNC: u32 = 45; +pub const EL3HLT: u32 = 46; +pub const EL3RST: u32 = 47; +pub const ELNRNG: u32 = 48; +pub const EUNATCH: u32 = 49; +pub const ENOCSI: u32 = 50; +pub const EL2HLT: u32 = 51; +pub const EBADE: u32 = 52; +pub const EBADR: u32 = 53; +pub const EXFULL: u32 = 54; +pub const ENOANO: u32 = 55; +pub const EBADRQC: u32 = 56; +pub const EBADSLT: u32 = 57; +pub const EDEADLOCK: u32 = 35; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EMULTIHOP: u32 = 72; +pub const EDOTDOT: u32 = 73; +pub const EBADMSG: u32 = 74; +pub const EOVERFLOW: u32 = 75; +pub const ENOTUNIQ: u32 = 76; +pub const EBADFD: u32 = 77; +pub const EREMCHG: u32 = 78; +pub const ELIBACC: u32 = 79; +pub const ELIBBAD: u32 = 80; +pub const ELIBSCN: u32 = 81; +pub const ELIBMAX: u32 = 82; +pub const ELIBEXEC: u32 = 83; +pub const EILSEQ: u32 = 84; +pub const ERESTART: u32 = 85; +pub const ESTRPIPE: u32 = 86; +pub const EUSERS: u32 = 87; +pub const ENOTSOCK: u32 = 88; +pub const EDESTADDRREQ: u32 = 89; +pub const EMSGSIZE: u32 = 90; +pub const EPROTOTYPE: u32 = 91; +pub const ENOPROTOOPT: u32 = 92; +pub const EPROTONOSUPPORT: u32 = 93; +pub const ESOCKTNOSUPPORT: u32 = 94; +pub const EOPNOTSUPP: u32 = 95; +pub const EPFNOSUPPORT: u32 = 96; +pub const EAFNOSUPPORT: u32 = 97; +pub const EADDRINUSE: u32 = 98; +pub const EADDRNOTAVAIL: u32 = 99; +pub const ENETDOWN: u32 = 100; +pub const ENETUNREACH: u32 = 101; +pub const ENETRESET: u32 = 102; +pub const ECONNABORTED: u32 = 103; +pub const ECONNRESET: u32 = 104; +pub const ENOBUFS: u32 = 105; +pub const EISCONN: u32 = 106; +pub const ENOTCONN: u32 = 107; +pub const ESHUTDOWN: u32 = 108; +pub const ETOOMANYREFS: u32 = 109; +pub const ETIMEDOUT: u32 = 110; +pub const ECONNREFUSED: u32 = 111; +pub const EHOSTDOWN: u32 = 112; +pub const EHOSTUNREACH: u32 = 113; +pub const EALREADY: u32 = 114; +pub const EINPROGRESS: u32 = 115; +pub const ESTALE: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EDQUOT: u32 = 122; +pub const ENOMEDIUM: u32 = 123; +pub const EMEDIUMTYPE: u32 = 124; +pub const ECANCELED: u32 = 125; +pub const ENOKEY: u32 = 126; +pub const EKEYEXPIRED: u32 = 127; +pub const EKEYREVOKED: u32 = 128; +pub const EKEYREJECTED: u32 = 129; +pub const EOWNERDEAD: u32 = 130; +pub const ENOTRECOVERABLE: u32 = 131; +pub const ERFKILL: u32 = 132; +pub const EHWPOISON: u32 = 133; +pub const MPOL_F_STATIC_NODES: u32 = 32768; +pub const MPOL_F_RELATIVE_NODES: u32 = 16384; +pub const MPOL_F_NUMA_BALANCING: u32 = 8192; +pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_F_NODE: u32 = 1; +pub const MPOL_F_ADDR: u32 = 2; +pub const MPOL_F_MEMS_ALLOWED: u32 = 4; +pub const MPOL_MF_STRICT: u32 = 1; +pub const MPOL_MF_MOVE: u32 = 2; +pub const MPOL_MF_MOVE_ALL: u32 = 4; +pub const MPOL_MF_LAZY: u32 = 8; +pub const MPOL_MF_INTERNAL: u32 = 16; +pub const MPOL_MF_VALID: u32 = 7; +pub const MPOL_F_SHARED: u32 = 1; +pub const MPOL_F_MOF: u32 = 8; +pub const MPOL_F_MORON: u32 = 16; +pub const RECLAIM_ZONE: u32 = 1; +pub const RECLAIM_WRITE: u32 = 2; +pub const RECLAIM_UNMAP: u32 = 4; +pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; +pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; +pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; +pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; +pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; +pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; +pub const MPOL_WEIGHTED_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_WEIGHTED_INTERLEAVE; +pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +MPOL_DEFAULT = 0, +MPOL_PREFERRED = 1, +MPOL_BIND = 2, +MPOL_INTERLEAVE = 3, +MPOL_LOCAL = 4, +MPOL_PREFERRED_MANY = 5, +MPOL_WEIGHTED_INTERLEAVE = 6, +MPOL_MAX = 7, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/net.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/net.rs new file mode 100644 index 0000000000000000000000000000000000000000..76956e30b01b27f3753db95b4feb3efedf67ede7 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/net.rs @@ -0,0 +1,3491 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_sa_family_t = crate::ctypes::c_ushort; +pub type socklen_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] +pub struct __BindgenBitfieldUnit { +storage: Storage, +} +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +pub struct __BindgenUnionField(::core::marker::PhantomData); +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __kernel_sockaddr_storage { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { +pub ss_family: __kernel_sa_family_t, +pub __data: [crate::ctypes::c_char; 126usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct in_addr { +pub s_addr: __be32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_mreq { +pub imr_multiaddr: in_addr, +pub imr_interface: in_addr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_mreqn { +pub imr_multiaddr: in_addr, +pub imr_address: in_addr, +pub imr_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_mreq_source { +pub imr_multiaddr: __be32, +pub imr_interface: __be32, +pub imr_sourceaddr: __be32, +} +#[repr(C)] +pub struct ip_msfilter { +pub imsf_multiaddr: __be32, +pub imsf_interface: __be32, +pub imsf_fmode: __u32, +pub imsf_numsrc: __u32, +pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, +} +#[repr(C)] +pub struct ip_msfilter__bindgen_ty_1 { +pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, +pub __bindgen_anon_1: __BindgenUnionField, +pub bindgen_union_field: u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { +pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, +pub imsf_slist_flex: __IncompleteArrayField<__be32>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct group_req { +pub gr_interface: __u32, +pub gr_group: __kernel_sockaddr_storage, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct group_source_req { +pub gsr_interface: __u32, +pub gsr_group: __kernel_sockaddr_storage, +pub gsr_source: __kernel_sockaddr_storage, +} +#[repr(C)] +pub struct group_filter { +pub __bindgen_anon_1: group_filter__bindgen_ty_1, +} +#[repr(C)] +pub struct group_filter__bindgen_ty_1 { +pub __bindgen_anon_1: __BindgenUnionField, +pub __bindgen_anon_2: __BindgenUnionField, +pub bindgen_union_field: [u64; 34usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { +pub gf_interface_aux: __u32, +pub gf_group_aux: __kernel_sockaddr_storage, +pub gf_fmode_aux: __u32, +pub gf_numsrc_aux: __u32, +pub gf_slist: [__kernel_sockaddr_storage; 1usize], +} +#[repr(C)] +pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { +pub gf_interface: __u32, +pub gf_group: __kernel_sockaddr_storage, +pub gf_fmode: __u32, +pub gf_numsrc: __u32, +pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct in_pktinfo { +pub ipi_ifindex: crate::ctypes::c_int, +pub ipi_spec_dst: in_addr, +pub ipi_addr: in_addr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_in { +pub sin_family: __kernel_sa_family_t, +pub sin_port: __be16, +pub sin_addr: in_addr, +pub __pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct iphdr { +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, +pub tos: __u8, +pub tot_len: __be16, +pub id: __be16, +pub frag_off: __be16, +pub ttl: __u8, +pub protocol: __u8, +pub check: __sum16, +pub __bindgen_anon_1: iphdr__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { +pub saddr: __be32, +pub daddr: __be32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { +pub saddr: __be32, +pub daddr: __be32, +} +#[repr(C)] +#[derive(Debug)] +pub struct ip_auth_hdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +pub reserved: __be16, +pub spi: __be32, +pub seq_no: __be32, +pub auth_data: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug)] +pub struct ip_esp_hdr { +pub spi: __be32, +pub seq_no: __be32, +pub enc_data: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_comp_hdr { +pub nexthdr: __u8, +pub flags: __u8, +pub cpi: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_beet_phdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +pub padlen: __u8, +pub reserved: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_iptfs_hdr { +pub subtype: __u8, +pub flags: __u8, +pub block_offset: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_iptfs_cc_hdr { +pub subtype: __u8, +pub flags: __u8, +pub block_offset: __be16, +pub loss_rate: __be32, +pub rtt_adelay_xdelay: __be64, +pub tval: __be32, +pub techo: __be32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_addr { +pub in6_u: in6_addr__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sockaddr_in6 { +pub sin6_family: crate::ctypes::c_ushort, +pub sin6_port: __be16, +pub sin6_flowinfo: __be32, +pub sin6_addr: in6_addr, +pub sin6_scope_id: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6_mreq { +pub ipv6mr_multiaddr: in6_addr, +pub ipv6mr_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_flowlabel_req { +pub flr_dst: in6_addr, +pub flr_label: __be32, +pub flr_action: __u8, +pub flr_share: __u8, +pub flr_flags: __u16, +pub flr_expires: __u16, +pub flr_linger: __u16, +pub __flr_pad: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_pktinfo { +pub ipi6_addr: in6_addr, +pub ipi6_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ip6_mtuinfo { +pub ip6m_addr: sockaddr_in6, +pub ip6m_mtu: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_ifreq { +pub ifr6_addr: in6_addr, +pub ifr6_prefixlen: __u32, +pub ifr6_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ipv6_rt_hdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +pub type_: __u8, +pub segments_left: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct ipv6_opt_hdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +} +#[repr(C)] +pub struct rt0_hdr { +pub rt_hdr: ipv6_rt_hdr, +pub reserved: __u32, +pub addr: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct rt2_hdr { +pub rt_hdr: ipv6_rt_hdr, +pub reserved: __u32, +pub addr: in6_addr, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct ipv6_destopt_hao { +pub type_: __u8, +pub length: __u8, +pub addr: in6_addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6hdr { +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, +pub flow_lbl: [__u8; 3usize], +pub payload_len: __be16, +pub nexthdr: __u8, +pub hop_limit: __u8, +pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { +pub saddr: in6_addr, +pub daddr: in6_addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { +pub saddr: in6_addr, +pub daddr: in6_addr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcphdr { +pub source: __be16, +pub dest: __be16, +pub seq: __be32, +pub ack_seq: __be32, +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +pub window: __be16, +pub check: __sum16, +pub urg_ptr: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_repair_opt { +pub opt_code: __u32, +pub opt_val: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_repair_window { +pub snd_wl1: __u32, +pub snd_wnd: __u32, +pub max_window: __u32, +pub rcv_wnd: __u32, +pub rcv_wup: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_info { +pub tcpi_state: __u8, +pub tcpi_ca_state: __u8, +pub tcpi_retransmits: __u8, +pub tcpi_probes: __u8, +pub tcpi_backoff: __u8, +pub tcpi_options: __u8, +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +pub tcpi_rto: __u32, +pub tcpi_ato: __u32, +pub tcpi_snd_mss: __u32, +pub tcpi_rcv_mss: __u32, +pub tcpi_unacked: __u32, +pub tcpi_sacked: __u32, +pub tcpi_lost: __u32, +pub tcpi_retrans: __u32, +pub tcpi_fackets: __u32, +pub tcpi_last_data_sent: __u32, +pub tcpi_last_ack_sent: __u32, +pub tcpi_last_data_recv: __u32, +pub tcpi_last_ack_recv: __u32, +pub tcpi_pmtu: __u32, +pub tcpi_rcv_ssthresh: __u32, +pub tcpi_rtt: __u32, +pub tcpi_rttvar: __u32, +pub tcpi_snd_ssthresh: __u32, +pub tcpi_snd_cwnd: __u32, +pub tcpi_advmss: __u32, +pub tcpi_reordering: __u32, +pub tcpi_rcv_rtt: __u32, +pub tcpi_rcv_space: __u32, +pub tcpi_total_retrans: __u32, +pub tcpi_pacing_rate: __u64, +pub tcpi_max_pacing_rate: __u64, +pub tcpi_bytes_acked: __u64, +pub tcpi_bytes_received: __u64, +pub tcpi_segs_out: __u32, +pub tcpi_segs_in: __u32, +pub tcpi_notsent_bytes: __u32, +pub tcpi_min_rtt: __u32, +pub tcpi_data_segs_in: __u32, +pub tcpi_data_segs_out: __u32, +pub tcpi_delivery_rate: __u64, +pub tcpi_busy_time: __u64, +pub tcpi_rwnd_limited: __u64, +pub tcpi_sndbuf_limited: __u64, +pub tcpi_delivered: __u32, +pub tcpi_delivered_ce: __u32, +pub tcpi_bytes_sent: __u64, +pub tcpi_bytes_retrans: __u64, +pub tcpi_dsack_dups: __u32, +pub tcpi_reord_seen: __u32, +pub tcpi_rcv_ooopack: __u32, +pub tcpi_snd_wnd: __u32, +pub tcpi_rcv_wnd: __u32, +pub tcpi_rehash: __u32, +pub tcpi_total_rto: __u16, +pub tcpi_total_rto_recoveries: __u16, +pub tcpi_total_rto_time: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tcp_md5sig { +pub tcpm_addr: __kernel_sockaddr_storage, +pub tcpm_flags: __u8, +pub tcpm_prefixlen: __u8, +pub tcpm_keylen: __u16, +pub tcpm_ifindex: crate::ctypes::c_int, +pub tcpm_key: [__u8; 80usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_diag_md5sig { +pub tcpm_family: __u8, +pub tcpm_prefixlen: __u8, +pub tcpm_keylen: __u16, +pub tcpm_addr: [__be32; 4usize], +pub tcpm_key: [__u8; 80usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tcp_ao_add { +pub addr: __kernel_sockaddr_storage, +pub alg_name: [crate::ctypes::c_char; 64usize], +pub ifindex: __s32, +pub _bitfield_align_1: [u32; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +pub reserved2: __u16, +pub prefix: __u8, +pub sndid: __u8, +pub rcvid: __u8, +pub maclen: __u8, +pub keyflags: __u8, +pub keylen: __u8, +pub key: [__u8; 80usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tcp_ao_del { +pub addr: __kernel_sockaddr_storage, +pub ifindex: __s32, +pub _bitfield_align_1: [u32; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +pub reserved2: __u16, +pub prefix: __u8, +pub sndid: __u8, +pub rcvid: __u8, +pub current_key: __u8, +pub rnext: __u8, +pub keyflags: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_ao_info_opt { +pub _bitfield_align_1: [u32; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +pub reserved2: __u16, +pub current_key: __u8, +pub rnext: __u8, +pub pkt_good: __u64, +pub pkt_bad: __u64, +pub pkt_key_not_found: __u64, +pub pkt_ao_required: __u64, +pub pkt_dropped_icmp: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tcp_ao_getsockopt { +pub addr: __kernel_sockaddr_storage, +pub alg_name: [crate::ctypes::c_char; 64usize], +pub key: [__u8; 80usize], +pub nkeys: __u32, +pub _bitfield_align_1: [u16; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +pub sndid: __u8, +pub rcvid: __u8, +pub prefix: __u8, +pub maclen: __u8, +pub keyflags: __u8, +pub keylen: __u8, +pub ifindex: __s32, +pub pkt_good: __u64, +pub pkt_bad: __u64, +} +#[repr(C)] +#[repr(align(8))] +#[derive(Debug, Copy, Clone)] +pub struct tcp_ao_repair { +pub snt_isn: __be32, +pub rcv_isn: __be32, +pub snd_sne: __u32, +pub rcv_sne: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_zerocopy_receive { +pub address: __u64, +pub length: __u32, +pub recv_skip_hint: __u32, +pub inq: __u32, +pub err: __s32, +pub copybuf_address: __u64, +pub copybuf_len: __s32, +pub flags: __u32, +pub msg_control: __u64, +pub msg_controllen: __u64, +pub msg_flags: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_un { +pub sun_family: __kernel_sa_family_t, +pub sun_path: [crate::ctypes::c_char; 108usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sockaddr { +pub __storage: __kernel_sockaddr_storage, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sync_serial_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct te1_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +pub slot_map: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct raw_hdlc_proto { +pub encoding: crate::ctypes::c_ushort, +pub parity: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto { +pub t391: crate::ctypes::c_uint, +pub t392: crate::ctypes::c_uint, +pub n391: crate::ctypes::c_uint, +pub n392: crate::ctypes::c_uint, +pub n393: crate::ctypes::c_uint, +pub lmi: crate::ctypes::c_ushort, +pub dce: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc { +pub dlci: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc_info { +pub dlci: crate::ctypes::c_uint, +pub master: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cisco_proto { +pub interval: crate::ctypes::c_uint, +pub timeout: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct x25_hdlc_proto { +pub dce: crate::ctypes::c_ushort, +pub modulo: crate::ctypes::c_uint, +pub window: crate::ctypes::c_uint, +pub t1: crate::ctypes::c_uint, +pub t2: crate::ctypes::c_uint, +pub n2: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifmap { +pub mem_start: crate::ctypes::c_ulong, +pub mem_end: crate::ctypes::c_ulong, +pub base_addr: crate::ctypes::c_ushort, +pub irq: crate::ctypes::c_uchar, +pub dma: crate::ctypes::c_uchar, +pub port: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct if_settings { +pub type_: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +pub ifs_ifsu: if_settings__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifreq { +pub ifr_ifrn: ifreq__bindgen_ty_1, +pub ifr_ifru: ifreq__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifconf { +pub ifc_len: crate::ctypes::c_int, +pub ifc_ifcu: ifconf__bindgen_ty_1, +} +#[repr(C)] +pub struct xt_entry_match { +pub u: xt_entry_match__bindgen_ty_1, +pub data: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 { +pub match_size: __u16, +pub name: [crate::ctypes::c_char; 29usize], +pub revision: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 { +pub match_size: __u16, +pub match_: *mut xt_match, +} +#[repr(C)] +pub struct xt_entry_target { +pub u: xt_entry_target__bindgen_ty_1, +pub data: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 { +pub target_size: __u16, +pub name: [crate::ctypes::c_char; 29usize], +pub revision: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 { +pub target_size: __u16, +pub target: *mut xt_target, +} +#[repr(C)] +pub struct xt_standard_target { +pub target: xt_entry_target, +pub verdict: crate::ctypes::c_int, +} +#[repr(C)] +pub struct xt_error_target { +pub target: xt_entry_target, +pub errorname: [crate::ctypes::c_char; 30usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_get_revision { +pub name: [crate::ctypes::c_char; 29usize], +pub revision: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _xt_align { +pub u8_: __u8, +pub u16_: __u16, +pub u32_: __u32, +pub u64_: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_counters { +pub pcnt: __u64, +pub bcnt: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct xt_counters_info { +pub name: [crate::ctypes::c_char; 32usize], +pub num_counters: crate::ctypes::c_uint, +pub counters: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_tcp { +pub spts: [__u16; 2usize], +pub dpts: [__u16; 2usize], +pub option: __u8, +pub flg_mask: __u8, +pub flg_cmp: __u8, +pub invflags: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_udp { +pub spts: [__u16; 2usize], +pub dpts: [__u16; 2usize], +pub invflags: __u8, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ip6t_ip6 { +pub src: in6_addr, +pub dst: in6_addr, +pub smsk: in6_addr, +pub dmsk: in6_addr, +pub iniface: [crate::ctypes::c_char; 16usize], +pub outiface: [crate::ctypes::c_char; 16usize], +pub iniface_mask: [crate::ctypes::c_uchar; 16usize], +pub outiface_mask: [crate::ctypes::c_uchar; 16usize], +pub proto: __u16, +pub tos: __u8, +pub flags: __u8, +pub invflags: __u8, +} +#[repr(C)] +pub struct ip6t_entry { +pub ipv6: ip6t_ip6, +pub nfcache: crate::ctypes::c_uint, +pub target_offset: __u16, +pub next_offset: __u16, +pub comefrom: crate::ctypes::c_uint, +pub counters: xt_counters, +pub elems: __IncompleteArrayField, +} +#[repr(C)] +pub struct ip6t_standard { +pub entry: ip6t_entry, +pub target: xt_standard_target, +} +#[repr(C)] +pub struct ip6t_error { +pub entry: ip6t_entry, +pub target: xt_error_target, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip6t_icmp { +pub type_: __u8, +pub code: [__u8; 2usize], +pub invflags: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip6t_getinfo { +pub name: [crate::ctypes::c_char; 32usize], +pub valid_hooks: crate::ctypes::c_uint, +pub hook_entry: [crate::ctypes::c_uint; 5usize], +pub underflow: [crate::ctypes::c_uint; 5usize], +pub num_entries: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +} +#[repr(C)] +pub struct ip6t_replace { +pub name: [crate::ctypes::c_char; 32usize], +pub valid_hooks: crate::ctypes::c_uint, +pub num_entries: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +pub hook_entry: [crate::ctypes::c_uint; 5usize], +pub underflow: [crate::ctypes::c_uint; 5usize], +pub num_counters: crate::ctypes::c_uint, +pub counters: *mut xt_counters, +pub entries: __IncompleteArrayField, +} +#[repr(C)] +pub struct ip6t_get_entries { +pub name: [crate::ctypes::c_char; 32usize], +pub size: crate::ctypes::c_uint, +pub entrytable: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct so_timestamping { +pub flags: crate::ctypes::c_int, +pub bind_phc: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hwtstamp_config { +pub flags: crate::ctypes::c_int, +pub tx_type: crate::ctypes::c_int, +pub rx_filter: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct scm_ts_pktinfo { +pub if_index: __u32, +pub pkt_length: __u32, +pub reserved: [__u32; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sock_txtime { +pub clockid: __kernel_clockid_t, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct linger { +pub l_onoff: crate::ctypes::c_int, +pub l_linger: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct msghdr { +pub msg_name: *mut crate::ctypes::c_void, +pub msg_namelen: crate::ctypes::c_int, +pub msg_iov: *mut iovec, +pub msg_iovlen: usize, +pub msg_control: *mut crate::ctypes::c_void, +pub msg_controllen: usize, +pub msg_flags: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cmsghdr { +pub cmsg_len: usize, +pub cmsg_level: crate::ctypes::c_int, +pub cmsg_type: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ucred { +pub pid: __u32, +pub uid: __u32, +pub gid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mmsghdr { +pub msg_hdr: msghdr, +pub msg_len: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_match { +pub _address: u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_target { +pub _address: u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iovec { +pub _address: u8, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _K_SS_MAXSIZE: u32 = 128; +pub const SOCK_SNDBUF_LOCK: u32 = 1; +pub const SOCK_RCVBUF_LOCK: u32 = 2; +pub const SOCK_BUF_LOCK_MASK: u32 = 3; +pub const SOCK_TXREHASH_DEFAULT: u32 = 255; +pub const SOCK_TXREHASH_DISABLED: u32 = 0; +pub const SOCK_TXREHASH_ENABLED: u32 = 1; +pub const IP_TOS: u32 = 1; +pub const IP_TTL: u32 = 2; +pub const IP_HDRINCL: u32 = 3; +pub const IP_OPTIONS: u32 = 4; +pub const IP_ROUTER_ALERT: u32 = 5; +pub const IP_RECVOPTS: u32 = 6; +pub const IP_RETOPTS: u32 = 7; +pub const IP_PKTINFO: u32 = 8; +pub const IP_PKTOPTIONS: u32 = 9; +pub const IP_MTU_DISCOVER: u32 = 10; +pub const IP_RECVERR: u32 = 11; +pub const IP_RECVTTL: u32 = 12; +pub const IP_RECVTOS: u32 = 13; +pub const IP_MTU: u32 = 14; +pub const IP_FREEBIND: u32 = 15; +pub const IP_IPSEC_POLICY: u32 = 16; +pub const IP_XFRM_POLICY: u32 = 17; +pub const IP_PASSSEC: u32 = 18; +pub const IP_TRANSPARENT: u32 = 19; +pub const IP_RECVRETOPTS: u32 = 7; +pub const IP_ORIGDSTADDR: u32 = 20; +pub const IP_RECVORIGDSTADDR: u32 = 20; +pub const IP_MINTTL: u32 = 21; +pub const IP_NODEFRAG: u32 = 22; +pub const IP_CHECKSUM: u32 = 23; +pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; +pub const IP_RECVFRAGSIZE: u32 = 25; +pub const IP_RECVERR_RFC4884: u32 = 26; +pub const IP_PMTUDISC_DONT: u32 = 0; +pub const IP_PMTUDISC_WANT: u32 = 1; +pub const IP_PMTUDISC_DO: u32 = 2; +pub const IP_PMTUDISC_PROBE: u32 = 3; +pub const IP_PMTUDISC_INTERFACE: u32 = 4; +pub const IP_PMTUDISC_OMIT: u32 = 5; +pub const IP_MULTICAST_IF: u32 = 32; +pub const IP_MULTICAST_TTL: u32 = 33; +pub const IP_MULTICAST_LOOP: u32 = 34; +pub const IP_ADD_MEMBERSHIP: u32 = 35; +pub const IP_DROP_MEMBERSHIP: u32 = 36; +pub const IP_UNBLOCK_SOURCE: u32 = 37; +pub const IP_BLOCK_SOURCE: u32 = 38; +pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; +pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; +pub const IP_MSFILTER: u32 = 41; +pub const MCAST_JOIN_GROUP: u32 = 42; +pub const MCAST_BLOCK_SOURCE: u32 = 43; +pub const MCAST_UNBLOCK_SOURCE: u32 = 44; +pub const MCAST_LEAVE_GROUP: u32 = 45; +pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; +pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; +pub const MCAST_MSFILTER: u32 = 48; +pub const IP_MULTICAST_ALL: u32 = 49; +pub const IP_UNICAST_IF: u32 = 50; +pub const IP_LOCAL_PORT_RANGE: u32 = 51; +pub const IP_PROTOCOL: u32 = 52; +pub const MCAST_EXCLUDE: u32 = 0; +pub const MCAST_INCLUDE: u32 = 1; +pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; +pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; +pub const __SOCK_SIZE__: u32 = 16; +pub const IN_CLASSA_NET: u32 = 4278190080; +pub const IN_CLASSA_NSHIFT: u32 = 24; +pub const IN_CLASSA_HOST: u32 = 16777215; +pub const IN_CLASSA_MAX: u32 = 128; +pub const IN_CLASSB_NET: u32 = 4294901760; +pub const IN_CLASSB_NSHIFT: u32 = 16; +pub const IN_CLASSB_HOST: u32 = 65535; +pub const IN_CLASSB_MAX: u32 = 65536; +pub const IN_CLASSC_NET: u32 = 4294967040; +pub const IN_CLASSC_NSHIFT: u32 = 8; +pub const IN_CLASSC_HOST: u32 = 255; +pub const IN_MULTICAST_NET: u32 = 3758096384; +pub const IN_CLASSE_NET: u32 = 4294967295; +pub const IN_CLASSE_NSHIFT: u32 = 0; +pub const IN_LOOPBACKNET: u32 = 127; +pub const INADDR_LOOPBACK: u32 = 2130706433; +pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; +pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; +pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; +pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; +pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; +pub const __LITTLE_ENDIAN: u32 = 1234; +pub const IPTOS_TOS_MASK: u32 = 30; +pub const IPTOS_LOWDELAY: u32 = 16; +pub const IPTOS_THROUGHPUT: u32 = 8; +pub const IPTOS_RELIABILITY: u32 = 4; +pub const IPTOS_MINCOST: u32 = 2; +pub const IPTOS_PREC_MASK: u32 = 224; +pub const IPTOS_PREC_NETCONTROL: u32 = 224; +pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; +pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; +pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; +pub const IPTOS_PREC_FLASH: u32 = 96; +pub const IPTOS_PREC_IMMEDIATE: u32 = 64; +pub const IPTOS_PREC_PRIORITY: u32 = 32; +pub const IPTOS_PREC_ROUTINE: u32 = 0; +pub const IPOPT_COPY: u32 = 128; +pub const IPOPT_CLASS_MASK: u32 = 96; +pub const IPOPT_NUMBER_MASK: u32 = 31; +pub const IPOPT_CONTROL: u32 = 0; +pub const IPOPT_RESERVED1: u32 = 32; +pub const IPOPT_MEASUREMENT: u32 = 64; +pub const IPOPT_RESERVED2: u32 = 96; +pub const IPOPT_END: u32 = 0; +pub const IPOPT_NOOP: u32 = 1; +pub const IPOPT_SEC: u32 = 130; +pub const IPOPT_LSRR: u32 = 131; +pub const IPOPT_TIMESTAMP: u32 = 68; +pub const IPOPT_CIPSO: u32 = 134; +pub const IPOPT_RR: u32 = 7; +pub const IPOPT_SID: u32 = 136; +pub const IPOPT_SSRR: u32 = 137; +pub const IPOPT_RA: u32 = 148; +pub const IPVERSION: u32 = 4; +pub const MAXTTL: u32 = 255; +pub const IPDEFTTL: u32 = 64; +pub const IPOPT_OPTVAL: u32 = 0; +pub const IPOPT_OLEN: u32 = 1; +pub const IPOPT_OFFSET: u32 = 2; +pub const IPOPT_MINOFF: u32 = 4; +pub const MAX_IPOPTLEN: u32 = 40; +pub const IPOPT_NOP: u32 = 1; +pub const IPOPT_EOL: u32 = 0; +pub const IPOPT_TS: u32 = 68; +pub const IPOPT_TS_TSONLY: u32 = 0; +pub const IPOPT_TS_TSANDADDR: u32 = 1; +pub const IPOPT_TS_PRESPEC: u32 = 3; +pub const IPV4_BEET_PHMAXLEN: u32 = 8; +pub const IPV6_FL_A_GET: u32 = 0; +pub const IPV6_FL_A_PUT: u32 = 1; +pub const IPV6_FL_A_RENEW: u32 = 2; +pub const IPV6_FL_F_CREATE: u32 = 1; +pub const IPV6_FL_F_EXCL: u32 = 2; +pub const IPV6_FL_F_REFLECT: u32 = 4; +pub const IPV6_FL_F_REMOTE: u32 = 8; +pub const IPV6_FL_S_NONE: u32 = 0; +pub const IPV6_FL_S_EXCL: u32 = 1; +pub const IPV6_FL_S_PROCESS: u32 = 2; +pub const IPV6_FL_S_USER: u32 = 3; +pub const IPV6_FL_S_ANY: u32 = 255; +pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; +pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; +pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; +pub const IPV6_PRIORITY_FILLER: u32 = 256; +pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; +pub const IPV6_PRIORITY_RESERVED1: u32 = 768; +pub const IPV6_PRIORITY_BULK: u32 = 1024; +pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; +pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; +pub const IPV6_PRIORITY_CONTROL: u32 = 1792; +pub const IPV6_PRIORITY_8: u32 = 2048; +pub const IPV6_PRIORITY_9: u32 = 2304; +pub const IPV6_PRIORITY_10: u32 = 2560; +pub const IPV6_PRIORITY_11: u32 = 2816; +pub const IPV6_PRIORITY_12: u32 = 3072; +pub const IPV6_PRIORITY_13: u32 = 3328; +pub const IPV6_PRIORITY_14: u32 = 3584; +pub const IPV6_PRIORITY_15: u32 = 3840; +pub const IPPROTO_HOPOPTS: u32 = 0; +pub const IPPROTO_ROUTING: u32 = 43; +pub const IPPROTO_FRAGMENT: u32 = 44; +pub const IPPROTO_ICMPV6: u32 = 58; +pub const IPPROTO_NONE: u32 = 59; +pub const IPPROTO_DSTOPTS: u32 = 60; +pub const IPPROTO_MH: u32 = 135; +pub const IPV6_TLV_PAD1: u32 = 0; +pub const IPV6_TLV_PADN: u32 = 1; +pub const IPV6_TLV_ROUTERALERT: u32 = 5; +pub const IPV6_TLV_CALIPSO: u32 = 7; +pub const IPV6_TLV_IOAM: u32 = 49; +pub const IPV6_TLV_JUMBO: u32 = 194; +pub const IPV6_TLV_HAO: u32 = 201; +pub const IPV6_ADDRFORM: u32 = 1; +pub const IPV6_2292PKTINFO: u32 = 2; +pub const IPV6_2292HOPOPTS: u32 = 3; +pub const IPV6_2292DSTOPTS: u32 = 4; +pub const IPV6_2292RTHDR: u32 = 5; +pub const IPV6_2292PKTOPTIONS: u32 = 6; +pub const IPV6_CHECKSUM: u32 = 7; +pub const IPV6_2292HOPLIMIT: u32 = 8; +pub const IPV6_NEXTHOP: u32 = 9; +pub const IPV6_AUTHHDR: u32 = 10; +pub const IPV6_FLOWINFO: u32 = 11; +pub const IPV6_UNICAST_HOPS: u32 = 16; +pub const IPV6_MULTICAST_IF: u32 = 17; +pub const IPV6_MULTICAST_HOPS: u32 = 18; +pub const IPV6_MULTICAST_LOOP: u32 = 19; +pub const IPV6_ADD_MEMBERSHIP: u32 = 20; +pub const IPV6_DROP_MEMBERSHIP: u32 = 21; +pub const IPV6_ROUTER_ALERT: u32 = 22; +pub const IPV6_MTU_DISCOVER: u32 = 23; +pub const IPV6_MTU: u32 = 24; +pub const IPV6_RECVERR: u32 = 25; +pub const IPV6_V6ONLY: u32 = 26; +pub const IPV6_JOIN_ANYCAST: u32 = 27; +pub const IPV6_LEAVE_ANYCAST: u32 = 28; +pub const IPV6_MULTICAST_ALL: u32 = 29; +pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; +pub const IPV6_RECVERR_RFC4884: u32 = 31; +pub const IPV6_PMTUDISC_DONT: u32 = 0; +pub const IPV6_PMTUDISC_WANT: u32 = 1; +pub const IPV6_PMTUDISC_DO: u32 = 2; +pub const IPV6_PMTUDISC_PROBE: u32 = 3; +pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; +pub const IPV6_PMTUDISC_OMIT: u32 = 5; +pub const IPV6_FLOWLABEL_MGR: u32 = 32; +pub const IPV6_FLOWINFO_SEND: u32 = 33; +pub const IPV6_IPSEC_POLICY: u32 = 34; +pub const IPV6_XFRM_POLICY: u32 = 35; +pub const IPV6_HDRINCL: u32 = 36; +pub const IPV6_RECVPKTINFO: u32 = 49; +pub const IPV6_PKTINFO: u32 = 50; +pub const IPV6_RECVHOPLIMIT: u32 = 51; +pub const IPV6_HOPLIMIT: u32 = 52; +pub const IPV6_RECVHOPOPTS: u32 = 53; +pub const IPV6_HOPOPTS: u32 = 54; +pub const IPV6_RTHDRDSTOPTS: u32 = 55; +pub const IPV6_RECVRTHDR: u32 = 56; +pub const IPV6_RTHDR: u32 = 57; +pub const IPV6_RECVDSTOPTS: u32 = 58; +pub const IPV6_DSTOPTS: u32 = 59; +pub const IPV6_RECVPATHMTU: u32 = 60; +pub const IPV6_PATHMTU: u32 = 61; +pub const IPV6_DONTFRAG: u32 = 62; +pub const IPV6_RECVTCLASS: u32 = 66; +pub const IPV6_TCLASS: u32 = 67; +pub const IPV6_AUTOFLOWLABEL: u32 = 70; +pub const IPV6_ADDR_PREFERENCES: u32 = 72; +pub const IPV6_PREFER_SRC_TMP: u32 = 1; +pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; +pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; +pub const IPV6_PREFER_SRC_COA: u32 = 4; +pub const IPV6_PREFER_SRC_HOME: u32 = 1024; +pub const IPV6_PREFER_SRC_CGA: u32 = 8; +pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; +pub const IPV6_MINHOPCOUNT: u32 = 73; +pub const IPV6_ORIGDSTADDR: u32 = 74; +pub const IPV6_RECVORIGDSTADDR: u32 = 74; +pub const IPV6_TRANSPARENT: u32 = 75; +pub const IPV6_UNICAST_IF: u32 = 76; +pub const IPV6_RECVFRAGSIZE: u32 = 77; +pub const IPV6_FREEBIND: u32 = 78; +pub const IPV6_MIN_MTU: u32 = 1280; +pub const IPV6_SRCRT_STRICT: u32 = 1; +pub const IPV6_SRCRT_TYPE_0: u32 = 0; +pub const IPV6_SRCRT_TYPE_2: u32 = 2; +pub const IPV6_SRCRT_TYPE_3: u32 = 3; +pub const IPV6_SRCRT_TYPE_4: u32 = 4; +pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; +pub const SIOCGSTAMP_OLD: u32 = 35078; +pub const SIOCGSTAMPNS_OLD: u32 = 35079; +pub const SOL_SOCKET: u32 = 1; +pub const SO_DEBUG: u32 = 1; +pub const SO_REUSEADDR: u32 = 2; +pub const SO_TYPE: u32 = 3; +pub const SO_ERROR: u32 = 4; +pub const SO_DONTROUTE: u32 = 5; +pub const SO_BROADCAST: u32 = 6; +pub const SO_SNDBUF: u32 = 7; +pub const SO_RCVBUF: u32 = 8; +pub const SO_SNDBUFFORCE: u32 = 32; +pub const SO_RCVBUFFORCE: u32 = 33; +pub const SO_KEEPALIVE: u32 = 9; +pub const SO_OOBINLINE: u32 = 10; +pub const SO_NO_CHECK: u32 = 11; +pub const SO_PRIORITY: u32 = 12; +pub const SO_LINGER: u32 = 13; +pub const SO_BSDCOMPAT: u32 = 14; +pub const SO_REUSEPORT: u32 = 15; +pub const SO_PASSCRED: u32 = 16; +pub const SO_PEERCRED: u32 = 17; +pub const SO_RCVLOWAT: u32 = 18; +pub const SO_SNDLOWAT: u32 = 19; +pub const SO_RCVTIMEO_OLD: u32 = 20; +pub const SO_SNDTIMEO_OLD: u32 = 21; +pub const SO_SECURITY_AUTHENTICATION: u32 = 22; +pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; +pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; +pub const SO_BINDTODEVICE: u32 = 25; +pub const SO_ATTACH_FILTER: u32 = 26; +pub const SO_DETACH_FILTER: u32 = 27; +pub const SO_GET_FILTER: u32 = 26; +pub const SO_PEERNAME: u32 = 28; +pub const SO_ACCEPTCONN: u32 = 30; +pub const SO_PEERSEC: u32 = 31; +pub const SO_PASSSEC: u32 = 34; +pub const SO_MARK: u32 = 36; +pub const SO_PROTOCOL: u32 = 38; +pub const SO_DOMAIN: u32 = 39; +pub const SO_RXQ_OVFL: u32 = 40; +pub const SO_WIFI_STATUS: u32 = 41; +pub const SCM_WIFI_STATUS: u32 = 41; +pub const SO_PEEK_OFF: u32 = 42; +pub const SO_NOFCS: u32 = 43; +pub const SO_LOCK_FILTER: u32 = 44; +pub const SO_SELECT_ERR_QUEUE: u32 = 45; +pub const SO_BUSY_POLL: u32 = 46; +pub const SO_MAX_PACING_RATE: u32 = 47; +pub const SO_BPF_EXTENSIONS: u32 = 48; +pub const SO_INCOMING_CPU: u32 = 49; +pub const SO_ATTACH_BPF: u32 = 50; +pub const SO_DETACH_BPF: u32 = 27; +pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; +pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; +pub const SO_CNX_ADVICE: u32 = 53; +pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; +pub const SO_MEMINFO: u32 = 55; +pub const SO_INCOMING_NAPI_ID: u32 = 56; +pub const SO_COOKIE: u32 = 57; +pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; +pub const SO_PEERGROUPS: u32 = 59; +pub const SO_ZEROCOPY: u32 = 60; +pub const SO_TXTIME: u32 = 61; +pub const SCM_TXTIME: u32 = 61; +pub const SO_BINDTOIFINDEX: u32 = 62; +pub const SO_TIMESTAMP_OLD: u32 = 29; +pub const SO_TIMESTAMPNS_OLD: u32 = 35; +pub const SO_TIMESTAMPING_OLD: u32 = 37; +pub const SO_TIMESTAMP_NEW: u32 = 63; +pub const SO_TIMESTAMPNS_NEW: u32 = 64; +pub const SO_TIMESTAMPING_NEW: u32 = 65; +pub const SO_RCVTIMEO_NEW: u32 = 66; +pub const SO_SNDTIMEO_NEW: u32 = 67; +pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; +pub const SO_PREFER_BUSY_POLL: u32 = 69; +pub const SO_BUSY_POLL_BUDGET: u32 = 70; +pub const SO_NETNS_COOKIE: u32 = 71; +pub const SO_BUF_LOCK: u32 = 72; +pub const SO_RESERVE_MEM: u32 = 73; +pub const SO_TXREHASH: u32 = 74; +pub const SO_RCVMARK: u32 = 75; +pub const SO_PASSPIDFD: u32 = 76; +pub const SO_PEERPIDFD: u32 = 77; +pub const SO_DEVMEM_LINEAR: u32 = 78; +pub const SCM_DEVMEM_LINEAR: u32 = 78; +pub const SO_DEVMEM_DMABUF: u32 = 79; +pub const SCM_DEVMEM_DMABUF: u32 = 79; +pub const SO_DEVMEM_DONTNEED: u32 = 80; +pub const SCM_TS_OPT_ID: u32 = 81; +pub const SO_RCVPRIORITY: u32 = 82; +pub const SO_PASSRIGHTS: u32 = 83; +pub const SO_TIMESTAMP: u32 = 29; +pub const SO_TIMESTAMPNS: u32 = 35; +pub const SO_TIMESTAMPING: u32 = 37; +pub const SO_RCVTIMEO: u32 = 20; +pub const SO_SNDTIMEO: u32 = 21; +pub const SCM_TIMESTAMP: u32 = 29; +pub const SCM_TIMESTAMPNS: u32 = 35; +pub const SCM_TIMESTAMPING: u32 = 37; +pub const SYS_SOCKET: u32 = 1; +pub const SYS_BIND: u32 = 2; +pub const SYS_CONNECT: u32 = 3; +pub const SYS_LISTEN: u32 = 4; +pub const SYS_ACCEPT: u32 = 5; +pub const SYS_GETSOCKNAME: u32 = 6; +pub const SYS_GETPEERNAME: u32 = 7; +pub const SYS_SOCKETPAIR: u32 = 8; +pub const SYS_SEND: u32 = 9; +pub const SYS_RECV: u32 = 10; +pub const SYS_SENDTO: u32 = 11; +pub const SYS_RECVFROM: u32 = 12; +pub const SYS_SHUTDOWN: u32 = 13; +pub const SYS_SETSOCKOPT: u32 = 14; +pub const SYS_GETSOCKOPT: u32 = 15; +pub const SYS_SENDMSG: u32 = 16; +pub const SYS_RECVMSG: u32 = 17; +pub const SYS_ACCEPT4: u32 = 18; +pub const SYS_RECVMMSG: u32 = 19; +pub const SYS_SENDMMSG: u32 = 20; +pub const __SO_ACCEPTCON: u32 = 65536; +pub const TCP_MSS_DEFAULT: u32 = 536; +pub const TCP_MSS_DESIRED: u32 = 1220; +pub const TCP_NODELAY: u32 = 1; +pub const TCP_MAXSEG: u32 = 2; +pub const TCP_CORK: u32 = 3; +pub const TCP_KEEPIDLE: u32 = 4; +pub const TCP_KEEPINTVL: u32 = 5; +pub const TCP_KEEPCNT: u32 = 6; +pub const TCP_SYNCNT: u32 = 7; +pub const TCP_LINGER2: u32 = 8; +pub const TCP_DEFER_ACCEPT: u32 = 9; +pub const TCP_WINDOW_CLAMP: u32 = 10; +pub const TCP_INFO: u32 = 11; +pub const TCP_QUICKACK: u32 = 12; +pub const TCP_CONGESTION: u32 = 13; +pub const TCP_MD5SIG: u32 = 14; +pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; +pub const TCP_THIN_DUPACK: u32 = 17; +pub const TCP_USER_TIMEOUT: u32 = 18; +pub const TCP_REPAIR: u32 = 19; +pub const TCP_REPAIR_QUEUE: u32 = 20; +pub const TCP_QUEUE_SEQ: u32 = 21; +pub const TCP_REPAIR_OPTIONS: u32 = 22; +pub const TCP_FASTOPEN: u32 = 23; +pub const TCP_TIMESTAMP: u32 = 24; +pub const TCP_NOTSENT_LOWAT: u32 = 25; +pub const TCP_CC_INFO: u32 = 26; +pub const TCP_SAVE_SYN: u32 = 27; +pub const TCP_SAVED_SYN: u32 = 28; +pub const TCP_REPAIR_WINDOW: u32 = 29; +pub const TCP_FASTOPEN_CONNECT: u32 = 30; +pub const TCP_ULP: u32 = 31; +pub const TCP_MD5SIG_EXT: u32 = 32; +pub const TCP_FASTOPEN_KEY: u32 = 33; +pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; +pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; +pub const TCP_INQ: u32 = 36; +pub const TCP_CM_INQ: u32 = 36; +pub const TCP_TX_DELAY: u32 = 37; +pub const TCP_AO_ADD_KEY: u32 = 38; +pub const TCP_AO_DEL_KEY: u32 = 39; +pub const TCP_AO_INFO: u32 = 40; +pub const TCP_AO_GET_KEYS: u32 = 41; +pub const TCP_AO_REPAIR: u32 = 42; +pub const TCP_IS_MPTCP: u32 = 43; +pub const TCP_RTO_MAX_MS: u32 = 44; +pub const TCP_RTO_MIN_US: u32 = 45; +pub const TCP_DELACK_MAX_US: u32 = 46; +pub const TCP_REPAIR_ON: u32 = 1; +pub const TCP_REPAIR_OFF: u32 = 0; +pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; +pub const TCPI_OPT_TIMESTAMPS: u32 = 1; +pub const TCPI_OPT_SACK: u32 = 2; +pub const TCPI_OPT_WSCALE: u32 = 4; +pub const TCPI_OPT_ECN: u32 = 8; +pub const TCPI_OPT_ECN_SEEN: u32 = 16; +pub const TCPI_OPT_SYN_DATA: u32 = 32; +pub const TCPI_OPT_USEC_TS: u32 = 64; +pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; +pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; +pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; +pub const TCP_AO_MAXKEYLEN: u32 = 80; +pub const TCP_AO_KEYF_IFINDEX: u32 = 1; +pub const TCP_AO_KEYF_EXCLUDE_OPT: u32 = 2; +pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; +pub const UNIX_PATH_MAX: u32 = 108; +pub const IFNAMSIZ: u32 = 16; +pub const IFALIASZ: u32 = 256; +pub const ALTIFNAMSIZ: u32 = 128; +pub const GENERIC_HDLC_VERSION: u32 = 4; +pub const CLOCK_DEFAULT: u32 = 0; +pub const CLOCK_EXT: u32 = 1; +pub const CLOCK_INT: u32 = 2; +pub const CLOCK_TXINT: u32 = 3; +pub const CLOCK_TXFROMRX: u32 = 4; +pub const ENCODING_DEFAULT: u32 = 0; +pub const ENCODING_NRZ: u32 = 1; +pub const ENCODING_NRZI: u32 = 2; +pub const ENCODING_FM_MARK: u32 = 3; +pub const ENCODING_FM_SPACE: u32 = 4; +pub const ENCODING_MANCHESTER: u32 = 5; +pub const PARITY_DEFAULT: u32 = 0; +pub const PARITY_NONE: u32 = 1; +pub const PARITY_CRC16_PR0: u32 = 2; +pub const PARITY_CRC16_PR1: u32 = 3; +pub const PARITY_CRC16_PR0_CCITT: u32 = 4; +pub const PARITY_CRC16_PR1_CCITT: u32 = 5; +pub const PARITY_CRC32_PR0_CCITT: u32 = 6; +pub const PARITY_CRC32_PR1_CCITT: u32 = 7; +pub const LMI_DEFAULT: u32 = 0; +pub const LMI_NONE: u32 = 1; +pub const LMI_ANSI: u32 = 2; +pub const LMI_CCITT: u32 = 3; +pub const LMI_CISCO: u32 = 4; +pub const IF_GET_IFACE: u32 = 1; +pub const IF_GET_PROTO: u32 = 2; +pub const IF_IFACE_V35: u32 = 4096; +pub const IF_IFACE_V24: u32 = 4097; +pub const IF_IFACE_X21: u32 = 4098; +pub const IF_IFACE_T1: u32 = 4099; +pub const IF_IFACE_E1: u32 = 4100; +pub const IF_IFACE_SYNC_SERIAL: u32 = 4101; +pub const IF_IFACE_X21D: u32 = 4102; +pub const IF_PROTO_HDLC: u32 = 8192; +pub const IF_PROTO_PPP: u32 = 8193; +pub const IF_PROTO_CISCO: u32 = 8194; +pub const IF_PROTO_FR: u32 = 8195; +pub const IF_PROTO_FR_ADD_PVC: u32 = 8196; +pub const IF_PROTO_FR_DEL_PVC: u32 = 8197; +pub const IF_PROTO_X25: u32 = 8198; +pub const IF_PROTO_HDLC_ETH: u32 = 8199; +pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200; +pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201; +pub const IF_PROTO_FR_PVC: u32 = 8202; +pub const IF_PROTO_FR_ETH_PVC: u32 = 8203; +pub const IF_PROTO_RAW: u32 = 8204; +pub const IFHWADDRLEN: u32 = 6; +pub const NF_DROP: u32 = 0; +pub const NF_ACCEPT: u32 = 1; +pub const NF_STOLEN: u32 = 2; +pub const NF_QUEUE: u32 = 3; +pub const NF_REPEAT: u32 = 4; +pub const NF_STOP: u32 = 5; +pub const NF_MAX_VERDICT: u32 = 5; +pub const NF_VERDICT_MASK: u32 = 255; +pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768; +pub const NF_VERDICT_QMASK: u32 = 4294901760; +pub const NF_VERDICT_QBITS: u32 = 16; +pub const NF_VERDICT_BITS: u32 = 16; +pub const NF_IP6_PRE_ROUTING: u32 = 0; +pub const NF_IP6_LOCAL_IN: u32 = 1; +pub const NF_IP6_FORWARD: u32 = 2; +pub const NF_IP6_LOCAL_OUT: u32 = 3; +pub const NF_IP6_POST_ROUTING: u32 = 4; +pub const NF_IP6_NUMHOOKS: u32 = 5; +pub const XT_FUNCTION_MAXNAMELEN: u32 = 30; +pub const XT_EXTENSION_MAXNAMELEN: u32 = 29; +pub const XT_TABLE_MAXNAMELEN: u32 = 32; +pub const XT_CONTINUE: u32 = 4294967295; +pub const XT_RETURN: i32 = -5; +pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0"; +pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0"; +pub const XT_INV_PROTO: u32 = 64; +pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30; +pub const IP6T_TABLE_MAXNAMELEN: u32 = 32; +pub const IP6T_CONTINUE: u32 = 4294967295; +pub const IP6T_RETURN: i32 = -5; +pub const XT_TCP_INV_SRCPT: u32 = 1; +pub const XT_TCP_INV_DSTPT: u32 = 2; +pub const XT_TCP_INV_FLAGS: u32 = 4; +pub const XT_TCP_INV_OPTION: u32 = 8; +pub const XT_TCP_INV_MASK: u32 = 15; +pub const XT_UDP_INV_SRCPT: u32 = 1; +pub const XT_UDP_INV_DSTPT: u32 = 2; +pub const XT_UDP_INV_MASK: u32 = 3; +pub const IP6T_TCP_INV_SRCPT: u32 = 1; +pub const IP6T_TCP_INV_DSTPT: u32 = 2; +pub const IP6T_TCP_INV_FLAGS: u32 = 4; +pub const IP6T_TCP_INV_OPTION: u32 = 8; +pub const IP6T_TCP_INV_MASK: u32 = 15; +pub const IP6T_UDP_INV_SRCPT: u32 = 1; +pub const IP6T_UDP_INV_DSTPT: u32 = 2; +pub const IP6T_UDP_INV_MASK: u32 = 3; +pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0"; +pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0"; +pub const IP6T_F_PROTO: u32 = 1; +pub const IP6T_F_TOS: u32 = 2; +pub const IP6T_F_GOTO: u32 = 4; +pub const IP6T_F_MASK: u32 = 7; +pub const IP6T_INV_VIA_IN: u32 = 1; +pub const IP6T_INV_VIA_OUT: u32 = 2; +pub const IP6T_INV_TOS: u32 = 4; +pub const IP6T_INV_SRCIP: u32 = 8; +pub const IP6T_INV_DSTIP: u32 = 16; +pub const IP6T_INV_FRAG: u32 = 32; +pub const IP6T_INV_PROTO: u32 = 64; +pub const IP6T_INV_MASK: u32 = 127; +pub const IP6T_BASE_CTL: u32 = 64; +pub const IP6T_SO_SET_REPLACE: u32 = 64; +pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65; +pub const IP6T_SO_SET_MAX: u32 = 65; +pub const IP6T_SO_GET_INFO: u32 = 64; +pub const IP6T_SO_GET_ENTRIES: u32 = 65; +pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68; +pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69; +pub const IP6T_SO_GET_MAX: u32 = 69; +pub const IP6T_SO_ORIGINAL_DST: u32 = 80; +pub const IP6T_ICMP_INV: u32 = 1; +pub const NF_IP_PRE_ROUTING: u32 = 0; +pub const NF_IP_LOCAL_IN: u32 = 1; +pub const NF_IP_FORWARD: u32 = 2; +pub const NF_IP_LOCAL_OUT: u32 = 3; +pub const NF_IP_POST_ROUTING: u32 = 4; +pub const NF_IP_NUMHOOKS: u32 = 5; +pub const SO_ORIGINAL_DST: u32 = 80; +pub const SHUT_RD: u32 = 0; +pub const SHUT_WR: u32 = 1; +pub const SHUT_RDWR: u32 = 2; +pub const SOCK_STREAM: u32 = 1; +pub const SOCK_DGRAM: u32 = 2; +pub const SOCK_RAW: u32 = 3; +pub const SOCK_RDM: u32 = 4; +pub const SOCK_SEQPACKET: u32 = 5; +pub const MSG_DONTWAIT: u32 = 64; +pub const AF_UNSPEC: u32 = 0; +pub const AF_UNIX: u32 = 1; +pub const AF_INET: u32 = 2; +pub const AF_AX25: u32 = 3; +pub const AF_IPX: u32 = 4; +pub const AF_APPLETALK: u32 = 5; +pub const AF_NETROM: u32 = 6; +pub const AF_BRIDGE: u32 = 7; +pub const AF_ATMPVC: u32 = 8; +pub const AF_X25: u32 = 9; +pub const AF_INET6: u32 = 10; +pub const AF_ROSE: u32 = 11; +pub const AF_DECnet: u32 = 12; +pub const AF_NETBEUI: u32 = 13; +pub const AF_SECURITY: u32 = 14; +pub const AF_KEY: u32 = 15; +pub const AF_NETLINK: u32 = 16; +pub const AF_PACKET: u32 = 17; +pub const AF_ASH: u32 = 18; +pub const AF_ECONET: u32 = 19; +pub const AF_ATMSVC: u32 = 20; +pub const AF_RDS: u32 = 21; +pub const AF_SNA: u32 = 22; +pub const AF_IRDA: u32 = 23; +pub const AF_PPPOX: u32 = 24; +pub const AF_WANPIPE: u32 = 25; +pub const AF_LLC: u32 = 26; +pub const AF_CAN: u32 = 29; +pub const AF_TIPC: u32 = 30; +pub const AF_BLUETOOTH: u32 = 31; +pub const AF_IUCV: u32 = 32; +pub const AF_RXRPC: u32 = 33; +pub const AF_ISDN: u32 = 34; +pub const AF_PHONET: u32 = 35; +pub const AF_IEEE802154: u32 = 36; +pub const AF_CAIF: u32 = 37; +pub const AF_ALG: u32 = 38; +pub const AF_NFC: u32 = 39; +pub const AF_VSOCK: u32 = 40; +pub const AF_KCM: u32 = 41; +pub const AF_QIPCRTR: u32 = 42; +pub const AF_SMC: u32 = 43; +pub const AF_XDP: u32 = 44; +pub const AF_MCTP: u32 = 45; +pub const AF_MAX: u32 = 46; +pub const MSG_OOB: u32 = 1; +pub const MSG_PEEK: u32 = 2; +pub const MSG_DONTROUTE: u32 = 4; +pub const MSG_CTRUNC: u32 = 8; +pub const MSG_PROBE: u32 = 16; +pub const MSG_TRUNC: u32 = 32; +pub const MSG_EOR: u32 = 128; +pub const MSG_WAITALL: u32 = 256; +pub const MSG_FIN: u32 = 512; +pub const MSG_SYN: u32 = 1024; +pub const MSG_CONFIRM: u32 = 2048; +pub const MSG_RST: u32 = 4096; +pub const MSG_ERRQUEUE: u32 = 8192; +pub const MSG_NOSIGNAL: u32 = 16384; +pub const MSG_MORE: u32 = 32768; +pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; +pub const SCM_RIGHTS: u32 = 1; +pub const SCM_CREDENTIALS: u32 = 2; +pub const SCM_SECURITY: u32 = 3; +pub const SOL_IP: u32 = 0; +pub const SOL_TCP: u32 = 6; +pub const SOL_UDP: u32 = 17; +pub const SOL_IPV6: u32 = 41; +pub const SOL_ICMPV6: u32 = 58; +pub const SOL_SCTP: u32 = 132; +pub const SOL_UDPLITE: u32 = 136; +pub const SOL_RAW: u32 = 255; +pub const SOL_IPX: u32 = 256; +pub const SOL_AX25: u32 = 257; +pub const SOL_ATALK: u32 = 258; +pub const SOL_NETROM: u32 = 259; +pub const SOL_ROSE: u32 = 260; +pub const SOL_DECNET: u32 = 261; +pub const SOL_X25: u32 = 262; +pub const SOL_PACKET: u32 = 263; +pub const SOL_ATM: u32 = 264; +pub const SOL_AAL: u32 = 265; +pub const SOL_IRDA: u32 = 266; +pub const SOL_NETBEUI: u32 = 267; +pub const SOL_LLC: u32 = 268; +pub const SOL_DCCP: u32 = 269; +pub const SOL_NETLINK: u32 = 270; +pub const SOL_TIPC: u32 = 271; +pub const SOL_RXRPC: u32 = 272; +pub const SOL_PPPOL2TP: u32 = 273; +pub const SOL_BLUETOOTH: u32 = 274; +pub const SOL_PNPIPE: u32 = 275; +pub const SOL_RDS: u32 = 276; +pub const SOL_IUCV: u32 = 277; +pub const SOL_CAIF: u32 = 278; +pub const SOL_ALG: u32 = 279; +pub const SOL_NFC: u32 = 280; +pub const SOL_KCM: u32 = 281; +pub const SOL_TLS: u32 = 282; +pub const SOL_XDP: u32 = 283; +pub const SOL_MPTCP: u32 = 284; +pub const SOL_MCTP: u32 = 285; +pub const SOL_SMC: u32 = 286; +pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; +pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; +pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; +pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; +pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; +pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; +pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; +pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; +pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; +pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; +pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; +pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; +pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; +pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; +pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; +pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; +pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; +pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; +pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; +pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; +pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; +pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; +pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; +pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; +pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; +pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; +pub const IPPROTO_AGGFRAG: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AGGFRAG; +pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; +pub const IPPROTO_SMC: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SMC; +pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; +pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; +pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; +pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; +pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; +pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; +pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; +pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; +pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; +pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; +pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; +pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; +pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; +pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; +pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; +pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; +pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; +pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; +pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; +pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; +pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; +pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; +pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; +pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; +pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; +pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; +pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; +pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; +pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; +pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; +pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; +pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; +pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; +pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; +pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; +pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; +pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; +pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; +pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; +pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; +pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; +pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; +pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; +pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; +pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; +pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; +pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; +pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; +pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; +pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; +pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; +pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; +pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; +pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; +pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; +pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; +pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; +pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; +pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; +pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; +pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; +pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; +pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; +pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; +pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; +pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; +pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; +pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; +pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; +pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; +pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; +pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; +pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; +pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; +pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; +pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; +pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; +pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; +pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; +pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; +pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; +pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; +pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; +pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; +pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; +pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; +pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; +pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; +pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; +pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; +pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; +pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; +pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; +pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; +pub const DEVCONF_ACCEPT_RA_MIN_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_LFT; +pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; +pub const TCP_FLAG_AE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_AE; +pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; +pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; +pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; +pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; +pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; +pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; +pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; +pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; +pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; +pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; +pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; +pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; +pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; +pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; +pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; +pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; +pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; +pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; +pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; +pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; +pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; +pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; +pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; +pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; +pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; +pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; +pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; +pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; +pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; +pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; +pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; +pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; +pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; +pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; +pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; +pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; +pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; +pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; +pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; +pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; +pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; +pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; +pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN; +pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT; +pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN; +pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN; +pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING; +pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT; +pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP; +pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT; +pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT; +pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING; +pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC; +pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET; +pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4; +pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP; +pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV; +pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE; +pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6; +pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET; +pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO; +pub const SOF_TIMESTAMPING_TX_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_HARDWARE; +pub const SOF_TIMESTAMPING_TX_SOFTWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_SOFTWARE; +pub const SOF_TIMESTAMPING_RX_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_RX_HARDWARE; +pub const SOF_TIMESTAMPING_RX_SOFTWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_RX_SOFTWARE; +pub const SOF_TIMESTAMPING_SOFTWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_SOFTWARE; +pub const SOF_TIMESTAMPING_SYS_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_SYS_HARDWARE; +pub const SOF_TIMESTAMPING_RAW_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_RAW_HARDWARE; +pub const SOF_TIMESTAMPING_OPT_ID: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_ID; +pub const SOF_TIMESTAMPING_TX_SCHED: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_SCHED; +pub const SOF_TIMESTAMPING_TX_ACK: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_ACK; +pub const SOF_TIMESTAMPING_OPT_CMSG: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_CMSG; +pub const SOF_TIMESTAMPING_OPT_TSONLY: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_TSONLY; +pub const SOF_TIMESTAMPING_OPT_STATS: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_STATS; +pub const SOF_TIMESTAMPING_OPT_PKTINFO: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_PKTINFO; +pub const SOF_TIMESTAMPING_OPT_TX_SWHW: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_TX_SWHW; +pub const SOF_TIMESTAMPING_BIND_PHC: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_BIND_PHC; +pub const SOF_TIMESTAMPING_OPT_ID_TCP: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_ID_TCP; +pub const SOF_TIMESTAMPING_OPT_RX_FILTER: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_RX_FILTER; +pub const SOF_TIMESTAMPING_TX_COMPLETION: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_COMPLETION; +pub const SOF_TIMESTAMPING_LAST: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_COMPLETION; +pub const SOF_TIMESTAMPING_MASK: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_MASK; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +IPPROTO_IP = 0, +IPPROTO_ICMP = 1, +IPPROTO_IGMP = 2, +IPPROTO_IPIP = 4, +IPPROTO_TCP = 6, +IPPROTO_EGP = 8, +IPPROTO_PUP = 12, +IPPROTO_UDP = 17, +IPPROTO_IDP = 22, +IPPROTO_TP = 29, +IPPROTO_DCCP = 33, +IPPROTO_IPV6 = 41, +IPPROTO_RSVP = 46, +IPPROTO_GRE = 47, +IPPROTO_ESP = 50, +IPPROTO_AH = 51, +IPPROTO_MTP = 92, +IPPROTO_BEETPH = 94, +IPPROTO_ENCAP = 98, +IPPROTO_PIM = 103, +IPPROTO_COMP = 108, +IPPROTO_L2TP = 115, +IPPROTO_SCTP = 132, +IPPROTO_UDPLITE = 136, +IPPROTO_MPLS = 137, +IPPROTO_ETHERNET = 143, +IPPROTO_AGGFRAG = 144, +IPPROTO_RAW = 255, +IPPROTO_SMC = 256, +IPPROTO_MPTCP = 262, +IPPROTO_MAX = 263, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IPV4_DEVCONF_FORWARDING = 1, +IPV4_DEVCONF_MC_FORWARDING = 2, +IPV4_DEVCONF_PROXY_ARP = 3, +IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, +IPV4_DEVCONF_SECURE_REDIRECTS = 5, +IPV4_DEVCONF_SEND_REDIRECTS = 6, +IPV4_DEVCONF_SHARED_MEDIA = 7, +IPV4_DEVCONF_RP_FILTER = 8, +IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, +IPV4_DEVCONF_BOOTP_RELAY = 10, +IPV4_DEVCONF_LOG_MARTIANS = 11, +IPV4_DEVCONF_TAG = 12, +IPV4_DEVCONF_ARPFILTER = 13, +IPV4_DEVCONF_MEDIUM_ID = 14, +IPV4_DEVCONF_NOXFRM = 15, +IPV4_DEVCONF_NOPOLICY = 16, +IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, +IPV4_DEVCONF_ARP_ANNOUNCE = 18, +IPV4_DEVCONF_ARP_IGNORE = 19, +IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, +IPV4_DEVCONF_ARP_ACCEPT = 21, +IPV4_DEVCONF_ARP_NOTIFY = 22, +IPV4_DEVCONF_ACCEPT_LOCAL = 23, +IPV4_DEVCONF_SRC_VMARK = 24, +IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, +IPV4_DEVCONF_ROUTE_LOCALNET = 26, +IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, +IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, +IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, +IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, +IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, +IPV4_DEVCONF_BC_FORWARDING = 32, +IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, +__IPV4_DEVCONF_MAX = 34, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +DEVCONF_FORWARDING = 0, +DEVCONF_HOPLIMIT = 1, +DEVCONF_MTU6 = 2, +DEVCONF_ACCEPT_RA = 3, +DEVCONF_ACCEPT_REDIRECTS = 4, +DEVCONF_AUTOCONF = 5, +DEVCONF_DAD_TRANSMITS = 6, +DEVCONF_RTR_SOLICITS = 7, +DEVCONF_RTR_SOLICIT_INTERVAL = 8, +DEVCONF_RTR_SOLICIT_DELAY = 9, +DEVCONF_USE_TEMPADDR = 10, +DEVCONF_TEMP_VALID_LFT = 11, +DEVCONF_TEMP_PREFERED_LFT = 12, +DEVCONF_REGEN_MAX_RETRY = 13, +DEVCONF_MAX_DESYNC_FACTOR = 14, +DEVCONF_MAX_ADDRESSES = 15, +DEVCONF_FORCE_MLD_VERSION = 16, +DEVCONF_ACCEPT_RA_DEFRTR = 17, +DEVCONF_ACCEPT_RA_PINFO = 18, +DEVCONF_ACCEPT_RA_RTR_PREF = 19, +DEVCONF_RTR_PROBE_INTERVAL = 20, +DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, +DEVCONF_PROXY_NDP = 22, +DEVCONF_OPTIMISTIC_DAD = 23, +DEVCONF_ACCEPT_SOURCE_ROUTE = 24, +DEVCONF_MC_FORWARDING = 25, +DEVCONF_DISABLE_IPV6 = 26, +DEVCONF_ACCEPT_DAD = 27, +DEVCONF_FORCE_TLLAO = 28, +DEVCONF_NDISC_NOTIFY = 29, +DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, +DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, +DEVCONF_SUPPRESS_FRAG_NDISC = 32, +DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, +DEVCONF_USE_OPTIMISTIC = 34, +DEVCONF_ACCEPT_RA_MTU = 35, +DEVCONF_STABLE_SECRET = 36, +DEVCONF_USE_OIF_ADDRS_ONLY = 37, +DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, +DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, +DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, +DEVCONF_DROP_UNSOLICITED_NA = 41, +DEVCONF_KEEP_ADDR_ON_DOWN = 42, +DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, +DEVCONF_SEG6_ENABLED = 44, +DEVCONF_SEG6_REQUIRE_HMAC = 45, +DEVCONF_ENHANCED_DAD = 46, +DEVCONF_ADDR_GEN_MODE = 47, +DEVCONF_DISABLE_POLICY = 48, +DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, +DEVCONF_NDISC_TCLASS = 50, +DEVCONF_RPL_SEG_ENABLED = 51, +DEVCONF_RA_DEFRTR_METRIC = 52, +DEVCONF_IOAM6_ENABLED = 53, +DEVCONF_IOAM6_ID = 54, +DEVCONF_IOAM6_ID_WIDE = 55, +DEVCONF_NDISC_EVICT_NOCARRIER = 56, +DEVCONF_ACCEPT_UNTRACKED_NA = 57, +DEVCONF_ACCEPT_RA_MIN_LFT = 58, +DEVCONF_MAX = 59, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum socket_state { +SS_FREE = 0, +SS_UNCONNECTED = 1, +SS_CONNECTING = 2, +SS_CONNECTED = 3, +SS_DISCONNECTING = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +TCP_FLAG_AE = 1, +TCP_FLAG_CWR = 32768, +TCP_FLAG_ECE = 16384, +TCP_FLAG_URG = 8192, +TCP_FLAG_ACK = 4096, +TCP_FLAG_PSH = 2048, +TCP_FLAG_RST = 1024, +TCP_FLAG_SYN = 512, +TCP_FLAG_FIN = 256, +TCP_RESERVED_BITS = 14, +TCP_DATA_OFFSET = 240, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_5 { +TCP_NO_QUEUE = 0, +TCP_RECV_QUEUE = 1, +TCP_SEND_QUEUE = 2, +TCP_QUEUES_NR = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tcp_fastopen_client_fail { +TFO_STATUS_UNSPEC = 0, +TFO_COOKIE_UNAVAILABLE = 1, +TFO_DATA_NOT_ACKED = 2, +TFO_SYN_RETRANSMITTED = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tcp_ca_state { +TCP_CA_Open = 0, +TCP_CA_Disorder = 1, +TCP_CA_CWR = 2, +TCP_CA_Recovery = 3, +TCP_CA_Loss = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_6 { +TCP_NLA_PAD = 0, +TCP_NLA_BUSY = 1, +TCP_NLA_RWND_LIMITED = 2, +TCP_NLA_SNDBUF_LIMITED = 3, +TCP_NLA_DATA_SEGS_OUT = 4, +TCP_NLA_TOTAL_RETRANS = 5, +TCP_NLA_PACING_RATE = 6, +TCP_NLA_DELIVERY_RATE = 7, +TCP_NLA_SND_CWND = 8, +TCP_NLA_REORDERING = 9, +TCP_NLA_MIN_RTT = 10, +TCP_NLA_RECUR_RETRANS = 11, +TCP_NLA_DELIVERY_RATE_APP_LMT = 12, +TCP_NLA_SNDQ_SIZE = 13, +TCP_NLA_CA_STATE = 14, +TCP_NLA_SND_SSTHRESH = 15, +TCP_NLA_DELIVERED = 16, +TCP_NLA_DELIVERED_CE = 17, +TCP_NLA_BYTES_SENT = 18, +TCP_NLA_BYTES_RETRANS = 19, +TCP_NLA_DSACK_DUPS = 20, +TCP_NLA_REORD_SEEN = 21, +TCP_NLA_SRTT = 22, +TCP_NLA_TIMEOUT_REHASH = 23, +TCP_NLA_BYTES_NOTSENT = 24, +TCP_NLA_EDT = 25, +TCP_NLA_TTL = 26, +TCP_NLA_REHASH = 27, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum net_device_flags { +IFF_UP = 1, +IFF_BROADCAST = 2, +IFF_DEBUG = 4, +IFF_LOOPBACK = 8, +IFF_POINTOPOINT = 16, +IFF_NOTRAILERS = 32, +IFF_RUNNING = 64, +IFF_NOARP = 128, +IFF_PROMISC = 256, +IFF_ALLMULTI = 512, +IFF_MASTER = 1024, +IFF_SLAVE = 2048, +IFF_MULTICAST = 4096, +IFF_PORTSEL = 8192, +IFF_AUTOMEDIA = 16384, +IFF_DYNAMIC = 32768, +IFF_LOWER_UP = 65536, +IFF_DORMANT = 131072, +IFF_ECHO = 262144, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_7 { +IF_OPER_UNKNOWN = 0, +IF_OPER_NOTPRESENT = 1, +IF_OPER_DOWN = 2, +IF_OPER_LOWERLAYERDOWN = 3, +IF_OPER_TESTING = 4, +IF_OPER_DORMANT = 5, +IF_OPER_UP = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_8 { +IF_LINK_MODE_DEFAULT = 0, +IF_LINK_MODE_DORMANT = 1, +IF_LINK_MODE_TESTING = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_inet_hooks { +NF_INET_PRE_ROUTING = 0, +NF_INET_LOCAL_IN = 1, +NF_INET_FORWARD = 2, +NF_INET_LOCAL_OUT = 3, +NF_INET_POST_ROUTING = 4, +NF_INET_NUMHOOKS = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_dev_hooks { +NF_NETDEV_INGRESS = 0, +NF_NETDEV_EGRESS = 1, +NF_NETDEV_NUMHOOKS = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_9 { +NFPROTO_UNSPEC = 0, +NFPROTO_INET = 1, +NFPROTO_IPV4 = 2, +NFPROTO_ARP = 3, +NFPROTO_NETDEV = 5, +NFPROTO_BRIDGE = 7, +NFPROTO_IPV6 = 10, +NFPROTO_DECNET = 12, +NFPROTO_NUMPROTO = 13, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_ip6_hook_priorities { +NF_IP6_PRI_FIRST = -2147483648, +NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450, +NF_IP6_PRI_CONNTRACK_DEFRAG = -400, +NF_IP6_PRI_RAW = -300, +NF_IP6_PRI_SELINUX_FIRST = -225, +NF_IP6_PRI_CONNTRACK = -200, +NF_IP6_PRI_MANGLE = -150, +NF_IP6_PRI_NAT_DST = -100, +NF_IP6_PRI_FILTER = 0, +NF_IP6_PRI_SECURITY = 50, +NF_IP6_PRI_NAT_SRC = 100, +NF_IP6_PRI_SELINUX_LAST = 225, +NF_IP6_PRI_CONNTRACK_HELPER = 300, +NF_IP6_PRI_LAST = 2147483647, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_ip_hook_priorities { +NF_IP_PRI_FIRST = -2147483648, +NF_IP_PRI_RAW_BEFORE_DEFRAG = -450, +NF_IP_PRI_CONNTRACK_DEFRAG = -400, +NF_IP_PRI_RAW = -300, +NF_IP_PRI_SELINUX_FIRST = -225, +NF_IP_PRI_CONNTRACK = -200, +NF_IP_PRI_MANGLE = -150, +NF_IP_PRI_NAT_DST = -100, +NF_IP_PRI_FILTER = 0, +NF_IP_PRI_SECURITY = 50, +NF_IP_PRI_NAT_SRC = 100, +NF_IP_PRI_SELINUX_LAST = 225, +NF_IP_PRI_CONNTRACK_HELPER = 300, +NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_provider_qualifier { +HWTSTAMP_PROVIDER_QUALIFIER_PRECISE = 0, +HWTSTAMP_PROVIDER_QUALIFIER_APPROX = 1, +HWTSTAMP_PROVIDER_QUALIFIER_CNT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_10 { +SOF_TIMESTAMPING_TX_HARDWARE = 1, +SOF_TIMESTAMPING_TX_SOFTWARE = 2, +SOF_TIMESTAMPING_RX_HARDWARE = 4, +SOF_TIMESTAMPING_RX_SOFTWARE = 8, +SOF_TIMESTAMPING_SOFTWARE = 16, +SOF_TIMESTAMPING_SYS_HARDWARE = 32, +SOF_TIMESTAMPING_RAW_HARDWARE = 64, +SOF_TIMESTAMPING_OPT_ID = 128, +SOF_TIMESTAMPING_TX_SCHED = 256, +SOF_TIMESTAMPING_TX_ACK = 512, +SOF_TIMESTAMPING_OPT_CMSG = 1024, +SOF_TIMESTAMPING_OPT_TSONLY = 2048, +SOF_TIMESTAMPING_OPT_STATS = 4096, +SOF_TIMESTAMPING_OPT_PKTINFO = 8192, +SOF_TIMESTAMPING_OPT_TX_SWHW = 16384, +SOF_TIMESTAMPING_BIND_PHC = 32768, +SOF_TIMESTAMPING_OPT_ID_TCP = 65536, +SOF_TIMESTAMPING_OPT_RX_FILTER = 131072, +SOF_TIMESTAMPING_TX_COMPLETION = 262144, +SOF_TIMESTAMPING_MASK = 524287, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_flags { +HWTSTAMP_FLAG_BONDED_PHC_INDEX = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_tx_types { +HWTSTAMP_TX_OFF = 0, +HWTSTAMP_TX_ON = 1, +HWTSTAMP_TX_ONESTEP_SYNC = 2, +HWTSTAMP_TX_ONESTEP_P2P = 3, +__HWTSTAMP_TX_CNT = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_rx_filters { +HWTSTAMP_FILTER_NONE = 0, +HWTSTAMP_FILTER_ALL = 1, +HWTSTAMP_FILTER_SOME = 2, +HWTSTAMP_FILTER_PTP_V1_L4_EVENT = 3, +HWTSTAMP_FILTER_PTP_V1_L4_SYNC = 4, +HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ = 5, +HWTSTAMP_FILTER_PTP_V2_L4_EVENT = 6, +HWTSTAMP_FILTER_PTP_V2_L4_SYNC = 7, +HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ = 8, +HWTSTAMP_FILTER_PTP_V2_L2_EVENT = 9, +HWTSTAMP_FILTER_PTP_V2_L2_SYNC = 10, +HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ = 11, +HWTSTAMP_FILTER_PTP_V2_EVENT = 12, +HWTSTAMP_FILTER_PTP_V2_SYNC = 13, +HWTSTAMP_FILTER_PTP_V2_DELAY_REQ = 14, +HWTSTAMP_FILTER_NTP_ALL = 15, +__HWTSTAMP_FILTER_CNT = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum txtime_flags { +SOF_TXTIME_DEADLINE_MODE = 1, +SOF_TXTIME_REPORT_ERRORS = 2, +SOF_TXTIME_FLAGS_MASK = 3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __kernel_sockaddr_storage__bindgen_ty_1 { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, +pub __align: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union iphdr__bindgen_ty_1 { +pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, +pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union in6_addr__bindgen_ty_1 { +pub u6_addr8: [__u8; 16usize], +pub u6_addr16: [__be16; 8usize], +pub u6_addr32: [__be32; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ipv6hdr__bindgen_ty_1 { +pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, +pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tcp_word_hdr { +pub hdr: tcphdr, +pub words: [__be32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union if_settings__bindgen_ty_1 { +pub raw_hdlc: *mut raw_hdlc_proto, +pub cisco: *mut cisco_proto, +pub fr: *mut fr_proto, +pub fr_pvc: *mut fr_proto_pvc, +pub fr_pvc_info: *mut fr_proto_pvc_info, +pub x25: *mut x25_hdlc_proto, +pub sync: *mut sync_serial_settings, +pub te1: *mut te1_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_1 { +pub ifrn_name: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_2 { +pub ifru_addr: sockaddr, +pub ifru_dstaddr: sockaddr, +pub ifru_broadaddr: sockaddr, +pub ifru_netmask: sockaddr, +pub ifru_hwaddr: sockaddr, +pub ifru_flags: crate::ctypes::c_short, +pub ifru_ivalue: crate::ctypes::c_int, +pub ifru_mtu: crate::ctypes::c_int, +pub ifru_map: ifmap, +pub ifru_slave: [crate::ctypes::c_char; 16usize], +pub ifru_newname: [crate::ctypes::c_char; 16usize], +pub ifru_data: *mut crate::ctypes::c_void, +pub ifru_settings: if_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifconf__bindgen_ty_1 { +pub ifcu_buf: *mut crate::ctypes::c_char, +pub ifcu_req: *mut ifreq, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union nf_inet_addr { +pub all: [__u32; 4usize], +pub ip: __be32, +pub ip6: [__be32; 4usize], +pub in_: in_addr, +pub in6: in6_addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union xt_entry_match__bindgen_ty_1 { +pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1, +pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2, +pub match_size: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union xt_entry_target__bindgen_ty_1 { +pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1, +pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2, +pub target_size: __u16, +} +impl __BindgenBitfieldUnit { +#[inline] +pub const fn new(storage: Storage) -> Self { +Self { storage } +} +} +impl __BindgenBitfieldUnit +where +Storage: AsRef<[u8]> + AsMut<[u8]>, +{ +#[inline] +fn extract_bit(byte: u8, index: usize) -> bool { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +byte & mask == mask +} +#[inline] +pub fn get_bit(&self, index: usize) -> bool { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = self.storage.as_ref()[byte_index]; +Self::extract_bit(byte, index) +} +#[inline] +pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; +Self::extract_bit(byte, index) +} +#[inline] +fn change_bit(byte: u8, index: usize, val: bool) -> u8 { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +if val { +byte | mask +} else { +byte & !mask +} +} +#[inline] +pub fn set_bit(&mut self, index: usize, val: bool) { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = &mut self.storage.as_mut()[byte_index]; +*byte = Self::change_bit(*byte, index, val); +} +#[inline] +pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; +} +#[inline] +pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if self.get_bit(i + bit_offset) { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +self.set_bit(index + bit_offset, val_bit_is_set); +} +} +#[inline] +pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +} +} +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl __BindgenUnionField { +#[inline] +pub const fn new() -> Self { +__BindgenUnionField(::core::marker::PhantomData) +} +#[inline] +pub unsafe fn as_ref(&self) -> &T { +::core::mem::transmute(self) +} +#[inline] +pub unsafe fn as_mut(&mut self) -> &mut T { +::core::mem::transmute(self) +} +} +impl ::core::default::Default for __BindgenUnionField { +#[inline] +fn default() -> Self { +Self::new() +} +} +impl ::core::clone::Clone for __BindgenUnionField { +#[inline] +fn clone(&self) -> Self { +*self +} +} +impl ::core::marker::Copy for __BindgenUnionField {} +impl ::core::fmt::Debug for __BindgenUnionField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__BindgenUnionField") +} +} +impl ::core::hash::Hash for __BindgenUnionField { +fn hash(&self, _state: &mut H) {} +} +impl ::core::cmp::PartialEq for __BindgenUnionField { +fn eq(&self, _other: &__BindgenUnionField) -> bool { +true +} +} +impl ::core::cmp::Eq for __BindgenUnionField {} +impl iphdr { +#[inline] +pub fn ihl(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +} +#[inline] +pub fn set_ihl(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn ihl_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +} +} +#[inline] +pub fn version(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +} +#[inline] +pub fn set_version(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn version_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 4u8, { +let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; +ihl as u64 +}); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let version: u8 = unsafe { ::core::mem::transmute(version) }; +version as u64 +}); +__bindgen_bitfield_unit +} +} +impl ipv6hdr { +#[inline] +pub fn priority(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +} +#[inline] +pub fn set_priority(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn priority_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +} +} +#[inline] +pub fn version(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +} +#[inline] +pub fn set_version(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn version_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 4u8, { +let priority: u8 = unsafe { ::core::mem::transmute(priority) }; +priority as u64 +}); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let version: u8 = unsafe { ::core::mem::transmute(version) }; +version as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcphdr { +#[inline] +pub fn ae(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +} +#[inline] +pub fn set_ae(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ae_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn res1(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 3u8) as u16) } +} +#[inline] +pub fn set_res1(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 3u8, val as u64) +} +} +#[inline] +pub unsafe fn res1_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 3u8) as u16) } +} +#[inline] +pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 3u8, val as u64) +} +} +#[inline] +pub fn doff(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } +} +#[inline] +pub fn set_doff(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn doff_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u16) } +} +#[inline] +pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn fin(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +} +#[inline] +pub fn set_fin(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(8usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn fin_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +} +} +#[inline] +pub fn syn(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +} +#[inline] +pub fn set_syn(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(9usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn syn_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +} +} +#[inline] +pub fn rst(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +} +#[inline] +pub fn set_rst(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(10usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn rst_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +} +} +#[inline] +pub fn psh(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +} +#[inline] +pub fn set_psh(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(11usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn psh_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +} +} +#[inline] +pub fn ack(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +} +#[inline] +pub fn set_ack(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(12usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ack_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +} +} +#[inline] +pub fn urg(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +} +#[inline] +pub fn set_urg(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(13usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn urg_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +} +} +#[inline] +pub fn ece(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +} +#[inline] +pub fn set_ece(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(14usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ece_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +} +} +#[inline] +pub fn cwr(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +} +#[inline] +pub fn set_cwr(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(15usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn cwr_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(ae: __u16, res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let ae: u16 = unsafe { ::core::mem::transmute(ae) }; +ae as u64 +}); +__bindgen_bitfield_unit.set(1usize, 3u8, { +let res1: u16 = unsafe { ::core::mem::transmute(res1) }; +res1 as u64 +}); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let doff: u16 = unsafe { ::core::mem::transmute(doff) }; +doff as u64 +}); +__bindgen_bitfield_unit.set(8usize, 1u8, { +let fin: u16 = unsafe { ::core::mem::transmute(fin) }; +fin as u64 +}); +__bindgen_bitfield_unit.set(9usize, 1u8, { +let syn: u16 = unsafe { ::core::mem::transmute(syn) }; +syn as u64 +}); +__bindgen_bitfield_unit.set(10usize, 1u8, { +let rst: u16 = unsafe { ::core::mem::transmute(rst) }; +rst as u64 +}); +__bindgen_bitfield_unit.set(11usize, 1u8, { +let psh: u16 = unsafe { ::core::mem::transmute(psh) }; +psh as u64 +}); +__bindgen_bitfield_unit.set(12usize, 1u8, { +let ack: u16 = unsafe { ::core::mem::transmute(ack) }; +ack as u64 +}); +__bindgen_bitfield_unit.set(13usize, 1u8, { +let urg: u16 = unsafe { ::core::mem::transmute(urg) }; +urg as u64 +}); +__bindgen_bitfield_unit.set(14usize, 1u8, { +let ece: u16 = unsafe { ::core::mem::transmute(ece) }; +ece as u64 +}); +__bindgen_bitfield_unit.set(15usize, 1u8, { +let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; +cwr as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_info { +#[inline] +pub fn tcpi_snd_wscale(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +} +#[inline] +pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +} +} +#[inline] +pub fn tcpi_rcv_wscale(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +} +#[inline] +pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +} +#[inline] +pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(8usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +} +} +#[inline] +pub fn tcpi_fastopen_client_fail(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +} +#[inline] +pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(9usize, 2u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 4u8, { +let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; +tcpi_snd_wscale as u64 +}); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; +tcpi_rcv_wscale as u64 +}); +__bindgen_bitfield_unit.set(8usize, 1u8, { +let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; +tcpi_delivery_rate_app_limited as u64 +}); +__bindgen_bitfield_unit.set(9usize, 2u8, { +let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; +tcpi_fastopen_client_fail as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_add { +#[inline] +pub fn set_current(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_current(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_current_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_rnext(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_rnext(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 30u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; +set_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; +set_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 30u8, { +let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_del { +#[inline] +pub fn set_current(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_current(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_current_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_rnext(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_rnext(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn del_async(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +} +#[inline] +pub fn set_del_async(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn del_async_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 29u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; +set_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; +set_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 1u8, { +let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; +del_async as u64 +}); +__bindgen_bitfield_unit.set(3usize, 29u8, { +let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_info_opt { +#[inline] +pub fn set_current(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_current(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_current_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_rnext(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_rnext(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn ao_required(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +} +#[inline] +pub fn set_ao_required(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_counters(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_counters(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +} +} +#[inline] +pub fn accept_icmps(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +} +#[inline] +pub fn set_accept_icmps(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(5usize, 27u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; +set_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; +set_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 1u8, { +let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; +ao_required as u64 +}); +__bindgen_bitfield_unit.set(3usize, 1u8, { +let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; +set_counters as u64 +}); +__bindgen_bitfield_unit.set(4usize, 1u8, { +let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; +accept_icmps as u64 +}); +__bindgen_bitfield_unit.set(5usize, 27u8, { +let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_getsockopt { +#[inline] +pub fn is_current(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +} +#[inline] +pub fn set_is_current(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn is_current_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn is_rnext(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +} +#[inline] +pub fn set_is_rnext(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn get_all(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +} +#[inline] +pub fn set_get_all(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn get_all_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 13u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; +is_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; +is_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 1u8, { +let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; +get_all as u64 +}); +__bindgen_bitfield_unit.set(3usize, 13u8, { +let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl nf_inet_hooks { +pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS; +} +impl nf_ip_hook_priorities { +pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM; +} +impl hwtstamp_flags { +pub const HWTSTAMP_FLAG_LAST: hwtstamp_flags = hwtstamp_flags::HWTSTAMP_FLAG_BONDED_PHC_INDEX; +} +impl hwtstamp_flags { +pub const HWTSTAMP_FLAG_MASK: hwtstamp_flags = hwtstamp_flags::HWTSTAMP_FLAG_BONDED_PHC_INDEX; +} +impl txtime_flags { +pub const SOF_TXTIME_FLAGS_LAST: txtime_flags = txtime_flags::SOF_TXTIME_REPORT_ERRORS; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/netlink.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/netlink.rs new file mode 100644 index 0000000000000000000000000000000000000000..2498e226bde4a27437d38f0c51ae4845cb6e922d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/netlink.rs @@ -0,0 +1,5461 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __kernel_sa_family_t = crate::ctypes::c_ushort; +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __kernel_sockaddr_storage { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { +pub ss_family: __kernel_sa_family_t, +pub __data: [crate::ctypes::c_char; 126usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_nl { +pub nl_family: __kernel_sa_family_t, +pub nl_pad: crate::ctypes::c_ushort, +pub nl_pid: __u32, +pub nl_groups: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsghdr { +pub nlmsg_len: __u32, +pub nlmsg_type: __u16, +pub nlmsg_flags: __u16, +pub nlmsg_seq: __u32, +pub nlmsg_pid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsgerr { +pub error: crate::ctypes::c_int, +pub msg: nlmsghdr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_pktinfo { +pub group: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_req { +pub nm_block_size: crate::ctypes::c_uint, +pub nm_block_nr: crate::ctypes::c_uint, +pub nm_frame_size: crate::ctypes::c_uint, +pub nm_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_hdr { +pub nm_status: crate::ctypes::c_uint, +pub nm_len: crate::ctypes::c_uint, +pub nm_group: __u32, +pub nm_pid: __u32, +pub nm_uid: __u32, +pub nm_gid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlattr { +pub nla_len: __u16, +pub nla_type: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nla_bitfield32 { +pub value: __u32, +pub selector: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_sta_flag_update { +pub mask: __u32, +pub set: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_vht { +pub mcs: [__u16; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_he { +pub mcs: [__u16; 8usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_pattern_support { +pub max_patterns: __u32, +pub min_pattern_len: __u32, +pub max_pattern_len: __u32, +pub max_pkt_offset: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_wowlan_tcp_data_seq { +pub start: __u32, +pub offset: __u32, +pub len: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct nl80211_wowlan_tcp_data_token { +pub offset: __u32, +pub len: __u32, +pub token_stream: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_wowlan_tcp_data_token_feature { +pub min_len: __u32, +pub max_len: __u32, +pub bufsize: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_coalesce_rule_support { +pub max_rules: __u32, +pub pat: nl80211_pattern_support, +pub max_delay: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_vendor_cmd_info { +pub vendor_id: __u32, +pub subcmd: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_bss_select_rssi_adjust { +pub band: __u8, +pub delta: __s8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats { +pub rx_packets: __u32, +pub tx_packets: __u32, +pub rx_bytes: __u32, +pub tx_bytes: __u32, +pub rx_errors: __u32, +pub tx_errors: __u32, +pub rx_dropped: __u32, +pub tx_dropped: __u32, +pub multicast: __u32, +pub collisions: __u32, +pub rx_length_errors: __u32, +pub rx_over_errors: __u32, +pub rx_crc_errors: __u32, +pub rx_frame_errors: __u32, +pub rx_fifo_errors: __u32, +pub rx_missed_errors: __u32, +pub tx_aborted_errors: __u32, +pub tx_carrier_errors: __u32, +pub tx_fifo_errors: __u32, +pub tx_heartbeat_errors: __u32, +pub tx_window_errors: __u32, +pub rx_compressed: __u32, +pub tx_compressed: __u32, +pub rx_nohandler: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +pub collisions: __u64, +pub rx_length_errors: __u64, +pub rx_over_errors: __u64, +pub rx_crc_errors: __u64, +pub rx_frame_errors: __u64, +pub rx_fifo_errors: __u64, +pub rx_missed_errors: __u64, +pub tx_aborted_errors: __u64, +pub tx_carrier_errors: __u64, +pub tx_fifo_errors: __u64, +pub tx_heartbeat_errors: __u64, +pub tx_window_errors: __u64, +pub rx_compressed: __u64, +pub tx_compressed: __u64, +pub rx_nohandler: __u64, +pub rx_otherhost_dropped: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_hw_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_ifmap { +pub mem_start: __u64, +pub mem_end: __u64, +pub base_addr: __u64, +pub irq: __u16, +pub dma: __u8, +pub port: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_bridge_id { +pub prio: [__u8; 2usize], +pub addr: [__u8; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_cacheinfo { +pub max_reasm_len: __u32, +pub tstamp: __u32, +pub reachable_time: __u32, +pub retrans_time: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_qos_mapping { +pub from: __u32, +pub to: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tunnel_msg { +pub family: __u8, +pub flags: __u8, +pub reserved2: __u16, +pub ifindex: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vxlan_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_geneve_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_mac { +pub vf: __u32, +pub mac: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_broadcast { +pub broadcast: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan_info { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +pub vlan_proto: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_tx_rate { +pub vf: __u32, +pub rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rate { +pub vf: __u32, +pub min_tx_rate: __u32, +pub max_tx_rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_spoofchk { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_guid { +pub vf: __u32, +pub guid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_link_state { +pub vf: __u32, +pub link_state: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rss_query_en { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_trust { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_port_vsi { +pub vsi_mgr_id: __u8, +pub vsi_type_id: [__u8; 3usize], +pub vsi_type_version: __u8, +pub pad: [__u8; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct if_stats_msg { +pub family: __u8, +pub pad1: __u8, +pub pad2: __u16, +pub ifindex: __u32, +pub filter_mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_rmnet_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifaddrmsg { +pub ifa_family: __u8, +pub ifa_prefixlen: __u8, +pub ifa_flags: __u8, +pub ifa_scope: __u8, +pub ifa_index: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifa_cacheinfo { +pub ifa_prefered: __u32, +pub ifa_valid: __u32, +pub cstamp: __u32, +pub tstamp: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ndmsg { +pub ndm_family: __u8, +pub ndm_pad1: __u8, +pub ndm_pad2: __u16, +pub ndm_ifindex: __s32, +pub ndm_state: __u16, +pub ndm_flags: __u8, +pub ndm_type: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nda_cacheinfo { +pub ndm_confirmed: __u32, +pub ndm_used: __u32, +pub ndm_updated: __u32, +pub ndm_refcnt: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ndt_stats { +pub ndts_allocs: __u64, +pub ndts_destroys: __u64, +pub ndts_hash_grows: __u64, +pub ndts_res_failed: __u64, +pub ndts_lookups: __u64, +pub ndts_hits: __u64, +pub ndts_rcv_probes_mcast: __u64, +pub ndts_rcv_probes_ucast: __u64, +pub ndts_periodic_gc_runs: __u64, +pub ndts_forced_gc_runs: __u64, +pub ndts_table_fulls: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ndtmsg { +pub ndtm_family: __u8, +pub ndtm_pad1: __u8, +pub ndtm_pad2: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ndt_config { +pub ndtc_key_len: __u16, +pub ndtc_entry_size: __u16, +pub ndtc_entries: __u32, +pub ndtc_last_flush: __u32, +pub ndtc_last_rand: __u32, +pub ndtc_hash_rnd: __u32, +pub ndtc_hash_mask: __u32, +pub ndtc_hash_chain_gc: __u32, +pub ndtc_proxy_qlen: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtattr { +pub rta_len: crate::ctypes::c_ushort, +pub rta_type: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtmsg { +pub rtm_family: crate::ctypes::c_uchar, +pub rtm_dst_len: crate::ctypes::c_uchar, +pub rtm_src_len: crate::ctypes::c_uchar, +pub rtm_tos: crate::ctypes::c_uchar, +pub rtm_table: crate::ctypes::c_uchar, +pub rtm_protocol: crate::ctypes::c_uchar, +pub rtm_scope: crate::ctypes::c_uchar, +pub rtm_type: crate::ctypes::c_uchar, +pub rtm_flags: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnexthop { +pub rtnh_len: crate::ctypes::c_ushort, +pub rtnh_flags: crate::ctypes::c_uchar, +pub rtnh_hops: crate::ctypes::c_uchar, +pub rtnh_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug)] +pub struct rtvia { +pub rtvia_family: __kernel_sa_family_t, +pub rtvia_addr: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rta_cacheinfo { +pub rta_clntref: __u32, +pub rta_lastuse: __u32, +pub rta_expires: __s32, +pub rta_error: __u32, +pub rta_used: __u32, +pub rta_id: __u32, +pub rta_ts: __u32, +pub rta_tsage: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct rta_session { +pub proto: __u8, +pub pad1: __u8, +pub pad2: __u16, +pub u: rta_session__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rta_session__bindgen_ty_1__bindgen_ty_1 { +pub sport: __u16, +pub dport: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rta_session__bindgen_ty_1__bindgen_ty_2 { +pub type_: __u8, +pub code: __u8, +pub ident: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rta_mfc_stats { +pub mfcs_packets: __u64, +pub mfcs_bytes: __u64, +pub mfcs_wrong_if: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtgenmsg { +pub rtgen_family: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifinfomsg { +pub ifi_family: crate::ctypes::c_uchar, +pub __ifi_pad: crate::ctypes::c_uchar, +pub ifi_type: crate::ctypes::c_ushort, +pub ifi_index: crate::ctypes::c_int, +pub ifi_flags: crate::ctypes::c_uint, +pub ifi_change: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct prefixmsg { +pub prefix_family: crate::ctypes::c_uchar, +pub prefix_pad1: crate::ctypes::c_uchar, +pub prefix_pad2: crate::ctypes::c_ushort, +pub prefix_ifindex: crate::ctypes::c_int, +pub prefix_type: crate::ctypes::c_uchar, +pub prefix_len: crate::ctypes::c_uchar, +pub prefix_flags: crate::ctypes::c_uchar, +pub prefix_pad3: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct prefix_cacheinfo { +pub preferred_time: __u32, +pub valid_time: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcmsg { +pub tcm_family: crate::ctypes::c_uchar, +pub tcm__pad1: crate::ctypes::c_uchar, +pub tcm__pad2: crate::ctypes::c_ushort, +pub tcm_ifindex: crate::ctypes::c_int, +pub tcm_handle: __u32, +pub tcm_parent: __u32, +pub tcm_info: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nduseroptmsg { +pub nduseropt_family: crate::ctypes::c_uchar, +pub nduseropt_pad1: crate::ctypes::c_uchar, +pub nduseropt_opts_len: crate::ctypes::c_ushort, +pub nduseropt_ifindex: crate::ctypes::c_int, +pub nduseropt_icmp_type: __u8, +pub nduseropt_icmp_code: __u8, +pub nduseropt_pad2: crate::ctypes::c_ushort, +pub nduseropt_pad3: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcamsg { +pub tca_family: crate::ctypes::c_uchar, +pub tca__pad1: crate::ctypes::c_uchar, +pub tca__pad2: crate::ctypes::c_ushort, +} +pub const _K_SS_MAXSIZE: u32 = 128; +pub const SOCK_SNDBUF_LOCK: u32 = 1; +pub const SOCK_RCVBUF_LOCK: u32 = 2; +pub const SOCK_BUF_LOCK_MASK: u32 = 3; +pub const SOCK_TXREHASH_DEFAULT: u32 = 255; +pub const SOCK_TXREHASH_DISABLED: u32 = 0; +pub const SOCK_TXREHASH_ENABLED: u32 = 1; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const NETLINK_ROUTE: u32 = 0; +pub const NETLINK_UNUSED: u32 = 1; +pub const NETLINK_USERSOCK: u32 = 2; +pub const NETLINK_FIREWALL: u32 = 3; +pub const NETLINK_SOCK_DIAG: u32 = 4; +pub const NETLINK_NFLOG: u32 = 5; +pub const NETLINK_XFRM: u32 = 6; +pub const NETLINK_SELINUX: u32 = 7; +pub const NETLINK_ISCSI: u32 = 8; +pub const NETLINK_AUDIT: u32 = 9; +pub const NETLINK_FIB_LOOKUP: u32 = 10; +pub const NETLINK_CONNECTOR: u32 = 11; +pub const NETLINK_NETFILTER: u32 = 12; +pub const NETLINK_IP6_FW: u32 = 13; +pub const NETLINK_DNRTMSG: u32 = 14; +pub const NETLINK_KOBJECT_UEVENT: u32 = 15; +pub const NETLINK_GENERIC: u32 = 16; +pub const NETLINK_SCSITRANSPORT: u32 = 18; +pub const NETLINK_ECRYPTFS: u32 = 19; +pub const NETLINK_RDMA: u32 = 20; +pub const NETLINK_CRYPTO: u32 = 21; +pub const NETLINK_SMC: u32 = 22; +pub const NETLINK_INET_DIAG: u32 = 4; +pub const MAX_LINKS: u32 = 32; +pub const NLM_F_REQUEST: u32 = 1; +pub const NLM_F_MULTI: u32 = 2; +pub const NLM_F_ACK: u32 = 4; +pub const NLM_F_ECHO: u32 = 8; +pub const NLM_F_DUMP_INTR: u32 = 16; +pub const NLM_F_DUMP_FILTERED: u32 = 32; +pub const NLM_F_ROOT: u32 = 256; +pub const NLM_F_MATCH: u32 = 512; +pub const NLM_F_ATOMIC: u32 = 1024; +pub const NLM_F_DUMP: u32 = 768; +pub const NLM_F_REPLACE: u32 = 256; +pub const NLM_F_EXCL: u32 = 512; +pub const NLM_F_CREATE: u32 = 1024; +pub const NLM_F_APPEND: u32 = 2048; +pub const NLM_F_NONREC: u32 = 256; +pub const NLM_F_BULK: u32 = 512; +pub const NLM_F_CAPPED: u32 = 256; +pub const NLM_F_ACK_TLVS: u32 = 512; +pub const NLMSG_ALIGNTO: u32 = 4; +pub const NLMSG_NOOP: u32 = 1; +pub const NLMSG_ERROR: u32 = 2; +pub const NLMSG_DONE: u32 = 3; +pub const NLMSG_OVERRUN: u32 = 4; +pub const NLMSG_MIN_TYPE: u32 = 16; +pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; +pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; +pub const NETLINK_PKTINFO: u32 = 3; +pub const NETLINK_BROADCAST_ERROR: u32 = 4; +pub const NETLINK_NO_ENOBUFS: u32 = 5; +pub const NETLINK_RX_RING: u32 = 6; +pub const NETLINK_TX_RING: u32 = 7; +pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; +pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; +pub const NETLINK_CAP_ACK: u32 = 10; +pub const NETLINK_EXT_ACK: u32 = 11; +pub const NETLINK_GET_STRICT_CHK: u32 = 12; +pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; +pub const NET_MAJOR: u32 = 36; +pub const NLA_F_NESTED: u32 = 32768; +pub const NLA_F_NET_BYTEORDER: u32 = 16384; +pub const NLA_TYPE_MASK: i32 = -49153; +pub const NLA_ALIGNTO: u32 = 4; +pub const NL80211_GENL_NAME: &[u8; 8] = b"nl80211\0"; +pub const NL80211_MULTICAST_GROUP_CONFIG: &[u8; 7] = b"config\0"; +pub const NL80211_MULTICAST_GROUP_SCAN: &[u8; 5] = b"scan\0"; +pub const NL80211_MULTICAST_GROUP_REG: &[u8; 11] = b"regulatory\0"; +pub const NL80211_MULTICAST_GROUP_MLME: &[u8; 5] = b"mlme\0"; +pub const NL80211_MULTICAST_GROUP_VENDOR: &[u8; 7] = b"vendor\0"; +pub const NL80211_MULTICAST_GROUP_NAN: &[u8; 4] = b"nan\0"; +pub const NL80211_MULTICAST_GROUP_TESTMODE: &[u8; 9] = b"testmode\0"; +pub const NL80211_EDMG_BW_CONFIG_MIN: u32 = 4; +pub const NL80211_EDMG_BW_CONFIG_MAX: u32 = 15; +pub const NL80211_EDMG_CHANNELS_MIN: u32 = 1; +pub const NL80211_EDMG_CHANNELS_MAX: u32 = 60; +pub const NL80211_WIPHY_NAME_MAXLEN: u32 = 64; +pub const NL80211_MAX_SUPP_RATES: u32 = 32; +pub const NL80211_MAX_SUPP_SELECTORS: u32 = 128; +pub const NL80211_MAX_SUPP_HT_RATES: u32 = 77; +pub const NL80211_MAX_SUPP_REG_RULES: u32 = 128; +pub const NL80211_TKIP_DATA_OFFSET_ENCR_KEY: u32 = 0; +pub const NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY: u32 = 16; +pub const NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY: u32 = 24; +pub const NL80211_HT_CAPABILITY_LEN: u32 = 26; +pub const NL80211_VHT_CAPABILITY_LEN: u32 = 12; +pub const NL80211_HE_MIN_CAPABILITY_LEN: u32 = 16; +pub const NL80211_HE_MAX_CAPABILITY_LEN: u32 = 54; +pub const NL80211_MAX_NR_CIPHER_SUITES: u32 = 5; +pub const NL80211_MAX_NR_AKM_SUITES: u32 = 2; +pub const NL80211_EHT_MIN_CAPABILITY_LEN: u32 = 13; +pub const NL80211_EHT_MAX_CAPABILITY_LEN: u32 = 51; +pub const NL80211_MIN_REMAIN_ON_CHANNEL_TIME: u32 = 10; +pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; +pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; +pub const NL80211_VHT_NSS_MAX: u32 = 8; +pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_KCK_LEN: u32 = 16; +pub const NL80211_KEK_LEN: u32 = 16; +pub const NL80211_KCK_EXT_LEN: u32 = 24; +pub const NL80211_KEK_EXT_LEN: u32 = 32; +pub const NL80211_KCK_EXT_LEN_32: u32 = 32; +pub const NL80211_REPLAY_CTR_LEN: u32 = 8; +pub const NL80211_CRIT_PROTO_MAX_DURATION: u32 = 5000; +pub const NL80211_VENDOR_ID_IS_LINUX: u32 = 2147483648; +pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; +pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; +pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; +pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; +pub const MACVLAN_FLAG_NODST: u32 = 2; +pub const IPVLAN_F_PRIVATE: u32 = 1; +pub const IPVLAN_F_VEPA: u32 = 2; +pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; +pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; +pub const MAX_VLAN_LIST_LEN: u32 = 1; +pub const PORT_PROFILE_MAX: u32 = 40; +pub const PORT_UUID_MAX: u32 = 16; +pub const PORT_SELF_VF: i32 = -1; +pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; +pub const XDP_FLAGS_SKB_MODE: u32 = 2; +pub const XDP_FLAGS_DRV_MODE: u32 = 4; +pub const XDP_FLAGS_HW_MODE: u32 = 8; +pub const XDP_FLAGS_REPLACE: u32 = 16; +pub const XDP_FLAGS_MODES: u32 = 14; +pub const XDP_FLAGS_MASK: u32 = 31; +pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; +pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; +pub const IFA_F_SECONDARY: u32 = 1; +pub const IFA_F_TEMPORARY: u32 = 1; +pub const IFA_F_NODAD: u32 = 2; +pub const IFA_F_OPTIMISTIC: u32 = 4; +pub const IFA_F_DADFAILED: u32 = 8; +pub const IFA_F_HOMEADDRESS: u32 = 16; +pub const IFA_F_DEPRECATED: u32 = 32; +pub const IFA_F_TENTATIVE: u32 = 64; +pub const IFA_F_PERMANENT: u32 = 128; +pub const IFA_F_MANAGETEMPADDR: u32 = 256; +pub const IFA_F_NOPREFIXROUTE: u32 = 512; +pub const IFA_F_MCAUTOJOIN: u32 = 1024; +pub const IFA_F_STABLE_PRIVACY: u32 = 2048; +pub const IFAPROT_UNSPEC: u32 = 0; +pub const IFAPROT_KERNEL_LO: u32 = 1; +pub const IFAPROT_KERNEL_RA: u32 = 2; +pub const IFAPROT_KERNEL_LL: u32 = 3; +pub const NTF_USE: u32 = 1; +pub const NTF_SELF: u32 = 2; +pub const NTF_MASTER: u32 = 4; +pub const NTF_PROXY: u32 = 8; +pub const NTF_EXT_LEARNED: u32 = 16; +pub const NTF_OFFLOADED: u32 = 32; +pub const NTF_STICKY: u32 = 64; +pub const NTF_ROUTER: u32 = 128; +pub const NTF_EXT_MANAGED: u32 = 1; +pub const NTF_EXT_LOCKED: u32 = 2; +pub const NUD_INCOMPLETE: u32 = 1; +pub const NUD_REACHABLE: u32 = 2; +pub const NUD_STALE: u32 = 4; +pub const NUD_DELAY: u32 = 8; +pub const NUD_PROBE: u32 = 16; +pub const NUD_FAILED: u32 = 32; +pub const NUD_NOARP: u32 = 64; +pub const NUD_PERMANENT: u32 = 128; +pub const NUD_NONE: u32 = 0; +pub const RTNL_FAMILY_IPMR: u32 = 128; +pub const RTNL_FAMILY_IP6MR: u32 = 129; +pub const RTNL_FAMILY_MAX: u32 = 129; +pub const RTA_ALIGNTO: u32 = 4; +pub const RTPROT_UNSPEC: u32 = 0; +pub const RTPROT_REDIRECT: u32 = 1; +pub const RTPROT_KERNEL: u32 = 2; +pub const RTPROT_BOOT: u32 = 3; +pub const RTPROT_STATIC: u32 = 4; +pub const RTPROT_GATED: u32 = 8; +pub const RTPROT_RA: u32 = 9; +pub const RTPROT_MRT: u32 = 10; +pub const RTPROT_ZEBRA: u32 = 11; +pub const RTPROT_BIRD: u32 = 12; +pub const RTPROT_DNROUTED: u32 = 13; +pub const RTPROT_XORP: u32 = 14; +pub const RTPROT_NTK: u32 = 15; +pub const RTPROT_DHCP: u32 = 16; +pub const RTPROT_MROUTED: u32 = 17; +pub const RTPROT_KEEPALIVED: u32 = 18; +pub const RTPROT_BABEL: u32 = 42; +pub const RTPROT_OVN: u32 = 84; +pub const RTPROT_OPENR: u32 = 99; +pub const RTPROT_BGP: u32 = 186; +pub const RTPROT_ISIS: u32 = 187; +pub const RTPROT_OSPF: u32 = 188; +pub const RTPROT_RIP: u32 = 189; +pub const RTPROT_EIGRP: u32 = 192; +pub const RTM_F_NOTIFY: u32 = 256; +pub const RTM_F_CLONED: u32 = 512; +pub const RTM_F_EQUALIZE: u32 = 1024; +pub const RTM_F_PREFIX: u32 = 2048; +pub const RTM_F_LOOKUP_TABLE: u32 = 4096; +pub const RTM_F_FIB_MATCH: u32 = 8192; +pub const RTM_F_OFFLOAD: u32 = 16384; +pub const RTM_F_TRAP: u32 = 32768; +pub const RTM_F_OFFLOAD_FAILED: u32 = 536870912; +pub const RTNH_F_DEAD: u32 = 1; +pub const RTNH_F_PERVASIVE: u32 = 2; +pub const RTNH_F_ONLINK: u32 = 4; +pub const RTNH_F_OFFLOAD: u32 = 8; +pub const RTNH_F_LINKDOWN: u32 = 16; +pub const RTNH_F_UNRESOLVED: u32 = 32; +pub const RTNH_F_TRAP: u32 = 64; +pub const RTNH_COMPARE_MASK: u32 = 89; +pub const RTNH_ALIGNTO: u32 = 4; +pub const RTNETLINK_HAVE_PEERINFO: u32 = 1; +pub const RTAX_FEATURE_ECN: u32 = 1; +pub const RTAX_FEATURE_SACK: u32 = 2; +pub const RTAX_FEATURE_TIMESTAMP: u32 = 4; +pub const RTAX_FEATURE_ALLFRAG: u32 = 8; +pub const RTAX_FEATURE_TCP_USEC_TS: u32 = 16; +pub const RTAX_FEATURE_MASK: u32 = 31; +pub const TCM_IFINDEX_MAGIC_BLOCK: u32 = 4294967295; +pub const TCA_DUMP_FLAGS_TERSE: u32 = 1; +pub const RTMGRP_LINK: u32 = 1; +pub const RTMGRP_NOTIFY: u32 = 2; +pub const RTMGRP_NEIGH: u32 = 4; +pub const RTMGRP_TC: u32 = 8; +pub const RTMGRP_IPV4_IFADDR: u32 = 16; +pub const RTMGRP_IPV4_MROUTE: u32 = 32; +pub const RTMGRP_IPV4_ROUTE: u32 = 64; +pub const RTMGRP_IPV4_RULE: u32 = 128; +pub const RTMGRP_IPV6_IFADDR: u32 = 256; +pub const RTMGRP_IPV6_MROUTE: u32 = 512; +pub const RTMGRP_IPV6_ROUTE: u32 = 1024; +pub const RTMGRP_IPV6_IFINFO: u32 = 2048; +pub const RTMGRP_DECnet_IFADDR: u32 = 4096; +pub const RTMGRP_DECnet_ROUTE: u32 = 16384; +pub const RTMGRP_IPV6_PREFIX: u32 = 131072; +pub const TCA_FLAG_LARGE_DUMP_ON: u32 = 1; +pub const TCA_ACT_FLAG_LARGE_DUMP_ON: u32 = 1; +pub const TCA_ACT_FLAG_TERSE_DUMP: u32 = 2; +pub const RTEXT_FILTER_VF: u32 = 1; +pub const RTEXT_FILTER_BRVLAN: u32 = 2; +pub const RTEXT_FILTER_BRVLAN_COMPRESSED: u32 = 4; +pub const RTEXT_FILTER_SKIP_STATS: u32 = 8; +pub const RTEXT_FILTER_MRP: u32 = 16; +pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; +pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; +pub const RTEXT_FILTER_MST: u32 = 128; +pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED; +pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED; +pub const IFLA_UNSPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_UNSPEC; +pub const IFLA_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ADDRESS; +pub const IFLA_BROADCAST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_BROADCAST; +pub const IFLA_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFNAME; +pub const IFLA_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MTU; +pub const IFLA_LINK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK; +pub const IFLA_QDISC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_QDISC; +pub const IFLA_STATS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS; +pub const IFLA_COST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_COST; +pub const IFLA_PRIORITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PRIORITY; +pub const IFLA_MASTER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MASTER; +pub const IFLA_WIRELESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WIRELESS; +pub const IFLA_PROTINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTINFO; +pub const IFLA_TXQLEN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TXQLEN; +pub const IFLA_MAP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAP; +pub const IFLA_WEIGHT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WEIGHT; +pub const IFLA_OPERSTATE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_OPERSTATE; +pub const IFLA_LINKMODE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKMODE; +pub const IFLA_LINKINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKINFO; +pub const IFLA_NET_NS_PID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_PID; +pub const IFLA_IFALIAS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFALIAS; +pub const IFLA_NUM_VF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_VF; +pub const IFLA_VFINFO_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VFINFO_LIST; +pub const IFLA_STATS64: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS64; +pub const IFLA_VF_PORTS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VF_PORTS; +pub const IFLA_PORT_SELF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PORT_SELF; +pub const IFLA_AF_SPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_AF_SPEC; +pub const IFLA_GROUP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GROUP; +pub const IFLA_NET_NS_FD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_FD; +pub const IFLA_EXT_MASK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EXT_MASK; +pub const IFLA_PROMISCUITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROMISCUITY; +pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_TX_QUEUES; +pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_RX_QUEUES; +pub const IFLA_CARRIER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER; +pub const IFLA_PHYS_PORT_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_ID; +pub const IFLA_CARRIER_CHANGES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_CHANGES; +pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_SWITCH_ID; +pub const IFLA_LINK_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK_NETNSID; +pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_NAME; +pub const IFLA_PROTO_DOWN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN; +pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SEGS; +pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SIZE; +pub const IFLA_PAD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PAD; +pub const IFLA_XDP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_XDP; +pub const IFLA_EVENT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EVENT; +pub const IFLA_NEW_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_NETNSID; +pub const IFLA_IF_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; +pub const IFLA_TARGET_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; +pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_UP_COUNT; +pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_DOWN_COUNT; +pub const IFLA_NEW_IFINDEX: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_IFINDEX; +pub const IFLA_MIN_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MIN_MTU; +pub const IFLA_MAX_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_MTU; +pub const IFLA_PROP_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROP_LIST; +pub const IFLA_ALT_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALT_IFNAME; +pub const IFLA_PERM_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PERM_ADDRESS; +pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN_REASON; +pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_NAME; +pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_BUS_NAME; +pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_MAX_SIZE; +pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SIZE; +pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SEGS; +pub const IFLA_ALLMULTI: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALLMULTI; +pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; +pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; +pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; +pub const IFLA_DPLL_PIN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_PACING_OFFLOAD_HORIZON; +pub const IFLA_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; +pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; +pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; +pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; +pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_3 = _bindgen_ty_3::__IFLA_PROTO_DOWN_REASON_CNT; +pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; +pub const IFLA_INET_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_UNSPEC; +pub const IFLA_INET_CONF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_CONF; +pub const __IFLA_INET_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_INET_MAX; +pub const IFLA_INET6_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_UNSPEC; +pub const IFLA_INET6_FLAGS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_FLAGS; +pub const IFLA_INET6_CONF: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CONF; +pub const IFLA_INET6_STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_STATS; +pub const IFLA_INET6_MCAST: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_MCAST; +pub const IFLA_INET6_CACHEINFO: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CACHEINFO; +pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ICMP6STATS; +pub const IFLA_INET6_TOKEN: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_TOKEN; +pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ADDR_GEN_MODE; +pub const IFLA_INET6_RA_MTU: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_RA_MTU; +pub const __IFLA_INET6_MAX: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_INET6_MAX; +pub const IFLA_BR_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_UNSPEC; +pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FORWARD_DELAY; +pub const IFLA_BR_HELLO_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIME; +pub const IFLA_BR_MAX_AGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MAX_AGE; +pub const IFLA_BR_AGEING_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_AGEING_TIME; +pub const IFLA_BR_STP_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_STATE; +pub const IFLA_BR_PRIORITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PRIORITY; +pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_FILTERING; +pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_PROTOCOL; +pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_FWD_MASK; +pub const IFLA_BR_ROOT_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_ID; +pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_BRIDGE_ID; +pub const IFLA_BR_ROOT_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PORT; +pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PATH_COST; +pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE; +pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; +pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIMER; +pub const IFLA_BR_TCN_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TCN_TIMER; +pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_TIMER; +pub const IFLA_BR_GC_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GC_TIMER; +pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_ADDR; +pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_FLUSH; +pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_ROUTER; +pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_SNOOPING; +pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_USE_IFADDR; +pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER; +pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_ELASTICITY; +pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_MAX; +pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_CNT; +pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_CNT; +pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_INTVL; +pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MEMBERSHIP_INTVL; +pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_INTVL; +pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_INTVL; +pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; +pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; +pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IPTABLES; +pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IP6TABLES; +pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_ARPTABLES; +pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_DEFAULT_PVID; +pub const IFLA_BR_PAD: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PAD; +pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_ENABLED; +pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STATS_ENABLED; +pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_IGMP_VERSION; +pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MLD_VERSION; +pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_PER_PORT; +pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BOOLOPT; +pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; +pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; +pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; +pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; +pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; +pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNSPEC; +pub const IFLA_BRPORT_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_STATE; +pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PRIORITY; +pub const IFLA_BRPORT_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_COST; +pub const IFLA_BRPORT_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MODE; +pub const IFLA_BRPORT_GUARD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GUARD; +pub const IFLA_BRPORT_PROTECT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROTECT; +pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FAST_LEAVE; +pub const IFLA_BRPORT_LEARNING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING; +pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNICAST_FLOOD; +pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP; +pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING_SYNC; +pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP_WIFI; +pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ROOT_ID; +pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BRIDGE_ID; +pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_PORT; +pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_COST; +pub const IFLA_BRPORT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ID; +pub const IFLA_BRPORT_NO: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NO; +pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; +pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_CONFIG_PENDING; +pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MESSAGE_AGE_TIMER; +pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FORWARD_DELAY_TIMER; +pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_HOLD_TIMER; +pub const IFLA_BRPORT_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FLUSH; +pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MULTICAST_ROUTER; +pub const IFLA_BRPORT_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PAD; +pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_FLOOD; +pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_TO_UCAST; +pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_VLAN_TUNNEL; +pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BCAST_FLOOD; +pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GROUP_FWD_MASK; +pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_SUPPRESS; +pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ISOLATED; +pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_PORT; +pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_RING_OPEN; +pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_IN_OPEN; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; +pub const IFLA_BRPORT_LOCKED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LOCKED; +pub const IFLA_BRPORT_MAB: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MAB; +pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_N_GROUPS; +pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; +pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; +pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; +pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; +pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; +pub const IFLA_INFO_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_DATA; +pub const IFLA_INFO_XSTATS: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_XSTATS; +pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_KIND; +pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_DATA; +pub const __IFLA_INFO_MAX: _bindgen_ty_9 = _bindgen_ty_9::__IFLA_INFO_MAX; +pub const IFLA_VLAN_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_UNSPEC; +pub const IFLA_VLAN_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_ID; +pub const IFLA_VLAN_FLAGS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_FLAGS; +pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_EGRESS_QOS; +pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_INGRESS_QOS; +pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_PROTOCOL; +pub const __IFLA_VLAN_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_VLAN_MAX; +pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_UNSPEC; +pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_MAPPING; +pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_VLAN_QOS_MAX; +pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_UNSPEC; +pub const IFLA_MACVLAN_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MODE; +pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_FLAGS; +pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_MODE; +pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR; +pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_DATA; +pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_COUNT; +pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN; +pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN_USED; +pub const IFLA_MACVLAN_BC_CUTOFF: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_CUTOFF; +pub const __IFLA_MACVLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_MACVLAN_MAX; +pub const IFLA_VRF_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_UNSPEC; +pub const IFLA_VRF_TABLE: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_TABLE; +pub const __IFLA_VRF_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VRF_MAX; +pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_UNSPEC; +pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_TABLE; +pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_VRF_PORT_MAX; +pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_UNSPEC; +pub const IFLA_MACSEC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCI; +pub const IFLA_MACSEC_PORT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PORT; +pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ICV_LEN; +pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_CIPHER_SUITE; +pub const IFLA_MACSEC_WINDOW: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_WINDOW; +pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCODING_SA; +pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCRYPT; +pub const IFLA_MACSEC_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PROTECT; +pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_INC_SCI; +pub const IFLA_MACSEC_ES: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ES; +pub const IFLA_MACSEC_SCB: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCB; +pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_REPLAY_PROTECT; +pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_VALIDATION; +pub const IFLA_MACSEC_PAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PAD; +pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_OFFLOAD; +pub const __IFLA_MACSEC_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_MACSEC_MAX; +pub const IFLA_XFRM_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_UNSPEC; +pub const IFLA_XFRM_LINK: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_LINK; +pub const IFLA_XFRM_IF_ID: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_IF_ID; +pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_COLLECT_METADATA; +pub const __IFLA_XFRM_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_XFRM_MAX; +pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_UNSPEC; +pub const IFLA_IPVLAN_MODE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_MODE; +pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_FLAGS; +pub const __IFLA_IPVLAN_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_IPVLAN_MAX; +pub const IFLA_NETKIT_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_UNSPEC; +pub const IFLA_NETKIT_PEER_INFO: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_INFO; +pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PRIMARY; +pub const IFLA_NETKIT_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_POLICY; +pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_POLICY; +pub const IFLA_NETKIT_MODE: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_SCRUB; +pub const IFLA_NETKIT_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; +pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const __IFLA_NETKIT_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_NETKIT_MAX; +pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_UNSPEC; +pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_BYTES; +pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_PKTS; +pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_DROPS; +pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_TX_BYTES; +pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_TX_PKTS; +pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_TX_DROPS; +pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_TX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_PAD; +pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_19 = _bindgen_ty_19::__VNIFILTER_ENTRY_STATS_MAX; +pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_START; +pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_END; +pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_GROUP; +pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_GROUP6; +pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_STATS; +pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_20 = _bindgen_ty_20::__VXLAN_VNIFILTER_ENTRY_MAX; +pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VXLAN_VNIFILTER_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_21 = _bindgen_ty_21::VXLAN_VNIFILTER_ENTRY; +pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_21 = _bindgen_ty_21::__VXLAN_VNIFILTER_MAX; +pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_UNSPEC; +pub const IFLA_VXLAN_ID: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_ID; +pub const IFLA_VXLAN_GROUP: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_GROUP; +pub const IFLA_VXLAN_LINK: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LINK; +pub const IFLA_VXLAN_LOCAL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LOCAL; +pub const IFLA_VXLAN_TTL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_TTL; +pub const IFLA_VXLAN_TOS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_TOS; +pub const IFLA_VXLAN_LEARNING: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LEARNING; +pub const IFLA_VXLAN_AGEING: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_AGEING; +pub const IFLA_VXLAN_LIMIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LIMIT; +pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_PORT_RANGE; +pub const IFLA_VXLAN_PROXY: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_PROXY; +pub const IFLA_VXLAN_RSC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_RSC; +pub const IFLA_VXLAN_L2MISS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_L2MISS; +pub const IFLA_VXLAN_L3MISS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_L3MISS; +pub const IFLA_VXLAN_PORT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_PORT; +pub const IFLA_VXLAN_GROUP6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_GROUP6; +pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LOCAL6; +pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_UDP_CSUM; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; +pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_REMCSUM_TX; +pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_REMCSUM_RX; +pub const IFLA_VXLAN_GBP: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_GBP; +pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_REMCSUM_NOPARTIAL; +pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_COLLECT_METADATA; +pub const IFLA_VXLAN_LABEL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LABEL; +pub const IFLA_VXLAN_GPE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_GPE; +pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_TTL_INHERIT; +pub const IFLA_VXLAN_DF: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_DF; +pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_VNIFILTER; +pub const IFLA_VXLAN_LOCALBYPASS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LOCALBYPASS; +pub const IFLA_VXLAN_LABEL_POLICY: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LABEL_POLICY; +pub const IFLA_VXLAN_RESERVED_BITS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_RESERVED_BITS; +pub const __IFLA_VXLAN_MAX: _bindgen_ty_22 = _bindgen_ty_22::__IFLA_VXLAN_MAX; +pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_UNSPEC; +pub const IFLA_GENEVE_ID: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ID; +pub const IFLA_GENEVE_REMOTE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_REMOTE; +pub const IFLA_GENEVE_TTL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_TTL; +pub const IFLA_GENEVE_TOS: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_TOS; +pub const IFLA_GENEVE_PORT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT; +pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_COLLECT_METADATA; +pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_REMOTE6; +pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_UDP_CSUM; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; +pub const IFLA_GENEVE_LABEL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LABEL; +pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_TTL_INHERIT; +pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; +pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; +pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; +pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; +pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; +pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_ETHERTYPE; +pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_SRCPORT_MIN; +pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_MULTIPROTO_MODE; +pub const __IFLA_BAREUDP_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_BAREUDP_MAX; +pub const IFLA_PPP_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_PPP_UNSPEC; +pub const IFLA_PPP_DEV_FD: _bindgen_ty_25 = _bindgen_ty_25::IFLA_PPP_DEV_FD; +pub const __IFLA_PPP_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_PPP_MAX; +pub const IFLA_GTP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_UNSPEC; +pub const IFLA_GTP_FD0: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_FD0; +pub const IFLA_GTP_FD1: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_FD1; +pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_PDP_HASHSIZE; +pub const IFLA_GTP_ROLE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_ROLE; +pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_CREATE_SOCKETS; +pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_RESTART_COUNT; +pub const IFLA_GTP_LOCAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_LOCAL; +pub const IFLA_GTP_LOCAL6: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_LOCAL6; +pub const __IFLA_GTP_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_GTP_MAX; +pub const IFLA_BOND_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_UNSPEC; +pub const IFLA_BOND_MODE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MODE; +pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ACTIVE_SLAVE; +pub const IFLA_BOND_MIIMON: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MIIMON; +pub const IFLA_BOND_UPDELAY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_UPDELAY; +pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_DOWNDELAY; +pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_USE_CARRIER; +pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ARP_INTERVAL; +pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ARP_IP_TARGET; +pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ARP_VALIDATE; +pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ARP_ALL_TARGETS; +pub const IFLA_BOND_PRIMARY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_PRIMARY; +pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_PRIMARY_RESELECT; +pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_FAIL_OVER_MAC; +pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_XMIT_HASH_POLICY; +pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_RESEND_IGMP; +pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NUM_PEER_NOTIF; +pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ALL_SLAVES_ACTIVE; +pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MIN_LINKS; +pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LP_INTERVAL; +pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_PACKETS_PER_SLAVE; +pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_LACP_RATE; +pub const IFLA_BOND_AD_SELECT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_SELECT; +pub const IFLA_BOND_AD_INFO: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO; +pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_ACTOR_SYS_PRIO; +pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_USER_PORT_KEY; +pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_ACTOR_SYSTEM; +pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_TLB_DYNAMIC_LB; +pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_PEER_NOTIF_DELAY; +pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_LACP_ACTIVE; +pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSED_MAX; +pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; +pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; +pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; +pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; +pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; +pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_NUM_PORTS; +pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_ACTOR_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_PARTNER_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_PARTNER_MAC; +pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_BOND_AD_INFO_MAX; +pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_UNSPEC; +pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_STATE; +pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_MII_STATUS; +pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; +pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PERM_HWADDR; +pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_QUEUE_ID; +pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; +pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; +pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; +pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; +pub const __IFLA_VF_INFO_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_VF_INFO_MAX; +pub const IFLA_VF_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_UNSPEC; +pub const IFLA_VF_MAC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_MAC; +pub const IFLA_VF_VLAN: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN; +pub const IFLA_VF_TX_RATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_TX_RATE; +pub const IFLA_VF_SPOOFCHK: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_SPOOFCHK; +pub const IFLA_VF_LINK_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_LINK_STATE; +pub const IFLA_VF_RATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_RATE; +pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_RSS_QUERY_EN; +pub const IFLA_VF_STATS: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_STATS; +pub const IFLA_VF_TRUST: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_TRUST; +pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_IB_NODE_GUID; +pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_IB_PORT_GUID; +pub const IFLA_VF_VLAN_LIST: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_LIST; +pub const IFLA_VF_BROADCAST: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_BROADCAST; +pub const __IFLA_VF_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_VF_MAX; +pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_VLAN_INFO_UNSPEC; +pub const IFLA_VF_VLAN_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_VLAN_INFO; +pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_VLAN_INFO_MAX; +pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_LINK_STATE_AUTO; +pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_LINK_STATE_ENABLE; +pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_LINK_STATE_DISABLE; +pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_LINK_STATE_MAX; +pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_RX_PACKETS; +pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_TX_PACKETS; +pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_RX_BYTES; +pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_TX_BYTES; +pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_BROADCAST; +pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_MULTICAST; +pub const IFLA_VF_STATS_PAD: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_PAD; +pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_RX_DROPPED; +pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_TX_DROPPED; +pub const __IFLA_VF_STATS_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_STATS_MAX; +pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_PORT_UNSPEC; +pub const IFLA_VF_PORT: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_PORT; +pub const __IFLA_VF_PORT_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_VF_PORT_MAX; +pub const IFLA_PORT_UNSPEC: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_UNSPEC; +pub const IFLA_PORT_VF: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_VF; +pub const IFLA_PORT_PROFILE: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_PROFILE; +pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_VSI_TYPE; +pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_INSTANCE_UUID; +pub const IFLA_PORT_HOST_UUID: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_HOST_UUID; +pub const IFLA_PORT_REQUEST: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_REQUEST; +pub const IFLA_PORT_RESPONSE: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_RESPONSE; +pub const __IFLA_PORT_MAX: _bindgen_ty_36 = _bindgen_ty_36::__IFLA_PORT_MAX; +pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_REQUEST_PREASSOCIATE; +pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_37 = _bindgen_ty_37::PORT_REQUEST_PREASSOCIATE_RR; +pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_REQUEST_ASSOCIATE; +pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_REQUEST_DISASSOCIATE; +pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_SUCCESS; +pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_INVALID_FORMAT; +pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_UNUSED_VTID; +pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_VTID_VIOLATION; +pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; +pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_OUT_OF_SYNC; +pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_SUCCESS; +pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_INPROGRESS; +pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_INVALID; +pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_BADSTATE; +pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_ERROR; +pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_39 = _bindgen_ty_39::IFLA_IPOIB_UNSPEC; +pub const IFLA_IPOIB_PKEY: _bindgen_ty_39 = _bindgen_ty_39::IFLA_IPOIB_PKEY; +pub const IFLA_IPOIB_MODE: _bindgen_ty_39 = _bindgen_ty_39::IFLA_IPOIB_MODE; +pub const IFLA_IPOIB_UMCAST: _bindgen_ty_39 = _bindgen_ty_39::IFLA_IPOIB_UMCAST; +pub const __IFLA_IPOIB_MAX: _bindgen_ty_39 = _bindgen_ty_39::__IFLA_IPOIB_MAX; +pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_40 = _bindgen_ty_40::IPOIB_MODE_DATAGRAM; +pub const IPOIB_MODE_CONNECTED: _bindgen_ty_40 = _bindgen_ty_40::IPOIB_MODE_CONNECTED; +pub const HSR_PROTOCOL_HSR: _bindgen_ty_41 = _bindgen_ty_41::HSR_PROTOCOL_HSR; +pub const HSR_PROTOCOL_PRP: _bindgen_ty_41 = _bindgen_ty_41::HSR_PROTOCOL_PRP; +pub const HSR_PROTOCOL_MAX: _bindgen_ty_41 = _bindgen_ty_41::HSR_PROTOCOL_MAX; +pub const IFLA_HSR_UNSPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_UNSPEC; +pub const IFLA_HSR_SLAVE1: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_SLAVE1; +pub const IFLA_HSR_SLAVE2: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_SLAVE2; +pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_MULTICAST_SPEC; +pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_SUPERVISION_ADDR; +pub const IFLA_HSR_SEQ_NR: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_SEQ_NR; +pub const IFLA_HSR_VERSION: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_VERSION; +pub const IFLA_HSR_PROTOCOL: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_PROTOCOL; +pub const IFLA_HSR_INTERLINK: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_INTERLINK; +pub const __IFLA_HSR_MAX: _bindgen_ty_42 = _bindgen_ty_42::__IFLA_HSR_MAX; +pub const IFLA_STATS_UNSPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_UNSPEC; +pub const IFLA_STATS_LINK_64: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_LINK_64; +pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_LINK_XSTATS; +pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_LINK_XSTATS_SLAVE; +pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_LINK_OFFLOAD_XSTATS; +pub const IFLA_STATS_AF_SPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_AF_SPEC; +pub const __IFLA_STATS_MAX: _bindgen_ty_43 = _bindgen_ty_43::__IFLA_STATS_MAX; +pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::IFLA_STATS_GETSET_UNSPEC; +pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_44 = _bindgen_ty_44::IFLA_STATS_GET_FILTERS; +pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_44 = _bindgen_ty_44::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_44 = _bindgen_ty_44::__IFLA_STATS_GETSET_MAX; +pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::LINK_XSTATS_TYPE_UNSPEC; +pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_45 = _bindgen_ty_45::LINK_XSTATS_TYPE_BRIDGE; +pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_45 = _bindgen_ty_45::LINK_XSTATS_TYPE_BOND; +pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_45 = _bindgen_ty_45::__LINK_XSTATS_TYPE_MAX; +pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_CPU_HIT; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO; +pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_OFFLOAD_XSTATS_MAX; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_47 = _bindgen_ty_47::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_47 = _bindgen_ty_47::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_47 = _bindgen_ty_47::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; +pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_47 = _bindgen_ty_47::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; +pub const XDP_ATTACHED_NONE: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_NONE; +pub const XDP_ATTACHED_DRV: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_DRV; +pub const XDP_ATTACHED_SKB: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_SKB; +pub const XDP_ATTACHED_HW: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_HW; +pub const XDP_ATTACHED_MULTI: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_MULTI; +pub const IFLA_XDP_UNSPEC: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_UNSPEC; +pub const IFLA_XDP_FD: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_FD; +pub const IFLA_XDP_ATTACHED: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_ATTACHED; +pub const IFLA_XDP_FLAGS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_FLAGS; +pub const IFLA_XDP_PROG_ID: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_PROG_ID; +pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_DRV_PROG_ID; +pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_SKB_PROG_ID; +pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_HW_PROG_ID; +pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_EXPECTED_FD; +pub const __IFLA_XDP_MAX: _bindgen_ty_49 = _bindgen_ty_49::__IFLA_XDP_MAX; +pub const IFLA_EVENT_NONE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_NONE; +pub const IFLA_EVENT_REBOOT: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_REBOOT; +pub const IFLA_EVENT_FEATURES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_FEATURES; +pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_BONDING_FAILOVER; +pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_NOTIFY_PEERS; +pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_IGMP_RESEND; +pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_BONDING_OPTIONS; +pub const IFLA_TUN_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_UNSPEC; +pub const IFLA_TUN_OWNER: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_OWNER; +pub const IFLA_TUN_GROUP: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_GROUP; +pub const IFLA_TUN_TYPE: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_TYPE; +pub const IFLA_TUN_PI: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_PI; +pub const IFLA_TUN_VNET_HDR: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_VNET_HDR; +pub const IFLA_TUN_PERSIST: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_PERSIST; +pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_MULTI_QUEUE; +pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_NUM_QUEUES; +pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_NUM_DISABLED_QUEUES; +pub const __IFLA_TUN_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_TUN_MAX; +pub const IFLA_RMNET_UNSPEC: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_UNSPEC; +pub const IFLA_RMNET_MUX_ID: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_MUX_ID; +pub const IFLA_RMNET_FLAGS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_FLAGS; +pub const __IFLA_RMNET_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_RMNET_MAX; +pub const IFLA_MCTP_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_UNSPEC; +pub const IFLA_MCTP_NET: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_PHYS_BINDING; +pub const __IFLA_MCTP_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_MCTP_MAX; +pub const IFLA_DSA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_UNSPEC; +pub const IFLA_DSA_CONDUIT: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; +pub const IFLA_DSA_MASTER: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; +pub const __IFLA_DSA_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_DSA_MAX; +pub const IFLA_OVPN_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_OVPN_UNSPEC; +pub const IFLA_OVPN_MODE: _bindgen_ty_55 = _bindgen_ty_55::IFLA_OVPN_MODE; +pub const __IFLA_OVPN_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_OVPN_MAX; +pub const IFA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFA_UNSPEC; +pub const IFA_ADDRESS: _bindgen_ty_56 = _bindgen_ty_56::IFA_ADDRESS; +pub const IFA_LOCAL: _bindgen_ty_56 = _bindgen_ty_56::IFA_LOCAL; +pub const IFA_LABEL: _bindgen_ty_56 = _bindgen_ty_56::IFA_LABEL; +pub const IFA_BROADCAST: _bindgen_ty_56 = _bindgen_ty_56::IFA_BROADCAST; +pub const IFA_ANYCAST: _bindgen_ty_56 = _bindgen_ty_56::IFA_ANYCAST; +pub const IFA_CACHEINFO: _bindgen_ty_56 = _bindgen_ty_56::IFA_CACHEINFO; +pub const IFA_MULTICAST: _bindgen_ty_56 = _bindgen_ty_56::IFA_MULTICAST; +pub const IFA_FLAGS: _bindgen_ty_56 = _bindgen_ty_56::IFA_FLAGS; +pub const IFA_RT_PRIORITY: _bindgen_ty_56 = _bindgen_ty_56::IFA_RT_PRIORITY; +pub const IFA_TARGET_NETNSID: _bindgen_ty_56 = _bindgen_ty_56::IFA_TARGET_NETNSID; +pub const IFA_PROTO: _bindgen_ty_56 = _bindgen_ty_56::IFA_PROTO; +pub const __IFA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__IFA_MAX; +pub const NDA_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::NDA_UNSPEC; +pub const NDA_DST: _bindgen_ty_57 = _bindgen_ty_57::NDA_DST; +pub const NDA_LLADDR: _bindgen_ty_57 = _bindgen_ty_57::NDA_LLADDR; +pub const NDA_CACHEINFO: _bindgen_ty_57 = _bindgen_ty_57::NDA_CACHEINFO; +pub const NDA_PROBES: _bindgen_ty_57 = _bindgen_ty_57::NDA_PROBES; +pub const NDA_VLAN: _bindgen_ty_57 = _bindgen_ty_57::NDA_VLAN; +pub const NDA_PORT: _bindgen_ty_57 = _bindgen_ty_57::NDA_PORT; +pub const NDA_VNI: _bindgen_ty_57 = _bindgen_ty_57::NDA_VNI; +pub const NDA_IFINDEX: _bindgen_ty_57 = _bindgen_ty_57::NDA_IFINDEX; +pub const NDA_MASTER: _bindgen_ty_57 = _bindgen_ty_57::NDA_MASTER; +pub const NDA_LINK_NETNSID: _bindgen_ty_57 = _bindgen_ty_57::NDA_LINK_NETNSID; +pub const NDA_SRC_VNI: _bindgen_ty_57 = _bindgen_ty_57::NDA_SRC_VNI; +pub const NDA_PROTOCOL: _bindgen_ty_57 = _bindgen_ty_57::NDA_PROTOCOL; +pub const NDA_NH_ID: _bindgen_ty_57 = _bindgen_ty_57::NDA_NH_ID; +pub const NDA_FDB_EXT_ATTRS: _bindgen_ty_57 = _bindgen_ty_57::NDA_FDB_EXT_ATTRS; +pub const NDA_FLAGS_EXT: _bindgen_ty_57 = _bindgen_ty_57::NDA_FLAGS_EXT; +pub const NDA_NDM_STATE_MASK: _bindgen_ty_57 = _bindgen_ty_57::NDA_NDM_STATE_MASK; +pub const NDA_NDM_FLAGS_MASK: _bindgen_ty_57 = _bindgen_ty_57::NDA_NDM_FLAGS_MASK; +pub const __NDA_MAX: _bindgen_ty_57 = _bindgen_ty_57::__NDA_MAX; +pub const NDTPA_UNSPEC: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_UNSPEC; +pub const NDTPA_IFINDEX: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_IFINDEX; +pub const NDTPA_REFCNT: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_REFCNT; +pub const NDTPA_REACHABLE_TIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_REACHABLE_TIME; +pub const NDTPA_BASE_REACHABLE_TIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_BASE_REACHABLE_TIME; +pub const NDTPA_RETRANS_TIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_RETRANS_TIME; +pub const NDTPA_GC_STALETIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_GC_STALETIME; +pub const NDTPA_DELAY_PROBE_TIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_DELAY_PROBE_TIME; +pub const NDTPA_QUEUE_LEN: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_QUEUE_LEN; +pub const NDTPA_APP_PROBES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_APP_PROBES; +pub const NDTPA_UCAST_PROBES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_UCAST_PROBES; +pub const NDTPA_MCAST_PROBES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_MCAST_PROBES; +pub const NDTPA_ANYCAST_DELAY: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_ANYCAST_DELAY; +pub const NDTPA_PROXY_DELAY: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_PROXY_DELAY; +pub const NDTPA_PROXY_QLEN: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_PROXY_QLEN; +pub const NDTPA_LOCKTIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_LOCKTIME; +pub const NDTPA_QUEUE_LENBYTES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_QUEUE_LENBYTES; +pub const NDTPA_MCAST_REPROBES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_MCAST_REPROBES; +pub const NDTPA_PAD: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_PAD; +pub const NDTPA_INTERVAL_PROBE_TIME_MS: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_INTERVAL_PROBE_TIME_MS; +pub const __NDTPA_MAX: _bindgen_ty_58 = _bindgen_ty_58::__NDTPA_MAX; +pub const NDTA_UNSPEC: _bindgen_ty_59 = _bindgen_ty_59::NDTA_UNSPEC; +pub const NDTA_NAME: _bindgen_ty_59 = _bindgen_ty_59::NDTA_NAME; +pub const NDTA_THRESH1: _bindgen_ty_59 = _bindgen_ty_59::NDTA_THRESH1; +pub const NDTA_THRESH2: _bindgen_ty_59 = _bindgen_ty_59::NDTA_THRESH2; +pub const NDTA_THRESH3: _bindgen_ty_59 = _bindgen_ty_59::NDTA_THRESH3; +pub const NDTA_CONFIG: _bindgen_ty_59 = _bindgen_ty_59::NDTA_CONFIG; +pub const NDTA_PARMS: _bindgen_ty_59 = _bindgen_ty_59::NDTA_PARMS; +pub const NDTA_STATS: _bindgen_ty_59 = _bindgen_ty_59::NDTA_STATS; +pub const NDTA_GC_INTERVAL: _bindgen_ty_59 = _bindgen_ty_59::NDTA_GC_INTERVAL; +pub const NDTA_PAD: _bindgen_ty_59 = _bindgen_ty_59::NDTA_PAD; +pub const __NDTA_MAX: _bindgen_ty_59 = _bindgen_ty_59::__NDTA_MAX; +pub const FDB_NOTIFY_BIT: _bindgen_ty_60 = _bindgen_ty_60::FDB_NOTIFY_BIT; +pub const FDB_NOTIFY_INACTIVE_BIT: _bindgen_ty_60 = _bindgen_ty_60::FDB_NOTIFY_INACTIVE_BIT; +pub const NFEA_UNSPEC: _bindgen_ty_61 = _bindgen_ty_61::NFEA_UNSPEC; +pub const NFEA_ACTIVITY_NOTIFY: _bindgen_ty_61 = _bindgen_ty_61::NFEA_ACTIVITY_NOTIFY; +pub const NFEA_DONT_REFRESH: _bindgen_ty_61 = _bindgen_ty_61::NFEA_DONT_REFRESH; +pub const __NFEA_MAX: _bindgen_ty_61 = _bindgen_ty_61::__NFEA_MAX; +pub const RTM_BASE: _bindgen_ty_62 = _bindgen_ty_62::RTM_BASE; +pub const RTM_NEWLINK: _bindgen_ty_62 = _bindgen_ty_62::RTM_BASE; +pub const RTM_DELLINK: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELLINK; +pub const RTM_GETLINK: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETLINK; +pub const RTM_SETLINK: _bindgen_ty_62 = _bindgen_ty_62::RTM_SETLINK; +pub const RTM_NEWADDR: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWADDR; +pub const RTM_DELADDR: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELADDR; +pub const RTM_GETADDR: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETADDR; +pub const RTM_NEWROUTE: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWROUTE; +pub const RTM_DELROUTE: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELROUTE; +pub const RTM_GETROUTE: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETROUTE; +pub const RTM_NEWNEIGH: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNEIGH; +pub const RTM_DELNEIGH: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNEIGH; +pub const RTM_GETNEIGH: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNEIGH; +pub const RTM_NEWRULE: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWRULE; +pub const RTM_DELRULE: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELRULE; +pub const RTM_GETRULE: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETRULE; +pub const RTM_NEWQDISC: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWQDISC; +pub const RTM_DELQDISC: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELQDISC; +pub const RTM_GETQDISC: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETQDISC; +pub const RTM_NEWTCLASS: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWTCLASS; +pub const RTM_DELTCLASS: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELTCLASS; +pub const RTM_GETTCLASS: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETTCLASS; +pub const RTM_NEWTFILTER: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWTFILTER; +pub const RTM_DELTFILTER: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELTFILTER; +pub const RTM_GETTFILTER: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETTFILTER; +pub const RTM_NEWACTION: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWACTION; +pub const RTM_DELACTION: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELACTION; +pub const RTM_GETACTION: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETACTION; +pub const RTM_NEWPREFIX: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWPREFIX; +pub const RTM_NEWMULTICAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWMULTICAST; +pub const RTM_DELMULTICAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELMULTICAST; +pub const RTM_GETMULTICAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETMULTICAST; +pub const RTM_NEWANYCAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWANYCAST; +pub const RTM_DELANYCAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELANYCAST; +pub const RTM_GETANYCAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETANYCAST; +pub const RTM_NEWNEIGHTBL: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNEIGHTBL; +pub const RTM_GETNEIGHTBL: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNEIGHTBL; +pub const RTM_SETNEIGHTBL: _bindgen_ty_62 = _bindgen_ty_62::RTM_SETNEIGHTBL; +pub const RTM_NEWNDUSEROPT: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNDUSEROPT; +pub const RTM_NEWADDRLABEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWADDRLABEL; +pub const RTM_DELADDRLABEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELADDRLABEL; +pub const RTM_GETADDRLABEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETADDRLABEL; +pub const RTM_GETDCB: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETDCB; +pub const RTM_SETDCB: _bindgen_ty_62 = _bindgen_ty_62::RTM_SETDCB; +pub const RTM_NEWNETCONF: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNETCONF; +pub const RTM_DELNETCONF: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNETCONF; +pub const RTM_GETNETCONF: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNETCONF; +pub const RTM_NEWMDB: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWMDB; +pub const RTM_DELMDB: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELMDB; +pub const RTM_GETMDB: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETMDB; +pub const RTM_NEWNSID: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNSID; +pub const RTM_DELNSID: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNSID; +pub const RTM_GETNSID: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNSID; +pub const RTM_NEWSTATS: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWSTATS; +pub const RTM_GETSTATS: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETSTATS; +pub const RTM_SETSTATS: _bindgen_ty_62 = _bindgen_ty_62::RTM_SETSTATS; +pub const RTM_NEWCACHEREPORT: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWCACHEREPORT; +pub const RTM_NEWCHAIN: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWCHAIN; +pub const RTM_DELCHAIN: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELCHAIN; +pub const RTM_GETCHAIN: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETCHAIN; +pub const RTM_NEWNEXTHOP: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNEXTHOP; +pub const RTM_DELNEXTHOP: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNEXTHOP; +pub const RTM_GETNEXTHOP: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNEXTHOP; +pub const RTM_NEWLINKPROP: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWLINKPROP; +pub const RTM_DELLINKPROP: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELLINKPROP; +pub const RTM_GETLINKPROP: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETLINKPROP; +pub const RTM_NEWVLAN: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWVLAN; +pub const RTM_DELVLAN: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELVLAN; +pub const RTM_GETVLAN: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETVLAN; +pub const RTM_NEWNEXTHOPBUCKET: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNEXTHOPBUCKET; +pub const RTM_DELNEXTHOPBUCKET: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNEXTHOPBUCKET; +pub const RTM_GETNEXTHOPBUCKET: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNEXTHOPBUCKET; +pub const RTM_NEWTUNNEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWTUNNEL; +pub const RTM_DELTUNNEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELTUNNEL; +pub const RTM_GETTUNNEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETTUNNEL; +pub const __RTM_MAX: _bindgen_ty_62 = _bindgen_ty_62::__RTM_MAX; +pub const RTN_UNSPEC: _bindgen_ty_63 = _bindgen_ty_63::RTN_UNSPEC; +pub const RTN_UNICAST: _bindgen_ty_63 = _bindgen_ty_63::RTN_UNICAST; +pub const RTN_LOCAL: _bindgen_ty_63 = _bindgen_ty_63::RTN_LOCAL; +pub const RTN_BROADCAST: _bindgen_ty_63 = _bindgen_ty_63::RTN_BROADCAST; +pub const RTN_ANYCAST: _bindgen_ty_63 = _bindgen_ty_63::RTN_ANYCAST; +pub const RTN_MULTICAST: _bindgen_ty_63 = _bindgen_ty_63::RTN_MULTICAST; +pub const RTN_BLACKHOLE: _bindgen_ty_63 = _bindgen_ty_63::RTN_BLACKHOLE; +pub const RTN_UNREACHABLE: _bindgen_ty_63 = _bindgen_ty_63::RTN_UNREACHABLE; +pub const RTN_PROHIBIT: _bindgen_ty_63 = _bindgen_ty_63::RTN_PROHIBIT; +pub const RTN_THROW: _bindgen_ty_63 = _bindgen_ty_63::RTN_THROW; +pub const RTN_NAT: _bindgen_ty_63 = _bindgen_ty_63::RTN_NAT; +pub const RTN_XRESOLVE: _bindgen_ty_63 = _bindgen_ty_63::RTN_XRESOLVE; +pub const __RTN_MAX: _bindgen_ty_63 = _bindgen_ty_63::__RTN_MAX; +pub const RTAX_UNSPEC: _bindgen_ty_64 = _bindgen_ty_64::RTAX_UNSPEC; +pub const RTAX_LOCK: _bindgen_ty_64 = _bindgen_ty_64::RTAX_LOCK; +pub const RTAX_MTU: _bindgen_ty_64 = _bindgen_ty_64::RTAX_MTU; +pub const RTAX_WINDOW: _bindgen_ty_64 = _bindgen_ty_64::RTAX_WINDOW; +pub const RTAX_RTT: _bindgen_ty_64 = _bindgen_ty_64::RTAX_RTT; +pub const RTAX_RTTVAR: _bindgen_ty_64 = _bindgen_ty_64::RTAX_RTTVAR; +pub const RTAX_SSTHRESH: _bindgen_ty_64 = _bindgen_ty_64::RTAX_SSTHRESH; +pub const RTAX_CWND: _bindgen_ty_64 = _bindgen_ty_64::RTAX_CWND; +pub const RTAX_ADVMSS: _bindgen_ty_64 = _bindgen_ty_64::RTAX_ADVMSS; +pub const RTAX_REORDERING: _bindgen_ty_64 = _bindgen_ty_64::RTAX_REORDERING; +pub const RTAX_HOPLIMIT: _bindgen_ty_64 = _bindgen_ty_64::RTAX_HOPLIMIT; +pub const RTAX_INITCWND: _bindgen_ty_64 = _bindgen_ty_64::RTAX_INITCWND; +pub const RTAX_FEATURES: _bindgen_ty_64 = _bindgen_ty_64::RTAX_FEATURES; +pub const RTAX_RTO_MIN: _bindgen_ty_64 = _bindgen_ty_64::RTAX_RTO_MIN; +pub const RTAX_INITRWND: _bindgen_ty_64 = _bindgen_ty_64::RTAX_INITRWND; +pub const RTAX_QUICKACK: _bindgen_ty_64 = _bindgen_ty_64::RTAX_QUICKACK; +pub const RTAX_CC_ALGO: _bindgen_ty_64 = _bindgen_ty_64::RTAX_CC_ALGO; +pub const RTAX_FASTOPEN_NO_COOKIE: _bindgen_ty_64 = _bindgen_ty_64::RTAX_FASTOPEN_NO_COOKIE; +pub const __RTAX_MAX: _bindgen_ty_64 = _bindgen_ty_64::__RTAX_MAX; +pub const PREFIX_UNSPEC: _bindgen_ty_65 = _bindgen_ty_65::PREFIX_UNSPEC; +pub const PREFIX_ADDRESS: _bindgen_ty_65 = _bindgen_ty_65::PREFIX_ADDRESS; +pub const PREFIX_CACHEINFO: _bindgen_ty_65 = _bindgen_ty_65::PREFIX_CACHEINFO; +pub const __PREFIX_MAX: _bindgen_ty_65 = _bindgen_ty_65::__PREFIX_MAX; +pub const TCA_UNSPEC: _bindgen_ty_66 = _bindgen_ty_66::TCA_UNSPEC; +pub const TCA_KIND: _bindgen_ty_66 = _bindgen_ty_66::TCA_KIND; +pub const TCA_OPTIONS: _bindgen_ty_66 = _bindgen_ty_66::TCA_OPTIONS; +pub const TCA_STATS: _bindgen_ty_66 = _bindgen_ty_66::TCA_STATS; +pub const TCA_XSTATS: _bindgen_ty_66 = _bindgen_ty_66::TCA_XSTATS; +pub const TCA_RATE: _bindgen_ty_66 = _bindgen_ty_66::TCA_RATE; +pub const TCA_FCNT: _bindgen_ty_66 = _bindgen_ty_66::TCA_FCNT; +pub const TCA_STATS2: _bindgen_ty_66 = _bindgen_ty_66::TCA_STATS2; +pub const TCA_STAB: _bindgen_ty_66 = _bindgen_ty_66::TCA_STAB; +pub const TCA_PAD: _bindgen_ty_66 = _bindgen_ty_66::TCA_PAD; +pub const TCA_DUMP_INVISIBLE: _bindgen_ty_66 = _bindgen_ty_66::TCA_DUMP_INVISIBLE; +pub const TCA_CHAIN: _bindgen_ty_66 = _bindgen_ty_66::TCA_CHAIN; +pub const TCA_HW_OFFLOAD: _bindgen_ty_66 = _bindgen_ty_66::TCA_HW_OFFLOAD; +pub const TCA_INGRESS_BLOCK: _bindgen_ty_66 = _bindgen_ty_66::TCA_INGRESS_BLOCK; +pub const TCA_EGRESS_BLOCK: _bindgen_ty_66 = _bindgen_ty_66::TCA_EGRESS_BLOCK; +pub const TCA_DUMP_FLAGS: _bindgen_ty_66 = _bindgen_ty_66::TCA_DUMP_FLAGS; +pub const TCA_EXT_WARN_MSG: _bindgen_ty_66 = _bindgen_ty_66::TCA_EXT_WARN_MSG; +pub const __TCA_MAX: _bindgen_ty_66 = _bindgen_ty_66::__TCA_MAX; +pub const NDUSEROPT_UNSPEC: _bindgen_ty_67 = _bindgen_ty_67::NDUSEROPT_UNSPEC; +pub const NDUSEROPT_SRCADDR: _bindgen_ty_67 = _bindgen_ty_67::NDUSEROPT_SRCADDR; +pub const __NDUSEROPT_MAX: _bindgen_ty_67 = _bindgen_ty_67::__NDUSEROPT_MAX; +pub const TCA_ROOT_UNSPEC: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_UNSPEC; +pub const TCA_ROOT_TAB: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_TAB; +pub const TCA_ROOT_FLAGS: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_FLAGS; +pub const TCA_ROOT_COUNT: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_COUNT; +pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_TIME_DELTA; +pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_EXT_WARN_MSG; +pub const __TCA_ROOT_MAX: _bindgen_ty_68 = _bindgen_ty_68::__TCA_ROOT_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nlmsgerr_attrs { +NLMSGERR_ATTR_UNUSED = 0, +NLMSGERR_ATTR_MSG = 1, +NLMSGERR_ATTR_OFFS = 2, +NLMSGERR_ATTR_COOKIE = 3, +NLMSGERR_ATTR_POLICY = 4, +NLMSGERR_ATTR_MISS_TYPE = 5, +NLMSGERR_ATTR_MISS_NEST = 6, +__NLMSGERR_ATTR_MAX = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl_mmap_status { +NL_MMAP_STATUS_UNUSED = 0, +NL_MMAP_STATUS_RESERVED = 1, +NL_MMAP_STATUS_VALID = 2, +NL_MMAP_STATUS_COPY = 3, +NL_MMAP_STATUS_SKIP = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +NETLINK_UNCONNECTED = 0, +NETLINK_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_attribute_type { +NL_ATTR_TYPE_INVALID = 0, +NL_ATTR_TYPE_FLAG = 1, +NL_ATTR_TYPE_U8 = 2, +NL_ATTR_TYPE_U16 = 3, +NL_ATTR_TYPE_U32 = 4, +NL_ATTR_TYPE_U64 = 5, +NL_ATTR_TYPE_S8 = 6, +NL_ATTR_TYPE_S16 = 7, +NL_ATTR_TYPE_S32 = 8, +NL_ATTR_TYPE_S64 = 9, +NL_ATTR_TYPE_BINARY = 10, +NL_ATTR_TYPE_STRING = 11, +NL_ATTR_TYPE_NUL_STRING = 12, +NL_ATTR_TYPE_NESTED = 13, +NL_ATTR_TYPE_NESTED_ARRAY = 14, +NL_ATTR_TYPE_BITFIELD32 = 15, +NL_ATTR_TYPE_SINT = 16, +NL_ATTR_TYPE_UINT = 17, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_policy_type_attr { +NL_POLICY_TYPE_ATTR_UNSPEC = 0, +NL_POLICY_TYPE_ATTR_TYPE = 1, +NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, +NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, +NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, +NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, +NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, +NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, +NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, +NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, +NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, +NL_POLICY_TYPE_ATTR_PAD = 11, +NL_POLICY_TYPE_ATTR_MASK = 12, +__NL_POLICY_TYPE_ATTR_MAX = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_commands { +NL80211_CMD_UNSPEC = 0, +NL80211_CMD_GET_WIPHY = 1, +NL80211_CMD_SET_WIPHY = 2, +NL80211_CMD_NEW_WIPHY = 3, +NL80211_CMD_DEL_WIPHY = 4, +NL80211_CMD_GET_INTERFACE = 5, +NL80211_CMD_SET_INTERFACE = 6, +NL80211_CMD_NEW_INTERFACE = 7, +NL80211_CMD_DEL_INTERFACE = 8, +NL80211_CMD_GET_KEY = 9, +NL80211_CMD_SET_KEY = 10, +NL80211_CMD_NEW_KEY = 11, +NL80211_CMD_DEL_KEY = 12, +NL80211_CMD_GET_BEACON = 13, +NL80211_CMD_SET_BEACON = 14, +NL80211_CMD_START_AP = 15, +NL80211_CMD_STOP_AP = 16, +NL80211_CMD_GET_STATION = 17, +NL80211_CMD_SET_STATION = 18, +NL80211_CMD_NEW_STATION = 19, +NL80211_CMD_DEL_STATION = 20, +NL80211_CMD_GET_MPATH = 21, +NL80211_CMD_SET_MPATH = 22, +NL80211_CMD_NEW_MPATH = 23, +NL80211_CMD_DEL_MPATH = 24, +NL80211_CMD_SET_BSS = 25, +NL80211_CMD_SET_REG = 26, +NL80211_CMD_REQ_SET_REG = 27, +NL80211_CMD_GET_MESH_CONFIG = 28, +NL80211_CMD_SET_MESH_CONFIG = 29, +NL80211_CMD_SET_MGMT_EXTRA_IE = 30, +NL80211_CMD_GET_REG = 31, +NL80211_CMD_GET_SCAN = 32, +NL80211_CMD_TRIGGER_SCAN = 33, +NL80211_CMD_NEW_SCAN_RESULTS = 34, +NL80211_CMD_SCAN_ABORTED = 35, +NL80211_CMD_REG_CHANGE = 36, +NL80211_CMD_AUTHENTICATE = 37, +NL80211_CMD_ASSOCIATE = 38, +NL80211_CMD_DEAUTHENTICATE = 39, +NL80211_CMD_DISASSOCIATE = 40, +NL80211_CMD_MICHAEL_MIC_FAILURE = 41, +NL80211_CMD_REG_BEACON_HINT = 42, +NL80211_CMD_JOIN_IBSS = 43, +NL80211_CMD_LEAVE_IBSS = 44, +NL80211_CMD_TESTMODE = 45, +NL80211_CMD_CONNECT = 46, +NL80211_CMD_ROAM = 47, +NL80211_CMD_DISCONNECT = 48, +NL80211_CMD_SET_WIPHY_NETNS = 49, +NL80211_CMD_GET_SURVEY = 50, +NL80211_CMD_NEW_SURVEY_RESULTS = 51, +NL80211_CMD_SET_PMKSA = 52, +NL80211_CMD_DEL_PMKSA = 53, +NL80211_CMD_FLUSH_PMKSA = 54, +NL80211_CMD_REMAIN_ON_CHANNEL = 55, +NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL = 56, +NL80211_CMD_SET_TX_BITRATE_MASK = 57, +NL80211_CMD_REGISTER_FRAME = 58, +NL80211_CMD_FRAME = 59, +NL80211_CMD_FRAME_TX_STATUS = 60, +NL80211_CMD_SET_POWER_SAVE = 61, +NL80211_CMD_GET_POWER_SAVE = 62, +NL80211_CMD_SET_CQM = 63, +NL80211_CMD_NOTIFY_CQM = 64, +NL80211_CMD_SET_CHANNEL = 65, +NL80211_CMD_SET_WDS_PEER = 66, +NL80211_CMD_FRAME_WAIT_CANCEL = 67, +NL80211_CMD_JOIN_MESH = 68, +NL80211_CMD_LEAVE_MESH = 69, +NL80211_CMD_UNPROT_DEAUTHENTICATE = 70, +NL80211_CMD_UNPROT_DISASSOCIATE = 71, +NL80211_CMD_NEW_PEER_CANDIDATE = 72, +NL80211_CMD_GET_WOWLAN = 73, +NL80211_CMD_SET_WOWLAN = 74, +NL80211_CMD_START_SCHED_SCAN = 75, +NL80211_CMD_STOP_SCHED_SCAN = 76, +NL80211_CMD_SCHED_SCAN_RESULTS = 77, +NL80211_CMD_SCHED_SCAN_STOPPED = 78, +NL80211_CMD_SET_REKEY_OFFLOAD = 79, +NL80211_CMD_PMKSA_CANDIDATE = 80, +NL80211_CMD_TDLS_OPER = 81, +NL80211_CMD_TDLS_MGMT = 82, +NL80211_CMD_UNEXPECTED_FRAME = 83, +NL80211_CMD_PROBE_CLIENT = 84, +NL80211_CMD_REGISTER_BEACONS = 85, +NL80211_CMD_UNEXPECTED_4ADDR_FRAME = 86, +NL80211_CMD_SET_NOACK_MAP = 87, +NL80211_CMD_CH_SWITCH_NOTIFY = 88, +NL80211_CMD_START_P2P_DEVICE = 89, +NL80211_CMD_STOP_P2P_DEVICE = 90, +NL80211_CMD_CONN_FAILED = 91, +NL80211_CMD_SET_MCAST_RATE = 92, +NL80211_CMD_SET_MAC_ACL = 93, +NL80211_CMD_RADAR_DETECT = 94, +NL80211_CMD_GET_PROTOCOL_FEATURES = 95, +NL80211_CMD_UPDATE_FT_IES = 96, +NL80211_CMD_FT_EVENT = 97, +NL80211_CMD_CRIT_PROTOCOL_START = 98, +NL80211_CMD_CRIT_PROTOCOL_STOP = 99, +NL80211_CMD_GET_COALESCE = 100, +NL80211_CMD_SET_COALESCE = 101, +NL80211_CMD_CHANNEL_SWITCH = 102, +NL80211_CMD_VENDOR = 103, +NL80211_CMD_SET_QOS_MAP = 104, +NL80211_CMD_ADD_TX_TS = 105, +NL80211_CMD_DEL_TX_TS = 106, +NL80211_CMD_GET_MPP = 107, +NL80211_CMD_JOIN_OCB = 108, +NL80211_CMD_LEAVE_OCB = 109, +NL80211_CMD_CH_SWITCH_STARTED_NOTIFY = 110, +NL80211_CMD_TDLS_CHANNEL_SWITCH = 111, +NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH = 112, +NL80211_CMD_WIPHY_REG_CHANGE = 113, +NL80211_CMD_ABORT_SCAN = 114, +NL80211_CMD_START_NAN = 115, +NL80211_CMD_STOP_NAN = 116, +NL80211_CMD_ADD_NAN_FUNCTION = 117, +NL80211_CMD_DEL_NAN_FUNCTION = 118, +NL80211_CMD_CHANGE_NAN_CONFIG = 119, +NL80211_CMD_NAN_MATCH = 120, +NL80211_CMD_SET_MULTICAST_TO_UNICAST = 121, +NL80211_CMD_UPDATE_CONNECT_PARAMS = 122, +NL80211_CMD_SET_PMK = 123, +NL80211_CMD_DEL_PMK = 124, +NL80211_CMD_PORT_AUTHORIZED = 125, +NL80211_CMD_RELOAD_REGDB = 126, +NL80211_CMD_EXTERNAL_AUTH = 127, +NL80211_CMD_STA_OPMODE_CHANGED = 128, +NL80211_CMD_CONTROL_PORT_FRAME = 129, +NL80211_CMD_GET_FTM_RESPONDER_STATS = 130, +NL80211_CMD_PEER_MEASUREMENT_START = 131, +NL80211_CMD_PEER_MEASUREMENT_RESULT = 132, +NL80211_CMD_PEER_MEASUREMENT_COMPLETE = 133, +NL80211_CMD_NOTIFY_RADAR = 134, +NL80211_CMD_UPDATE_OWE_INFO = 135, +NL80211_CMD_PROBE_MESH_LINK = 136, +NL80211_CMD_SET_TID_CONFIG = 137, +NL80211_CMD_UNPROT_BEACON = 138, +NL80211_CMD_CONTROL_PORT_FRAME_TX_STATUS = 139, +NL80211_CMD_SET_SAR_SPECS = 140, +NL80211_CMD_OBSS_COLOR_COLLISION = 141, +NL80211_CMD_COLOR_CHANGE_REQUEST = 142, +NL80211_CMD_COLOR_CHANGE_STARTED = 143, +NL80211_CMD_COLOR_CHANGE_ABORTED = 144, +NL80211_CMD_COLOR_CHANGE_COMPLETED = 145, +NL80211_CMD_SET_FILS_AAD = 146, +NL80211_CMD_ASSOC_COMEBACK = 147, +NL80211_CMD_ADD_LINK = 148, +NL80211_CMD_REMOVE_LINK = 149, +NL80211_CMD_ADD_LINK_STA = 150, +NL80211_CMD_MODIFY_LINK_STA = 151, +NL80211_CMD_REMOVE_LINK_STA = 152, +NL80211_CMD_SET_HW_TIMESTAMP = 153, +NL80211_CMD_LINKS_REMOVED = 154, +NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, +NL80211_CMD_ASSOC_MLO_RECONF = 156, +NL80211_CMD_EPCS_CFG = 157, +__NL80211_CMD_AFTER_LAST = 158, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_attrs { +NL80211_ATTR_UNSPEC = 0, +NL80211_ATTR_WIPHY = 1, +NL80211_ATTR_WIPHY_NAME = 2, +NL80211_ATTR_IFINDEX = 3, +NL80211_ATTR_IFNAME = 4, +NL80211_ATTR_IFTYPE = 5, +NL80211_ATTR_MAC = 6, +NL80211_ATTR_KEY_DATA = 7, +NL80211_ATTR_KEY_IDX = 8, +NL80211_ATTR_KEY_CIPHER = 9, +NL80211_ATTR_KEY_SEQ = 10, +NL80211_ATTR_KEY_DEFAULT = 11, +NL80211_ATTR_BEACON_INTERVAL = 12, +NL80211_ATTR_DTIM_PERIOD = 13, +NL80211_ATTR_BEACON_HEAD = 14, +NL80211_ATTR_BEACON_TAIL = 15, +NL80211_ATTR_STA_AID = 16, +NL80211_ATTR_STA_FLAGS = 17, +NL80211_ATTR_STA_LISTEN_INTERVAL = 18, +NL80211_ATTR_STA_SUPPORTED_RATES = 19, +NL80211_ATTR_STA_VLAN = 20, +NL80211_ATTR_STA_INFO = 21, +NL80211_ATTR_WIPHY_BANDS = 22, +NL80211_ATTR_MNTR_FLAGS = 23, +NL80211_ATTR_MESH_ID = 24, +NL80211_ATTR_STA_PLINK_ACTION = 25, +NL80211_ATTR_MPATH_NEXT_HOP = 26, +NL80211_ATTR_MPATH_INFO = 27, +NL80211_ATTR_BSS_CTS_PROT = 28, +NL80211_ATTR_BSS_SHORT_PREAMBLE = 29, +NL80211_ATTR_BSS_SHORT_SLOT_TIME = 30, +NL80211_ATTR_HT_CAPABILITY = 31, +NL80211_ATTR_SUPPORTED_IFTYPES = 32, +NL80211_ATTR_REG_ALPHA2 = 33, +NL80211_ATTR_REG_RULES = 34, +NL80211_ATTR_MESH_CONFIG = 35, +NL80211_ATTR_BSS_BASIC_RATES = 36, +NL80211_ATTR_WIPHY_TXQ_PARAMS = 37, +NL80211_ATTR_WIPHY_FREQ = 38, +NL80211_ATTR_WIPHY_CHANNEL_TYPE = 39, +NL80211_ATTR_KEY_DEFAULT_MGMT = 40, +NL80211_ATTR_MGMT_SUBTYPE = 41, +NL80211_ATTR_IE = 42, +NL80211_ATTR_MAX_NUM_SCAN_SSIDS = 43, +NL80211_ATTR_SCAN_FREQUENCIES = 44, +NL80211_ATTR_SCAN_SSIDS = 45, +NL80211_ATTR_GENERATION = 46, +NL80211_ATTR_BSS = 47, +NL80211_ATTR_REG_INITIATOR = 48, +NL80211_ATTR_REG_TYPE = 49, +NL80211_ATTR_SUPPORTED_COMMANDS = 50, +NL80211_ATTR_FRAME = 51, +NL80211_ATTR_SSID = 52, +NL80211_ATTR_AUTH_TYPE = 53, +NL80211_ATTR_REASON_CODE = 54, +NL80211_ATTR_KEY_TYPE = 55, +NL80211_ATTR_MAX_SCAN_IE_LEN = 56, +NL80211_ATTR_CIPHER_SUITES = 57, +NL80211_ATTR_FREQ_BEFORE = 58, +NL80211_ATTR_FREQ_AFTER = 59, +NL80211_ATTR_FREQ_FIXED = 60, +NL80211_ATTR_WIPHY_RETRY_SHORT = 61, +NL80211_ATTR_WIPHY_RETRY_LONG = 62, +NL80211_ATTR_WIPHY_FRAG_THRESHOLD = 63, +NL80211_ATTR_WIPHY_RTS_THRESHOLD = 64, +NL80211_ATTR_TIMED_OUT = 65, +NL80211_ATTR_USE_MFP = 66, +NL80211_ATTR_STA_FLAGS2 = 67, +NL80211_ATTR_CONTROL_PORT = 68, +NL80211_ATTR_TESTDATA = 69, +NL80211_ATTR_PRIVACY = 70, +NL80211_ATTR_DISCONNECTED_BY_AP = 71, +NL80211_ATTR_STATUS_CODE = 72, +NL80211_ATTR_CIPHER_SUITES_PAIRWISE = 73, +NL80211_ATTR_CIPHER_SUITE_GROUP = 74, +NL80211_ATTR_WPA_VERSIONS = 75, +NL80211_ATTR_AKM_SUITES = 76, +NL80211_ATTR_REQ_IE = 77, +NL80211_ATTR_RESP_IE = 78, +NL80211_ATTR_PREV_BSSID = 79, +NL80211_ATTR_KEY = 80, +NL80211_ATTR_KEYS = 81, +NL80211_ATTR_PID = 82, +NL80211_ATTR_4ADDR = 83, +NL80211_ATTR_SURVEY_INFO = 84, +NL80211_ATTR_PMKID = 85, +NL80211_ATTR_MAX_NUM_PMKIDS = 86, +NL80211_ATTR_DURATION = 87, +NL80211_ATTR_COOKIE = 88, +NL80211_ATTR_WIPHY_COVERAGE_CLASS = 89, +NL80211_ATTR_TX_RATES = 90, +NL80211_ATTR_FRAME_MATCH = 91, +NL80211_ATTR_ACK = 92, +NL80211_ATTR_PS_STATE = 93, +NL80211_ATTR_CQM = 94, +NL80211_ATTR_LOCAL_STATE_CHANGE = 95, +NL80211_ATTR_AP_ISOLATE = 96, +NL80211_ATTR_WIPHY_TX_POWER_SETTING = 97, +NL80211_ATTR_WIPHY_TX_POWER_LEVEL = 98, +NL80211_ATTR_TX_FRAME_TYPES = 99, +NL80211_ATTR_RX_FRAME_TYPES = 100, +NL80211_ATTR_FRAME_TYPE = 101, +NL80211_ATTR_CONTROL_PORT_ETHERTYPE = 102, +NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT = 103, +NL80211_ATTR_SUPPORT_IBSS_RSN = 104, +NL80211_ATTR_WIPHY_ANTENNA_TX = 105, +NL80211_ATTR_WIPHY_ANTENNA_RX = 106, +NL80211_ATTR_MCAST_RATE = 107, +NL80211_ATTR_OFFCHANNEL_TX_OK = 108, +NL80211_ATTR_BSS_HT_OPMODE = 109, +NL80211_ATTR_KEY_DEFAULT_TYPES = 110, +NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION = 111, +NL80211_ATTR_MESH_SETUP = 112, +NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX = 113, +NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX = 114, +NL80211_ATTR_SUPPORT_MESH_AUTH = 115, +NL80211_ATTR_STA_PLINK_STATE = 116, +NL80211_ATTR_WOWLAN_TRIGGERS = 117, +NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED = 118, +NL80211_ATTR_SCHED_SCAN_INTERVAL = 119, +NL80211_ATTR_INTERFACE_COMBINATIONS = 120, +NL80211_ATTR_SOFTWARE_IFTYPES = 121, +NL80211_ATTR_REKEY_DATA = 122, +NL80211_ATTR_MAX_NUM_SCHED_SCAN_SSIDS = 123, +NL80211_ATTR_MAX_SCHED_SCAN_IE_LEN = 124, +NL80211_ATTR_SCAN_SUPP_RATES = 125, +NL80211_ATTR_HIDDEN_SSID = 126, +NL80211_ATTR_IE_PROBE_RESP = 127, +NL80211_ATTR_IE_ASSOC_RESP = 128, +NL80211_ATTR_STA_WME = 129, +NL80211_ATTR_SUPPORT_AP_UAPSD = 130, +NL80211_ATTR_ROAM_SUPPORT = 131, +NL80211_ATTR_SCHED_SCAN_MATCH = 132, +NL80211_ATTR_MAX_MATCH_SETS = 133, +NL80211_ATTR_PMKSA_CANDIDATE = 134, +NL80211_ATTR_TX_NO_CCK_RATE = 135, +NL80211_ATTR_TDLS_ACTION = 136, +NL80211_ATTR_TDLS_DIALOG_TOKEN = 137, +NL80211_ATTR_TDLS_OPERATION = 138, +NL80211_ATTR_TDLS_SUPPORT = 139, +NL80211_ATTR_TDLS_EXTERNAL_SETUP = 140, +NL80211_ATTR_DEVICE_AP_SME = 141, +NL80211_ATTR_DONT_WAIT_FOR_ACK = 142, +NL80211_ATTR_FEATURE_FLAGS = 143, +NL80211_ATTR_PROBE_RESP_OFFLOAD = 144, +NL80211_ATTR_PROBE_RESP = 145, +NL80211_ATTR_DFS_REGION = 146, +NL80211_ATTR_DISABLE_HT = 147, +NL80211_ATTR_HT_CAPABILITY_MASK = 148, +NL80211_ATTR_NOACK_MAP = 149, +NL80211_ATTR_INACTIVITY_TIMEOUT = 150, +NL80211_ATTR_RX_SIGNAL_DBM = 151, +NL80211_ATTR_BG_SCAN_PERIOD = 152, +NL80211_ATTR_WDEV = 153, +NL80211_ATTR_USER_REG_HINT_TYPE = 154, +NL80211_ATTR_CONN_FAILED_REASON = 155, +NL80211_ATTR_AUTH_DATA = 156, +NL80211_ATTR_VHT_CAPABILITY = 157, +NL80211_ATTR_SCAN_FLAGS = 158, +NL80211_ATTR_CHANNEL_WIDTH = 159, +NL80211_ATTR_CENTER_FREQ1 = 160, +NL80211_ATTR_CENTER_FREQ2 = 161, +NL80211_ATTR_P2P_CTWINDOW = 162, +NL80211_ATTR_P2P_OPPPS = 163, +NL80211_ATTR_LOCAL_MESH_POWER_MODE = 164, +NL80211_ATTR_ACL_POLICY = 165, +NL80211_ATTR_MAC_ADDRS = 166, +NL80211_ATTR_MAC_ACL_MAX = 167, +NL80211_ATTR_RADAR_EVENT = 168, +NL80211_ATTR_EXT_CAPA = 169, +NL80211_ATTR_EXT_CAPA_MASK = 170, +NL80211_ATTR_STA_CAPABILITY = 171, +NL80211_ATTR_STA_EXT_CAPABILITY = 172, +NL80211_ATTR_PROTOCOL_FEATURES = 173, +NL80211_ATTR_SPLIT_WIPHY_DUMP = 174, +NL80211_ATTR_DISABLE_VHT = 175, +NL80211_ATTR_VHT_CAPABILITY_MASK = 176, +NL80211_ATTR_MDID = 177, +NL80211_ATTR_IE_RIC = 178, +NL80211_ATTR_CRIT_PROT_ID = 179, +NL80211_ATTR_MAX_CRIT_PROT_DURATION = 180, +NL80211_ATTR_PEER_AID = 181, +NL80211_ATTR_COALESCE_RULE = 182, +NL80211_ATTR_CH_SWITCH_COUNT = 183, +NL80211_ATTR_CH_SWITCH_BLOCK_TX = 184, +NL80211_ATTR_CSA_IES = 185, +NL80211_ATTR_CNTDWN_OFFS_BEACON = 186, +NL80211_ATTR_CNTDWN_OFFS_PRESP = 187, +NL80211_ATTR_RXMGMT_FLAGS = 188, +NL80211_ATTR_STA_SUPPORTED_CHANNELS = 189, +NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES = 190, +NL80211_ATTR_HANDLE_DFS = 191, +NL80211_ATTR_SUPPORT_5_MHZ = 192, +NL80211_ATTR_SUPPORT_10_MHZ = 193, +NL80211_ATTR_OPMODE_NOTIF = 194, +NL80211_ATTR_VENDOR_ID = 195, +NL80211_ATTR_VENDOR_SUBCMD = 196, +NL80211_ATTR_VENDOR_DATA = 197, +NL80211_ATTR_VENDOR_EVENTS = 198, +NL80211_ATTR_QOS_MAP = 199, +NL80211_ATTR_MAC_HINT = 200, +NL80211_ATTR_WIPHY_FREQ_HINT = 201, +NL80211_ATTR_MAX_AP_ASSOC_STA = 202, +NL80211_ATTR_TDLS_PEER_CAPABILITY = 203, +NL80211_ATTR_SOCKET_OWNER = 204, +NL80211_ATTR_CSA_C_OFFSETS_TX = 205, +NL80211_ATTR_MAX_CSA_COUNTERS = 206, +NL80211_ATTR_TDLS_INITIATOR = 207, +NL80211_ATTR_USE_RRM = 208, +NL80211_ATTR_WIPHY_DYN_ACK = 209, +NL80211_ATTR_TSID = 210, +NL80211_ATTR_USER_PRIO = 211, +NL80211_ATTR_ADMITTED_TIME = 212, +NL80211_ATTR_SMPS_MODE = 213, +NL80211_ATTR_OPER_CLASS = 214, +NL80211_ATTR_MAC_MASK = 215, +NL80211_ATTR_WIPHY_SELF_MANAGED_REG = 216, +NL80211_ATTR_EXT_FEATURES = 217, +NL80211_ATTR_SURVEY_RADIO_STATS = 218, +NL80211_ATTR_NETNS_FD = 219, +NL80211_ATTR_SCHED_SCAN_DELAY = 220, +NL80211_ATTR_REG_INDOOR = 221, +NL80211_ATTR_MAX_NUM_SCHED_SCAN_PLANS = 222, +NL80211_ATTR_MAX_SCAN_PLAN_INTERVAL = 223, +NL80211_ATTR_MAX_SCAN_PLAN_ITERATIONS = 224, +NL80211_ATTR_SCHED_SCAN_PLANS = 225, +NL80211_ATTR_PBSS = 226, +NL80211_ATTR_BSS_SELECT = 227, +NL80211_ATTR_STA_SUPPORT_P2P_PS = 228, +NL80211_ATTR_PAD = 229, +NL80211_ATTR_IFTYPE_EXT_CAPA = 230, +NL80211_ATTR_MU_MIMO_GROUP_DATA = 231, +NL80211_ATTR_MU_MIMO_FOLLOW_MAC_ADDR = 232, +NL80211_ATTR_SCAN_START_TIME_TSF = 233, +NL80211_ATTR_SCAN_START_TIME_TSF_BSSID = 234, +NL80211_ATTR_MEASUREMENT_DURATION = 235, +NL80211_ATTR_MEASUREMENT_DURATION_MANDATORY = 236, +NL80211_ATTR_MESH_PEER_AID = 237, +NL80211_ATTR_NAN_MASTER_PREF = 238, +NL80211_ATTR_BANDS = 239, +NL80211_ATTR_NAN_FUNC = 240, +NL80211_ATTR_NAN_MATCH = 241, +NL80211_ATTR_FILS_KEK = 242, +NL80211_ATTR_FILS_NONCES = 243, +NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED = 244, +NL80211_ATTR_BSSID = 245, +NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI = 246, +NL80211_ATTR_SCHED_SCAN_RSSI_ADJUST = 247, +NL80211_ATTR_TIMEOUT_REASON = 248, +NL80211_ATTR_FILS_ERP_USERNAME = 249, +NL80211_ATTR_FILS_ERP_REALM = 250, +NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM = 251, +NL80211_ATTR_FILS_ERP_RRK = 252, +NL80211_ATTR_FILS_CACHE_ID = 253, +NL80211_ATTR_PMK = 254, +NL80211_ATTR_SCHED_SCAN_MULTI = 255, +NL80211_ATTR_SCHED_SCAN_MAX_REQS = 256, +NL80211_ATTR_WANT_1X_4WAY_HS = 257, +NL80211_ATTR_PMKR0_NAME = 258, +NL80211_ATTR_PORT_AUTHORIZED = 259, +NL80211_ATTR_EXTERNAL_AUTH_ACTION = 260, +NL80211_ATTR_EXTERNAL_AUTH_SUPPORT = 261, +NL80211_ATTR_NSS = 262, +NL80211_ATTR_ACK_SIGNAL = 263, +NL80211_ATTR_CONTROL_PORT_OVER_NL80211 = 264, +NL80211_ATTR_TXQ_STATS = 265, +NL80211_ATTR_TXQ_LIMIT = 266, +NL80211_ATTR_TXQ_MEMORY_LIMIT = 267, +NL80211_ATTR_TXQ_QUANTUM = 268, +NL80211_ATTR_HE_CAPABILITY = 269, +NL80211_ATTR_FTM_RESPONDER = 270, +NL80211_ATTR_FTM_RESPONDER_STATS = 271, +NL80211_ATTR_TIMEOUT = 272, +NL80211_ATTR_PEER_MEASUREMENTS = 273, +NL80211_ATTR_AIRTIME_WEIGHT = 274, +NL80211_ATTR_STA_TX_POWER_SETTING = 275, +NL80211_ATTR_STA_TX_POWER = 276, +NL80211_ATTR_SAE_PASSWORD = 277, +NL80211_ATTR_TWT_RESPONDER = 278, +NL80211_ATTR_HE_OBSS_PD = 279, +NL80211_ATTR_WIPHY_EDMG_CHANNELS = 280, +NL80211_ATTR_WIPHY_EDMG_BW_CONFIG = 281, +NL80211_ATTR_VLAN_ID = 282, +NL80211_ATTR_HE_BSS_COLOR = 283, +NL80211_ATTR_IFTYPE_AKM_SUITES = 284, +NL80211_ATTR_TID_CONFIG = 285, +NL80211_ATTR_CONTROL_PORT_NO_PREAUTH = 286, +NL80211_ATTR_PMK_LIFETIME = 287, +NL80211_ATTR_PMK_REAUTH_THRESHOLD = 288, +NL80211_ATTR_RECEIVE_MULTICAST = 289, +NL80211_ATTR_WIPHY_FREQ_OFFSET = 290, +NL80211_ATTR_CENTER_FREQ1_OFFSET = 291, +NL80211_ATTR_SCAN_FREQ_KHZ = 292, +NL80211_ATTR_HE_6GHZ_CAPABILITY = 293, +NL80211_ATTR_FILS_DISCOVERY = 294, +NL80211_ATTR_UNSOL_BCAST_PROBE_RESP = 295, +NL80211_ATTR_S1G_CAPABILITY = 296, +NL80211_ATTR_S1G_CAPABILITY_MASK = 297, +NL80211_ATTR_SAE_PWE = 298, +NL80211_ATTR_RECONNECT_REQUESTED = 299, +NL80211_ATTR_SAR_SPEC = 300, +NL80211_ATTR_DISABLE_HE = 301, +NL80211_ATTR_OBSS_COLOR_BITMAP = 302, +NL80211_ATTR_COLOR_CHANGE_COUNT = 303, +NL80211_ATTR_COLOR_CHANGE_COLOR = 304, +NL80211_ATTR_COLOR_CHANGE_ELEMS = 305, +NL80211_ATTR_MBSSID_CONFIG = 306, +NL80211_ATTR_MBSSID_ELEMS = 307, +NL80211_ATTR_RADAR_BACKGROUND = 308, +NL80211_ATTR_AP_SETTINGS_FLAGS = 309, +NL80211_ATTR_EHT_CAPABILITY = 310, +NL80211_ATTR_DISABLE_EHT = 311, +NL80211_ATTR_MLO_LINKS = 312, +NL80211_ATTR_MLO_LINK_ID = 313, +NL80211_ATTR_MLD_ADDR = 314, +NL80211_ATTR_MLO_SUPPORT = 315, +NL80211_ATTR_MAX_NUM_AKM_SUITES = 316, +NL80211_ATTR_EML_CAPABILITY = 317, +NL80211_ATTR_MLD_CAPA_AND_OPS = 318, +NL80211_ATTR_TX_HW_TIMESTAMP = 319, +NL80211_ATTR_RX_HW_TIMESTAMP = 320, +NL80211_ATTR_TD_BITMAP = 321, +NL80211_ATTR_PUNCT_BITMAP = 322, +NL80211_ATTR_MAX_HW_TIMESTAMP_PEERS = 323, +NL80211_ATTR_HW_TIMESTAMP_ENABLED = 324, +NL80211_ATTR_EMA_RNR_ELEMS = 325, +NL80211_ATTR_MLO_LINK_DISABLED = 326, +NL80211_ATTR_BSS_DUMP_INCLUDE_USE_DATA = 327, +NL80211_ATTR_MLO_TTLM_DLINK = 328, +NL80211_ATTR_MLO_TTLM_ULINK = 329, +NL80211_ATTR_ASSOC_SPP_AMSDU = 330, +NL80211_ATTR_WIPHY_RADIOS = 331, +NL80211_ATTR_WIPHY_INTERFACE_COMBINATIONS = 332, +NL80211_ATTR_VIF_RADIO_MASK = 333, +NL80211_ATTR_SUPPORTED_SELECTORS = 334, +NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, +NL80211_ATTR_EPCS = 336, +NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +__NL80211_ATTR_AFTER_LAST = 338, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_iftype { +NL80211_IFTYPE_UNSPECIFIED = 0, +NL80211_IFTYPE_ADHOC = 1, +NL80211_IFTYPE_STATION = 2, +NL80211_IFTYPE_AP = 3, +NL80211_IFTYPE_AP_VLAN = 4, +NL80211_IFTYPE_WDS = 5, +NL80211_IFTYPE_MONITOR = 6, +NL80211_IFTYPE_MESH_POINT = 7, +NL80211_IFTYPE_P2P_CLIENT = 8, +NL80211_IFTYPE_P2P_GO = 9, +NL80211_IFTYPE_P2P_DEVICE = 10, +NL80211_IFTYPE_OCB = 11, +NL80211_IFTYPE_NAN = 12, +NUM_NL80211_IFTYPES = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_flags { +__NL80211_STA_FLAG_INVALID = 0, +NL80211_STA_FLAG_AUTHORIZED = 1, +NL80211_STA_FLAG_SHORT_PREAMBLE = 2, +NL80211_STA_FLAG_WME = 3, +NL80211_STA_FLAG_MFP = 4, +NL80211_STA_FLAG_AUTHENTICATED = 5, +NL80211_STA_FLAG_TDLS_PEER = 6, +NL80211_STA_FLAG_ASSOCIATED = 7, +NL80211_STA_FLAG_SPP_AMSDU = 8, +__NL80211_STA_FLAG_AFTER_LAST = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_p2p_ps_status { +NL80211_P2P_PS_UNSUPPORTED = 0, +NL80211_P2P_PS_SUPPORTED = 1, +NUM_NL80211_P2P_PS_STATUS = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_he_gi { +NL80211_RATE_INFO_HE_GI_0_8 = 0, +NL80211_RATE_INFO_HE_GI_1_6 = 1, +NL80211_RATE_INFO_HE_GI_3_2 = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_he_ltf { +NL80211_RATE_INFO_HE_1XLTF = 0, +NL80211_RATE_INFO_HE_2XLTF = 1, +NL80211_RATE_INFO_HE_4XLTF = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_he_ru_alloc { +NL80211_RATE_INFO_HE_RU_ALLOC_26 = 0, +NL80211_RATE_INFO_HE_RU_ALLOC_52 = 1, +NL80211_RATE_INFO_HE_RU_ALLOC_106 = 2, +NL80211_RATE_INFO_HE_RU_ALLOC_242 = 3, +NL80211_RATE_INFO_HE_RU_ALLOC_484 = 4, +NL80211_RATE_INFO_HE_RU_ALLOC_996 = 5, +NL80211_RATE_INFO_HE_RU_ALLOC_2x996 = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_gi { +NL80211_RATE_INFO_EHT_GI_0_8 = 0, +NL80211_RATE_INFO_EHT_GI_1_6 = 1, +NL80211_RATE_INFO_EHT_GI_3_2 = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ru_alloc { +NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, +NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, +NL80211_RATE_INFO_EHT_RU_ALLOC_52P26 = 2, +NL80211_RATE_INFO_EHT_RU_ALLOC_106 = 3, +NL80211_RATE_INFO_EHT_RU_ALLOC_106P26 = 4, +NL80211_RATE_INFO_EHT_RU_ALLOC_242 = 5, +NL80211_RATE_INFO_EHT_RU_ALLOC_484 = 6, +NL80211_RATE_INFO_EHT_RU_ALLOC_484P242 = 7, +NL80211_RATE_INFO_EHT_RU_ALLOC_996 = 8, +NL80211_RATE_INFO_EHT_RU_ALLOC_996P484 = 9, +NL80211_RATE_INFO_EHT_RU_ALLOC_996P484P242 = 10, +NL80211_RATE_INFO_EHT_RU_ALLOC_2x996 = 11, +NL80211_RATE_INFO_EHT_RU_ALLOC_2x996P484 = 12, +NL80211_RATE_INFO_EHT_RU_ALLOC_3x996 = 13, +NL80211_RATE_INFO_EHT_RU_ALLOC_3x996P484 = 14, +NL80211_RATE_INFO_EHT_RU_ALLOC_4x996 = 15, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_rate_info { +__NL80211_RATE_INFO_INVALID = 0, +NL80211_RATE_INFO_BITRATE = 1, +NL80211_RATE_INFO_MCS = 2, +NL80211_RATE_INFO_40_MHZ_WIDTH = 3, +NL80211_RATE_INFO_SHORT_GI = 4, +NL80211_RATE_INFO_BITRATE32 = 5, +NL80211_RATE_INFO_VHT_MCS = 6, +NL80211_RATE_INFO_VHT_NSS = 7, +NL80211_RATE_INFO_80_MHZ_WIDTH = 8, +NL80211_RATE_INFO_80P80_MHZ_WIDTH = 9, +NL80211_RATE_INFO_160_MHZ_WIDTH = 10, +NL80211_RATE_INFO_10_MHZ_WIDTH = 11, +NL80211_RATE_INFO_5_MHZ_WIDTH = 12, +NL80211_RATE_INFO_HE_MCS = 13, +NL80211_RATE_INFO_HE_NSS = 14, +NL80211_RATE_INFO_HE_GI = 15, +NL80211_RATE_INFO_HE_DCM = 16, +NL80211_RATE_INFO_HE_RU_ALLOC = 17, +NL80211_RATE_INFO_320_MHZ_WIDTH = 18, +NL80211_RATE_INFO_EHT_MCS = 19, +NL80211_RATE_INFO_EHT_NSS = 20, +NL80211_RATE_INFO_EHT_GI = 21, +NL80211_RATE_INFO_EHT_RU_ALLOC = 22, +NL80211_RATE_INFO_S1G_MCS = 23, +NL80211_RATE_INFO_S1G_NSS = 24, +NL80211_RATE_INFO_1_MHZ_WIDTH = 25, +NL80211_RATE_INFO_2_MHZ_WIDTH = 26, +NL80211_RATE_INFO_4_MHZ_WIDTH = 27, +NL80211_RATE_INFO_8_MHZ_WIDTH = 28, +NL80211_RATE_INFO_16_MHZ_WIDTH = 29, +__NL80211_RATE_INFO_AFTER_LAST = 30, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_bss_param { +__NL80211_STA_BSS_PARAM_INVALID = 0, +NL80211_STA_BSS_PARAM_CTS_PROT = 1, +NL80211_STA_BSS_PARAM_SHORT_PREAMBLE = 2, +NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME = 3, +NL80211_STA_BSS_PARAM_DTIM_PERIOD = 4, +NL80211_STA_BSS_PARAM_BEACON_INTERVAL = 5, +__NL80211_STA_BSS_PARAM_AFTER_LAST = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_info { +__NL80211_STA_INFO_INVALID = 0, +NL80211_STA_INFO_INACTIVE_TIME = 1, +NL80211_STA_INFO_RX_BYTES = 2, +NL80211_STA_INFO_TX_BYTES = 3, +NL80211_STA_INFO_LLID = 4, +NL80211_STA_INFO_PLID = 5, +NL80211_STA_INFO_PLINK_STATE = 6, +NL80211_STA_INFO_SIGNAL = 7, +NL80211_STA_INFO_TX_BITRATE = 8, +NL80211_STA_INFO_RX_PACKETS = 9, +NL80211_STA_INFO_TX_PACKETS = 10, +NL80211_STA_INFO_TX_RETRIES = 11, +NL80211_STA_INFO_TX_FAILED = 12, +NL80211_STA_INFO_SIGNAL_AVG = 13, +NL80211_STA_INFO_RX_BITRATE = 14, +NL80211_STA_INFO_BSS_PARAM = 15, +NL80211_STA_INFO_CONNECTED_TIME = 16, +NL80211_STA_INFO_STA_FLAGS = 17, +NL80211_STA_INFO_BEACON_LOSS = 18, +NL80211_STA_INFO_T_OFFSET = 19, +NL80211_STA_INFO_LOCAL_PM = 20, +NL80211_STA_INFO_PEER_PM = 21, +NL80211_STA_INFO_NONPEER_PM = 22, +NL80211_STA_INFO_RX_BYTES64 = 23, +NL80211_STA_INFO_TX_BYTES64 = 24, +NL80211_STA_INFO_CHAIN_SIGNAL = 25, +NL80211_STA_INFO_CHAIN_SIGNAL_AVG = 26, +NL80211_STA_INFO_EXPECTED_THROUGHPUT = 27, +NL80211_STA_INFO_RX_DROP_MISC = 28, +NL80211_STA_INFO_BEACON_RX = 29, +NL80211_STA_INFO_BEACON_SIGNAL_AVG = 30, +NL80211_STA_INFO_TID_STATS = 31, +NL80211_STA_INFO_RX_DURATION = 32, +NL80211_STA_INFO_PAD = 33, +NL80211_STA_INFO_ACK_SIGNAL = 34, +NL80211_STA_INFO_ACK_SIGNAL_AVG = 35, +NL80211_STA_INFO_RX_MPDUS = 36, +NL80211_STA_INFO_FCS_ERROR_COUNT = 37, +NL80211_STA_INFO_CONNECTED_TO_GATE = 38, +NL80211_STA_INFO_TX_DURATION = 39, +NL80211_STA_INFO_AIRTIME_WEIGHT = 40, +NL80211_STA_INFO_AIRTIME_LINK_METRIC = 41, +NL80211_STA_INFO_ASSOC_AT_BOOTTIME = 42, +NL80211_STA_INFO_CONNECTED_TO_AS = 43, +__NL80211_STA_INFO_AFTER_LAST = 44, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tid_stats { +__NL80211_TID_STATS_INVALID = 0, +NL80211_TID_STATS_RX_MSDU = 1, +NL80211_TID_STATS_TX_MSDU = 2, +NL80211_TID_STATS_TX_MSDU_RETRIES = 3, +NL80211_TID_STATS_TX_MSDU_FAILED = 4, +NL80211_TID_STATS_PAD = 5, +NL80211_TID_STATS_TXQ_STATS = 6, +NUM_NL80211_TID_STATS = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_txq_stats { +__NL80211_TXQ_STATS_INVALID = 0, +NL80211_TXQ_STATS_BACKLOG_BYTES = 1, +NL80211_TXQ_STATS_BACKLOG_PACKETS = 2, +NL80211_TXQ_STATS_FLOWS = 3, +NL80211_TXQ_STATS_DROPS = 4, +NL80211_TXQ_STATS_ECN_MARKS = 5, +NL80211_TXQ_STATS_OVERLIMIT = 6, +NL80211_TXQ_STATS_OVERMEMORY = 7, +NL80211_TXQ_STATS_COLLISIONS = 8, +NL80211_TXQ_STATS_TX_BYTES = 9, +NL80211_TXQ_STATS_TX_PACKETS = 10, +NL80211_TXQ_STATS_MAX_FLOWS = 11, +NUM_NL80211_TXQ_STATS = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mpath_flags { +NL80211_MPATH_FLAG_ACTIVE = 1, +NL80211_MPATH_FLAG_RESOLVING = 2, +NL80211_MPATH_FLAG_SN_VALID = 4, +NL80211_MPATH_FLAG_FIXED = 8, +NL80211_MPATH_FLAG_RESOLVED = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mpath_info { +__NL80211_MPATH_INFO_INVALID = 0, +NL80211_MPATH_INFO_FRAME_QLEN = 1, +NL80211_MPATH_INFO_SN = 2, +NL80211_MPATH_INFO_METRIC = 3, +NL80211_MPATH_INFO_EXPTIME = 4, +NL80211_MPATH_INFO_FLAGS = 5, +NL80211_MPATH_INFO_DISCOVERY_TIMEOUT = 6, +NL80211_MPATH_INFO_DISCOVERY_RETRIES = 7, +NL80211_MPATH_INFO_HOP_COUNT = 8, +NL80211_MPATH_INFO_PATH_CHANGE = 9, +__NL80211_MPATH_INFO_AFTER_LAST = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_band_iftype_attr { +__NL80211_BAND_IFTYPE_ATTR_INVALID = 0, +NL80211_BAND_IFTYPE_ATTR_IFTYPES = 1, +NL80211_BAND_IFTYPE_ATTR_HE_CAP_MAC = 2, +NL80211_BAND_IFTYPE_ATTR_HE_CAP_PHY = 3, +NL80211_BAND_IFTYPE_ATTR_HE_CAP_MCS_SET = 4, +NL80211_BAND_IFTYPE_ATTR_HE_CAP_PPE = 5, +NL80211_BAND_IFTYPE_ATTR_HE_6GHZ_CAPA = 6, +NL80211_BAND_IFTYPE_ATTR_VENDOR_ELEMS = 7, +NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, +NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, +NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, +NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_band_attr { +__NL80211_BAND_ATTR_INVALID = 0, +NL80211_BAND_ATTR_FREQS = 1, +NL80211_BAND_ATTR_RATES = 2, +NL80211_BAND_ATTR_HT_MCS_SET = 3, +NL80211_BAND_ATTR_HT_CAPA = 4, +NL80211_BAND_ATTR_HT_AMPDU_FACTOR = 5, +NL80211_BAND_ATTR_HT_AMPDU_DENSITY = 6, +NL80211_BAND_ATTR_VHT_MCS_SET = 7, +NL80211_BAND_ATTR_VHT_CAPA = 8, +NL80211_BAND_ATTR_IFTYPE_DATA = 9, +NL80211_BAND_ATTR_EDMG_CHANNELS = 10, +NL80211_BAND_ATTR_EDMG_BW_CONFIG = 11, +NL80211_BAND_ATTR_S1G_MCS_NSS_SET = 12, +NL80211_BAND_ATTR_S1G_CAPA = 13, +__NL80211_BAND_ATTR_AFTER_LAST = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wmm_rule { +__NL80211_WMMR_INVALID = 0, +NL80211_WMMR_CW_MIN = 1, +NL80211_WMMR_CW_MAX = 2, +NL80211_WMMR_AIFSN = 3, +NL80211_WMMR_TXOP = 4, +__NL80211_WMMR_LAST = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_frequency_attr { +__NL80211_FREQUENCY_ATTR_INVALID = 0, +NL80211_FREQUENCY_ATTR_FREQ = 1, +NL80211_FREQUENCY_ATTR_DISABLED = 2, +NL80211_FREQUENCY_ATTR_NO_IR = 3, +__NL80211_FREQUENCY_ATTR_NO_IBSS = 4, +NL80211_FREQUENCY_ATTR_RADAR = 5, +NL80211_FREQUENCY_ATTR_MAX_TX_POWER = 6, +NL80211_FREQUENCY_ATTR_DFS_STATE = 7, +NL80211_FREQUENCY_ATTR_DFS_TIME = 8, +NL80211_FREQUENCY_ATTR_NO_HT40_MINUS = 9, +NL80211_FREQUENCY_ATTR_NO_HT40_PLUS = 10, +NL80211_FREQUENCY_ATTR_NO_80MHZ = 11, +NL80211_FREQUENCY_ATTR_NO_160MHZ = 12, +NL80211_FREQUENCY_ATTR_DFS_CAC_TIME = 13, +NL80211_FREQUENCY_ATTR_INDOOR_ONLY = 14, +NL80211_FREQUENCY_ATTR_IR_CONCURRENT = 15, +NL80211_FREQUENCY_ATTR_NO_20MHZ = 16, +NL80211_FREQUENCY_ATTR_NO_10MHZ = 17, +NL80211_FREQUENCY_ATTR_WMM = 18, +NL80211_FREQUENCY_ATTR_NO_HE = 19, +NL80211_FREQUENCY_ATTR_OFFSET = 20, +NL80211_FREQUENCY_ATTR_1MHZ = 21, +NL80211_FREQUENCY_ATTR_2MHZ = 22, +NL80211_FREQUENCY_ATTR_4MHZ = 23, +NL80211_FREQUENCY_ATTR_8MHZ = 24, +NL80211_FREQUENCY_ATTR_16MHZ = 25, +NL80211_FREQUENCY_ATTR_NO_320MHZ = 26, +NL80211_FREQUENCY_ATTR_NO_EHT = 27, +NL80211_FREQUENCY_ATTR_PSD = 28, +NL80211_FREQUENCY_ATTR_DFS_CONCURRENT = 29, +NL80211_FREQUENCY_ATTR_NO_6GHZ_VLP_CLIENT = 30, +NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, +NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, +NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, +NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bitrate_attr { +__NL80211_BITRATE_ATTR_INVALID = 0, +NL80211_BITRATE_ATTR_RATE = 1, +NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE = 2, +__NL80211_BITRATE_ATTR_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_reg_initiator { +NL80211_REGDOM_SET_BY_CORE = 0, +NL80211_REGDOM_SET_BY_USER = 1, +NL80211_REGDOM_SET_BY_DRIVER = 2, +NL80211_REGDOM_SET_BY_COUNTRY_IE = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_reg_type { +NL80211_REGDOM_TYPE_COUNTRY = 0, +NL80211_REGDOM_TYPE_WORLD = 1, +NL80211_REGDOM_TYPE_CUSTOM_WORLD = 2, +NL80211_REGDOM_TYPE_INTERSECTION = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_reg_rule_attr { +__NL80211_REG_RULE_ATTR_INVALID = 0, +NL80211_ATTR_REG_RULE_FLAGS = 1, +NL80211_ATTR_FREQ_RANGE_START = 2, +NL80211_ATTR_FREQ_RANGE_END = 3, +NL80211_ATTR_FREQ_RANGE_MAX_BW = 4, +NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN = 5, +NL80211_ATTR_POWER_RULE_MAX_EIRP = 6, +NL80211_ATTR_DFS_CAC_TIME = 7, +NL80211_ATTR_POWER_RULE_PSD = 8, +__NL80211_REG_RULE_ATTR_AFTER_LAST = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sched_scan_match_attr { +__NL80211_SCHED_SCAN_MATCH_ATTR_INVALID = 0, +NL80211_SCHED_SCAN_MATCH_ATTR_SSID = 1, +NL80211_SCHED_SCAN_MATCH_ATTR_RSSI = 2, +NL80211_SCHED_SCAN_MATCH_ATTR_RELATIVE_RSSI = 3, +NL80211_SCHED_SCAN_MATCH_ATTR_RSSI_ADJUST = 4, +NL80211_SCHED_SCAN_MATCH_ATTR_BSSID = 5, +NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI = 6, +__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_reg_rule_flags { +NL80211_RRF_NO_OFDM = 1, +NL80211_RRF_NO_CCK = 2, +NL80211_RRF_NO_INDOOR = 4, +NL80211_RRF_NO_OUTDOOR = 8, +NL80211_RRF_DFS = 16, +NL80211_RRF_PTP_ONLY = 32, +NL80211_RRF_PTMP_ONLY = 64, +NL80211_RRF_NO_IR = 128, +__NL80211_RRF_NO_IBSS = 256, +NL80211_RRF_AUTO_BW = 2048, +NL80211_RRF_IR_CONCURRENT = 4096, +NL80211_RRF_NO_HT40MINUS = 8192, +NL80211_RRF_NO_HT40PLUS = 16384, +NL80211_RRF_NO_80MHZ = 32768, +NL80211_RRF_NO_160MHZ = 65536, +NL80211_RRF_NO_HE = 131072, +NL80211_RRF_NO_320MHZ = 262144, +NL80211_RRF_NO_EHT = 524288, +NL80211_RRF_PSD = 1048576, +NL80211_RRF_DFS_CONCURRENT = 2097152, +NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, +NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, +NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, +NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_dfs_regions { +NL80211_DFS_UNSET = 0, +NL80211_DFS_FCC = 1, +NL80211_DFS_ETSI = 2, +NL80211_DFS_JP = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_user_reg_hint_type { +NL80211_USER_REG_HINT_USER = 0, +NL80211_USER_REG_HINT_CELL_BASE = 1, +NL80211_USER_REG_HINT_INDOOR = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_survey_info { +__NL80211_SURVEY_INFO_INVALID = 0, +NL80211_SURVEY_INFO_FREQUENCY = 1, +NL80211_SURVEY_INFO_NOISE = 2, +NL80211_SURVEY_INFO_IN_USE = 3, +NL80211_SURVEY_INFO_TIME = 4, +NL80211_SURVEY_INFO_TIME_BUSY = 5, +NL80211_SURVEY_INFO_TIME_EXT_BUSY = 6, +NL80211_SURVEY_INFO_TIME_RX = 7, +NL80211_SURVEY_INFO_TIME_TX = 8, +NL80211_SURVEY_INFO_TIME_SCAN = 9, +NL80211_SURVEY_INFO_PAD = 10, +NL80211_SURVEY_INFO_TIME_BSS_RX = 11, +NL80211_SURVEY_INFO_FREQUENCY_OFFSET = 12, +__NL80211_SURVEY_INFO_AFTER_LAST = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mntr_flags { +__NL80211_MNTR_FLAG_INVALID = 0, +NL80211_MNTR_FLAG_FCSFAIL = 1, +NL80211_MNTR_FLAG_PLCPFAIL = 2, +NL80211_MNTR_FLAG_CONTROL = 3, +NL80211_MNTR_FLAG_OTHER_BSS = 4, +NL80211_MNTR_FLAG_COOK_FRAMES = 5, +NL80211_MNTR_FLAG_ACTIVE = 6, +NL80211_MNTR_FLAG_SKIP_TX = 7, +__NL80211_MNTR_FLAG_AFTER_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mesh_power_mode { +NL80211_MESH_POWER_UNKNOWN = 0, +NL80211_MESH_POWER_ACTIVE = 1, +NL80211_MESH_POWER_LIGHT_SLEEP = 2, +NL80211_MESH_POWER_DEEP_SLEEP = 3, +__NL80211_MESH_POWER_AFTER_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_meshconf_params { +__NL80211_MESHCONF_INVALID = 0, +NL80211_MESHCONF_RETRY_TIMEOUT = 1, +NL80211_MESHCONF_CONFIRM_TIMEOUT = 2, +NL80211_MESHCONF_HOLDING_TIMEOUT = 3, +NL80211_MESHCONF_MAX_PEER_LINKS = 4, +NL80211_MESHCONF_MAX_RETRIES = 5, +NL80211_MESHCONF_TTL = 6, +NL80211_MESHCONF_AUTO_OPEN_PLINKS = 7, +NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES = 8, +NL80211_MESHCONF_PATH_REFRESH_TIME = 9, +NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT = 10, +NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT = 11, +NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL = 12, +NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME = 13, +NL80211_MESHCONF_HWMP_ROOTMODE = 14, +NL80211_MESHCONF_ELEMENT_TTL = 15, +NL80211_MESHCONF_HWMP_RANN_INTERVAL = 16, +NL80211_MESHCONF_GATE_ANNOUNCEMENTS = 17, +NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL = 18, +NL80211_MESHCONF_FORWARDING = 19, +NL80211_MESHCONF_RSSI_THRESHOLD = 20, +NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR = 21, +NL80211_MESHCONF_HT_OPMODE = 22, +NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT = 23, +NL80211_MESHCONF_HWMP_ROOT_INTERVAL = 24, +NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL = 25, +NL80211_MESHCONF_POWER_MODE = 26, +NL80211_MESHCONF_AWAKE_WINDOW = 27, +NL80211_MESHCONF_PLINK_TIMEOUT = 28, +NL80211_MESHCONF_CONNECTED_TO_GATE = 29, +NL80211_MESHCONF_NOLEARN = 30, +NL80211_MESHCONF_CONNECTED_TO_AS = 31, +__NL80211_MESHCONF_ATTR_AFTER_LAST = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mesh_setup_params { +__NL80211_MESH_SETUP_INVALID = 0, +NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL = 1, +NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC = 2, +NL80211_MESH_SETUP_IE = 3, +NL80211_MESH_SETUP_USERSPACE_AUTH = 4, +NL80211_MESH_SETUP_USERSPACE_AMPE = 5, +NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC = 6, +NL80211_MESH_SETUP_USERSPACE_MPM = 7, +NL80211_MESH_SETUP_AUTH_PROTOCOL = 8, +__NL80211_MESH_SETUP_ATTR_AFTER_LAST = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_txq_attr { +__NL80211_TXQ_ATTR_INVALID = 0, +NL80211_TXQ_ATTR_AC = 1, +NL80211_TXQ_ATTR_TXOP = 2, +NL80211_TXQ_ATTR_CWMIN = 3, +NL80211_TXQ_ATTR_CWMAX = 4, +NL80211_TXQ_ATTR_AIFS = 5, +__NL80211_TXQ_ATTR_AFTER_LAST = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ac { +NL80211_AC_VO = 0, +NL80211_AC_VI = 1, +NL80211_AC_BE = 2, +NL80211_AC_BK = 3, +NL80211_NUM_ACS = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_channel_type { +NL80211_CHAN_NO_HT = 0, +NL80211_CHAN_HT20 = 1, +NL80211_CHAN_HT40MINUS = 2, +NL80211_CHAN_HT40PLUS = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_key_mode { +NL80211_KEY_RX_TX = 0, +NL80211_KEY_NO_TX = 1, +NL80211_KEY_SET_TX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_chan_width { +NL80211_CHAN_WIDTH_20_NOHT = 0, +NL80211_CHAN_WIDTH_20 = 1, +NL80211_CHAN_WIDTH_40 = 2, +NL80211_CHAN_WIDTH_80 = 3, +NL80211_CHAN_WIDTH_80P80 = 4, +NL80211_CHAN_WIDTH_160 = 5, +NL80211_CHAN_WIDTH_5 = 6, +NL80211_CHAN_WIDTH_10 = 7, +NL80211_CHAN_WIDTH_1 = 8, +NL80211_CHAN_WIDTH_2 = 9, +NL80211_CHAN_WIDTH_4 = 10, +NL80211_CHAN_WIDTH_8 = 11, +NL80211_CHAN_WIDTH_16 = 12, +NL80211_CHAN_WIDTH_320 = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_scan_width { +NL80211_BSS_CHAN_WIDTH_20 = 0, +NL80211_BSS_CHAN_WIDTH_10 = 1, +NL80211_BSS_CHAN_WIDTH_5 = 2, +NL80211_BSS_CHAN_WIDTH_1 = 3, +NL80211_BSS_CHAN_WIDTH_2 = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_use_for { +NL80211_BSS_USE_FOR_NORMAL = 1, +NL80211_BSS_USE_FOR_MLD_LINK = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_cannot_use_reasons { +NL80211_BSS_CANNOT_USE_NSTR_NONPRIMARY = 1, +NL80211_BSS_CANNOT_USE_6GHZ_PWR_MISMATCH = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss { +__NL80211_BSS_INVALID = 0, +NL80211_BSS_BSSID = 1, +NL80211_BSS_FREQUENCY = 2, +NL80211_BSS_TSF = 3, +NL80211_BSS_BEACON_INTERVAL = 4, +NL80211_BSS_CAPABILITY = 5, +NL80211_BSS_INFORMATION_ELEMENTS = 6, +NL80211_BSS_SIGNAL_MBM = 7, +NL80211_BSS_SIGNAL_UNSPEC = 8, +NL80211_BSS_STATUS = 9, +NL80211_BSS_SEEN_MS_AGO = 10, +NL80211_BSS_BEACON_IES = 11, +NL80211_BSS_CHAN_WIDTH = 12, +NL80211_BSS_BEACON_TSF = 13, +NL80211_BSS_PRESP_DATA = 14, +NL80211_BSS_LAST_SEEN_BOOTTIME = 15, +NL80211_BSS_PAD = 16, +NL80211_BSS_PARENT_TSF = 17, +NL80211_BSS_PARENT_BSSID = 18, +NL80211_BSS_CHAIN_SIGNAL = 19, +NL80211_BSS_FREQUENCY_OFFSET = 20, +NL80211_BSS_MLO_LINK_ID = 21, +NL80211_BSS_MLD_ADDR = 22, +NL80211_BSS_USE_FOR = 23, +NL80211_BSS_CANNOT_USE_REASONS = 24, +__NL80211_BSS_AFTER_LAST = 25, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_status { +NL80211_BSS_STATUS_AUTHENTICATED = 0, +NL80211_BSS_STATUS_ASSOCIATED = 1, +NL80211_BSS_STATUS_IBSS_JOINED = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_auth_type { +NL80211_AUTHTYPE_OPEN_SYSTEM = 0, +NL80211_AUTHTYPE_SHARED_KEY = 1, +NL80211_AUTHTYPE_FT = 2, +NL80211_AUTHTYPE_NETWORK_EAP = 3, +NL80211_AUTHTYPE_SAE = 4, +NL80211_AUTHTYPE_FILS_SK = 5, +NL80211_AUTHTYPE_FILS_SK_PFS = 6, +NL80211_AUTHTYPE_FILS_PK = 7, +__NL80211_AUTHTYPE_NUM = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_key_type { +NL80211_KEYTYPE_GROUP = 0, +NL80211_KEYTYPE_PAIRWISE = 1, +NL80211_KEYTYPE_PEERKEY = 2, +NUM_NL80211_KEYTYPES = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mfp { +NL80211_MFP_NO = 0, +NL80211_MFP_REQUIRED = 1, +NL80211_MFP_OPTIONAL = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wpa_versions { +NL80211_WPA_VERSION_1 = 1, +NL80211_WPA_VERSION_2 = 2, +NL80211_WPA_VERSION_3 = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_key_default_types { +__NL80211_KEY_DEFAULT_TYPE_INVALID = 0, +NL80211_KEY_DEFAULT_TYPE_UNICAST = 1, +NL80211_KEY_DEFAULT_TYPE_MULTICAST = 2, +NUM_NL80211_KEY_DEFAULT_TYPES = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_key_attributes { +__NL80211_KEY_INVALID = 0, +NL80211_KEY_DATA = 1, +NL80211_KEY_IDX = 2, +NL80211_KEY_CIPHER = 3, +NL80211_KEY_SEQ = 4, +NL80211_KEY_DEFAULT = 5, +NL80211_KEY_DEFAULT_MGMT = 6, +NL80211_KEY_TYPE = 7, +NL80211_KEY_DEFAULT_TYPES = 8, +NL80211_KEY_MODE = 9, +NL80211_KEY_DEFAULT_BEACON = 10, +__NL80211_KEY_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tx_rate_attributes { +__NL80211_TXRATE_INVALID = 0, +NL80211_TXRATE_LEGACY = 1, +NL80211_TXRATE_HT = 2, +NL80211_TXRATE_VHT = 3, +NL80211_TXRATE_GI = 4, +NL80211_TXRATE_HE = 5, +NL80211_TXRATE_HE_GI = 6, +NL80211_TXRATE_HE_LTF = 7, +__NL80211_TXRATE_AFTER_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_txrate_gi { +NL80211_TXRATE_DEFAULT_GI = 0, +NL80211_TXRATE_FORCE_SGI = 1, +NL80211_TXRATE_FORCE_LGI = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_band { +NL80211_BAND_2GHZ = 0, +NL80211_BAND_5GHZ = 1, +NL80211_BAND_60GHZ = 2, +NL80211_BAND_6GHZ = 3, +NL80211_BAND_S1GHZ = 4, +NL80211_BAND_LC = 5, +NUM_NL80211_BANDS = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ps_state { +NL80211_PS_DISABLED = 0, +NL80211_PS_ENABLED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_attr_cqm { +__NL80211_ATTR_CQM_INVALID = 0, +NL80211_ATTR_CQM_RSSI_THOLD = 1, +NL80211_ATTR_CQM_RSSI_HYST = 2, +NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT = 3, +NL80211_ATTR_CQM_PKT_LOSS_EVENT = 4, +NL80211_ATTR_CQM_TXE_RATE = 5, +NL80211_ATTR_CQM_TXE_PKTS = 6, +NL80211_ATTR_CQM_TXE_INTVL = 7, +NL80211_ATTR_CQM_BEACON_LOSS_EVENT = 8, +NL80211_ATTR_CQM_RSSI_LEVEL = 9, +__NL80211_ATTR_CQM_AFTER_LAST = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_cqm_rssi_threshold_event { +NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW = 0, +NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH = 1, +NL80211_CQM_RSSI_BEACON_LOSS_EVENT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tx_power_setting { +NL80211_TX_POWER_AUTOMATIC = 0, +NL80211_TX_POWER_LIMITED = 1, +NL80211_TX_POWER_FIXED = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tid_config { +NL80211_TID_CONFIG_ENABLE = 0, +NL80211_TID_CONFIG_DISABLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tx_rate_setting { +NL80211_TX_RATE_AUTOMATIC = 0, +NL80211_TX_RATE_LIMITED = 1, +NL80211_TX_RATE_FIXED = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tid_config_attr { +__NL80211_TID_CONFIG_ATTR_INVALID = 0, +NL80211_TID_CONFIG_ATTR_PAD = 1, +NL80211_TID_CONFIG_ATTR_VIF_SUPP = 2, +NL80211_TID_CONFIG_ATTR_PEER_SUPP = 3, +NL80211_TID_CONFIG_ATTR_OVERRIDE = 4, +NL80211_TID_CONFIG_ATTR_TIDS = 5, +NL80211_TID_CONFIG_ATTR_NOACK = 6, +NL80211_TID_CONFIG_ATTR_RETRY_SHORT = 7, +NL80211_TID_CONFIG_ATTR_RETRY_LONG = 8, +NL80211_TID_CONFIG_ATTR_AMPDU_CTRL = 9, +NL80211_TID_CONFIG_ATTR_RTSCTS_CTRL = 10, +NL80211_TID_CONFIG_ATTR_AMSDU_CTRL = 11, +NL80211_TID_CONFIG_ATTR_TX_RATE_TYPE = 12, +NL80211_TID_CONFIG_ATTR_TX_RATE = 13, +__NL80211_TID_CONFIG_ATTR_AFTER_LAST = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_packet_pattern_attr { +__NL80211_PKTPAT_INVALID = 0, +NL80211_PKTPAT_MASK = 1, +NL80211_PKTPAT_PATTERN = 2, +NL80211_PKTPAT_OFFSET = 3, +NUM_NL80211_PKTPAT = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wowlan_triggers { +__NL80211_WOWLAN_TRIG_INVALID = 0, +NL80211_WOWLAN_TRIG_ANY = 1, +NL80211_WOWLAN_TRIG_DISCONNECT = 2, +NL80211_WOWLAN_TRIG_MAGIC_PKT = 3, +NL80211_WOWLAN_TRIG_PKT_PATTERN = 4, +NL80211_WOWLAN_TRIG_GTK_REKEY_SUPPORTED = 5, +NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE = 6, +NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST = 7, +NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE = 8, +NL80211_WOWLAN_TRIG_RFKILL_RELEASE = 9, +NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211 = 10, +NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN = 11, +NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023 = 12, +NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN = 13, +NL80211_WOWLAN_TRIG_TCP_CONNECTION = 14, +NL80211_WOWLAN_TRIG_WAKEUP_TCP_MATCH = 15, +NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST = 16, +NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS = 17, +NL80211_WOWLAN_TRIG_NET_DETECT = 18, +NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS = 19, +NL80211_WOWLAN_TRIG_UNPROTECTED_DEAUTH_DISASSOC = 20, +NUM_NL80211_WOWLAN_TRIG = 21, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wowlan_tcp_attrs { +__NL80211_WOWLAN_TCP_INVALID = 0, +NL80211_WOWLAN_TCP_SRC_IPV4 = 1, +NL80211_WOWLAN_TCP_DST_IPV4 = 2, +NL80211_WOWLAN_TCP_DST_MAC = 3, +NL80211_WOWLAN_TCP_SRC_PORT = 4, +NL80211_WOWLAN_TCP_DST_PORT = 5, +NL80211_WOWLAN_TCP_DATA_PAYLOAD = 6, +NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ = 7, +NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN = 8, +NL80211_WOWLAN_TCP_DATA_INTERVAL = 9, +NL80211_WOWLAN_TCP_WAKE_PAYLOAD = 10, +NL80211_WOWLAN_TCP_WAKE_MASK = 11, +NUM_NL80211_WOWLAN_TCP = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_attr_coalesce_rule { +__NL80211_COALESCE_RULE_INVALID = 0, +NL80211_ATTR_COALESCE_RULE_DELAY = 1, +NL80211_ATTR_COALESCE_RULE_CONDITION = 2, +NL80211_ATTR_COALESCE_RULE_PKT_PATTERN = 3, +NUM_NL80211_ATTR_COALESCE_RULE = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_coalesce_condition { +NL80211_COALESCE_CONDITION_MATCH = 0, +NL80211_COALESCE_CONDITION_NO_MATCH = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_iface_limit_attrs { +NL80211_IFACE_LIMIT_UNSPEC = 0, +NL80211_IFACE_LIMIT_MAX = 1, +NL80211_IFACE_LIMIT_TYPES = 2, +NUM_NL80211_IFACE_LIMIT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_if_combination_attrs { +NL80211_IFACE_COMB_UNSPEC = 0, +NL80211_IFACE_COMB_LIMITS = 1, +NL80211_IFACE_COMB_MAXNUM = 2, +NL80211_IFACE_COMB_STA_AP_BI_MATCH = 3, +NL80211_IFACE_COMB_NUM_CHANNELS = 4, +NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS = 5, +NL80211_IFACE_COMB_RADAR_DETECT_REGIONS = 6, +NL80211_IFACE_COMB_BI_MIN_GCD = 7, +NUM_NL80211_IFACE_COMB = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_plink_state { +NL80211_PLINK_LISTEN = 0, +NL80211_PLINK_OPN_SNT = 1, +NL80211_PLINK_OPN_RCVD = 2, +NL80211_PLINK_CNF_RCVD = 3, +NL80211_PLINK_ESTAB = 4, +NL80211_PLINK_HOLDING = 5, +NL80211_PLINK_BLOCKED = 6, +NUM_NL80211_PLINK_STATES = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_plink_action { +NL80211_PLINK_ACTION_NO_ACTION = 0, +NL80211_PLINK_ACTION_OPEN = 1, +NL80211_PLINK_ACTION_BLOCK = 2, +NUM_NL80211_PLINK_ACTIONS = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_rekey_data { +__NL80211_REKEY_DATA_INVALID = 0, +NL80211_REKEY_DATA_KEK = 1, +NL80211_REKEY_DATA_KCK = 2, +NL80211_REKEY_DATA_REPLAY_CTR = 3, +NL80211_REKEY_DATA_AKM = 4, +NUM_NL80211_REKEY_DATA = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_hidden_ssid { +NL80211_HIDDEN_SSID_NOT_IN_USE = 0, +NL80211_HIDDEN_SSID_ZERO_LEN = 1, +NL80211_HIDDEN_SSID_ZERO_CONTENTS = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_wme_attr { +__NL80211_STA_WME_INVALID = 0, +NL80211_STA_WME_UAPSD_QUEUES = 1, +NL80211_STA_WME_MAX_SP = 2, +__NL80211_STA_WME_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_pmksa_candidate_attr { +__NL80211_PMKSA_CANDIDATE_INVALID = 0, +NL80211_PMKSA_CANDIDATE_INDEX = 1, +NL80211_PMKSA_CANDIDATE_BSSID = 2, +NL80211_PMKSA_CANDIDATE_PREAUTH = 3, +NUM_NL80211_PMKSA_CANDIDATE = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tdls_operation { +NL80211_TDLS_DISCOVERY_REQ = 0, +NL80211_TDLS_SETUP = 1, +NL80211_TDLS_TEARDOWN = 2, +NL80211_TDLS_ENABLE_LINK = 3, +NL80211_TDLS_DISABLE_LINK = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ap_sme_features { +NL80211_AP_SME_SA_QUERY_OFFLOAD = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_feature_flags { +NL80211_FEATURE_SK_TX_STATUS = 1, +NL80211_FEATURE_HT_IBSS = 2, +NL80211_FEATURE_INACTIVITY_TIMER = 4, +NL80211_FEATURE_CELL_BASE_REG_HINTS = 8, +NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL = 16, +NL80211_FEATURE_SAE = 32, +NL80211_FEATURE_LOW_PRIORITY_SCAN = 64, +NL80211_FEATURE_SCAN_FLUSH = 128, +NL80211_FEATURE_AP_SCAN = 256, +NL80211_FEATURE_VIF_TXPOWER = 512, +NL80211_FEATURE_NEED_OBSS_SCAN = 1024, +NL80211_FEATURE_P2P_GO_CTWIN = 2048, +NL80211_FEATURE_P2P_GO_OPPPS = 4096, +NL80211_FEATURE_ADVERTISE_CHAN_LIMITS = 16384, +NL80211_FEATURE_FULL_AP_CLIENT_STATE = 32768, +NL80211_FEATURE_USERSPACE_MPM = 65536, +NL80211_FEATURE_ACTIVE_MONITOR = 131072, +NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE = 262144, +NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES = 524288, +NL80211_FEATURE_WFA_TPC_IE_IN_PROBES = 1048576, +NL80211_FEATURE_QUIET = 2097152, +NL80211_FEATURE_TX_POWER_INSERTION = 4194304, +NL80211_FEATURE_ACKTO_ESTIMATION = 8388608, +NL80211_FEATURE_STATIC_SMPS = 16777216, +NL80211_FEATURE_DYNAMIC_SMPS = 33554432, +NL80211_FEATURE_SUPPORTS_WMM_ADMISSION = 67108864, +NL80211_FEATURE_MAC_ON_CREATE = 134217728, +NL80211_FEATURE_TDLS_CHANNEL_SWITCH = 268435456, +NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR = 536870912, +NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR = 1073741824, +NL80211_FEATURE_ND_RANDOM_MAC_ADDR = 2147483648, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ext_feature_index { +NL80211_EXT_FEATURE_VHT_IBSS = 0, +NL80211_EXT_FEATURE_RRM = 1, +NL80211_EXT_FEATURE_MU_MIMO_AIR_SNIFFER = 2, +NL80211_EXT_FEATURE_SCAN_START_TIME = 3, +NL80211_EXT_FEATURE_BSS_PARENT_TSF = 4, +NL80211_EXT_FEATURE_SET_SCAN_DWELL = 5, +NL80211_EXT_FEATURE_BEACON_RATE_LEGACY = 6, +NL80211_EXT_FEATURE_BEACON_RATE_HT = 7, +NL80211_EXT_FEATURE_BEACON_RATE_VHT = 8, +NL80211_EXT_FEATURE_FILS_STA = 9, +NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA = 10, +NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED = 11, +NL80211_EXT_FEATURE_SCHED_SCAN_RELATIVE_RSSI = 12, +NL80211_EXT_FEATURE_CQM_RSSI_LIST = 13, +NL80211_EXT_FEATURE_FILS_SK_OFFLOAD = 14, +NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_PSK = 15, +NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X = 16, +NL80211_EXT_FEATURE_FILS_MAX_CHANNEL_TIME = 17, +NL80211_EXT_FEATURE_ACCEPT_BCAST_PROBE_RESP = 18, +NL80211_EXT_FEATURE_OCE_PROBE_REQ_HIGH_TX_RATE = 19, +NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION = 20, +NL80211_EXT_FEATURE_MFP_OPTIONAL = 21, +NL80211_EXT_FEATURE_LOW_SPAN_SCAN = 22, +NL80211_EXT_FEATURE_LOW_POWER_SCAN = 23, +NL80211_EXT_FEATURE_HIGH_ACCURACY_SCAN = 24, +NL80211_EXT_FEATURE_DFS_OFFLOAD = 25, +NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211 = 26, +NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT = 27, +NL80211_EXT_FEATURE_TXQS = 28, +NL80211_EXT_FEATURE_SCAN_RANDOM_SN = 29, +NL80211_EXT_FEATURE_SCAN_MIN_PREQ_CONTENT = 30, +NL80211_EXT_FEATURE_CAN_REPLACE_PTK0 = 31, +NL80211_EXT_FEATURE_ENABLE_FTM_RESPONDER = 32, +NL80211_EXT_FEATURE_AIRTIME_FAIRNESS = 33, +NL80211_EXT_FEATURE_AP_PMKSA_CACHING = 34, +NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD = 35, +NL80211_EXT_FEATURE_EXT_KEY_ID = 36, +NL80211_EXT_FEATURE_STA_TX_PWR = 37, +NL80211_EXT_FEATURE_SAE_OFFLOAD = 38, +NL80211_EXT_FEATURE_VLAN_OFFLOAD = 39, +NL80211_EXT_FEATURE_AQL = 40, +NL80211_EXT_FEATURE_BEACON_PROTECTION = 41, +NL80211_EXT_FEATURE_CONTROL_PORT_NO_PREAUTH = 42, +NL80211_EXT_FEATURE_PROTECTED_TWT = 43, +NL80211_EXT_FEATURE_DEL_IBSS_STA = 44, +NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS = 45, +NL80211_EXT_FEATURE_BEACON_PROTECTION_CLIENT = 46, +NL80211_EXT_FEATURE_SCAN_FREQ_KHZ = 47, +NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211_TX_STATUS = 48, +NL80211_EXT_FEATURE_OPERATING_CHANNEL_VALIDATION = 49, +NL80211_EXT_FEATURE_4WAY_HANDSHAKE_AP_PSK = 50, +NL80211_EXT_FEATURE_SAE_OFFLOAD_AP = 51, +NL80211_EXT_FEATURE_FILS_DISCOVERY = 52, +NL80211_EXT_FEATURE_UNSOL_BCAST_PROBE_RESP = 53, +NL80211_EXT_FEATURE_BEACON_RATE_HE = 54, +NL80211_EXT_FEATURE_SECURE_LTF = 55, +NL80211_EXT_FEATURE_SECURE_RTT = 56, +NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE = 57, +NL80211_EXT_FEATURE_BSS_COLOR = 58, +NL80211_EXT_FEATURE_FILS_CRYPTO_OFFLOAD = 59, +NL80211_EXT_FEATURE_RADAR_BACKGROUND = 60, +NL80211_EXT_FEATURE_POWERED_ADDR_CHANGE = 61, +NL80211_EXT_FEATURE_PUNCT = 62, +NL80211_EXT_FEATURE_SECURE_NAN = 63, +NL80211_EXT_FEATURE_AUTH_AND_DEAUTH_RANDOM_TA = 64, +NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, +NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, +NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, +NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, +NUM_NL80211_EXT_FEATURES = 69, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_probe_resp_offload_support_attr { +NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS = 1, +NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2 = 2, +NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P = 4, +NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_connect_failed_reason { +NL80211_CONN_FAIL_MAX_CLIENTS = 0, +NL80211_CONN_FAIL_BLOCKED_CLIENT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_timeout_reason { +NL80211_TIMEOUT_UNSPECIFIED = 0, +NL80211_TIMEOUT_SCAN = 1, +NL80211_TIMEOUT_AUTH = 2, +NL80211_TIMEOUT_ASSOC = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_scan_flags { +NL80211_SCAN_FLAG_LOW_PRIORITY = 1, +NL80211_SCAN_FLAG_FLUSH = 2, +NL80211_SCAN_FLAG_AP = 4, +NL80211_SCAN_FLAG_RANDOM_ADDR = 8, +NL80211_SCAN_FLAG_FILS_MAX_CHANNEL_TIME = 16, +NL80211_SCAN_FLAG_ACCEPT_BCAST_PROBE_RESP = 32, +NL80211_SCAN_FLAG_OCE_PROBE_REQ_HIGH_TX_RATE = 64, +NL80211_SCAN_FLAG_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION = 128, +NL80211_SCAN_FLAG_LOW_SPAN = 256, +NL80211_SCAN_FLAG_LOW_POWER = 512, +NL80211_SCAN_FLAG_HIGH_ACCURACY = 1024, +NL80211_SCAN_FLAG_RANDOM_SN = 2048, +NL80211_SCAN_FLAG_MIN_PREQ_CONTENT = 4096, +NL80211_SCAN_FLAG_FREQ_KHZ = 8192, +NL80211_SCAN_FLAG_COLOCATED_6GHZ = 16384, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_acl_policy { +NL80211_ACL_POLICY_ACCEPT_UNLESS_LISTED = 0, +NL80211_ACL_POLICY_DENY_UNLESS_LISTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_smps_mode { +NL80211_SMPS_OFF = 0, +NL80211_SMPS_STATIC = 1, +NL80211_SMPS_DYNAMIC = 2, +__NL80211_SMPS_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_radar_event { +NL80211_RADAR_DETECTED = 0, +NL80211_RADAR_CAC_FINISHED = 1, +NL80211_RADAR_CAC_ABORTED = 2, +NL80211_RADAR_NOP_FINISHED = 3, +NL80211_RADAR_PRE_CAC_EXPIRED = 4, +NL80211_RADAR_CAC_STARTED = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_dfs_state { +NL80211_DFS_USABLE = 0, +NL80211_DFS_UNAVAILABLE = 1, +NL80211_DFS_AVAILABLE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_protocol_features { +NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_crit_proto_id { +NL80211_CRIT_PROTO_UNSPEC = 0, +NL80211_CRIT_PROTO_DHCP = 1, +NL80211_CRIT_PROTO_EAPOL = 2, +NL80211_CRIT_PROTO_APIPA = 3, +NUM_NL80211_CRIT_PROTO = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_rxmgmt_flags { +NL80211_RXMGMT_FLAG_ANSWERED = 1, +NL80211_RXMGMT_FLAG_EXTERNAL_AUTH = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tdls_peer_capability { +NL80211_TDLS_PEER_HT = 1, +NL80211_TDLS_PEER_VHT = 2, +NL80211_TDLS_PEER_WMM = 4, +NL80211_TDLS_PEER_HE = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sched_scan_plan { +__NL80211_SCHED_SCAN_PLAN_INVALID = 0, +NL80211_SCHED_SCAN_PLAN_INTERVAL = 1, +NL80211_SCHED_SCAN_PLAN_ITERATIONS = 2, +__NL80211_SCHED_SCAN_PLAN_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_select_attr { +__NL80211_BSS_SELECT_ATTR_INVALID = 0, +NL80211_BSS_SELECT_ATTR_RSSI = 1, +NL80211_BSS_SELECT_ATTR_BAND_PREF = 2, +NL80211_BSS_SELECT_ATTR_RSSI_ADJUST = 3, +__NL80211_BSS_SELECT_ATTR_AFTER_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_function_type { +NL80211_NAN_FUNC_PUBLISH = 0, +NL80211_NAN_FUNC_SUBSCRIBE = 1, +NL80211_NAN_FUNC_FOLLOW_UP = 2, +__NL80211_NAN_FUNC_TYPE_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_publish_type { +NL80211_NAN_SOLICITED_PUBLISH = 1, +NL80211_NAN_UNSOLICITED_PUBLISH = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_func_term_reason { +NL80211_NAN_FUNC_TERM_REASON_USER_REQUEST = 0, +NL80211_NAN_FUNC_TERM_REASON_TTL_EXPIRED = 1, +NL80211_NAN_FUNC_TERM_REASON_ERROR = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_func_attributes { +__NL80211_NAN_FUNC_INVALID = 0, +NL80211_NAN_FUNC_TYPE = 1, +NL80211_NAN_FUNC_SERVICE_ID = 2, +NL80211_NAN_FUNC_PUBLISH_TYPE = 3, +NL80211_NAN_FUNC_PUBLISH_BCAST = 4, +NL80211_NAN_FUNC_SUBSCRIBE_ACTIVE = 5, +NL80211_NAN_FUNC_FOLLOW_UP_ID = 6, +NL80211_NAN_FUNC_FOLLOW_UP_REQ_ID = 7, +NL80211_NAN_FUNC_FOLLOW_UP_DEST = 8, +NL80211_NAN_FUNC_CLOSE_RANGE = 9, +NL80211_NAN_FUNC_TTL = 10, +NL80211_NAN_FUNC_SERVICE_INFO = 11, +NL80211_NAN_FUNC_SRF = 12, +NL80211_NAN_FUNC_RX_MATCH_FILTER = 13, +NL80211_NAN_FUNC_TX_MATCH_FILTER = 14, +NL80211_NAN_FUNC_INSTANCE_ID = 15, +NL80211_NAN_FUNC_TERM_REASON = 16, +NUM_NL80211_NAN_FUNC_ATTR = 17, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_srf_attributes { +__NL80211_NAN_SRF_INVALID = 0, +NL80211_NAN_SRF_INCLUDE = 1, +NL80211_NAN_SRF_BF = 2, +NL80211_NAN_SRF_BF_IDX = 3, +NL80211_NAN_SRF_MAC_ADDRS = 4, +NUM_NL80211_NAN_SRF_ATTR = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_match_attributes { +__NL80211_NAN_MATCH_INVALID = 0, +NL80211_NAN_MATCH_FUNC_LOCAL = 1, +NL80211_NAN_MATCH_FUNC_PEER = 2, +NUM_NL80211_NAN_MATCH_ATTR = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_external_auth_action { +NL80211_EXTERNAL_AUTH_START = 0, +NL80211_EXTERNAL_AUTH_ABORT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ftm_responder_attributes { +__NL80211_FTM_RESP_ATTR_INVALID = 0, +NL80211_FTM_RESP_ATTR_ENABLED = 1, +NL80211_FTM_RESP_ATTR_LCI = 2, +NL80211_FTM_RESP_ATTR_CIVICLOC = 3, +__NL80211_FTM_RESP_ATTR_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ftm_responder_stats { +__NL80211_FTM_STATS_INVALID = 0, +NL80211_FTM_STATS_SUCCESS_NUM = 1, +NL80211_FTM_STATS_PARTIAL_NUM = 2, +NL80211_FTM_STATS_FAILED_NUM = 3, +NL80211_FTM_STATS_ASAP_NUM = 4, +NL80211_FTM_STATS_NON_ASAP_NUM = 5, +NL80211_FTM_STATS_TOTAL_DURATION_MSEC = 6, +NL80211_FTM_STATS_UNKNOWN_TRIGGERS_NUM = 7, +NL80211_FTM_STATS_RESCHEDULE_REQUESTS_NUM = 8, +NL80211_FTM_STATS_OUT_OF_WINDOW_TRIGGERS_NUM = 9, +NL80211_FTM_STATS_PAD = 10, +__NL80211_FTM_STATS_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_preamble { +NL80211_PREAMBLE_LEGACY = 0, +NL80211_PREAMBLE_HT = 1, +NL80211_PREAMBLE_VHT = 2, +NL80211_PREAMBLE_DMG = 3, +NL80211_PREAMBLE_HE = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_type { +NL80211_PMSR_TYPE_INVALID = 0, +NL80211_PMSR_TYPE_FTM = 1, +NUM_NL80211_PMSR_TYPES = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_status { +NL80211_PMSR_STATUS_SUCCESS = 0, +NL80211_PMSR_STATUS_REFUSED = 1, +NL80211_PMSR_STATUS_TIMEOUT = 2, +NL80211_PMSR_STATUS_FAILURE = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_req { +__NL80211_PMSR_REQ_ATTR_INVALID = 0, +NL80211_PMSR_REQ_ATTR_DATA = 1, +NL80211_PMSR_REQ_ATTR_GET_AP_TSF = 2, +NUM_NL80211_PMSR_REQ_ATTRS = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_resp { +__NL80211_PMSR_RESP_ATTR_INVALID = 0, +NL80211_PMSR_RESP_ATTR_DATA = 1, +NL80211_PMSR_RESP_ATTR_STATUS = 2, +NL80211_PMSR_RESP_ATTR_HOST_TIME = 3, +NL80211_PMSR_RESP_ATTR_AP_TSF = 4, +NL80211_PMSR_RESP_ATTR_FINAL = 5, +NL80211_PMSR_RESP_ATTR_PAD = 6, +NUM_NL80211_PMSR_RESP_ATTRS = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_peer_attrs { +__NL80211_PMSR_PEER_ATTR_INVALID = 0, +NL80211_PMSR_PEER_ATTR_ADDR = 1, +NL80211_PMSR_PEER_ATTR_CHAN = 2, +NL80211_PMSR_PEER_ATTR_REQ = 3, +NL80211_PMSR_PEER_ATTR_RESP = 4, +NUM_NL80211_PMSR_PEER_ATTRS = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_attrs { +__NL80211_PMSR_ATTR_INVALID = 0, +NL80211_PMSR_ATTR_MAX_PEERS = 1, +NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, +NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, +NL80211_PMSR_ATTR_TYPE_CAPA = 4, +NL80211_PMSR_ATTR_PEERS = 5, +NUM_NL80211_PMSR_ATTR = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_capa { +__NL80211_PMSR_FTM_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_CAPA_ATTR_ASAP = 1, +NL80211_PMSR_FTM_CAPA_ATTR_NON_ASAP = 2, +NL80211_PMSR_FTM_CAPA_ATTR_REQ_LCI = 3, +NL80211_PMSR_FTM_CAPA_ATTR_REQ_CIVICLOC = 4, +NL80211_PMSR_FTM_CAPA_ATTR_PREAMBLES = 5, +NL80211_PMSR_FTM_CAPA_ATTR_BANDWIDTHS = 6, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, +NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, +NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req { +__NL80211_PMSR_FTM_REQ_ATTR_INVALID = 0, +NL80211_PMSR_FTM_REQ_ATTR_ASAP = 1, +NL80211_PMSR_FTM_REQ_ATTR_PREAMBLE = 2, +NL80211_PMSR_FTM_REQ_ATTR_NUM_BURSTS_EXP = 3, +NL80211_PMSR_FTM_REQ_ATTR_BURST_PERIOD = 4, +NL80211_PMSR_FTM_REQ_ATTR_BURST_DURATION = 5, +NL80211_PMSR_FTM_REQ_ATTR_FTMS_PER_BURST = 6, +NL80211_PMSR_FTM_REQ_ATTR_NUM_FTMR_RETRIES = 7, +NL80211_PMSR_FTM_REQ_ATTR_REQUEST_LCI = 8, +NL80211_PMSR_FTM_REQ_ATTR_REQUEST_CIVICLOC = 9, +NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, +NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, +NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, +NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_failure_reasons { +NL80211_PMSR_FTM_FAILURE_UNSPECIFIED = 0, +NL80211_PMSR_FTM_FAILURE_NO_RESPONSE = 1, +NL80211_PMSR_FTM_FAILURE_REJECTED = 2, +NL80211_PMSR_FTM_FAILURE_WRONG_CHANNEL = 3, +NL80211_PMSR_FTM_FAILURE_PEER_NOT_CAPABLE = 4, +NL80211_PMSR_FTM_FAILURE_INVALID_TIMESTAMP = 5, +NL80211_PMSR_FTM_FAILURE_PEER_BUSY = 6, +NL80211_PMSR_FTM_FAILURE_BAD_CHANGED_PARAMS = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_resp { +__NL80211_PMSR_FTM_RESP_ATTR_INVALID = 0, +NL80211_PMSR_FTM_RESP_ATTR_FAIL_REASON = 1, +NL80211_PMSR_FTM_RESP_ATTR_BURST_INDEX = 2, +NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_ATTEMPTS = 3, +NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_SUCCESSES = 4, +NL80211_PMSR_FTM_RESP_ATTR_BUSY_RETRY_TIME = 5, +NL80211_PMSR_FTM_RESP_ATTR_NUM_BURSTS_EXP = 6, +NL80211_PMSR_FTM_RESP_ATTR_BURST_DURATION = 7, +NL80211_PMSR_FTM_RESP_ATTR_FTMS_PER_BURST = 8, +NL80211_PMSR_FTM_RESP_ATTR_RSSI_AVG = 9, +NL80211_PMSR_FTM_RESP_ATTR_RSSI_SPREAD = 10, +NL80211_PMSR_FTM_RESP_ATTR_TX_RATE = 11, +NL80211_PMSR_FTM_RESP_ATTR_RX_RATE = 12, +NL80211_PMSR_FTM_RESP_ATTR_RTT_AVG = 13, +NL80211_PMSR_FTM_RESP_ATTR_RTT_VARIANCE = 14, +NL80211_PMSR_FTM_RESP_ATTR_RTT_SPREAD = 15, +NL80211_PMSR_FTM_RESP_ATTR_DIST_AVG = 16, +NL80211_PMSR_FTM_RESP_ATTR_DIST_VARIANCE = 17, +NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, +NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, +NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, +NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_obss_pd_attributes { +__NL80211_HE_OBSS_PD_ATTR_INVALID = 0, +NL80211_HE_OBSS_PD_ATTR_MIN_OFFSET = 1, +NL80211_HE_OBSS_PD_ATTR_MAX_OFFSET = 2, +NL80211_HE_OBSS_PD_ATTR_NON_SRG_MAX_OFFSET = 3, +NL80211_HE_OBSS_PD_ATTR_BSS_COLOR_BITMAP = 4, +NL80211_HE_OBSS_PD_ATTR_PARTIAL_BSSID_BITMAP = 5, +NL80211_HE_OBSS_PD_ATTR_SR_CTRL = 6, +__NL80211_HE_OBSS_PD_ATTR_LAST = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_color_attributes { +__NL80211_HE_BSS_COLOR_ATTR_INVALID = 0, +NL80211_HE_BSS_COLOR_ATTR_COLOR = 1, +NL80211_HE_BSS_COLOR_ATTR_DISABLED = 2, +NL80211_HE_BSS_COLOR_ATTR_PARTIAL = 3, +__NL80211_HE_BSS_COLOR_ATTR_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_iftype_akm_attributes { +__NL80211_IFTYPE_AKM_ATTR_INVALID = 0, +NL80211_IFTYPE_AKM_ATTR_IFTYPES = 1, +NL80211_IFTYPE_AKM_ATTR_SUITES = 2, +__NL80211_IFTYPE_AKM_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_fils_discovery_attributes { +__NL80211_FILS_DISCOVERY_ATTR_INVALID = 0, +NL80211_FILS_DISCOVERY_ATTR_INT_MIN = 1, +NL80211_FILS_DISCOVERY_ATTR_INT_MAX = 2, +NL80211_FILS_DISCOVERY_ATTR_TMPL = 3, +__NL80211_FILS_DISCOVERY_ATTR_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_unsol_bcast_probe_resp_attributes { +__NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INVALID = 0, +NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INT = 1, +NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_TMPL = 2, +__NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sae_pwe_mechanism { +NL80211_SAE_PWE_UNSPECIFIED = 0, +NL80211_SAE_PWE_HUNT_AND_PECK = 1, +NL80211_SAE_PWE_HASH_TO_ELEMENT = 2, +NL80211_SAE_PWE_BOTH = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sar_type { +NL80211_SAR_TYPE_POWER = 0, +NUM_NL80211_SAR_TYPE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sar_attrs { +__NL80211_SAR_ATTR_INVALID = 0, +NL80211_SAR_ATTR_TYPE = 1, +NL80211_SAR_ATTR_SPECS = 2, +__NL80211_SAR_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sar_specs_attrs { +__NL80211_SAR_ATTR_SPECS_INVALID = 0, +NL80211_SAR_ATTR_SPECS_POWER = 1, +NL80211_SAR_ATTR_SPECS_RANGE_INDEX = 2, +NL80211_SAR_ATTR_SPECS_START_FREQ = 3, +NL80211_SAR_ATTR_SPECS_END_FREQ = 4, +__NL80211_SAR_ATTR_SPECS_LAST = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mbssid_config_attributes { +__NL80211_MBSSID_CONFIG_ATTR_INVALID = 0, +NL80211_MBSSID_CONFIG_ATTR_MAX_INTERFACES = 1, +NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 2, +NL80211_MBSSID_CONFIG_ATTR_INDEX = 3, +NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 4, +NL80211_MBSSID_CONFIG_ATTR_EMA = 5, +NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID = 6, +__NL80211_MBSSID_CONFIG_ATTR_LAST = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ap_settings_flags { +NL80211_AP_SETTINGS_EXTERNAL_AUTH_SUPPORT = 1, +NL80211_AP_SETTINGS_SA_QUERY_OFFLOAD_SUPPORT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wiphy_radio_attrs { +__NL80211_WIPHY_RADIO_ATTR_INVALID = 0, +NL80211_WIPHY_RADIO_ATTR_INDEX = 1, +NL80211_WIPHY_RADIO_ATTR_FREQ_RANGE = 2, +NL80211_WIPHY_RADIO_ATTR_INTERFACE_COMBINATION = 3, +NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK = 4, +__NL80211_WIPHY_RADIO_ATTR_LAST = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wiphy_radio_freq_range { +__NL80211_WIPHY_RADIO_FREQ_ATTR_INVALID = 0, +NL80211_WIPHY_RADIO_FREQ_ATTR_START = 1, +NL80211_WIPHY_RADIO_FREQ_ATTR_END = 2, +__NL80211_WIPHY_RADIO_FREQ_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IFLA_UNSPEC = 0, +IFLA_ADDRESS = 1, +IFLA_BROADCAST = 2, +IFLA_IFNAME = 3, +IFLA_MTU = 4, +IFLA_LINK = 5, +IFLA_QDISC = 6, +IFLA_STATS = 7, +IFLA_COST = 8, +IFLA_PRIORITY = 9, +IFLA_MASTER = 10, +IFLA_WIRELESS = 11, +IFLA_PROTINFO = 12, +IFLA_TXQLEN = 13, +IFLA_MAP = 14, +IFLA_WEIGHT = 15, +IFLA_OPERSTATE = 16, +IFLA_LINKMODE = 17, +IFLA_LINKINFO = 18, +IFLA_NET_NS_PID = 19, +IFLA_IFALIAS = 20, +IFLA_NUM_VF = 21, +IFLA_VFINFO_LIST = 22, +IFLA_STATS64 = 23, +IFLA_VF_PORTS = 24, +IFLA_PORT_SELF = 25, +IFLA_AF_SPEC = 26, +IFLA_GROUP = 27, +IFLA_NET_NS_FD = 28, +IFLA_EXT_MASK = 29, +IFLA_PROMISCUITY = 30, +IFLA_NUM_TX_QUEUES = 31, +IFLA_NUM_RX_QUEUES = 32, +IFLA_CARRIER = 33, +IFLA_PHYS_PORT_ID = 34, +IFLA_CARRIER_CHANGES = 35, +IFLA_PHYS_SWITCH_ID = 36, +IFLA_LINK_NETNSID = 37, +IFLA_PHYS_PORT_NAME = 38, +IFLA_PROTO_DOWN = 39, +IFLA_GSO_MAX_SEGS = 40, +IFLA_GSO_MAX_SIZE = 41, +IFLA_PAD = 42, +IFLA_XDP = 43, +IFLA_EVENT = 44, +IFLA_NEW_NETNSID = 45, +IFLA_IF_NETNSID = 46, +IFLA_CARRIER_UP_COUNT = 47, +IFLA_CARRIER_DOWN_COUNT = 48, +IFLA_NEW_IFINDEX = 49, +IFLA_MIN_MTU = 50, +IFLA_MAX_MTU = 51, +IFLA_PROP_LIST = 52, +IFLA_ALT_IFNAME = 53, +IFLA_PERM_ADDRESS = 54, +IFLA_PROTO_DOWN_REASON = 55, +IFLA_PARENT_DEV_NAME = 56, +IFLA_PARENT_DEV_BUS_NAME = 57, +IFLA_GRO_MAX_SIZE = 58, +IFLA_TSO_MAX_SIZE = 59, +IFLA_TSO_MAX_SEGS = 60, +IFLA_ALLMULTI = 61, +IFLA_DEVLINK_PORT = 62, +IFLA_GSO_IPV4_MAX_SIZE = 63, +IFLA_GRO_IPV4_MAX_SIZE = 64, +IFLA_DPLL_PIN = 65, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +IFLA_NETNS_IMMUTABLE = 67, +__IFLA_MAX = 68, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +IFLA_PROTO_DOWN_REASON_UNSPEC = 0, +IFLA_PROTO_DOWN_REASON_MASK = 1, +IFLA_PROTO_DOWN_REASON_VALUE = 2, +__IFLA_PROTO_DOWN_REASON_CNT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IFLA_INET_UNSPEC = 0, +IFLA_INET_CONF = 1, +__IFLA_INET_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_5 { +IFLA_INET6_UNSPEC = 0, +IFLA_INET6_FLAGS = 1, +IFLA_INET6_CONF = 2, +IFLA_INET6_STATS = 3, +IFLA_INET6_MCAST = 4, +IFLA_INET6_CACHEINFO = 5, +IFLA_INET6_ICMP6STATS = 6, +IFLA_INET6_TOKEN = 7, +IFLA_INET6_ADDR_GEN_MODE = 8, +IFLA_INET6_RA_MTU = 9, +__IFLA_INET6_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum in6_addr_gen_mode { +IN6_ADDR_GEN_MODE_EUI64 = 0, +IN6_ADDR_GEN_MODE_NONE = 1, +IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, +IN6_ADDR_GEN_MODE_RANDOM = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_6 { +IFLA_BR_UNSPEC = 0, +IFLA_BR_FORWARD_DELAY = 1, +IFLA_BR_HELLO_TIME = 2, +IFLA_BR_MAX_AGE = 3, +IFLA_BR_AGEING_TIME = 4, +IFLA_BR_STP_STATE = 5, +IFLA_BR_PRIORITY = 6, +IFLA_BR_VLAN_FILTERING = 7, +IFLA_BR_VLAN_PROTOCOL = 8, +IFLA_BR_GROUP_FWD_MASK = 9, +IFLA_BR_ROOT_ID = 10, +IFLA_BR_BRIDGE_ID = 11, +IFLA_BR_ROOT_PORT = 12, +IFLA_BR_ROOT_PATH_COST = 13, +IFLA_BR_TOPOLOGY_CHANGE = 14, +IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, +IFLA_BR_HELLO_TIMER = 16, +IFLA_BR_TCN_TIMER = 17, +IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, +IFLA_BR_GC_TIMER = 19, +IFLA_BR_GROUP_ADDR = 20, +IFLA_BR_FDB_FLUSH = 21, +IFLA_BR_MCAST_ROUTER = 22, +IFLA_BR_MCAST_SNOOPING = 23, +IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, +IFLA_BR_MCAST_QUERIER = 25, +IFLA_BR_MCAST_HASH_ELASTICITY = 26, +IFLA_BR_MCAST_HASH_MAX = 27, +IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, +IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, +IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, +IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, +IFLA_BR_MCAST_QUERIER_INTVL = 32, +IFLA_BR_MCAST_QUERY_INTVL = 33, +IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, +IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, +IFLA_BR_NF_CALL_IPTABLES = 36, +IFLA_BR_NF_CALL_IP6TABLES = 37, +IFLA_BR_NF_CALL_ARPTABLES = 38, +IFLA_BR_VLAN_DEFAULT_PVID = 39, +IFLA_BR_PAD = 40, +IFLA_BR_VLAN_STATS_ENABLED = 41, +IFLA_BR_MCAST_STATS_ENABLED = 42, +IFLA_BR_MCAST_IGMP_VERSION = 43, +IFLA_BR_MCAST_MLD_VERSION = 44, +IFLA_BR_VLAN_STATS_PER_PORT = 45, +IFLA_BR_MULTI_BOOLOPT = 46, +IFLA_BR_MCAST_QUERIER_STATE = 47, +IFLA_BR_FDB_N_LEARNED = 48, +IFLA_BR_FDB_MAX_LEARNED = 49, +__IFLA_BR_MAX = 50, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_7 { +BRIDGE_MODE_UNSPEC = 0, +BRIDGE_MODE_HAIRPIN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_8 { +IFLA_BRPORT_UNSPEC = 0, +IFLA_BRPORT_STATE = 1, +IFLA_BRPORT_PRIORITY = 2, +IFLA_BRPORT_COST = 3, +IFLA_BRPORT_MODE = 4, +IFLA_BRPORT_GUARD = 5, +IFLA_BRPORT_PROTECT = 6, +IFLA_BRPORT_FAST_LEAVE = 7, +IFLA_BRPORT_LEARNING = 8, +IFLA_BRPORT_UNICAST_FLOOD = 9, +IFLA_BRPORT_PROXYARP = 10, +IFLA_BRPORT_LEARNING_SYNC = 11, +IFLA_BRPORT_PROXYARP_WIFI = 12, +IFLA_BRPORT_ROOT_ID = 13, +IFLA_BRPORT_BRIDGE_ID = 14, +IFLA_BRPORT_DESIGNATED_PORT = 15, +IFLA_BRPORT_DESIGNATED_COST = 16, +IFLA_BRPORT_ID = 17, +IFLA_BRPORT_NO = 18, +IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, +IFLA_BRPORT_CONFIG_PENDING = 20, +IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, +IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, +IFLA_BRPORT_HOLD_TIMER = 23, +IFLA_BRPORT_FLUSH = 24, +IFLA_BRPORT_MULTICAST_ROUTER = 25, +IFLA_BRPORT_PAD = 26, +IFLA_BRPORT_MCAST_FLOOD = 27, +IFLA_BRPORT_MCAST_TO_UCAST = 28, +IFLA_BRPORT_VLAN_TUNNEL = 29, +IFLA_BRPORT_BCAST_FLOOD = 30, +IFLA_BRPORT_GROUP_FWD_MASK = 31, +IFLA_BRPORT_NEIGH_SUPPRESS = 32, +IFLA_BRPORT_ISOLATED = 33, +IFLA_BRPORT_BACKUP_PORT = 34, +IFLA_BRPORT_MRP_RING_OPEN = 35, +IFLA_BRPORT_MRP_IN_OPEN = 36, +IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, +IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, +IFLA_BRPORT_LOCKED = 39, +IFLA_BRPORT_MAB = 40, +IFLA_BRPORT_MCAST_N_GROUPS = 41, +IFLA_BRPORT_MCAST_MAX_GROUPS = 42, +IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, +IFLA_BRPORT_BACKUP_NHID = 44, +__IFLA_BRPORT_MAX = 45, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_9 { +IFLA_INFO_UNSPEC = 0, +IFLA_INFO_KIND = 1, +IFLA_INFO_DATA = 2, +IFLA_INFO_XSTATS = 3, +IFLA_INFO_SLAVE_KIND = 4, +IFLA_INFO_SLAVE_DATA = 5, +__IFLA_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_10 { +IFLA_VLAN_UNSPEC = 0, +IFLA_VLAN_ID = 1, +IFLA_VLAN_FLAGS = 2, +IFLA_VLAN_EGRESS_QOS = 3, +IFLA_VLAN_INGRESS_QOS = 4, +IFLA_VLAN_PROTOCOL = 5, +__IFLA_VLAN_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_11 { +IFLA_VLAN_QOS_UNSPEC = 0, +IFLA_VLAN_QOS_MAPPING = 1, +__IFLA_VLAN_QOS_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_12 { +IFLA_MACVLAN_UNSPEC = 0, +IFLA_MACVLAN_MODE = 1, +IFLA_MACVLAN_FLAGS = 2, +IFLA_MACVLAN_MACADDR_MODE = 3, +IFLA_MACVLAN_MACADDR = 4, +IFLA_MACVLAN_MACADDR_DATA = 5, +IFLA_MACVLAN_MACADDR_COUNT = 6, +IFLA_MACVLAN_BC_QUEUE_LEN = 7, +IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, +IFLA_MACVLAN_BC_CUTOFF = 9, +__IFLA_MACVLAN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_mode { +MACVLAN_MODE_PRIVATE = 1, +MACVLAN_MODE_VEPA = 2, +MACVLAN_MODE_BRIDGE = 4, +MACVLAN_MODE_PASSTHRU = 8, +MACVLAN_MODE_SOURCE = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_macaddr_mode { +MACVLAN_MACADDR_ADD = 0, +MACVLAN_MACADDR_DEL = 1, +MACVLAN_MACADDR_FLUSH = 2, +MACVLAN_MACADDR_SET = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_13 { +IFLA_VRF_UNSPEC = 0, +IFLA_VRF_TABLE = 1, +__IFLA_VRF_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_14 { +IFLA_VRF_PORT_UNSPEC = 0, +IFLA_VRF_PORT_TABLE = 1, +__IFLA_VRF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_15 { +IFLA_MACSEC_UNSPEC = 0, +IFLA_MACSEC_SCI = 1, +IFLA_MACSEC_PORT = 2, +IFLA_MACSEC_ICV_LEN = 3, +IFLA_MACSEC_CIPHER_SUITE = 4, +IFLA_MACSEC_WINDOW = 5, +IFLA_MACSEC_ENCODING_SA = 6, +IFLA_MACSEC_ENCRYPT = 7, +IFLA_MACSEC_PROTECT = 8, +IFLA_MACSEC_INC_SCI = 9, +IFLA_MACSEC_ES = 10, +IFLA_MACSEC_SCB = 11, +IFLA_MACSEC_REPLAY_PROTECT = 12, +IFLA_MACSEC_VALIDATION = 13, +IFLA_MACSEC_PAD = 14, +IFLA_MACSEC_OFFLOAD = 15, +__IFLA_MACSEC_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_16 { +IFLA_XFRM_UNSPEC = 0, +IFLA_XFRM_LINK = 1, +IFLA_XFRM_IF_ID = 2, +IFLA_XFRM_COLLECT_METADATA = 3, +__IFLA_XFRM_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_validation_type { +MACSEC_VALIDATE_DISABLED = 0, +MACSEC_VALIDATE_CHECK = 1, +MACSEC_VALIDATE_STRICT = 2, +__MACSEC_VALIDATE_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_offload { +MACSEC_OFFLOAD_OFF = 0, +MACSEC_OFFLOAD_PHY = 1, +MACSEC_OFFLOAD_MAC = 2, +__MACSEC_OFFLOAD_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_17 { +IFLA_IPVLAN_UNSPEC = 0, +IFLA_IPVLAN_MODE = 1, +IFLA_IPVLAN_FLAGS = 2, +__IFLA_IPVLAN_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ipvlan_mode { +IPVLAN_MODE_L2 = 0, +IPVLAN_MODE_L3 = 1, +IPVLAN_MODE_L3S = 2, +IPVLAN_MODE_MAX = 3, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_action { +NETKIT_NEXT = -1, +NETKIT_PASS = 0, +NETKIT_DROP = 2, +NETKIT_REDIRECT = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_mode { +NETKIT_L2 = 0, +NETKIT_L3 = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_18 { +IFLA_NETKIT_UNSPEC = 0, +IFLA_NETKIT_PEER_INFO = 1, +IFLA_NETKIT_PRIMARY = 2, +IFLA_NETKIT_POLICY = 3, +IFLA_NETKIT_PEER_POLICY = 4, +IFLA_NETKIT_MODE = 5, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +IFLA_NETKIT_HEADROOM = 8, +IFLA_NETKIT_TAILROOM = 9, +__IFLA_NETKIT_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_19 { +VNIFILTER_ENTRY_STATS_UNSPEC = 0, +VNIFILTER_ENTRY_STATS_RX_BYTES = 1, +VNIFILTER_ENTRY_STATS_RX_PKTS = 2, +VNIFILTER_ENTRY_STATS_RX_DROPS = 3, +VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, +VNIFILTER_ENTRY_STATS_TX_BYTES = 5, +VNIFILTER_ENTRY_STATS_TX_PKTS = 6, +VNIFILTER_ENTRY_STATS_TX_DROPS = 7, +VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, +VNIFILTER_ENTRY_STATS_PAD = 9, +__VNIFILTER_ENTRY_STATS_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_20 { +VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY_START = 1, +VXLAN_VNIFILTER_ENTRY_END = 2, +VXLAN_VNIFILTER_ENTRY_GROUP = 3, +VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, +VXLAN_VNIFILTER_ENTRY_STATS = 5, +__VXLAN_VNIFILTER_ENTRY_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_21 { +VXLAN_VNIFILTER_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY = 1, +__VXLAN_VNIFILTER_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_22 { +IFLA_VXLAN_UNSPEC = 0, +IFLA_VXLAN_ID = 1, +IFLA_VXLAN_GROUP = 2, +IFLA_VXLAN_LINK = 3, +IFLA_VXLAN_LOCAL = 4, +IFLA_VXLAN_TTL = 5, +IFLA_VXLAN_TOS = 6, +IFLA_VXLAN_LEARNING = 7, +IFLA_VXLAN_AGEING = 8, +IFLA_VXLAN_LIMIT = 9, +IFLA_VXLAN_PORT_RANGE = 10, +IFLA_VXLAN_PROXY = 11, +IFLA_VXLAN_RSC = 12, +IFLA_VXLAN_L2MISS = 13, +IFLA_VXLAN_L3MISS = 14, +IFLA_VXLAN_PORT = 15, +IFLA_VXLAN_GROUP6 = 16, +IFLA_VXLAN_LOCAL6 = 17, +IFLA_VXLAN_UDP_CSUM = 18, +IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, +IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, +IFLA_VXLAN_REMCSUM_TX = 21, +IFLA_VXLAN_REMCSUM_RX = 22, +IFLA_VXLAN_GBP = 23, +IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, +IFLA_VXLAN_COLLECT_METADATA = 25, +IFLA_VXLAN_LABEL = 26, +IFLA_VXLAN_GPE = 27, +IFLA_VXLAN_TTL_INHERIT = 28, +IFLA_VXLAN_DF = 29, +IFLA_VXLAN_VNIFILTER = 30, +IFLA_VXLAN_LOCALBYPASS = 31, +IFLA_VXLAN_LABEL_POLICY = 32, +IFLA_VXLAN_RESERVED_BITS = 33, +__IFLA_VXLAN_MAX = 34, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_df { +VXLAN_DF_UNSET = 0, +VXLAN_DF_SET = 1, +VXLAN_DF_INHERIT = 2, +__VXLAN_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_label_policy { +VXLAN_LABEL_FIXED = 0, +VXLAN_LABEL_INHERIT = 1, +__VXLAN_LABEL_END = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_23 { +IFLA_GENEVE_UNSPEC = 0, +IFLA_GENEVE_ID = 1, +IFLA_GENEVE_REMOTE = 2, +IFLA_GENEVE_TTL = 3, +IFLA_GENEVE_TOS = 4, +IFLA_GENEVE_PORT = 5, +IFLA_GENEVE_COLLECT_METADATA = 6, +IFLA_GENEVE_REMOTE6 = 7, +IFLA_GENEVE_UDP_CSUM = 8, +IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, +IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, +IFLA_GENEVE_LABEL = 11, +IFLA_GENEVE_TTL_INHERIT = 12, +IFLA_GENEVE_DF = 13, +IFLA_GENEVE_INNER_PROTO_INHERIT = 14, +IFLA_GENEVE_PORT_RANGE = 15, +__IFLA_GENEVE_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_geneve_df { +GENEVE_DF_UNSET = 0, +GENEVE_DF_SET = 1, +GENEVE_DF_INHERIT = 2, +__GENEVE_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_24 { +IFLA_BAREUDP_UNSPEC = 0, +IFLA_BAREUDP_PORT = 1, +IFLA_BAREUDP_ETHERTYPE = 2, +IFLA_BAREUDP_SRCPORT_MIN = 3, +IFLA_BAREUDP_MULTIPROTO_MODE = 4, +__IFLA_BAREUDP_MAX = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_25 { +IFLA_PPP_UNSPEC = 0, +IFLA_PPP_DEV_FD = 1, +__IFLA_PPP_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_gtp_role { +GTP_ROLE_GGSN = 0, +GTP_ROLE_SGSN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_26 { +IFLA_GTP_UNSPEC = 0, +IFLA_GTP_FD0 = 1, +IFLA_GTP_FD1 = 2, +IFLA_GTP_PDP_HASHSIZE = 3, +IFLA_GTP_ROLE = 4, +IFLA_GTP_CREATE_SOCKETS = 5, +IFLA_GTP_RESTART_COUNT = 6, +IFLA_GTP_LOCAL = 7, +IFLA_GTP_LOCAL6 = 8, +__IFLA_GTP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_27 { +IFLA_BOND_UNSPEC = 0, +IFLA_BOND_MODE = 1, +IFLA_BOND_ACTIVE_SLAVE = 2, +IFLA_BOND_MIIMON = 3, +IFLA_BOND_UPDELAY = 4, +IFLA_BOND_DOWNDELAY = 5, +IFLA_BOND_USE_CARRIER = 6, +IFLA_BOND_ARP_INTERVAL = 7, +IFLA_BOND_ARP_IP_TARGET = 8, +IFLA_BOND_ARP_VALIDATE = 9, +IFLA_BOND_ARP_ALL_TARGETS = 10, +IFLA_BOND_PRIMARY = 11, +IFLA_BOND_PRIMARY_RESELECT = 12, +IFLA_BOND_FAIL_OVER_MAC = 13, +IFLA_BOND_XMIT_HASH_POLICY = 14, +IFLA_BOND_RESEND_IGMP = 15, +IFLA_BOND_NUM_PEER_NOTIF = 16, +IFLA_BOND_ALL_SLAVES_ACTIVE = 17, +IFLA_BOND_MIN_LINKS = 18, +IFLA_BOND_LP_INTERVAL = 19, +IFLA_BOND_PACKETS_PER_SLAVE = 20, +IFLA_BOND_AD_LACP_RATE = 21, +IFLA_BOND_AD_SELECT = 22, +IFLA_BOND_AD_INFO = 23, +IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, +IFLA_BOND_AD_USER_PORT_KEY = 25, +IFLA_BOND_AD_ACTOR_SYSTEM = 26, +IFLA_BOND_TLB_DYNAMIC_LB = 27, +IFLA_BOND_PEER_NOTIF_DELAY = 28, +IFLA_BOND_AD_LACP_ACTIVE = 29, +IFLA_BOND_MISSED_MAX = 30, +IFLA_BOND_NS_IP6_TARGET = 31, +IFLA_BOND_COUPLED_CONTROL = 32, +__IFLA_BOND_MAX = 33, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_28 { +IFLA_BOND_AD_INFO_UNSPEC = 0, +IFLA_BOND_AD_INFO_AGGREGATOR = 1, +IFLA_BOND_AD_INFO_NUM_PORTS = 2, +IFLA_BOND_AD_INFO_ACTOR_KEY = 3, +IFLA_BOND_AD_INFO_PARTNER_KEY = 4, +IFLA_BOND_AD_INFO_PARTNER_MAC = 5, +__IFLA_BOND_AD_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_29 { +IFLA_BOND_SLAVE_UNSPEC = 0, +IFLA_BOND_SLAVE_STATE = 1, +IFLA_BOND_SLAVE_MII_STATUS = 2, +IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, +IFLA_BOND_SLAVE_PERM_HWADDR = 4, +IFLA_BOND_SLAVE_QUEUE_ID = 5, +IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, +IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, +IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, +IFLA_BOND_SLAVE_PRIO = 9, +__IFLA_BOND_SLAVE_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_30 { +IFLA_VF_INFO_UNSPEC = 0, +IFLA_VF_INFO = 1, +__IFLA_VF_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_31 { +IFLA_VF_UNSPEC = 0, +IFLA_VF_MAC = 1, +IFLA_VF_VLAN = 2, +IFLA_VF_TX_RATE = 3, +IFLA_VF_SPOOFCHK = 4, +IFLA_VF_LINK_STATE = 5, +IFLA_VF_RATE = 6, +IFLA_VF_RSS_QUERY_EN = 7, +IFLA_VF_STATS = 8, +IFLA_VF_TRUST = 9, +IFLA_VF_IB_NODE_GUID = 10, +IFLA_VF_IB_PORT_GUID = 11, +IFLA_VF_VLAN_LIST = 12, +IFLA_VF_BROADCAST = 13, +__IFLA_VF_MAX = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_32 { +IFLA_VF_VLAN_INFO_UNSPEC = 0, +IFLA_VF_VLAN_INFO = 1, +__IFLA_VF_VLAN_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_33 { +IFLA_VF_LINK_STATE_AUTO = 0, +IFLA_VF_LINK_STATE_ENABLE = 1, +IFLA_VF_LINK_STATE_DISABLE = 2, +__IFLA_VF_LINK_STATE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_34 { +IFLA_VF_STATS_RX_PACKETS = 0, +IFLA_VF_STATS_TX_PACKETS = 1, +IFLA_VF_STATS_RX_BYTES = 2, +IFLA_VF_STATS_TX_BYTES = 3, +IFLA_VF_STATS_BROADCAST = 4, +IFLA_VF_STATS_MULTICAST = 5, +IFLA_VF_STATS_PAD = 6, +IFLA_VF_STATS_RX_DROPPED = 7, +IFLA_VF_STATS_TX_DROPPED = 8, +__IFLA_VF_STATS_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_35 { +IFLA_VF_PORT_UNSPEC = 0, +IFLA_VF_PORT = 1, +__IFLA_VF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_36 { +IFLA_PORT_UNSPEC = 0, +IFLA_PORT_VF = 1, +IFLA_PORT_PROFILE = 2, +IFLA_PORT_VSI_TYPE = 3, +IFLA_PORT_INSTANCE_UUID = 4, +IFLA_PORT_HOST_UUID = 5, +IFLA_PORT_REQUEST = 6, +IFLA_PORT_RESPONSE = 7, +__IFLA_PORT_MAX = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_37 { +PORT_REQUEST_PREASSOCIATE = 0, +PORT_REQUEST_PREASSOCIATE_RR = 1, +PORT_REQUEST_ASSOCIATE = 2, +PORT_REQUEST_DISASSOCIATE = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_38 { +PORT_VDP_RESPONSE_SUCCESS = 0, +PORT_VDP_RESPONSE_INVALID_FORMAT = 1, +PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, +PORT_VDP_RESPONSE_UNUSED_VTID = 3, +PORT_VDP_RESPONSE_VTID_VIOLATION = 4, +PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, +PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, +PORT_PROFILE_RESPONSE_SUCCESS = 256, +PORT_PROFILE_RESPONSE_INPROGRESS = 257, +PORT_PROFILE_RESPONSE_INVALID = 258, +PORT_PROFILE_RESPONSE_BADSTATE = 259, +PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, +PORT_PROFILE_RESPONSE_ERROR = 261, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_39 { +IFLA_IPOIB_UNSPEC = 0, +IFLA_IPOIB_PKEY = 1, +IFLA_IPOIB_MODE = 2, +IFLA_IPOIB_UMCAST = 3, +__IFLA_IPOIB_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_40 { +IPOIB_MODE_DATAGRAM = 0, +IPOIB_MODE_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_41 { +HSR_PROTOCOL_HSR = 0, +HSR_PROTOCOL_PRP = 1, +HSR_PROTOCOL_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_42 { +IFLA_HSR_UNSPEC = 0, +IFLA_HSR_SLAVE1 = 1, +IFLA_HSR_SLAVE2 = 2, +IFLA_HSR_MULTICAST_SPEC = 3, +IFLA_HSR_SUPERVISION_ADDR = 4, +IFLA_HSR_SEQ_NR = 5, +IFLA_HSR_VERSION = 6, +IFLA_HSR_PROTOCOL = 7, +IFLA_HSR_INTERLINK = 8, +__IFLA_HSR_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_43 { +IFLA_STATS_UNSPEC = 0, +IFLA_STATS_LINK_64 = 1, +IFLA_STATS_LINK_XSTATS = 2, +IFLA_STATS_LINK_XSTATS_SLAVE = 3, +IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, +IFLA_STATS_AF_SPEC = 5, +__IFLA_STATS_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_44 { +IFLA_STATS_GETSET_UNSPEC = 0, +IFLA_STATS_GET_FILTERS = 1, +IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, +__IFLA_STATS_GETSET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_45 { +LINK_XSTATS_TYPE_UNSPEC = 0, +LINK_XSTATS_TYPE_BRIDGE = 1, +LINK_XSTATS_TYPE_BOND = 2, +__LINK_XSTATS_TYPE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_46 { +IFLA_OFFLOAD_XSTATS_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, +IFLA_OFFLOAD_XSTATS_L3_STATS = 3, +__IFLA_OFFLOAD_XSTATS_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_47 { +IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, +__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_48 { +XDP_ATTACHED_NONE = 0, +XDP_ATTACHED_DRV = 1, +XDP_ATTACHED_SKB = 2, +XDP_ATTACHED_HW = 3, +XDP_ATTACHED_MULTI = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_49 { +IFLA_XDP_UNSPEC = 0, +IFLA_XDP_FD = 1, +IFLA_XDP_ATTACHED = 2, +IFLA_XDP_FLAGS = 3, +IFLA_XDP_PROG_ID = 4, +IFLA_XDP_DRV_PROG_ID = 5, +IFLA_XDP_SKB_PROG_ID = 6, +IFLA_XDP_HW_PROG_ID = 7, +IFLA_XDP_EXPECTED_FD = 8, +__IFLA_XDP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_50 { +IFLA_EVENT_NONE = 0, +IFLA_EVENT_REBOOT = 1, +IFLA_EVENT_FEATURES = 2, +IFLA_EVENT_BONDING_FAILOVER = 3, +IFLA_EVENT_NOTIFY_PEERS = 4, +IFLA_EVENT_IGMP_RESEND = 5, +IFLA_EVENT_BONDING_OPTIONS = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_51 { +IFLA_TUN_UNSPEC = 0, +IFLA_TUN_OWNER = 1, +IFLA_TUN_GROUP = 2, +IFLA_TUN_TYPE = 3, +IFLA_TUN_PI = 4, +IFLA_TUN_VNET_HDR = 5, +IFLA_TUN_PERSIST = 6, +IFLA_TUN_MULTI_QUEUE = 7, +IFLA_TUN_NUM_QUEUES = 8, +IFLA_TUN_NUM_DISABLED_QUEUES = 9, +__IFLA_TUN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_52 { +IFLA_RMNET_UNSPEC = 0, +IFLA_RMNET_MUX_ID = 1, +IFLA_RMNET_FLAGS = 2, +__IFLA_RMNET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_53 { +IFLA_MCTP_UNSPEC = 0, +IFLA_MCTP_NET = 1, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_54 { +IFLA_DSA_UNSPEC = 0, +IFLA_DSA_CONDUIT = 1, +__IFLA_DSA_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ovpn_mode { +OVPN_MODE_P2P = 0, +OVPN_MODE_MP = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_55 { +IFLA_OVPN_UNSPEC = 0, +IFLA_OVPN_MODE = 1, +__IFLA_OVPN_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_56 { +IFA_UNSPEC = 0, +IFA_ADDRESS = 1, +IFA_LOCAL = 2, +IFA_LABEL = 3, +IFA_BROADCAST = 4, +IFA_ANYCAST = 5, +IFA_CACHEINFO = 6, +IFA_MULTICAST = 7, +IFA_FLAGS = 8, +IFA_RT_PRIORITY = 9, +IFA_TARGET_NETNSID = 10, +IFA_PROTO = 11, +__IFA_MAX = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_57 { +NDA_UNSPEC = 0, +NDA_DST = 1, +NDA_LLADDR = 2, +NDA_CACHEINFO = 3, +NDA_PROBES = 4, +NDA_VLAN = 5, +NDA_PORT = 6, +NDA_VNI = 7, +NDA_IFINDEX = 8, +NDA_MASTER = 9, +NDA_LINK_NETNSID = 10, +NDA_SRC_VNI = 11, +NDA_PROTOCOL = 12, +NDA_NH_ID = 13, +NDA_FDB_EXT_ATTRS = 14, +NDA_FLAGS_EXT = 15, +NDA_NDM_STATE_MASK = 16, +NDA_NDM_FLAGS_MASK = 17, +__NDA_MAX = 18, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_58 { +NDTPA_UNSPEC = 0, +NDTPA_IFINDEX = 1, +NDTPA_REFCNT = 2, +NDTPA_REACHABLE_TIME = 3, +NDTPA_BASE_REACHABLE_TIME = 4, +NDTPA_RETRANS_TIME = 5, +NDTPA_GC_STALETIME = 6, +NDTPA_DELAY_PROBE_TIME = 7, +NDTPA_QUEUE_LEN = 8, +NDTPA_APP_PROBES = 9, +NDTPA_UCAST_PROBES = 10, +NDTPA_MCAST_PROBES = 11, +NDTPA_ANYCAST_DELAY = 12, +NDTPA_PROXY_DELAY = 13, +NDTPA_PROXY_QLEN = 14, +NDTPA_LOCKTIME = 15, +NDTPA_QUEUE_LENBYTES = 16, +NDTPA_MCAST_REPROBES = 17, +NDTPA_PAD = 18, +NDTPA_INTERVAL_PROBE_TIME_MS = 19, +__NDTPA_MAX = 20, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_59 { +NDTA_UNSPEC = 0, +NDTA_NAME = 1, +NDTA_THRESH1 = 2, +NDTA_THRESH2 = 3, +NDTA_THRESH3 = 4, +NDTA_CONFIG = 5, +NDTA_PARMS = 6, +NDTA_STATS = 7, +NDTA_GC_INTERVAL = 8, +NDTA_PAD = 9, +__NDTA_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_60 { +FDB_NOTIFY_BIT = 1, +FDB_NOTIFY_INACTIVE_BIT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_61 { +NFEA_UNSPEC = 0, +NFEA_ACTIVITY_NOTIFY = 1, +NFEA_DONT_REFRESH = 2, +__NFEA_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_62 { +RTM_BASE = 16, +RTM_DELLINK = 17, +RTM_GETLINK = 18, +RTM_SETLINK = 19, +RTM_NEWADDR = 20, +RTM_DELADDR = 21, +RTM_GETADDR = 22, +RTM_NEWROUTE = 24, +RTM_DELROUTE = 25, +RTM_GETROUTE = 26, +RTM_NEWNEIGH = 28, +RTM_DELNEIGH = 29, +RTM_GETNEIGH = 30, +RTM_NEWRULE = 32, +RTM_DELRULE = 33, +RTM_GETRULE = 34, +RTM_NEWQDISC = 36, +RTM_DELQDISC = 37, +RTM_GETQDISC = 38, +RTM_NEWTCLASS = 40, +RTM_DELTCLASS = 41, +RTM_GETTCLASS = 42, +RTM_NEWTFILTER = 44, +RTM_DELTFILTER = 45, +RTM_GETTFILTER = 46, +RTM_NEWACTION = 48, +RTM_DELACTION = 49, +RTM_GETACTION = 50, +RTM_NEWPREFIX = 52, +RTM_NEWMULTICAST = 56, +RTM_DELMULTICAST = 57, +RTM_GETMULTICAST = 58, +RTM_NEWANYCAST = 60, +RTM_DELANYCAST = 61, +RTM_GETANYCAST = 62, +RTM_NEWNEIGHTBL = 64, +RTM_GETNEIGHTBL = 66, +RTM_SETNEIGHTBL = 67, +RTM_NEWNDUSEROPT = 68, +RTM_NEWADDRLABEL = 72, +RTM_DELADDRLABEL = 73, +RTM_GETADDRLABEL = 74, +RTM_GETDCB = 78, +RTM_SETDCB = 79, +RTM_NEWNETCONF = 80, +RTM_DELNETCONF = 81, +RTM_GETNETCONF = 82, +RTM_NEWMDB = 84, +RTM_DELMDB = 85, +RTM_GETMDB = 86, +RTM_NEWNSID = 88, +RTM_DELNSID = 89, +RTM_GETNSID = 90, +RTM_NEWSTATS = 92, +RTM_GETSTATS = 94, +RTM_SETSTATS = 95, +RTM_NEWCACHEREPORT = 96, +RTM_NEWCHAIN = 100, +RTM_DELCHAIN = 101, +RTM_GETCHAIN = 102, +RTM_NEWNEXTHOP = 104, +RTM_DELNEXTHOP = 105, +RTM_GETNEXTHOP = 106, +RTM_NEWLINKPROP = 108, +RTM_DELLINKPROP = 109, +RTM_GETLINKPROP = 110, +RTM_NEWVLAN = 112, +RTM_DELVLAN = 113, +RTM_GETVLAN = 114, +RTM_NEWNEXTHOPBUCKET = 116, +RTM_DELNEXTHOPBUCKET = 117, +RTM_GETNEXTHOPBUCKET = 118, +RTM_NEWTUNNEL = 120, +RTM_DELTUNNEL = 121, +RTM_GETTUNNEL = 122, +__RTM_MAX = 123, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_63 { +RTN_UNSPEC = 0, +RTN_UNICAST = 1, +RTN_LOCAL = 2, +RTN_BROADCAST = 3, +RTN_ANYCAST = 4, +RTN_MULTICAST = 5, +RTN_BLACKHOLE = 6, +RTN_UNREACHABLE = 7, +RTN_PROHIBIT = 8, +RTN_THROW = 9, +RTN_NAT = 10, +RTN_XRESOLVE = 11, +__RTN_MAX = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum rt_scope_t { +RT_SCOPE_UNIVERSE = 0, +RT_SCOPE_SITE = 200, +RT_SCOPE_LINK = 253, +RT_SCOPE_HOST = 254, +RT_SCOPE_NOWHERE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum rt_class_t { +RT_TABLE_UNSPEC = 0, +RT_TABLE_COMPAT = 252, +RT_TABLE_DEFAULT = 253, +RT_TABLE_MAIN = 254, +RT_TABLE_LOCAL = 255, +RT_TABLE_MAX = 4294967295, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum rtattr_type_t { +RTA_UNSPEC = 0, +RTA_DST = 1, +RTA_SRC = 2, +RTA_IIF = 3, +RTA_OIF = 4, +RTA_GATEWAY = 5, +RTA_PRIORITY = 6, +RTA_PREFSRC = 7, +RTA_METRICS = 8, +RTA_MULTIPATH = 9, +RTA_PROTOINFO = 10, +RTA_FLOW = 11, +RTA_CACHEINFO = 12, +RTA_SESSION = 13, +RTA_MP_ALGO = 14, +RTA_TABLE = 15, +RTA_MARK = 16, +RTA_MFC_STATS = 17, +RTA_VIA = 18, +RTA_NEWDST = 19, +RTA_PREF = 20, +RTA_ENCAP_TYPE = 21, +RTA_ENCAP = 22, +RTA_EXPIRES = 23, +RTA_PAD = 24, +RTA_UID = 25, +RTA_TTL_PROPAGATE = 26, +RTA_IP_PROTO = 27, +RTA_SPORT = 28, +RTA_DPORT = 29, +RTA_NH_ID = 30, +RTA_FLOWLABEL = 31, +__RTA_MAX = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_64 { +RTAX_UNSPEC = 0, +RTAX_LOCK = 1, +RTAX_MTU = 2, +RTAX_WINDOW = 3, +RTAX_RTT = 4, +RTAX_RTTVAR = 5, +RTAX_SSTHRESH = 6, +RTAX_CWND = 7, +RTAX_ADVMSS = 8, +RTAX_REORDERING = 9, +RTAX_HOPLIMIT = 10, +RTAX_INITCWND = 11, +RTAX_FEATURES = 12, +RTAX_RTO_MIN = 13, +RTAX_INITRWND = 14, +RTAX_QUICKACK = 15, +RTAX_CC_ALGO = 16, +RTAX_FASTOPEN_NO_COOKIE = 17, +__RTAX_MAX = 18, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_65 { +PREFIX_UNSPEC = 0, +PREFIX_ADDRESS = 1, +PREFIX_CACHEINFO = 2, +__PREFIX_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_66 { +TCA_UNSPEC = 0, +TCA_KIND = 1, +TCA_OPTIONS = 2, +TCA_STATS = 3, +TCA_XSTATS = 4, +TCA_RATE = 5, +TCA_FCNT = 6, +TCA_STATS2 = 7, +TCA_STAB = 8, +TCA_PAD = 9, +TCA_DUMP_INVISIBLE = 10, +TCA_CHAIN = 11, +TCA_HW_OFFLOAD = 12, +TCA_INGRESS_BLOCK = 13, +TCA_EGRESS_BLOCK = 14, +TCA_DUMP_FLAGS = 15, +TCA_EXT_WARN_MSG = 16, +__TCA_MAX = 17, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_67 { +NDUSEROPT_UNSPEC = 0, +NDUSEROPT_SRCADDR = 1, +__NDUSEROPT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum rtnetlink_groups { +RTNLGRP_NONE = 0, +RTNLGRP_LINK = 1, +RTNLGRP_NOTIFY = 2, +RTNLGRP_NEIGH = 3, +RTNLGRP_TC = 4, +RTNLGRP_IPV4_IFADDR = 5, +RTNLGRP_IPV4_MROUTE = 6, +RTNLGRP_IPV4_ROUTE = 7, +RTNLGRP_IPV4_RULE = 8, +RTNLGRP_IPV6_IFADDR = 9, +RTNLGRP_IPV6_MROUTE = 10, +RTNLGRP_IPV6_ROUTE = 11, +RTNLGRP_IPV6_IFINFO = 12, +RTNLGRP_DECnet_IFADDR = 13, +RTNLGRP_NOP2 = 14, +RTNLGRP_DECnet_ROUTE = 15, +RTNLGRP_DECnet_RULE = 16, +RTNLGRP_NOP4 = 17, +RTNLGRP_IPV6_PREFIX = 18, +RTNLGRP_IPV6_RULE = 19, +RTNLGRP_ND_USEROPT = 20, +RTNLGRP_PHONET_IFADDR = 21, +RTNLGRP_PHONET_ROUTE = 22, +RTNLGRP_DCB = 23, +RTNLGRP_IPV4_NETCONF = 24, +RTNLGRP_IPV6_NETCONF = 25, +RTNLGRP_MDB = 26, +RTNLGRP_MPLS_ROUTE = 27, +RTNLGRP_NSID = 28, +RTNLGRP_MPLS_NETCONF = 29, +RTNLGRP_IPV4_MROUTE_R = 30, +RTNLGRP_IPV6_MROUTE_R = 31, +RTNLGRP_NEXTHOP = 32, +RTNLGRP_BRVLAN = 33, +RTNLGRP_MCTP_IFADDR = 34, +RTNLGRP_TUNNEL = 35, +RTNLGRP_STATS = 36, +RTNLGRP_IPV4_MCADDR = 37, +RTNLGRP_IPV6_MCADDR = 38, +RTNLGRP_IPV6_ACADDR = 39, +__RTNLGRP_MAX = 40, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_68 { +TCA_ROOT_UNSPEC = 0, +TCA_ROOT_TAB = 1, +TCA_ROOT_FLAGS = 2, +TCA_ROOT_COUNT = 3, +TCA_ROOT_TIME_DELTA = 4, +TCA_ROOT_EXT_WARN_MSG = 5, +__TCA_ROOT_MAX = 6, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __kernel_sockaddr_storage__bindgen_ty_1 { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, +pub __align: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union rta_session__bindgen_ty_1 { +pub ports: rta_session__bindgen_ty_1__bindgen_ty_1, +pub icmpt: rta_session__bindgen_ty_1__bindgen_ty_2, +pub spi: __u32, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl nlmsgerr_attrs { +pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; +} +impl netlink_policy_type_attr { +pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; +} +impl nl80211_commands { +pub const NL80211_CMD_NEW_BEACON: nl80211_commands = nl80211_commands::NL80211_CMD_START_AP; +} +impl nl80211_commands { +pub const NL80211_CMD_DEL_BEACON: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_AP; +} +impl nl80211_commands { +pub const NL80211_CMD_REGISTER_ACTION: nl80211_commands = nl80211_commands::NL80211_CMD_REGISTER_FRAME; +} +impl nl80211_commands { +pub const NL80211_CMD_ACTION: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME; +} +impl nl80211_commands { +pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; +} +impl nl80211_commands { +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +} +impl nl80211_attrs { +pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; +} +impl nl80211_attrs { +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS; +} +impl nl80211_iftype { +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +} +impl nl80211_sta_flags { +pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; +} +impl nl80211_rate_info { +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +} +impl nl80211_sta_bss_param { +pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; +} +impl nl80211_sta_info { +pub const NL80211_STA_INFO_MAX: nl80211_sta_info = nl80211_sta_info::NL80211_STA_INFO_CONNECTED_TO_AS; +} +impl nl80211_tid_stats { +pub const NL80211_TID_STATS_MAX: nl80211_tid_stats = nl80211_tid_stats::NL80211_TID_STATS_TXQ_STATS; +} +impl nl80211_txq_stats { +pub const NL80211_TXQ_STATS_MAX: nl80211_txq_stats = nl80211_txq_stats::NL80211_TXQ_STATS_MAX_FLOWS; +} +impl nl80211_mpath_info { +pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; +} +impl nl80211_band_iftype_attr { +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +} +impl nl80211_band_attr { +pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; +} +impl nl80211_wmm_rule { +pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; +} +impl nl80211_frequency_attr { +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +} +impl nl80211_bitrate_attr { +pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; +} +impl nl80211_reg_rule_attr { +pub const NL80211_REG_RULE_ATTR_MAX: nl80211_reg_rule_attr = nl80211_reg_rule_attr::NL80211_ATTR_POWER_RULE_PSD; +} +impl nl80211_sched_scan_match_attr { +pub const NL80211_SCHED_SCAN_MATCH_ATTR_MAX: nl80211_sched_scan_match_attr = nl80211_sched_scan_match_attr::NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI; +} +impl nl80211_survey_info { +pub const NL80211_SURVEY_INFO_MAX: nl80211_survey_info = nl80211_survey_info::NL80211_SURVEY_INFO_FREQUENCY_OFFSET; +} +impl nl80211_mntr_flags { +pub const NL80211_MNTR_FLAG_MAX: nl80211_mntr_flags = nl80211_mntr_flags::NL80211_MNTR_FLAG_SKIP_TX; +} +impl nl80211_mesh_power_mode { +pub const NL80211_MESH_POWER_MAX: nl80211_mesh_power_mode = nl80211_mesh_power_mode::NL80211_MESH_POWER_DEEP_SLEEP; +} +impl nl80211_meshconf_params { +pub const NL80211_MESHCONF_ATTR_MAX: nl80211_meshconf_params = nl80211_meshconf_params::NL80211_MESHCONF_CONNECTED_TO_AS; +} +impl nl80211_mesh_setup_params { +pub const NL80211_MESH_SETUP_ATTR_MAX: nl80211_mesh_setup_params = nl80211_mesh_setup_params::NL80211_MESH_SETUP_AUTH_PROTOCOL; +} +impl nl80211_txq_attr { +pub const NL80211_TXQ_ATTR_MAX: nl80211_txq_attr = nl80211_txq_attr::NL80211_TXQ_ATTR_AIFS; +} +impl nl80211_bss { +pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; +} +impl nl80211_auth_type { +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +} +impl nl80211_auth_type { +pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; +} +impl nl80211_key_attributes { +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +} +impl nl80211_tx_rate_attributes { +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +} +impl nl80211_attr_cqm { +pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; +} +impl nl80211_tid_config_attr { +pub const NL80211_TID_CONFIG_ATTR_MAX: nl80211_tid_config_attr = nl80211_tid_config_attr::NL80211_TID_CONFIG_ATTR_TX_RATE; +} +impl nl80211_packet_pattern_attr { +pub const MAX_NL80211_PKTPAT: nl80211_packet_pattern_attr = nl80211_packet_pattern_attr::NL80211_PKTPAT_OFFSET; +} +impl nl80211_wowlan_triggers { +pub const MAX_NL80211_WOWLAN_TRIG: nl80211_wowlan_triggers = nl80211_wowlan_triggers::NL80211_WOWLAN_TRIG_UNPROTECTED_DEAUTH_DISASSOC; +} +impl nl80211_wowlan_tcp_attrs { +pub const MAX_NL80211_WOWLAN_TCP: nl80211_wowlan_tcp_attrs = nl80211_wowlan_tcp_attrs::NL80211_WOWLAN_TCP_WAKE_MASK; +} +impl nl80211_attr_coalesce_rule { +pub const NL80211_ATTR_COALESCE_RULE_MAX: nl80211_attr_coalesce_rule = nl80211_attr_coalesce_rule::NL80211_ATTR_COALESCE_RULE_PKT_PATTERN; +} +impl nl80211_iface_limit_attrs { +pub const MAX_NL80211_IFACE_LIMIT: nl80211_iface_limit_attrs = nl80211_iface_limit_attrs::NL80211_IFACE_LIMIT_TYPES; +} +impl nl80211_if_combination_attrs { +pub const MAX_NL80211_IFACE_COMB: nl80211_if_combination_attrs = nl80211_if_combination_attrs::NL80211_IFACE_COMB_BI_MIN_GCD; +} +impl nl80211_plink_state { +pub const MAX_NL80211_PLINK_STATES: nl80211_plink_state = nl80211_plink_state::NL80211_PLINK_BLOCKED; +} +impl nl80211_rekey_data { +pub const MAX_NL80211_REKEY_DATA: nl80211_rekey_data = nl80211_rekey_data::NL80211_REKEY_DATA_AKM; +} +impl nl80211_sta_wme_attr { +pub const NL80211_STA_WME_MAX: nl80211_sta_wme_attr = nl80211_sta_wme_attr::NL80211_STA_WME_MAX_SP; +} +impl nl80211_pmksa_candidate_attr { +pub const MAX_NL80211_PMKSA_CANDIDATE: nl80211_pmksa_candidate_attr = nl80211_pmksa_candidate_attr::NL80211_PMKSA_CANDIDATE_PREAUTH; +} +impl nl80211_ext_feature_index { +pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; +} +impl nl80211_ext_feature_index { +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +} +impl nl80211_smps_mode { +pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; +} +impl nl80211_sched_scan_plan { +pub const NL80211_SCHED_SCAN_PLAN_MAX: nl80211_sched_scan_plan = nl80211_sched_scan_plan::NL80211_SCHED_SCAN_PLAN_ITERATIONS; +} +impl nl80211_bss_select_attr { +pub const NL80211_BSS_SELECT_ATTR_MAX: nl80211_bss_select_attr = nl80211_bss_select_attr::NL80211_BSS_SELECT_ATTR_RSSI_ADJUST; +} +impl nl80211_nan_function_type { +pub const NL80211_NAN_FUNC_MAX_TYPE: nl80211_nan_function_type = nl80211_nan_function_type::NL80211_NAN_FUNC_FOLLOW_UP; +} +impl nl80211_nan_func_attributes { +pub const NL80211_NAN_FUNC_ATTR_MAX: nl80211_nan_func_attributes = nl80211_nan_func_attributes::NL80211_NAN_FUNC_TERM_REASON; +} +impl nl80211_nan_srf_attributes { +pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf_attributes::NL80211_NAN_SRF_MAC_ADDRS; +} +impl nl80211_nan_match_attributes { +pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; +} +impl nl80211_ftm_responder_attributes { +pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; +} +impl nl80211_ftm_responder_stats { +pub const NL80211_FTM_STATS_MAX: nl80211_ftm_responder_stats = nl80211_ftm_responder_stats::NL80211_FTM_STATS_PAD; +} +impl nl80211_peer_measurement_type { +pub const NL80211_PMSR_TYPE_MAX: nl80211_peer_measurement_type = nl80211_peer_measurement_type::NL80211_PMSR_TYPE_FTM; +} +impl nl80211_peer_measurement_req { +pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer_measurement_req::NL80211_PMSR_REQ_ATTR_GET_AP_TSF; +} +impl nl80211_peer_measurement_resp { +pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; +} +impl nl80211_peer_measurement_peer_attrs { +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +} +impl nl80211_peer_measurement_attrs { +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +} +impl nl80211_peer_measurement_ftm_capa { +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +} +impl nl80211_peer_measurement_ftm_req { +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +} +impl nl80211_peer_measurement_ftm_resp { +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +} +impl nl80211_obss_pd_attributes { +pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; +} +impl nl80211_bss_color_attributes { +pub const NL80211_HE_BSS_COLOR_ATTR_MAX: nl80211_bss_color_attributes = nl80211_bss_color_attributes::NL80211_HE_BSS_COLOR_ATTR_PARTIAL; +} +impl nl80211_iftype_akm_attributes { +pub const NL80211_IFTYPE_AKM_ATTR_MAX: nl80211_iftype_akm_attributes = nl80211_iftype_akm_attributes::NL80211_IFTYPE_AKM_ATTR_SUITES; +} +impl nl80211_fils_discovery_attributes { +pub const NL80211_FILS_DISCOVERY_ATTR_MAX: nl80211_fils_discovery_attributes = nl80211_fils_discovery_attributes::NL80211_FILS_DISCOVERY_ATTR_TMPL; +} +impl nl80211_unsol_bcast_probe_resp_attributes { +pub const NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_MAX: nl80211_unsol_bcast_probe_resp_attributes = nl80211_unsol_bcast_probe_resp_attributes::NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_TMPL; +} +impl nl80211_sar_attrs { +pub const NL80211_SAR_ATTR_MAX: nl80211_sar_attrs = nl80211_sar_attrs::NL80211_SAR_ATTR_SPECS; +} +impl nl80211_sar_specs_attrs { +pub const NL80211_SAR_ATTR_SPECS_MAX: nl80211_sar_specs_attrs = nl80211_sar_specs_attrs::NL80211_SAR_ATTR_SPECS_END_FREQ; +} +impl nl80211_mbssid_config_attributes { +pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID; +} +impl nl80211_wiphy_radio_attrs { +pub const NL80211_WIPHY_RADIO_ATTR_MAX: nl80211_wiphy_radio_attrs = nl80211_wiphy_radio_attrs::NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK; +} +impl nl80211_wiphy_radio_freq_range { +pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl80211_wiphy_radio_freq_range::NL80211_WIPHY_RADIO_FREQ_ATTR_END; +} +impl macsec_validation_type { +pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; +} +impl macsec_offload { +pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; +} +impl ifla_vxlan_df { +pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; +} +impl ifla_vxlan_label_policy { +pub const VXLAN_LABEL_MAX: ifla_vxlan_label_policy = ifla_vxlan_label_policy::VXLAN_LABEL_INHERIT; +} +impl ifla_geneve_df { +pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/prctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/prctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..a81ee8cbd3918a6efff28e74e979cc082e2b298b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/prctl.rs @@ -0,0 +1,271 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct prctl_mm_map { +pub start_code: __u64, +pub end_code: __u64, +pub start_data: __u64, +pub end_data: __u64, +pub start_brk: __u64, +pub brk: __u64, +pub start_stack: __u64, +pub arg_start: __u64, +pub arg_end: __u64, +pub env_start: __u64, +pub env_end: __u64, +pub auxv: *mut __u64, +pub auxv_size: __u32, +pub exe_fd: __u32, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const PR_SET_PDEATHSIG: u32 = 1; +pub const PR_GET_PDEATHSIG: u32 = 2; +pub const PR_GET_DUMPABLE: u32 = 3; +pub const PR_SET_DUMPABLE: u32 = 4; +pub const PR_GET_UNALIGN: u32 = 5; +pub const PR_SET_UNALIGN: u32 = 6; +pub const PR_UNALIGN_NOPRINT: u32 = 1; +pub const PR_UNALIGN_SIGBUS: u32 = 2; +pub const PR_GET_KEEPCAPS: u32 = 7; +pub const PR_SET_KEEPCAPS: u32 = 8; +pub const PR_GET_FPEMU: u32 = 9; +pub const PR_SET_FPEMU: u32 = 10; +pub const PR_FPEMU_NOPRINT: u32 = 1; +pub const PR_FPEMU_SIGFPE: u32 = 2; +pub const PR_GET_FPEXC: u32 = 11; +pub const PR_SET_FPEXC: u32 = 12; +pub const PR_FP_EXC_SW_ENABLE: u32 = 128; +pub const PR_FP_EXC_DIV: u32 = 65536; +pub const PR_FP_EXC_OVF: u32 = 131072; +pub const PR_FP_EXC_UND: u32 = 262144; +pub const PR_FP_EXC_RES: u32 = 524288; +pub const PR_FP_EXC_INV: u32 = 1048576; +pub const PR_FP_EXC_DISABLED: u32 = 0; +pub const PR_FP_EXC_NONRECOV: u32 = 1; +pub const PR_FP_EXC_ASYNC: u32 = 2; +pub const PR_FP_EXC_PRECISE: u32 = 3; +pub const PR_GET_TIMING: u32 = 13; +pub const PR_SET_TIMING: u32 = 14; +pub const PR_TIMING_STATISTICAL: u32 = 0; +pub const PR_TIMING_TIMESTAMP: u32 = 1; +pub const PR_SET_NAME: u32 = 15; +pub const PR_GET_NAME: u32 = 16; +pub const PR_GET_ENDIAN: u32 = 19; +pub const PR_SET_ENDIAN: u32 = 20; +pub const PR_ENDIAN_BIG: u32 = 0; +pub const PR_ENDIAN_LITTLE: u32 = 1; +pub const PR_ENDIAN_PPC_LITTLE: u32 = 2; +pub const PR_GET_SECCOMP: u32 = 21; +pub const PR_SET_SECCOMP: u32 = 22; +pub const PR_CAPBSET_READ: u32 = 23; +pub const PR_CAPBSET_DROP: u32 = 24; +pub const PR_GET_TSC: u32 = 25; +pub const PR_SET_TSC: u32 = 26; +pub const PR_TSC_ENABLE: u32 = 1; +pub const PR_TSC_SIGSEGV: u32 = 2; +pub const PR_GET_SECUREBITS: u32 = 27; +pub const PR_SET_SECUREBITS: u32 = 28; +pub const PR_SET_TIMERSLACK: u32 = 29; +pub const PR_GET_TIMERSLACK: u32 = 30; +pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31; +pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32; +pub const PR_MCE_KILL: u32 = 33; +pub const PR_MCE_KILL_CLEAR: u32 = 0; +pub const PR_MCE_KILL_SET: u32 = 1; +pub const PR_MCE_KILL_LATE: u32 = 0; +pub const PR_MCE_KILL_EARLY: u32 = 1; +pub const PR_MCE_KILL_DEFAULT: u32 = 2; +pub const PR_MCE_KILL_GET: u32 = 34; +pub const PR_SET_MM: u32 = 35; +pub const PR_SET_MM_START_CODE: u32 = 1; +pub const PR_SET_MM_END_CODE: u32 = 2; +pub const PR_SET_MM_START_DATA: u32 = 3; +pub const PR_SET_MM_END_DATA: u32 = 4; +pub const PR_SET_MM_START_STACK: u32 = 5; +pub const PR_SET_MM_START_BRK: u32 = 6; +pub const PR_SET_MM_BRK: u32 = 7; +pub const PR_SET_MM_ARG_START: u32 = 8; +pub const PR_SET_MM_ARG_END: u32 = 9; +pub const PR_SET_MM_ENV_START: u32 = 10; +pub const PR_SET_MM_ENV_END: u32 = 11; +pub const PR_SET_MM_AUXV: u32 = 12; +pub const PR_SET_MM_EXE_FILE: u32 = 13; +pub const PR_SET_MM_MAP: u32 = 14; +pub const PR_SET_MM_MAP_SIZE: u32 = 15; +pub const PR_SET_PTRACER: u32 = 1499557217; +pub const PR_SET_CHILD_SUBREAPER: u32 = 36; +pub const PR_GET_CHILD_SUBREAPER: u32 = 37; +pub const PR_SET_NO_NEW_PRIVS: u32 = 38; +pub const PR_GET_NO_NEW_PRIVS: u32 = 39; +pub const PR_GET_TID_ADDRESS: u32 = 40; +pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_GET_THP_DISABLE: u32 = 42; +pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; +pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; +pub const PR_SET_FP_MODE: u32 = 45; +pub const PR_GET_FP_MODE: u32 = 46; +pub const PR_FP_MODE_FR: u32 = 1; +pub const PR_FP_MODE_FRE: u32 = 2; +pub const PR_CAP_AMBIENT: u32 = 47; +pub const PR_CAP_AMBIENT_IS_SET: u32 = 1; +pub const PR_CAP_AMBIENT_RAISE: u32 = 2; +pub const PR_CAP_AMBIENT_LOWER: u32 = 3; +pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4; +pub const PR_SVE_SET_VL: u32 = 50; +pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SVE_GET_VL: u32 = 51; +pub const PR_SVE_VL_LEN_MASK: u32 = 65535; +pub const PR_SVE_VL_INHERIT: u32 = 131072; +pub const PR_GET_SPECULATION_CTRL: u32 = 52; +pub const PR_SET_SPECULATION_CTRL: u32 = 53; +pub const PR_SPEC_STORE_BYPASS: u32 = 0; +pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1; +pub const PR_SPEC_L1D_FLUSH: u32 = 2; +pub const PR_SPEC_NOT_AFFECTED: u32 = 0; +pub const PR_SPEC_PRCTL: u32 = 1; +pub const PR_SPEC_ENABLE: u32 = 2; +pub const PR_SPEC_DISABLE: u32 = 4; +pub const PR_SPEC_FORCE_DISABLE: u32 = 8; +pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16; +pub const PR_PAC_RESET_KEYS: u32 = 54; +pub const PR_PAC_APIAKEY: u32 = 1; +pub const PR_PAC_APIBKEY: u32 = 2; +pub const PR_PAC_APDAKEY: u32 = 4; +pub const PR_PAC_APDBKEY: u32 = 8; +pub const PR_PAC_APGAKEY: u32 = 16; +pub const PR_SET_TAGGED_ADDR_CTRL: u32 = 55; +pub const PR_GET_TAGGED_ADDR_CTRL: u32 = 56; +pub const PR_TAGGED_ADDR_ENABLE: u32 = 1; +pub const PR_MTE_TCF_NONE: u32 = 0; +pub const PR_MTE_TCF_SYNC: u32 = 2; +pub const PR_MTE_TCF_ASYNC: u32 = 4; +pub const PR_MTE_TCF_MASK: u32 = 6; +pub const PR_MTE_TAG_SHIFT: u32 = 3; +pub const PR_MTE_TAG_MASK: u32 = 524280; +pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_PMLEN_SHIFT: u32 = 24; +pub const PR_PMLEN_MASK: u32 = 2130706432; +pub const PR_SET_IO_FLUSHER: u32 = 57; +pub const PR_GET_IO_FLUSHER: u32 = 58; +pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; +pub const PR_SYS_DISPATCH_OFF: u32 = 0; +pub const PR_SYS_DISPATCH_ON: u32 = 1; +pub const SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; +pub const SYSCALL_DISPATCH_FILTER_BLOCK: u32 = 1; +pub const PR_PAC_SET_ENABLED_KEYS: u32 = 60; +pub const PR_PAC_GET_ENABLED_KEYS: u32 = 61; +pub const PR_SCHED_CORE: u32 = 62; +pub const PR_SCHED_CORE_GET: u32 = 0; +pub const PR_SCHED_CORE_CREATE: u32 = 1; +pub const PR_SCHED_CORE_SHARE_TO: u32 = 2; +pub const PR_SCHED_CORE_SHARE_FROM: u32 = 3; +pub const PR_SCHED_CORE_MAX: u32 = 4; +pub const PR_SCHED_CORE_SCOPE_THREAD: u32 = 0; +pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: u32 = 1; +pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: u32 = 2; +pub const PR_SME_SET_VL: u32 = 63; +pub const PR_SME_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SME_GET_VL: u32 = 64; +pub const PR_SME_VL_LEN_MASK: u32 = 65535; +pub const PR_SME_VL_INHERIT: u32 = 131072; +pub const PR_SET_MDWE: u32 = 65; +pub const PR_MDWE_REFUSE_EXEC_GAIN: u32 = 1; +pub const PR_MDWE_NO_INHERIT: u32 = 2; +pub const PR_GET_MDWE: u32 = 66; +pub const PR_SET_VMA: u32 = 1398164801; +pub const PR_SET_VMA_ANON_NAME: u32 = 0; +pub const PR_GET_AUXV: u32 = 1096112214; +pub const PR_SET_MEMORY_MERGE: u32 = 67; +pub const PR_GET_MEMORY_MERGE: u32 = 68; +pub const PR_RISCV_V_SET_CONTROL: u32 = 69; +pub const PR_RISCV_V_GET_CONTROL: u32 = 70; +pub const PR_RISCV_V_VSTATE_CTRL_DEFAULT: u32 = 0; +pub const PR_RISCV_V_VSTATE_CTRL_OFF: u32 = 1; +pub const PR_RISCV_V_VSTATE_CTRL_ON: u32 = 2; +pub const PR_RISCV_V_VSTATE_CTRL_INHERIT: u32 = 16; +pub const PR_RISCV_V_VSTATE_CTRL_CUR_MASK: u32 = 3; +pub const PR_RISCV_V_VSTATE_CTRL_NEXT_MASK: u32 = 12; +pub const PR_RISCV_V_VSTATE_CTRL_MASK: u32 = 31; +pub const PR_RISCV_SET_ICACHE_FLUSH_CTX: u32 = 71; +pub const PR_RISCV_CTX_SW_FENCEI_ON: u32 = 0; +pub const PR_RISCV_CTX_SW_FENCEI_OFF: u32 = 1; +pub const PR_RISCV_SCOPE_PER_PROCESS: u32 = 0; +pub const PR_RISCV_SCOPE_PER_THREAD: u32 = 1; +pub const PR_PPC_GET_DEXCR: u32 = 72; +pub const PR_PPC_SET_DEXCR: u32 = 73; +pub const PR_PPC_DEXCR_SBHE: u32 = 0; +pub const PR_PPC_DEXCR_IBRTPD: u32 = 1; +pub const PR_PPC_DEXCR_SRAPD: u32 = 2; +pub const PR_PPC_DEXCR_NPHIE: u32 = 3; +pub const PR_PPC_DEXCR_CTRL_EDITABLE: u32 = 1; +pub const PR_PPC_DEXCR_CTRL_SET: u32 = 2; +pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; +pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; +pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; +pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; +pub const PR_GET_SHADOW_STACK_STATUS: u32 = 74; +pub const PR_SET_SHADOW_STACK_STATUS: u32 = 75; +pub const PR_SHADOW_STACK_ENABLE: u32 = 1; +pub const PR_SHADOW_STACK_WRITE: u32 = 2; +pub const PR_SHADOW_STACK_PUSH: u32 = 4; +pub const PR_LOCK_SHADOW_STACK_STATUS: u32 = 76; +pub const PR_TIMER_CREATE_RESTORE_IDS: u32 = 77; +pub const PR_TIMER_CREATE_RESTORE_IDS_OFF: u32 = 0; +pub const PR_TIMER_CREATE_RESTORE_IDS_ON: u32 = 1; +pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; +pub const PR_FUTEX_HASH: u32 = 78; +pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; +pub const FH_FLAG_IMMUTABLE: u32 = 1; +pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_FUTEX_HASH_GET_IMMUTABLE: u32 = 3; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/ptrace.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/ptrace.rs new file mode 100644 index 0000000000000000000000000000000000000000..58910074bfd61b624b34fe48737968facecad820 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/ptrace.rs @@ -0,0 +1,1035 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __uint128_t = u128; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Copy, Clone)] +pub struct audit_status { +pub mask: __u32, +pub enabled: __u32, +pub failure: __u32, +pub pid: __u32, +pub rate_limit: __u32, +pub backlog_limit: __u32, +pub lost: __u32, +pub backlog: __u32, +pub __bindgen_anon_1: audit_status__bindgen_ty_1, +pub backlog_wait_time: __u32, +pub backlog_wait_time_actual: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct audit_features { +pub vers: __u32, +pub mask: __u32, +pub features: __u32, +pub lock: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct audit_tty_status { +pub enabled: __u32, +pub log_passwd: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct audit_rule_data { +pub flags: __u32, +pub action: __u32, +pub field_count: __u32, +pub mask: [__u32; 64usize], +pub fields: [__u32; 64usize], +pub values: [__u32; 64usize], +pub fieldflags: [__u32; 64usize], +pub buflen: __u32, +pub buf: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sock_filter { +pub code: __u16, +pub jt: __u8, +pub jf: __u8, +pub k: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sock_fprog { +pub len: crate::ctypes::c_ushort, +pub filter: *mut sock_filter, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_peeksiginfo_args { +pub off: __u64, +pub flags: __u32, +pub nr: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_metadata { +pub filter_off: __u64, +pub flags: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ptrace_syscall_info { +pub op: __u8, +pub reserved: __u8, +pub flags: __u16, +pub arch: __u32, +pub instruction_pointer: __u64, +pub stack_pointer: __u64, +pub __bindgen_anon_1: ptrace_syscall_info__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_syscall_info__bindgen_ty_1__bindgen_ty_1 { +pub nr: __u64, +pub args: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_syscall_info__bindgen_ty_1__bindgen_ty_2 { +pub rval: __s64, +pub is_error: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_syscall_info__bindgen_ty_1__bindgen_ty_3 { +pub nr: __u64, +pub args: [__u64; 6usize], +pub ret_data: __u32, +pub reserved2: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_rseq_configuration { +pub rseq_abi_pointer: __u64, +pub rseq_abi_size: __u32, +pub signature: __u32, +pub flags: __u32, +pub pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_sud_config { +pub mode: __u64, +pub selector: __u64, +pub offset: __u64, +pub len: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_pt_regs { +pub regs: [__u64; 31usize], +pub sp: __u64, +pub pc: __u64, +pub pstate: __u64, +} +#[repr(C)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct user_fpsimd_state { +pub vregs: [__uint128_t; 32usize], +pub fpsr: __u32, +pub fpcr: __u32, +pub __reserved: [__u32; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_hwdebug_state { +pub dbg_info: __u32, +pub pad: __u32, +pub dbg_regs: [user_hwdebug_state__bindgen_ty_1; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_hwdebug_state__bindgen_ty_1 { +pub addr: __u64, +pub ctrl: __u32, +pub pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_sve_header { +pub size: __u32, +pub max_size: __u32, +pub vl: __u16, +pub max_vl: __u16, +pub flags: __u16, +pub __reserved: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_pac_mask { +pub data_mask: __u64, +pub insn_mask: __u64, +} +#[repr(C)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct user_pac_address_keys { +pub apiakey: __uint128_t, +pub apibkey: __uint128_t, +pub apdakey: __uint128_t, +pub apdbkey: __uint128_t, +} +#[repr(C)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct user_pac_generic_keys { +pub apgakey: __uint128_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_za_header { +pub size: __u32, +pub max_size: __u32, +pub vl: __u16, +pub max_vl: __u16, +pub flags: __u16, +pub __reserved: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_gcs { +pub features_enabled: __u64, +pub features_locked: __u64, +pub gcspr_el0: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_data { +pub nr: crate::ctypes::c_int, +pub arch: __u32, +pub instruction_pointer: __u64, +pub args: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif_sizes { +pub seccomp_notif: __u16, +pub seccomp_notif_resp: __u16, +pub seccomp_data: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif { +pub id: __u64, +pub pid: __u32, +pub flags: __u32, +pub data: seccomp_data, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif_resp { +pub id: __u64, +pub val: __s64, +pub error: __s32, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif_addfd { +pub id: __u64, +pub flags: __u32, +pub srcfd: __u32, +pub newfd: __u32, +pub newfd_flags: __u32, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const EM_NONE: u32 = 0; +pub const EM_M32: u32 = 1; +pub const EM_SPARC: u32 = 2; +pub const EM_386: u32 = 3; +pub const EM_68K: u32 = 4; +pub const EM_88K: u32 = 5; +pub const EM_486: u32 = 6; +pub const EM_860: u32 = 7; +pub const EM_MIPS: u32 = 8; +pub const EM_MIPS_RS3_LE: u32 = 10; +pub const EM_MIPS_RS4_BE: u32 = 10; +pub const EM_PARISC: u32 = 15; +pub const EM_SPARC32PLUS: u32 = 18; +pub const EM_PPC: u32 = 20; +pub const EM_PPC64: u32 = 21; +pub const EM_SPU: u32 = 23; +pub const EM_ARM: u32 = 40; +pub const EM_SH: u32 = 42; +pub const EM_SPARCV9: u32 = 43; +pub const EM_H8_300: u32 = 46; +pub const EM_IA_64: u32 = 50; +pub const EM_X86_64: u32 = 62; +pub const EM_S390: u32 = 22; +pub const EM_CRIS: u32 = 76; +pub const EM_M32R: u32 = 88; +pub const EM_MN10300: u32 = 89; +pub const EM_OPENRISC: u32 = 92; +pub const EM_ARCOMPACT: u32 = 93; +pub const EM_XTENSA: u32 = 94; +pub const EM_BLACKFIN: u32 = 106; +pub const EM_UNICORE: u32 = 110; +pub const EM_ALTERA_NIOS2: u32 = 113; +pub const EM_TI_C6000: u32 = 140; +pub const EM_HEXAGON: u32 = 164; +pub const EM_NDS32: u32 = 167; +pub const EM_AARCH64: u32 = 183; +pub const EM_TILEPRO: u32 = 188; +pub const EM_MICROBLAZE: u32 = 189; +pub const EM_TILEGX: u32 = 191; +pub const EM_ARCV2: u32 = 195; +pub const EM_RISCV: u32 = 243; +pub const EM_BPF: u32 = 247; +pub const EM_CSKY: u32 = 252; +pub const EM_LOONGARCH: u32 = 258; +pub const EM_FRV: u32 = 21569; +pub const EM_ALPHA: u32 = 36902; +pub const EM_CYGNUS_M32R: u32 = 36929; +pub const EM_S390_OLD: u32 = 41872; +pub const EM_CYGNUS_MN10300: u32 = 48879; +pub const AUDIT_GET: u32 = 1000; +pub const AUDIT_SET: u32 = 1001; +pub const AUDIT_LIST: u32 = 1002; +pub const AUDIT_ADD: u32 = 1003; +pub const AUDIT_DEL: u32 = 1004; +pub const AUDIT_USER: u32 = 1005; +pub const AUDIT_LOGIN: u32 = 1006; +pub const AUDIT_WATCH_INS: u32 = 1007; +pub const AUDIT_WATCH_REM: u32 = 1008; +pub const AUDIT_WATCH_LIST: u32 = 1009; +pub const AUDIT_SIGNAL_INFO: u32 = 1010; +pub const AUDIT_ADD_RULE: u32 = 1011; +pub const AUDIT_DEL_RULE: u32 = 1012; +pub const AUDIT_LIST_RULES: u32 = 1013; +pub const AUDIT_TRIM: u32 = 1014; +pub const AUDIT_MAKE_EQUIV: u32 = 1015; +pub const AUDIT_TTY_GET: u32 = 1016; +pub const AUDIT_TTY_SET: u32 = 1017; +pub const AUDIT_SET_FEATURE: u32 = 1018; +pub const AUDIT_GET_FEATURE: u32 = 1019; +pub const AUDIT_FIRST_USER_MSG: u32 = 1100; +pub const AUDIT_USER_AVC: u32 = 1107; +pub const AUDIT_USER_TTY: u32 = 1124; +pub const AUDIT_LAST_USER_MSG: u32 = 1199; +pub const AUDIT_FIRST_USER_MSG2: u32 = 2100; +pub const AUDIT_LAST_USER_MSG2: u32 = 2999; +pub const AUDIT_DAEMON_START: u32 = 1200; +pub const AUDIT_DAEMON_END: u32 = 1201; +pub const AUDIT_DAEMON_ABORT: u32 = 1202; +pub const AUDIT_DAEMON_CONFIG: u32 = 1203; +pub const AUDIT_SYSCALL: u32 = 1300; +pub const AUDIT_PATH: u32 = 1302; +pub const AUDIT_IPC: u32 = 1303; +pub const AUDIT_SOCKETCALL: u32 = 1304; +pub const AUDIT_CONFIG_CHANGE: u32 = 1305; +pub const AUDIT_SOCKADDR: u32 = 1306; +pub const AUDIT_CWD: u32 = 1307; +pub const AUDIT_EXECVE: u32 = 1309; +pub const AUDIT_IPC_SET_PERM: u32 = 1311; +pub const AUDIT_MQ_OPEN: u32 = 1312; +pub const AUDIT_MQ_SENDRECV: u32 = 1313; +pub const AUDIT_MQ_NOTIFY: u32 = 1314; +pub const AUDIT_MQ_GETSETATTR: u32 = 1315; +pub const AUDIT_KERNEL_OTHER: u32 = 1316; +pub const AUDIT_FD_PAIR: u32 = 1317; +pub const AUDIT_OBJ_PID: u32 = 1318; +pub const AUDIT_TTY: u32 = 1319; +pub const AUDIT_EOE: u32 = 1320; +pub const AUDIT_BPRM_FCAPS: u32 = 1321; +pub const AUDIT_CAPSET: u32 = 1322; +pub const AUDIT_MMAP: u32 = 1323; +pub const AUDIT_NETFILTER_PKT: u32 = 1324; +pub const AUDIT_NETFILTER_CFG: u32 = 1325; +pub const AUDIT_SECCOMP: u32 = 1326; +pub const AUDIT_PROCTITLE: u32 = 1327; +pub const AUDIT_FEATURE_CHANGE: u32 = 1328; +pub const AUDIT_REPLACE: u32 = 1329; +pub const AUDIT_KERN_MODULE: u32 = 1330; +pub const AUDIT_FANOTIFY: u32 = 1331; +pub const AUDIT_TIME_INJOFFSET: u32 = 1332; +pub const AUDIT_TIME_ADJNTPVAL: u32 = 1333; +pub const AUDIT_BPF: u32 = 1334; +pub const AUDIT_EVENT_LISTENER: u32 = 1335; +pub const AUDIT_URINGOP: u32 = 1336; +pub const AUDIT_OPENAT2: u32 = 1337; +pub const AUDIT_DM_CTRL: u32 = 1338; +pub const AUDIT_DM_EVENT: u32 = 1339; +pub const AUDIT_AVC: u32 = 1400; +pub const AUDIT_SELINUX_ERR: u32 = 1401; +pub const AUDIT_AVC_PATH: u32 = 1402; +pub const AUDIT_MAC_POLICY_LOAD: u32 = 1403; +pub const AUDIT_MAC_STATUS: u32 = 1404; +pub const AUDIT_MAC_CONFIG_CHANGE: u32 = 1405; +pub const AUDIT_MAC_UNLBL_ALLOW: u32 = 1406; +pub const AUDIT_MAC_CIPSOV4_ADD: u32 = 1407; +pub const AUDIT_MAC_CIPSOV4_DEL: u32 = 1408; +pub const AUDIT_MAC_MAP_ADD: u32 = 1409; +pub const AUDIT_MAC_MAP_DEL: u32 = 1410; +pub const AUDIT_MAC_IPSEC_ADDSA: u32 = 1411; +pub const AUDIT_MAC_IPSEC_DELSA: u32 = 1412; +pub const AUDIT_MAC_IPSEC_ADDSPD: u32 = 1413; +pub const AUDIT_MAC_IPSEC_DELSPD: u32 = 1414; +pub const AUDIT_MAC_IPSEC_EVENT: u32 = 1415; +pub const AUDIT_MAC_UNLBL_STCADD: u32 = 1416; +pub const AUDIT_MAC_UNLBL_STCDEL: u32 = 1417; +pub const AUDIT_MAC_CALIPSO_ADD: u32 = 1418; +pub const AUDIT_MAC_CALIPSO_DEL: u32 = 1419; +pub const AUDIT_IPE_ACCESS: u32 = 1420; +pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; +pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; +pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; +pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; +pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; +pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; +pub const AUDIT_ANOM_ABEND: u32 = 1701; +pub const AUDIT_ANOM_LINK: u32 = 1702; +pub const AUDIT_ANOM_CREAT: u32 = 1703; +pub const AUDIT_INTEGRITY_DATA: u32 = 1800; +pub const AUDIT_INTEGRITY_METADATA: u32 = 1801; +pub const AUDIT_INTEGRITY_STATUS: u32 = 1802; +pub const AUDIT_INTEGRITY_HASH: u32 = 1803; +pub const AUDIT_INTEGRITY_PCR: u32 = 1804; +pub const AUDIT_INTEGRITY_RULE: u32 = 1805; +pub const AUDIT_INTEGRITY_EVM_XATTR: u32 = 1806; +pub const AUDIT_INTEGRITY_POLICY_RULE: u32 = 1807; +pub const AUDIT_INTEGRITY_USERSPACE: u32 = 1808; +pub const AUDIT_KERNEL: u32 = 2000; +pub const AUDIT_FILTER_USER: u32 = 0; +pub const AUDIT_FILTER_TASK: u32 = 1; +pub const AUDIT_FILTER_ENTRY: u32 = 2; +pub const AUDIT_FILTER_WATCH: u32 = 3; +pub const AUDIT_FILTER_EXIT: u32 = 4; +pub const AUDIT_FILTER_EXCLUDE: u32 = 5; +pub const AUDIT_FILTER_TYPE: u32 = 5; +pub const AUDIT_FILTER_FS: u32 = 6; +pub const AUDIT_FILTER_URING_EXIT: u32 = 7; +pub const AUDIT_NR_FILTERS: u32 = 8; +pub const AUDIT_FILTER_PREPEND: u32 = 16; +pub const AUDIT_NEVER: u32 = 0; +pub const AUDIT_POSSIBLE: u32 = 1; +pub const AUDIT_ALWAYS: u32 = 2; +pub const AUDIT_MAX_FIELDS: u32 = 64; +pub const AUDIT_MAX_KEY_LEN: u32 = 256; +pub const AUDIT_BITMASK_SIZE: u32 = 64; +pub const AUDIT_SYSCALL_CLASSES: u32 = 16; +pub const AUDIT_CLASS_DIR_WRITE: u32 = 0; +pub const AUDIT_CLASS_DIR_WRITE_32: u32 = 1; +pub const AUDIT_CLASS_CHATTR: u32 = 2; +pub const AUDIT_CLASS_CHATTR_32: u32 = 3; +pub const AUDIT_CLASS_READ: u32 = 4; +pub const AUDIT_CLASS_READ_32: u32 = 5; +pub const AUDIT_CLASS_WRITE: u32 = 6; +pub const AUDIT_CLASS_WRITE_32: u32 = 7; +pub const AUDIT_CLASS_SIGNAL: u32 = 8; +pub const AUDIT_CLASS_SIGNAL_32: u32 = 9; +pub const AUDIT_UNUSED_BITS: u32 = 134216704; +pub const AUDIT_COMPARE_UID_TO_OBJ_UID: u32 = 1; +pub const AUDIT_COMPARE_GID_TO_OBJ_GID: u32 = 2; +pub const AUDIT_COMPARE_EUID_TO_OBJ_UID: u32 = 3; +pub const AUDIT_COMPARE_EGID_TO_OBJ_GID: u32 = 4; +pub const AUDIT_COMPARE_AUID_TO_OBJ_UID: u32 = 5; +pub const AUDIT_COMPARE_SUID_TO_OBJ_UID: u32 = 6; +pub const AUDIT_COMPARE_SGID_TO_OBJ_GID: u32 = 7; +pub const AUDIT_COMPARE_FSUID_TO_OBJ_UID: u32 = 8; +pub const AUDIT_COMPARE_FSGID_TO_OBJ_GID: u32 = 9; +pub const AUDIT_COMPARE_UID_TO_AUID: u32 = 10; +pub const AUDIT_COMPARE_UID_TO_EUID: u32 = 11; +pub const AUDIT_COMPARE_UID_TO_FSUID: u32 = 12; +pub const AUDIT_COMPARE_UID_TO_SUID: u32 = 13; +pub const AUDIT_COMPARE_AUID_TO_FSUID: u32 = 14; +pub const AUDIT_COMPARE_AUID_TO_SUID: u32 = 15; +pub const AUDIT_COMPARE_AUID_TO_EUID: u32 = 16; +pub const AUDIT_COMPARE_EUID_TO_SUID: u32 = 17; +pub const AUDIT_COMPARE_EUID_TO_FSUID: u32 = 18; +pub const AUDIT_COMPARE_SUID_TO_FSUID: u32 = 19; +pub const AUDIT_COMPARE_GID_TO_EGID: u32 = 20; +pub const AUDIT_COMPARE_GID_TO_FSGID: u32 = 21; +pub const AUDIT_COMPARE_GID_TO_SGID: u32 = 22; +pub const AUDIT_COMPARE_EGID_TO_FSGID: u32 = 23; +pub const AUDIT_COMPARE_EGID_TO_SGID: u32 = 24; +pub const AUDIT_COMPARE_SGID_TO_FSGID: u32 = 25; +pub const AUDIT_MAX_FIELD_COMPARE: u32 = 25; +pub const AUDIT_PID: u32 = 0; +pub const AUDIT_UID: u32 = 1; +pub const AUDIT_EUID: u32 = 2; +pub const AUDIT_SUID: u32 = 3; +pub const AUDIT_FSUID: u32 = 4; +pub const AUDIT_GID: u32 = 5; +pub const AUDIT_EGID: u32 = 6; +pub const AUDIT_SGID: u32 = 7; +pub const AUDIT_FSGID: u32 = 8; +pub const AUDIT_LOGINUID: u32 = 9; +pub const AUDIT_PERS: u32 = 10; +pub const AUDIT_ARCH: u32 = 11; +pub const AUDIT_MSGTYPE: u32 = 12; +pub const AUDIT_SUBJ_USER: u32 = 13; +pub const AUDIT_SUBJ_ROLE: u32 = 14; +pub const AUDIT_SUBJ_TYPE: u32 = 15; +pub const AUDIT_SUBJ_SEN: u32 = 16; +pub const AUDIT_SUBJ_CLR: u32 = 17; +pub const AUDIT_PPID: u32 = 18; +pub const AUDIT_OBJ_USER: u32 = 19; +pub const AUDIT_OBJ_ROLE: u32 = 20; +pub const AUDIT_OBJ_TYPE: u32 = 21; +pub const AUDIT_OBJ_LEV_LOW: u32 = 22; +pub const AUDIT_OBJ_LEV_HIGH: u32 = 23; +pub const AUDIT_LOGINUID_SET: u32 = 24; +pub const AUDIT_SESSIONID: u32 = 25; +pub const AUDIT_FSTYPE: u32 = 26; +pub const AUDIT_DEVMAJOR: u32 = 100; +pub const AUDIT_DEVMINOR: u32 = 101; +pub const AUDIT_INODE: u32 = 102; +pub const AUDIT_EXIT: u32 = 103; +pub const AUDIT_SUCCESS: u32 = 104; +pub const AUDIT_WATCH: u32 = 105; +pub const AUDIT_PERM: u32 = 106; +pub const AUDIT_DIR: u32 = 107; +pub const AUDIT_FILETYPE: u32 = 108; +pub const AUDIT_OBJ_UID: u32 = 109; +pub const AUDIT_OBJ_GID: u32 = 110; +pub const AUDIT_FIELD_COMPARE: u32 = 111; +pub const AUDIT_EXE: u32 = 112; +pub const AUDIT_SADDR_FAM: u32 = 113; +pub const AUDIT_ARG0: u32 = 200; +pub const AUDIT_ARG1: u32 = 201; +pub const AUDIT_ARG2: u32 = 202; +pub const AUDIT_ARG3: u32 = 203; +pub const AUDIT_FILTERKEY: u32 = 210; +pub const AUDIT_NEGATE: u32 = 2147483648; +pub const AUDIT_BIT_MASK: u32 = 134217728; +pub const AUDIT_LESS_THAN: u32 = 268435456; +pub const AUDIT_GREATER_THAN: u32 = 536870912; +pub const AUDIT_NOT_EQUAL: u32 = 805306368; +pub const AUDIT_EQUAL: u32 = 1073741824; +pub const AUDIT_BIT_TEST: u32 = 1207959552; +pub const AUDIT_LESS_THAN_OR_EQUAL: u32 = 1342177280; +pub const AUDIT_GREATER_THAN_OR_EQUAL: u32 = 1610612736; +pub const AUDIT_OPERATORS: u32 = 2013265920; +pub const AUDIT_STATUS_ENABLED: u32 = 1; +pub const AUDIT_STATUS_FAILURE: u32 = 2; +pub const AUDIT_STATUS_PID: u32 = 4; +pub const AUDIT_STATUS_RATE_LIMIT: u32 = 8; +pub const AUDIT_STATUS_BACKLOG_LIMIT: u32 = 16; +pub const AUDIT_STATUS_BACKLOG_WAIT_TIME: u32 = 32; +pub const AUDIT_STATUS_LOST: u32 = 64; +pub const AUDIT_STATUS_BACKLOG_WAIT_TIME_ACTUAL: u32 = 128; +pub const AUDIT_FEATURE_BITMAP_BACKLOG_LIMIT: u32 = 1; +pub const AUDIT_FEATURE_BITMAP_BACKLOG_WAIT_TIME: u32 = 2; +pub const AUDIT_FEATURE_BITMAP_EXECUTABLE_PATH: u32 = 4; +pub const AUDIT_FEATURE_BITMAP_EXCLUDE_EXTEND: u32 = 8; +pub const AUDIT_FEATURE_BITMAP_SESSIONID_FILTER: u32 = 16; +pub const AUDIT_FEATURE_BITMAP_LOST_RESET: u32 = 32; +pub const AUDIT_FEATURE_BITMAP_FILTER_FS: u32 = 64; +pub const AUDIT_FEATURE_BITMAP_ALL: u32 = 127; +pub const AUDIT_VERSION_LATEST: u32 = 127; +pub const AUDIT_VERSION_BACKLOG_LIMIT: u32 = 1; +pub const AUDIT_VERSION_BACKLOG_WAIT_TIME: u32 = 2; +pub const AUDIT_FAIL_SILENT: u32 = 0; +pub const AUDIT_FAIL_PRINTK: u32 = 1; +pub const AUDIT_FAIL_PANIC: u32 = 2; +pub const __AUDIT_ARCH_CONVENTION_MASK: u32 = 805306368; +pub const __AUDIT_ARCH_CONVENTION_MIPS64_N32: u32 = 536870912; +pub const __AUDIT_ARCH_64BIT: u32 = 2147483648; +pub const __AUDIT_ARCH_LE: u32 = 1073741824; +pub const AUDIT_ARCH_AARCH64: u32 = 3221225655; +pub const AUDIT_ARCH_ALPHA: u32 = 3221262374; +pub const AUDIT_ARCH_ARCOMPACT: u32 = 1073741917; +pub const AUDIT_ARCH_ARCOMPACTBE: u32 = 93; +pub const AUDIT_ARCH_ARCV2: u32 = 1073742019; +pub const AUDIT_ARCH_ARCV2BE: u32 = 195; +pub const AUDIT_ARCH_ARM: u32 = 1073741864; +pub const AUDIT_ARCH_ARMEB: u32 = 40; +pub const AUDIT_ARCH_C6X: u32 = 1073741964; +pub const AUDIT_ARCH_C6XBE: u32 = 140; +pub const AUDIT_ARCH_CRIS: u32 = 1073741900; +pub const AUDIT_ARCH_CSKY: u32 = 1073742076; +pub const AUDIT_ARCH_FRV: u32 = 21569; +pub const AUDIT_ARCH_H8300: u32 = 46; +pub const AUDIT_ARCH_HEXAGON: u32 = 164; +pub const AUDIT_ARCH_I386: u32 = 1073741827; +pub const AUDIT_ARCH_IA64: u32 = 3221225522; +pub const AUDIT_ARCH_M32R: u32 = 88; +pub const AUDIT_ARCH_M68K: u32 = 4; +pub const AUDIT_ARCH_MICROBLAZE: u32 = 189; +pub const AUDIT_ARCH_MIPS: u32 = 8; +pub const AUDIT_ARCH_MIPSEL: u32 = 1073741832; +pub const AUDIT_ARCH_MIPS64: u32 = 2147483656; +pub const AUDIT_ARCH_MIPS64N32: u32 = 2684354568; +pub const AUDIT_ARCH_MIPSEL64: u32 = 3221225480; +pub const AUDIT_ARCH_MIPSEL64N32: u32 = 3758096392; +pub const AUDIT_ARCH_NDS32: u32 = 1073741991; +pub const AUDIT_ARCH_NDS32BE: u32 = 167; +pub const AUDIT_ARCH_NIOS2: u32 = 1073741937; +pub const AUDIT_ARCH_OPENRISC: u32 = 92; +pub const AUDIT_ARCH_PARISC: u32 = 15; +pub const AUDIT_ARCH_PARISC64: u32 = 2147483663; +pub const AUDIT_ARCH_PPC: u32 = 20; +pub const AUDIT_ARCH_PPC64: u32 = 2147483669; +pub const AUDIT_ARCH_PPC64LE: u32 = 3221225493; +pub const AUDIT_ARCH_RISCV32: u32 = 1073742067; +pub const AUDIT_ARCH_RISCV64: u32 = 3221225715; +pub const AUDIT_ARCH_S390: u32 = 22; +pub const AUDIT_ARCH_S390X: u32 = 2147483670; +pub const AUDIT_ARCH_SH: u32 = 42; +pub const AUDIT_ARCH_SHEL: u32 = 1073741866; +pub const AUDIT_ARCH_SH64: u32 = 2147483690; +pub const AUDIT_ARCH_SHEL64: u32 = 3221225514; +pub const AUDIT_ARCH_SPARC: u32 = 2; +pub const AUDIT_ARCH_SPARC64: u32 = 2147483691; +pub const AUDIT_ARCH_TILEGX: u32 = 3221225663; +pub const AUDIT_ARCH_TILEGX32: u32 = 1073742015; +pub const AUDIT_ARCH_TILEPRO: u32 = 1073742012; +pub const AUDIT_ARCH_UNICORE: u32 = 1073741934; +pub const AUDIT_ARCH_X86_64: u32 = 3221225534; +pub const AUDIT_ARCH_XTENSA: u32 = 94; +pub const AUDIT_ARCH_LOONGARCH32: u32 = 1073742082; +pub const AUDIT_ARCH_LOONGARCH64: u32 = 3221225730; +pub const AUDIT_PERM_EXEC: u32 = 1; +pub const AUDIT_PERM_WRITE: u32 = 2; +pub const AUDIT_PERM_READ: u32 = 4; +pub const AUDIT_PERM_ATTR: u32 = 8; +pub const AUDIT_MESSAGE_TEXT_MAX: u32 = 8560; +pub const AUDIT_FEATURE_VERSION: u32 = 1; +pub const AUDIT_FEATURE_ONLY_UNSET_LOGINUID: u32 = 0; +pub const AUDIT_FEATURE_LOGINUID_IMMUTABLE: u32 = 1; +pub const AUDIT_LAST_FEATURE: u32 = 1; +pub const BPF_LD: u32 = 0; +pub const BPF_LDX: u32 = 1; +pub const BPF_ST: u32 = 2; +pub const BPF_STX: u32 = 3; +pub const BPF_ALU: u32 = 4; +pub const BPF_JMP: u32 = 5; +pub const BPF_RET: u32 = 6; +pub const BPF_MISC: u32 = 7; +pub const BPF_W: u32 = 0; +pub const BPF_H: u32 = 8; +pub const BPF_B: u32 = 16; +pub const BPF_IMM: u32 = 0; +pub const BPF_ABS: u32 = 32; +pub const BPF_IND: u32 = 64; +pub const BPF_MEM: u32 = 96; +pub const BPF_LEN: u32 = 128; +pub const BPF_MSH: u32 = 160; +pub const BPF_ADD: u32 = 0; +pub const BPF_SUB: u32 = 16; +pub const BPF_MUL: u32 = 32; +pub const BPF_DIV: u32 = 48; +pub const BPF_OR: u32 = 64; +pub const BPF_AND: u32 = 80; +pub const BPF_LSH: u32 = 96; +pub const BPF_RSH: u32 = 112; +pub const BPF_NEG: u32 = 128; +pub const BPF_MOD: u32 = 144; +pub const BPF_XOR: u32 = 160; +pub const BPF_JA: u32 = 0; +pub const BPF_JEQ: u32 = 16; +pub const BPF_JGT: u32 = 32; +pub const BPF_JGE: u32 = 48; +pub const BPF_JSET: u32 = 64; +pub const BPF_K: u32 = 0; +pub const BPF_X: u32 = 8; +pub const BPF_MAXINSNS: u32 = 4096; +pub const BPF_MAJOR_VERSION: u32 = 1; +pub const BPF_MINOR_VERSION: u32 = 1; +pub const BPF_A: u32 = 16; +pub const BPF_TAX: u32 = 0; +pub const BPF_TXA: u32 = 128; +pub const BPF_MEMWORDS: u32 = 16; +pub const SKF_AD_OFF: i32 = -4096; +pub const SKF_AD_PROTOCOL: u32 = 0; +pub const SKF_AD_PKTTYPE: u32 = 4; +pub const SKF_AD_IFINDEX: u32 = 8; +pub const SKF_AD_NLATTR: u32 = 12; +pub const SKF_AD_NLATTR_NEST: u32 = 16; +pub const SKF_AD_MARK: u32 = 20; +pub const SKF_AD_QUEUE: u32 = 24; +pub const SKF_AD_HATYPE: u32 = 28; +pub const SKF_AD_RXHASH: u32 = 32; +pub const SKF_AD_CPU: u32 = 36; +pub const SKF_AD_ALU_XOR_X: u32 = 40; +pub const SKF_AD_VLAN_TAG: u32 = 44; +pub const SKF_AD_VLAN_TAG_PRESENT: u32 = 48; +pub const SKF_AD_PAY_OFFSET: u32 = 52; +pub const SKF_AD_RANDOM: u32 = 56; +pub const SKF_AD_VLAN_TPID: u32 = 60; +pub const SKF_AD_MAX: u32 = 64; +pub const SKF_NET_OFF: i32 = -1048576; +pub const SKF_LL_OFF: i32 = -2097152; +pub const BPF_NET_OFF: i32 = -1048576; +pub const BPF_LL_OFF: i32 = -2097152; +pub const PTRACE_TRACEME: u32 = 0; +pub const PTRACE_PEEKTEXT: u32 = 1; +pub const PTRACE_PEEKDATA: u32 = 2; +pub const PTRACE_PEEKUSR: u32 = 3; +pub const PTRACE_POKETEXT: u32 = 4; +pub const PTRACE_POKEDATA: u32 = 5; +pub const PTRACE_POKEUSR: u32 = 6; +pub const PTRACE_CONT: u32 = 7; +pub const PTRACE_KILL: u32 = 8; +pub const PTRACE_SINGLESTEP: u32 = 9; +pub const PTRACE_ATTACH: u32 = 16; +pub const PTRACE_DETACH: u32 = 17; +pub const PTRACE_SYSCALL: u32 = 24; +pub const PTRACE_SETOPTIONS: u32 = 16896; +pub const PTRACE_GETEVENTMSG: u32 = 16897; +pub const PTRACE_GETSIGINFO: u32 = 16898; +pub const PTRACE_SETSIGINFO: u32 = 16899; +pub const PTRACE_GETREGSET: u32 = 16900; +pub const PTRACE_SETREGSET: u32 = 16901; +pub const PTRACE_SEIZE: u32 = 16902; +pub const PTRACE_INTERRUPT: u32 = 16903; +pub const PTRACE_LISTEN: u32 = 16904; +pub const PTRACE_PEEKSIGINFO: u32 = 16905; +pub const PTRACE_GETSIGMASK: u32 = 16906; +pub const PTRACE_SETSIGMASK: u32 = 16907; +pub const PTRACE_SECCOMP_GET_FILTER: u32 = 16908; +pub const PTRACE_SECCOMP_GET_METADATA: u32 = 16909; +pub const PTRACE_GET_SYSCALL_INFO: u32 = 16910; +pub const PTRACE_SET_SYSCALL_INFO: u32 = 16914; +pub const PTRACE_SYSCALL_INFO_NONE: u32 = 0; +pub const PTRACE_SYSCALL_INFO_ENTRY: u32 = 1; +pub const PTRACE_SYSCALL_INFO_EXIT: u32 = 2; +pub const PTRACE_SYSCALL_INFO_SECCOMP: u32 = 3; +pub const PTRACE_GET_RSEQ_CONFIGURATION: u32 = 16911; +pub const PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG: u32 = 16912; +pub const PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG: u32 = 16913; +pub const PTRACE_EVENTMSG_SYSCALL_ENTRY: u32 = 1; +pub const PTRACE_EVENTMSG_SYSCALL_EXIT: u32 = 2; +pub const PTRACE_PEEKSIGINFO_SHARED: u32 = 1; +pub const PTRACE_EVENT_FORK: u32 = 1; +pub const PTRACE_EVENT_VFORK: u32 = 2; +pub const PTRACE_EVENT_CLONE: u32 = 3; +pub const PTRACE_EVENT_EXEC: u32 = 4; +pub const PTRACE_EVENT_VFORK_DONE: u32 = 5; +pub const PTRACE_EVENT_EXIT: u32 = 6; +pub const PTRACE_EVENT_SECCOMP: u32 = 7; +pub const PTRACE_EVENT_STOP: u32 = 128; +pub const PTRACE_O_TRACESYSGOOD: u32 = 1; +pub const PTRACE_O_TRACEFORK: u32 = 2; +pub const PTRACE_O_TRACEVFORK: u32 = 4; +pub const PTRACE_O_TRACECLONE: u32 = 8; +pub const PTRACE_O_TRACEEXEC: u32 = 16; +pub const PTRACE_O_TRACEVFORKDONE: u32 = 32; +pub const PTRACE_O_TRACEEXIT: u32 = 64; +pub const PTRACE_O_TRACESECCOMP: u32 = 128; +pub const PTRACE_O_EXITKILL: u32 = 1048576; +pub const PTRACE_O_SUSPEND_SECCOMP: u32 = 2097152; +pub const PTRACE_O_MASK: u32 = 3145983; +pub const HWCAP_FP: u32 = 1; +pub const HWCAP_ASIMD: u32 = 2; +pub const HWCAP_EVTSTRM: u32 = 4; +pub const HWCAP_AES: u32 = 8; +pub const HWCAP_PMULL: u32 = 16; +pub const HWCAP_SHA1: u32 = 32; +pub const HWCAP_SHA2: u32 = 64; +pub const HWCAP_CRC32: u32 = 128; +pub const HWCAP_ATOMICS: u32 = 256; +pub const HWCAP_FPHP: u32 = 512; +pub const HWCAP_ASIMDHP: u32 = 1024; +pub const HWCAP_CPUID: u32 = 2048; +pub const HWCAP_ASIMDRDM: u32 = 4096; +pub const HWCAP_JSCVT: u32 = 8192; +pub const HWCAP_FCMA: u32 = 16384; +pub const HWCAP_LRCPC: u32 = 32768; +pub const HWCAP_DCPOP: u32 = 65536; +pub const HWCAP_SHA3: u32 = 131072; +pub const HWCAP_SM3: u32 = 262144; +pub const HWCAP_SM4: u32 = 524288; +pub const HWCAP_ASIMDDP: u32 = 1048576; +pub const HWCAP_SHA512: u32 = 2097152; +pub const HWCAP_SVE: u32 = 4194304; +pub const HWCAP_ASIMDFHM: u32 = 8388608; +pub const HWCAP_DIT: u32 = 16777216; +pub const HWCAP_USCAT: u32 = 33554432; +pub const HWCAP_ILRCPC: u32 = 67108864; +pub const HWCAP_FLAGM: u32 = 134217728; +pub const HWCAP_SSBS: u32 = 268435456; +pub const HWCAP_SB: u32 = 536870912; +pub const HWCAP_PACA: u32 = 1073741824; +pub const HWCAP_PACG: u32 = 2147483648; +pub const HWCAP_GCS: u64 = 4294967296; +pub const HWCAP_CMPBR: u64 = 8589934592; +pub const HWCAP_FPRCVT: u64 = 17179869184; +pub const HWCAP_F8MM8: u64 = 34359738368; +pub const HWCAP_F8MM4: u64 = 68719476736; +pub const HWCAP_SVE_F16MM: u64 = 137438953472; +pub const HWCAP_SVE_ELTPERM: u64 = 274877906944; +pub const HWCAP_SVE_AES2: u64 = 549755813888; +pub const HWCAP_SVE_BFSCALE: u64 = 1099511627776; +pub const HWCAP_SVE2P2: u64 = 2199023255552; +pub const HWCAP_SME2P2: u64 = 4398046511104; +pub const HWCAP_SME_SBITPERM: u64 = 8796093022208; +pub const HWCAP_SME_AES: u64 = 17592186044416; +pub const HWCAP_SME_SFEXPA: u64 = 35184372088832; +pub const HWCAP_SME_STMOP: u64 = 70368744177664; +pub const HWCAP_SME_SMOP4: u64 = 140737488355328; +pub const HWCAP2_DCPODP: u32 = 1; +pub const HWCAP2_SVE2: u32 = 2; +pub const HWCAP2_SVEAES: u32 = 4; +pub const HWCAP2_SVEPMULL: u32 = 8; +pub const HWCAP2_SVEBITPERM: u32 = 16; +pub const HWCAP2_SVESHA3: u32 = 32; +pub const HWCAP2_SVESM4: u32 = 64; +pub const HWCAP2_FLAGM2: u32 = 128; +pub const HWCAP2_FRINT: u32 = 256; +pub const HWCAP2_SVEI8MM: u32 = 512; +pub const HWCAP2_SVEF32MM: u32 = 1024; +pub const HWCAP2_SVEF64MM: u32 = 2048; +pub const HWCAP2_SVEBF16: u32 = 4096; +pub const HWCAP2_I8MM: u32 = 8192; +pub const HWCAP2_BF16: u32 = 16384; +pub const HWCAP2_DGH: u32 = 32768; +pub const HWCAP2_RNG: u32 = 65536; +pub const HWCAP2_BTI: u32 = 131072; +pub const HWCAP2_MTE: u32 = 262144; +pub const HWCAP2_ECV: u32 = 524288; +pub const HWCAP2_AFP: u32 = 1048576; +pub const HWCAP2_RPRES: u32 = 2097152; +pub const HWCAP2_MTE3: u32 = 4194304; +pub const HWCAP2_SME: u32 = 8388608; +pub const HWCAP2_SME_I16I64: u32 = 16777216; +pub const HWCAP2_SME_F64F64: u32 = 33554432; +pub const HWCAP2_SME_I8I32: u32 = 67108864; +pub const HWCAP2_SME_F16F32: u32 = 134217728; +pub const HWCAP2_SME_B16F32: u32 = 268435456; +pub const HWCAP2_SME_F32F32: u32 = 536870912; +pub const HWCAP2_SME_FA64: u32 = 1073741824; +pub const HWCAP2_WFXT: u32 = 2147483648; +pub const HWCAP2_EBF16: u64 = 4294967296; +pub const HWCAP2_SVE_EBF16: u64 = 8589934592; +pub const HWCAP2_CSSC: u64 = 17179869184; +pub const HWCAP2_RPRFM: u64 = 34359738368; +pub const HWCAP2_SVE2P1: u64 = 68719476736; +pub const HWCAP2_SME2: u64 = 137438953472; +pub const HWCAP2_SME2P1: u64 = 274877906944; +pub const HWCAP2_SME_I16I32: u64 = 549755813888; +pub const HWCAP2_SME_BI32I32: u64 = 1099511627776; +pub const HWCAP2_SME_B16B16: u64 = 2199023255552; +pub const HWCAP2_SME_F16F16: u64 = 4398046511104; +pub const HWCAP2_MOPS: u64 = 8796093022208; +pub const HWCAP2_HBC: u64 = 17592186044416; +pub const HWCAP2_SVE_B16B16: u64 = 35184372088832; +pub const HWCAP2_LRCPC3: u64 = 70368744177664; +pub const HWCAP2_LSE128: u64 = 140737488355328; +pub const HWCAP2_FPMR: u64 = 281474976710656; +pub const HWCAP2_LUT: u64 = 562949953421312; +pub const HWCAP2_FAMINMAX: u64 = 1125899906842624; +pub const HWCAP2_F8CVT: u64 = 2251799813685248; +pub const HWCAP2_F8FMA: u64 = 4503599627370496; +pub const HWCAP2_F8DP4: u64 = 9007199254740992; +pub const HWCAP2_F8DP2: u64 = 18014398509481984; +pub const HWCAP2_F8E4M3: u64 = 36028797018963968; +pub const HWCAP2_F8E5M2: u64 = 72057594037927936; +pub const HWCAP2_SME_LUTV2: u64 = 144115188075855872; +pub const HWCAP2_SME_F8F16: u64 = 288230376151711744; +pub const HWCAP2_SME_F8F32: u64 = 576460752303423488; +pub const HWCAP2_SME_SF8FMA: u64 = 1152921504606846976; +pub const HWCAP2_SME_SF8DP4: u64 = 2305843009213693952; +pub const HWCAP2_SME_SF8DP2: u64 = 4611686018427387904; +pub const HWCAP2_POE: i64 = -9223372036854775808; +pub const __SVE_VQ_BYTES: u32 = 16; +pub const __SVE_VQ_MIN: u32 = 1; +pub const __SVE_VQ_MAX: u32 = 512; +pub const __SVE_VL_MIN: u32 = 16; +pub const __SVE_VL_MAX: u32 = 8192; +pub const __SVE_NUM_ZREGS: u32 = 32; +pub const __SVE_NUM_PREGS: u32 = 16; +pub const __SVE_ZREGS_OFFSET: u32 = 0; +pub const PSR_MODE_EL0t: u32 = 0; +pub const PSR_MODE_EL1t: u32 = 4; +pub const PSR_MODE_EL1h: u32 = 5; +pub const PSR_MODE_EL2t: u32 = 8; +pub const PSR_MODE_EL2h: u32 = 9; +pub const PSR_MODE_EL3t: u32 = 12; +pub const PSR_MODE_EL3h: u32 = 13; +pub const PSR_MODE_MASK: u32 = 15; +pub const PSR_MODE32_BIT: u32 = 16; +pub const PSR_F_BIT: u32 = 64; +pub const PSR_I_BIT: u32 = 128; +pub const PSR_A_BIT: u32 = 256; +pub const PSR_D_BIT: u32 = 512; +pub const PSR_BTYPE_MASK: u32 = 3072; +pub const PSR_SSBS_BIT: u32 = 4096; +pub const PSR_PAN_BIT: u32 = 4194304; +pub const PSR_UAO_BIT: u32 = 8388608; +pub const PSR_DIT_BIT: u32 = 16777216; +pub const PSR_TCO_BIT: u32 = 33554432; +pub const PSR_V_BIT: u32 = 268435456; +pub const PSR_C_BIT: u32 = 536870912; +pub const PSR_Z_BIT: u32 = 1073741824; +pub const PSR_N_BIT: u32 = 2147483648; +pub const PSR_BTYPE_SHIFT: u32 = 10; +pub const PSR_f: u32 = 4278190080; +pub const PSR_s: u32 = 16711680; +pub const PSR_x: u32 = 65280; +pub const PSR_c: u32 = 255; +pub const PSR_BTYPE_NONE: u32 = 0; +pub const PSR_BTYPE_JC: u32 = 1024; +pub const PSR_BTYPE_C: u32 = 2048; +pub const PSR_BTYPE_J: u32 = 3072; +pub const PTRACE_SYSEMU: u32 = 31; +pub const PTRACE_SYSEMU_SINGLESTEP: u32 = 32; +pub const PTRACE_PEEKMTETAGS: u32 = 33; +pub const PTRACE_POKEMTETAGS: u32 = 34; +pub const SVE_PT_REGS_MASK: u32 = 1; +pub const SVE_PT_REGS_FPSIMD: u32 = 0; +pub const SVE_PT_REGS_SVE: u32 = 1; +pub const SVE_PT_VL_INHERIT: u32 = 2; +pub const SVE_PT_VL_ONEXEC: u32 = 4; +pub const ZA_PT_VL_INHERIT: u32 = 2; +pub const ZA_PT_VL_ONEXEC: u32 = 4; +pub const SECCOMP_MODE_DISABLED: u32 = 0; +pub const SECCOMP_MODE_STRICT: u32 = 1; +pub const SECCOMP_MODE_FILTER: u32 = 2; +pub const SECCOMP_SET_MODE_STRICT: u32 = 0; +pub const SECCOMP_SET_MODE_FILTER: u32 = 1; +pub const SECCOMP_GET_ACTION_AVAIL: u32 = 2; +pub const SECCOMP_GET_NOTIF_SIZES: u32 = 3; +pub const SECCOMP_FILTER_FLAG_TSYNC: u32 = 1; +pub const SECCOMP_FILTER_FLAG_LOG: u32 = 2; +pub const SECCOMP_FILTER_FLAG_SPEC_ALLOW: u32 = 4; +pub const SECCOMP_FILTER_FLAG_NEW_LISTENER: u32 = 8; +pub const SECCOMP_FILTER_FLAG_TSYNC_ESRCH: u32 = 16; +pub const SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV: u32 = 32; +pub const SECCOMP_RET_KILL_PROCESS: u32 = 2147483648; +pub const SECCOMP_RET_KILL_THREAD: u32 = 0; +pub const SECCOMP_RET_KILL: u32 = 0; +pub const SECCOMP_RET_TRAP: u32 = 196608; +pub const SECCOMP_RET_ERRNO: u32 = 327680; +pub const SECCOMP_RET_USER_NOTIF: u32 = 2143289344; +pub const SECCOMP_RET_TRACE: u32 = 2146435072; +pub const SECCOMP_RET_LOG: u32 = 2147221504; +pub const SECCOMP_RET_ALLOW: u32 = 2147418112; +pub const SECCOMP_RET_ACTION_FULL: u32 = 4294901760; +pub const SECCOMP_RET_ACTION: u32 = 2147418112; +pub const SECCOMP_RET_DATA: u32 = 65535; +pub const SECCOMP_USER_NOTIF_FLAG_CONTINUE: u32 = 1; +pub const SECCOMP_USER_NOTIF_FD_SYNC_WAKE_UP: u32 = 1; +pub const SECCOMP_ADDFD_FLAG_SETFD: u32 = 1; +pub const SECCOMP_ADDFD_FLAG_SEND: u32 = 2; +pub const SECCOMP_IOC_MAGIC: u8 = 33u8; +pub const Audit_equal: _bindgen_ty_1 = _bindgen_ty_1::Audit_equal; +pub const Audit_not_equal: _bindgen_ty_1 = _bindgen_ty_1::Audit_not_equal; +pub const Audit_bitmask: _bindgen_ty_1 = _bindgen_ty_1::Audit_bitmask; +pub const Audit_bittest: _bindgen_ty_1 = _bindgen_ty_1::Audit_bittest; +pub const Audit_lt: _bindgen_ty_1 = _bindgen_ty_1::Audit_lt; +pub const Audit_gt: _bindgen_ty_1 = _bindgen_ty_1::Audit_gt; +pub const Audit_le: _bindgen_ty_1 = _bindgen_ty_1::Audit_le; +pub const Audit_ge: _bindgen_ty_1 = _bindgen_ty_1::Audit_ge; +pub const Audit_bad: _bindgen_ty_1 = _bindgen_ty_1::Audit_bad; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +Audit_equal = 0, +Audit_not_equal = 1, +Audit_bitmask = 2, +Audit_bittest = 3, +Audit_lt = 4, +Audit_gt = 5, +Audit_le = 6, +Audit_ge = 7, +Audit_bad = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum audit_nlgrps { +AUDIT_NLGRP_NONE = 0, +AUDIT_NLGRP_READLOG = 1, +__AUDIT_NLGRP_MAX = 2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union audit_status__bindgen_ty_1 { +pub version: __u32, +pub feature_bitmap: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ptrace_syscall_info__bindgen_ty_1 { +pub entry: ptrace_syscall_info__bindgen_ty_1__bindgen_ty_1, +pub exit: ptrace_syscall_info__bindgen_ty_1__bindgen_ty_2, +pub seccomp: ptrace_syscall_info__bindgen_ty_1__bindgen_ty_3, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/system.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/system.rs new file mode 100644 index 0000000000000000000000000000000000000000..91e303e816fef36a7f545c763668099280a9475c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/system.rs @@ -0,0 +1,132 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Debug)] +pub struct sysinfo { +pub uptime: __kernel_long_t, +pub loads: [__kernel_ulong_t; 3usize], +pub totalram: __kernel_ulong_t, +pub freeram: __kernel_ulong_t, +pub sharedram: __kernel_ulong_t, +pub bufferram: __kernel_ulong_t, +pub totalswap: __kernel_ulong_t, +pub freeswap: __kernel_ulong_t, +pub procs: __u16, +pub pad: __u16, +pub totalhigh: __kernel_ulong_t, +pub freehigh: __kernel_ulong_t, +pub mem_unit: __u32, +pub _f: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct oldold_utsname { +pub sysname: [crate::ctypes::c_char; 9usize], +pub nodename: [crate::ctypes::c_char; 9usize], +pub release: [crate::ctypes::c_char; 9usize], +pub version: [crate::ctypes::c_char; 9usize], +pub machine: [crate::ctypes::c_char; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct old_utsname { +pub sysname: [crate::ctypes::c_char; 65usize], +pub nodename: [crate::ctypes::c_char; 65usize], +pub release: [crate::ctypes::c_char; 65usize], +pub version: [crate::ctypes::c_char; 65usize], +pub machine: [crate::ctypes::c_char; 65usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct new_utsname { +pub sysname: [crate::ctypes::c_char; 65usize], +pub nodename: [crate::ctypes::c_char; 65usize], +pub release: [crate::ctypes::c_char; 65usize], +pub version: [crate::ctypes::c_char; 65usize], +pub machine: [crate::ctypes::c_char; 65usize], +pub domainname: [crate::ctypes::c_char; 65usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const SI_LOAD_SHIFT: u32 = 16; +pub const __OLD_UTS_LEN: u32 = 8; +pub const __NEW_UTS_LEN: u32 = 64; +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/xdp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/xdp.rs new file mode 100644 index 0000000000000000000000000000000000000000..3169590cc6e1f505dc28ea8bf55c554dd2280611 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/aarch64/xdp.rs @@ -0,0 +1,193 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_xdp { +pub sxdp_family: __u16, +pub sxdp_flags: __u16, +pub sxdp_ifindex: __u32, +pub sxdp_queue_id: __u32, +pub sxdp_shared_umem_fd: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_ring_offset { +pub producer: __u64, +pub consumer: __u64, +pub desc: __u64, +pub flags: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_mmap_offsets { +pub rx: xdp_ring_offset, +pub tx: xdp_ring_offset, +pub fr: xdp_ring_offset, +pub cr: xdp_ring_offset, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_umem_reg { +pub addr: __u64, +pub len: __u64, +pub chunk_size: __u32, +pub headroom: __u32, +pub flags: __u32, +pub tx_metadata_len: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_statistics { +pub rx_dropped: __u64, +pub rx_invalid_descs: __u64, +pub tx_invalid_descs: __u64, +pub rx_ring_full: __u64, +pub rx_fill_ring_empty_descs: __u64, +pub tx_ring_empty_descs: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_options { +pub flags: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct xsk_tx_metadata { +pub flags: __u64, +pub __bindgen_anon_1: xsk_tx_metadata__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xsk_tx_metadata__bindgen_ty_1__bindgen_ty_1 { +pub csum_start: __u16, +pub csum_offset: __u16, +pub launch_time: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xsk_tx_metadata__bindgen_ty_1__bindgen_ty_2 { +pub tx_timestamp: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_desc { +pub addr: __u64, +pub len: __u32, +pub options: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_ring_offset_v1 { +pub producer: __u64, +pub consumer: __u64, +pub desc: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_mmap_offsets_v1 { +pub rx: xdp_ring_offset_v1, +pub tx: xdp_ring_offset_v1, +pub fr: xdp_ring_offset_v1, +pub cr: xdp_ring_offset_v1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_umem_reg_v1 { +pub addr: __u64, +pub len: __u64, +pub chunk_size: __u32, +pub headroom: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_statistics_v1 { +pub rx_dropped: __u64, +pub rx_invalid_descs: __u64, +pub tx_invalid_descs: __u64, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const XDP_SHARED_UMEM: u32 = 1; +pub const XDP_COPY: u32 = 2; +pub const XDP_ZEROCOPY: u32 = 4; +pub const XDP_USE_NEED_WAKEUP: u32 = 8; +pub const XDP_USE_SG: u32 = 16; +pub const XDP_UMEM_UNALIGNED_CHUNK_FLAG: u32 = 1; +pub const XDP_UMEM_TX_SW_CSUM: u32 = 2; +pub const XDP_UMEM_TX_METADATA_LEN: u32 = 4; +pub const XDP_RING_NEED_WAKEUP: u32 = 1; +pub const XDP_MMAP_OFFSETS: u32 = 1; +pub const XDP_RX_RING: u32 = 2; +pub const XDP_TX_RING: u32 = 3; +pub const XDP_UMEM_REG: u32 = 4; +pub const XDP_UMEM_FILL_RING: u32 = 5; +pub const XDP_UMEM_COMPLETION_RING: u32 = 6; +pub const XDP_STATISTICS: u32 = 7; +pub const XDP_OPTIONS: u32 = 8; +pub const XDP_OPTIONS_ZEROCOPY: u32 = 1; +pub const XDP_PGOFF_RX_RING: u32 = 0; +pub const XDP_PGOFF_TX_RING: u32 = 2147483648; +pub const XDP_UMEM_PGOFF_FILL_RING: u64 = 4294967296; +pub const XDP_UMEM_PGOFF_COMPLETION_RING: u64 = 6442450944; +pub const XSK_UNALIGNED_BUF_OFFSET_SHIFT: u32 = 48; +pub const XSK_UNALIGNED_BUF_ADDR_MASK: u64 = 281474976710655; +pub const XDP_TXMD_FLAGS_TIMESTAMP: u32 = 1; +pub const XDP_TXMD_FLAGS_CHECKSUM: u32 = 2; +pub const XDP_TXMD_FLAGS_LAUNCH_TIME: u32 = 4; +pub const XDP_PKT_CONTD: u32 = 1; +pub const XDP_TX_METADATA: u32 = 2; +#[repr(C)] +#[derive(Copy, Clone)] +pub union xsk_tx_metadata__bindgen_ty_1 { +pub request: xsk_tx_metadata__bindgen_ty_1__bindgen_ty_1, +pub completion: xsk_tx_metadata__bindgen_ty_1__bindgen_ty_2, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/auxvec.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/auxvec.rs new file mode 100644 index 0000000000000000000000000000000000000000..130f15929d01162dd718f4d43e8121a70c09b5cd --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/auxvec.rs @@ -0,0 +1,31 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_PLATFORM: u32 = 15; +pub const AT_HWCAP: u32 = 16; +pub const AT_CLKTCK: u32 = 17; +pub const AT_SECURE: u32 = 23; +pub const AT_BASE_PLATFORM: u32 = 24; +pub const AT_RANDOM: u32 = 25; +pub const AT_HWCAP2: u32 = 26; +pub const AT_RSEQ_FEATURE_SIZE: u32 = 27; +pub const AT_RSEQ_ALIGN: u32 = 28; +pub const AT_HWCAP3: u32 = 29; +pub const AT_HWCAP4: u32 = 30; +pub const AT_EXECFN: u32 = 31; +pub const AT_MINSIGSTKSZ: u32 = 51; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/bootparam.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/bootparam.rs new file mode 100644 index 0000000000000000000000000000000000000000..bff15e373cd12fce9e91f11af9ee8efb9065775b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/bootparam.rs @@ -0,0 +1,3 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + + diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/btrfs.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/btrfs.rs new file mode 100644 index 0000000000000000000000000000000000000000..4bd7dc0983841d723e1e86edf2b74e4df74d356a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/btrfs.rs @@ -0,0 +1,1894 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_rwf_t = crate::ctypes::c_int; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v1 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub master_key_descriptor: [__u8; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_key { +pub mode: __u32, +pub raw: [__u8; 64usize], +pub size: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v2 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub log2_data_unit_size: __u8, +pub __reserved: [__u8; 3usize], +pub master_key_identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_policy_ex_arg { +pub policy_size: __u64, +pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_key_specifier { +pub type_: __u32, +pub __reserved: __u32, +pub u: fscrypt_key_specifier__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct fscrypt_provisioning_key_payload { +pub type_: __u32, +pub flags: __u32, +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +pub struct fscrypt_add_key_arg { +pub key_spec: fscrypt_key_specifier, +pub raw_size: __u32, +pub key_id: __u32, +pub flags: __u32, +pub __reserved: [__u32; 7usize], +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_remove_key_arg { +pub key_spec: fscrypt_key_specifier, +pub removal_status_flags: __u32, +pub __reserved: [__u32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_key_status_arg { +pub key_spec: fscrypt_key_specifier, +pub __reserved: [__u32; 6usize], +pub status: __u32, +pub status_flags: __u32, +pub user_count: __u32, +pub __out_reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mount_attr { +pub attr_set: __u64, +pub attr_clr: __u64, +pub propagation: __u64, +pub userns_fd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct statmount { +pub size: __u32, +pub mnt_opts: __u32, +pub mask: __u64, +pub sb_dev_major: __u32, +pub sb_dev_minor: __u32, +pub sb_magic: __u64, +pub sb_flags: __u32, +pub fs_type: __u32, +pub mnt_id: __u64, +pub mnt_parent_id: __u64, +pub mnt_id_old: __u32, +pub mnt_parent_id_old: __u32, +pub mnt_attr: __u64, +pub mnt_propagation: __u64, +pub mnt_peer_group: __u64, +pub mnt_master: __u64, +pub propagate_from: __u64, +pub mnt_root: __u32, +pub mnt_point: __u32, +pub mnt_ns_id: __u64, +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub supported_mask: __u64, +pub mnt_uidmap_num: __u32, +pub mnt_uidmap: __u32, +pub mnt_gidmap_num: __u32, +pub mnt_gidmap: __u32, +pub __spare2: [__u64; 43usize], +pub str_: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mnt_id_req { +pub size: __u32, +pub spare: __u32, +pub mnt_id: __u64, +pub param: __u64, +pub mnt_ns_id: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_clone_range { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fstrim_range { +pub start: __u64, +pub len: __u64, +pub minlen: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsuuid2 { +pub len: __u8, +pub uuid: [__u8; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fs_sysfs_path { +pub len: __u8, +pub name: [__u8; 128usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_dedupe_range_info { +pub dest_fd: __s64, +pub dest_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct file_dedupe_range { +pub src_offset: __u64, +pub src_length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct files_stat_struct { +pub nr_files: crate::ctypes::c_ulong, +pub nr_free_files: crate::ctypes::c_ulong, +pub max_files: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct inodes_stat_t { +pub nr_inodes: crate::ctypes::c_long, +pub nr_unused: crate::ctypes::c_long, +pub dummy: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsxattr { +pub fsx_xflags: __u32, +pub fsx_extsize: __u32, +pub fsx_nextents: __u32, +pub fsx_projid: __u32, +pub fsx_cowextsize: __u32, +pub fsx_pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct page_region { +pub start: __u64, +pub end: __u64, +pub categories: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pm_scan_arg { +pub size: __u64, +pub flags: __u64, +pub start: __u64, +pub end: __u64, +pub walk_end: __u64, +pub vec: __u64, +pub vec_len: __u64, +pub max_pages: __u64, +pub category_inverted: __u64, +pub category_mask: __u64, +pub category_anyof_mask: __u64, +pub return_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct procmap_query { +pub size: __u64, +pub query_flags: __u64, +pub query_addr: __u64, +pub vma_start: __u64, +pub vma_end: __u64, +pub vma_flags: __u64, +pub vma_page_size: __u64, +pub vma_offset: __u64, +pub inode: __u64, +pub dev_major: __u32, +pub dev_minor: __u32, +pub vma_name_size: __u32, +pub build_id_size: __u32, +pub vma_name_addr: __u64, +pub build_id_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_vol_args { +pub fd: __s64, +pub name: [crate::ctypes::c_char; 4088usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_limit { +pub flags: __u64, +pub max_rfer: __u64, +pub max_excl: __u64, +pub rsv_rfer: __u64, +pub rsv_excl: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_qgroup_inherit { +pub flags: __u64, +pub num_qgroups: __u64, +pub num_ref_copies: __u64, +pub num_excl_copies: __u64, +pub lim: btrfs_qgroup_limit, +pub qgroups: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_qgroup_limit_args { +pub qgroupid: __u64, +pub lim: btrfs_qgroup_limit, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_vol_args_v2 { +pub fd: __s64, +pub transid: __u64, +pub flags: __u64, +pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1, +pub __bindgen_anon_2: btrfs_ioctl_vol_args_v2__bindgen_ty_2, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1 { +pub size: __u64, +pub qgroup_inherit: *mut btrfs_qgroup_inherit, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_scrub_progress { +pub data_extents_scrubbed: __u64, +pub tree_extents_scrubbed: __u64, +pub data_bytes_scrubbed: __u64, +pub tree_bytes_scrubbed: __u64, +pub read_errors: __u64, +pub csum_errors: __u64, +pub verify_errors: __u64, +pub no_csum: __u64, +pub csum_discards: __u64, +pub super_errors: __u64, +pub malloc_errors: __u64, +pub uncorrectable_errors: __u64, +pub corrected_errors: __u64, +pub last_physical: __u64, +pub unverified_errors: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_scrub_args { +pub devid: __u64, +pub start: __u64, +pub end: __u64, +pub flags: __u64, +pub progress: btrfs_scrub_progress, +pub unused: [__u64; 109usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_dev_replace_start_params { +pub srcdevid: __u64, +pub cont_reading_from_srcdev_mode: __u64, +pub srcdev_name: [__u8; 1025usize], +pub tgtdev_name: [__u8; 1025usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_dev_replace_status_params { +pub replace_state: __u64, +pub progress_1000: __u64, +pub time_started: __u64, +pub time_stopped: __u64, +pub num_write_errors: __u64, +pub num_uncorrectable_read_errors: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_dev_replace_args { +pub cmd: __u64, +pub result: __u64, +pub __bindgen_anon_1: btrfs_ioctl_dev_replace_args__bindgen_ty_1, +pub spare: [__u64; 64usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_dev_info_args { +pub devid: __u64, +pub uuid: [__u8; 16usize], +pub bytes_used: __u64, +pub total_bytes: __u64, +pub fsid: [__u8; 16usize], +pub unused: [__u64; 377usize], +pub path: [__u8; 1024usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_fs_info_args { +pub max_id: __u64, +pub num_devices: __u64, +pub fsid: [__u8; 16usize], +pub nodesize: __u32, +pub sectorsize: __u32, +pub clone_alignment: __u32, +pub csum_type: __u16, +pub csum_size: __u16, +pub flags: __u64, +pub generation: __u64, +pub metadata_uuid: [__u8; 16usize], +pub reserved: [__u8; 944usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_feature_flags { +pub compat_flags: __u64, +pub compat_ro_flags: __u64, +pub incompat_flags: __u64, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct btrfs_balance_args { +pub profiles: __u64, +pub __bindgen_anon_1: btrfs_balance_args__bindgen_ty_1, +pub devid: __u64, +pub pstart: __u64, +pub pend: __u64, +pub vstart: __u64, +pub vend: __u64, +pub target: __u64, +pub flags: __u64, +pub __bindgen_anon_2: btrfs_balance_args__bindgen_ty_2, +pub stripes_min: __u32, +pub stripes_max: __u32, +pub unused: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_balance_args__bindgen_ty_1__bindgen_ty_1 { +pub usage_min: __u32, +pub usage_max: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_balance_args__bindgen_ty_2__bindgen_ty_1 { +pub limit_min: __u32, +pub limit_max: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_balance_progress { +pub expected: __u64, +pub considered: __u64, +pub completed: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_balance_args { +pub flags: __u64, +pub state: __u64, +pub data: btrfs_balance_args, +pub meta: btrfs_balance_args, +pub sys: btrfs_balance_args, +pub stat: btrfs_balance_progress, +pub unused: [__u64; 72usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_ino_lookup_args { +pub treeid: __u64, +pub objectid: __u64, +pub name: [crate::ctypes::c_char; 4080usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_ino_lookup_user_args { +pub dirid: __u64, +pub treeid: __u64, +pub name: [crate::ctypes::c_char; 256usize], +pub path: [crate::ctypes::c_char; 3824usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_search_key { +pub tree_id: __u64, +pub min_objectid: __u64, +pub max_objectid: __u64, +pub min_offset: __u64, +pub max_offset: __u64, +pub min_transid: __u64, +pub max_transid: __u64, +pub min_type: __u32, +pub max_type: __u32, +pub nr_items: __u32, +pub unused: __u32, +pub unused1: __u64, +pub unused2: __u64, +pub unused3: __u64, +pub unused4: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_search_header { +pub transid: __u64, +pub objectid: __u64, +pub offset: __u64, +pub type_: __u32, +pub len: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_search_args { +pub key: btrfs_ioctl_search_key, +pub buf: [crate::ctypes::c_char; 3992usize], +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_search_args_v2 { +pub key: btrfs_ioctl_search_key, +pub buf_size: __u64, +pub buf: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_clone_range_args { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_defrag_range_args { +pub start: __u64, +pub len: __u64, +pub flags: __u64, +pub extent_thresh: __u32, +pub __bindgen_anon_1: btrfs_ioctl_defrag_range_args__bindgen_ty_1, +pub unused: [__u32; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_defrag_range_args__bindgen_ty_1__bindgen_ty_1 { +pub type_: __u8, +pub level: __s8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_same_extent_info { +pub fd: __s64, +pub logical_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_same_args { +pub logical_offset: __u64, +pub length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_space_info { +pub flags: __u64, +pub total_bytes: __u64, +pub used_bytes: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_space_args { +pub space_slots: __u64, +pub total_spaces: __u64, +pub spaces: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_data_container { +pub bytes_left: __u32, +pub bytes_missing: __u32, +pub elem_cnt: __u32, +pub elem_missed: __u32, +pub val: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_ino_path_args { +pub inum: __u64, +pub size: __u64, +pub reserved: [__u64; 4usize], +pub fspath: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_logical_ino_args { +pub logical: __u64, +pub size: __u64, +pub reserved: [__u64; 3usize], +pub flags: __u64, +pub inodes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_dev_stats { +pub devid: __u64, +pub nr_items: __u64, +pub flags: __u64, +pub values: [__u64; 5usize], +pub unused: [__u64; 121usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_quota_ctl_args { +pub cmd: __u64, +pub status: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_quota_rescan_args { +pub flags: __u64, +pub progress: __u64, +pub reserved: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_qgroup_assign_args { +pub assign: __u64, +pub src: __u64, +pub dst: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_qgroup_create_args { +pub create: __u64, +pub qgroupid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_timespec { +pub sec: __u64, +pub nsec: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_received_subvol_args { +pub uuid: [crate::ctypes::c_char; 16usize], +pub stransid: __u64, +pub rtransid: __u64, +pub stime: btrfs_ioctl_timespec, +pub rtime: btrfs_ioctl_timespec, +pub flags: __u64, +pub reserved: [__u64; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_send_args { +pub send_fd: __s64, +pub clone_sources_count: __u64, +pub clone_sources: *mut __u64, +pub parent_root: __u64, +pub flags: __u64, +pub version: __u32, +pub reserved: [__u8; 28usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_subvol_info_args { +pub treeid: __u64, +pub name: [crate::ctypes::c_char; 256usize], +pub parent_id: __u64, +pub dirid: __u64, +pub generation: __u64, +pub flags: __u64, +pub uuid: [__u8; 16usize], +pub parent_uuid: [__u8; 16usize], +pub received_uuid: [__u8; 16usize], +pub ctransid: __u64, +pub otransid: __u64, +pub stransid: __u64, +pub rtransid: __u64, +pub ctime: btrfs_ioctl_timespec, +pub otime: btrfs_ioctl_timespec, +pub stime: btrfs_ioctl_timespec, +pub rtime: btrfs_ioctl_timespec, +pub reserved: [__u64; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_subvol_rootref_args { +pub min_treeid: __u64, +pub rootref: [btrfs_ioctl_get_subvol_rootref_args__bindgen_ty_1; 255usize], +pub num_items: __u8, +pub align: [__u8; 7usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_subvol_rootref_args__bindgen_ty_1 { +pub treeid: __u64, +pub dirid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_encoded_io_args { +pub iov: *const iovec, +pub iovcnt: crate::ctypes::c_ulong, +pub offset: __s64, +pub flags: __u64, +pub len: __u64, +pub unencoded_len: __u64, +pub unencoded_offset: __u64, +pub compression: __u32, +pub encryption: __u32, +pub reserved: [__u8; 64usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_subvol_wait { +pub subvolid: __u64, +pub mode: __u32, +pub count: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_disk_key { +pub objectid: __le64, +pub type_: __u8, +pub offset: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_key { +pub objectid: __u64, +pub type_: __u8, +pub offset: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_header { +pub csum: [__u8; 32usize], +pub fsid: [__u8; 16usize], +pub bytenr: __le64, +pub flags: __le64, +pub chunk_tree_uuid: [__u8; 16usize], +pub generation: __le64, +pub owner: __le64, +pub nritems: __le32, +pub level: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_root_backup { +pub tree_root: __le64, +pub tree_root_gen: __le64, +pub chunk_root: __le64, +pub chunk_root_gen: __le64, +pub extent_root: __le64, +pub extent_root_gen: __le64, +pub fs_root: __le64, +pub fs_root_gen: __le64, +pub dev_root: __le64, +pub dev_root_gen: __le64, +pub csum_root: __le64, +pub csum_root_gen: __le64, +pub total_bytes: __le64, +pub bytes_used: __le64, +pub num_devices: __le64, +pub unused_64: [__le64; 4usize], +pub tree_root_level: __u8, +pub chunk_root_level: __u8, +pub extent_root_level: __u8, +pub fs_root_level: __u8, +pub dev_root_level: __u8, +pub csum_root_level: __u8, +pub unused_8: [__u8; 10usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_item { +pub key: btrfs_disk_key, +pub offset: __le32, +pub size: __le32, +} +#[repr(C, packed)] +pub struct btrfs_leaf { +pub header: btrfs_header, +pub items: __IncompleteArrayField, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_key_ptr { +pub key: btrfs_disk_key, +pub blockptr: __le64, +pub generation: __le64, +} +#[repr(C, packed)] +pub struct btrfs_node { +pub header: btrfs_header, +pub ptrs: __IncompleteArrayField, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_item { +pub devid: __le64, +pub total_bytes: __le64, +pub bytes_used: __le64, +pub io_align: __le32, +pub io_width: __le32, +pub sector_size: __le32, +pub type_: __le64, +pub generation: __le64, +pub start_offset: __le64, +pub dev_group: __le32, +pub seek_speed: __u8, +pub bandwidth: __u8, +pub uuid: [__u8; 16usize], +pub fsid: [__u8; 16usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_stripe { +pub devid: __le64, +pub offset: __le64, +pub dev_uuid: [__u8; 16usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_chunk { +pub length: __le64, +pub owner: __le64, +pub stripe_len: __le64, +pub type_: __le64, +pub io_align: __le32, +pub io_width: __le32, +pub sector_size: __le32, +pub num_stripes: __le16, +pub sub_stripes: __le16, +pub stripe: btrfs_stripe, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_super_block { +pub csum: [__u8; 32usize], +pub fsid: [__u8; 16usize], +pub bytenr: __le64, +pub flags: __le64, +pub magic: __le64, +pub generation: __le64, +pub root: __le64, +pub chunk_root: __le64, +pub log_root: __le64, +pub __unused_log_root_transid: __le64, +pub total_bytes: __le64, +pub bytes_used: __le64, +pub root_dir_objectid: __le64, +pub num_devices: __le64, +pub sectorsize: __le32, +pub nodesize: __le32, +pub __unused_leafsize: __le32, +pub stripesize: __le32, +pub sys_chunk_array_size: __le32, +pub chunk_root_generation: __le64, +pub compat_flags: __le64, +pub compat_ro_flags: __le64, +pub incompat_flags: __le64, +pub csum_type: __le16, +pub root_level: __u8, +pub chunk_root_level: __u8, +pub log_root_level: __u8, +pub dev_item: btrfs_dev_item, +pub label: [crate::ctypes::c_char; 256usize], +pub cache_generation: __le64, +pub uuid_tree_generation: __le64, +pub metadata_uuid: [__u8; 16usize], +pub nr_global_roots: __u64, +pub reserved: [__le64; 27usize], +pub sys_chunk_array: [__u8; 2048usize], +pub super_roots: [btrfs_root_backup; 4usize], +pub padding: [__u8; 565usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_free_space_entry { +pub offset: __le64, +pub bytes: __le64, +pub type_: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_free_space_header { +pub location: btrfs_disk_key, +pub generation: __le64, +pub num_entries: __le64, +pub num_bitmaps: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_raid_stride { +pub devid: __le64, +pub physical: __le64, +} +#[repr(C, packed)] +pub struct btrfs_stripe_extent { +pub __bindgen_anon_1: btrfs_stripe_extent__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_stripe_extent__bindgen_ty_1 { +pub __empty_strides: btrfs_stripe_extent__bindgen_ty_1__bindgen_ty_1, +pub strides: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_stripe_extent__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_item { +pub refs: __le64, +pub generation: __le64, +pub flags: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_item_v0 { +pub refs: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_tree_block_info { +pub key: btrfs_disk_key, +pub level: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_data_ref { +pub root: __le64, +pub objectid: __le64, +pub offset: __le64, +pub count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_shared_data_ref { +pub count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_owner_ref { +pub root_id: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_inline_ref { +pub type_: __u8, +pub offset: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_extent { +pub chunk_tree: __le64, +pub chunk_objectid: __le64, +pub chunk_offset: __le64, +pub length: __le64, +pub chunk_tree_uuid: [__u8; 16usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_inode_ref { +pub index: __le64, +pub name_len: __le16, +} +#[repr(C, packed)] +pub struct btrfs_inode_extref { +pub parent_objectid: __le64, +pub index: __le64, +pub name_len: __le16, +pub name: __IncompleteArrayField<__u8>, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_timespec { +pub sec: __le64, +pub nsec: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_inode_item { +pub generation: __le64, +pub transid: __le64, +pub size: __le64, +pub nbytes: __le64, +pub block_group: __le64, +pub nlink: __le32, +pub uid: __le32, +pub gid: __le32, +pub mode: __le32, +pub rdev: __le64, +pub flags: __le64, +pub sequence: __le64, +pub reserved: [__le64; 4usize], +pub atime: btrfs_timespec, +pub ctime: btrfs_timespec, +pub mtime: btrfs_timespec, +pub otime: btrfs_timespec, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dir_log_item { +pub end: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dir_item { +pub location: btrfs_disk_key, +pub transid: __le64, +pub data_len: __le16, +pub name_len: __le16, +pub type_: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_root_item { +pub inode: btrfs_inode_item, +pub generation: __le64, +pub root_dirid: __le64, +pub bytenr: __le64, +pub byte_limit: __le64, +pub bytes_used: __le64, +pub last_snapshot: __le64, +pub flags: __le64, +pub refs: __le32, +pub drop_progress: btrfs_disk_key, +pub drop_level: __u8, +pub level: __u8, +pub generation_v2: __le64, +pub uuid: [__u8; 16usize], +pub parent_uuid: [__u8; 16usize], +pub received_uuid: [__u8; 16usize], +pub ctransid: __le64, +pub otransid: __le64, +pub stransid: __le64, +pub rtransid: __le64, +pub ctime: btrfs_timespec, +pub otime: btrfs_timespec, +pub stime: btrfs_timespec, +pub rtime: btrfs_timespec, +pub reserved: [__le64; 8usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_root_ref { +pub dirid: __le64, +pub sequence: __le64, +pub name_len: __le16, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct btrfs_disk_balance_args { +pub profiles: __le64, +pub __bindgen_anon_1: btrfs_disk_balance_args__bindgen_ty_1, +pub devid: __le64, +pub pstart: __le64, +pub pend: __le64, +pub vstart: __le64, +pub vend: __le64, +pub target: __le64, +pub flags: __le64, +pub __bindgen_anon_2: btrfs_disk_balance_args__bindgen_ty_2, +pub stripes_min: __le32, +pub stripes_max: __le32, +pub unused: [__le64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_disk_balance_args__bindgen_ty_1__bindgen_ty_1 { +pub usage_min: __le32, +pub usage_max: __le32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_disk_balance_args__bindgen_ty_2__bindgen_ty_1 { +pub limit_min: __le32, +pub limit_max: __le32, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct btrfs_balance_item { +pub flags: __le64, +pub data: btrfs_disk_balance_args, +pub meta: btrfs_disk_balance_args, +pub sys: btrfs_disk_balance_args, +pub unused: [__le64; 4usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_file_extent_item { +pub generation: __le64, +pub ram_bytes: __le64, +pub compression: __u8, +pub encryption: __u8, +pub other_encoding: __le16, +pub type_: __u8, +pub disk_bytenr: __le64, +pub disk_num_bytes: __le64, +pub offset: __le64, +pub num_bytes: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_csum_item { +pub csum: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_stats_item { +pub values: [__le64; 5usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_replace_item { +pub src_devid: __le64, +pub cursor_left: __le64, +pub cursor_right: __le64, +pub cont_reading_from_srcdev_mode: __le64, +pub replace_state: __le64, +pub time_started: __le64, +pub time_stopped: __le64, +pub num_write_errors: __le64, +pub num_uncorrectable_read_errors: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_free_space_info { +pub extent_count: __le32, +pub flags: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_status_item { +pub version: __le64, +pub generation: __le64, +pub flags: __le64, +pub rescan: __le64, +pub enable_gen: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_info_item { +pub generation: __le64, +pub rfer: __le64, +pub rfer_cmpr: __le64, +pub excl: __le64, +pub excl_cmpr: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_limit_item { +pub flags: __le64, +pub max_rfer: __le64, +pub max_excl: __le64, +pub rsv_rfer: __le64, +pub rsv_excl: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_verity_descriptor_item { +pub size: __le64, +pub reserved: [__le64; 2usize], +pub encryption: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iovec { +pub _address: u8, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_SIZEBITS: u32 = 14; +pub const _IOC_DIRBITS: u32 = 2; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 16383; +pub const _IOC_DIRMASK: u32 = 3; +pub const _IOC_NRSHIFT: u32 = 0; +pub const _IOC_TYPESHIFT: u32 = 8; +pub const _IOC_SIZESHIFT: u32 = 16; +pub const _IOC_DIRSHIFT: u32 = 30; +pub const _IOC_NONE: u32 = 0; +pub const _IOC_WRITE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const IOC_IN: u32 = 1073741824; +pub const IOC_OUT: u32 = 2147483648; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 1073676288; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const NR_OPEN: u32 = 1024; +pub const NGROUPS_MAX: u32 = 65536; +pub const ARG_MAX: u32 = 131072; +pub const LINK_MAX: u32 = 127; +pub const MAX_CANON: u32 = 255; +pub const MAX_INPUT: u32 = 255; +pub const NAME_MAX: u32 = 255; +pub const PATH_MAX: u32 = 4096; +pub const PIPE_BUF: u32 = 4096; +pub const XATTR_NAME_MAX: u32 = 255; +pub const XATTR_SIZE_MAX: u32 = 65536; +pub const XATTR_LIST_MAX: u32 = 65536; +pub const RTSIG_MAX: u32 = 32; +pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; +pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; +pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; +pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; +pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; +pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; +pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; +pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; +pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; +pub const FSCRYPT_POLICY_V1: u32 = 0; +pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; +pub const FSCRYPT_POLICY_V2: u32 = 2; +pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; +pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; +pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; +pub const FSCRYPT_ADD_KEY_FLAG_HW_WRAPPED: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; +pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; +pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; +pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; +pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; +pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FS_POLICY_FLAGS_VALID: u32 = 7; +pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; +pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; +pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; +pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; +pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; +pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; +pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; +pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; +pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FS_MAX_KEY_SIZE: u32 = 64; +pub const MS_RDONLY: u32 = 1; +pub const MS_NOSUID: u32 = 2; +pub const MS_NODEV: u32 = 4; +pub const MS_NOEXEC: u32 = 8; +pub const MS_SYNCHRONOUS: u32 = 16; +pub const MS_REMOUNT: u32 = 32; +pub const MS_MANDLOCK: u32 = 64; +pub const MS_DIRSYNC: u32 = 128; +pub const MS_NOSYMFOLLOW: u32 = 256; +pub const MS_NOATIME: u32 = 1024; +pub const MS_NODIRATIME: u32 = 2048; +pub const MS_BIND: u32 = 4096; +pub const MS_MOVE: u32 = 8192; +pub const MS_REC: u32 = 16384; +pub const MS_VERBOSE: u32 = 32768; +pub const MS_SILENT: u32 = 32768; +pub const MS_POSIXACL: u32 = 65536; +pub const MS_UNBINDABLE: u32 = 131072; +pub const MS_PRIVATE: u32 = 262144; +pub const MS_SLAVE: u32 = 524288; +pub const MS_SHARED: u32 = 1048576; +pub const MS_RELATIME: u32 = 2097152; +pub const MS_KERNMOUNT: u32 = 4194304; +pub const MS_I_VERSION: u32 = 8388608; +pub const MS_STRICTATIME: u32 = 16777216; +pub const MS_LAZYTIME: u32 = 33554432; +pub const MS_SUBMOUNT: u32 = 67108864; +pub const MS_NOREMOTELOCK: u32 = 134217728; +pub const MS_NOSEC: u32 = 268435456; +pub const MS_BORN: u32 = 536870912; +pub const MS_ACTIVE: u32 = 1073741824; +pub const MS_NOUSER: u32 = 2147483648; +pub const MS_RMT_MASK: u32 = 41943121; +pub const MS_MGC_VAL: u32 = 3236757504; +pub const MS_MGC_MSK: u32 = 4294901760; +pub const OPEN_TREE_CLONE: u32 = 1; +pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; +pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; +pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; +pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; +pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; +pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; +pub const MOVE_MOUNT_SET_GROUP: u32 = 256; +pub const MOVE_MOUNT_BENEATH: u32 = 512; +pub const MOVE_MOUNT__MASK: u32 = 887; +pub const FSOPEN_CLOEXEC: u32 = 1; +pub const FSPICK_CLOEXEC: u32 = 1; +pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; +pub const FSPICK_NO_AUTOMOUNT: u32 = 4; +pub const FSPICK_EMPTY_PATH: u32 = 8; +pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const MOUNT_ATTR_RDONLY: u32 = 1; +pub const MOUNT_ATTR_NOSUID: u32 = 2; +pub const MOUNT_ATTR_NODEV: u32 = 4; +pub const MOUNT_ATTR_NOEXEC: u32 = 8; +pub const MOUNT_ATTR__ATIME: u32 = 112; +pub const MOUNT_ATTR_RELATIME: u32 = 0; +pub const MOUNT_ATTR_NOATIME: u32 = 16; +pub const MOUNT_ATTR_STRICTATIME: u32 = 32; +pub const MOUNT_ATTR_NODIRATIME: u32 = 128; +pub const MOUNT_ATTR_IDMAP: u32 = 1048576; +pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; +pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; +pub const MNT_ID_REQ_SIZE_VER0: u32 = 24; +pub const MNT_ID_REQ_SIZE_VER1: u32 = 32; +pub const STATMOUNT_SB_BASIC: u32 = 1; +pub const STATMOUNT_MNT_BASIC: u32 = 2; +pub const STATMOUNT_PROPAGATE_FROM: u32 = 4; +pub const STATMOUNT_MNT_ROOT: u32 = 8; +pub const STATMOUNT_MNT_POINT: u32 = 16; +pub const STATMOUNT_FS_TYPE: u32 = 32; +pub const STATMOUNT_MNT_NS_ID: u32 = 64; +pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; +pub const STATMOUNT_SUPPORTED_MASK: u32 = 4096; +pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; +pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; +pub const LSMT_ROOT: i32 = -1; +pub const LISTMOUNT_REVERSE: u32 = 1; +pub const INR_OPEN_CUR: u32 = 1024; +pub const INR_OPEN_MAX: u32 = 4096; +pub const BLOCK_SIZE_BITS: u32 = 10; +pub const BLOCK_SIZE: u32 = 1024; +pub const IO_INTEGRITY_CHK_GUARD: u32 = 1; +pub const IO_INTEGRITY_CHK_REFTAG: u32 = 2; +pub const IO_INTEGRITY_CHK_APPTAG: u32 = 4; +pub const IO_INTEGRITY_VALID_FLAGS: u32 = 7; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const SEEK_DATA: u32 = 3; +pub const SEEK_HOLE: u32 = 4; +pub const SEEK_MAX: u32 = 4; +pub const RENAME_NOREPLACE: u32 = 1; +pub const RENAME_EXCHANGE: u32 = 2; +pub const RENAME_WHITEOUT: u32 = 4; +pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; +pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; +pub const NR_FILE: u32 = 8192; +pub const FS_XFLAG_REALTIME: u32 = 1; +pub const FS_XFLAG_PREALLOC: u32 = 2; +pub const FS_XFLAG_IMMUTABLE: u32 = 8; +pub const FS_XFLAG_APPEND: u32 = 16; +pub const FS_XFLAG_SYNC: u32 = 32; +pub const FS_XFLAG_NOATIME: u32 = 64; +pub const FS_XFLAG_NODUMP: u32 = 128; +pub const FS_XFLAG_RTINHERIT: u32 = 256; +pub const FS_XFLAG_PROJINHERIT: u32 = 512; +pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; +pub const FS_XFLAG_EXTSIZE: u32 = 2048; +pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; +pub const FS_XFLAG_NODEFRAG: u32 = 8192; +pub const FS_XFLAG_FILESTREAM: u32 = 16384; +pub const FS_XFLAG_DAX: u32 = 32768; +pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_HASATTR: u32 = 2147483648; +pub const BMAP_IOCTL: u32 = 1; +pub const FSLABEL_MAX: u32 = 256; +pub const FS_SECRM_FL: u32 = 1; +pub const FS_UNRM_FL: u32 = 2; +pub const FS_COMPR_FL: u32 = 4; +pub const FS_SYNC_FL: u32 = 8; +pub const FS_IMMUTABLE_FL: u32 = 16; +pub const FS_APPEND_FL: u32 = 32; +pub const FS_NODUMP_FL: u32 = 64; +pub const FS_NOATIME_FL: u32 = 128; +pub const FS_DIRTY_FL: u32 = 256; +pub const FS_COMPRBLK_FL: u32 = 512; +pub const FS_NOCOMP_FL: u32 = 1024; +pub const FS_ENCRYPT_FL: u32 = 2048; +pub const FS_BTREE_FL: u32 = 4096; +pub const FS_INDEX_FL: u32 = 4096; +pub const FS_IMAGIC_FL: u32 = 8192; +pub const FS_JOURNAL_DATA_FL: u32 = 16384; +pub const FS_NOTAIL_FL: u32 = 32768; +pub const FS_DIRSYNC_FL: u32 = 65536; +pub const FS_TOPDIR_FL: u32 = 131072; +pub const FS_HUGE_FILE_FL: u32 = 262144; +pub const FS_EXTENT_FL: u32 = 524288; +pub const FS_VERITY_FL: u32 = 1048576; +pub const FS_EA_INODE_FL: u32 = 2097152; +pub const FS_EOFBLOCKS_FL: u32 = 4194304; +pub const FS_NOCOW_FL: u32 = 8388608; +pub const FS_DAX_FL: u32 = 33554432; +pub const FS_INLINE_DATA_FL: u32 = 268435456; +pub const FS_PROJINHERIT_FL: u32 = 536870912; +pub const FS_CASEFOLD_FL: u32 = 1073741824; +pub const FS_RESERVED_FL: u32 = 2147483648; +pub const FS_FL_USER_VISIBLE: u32 = 253951; +pub const FS_FL_USER_MODIFIABLE: u32 = 229631; +pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; +pub const SYNC_FILE_RANGE_WRITE: u32 = 2; +pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; +pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; +pub const PROCFS_IOCTL_MAGIC: u8 = 102u8; +pub const PAGE_IS_WPALLOWED: u32 = 1; +pub const PAGE_IS_WRITTEN: u32 = 2; +pub const PAGE_IS_FILE: u32 = 4; +pub const PAGE_IS_PRESENT: u32 = 8; +pub const PAGE_IS_SWAPPED: u32 = 16; +pub const PAGE_IS_PFNZERO: u32 = 32; +pub const PAGE_IS_HUGE: u32 = 64; +pub const PAGE_IS_SOFT_DIRTY: u32 = 128; +pub const PAGE_IS_GUARD: u32 = 256; +pub const PM_SCAN_WP_MATCHING: u32 = 1; +pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const BTRFS_IOCTL_MAGIC: u32 = 148; +pub const BTRFS_VOL_NAME_MAX: u32 = 255; +pub const BTRFS_LABEL_SIZE: u32 = 256; +pub const BTRFS_PATH_NAME_MAX: u32 = 4087; +pub const BTRFS_DEVICE_PATH_NAME_MAX: u32 = 1024; +pub const BTRFS_SUBVOL_NAME_MAX: u32 = 4039; +pub const BTRFS_SUBVOL_CREATE_ASYNC: u32 = 1; +pub const BTRFS_SUBVOL_RDONLY: u32 = 2; +pub const BTRFS_SUBVOL_QGROUP_INHERIT: u32 = 4; +pub const BTRFS_DEVICE_SPEC_BY_ID: u32 = 8; +pub const BTRFS_SUBVOL_SPEC_BY_ID: u32 = 16; +pub const BTRFS_VOL_ARG_V2_FLAGS_SUPPORTED: u32 = 30; +pub const BTRFS_FSID_SIZE: u32 = 16; +pub const BTRFS_UUID_SIZE: u32 = 16; +pub const BTRFS_UUID_UNPARSED_SIZE: u32 = 37; +pub const BTRFS_QGROUP_LIMIT_MAX_RFER: u32 = 1; +pub const BTRFS_QGROUP_LIMIT_MAX_EXCL: u32 = 2; +pub const BTRFS_QGROUP_LIMIT_RSV_RFER: u32 = 4; +pub const BTRFS_QGROUP_LIMIT_RSV_EXCL: u32 = 8; +pub const BTRFS_QGROUP_LIMIT_RFER_CMPR: u32 = 16; +pub const BTRFS_QGROUP_LIMIT_EXCL_CMPR: u32 = 32; +pub const BTRFS_QGROUP_INHERIT_SET_LIMITS: u32 = 1; +pub const BTRFS_QGROUP_INHERIT_FLAGS_SUPP: u32 = 1; +pub const BTRFS_DEVICE_REMOVE_ARGS_MASK: u32 = 8; +pub const BTRFS_SUBVOL_CREATE_ARGS_MASK: u32 = 6; +pub const BTRFS_SUBVOL_DELETE_ARGS_MASK: u32 = 16; +pub const BTRFS_SCRUB_READONLY: u32 = 1; +pub const BTRFS_SCRUB_SUPPORTED_FLAGS: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_CONT_READING_FROM_SRCDEV_MODE_ALWAYS: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_CONT_READING_FROM_SRCDEV_MODE_AVOID: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_NEVER_STARTED: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_STARTED: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_FINISHED: u32 = 2; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_CANCELED: u32 = 3; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_SUSPENDED: u32 = 4; +pub const BTRFS_IOCTL_DEV_REPLACE_CMD_START: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_CMD_STATUS: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_CMD_CANCEL: u32 = 2; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_NO_ERROR: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_NOT_STARTED: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_ALREADY_STARTED: u32 = 2; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_SCRUB_INPROGRESS: u32 = 3; +pub const BTRFS_FS_INFO_FLAG_CSUM_INFO: u32 = 1; +pub const BTRFS_FS_INFO_FLAG_GENERATION: u32 = 2; +pub const BTRFS_FS_INFO_FLAG_METADATA_UUID: u32 = 4; +pub const BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE: u32 = 1; +pub const BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE_VALID: u32 = 2; +pub const BTRFS_FEATURE_COMPAT_RO_VERITY: u32 = 4; +pub const BTRFS_FEATURE_COMPAT_RO_BLOCK_GROUP_TREE: u32 = 8; +pub const BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF: u32 = 1; +pub const BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL: u32 = 2; +pub const BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS: u32 = 4; +pub const BTRFS_FEATURE_INCOMPAT_COMPRESS_LZO: u32 = 8; +pub const BTRFS_FEATURE_INCOMPAT_COMPRESS_ZSTD: u32 = 16; +pub const BTRFS_FEATURE_INCOMPAT_BIG_METADATA: u32 = 32; +pub const BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF: u32 = 64; +pub const BTRFS_FEATURE_INCOMPAT_RAID56: u32 = 128; +pub const BTRFS_FEATURE_INCOMPAT_SKINNY_METADATA: u32 = 256; +pub const BTRFS_FEATURE_INCOMPAT_NO_HOLES: u32 = 512; +pub const BTRFS_FEATURE_INCOMPAT_METADATA_UUID: u32 = 1024; +pub const BTRFS_FEATURE_INCOMPAT_RAID1C34: u32 = 2048; +pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; +pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; +pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; +pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; +pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; +pub const BTRFS_BALANCE_DATA: u32 = 1; +pub const BTRFS_BALANCE_SYSTEM: u32 = 2; +pub const BTRFS_BALANCE_METADATA: u32 = 4; +pub const BTRFS_BALANCE_TYPE_MASK: u32 = 7; +pub const BTRFS_BALANCE_FORCE: u32 = 8; +pub const BTRFS_BALANCE_RESUME: u32 = 16; +pub const BTRFS_BALANCE_ARGS_PROFILES: u32 = 1; +pub const BTRFS_BALANCE_ARGS_USAGE: u32 = 2; +pub const BTRFS_BALANCE_ARGS_DEVID: u32 = 4; +pub const BTRFS_BALANCE_ARGS_DRANGE: u32 = 8; +pub const BTRFS_BALANCE_ARGS_VRANGE: u32 = 16; +pub const BTRFS_BALANCE_ARGS_LIMIT: u32 = 32; +pub const BTRFS_BALANCE_ARGS_LIMIT_RANGE: u32 = 64; +pub const BTRFS_BALANCE_ARGS_STRIPES_RANGE: u32 = 128; +pub const BTRFS_BALANCE_ARGS_USAGE_RANGE: u32 = 1024; +pub const BTRFS_BALANCE_ARGS_MASK: u32 = 1279; +pub const BTRFS_BALANCE_ARGS_CONVERT: u32 = 256; +pub const BTRFS_BALANCE_ARGS_SOFT: u32 = 512; +pub const BTRFS_BALANCE_STATE_RUNNING: u32 = 1; +pub const BTRFS_BALANCE_STATE_PAUSE_REQ: u32 = 2; +pub const BTRFS_BALANCE_STATE_CANCEL_REQ: u32 = 4; +pub const BTRFS_INO_LOOKUP_PATH_MAX: u32 = 4080; +pub const BTRFS_INO_LOOKUP_USER_PATH_MAX: u32 = 3824; +pub const BTRFS_DEFRAG_RANGE_COMPRESS: u32 = 1; +pub const BTRFS_DEFRAG_RANGE_START_IO: u32 = 2; +pub const BTRFS_DEFRAG_RANGE_COMPRESS_LEVEL: u32 = 4; +pub const BTRFS_DEFRAG_RANGE_FLAGS_SUPP: u32 = 7; +pub const BTRFS_SAME_DATA_DIFFERS: u32 = 1; +pub const BTRFS_LOGICAL_INO_ARGS_IGNORE_OFFSET: u32 = 1; +pub const BTRFS_DEV_STATS_RESET: u32 = 1; +pub const BTRFS_QUOTA_CTL_ENABLE: u32 = 1; +pub const BTRFS_QUOTA_CTL_DISABLE: u32 = 2; +pub const BTRFS_QUOTA_CTL_RESCAN__NOTUSED: u32 = 3; +pub const BTRFS_QUOTA_CTL_ENABLE_SIMPLE_QUOTA: u32 = 4; +pub const BTRFS_SEND_FLAG_NO_FILE_DATA: u32 = 1; +pub const BTRFS_SEND_FLAG_OMIT_STREAM_HEADER: u32 = 2; +pub const BTRFS_SEND_FLAG_OMIT_END_CMD: u32 = 4; +pub const BTRFS_SEND_FLAG_VERSION: u32 = 8; +pub const BTRFS_SEND_FLAG_COMPRESSED: u32 = 16; +pub const BTRFS_SEND_FLAG_MASK: u32 = 31; +pub const BTRFS_MAX_ROOTREF_BUFFER_NUM: u32 = 255; +pub const BTRFS_ENCODED_IO_COMPRESSION_NONE: u32 = 0; +pub const BTRFS_ENCODED_IO_COMPRESSION_ZLIB: u32 = 1; +pub const BTRFS_ENCODED_IO_COMPRESSION_ZSTD: u32 = 2; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_4K: u32 = 3; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_8K: u32 = 4; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_16K: u32 = 5; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_32K: u32 = 6; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7; +pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8; +pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0; +pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2; +pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3; +pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4; +pub const BTRFS_MAGIC: u64 = 5575266562640200287; +pub const BTRFS_MAX_LEVEL: u32 = 8; +pub const BTRFS_NAME_LEN: u32 = 255; +pub const BTRFS_LINK_MAX: u32 = 65535; +pub const BTRFS_ROOT_TREE_OBJECTID: u32 = 1; +pub const BTRFS_EXTENT_TREE_OBJECTID: u32 = 2; +pub const BTRFS_CHUNK_TREE_OBJECTID: u32 = 3; +pub const BTRFS_DEV_TREE_OBJECTID: u32 = 4; +pub const BTRFS_FS_TREE_OBJECTID: u32 = 5; +pub const BTRFS_ROOT_TREE_DIR_OBJECTID: u32 = 6; +pub const BTRFS_CSUM_TREE_OBJECTID: u32 = 7; +pub const BTRFS_QUOTA_TREE_OBJECTID: u32 = 8; +pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; +pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; +pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; +pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; +pub const BTRFS_BALANCE_OBJECTID: i32 = -4; +pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; +pub const BTRFS_TREE_LOG_OBJECTID: i32 = -6; +pub const BTRFS_TREE_LOG_FIXUP_OBJECTID: i32 = -7; +pub const BTRFS_TREE_RELOC_OBJECTID: i32 = -8; +pub const BTRFS_DATA_RELOC_TREE_OBJECTID: i32 = -9; +pub const BTRFS_EXTENT_CSUM_OBJECTID: i32 = -10; +pub const BTRFS_FREE_SPACE_OBJECTID: i32 = -11; +pub const BTRFS_FREE_INO_OBJECTID: i32 = -12; +pub const BTRFS_MULTIPLE_OBJECTIDS: i32 = -255; +pub const BTRFS_FIRST_FREE_OBJECTID: u32 = 256; +pub const BTRFS_LAST_FREE_OBJECTID: i32 = -256; +pub const BTRFS_FIRST_CHUNK_TREE_OBJECTID: u32 = 256; +pub const BTRFS_DEV_ITEMS_OBJECTID: u32 = 1; +pub const BTRFS_BTREE_INODE_OBJECTID: u32 = 1; +pub const BTRFS_EMPTY_SUBVOL_DIR_OBJECTID: u32 = 2; +pub const BTRFS_DEV_REPLACE_DEVID: u32 = 0; +pub const BTRFS_INODE_ITEM_KEY: u32 = 1; +pub const BTRFS_INODE_REF_KEY: u32 = 12; +pub const BTRFS_INODE_EXTREF_KEY: u32 = 13; +pub const BTRFS_XATTR_ITEM_KEY: u32 = 24; +pub const BTRFS_VERITY_DESC_ITEM_KEY: u32 = 36; +pub const BTRFS_VERITY_MERKLE_ITEM_KEY: u32 = 37; +pub const BTRFS_ORPHAN_ITEM_KEY: u32 = 48; +pub const BTRFS_DIR_LOG_ITEM_KEY: u32 = 60; +pub const BTRFS_DIR_LOG_INDEX_KEY: u32 = 72; +pub const BTRFS_DIR_ITEM_KEY: u32 = 84; +pub const BTRFS_DIR_INDEX_KEY: u32 = 96; +pub const BTRFS_EXTENT_DATA_KEY: u32 = 108; +pub const BTRFS_EXTENT_CSUM_KEY: u32 = 128; +pub const BTRFS_ROOT_ITEM_KEY: u32 = 132; +pub const BTRFS_ROOT_BACKREF_KEY: u32 = 144; +pub const BTRFS_ROOT_REF_KEY: u32 = 156; +pub const BTRFS_EXTENT_ITEM_KEY: u32 = 168; +pub const BTRFS_METADATA_ITEM_KEY: u32 = 169; +pub const BTRFS_EXTENT_OWNER_REF_KEY: u32 = 172; +pub const BTRFS_TREE_BLOCK_REF_KEY: u32 = 176; +pub const BTRFS_EXTENT_DATA_REF_KEY: u32 = 178; +pub const BTRFS_SHARED_BLOCK_REF_KEY: u32 = 182; +pub const BTRFS_SHARED_DATA_REF_KEY: u32 = 184; +pub const BTRFS_BLOCK_GROUP_ITEM_KEY: u32 = 192; +pub const BTRFS_FREE_SPACE_INFO_KEY: u32 = 198; +pub const BTRFS_FREE_SPACE_EXTENT_KEY: u32 = 199; +pub const BTRFS_FREE_SPACE_BITMAP_KEY: u32 = 200; +pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; +pub const BTRFS_DEV_ITEM_KEY: u32 = 216; +pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; +pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; +pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; +pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; +pub const BTRFS_QGROUP_RELATION_KEY: u32 = 246; +pub const BTRFS_BALANCE_ITEM_KEY: u32 = 248; +pub const BTRFS_TEMPORARY_ITEM_KEY: u32 = 248; +pub const BTRFS_DEV_STATS_KEY: u32 = 249; +pub const BTRFS_PERSISTENT_ITEM_KEY: u32 = 249; +pub const BTRFS_DEV_REPLACE_KEY: u32 = 250; +pub const BTRFS_UUID_KEY_SUBVOL: u32 = 251; +pub const BTRFS_UUID_KEY_RECEIVED_SUBVOL: u32 = 252; +pub const BTRFS_STRING_ITEM_KEY: u32 = 253; +pub const BTRFS_MAX_METADATA_BLOCKSIZE: u32 = 65536; +pub const BTRFS_CSUM_SIZE: u32 = 32; +pub const BTRFS_FT_UNKNOWN: u32 = 0; +pub const BTRFS_FT_REG_FILE: u32 = 1; +pub const BTRFS_FT_DIR: u32 = 2; +pub const BTRFS_FT_CHRDEV: u32 = 3; +pub const BTRFS_FT_BLKDEV: u32 = 4; +pub const BTRFS_FT_FIFO: u32 = 5; +pub const BTRFS_FT_SOCK: u32 = 6; +pub const BTRFS_FT_SYMLINK: u32 = 7; +pub const BTRFS_FT_XATTR: u32 = 8; +pub const BTRFS_FT_MAX: u32 = 9; +pub const BTRFS_FT_ENCRYPTED: u32 = 128; +pub const BTRFS_INODE_NODATASUM: u32 = 1; +pub const BTRFS_INODE_NODATACOW: u32 = 2; +pub const BTRFS_INODE_READONLY: u32 = 4; +pub const BTRFS_INODE_NOCOMPRESS: u32 = 8; +pub const BTRFS_INODE_PREALLOC: u32 = 16; +pub const BTRFS_INODE_SYNC: u32 = 32; +pub const BTRFS_INODE_IMMUTABLE: u32 = 64; +pub const BTRFS_INODE_APPEND: u32 = 128; +pub const BTRFS_INODE_NODUMP: u32 = 256; +pub const BTRFS_INODE_NOATIME: u32 = 512; +pub const BTRFS_INODE_DIRSYNC: u32 = 1024; +pub const BTRFS_INODE_COMPRESS: u32 = 2048; +pub const BTRFS_INODE_ROOT_ITEM_INIT: u32 = 2147483648; +pub const BTRFS_INODE_FLAG_MASK: u32 = 2147487743; +pub const BTRFS_INODE_RO_VERITY: u32 = 1; +pub const BTRFS_INODE_RO_FLAG_MASK: u32 = 1; +pub const BTRFS_SYSTEM_CHUNK_ARRAY_SIZE: u32 = 2048; +pub const BTRFS_NUM_BACKUP_ROOTS: u32 = 4; +pub const BTRFS_FREE_SPACE_EXTENT: u32 = 1; +pub const BTRFS_FREE_SPACE_BITMAP: u32 = 2; +pub const BTRFS_HEADER_FLAG_WRITTEN: u32 = 1; +pub const BTRFS_HEADER_FLAG_RELOC: u32 = 2; +pub const BTRFS_SUPER_FLAG_ERROR: u32 = 4; +pub const BTRFS_SUPER_FLAG_SEEDING: u64 = 4294967296; +pub const BTRFS_SUPER_FLAG_METADUMP: u64 = 8589934592; +pub const BTRFS_SUPER_FLAG_METADUMP_V2: u64 = 17179869184; +pub const BTRFS_SUPER_FLAG_CHANGING_FSID: u64 = 34359738368; +pub const BTRFS_SUPER_FLAG_CHANGING_FSID_V2: u64 = 68719476736; +pub const BTRFS_SUPER_FLAG_CHANGING_BG_TREE: u64 = 274877906944; +pub const BTRFS_SUPER_FLAG_CHANGING_DATA_CSUM: u64 = 549755813888; +pub const BTRFS_SUPER_FLAG_CHANGING_META_CSUM: u64 = 1099511627776; +pub const BTRFS_EXTENT_FLAG_DATA: u32 = 1; +pub const BTRFS_EXTENT_FLAG_TREE_BLOCK: u32 = 2; +pub const BTRFS_BLOCK_FLAG_FULL_BACKREF: u32 = 256; +pub const BTRFS_BACKREF_REV_MAX: u32 = 256; +pub const BTRFS_BACKREF_REV_SHIFT: u32 = 56; +pub const BTRFS_OLD_BACKREF_REV: u32 = 0; +pub const BTRFS_MIXED_BACKREF_REV: u32 = 1; +pub const BTRFS_EXTENT_FLAG_SUPER: u64 = 281474976710656; +pub const BTRFS_ROOT_SUBVOL_RDONLY: u32 = 1; +pub const BTRFS_ROOT_SUBVOL_DEAD: u64 = 281474976710656; +pub const BTRFS_DEV_REPLACE_ITEM_CONT_READING_FROM_SRCDEV_MODE_ALWAYS: u32 = 0; +pub const BTRFS_DEV_REPLACE_ITEM_CONT_READING_FROM_SRCDEV_MODE_AVOID: u32 = 1; +pub const BTRFS_BLOCK_GROUP_DATA: u32 = 1; +pub const BTRFS_BLOCK_GROUP_SYSTEM: u32 = 2; +pub const BTRFS_BLOCK_GROUP_METADATA: u32 = 4; +pub const BTRFS_BLOCK_GROUP_RAID0: u32 = 8; +pub const BTRFS_BLOCK_GROUP_RAID1: u32 = 16; +pub const BTRFS_BLOCK_GROUP_DUP: u32 = 32; +pub const BTRFS_BLOCK_GROUP_RAID10: u32 = 64; +pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; +pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; +pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; +pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; +pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; +pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; +pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; +pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; +pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; +pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; +pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; +pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; +pub const BTRFS_QGROUP_STATUS_FLAG_INCONSISTENT: u32 = 4; +pub const BTRFS_QGROUP_STATUS_FLAG_SIMPLE_MODE: u32 = 8; +pub const BTRFS_QGROUP_STATUS_FLAGS_MASK: u32 = 15; +pub const BTRFS_QGROUP_STATUS_VERSION: u32 = 1; +pub const BTRFS_FILE_EXTENT_INLINE: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_FILE_EXTENT_INLINE; +pub const BTRFS_FILE_EXTENT_REG: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_FILE_EXTENT_REG; +pub const BTRFS_FILE_EXTENT_PREALLOC: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_FILE_EXTENT_PREALLOC; +pub const BTRFS_NR_FILE_EXTENT_TYPES: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_NR_FILE_EXTENT_TYPES; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum fsconfig_command { +FSCONFIG_SET_FLAG = 0, +FSCONFIG_SET_STRING = 1, +FSCONFIG_SET_BINARY = 2, +FSCONFIG_SET_PATH = 3, +FSCONFIG_SET_PATH_EMPTY = 4, +FSCONFIG_SET_FD = 5, +FSCONFIG_CMD_CREATE = 6, +FSCONFIG_CMD_RECONFIGURE = 7, +FSCONFIG_CMD_CREATE_EXCL = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum procmap_query_flags { +PROCMAP_QUERY_VMA_READABLE = 1, +PROCMAP_QUERY_VMA_WRITABLE = 2, +PROCMAP_QUERY_VMA_EXECUTABLE = 4, +PROCMAP_QUERY_VMA_SHARED = 8, +PROCMAP_QUERY_COVERING_OR_NEXT_VMA = 16, +PROCMAP_QUERY_FILE_BACKED_VMA = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum btrfs_dev_stat_values { +BTRFS_DEV_STAT_WRITE_ERRS = 0, +BTRFS_DEV_STAT_READ_ERRS = 1, +BTRFS_DEV_STAT_FLUSH_ERRS = 2, +BTRFS_DEV_STAT_CORRUPTION_ERRS = 3, +BTRFS_DEV_STAT_GENERATION_ERRS = 4, +BTRFS_DEV_STAT_VALUES_MAX = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum btrfs_err_code { +BTRFS_ERROR_DEV_RAID1_MIN_NOT_MET = 1, +BTRFS_ERROR_DEV_RAID10_MIN_NOT_MET = 2, +BTRFS_ERROR_DEV_RAID5_MIN_NOT_MET = 3, +BTRFS_ERROR_DEV_RAID6_MIN_NOT_MET = 4, +BTRFS_ERROR_DEV_TGT_REPLACE = 5, +BTRFS_ERROR_DEV_MISSING_NOT_FOUND = 6, +BTRFS_ERROR_DEV_ONLY_WRITABLE = 7, +BTRFS_ERROR_DEV_EXCL_RUN_IN_PROGRESS = 8, +BTRFS_ERROR_DEV_RAID1C3_MIN_NOT_MET = 9, +BTRFS_ERROR_DEV_RAID1C4_MIN_NOT_MET = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum btrfs_csum_type { +BTRFS_CSUM_TYPE_CRC32 = 0, +BTRFS_CSUM_TYPE_XXHASH = 1, +BTRFS_CSUM_TYPE_SHA256 = 2, +BTRFS_CSUM_TYPE_BLAKE2 = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +BTRFS_FILE_EXTENT_INLINE = 0, +BTRFS_FILE_EXTENT_REG = 1, +BTRFS_FILE_EXTENT_PREALLOC = 2, +BTRFS_NR_FILE_EXTENT_TYPES = 3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { +pub version: __u8, +pub v1: fscrypt_policy_v1, +pub v2: fscrypt_policy_v2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_key_specifier__bindgen_ty_1 { +pub __reserved: [__u8; 32usize], +pub descriptor: [__u8; 8usize], +pub identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { +pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, +pub unused: [__u64; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_vol_args_v2__bindgen_ty_2 { +pub name: [crate::ctypes::c_char; 4040usize], +pub devid: __u64, +pub subvolid: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_dev_replace_args__bindgen_ty_1 { +pub start: btrfs_ioctl_dev_replace_start_params, +pub status: btrfs_ioctl_dev_replace_status_params, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_balance_args__bindgen_ty_1 { +pub usage: __u64, +pub __bindgen_anon_1: btrfs_balance_args__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_balance_args__bindgen_ty_2 { +pub limit: __u64, +pub __bindgen_anon_1: btrfs_balance_args__bindgen_ty_2__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_defrag_range_args__bindgen_ty_1 { +pub compress_type: __u32, +pub compress: btrfs_ioctl_defrag_range_args__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_disk_balance_args__bindgen_ty_1 { +pub usage: __le64, +pub __bindgen_anon_1: btrfs_disk_balance_args__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_disk_balance_args__bindgen_ty_2 { +pub limit: __le64, +pub __bindgen_anon_1: btrfs_disk_balance_args__bindgen_ty_2__bindgen_ty_1, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/elf_uapi.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/elf_uapi.rs new file mode 100644 index 0000000000000000000000000000000000000000..a926d64ea964fd3a05cdad617cc809cb58900ceb --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/elf_uapi.rs @@ -0,0 +1,652 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type Elf32_Addr = __u32; +pub type Elf32_Half = __u16; +pub type Elf32_Off = __u32; +pub type Elf32_Sword = __s32; +pub type Elf32_Word = __u32; +pub type Elf32_Versym = __u16; +pub type Elf64_Addr = __u64; +pub type Elf64_Half = __u16; +pub type Elf64_SHalf = __s16; +pub type Elf64_Off = __u64; +pub type Elf64_Sword = __s32; +pub type Elf64_Word = __u32; +pub type Elf64_Xword = __u64; +pub type Elf64_Sxword = __s64; +pub type Elf64_Versym = __u16; +pub type Elf32_Rel = elf32_rel; +pub type Elf64_Rel = elf64_rel; +pub type Elf32_Rela = elf32_rela; +pub type Elf64_Rela = elf64_rela; +pub type Elf32_Sym = elf32_sym; +pub type Elf64_Sym = elf64_sym; +pub type Elf32_Ehdr = elf32_hdr; +pub type Elf64_Ehdr = elf64_hdr; +pub type Elf32_Phdr = elf32_phdr; +pub type Elf64_Phdr = elf64_phdr; +pub type Elf32_Shdr = elf32_shdr; +pub type Elf64_Shdr = elf64_shdr; +pub type Elf32_Nhdr = elf32_note; +pub type Elf64_Nhdr = elf64_note; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct Elf32_Dyn { +pub d_tag: Elf32_Sword, +pub d_un: Elf32_Dyn__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct Elf64_Dyn { +pub d_tag: Elf64_Sxword, +pub d_un: Elf64_Dyn__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_rel { +pub r_offset: Elf32_Addr, +pub r_info: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_rel { +pub r_offset: Elf64_Addr, +pub r_info: Elf64_Xword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_rela { +pub r_offset: Elf32_Addr, +pub r_info: Elf32_Word, +pub r_addend: Elf32_Sword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_rela { +pub r_offset: Elf64_Addr, +pub r_info: Elf64_Xword, +pub r_addend: Elf64_Sxword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_sym { +pub st_name: Elf32_Word, +pub st_value: Elf32_Addr, +pub st_size: Elf32_Word, +pub st_info: crate::ctypes::c_uchar, +pub st_other: crate::ctypes::c_uchar, +pub st_shndx: Elf32_Half, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_sym { +pub st_name: Elf64_Word, +pub st_info: crate::ctypes::c_uchar, +pub st_other: crate::ctypes::c_uchar, +pub st_shndx: Elf64_Half, +pub st_value: Elf64_Addr, +pub st_size: Elf64_Xword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_hdr { +pub e_ident: [crate::ctypes::c_uchar; 16usize], +pub e_type: Elf32_Half, +pub e_machine: Elf32_Half, +pub e_version: Elf32_Word, +pub e_entry: Elf32_Addr, +pub e_phoff: Elf32_Off, +pub e_shoff: Elf32_Off, +pub e_flags: Elf32_Word, +pub e_ehsize: Elf32_Half, +pub e_phentsize: Elf32_Half, +pub e_phnum: Elf32_Half, +pub e_shentsize: Elf32_Half, +pub e_shnum: Elf32_Half, +pub e_shstrndx: Elf32_Half, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_hdr { +pub e_ident: [crate::ctypes::c_uchar; 16usize], +pub e_type: Elf64_Half, +pub e_machine: Elf64_Half, +pub e_version: Elf64_Word, +pub e_entry: Elf64_Addr, +pub e_phoff: Elf64_Off, +pub e_shoff: Elf64_Off, +pub e_flags: Elf64_Word, +pub e_ehsize: Elf64_Half, +pub e_phentsize: Elf64_Half, +pub e_phnum: Elf64_Half, +pub e_shentsize: Elf64_Half, +pub e_shnum: Elf64_Half, +pub e_shstrndx: Elf64_Half, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_phdr { +pub p_type: Elf32_Word, +pub p_offset: Elf32_Off, +pub p_vaddr: Elf32_Addr, +pub p_paddr: Elf32_Addr, +pub p_filesz: Elf32_Word, +pub p_memsz: Elf32_Word, +pub p_flags: Elf32_Word, +pub p_align: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_phdr { +pub p_type: Elf64_Word, +pub p_flags: Elf64_Word, +pub p_offset: Elf64_Off, +pub p_vaddr: Elf64_Addr, +pub p_paddr: Elf64_Addr, +pub p_filesz: Elf64_Xword, +pub p_memsz: Elf64_Xword, +pub p_align: Elf64_Xword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_shdr { +pub sh_name: Elf32_Word, +pub sh_type: Elf32_Word, +pub sh_flags: Elf32_Word, +pub sh_addr: Elf32_Addr, +pub sh_offset: Elf32_Off, +pub sh_size: Elf32_Word, +pub sh_link: Elf32_Word, +pub sh_info: Elf32_Word, +pub sh_addralign: Elf32_Word, +pub sh_entsize: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_shdr { +pub sh_name: Elf64_Word, +pub sh_type: Elf64_Word, +pub sh_flags: Elf64_Xword, +pub sh_addr: Elf64_Addr, +pub sh_offset: Elf64_Off, +pub sh_size: Elf64_Xword, +pub sh_link: Elf64_Word, +pub sh_info: Elf64_Word, +pub sh_addralign: Elf64_Xword, +pub sh_entsize: Elf64_Xword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_note { +pub n_namesz: Elf32_Word, +pub n_descsz: Elf32_Word, +pub n_type: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_note { +pub n_namesz: Elf64_Word, +pub n_descsz: Elf64_Word, +pub n_type: Elf64_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Elf32_Verdef { +pub vd_version: Elf32_Half, +pub vd_flags: Elf32_Half, +pub vd_ndx: Elf32_Half, +pub vd_cnt: Elf32_Half, +pub vd_hash: Elf32_Word, +pub vd_aux: Elf32_Word, +pub vd_next: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Elf64_Verdef { +pub vd_version: Elf64_Half, +pub vd_flags: Elf64_Half, +pub vd_ndx: Elf64_Half, +pub vd_cnt: Elf64_Half, +pub vd_hash: Elf64_Word, +pub vd_aux: Elf64_Word, +pub vd_next: Elf64_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Elf32_Verdaux { +pub vda_name: Elf32_Word, +pub vda_next: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Elf64_Verdaux { +pub vda_name: Elf64_Word, +pub vda_next: Elf64_Word, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const EM_NONE: u32 = 0; +pub const EM_M32: u32 = 1; +pub const EM_SPARC: u32 = 2; +pub const EM_386: u32 = 3; +pub const EM_68K: u32 = 4; +pub const EM_88K: u32 = 5; +pub const EM_486: u32 = 6; +pub const EM_860: u32 = 7; +pub const EM_MIPS: u32 = 8; +pub const EM_MIPS_RS3_LE: u32 = 10; +pub const EM_MIPS_RS4_BE: u32 = 10; +pub const EM_PARISC: u32 = 15; +pub const EM_SPARC32PLUS: u32 = 18; +pub const EM_PPC: u32 = 20; +pub const EM_PPC64: u32 = 21; +pub const EM_SPU: u32 = 23; +pub const EM_ARM: u32 = 40; +pub const EM_SH: u32 = 42; +pub const EM_SPARCV9: u32 = 43; +pub const EM_H8_300: u32 = 46; +pub const EM_IA_64: u32 = 50; +pub const EM_X86_64: u32 = 62; +pub const EM_S390: u32 = 22; +pub const EM_CRIS: u32 = 76; +pub const EM_M32R: u32 = 88; +pub const EM_MN10300: u32 = 89; +pub const EM_OPENRISC: u32 = 92; +pub const EM_ARCOMPACT: u32 = 93; +pub const EM_XTENSA: u32 = 94; +pub const EM_BLACKFIN: u32 = 106; +pub const EM_UNICORE: u32 = 110; +pub const EM_ALTERA_NIOS2: u32 = 113; +pub const EM_TI_C6000: u32 = 140; +pub const EM_HEXAGON: u32 = 164; +pub const EM_NDS32: u32 = 167; +pub const EM_AARCH64: u32 = 183; +pub const EM_TILEPRO: u32 = 188; +pub const EM_MICROBLAZE: u32 = 189; +pub const EM_TILEGX: u32 = 191; +pub const EM_ARCV2: u32 = 195; +pub const EM_RISCV: u32 = 243; +pub const EM_BPF: u32 = 247; +pub const EM_CSKY: u32 = 252; +pub const EM_LOONGARCH: u32 = 258; +pub const EM_FRV: u32 = 21569; +pub const EM_ALPHA: u32 = 36902; +pub const EM_CYGNUS_M32R: u32 = 36929; +pub const EM_S390_OLD: u32 = 41872; +pub const EM_CYGNUS_MN10300: u32 = 48879; +pub const PT_NULL: u32 = 0; +pub const PT_LOAD: u32 = 1; +pub const PT_DYNAMIC: u32 = 2; +pub const PT_INTERP: u32 = 3; +pub const PT_NOTE: u32 = 4; +pub const PT_SHLIB: u32 = 5; +pub const PT_PHDR: u32 = 6; +pub const PT_TLS: u32 = 7; +pub const PT_LOOS: u32 = 1610612736; +pub const PT_HIOS: u32 = 1879048191; +pub const PT_LOPROC: u32 = 1879048192; +pub const PT_HIPROC: u32 = 2147483647; +pub const PT_GNU_EH_FRAME: u32 = 1685382480; +pub const PT_GNU_STACK: u32 = 1685382481; +pub const PT_GNU_RELRO: u32 = 1685382482; +pub const PT_GNU_PROPERTY: u32 = 1685382483; +pub const PT_AARCH64_MEMTAG_MTE: u32 = 1879048194; +pub const PN_XNUM: u32 = 65535; +pub const ET_NONE: u32 = 0; +pub const ET_REL: u32 = 1; +pub const ET_EXEC: u32 = 2; +pub const ET_DYN: u32 = 3; +pub const ET_CORE: u32 = 4; +pub const ET_LOPROC: u32 = 65280; +pub const ET_HIPROC: u32 = 65535; +pub const DT_NULL: u32 = 0; +pub const DT_NEEDED: u32 = 1; +pub const DT_PLTRELSZ: u32 = 2; +pub const DT_PLTGOT: u32 = 3; +pub const DT_HASH: u32 = 4; +pub const DT_STRTAB: u32 = 5; +pub const DT_SYMTAB: u32 = 6; +pub const DT_RELA: u32 = 7; +pub const DT_RELASZ: u32 = 8; +pub const DT_RELAENT: u32 = 9; +pub const DT_STRSZ: u32 = 10; +pub const DT_SYMENT: u32 = 11; +pub const DT_INIT: u32 = 12; +pub const DT_FINI: u32 = 13; +pub const DT_SONAME: u32 = 14; +pub const DT_RPATH: u32 = 15; +pub const DT_SYMBOLIC: u32 = 16; +pub const DT_REL: u32 = 17; +pub const DT_RELSZ: u32 = 18; +pub const DT_RELENT: u32 = 19; +pub const DT_PLTREL: u32 = 20; +pub const DT_DEBUG: u32 = 21; +pub const DT_TEXTREL: u32 = 22; +pub const DT_JMPREL: u32 = 23; +pub const DT_ENCODING: u32 = 32; +pub const OLD_DT_LOOS: u32 = 1610612736; +pub const DT_LOOS: u32 = 1610612749; +pub const DT_HIOS: u32 = 1879044096; +pub const DT_VALRNGLO: u32 = 1879047424; +pub const DT_VALRNGHI: u32 = 1879047679; +pub const DT_ADDRRNGLO: u32 = 1879047680; +pub const DT_GNU_HASH: u32 = 1879047925; +pub const DT_ADDRRNGHI: u32 = 1879047935; +pub const DT_VERSYM: u32 = 1879048176; +pub const DT_RELACOUNT: u32 = 1879048185; +pub const DT_RELCOUNT: u32 = 1879048186; +pub const DT_FLAGS_1: u32 = 1879048187; +pub const DT_VERDEF: u32 = 1879048188; +pub const DT_VERDEFNUM: u32 = 1879048189; +pub const DT_VERNEED: u32 = 1879048190; +pub const DT_VERNEEDNUM: u32 = 1879048191; +pub const OLD_DT_HIOS: u32 = 1879048191; +pub const DT_LOPROC: u32 = 1879048192; +pub const DT_HIPROC: u32 = 2147483647; +pub const STB_LOCAL: u32 = 0; +pub const STB_GLOBAL: u32 = 1; +pub const STB_WEAK: u32 = 2; +pub const STN_UNDEF: u32 = 0; +pub const STT_NOTYPE: u32 = 0; +pub const STT_OBJECT: u32 = 1; +pub const STT_FUNC: u32 = 2; +pub const STT_SECTION: u32 = 3; +pub const STT_FILE: u32 = 4; +pub const STT_COMMON: u32 = 5; +pub const STT_TLS: u32 = 6; +pub const VER_FLG_BASE: u32 = 1; +pub const VER_FLG_WEAK: u32 = 2; +pub const EI_NIDENT: u32 = 16; +pub const PF_R: u32 = 4; +pub const PF_W: u32 = 2; +pub const PF_X: u32 = 1; +pub const SHT_NULL: u32 = 0; +pub const SHT_PROGBITS: u32 = 1; +pub const SHT_SYMTAB: u32 = 2; +pub const SHT_STRTAB: u32 = 3; +pub const SHT_RELA: u32 = 4; +pub const SHT_HASH: u32 = 5; +pub const SHT_DYNAMIC: u32 = 6; +pub const SHT_NOTE: u32 = 7; +pub const SHT_NOBITS: u32 = 8; +pub const SHT_REL: u32 = 9; +pub const SHT_SHLIB: u32 = 10; +pub const SHT_DYNSYM: u32 = 11; +pub const SHT_NUM: u32 = 12; +pub const SHT_LOPROC: u32 = 1879048192; +pub const SHT_HIPROC: u32 = 2147483647; +pub const SHT_LOUSER: u32 = 2147483648; +pub const SHT_HIUSER: u32 = 4294967295; +pub const SHF_WRITE: u32 = 1; +pub const SHF_ALLOC: u32 = 2; +pub const SHF_EXECINSTR: u32 = 4; +pub const SHF_MERGE: u32 = 16; +pub const SHF_STRINGS: u32 = 32; +pub const SHF_INFO_LINK: u32 = 64; +pub const SHF_LINK_ORDER: u32 = 128; +pub const SHF_OS_NONCONFORMING: u32 = 256; +pub const SHF_GROUP: u32 = 512; +pub const SHF_TLS: u32 = 1024; +pub const SHF_RELA_LIVEPATCH: u32 = 1048576; +pub const SHF_RO_AFTER_INIT: u32 = 2097152; +pub const SHF_ORDERED: u32 = 67108864; +pub const SHF_EXCLUDE: u32 = 134217728; +pub const SHF_MASKOS: u32 = 267386880; +pub const SHF_MASKPROC: u32 = 4026531840; +pub const SHN_UNDEF: u32 = 0; +pub const SHN_LORESERVE: u32 = 65280; +pub const SHN_LOPROC: u32 = 65280; +pub const SHN_HIPROC: u32 = 65311; +pub const SHN_LIVEPATCH: u32 = 65312; +pub const SHN_ABS: u32 = 65521; +pub const SHN_COMMON: u32 = 65522; +pub const SHN_HIRESERVE: u32 = 65535; +pub const EI_MAG0: u32 = 0; +pub const EI_MAG1: u32 = 1; +pub const EI_MAG2: u32 = 2; +pub const EI_MAG3: u32 = 3; +pub const EI_CLASS: u32 = 4; +pub const EI_DATA: u32 = 5; +pub const EI_VERSION: u32 = 6; +pub const EI_OSABI: u32 = 7; +pub const EI_PAD: u32 = 8; +pub const ELFMAG0: u32 = 127; +pub const ELFMAG1: u8 = 69u8; +pub const ELFMAG2: u8 = 76u8; +pub const ELFMAG3: u8 = 70u8; +pub const ELFMAG: &[u8; 5] = b"\x7FELF\0"; +pub const SELFMAG: u32 = 4; +pub const ELFCLASSNONE: u32 = 0; +pub const ELFCLASS32: u32 = 1; +pub const ELFCLASS64: u32 = 2; +pub const ELFCLASSNUM: u32 = 3; +pub const ELFDATANONE: u32 = 0; +pub const ELFDATA2LSB: u32 = 1; +pub const ELFDATA2MSB: u32 = 2; +pub const EV_NONE: u32 = 0; +pub const EV_CURRENT: u32 = 1; +pub const EV_NUM: u32 = 2; +pub const ELFOSABI_NONE: u32 = 0; +pub const ELFOSABI_LINUX: u32 = 3; +pub const ELF_OSABI: u32 = 0; +pub const NN_GNU_PROPERTY_TYPE_0: &[u8; 4] = b"GNU\0"; +pub const NT_GNU_PROPERTY_TYPE_0: u32 = 5; +pub const NN_PRSTATUS: &[u8; 5] = b"CORE\0"; +pub const NT_PRSTATUS: u32 = 1; +pub const NN_PRFPREG: &[u8; 5] = b"CORE\0"; +pub const NT_PRFPREG: u32 = 2; +pub const NN_PRPSINFO: &[u8; 5] = b"CORE\0"; +pub const NT_PRPSINFO: u32 = 3; +pub const NN_TASKSTRUCT: &[u8; 5] = b"CORE\0"; +pub const NT_TASKSTRUCT: u32 = 4; +pub const NN_AUXV: &[u8; 5] = b"CORE\0"; +pub const NT_AUXV: u32 = 6; +pub const NN_SIGINFO: &[u8; 5] = b"CORE\0"; +pub const NT_SIGINFO: u32 = 1397311305; +pub const NN_FILE: &[u8; 5] = b"CORE\0"; +pub const NT_FILE: u32 = 1179208773; +pub const NN_PRXFPREG: &[u8; 6] = b"LINUX\0"; +pub const NT_PRXFPREG: u32 = 1189489535; +pub const NN_PPC_VMX: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_VMX: u32 = 256; +pub const NN_PPC_SPE: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_SPE: u32 = 257; +pub const NN_PPC_VSX: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_VSX: u32 = 258; +pub const NN_PPC_TAR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TAR: u32 = 259; +pub const NN_PPC_PPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_PPR: u32 = 260; +pub const NN_PPC_DSCR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_DSCR: u32 = 261; +pub const NN_PPC_EBB: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_EBB: u32 = 262; +pub const NN_PPC_PMU: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_PMU: u32 = 263; +pub const NN_PPC_TM_CGPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CGPR: u32 = 264; +pub const NN_PPC_TM_CFPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CFPR: u32 = 265; +pub const NN_PPC_TM_CVMX: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CVMX: u32 = 266; +pub const NN_PPC_TM_CVSX: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CVSX: u32 = 267; +pub const NN_PPC_TM_SPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_SPR: u32 = 268; +pub const NN_PPC_TM_CTAR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CTAR: u32 = 269; +pub const NN_PPC_TM_CPPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CPPR: u32 = 270; +pub const NN_PPC_TM_CDSCR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CDSCR: u32 = 271; +pub const NN_PPC_PKEY: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_PKEY: u32 = 272; +pub const NN_PPC_DEXCR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_DEXCR: u32 = 273; +pub const NN_PPC_HASHKEYR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_HASHKEYR: u32 = 274; +pub const NN_386_TLS: &[u8; 6] = b"LINUX\0"; +pub const NT_386_TLS: u32 = 512; +pub const NN_386_IOPERM: &[u8; 6] = b"LINUX\0"; +pub const NT_386_IOPERM: u32 = 513; +pub const NN_X86_XSTATE: &[u8; 6] = b"LINUX\0"; +pub const NT_X86_XSTATE: u32 = 514; +pub const NN_X86_SHSTK: &[u8; 6] = b"LINUX\0"; +pub const NT_X86_SHSTK: u32 = 516; +pub const NN_X86_XSAVE_LAYOUT: &[u8; 6] = b"LINUX\0"; +pub const NT_X86_XSAVE_LAYOUT: u32 = 517; +pub const NN_S390_HIGH_GPRS: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_HIGH_GPRS: u32 = 768; +pub const NN_S390_TIMER: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_TIMER: u32 = 769; +pub const NN_S390_TODCMP: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_TODCMP: u32 = 770; +pub const NN_S390_TODPREG: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_TODPREG: u32 = 771; +pub const NN_S390_CTRS: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_CTRS: u32 = 772; +pub const NN_S390_PREFIX: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_PREFIX: u32 = 773; +pub const NN_S390_LAST_BREAK: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_LAST_BREAK: u32 = 774; +pub const NN_S390_SYSTEM_CALL: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_SYSTEM_CALL: u32 = 775; +pub const NN_S390_TDB: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_TDB: u32 = 776; +pub const NN_S390_VXRS_LOW: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_VXRS_LOW: u32 = 777; +pub const NN_S390_VXRS_HIGH: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_VXRS_HIGH: u32 = 778; +pub const NN_S390_GS_CB: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_GS_CB: u32 = 779; +pub const NN_S390_GS_BC: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_GS_BC: u32 = 780; +pub const NN_S390_RI_CB: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_RI_CB: u32 = 781; +pub const NN_S390_PV_CPU_DATA: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_PV_CPU_DATA: u32 = 782; +pub const NN_ARM_VFP: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_VFP: u32 = 1024; +pub const NN_ARM_TLS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_TLS: u32 = 1025; +pub const NN_ARM_HW_BREAK: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_HW_BREAK: u32 = 1026; +pub const NN_ARM_HW_WATCH: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_HW_WATCH: u32 = 1027; +pub const NN_ARM_SYSTEM_CALL: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_SYSTEM_CALL: u32 = 1028; +pub const NN_ARM_SVE: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_SVE: u32 = 1029; +pub const NN_ARM_PAC_MASK: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_PAC_MASK: u32 = 1030; +pub const NN_ARM_PACA_KEYS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_PACA_KEYS: u32 = 1031; +pub const NN_ARM_PACG_KEYS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_PACG_KEYS: u32 = 1032; +pub const NN_ARM_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_TAGGED_ADDR_CTRL: u32 = 1033; +pub const NN_ARM_PAC_ENABLED_KEYS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_PAC_ENABLED_KEYS: u32 = 1034; +pub const NN_ARM_SSVE: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_SSVE: u32 = 1035; +pub const NN_ARM_ZA: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_ZA: u32 = 1036; +pub const NN_ARM_ZT: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_ZT: u32 = 1037; +pub const NN_ARM_FPMR: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_FPMR: u32 = 1038; +pub const NN_ARM_POE: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_POE: u32 = 1039; +pub const NN_ARM_GCS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_GCS: u32 = 1040; +pub const NN_ARC_V2: &[u8; 6] = b"LINUX\0"; +pub const NT_ARC_V2: u32 = 1536; +pub const NN_VMCOREDD: &[u8; 6] = b"LINUX\0"; +pub const NT_VMCOREDD: u32 = 1792; +pub const NN_MIPS_DSP: &[u8; 6] = b"LINUX\0"; +pub const NT_MIPS_DSP: u32 = 2048; +pub const NN_MIPS_FP_MODE: &[u8; 6] = b"LINUX\0"; +pub const NT_MIPS_FP_MODE: u32 = 2049; +pub const NN_MIPS_MSA: &[u8; 6] = b"LINUX\0"; +pub const NT_MIPS_MSA: u32 = 2050; +pub const NN_RISCV_CSR: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_CSR: u32 = 2304; +pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_VECTOR: u32 = 2305; +pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_CPUCFG: u32 = 2560; +pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_CSR: u32 = 2561; +pub const NN_LOONGARCH_LSX: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_LSX: u32 = 2562; +pub const NN_LOONGARCH_LASX: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_LASX: u32 = 2563; +pub const NN_LOONGARCH_LBT: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_LBT: u32 = 2564; +pub const NN_LOONGARCH_HW_BREAK: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_HW_BREAK: u32 = 2565; +pub const NN_LOONGARCH_HW_WATCH: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_HW_WATCH: u32 = 2566; +pub const GNU_PROPERTY_AARCH64_FEATURE_1_AND: u32 = 3221225472; +pub const GNU_PROPERTY_AARCH64_FEATURE_1_BTI: u32 = 1; +#[repr(C)] +#[derive(Copy, Clone)] +pub union Elf32_Dyn__bindgen_ty_1 { +pub d_val: Elf32_Sword, +pub d_ptr: Elf32_Addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union Elf64_Dyn__bindgen_ty_1 { +pub d_val: Elf64_Xword, +pub d_ptr: Elf64_Addr, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/errno.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/errno.rs new file mode 100644 index 0000000000000000000000000000000000000000..48eaf61f93450ac4c0b622351a597022885ad4bb --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/errno.rs @@ -0,0 +1,135 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EDEADLK: u32 = 35; +pub const ENAMETOOLONG: u32 = 36; +pub const ENOLCK: u32 = 37; +pub const ENOSYS: u32 = 38; +pub const ENOTEMPTY: u32 = 39; +pub const ELOOP: u32 = 40; +pub const EWOULDBLOCK: u32 = 11; +pub const ENOMSG: u32 = 42; +pub const EIDRM: u32 = 43; +pub const ECHRNG: u32 = 44; +pub const EL2NSYNC: u32 = 45; +pub const EL3HLT: u32 = 46; +pub const EL3RST: u32 = 47; +pub const ELNRNG: u32 = 48; +pub const EUNATCH: u32 = 49; +pub const ENOCSI: u32 = 50; +pub const EL2HLT: u32 = 51; +pub const EBADE: u32 = 52; +pub const EBADR: u32 = 53; +pub const EXFULL: u32 = 54; +pub const ENOANO: u32 = 55; +pub const EBADRQC: u32 = 56; +pub const EBADSLT: u32 = 57; +pub const EDEADLOCK: u32 = 35; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EMULTIHOP: u32 = 72; +pub const EDOTDOT: u32 = 73; +pub const EBADMSG: u32 = 74; +pub const EOVERFLOW: u32 = 75; +pub const ENOTUNIQ: u32 = 76; +pub const EBADFD: u32 = 77; +pub const EREMCHG: u32 = 78; +pub const ELIBACC: u32 = 79; +pub const ELIBBAD: u32 = 80; +pub const ELIBSCN: u32 = 81; +pub const ELIBMAX: u32 = 82; +pub const ELIBEXEC: u32 = 83; +pub const EILSEQ: u32 = 84; +pub const ERESTART: u32 = 85; +pub const ESTRPIPE: u32 = 86; +pub const EUSERS: u32 = 87; +pub const ENOTSOCK: u32 = 88; +pub const EDESTADDRREQ: u32 = 89; +pub const EMSGSIZE: u32 = 90; +pub const EPROTOTYPE: u32 = 91; +pub const ENOPROTOOPT: u32 = 92; +pub const EPROTONOSUPPORT: u32 = 93; +pub const ESOCKTNOSUPPORT: u32 = 94; +pub const EOPNOTSUPP: u32 = 95; +pub const EPFNOSUPPORT: u32 = 96; +pub const EAFNOSUPPORT: u32 = 97; +pub const EADDRINUSE: u32 = 98; +pub const EADDRNOTAVAIL: u32 = 99; +pub const ENETDOWN: u32 = 100; +pub const ENETUNREACH: u32 = 101; +pub const ENETRESET: u32 = 102; +pub const ECONNABORTED: u32 = 103; +pub const ECONNRESET: u32 = 104; +pub const ENOBUFS: u32 = 105; +pub const EISCONN: u32 = 106; +pub const ENOTCONN: u32 = 107; +pub const ESHUTDOWN: u32 = 108; +pub const ETOOMANYREFS: u32 = 109; +pub const ETIMEDOUT: u32 = 110; +pub const ECONNREFUSED: u32 = 111; +pub const EHOSTDOWN: u32 = 112; +pub const EHOSTUNREACH: u32 = 113; +pub const EALREADY: u32 = 114; +pub const EINPROGRESS: u32 = 115; +pub const ESTALE: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EDQUOT: u32 = 122; +pub const ENOMEDIUM: u32 = 123; +pub const EMEDIUMTYPE: u32 = 124; +pub const ECANCELED: u32 = 125; +pub const ENOKEY: u32 = 126; +pub const EKEYEXPIRED: u32 = 127; +pub const EKEYREVOKED: u32 = 128; +pub const EKEYREJECTED: u32 = 129; +pub const EOWNERDEAD: u32 = 130; +pub const ENOTRECOVERABLE: u32 = 131; +pub const ERFKILL: u32 = 132; +pub const EHWPOISON: u32 = 133; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/general.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/general.rs new file mode 100644 index 0000000000000000000000000000000000000000..7be42af6673e4a733b61b7d728b01f55c0309e76 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/general.rs @@ -0,0 +1,3324 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_sighandler_t = ::core::option::Option; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type cap_user_header_t = *mut __user_cap_header_struct; +pub type cap_user_data_t = *mut __user_cap_data_struct; +pub type __kernel_rwf_t = crate::ctypes::c_int; +pub type sigset_t = crate::ctypes::c_ulong; +pub type __signalfn_t = ::core::option::Option; +pub type __sighandler_t = __signalfn_t; +pub type __restorefn_t = ::core::option::Option; +pub type __sigrestore_t = __restorefn_t; +pub type stack_t = sigaltstack; +pub type sigval_t = sigval; +pub type siginfo_t = siginfo; +pub type sigevent_t = sigevent; +pub type cc_t = crate::ctypes::c_uchar; +pub type speed_t = crate::ctypes::c_uint; +pub type tcflag_t = crate::ctypes::c_uint; +pub type __fsword_t = __u32; +#[repr(C)] +#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] +pub struct __BindgenBitfieldUnit { +storage: Storage, +} +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_fd_set { +pub fds_bits: [crate::ctypes::c_ulong; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_fsid_t { +pub val: [crate::ctypes::c_int; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __user_cap_header_struct { +pub version: __u32, +pub pid: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __user_cap_data_struct { +pub effective: __u32, +pub permitted: __u32, +pub inheritable: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vfs_cap_data { +pub magic_etc: __le32, +pub data: [vfs_cap_data__bindgen_ty_1; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vfs_cap_data__bindgen_ty_1 { +pub permitted: __le32, +pub inheritable: __le32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vfs_ns_cap_data { +pub magic_etc: __le32, +pub data: [vfs_ns_cap_data__bindgen_ty_1; 2usize], +pub rootid: __le32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vfs_ns_cap_data__bindgen_ty_1 { +pub permitted: __le32, +pub inheritable: __le32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct f_owner_ex { +pub type_: crate::ctypes::c_int, +pub pid: __kernel_pid_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct flock { +pub l_type: crate::ctypes::c_short, +pub l_whence: crate::ctypes::c_short, +pub l_start: __kernel_off_t, +pub l_len: __kernel_off_t, +pub l_pid: __kernel_pid_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct flock64 { +pub l_type: crate::ctypes::c_short, +pub l_whence: crate::ctypes::c_short, +pub l_start: __kernel_loff_t, +pub l_len: __kernel_loff_t, +pub l_pid: __kernel_pid_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct open_how { +pub flags: __u64, +pub mode: __u64, +pub resolve: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct epoll_event { +pub events: __poll_t, +pub data: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct epoll_params { +pub busy_poll_usecs: __u32, +pub busy_poll_budget: __u16, +pub prefer_busy_poll: __u8, +pub __pad: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v1 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub master_key_descriptor: [__u8; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_key { +pub mode: __u32, +pub raw: [__u8; 64usize], +pub size: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v2 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub log2_data_unit_size: __u8, +pub __reserved: [__u8; 3usize], +pub master_key_identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_policy_ex_arg { +pub policy_size: __u64, +pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_key_specifier { +pub type_: __u32, +pub __reserved: __u32, +pub u: fscrypt_key_specifier__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct fscrypt_provisioning_key_payload { +pub type_: __u32, +pub flags: __u32, +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +pub struct fscrypt_add_key_arg { +pub key_spec: fscrypt_key_specifier, +pub raw_size: __u32, +pub key_id: __u32, +pub flags: __u32, +pub __reserved: [__u32; 7usize], +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_remove_key_arg { +pub key_spec: fscrypt_key_specifier, +pub removal_status_flags: __u32, +pub __reserved: [__u32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_key_status_arg { +pub key_spec: fscrypt_key_specifier, +pub __reserved: [__u32; 6usize], +pub status: __u32, +pub status_flags: __u32, +pub user_count: __u32, +pub __out_reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mount_attr { +pub attr_set: __u64, +pub attr_clr: __u64, +pub propagation: __u64, +pub userns_fd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct statmount { +pub size: __u32, +pub mnt_opts: __u32, +pub mask: __u64, +pub sb_dev_major: __u32, +pub sb_dev_minor: __u32, +pub sb_magic: __u64, +pub sb_flags: __u32, +pub fs_type: __u32, +pub mnt_id: __u64, +pub mnt_parent_id: __u64, +pub mnt_id_old: __u32, +pub mnt_parent_id_old: __u32, +pub mnt_attr: __u64, +pub mnt_propagation: __u64, +pub mnt_peer_group: __u64, +pub mnt_master: __u64, +pub propagate_from: __u64, +pub mnt_root: __u32, +pub mnt_point: __u32, +pub mnt_ns_id: __u64, +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub supported_mask: __u64, +pub mnt_uidmap_num: __u32, +pub mnt_uidmap: __u32, +pub mnt_gidmap_num: __u32, +pub mnt_gidmap: __u32, +pub __spare2: [__u64; 43usize], +pub str_: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mnt_id_req { +pub size: __u32, +pub spare: __u32, +pub mnt_id: __u64, +pub param: __u64, +pub mnt_ns_id: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_clone_range { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fstrim_range { +pub start: __u64, +pub len: __u64, +pub minlen: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsuuid2 { +pub len: __u8, +pub uuid: [__u8; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fs_sysfs_path { +pub len: __u8, +pub name: [__u8; 128usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_dedupe_range_info { +pub dest_fd: __s64, +pub dest_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct file_dedupe_range { +pub src_offset: __u64, +pub src_length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct files_stat_struct { +pub nr_files: crate::ctypes::c_ulong, +pub nr_free_files: crate::ctypes::c_ulong, +pub max_files: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct inodes_stat_t { +pub nr_inodes: crate::ctypes::c_long, +pub nr_unused: crate::ctypes::c_long, +pub dummy: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsxattr { +pub fsx_xflags: __u32, +pub fsx_extsize: __u32, +pub fsx_nextents: __u32, +pub fsx_projid: __u32, +pub fsx_cowextsize: __u32, +pub fsx_pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct page_region { +pub start: __u64, +pub end: __u64, +pub categories: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pm_scan_arg { +pub size: __u64, +pub flags: __u64, +pub start: __u64, +pub end: __u64, +pub walk_end: __u64, +pub vec: __u64, +pub vec_len: __u64, +pub max_pages: __u64, +pub category_inverted: __u64, +pub category_mask: __u64, +pub category_anyof_mask: __u64, +pub return_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct procmap_query { +pub size: __u64, +pub query_flags: __u64, +pub query_addr: __u64, +pub vma_start: __u64, +pub vma_end: __u64, +pub vma_flags: __u64, +pub vma_page_size: __u64, +pub vma_offset: __u64, +pub inode: __u64, +pub dev_major: __u32, +pub dev_minor: __u32, +pub vma_name_size: __u32, +pub build_id_size: __u32, +pub vma_name_addr: __u64, +pub build_id_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct futex_waitv { +pub val: __u64, +pub uaddr: __u64, +pub flags: __u32, +pub __reserved: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct robust_list { +pub next: *mut robust_list, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct robust_list_head { +pub list: robust_list, +pub futex_offset: crate::ctypes::c_long, +pub list_op_pending: *mut robust_list, +} +#[repr(C)] +#[derive(Debug)] +pub struct inotify_event { +pub wd: __s32, +pub mask: __u32, +pub cookie: __u32, +pub len: __u32, +pub name: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cachestat_range { +pub off: __u64, +pub len: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cachestat { +pub nr_cache: __u64, +pub nr_dirty: __u64, +pub nr_writeback: __u64, +pub nr_evicted: __u64, +pub nr_recently_evicted: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pollfd { +pub fd: crate::ctypes::c_int, +pub events: crate::ctypes::c_short, +pub revents: crate::ctypes::c_short, +} +#[repr(C)] +#[derive(Debug)] +pub struct rand_pool_info { +pub entropy_count: crate::ctypes::c_int, +pub buf_size: crate::ctypes::c_int, +pub buf: __IncompleteArrayField<__u32>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vgetrandom_opaque_params { +pub size_of_opaque_state: __u32, +pub mmap_prot: __u32, +pub mmap_flags: __u32, +pub reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_timespec { +pub tv_sec: __kernel_time64_t, +pub tv_nsec: crate::ctypes::c_longlong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_itimerspec { +pub it_interval: __kernel_timespec, +pub it_value: __kernel_timespec, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_long_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timespec { +pub tv_sec: __kernel_old_time_t, +pub tv_nsec: crate::ctypes::c_long, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_itimerval { +pub it_interval: __kernel_old_timeval, +pub it_value: __kernel_old_timeval, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sock_timeval { +pub tv_sec: __s64, +pub tv_usec: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rusage { +pub ru_utime: __kernel_old_timeval, +pub ru_stime: __kernel_old_timeval, +pub ru_maxrss: __kernel_long_t, +pub ru_ixrss: __kernel_long_t, +pub ru_idrss: __kernel_long_t, +pub ru_isrss: __kernel_long_t, +pub ru_minflt: __kernel_long_t, +pub ru_majflt: __kernel_long_t, +pub ru_nswap: __kernel_long_t, +pub ru_inblock: __kernel_long_t, +pub ru_oublock: __kernel_long_t, +pub ru_msgsnd: __kernel_long_t, +pub ru_msgrcv: __kernel_long_t, +pub ru_nsignals: __kernel_long_t, +pub ru_nvcsw: __kernel_long_t, +pub ru_nivcsw: __kernel_long_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rlimit { +pub rlim_cur: __kernel_ulong_t, +pub rlim_max: __kernel_ulong_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rlimit64 { +pub rlim_cur: __u64, +pub rlim_max: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct clone_args { +pub flags: __u64, +pub pidfd: __u64, +pub child_tid: __u64, +pub parent_tid: __u64, +pub exit_signal: __u64, +pub stack: __u64, +pub stack_size: __u64, +pub tls: __u64, +pub set_tid: __u64, +pub set_tid_size: __u64, +pub cgroup: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sigaction { +pub _u: sigaction__bindgen_ty_1, +pub sa_mask: sigset_t, +pub sa_flags: crate::ctypes::c_ulong, +pub sa_restorer: ::core::option::Option, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigaltstack { +pub ss_sp: *mut crate::ctypes::c_void, +pub ss_flags: crate::ctypes::c_int, +pub ss_size: __kernel_size_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_1 { +pub _pid: __kernel_pid_t, +pub _uid: __kernel_uid32_t, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __sifields__bindgen_ty_2 { +pub _tid: __kernel_timer_t, +pub _overrun: crate::ctypes::c_int, +pub _sigval: sigval_t, +pub _sys_private: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __sifields__bindgen_ty_3 { +pub _pid: __kernel_pid_t, +pub _uid: __kernel_uid32_t, +pub _sigval: sigval_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_4 { +pub _pid: __kernel_pid_t, +pub _uid: __kernel_uid32_t, +pub _status: crate::ctypes::c_int, +pub _utime: __kernel_clock_t, +pub _stime: __kernel_clock_t, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __sifields__bindgen_ty_5 { +pub _addr: *mut crate::ctypes::c_void, +pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { +pub _dummy_bnd: [crate::ctypes::c_char; 4usize], +pub _lower: *mut crate::ctypes::c_void, +pub _upper: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { +pub _dummy_pkey: [crate::ctypes::c_char; 4usize], +pub _pkey: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { +pub _data: crate::ctypes::c_ulong, +pub _type: __u32, +pub _flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_6 { +pub _band: crate::ctypes::c_long, +pub _fd: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_7 { +pub _call_addr: *mut crate::ctypes::c_void, +pub _syscall: crate::ctypes::c_int, +pub _arch: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct siginfo { +pub __bindgen_anon_1: siginfo__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { +pub si_signo: crate::ctypes::c_int, +pub si_errno: crate::ctypes::c_int, +pub si_code: crate::ctypes::c_int, +pub _sifields: __sifields, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sigevent { +pub sigev_value: sigval_t, +pub sigev_signo: crate::ctypes::c_int, +pub sigev_notify: crate::ctypes::c_int, +pub _sigev_un: sigevent__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { +pub _function: ::core::option::Option, +pub _attribute: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statx_timestamp { +pub tv_sec: __s64, +pub tv_nsec: __u32, +pub __reserved: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statx { +pub stx_mask: __u32, +pub stx_blksize: __u32, +pub stx_attributes: __u64, +pub stx_nlink: __u32, +pub stx_uid: __u32, +pub stx_gid: __u32, +pub stx_mode: __u16, +pub __spare0: [__u16; 1usize], +pub stx_ino: __u64, +pub stx_size: __u64, +pub stx_blocks: __u64, +pub stx_attributes_mask: __u64, +pub stx_atime: statx_timestamp, +pub stx_btime: statx_timestamp, +pub stx_ctime: statx_timestamp, +pub stx_mtime: statx_timestamp, +pub stx_rdev_major: __u32, +pub stx_rdev_minor: __u32, +pub stx_dev_major: __u32, +pub stx_dev_minor: __u32, +pub stx_mnt_id: __u64, +pub stx_dio_mem_align: __u32, +pub stx_dio_offset_align: __u32, +pub stx_subvol: __u64, +pub stx_atomic_write_unit_min: __u32, +pub stx_atomic_write_unit_max: __u32, +pub stx_atomic_write_segments_max: __u32, +pub stx_dio_read_offset_align: __u32, +pub stx_atomic_write_unit_max_opt: __u32, +pub __spare2: [__u32; 1usize], +pub __spare3: [__u64; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct termios { +pub c_iflag: tcflag_t, +pub c_oflag: tcflag_t, +pub c_cflag: tcflag_t, +pub c_lflag: tcflag_t, +pub c_line: cc_t, +pub c_cc: [cc_t; 19usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct termios2 { +pub c_iflag: tcflag_t, +pub c_oflag: tcflag_t, +pub c_cflag: tcflag_t, +pub c_lflag: tcflag_t, +pub c_line: cc_t, +pub c_cc: [cc_t; 19usize], +pub c_ispeed: speed_t, +pub c_ospeed: speed_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ktermios { +pub c_iflag: tcflag_t, +pub c_oflag: tcflag_t, +pub c_cflag: tcflag_t, +pub c_lflag: tcflag_t, +pub c_line: cc_t, +pub c_cc: [cc_t; 19usize], +pub c_ispeed: speed_t, +pub c_ospeed: speed_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct winsize { +pub ws_row: crate::ctypes::c_ushort, +pub ws_col: crate::ctypes::c_ushort, +pub ws_xpixel: crate::ctypes::c_ushort, +pub ws_ypixel: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct termio { +pub c_iflag: crate::ctypes::c_ushort, +pub c_oflag: crate::ctypes::c_ushort, +pub c_cflag: crate::ctypes::c_ushort, +pub c_lflag: crate::ctypes::c_ushort, +pub c_line: crate::ctypes::c_uchar, +pub c_cc: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timespec { +pub tv_sec: __kernel_old_time_t, +pub tv_nsec: crate::ctypes::c_long, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timeval { +pub tv_sec: __kernel_old_time_t, +pub tv_usec: __kernel_suseconds_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct itimerspec { +pub it_interval: timespec, +pub it_value: timespec, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct itimerval { +pub it_interval: timeval, +pub it_value: timeval, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timezone { +pub tz_minuteswest: crate::ctypes::c_int, +pub tz_dsttime: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iovec { +pub iov_base: *mut crate::ctypes::c_void, +pub iov_len: __kernel_size_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dmabuf_cmsg { +pub frag_offset: __u64, +pub frag_size: __u32, +pub frag_token: __u32, +pub dmabuf_id: __u32, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dmabuf_token { +pub token_start: __u32, +pub token_count: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xattr_args { +pub value: __u64, +pub size: __u32, +pub flags: __u32, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct uffd_msg { +pub event: __u8, +pub reserved1: __u8, +pub reserved2: __u16, +pub reserved3: __u32, +pub arg: uffd_msg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { +pub flags: __u64, +pub address: __u64, +pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { +pub ufd: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { +pub from: __u64, +pub to: __u64, +pub len: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { +pub start: __u64, +pub end: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { +pub reserved1: __u64, +pub reserved2: __u64, +pub reserved3: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_api { +pub api: __u64, +pub features: __u64, +pub ioctls: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_range { +pub start: __u64, +pub len: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_register { +pub range: uffdio_range, +pub mode: __u64, +pub ioctls: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_copy { +pub dst: __u64, +pub src: __u64, +pub len: __u64, +pub mode: __u64, +pub copy: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_zeropage { +pub range: uffdio_range, +pub mode: __u64, +pub zeropage: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_writeprotect { +pub range: uffdio_range, +pub mode: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_continue { +pub range: uffdio_range, +pub mode: __u64, +pub mapped: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_poison { +pub range: uffdio_range, +pub mode: __u64, +pub updated: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_move { +pub dst: __u64, +pub src: __u64, +pub len: __u64, +pub mode: __u64, +pub move_: __s64, +} +#[repr(C)] +#[derive(Debug)] +pub struct linux_dirent64 { +pub d_ino: crate::ctypes::c_ulonglong, +pub d_off: crate::ctypes::c_longlong, +pub d_reclen: __u16, +pub d_type: __u8, +pub d_name: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __old_kernel_stat { +pub st_dev: crate::ctypes::c_ushort, +pub st_ino: crate::ctypes::c_ushort, +pub st_mode: crate::ctypes::c_ushort, +pub st_nlink: crate::ctypes::c_ushort, +pub st_uid: crate::ctypes::c_ushort, +pub st_gid: crate::ctypes::c_ushort, +pub st_rdev: crate::ctypes::c_ushort, +pub st_size: crate::ctypes::c_ulong, +pub st_atime: crate::ctypes::c_ulong, +pub st_mtime: crate::ctypes::c_ulong, +pub st_ctime: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stat { +pub st_dev: crate::ctypes::c_ulong, +pub st_ino: crate::ctypes::c_ulong, +pub st_mode: crate::ctypes::c_ushort, +pub st_nlink: crate::ctypes::c_ushort, +pub st_uid: crate::ctypes::c_ushort, +pub st_gid: crate::ctypes::c_ushort, +pub st_rdev: crate::ctypes::c_ulong, +pub st_size: crate::ctypes::c_ulong, +pub st_blksize: crate::ctypes::c_ulong, +pub st_blocks: crate::ctypes::c_ulong, +pub st_atime: crate::ctypes::c_ulong, +pub st_atime_nsec: crate::ctypes::c_ulong, +pub st_mtime: crate::ctypes::c_ulong, +pub st_mtime_nsec: crate::ctypes::c_ulong, +pub st_ctime: crate::ctypes::c_ulong, +pub st_ctime_nsec: crate::ctypes::c_ulong, +pub __unused4: crate::ctypes::c_ulong, +pub __unused5: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stat64 { +pub st_dev: crate::ctypes::c_ulonglong, +pub __pad0: [crate::ctypes::c_uchar; 4usize], +pub __st_ino: crate::ctypes::c_ulong, +pub st_mode: crate::ctypes::c_uint, +pub st_nlink: crate::ctypes::c_uint, +pub st_uid: crate::ctypes::c_ulong, +pub st_gid: crate::ctypes::c_ulong, +pub st_rdev: crate::ctypes::c_ulonglong, +pub __pad3: [crate::ctypes::c_uchar; 4usize], +pub st_size: crate::ctypes::c_longlong, +pub st_blksize: crate::ctypes::c_ulong, +pub st_blocks: crate::ctypes::c_ulonglong, +pub st_atime: crate::ctypes::c_ulong, +pub st_atime_nsec: crate::ctypes::c_ulong, +pub st_mtime: crate::ctypes::c_ulong, +pub st_mtime_nsec: crate::ctypes::c_ulong, +pub st_ctime: crate::ctypes::c_ulong, +pub st_ctime_nsec: crate::ctypes::c_ulong, +pub st_ino: crate::ctypes::c_ulonglong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statfs { +pub f_type: __u32, +pub f_bsize: __u32, +pub f_blocks: __u32, +pub f_bfree: __u32, +pub f_bavail: __u32, +pub f_files: __u32, +pub f_ffree: __u32, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: __u32, +pub f_frsize: __u32, +pub f_flags: __u32, +pub f_spare: [__u32; 4usize], +} +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct statfs64 { +pub f_type: __u32, +pub f_bsize: __u32, +pub f_blocks: __u64, +pub f_bfree: __u64, +pub f_bavail: __u64, +pub f_files: __u64, +pub f_ffree: __u64, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: __u32, +pub f_frsize: __u32, +pub f_flags: __u32, +pub f_spare: [__u32; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct compat_statfs64 { +pub f_type: __u32, +pub f_bsize: __u32, +pub f_blocks: __u64, +pub f_bfree: __u64, +pub f_bavail: __u64, +pub f_files: __u64, +pub f_ffree: __u64, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: __u32, +pub f_frsize: __u32, +pub f_flags: __u32, +pub f_spare: [__u32; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_desc { +pub entry_number: crate::ctypes::c_uint, +pub base_addr: crate::ctypes::c_uint, +pub limit: crate::ctypes::c_uint, +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, +pub __bindgen_padding_0: [u8; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct kernel_sigset_t { +pub sig: [crate::ctypes::c_ulong; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct kernel_sigaction { +pub sa_handler_kernel: __kernel_sighandler_t, +pub sa_flags: crate::ctypes::c_ulong, +pub sa_restorer: __sigrestore_t, +pub sa_mask: kernel_sigset_t, +} +pub const LINUX_VERSION_CODE: u32 = 397312; +pub const LINUX_VERSION_MAJOR: u32 = 6; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 16; +pub const LINUX_VERSION_SUBLEVEL: u32 = 0; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const __FD_SETSIZE: u32 = 1024; +pub const _LINUX_CAPABILITY_VERSION_1: u32 = 429392688; +pub const _LINUX_CAPABILITY_U32S_1: u32 = 1; +pub const _LINUX_CAPABILITY_VERSION_2: u32 = 537333798; +pub const _LINUX_CAPABILITY_U32S_2: u32 = 2; +pub const _LINUX_CAPABILITY_VERSION_3: u32 = 537396514; +pub const _LINUX_CAPABILITY_U32S_3: u32 = 2; +pub const VFS_CAP_REVISION_MASK: u32 = 4278190080; +pub const VFS_CAP_REVISION_SHIFT: u32 = 24; +pub const VFS_CAP_FLAGS_MASK: i64 = -4278190081; +pub const VFS_CAP_FLAGS_EFFECTIVE: u32 = 1; +pub const VFS_CAP_REVISION_1: u32 = 16777216; +pub const VFS_CAP_U32_1: u32 = 1; +pub const VFS_CAP_REVISION_2: u32 = 33554432; +pub const VFS_CAP_U32_2: u32 = 2; +pub const VFS_CAP_REVISION_3: u32 = 50331648; +pub const VFS_CAP_U32_3: u32 = 2; +pub const VFS_CAP_U32: u32 = 2; +pub const VFS_CAP_REVISION: u32 = 50331648; +pub const _LINUX_CAPABILITY_VERSION: u32 = 429392688; +pub const _LINUX_CAPABILITY_U32S: u32 = 1; +pub const CAP_CHOWN: u32 = 0; +pub const CAP_DAC_OVERRIDE: u32 = 1; +pub const CAP_DAC_READ_SEARCH: u32 = 2; +pub const CAP_FOWNER: u32 = 3; +pub const CAP_FSETID: u32 = 4; +pub const CAP_KILL: u32 = 5; +pub const CAP_SETGID: u32 = 6; +pub const CAP_SETUID: u32 = 7; +pub const CAP_SETPCAP: u32 = 8; +pub const CAP_LINUX_IMMUTABLE: u32 = 9; +pub const CAP_NET_BIND_SERVICE: u32 = 10; +pub const CAP_NET_BROADCAST: u32 = 11; +pub const CAP_NET_ADMIN: u32 = 12; +pub const CAP_NET_RAW: u32 = 13; +pub const CAP_IPC_LOCK: u32 = 14; +pub const CAP_IPC_OWNER: u32 = 15; +pub const CAP_SYS_MODULE: u32 = 16; +pub const CAP_SYS_RAWIO: u32 = 17; +pub const CAP_SYS_CHROOT: u32 = 18; +pub const CAP_SYS_PTRACE: u32 = 19; +pub const CAP_SYS_PACCT: u32 = 20; +pub const CAP_SYS_ADMIN: u32 = 21; +pub const CAP_SYS_BOOT: u32 = 22; +pub const CAP_SYS_NICE: u32 = 23; +pub const CAP_SYS_RESOURCE: u32 = 24; +pub const CAP_SYS_TIME: u32 = 25; +pub const CAP_SYS_TTY_CONFIG: u32 = 26; +pub const CAP_MKNOD: u32 = 27; +pub const CAP_LEASE: u32 = 28; +pub const CAP_AUDIT_WRITE: u32 = 29; +pub const CAP_AUDIT_CONTROL: u32 = 30; +pub const CAP_SETFCAP: u32 = 31; +pub const CAP_MAC_OVERRIDE: u32 = 32; +pub const CAP_MAC_ADMIN: u32 = 33; +pub const CAP_SYSLOG: u32 = 34; +pub const CAP_WAKE_ALARM: u32 = 35; +pub const CAP_BLOCK_SUSPEND: u32 = 36; +pub const CAP_AUDIT_READ: u32 = 37; +pub const CAP_PERFMON: u32 = 38; +pub const CAP_BPF: u32 = 39; +pub const CAP_CHECKPOINT_RESTORE: u32 = 40; +pub const CAP_LAST_CAP: u32 = 40; +pub const O_DIRECTORY: u32 = 16384; +pub const O_NOFOLLOW: u32 = 32768; +pub const O_DIRECT: u32 = 65536; +pub const O_LARGEFILE: u32 = 131072; +pub const O_ACCMODE: u32 = 3; +pub const O_RDONLY: u32 = 0; +pub const O_WRONLY: u32 = 1; +pub const O_RDWR: u32 = 2; +pub const O_CREAT: u32 = 64; +pub const O_EXCL: u32 = 128; +pub const O_NOCTTY: u32 = 256; +pub const O_TRUNC: u32 = 512; +pub const O_APPEND: u32 = 1024; +pub const O_NONBLOCK: u32 = 2048; +pub const O_DSYNC: u32 = 4096; +pub const FASYNC: u32 = 8192; +pub const O_NOATIME: u32 = 262144; +pub const O_CLOEXEC: u32 = 524288; +pub const __O_SYNC: u32 = 1048576; +pub const O_SYNC: u32 = 1052672; +pub const O_PATH: u32 = 2097152; +pub const __O_TMPFILE: u32 = 4194304; +pub const O_TMPFILE: u32 = 4210688; +pub const O_NDELAY: u32 = 2048; +pub const F_DUPFD: u32 = 0; +pub const F_GETFD: u32 = 1; +pub const F_SETFD: u32 = 2; +pub const F_GETFL: u32 = 3; +pub const F_SETFL: u32 = 4; +pub const F_GETLK: u32 = 5; +pub const F_SETLK: u32 = 6; +pub const F_SETLKW: u32 = 7; +pub const F_SETOWN: u32 = 8; +pub const F_GETOWN: u32 = 9; +pub const F_SETSIG: u32 = 10; +pub const F_GETSIG: u32 = 11; +pub const F_GETLK64: u32 = 12; +pub const F_SETLK64: u32 = 13; +pub const F_SETLKW64: u32 = 14; +pub const F_SETOWN_EX: u32 = 15; +pub const F_GETOWN_EX: u32 = 16; +pub const F_GETOWNER_UIDS: u32 = 17; +pub const F_OFD_GETLK: u32 = 36; +pub const F_OFD_SETLK: u32 = 37; +pub const F_OFD_SETLKW: u32 = 38; +pub const F_OWNER_TID: u32 = 0; +pub const F_OWNER_PID: u32 = 1; +pub const F_OWNER_PGRP: u32 = 2; +pub const FD_CLOEXEC: u32 = 1; +pub const F_RDLCK: u32 = 0; +pub const F_WRLCK: u32 = 1; +pub const F_UNLCK: u32 = 2; +pub const F_EXLCK: u32 = 4; +pub const F_SHLCK: u32 = 8; +pub const LOCK_SH: u32 = 1; +pub const LOCK_EX: u32 = 2; +pub const LOCK_NB: u32 = 4; +pub const LOCK_UN: u32 = 8; +pub const LOCK_MAND: u32 = 32; +pub const LOCK_READ: u32 = 64; +pub const LOCK_WRITE: u32 = 128; +pub const LOCK_RW: u32 = 192; +pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; +pub const RESOLVE_NO_XDEV: u32 = 1; +pub const RESOLVE_NO_MAGICLINKS: u32 = 2; +pub const RESOLVE_NO_SYMLINKS: u32 = 4; +pub const RESOLVE_BENEATH: u32 = 8; +pub const RESOLVE_IN_ROOT: u32 = 16; +pub const RESOLVE_CACHED: u32 = 32; +pub const F_SETLEASE: u32 = 1024; +pub const F_GETLEASE: u32 = 1025; +pub const F_NOTIFY: u32 = 1026; +pub const F_DUPFD_QUERY: u32 = 1027; +pub const F_CREATED_QUERY: u32 = 1028; +pub const F_CANCELLK: u32 = 1029; +pub const F_DUPFD_CLOEXEC: u32 = 1030; +pub const F_SETPIPE_SZ: u32 = 1031; +pub const F_GETPIPE_SZ: u32 = 1032; +pub const F_ADD_SEALS: u32 = 1033; +pub const F_GET_SEALS: u32 = 1034; +pub const F_SEAL_SEAL: u32 = 1; +pub const F_SEAL_SHRINK: u32 = 2; +pub const F_SEAL_GROW: u32 = 4; +pub const F_SEAL_WRITE: u32 = 8; +pub const F_SEAL_FUTURE_WRITE: u32 = 16; +pub const F_SEAL_EXEC: u32 = 32; +pub const F_GET_RW_HINT: u32 = 1035; +pub const F_SET_RW_HINT: u32 = 1036; +pub const F_GET_FILE_RW_HINT: u32 = 1037; +pub const F_SET_FILE_RW_HINT: u32 = 1038; +pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; +pub const RWH_WRITE_LIFE_NONE: u32 = 1; +pub const RWH_WRITE_LIFE_SHORT: u32 = 2; +pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; +pub const RWH_WRITE_LIFE_LONG: u32 = 4; +pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; +pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const DN_ACCESS: u32 = 1; +pub const DN_MODIFY: u32 = 2; +pub const DN_CREATE: u32 = 4; +pub const DN_DELETE: u32 = 8; +pub const DN_RENAME: u32 = 16; +pub const DN_ATTRIB: u32 = 32; +pub const DN_MULTISHOT: u32 = 2147483648; +pub const AT_FDCWD: i32 = -100; +pub const AT_SYMLINK_NOFOLLOW: u32 = 256; +pub const AT_SYMLINK_FOLLOW: u32 = 1024; +pub const AT_NO_AUTOMOUNT: u32 = 2048; +pub const AT_EMPTY_PATH: u32 = 4096; +pub const AT_STATX_SYNC_TYPE: u32 = 24576; +pub const AT_STATX_SYNC_AS_STAT: u32 = 0; +pub const AT_STATX_FORCE_SYNC: u32 = 8192; +pub const AT_STATX_DONT_SYNC: u32 = 16384; +pub const AT_RECURSIVE: u32 = 32768; +pub const AT_RENAME_NOREPLACE: u32 = 1; +pub const AT_RENAME_EXCHANGE: u32 = 2; +pub const AT_RENAME_WHITEOUT: u32 = 4; +pub const AT_EACCESS: u32 = 512; +pub const AT_REMOVEDIR: u32 = 512; +pub const AT_HANDLE_FID: u32 = 512; +pub const AT_HANDLE_MNT_ID_UNIQUE: u32 = 1; +pub const AT_HANDLE_CONNECTABLE: u32 = 2; +pub const AT_EXECVE_CHECK: u32 = 65536; +pub const EPOLL_CLOEXEC: u32 = 524288; +pub const EPOLL_CTL_ADD: u32 = 1; +pub const EPOLL_CTL_DEL: u32 = 2; +pub const EPOLL_CTL_MOD: u32 = 3; +pub const EPOLL_IOC_TYPE: u32 = 138; +pub const POSIX_FADV_NORMAL: u32 = 0; +pub const POSIX_FADV_RANDOM: u32 = 1; +pub const POSIX_FADV_SEQUENTIAL: u32 = 2; +pub const POSIX_FADV_WILLNEED: u32 = 3; +pub const POSIX_FADV_DONTNEED: u32 = 4; +pub const POSIX_FADV_NOREUSE: u32 = 5; +pub const FALLOC_FL_ALLOCATE_RANGE: u32 = 0; +pub const FALLOC_FL_KEEP_SIZE: u32 = 1; +pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; +pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; +pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; +pub const FALLOC_FL_ZERO_RANGE: u32 = 16; +pub const FALLOC_FL_INSERT_RANGE: u32 = 32; +pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; +pub const NR_OPEN: u32 = 1024; +pub const NGROUPS_MAX: u32 = 65536; +pub const ARG_MAX: u32 = 131072; +pub const LINK_MAX: u32 = 127; +pub const MAX_CANON: u32 = 255; +pub const MAX_INPUT: u32 = 255; +pub const NAME_MAX: u32 = 255; +pub const PATH_MAX: u32 = 4096; +pub const PIPE_BUF: u32 = 4096; +pub const XATTR_NAME_MAX: u32 = 255; +pub const XATTR_SIZE_MAX: u32 = 65536; +pub const XATTR_LIST_MAX: u32 = 65536; +pub const RTSIG_MAX: u32 = 32; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_SIZEBITS: u32 = 14; +pub const _IOC_DIRBITS: u32 = 2; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 16383; +pub const _IOC_DIRMASK: u32 = 3; +pub const _IOC_NRSHIFT: u32 = 0; +pub const _IOC_TYPESHIFT: u32 = 8; +pub const _IOC_SIZESHIFT: u32 = 16; +pub const _IOC_DIRSHIFT: u32 = 30; +pub const _IOC_NONE: u32 = 0; +pub const _IOC_WRITE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const IOC_IN: u32 = 1073741824; +pub const IOC_OUT: u32 = 2147483648; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 1073676288; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; +pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; +pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; +pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; +pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; +pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; +pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; +pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; +pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; +pub const FSCRYPT_POLICY_V1: u32 = 0; +pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; +pub const FSCRYPT_POLICY_V2: u32 = 2; +pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; +pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; +pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; +pub const FSCRYPT_ADD_KEY_FLAG_HW_WRAPPED: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; +pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; +pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; +pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; +pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; +pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FS_POLICY_FLAGS_VALID: u32 = 7; +pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; +pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; +pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; +pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; +pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; +pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; +pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; +pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; +pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FS_MAX_KEY_SIZE: u32 = 64; +pub const MS_RDONLY: u32 = 1; +pub const MS_NOSUID: u32 = 2; +pub const MS_NODEV: u32 = 4; +pub const MS_NOEXEC: u32 = 8; +pub const MS_SYNCHRONOUS: u32 = 16; +pub const MS_REMOUNT: u32 = 32; +pub const MS_MANDLOCK: u32 = 64; +pub const MS_DIRSYNC: u32 = 128; +pub const MS_NOSYMFOLLOW: u32 = 256; +pub const MS_NOATIME: u32 = 1024; +pub const MS_NODIRATIME: u32 = 2048; +pub const MS_BIND: u32 = 4096; +pub const MS_MOVE: u32 = 8192; +pub const MS_REC: u32 = 16384; +pub const MS_VERBOSE: u32 = 32768; +pub const MS_SILENT: u32 = 32768; +pub const MS_POSIXACL: u32 = 65536; +pub const MS_UNBINDABLE: u32 = 131072; +pub const MS_PRIVATE: u32 = 262144; +pub const MS_SLAVE: u32 = 524288; +pub const MS_SHARED: u32 = 1048576; +pub const MS_RELATIME: u32 = 2097152; +pub const MS_KERNMOUNT: u32 = 4194304; +pub const MS_I_VERSION: u32 = 8388608; +pub const MS_STRICTATIME: u32 = 16777216; +pub const MS_LAZYTIME: u32 = 33554432; +pub const MS_SUBMOUNT: u32 = 67108864; +pub const MS_NOREMOTELOCK: u32 = 134217728; +pub const MS_NOSEC: u32 = 268435456; +pub const MS_BORN: u32 = 536870912; +pub const MS_ACTIVE: u32 = 1073741824; +pub const MS_NOUSER: u32 = 2147483648; +pub const MS_RMT_MASK: u32 = 41943121; +pub const MS_MGC_VAL: u32 = 3236757504; +pub const MS_MGC_MSK: u32 = 4294901760; +pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_CLOEXEC: u32 = 524288; +pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; +pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; +pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; +pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; +pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; +pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; +pub const MOVE_MOUNT_SET_GROUP: u32 = 256; +pub const MOVE_MOUNT_BENEATH: u32 = 512; +pub const MOVE_MOUNT__MASK: u32 = 887; +pub const FSOPEN_CLOEXEC: u32 = 1; +pub const FSPICK_CLOEXEC: u32 = 1; +pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; +pub const FSPICK_NO_AUTOMOUNT: u32 = 4; +pub const FSPICK_EMPTY_PATH: u32 = 8; +pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const MOUNT_ATTR_RDONLY: u32 = 1; +pub const MOUNT_ATTR_NOSUID: u32 = 2; +pub const MOUNT_ATTR_NODEV: u32 = 4; +pub const MOUNT_ATTR_NOEXEC: u32 = 8; +pub const MOUNT_ATTR__ATIME: u32 = 112; +pub const MOUNT_ATTR_RELATIME: u32 = 0; +pub const MOUNT_ATTR_NOATIME: u32 = 16; +pub const MOUNT_ATTR_STRICTATIME: u32 = 32; +pub const MOUNT_ATTR_NODIRATIME: u32 = 128; +pub const MOUNT_ATTR_IDMAP: u32 = 1048576; +pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; +pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; +pub const MNT_ID_REQ_SIZE_VER0: u32 = 24; +pub const MNT_ID_REQ_SIZE_VER1: u32 = 32; +pub const STATMOUNT_SB_BASIC: u32 = 1; +pub const STATMOUNT_MNT_BASIC: u32 = 2; +pub const STATMOUNT_PROPAGATE_FROM: u32 = 4; +pub const STATMOUNT_MNT_ROOT: u32 = 8; +pub const STATMOUNT_MNT_POINT: u32 = 16; +pub const STATMOUNT_FS_TYPE: u32 = 32; +pub const STATMOUNT_MNT_NS_ID: u32 = 64; +pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; +pub const STATMOUNT_SUPPORTED_MASK: u32 = 4096; +pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; +pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; +pub const LSMT_ROOT: i32 = -1; +pub const LISTMOUNT_REVERSE: u32 = 1; +pub const INR_OPEN_CUR: u32 = 1024; +pub const INR_OPEN_MAX: u32 = 4096; +pub const BLOCK_SIZE_BITS: u32 = 10; +pub const BLOCK_SIZE: u32 = 1024; +pub const IO_INTEGRITY_CHK_GUARD: u32 = 1; +pub const IO_INTEGRITY_CHK_REFTAG: u32 = 2; +pub const IO_INTEGRITY_CHK_APPTAG: u32 = 4; +pub const IO_INTEGRITY_VALID_FLAGS: u32 = 7; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const SEEK_DATA: u32 = 3; +pub const SEEK_HOLE: u32 = 4; +pub const SEEK_MAX: u32 = 4; +pub const RENAME_NOREPLACE: u32 = 1; +pub const RENAME_EXCHANGE: u32 = 2; +pub const RENAME_WHITEOUT: u32 = 4; +pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; +pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; +pub const NR_FILE: u32 = 8192; +pub const FS_XFLAG_REALTIME: u32 = 1; +pub const FS_XFLAG_PREALLOC: u32 = 2; +pub const FS_XFLAG_IMMUTABLE: u32 = 8; +pub const FS_XFLAG_APPEND: u32 = 16; +pub const FS_XFLAG_SYNC: u32 = 32; +pub const FS_XFLAG_NOATIME: u32 = 64; +pub const FS_XFLAG_NODUMP: u32 = 128; +pub const FS_XFLAG_RTINHERIT: u32 = 256; +pub const FS_XFLAG_PROJINHERIT: u32 = 512; +pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; +pub const FS_XFLAG_EXTSIZE: u32 = 2048; +pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; +pub const FS_XFLAG_NODEFRAG: u32 = 8192; +pub const FS_XFLAG_FILESTREAM: u32 = 16384; +pub const FS_XFLAG_DAX: u32 = 32768; +pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_HASATTR: u32 = 2147483648; +pub const BMAP_IOCTL: u32 = 1; +pub const FSLABEL_MAX: u32 = 256; +pub const FS_SECRM_FL: u32 = 1; +pub const FS_UNRM_FL: u32 = 2; +pub const FS_COMPR_FL: u32 = 4; +pub const FS_SYNC_FL: u32 = 8; +pub const FS_IMMUTABLE_FL: u32 = 16; +pub const FS_APPEND_FL: u32 = 32; +pub const FS_NODUMP_FL: u32 = 64; +pub const FS_NOATIME_FL: u32 = 128; +pub const FS_DIRTY_FL: u32 = 256; +pub const FS_COMPRBLK_FL: u32 = 512; +pub const FS_NOCOMP_FL: u32 = 1024; +pub const FS_ENCRYPT_FL: u32 = 2048; +pub const FS_BTREE_FL: u32 = 4096; +pub const FS_INDEX_FL: u32 = 4096; +pub const FS_IMAGIC_FL: u32 = 8192; +pub const FS_JOURNAL_DATA_FL: u32 = 16384; +pub const FS_NOTAIL_FL: u32 = 32768; +pub const FS_DIRSYNC_FL: u32 = 65536; +pub const FS_TOPDIR_FL: u32 = 131072; +pub const FS_HUGE_FILE_FL: u32 = 262144; +pub const FS_EXTENT_FL: u32 = 524288; +pub const FS_VERITY_FL: u32 = 1048576; +pub const FS_EA_INODE_FL: u32 = 2097152; +pub const FS_EOFBLOCKS_FL: u32 = 4194304; +pub const FS_NOCOW_FL: u32 = 8388608; +pub const FS_DAX_FL: u32 = 33554432; +pub const FS_INLINE_DATA_FL: u32 = 268435456; +pub const FS_PROJINHERIT_FL: u32 = 536870912; +pub const FS_CASEFOLD_FL: u32 = 1073741824; +pub const FS_RESERVED_FL: u32 = 2147483648; +pub const FS_FL_USER_VISIBLE: u32 = 253951; +pub const FS_FL_USER_MODIFIABLE: u32 = 229631; +pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; +pub const SYNC_FILE_RANGE_WRITE: u32 = 2; +pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; +pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; +pub const PROCFS_IOCTL_MAGIC: u8 = 102u8; +pub const PAGE_IS_WPALLOWED: u32 = 1; +pub const PAGE_IS_WRITTEN: u32 = 2; +pub const PAGE_IS_FILE: u32 = 4; +pub const PAGE_IS_PRESENT: u32 = 8; +pub const PAGE_IS_SWAPPED: u32 = 16; +pub const PAGE_IS_PFNZERO: u32 = 32; +pub const PAGE_IS_HUGE: u32 = 64; +pub const PAGE_IS_SOFT_DIRTY: u32 = 128; +pub const PAGE_IS_GUARD: u32 = 256; +pub const PM_SCAN_WP_MATCHING: u32 = 1; +pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FUTEX_WAIT: u32 = 0; +pub const FUTEX_WAKE: u32 = 1; +pub const FUTEX_FD: u32 = 2; +pub const FUTEX_REQUEUE: u32 = 3; +pub const FUTEX_CMP_REQUEUE: u32 = 4; +pub const FUTEX_WAKE_OP: u32 = 5; +pub const FUTEX_LOCK_PI: u32 = 6; +pub const FUTEX_UNLOCK_PI: u32 = 7; +pub const FUTEX_TRYLOCK_PI: u32 = 8; +pub const FUTEX_WAIT_BITSET: u32 = 9; +pub const FUTEX_WAKE_BITSET: u32 = 10; +pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; +pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; +pub const FUTEX_LOCK_PI2: u32 = 13; +pub const FUTEX_PRIVATE_FLAG: u32 = 128; +pub const FUTEX_CLOCK_REALTIME: u32 = 256; +pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_WAIT_PRIVATE: u32 = 128; +pub const FUTEX_WAKE_PRIVATE: u32 = 129; +pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; +pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; +pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; +pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; +pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; +pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; +pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; +pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; +pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; +pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; +pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX2_SIZE_U8: u32 = 0; +pub const FUTEX2_SIZE_U16: u32 = 1; +pub const FUTEX2_SIZE_U32: u32 = 2; +pub const FUTEX2_SIZE_U64: u32 = 3; +pub const FUTEX2_NUMA: u32 = 4; +pub const FUTEX2_MPOL: u32 = 8; +pub const FUTEX2_PRIVATE: u32 = 128; +pub const FUTEX2_SIZE_MASK: u32 = 3; +pub const FUTEX_32: u32 = 2; +pub const FUTEX_NO_NODE: i32 = -1; +pub const FUTEX_WAITV_MAX: u32 = 128; +pub const FUTEX_WAITERS: u32 = 2147483648; +pub const FUTEX_OWNER_DIED: u32 = 1073741824; +pub const FUTEX_TID_MASK: u32 = 1073741823; +pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; +pub const FUTEX_OP_SET: u32 = 0; +pub const FUTEX_OP_ADD: u32 = 1; +pub const FUTEX_OP_OR: u32 = 2; +pub const FUTEX_OP_ANDN: u32 = 3; +pub const FUTEX_OP_XOR: u32 = 4; +pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; +pub const FUTEX_OP_CMP_EQ: u32 = 0; +pub const FUTEX_OP_CMP_NE: u32 = 1; +pub const FUTEX_OP_CMP_LT: u32 = 2; +pub const FUTEX_OP_CMP_LE: u32 = 3; +pub const FUTEX_OP_CMP_GT: u32 = 4; +pub const FUTEX_OP_CMP_GE: u32 = 5; +pub const IN_ACCESS: u32 = 1; +pub const IN_MODIFY: u32 = 2; +pub const IN_ATTRIB: u32 = 4; +pub const IN_CLOSE_WRITE: u32 = 8; +pub const IN_CLOSE_NOWRITE: u32 = 16; +pub const IN_OPEN: u32 = 32; +pub const IN_MOVED_FROM: u32 = 64; +pub const IN_MOVED_TO: u32 = 128; +pub const IN_CREATE: u32 = 256; +pub const IN_DELETE: u32 = 512; +pub const IN_DELETE_SELF: u32 = 1024; +pub const IN_MOVE_SELF: u32 = 2048; +pub const IN_UNMOUNT: u32 = 8192; +pub const IN_Q_OVERFLOW: u32 = 16384; +pub const IN_IGNORED: u32 = 32768; +pub const IN_CLOSE: u32 = 24; +pub const IN_MOVE: u32 = 192; +pub const IN_ONLYDIR: u32 = 16777216; +pub const IN_DONT_FOLLOW: u32 = 33554432; +pub const IN_EXCL_UNLINK: u32 = 67108864; +pub const IN_MASK_CREATE: u32 = 268435456; +pub const IN_MASK_ADD: u32 = 536870912; +pub const IN_ISDIR: u32 = 1073741824; +pub const IN_ONESHOT: u32 = 2147483648; +pub const IN_ALL_EVENTS: u32 = 4095; +pub const IN_CLOEXEC: u32 = 524288; +pub const IN_NONBLOCK: u32 = 2048; +pub const ADFS_SUPER_MAGIC: u32 = 44533; +pub const AFFS_SUPER_MAGIC: u32 = 44543; +pub const AFS_SUPER_MAGIC: u32 = 1397113167; +pub const AUTOFS_SUPER_MAGIC: u32 = 391; +pub const CEPH_SUPER_MAGIC: u32 = 12805120; +pub const CODA_SUPER_MAGIC: u32 = 1937076805; +pub const CRAMFS_MAGIC: u32 = 684539205; +pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; +pub const DEBUGFS_MAGIC: u32 = 1684170528; +pub const SECURITYFS_MAGIC: u32 = 1935894131; +pub const SELINUX_MAGIC: u32 = 4185718668; +pub const SMACK_MAGIC: u32 = 1128357203; +pub const RAMFS_MAGIC: u32 = 2240043254; +pub const TMPFS_MAGIC: u32 = 16914836; +pub const HUGETLBFS_MAGIC: u32 = 2508478710; +pub const SQUASHFS_MAGIC: u32 = 1936814952; +pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; +pub const EFS_SUPER_MAGIC: u32 = 4278867; +pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; +pub const EXT2_SUPER_MAGIC: u32 = 61267; +pub const EXT3_SUPER_MAGIC: u32 = 61267; +pub const XENFS_SUPER_MAGIC: u32 = 2881100148; +pub const EXT4_SUPER_MAGIC: u32 = 61267; +pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; +pub const NILFS_SUPER_MAGIC: u32 = 13364; +pub const F2FS_SUPER_MAGIC: u32 = 4076150800; +pub const HPFS_SUPER_MAGIC: u32 = 4187351113; +pub const ISOFS_SUPER_MAGIC: u32 = 38496; +pub const JFFS2_SUPER_MAGIC: u32 = 29366; +pub const XFS_SUPER_MAGIC: u32 = 1481003842; +pub const PSTOREFS_MAGIC: u32 = 1634035564; +pub const EFIVARFS_MAGIC: u32 = 3730735588; +pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; +pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; +pub const FUSE_SUPER_MAGIC: u32 = 1702057286; +pub const BCACHEFS_SUPER_MAGIC: u32 = 3393526350; +pub const MINIX_SUPER_MAGIC: u32 = 4991; +pub const MINIX_SUPER_MAGIC2: u32 = 5007; +pub const MINIX2_SUPER_MAGIC: u32 = 9320; +pub const MINIX2_SUPER_MAGIC2: u32 = 9336; +pub const MINIX3_SUPER_MAGIC: u32 = 19802; +pub const MSDOS_SUPER_MAGIC: u32 = 19780; +pub const EXFAT_SUPER_MAGIC: u32 = 538032816; +pub const NCP_SUPER_MAGIC: u32 = 22092; +pub const NFS_SUPER_MAGIC: u32 = 26985; +pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; +pub const OPENPROM_SUPER_MAGIC: u32 = 40865; +pub const QNX4_SUPER_MAGIC: u32 = 47; +pub const QNX6_SUPER_MAGIC: u32 = 1746473250; +pub const AFS_FS_MAGIC: u32 = 1799439955; +pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; +pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9] = b"ReIsErFs\0"; +pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr2Fs\0"; +pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr3Fs\0"; +pub const SMB_SUPER_MAGIC: u32 = 20859; +pub const CIFS_SUPER_MAGIC: u32 = 4283649346; +pub const SMB2_SUPER_MAGIC: u32 = 4266872130; +pub const CGROUP_SUPER_MAGIC: u32 = 2613483; +pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; +pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; +pub const STACK_END_MAGIC: u32 = 1470918301; +pub const TRACEFS_MAGIC: u32 = 1953653091; +pub const V9FS_MAGIC: u32 = 16914839; +pub const BDEVFS_MAGIC: u32 = 1650746742; +pub const DAXFS_MAGIC: u32 = 1684300152; +pub const BINFMTFS_MAGIC: u32 = 1112100429; +pub const DEVPTS_SUPER_MAGIC: u32 = 7377; +pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; +pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; +pub const PIPEFS_MAGIC: u32 = 1346981957; +pub const PROC_SUPER_MAGIC: u32 = 40864; +pub const SOCKFS_MAGIC: u32 = 1397703499; +pub const SYSFS_MAGIC: u32 = 1650812274; +pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; +pub const MTD_INODE_FS_MAGIC: u32 = 288389204; +pub const ANON_INODE_FS_MAGIC: u32 = 151263540; +pub const BTRFS_TEST_MAGIC: u32 = 1936880249; +pub const NSFS_MAGIC: u32 = 1853056627; +pub const BPF_FS_MAGIC: u32 = 3405662737; +pub const AAFS_MAGIC: u32 = 1513908720; +pub const ZONEFS_MAGIC: u32 = 1515144787; +pub const UDF_SUPER_MAGIC: u32 = 352400198; +pub const DMA_BUF_MAGIC: u32 = 1145913666; +pub const DEVMEM_MAGIC: u32 = 1162691661; +pub const SECRETMEM_MAGIC: u32 = 1397048141; +pub const PID_FS_MAGIC: u32 = 1346978886; +pub const PROT_READ: u32 = 1; +pub const PROT_WRITE: u32 = 2; +pub const PROT_EXEC: u32 = 4; +pub const PROT_SEM: u32 = 8; +pub const PROT_NONE: u32 = 0; +pub const PROT_GROWSDOWN: u32 = 16777216; +pub const PROT_GROWSUP: u32 = 33554432; +pub const MAP_TYPE: u32 = 15; +pub const MAP_FIXED: u32 = 16; +pub const MAP_ANONYMOUS: u32 = 32; +pub const MAP_POPULATE: u32 = 32768; +pub const MAP_NONBLOCK: u32 = 65536; +pub const MAP_STACK: u32 = 131072; +pub const MAP_HUGETLB: u32 = 262144; +pub const MAP_SYNC: u32 = 524288; +pub const MAP_FIXED_NOREPLACE: u32 = 1048576; +pub const MAP_UNINITIALIZED: u32 = 67108864; +pub const MLOCK_ONFAULT: u32 = 1; +pub const MS_ASYNC: u32 = 1; +pub const MS_INVALIDATE: u32 = 2; +pub const MS_SYNC: u32 = 4; +pub const MADV_NORMAL: u32 = 0; +pub const MADV_RANDOM: u32 = 1; +pub const MADV_SEQUENTIAL: u32 = 2; +pub const MADV_WILLNEED: u32 = 3; +pub const MADV_DONTNEED: u32 = 4; +pub const MADV_FREE: u32 = 8; +pub const MADV_REMOVE: u32 = 9; +pub const MADV_DONTFORK: u32 = 10; +pub const MADV_DOFORK: u32 = 11; +pub const MADV_HWPOISON: u32 = 100; +pub const MADV_SOFT_OFFLINE: u32 = 101; +pub const MADV_MERGEABLE: u32 = 12; +pub const MADV_UNMERGEABLE: u32 = 13; +pub const MADV_HUGEPAGE: u32 = 14; +pub const MADV_NOHUGEPAGE: u32 = 15; +pub const MADV_DONTDUMP: u32 = 16; +pub const MADV_DODUMP: u32 = 17; +pub const MADV_WIPEONFORK: u32 = 18; +pub const MADV_KEEPONFORK: u32 = 19; +pub const MADV_COLD: u32 = 20; +pub const MADV_PAGEOUT: u32 = 21; +pub const MADV_POPULATE_READ: u32 = 22; +pub const MADV_POPULATE_WRITE: u32 = 23; +pub const MADV_DONTNEED_LOCKED: u32 = 24; +pub const MADV_COLLAPSE: u32 = 25; +pub const MADV_GUARD_INSTALL: u32 = 102; +pub const MADV_GUARD_REMOVE: u32 = 103; +pub const MAP_FILE: u32 = 0; +pub const PKEY_UNRESTRICTED: u32 = 0; +pub const PKEY_DISABLE_ACCESS: u32 = 1; +pub const PKEY_DISABLE_WRITE: u32 = 2; +pub const PKEY_ACCESS_MASK: u32 = 3; +pub const MAP_GROWSDOWN: u32 = 256; +pub const MAP_DENYWRITE: u32 = 2048; +pub const MAP_EXECUTABLE: u32 = 4096; +pub const MAP_LOCKED: u32 = 8192; +pub const MAP_NORESERVE: u32 = 16384; +pub const MCL_CURRENT: u32 = 1; +pub const MCL_FUTURE: u32 = 2; +pub const MCL_ONFAULT: u32 = 4; +pub const SHADOW_STACK_SET_TOKEN: u32 = 1; +pub const SHADOW_STACK_SET_MARKER: u32 = 2; +pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; +pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; +pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; +pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; +pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; +pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; +pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; +pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; +pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; +pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; +pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; +pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; +pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; +pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; +pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; +pub const MREMAP_MAYMOVE: u32 = 1; +pub const MREMAP_FIXED: u32 = 2; +pub const MREMAP_DONTUNMAP: u32 = 4; +pub const OVERCOMMIT_GUESS: u32 = 0; +pub const OVERCOMMIT_ALWAYS: u32 = 1; +pub const OVERCOMMIT_NEVER: u32 = 2; +pub const MAP_SHARED: u32 = 1; +pub const MAP_PRIVATE: u32 = 2; +pub const MAP_SHARED_VALIDATE: u32 = 3; +pub const MAP_DROPPABLE: u32 = 8; +pub const MAP_HUGE_SHIFT: u32 = 26; +pub const MAP_HUGE_MASK: u32 = 63; +pub const MAP_HUGE_16KB: u32 = 939524096; +pub const MAP_HUGE_64KB: u32 = 1073741824; +pub const MAP_HUGE_512KB: u32 = 1275068416; +pub const MAP_HUGE_1MB: u32 = 1342177280; +pub const MAP_HUGE_2MB: u32 = 1409286144; +pub const MAP_HUGE_8MB: u32 = 1543503872; +pub const MAP_HUGE_16MB: u32 = 1610612736; +pub const MAP_HUGE_32MB: u32 = 1677721600; +pub const MAP_HUGE_256MB: u32 = 1879048192; +pub const MAP_HUGE_512MB: u32 = 1946157056; +pub const MAP_HUGE_1GB: u32 = 2013265920; +pub const MAP_HUGE_2GB: u32 = 2080374784; +pub const MAP_HUGE_16GB: u32 = 2281701376; +pub const POLLIN: u32 = 1; +pub const POLLPRI: u32 = 2; +pub const POLLOUT: u32 = 4; +pub const POLLERR: u32 = 8; +pub const POLLHUP: u32 = 16; +pub const POLLNVAL: u32 = 32; +pub const POLLRDNORM: u32 = 64; +pub const POLLRDBAND: u32 = 128; +pub const POLLWRNORM: u32 = 256; +pub const POLLWRBAND: u32 = 512; +pub const POLLMSG: u32 = 1024; +pub const POLLREMOVE: u32 = 4096; +pub const POLLRDHUP: u32 = 8192; +pub const GRND_NONBLOCK: u32 = 1; +pub const GRND_RANDOM: u32 = 2; +pub const GRND_INSECURE: u32 = 4; +pub const LINUX_REBOOT_MAGIC1: u32 = 4276215469; +pub const LINUX_REBOOT_MAGIC2: u32 = 672274793; +pub const LINUX_REBOOT_MAGIC2A: u32 = 85072278; +pub const LINUX_REBOOT_MAGIC2B: u32 = 369367448; +pub const LINUX_REBOOT_MAGIC2C: u32 = 537993216; +pub const LINUX_REBOOT_CMD_RESTART: u32 = 19088743; +pub const LINUX_REBOOT_CMD_HALT: u32 = 3454992675; +pub const LINUX_REBOOT_CMD_CAD_ON: u32 = 2309737967; +pub const LINUX_REBOOT_CMD_CAD_OFF: u32 = 0; +pub const LINUX_REBOOT_CMD_POWER_OFF: u32 = 1126301404; +pub const LINUX_REBOOT_CMD_RESTART2: u32 = 2712847316; +pub const LINUX_REBOOT_CMD_SW_SUSPEND: u32 = 3489725666; +pub const LINUX_REBOOT_CMD_KEXEC: u32 = 1163412803; +pub const RUSAGE_SELF: u32 = 0; +pub const RUSAGE_CHILDREN: i32 = -1; +pub const RUSAGE_BOTH: i32 = -2; +pub const RUSAGE_THREAD: u32 = 1; +pub const RLIM64_INFINITY: i32 = -1; +pub const PRIO_MIN: i32 = -20; +pub const PRIO_MAX: u32 = 20; +pub const PRIO_PROCESS: u32 = 0; +pub const PRIO_PGRP: u32 = 1; +pub const PRIO_USER: u32 = 2; +pub const _STK_LIM: u32 = 8388608; +pub const MLOCK_LIMIT: u32 = 8388608; +pub const RLIMIT_CPU: u32 = 0; +pub const RLIMIT_FSIZE: u32 = 1; +pub const RLIMIT_DATA: u32 = 2; +pub const RLIMIT_STACK: u32 = 3; +pub const RLIMIT_CORE: u32 = 4; +pub const RLIMIT_RSS: u32 = 5; +pub const RLIMIT_NPROC: u32 = 6; +pub const RLIMIT_NOFILE: u32 = 7; +pub const RLIMIT_MEMLOCK: u32 = 8; +pub const RLIMIT_AS: u32 = 9; +pub const RLIMIT_LOCKS: u32 = 10; +pub const RLIMIT_SIGPENDING: u32 = 11; +pub const RLIMIT_MSGQUEUE: u32 = 12; +pub const RLIMIT_NICE: u32 = 13; +pub const RLIMIT_RTPRIO: u32 = 14; +pub const RLIMIT_RTTIME: u32 = 15; +pub const RLIM_NLIMITS: u32 = 16; +pub const RLIM_INFINITY: i32 = -1; +pub const CSIGNAL: u32 = 255; +pub const CLONE_VM: u32 = 256; +pub const CLONE_FS: u32 = 512; +pub const CLONE_FILES: u32 = 1024; +pub const CLONE_SIGHAND: u32 = 2048; +pub const CLONE_PIDFD: u32 = 4096; +pub const CLONE_PTRACE: u32 = 8192; +pub const CLONE_VFORK: u32 = 16384; +pub const CLONE_PARENT: u32 = 32768; +pub const CLONE_THREAD: u32 = 65536; +pub const CLONE_NEWNS: u32 = 131072; +pub const CLONE_SYSVSEM: u32 = 262144; +pub const CLONE_SETTLS: u32 = 524288; +pub const CLONE_PARENT_SETTID: u32 = 1048576; +pub const CLONE_CHILD_CLEARTID: u32 = 2097152; +pub const CLONE_DETACHED: u32 = 4194304; +pub const CLONE_UNTRACED: u32 = 8388608; +pub const CLONE_CHILD_SETTID: u32 = 16777216; +pub const CLONE_NEWCGROUP: u32 = 33554432; +pub const CLONE_NEWUTS: u32 = 67108864; +pub const CLONE_NEWIPC: u32 = 134217728; +pub const CLONE_NEWUSER: u32 = 268435456; +pub const CLONE_NEWPID: u32 = 536870912; +pub const CLONE_NEWNET: u32 = 1073741824; +pub const CLONE_IO: u32 = 2147483648; +pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; +pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_NEWTIME: u32 = 128; +pub const CLONE_ARGS_SIZE_VER0: u32 = 64; +pub const CLONE_ARGS_SIZE_VER1: u32 = 80; +pub const CLONE_ARGS_SIZE_VER2: u32 = 88; +pub const SCHED_NORMAL: u32 = 0; +pub const SCHED_FIFO: u32 = 1; +pub const SCHED_RR: u32 = 2; +pub const SCHED_BATCH: u32 = 3; +pub const SCHED_IDLE: u32 = 5; +pub const SCHED_DEADLINE: u32 = 6; +pub const SCHED_EXT: u32 = 7; +pub const SCHED_RESET_ON_FORK: u32 = 1073741824; +pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; +pub const SCHED_FLAG_RECLAIM: u32 = 2; +pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; +pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; +pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; +pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; +pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; +pub const SCHED_FLAG_KEEP_ALL: u32 = 24; +pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; +pub const SCHED_FLAG_ALL: u32 = 127; +pub const NSIG: u32 = 32; +pub const SIGHUP: u32 = 1; +pub const SIGINT: u32 = 2; +pub const SIGQUIT: u32 = 3; +pub const SIGILL: u32 = 4; +pub const SIGTRAP: u32 = 5; +pub const SIGABRT: u32 = 6; +pub const SIGIOT: u32 = 6; +pub const SIGBUS: u32 = 7; +pub const SIGFPE: u32 = 8; +pub const SIGKILL: u32 = 9; +pub const SIGUSR1: u32 = 10; +pub const SIGSEGV: u32 = 11; +pub const SIGUSR2: u32 = 12; +pub const SIGPIPE: u32 = 13; +pub const SIGALRM: u32 = 14; +pub const SIGTERM: u32 = 15; +pub const SIGSTKFLT: u32 = 16; +pub const SIGCHLD: u32 = 17; +pub const SIGCONT: u32 = 18; +pub const SIGSTOP: u32 = 19; +pub const SIGTSTP: u32 = 20; +pub const SIGTTIN: u32 = 21; +pub const SIGTTOU: u32 = 22; +pub const SIGURG: u32 = 23; +pub const SIGXCPU: u32 = 24; +pub const SIGXFSZ: u32 = 25; +pub const SIGVTALRM: u32 = 26; +pub const SIGPROF: u32 = 27; +pub const SIGWINCH: u32 = 28; +pub const SIGIO: u32 = 29; +pub const SIGPOLL: u32 = 29; +pub const SIGPWR: u32 = 30; +pub const SIGSYS: u32 = 31; +pub const SIGUNUSED: u32 = 31; +pub const SIGRTMIN: u32 = 32; +pub const SIGSWI: u32 = 32; +pub const SA_THIRTYTWO: u32 = 33554432; +pub const SA_RESTORER: u32 = 67108864; +pub const MINSIGSTKSZ: u32 = 2048; +pub const SIGSTKSZ: u32 = 8192; +pub const SA_NOCLDSTOP: u32 = 1; +pub const SA_NOCLDWAIT: u32 = 2; +pub const SA_SIGINFO: u32 = 4; +pub const SA_UNSUPPORTED: u32 = 1024; +pub const SA_EXPOSE_TAGBITS: u32 = 2048; +pub const SA_ONSTACK: u32 = 134217728; +pub const SA_RESTART: u32 = 268435456; +pub const SA_NODEFER: u32 = 1073741824; +pub const SA_RESETHAND: u32 = 2147483648; +pub const SA_NOMASK: u32 = 1073741824; +pub const SA_ONESHOT: u32 = 2147483648; +pub const SIG_BLOCK: u32 = 0; +pub const SIG_UNBLOCK: u32 = 1; +pub const SIG_SETMASK: u32 = 2; +pub const SI_MAX_SIZE: u32 = 128; +pub const SI_USER: u32 = 0; +pub const SI_KERNEL: u32 = 128; +pub const SI_QUEUE: i32 = -1; +pub const SI_TIMER: i32 = -2; +pub const SI_MESGQ: i32 = -3; +pub const SI_ASYNCIO: i32 = -4; +pub const SI_SIGIO: i32 = -5; +pub const SI_TKILL: i32 = -6; +pub const SI_DETHREAD: i32 = -7; +pub const SI_ASYNCNL: i32 = -60; +pub const ILL_ILLOPC: u32 = 1; +pub const ILL_ILLOPN: u32 = 2; +pub const ILL_ILLADR: u32 = 3; +pub const ILL_ILLTRP: u32 = 4; +pub const ILL_PRVOPC: u32 = 5; +pub const ILL_PRVREG: u32 = 6; +pub const ILL_COPROC: u32 = 7; +pub const ILL_BADSTK: u32 = 8; +pub const ILL_BADIADDR: u32 = 9; +pub const __ILL_BREAK: u32 = 10; +pub const __ILL_BNDMOD: u32 = 11; +pub const NSIGILL: u32 = 11; +pub const FPE_INTDIV: u32 = 1; +pub const FPE_INTOVF: u32 = 2; +pub const FPE_FLTDIV: u32 = 3; +pub const FPE_FLTOVF: u32 = 4; +pub const FPE_FLTUND: u32 = 5; +pub const FPE_FLTRES: u32 = 6; +pub const FPE_FLTINV: u32 = 7; +pub const FPE_FLTSUB: u32 = 8; +pub const __FPE_DECOVF: u32 = 9; +pub const __FPE_DECDIV: u32 = 10; +pub const __FPE_DECERR: u32 = 11; +pub const __FPE_INVASC: u32 = 12; +pub const __FPE_INVDEC: u32 = 13; +pub const FPE_FLTUNK: u32 = 14; +pub const FPE_CONDTRAP: u32 = 15; +pub const NSIGFPE: u32 = 15; +pub const SEGV_MAPERR: u32 = 1; +pub const SEGV_ACCERR: u32 = 2; +pub const SEGV_BNDERR: u32 = 3; +pub const SEGV_PKUERR: u32 = 4; +pub const SEGV_ACCADI: u32 = 5; +pub const SEGV_ADIDERR: u32 = 6; +pub const SEGV_ADIPERR: u32 = 7; +pub const SEGV_MTEAERR: u32 = 8; +pub const SEGV_MTESERR: u32 = 9; +pub const SEGV_CPERR: u32 = 10; +pub const NSIGSEGV: u32 = 10; +pub const BUS_ADRALN: u32 = 1; +pub const BUS_ADRERR: u32 = 2; +pub const BUS_OBJERR: u32 = 3; +pub const BUS_MCEERR_AR: u32 = 4; +pub const BUS_MCEERR_AO: u32 = 5; +pub const NSIGBUS: u32 = 5; +pub const TRAP_BRKPT: u32 = 1; +pub const TRAP_TRACE: u32 = 2; +pub const TRAP_BRANCH: u32 = 3; +pub const TRAP_HWBKPT: u32 = 4; +pub const TRAP_UNK: u32 = 5; +pub const TRAP_PERF: u32 = 6; +pub const NSIGTRAP: u32 = 6; +pub const TRAP_PERF_FLAG_ASYNC: u32 = 1; +pub const CLD_EXITED: u32 = 1; +pub const CLD_KILLED: u32 = 2; +pub const CLD_DUMPED: u32 = 3; +pub const CLD_TRAPPED: u32 = 4; +pub const CLD_STOPPED: u32 = 5; +pub const CLD_CONTINUED: u32 = 6; +pub const NSIGCHLD: u32 = 6; +pub const POLL_IN: u32 = 1; +pub const POLL_OUT: u32 = 2; +pub const POLL_MSG: u32 = 3; +pub const POLL_ERR: u32 = 4; +pub const POLL_PRI: u32 = 5; +pub const POLL_HUP: u32 = 6; +pub const NSIGPOLL: u32 = 6; +pub const SYS_SECCOMP: u32 = 1; +pub const SYS_USER_DISPATCH: u32 = 2; +pub const NSIGSYS: u32 = 2; +pub const EMT_TAGOVF: u32 = 1; +pub const NSIGEMT: u32 = 1; +pub const SIGEV_SIGNAL: u32 = 0; +pub const SIGEV_NONE: u32 = 1; +pub const SIGEV_THREAD: u32 = 2; +pub const SIGEV_THREAD_ID: u32 = 4; +pub const SIGEV_MAX_SIZE: u32 = 64; +pub const SS_ONSTACK: u32 = 1; +pub const SS_DISABLE: u32 = 2; +pub const SS_AUTODISARM: u32 = 2147483648; +pub const SS_FLAG_BITS: u32 = 2147483648; +pub const S_IFMT: u32 = 61440; +pub const S_IFSOCK: u32 = 49152; +pub const S_IFLNK: u32 = 40960; +pub const S_IFREG: u32 = 32768; +pub const S_IFBLK: u32 = 24576; +pub const S_IFDIR: u32 = 16384; +pub const S_IFCHR: u32 = 8192; +pub const S_IFIFO: u32 = 4096; +pub const S_ISUID: u32 = 2048; +pub const S_ISGID: u32 = 1024; +pub const S_ISVTX: u32 = 512; +pub const S_IRWXU: u32 = 448; +pub const S_IRUSR: u32 = 256; +pub const S_IWUSR: u32 = 128; +pub const S_IXUSR: u32 = 64; +pub const S_IRWXG: u32 = 56; +pub const S_IRGRP: u32 = 32; +pub const S_IWGRP: u32 = 16; +pub const S_IXGRP: u32 = 8; +pub const S_IRWXO: u32 = 7; +pub const S_IROTH: u32 = 4; +pub const S_IWOTH: u32 = 2; +pub const S_IXOTH: u32 = 1; +pub const STATX_TYPE: u32 = 1; +pub const STATX_MODE: u32 = 2; +pub const STATX_NLINK: u32 = 4; +pub const STATX_UID: u32 = 8; +pub const STATX_GID: u32 = 16; +pub const STATX_ATIME: u32 = 32; +pub const STATX_MTIME: u32 = 64; +pub const STATX_CTIME: u32 = 128; +pub const STATX_INO: u32 = 256; +pub const STATX_SIZE: u32 = 512; +pub const STATX_BLOCKS: u32 = 1024; +pub const STATX_BASIC_STATS: u32 = 2047; +pub const STATX_BTIME: u32 = 2048; +pub const STATX_MNT_ID: u32 = 4096; +pub const STATX_DIOALIGN: u32 = 8192; +pub const STATX_MNT_ID_UNIQUE: u32 = 16384; +pub const STATX_SUBVOL: u32 = 32768; +pub const STATX_WRITE_ATOMIC: u32 = 65536; +pub const STATX_DIO_READ_ALIGN: u32 = 131072; +pub const STATX__RESERVED: u32 = 2147483648; +pub const STATX_ALL: u32 = 4095; +pub const STATX_ATTR_COMPRESSED: u32 = 4; +pub const STATX_ATTR_IMMUTABLE: u32 = 16; +pub const STATX_ATTR_APPEND: u32 = 32; +pub const STATX_ATTR_NODUMP: u32 = 64; +pub const STATX_ATTR_ENCRYPTED: u32 = 2048; +pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; +pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; +pub const STATX_ATTR_VERITY: u32 = 1048576; +pub const STATX_ATTR_DAX: u32 = 2097152; +pub const STATX_ATTR_WRITE_ATOMIC: u32 = 4194304; +pub const IGNBRK: u32 = 1; +pub const BRKINT: u32 = 2; +pub const IGNPAR: u32 = 4; +pub const PARMRK: u32 = 8; +pub const INPCK: u32 = 16; +pub const ISTRIP: u32 = 32; +pub const INLCR: u32 = 64; +pub const IGNCR: u32 = 128; +pub const ICRNL: u32 = 256; +pub const IXANY: u32 = 2048; +pub const OPOST: u32 = 1; +pub const OCRNL: u32 = 8; +pub const ONOCR: u32 = 16; +pub const ONLRET: u32 = 32; +pub const OFILL: u32 = 64; +pub const OFDEL: u32 = 128; +pub const B0: u32 = 0; +pub const B50: u32 = 1; +pub const B75: u32 = 2; +pub const B110: u32 = 3; +pub const B134: u32 = 4; +pub const B150: u32 = 5; +pub const B200: u32 = 6; +pub const B300: u32 = 7; +pub const B600: u32 = 8; +pub const B1200: u32 = 9; +pub const B1800: u32 = 10; +pub const B2400: u32 = 11; +pub const B4800: u32 = 12; +pub const B9600: u32 = 13; +pub const B19200: u32 = 14; +pub const B38400: u32 = 15; +pub const EXTA: u32 = 14; +pub const EXTB: u32 = 15; +pub const ADDRB: u32 = 536870912; +pub const CMSPAR: u32 = 1073741824; +pub const CRTSCTS: u32 = 2147483648; +pub const IBSHIFT: u32 = 16; +pub const TCOOFF: u32 = 0; +pub const TCOON: u32 = 1; +pub const TCIOFF: u32 = 2; +pub const TCION: u32 = 3; +pub const TCIFLUSH: u32 = 0; +pub const TCOFLUSH: u32 = 1; +pub const TCIOFLUSH: u32 = 2; +pub const NCCS: u32 = 19; +pub const VINTR: u32 = 0; +pub const VQUIT: u32 = 1; +pub const VERASE: u32 = 2; +pub const VKILL: u32 = 3; +pub const VEOF: u32 = 4; +pub const VTIME: u32 = 5; +pub const VMIN: u32 = 6; +pub const VSWTC: u32 = 7; +pub const VSTART: u32 = 8; +pub const VSTOP: u32 = 9; +pub const VSUSP: u32 = 10; +pub const VEOL: u32 = 11; +pub const VREPRINT: u32 = 12; +pub const VDISCARD: u32 = 13; +pub const VWERASE: u32 = 14; +pub const VLNEXT: u32 = 15; +pub const VEOL2: u32 = 16; +pub const IUCLC: u32 = 512; +pub const IXON: u32 = 1024; +pub const IXOFF: u32 = 4096; +pub const IMAXBEL: u32 = 8192; +pub const IUTF8: u32 = 16384; +pub const OLCUC: u32 = 2; +pub const ONLCR: u32 = 4; +pub const NLDLY: u32 = 256; +pub const NL0: u32 = 0; +pub const NL1: u32 = 256; +pub const CRDLY: u32 = 1536; +pub const CR0: u32 = 0; +pub const CR1: u32 = 512; +pub const CR2: u32 = 1024; +pub const CR3: u32 = 1536; +pub const TABDLY: u32 = 6144; +pub const TAB0: u32 = 0; +pub const TAB1: u32 = 2048; +pub const TAB2: u32 = 4096; +pub const TAB3: u32 = 6144; +pub const XTABS: u32 = 6144; +pub const BSDLY: u32 = 8192; +pub const BS0: u32 = 0; +pub const BS1: u32 = 8192; +pub const VTDLY: u32 = 16384; +pub const VT0: u32 = 0; +pub const VT1: u32 = 16384; +pub const FFDLY: u32 = 32768; +pub const FF0: u32 = 0; +pub const FF1: u32 = 32768; +pub const CBAUD: u32 = 4111; +pub const CSIZE: u32 = 48; +pub const CS5: u32 = 0; +pub const CS6: u32 = 16; +pub const CS7: u32 = 32; +pub const CS8: u32 = 48; +pub const CSTOPB: u32 = 64; +pub const CREAD: u32 = 128; +pub const PARENB: u32 = 256; +pub const PARODD: u32 = 512; +pub const HUPCL: u32 = 1024; +pub const CLOCAL: u32 = 2048; +pub const CBAUDEX: u32 = 4096; +pub const BOTHER: u32 = 4096; +pub const B57600: u32 = 4097; +pub const B115200: u32 = 4098; +pub const B230400: u32 = 4099; +pub const B460800: u32 = 4100; +pub const B500000: u32 = 4101; +pub const B576000: u32 = 4102; +pub const B921600: u32 = 4103; +pub const B1000000: u32 = 4104; +pub const B1152000: u32 = 4105; +pub const B1500000: u32 = 4106; +pub const B2000000: u32 = 4107; +pub const B2500000: u32 = 4108; +pub const B3000000: u32 = 4109; +pub const B3500000: u32 = 4110; +pub const B4000000: u32 = 4111; +pub const CIBAUD: u32 = 269418496; +pub const ISIG: u32 = 1; +pub const ICANON: u32 = 2; +pub const XCASE: u32 = 4; +pub const ECHO: u32 = 8; +pub const ECHOE: u32 = 16; +pub const ECHOK: u32 = 32; +pub const ECHONL: u32 = 64; +pub const NOFLSH: u32 = 128; +pub const TOSTOP: u32 = 256; +pub const ECHOCTL: u32 = 512; +pub const ECHOPRT: u32 = 1024; +pub const ECHOKE: u32 = 2048; +pub const FLUSHO: u32 = 4096; +pub const PENDIN: u32 = 16384; +pub const IEXTEN: u32 = 32768; +pub const EXTPROC: u32 = 65536; +pub const TCSANOW: u32 = 0; +pub const TCSADRAIN: u32 = 1; +pub const TCSAFLUSH: u32 = 2; +pub const TIOCPKT_DATA: u32 = 0; +pub const TIOCPKT_FLUSHREAD: u32 = 1; +pub const TIOCPKT_FLUSHWRITE: u32 = 2; +pub const TIOCPKT_STOP: u32 = 4; +pub const TIOCPKT_START: u32 = 8; +pub const TIOCPKT_NOSTOP: u32 = 16; +pub const TIOCPKT_DOSTOP: u32 = 32; +pub const TIOCPKT_IOCTL: u32 = 64; +pub const TIOCSER_TEMT: u32 = 1; +pub const NCC: u32 = 8; +pub const TIOCM_LE: u32 = 1; +pub const TIOCM_DTR: u32 = 2; +pub const TIOCM_RTS: u32 = 4; +pub const TIOCM_ST: u32 = 8; +pub const TIOCM_SR: u32 = 16; +pub const TIOCM_CTS: u32 = 32; +pub const TIOCM_CAR: u32 = 64; +pub const TIOCM_RNG: u32 = 128; +pub const TIOCM_DSR: u32 = 256; +pub const TIOCM_CD: u32 = 64; +pub const TIOCM_RI: u32 = 128; +pub const TIOCM_OUT1: u32 = 8192; +pub const TIOCM_OUT2: u32 = 16384; +pub const TIOCM_LOOP: u32 = 32768; +pub const ITIMER_REAL: u32 = 0; +pub const ITIMER_VIRTUAL: u32 = 1; +pub const ITIMER_PROF: u32 = 2; +pub const CLOCK_REALTIME: u32 = 0; +pub const CLOCK_MONOTONIC: u32 = 1; +pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; +pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; +pub const CLOCK_MONOTONIC_RAW: u32 = 4; +pub const CLOCK_REALTIME_COARSE: u32 = 5; +pub const CLOCK_MONOTONIC_COARSE: u32 = 6; +pub const CLOCK_BOOTTIME: u32 = 7; +pub const CLOCK_REALTIME_ALARM: u32 = 8; +pub const CLOCK_BOOTTIME_ALARM: u32 = 9; +pub const CLOCK_SGI_CYCLE: u32 = 10; +pub const CLOCK_TAI: u32 = 11; +pub const MAX_CLOCKS: u32 = 16; +pub const CLOCKS_MASK: u32 = 1; +pub const CLOCKS_MONO: u32 = 1; +pub const TIMER_ABSTIME: u32 = 1; +pub const UIO_FASTIOV: u32 = 8; +pub const UIO_MAXIOV: u32 = 1024; +pub const __NR_OABI_SYSCALL_BASE: u32 = 9437184; +pub const __NR_SYSCALL_MASK: u32 = 1048575; +pub const __NR_SYSCALL_BASE: u32 = 0; +pub const __NR_restart_syscall: u32 = 0; +pub const __NR_exit: u32 = 1; +pub const __NR_fork: u32 = 2; +pub const __NR_read: u32 = 3; +pub const __NR_write: u32 = 4; +pub const __NR_open: u32 = 5; +pub const __NR_close: u32 = 6; +pub const __NR_creat: u32 = 8; +pub const __NR_link: u32 = 9; +pub const __NR_unlink: u32 = 10; +pub const __NR_execve: u32 = 11; +pub const __NR_chdir: u32 = 12; +pub const __NR_mknod: u32 = 14; +pub const __NR_chmod: u32 = 15; +pub const __NR_lchown: u32 = 16; +pub const __NR_lseek: u32 = 19; +pub const __NR_getpid: u32 = 20; +pub const __NR_mount: u32 = 21; +pub const __NR_setuid: u32 = 23; +pub const __NR_getuid: u32 = 24; +pub const __NR_ptrace: u32 = 26; +pub const __NR_pause: u32 = 29; +pub const __NR_access: u32 = 33; +pub const __NR_nice: u32 = 34; +pub const __NR_sync: u32 = 36; +pub const __NR_kill: u32 = 37; +pub const __NR_rename: u32 = 38; +pub const __NR_mkdir: u32 = 39; +pub const __NR_rmdir: u32 = 40; +pub const __NR_dup: u32 = 41; +pub const __NR_pipe: u32 = 42; +pub const __NR_times: u32 = 43; +pub const __NR_brk: u32 = 45; +pub const __NR_setgid: u32 = 46; +pub const __NR_getgid: u32 = 47; +pub const __NR_geteuid: u32 = 49; +pub const __NR_getegid: u32 = 50; +pub const __NR_acct: u32 = 51; +pub const __NR_umount2: u32 = 52; +pub const __NR_ioctl: u32 = 54; +pub const __NR_fcntl: u32 = 55; +pub const __NR_setpgid: u32 = 57; +pub const __NR_umask: u32 = 60; +pub const __NR_chroot: u32 = 61; +pub const __NR_ustat: u32 = 62; +pub const __NR_dup2: u32 = 63; +pub const __NR_getppid: u32 = 64; +pub const __NR_getpgrp: u32 = 65; +pub const __NR_setsid: u32 = 66; +pub const __NR_sigaction: u32 = 67; +pub const __NR_setreuid: u32 = 70; +pub const __NR_setregid: u32 = 71; +pub const __NR_sigsuspend: u32 = 72; +pub const __NR_sigpending: u32 = 73; +pub const __NR_sethostname: u32 = 74; +pub const __NR_setrlimit: u32 = 75; +pub const __NR_getrusage: u32 = 77; +pub const __NR_gettimeofday: u32 = 78; +pub const __NR_settimeofday: u32 = 79; +pub const __NR_getgroups: u32 = 80; +pub const __NR_setgroups: u32 = 81; +pub const __NR_symlink: u32 = 83; +pub const __NR_readlink: u32 = 85; +pub const __NR_uselib: u32 = 86; +pub const __NR_swapon: u32 = 87; +pub const __NR_reboot: u32 = 88; +pub const __NR_munmap: u32 = 91; +pub const __NR_truncate: u32 = 92; +pub const __NR_ftruncate: u32 = 93; +pub const __NR_fchmod: u32 = 94; +pub const __NR_fchown: u32 = 95; +pub const __NR_getpriority: u32 = 96; +pub const __NR_setpriority: u32 = 97; +pub const __NR_statfs: u32 = 99; +pub const __NR_fstatfs: u32 = 100; +pub const __NR_syslog: u32 = 103; +pub const __NR_setitimer: u32 = 104; +pub const __NR_getitimer: u32 = 105; +pub const __NR_stat: u32 = 106; +pub const __NR_lstat: u32 = 107; +pub const __NR_fstat: u32 = 108; +pub const __NR_vhangup: u32 = 111; +pub const __NR_wait4: u32 = 114; +pub const __NR_swapoff: u32 = 115; +pub const __NR_sysinfo: u32 = 116; +pub const __NR_fsync: u32 = 118; +pub const __NR_sigreturn: u32 = 119; +pub const __NR_clone: u32 = 120; +pub const __NR_setdomainname: u32 = 121; +pub const __NR_uname: u32 = 122; +pub const __NR_adjtimex: u32 = 124; +pub const __NR_mprotect: u32 = 125; +pub const __NR_sigprocmask: u32 = 126; +pub const __NR_init_module: u32 = 128; +pub const __NR_delete_module: u32 = 129; +pub const __NR_quotactl: u32 = 131; +pub const __NR_getpgid: u32 = 132; +pub const __NR_fchdir: u32 = 133; +pub const __NR_bdflush: u32 = 134; +pub const __NR_sysfs: u32 = 135; +pub const __NR_personality: u32 = 136; +pub const __NR_setfsuid: u32 = 138; +pub const __NR_setfsgid: u32 = 139; +pub const __NR__llseek: u32 = 140; +pub const __NR_getdents: u32 = 141; +pub const __NR__newselect: u32 = 142; +pub const __NR_flock: u32 = 143; +pub const __NR_msync: u32 = 144; +pub const __NR_readv: u32 = 145; +pub const __NR_writev: u32 = 146; +pub const __NR_getsid: u32 = 147; +pub const __NR_fdatasync: u32 = 148; +pub const __NR__sysctl: u32 = 149; +pub const __NR_mlock: u32 = 150; +pub const __NR_munlock: u32 = 151; +pub const __NR_mlockall: u32 = 152; +pub const __NR_munlockall: u32 = 153; +pub const __NR_sched_setparam: u32 = 154; +pub const __NR_sched_getparam: u32 = 155; +pub const __NR_sched_setscheduler: u32 = 156; +pub const __NR_sched_getscheduler: u32 = 157; +pub const __NR_sched_yield: u32 = 158; +pub const __NR_sched_get_priority_max: u32 = 159; +pub const __NR_sched_get_priority_min: u32 = 160; +pub const __NR_sched_rr_get_interval: u32 = 161; +pub const __NR_nanosleep: u32 = 162; +pub const __NR_mremap: u32 = 163; +pub const __NR_setresuid: u32 = 164; +pub const __NR_getresuid: u32 = 165; +pub const __NR_poll: u32 = 168; +pub const __NR_nfsservctl: u32 = 169; +pub const __NR_setresgid: u32 = 170; +pub const __NR_getresgid: u32 = 171; +pub const __NR_prctl: u32 = 172; +pub const __NR_rt_sigreturn: u32 = 173; +pub const __NR_rt_sigaction: u32 = 174; +pub const __NR_rt_sigprocmask: u32 = 175; +pub const __NR_rt_sigpending: u32 = 176; +pub const __NR_rt_sigtimedwait: u32 = 177; +pub const __NR_rt_sigqueueinfo: u32 = 178; +pub const __NR_rt_sigsuspend: u32 = 179; +pub const __NR_pread64: u32 = 180; +pub const __NR_pwrite64: u32 = 181; +pub const __NR_chown: u32 = 182; +pub const __NR_getcwd: u32 = 183; +pub const __NR_capget: u32 = 184; +pub const __NR_capset: u32 = 185; +pub const __NR_sigaltstack: u32 = 186; +pub const __NR_sendfile: u32 = 187; +pub const __NR_vfork: u32 = 190; +pub const __NR_ugetrlimit: u32 = 191; +pub const __NR_mmap2: u32 = 192; +pub const __NR_truncate64: u32 = 193; +pub const __NR_ftruncate64: u32 = 194; +pub const __NR_stat64: u32 = 195; +pub const __NR_lstat64: u32 = 196; +pub const __NR_fstat64: u32 = 197; +pub const __NR_lchown32: u32 = 198; +pub const __NR_getuid32: u32 = 199; +pub const __NR_getgid32: u32 = 200; +pub const __NR_geteuid32: u32 = 201; +pub const __NR_getegid32: u32 = 202; +pub const __NR_setreuid32: u32 = 203; +pub const __NR_setregid32: u32 = 204; +pub const __NR_getgroups32: u32 = 205; +pub const __NR_setgroups32: u32 = 206; +pub const __NR_fchown32: u32 = 207; +pub const __NR_setresuid32: u32 = 208; +pub const __NR_getresuid32: u32 = 209; +pub const __NR_setresgid32: u32 = 210; +pub const __NR_getresgid32: u32 = 211; +pub const __NR_chown32: u32 = 212; +pub const __NR_setuid32: u32 = 213; +pub const __NR_setgid32: u32 = 214; +pub const __NR_setfsuid32: u32 = 215; +pub const __NR_setfsgid32: u32 = 216; +pub const __NR_getdents64: u32 = 217; +pub const __NR_pivot_root: u32 = 218; +pub const __NR_mincore: u32 = 219; +pub const __NR_madvise: u32 = 220; +pub const __NR_fcntl64: u32 = 221; +pub const __NR_gettid: u32 = 224; +pub const __NR_readahead: u32 = 225; +pub const __NR_setxattr: u32 = 226; +pub const __NR_lsetxattr: u32 = 227; +pub const __NR_fsetxattr: u32 = 228; +pub const __NR_getxattr: u32 = 229; +pub const __NR_lgetxattr: u32 = 230; +pub const __NR_fgetxattr: u32 = 231; +pub const __NR_listxattr: u32 = 232; +pub const __NR_llistxattr: u32 = 233; +pub const __NR_flistxattr: u32 = 234; +pub const __NR_removexattr: u32 = 235; +pub const __NR_lremovexattr: u32 = 236; +pub const __NR_fremovexattr: u32 = 237; +pub const __NR_tkill: u32 = 238; +pub const __NR_sendfile64: u32 = 239; +pub const __NR_futex: u32 = 240; +pub const __NR_sched_setaffinity: u32 = 241; +pub const __NR_sched_getaffinity: u32 = 242; +pub const __NR_io_setup: u32 = 243; +pub const __NR_io_destroy: u32 = 244; +pub const __NR_io_getevents: u32 = 245; +pub const __NR_io_submit: u32 = 246; +pub const __NR_io_cancel: u32 = 247; +pub const __NR_exit_group: u32 = 248; +pub const __NR_lookup_dcookie: u32 = 249; +pub const __NR_epoll_create: u32 = 250; +pub const __NR_epoll_ctl: u32 = 251; +pub const __NR_epoll_wait: u32 = 252; +pub const __NR_remap_file_pages: u32 = 253; +pub const __NR_set_tid_address: u32 = 256; +pub const __NR_timer_create: u32 = 257; +pub const __NR_timer_settime: u32 = 258; +pub const __NR_timer_gettime: u32 = 259; +pub const __NR_timer_getoverrun: u32 = 260; +pub const __NR_timer_delete: u32 = 261; +pub const __NR_clock_settime: u32 = 262; +pub const __NR_clock_gettime: u32 = 263; +pub const __NR_clock_getres: u32 = 264; +pub const __NR_clock_nanosleep: u32 = 265; +pub const __NR_statfs64: u32 = 266; +pub const __NR_fstatfs64: u32 = 267; +pub const __NR_tgkill: u32 = 268; +pub const __NR_utimes: u32 = 269; +pub const __NR_arm_fadvise64_64: u32 = 270; +pub const __NR_pciconfig_iobase: u32 = 271; +pub const __NR_pciconfig_read: u32 = 272; +pub const __NR_pciconfig_write: u32 = 273; +pub const __NR_mq_open: u32 = 274; +pub const __NR_mq_unlink: u32 = 275; +pub const __NR_mq_timedsend: u32 = 276; +pub const __NR_mq_timedreceive: u32 = 277; +pub const __NR_mq_notify: u32 = 278; +pub const __NR_mq_getsetattr: u32 = 279; +pub const __NR_waitid: u32 = 280; +pub const __NR_socket: u32 = 281; +pub const __NR_bind: u32 = 282; +pub const __NR_connect: u32 = 283; +pub const __NR_listen: u32 = 284; +pub const __NR_accept: u32 = 285; +pub const __NR_getsockname: u32 = 286; +pub const __NR_getpeername: u32 = 287; +pub const __NR_socketpair: u32 = 288; +pub const __NR_send: u32 = 289; +pub const __NR_sendto: u32 = 290; +pub const __NR_recv: u32 = 291; +pub const __NR_recvfrom: u32 = 292; +pub const __NR_shutdown: u32 = 293; +pub const __NR_setsockopt: u32 = 294; +pub const __NR_getsockopt: u32 = 295; +pub const __NR_sendmsg: u32 = 296; +pub const __NR_recvmsg: u32 = 297; +pub const __NR_semop: u32 = 298; +pub const __NR_semget: u32 = 299; +pub const __NR_semctl: u32 = 300; +pub const __NR_msgsnd: u32 = 301; +pub const __NR_msgrcv: u32 = 302; +pub const __NR_msgget: u32 = 303; +pub const __NR_msgctl: u32 = 304; +pub const __NR_shmat: u32 = 305; +pub const __NR_shmdt: u32 = 306; +pub const __NR_shmget: u32 = 307; +pub const __NR_shmctl: u32 = 308; +pub const __NR_add_key: u32 = 309; +pub const __NR_request_key: u32 = 310; +pub const __NR_keyctl: u32 = 311; +pub const __NR_semtimedop: u32 = 312; +pub const __NR_vserver: u32 = 313; +pub const __NR_ioprio_set: u32 = 314; +pub const __NR_ioprio_get: u32 = 315; +pub const __NR_inotify_init: u32 = 316; +pub const __NR_inotify_add_watch: u32 = 317; +pub const __NR_inotify_rm_watch: u32 = 318; +pub const __NR_mbind: u32 = 319; +pub const __NR_get_mempolicy: u32 = 320; +pub const __NR_set_mempolicy: u32 = 321; +pub const __NR_openat: u32 = 322; +pub const __NR_mkdirat: u32 = 323; +pub const __NR_mknodat: u32 = 324; +pub const __NR_fchownat: u32 = 325; +pub const __NR_futimesat: u32 = 326; +pub const __NR_fstatat64: u32 = 327; +pub const __NR_unlinkat: u32 = 328; +pub const __NR_renameat: u32 = 329; +pub const __NR_linkat: u32 = 330; +pub const __NR_symlinkat: u32 = 331; +pub const __NR_readlinkat: u32 = 332; +pub const __NR_fchmodat: u32 = 333; +pub const __NR_faccessat: u32 = 334; +pub const __NR_pselect6: u32 = 335; +pub const __NR_ppoll: u32 = 336; +pub const __NR_unshare: u32 = 337; +pub const __NR_set_robust_list: u32 = 338; +pub const __NR_get_robust_list: u32 = 339; +pub const __NR_splice: u32 = 340; +pub const __NR_arm_sync_file_range: u32 = 341; +pub const __NR_tee: u32 = 342; +pub const __NR_vmsplice: u32 = 343; +pub const __NR_move_pages: u32 = 344; +pub const __NR_getcpu: u32 = 345; +pub const __NR_epoll_pwait: u32 = 346; +pub const __NR_kexec_load: u32 = 347; +pub const __NR_utimensat: u32 = 348; +pub const __NR_signalfd: u32 = 349; +pub const __NR_timerfd_create: u32 = 350; +pub const __NR_eventfd: u32 = 351; +pub const __NR_fallocate: u32 = 352; +pub const __NR_timerfd_settime: u32 = 353; +pub const __NR_timerfd_gettime: u32 = 354; +pub const __NR_signalfd4: u32 = 355; +pub const __NR_eventfd2: u32 = 356; +pub const __NR_epoll_create1: u32 = 357; +pub const __NR_dup3: u32 = 358; +pub const __NR_pipe2: u32 = 359; +pub const __NR_inotify_init1: u32 = 360; +pub const __NR_preadv: u32 = 361; +pub const __NR_pwritev: u32 = 362; +pub const __NR_rt_tgsigqueueinfo: u32 = 363; +pub const __NR_perf_event_open: u32 = 364; +pub const __NR_recvmmsg: u32 = 365; +pub const __NR_accept4: u32 = 366; +pub const __NR_fanotify_init: u32 = 367; +pub const __NR_fanotify_mark: u32 = 368; +pub const __NR_prlimit64: u32 = 369; +pub const __NR_name_to_handle_at: u32 = 370; +pub const __NR_open_by_handle_at: u32 = 371; +pub const __NR_clock_adjtime: u32 = 372; +pub const __NR_syncfs: u32 = 373; +pub const __NR_sendmmsg: u32 = 374; +pub const __NR_setns: u32 = 375; +pub const __NR_process_vm_readv: u32 = 376; +pub const __NR_process_vm_writev: u32 = 377; +pub const __NR_kcmp: u32 = 378; +pub const __NR_finit_module: u32 = 379; +pub const __NR_sched_setattr: u32 = 380; +pub const __NR_sched_getattr: u32 = 381; +pub const __NR_renameat2: u32 = 382; +pub const __NR_seccomp: u32 = 383; +pub const __NR_getrandom: u32 = 384; +pub const __NR_memfd_create: u32 = 385; +pub const __NR_bpf: u32 = 386; +pub const __NR_execveat: u32 = 387; +pub const __NR_userfaultfd: u32 = 388; +pub const __NR_membarrier: u32 = 389; +pub const __NR_mlock2: u32 = 390; +pub const __NR_copy_file_range: u32 = 391; +pub const __NR_preadv2: u32 = 392; +pub const __NR_pwritev2: u32 = 393; +pub const __NR_pkey_mprotect: u32 = 394; +pub const __NR_pkey_alloc: u32 = 395; +pub const __NR_pkey_free: u32 = 396; +pub const __NR_statx: u32 = 397; +pub const __NR_rseq: u32 = 398; +pub const __NR_io_pgetevents: u32 = 399; +pub const __NR_migrate_pages: u32 = 400; +pub const __NR_kexec_file_load: u32 = 401; +pub const __NR_clock_gettime64: u32 = 403; +pub const __NR_clock_settime64: u32 = 404; +pub const __NR_clock_adjtime64: u32 = 405; +pub const __NR_clock_getres_time64: u32 = 406; +pub const __NR_clock_nanosleep_time64: u32 = 407; +pub const __NR_timer_gettime64: u32 = 408; +pub const __NR_timer_settime64: u32 = 409; +pub const __NR_timerfd_gettime64: u32 = 410; +pub const __NR_timerfd_settime64: u32 = 411; +pub const __NR_utimensat_time64: u32 = 412; +pub const __NR_pselect6_time64: u32 = 413; +pub const __NR_ppoll_time64: u32 = 414; +pub const __NR_io_pgetevents_time64: u32 = 416; +pub const __NR_recvmmsg_time64: u32 = 417; +pub const __NR_mq_timedsend_time64: u32 = 418; +pub const __NR_mq_timedreceive_time64: u32 = 419; +pub const __NR_semtimedop_time64: u32 = 420; +pub const __NR_rt_sigtimedwait_time64: u32 = 421; +pub const __NR_futex_time64: u32 = 422; +pub const __NR_sched_rr_get_interval_time64: u32 = 423; +pub const __NR_pidfd_send_signal: u32 = 424; +pub const __NR_io_uring_setup: u32 = 425; +pub const __NR_io_uring_enter: u32 = 426; +pub const __NR_io_uring_register: u32 = 427; +pub const __NR_open_tree: u32 = 428; +pub const __NR_move_mount: u32 = 429; +pub const __NR_fsopen: u32 = 430; +pub const __NR_fsconfig: u32 = 431; +pub const __NR_fsmount: u32 = 432; +pub const __NR_fspick: u32 = 433; +pub const __NR_pidfd_open: u32 = 434; +pub const __NR_clone3: u32 = 435; +pub const __NR_close_range: u32 = 436; +pub const __NR_openat2: u32 = 437; +pub const __NR_pidfd_getfd: u32 = 438; +pub const __NR_faccessat2: u32 = 439; +pub const __NR_process_madvise: u32 = 440; +pub const __NR_epoll_pwait2: u32 = 441; +pub const __NR_mount_setattr: u32 = 442; +pub const __NR_quotactl_fd: u32 = 443; +pub const __NR_landlock_create_ruleset: u32 = 444; +pub const __NR_landlock_add_rule: u32 = 445; +pub const __NR_landlock_restrict_self: u32 = 446; +pub const __NR_process_mrelease: u32 = 448; +pub const __NR_futex_waitv: u32 = 449; +pub const __NR_set_mempolicy_home_node: u32 = 450; +pub const __NR_cachestat: u32 = 451; +pub const __NR_fchmodat2: u32 = 452; +pub const __NR_map_shadow_stack: u32 = 453; +pub const __NR_futex_wake: u32 = 454; +pub const __NR_futex_wait: u32 = 455; +pub const __NR_futex_requeue: u32 = 456; +pub const __NR_statmount: u32 = 457; +pub const __NR_listmount: u32 = 458; +pub const __NR_lsm_get_self_attr: u32 = 459; +pub const __NR_lsm_set_self_attr: u32 = 460; +pub const __NR_lsm_list_modules: u32 = 461; +pub const __NR_mseal: u32 = 462; +pub const __NR_setxattrat: u32 = 463; +pub const __NR_getxattrat: u32 = 464; +pub const __NR_listxattrat: u32 = 465; +pub const __NR_removexattrat: u32 = 466; +pub const __NR_open_tree_attr: u32 = 467; +pub const __NR_sync_file_range2: u32 = 341; +pub const __ARM_NR_BASE: u32 = 983040; +pub const __ARM_NR_breakpoint: u32 = 983041; +pub const __ARM_NR_cacheflush: u32 = 983042; +pub const __ARM_NR_usr26: u32 = 983043; +pub const __ARM_NR_usr32: u32 = 983044; +pub const __ARM_NR_set_tls: u32 = 983045; +pub const __ARM_NR_get_tls: u32 = 983046; +pub const WNOHANG: u32 = 1; +pub const WUNTRACED: u32 = 2; +pub const WSTOPPED: u32 = 2; +pub const WEXITED: u32 = 4; +pub const WCONTINUED: u32 = 8; +pub const WNOWAIT: u32 = 16777216; +pub const __WNOTHREAD: u32 = 536870912; +pub const __WALL: u32 = 1073741824; +pub const __WCLONE: u32 = 2147483648; +pub const P_ALL: u32 = 0; +pub const P_PID: u32 = 1; +pub const P_PGID: u32 = 2; +pub const P_PIDFD: u32 = 3; +pub const XATTR_CREATE: u32 = 1; +pub const XATTR_REPLACE: u32 = 2; +pub const XATTR_OS2_PREFIX: &[u8; 5] = b"os2.\0"; +pub const XATTR_MAC_OSX_PREFIX: &[u8; 5] = b"osx.\0"; +pub const XATTR_BTRFS_PREFIX: &[u8; 7] = b"btrfs.\0"; +pub const XATTR_HURD_PREFIX: &[u8; 5] = b"gnu.\0"; +pub const XATTR_SECURITY_PREFIX: &[u8; 10] = b"security.\0"; +pub const XATTR_SYSTEM_PREFIX: &[u8; 8] = b"system.\0"; +pub const XATTR_TRUSTED_PREFIX: &[u8; 9] = b"trusted.\0"; +pub const XATTR_USER_PREFIX: &[u8; 6] = b"user.\0"; +pub const XATTR_EVM_SUFFIX: &[u8; 4] = b"evm\0"; +pub const XATTR_NAME_EVM: &[u8; 13] = b"security.evm\0"; +pub const XATTR_IMA_SUFFIX: &[u8; 4] = b"ima\0"; +pub const XATTR_NAME_IMA: &[u8; 13] = b"security.ima\0"; +pub const XATTR_SELINUX_SUFFIX: &[u8; 8] = b"selinux\0"; +pub const XATTR_NAME_SELINUX: &[u8; 17] = b"security.selinux\0"; +pub const XATTR_SMACK_SUFFIX: &[u8; 8] = b"SMACK64\0"; +pub const XATTR_SMACK_IPIN: &[u8; 12] = b"SMACK64IPIN\0"; +pub const XATTR_SMACK_IPOUT: &[u8; 13] = b"SMACK64IPOUT\0"; +pub const XATTR_SMACK_EXEC: &[u8; 12] = b"SMACK64EXEC\0"; +pub const XATTR_SMACK_TRANSMUTE: &[u8; 17] = b"SMACK64TRANSMUTE\0"; +pub const XATTR_SMACK_MMAP: &[u8; 12] = b"SMACK64MMAP\0"; +pub const XATTR_NAME_SMACK: &[u8; 17] = b"security.SMACK64\0"; +pub const XATTR_NAME_SMACKIPIN: &[u8; 21] = b"security.SMACK64IPIN\0"; +pub const XATTR_NAME_SMACKIPOUT: &[u8; 22] = b"security.SMACK64IPOUT\0"; +pub const XATTR_NAME_SMACKEXEC: &[u8; 21] = b"security.SMACK64EXEC\0"; +pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26] = b"security.SMACK64TRANSMUTE\0"; +pub const XATTR_NAME_SMACKMMAP: &[u8; 21] = b"security.SMACK64MMAP\0"; +pub const XATTR_APPARMOR_SUFFIX: &[u8; 9] = b"apparmor\0"; +pub const XATTR_NAME_APPARMOR: &[u8; 18] = b"security.apparmor\0"; +pub const XATTR_CAPS_SUFFIX: &[u8; 11] = b"capability\0"; +pub const XATTR_NAME_CAPS: &[u8; 20] = b"security.capability\0"; +pub const XATTR_BPF_LSM_SUFFIX: &[u8; 5] = b"bpf.\0"; +pub const XATTR_NAME_BPF_LSM: &[u8; 14] = b"security.bpf.\0"; +pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17] = b"posix_acl_access\0"; +pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24] = b"system.posix_acl_access\0"; +pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18] = b"posix_acl_default\0"; +pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25] = b"system.posix_acl_default\0"; +pub const MFD_CLOEXEC: u32 = 1; +pub const MFD_ALLOW_SEALING: u32 = 2; +pub const MFD_HUGETLB: u32 = 4; +pub const MFD_NOEXEC_SEAL: u32 = 8; +pub const MFD_EXEC: u32 = 16; +pub const MFD_HUGE_SHIFT: u32 = 26; +pub const MFD_HUGE_MASK: u32 = 63; +pub const MFD_HUGE_64KB: u32 = 1073741824; +pub const MFD_HUGE_512KB: u32 = 1275068416; +pub const MFD_HUGE_1MB: u32 = 1342177280; +pub const MFD_HUGE_2MB: u32 = 1409286144; +pub const MFD_HUGE_8MB: u32 = 1543503872; +pub const MFD_HUGE_16MB: u32 = 1610612736; +pub const MFD_HUGE_32MB: u32 = 1677721600; +pub const MFD_HUGE_256MB: u32 = 1879048192; +pub const MFD_HUGE_512MB: u32 = 1946157056; +pub const MFD_HUGE_1GB: u32 = 2013265920; +pub const MFD_HUGE_2GB: u32 = 2080374784; +pub const MFD_HUGE_16GB: u32 = 2281701376; +pub const TFD_TIMER_ABSTIME: u32 = 1; +pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; +pub const TFD_CLOEXEC: u32 = 524288; +pub const TFD_NONBLOCK: u32 = 2048; +pub const USERFAULTFD_IOC: u32 = 170; +pub const _UFFDIO_REGISTER: u32 = 0; +pub const _UFFDIO_UNREGISTER: u32 = 1; +pub const _UFFDIO_WAKE: u32 = 2; +pub const _UFFDIO_COPY: u32 = 3; +pub const _UFFDIO_ZEROPAGE: u32 = 4; +pub const _UFFDIO_MOVE: u32 = 5; +pub const _UFFDIO_WRITEPROTECT: u32 = 6; +pub const _UFFDIO_CONTINUE: u32 = 7; +pub const _UFFDIO_POISON: u32 = 8; +pub const _UFFDIO_API: u32 = 63; +pub const UFFDIO: u32 = 170; +pub const UFFD_EVENT_PAGEFAULT: u32 = 18; +pub const UFFD_EVENT_FORK: u32 = 19; +pub const UFFD_EVENT_REMAP: u32 = 20; +pub const UFFD_EVENT_REMOVE: u32 = 21; +pub const UFFD_EVENT_UNMAP: u32 = 22; +pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; +pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; +pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; +pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; +pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; +pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; +pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; +pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; +pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; +pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; +pub const UFFD_FEATURE_SIGBUS: u32 = 128; +pub const UFFD_FEATURE_THREAD_ID: u32 = 256; +pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; +pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; +pub const UFFD_FEATURE_EXACT_ADDRESS: u32 = 2048; +pub const UFFD_FEATURE_WP_HUGETLBFS_SHMEM: u32 = 4096; +pub const UFFD_FEATURE_WP_UNPOPULATED: u32 = 8192; +pub const UFFD_FEATURE_POISON: u32 = 16384; +pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; +pub const UFFD_FEATURE_MOVE: u32 = 65536; +pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const DT_UNKNOWN: u32 = 0; +pub const DT_FIFO: u32 = 1; +pub const DT_CHR: u32 = 2; +pub const DT_DIR: u32 = 4; +pub const DT_BLK: u32 = 6; +pub const DT_REG: u32 = 8; +pub const DT_LNK: u32 = 10; +pub const DT_SOCK: u32 = 12; +pub const STAT64_HAS_BROKEN_ST_INO: u32 = 1; +pub const F_OK: u32 = 0; +pub const R_OK: u32 = 4; +pub const W_OK: u32 = 2; +pub const X_OK: u32 = 1; +pub const UTIME_NOW: u32 = 1073741823; +pub const UTIME_OMIT: u32 = 1073741822; +pub const MNT_FORCE: u32 = 1; +pub const MNT_DETACH: u32 = 2; +pub const MNT_EXPIRE: u32 = 4; +pub const UMOUNT_NOFOLLOW: u32 = 8; +pub const UMOUNT_UNUSED: u32 = 2147483648; +pub const STDIN_FILENO: u32 = 0; +pub const STDOUT_FILENO: u32 = 1; +pub const STDERR_FILENO: u32 = 2; +pub const RWF_HIPRI: u32 = 1; +pub const RWF_DSYNC: u32 = 2; +pub const RWF_SYNC: u32 = 4; +pub const RWF_NOWAIT: u32 = 8; +pub const RWF_APPEND: u32 = 16; +pub const EFD_SEMAPHORE: u32 = 1; +pub const EFD_CLOEXEC: u32 = 524288; +pub const EFD_NONBLOCK: u32 = 2048; +pub const EPOLLIN: u32 = 1; +pub const EPOLLPRI: u32 = 2; +pub const EPOLLOUT: u32 = 4; +pub const EPOLLERR: u32 = 8; +pub const EPOLLHUP: u32 = 16; +pub const EPOLLNVAL: u32 = 32; +pub const EPOLLRDNORM: u32 = 64; +pub const EPOLLRDBAND: u32 = 128; +pub const EPOLLWRNORM: u32 = 256; +pub const EPOLLWRBAND: u32 = 512; +pub const EPOLLMSG: u32 = 1024; +pub const EPOLLRDHUP: u32 = 8192; +pub const EPOLLEXCLUSIVE: u32 = 268435456; +pub const EPOLLWAKEUP: u32 = 536870912; +pub const EPOLLONESHOT: u32 = 1073741824; +pub const EPOLLET: u32 = 2147483648; +pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336; +pub const TFD_CREATE_FLAGS: u32 = 526336; +pub const TFD_SETTIME_FLAGS: u32 = 1; +pub const UFFD_API: u32 = 170; +pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; +pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; +pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; +pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; +pub const UFFDIO_COPY_MODE_WP: u32 = 2; +pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; +pub const SPLICE_F_MOVE: u32 = 1; +pub const SPLICE_F_NONBLOCK: u32 = 2; +pub const SPLICE_F_MORE: u32 = 4; +pub const SPLICE_F_GIFT: u32 = 8; +pub const _NSIG: u32 = 64; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum fsconfig_command { +FSCONFIG_SET_FLAG = 0, +FSCONFIG_SET_STRING = 1, +FSCONFIG_SET_BINARY = 2, +FSCONFIG_SET_PATH = 3, +FSCONFIG_SET_PATH_EMPTY = 4, +FSCONFIG_SET_FD = 5, +FSCONFIG_CMD_CREATE = 6, +FSCONFIG_CMD_RECONFIGURE = 7, +FSCONFIG_CMD_CREATE_EXCL = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum procmap_query_flags { +PROCMAP_QUERY_VMA_READABLE = 1, +PROCMAP_QUERY_VMA_WRITABLE = 2, +PROCMAP_QUERY_VMA_EXECUTABLE = 4, +PROCMAP_QUERY_VMA_SHARED = 8, +PROCMAP_QUERY_COVERING_OR_NEXT_VMA = 16, +PROCMAP_QUERY_FILE_BACKED_VMA = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum membarrier_cmd { +MEMBARRIER_CMD_QUERY = 0, +MEMBARRIER_CMD_GLOBAL = 1, +MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, +MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, +MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, +MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, +MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, +MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, +MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, +MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, +MEMBARRIER_CMD_GET_REGISTRATIONS = 512, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum membarrier_cmd_flag { +MEMBARRIER_CMD_FLAG_CPU = 1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { +pub version: __u8, +pub v1: fscrypt_policy_v1, +pub v2: fscrypt_policy_v2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_key_specifier__bindgen_ty_1 { +pub __reserved: [__u8; 32usize], +pub descriptor: [__u8; 8usize], +pub identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union sigaction__bindgen_ty_1 { +pub _sa_handler: __sighandler_t, +pub _sa_sigaction: ::core::option::Option, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union sigval { +pub sival_int: crate::ctypes::c_int, +pub sival_ptr: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __sifields { +pub _kill: __sifields__bindgen_ty_1, +pub _timer: __sifields__bindgen_ty_2, +pub _rt: __sifields__bindgen_ty_3, +pub _sigchld: __sifields__bindgen_ty_4, +pub _sigfault: __sifields__bindgen_ty_5, +pub _sigpoll: __sifields__bindgen_ty_6, +pub _sigsys: __sifields__bindgen_ty_7, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __sifields__bindgen_ty_5__bindgen_ty_1 { +pub _trapno: crate::ctypes::c_int, +pub _addr_lsb: crate::ctypes::c_short, +pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, +pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, +pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union siginfo__bindgen_ty_1 { +pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, +pub _si_pad: [crate::ctypes::c_int; 32usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union sigevent__bindgen_ty_1 { +pub _pad: [crate::ctypes::c_int; 13usize], +pub _tid: crate::ctypes::c_int, +pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union uffd_msg__bindgen_ty_1 { +pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, +pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, +pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, +pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, +pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { +pub ptid: __u32, +} +impl __BindgenBitfieldUnit { +#[inline] +pub const fn new(storage: Storage) -> Self { +Self { storage } +} +} +impl __BindgenBitfieldUnit +where +Storage: AsRef<[u8]> + AsMut<[u8]>, +{ +#[inline] +fn extract_bit(byte: u8, index: usize) -> bool { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +byte & mask == mask +} +#[inline] +pub fn get_bit(&self, index: usize) -> bool { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = self.storage.as_ref()[byte_index]; +Self::extract_bit(byte, index) +} +#[inline] +pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; +Self::extract_bit(byte, index) +} +#[inline] +fn change_bit(byte: u8, index: usize, val: bool) -> u8 { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +if val { +byte | mask +} else { +byte & !mask +} +} +#[inline] +pub fn set_bit(&mut self, index: usize, val: bool) { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = &mut self.storage.as_mut()[byte_index]; +*byte = Self::change_bit(*byte, index, val); +} +#[inline] +pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; +} +#[inline] +pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if self.get_bit(i + bit_offset) { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +self.set_bit(index + bit_offset, val_bit_is_set); +} +} +#[inline] +pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +} +} +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl membarrier_cmd { +pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; +} +impl user_desc { +#[inline] +pub fn seg_32bit(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn contents(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +} +#[inline] +pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 2u8, val as u64) +} +} +#[inline] +pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +} +#[inline] +pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +} +} +#[inline] +pub fn read_exec_only(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +} +#[inline] +pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +} +} +#[inline] +pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +} +#[inline] +pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +} +} +#[inline] +pub fn seg_not_present(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +} +#[inline] +pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(5usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +} +} +#[inline] +pub fn useable(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +} +#[inline] +pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(6usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; +seg_32bit as u64 +}); +__bindgen_bitfield_unit.set(1usize, 2u8, { +let contents: u32 = unsafe { ::core::mem::transmute(contents) }; +contents as u64 +}); +__bindgen_bitfield_unit.set(3usize, 1u8, { +let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; +read_exec_only as u64 +}); +__bindgen_bitfield_unit.set(4usize, 1u8, { +let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; +limit_in_pages as u64 +}); +__bindgen_bitfield_unit.set(5usize, 1u8, { +let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; +seg_not_present as u64 +}); +__bindgen_bitfield_unit.set(6usize, 1u8, { +let useable: u32 = unsafe { ::core::mem::transmute(useable) }; +useable as u64 +}); +__bindgen_bitfield_unit +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/if_arp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/if_arp.rs new file mode 100644 index 0000000000000000000000000000000000000000..b506e6db12ec42f1b4fbfe22f7e1d28e91ac4061 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/if_arp.rs @@ -0,0 +1,2789 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_sa_family_t = crate::ctypes::c_ushort; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __kernel_sockaddr_storage { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { +pub ss_family: __kernel_sa_family_t, +pub __data: [crate::ctypes::c_char; 126usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sockaddr { +pub __storage: __kernel_sockaddr_storage, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sync_serial_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct te1_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +pub slot_map: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct raw_hdlc_proto { +pub encoding: crate::ctypes::c_ushort, +pub parity: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto { +pub t391: crate::ctypes::c_uint, +pub t392: crate::ctypes::c_uint, +pub n391: crate::ctypes::c_uint, +pub n392: crate::ctypes::c_uint, +pub n393: crate::ctypes::c_uint, +pub lmi: crate::ctypes::c_ushort, +pub dce: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc { +pub dlci: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc_info { +pub dlci: crate::ctypes::c_uint, +pub master: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cisco_proto { +pub interval: crate::ctypes::c_uint, +pub timeout: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct x25_hdlc_proto { +pub dce: crate::ctypes::c_ushort, +pub modulo: crate::ctypes::c_uint, +pub window: crate::ctypes::c_uint, +pub t1: crate::ctypes::c_uint, +pub t2: crate::ctypes::c_uint, +pub n2: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifmap { +pub mem_start: crate::ctypes::c_ulong, +pub mem_end: crate::ctypes::c_ulong, +pub base_addr: crate::ctypes::c_ushort, +pub irq: crate::ctypes::c_uchar, +pub dma: crate::ctypes::c_uchar, +pub port: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct if_settings { +pub type_: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +pub ifs_ifsu: if_settings__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifreq { +pub ifr_ifrn: ifreq__bindgen_ty_1, +pub ifr_ifru: ifreq__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifconf { +pub ifc_len: crate::ctypes::c_int, +pub ifc_ifcu: ifconf__bindgen_ty_1, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct ethhdr { +pub h_dest: [crate::ctypes::c_uchar; 6usize], +pub h_source: [crate::ctypes::c_uchar; 6usize], +pub h_proto: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_pkt { +pub spkt_family: crate::ctypes::c_ushort, +pub spkt_device: [crate::ctypes::c_uchar; 14usize], +pub spkt_protocol: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_ll { +pub sll_family: crate::ctypes::c_ushort, +pub sll_protocol: __be16, +pub sll_ifindex: crate::ctypes::c_int, +pub sll_hatype: crate::ctypes::c_ushort, +pub sll_pkttype: crate::ctypes::c_uchar, +pub sll_halen: crate::ctypes::c_uchar, +pub sll_addr: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats_v3 { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +pub tp_freeze_q_cnt: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_rollover_stats { +pub tp_all: __u64, +pub tp_huge: __u64, +pub tp_failed: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_auxdata { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr { +pub tp_status: crate::ctypes::c_ulong, +pub tp_len: crate::ctypes::c_uint, +pub tp_snaplen: crate::ctypes::c_uint, +pub tp_mac: crate::ctypes::c_ushort, +pub tp_net: crate::ctypes::c_ushort, +pub tp_sec: crate::ctypes::c_uint, +pub tp_usec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket2_hdr { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +pub tp_padding: [__u8; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr_variant1 { +pub tp_rxhash: __u32, +pub tp_vlan_tci: __u32, +pub tp_vlan_tpid: __u16, +pub tp_padding: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket3_hdr { +pub tp_next_offset: __u32, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_snaplen: __u32, +pub tp_len: __u32, +pub tp_status: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub __bindgen_anon_1: tpacket3_hdr__bindgen_ty_1, +pub tp_padding: [__u8; 8usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_bd_ts { +pub ts_sec: crate::ctypes::c_uint, +pub __bindgen_anon_1: tpacket_bd_ts__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_hdr_v1 { +pub block_status: __u32, +pub num_pkts: __u32, +pub offset_to_first_pkt: __u32, +pub blk_len: __u32, +pub seq_num: __u64, +pub ts_first_pkt: tpacket_bd_ts, +pub ts_last_pkt: tpacket_bd_ts, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_block_desc { +pub version: __u32, +pub offset_to_priv: __u32, +pub hdr: tpacket_bd_header_u, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req3 { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +pub tp_retire_blk_tov: crate::ctypes::c_uint, +pub tp_sizeof_priv: crate::ctypes::c_uint, +pub tp_feature_req_word: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct packet_mreq { +pub mr_ifindex: crate::ctypes::c_int, +pub mr_type: crate::ctypes::c_ushort, +pub mr_alen: crate::ctypes::c_ushort, +pub mr_address: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fanout_args { +pub id: __u16, +pub type_flags: __u16, +pub max_num_members: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_nl { +pub nl_family: __kernel_sa_family_t, +pub nl_pad: crate::ctypes::c_ushort, +pub nl_pid: __u32, +pub nl_groups: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsghdr { +pub nlmsg_len: __u32, +pub nlmsg_type: __u16, +pub nlmsg_flags: __u16, +pub nlmsg_seq: __u32, +pub nlmsg_pid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsgerr { +pub error: crate::ctypes::c_int, +pub msg: nlmsghdr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_pktinfo { +pub group: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_req { +pub nm_block_size: crate::ctypes::c_uint, +pub nm_block_nr: crate::ctypes::c_uint, +pub nm_frame_size: crate::ctypes::c_uint, +pub nm_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_hdr { +pub nm_status: crate::ctypes::c_uint, +pub nm_len: crate::ctypes::c_uint, +pub nm_group: __u32, +pub nm_pid: __u32, +pub nm_uid: __u32, +pub nm_gid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlattr { +pub nla_len: __u16, +pub nla_type: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nla_bitfield32 { +pub value: __u32, +pub selector: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats { +pub rx_packets: __u32, +pub tx_packets: __u32, +pub rx_bytes: __u32, +pub tx_bytes: __u32, +pub rx_errors: __u32, +pub tx_errors: __u32, +pub rx_dropped: __u32, +pub tx_dropped: __u32, +pub multicast: __u32, +pub collisions: __u32, +pub rx_length_errors: __u32, +pub rx_over_errors: __u32, +pub rx_crc_errors: __u32, +pub rx_frame_errors: __u32, +pub rx_fifo_errors: __u32, +pub rx_missed_errors: __u32, +pub tx_aborted_errors: __u32, +pub tx_carrier_errors: __u32, +pub tx_fifo_errors: __u32, +pub tx_heartbeat_errors: __u32, +pub tx_window_errors: __u32, +pub rx_compressed: __u32, +pub tx_compressed: __u32, +pub rx_nohandler: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +pub collisions: __u64, +pub rx_length_errors: __u64, +pub rx_over_errors: __u64, +pub rx_crc_errors: __u64, +pub rx_frame_errors: __u64, +pub rx_fifo_errors: __u64, +pub rx_missed_errors: __u64, +pub tx_aborted_errors: __u64, +pub tx_carrier_errors: __u64, +pub tx_fifo_errors: __u64, +pub tx_heartbeat_errors: __u64, +pub tx_window_errors: __u64, +pub rx_compressed: __u64, +pub tx_compressed: __u64, +pub rx_nohandler: __u64, +pub rx_otherhost_dropped: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_hw_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_ifmap { +pub mem_start: __u64, +pub mem_end: __u64, +pub base_addr: __u64, +pub irq: __u16, +pub dma: __u8, +pub port: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_bridge_id { +pub prio: [__u8; 2usize], +pub addr: [__u8; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_cacheinfo { +pub max_reasm_len: __u32, +pub tstamp: __u32, +pub reachable_time: __u32, +pub retrans_time: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_qos_mapping { +pub from: __u32, +pub to: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tunnel_msg { +pub family: __u8, +pub flags: __u8, +pub reserved2: __u16, +pub ifindex: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vxlan_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_geneve_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_mac { +pub vf: __u32, +pub mac: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_broadcast { +pub broadcast: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan_info { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +pub vlan_proto: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_tx_rate { +pub vf: __u32, +pub rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rate { +pub vf: __u32, +pub min_tx_rate: __u32, +pub max_tx_rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_spoofchk { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_guid { +pub vf: __u32, +pub guid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_link_state { +pub vf: __u32, +pub link_state: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rss_query_en { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_trust { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_port_vsi { +pub vsi_mgr_id: __u8, +pub vsi_type_id: [__u8; 3usize], +pub vsi_type_version: __u8, +pub pad: [__u8; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct if_stats_msg { +pub family: __u8, +pub pad1: __u8, +pub pad2: __u16, +pub ifindex: __u32, +pub filter_mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_rmnet_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct arpreq { +pub arp_pa: sockaddr, +pub arp_ha: sockaddr, +pub arp_flags: crate::ctypes::c_int, +pub arp_netmask: sockaddr, +pub arp_dev: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct arpreq_old { +pub arp_pa: sockaddr, +pub arp_ha: sockaddr, +pub arp_flags: crate::ctypes::c_int, +pub arp_netmask: sockaddr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct arphdr { +pub ar_hrd: __be16, +pub ar_pro: __be16, +pub ar_hln: crate::ctypes::c_uchar, +pub ar_pln: crate::ctypes::c_uchar, +pub ar_op: __be16, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _K_SS_MAXSIZE: u32 = 128; +pub const SOCK_SNDBUF_LOCK: u32 = 1; +pub const SOCK_RCVBUF_LOCK: u32 = 2; +pub const SOCK_BUF_LOCK_MASK: u32 = 3; +pub const SOCK_TXREHASH_DEFAULT: u32 = 255; +pub const SOCK_TXREHASH_DISABLED: u32 = 0; +pub const SOCK_TXREHASH_ENABLED: u32 = 1; +pub const IFNAMSIZ: u32 = 16; +pub const IFALIASZ: u32 = 256; +pub const ALTIFNAMSIZ: u32 = 128; +pub const GENERIC_HDLC_VERSION: u32 = 4; +pub const CLOCK_DEFAULT: u32 = 0; +pub const CLOCK_EXT: u32 = 1; +pub const CLOCK_INT: u32 = 2; +pub const CLOCK_TXINT: u32 = 3; +pub const CLOCK_TXFROMRX: u32 = 4; +pub const ENCODING_DEFAULT: u32 = 0; +pub const ENCODING_NRZ: u32 = 1; +pub const ENCODING_NRZI: u32 = 2; +pub const ENCODING_FM_MARK: u32 = 3; +pub const ENCODING_FM_SPACE: u32 = 4; +pub const ENCODING_MANCHESTER: u32 = 5; +pub const PARITY_DEFAULT: u32 = 0; +pub const PARITY_NONE: u32 = 1; +pub const PARITY_CRC16_PR0: u32 = 2; +pub const PARITY_CRC16_PR1: u32 = 3; +pub const PARITY_CRC16_PR0_CCITT: u32 = 4; +pub const PARITY_CRC16_PR1_CCITT: u32 = 5; +pub const PARITY_CRC32_PR0_CCITT: u32 = 6; +pub const PARITY_CRC32_PR1_CCITT: u32 = 7; +pub const LMI_DEFAULT: u32 = 0; +pub const LMI_NONE: u32 = 1; +pub const LMI_ANSI: u32 = 2; +pub const LMI_CCITT: u32 = 3; +pub const LMI_CISCO: u32 = 4; +pub const IF_GET_IFACE: u32 = 1; +pub const IF_GET_PROTO: u32 = 2; +pub const IF_IFACE_V35: u32 = 4096; +pub const IF_IFACE_V24: u32 = 4097; +pub const IF_IFACE_X21: u32 = 4098; +pub const IF_IFACE_T1: u32 = 4099; +pub const IF_IFACE_E1: u32 = 4100; +pub const IF_IFACE_SYNC_SERIAL: u32 = 4101; +pub const IF_IFACE_X21D: u32 = 4102; +pub const IF_PROTO_HDLC: u32 = 8192; +pub const IF_PROTO_PPP: u32 = 8193; +pub const IF_PROTO_CISCO: u32 = 8194; +pub const IF_PROTO_FR: u32 = 8195; +pub const IF_PROTO_FR_ADD_PVC: u32 = 8196; +pub const IF_PROTO_FR_DEL_PVC: u32 = 8197; +pub const IF_PROTO_X25: u32 = 8198; +pub const IF_PROTO_HDLC_ETH: u32 = 8199; +pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200; +pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201; +pub const IF_PROTO_FR_PVC: u32 = 8202; +pub const IF_PROTO_FR_ETH_PVC: u32 = 8203; +pub const IF_PROTO_RAW: u32 = 8204; +pub const IFHWADDRLEN: u32 = 6; +pub const ETH_ALEN: u32 = 6; +pub const ETH_TLEN: u32 = 2; +pub const ETH_HLEN: u32 = 14; +pub const ETH_ZLEN: u32 = 60; +pub const ETH_DATA_LEN: u32 = 1500; +pub const ETH_FRAME_LEN: u32 = 1514; +pub const ETH_FCS_LEN: u32 = 4; +pub const ETH_MIN_MTU: u32 = 68; +pub const ETH_MAX_MTU: u32 = 65535; +pub const ETH_P_LOOP: u32 = 96; +pub const ETH_P_PUP: u32 = 512; +pub const ETH_P_PUPAT: u32 = 513; +pub const ETH_P_TSN: u32 = 8944; +pub const ETH_P_ERSPAN2: u32 = 8939; +pub const ETH_P_IP: u32 = 2048; +pub const ETH_P_X25: u32 = 2053; +pub const ETH_P_ARP: u32 = 2054; +pub const ETH_P_BPQ: u32 = 2303; +pub const ETH_P_IEEEPUP: u32 = 2560; +pub const ETH_P_IEEEPUPAT: u32 = 2561; +pub const ETH_P_BATMAN: u32 = 17157; +pub const ETH_P_DEC: u32 = 24576; +pub const ETH_P_DNA_DL: u32 = 24577; +pub const ETH_P_DNA_RC: u32 = 24578; +pub const ETH_P_DNA_RT: u32 = 24579; +pub const ETH_P_LAT: u32 = 24580; +pub const ETH_P_DIAG: u32 = 24581; +pub const ETH_P_CUST: u32 = 24582; +pub const ETH_P_SCA: u32 = 24583; +pub const ETH_P_TEB: u32 = 25944; +pub const ETH_P_RARP: u32 = 32821; +pub const ETH_P_ATALK: u32 = 32923; +pub const ETH_P_AARP: u32 = 33011; +pub const ETH_P_8021Q: u32 = 33024; +pub const ETH_P_ERSPAN: u32 = 35006; +pub const ETH_P_IPX: u32 = 33079; +pub const ETH_P_IPV6: u32 = 34525; +pub const ETH_P_PAUSE: u32 = 34824; +pub const ETH_P_SLOW: u32 = 34825; +pub const ETH_P_WCCP: u32 = 34878; +pub const ETH_P_MPLS_UC: u32 = 34887; +pub const ETH_P_MPLS_MC: u32 = 34888; +pub const ETH_P_ATMMPOA: u32 = 34892; +pub const ETH_P_PPP_DISC: u32 = 34915; +pub const ETH_P_PPP_SES: u32 = 34916; +pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_ATMFATE: u32 = 34948; +pub const ETH_P_PAE: u32 = 34958; +pub const ETH_P_PROFINET: u32 = 34962; +pub const ETH_P_REALTEK: u32 = 34969; +pub const ETH_P_AOE: u32 = 34978; +pub const ETH_P_ETHERCAT: u32 = 34980; +pub const ETH_P_8021AD: u32 = 34984; +pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_PREAUTH: u32 = 35015; +pub const ETH_P_TIPC: u32 = 35018; +pub const ETH_P_LLDP: u32 = 35020; +pub const ETH_P_MRP: u32 = 35043; +pub const ETH_P_MACSEC: u32 = 35045; +pub const ETH_P_8021AH: u32 = 35047; +pub const ETH_P_MVRP: u32 = 35061; +pub const ETH_P_1588: u32 = 35063; +pub const ETH_P_NCSI: u32 = 35064; +pub const ETH_P_PRP: u32 = 35067; +pub const ETH_P_CFM: u32 = 35074; +pub const ETH_P_FCOE: u32 = 35078; +pub const ETH_P_IBOE: u32 = 35093; +pub const ETH_P_TDLS: u32 = 35085; +pub const ETH_P_FIP: u32 = 35092; +pub const ETH_P_80221: u32 = 35095; +pub const ETH_P_HSR: u32 = 35119; +pub const ETH_P_NSH: u32 = 35151; +pub const ETH_P_LOOPBACK: u32 = 36864; +pub const ETH_P_QINQ1: u32 = 37120; +pub const ETH_P_QINQ2: u32 = 37376; +pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_EDSA: u32 = 56026; +pub const ETH_P_DSA_8021Q: u32 = 56027; +pub const ETH_P_DSA_A5PSW: u32 = 57345; +pub const ETH_P_IFE: u32 = 60734; +pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_802_3_MIN: u32 = 1536; +pub const ETH_P_802_3: u32 = 1; +pub const ETH_P_AX25: u32 = 2; +pub const ETH_P_ALL: u32 = 3; +pub const ETH_P_802_2: u32 = 4; +pub const ETH_P_SNAP: u32 = 5; +pub const ETH_P_DDCMP: u32 = 6; +pub const ETH_P_WAN_PPP: u32 = 7; +pub const ETH_P_PPP_MP: u32 = 8; +pub const ETH_P_LOCALTALK: u32 = 9; +pub const ETH_P_CAN: u32 = 12; +pub const ETH_P_CANFD: u32 = 13; +pub const ETH_P_CANXL: u32 = 14; +pub const ETH_P_PPPTALK: u32 = 16; +pub const ETH_P_TR_802_2: u32 = 17; +pub const ETH_P_MOBITEX: u32 = 21; +pub const ETH_P_CONTROL: u32 = 22; +pub const ETH_P_IRDA: u32 = 23; +pub const ETH_P_ECONET: u32 = 24; +pub const ETH_P_HDLC: u32 = 25; +pub const ETH_P_ARCNET: u32 = 26; +pub const ETH_P_DSA: u32 = 27; +pub const ETH_P_TRAILER: u32 = 28; +pub const ETH_P_PHONET: u32 = 245; +pub const ETH_P_IEEE802154: u32 = 246; +pub const ETH_P_CAIF: u32 = 247; +pub const ETH_P_XDSA: u32 = 248; +pub const ETH_P_MAP: u32 = 249; +pub const ETH_P_MCTP: u32 = 250; +pub const __LITTLE_ENDIAN: u32 = 1234; +pub const PACKET_HOST: u32 = 0; +pub const PACKET_BROADCAST: u32 = 1; +pub const PACKET_MULTICAST: u32 = 2; +pub const PACKET_OTHERHOST: u32 = 3; +pub const PACKET_OUTGOING: u32 = 4; +pub const PACKET_LOOPBACK: u32 = 5; +pub const PACKET_USER: u32 = 6; +pub const PACKET_KERNEL: u32 = 7; +pub const PACKET_FASTROUTE: u32 = 6; +pub const PACKET_ADD_MEMBERSHIP: u32 = 1; +pub const PACKET_DROP_MEMBERSHIP: u32 = 2; +pub const PACKET_RECV_OUTPUT: u32 = 3; +pub const PACKET_RX_RING: u32 = 5; +pub const PACKET_STATISTICS: u32 = 6; +pub const PACKET_COPY_THRESH: u32 = 7; +pub const PACKET_AUXDATA: u32 = 8; +pub const PACKET_ORIGDEV: u32 = 9; +pub const PACKET_VERSION: u32 = 10; +pub const PACKET_HDRLEN: u32 = 11; +pub const PACKET_RESERVE: u32 = 12; +pub const PACKET_TX_RING: u32 = 13; +pub const PACKET_LOSS: u32 = 14; +pub const PACKET_VNET_HDR: u32 = 15; +pub const PACKET_TX_TIMESTAMP: u32 = 16; +pub const PACKET_TIMESTAMP: u32 = 17; +pub const PACKET_FANOUT: u32 = 18; +pub const PACKET_TX_HAS_OFF: u32 = 19; +pub const PACKET_QDISC_BYPASS: u32 = 20; +pub const PACKET_ROLLOVER_STATS: u32 = 21; +pub const PACKET_FANOUT_DATA: u32 = 22; +pub const PACKET_IGNORE_OUTGOING: u32 = 23; +pub const PACKET_VNET_HDR_SZ: u32 = 24; +pub const PACKET_FANOUT_HASH: u32 = 0; +pub const PACKET_FANOUT_LB: u32 = 1; +pub const PACKET_FANOUT_CPU: u32 = 2; +pub const PACKET_FANOUT_ROLLOVER: u32 = 3; +pub const PACKET_FANOUT_RND: u32 = 4; +pub const PACKET_FANOUT_QM: u32 = 5; +pub const PACKET_FANOUT_CBPF: u32 = 6; +pub const PACKET_FANOUT_EBPF: u32 = 7; +pub const PACKET_FANOUT_FLAG_ROLLOVER: u32 = 4096; +pub const PACKET_FANOUT_FLAG_UNIQUEID: u32 = 8192; +pub const PACKET_FANOUT_FLAG_IGNORE_OUTGOING: u32 = 16384; +pub const PACKET_FANOUT_FLAG_DEFRAG: u32 = 32768; +pub const TP_STATUS_KERNEL: u32 = 0; +pub const TP_STATUS_USER: u32 = 1; +pub const TP_STATUS_COPY: u32 = 2; +pub const TP_STATUS_LOSING: u32 = 4; +pub const TP_STATUS_CSUMNOTREADY: u32 = 8; +pub const TP_STATUS_VLAN_VALID: u32 = 16; +pub const TP_STATUS_BLK_TMO: u32 = 32; +pub const TP_STATUS_VLAN_TPID_VALID: u32 = 64; +pub const TP_STATUS_CSUM_VALID: u32 = 128; +pub const TP_STATUS_GSO_TCP: u32 = 256; +pub const TP_STATUS_AVAILABLE: u32 = 0; +pub const TP_STATUS_SEND_REQUEST: u32 = 1; +pub const TP_STATUS_SENDING: u32 = 2; +pub const TP_STATUS_WRONG_FORMAT: u32 = 4; +pub const TP_STATUS_TS_SOFTWARE: u32 = 536870912; +pub const TP_STATUS_TS_SYS_HARDWARE: u32 = 1073741824; +pub const TP_STATUS_TS_RAW_HARDWARE: u32 = 2147483648; +pub const TP_FT_REQ_FILL_RXHASH: u32 = 1; +pub const TPACKET_ALIGNMENT: u32 = 16; +pub const PACKET_MR_MULTICAST: u32 = 0; +pub const PACKET_MR_PROMISC: u32 = 1; +pub const PACKET_MR_ALLMULTI: u32 = 2; +pub const PACKET_MR_UNICAST: u32 = 3; +pub const NETLINK_ROUTE: u32 = 0; +pub const NETLINK_UNUSED: u32 = 1; +pub const NETLINK_USERSOCK: u32 = 2; +pub const NETLINK_FIREWALL: u32 = 3; +pub const NETLINK_SOCK_DIAG: u32 = 4; +pub const NETLINK_NFLOG: u32 = 5; +pub const NETLINK_XFRM: u32 = 6; +pub const NETLINK_SELINUX: u32 = 7; +pub const NETLINK_ISCSI: u32 = 8; +pub const NETLINK_AUDIT: u32 = 9; +pub const NETLINK_FIB_LOOKUP: u32 = 10; +pub const NETLINK_CONNECTOR: u32 = 11; +pub const NETLINK_NETFILTER: u32 = 12; +pub const NETLINK_IP6_FW: u32 = 13; +pub const NETLINK_DNRTMSG: u32 = 14; +pub const NETLINK_KOBJECT_UEVENT: u32 = 15; +pub const NETLINK_GENERIC: u32 = 16; +pub const NETLINK_SCSITRANSPORT: u32 = 18; +pub const NETLINK_ECRYPTFS: u32 = 19; +pub const NETLINK_RDMA: u32 = 20; +pub const NETLINK_CRYPTO: u32 = 21; +pub const NETLINK_SMC: u32 = 22; +pub const NETLINK_INET_DIAG: u32 = 4; +pub const MAX_LINKS: u32 = 32; +pub const NLM_F_REQUEST: u32 = 1; +pub const NLM_F_MULTI: u32 = 2; +pub const NLM_F_ACK: u32 = 4; +pub const NLM_F_ECHO: u32 = 8; +pub const NLM_F_DUMP_INTR: u32 = 16; +pub const NLM_F_DUMP_FILTERED: u32 = 32; +pub const NLM_F_ROOT: u32 = 256; +pub const NLM_F_MATCH: u32 = 512; +pub const NLM_F_ATOMIC: u32 = 1024; +pub const NLM_F_DUMP: u32 = 768; +pub const NLM_F_REPLACE: u32 = 256; +pub const NLM_F_EXCL: u32 = 512; +pub const NLM_F_CREATE: u32 = 1024; +pub const NLM_F_APPEND: u32 = 2048; +pub const NLM_F_NONREC: u32 = 256; +pub const NLM_F_BULK: u32 = 512; +pub const NLM_F_CAPPED: u32 = 256; +pub const NLM_F_ACK_TLVS: u32 = 512; +pub const NLMSG_ALIGNTO: u32 = 4; +pub const NLMSG_NOOP: u32 = 1; +pub const NLMSG_ERROR: u32 = 2; +pub const NLMSG_DONE: u32 = 3; +pub const NLMSG_OVERRUN: u32 = 4; +pub const NLMSG_MIN_TYPE: u32 = 16; +pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; +pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; +pub const NETLINK_PKTINFO: u32 = 3; +pub const NETLINK_BROADCAST_ERROR: u32 = 4; +pub const NETLINK_NO_ENOBUFS: u32 = 5; +pub const NETLINK_RX_RING: u32 = 6; +pub const NETLINK_TX_RING: u32 = 7; +pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; +pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; +pub const NETLINK_CAP_ACK: u32 = 10; +pub const NETLINK_EXT_ACK: u32 = 11; +pub const NETLINK_GET_STRICT_CHK: u32 = 12; +pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; +pub const NET_MAJOR: u32 = 36; +pub const NLA_F_NESTED: u32 = 32768; +pub const NLA_F_NET_BYTEORDER: u32 = 16384; +pub const NLA_TYPE_MASK: i32 = -49153; +pub const NLA_ALIGNTO: u32 = 4; +pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; +pub const MACVLAN_FLAG_NODST: u32 = 2; +pub const IPVLAN_F_PRIVATE: u32 = 1; +pub const IPVLAN_F_VEPA: u32 = 2; +pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; +pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; +pub const MAX_VLAN_LIST_LEN: u32 = 1; +pub const PORT_PROFILE_MAX: u32 = 40; +pub const PORT_UUID_MAX: u32 = 16; +pub const PORT_SELF_VF: i32 = -1; +pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; +pub const XDP_FLAGS_SKB_MODE: u32 = 2; +pub const XDP_FLAGS_DRV_MODE: u32 = 4; +pub const XDP_FLAGS_HW_MODE: u32 = 8; +pub const XDP_FLAGS_REPLACE: u32 = 16; +pub const XDP_FLAGS_MODES: u32 = 14; +pub const XDP_FLAGS_MASK: u32 = 31; +pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; +pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; +pub const MAX_ADDR_LEN: u32 = 32; +pub const INIT_NETDEV_GROUP: u32 = 0; +pub const NET_NAME_UNKNOWN: u32 = 0; +pub const NET_NAME_ENUM: u32 = 1; +pub const NET_NAME_PREDICTABLE: u32 = 2; +pub const NET_NAME_USER: u32 = 3; +pub const NET_NAME_RENAMED: u32 = 4; +pub const NET_ADDR_PERM: u32 = 0; +pub const NET_ADDR_RANDOM: u32 = 1; +pub const NET_ADDR_STOLEN: u32 = 2; +pub const NET_ADDR_SET: u32 = 3; +pub const ARPHRD_NETROM: u32 = 0; +pub const ARPHRD_ETHER: u32 = 1; +pub const ARPHRD_EETHER: u32 = 2; +pub const ARPHRD_AX25: u32 = 3; +pub const ARPHRD_PRONET: u32 = 4; +pub const ARPHRD_CHAOS: u32 = 5; +pub const ARPHRD_IEEE802: u32 = 6; +pub const ARPHRD_ARCNET: u32 = 7; +pub const ARPHRD_APPLETLK: u32 = 8; +pub const ARPHRD_DLCI: u32 = 15; +pub const ARPHRD_ATM: u32 = 19; +pub const ARPHRD_METRICOM: u32 = 23; +pub const ARPHRD_IEEE1394: u32 = 24; +pub const ARPHRD_EUI64: u32 = 27; +pub const ARPHRD_INFINIBAND: u32 = 32; +pub const ARPHRD_SLIP: u32 = 256; +pub const ARPHRD_CSLIP: u32 = 257; +pub const ARPHRD_SLIP6: u32 = 258; +pub const ARPHRD_CSLIP6: u32 = 259; +pub const ARPHRD_RSRVD: u32 = 260; +pub const ARPHRD_ADAPT: u32 = 264; +pub const ARPHRD_ROSE: u32 = 270; +pub const ARPHRD_X25: u32 = 271; +pub const ARPHRD_HWX25: u32 = 272; +pub const ARPHRD_CAN: u32 = 280; +pub const ARPHRD_MCTP: u32 = 290; +pub const ARPHRD_PPP: u32 = 512; +pub const ARPHRD_CISCO: u32 = 513; +pub const ARPHRD_HDLC: u32 = 513; +pub const ARPHRD_LAPB: u32 = 516; +pub const ARPHRD_DDCMP: u32 = 517; +pub const ARPHRD_RAWHDLC: u32 = 518; +pub const ARPHRD_RAWIP: u32 = 519; +pub const ARPHRD_TUNNEL: u32 = 768; +pub const ARPHRD_TUNNEL6: u32 = 769; +pub const ARPHRD_FRAD: u32 = 770; +pub const ARPHRD_SKIP: u32 = 771; +pub const ARPHRD_LOOPBACK: u32 = 772; +pub const ARPHRD_LOCALTLK: u32 = 773; +pub const ARPHRD_FDDI: u32 = 774; +pub const ARPHRD_BIF: u32 = 775; +pub const ARPHRD_SIT: u32 = 776; +pub const ARPHRD_IPDDP: u32 = 777; +pub const ARPHRD_IPGRE: u32 = 778; +pub const ARPHRD_PIMREG: u32 = 779; +pub const ARPHRD_HIPPI: u32 = 780; +pub const ARPHRD_ASH: u32 = 781; +pub const ARPHRD_ECONET: u32 = 782; +pub const ARPHRD_IRDA: u32 = 783; +pub const ARPHRD_FCPP: u32 = 784; +pub const ARPHRD_FCAL: u32 = 785; +pub const ARPHRD_FCPL: u32 = 786; +pub const ARPHRD_FCFABRIC: u32 = 787; +pub const ARPHRD_IEEE802_TR: u32 = 800; +pub const ARPHRD_IEEE80211: u32 = 801; +pub const ARPHRD_IEEE80211_PRISM: u32 = 802; +pub const ARPHRD_IEEE80211_RADIOTAP: u32 = 803; +pub const ARPHRD_IEEE802154: u32 = 804; +pub const ARPHRD_IEEE802154_MONITOR: u32 = 805; +pub const ARPHRD_PHONET: u32 = 820; +pub const ARPHRD_PHONET_PIPE: u32 = 821; +pub const ARPHRD_CAIF: u32 = 822; +pub const ARPHRD_IP6GRE: u32 = 823; +pub const ARPHRD_NETLINK: u32 = 824; +pub const ARPHRD_6LOWPAN: u32 = 825; +pub const ARPHRD_VSOCKMON: u32 = 826; +pub const ARPHRD_VOID: u32 = 65535; +pub const ARPHRD_NONE: u32 = 65534; +pub const ARPOP_REQUEST: u32 = 1; +pub const ARPOP_REPLY: u32 = 2; +pub const ARPOP_RREQUEST: u32 = 3; +pub const ARPOP_RREPLY: u32 = 4; +pub const ARPOP_InREQUEST: u32 = 8; +pub const ARPOP_InREPLY: u32 = 9; +pub const ARPOP_NAK: u32 = 10; +pub const ATF_COM: u32 = 2; +pub const ATF_PERM: u32 = 4; +pub const ATF_PUBL: u32 = 8; +pub const ATF_USETRAILERS: u32 = 16; +pub const ATF_NETMASK: u32 = 32; +pub const ATF_DONTPUB: u32 = 64; +pub const IF_OPER_UNKNOWN: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_UNKNOWN; +pub const IF_OPER_NOTPRESENT: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_NOTPRESENT; +pub const IF_OPER_DOWN: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_DOWN; +pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_LOWERLAYERDOWN; +pub const IF_OPER_TESTING: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_TESTING; +pub const IF_OPER_DORMANT: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_DORMANT; +pub const IF_OPER_UP: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_UP; +pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_2 = _bindgen_ty_2::IF_LINK_MODE_DEFAULT; +pub const IF_LINK_MODE_DORMANT: _bindgen_ty_2 = _bindgen_ty_2::IF_LINK_MODE_DORMANT; +pub const IF_LINK_MODE_TESTING: _bindgen_ty_2 = _bindgen_ty_2::IF_LINK_MODE_TESTING; +pub const NETLINK_UNCONNECTED: _bindgen_ty_3 = _bindgen_ty_3::NETLINK_UNCONNECTED; +pub const NETLINK_CONNECTED: _bindgen_ty_3 = _bindgen_ty_3::NETLINK_CONNECTED; +pub const IFLA_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_UNSPEC; +pub const IFLA_ADDRESS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_ADDRESS; +pub const IFLA_BROADCAST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_BROADCAST; +pub const IFLA_IFNAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IFNAME; +pub const IFLA_MTU: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MTU; +pub const IFLA_LINK: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINK; +pub const IFLA_QDISC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_QDISC; +pub const IFLA_STATS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_STATS; +pub const IFLA_COST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_COST; +pub const IFLA_PRIORITY: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PRIORITY; +pub const IFLA_MASTER: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MASTER; +pub const IFLA_WIRELESS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_WIRELESS; +pub const IFLA_PROTINFO: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROTINFO; +pub const IFLA_TXQLEN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TXQLEN; +pub const IFLA_MAP: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAP; +pub const IFLA_WEIGHT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_WEIGHT; +pub const IFLA_OPERSTATE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_OPERSTATE; +pub const IFLA_LINKMODE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINKMODE; +pub const IFLA_LINKINFO: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINKINFO; +pub const IFLA_NET_NS_PID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NET_NS_PID; +pub const IFLA_IFALIAS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IFALIAS; +pub const IFLA_NUM_VF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NUM_VF; +pub const IFLA_VFINFO_LIST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_VFINFO_LIST; +pub const IFLA_STATS64: _bindgen_ty_4 = _bindgen_ty_4::IFLA_STATS64; +pub const IFLA_VF_PORTS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_VF_PORTS; +pub const IFLA_PORT_SELF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PORT_SELF; +pub const IFLA_AF_SPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_AF_SPEC; +pub const IFLA_GROUP: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GROUP; +pub const IFLA_NET_NS_FD: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NET_NS_FD; +pub const IFLA_EXT_MASK: _bindgen_ty_4 = _bindgen_ty_4::IFLA_EXT_MASK; +pub const IFLA_PROMISCUITY: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROMISCUITY; +pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NUM_TX_QUEUES; +pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NUM_RX_QUEUES; +pub const IFLA_CARRIER: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER; +pub const IFLA_PHYS_PORT_ID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PHYS_PORT_ID; +pub const IFLA_CARRIER_CHANGES: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER_CHANGES; +pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PHYS_SWITCH_ID; +pub const IFLA_LINK_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINK_NETNSID; +pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PHYS_PORT_NAME; +pub const IFLA_PROTO_DOWN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROTO_DOWN; +pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_MAX_SEGS; +pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_MAX_SIZE; +pub const IFLA_PAD: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PAD; +pub const IFLA_XDP: _bindgen_ty_4 = _bindgen_ty_4::IFLA_XDP; +pub const IFLA_EVENT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_EVENT; +pub const IFLA_NEW_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NEW_NETNSID; +pub const IFLA_IF_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IF_NETNSID; +pub const IFLA_TARGET_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IF_NETNSID; +pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER_UP_COUNT; +pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER_DOWN_COUNT; +pub const IFLA_NEW_IFINDEX: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NEW_IFINDEX; +pub const IFLA_MIN_MTU: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MIN_MTU; +pub const IFLA_MAX_MTU: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_MTU; +pub const IFLA_PROP_LIST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROP_LIST; +pub const IFLA_ALT_IFNAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_ALT_IFNAME; +pub const IFLA_PERM_ADDRESS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PERM_ADDRESS; +pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROTO_DOWN_REASON; +pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PARENT_DEV_NAME; +pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PARENT_DEV_BUS_NAME; +pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_MAX_SIZE; +pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TSO_MAX_SIZE; +pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TSO_MAX_SEGS; +pub const IFLA_ALLMULTI: _bindgen_ty_4 = _bindgen_ty_4::IFLA_ALLMULTI; +pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT; +pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE; +pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE; +pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON; +pub const IFLA_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX; +pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC; +pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_MASK; +pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_VALUE; +pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_PROTO_DOWN_REASON_CNT; +pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_VALUE; +pub const IFLA_INET_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_INET_UNSPEC; +pub const IFLA_INET_CONF: _bindgen_ty_6 = _bindgen_ty_6::IFLA_INET_CONF; +pub const __IFLA_INET_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_INET_MAX; +pub const IFLA_INET6_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_UNSPEC; +pub const IFLA_INET6_FLAGS: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_FLAGS; +pub const IFLA_INET6_CONF: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_CONF; +pub const IFLA_INET6_STATS: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_STATS; +pub const IFLA_INET6_MCAST: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_MCAST; +pub const IFLA_INET6_CACHEINFO: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_CACHEINFO; +pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_ICMP6STATS; +pub const IFLA_INET6_TOKEN: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_TOKEN; +pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_ADDR_GEN_MODE; +pub const IFLA_INET6_RA_MTU: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_RA_MTU; +pub const __IFLA_INET6_MAX: _bindgen_ty_7 = _bindgen_ty_7::__IFLA_INET6_MAX; +pub const IFLA_BR_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_UNSPEC; +pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FORWARD_DELAY; +pub const IFLA_BR_HELLO_TIME: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_HELLO_TIME; +pub const IFLA_BR_MAX_AGE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MAX_AGE; +pub const IFLA_BR_AGEING_TIME: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_AGEING_TIME; +pub const IFLA_BR_STP_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_STATE; +pub const IFLA_BR_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_PRIORITY; +pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_FILTERING; +pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_PROTOCOL; +pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_GROUP_FWD_MASK; +pub const IFLA_BR_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_ROOT_ID; +pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_BRIDGE_ID; +pub const IFLA_BR_ROOT_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_ROOT_PORT; +pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_ROOT_PATH_COST; +pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TOPOLOGY_CHANGE; +pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; +pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_HELLO_TIMER; +pub const IFLA_BR_TCN_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TCN_TIMER; +pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TOPOLOGY_CHANGE_TIMER; +pub const IFLA_BR_GC_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_GC_TIMER; +pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_GROUP_ADDR; +pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_FLUSH; +pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_ROUTER; +pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_SNOOPING; +pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERY_USE_IFADDR; +pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER; +pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_HASH_ELASTICITY; +pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_HASH_MAX; +pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_LAST_MEMBER_CNT; +pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_STARTUP_QUERY_CNT; +pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_LAST_MEMBER_INTVL; +pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_MEMBERSHIP_INTVL; +pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_INTVL; +pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERY_INTVL; +pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; +pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; +pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_NF_CALL_IPTABLES; +pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_NF_CALL_IP6TABLES; +pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_NF_CALL_ARPTABLES; +pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_DEFAULT_PVID; +pub const IFLA_BR_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_PAD; +pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_STATS_ENABLED; +pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_STATS_ENABLED; +pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_IGMP_VERSION; +pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_MLD_VERSION; +pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_STATS_PER_PORT; +pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BOOLOPT; +pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; +pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; +pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; +pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; +pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; +pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_UNSPEC; +pub const IFLA_BRPORT_STATE: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_STATE; +pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PRIORITY; +pub const IFLA_BRPORT_COST: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_COST; +pub const IFLA_BRPORT_MODE: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MODE; +pub const IFLA_BRPORT_GUARD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_GUARD; +pub const IFLA_BRPORT_PROTECT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PROTECT; +pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_FAST_LEAVE; +pub const IFLA_BRPORT_LEARNING: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_LEARNING; +pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_UNICAST_FLOOD; +pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PROXYARP; +pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_LEARNING_SYNC; +pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PROXYARP_WIFI; +pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_ROOT_ID; +pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BRIDGE_ID; +pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_DESIGNATED_PORT; +pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_DESIGNATED_COST; +pub const IFLA_BRPORT_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_ID; +pub const IFLA_BRPORT_NO: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NO; +pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; +pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_CONFIG_PENDING; +pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MESSAGE_AGE_TIMER; +pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_FORWARD_DELAY_TIMER; +pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_HOLD_TIMER; +pub const IFLA_BRPORT_FLUSH: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_FLUSH; +pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MULTICAST_ROUTER; +pub const IFLA_BRPORT_PAD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PAD; +pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_FLOOD; +pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_TO_UCAST; +pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_VLAN_TUNNEL; +pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BCAST_FLOOD; +pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_GROUP_FWD_MASK; +pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_SUPPRESS; +pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_ISOLATED; +pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_PORT; +pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MRP_RING_OPEN; +pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MRP_IN_OPEN; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; +pub const IFLA_BRPORT_LOCKED: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_LOCKED; +pub const IFLA_BRPORT_MAB: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MAB; +pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_N_GROUPS; +pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; +pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; +pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; +pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; +pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; +pub const IFLA_INFO_DATA: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_DATA; +pub const IFLA_INFO_XSTATS: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_XSTATS; +pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_SLAVE_KIND; +pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_SLAVE_DATA; +pub const __IFLA_INFO_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_INFO_MAX; +pub const IFLA_VLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_UNSPEC; +pub const IFLA_VLAN_ID: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_ID; +pub const IFLA_VLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_FLAGS; +pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_EGRESS_QOS; +pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_INGRESS_QOS; +pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_PROTOCOL; +pub const __IFLA_VLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_VLAN_MAX; +pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VLAN_QOS_UNSPEC; +pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VLAN_QOS_MAPPING; +pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VLAN_QOS_MAX; +pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_UNSPEC; +pub const IFLA_MACVLAN_MODE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MODE; +pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_FLAGS; +pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR_MODE; +pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR; +pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR_DATA; +pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR_COUNT; +pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_BC_QUEUE_LEN; +pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_BC_QUEUE_LEN_USED; +pub const IFLA_MACVLAN_BC_CUTOFF: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_BC_CUTOFF; +pub const __IFLA_MACVLAN_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_MACVLAN_MAX; +pub const IFLA_VRF_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_VRF_UNSPEC; +pub const IFLA_VRF_TABLE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_VRF_TABLE; +pub const __IFLA_VRF_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_VRF_MAX; +pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_VRF_PORT_UNSPEC; +pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_16 = _bindgen_ty_16::IFLA_VRF_PORT_TABLE; +pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_VRF_PORT_MAX; +pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_UNSPEC; +pub const IFLA_MACSEC_SCI: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_SCI; +pub const IFLA_MACSEC_PORT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_PORT; +pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ICV_LEN; +pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_CIPHER_SUITE; +pub const IFLA_MACSEC_WINDOW: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_WINDOW; +pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ENCODING_SA; +pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ENCRYPT; +pub const IFLA_MACSEC_PROTECT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_PROTECT; +pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_INC_SCI; +pub const IFLA_MACSEC_ES: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ES; +pub const IFLA_MACSEC_SCB: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_SCB; +pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_REPLAY_PROTECT; +pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_VALIDATION; +pub const IFLA_MACSEC_PAD: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_PAD; +pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_OFFLOAD; +pub const __IFLA_MACSEC_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_MACSEC_MAX; +pub const IFLA_XFRM_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_UNSPEC; +pub const IFLA_XFRM_LINK: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_LINK; +pub const IFLA_XFRM_IF_ID: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_IF_ID; +pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_COLLECT_METADATA; +pub const __IFLA_XFRM_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_XFRM_MAX; +pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::IFLA_IPVLAN_UNSPEC; +pub const IFLA_IPVLAN_MODE: _bindgen_ty_19 = _bindgen_ty_19::IFLA_IPVLAN_MODE; +pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_19 = _bindgen_ty_19::IFLA_IPVLAN_FLAGS; +pub const __IFLA_IPVLAN_MAX: _bindgen_ty_19 = _bindgen_ty_19::__IFLA_IPVLAN_MAX; +pub const IFLA_NETKIT_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_UNSPEC; +pub const IFLA_NETKIT_PEER_INFO: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_INFO; +pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PRIMARY; +pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY; +pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY; +pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB; +pub const IFLA_NETKIT_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; +pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX; +pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC; +pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_BYTES; +pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_PKTS; +pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_DROPS; +pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_BYTES; +pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_PKTS; +pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_DROPS; +pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_PAD; +pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_21 = _bindgen_ty_21::__VNIFILTER_ENTRY_STATS_MAX; +pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_START; +pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_END; +pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_GROUP; +pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_GROUP6; +pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_STATS; +pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_22 = _bindgen_ty_22::__VXLAN_VNIFILTER_ENTRY_MAX; +pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::VXLAN_VNIFILTER_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_23 = _bindgen_ty_23::VXLAN_VNIFILTER_ENTRY; +pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_23 = _bindgen_ty_23::__VXLAN_VNIFILTER_MAX; +pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UNSPEC; +pub const IFLA_VXLAN_ID: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_ID; +pub const IFLA_VXLAN_GROUP: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GROUP; +pub const IFLA_VXLAN_LINK: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LINK; +pub const IFLA_VXLAN_LOCAL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LOCAL; +pub const IFLA_VXLAN_TTL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_TTL; +pub const IFLA_VXLAN_TOS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_TOS; +pub const IFLA_VXLAN_LEARNING: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LEARNING; +pub const IFLA_VXLAN_AGEING: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_AGEING; +pub const IFLA_VXLAN_LIMIT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LIMIT; +pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_PORT_RANGE; +pub const IFLA_VXLAN_PROXY: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_PROXY; +pub const IFLA_VXLAN_RSC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_RSC; +pub const IFLA_VXLAN_L2MISS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_L2MISS; +pub const IFLA_VXLAN_L3MISS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_L3MISS; +pub const IFLA_VXLAN_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_PORT; +pub const IFLA_VXLAN_GROUP6: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GROUP6; +pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LOCAL6; +pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UDP_CSUM; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; +pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_REMCSUM_TX; +pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_REMCSUM_RX; +pub const IFLA_VXLAN_GBP: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GBP; +pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_REMCSUM_NOPARTIAL; +pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_COLLECT_METADATA; +pub const IFLA_VXLAN_LABEL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LABEL; +pub const IFLA_VXLAN_GPE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GPE; +pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_TTL_INHERIT; +pub const IFLA_VXLAN_DF: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_DF; +pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_VNIFILTER; +pub const IFLA_VXLAN_LOCALBYPASS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LOCALBYPASS; +pub const IFLA_VXLAN_LABEL_POLICY: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LABEL_POLICY; +pub const IFLA_VXLAN_RESERVED_BITS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_RESERVED_BITS; +pub const __IFLA_VXLAN_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_VXLAN_MAX; +pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UNSPEC; +pub const IFLA_GENEVE_ID: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ID; +pub const IFLA_GENEVE_REMOTE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_REMOTE; +pub const IFLA_GENEVE_TTL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_TTL; +pub const IFLA_GENEVE_TOS: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_TOS; +pub const IFLA_GENEVE_PORT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT; +pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_COLLECT_METADATA; +pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_REMOTE6; +pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UDP_CSUM; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; +pub const IFLA_GENEVE_LABEL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LABEL; +pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_TTL_INHERIT; +pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; +pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; +pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; +pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; +pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; +pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_ETHERTYPE; +pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_SRCPORT_MIN; +pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_MULTIPROTO_MODE; +pub const __IFLA_BAREUDP_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_BAREUDP_MAX; +pub const IFLA_PPP_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_PPP_UNSPEC; +pub const IFLA_PPP_DEV_FD: _bindgen_ty_27 = _bindgen_ty_27::IFLA_PPP_DEV_FD; +pub const __IFLA_PPP_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_PPP_MAX; +pub const IFLA_GTP_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_UNSPEC; +pub const IFLA_GTP_FD0: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_FD0; +pub const IFLA_GTP_FD1: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_FD1; +pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_PDP_HASHSIZE; +pub const IFLA_GTP_ROLE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_ROLE; +pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_CREATE_SOCKETS; +pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_RESTART_COUNT; +pub const IFLA_GTP_LOCAL: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_LOCAL; +pub const IFLA_GTP_LOCAL6: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_LOCAL6; +pub const __IFLA_GTP_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_GTP_MAX; +pub const IFLA_BOND_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_UNSPEC; +pub const IFLA_BOND_MODE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MODE; +pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ACTIVE_SLAVE; +pub const IFLA_BOND_MIIMON: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MIIMON; +pub const IFLA_BOND_UPDELAY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_UPDELAY; +pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_DOWNDELAY; +pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_USE_CARRIER; +pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_INTERVAL; +pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_IP_TARGET; +pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_VALIDATE; +pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_ALL_TARGETS; +pub const IFLA_BOND_PRIMARY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PRIMARY; +pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PRIMARY_RESELECT; +pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_FAIL_OVER_MAC; +pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_XMIT_HASH_POLICY; +pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_RESEND_IGMP; +pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_NUM_PEER_NOTIF; +pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ALL_SLAVES_ACTIVE; +pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MIN_LINKS; +pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LP_INTERVAL; +pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PACKETS_PER_SLAVE; +pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_LACP_RATE; +pub const IFLA_BOND_AD_SELECT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_SELECT; +pub const IFLA_BOND_AD_INFO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_INFO; +pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_ACTOR_SYS_PRIO; +pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_USER_PORT_KEY; +pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_ACTOR_SYSTEM; +pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_TLB_DYNAMIC_LB; +pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PEER_NOTIF_DELAY; +pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_LACP_ACTIVE; +pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSED_MAX; +pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_NS_IP6_TARGET; +pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_COUPLED_CONTROL; +pub const __IFLA_BOND_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_MAX; +pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_UNSPEC; +pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_AGGREGATOR; +pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_NUM_PORTS; +pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_ACTOR_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_PARTNER_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_PARTNER_MAC; +pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_BOND_AD_INFO_MAX; +pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_UNSPEC; +pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_STATE; +pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_MII_STATUS; +pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; +pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PERM_HWADDR; +pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_QUEUE_ID; +pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; +pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; +pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; +pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; +pub const __IFLA_VF_INFO_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_INFO_MAX; +pub const IFLA_VF_UNSPEC: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_UNSPEC; +pub const IFLA_VF_MAC: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_MAC; +pub const IFLA_VF_VLAN: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_VLAN; +pub const IFLA_VF_TX_RATE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_TX_RATE; +pub const IFLA_VF_SPOOFCHK: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_SPOOFCHK; +pub const IFLA_VF_LINK_STATE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_LINK_STATE; +pub const IFLA_VF_RATE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_RATE; +pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_RSS_QUERY_EN; +pub const IFLA_VF_STATS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS; +pub const IFLA_VF_TRUST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_TRUST; +pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_IB_NODE_GUID; +pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_IB_PORT_GUID; +pub const IFLA_VF_VLAN_LIST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_VLAN_LIST; +pub const IFLA_VF_BROADCAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_BROADCAST; +pub const __IFLA_VF_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_MAX; +pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_VLAN_INFO_UNSPEC; +pub const IFLA_VF_VLAN_INFO: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_VLAN_INFO; +pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_VLAN_INFO_MAX; +pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_LINK_STATE_AUTO; +pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_LINK_STATE_ENABLE; +pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_LINK_STATE_DISABLE; +pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_VF_LINK_STATE_MAX; +pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_RX_PACKETS; +pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_TX_PACKETS; +pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_RX_BYTES; +pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_TX_BYTES; +pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_BROADCAST; +pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_MULTICAST; +pub const IFLA_VF_STATS_PAD: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_PAD; +pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_RX_DROPPED; +pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_TX_DROPPED; +pub const __IFLA_VF_STATS_MAX: _bindgen_ty_36 = _bindgen_ty_36::__IFLA_VF_STATS_MAX; +pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_37 = _bindgen_ty_37::IFLA_VF_PORT_UNSPEC; +pub const IFLA_VF_PORT: _bindgen_ty_37 = _bindgen_ty_37::IFLA_VF_PORT; +pub const __IFLA_VF_PORT_MAX: _bindgen_ty_37 = _bindgen_ty_37::__IFLA_VF_PORT_MAX; +pub const IFLA_PORT_UNSPEC: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_UNSPEC; +pub const IFLA_PORT_VF: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_VF; +pub const IFLA_PORT_PROFILE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_PROFILE; +pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_VSI_TYPE; +pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_INSTANCE_UUID; +pub const IFLA_PORT_HOST_UUID: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_HOST_UUID; +pub const IFLA_PORT_REQUEST: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_REQUEST; +pub const IFLA_PORT_RESPONSE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_RESPONSE; +pub const __IFLA_PORT_MAX: _bindgen_ty_38 = _bindgen_ty_38::__IFLA_PORT_MAX; +pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_PREASSOCIATE; +pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_PREASSOCIATE_RR; +pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_ASSOCIATE; +pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_DISASSOCIATE; +pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_SUCCESS; +pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_INVALID_FORMAT; +pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_UNUSED_VTID; +pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_VTID_VIOLATION; +pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; +pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_OUT_OF_SYNC; +pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_SUCCESS; +pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_INPROGRESS; +pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_INVALID; +pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_BADSTATE; +pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_ERROR; +pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_UNSPEC; +pub const IFLA_IPOIB_PKEY: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_PKEY; +pub const IFLA_IPOIB_MODE: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_MODE; +pub const IFLA_IPOIB_UMCAST: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_UMCAST; +pub const __IFLA_IPOIB_MAX: _bindgen_ty_41 = _bindgen_ty_41::__IFLA_IPOIB_MAX; +pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_42 = _bindgen_ty_42::IPOIB_MODE_DATAGRAM; +pub const IPOIB_MODE_CONNECTED: _bindgen_ty_42 = _bindgen_ty_42::IPOIB_MODE_CONNECTED; +pub const HSR_PROTOCOL_HSR: _bindgen_ty_43 = _bindgen_ty_43::HSR_PROTOCOL_HSR; +pub const HSR_PROTOCOL_PRP: _bindgen_ty_43 = _bindgen_ty_43::HSR_PROTOCOL_PRP; +pub const HSR_PROTOCOL_MAX: _bindgen_ty_43 = _bindgen_ty_43::HSR_PROTOCOL_MAX; +pub const IFLA_HSR_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_UNSPEC; +pub const IFLA_HSR_SLAVE1: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SLAVE1; +pub const IFLA_HSR_SLAVE2: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SLAVE2; +pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_MULTICAST_SPEC; +pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SUPERVISION_ADDR; +pub const IFLA_HSR_SEQ_NR: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SEQ_NR; +pub const IFLA_HSR_VERSION: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_VERSION; +pub const IFLA_HSR_PROTOCOL: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_PROTOCOL; +pub const IFLA_HSR_INTERLINK: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_INTERLINK; +pub const __IFLA_HSR_MAX: _bindgen_ty_44 = _bindgen_ty_44::__IFLA_HSR_MAX; +pub const IFLA_STATS_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_UNSPEC; +pub const IFLA_STATS_LINK_64: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_64; +pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_XSTATS; +pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_XSTATS_SLAVE; +pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_OFFLOAD_XSTATS; +pub const IFLA_STATS_AF_SPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_AF_SPEC; +pub const __IFLA_STATS_MAX: _bindgen_ty_45 = _bindgen_ty_45::__IFLA_STATS_MAX; +pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_STATS_GETSET_UNSPEC; +pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_46 = _bindgen_ty_46::IFLA_STATS_GET_FILTERS; +pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_46 = _bindgen_ty_46::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_STATS_GETSET_MAX; +pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_47 = _bindgen_ty_47::LINK_XSTATS_TYPE_UNSPEC; +pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_47 = _bindgen_ty_47::LINK_XSTATS_TYPE_BRIDGE; +pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_47 = _bindgen_ty_47::LINK_XSTATS_TYPE_BOND; +pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_47 = _bindgen_ty_47::__LINK_XSTATS_TYPE_MAX; +pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_CPU_HIT; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_HW_S_INFO; +pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_48 = _bindgen_ty_48::__IFLA_OFFLOAD_XSTATS_MAX; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_49 = _bindgen_ty_49::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_49 = _bindgen_ty_49::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_49 = _bindgen_ty_49::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; +pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_49 = _bindgen_ty_49::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; +pub const XDP_ATTACHED_NONE: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_NONE; +pub const XDP_ATTACHED_DRV: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_DRV; +pub const XDP_ATTACHED_SKB: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_SKB; +pub const XDP_ATTACHED_HW: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_HW; +pub const XDP_ATTACHED_MULTI: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_MULTI; +pub const IFLA_XDP_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_UNSPEC; +pub const IFLA_XDP_FD: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_FD; +pub const IFLA_XDP_ATTACHED: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_ATTACHED; +pub const IFLA_XDP_FLAGS: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_FLAGS; +pub const IFLA_XDP_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_PROG_ID; +pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_DRV_PROG_ID; +pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_SKB_PROG_ID; +pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_HW_PROG_ID; +pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_EXPECTED_FD; +pub const __IFLA_XDP_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_XDP_MAX; +pub const IFLA_EVENT_NONE: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_NONE; +pub const IFLA_EVENT_REBOOT: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_REBOOT; +pub const IFLA_EVENT_FEATURES: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_FEATURES; +pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_BONDING_FAILOVER; +pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_NOTIFY_PEERS; +pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_IGMP_RESEND; +pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_BONDING_OPTIONS; +pub const IFLA_TUN_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_UNSPEC; +pub const IFLA_TUN_OWNER: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_OWNER; +pub const IFLA_TUN_GROUP: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_GROUP; +pub const IFLA_TUN_TYPE: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_TYPE; +pub const IFLA_TUN_PI: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_PI; +pub const IFLA_TUN_VNET_HDR: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_VNET_HDR; +pub const IFLA_TUN_PERSIST: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_PERSIST; +pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_MULTI_QUEUE; +pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_NUM_QUEUES; +pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_NUM_DISABLED_QUEUES; +pub const __IFLA_TUN_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_TUN_MAX; +pub const IFLA_RMNET_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_UNSPEC; +pub const IFLA_RMNET_MUX_ID: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_MUX_ID; +pub const IFLA_RMNET_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_FLAGS; +pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX; +pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC; +pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING; +pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX; +pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC; +pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; +pub const IFLA_DSA_MASTER: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; +pub const __IFLA_DSA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__IFLA_DSA_MAX; +pub const IFLA_OVPN_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::IFLA_OVPN_UNSPEC; +pub const IFLA_OVPN_MODE: _bindgen_ty_57 = _bindgen_ty_57::IFLA_OVPN_MODE; +pub const __IFLA_OVPN_MAX: _bindgen_ty_57 = _bindgen_ty_57::__IFLA_OVPN_MAX; +pub const IF_PORT_UNKNOWN: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_UNKNOWN; +pub const IF_PORT_10BASE2: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_10BASE2; +pub const IF_PORT_10BASET: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_10BASET; +pub const IF_PORT_AUI: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_AUI; +pub const IF_PORT_100BASET: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_100BASET; +pub const IF_PORT_100BASETX: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_100BASETX; +pub const IF_PORT_100BASEFX: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_100BASEFX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum net_device_flags { +IFF_UP = 1, +IFF_BROADCAST = 2, +IFF_DEBUG = 4, +IFF_LOOPBACK = 8, +IFF_POINTOPOINT = 16, +IFF_NOTRAILERS = 32, +IFF_RUNNING = 64, +IFF_NOARP = 128, +IFF_PROMISC = 256, +IFF_ALLMULTI = 512, +IFF_MASTER = 1024, +IFF_SLAVE = 2048, +IFF_MULTICAST = 4096, +IFF_PORTSEL = 8192, +IFF_AUTOMEDIA = 16384, +IFF_DYNAMIC = 32768, +IFF_LOWER_UP = 65536, +IFF_DORMANT = 131072, +IFF_ECHO = 262144, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +IF_OPER_UNKNOWN = 0, +IF_OPER_NOTPRESENT = 1, +IF_OPER_DOWN = 2, +IF_OPER_LOWERLAYERDOWN = 3, +IF_OPER_TESTING = 4, +IF_OPER_DORMANT = 5, +IF_OPER_UP = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IF_LINK_MODE_DEFAULT = 0, +IF_LINK_MODE_DORMANT = 1, +IF_LINK_MODE_TESTING = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tpacket_versions { +TPACKET_V1 = 0, +TPACKET_V2 = 1, +TPACKET_V3 = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nlmsgerr_attrs { +NLMSGERR_ATTR_UNUSED = 0, +NLMSGERR_ATTR_MSG = 1, +NLMSGERR_ATTR_OFFS = 2, +NLMSGERR_ATTR_COOKIE = 3, +NLMSGERR_ATTR_POLICY = 4, +NLMSGERR_ATTR_MISS_TYPE = 5, +NLMSGERR_ATTR_MISS_NEST = 6, +__NLMSGERR_ATTR_MAX = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl_mmap_status { +NL_MMAP_STATUS_UNUSED = 0, +NL_MMAP_STATUS_RESERVED = 1, +NL_MMAP_STATUS_VALID = 2, +NL_MMAP_STATUS_COPY = 3, +NL_MMAP_STATUS_SKIP = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +NETLINK_UNCONNECTED = 0, +NETLINK_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_attribute_type { +NL_ATTR_TYPE_INVALID = 0, +NL_ATTR_TYPE_FLAG = 1, +NL_ATTR_TYPE_U8 = 2, +NL_ATTR_TYPE_U16 = 3, +NL_ATTR_TYPE_U32 = 4, +NL_ATTR_TYPE_U64 = 5, +NL_ATTR_TYPE_S8 = 6, +NL_ATTR_TYPE_S16 = 7, +NL_ATTR_TYPE_S32 = 8, +NL_ATTR_TYPE_S64 = 9, +NL_ATTR_TYPE_BINARY = 10, +NL_ATTR_TYPE_STRING = 11, +NL_ATTR_TYPE_NUL_STRING = 12, +NL_ATTR_TYPE_NESTED = 13, +NL_ATTR_TYPE_NESTED_ARRAY = 14, +NL_ATTR_TYPE_BITFIELD32 = 15, +NL_ATTR_TYPE_SINT = 16, +NL_ATTR_TYPE_UINT = 17, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_policy_type_attr { +NL_POLICY_TYPE_ATTR_UNSPEC = 0, +NL_POLICY_TYPE_ATTR_TYPE = 1, +NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, +NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, +NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, +NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, +NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, +NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, +NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, +NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, +NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, +NL_POLICY_TYPE_ATTR_PAD = 11, +NL_POLICY_TYPE_ATTR_MASK = 12, +__NL_POLICY_TYPE_ATTR_MAX = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IFLA_UNSPEC = 0, +IFLA_ADDRESS = 1, +IFLA_BROADCAST = 2, +IFLA_IFNAME = 3, +IFLA_MTU = 4, +IFLA_LINK = 5, +IFLA_QDISC = 6, +IFLA_STATS = 7, +IFLA_COST = 8, +IFLA_PRIORITY = 9, +IFLA_MASTER = 10, +IFLA_WIRELESS = 11, +IFLA_PROTINFO = 12, +IFLA_TXQLEN = 13, +IFLA_MAP = 14, +IFLA_WEIGHT = 15, +IFLA_OPERSTATE = 16, +IFLA_LINKMODE = 17, +IFLA_LINKINFO = 18, +IFLA_NET_NS_PID = 19, +IFLA_IFALIAS = 20, +IFLA_NUM_VF = 21, +IFLA_VFINFO_LIST = 22, +IFLA_STATS64 = 23, +IFLA_VF_PORTS = 24, +IFLA_PORT_SELF = 25, +IFLA_AF_SPEC = 26, +IFLA_GROUP = 27, +IFLA_NET_NS_FD = 28, +IFLA_EXT_MASK = 29, +IFLA_PROMISCUITY = 30, +IFLA_NUM_TX_QUEUES = 31, +IFLA_NUM_RX_QUEUES = 32, +IFLA_CARRIER = 33, +IFLA_PHYS_PORT_ID = 34, +IFLA_CARRIER_CHANGES = 35, +IFLA_PHYS_SWITCH_ID = 36, +IFLA_LINK_NETNSID = 37, +IFLA_PHYS_PORT_NAME = 38, +IFLA_PROTO_DOWN = 39, +IFLA_GSO_MAX_SEGS = 40, +IFLA_GSO_MAX_SIZE = 41, +IFLA_PAD = 42, +IFLA_XDP = 43, +IFLA_EVENT = 44, +IFLA_NEW_NETNSID = 45, +IFLA_IF_NETNSID = 46, +IFLA_CARRIER_UP_COUNT = 47, +IFLA_CARRIER_DOWN_COUNT = 48, +IFLA_NEW_IFINDEX = 49, +IFLA_MIN_MTU = 50, +IFLA_MAX_MTU = 51, +IFLA_PROP_LIST = 52, +IFLA_ALT_IFNAME = 53, +IFLA_PERM_ADDRESS = 54, +IFLA_PROTO_DOWN_REASON = 55, +IFLA_PARENT_DEV_NAME = 56, +IFLA_PARENT_DEV_BUS_NAME = 57, +IFLA_GRO_MAX_SIZE = 58, +IFLA_TSO_MAX_SIZE = 59, +IFLA_TSO_MAX_SEGS = 60, +IFLA_ALLMULTI = 61, +IFLA_DEVLINK_PORT = 62, +IFLA_GSO_IPV4_MAX_SIZE = 63, +IFLA_GRO_IPV4_MAX_SIZE = 64, +IFLA_DPLL_PIN = 65, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +IFLA_NETNS_IMMUTABLE = 67, +__IFLA_MAX = 68, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_5 { +IFLA_PROTO_DOWN_REASON_UNSPEC = 0, +IFLA_PROTO_DOWN_REASON_MASK = 1, +IFLA_PROTO_DOWN_REASON_VALUE = 2, +__IFLA_PROTO_DOWN_REASON_CNT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_6 { +IFLA_INET_UNSPEC = 0, +IFLA_INET_CONF = 1, +__IFLA_INET_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_7 { +IFLA_INET6_UNSPEC = 0, +IFLA_INET6_FLAGS = 1, +IFLA_INET6_CONF = 2, +IFLA_INET6_STATS = 3, +IFLA_INET6_MCAST = 4, +IFLA_INET6_CACHEINFO = 5, +IFLA_INET6_ICMP6STATS = 6, +IFLA_INET6_TOKEN = 7, +IFLA_INET6_ADDR_GEN_MODE = 8, +IFLA_INET6_RA_MTU = 9, +__IFLA_INET6_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum in6_addr_gen_mode { +IN6_ADDR_GEN_MODE_EUI64 = 0, +IN6_ADDR_GEN_MODE_NONE = 1, +IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, +IN6_ADDR_GEN_MODE_RANDOM = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_8 { +IFLA_BR_UNSPEC = 0, +IFLA_BR_FORWARD_DELAY = 1, +IFLA_BR_HELLO_TIME = 2, +IFLA_BR_MAX_AGE = 3, +IFLA_BR_AGEING_TIME = 4, +IFLA_BR_STP_STATE = 5, +IFLA_BR_PRIORITY = 6, +IFLA_BR_VLAN_FILTERING = 7, +IFLA_BR_VLAN_PROTOCOL = 8, +IFLA_BR_GROUP_FWD_MASK = 9, +IFLA_BR_ROOT_ID = 10, +IFLA_BR_BRIDGE_ID = 11, +IFLA_BR_ROOT_PORT = 12, +IFLA_BR_ROOT_PATH_COST = 13, +IFLA_BR_TOPOLOGY_CHANGE = 14, +IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, +IFLA_BR_HELLO_TIMER = 16, +IFLA_BR_TCN_TIMER = 17, +IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, +IFLA_BR_GC_TIMER = 19, +IFLA_BR_GROUP_ADDR = 20, +IFLA_BR_FDB_FLUSH = 21, +IFLA_BR_MCAST_ROUTER = 22, +IFLA_BR_MCAST_SNOOPING = 23, +IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, +IFLA_BR_MCAST_QUERIER = 25, +IFLA_BR_MCAST_HASH_ELASTICITY = 26, +IFLA_BR_MCAST_HASH_MAX = 27, +IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, +IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, +IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, +IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, +IFLA_BR_MCAST_QUERIER_INTVL = 32, +IFLA_BR_MCAST_QUERY_INTVL = 33, +IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, +IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, +IFLA_BR_NF_CALL_IPTABLES = 36, +IFLA_BR_NF_CALL_IP6TABLES = 37, +IFLA_BR_NF_CALL_ARPTABLES = 38, +IFLA_BR_VLAN_DEFAULT_PVID = 39, +IFLA_BR_PAD = 40, +IFLA_BR_VLAN_STATS_ENABLED = 41, +IFLA_BR_MCAST_STATS_ENABLED = 42, +IFLA_BR_MCAST_IGMP_VERSION = 43, +IFLA_BR_MCAST_MLD_VERSION = 44, +IFLA_BR_VLAN_STATS_PER_PORT = 45, +IFLA_BR_MULTI_BOOLOPT = 46, +IFLA_BR_MCAST_QUERIER_STATE = 47, +IFLA_BR_FDB_N_LEARNED = 48, +IFLA_BR_FDB_MAX_LEARNED = 49, +__IFLA_BR_MAX = 50, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_9 { +BRIDGE_MODE_UNSPEC = 0, +BRIDGE_MODE_HAIRPIN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_10 { +IFLA_BRPORT_UNSPEC = 0, +IFLA_BRPORT_STATE = 1, +IFLA_BRPORT_PRIORITY = 2, +IFLA_BRPORT_COST = 3, +IFLA_BRPORT_MODE = 4, +IFLA_BRPORT_GUARD = 5, +IFLA_BRPORT_PROTECT = 6, +IFLA_BRPORT_FAST_LEAVE = 7, +IFLA_BRPORT_LEARNING = 8, +IFLA_BRPORT_UNICAST_FLOOD = 9, +IFLA_BRPORT_PROXYARP = 10, +IFLA_BRPORT_LEARNING_SYNC = 11, +IFLA_BRPORT_PROXYARP_WIFI = 12, +IFLA_BRPORT_ROOT_ID = 13, +IFLA_BRPORT_BRIDGE_ID = 14, +IFLA_BRPORT_DESIGNATED_PORT = 15, +IFLA_BRPORT_DESIGNATED_COST = 16, +IFLA_BRPORT_ID = 17, +IFLA_BRPORT_NO = 18, +IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, +IFLA_BRPORT_CONFIG_PENDING = 20, +IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, +IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, +IFLA_BRPORT_HOLD_TIMER = 23, +IFLA_BRPORT_FLUSH = 24, +IFLA_BRPORT_MULTICAST_ROUTER = 25, +IFLA_BRPORT_PAD = 26, +IFLA_BRPORT_MCAST_FLOOD = 27, +IFLA_BRPORT_MCAST_TO_UCAST = 28, +IFLA_BRPORT_VLAN_TUNNEL = 29, +IFLA_BRPORT_BCAST_FLOOD = 30, +IFLA_BRPORT_GROUP_FWD_MASK = 31, +IFLA_BRPORT_NEIGH_SUPPRESS = 32, +IFLA_BRPORT_ISOLATED = 33, +IFLA_BRPORT_BACKUP_PORT = 34, +IFLA_BRPORT_MRP_RING_OPEN = 35, +IFLA_BRPORT_MRP_IN_OPEN = 36, +IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, +IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, +IFLA_BRPORT_LOCKED = 39, +IFLA_BRPORT_MAB = 40, +IFLA_BRPORT_MCAST_N_GROUPS = 41, +IFLA_BRPORT_MCAST_MAX_GROUPS = 42, +IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, +IFLA_BRPORT_BACKUP_NHID = 44, +__IFLA_BRPORT_MAX = 45, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_11 { +IFLA_INFO_UNSPEC = 0, +IFLA_INFO_KIND = 1, +IFLA_INFO_DATA = 2, +IFLA_INFO_XSTATS = 3, +IFLA_INFO_SLAVE_KIND = 4, +IFLA_INFO_SLAVE_DATA = 5, +__IFLA_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_12 { +IFLA_VLAN_UNSPEC = 0, +IFLA_VLAN_ID = 1, +IFLA_VLAN_FLAGS = 2, +IFLA_VLAN_EGRESS_QOS = 3, +IFLA_VLAN_INGRESS_QOS = 4, +IFLA_VLAN_PROTOCOL = 5, +__IFLA_VLAN_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_13 { +IFLA_VLAN_QOS_UNSPEC = 0, +IFLA_VLAN_QOS_MAPPING = 1, +__IFLA_VLAN_QOS_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_14 { +IFLA_MACVLAN_UNSPEC = 0, +IFLA_MACVLAN_MODE = 1, +IFLA_MACVLAN_FLAGS = 2, +IFLA_MACVLAN_MACADDR_MODE = 3, +IFLA_MACVLAN_MACADDR = 4, +IFLA_MACVLAN_MACADDR_DATA = 5, +IFLA_MACVLAN_MACADDR_COUNT = 6, +IFLA_MACVLAN_BC_QUEUE_LEN = 7, +IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, +IFLA_MACVLAN_BC_CUTOFF = 9, +__IFLA_MACVLAN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_mode { +MACVLAN_MODE_PRIVATE = 1, +MACVLAN_MODE_VEPA = 2, +MACVLAN_MODE_BRIDGE = 4, +MACVLAN_MODE_PASSTHRU = 8, +MACVLAN_MODE_SOURCE = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_macaddr_mode { +MACVLAN_MACADDR_ADD = 0, +MACVLAN_MACADDR_DEL = 1, +MACVLAN_MACADDR_FLUSH = 2, +MACVLAN_MACADDR_SET = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_15 { +IFLA_VRF_UNSPEC = 0, +IFLA_VRF_TABLE = 1, +__IFLA_VRF_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_16 { +IFLA_VRF_PORT_UNSPEC = 0, +IFLA_VRF_PORT_TABLE = 1, +__IFLA_VRF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_17 { +IFLA_MACSEC_UNSPEC = 0, +IFLA_MACSEC_SCI = 1, +IFLA_MACSEC_PORT = 2, +IFLA_MACSEC_ICV_LEN = 3, +IFLA_MACSEC_CIPHER_SUITE = 4, +IFLA_MACSEC_WINDOW = 5, +IFLA_MACSEC_ENCODING_SA = 6, +IFLA_MACSEC_ENCRYPT = 7, +IFLA_MACSEC_PROTECT = 8, +IFLA_MACSEC_INC_SCI = 9, +IFLA_MACSEC_ES = 10, +IFLA_MACSEC_SCB = 11, +IFLA_MACSEC_REPLAY_PROTECT = 12, +IFLA_MACSEC_VALIDATION = 13, +IFLA_MACSEC_PAD = 14, +IFLA_MACSEC_OFFLOAD = 15, +__IFLA_MACSEC_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_18 { +IFLA_XFRM_UNSPEC = 0, +IFLA_XFRM_LINK = 1, +IFLA_XFRM_IF_ID = 2, +IFLA_XFRM_COLLECT_METADATA = 3, +__IFLA_XFRM_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_validation_type { +MACSEC_VALIDATE_DISABLED = 0, +MACSEC_VALIDATE_CHECK = 1, +MACSEC_VALIDATE_STRICT = 2, +__MACSEC_VALIDATE_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_offload { +MACSEC_OFFLOAD_OFF = 0, +MACSEC_OFFLOAD_PHY = 1, +MACSEC_OFFLOAD_MAC = 2, +__MACSEC_OFFLOAD_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_19 { +IFLA_IPVLAN_UNSPEC = 0, +IFLA_IPVLAN_MODE = 1, +IFLA_IPVLAN_FLAGS = 2, +__IFLA_IPVLAN_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ipvlan_mode { +IPVLAN_MODE_L2 = 0, +IPVLAN_MODE_L3 = 1, +IPVLAN_MODE_L3S = 2, +IPVLAN_MODE_MAX = 3, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_action { +NETKIT_NEXT = -1, +NETKIT_PASS = 0, +NETKIT_DROP = 2, +NETKIT_REDIRECT = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_mode { +NETKIT_L2 = 0, +NETKIT_L3 = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_20 { +IFLA_NETKIT_UNSPEC = 0, +IFLA_NETKIT_PEER_INFO = 1, +IFLA_NETKIT_PRIMARY = 2, +IFLA_NETKIT_POLICY = 3, +IFLA_NETKIT_PEER_POLICY = 4, +IFLA_NETKIT_MODE = 5, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +IFLA_NETKIT_HEADROOM = 8, +IFLA_NETKIT_TAILROOM = 9, +__IFLA_NETKIT_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_21 { +VNIFILTER_ENTRY_STATS_UNSPEC = 0, +VNIFILTER_ENTRY_STATS_RX_BYTES = 1, +VNIFILTER_ENTRY_STATS_RX_PKTS = 2, +VNIFILTER_ENTRY_STATS_RX_DROPS = 3, +VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, +VNIFILTER_ENTRY_STATS_TX_BYTES = 5, +VNIFILTER_ENTRY_STATS_TX_PKTS = 6, +VNIFILTER_ENTRY_STATS_TX_DROPS = 7, +VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, +VNIFILTER_ENTRY_STATS_PAD = 9, +__VNIFILTER_ENTRY_STATS_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_22 { +VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY_START = 1, +VXLAN_VNIFILTER_ENTRY_END = 2, +VXLAN_VNIFILTER_ENTRY_GROUP = 3, +VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, +VXLAN_VNIFILTER_ENTRY_STATS = 5, +__VXLAN_VNIFILTER_ENTRY_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_23 { +VXLAN_VNIFILTER_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY = 1, +__VXLAN_VNIFILTER_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_24 { +IFLA_VXLAN_UNSPEC = 0, +IFLA_VXLAN_ID = 1, +IFLA_VXLAN_GROUP = 2, +IFLA_VXLAN_LINK = 3, +IFLA_VXLAN_LOCAL = 4, +IFLA_VXLAN_TTL = 5, +IFLA_VXLAN_TOS = 6, +IFLA_VXLAN_LEARNING = 7, +IFLA_VXLAN_AGEING = 8, +IFLA_VXLAN_LIMIT = 9, +IFLA_VXLAN_PORT_RANGE = 10, +IFLA_VXLAN_PROXY = 11, +IFLA_VXLAN_RSC = 12, +IFLA_VXLAN_L2MISS = 13, +IFLA_VXLAN_L3MISS = 14, +IFLA_VXLAN_PORT = 15, +IFLA_VXLAN_GROUP6 = 16, +IFLA_VXLAN_LOCAL6 = 17, +IFLA_VXLAN_UDP_CSUM = 18, +IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, +IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, +IFLA_VXLAN_REMCSUM_TX = 21, +IFLA_VXLAN_REMCSUM_RX = 22, +IFLA_VXLAN_GBP = 23, +IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, +IFLA_VXLAN_COLLECT_METADATA = 25, +IFLA_VXLAN_LABEL = 26, +IFLA_VXLAN_GPE = 27, +IFLA_VXLAN_TTL_INHERIT = 28, +IFLA_VXLAN_DF = 29, +IFLA_VXLAN_VNIFILTER = 30, +IFLA_VXLAN_LOCALBYPASS = 31, +IFLA_VXLAN_LABEL_POLICY = 32, +IFLA_VXLAN_RESERVED_BITS = 33, +__IFLA_VXLAN_MAX = 34, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_df { +VXLAN_DF_UNSET = 0, +VXLAN_DF_SET = 1, +VXLAN_DF_INHERIT = 2, +__VXLAN_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_label_policy { +VXLAN_LABEL_FIXED = 0, +VXLAN_LABEL_INHERIT = 1, +__VXLAN_LABEL_END = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_25 { +IFLA_GENEVE_UNSPEC = 0, +IFLA_GENEVE_ID = 1, +IFLA_GENEVE_REMOTE = 2, +IFLA_GENEVE_TTL = 3, +IFLA_GENEVE_TOS = 4, +IFLA_GENEVE_PORT = 5, +IFLA_GENEVE_COLLECT_METADATA = 6, +IFLA_GENEVE_REMOTE6 = 7, +IFLA_GENEVE_UDP_CSUM = 8, +IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, +IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, +IFLA_GENEVE_LABEL = 11, +IFLA_GENEVE_TTL_INHERIT = 12, +IFLA_GENEVE_DF = 13, +IFLA_GENEVE_INNER_PROTO_INHERIT = 14, +IFLA_GENEVE_PORT_RANGE = 15, +__IFLA_GENEVE_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_geneve_df { +GENEVE_DF_UNSET = 0, +GENEVE_DF_SET = 1, +GENEVE_DF_INHERIT = 2, +__GENEVE_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_26 { +IFLA_BAREUDP_UNSPEC = 0, +IFLA_BAREUDP_PORT = 1, +IFLA_BAREUDP_ETHERTYPE = 2, +IFLA_BAREUDP_SRCPORT_MIN = 3, +IFLA_BAREUDP_MULTIPROTO_MODE = 4, +__IFLA_BAREUDP_MAX = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_27 { +IFLA_PPP_UNSPEC = 0, +IFLA_PPP_DEV_FD = 1, +__IFLA_PPP_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_gtp_role { +GTP_ROLE_GGSN = 0, +GTP_ROLE_SGSN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_28 { +IFLA_GTP_UNSPEC = 0, +IFLA_GTP_FD0 = 1, +IFLA_GTP_FD1 = 2, +IFLA_GTP_PDP_HASHSIZE = 3, +IFLA_GTP_ROLE = 4, +IFLA_GTP_CREATE_SOCKETS = 5, +IFLA_GTP_RESTART_COUNT = 6, +IFLA_GTP_LOCAL = 7, +IFLA_GTP_LOCAL6 = 8, +__IFLA_GTP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_29 { +IFLA_BOND_UNSPEC = 0, +IFLA_BOND_MODE = 1, +IFLA_BOND_ACTIVE_SLAVE = 2, +IFLA_BOND_MIIMON = 3, +IFLA_BOND_UPDELAY = 4, +IFLA_BOND_DOWNDELAY = 5, +IFLA_BOND_USE_CARRIER = 6, +IFLA_BOND_ARP_INTERVAL = 7, +IFLA_BOND_ARP_IP_TARGET = 8, +IFLA_BOND_ARP_VALIDATE = 9, +IFLA_BOND_ARP_ALL_TARGETS = 10, +IFLA_BOND_PRIMARY = 11, +IFLA_BOND_PRIMARY_RESELECT = 12, +IFLA_BOND_FAIL_OVER_MAC = 13, +IFLA_BOND_XMIT_HASH_POLICY = 14, +IFLA_BOND_RESEND_IGMP = 15, +IFLA_BOND_NUM_PEER_NOTIF = 16, +IFLA_BOND_ALL_SLAVES_ACTIVE = 17, +IFLA_BOND_MIN_LINKS = 18, +IFLA_BOND_LP_INTERVAL = 19, +IFLA_BOND_PACKETS_PER_SLAVE = 20, +IFLA_BOND_AD_LACP_RATE = 21, +IFLA_BOND_AD_SELECT = 22, +IFLA_BOND_AD_INFO = 23, +IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, +IFLA_BOND_AD_USER_PORT_KEY = 25, +IFLA_BOND_AD_ACTOR_SYSTEM = 26, +IFLA_BOND_TLB_DYNAMIC_LB = 27, +IFLA_BOND_PEER_NOTIF_DELAY = 28, +IFLA_BOND_AD_LACP_ACTIVE = 29, +IFLA_BOND_MISSED_MAX = 30, +IFLA_BOND_NS_IP6_TARGET = 31, +IFLA_BOND_COUPLED_CONTROL = 32, +__IFLA_BOND_MAX = 33, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_30 { +IFLA_BOND_AD_INFO_UNSPEC = 0, +IFLA_BOND_AD_INFO_AGGREGATOR = 1, +IFLA_BOND_AD_INFO_NUM_PORTS = 2, +IFLA_BOND_AD_INFO_ACTOR_KEY = 3, +IFLA_BOND_AD_INFO_PARTNER_KEY = 4, +IFLA_BOND_AD_INFO_PARTNER_MAC = 5, +__IFLA_BOND_AD_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_31 { +IFLA_BOND_SLAVE_UNSPEC = 0, +IFLA_BOND_SLAVE_STATE = 1, +IFLA_BOND_SLAVE_MII_STATUS = 2, +IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, +IFLA_BOND_SLAVE_PERM_HWADDR = 4, +IFLA_BOND_SLAVE_QUEUE_ID = 5, +IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, +IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, +IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, +IFLA_BOND_SLAVE_PRIO = 9, +__IFLA_BOND_SLAVE_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_32 { +IFLA_VF_INFO_UNSPEC = 0, +IFLA_VF_INFO = 1, +__IFLA_VF_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_33 { +IFLA_VF_UNSPEC = 0, +IFLA_VF_MAC = 1, +IFLA_VF_VLAN = 2, +IFLA_VF_TX_RATE = 3, +IFLA_VF_SPOOFCHK = 4, +IFLA_VF_LINK_STATE = 5, +IFLA_VF_RATE = 6, +IFLA_VF_RSS_QUERY_EN = 7, +IFLA_VF_STATS = 8, +IFLA_VF_TRUST = 9, +IFLA_VF_IB_NODE_GUID = 10, +IFLA_VF_IB_PORT_GUID = 11, +IFLA_VF_VLAN_LIST = 12, +IFLA_VF_BROADCAST = 13, +__IFLA_VF_MAX = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_34 { +IFLA_VF_VLAN_INFO_UNSPEC = 0, +IFLA_VF_VLAN_INFO = 1, +__IFLA_VF_VLAN_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_35 { +IFLA_VF_LINK_STATE_AUTO = 0, +IFLA_VF_LINK_STATE_ENABLE = 1, +IFLA_VF_LINK_STATE_DISABLE = 2, +__IFLA_VF_LINK_STATE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_36 { +IFLA_VF_STATS_RX_PACKETS = 0, +IFLA_VF_STATS_TX_PACKETS = 1, +IFLA_VF_STATS_RX_BYTES = 2, +IFLA_VF_STATS_TX_BYTES = 3, +IFLA_VF_STATS_BROADCAST = 4, +IFLA_VF_STATS_MULTICAST = 5, +IFLA_VF_STATS_PAD = 6, +IFLA_VF_STATS_RX_DROPPED = 7, +IFLA_VF_STATS_TX_DROPPED = 8, +__IFLA_VF_STATS_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_37 { +IFLA_VF_PORT_UNSPEC = 0, +IFLA_VF_PORT = 1, +__IFLA_VF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_38 { +IFLA_PORT_UNSPEC = 0, +IFLA_PORT_VF = 1, +IFLA_PORT_PROFILE = 2, +IFLA_PORT_VSI_TYPE = 3, +IFLA_PORT_INSTANCE_UUID = 4, +IFLA_PORT_HOST_UUID = 5, +IFLA_PORT_REQUEST = 6, +IFLA_PORT_RESPONSE = 7, +__IFLA_PORT_MAX = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_39 { +PORT_REQUEST_PREASSOCIATE = 0, +PORT_REQUEST_PREASSOCIATE_RR = 1, +PORT_REQUEST_ASSOCIATE = 2, +PORT_REQUEST_DISASSOCIATE = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_40 { +PORT_VDP_RESPONSE_SUCCESS = 0, +PORT_VDP_RESPONSE_INVALID_FORMAT = 1, +PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, +PORT_VDP_RESPONSE_UNUSED_VTID = 3, +PORT_VDP_RESPONSE_VTID_VIOLATION = 4, +PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, +PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, +PORT_PROFILE_RESPONSE_SUCCESS = 256, +PORT_PROFILE_RESPONSE_INPROGRESS = 257, +PORT_PROFILE_RESPONSE_INVALID = 258, +PORT_PROFILE_RESPONSE_BADSTATE = 259, +PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, +PORT_PROFILE_RESPONSE_ERROR = 261, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_41 { +IFLA_IPOIB_UNSPEC = 0, +IFLA_IPOIB_PKEY = 1, +IFLA_IPOIB_MODE = 2, +IFLA_IPOIB_UMCAST = 3, +__IFLA_IPOIB_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_42 { +IPOIB_MODE_DATAGRAM = 0, +IPOIB_MODE_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_43 { +HSR_PROTOCOL_HSR = 0, +HSR_PROTOCOL_PRP = 1, +HSR_PROTOCOL_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_44 { +IFLA_HSR_UNSPEC = 0, +IFLA_HSR_SLAVE1 = 1, +IFLA_HSR_SLAVE2 = 2, +IFLA_HSR_MULTICAST_SPEC = 3, +IFLA_HSR_SUPERVISION_ADDR = 4, +IFLA_HSR_SEQ_NR = 5, +IFLA_HSR_VERSION = 6, +IFLA_HSR_PROTOCOL = 7, +IFLA_HSR_INTERLINK = 8, +__IFLA_HSR_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_45 { +IFLA_STATS_UNSPEC = 0, +IFLA_STATS_LINK_64 = 1, +IFLA_STATS_LINK_XSTATS = 2, +IFLA_STATS_LINK_XSTATS_SLAVE = 3, +IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, +IFLA_STATS_AF_SPEC = 5, +__IFLA_STATS_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_46 { +IFLA_STATS_GETSET_UNSPEC = 0, +IFLA_STATS_GET_FILTERS = 1, +IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, +__IFLA_STATS_GETSET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_47 { +LINK_XSTATS_TYPE_UNSPEC = 0, +LINK_XSTATS_TYPE_BRIDGE = 1, +LINK_XSTATS_TYPE_BOND = 2, +__LINK_XSTATS_TYPE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_48 { +IFLA_OFFLOAD_XSTATS_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, +IFLA_OFFLOAD_XSTATS_L3_STATS = 3, +__IFLA_OFFLOAD_XSTATS_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_49 { +IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, +__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_50 { +XDP_ATTACHED_NONE = 0, +XDP_ATTACHED_DRV = 1, +XDP_ATTACHED_SKB = 2, +XDP_ATTACHED_HW = 3, +XDP_ATTACHED_MULTI = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_51 { +IFLA_XDP_UNSPEC = 0, +IFLA_XDP_FD = 1, +IFLA_XDP_ATTACHED = 2, +IFLA_XDP_FLAGS = 3, +IFLA_XDP_PROG_ID = 4, +IFLA_XDP_DRV_PROG_ID = 5, +IFLA_XDP_SKB_PROG_ID = 6, +IFLA_XDP_HW_PROG_ID = 7, +IFLA_XDP_EXPECTED_FD = 8, +__IFLA_XDP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_52 { +IFLA_EVENT_NONE = 0, +IFLA_EVENT_REBOOT = 1, +IFLA_EVENT_FEATURES = 2, +IFLA_EVENT_BONDING_FAILOVER = 3, +IFLA_EVENT_NOTIFY_PEERS = 4, +IFLA_EVENT_IGMP_RESEND = 5, +IFLA_EVENT_BONDING_OPTIONS = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_53 { +IFLA_TUN_UNSPEC = 0, +IFLA_TUN_OWNER = 1, +IFLA_TUN_GROUP = 2, +IFLA_TUN_TYPE = 3, +IFLA_TUN_PI = 4, +IFLA_TUN_VNET_HDR = 5, +IFLA_TUN_PERSIST = 6, +IFLA_TUN_MULTI_QUEUE = 7, +IFLA_TUN_NUM_QUEUES = 8, +IFLA_TUN_NUM_DISABLED_QUEUES = 9, +__IFLA_TUN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_54 { +IFLA_RMNET_UNSPEC = 0, +IFLA_RMNET_MUX_ID = 1, +IFLA_RMNET_FLAGS = 2, +__IFLA_RMNET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_55 { +IFLA_MCTP_UNSPEC = 0, +IFLA_MCTP_NET = 1, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_56 { +IFLA_DSA_UNSPEC = 0, +IFLA_DSA_CONDUIT = 1, +__IFLA_DSA_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ovpn_mode { +OVPN_MODE_P2P = 0, +OVPN_MODE_MP = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_57 { +IFLA_OVPN_UNSPEC = 0, +IFLA_OVPN_MODE = 1, +__IFLA_OVPN_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_58 { +IF_PORT_UNKNOWN = 0, +IF_PORT_10BASE2 = 1, +IF_PORT_10BASET = 2, +IF_PORT_AUI = 3, +IF_PORT_100BASET = 4, +IF_PORT_100BASETX = 5, +IF_PORT_100BASEFX = 6, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __kernel_sockaddr_storage__bindgen_ty_1 { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, +pub __align: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union if_settings__bindgen_ty_1 { +pub raw_hdlc: *mut raw_hdlc_proto, +pub cisco: *mut cisco_proto, +pub fr: *mut fr_proto, +pub fr_pvc: *mut fr_proto_pvc, +pub fr_pvc_info: *mut fr_proto_pvc_info, +pub x25: *mut x25_hdlc_proto, +pub sync: *mut sync_serial_settings, +pub te1: *mut te1_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_1 { +pub ifrn_name: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_2 { +pub ifru_addr: sockaddr, +pub ifru_dstaddr: sockaddr, +pub ifru_broadaddr: sockaddr, +pub ifru_netmask: sockaddr, +pub ifru_hwaddr: sockaddr, +pub ifru_flags: crate::ctypes::c_short, +pub ifru_ivalue: crate::ctypes::c_int, +pub ifru_mtu: crate::ctypes::c_int, +pub ifru_map: ifmap, +pub ifru_slave: [crate::ctypes::c_char; 16usize], +pub ifru_newname: [crate::ctypes::c_char; 16usize], +pub ifru_data: *mut crate::ctypes::c_void, +pub ifru_settings: if_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifconf__bindgen_ty_1 { +pub ifcu_buf: *mut crate::ctypes::c_char, +pub ifcu_req: *mut ifreq, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_stats_u { +pub stats1: tpacket_stats, +pub stats3: tpacket_stats_v3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket3_hdr__bindgen_ty_1 { +pub hv1: tpacket_hdr_variant1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_ts__bindgen_ty_1 { +pub ts_usec: crate::ctypes::c_uint, +pub ts_nsec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_header_u { +pub bh1: tpacket_hdr_v1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_req_u { +pub req: tpacket_req, +pub req3: tpacket_req3, +} +impl nlmsgerr_attrs { +pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; +} +impl netlink_policy_type_attr { +pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; +} +impl macsec_validation_type { +pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; +} +impl macsec_offload { +pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; +} +impl ifla_vxlan_df { +pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; +} +impl ifla_vxlan_label_policy { +pub const VXLAN_LABEL_MAX: ifla_vxlan_label_policy = ifla_vxlan_label_policy::VXLAN_LABEL_INHERIT; +} +impl ifla_geneve_df { +pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/if_ether.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/if_ether.rs new file mode 100644 index 0000000000000000000000000000000000000000..8fb6dcaaecf4aabaaec23c41681a16fab8243ff9 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/if_ether.rs @@ -0,0 +1,168 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct ethhdr { +pub h_dest: [crate::ctypes::c_uchar; 6usize], +pub h_source: [crate::ctypes::c_uchar; 6usize], +pub h_proto: __be16, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const ETH_ALEN: u32 = 6; +pub const ETH_TLEN: u32 = 2; +pub const ETH_HLEN: u32 = 14; +pub const ETH_ZLEN: u32 = 60; +pub const ETH_DATA_LEN: u32 = 1500; +pub const ETH_FRAME_LEN: u32 = 1514; +pub const ETH_FCS_LEN: u32 = 4; +pub const ETH_MIN_MTU: u32 = 68; +pub const ETH_MAX_MTU: u32 = 65535; +pub const ETH_P_LOOP: u32 = 96; +pub const ETH_P_PUP: u32 = 512; +pub const ETH_P_PUPAT: u32 = 513; +pub const ETH_P_TSN: u32 = 8944; +pub const ETH_P_ERSPAN2: u32 = 8939; +pub const ETH_P_IP: u32 = 2048; +pub const ETH_P_X25: u32 = 2053; +pub const ETH_P_ARP: u32 = 2054; +pub const ETH_P_BPQ: u32 = 2303; +pub const ETH_P_IEEEPUP: u32 = 2560; +pub const ETH_P_IEEEPUPAT: u32 = 2561; +pub const ETH_P_BATMAN: u32 = 17157; +pub const ETH_P_DEC: u32 = 24576; +pub const ETH_P_DNA_DL: u32 = 24577; +pub const ETH_P_DNA_RC: u32 = 24578; +pub const ETH_P_DNA_RT: u32 = 24579; +pub const ETH_P_LAT: u32 = 24580; +pub const ETH_P_DIAG: u32 = 24581; +pub const ETH_P_CUST: u32 = 24582; +pub const ETH_P_SCA: u32 = 24583; +pub const ETH_P_TEB: u32 = 25944; +pub const ETH_P_RARP: u32 = 32821; +pub const ETH_P_ATALK: u32 = 32923; +pub const ETH_P_AARP: u32 = 33011; +pub const ETH_P_8021Q: u32 = 33024; +pub const ETH_P_ERSPAN: u32 = 35006; +pub const ETH_P_IPX: u32 = 33079; +pub const ETH_P_IPV6: u32 = 34525; +pub const ETH_P_PAUSE: u32 = 34824; +pub const ETH_P_SLOW: u32 = 34825; +pub const ETH_P_WCCP: u32 = 34878; +pub const ETH_P_MPLS_UC: u32 = 34887; +pub const ETH_P_MPLS_MC: u32 = 34888; +pub const ETH_P_ATMMPOA: u32 = 34892; +pub const ETH_P_PPP_DISC: u32 = 34915; +pub const ETH_P_PPP_SES: u32 = 34916; +pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_ATMFATE: u32 = 34948; +pub const ETH_P_PAE: u32 = 34958; +pub const ETH_P_PROFINET: u32 = 34962; +pub const ETH_P_REALTEK: u32 = 34969; +pub const ETH_P_AOE: u32 = 34978; +pub const ETH_P_ETHERCAT: u32 = 34980; +pub const ETH_P_8021AD: u32 = 34984; +pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_PREAUTH: u32 = 35015; +pub const ETH_P_TIPC: u32 = 35018; +pub const ETH_P_LLDP: u32 = 35020; +pub const ETH_P_MRP: u32 = 35043; +pub const ETH_P_MACSEC: u32 = 35045; +pub const ETH_P_8021AH: u32 = 35047; +pub const ETH_P_MVRP: u32 = 35061; +pub const ETH_P_1588: u32 = 35063; +pub const ETH_P_NCSI: u32 = 35064; +pub const ETH_P_PRP: u32 = 35067; +pub const ETH_P_CFM: u32 = 35074; +pub const ETH_P_FCOE: u32 = 35078; +pub const ETH_P_IBOE: u32 = 35093; +pub const ETH_P_TDLS: u32 = 35085; +pub const ETH_P_FIP: u32 = 35092; +pub const ETH_P_80221: u32 = 35095; +pub const ETH_P_HSR: u32 = 35119; +pub const ETH_P_NSH: u32 = 35151; +pub const ETH_P_LOOPBACK: u32 = 36864; +pub const ETH_P_QINQ1: u32 = 37120; +pub const ETH_P_QINQ2: u32 = 37376; +pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_EDSA: u32 = 56026; +pub const ETH_P_DSA_8021Q: u32 = 56027; +pub const ETH_P_DSA_A5PSW: u32 = 57345; +pub const ETH_P_IFE: u32 = 60734; +pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_802_3_MIN: u32 = 1536; +pub const ETH_P_802_3: u32 = 1; +pub const ETH_P_AX25: u32 = 2; +pub const ETH_P_ALL: u32 = 3; +pub const ETH_P_802_2: u32 = 4; +pub const ETH_P_SNAP: u32 = 5; +pub const ETH_P_DDCMP: u32 = 6; +pub const ETH_P_WAN_PPP: u32 = 7; +pub const ETH_P_PPP_MP: u32 = 8; +pub const ETH_P_LOCALTALK: u32 = 9; +pub const ETH_P_CAN: u32 = 12; +pub const ETH_P_CANFD: u32 = 13; +pub const ETH_P_CANXL: u32 = 14; +pub const ETH_P_PPPTALK: u32 = 16; +pub const ETH_P_TR_802_2: u32 = 17; +pub const ETH_P_MOBITEX: u32 = 21; +pub const ETH_P_CONTROL: u32 = 22; +pub const ETH_P_IRDA: u32 = 23; +pub const ETH_P_ECONET: u32 = 24; +pub const ETH_P_HDLC: u32 = 25; +pub const ETH_P_ARCNET: u32 = 26; +pub const ETH_P_DSA: u32 = 27; +pub const ETH_P_TRAILER: u32 = 28; +pub const ETH_P_PHONET: u32 = 245; +pub const ETH_P_IEEE802154: u32 = 246; +pub const ETH_P_CAIF: u32 = 247; +pub const ETH_P_XDSA: u32 = 248; +pub const ETH_P_MAP: u32 = 249; +pub const ETH_P_MCTP: u32 = 250; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/if_packet.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/if_packet.rs new file mode 100644 index 0000000000000000000000000000000000000000..041a9afdb7b87fe13baf917df28fd8ea34d16a50 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/if_packet.rs @@ -0,0 +1,309 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_pkt { +pub spkt_family: crate::ctypes::c_ushort, +pub spkt_device: [crate::ctypes::c_uchar; 14usize], +pub spkt_protocol: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_ll { +pub sll_family: crate::ctypes::c_ushort, +pub sll_protocol: __be16, +pub sll_ifindex: crate::ctypes::c_int, +pub sll_hatype: crate::ctypes::c_ushort, +pub sll_pkttype: crate::ctypes::c_uchar, +pub sll_halen: crate::ctypes::c_uchar, +pub sll_addr: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats_v3 { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +pub tp_freeze_q_cnt: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_rollover_stats { +pub tp_all: __u64, +pub tp_huge: __u64, +pub tp_failed: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_auxdata { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr { +pub tp_status: crate::ctypes::c_ulong, +pub tp_len: crate::ctypes::c_uint, +pub tp_snaplen: crate::ctypes::c_uint, +pub tp_mac: crate::ctypes::c_ushort, +pub tp_net: crate::ctypes::c_ushort, +pub tp_sec: crate::ctypes::c_uint, +pub tp_usec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket2_hdr { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +pub tp_padding: [__u8; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr_variant1 { +pub tp_rxhash: __u32, +pub tp_vlan_tci: __u32, +pub tp_vlan_tpid: __u16, +pub tp_padding: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket3_hdr { +pub tp_next_offset: __u32, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_snaplen: __u32, +pub tp_len: __u32, +pub tp_status: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub __bindgen_anon_1: tpacket3_hdr__bindgen_ty_1, +pub tp_padding: [__u8; 8usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_bd_ts { +pub ts_sec: crate::ctypes::c_uint, +pub __bindgen_anon_1: tpacket_bd_ts__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_hdr_v1 { +pub block_status: __u32, +pub num_pkts: __u32, +pub offset_to_first_pkt: __u32, +pub blk_len: __u32, +pub seq_num: __u64, +pub ts_first_pkt: tpacket_bd_ts, +pub ts_last_pkt: tpacket_bd_ts, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_block_desc { +pub version: __u32, +pub offset_to_priv: __u32, +pub hdr: tpacket_bd_header_u, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req3 { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +pub tp_retire_blk_tov: crate::ctypes::c_uint, +pub tp_sizeof_priv: crate::ctypes::c_uint, +pub tp_feature_req_word: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct packet_mreq { +pub mr_ifindex: crate::ctypes::c_int, +pub mr_type: crate::ctypes::c_ushort, +pub mr_alen: crate::ctypes::c_ushort, +pub mr_address: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fanout_args { +pub id: __u16, +pub type_flags: __u16, +pub max_num_members: __u32, +} +pub const __LITTLE_ENDIAN: u32 = 1234; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const PACKET_HOST: u32 = 0; +pub const PACKET_BROADCAST: u32 = 1; +pub const PACKET_MULTICAST: u32 = 2; +pub const PACKET_OTHERHOST: u32 = 3; +pub const PACKET_OUTGOING: u32 = 4; +pub const PACKET_LOOPBACK: u32 = 5; +pub const PACKET_USER: u32 = 6; +pub const PACKET_KERNEL: u32 = 7; +pub const PACKET_FASTROUTE: u32 = 6; +pub const PACKET_ADD_MEMBERSHIP: u32 = 1; +pub const PACKET_DROP_MEMBERSHIP: u32 = 2; +pub const PACKET_RECV_OUTPUT: u32 = 3; +pub const PACKET_RX_RING: u32 = 5; +pub const PACKET_STATISTICS: u32 = 6; +pub const PACKET_COPY_THRESH: u32 = 7; +pub const PACKET_AUXDATA: u32 = 8; +pub const PACKET_ORIGDEV: u32 = 9; +pub const PACKET_VERSION: u32 = 10; +pub const PACKET_HDRLEN: u32 = 11; +pub const PACKET_RESERVE: u32 = 12; +pub const PACKET_TX_RING: u32 = 13; +pub const PACKET_LOSS: u32 = 14; +pub const PACKET_VNET_HDR: u32 = 15; +pub const PACKET_TX_TIMESTAMP: u32 = 16; +pub const PACKET_TIMESTAMP: u32 = 17; +pub const PACKET_FANOUT: u32 = 18; +pub const PACKET_TX_HAS_OFF: u32 = 19; +pub const PACKET_QDISC_BYPASS: u32 = 20; +pub const PACKET_ROLLOVER_STATS: u32 = 21; +pub const PACKET_FANOUT_DATA: u32 = 22; +pub const PACKET_IGNORE_OUTGOING: u32 = 23; +pub const PACKET_VNET_HDR_SZ: u32 = 24; +pub const PACKET_FANOUT_HASH: u32 = 0; +pub const PACKET_FANOUT_LB: u32 = 1; +pub const PACKET_FANOUT_CPU: u32 = 2; +pub const PACKET_FANOUT_ROLLOVER: u32 = 3; +pub const PACKET_FANOUT_RND: u32 = 4; +pub const PACKET_FANOUT_QM: u32 = 5; +pub const PACKET_FANOUT_CBPF: u32 = 6; +pub const PACKET_FANOUT_EBPF: u32 = 7; +pub const PACKET_FANOUT_FLAG_ROLLOVER: u32 = 4096; +pub const PACKET_FANOUT_FLAG_UNIQUEID: u32 = 8192; +pub const PACKET_FANOUT_FLAG_IGNORE_OUTGOING: u32 = 16384; +pub const PACKET_FANOUT_FLAG_DEFRAG: u32 = 32768; +pub const TP_STATUS_KERNEL: u32 = 0; +pub const TP_STATUS_USER: u32 = 1; +pub const TP_STATUS_COPY: u32 = 2; +pub const TP_STATUS_LOSING: u32 = 4; +pub const TP_STATUS_CSUMNOTREADY: u32 = 8; +pub const TP_STATUS_VLAN_VALID: u32 = 16; +pub const TP_STATUS_BLK_TMO: u32 = 32; +pub const TP_STATUS_VLAN_TPID_VALID: u32 = 64; +pub const TP_STATUS_CSUM_VALID: u32 = 128; +pub const TP_STATUS_GSO_TCP: u32 = 256; +pub const TP_STATUS_AVAILABLE: u32 = 0; +pub const TP_STATUS_SEND_REQUEST: u32 = 1; +pub const TP_STATUS_SENDING: u32 = 2; +pub const TP_STATUS_WRONG_FORMAT: u32 = 4; +pub const TP_STATUS_TS_SOFTWARE: u32 = 536870912; +pub const TP_STATUS_TS_SYS_HARDWARE: u32 = 1073741824; +pub const TP_STATUS_TS_RAW_HARDWARE: u32 = 2147483648; +pub const TP_FT_REQ_FILL_RXHASH: u32 = 1; +pub const TPACKET_ALIGNMENT: u32 = 16; +pub const PACKET_MR_MULTICAST: u32 = 0; +pub const PACKET_MR_PROMISC: u32 = 1; +pub const PACKET_MR_ALLMULTI: u32 = 2; +pub const PACKET_MR_UNICAST: u32 = 3; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tpacket_versions { +TPACKET_V1 = 0, +TPACKET_V2 = 1, +TPACKET_V3 = 2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_stats_u { +pub stats1: tpacket_stats, +pub stats3: tpacket_stats_v3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket3_hdr__bindgen_ty_1 { +pub hv1: tpacket_hdr_variant1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_ts__bindgen_ty_1 { +pub ts_usec: crate::ctypes::c_uint, +pub ts_nsec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_header_u { +pub bh1: tpacket_hdr_v1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_req_u { +pub req: tpacket_req, +pub req3: tpacket_req3, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/image.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/image.rs new file mode 100644 index 0000000000000000000000000000000000000000..bff15e373cd12fce9e91f11af9ee8efb9065775b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/image.rs @@ -0,0 +1,3 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + + diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/io_uring.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/io_uring.rs new file mode 100644 index 0000000000000000000000000000000000000000..14a09f22e71c53f5cd9c814c84596839320bc0bd --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/io_uring.rs @@ -0,0 +1,1438 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_rwf_t = crate::ctypes::c_int; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +pub struct __BindgenUnionField(::core::marker::PhantomData); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v1 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub master_key_descriptor: [__u8; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_key { +pub mode: __u32, +pub raw: [__u8; 64usize], +pub size: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v2 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub log2_data_unit_size: __u8, +pub __reserved: [__u8; 3usize], +pub master_key_identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_policy_ex_arg { +pub policy_size: __u64, +pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_key_specifier { +pub type_: __u32, +pub __reserved: __u32, +pub u: fscrypt_key_specifier__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct fscrypt_provisioning_key_payload { +pub type_: __u32, +pub flags: __u32, +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +pub struct fscrypt_add_key_arg { +pub key_spec: fscrypt_key_specifier, +pub raw_size: __u32, +pub key_id: __u32, +pub flags: __u32, +pub __reserved: [__u32; 7usize], +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_remove_key_arg { +pub key_spec: fscrypt_key_specifier, +pub removal_status_flags: __u32, +pub __reserved: [__u32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_key_status_arg { +pub key_spec: fscrypt_key_specifier, +pub __reserved: [__u32; 6usize], +pub status: __u32, +pub status_flags: __u32, +pub user_count: __u32, +pub __out_reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mount_attr { +pub attr_set: __u64, +pub attr_clr: __u64, +pub propagation: __u64, +pub userns_fd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct statmount { +pub size: __u32, +pub mnt_opts: __u32, +pub mask: __u64, +pub sb_dev_major: __u32, +pub sb_dev_minor: __u32, +pub sb_magic: __u64, +pub sb_flags: __u32, +pub fs_type: __u32, +pub mnt_id: __u64, +pub mnt_parent_id: __u64, +pub mnt_id_old: __u32, +pub mnt_parent_id_old: __u32, +pub mnt_attr: __u64, +pub mnt_propagation: __u64, +pub mnt_peer_group: __u64, +pub mnt_master: __u64, +pub propagate_from: __u64, +pub mnt_root: __u32, +pub mnt_point: __u32, +pub mnt_ns_id: __u64, +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub supported_mask: __u64, +pub mnt_uidmap_num: __u32, +pub mnt_uidmap: __u32, +pub mnt_gidmap_num: __u32, +pub mnt_gidmap: __u32, +pub __spare2: [__u64; 43usize], +pub str_: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mnt_id_req { +pub size: __u32, +pub spare: __u32, +pub mnt_id: __u64, +pub param: __u64, +pub mnt_ns_id: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_clone_range { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fstrim_range { +pub start: __u64, +pub len: __u64, +pub minlen: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsuuid2 { +pub len: __u8, +pub uuid: [__u8; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fs_sysfs_path { +pub len: __u8, +pub name: [__u8; 128usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_dedupe_range_info { +pub dest_fd: __s64, +pub dest_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct file_dedupe_range { +pub src_offset: __u64, +pub src_length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct files_stat_struct { +pub nr_files: crate::ctypes::c_ulong, +pub nr_free_files: crate::ctypes::c_ulong, +pub max_files: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct inodes_stat_t { +pub nr_inodes: crate::ctypes::c_long, +pub nr_unused: crate::ctypes::c_long, +pub dummy: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsxattr { +pub fsx_xflags: __u32, +pub fsx_extsize: __u32, +pub fsx_nextents: __u32, +pub fsx_projid: __u32, +pub fsx_cowextsize: __u32, +pub fsx_pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct page_region { +pub start: __u64, +pub end: __u64, +pub categories: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pm_scan_arg { +pub size: __u64, +pub flags: __u64, +pub start: __u64, +pub end: __u64, +pub walk_end: __u64, +pub vec: __u64, +pub vec_len: __u64, +pub max_pages: __u64, +pub category_inverted: __u64, +pub category_mask: __u64, +pub category_anyof_mask: __u64, +pub return_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct procmap_query { +pub size: __u64, +pub query_flags: __u64, +pub query_addr: __u64, +pub vma_start: __u64, +pub vma_end: __u64, +pub vma_flags: __u64, +pub vma_page_size: __u64, +pub vma_offset: __u64, +pub inode: __u64, +pub dev_major: __u32, +pub dev_minor: __u32, +pub vma_name_size: __u32, +pub build_id_size: __u32, +pub vma_name_addr: __u64, +pub build_id_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_timespec { +pub tv_sec: __kernel_time64_t, +pub tv_nsec: crate::ctypes::c_longlong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_itimerspec { +pub it_interval: __kernel_timespec, +pub it_value: __kernel_timespec, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_long_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timespec { +pub tv_sec: __kernel_old_time_t, +pub tv_nsec: crate::ctypes::c_long, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_itimerval { +pub it_interval: __kernel_old_timeval, +pub it_value: __kernel_old_timeval, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sock_timeval { +pub tv_sec: __s64, +pub tv_usec: __s64, +} +#[repr(C)] +pub struct io_uring_sqe { +pub opcode: __u8, +pub flags: __u8, +pub ioprio: __u16, +pub fd: __s32, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, +pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, +pub len: __u32, +pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, +pub user_data: __u64, +pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, +pub personality: __u16, +pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, +pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { +pub cmd_op: __u32, +pub __pad1: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_2__bindgen_ty_1 { +pub level: __u32, +pub optname: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { +pub addr_len: __u16, +pub __pad3: [__u16; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_2 { +pub write_stream: __u8, +pub __pad4: [__u8; 3usize], +} +#[repr(C)] +pub struct io_uring_sqe__bindgen_ty_6 { +pub __bindgen_anon_1: __BindgenUnionField, +pub __bindgen_anon_2: __BindgenUnionField, +pub optval: __BindgenUnionField<__u64>, +pub cmd: __BindgenUnionField<[__u8; 0usize]>, +pub bindgen_union_field: [u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { +pub addr3: __u64, +pub __pad2: [__u64; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_2 { +pub attr_ptr: __u64, +pub attr_type_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_attr_pi { +pub flags: __u16, +pub app_tag: __u16, +pub len: __u32, +pub addr: __u64, +pub seed: __u64, +pub rsvd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct io_uring_cqe { +pub user_data: __u64, +pub res: __s32, +pub flags: __u32, +pub big_cqe: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_sqring_offsets { +pub head: __u32, +pub tail: __u32, +pub ring_mask: __u32, +pub ring_entries: __u32, +pub flags: __u32, +pub dropped: __u32, +pub array: __u32, +pub resv1: __u32, +pub user_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_cqring_offsets { +pub head: __u32, +pub tail: __u32, +pub ring_mask: __u32, +pub ring_entries: __u32, +pub overflow: __u32, +pub cqes: __u32, +pub flags: __u32, +pub resv1: __u32, +pub user_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_params { +pub sq_entries: __u32, +pub cq_entries: __u32, +pub flags: __u32, +pub sq_thread_cpu: __u32, +pub sq_thread_idle: __u32, +pub features: __u32, +pub wq_fd: __u32, +pub resv: [__u32; 3usize], +pub sq_off: io_sqring_offsets, +pub cq_off: io_cqring_offsets, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_files_update { +pub offset: __u32, +pub resv: __u32, +pub fds: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_region_desc { +pub user_addr: __u64, +pub size: __u64, +pub flags: __u32, +pub id: __u32, +pub mmap_offset: __u64, +pub __resv: [__u64; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_mem_region_reg { +pub region_uptr: __u64, +pub flags: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_rsrc_register { +pub nr: __u32, +pub flags: __u32, +pub resv2: __u64, +pub data: __u64, +pub tags: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_rsrc_update { +pub offset: __u32, +pub resv: __u32, +pub data: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_rsrc_update2 { +pub offset: __u32, +pub resv: __u32, +pub data: __u64, +pub tags: __u64, +pub nr: __u32, +pub resv2: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_probe_op { +pub op: __u8, +pub resv: __u8, +pub flags: __u16, +pub resv2: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct io_uring_probe { +pub last_op: __u8, +pub ops_len: __u8, +pub resv: __u16, +pub resv2: [__u32; 3usize], +pub ops: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct io_uring_restriction { +pub opcode: __u16, +pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, +pub resv: __u8, +pub resv2: [__u32; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_clock_register { +pub clockid: __u32, +pub __resv: [__u32; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_clone_buffers { +pub src_fd: __u32, +pub flags: __u32, +pub src_off: __u32, +pub dst_off: __u32, +pub nr: __u32, +pub pad: [__u32; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf { +pub addr: __u64, +pub len: __u32, +pub bid: __u16, +pub resv: __u16, +} +#[repr(C)] +pub struct io_uring_buf_ring { +pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_buf_ring__bindgen_ty_1 { +pub __bindgen_anon_1: __BindgenUnionField, +pub __bindgen_anon_2: __BindgenUnionField, +pub bindgen_union_field: [u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { +pub resv1: __u64, +pub resv2: __u32, +pub resv3: __u16, +pub tail: __u16, +} +#[repr(C)] +#[derive(Debug)] +pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { +pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, +pub bufs: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_reg { +pub ring_addr: __u64, +pub ring_entries: __u32, +pub bgid: __u16, +pub flags: __u16, +pub resv: [__u64; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_status { +pub buf_group: __u32, +pub head: __u32, +pub resv: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_napi { +pub busy_poll_to: __u32, +pub prefer_busy_poll: __u8, +pub opcode: __u8, +pub pad: [__u8; 2usize], +pub op_param: __u32, +pub resv: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_reg_wait { +pub ts: __kernel_timespec, +pub min_wait_usec: __u32, +pub flags: __u32, +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub pad: [__u32; 3usize], +pub pad2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_getevents_arg { +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub min_wait_usec: __u32, +pub ts: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sync_cancel_reg { +pub addr: __u64, +pub fd: __s32, +pub flags: __u32, +pub timeout: __kernel_timespec, +pub opcode: __u8, +pub pad: [__u8; 7usize], +pub pad2: [__u64; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_file_index_range { +pub off: __u32, +pub len: __u32, +pub resv: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_recvmsg_out { +pub namelen: __u32, +pub controllen: __u32, +pub payloadlen: __u32, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 3usize], +} +pub const NR_OPEN: u32 = 1024; +pub const NGROUPS_MAX: u32 = 65536; +pub const ARG_MAX: u32 = 131072; +pub const LINK_MAX: u32 = 127; +pub const MAX_CANON: u32 = 255; +pub const MAX_INPUT: u32 = 255; +pub const NAME_MAX: u32 = 255; +pub const PATH_MAX: u32 = 4096; +pub const PIPE_BUF: u32 = 4096; +pub const XATTR_NAME_MAX: u32 = 255; +pub const XATTR_SIZE_MAX: u32 = 65536; +pub const XATTR_LIST_MAX: u32 = 65536; +pub const RTSIG_MAX: u32 = 32; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_SIZEBITS: u32 = 14; +pub const _IOC_DIRBITS: u32 = 2; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 16383; +pub const _IOC_DIRMASK: u32 = 3; +pub const _IOC_NRSHIFT: u32 = 0; +pub const _IOC_TYPESHIFT: u32 = 8; +pub const _IOC_SIZESHIFT: u32 = 16; +pub const _IOC_DIRSHIFT: u32 = 30; +pub const _IOC_NONE: u32 = 0; +pub const _IOC_WRITE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const IOC_IN: u32 = 1073741824; +pub const IOC_OUT: u32 = 2147483648; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 1073676288; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; +pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; +pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; +pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; +pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; +pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; +pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; +pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; +pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; +pub const FSCRYPT_POLICY_V1: u32 = 0; +pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; +pub const FSCRYPT_POLICY_V2: u32 = 2; +pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; +pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; +pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; +pub const FSCRYPT_ADD_KEY_FLAG_HW_WRAPPED: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; +pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; +pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; +pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; +pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; +pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FS_POLICY_FLAGS_VALID: u32 = 7; +pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; +pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; +pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; +pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; +pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; +pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; +pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; +pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; +pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FS_MAX_KEY_SIZE: u32 = 64; +pub const MS_RDONLY: u32 = 1; +pub const MS_NOSUID: u32 = 2; +pub const MS_NODEV: u32 = 4; +pub const MS_NOEXEC: u32 = 8; +pub const MS_SYNCHRONOUS: u32 = 16; +pub const MS_REMOUNT: u32 = 32; +pub const MS_MANDLOCK: u32 = 64; +pub const MS_DIRSYNC: u32 = 128; +pub const MS_NOSYMFOLLOW: u32 = 256; +pub const MS_NOATIME: u32 = 1024; +pub const MS_NODIRATIME: u32 = 2048; +pub const MS_BIND: u32 = 4096; +pub const MS_MOVE: u32 = 8192; +pub const MS_REC: u32 = 16384; +pub const MS_VERBOSE: u32 = 32768; +pub const MS_SILENT: u32 = 32768; +pub const MS_POSIXACL: u32 = 65536; +pub const MS_UNBINDABLE: u32 = 131072; +pub const MS_PRIVATE: u32 = 262144; +pub const MS_SLAVE: u32 = 524288; +pub const MS_SHARED: u32 = 1048576; +pub const MS_RELATIME: u32 = 2097152; +pub const MS_KERNMOUNT: u32 = 4194304; +pub const MS_I_VERSION: u32 = 8388608; +pub const MS_STRICTATIME: u32 = 16777216; +pub const MS_LAZYTIME: u32 = 33554432; +pub const MS_SUBMOUNT: u32 = 67108864; +pub const MS_NOREMOTELOCK: u32 = 134217728; +pub const MS_NOSEC: u32 = 268435456; +pub const MS_BORN: u32 = 536870912; +pub const MS_ACTIVE: u32 = 1073741824; +pub const MS_NOUSER: u32 = 2147483648; +pub const MS_RMT_MASK: u32 = 41943121; +pub const MS_MGC_VAL: u32 = 3236757504; +pub const MS_MGC_MSK: u32 = 4294901760; +pub const OPEN_TREE_CLONE: u32 = 1; +pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; +pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; +pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; +pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; +pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; +pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; +pub const MOVE_MOUNT_SET_GROUP: u32 = 256; +pub const MOVE_MOUNT_BENEATH: u32 = 512; +pub const MOVE_MOUNT__MASK: u32 = 887; +pub const FSOPEN_CLOEXEC: u32 = 1; +pub const FSPICK_CLOEXEC: u32 = 1; +pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; +pub const FSPICK_NO_AUTOMOUNT: u32 = 4; +pub const FSPICK_EMPTY_PATH: u32 = 8; +pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const MOUNT_ATTR_RDONLY: u32 = 1; +pub const MOUNT_ATTR_NOSUID: u32 = 2; +pub const MOUNT_ATTR_NODEV: u32 = 4; +pub const MOUNT_ATTR_NOEXEC: u32 = 8; +pub const MOUNT_ATTR__ATIME: u32 = 112; +pub const MOUNT_ATTR_RELATIME: u32 = 0; +pub const MOUNT_ATTR_NOATIME: u32 = 16; +pub const MOUNT_ATTR_STRICTATIME: u32 = 32; +pub const MOUNT_ATTR_NODIRATIME: u32 = 128; +pub const MOUNT_ATTR_IDMAP: u32 = 1048576; +pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; +pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; +pub const MNT_ID_REQ_SIZE_VER0: u32 = 24; +pub const MNT_ID_REQ_SIZE_VER1: u32 = 32; +pub const STATMOUNT_SB_BASIC: u32 = 1; +pub const STATMOUNT_MNT_BASIC: u32 = 2; +pub const STATMOUNT_PROPAGATE_FROM: u32 = 4; +pub const STATMOUNT_MNT_ROOT: u32 = 8; +pub const STATMOUNT_MNT_POINT: u32 = 16; +pub const STATMOUNT_FS_TYPE: u32 = 32; +pub const STATMOUNT_MNT_NS_ID: u32 = 64; +pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; +pub const STATMOUNT_SUPPORTED_MASK: u32 = 4096; +pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; +pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; +pub const LSMT_ROOT: i32 = -1; +pub const LISTMOUNT_REVERSE: u32 = 1; +pub const INR_OPEN_CUR: u32 = 1024; +pub const INR_OPEN_MAX: u32 = 4096; +pub const BLOCK_SIZE_BITS: u32 = 10; +pub const BLOCK_SIZE: u32 = 1024; +pub const IO_INTEGRITY_CHK_GUARD: u32 = 1; +pub const IO_INTEGRITY_CHK_REFTAG: u32 = 2; +pub const IO_INTEGRITY_CHK_APPTAG: u32 = 4; +pub const IO_INTEGRITY_VALID_FLAGS: u32 = 7; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const SEEK_DATA: u32 = 3; +pub const SEEK_HOLE: u32 = 4; +pub const SEEK_MAX: u32 = 4; +pub const RENAME_NOREPLACE: u32 = 1; +pub const RENAME_EXCHANGE: u32 = 2; +pub const RENAME_WHITEOUT: u32 = 4; +pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; +pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; +pub const NR_FILE: u32 = 8192; +pub const FS_XFLAG_REALTIME: u32 = 1; +pub const FS_XFLAG_PREALLOC: u32 = 2; +pub const FS_XFLAG_IMMUTABLE: u32 = 8; +pub const FS_XFLAG_APPEND: u32 = 16; +pub const FS_XFLAG_SYNC: u32 = 32; +pub const FS_XFLAG_NOATIME: u32 = 64; +pub const FS_XFLAG_NODUMP: u32 = 128; +pub const FS_XFLAG_RTINHERIT: u32 = 256; +pub const FS_XFLAG_PROJINHERIT: u32 = 512; +pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; +pub const FS_XFLAG_EXTSIZE: u32 = 2048; +pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; +pub const FS_XFLAG_NODEFRAG: u32 = 8192; +pub const FS_XFLAG_FILESTREAM: u32 = 16384; +pub const FS_XFLAG_DAX: u32 = 32768; +pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_HASATTR: u32 = 2147483648; +pub const BMAP_IOCTL: u32 = 1; +pub const FSLABEL_MAX: u32 = 256; +pub const FS_SECRM_FL: u32 = 1; +pub const FS_UNRM_FL: u32 = 2; +pub const FS_COMPR_FL: u32 = 4; +pub const FS_SYNC_FL: u32 = 8; +pub const FS_IMMUTABLE_FL: u32 = 16; +pub const FS_APPEND_FL: u32 = 32; +pub const FS_NODUMP_FL: u32 = 64; +pub const FS_NOATIME_FL: u32 = 128; +pub const FS_DIRTY_FL: u32 = 256; +pub const FS_COMPRBLK_FL: u32 = 512; +pub const FS_NOCOMP_FL: u32 = 1024; +pub const FS_ENCRYPT_FL: u32 = 2048; +pub const FS_BTREE_FL: u32 = 4096; +pub const FS_INDEX_FL: u32 = 4096; +pub const FS_IMAGIC_FL: u32 = 8192; +pub const FS_JOURNAL_DATA_FL: u32 = 16384; +pub const FS_NOTAIL_FL: u32 = 32768; +pub const FS_DIRSYNC_FL: u32 = 65536; +pub const FS_TOPDIR_FL: u32 = 131072; +pub const FS_HUGE_FILE_FL: u32 = 262144; +pub const FS_EXTENT_FL: u32 = 524288; +pub const FS_VERITY_FL: u32 = 1048576; +pub const FS_EA_INODE_FL: u32 = 2097152; +pub const FS_EOFBLOCKS_FL: u32 = 4194304; +pub const FS_NOCOW_FL: u32 = 8388608; +pub const FS_DAX_FL: u32 = 33554432; +pub const FS_INLINE_DATA_FL: u32 = 268435456; +pub const FS_PROJINHERIT_FL: u32 = 536870912; +pub const FS_CASEFOLD_FL: u32 = 1073741824; +pub const FS_RESERVED_FL: u32 = 2147483648; +pub const FS_FL_USER_VISIBLE: u32 = 253951; +pub const FS_FL_USER_MODIFIABLE: u32 = 229631; +pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; +pub const SYNC_FILE_RANGE_WRITE: u32 = 2; +pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; +pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; +pub const PROCFS_IOCTL_MAGIC: u8 = 102u8; +pub const PAGE_IS_WPALLOWED: u32 = 1; +pub const PAGE_IS_WRITTEN: u32 = 2; +pub const PAGE_IS_FILE: u32 = 4; +pub const PAGE_IS_PRESENT: u32 = 8; +pub const PAGE_IS_SWAPPED: u32 = 16; +pub const PAGE_IS_PFNZERO: u32 = 32; +pub const PAGE_IS_HUGE: u32 = 64; +pub const PAGE_IS_SOFT_DIRTY: u32 = 128; +pub const PAGE_IS_GUARD: u32 = 256; +pub const PM_SCAN_WP_MATCHING: u32 = 1; +pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; +pub const IORING_FILE_INDEX_ALLOC: i32 = -1; +pub const IORING_SETUP_IOPOLL: u32 = 1; +pub const IORING_SETUP_SQPOLL: u32 = 2; +pub const IORING_SETUP_SQ_AFF: u32 = 4; +pub const IORING_SETUP_CQSIZE: u32 = 8; +pub const IORING_SETUP_CLAMP: u32 = 16; +pub const IORING_SETUP_ATTACH_WQ: u32 = 32; +pub const IORING_SETUP_R_DISABLED: u32 = 64; +pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; +pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; +pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; +pub const IORING_SETUP_SQE128: u32 = 1024; +pub const IORING_SETUP_CQE32: u32 = 2048; +pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; +pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; +pub const IORING_SETUP_NO_MMAP: u32 = 16384; +pub const IORING_SETUP_REGISTERED_FD_ONLY: u32 = 32768; +pub const IORING_SETUP_NO_SQARRAY: u32 = 65536; +pub const IORING_SETUP_HYBRID_IOPOLL: u32 = 131072; +pub const IORING_URING_CMD_FIXED: u32 = 1; +pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_FSYNC_DATASYNC: u32 = 1; +pub const IORING_TIMEOUT_ABS: u32 = 1; +pub const IORING_TIMEOUT_UPDATE: u32 = 2; +pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; +pub const IORING_TIMEOUT_REALTIME: u32 = 8; +pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; +pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; +pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; +pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; +pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; +pub const IORING_POLL_ADD_MULTI: u32 = 1; +pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; +pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; +pub const IORING_POLL_ADD_LEVEL: u32 = 8; +pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; +pub const IORING_ASYNC_CANCEL_FD: u32 = 2; +pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; +pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; +pub const IORING_ASYNC_CANCEL_USERDATA: u32 = 16; +pub const IORING_ASYNC_CANCEL_OP: u32 = 32; +pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; +pub const IORING_RECV_MULTISHOT: u32 = 2; +pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; +pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; +pub const IORING_RECVSEND_BUNDLE: u32 = 16; +pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; +pub const IORING_ACCEPT_MULTISHOT: u32 = 1; +pub const IORING_ACCEPT_DONTWAIT: u32 = 2; +pub const IORING_ACCEPT_POLL_FIRST: u32 = 4; +pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; +pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; +pub const IORING_FIXED_FD_NO_CLOEXEC: u32 = 1; +pub const IORING_NOP_INJECT_RESULT: u32 = 1; +pub const IORING_NOP_FILE: u32 = 2; +pub const IORING_NOP_FIXED_FILE: u32 = 4; +pub const IORING_NOP_FIXED_BUFFER: u32 = 8; +pub const IORING_CQE_F_BUFFER: u32 = 1; +pub const IORING_CQE_F_MORE: u32 = 2; +pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; +pub const IORING_CQE_F_NOTIF: u32 = 8; +pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; +pub const IORING_OFF_SQ_RING: u32 = 0; +pub const IORING_OFF_CQ_RING: u32 = 134217728; +pub const IORING_OFF_SQES: u32 = 268435456; +pub const IORING_OFF_PBUF_RING: u32 = 2147483648; +pub const IORING_OFF_PBUF_SHIFT: u32 = 16; +pub const IORING_OFF_MMAP_MASK: u32 = 4160749568; +pub const IORING_SQ_NEED_WAKEUP: u32 = 1; +pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; +pub const IORING_SQ_TASKRUN: u32 = 4; +pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; +pub const IORING_ENTER_GETEVENTS: u32 = 1; +pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; +pub const IORING_ENTER_SQ_WAIT: u32 = 4; +pub const IORING_ENTER_EXT_ARG: u32 = 8; +pub const IORING_ENTER_REGISTERED_RING: u32 = 16; +pub const IORING_ENTER_ABS_TIMER: u32 = 32; +pub const IORING_ENTER_EXT_ARG_REG: u32 = 64; +pub const IORING_ENTER_NO_IOWAIT: u32 = 128; +pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; +pub const IORING_FEAT_NODROP: u32 = 2; +pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; +pub const IORING_FEAT_RW_CUR_POS: u32 = 8; +pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; +pub const IORING_FEAT_FAST_POLL: u32 = 32; +pub const IORING_FEAT_POLL_32BITS: u32 = 64; +pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; +pub const IORING_FEAT_EXT_ARG: u32 = 256; +pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; +pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; +pub const IORING_FEAT_CQE_SKIP: u32 = 2048; +pub const IORING_FEAT_LINKED_FILE: u32 = 4096; +pub const IORING_FEAT_REG_REG_RING: u32 = 8192; +pub const IORING_FEAT_RECVSEND_BUNDLE: u32 = 16384; +pub const IORING_FEAT_MIN_TIMEOUT: u32 = 32768; +pub const IORING_FEAT_RW_ATTR: u32 = 65536; +pub const IORING_FEAT_NO_IOWAIT: u32 = 131072; +pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; +pub const IORING_REGISTER_FILES_SKIP: i32 = -2; +pub const IO_URING_OP_SUPPORTED: u32 = 1; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; +pub const IORING_MEM_REGION_TYPE_USER: _bindgen_ty_1 = _bindgen_ty_1::IORING_MEM_REGION_TYPE_USER; +pub const IORING_MEM_REGION_REG_WAIT_ARG: _bindgen_ty_2 = _bindgen_ty_2::IORING_MEM_REGION_REG_WAIT_ARG; +pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_REGISTER_DST_REPLACE: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_DST_REPLACE; +pub const IORING_REG_WAIT_TS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REG_WAIT_TS; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum fsconfig_command { +FSCONFIG_SET_FLAG = 0, +FSCONFIG_SET_STRING = 1, +FSCONFIG_SET_BINARY = 2, +FSCONFIG_SET_PATH = 3, +FSCONFIG_SET_PATH_EMPTY = 4, +FSCONFIG_SET_FD = 5, +FSCONFIG_CMD_CREATE = 6, +FSCONFIG_CMD_RECONFIGURE = 7, +FSCONFIG_CMD_CREATE_EXCL = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum procmap_query_flags { +PROCMAP_QUERY_VMA_READABLE = 1, +PROCMAP_QUERY_VMA_WRITABLE = 2, +PROCMAP_QUERY_VMA_EXECUTABLE = 4, +PROCMAP_QUERY_VMA_SHARED = 8, +PROCMAP_QUERY_COVERING_OR_NEXT_VMA = 16, +PROCMAP_QUERY_FILE_BACKED_VMA = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_sqe_flags_bit { +IOSQE_FIXED_FILE_BIT = 0, +IOSQE_IO_DRAIN_BIT = 1, +IOSQE_IO_LINK_BIT = 2, +IOSQE_IO_HARDLINK_BIT = 3, +IOSQE_ASYNC_BIT = 4, +IOSQE_BUFFER_SELECT_BIT = 5, +IOSQE_CQE_SKIP_SUCCESS_BIT = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_op { +IORING_OP_NOP = 0, +IORING_OP_READV = 1, +IORING_OP_WRITEV = 2, +IORING_OP_FSYNC = 3, +IORING_OP_READ_FIXED = 4, +IORING_OP_WRITE_FIXED = 5, +IORING_OP_POLL_ADD = 6, +IORING_OP_POLL_REMOVE = 7, +IORING_OP_SYNC_FILE_RANGE = 8, +IORING_OP_SENDMSG = 9, +IORING_OP_RECVMSG = 10, +IORING_OP_TIMEOUT = 11, +IORING_OP_TIMEOUT_REMOVE = 12, +IORING_OP_ACCEPT = 13, +IORING_OP_ASYNC_CANCEL = 14, +IORING_OP_LINK_TIMEOUT = 15, +IORING_OP_CONNECT = 16, +IORING_OP_FALLOCATE = 17, +IORING_OP_OPENAT = 18, +IORING_OP_CLOSE = 19, +IORING_OP_FILES_UPDATE = 20, +IORING_OP_STATX = 21, +IORING_OP_READ = 22, +IORING_OP_WRITE = 23, +IORING_OP_FADVISE = 24, +IORING_OP_MADVISE = 25, +IORING_OP_SEND = 26, +IORING_OP_RECV = 27, +IORING_OP_OPENAT2 = 28, +IORING_OP_EPOLL_CTL = 29, +IORING_OP_SPLICE = 30, +IORING_OP_PROVIDE_BUFFERS = 31, +IORING_OP_REMOVE_BUFFERS = 32, +IORING_OP_TEE = 33, +IORING_OP_SHUTDOWN = 34, +IORING_OP_RENAMEAT = 35, +IORING_OP_UNLINKAT = 36, +IORING_OP_MKDIRAT = 37, +IORING_OP_SYMLINKAT = 38, +IORING_OP_LINKAT = 39, +IORING_OP_MSG_RING = 40, +IORING_OP_FSETXATTR = 41, +IORING_OP_SETXATTR = 42, +IORING_OP_FGETXATTR = 43, +IORING_OP_GETXATTR = 44, +IORING_OP_SOCKET = 45, +IORING_OP_URING_CMD = 46, +IORING_OP_SEND_ZC = 47, +IORING_OP_SENDMSG_ZC = 48, +IORING_OP_READ_MULTISHOT = 49, +IORING_OP_WAITID = 50, +IORING_OP_FUTEX_WAIT = 51, +IORING_OP_FUTEX_WAKE = 52, +IORING_OP_FUTEX_WAITV = 53, +IORING_OP_FIXED_FD_INSTALL = 54, +IORING_OP_FTRUNCATE = 55, +IORING_OP_BIND = 56, +IORING_OP_LISTEN = 57, +IORING_OP_RECV_ZC = 58, +IORING_OP_EPOLL_WAIT = 59, +IORING_OP_READV_FIXED = 60, +IORING_OP_WRITEV_FIXED = 61, +IORING_OP_PIPE = 62, +IORING_OP_LAST = 63, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_msg_ring_flags { +IORING_MSG_DATA = 0, +IORING_MSG_SEND_FD = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_register_op { +IORING_REGISTER_BUFFERS = 0, +IORING_UNREGISTER_BUFFERS = 1, +IORING_REGISTER_FILES = 2, +IORING_UNREGISTER_FILES = 3, +IORING_REGISTER_EVENTFD = 4, +IORING_UNREGISTER_EVENTFD = 5, +IORING_REGISTER_FILES_UPDATE = 6, +IORING_REGISTER_EVENTFD_ASYNC = 7, +IORING_REGISTER_PROBE = 8, +IORING_REGISTER_PERSONALITY = 9, +IORING_UNREGISTER_PERSONALITY = 10, +IORING_REGISTER_RESTRICTIONS = 11, +IORING_REGISTER_ENABLE_RINGS = 12, +IORING_REGISTER_FILES2 = 13, +IORING_REGISTER_FILES_UPDATE2 = 14, +IORING_REGISTER_BUFFERS2 = 15, +IORING_REGISTER_BUFFERS_UPDATE = 16, +IORING_REGISTER_IOWQ_AFF = 17, +IORING_UNREGISTER_IOWQ_AFF = 18, +IORING_REGISTER_IOWQ_MAX_WORKERS = 19, +IORING_REGISTER_RING_FDS = 20, +IORING_UNREGISTER_RING_FDS = 21, +IORING_REGISTER_PBUF_RING = 22, +IORING_UNREGISTER_PBUF_RING = 23, +IORING_REGISTER_SYNC_CANCEL = 24, +IORING_REGISTER_FILE_ALLOC_RANGE = 25, +IORING_REGISTER_PBUF_STATUS = 26, +IORING_REGISTER_NAPI = 27, +IORING_UNREGISTER_NAPI = 28, +IORING_REGISTER_CLOCK = 29, +IORING_REGISTER_CLONE_BUFFERS = 30, +IORING_REGISTER_SEND_MSG_RING = 31, +IORING_REGISTER_ZCRX_IFQ = 32, +IORING_REGISTER_RESIZE_RINGS = 33, +IORING_REGISTER_MEM_REGION = 34, +IORING_REGISTER_LAST = 35, +IORING_REGISTER_USE_REGISTERED_RING = 2147483648, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_wq_type { +IO_WQ_BOUND = 0, +IO_WQ_UNBOUND = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +IORING_MEM_REGION_TYPE_USER = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IORING_MEM_REGION_REG_WAIT_ARG = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +IORING_REGISTER_SRC_REGISTERED = 1, +IORING_REGISTER_DST_REPLACE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_register_pbuf_ring_flags { +IOU_PBUF_RING_MMAP = 1, +IOU_PBUF_RING_INC = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_op { +IO_URING_NAPI_REGISTER_OP = 0, +IO_URING_NAPI_STATIC_ADD_ID = 1, +IO_URING_NAPI_STATIC_DEL_ID = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_tracking_strategy { +IO_URING_NAPI_TRACKING_DYNAMIC = 0, +IO_URING_NAPI_TRACKING_STATIC = 1, +IO_URING_NAPI_TRACKING_INACTIVE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_register_restriction_op { +IORING_RESTRICTION_REGISTER_OP = 0, +IORING_RESTRICTION_SQE_OP = 1, +IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, +IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, +IORING_RESTRICTION_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IORING_REG_WAIT_TS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_socket_op { +SOCKET_URING_OP_SIOCINQ = 0, +SOCKET_URING_OP_SIOCOUTQ = 1, +SOCKET_URING_OP_GETSOCKOPT = 2, +SOCKET_URING_OP_SETSOCKOPT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { +pub version: __u8, +pub v1: fscrypt_policy_v1, +pub v2: fscrypt_policy_v2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_key_specifier__bindgen_ty_1 { +pub __reserved: [__u8; 32usize], +pub descriptor: [__u8; 8usize], +pub identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_1 { +pub off: __u64, +pub addr2: __u64, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_2 { +pub addr: __u64, +pub splice_off_in: __u64, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_2__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_3 { +pub rw_flags: __kernel_rwf_t, +pub fsync_flags: __u32, +pub poll_events: __u16, +pub poll32_events: __u32, +pub sync_range_flags: __u32, +pub msg_flags: __u32, +pub timeout_flags: __u32, +pub accept_flags: __u32, +pub cancel_flags: __u32, +pub open_flags: __u32, +pub statx_flags: __u32, +pub fadvise_advice: __u32, +pub splice_flags: __u32, +pub rename_flags: __u32, +pub unlink_flags: __u32, +pub hardlink_flags: __u32, +pub xattr_flags: __u32, +pub msg_ring_flags: __u32, +pub uring_cmd_flags: __u32, +pub waitid_flags: __u32, +pub futex_flags: __u32, +pub install_fd_flags: __u32, +pub nop_flags: __u32, +pub pipe_flags: __u32, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_4 { +pub buf_index: __u16, +pub buf_group: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_5 { +pub splice_fd_in: __s32, +pub file_index: __u32, +pub zcrx_ifq_idx: __u32, +pub optlen: __u32, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, +pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_5__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_restriction__bindgen_ty_1 { +pub register_op: __u8, +pub sqe_op: __u8, +pub sqe_flags: __u8, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl __BindgenUnionField { +#[inline] +pub const fn new() -> Self { +__BindgenUnionField(::core::marker::PhantomData) +} +#[inline] +pub unsafe fn as_ref(&self) -> &T { +::core::mem::transmute(self) +} +#[inline] +pub unsafe fn as_mut(&mut self) -> &mut T { +::core::mem::transmute(self) +} +} +impl ::core::default::Default for __BindgenUnionField { +#[inline] +fn default() -> Self { +Self::new() +} +} +impl ::core::clone::Clone for __BindgenUnionField { +#[inline] +fn clone(&self) -> Self { +*self +} +} +impl ::core::marker::Copy for __BindgenUnionField {} +impl ::core::fmt::Debug for __BindgenUnionField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__BindgenUnionField") +} +} +impl ::core::hash::Hash for __BindgenUnionField { +fn hash(&self, _state: &mut H) {} +} +impl ::core::cmp::PartialEq for __BindgenUnionField { +fn eq(&self, _other: &__BindgenUnionField) -> bool { +true +} +} +impl ::core::cmp::Eq for __BindgenUnionField {} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/ioctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/ioctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..be27323250cd80a98d5e3efff998a5ee5360f934 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/ioctl.rs @@ -0,0 +1,1502 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const FIONREAD: u32 = 21531; +pub const FIONBIO: u32 = 21537; +pub const FIOCLEX: u32 = 21585; +pub const FIONCLEX: u32 = 21584; +pub const FIOASYNC: u32 = 21586; +pub const FIOQSIZE: u32 = 21598; +pub const TCXONC: u32 = 21514; +pub const TCFLSH: u32 = 21515; +pub const TIOCSCTTY: u32 = 21518; +pub const TIOCSPGRP: u32 = 21520; +pub const TIOCOUTQ: u32 = 21521; +pub const TIOCSTI: u32 = 21522; +pub const TIOCSWINSZ: u32 = 21524; +pub const TIOCMGET: u32 = 21525; +pub const TIOCMBIS: u32 = 21526; +pub const TIOCMBIC: u32 = 21527; +pub const TIOCMSET: u32 = 21528; +pub const TIOCSSOFTCAR: u32 = 21530; +pub const TIOCLINUX: u32 = 21532; +pub const TIOCCONS: u32 = 21533; +pub const TIOCSSERIAL: u32 = 21535; +pub const TIOCPKT: u32 = 21536; +pub const TIOCNOTTY: u32 = 21538; +pub const TIOCSETD: u32 = 21539; +pub const TIOCSBRK: u32 = 21543; +pub const TIOCCBRK: u32 = 21544; +pub const TIOCSRS485: u32 = 21551; +pub const TIOCSPTLCK: u32 = 1074025521; +pub const TIOCSIG: u32 = 1074025526; +pub const TIOCVHANGUP: u32 = 21559; +pub const TIOCSERCONFIG: u32 = 21587; +pub const TIOCSERGWILD: u32 = 21588; +pub const TIOCSERSWILD: u32 = 21589; +pub const TIOCSLCKTRMIOS: u32 = 21591; +pub const TIOCSERGSTRUCT: u32 = 21592; +pub const TIOCSERGETLSR: u32 = 21593; +pub const TIOCSERGETMULTI: u32 = 21594; +pub const TIOCSERSETMULTI: u32 = 21595; +pub const TIOCMIWAIT: u32 = 21596; +pub const TCGETS: u32 = 21505; +pub const TCGETA: u32 = 21509; +pub const TCSBRK: u32 = 21513; +pub const TCSBRKP: u32 = 21541; +pub const TCSETA: u32 = 21510; +pub const TCSETAF: u32 = 21512; +pub const TCSETAW: u32 = 21511; +pub const TIOCEXCL: u32 = 21516; +pub const TIOCNXCL: u32 = 21517; +pub const TIOCGDEV: u32 = 2147767346; +pub const TIOCGEXCL: u32 = 2147767360; +pub const TIOCGICOUNT: u32 = 21597; +pub const TIOCGLCKTRMIOS: u32 = 21590; +pub const TIOCGPGRP: u32 = 21519; +pub const TIOCGPKT: u32 = 2147767352; +pub const TIOCGPTLCK: u32 = 2147767353; +pub const TIOCGPTN: u32 = 2147767344; +pub const TIOCGPTPEER: u32 = 21569; +pub const TIOCGRS485: u32 = 21550; +pub const TIOCGSERIAL: u32 = 21534; +pub const TIOCGSID: u32 = 21545; +pub const TIOCGSOFTCAR: u32 = 21529; +pub const TIOCGWINSZ: u32 = 21523; +pub const TCGETS2: u32 = 2150388778; +pub const TCGETX: u32 = 21554; +pub const TCSETS: u32 = 21506; +pub const TCSETS2: u32 = 1076646955; +pub const TCSETSF: u32 = 21508; +pub const TCSETSF2: u32 = 1076646957; +pub const TCSETSW: u32 = 21507; +pub const TCSETSW2: u32 = 1076646956; +pub const TCSETX: u32 = 21555; +pub const TCSETXF: u32 = 21556; +pub const TCSETXW: u32 = 21557; +pub const TIOCGETD: u32 = 21540; +pub const MTIOCGET: u32 = 2149346562; +pub const BLKSSZGET: u32 = 4712; +pub const BLKPBSZGET: u32 = 4731; +pub const BLKROSET: u32 = 4701; +pub const BLKROGET: u32 = 4702; +pub const BLKRRPART: u32 = 4703; +pub const BLKGETSIZE: u32 = 4704; +pub const BLKFLSBUF: u32 = 4705; +pub const BLKRASET: u32 = 4706; +pub const BLKRAGET: u32 = 4707; +pub const BLKFRASET: u32 = 4708; +pub const BLKFRAGET: u32 = 4709; +pub const BLKSECTSET: u32 = 4710; +pub const BLKSECTGET: u32 = 4711; +pub const BLKPG: u32 = 4713; +pub const BLKBSZGET: u32 = 2147750512; +pub const BLKBSZSET: u32 = 1074008689; +pub const BLKGETSIZE64: u32 = 2147750514; +pub const BLKTRACESETUP: u32 = 3225948787; +pub const BLKTRACESTART: u32 = 4724; +pub const BLKTRACESTOP: u32 = 4725; +pub const BLKTRACETEARDOWN: u32 = 4726; +pub const BLKDISCARD: u32 = 4727; +pub const BLKIOMIN: u32 = 4728; +pub const BLKIOOPT: u32 = 4729; +pub const BLKALIGNOFF: u32 = 4730; +pub const BLKDISCARDZEROES: u32 = 4732; +pub const BLKSECDISCARD: u32 = 4733; +pub const BLKROTATIONAL: u32 = 4734; +pub const BLKZEROOUT: u32 = 4735; +pub const FIEMAP_MAX_OFFSET: u32 = 4294967295; +pub const FIEMAP_FLAG_SYNC: u32 = 1; +pub const FIEMAP_FLAG_XATTR: u32 = 2; +pub const FIEMAP_FLAG_CACHE: u32 = 4; +pub const FIEMAP_FLAGS_COMPAT: u32 = 3; +pub const FIEMAP_EXTENT_LAST: u32 = 1; +pub const FIEMAP_EXTENT_UNKNOWN: u32 = 2; +pub const FIEMAP_EXTENT_DELALLOC: u32 = 4; +pub const FIEMAP_EXTENT_ENCODED: u32 = 8; +pub const FIEMAP_EXTENT_DATA_ENCRYPTED: u32 = 128; +pub const FIEMAP_EXTENT_NOT_ALIGNED: u32 = 256; +pub const FIEMAP_EXTENT_DATA_INLINE: u32 = 512; +pub const FIEMAP_EXTENT_DATA_TAIL: u32 = 1024; +pub const FIEMAP_EXTENT_UNWRITTEN: u32 = 2048; +pub const FIEMAP_EXTENT_MERGED: u32 = 4096; +pub const FIEMAP_EXTENT_SHARED: u32 = 8192; +pub const UFFDIO_REGISTER: u32 = 3223366144; +pub const UFFDIO_UNREGISTER: u32 = 2148575745; +pub const UFFDIO_WAKE: u32 = 2148575746; +pub const UFFDIO_COPY: u32 = 3223890435; +pub const UFFDIO_ZEROPAGE: u32 = 3223366148; +pub const UFFDIO_WRITEPROTECT: u32 = 3222841862; +pub const UFFDIO_API: u32 = 3222841919; +pub const NS_GET_USERNS: u32 = 46849; +pub const NS_GET_PARENT: u32 = 46850; +pub const NS_GET_NSTYPE: u32 = 46851; +pub const KDGETLED: u32 = 19249; +pub const KDSETLED: u32 = 19250; +pub const KDGKBLED: u32 = 19300; +pub const KDSKBLED: u32 = 19301; +pub const KDGKBTYPE: u32 = 19251; +pub const KDADDIO: u32 = 19252; +pub const KDDELIO: u32 = 19253; +pub const KDENABIO: u32 = 19254; +pub const KDDISABIO: u32 = 19255; +pub const KDSETMODE: u32 = 19258; +pub const KDGETMODE: u32 = 19259; +pub const KDMKTONE: u32 = 19248; +pub const KIOCSOUND: u32 = 19247; +pub const GIO_CMAP: u32 = 19312; +pub const PIO_CMAP: u32 = 19313; +pub const GIO_FONT: u32 = 19296; +pub const GIO_FONTX: u32 = 19307; +pub const PIO_FONT: u32 = 19297; +pub const PIO_FONTX: u32 = 19308; +pub const PIO_FONTRESET: u32 = 19309; +pub const GIO_SCRNMAP: u32 = 19264; +pub const GIO_UNISCRNMAP: u32 = 19305; +pub const PIO_SCRNMAP: u32 = 19265; +pub const PIO_UNISCRNMAP: u32 = 19306; +pub const GIO_UNIMAP: u32 = 19302; +pub const PIO_UNIMAP: u32 = 19303; +pub const PIO_UNIMAPCLR: u32 = 19304; +pub const KDGKBMODE: u32 = 19268; +pub const KDSKBMODE: u32 = 19269; +pub const KDGKBMETA: u32 = 19298; +pub const KDSKBMETA: u32 = 19299; +pub const KDGKBENT: u32 = 19270; +pub const KDSKBENT: u32 = 19271; +pub const KDGKBSENT: u32 = 19272; +pub const KDSKBSENT: u32 = 19273; +pub const KDGKBDIACR: u32 = 19274; +pub const KDGETKEYCODE: u32 = 19276; +pub const KDSETKEYCODE: u32 = 19277; +pub const KDSIGACCEPT: u32 = 19278; +pub const VT_OPENQRY: u32 = 22016; +pub const VT_GETMODE: u32 = 22017; +pub const VT_SETMODE: u32 = 22018; +pub const VT_GETSTATE: u32 = 22019; +pub const VT_RELDISP: u32 = 22021; +pub const VT_ACTIVATE: u32 = 22022; +pub const VT_WAITACTIVE: u32 = 22023; +pub const VT_DISALLOCATE: u32 = 22024; +pub const VT_RESIZE: u32 = 22025; +pub const VT_RESIZEX: u32 = 22026; +pub const FIOSETOWN: u32 = 35073; +pub const SIOCSPGRP: u32 = 35074; +pub const FIOGETOWN: u32 = 35075; +pub const SIOCGPGRP: u32 = 35076; +pub const SIOCATMARK: u32 = 35077; +pub const SIOCGSTAMP: u32 = 35078; +pub const TIOCINQ: u32 = 21531; +pub const SIOCADDRT: u32 = 35083; +pub const SIOCDELRT: u32 = 35084; +pub const SIOCGIFNAME: u32 = 35088; +pub const SIOCSIFLINK: u32 = 35089; +pub const SIOCGIFCONF: u32 = 35090; +pub const SIOCGIFFLAGS: u32 = 35091; +pub const SIOCSIFFLAGS: u32 = 35092; +pub const SIOCGIFADDR: u32 = 35093; +pub const SIOCSIFADDR: u32 = 35094; +pub const SIOCGIFDSTADDR: u32 = 35095; +pub const SIOCSIFDSTADDR: u32 = 35096; +pub const SIOCGIFBRDADDR: u32 = 35097; +pub const SIOCSIFBRDADDR: u32 = 35098; +pub const SIOCGIFNETMASK: u32 = 35099; +pub const SIOCSIFNETMASK: u32 = 35100; +pub const SIOCGIFMETRIC: u32 = 35101; +pub const SIOCSIFMETRIC: u32 = 35102; +pub const SIOCGIFMEM: u32 = 35103; +pub const SIOCSIFMEM: u32 = 35104; +pub const SIOCGIFMTU: u32 = 35105; +pub const SIOCSIFMTU: u32 = 35106; +pub const SIOCSIFHWADDR: u32 = 35108; +pub const SIOCGIFENCAP: u32 = 35109; +pub const SIOCSIFENCAP: u32 = 35110; +pub const SIOCGIFHWADDR: u32 = 35111; +pub const SIOCGIFSLAVE: u32 = 35113; +pub const SIOCSIFSLAVE: u32 = 35120; +pub const SIOCADDMULTI: u32 = 35121; +pub const SIOCDELMULTI: u32 = 35122; +pub const SIOCDARP: u32 = 35155; +pub const SIOCGARP: u32 = 35156; +pub const SIOCSARP: u32 = 35157; +pub const SIOCDRARP: u32 = 35168; +pub const SIOCGRARP: u32 = 35169; +pub const SIOCSRARP: u32 = 35170; +pub const SIOCGIFMAP: u32 = 35184; +pub const SIOCSIFMAP: u32 = 35185; +pub const SIOCRTMSG: u32 = 35085; +pub const SIOCSIFNAME: u32 = 35107; +pub const SIOCGIFINDEX: u32 = 35123; +pub const SIOGIFINDEX: u32 = 35123; +pub const SIOCSIFPFLAGS: u32 = 35124; +pub const SIOCGIFPFLAGS: u32 = 35125; +pub const SIOCDIFADDR: u32 = 35126; +pub const SIOCSIFHWBROADCAST: u32 = 35127; +pub const SIOCGIFCOUNT: u32 = 35128; +pub const SIOCGIFBR: u32 = 35136; +pub const SIOCSIFBR: u32 = 35137; +pub const SIOCGIFTXQLEN: u32 = 35138; +pub const SIOCSIFTXQLEN: u32 = 35139; +pub const SIOCADDDLCI: u32 = 35200; +pub const SIOCDELDLCI: u32 = 35201; +pub const SIOCDEVPRIVATE: u32 = 35312; +pub const SIOCPROTOPRIVATE: u32 = 35296; +pub const FIBMAP: u32 = 1; +pub const FIGETBSZ: u32 = 2; +pub const FIFREEZE: u32 = 3221510263; +pub const FITHAW: u32 = 3221510264; +pub const FITRIM: u32 = 3222820985; +pub const FICLONE: u32 = 1074041865; +pub const FICLONERANGE: u32 = 1075876877; +pub const FIDEDUPERANGE: u32 = 3222836278; +pub const FS_IOC_GETFLAGS: u32 = 2147771905; +pub const FS_IOC_SETFLAGS: u32 = 1074030082; +pub const FS_IOC_GETVERSION: u32 = 2147776001; +pub const FS_IOC_SETVERSION: u32 = 1074034178; +pub const FS_IOC_FIEMAP: u32 = 3223348747; +pub const FS_IOC32_GETFLAGS: u32 = 2147771905; +pub const FS_IOC32_SETFLAGS: u32 = 1074030082; +pub const FS_IOC32_GETVERSION: u32 = 2147776001; +pub const FS_IOC32_SETVERSION: u32 = 1074034178; +pub const FS_IOC_FSGETXATTR: u32 = 2149341215; +pub const FS_IOC_FSSETXATTR: u32 = 1075599392; +pub const FS_IOC_GETFSLABEL: u32 = 2164298801; +pub const FS_IOC_SETFSLABEL: u32 = 1090556978; +pub const EXT4_IOC_GETVERSION: u32 = 2147771907; +pub const EXT4_IOC_SETVERSION: u32 = 1074030084; +pub const EXT4_IOC_GETVERSION_OLD: u32 = 2147776001; +pub const EXT4_IOC_SETVERSION_OLD: u32 = 1074034178; +pub const EXT4_IOC_GETRSVSZ: u32 = 2147771909; +pub const EXT4_IOC_SETRSVSZ: u32 = 1074030086; +pub const EXT4_IOC_GROUP_EXTEND: u32 = 1074030087; +pub const EXT4_IOC_MIGRATE: u32 = 26121; +pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 26124; +pub const EXT4_IOC_RESIZE_FS: u32 = 1074292240; +pub const EXT4_IOC_SWAP_BOOT: u32 = 26129; +pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 26130; +pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 26152; +pub const EXT4_IOC_GETSTATE: u32 = 1074030121; +pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; +pub const EXT4_IOC_CHECKPOINT: u32 = 1074030123; +pub const EXT4_IOC_SHUTDOWN: u32 = 2147768445; +pub const EXT4_IOC32_GETVERSION: u32 = 2147771907; +pub const EXT4_IOC32_SETVERSION: u32 = 1074030084; +pub const EXT4_IOC32_GETRSVSZ: u32 = 2147771909; +pub const EXT4_IOC32_SETRSVSZ: u32 = 1074030086; +pub const EXT4_IOC32_GROUP_EXTEND: u32 = 1074030087; +pub const EXT4_IOC32_GETVERSION_OLD: u32 = 2147776001; +pub const EXT4_IOC32_SETVERSION_OLD: u32 = 1074034178; +pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 2148030015; +pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; +pub const LIRC_SET_SEND_CARRIER: u32 = 1074030867; +pub const AUTOFS_IOC_PROTOSUBVER: u32 = 2147783527; +pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; +pub const FSI_SCOM_WRITE: u32 = 3223352066; +pub const ATM_GETCIRANGE: u32 = 1074553226; +pub const DMA_BUF_SET_NAME_B: u32 = 1074291201; +pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; +pub const TUNSETPERSIST: u32 = 1074025675; +pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 1074554389; +pub const CEC_RECEIVE: u32 = 3224920326; +pub const MGSL_IOCGPARAMS: u32 = 2149608705; +pub const ENI_SETMULT: u32 = 1074553191; +pub const RIO_GET_EVENT_MASK: u32 = 2147773710; +pub const LIRC_GET_MAX_TIMEOUT: u32 = 2147772681; +pub const USBDEVFS_CLAIMINTERFACE: u32 = 2147767567; +pub const CHIOMOVE: u32 = 1075077889; +pub const SONYPI_IOCGBATFLAGS: u32 = 2147579399; +pub const BTRFS_IOC_SYNC: u32 = 37896; +pub const VIDIOC_TRY_FMT: u32 = 3234616896; +pub const LIRC_SET_REC_MODE: u32 = 1074030866; +pub const VIDIOC_DQEVENT: u32 = 2155894361; +pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 46338; +pub const UVCIOC_CTRL_MAP: u32 = 3227022624; +pub const VHOST_SET_BACKEND_FEATURES: u32 = 1074310949; +pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 1074311008; +pub const UI_SET_KEYBIT: u32 = 1074025829; +pub const LIRC_SET_REC_TIMEOUT: u32 = 1074030872; +pub const FS_IOC_GET_ENCRYPTION_KEY_STATUS: u32 = 3229640218; +pub const BTRFS_IOC_TREE_SEARCH_V2: u32 = 3228603409; +pub const VHOST_SET_VRING_BASE: u32 = 1074310930; +pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 1074294025; +pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3222820425; +pub const LIRC_GET_REC_MODE: u32 = 2147772674; +pub const PPGETTIME: u32 = 2148036757; +pub const BTRFS_IOC_RM_DEV: u32 = 1342215179; +pub const ATM_SETBACKEND: u32 = 1073897970; +pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; +pub const FBIO_WAITEVENT: u32 = 18056; +pub const SWITCHTEC_IOCTL_PORT_TO_PFF: u32 = 3222034245; +pub const NVME_IOCTL_IO_CMD: u32 = 3225964099; +pub const IPMICTL_RECEIVE_MSG_TRUNC: u32 = 3222825227; +pub const FDTWADDLE: u32 = 601; +pub const NVME_IOCTL_SUBMIT_IO: u32 = 1076907586; +pub const NILFS_IOCTL_SYNC: u32 = 2148036234; +pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; +pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; +pub const DM_DEV_STATUS: u32 = 3241737479; +pub const TEE_IOC_CLOSE_SESSION: u32 = 2147787781; +pub const NS_GETPSTAT: u32 = 3222036833; +pub const UI_SET_PROPBIT: u32 = 1074025838; +pub const TUNSETFILTEREBPF: u32 = 2147767521; +pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 1074031874; +pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; +pub const WDIOC_SETOPTIONS: u32 = 2147768068; +pub const VHOST_SCSI_SET_ENDPOINT: u32 = 1088991040; +pub const MGSL_IOCGTXIDLE: u32 = 27907; +pub const ATM_ADDLECSADDR: u32 = 1074553230; +pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; +pub const FDGETPRM: u32 = 2149319172; +pub const HIDIOCAPPLICATION: u32 = 18434; +pub const ENI_MEMDUMP: u32 = 1074553184; +pub const PTP_SYS_OFFSET2: u32 = 1128283406; +pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; +pub const DMA_BUF_SET_NAME_A: u32 = 1074029057; +pub const PTP_PIN_GETFUNC: u32 = 3227532550; +pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; +pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 1074312776; +pub const RTC_EPOCH_READ: u32 = 2147774477; +pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; +pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; +pub const ATM_GETLECSADDR: u32 = 1074553232; +pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; +pub const SONET_GETDIAG: u32 = 2147770644; +pub const ATMMPC_DATA: u32 = 25049; +pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 2148296989; +pub const HIDIOCGCOLLECTIONINDEX: u32 = 1075333136; +pub const RPMSG_CREATE_EPT_IOCTL: u32 = 1076409601; +pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; +pub const UI_DEV_SETUP: u32 = 1079792899; +pub const ISST_IF_IO_CMD: u32 = 1074068994; +pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 2149084423; +pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; +pub const BLKGETNRZONES: u32 = 2147750533; +pub const VIDIOC_G_MODULATOR: u32 = 3225703990; +pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; +pub const USBDEVFS_SETINTERFACE: u32 = 2148029700; +pub const PPPIOCGCHAN: u32 = 2147775543; +pub const EVIOCGVERSION: u32 = 2147763457; +pub const VHOST_NET_SET_BACKEND: u32 = 1074310960; +pub const USBDEVFS_REAPURBNDELAY: u32 = 1074025741; +pub const RNDZAPENTCNT: u32 = 20996; +pub const VIDIOC_G_PARM: u32 = 3234616853; +pub const TUNGETDEVNETNS: u32 = 21731; +pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 1074030877; +pub const VHOST_SET_VRING_ERR: u32 = 1074310946; +pub const VDUSE_VQ_SETUP: u32 = 1075872020; +pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221525348; +pub const VIDIOC_S_FREQUENCY: u32 = 1076647481; +pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 1075377428; +pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; +pub const WDIOC_GETPRETIMEOUT: u32 = 2147768073; +pub const USBDEVFS_DROP_PRIVILEGES: u32 = 1074025758; +pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 1342215191; +pub const VHOST_VSOCK_SET_RUNNING: u32 = 1074048865; +pub const STP_SET_OPTIONS: u32 = 1074275586; +pub const FBIO_RADEON_GET_MIRROR: u32 = 2147762179; +pub const IVTVFB_IOC_DMA_FRAME: u32 = 1074550464; +pub const IPMICTL_SEND_COMMAND: u32 = 2148821261; +pub const VIDIOC_G_ENC_INDEX: u32 = 2283296332; +pub const DFL_FPGA_FME_PORT_PR: u32 = 46720; +pub const CHIOSVOLTAG: u32 = 1076912914; +pub const ATM_SETESIF: u32 = 1074553229; +pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 1075323652; +pub const PMU_IOC_GET_MODEL: u32 = 2147762691; +pub const JSIOCGBTNMAP: u32 = 2214619700; +pub const USBDEVFS_HUB_PORTINFO: u32 = 2155894035; +pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; +pub const FDCLRPRM: u32 = 577; +pub const BTRFS_IOC_SCRUB: u32 = 3288372251; +pub const USBDEVFS_DISCONNECT: u32 = 21782; +pub const TUNSETVNETBE: u32 = 1074025694; +pub const ATMTCP_REMOVE: u32 = 24975; +pub const VHOST_VDPA_GET_CONFIG: u32 = 2148052851; +pub const PPPIOCGNPMODE: u32 = 3221779532; +pub const FDGETDRVPRM: u32 = 2153251345; +pub const TUNSETVNETLE: u32 = 1074025692; +pub const PHN_SETREG: u32 = 1074294790; +pub const PPPIOCDETACH: u32 = 1074033724; +pub const MMTIMER_GETRES: u32 = 2147773697; +pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; +pub const PPGETFLAGS: u32 = 2147774618; +pub const VDUSE_DEV_GET_FEATURES: u32 = 2148040977; +pub const CAPI_MANUFACTURER_CMD: u32 = 3221766944; +pub const VIDIOC_G_TUNER: u32 = 3226752541; +pub const DM_TABLE_STATUS: u32 = 3241737484; +pub const DM_DEV_ARM_POLL: u32 = 3241737488; +pub const NE_CREATE_VM: u32 = 2148052512; +pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223092226; +pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 62735; +pub const DFL_FPGA_PORT_DMA_MAP: u32 = 46659; +pub const MGSL_IOCGXCTRL: u32 = 27926; +pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 1076372225; +pub const SONYPI_IOCGBLUE: u32 = 2147579400; +pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 62743; +pub const I2OHTML: u32 = 3223087369; +pub const VFIO_GET_API_VERSION: u32 = 15204; +pub const IDT77105_GETSTATZ: u32 = 1074553139; +pub const I2OPARMSET: u32 = 3222825219; +pub const TEE_IOC_CANCEL: u32 = 2148049924; +pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; +pub const DFL_FPGA_PORT_RESET: u32 = 46656; +pub const PPPIOCGASYNCMAP: u32 = 2147775576; +pub const EVIOCGKEYCODE_V2: u32 = 2150122756; +pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; +pub const HIDIOCSUSAGE: u32 = 1075333132; +pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323664; +pub const PTP_EXTTS_REQUEST: u32 = 1074806018; +pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; +pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; +pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 1088991041; +pub const JSIOCGAXES: u32 = 2147576337; +pub const HIDIOCSFLAG: u32 = 1074022415; +pub const PTP_PEROUT_REQUEST2: u32 = 1077427468; +pub const PPWDATA: u32 = 1073836166; +pub const PTP_CLOCK_GETCAPS: u32 = 2152742145; +pub const FDGETMAXERRS: u32 = 2148794894; +pub const TUNSETQUEUE: u32 = 1074025689; +pub const PTP_ENABLE_PPS: u32 = 1074019588; +pub const SIOCSIFATMTCP: u32 = 24960; +pub const CEC_ADAP_G_LOG_ADDRS: u32 = 2153537795; +pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; +pub const NBD_SET_BLKSIZE: u32 = 43777; +pub const NBD_SET_TIMEOUT: u32 = 43785; +pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 1074048834; +pub const RIO_UNMAP_INBOUND: u32 = 1074294034; +pub const ATM_QUERYLOOP: u32 = 1074553172; +pub const DFL_FPGA_GET_API_VERSION: u32 = 46592; +pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 21795; +pub const FBIO_CURSOR: u32 = 3225961992; +pub const RNDCLEARPOOL: u32 = 20998; +pub const VIDIOC_QUERYSTD: u32 = 2148030015; +pub const DMA_BUF_IOCTL_SYNC: u32 = 1074291200; +pub const SCIF_RECV: u32 = 3222827783; +pub const PTP_PIN_GETFUNC2: u32 = 3227532559; +pub const FW_CDEV_IOC_ALLOCATE: u32 = 3223331586; +pub const CEC_ADAP_G_CAPS: u32 = 3226231040; +pub const VIDIOC_G_FBUF: u32 = 2150389258; +pub const PTP_ENABLE_PPS2: u32 = 1074019597; +pub const PCITEST_CLEAR_IRQ: u32 = 20496; +pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 2147772688; +pub const BTRFS_IOC_DEVICES_READY: u32 = 2415957031; +pub const JSIOCGAXMAP: u32 = 2151705138; +pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 2148541196; +pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 1074799383; +pub const RTC_WIE_OFF: u32 = 28688; +pub const PPGETMODE: u32 = 2147774616; +pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; +pub const PTP_SYS_OFFSET: u32 = 1128283397; +pub const BTRFS_IOC_SPACE_INFO: u32 = 3222311956; +pub const VIDIOC_SUBDEV_ENUM_FRAME_SIZE: u32 = 3225441866; +pub const ND_IOCTL_VENDOR: u32 = 3221769737; +pub const SCIF_VREADFROM: u32 = 3223876364; +pub const BTRFS_IOC_TRANS_START: u32 = 37894; +pub const INOTIFY_IOC_SETNEXTWD: u32 = 1074022656; +pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 2148021006; +pub const TUNDETACHFILTER: u32 = 1074287830; +pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; +pub const IOC_PR_CLEAR: u32 = 1074819277; +pub const SCIF_READFROM: u32 = 3223876362; +pub const PPPIOCGDEBUG: u32 = 2147775553; +pub const BLKGETZONESZ: u32 = 2147750532; +pub const HIDIOCGUSAGES: u32 = 3491514387; +pub const SONYPI_IOCGTEMP: u32 = 2147579404; +pub const UI_SET_MSCBIT: u32 = 1074025832; +pub const APM_IOC_SUSPEND: u32 = 16642; +pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; +pub const RTC_PLL_GET: u32 = 2149347345; +pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; +pub const USBDEVFS_DISCSIGNAL: u32 = 2148029710; +pub const LIRC_GET_MIN_TIMEOUT: u32 = 2147772680; +pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 2174244674; +pub const DM_TARGET_MSG: u32 = 3241737486; +pub const SONYPI_IOCGBAT1REM: u32 = 2147644931; +pub const EVIOCSFF: u32 = 1076643200; +pub const TUNSETGROUP: u32 = 1074025678; +pub const EVIOCGKEYCODE: u32 = 2148025604; +pub const KCOV_REMOTE_ENABLE: u32 = 1075340134; +pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; +pub const FDEJECT: u32 = 602; +pub const TUNSETOFFLOAD: u32 = 1074025680; +pub const PPPIOCCONNECT: u32 = 1074033722; +pub const ATM_ADDADDR: u32 = 1074553224; +pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 33043; +pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; +pub const VHOST_VDPA_GET_STATUS: u32 = 2147594097; +pub const CCISS_PASSTHRU: u32 = 3226747403; +pub const MGSL_IOCCLRMODCOUNT: u32 = 27919; +pub const TEE_IOC_SUPPL_SEND: u32 = 2148574215; +pub const ATMARPD_CTRL: u32 = 25057; +pub const UI_ABS_SETUP: u32 = 1075598596; +pub const UI_DEV_DESTROY: u32 = 21762; +pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; +pub const RTC_AIE_ON: u32 = 28673; +pub const AUTOFS_IOC_EXPIRE: u32 = 2165085029; +pub const PPPIOCSDEBUG: u32 = 1074033728; +pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; +pub const PPPIOCSMRU: u32 = 1074033746; +pub const CCISS_DEREGDISK: u32 = 16908; +pub const UI_DEV_CREATE: u32 = 21761; +pub const FUSE_DEV_IOC_CLONE: u32 = 2147804416; +pub const BTRFS_IOC_START_SYNC: u32 = 2148045848; +pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 1074294401; +pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 2148021011; +pub const DM_TABLE_CLEAR: u32 = 3241737482; +pub const CCISS_GETINTINFO: u32 = 2148024834; +pub const PPPIOCSASYNCMAP: u32 = 1074033751; +pub const I2OEVTGET: u32 = 2154326283; +pub const NVME_IOCTL_RESET: u32 = 20036; +pub const PPYIELD: u32 = 28813; +pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; +pub const TUNSETCARRIER: u32 = 1074025698; +pub const DM_DEV_WAIT: u32 = 3241737480; +pub const RTC_WIE_ON: u32 = 28687; +pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; +pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; +pub const MGSL_IOCSPARAMS: u32 = 1075866880; +pub const RTC_SET_TIME: u32 = 1076129802; +pub const VHOST_RESET_OWNER: u32 = 44802; +pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 1091072232; +pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; +pub const UDF_GETEABLOCK: u32 = 2147773505; +pub const VFIO_IOMMU_MAP_DMA: u32 = 15217; +pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 1075861082; +pub const HIDIOCGFLAG: u32 = 2147764238; +pub const HIDIOCGUCODE: u32 = 3222816781; +pub const VIDIOC_OMAP3ISP_AF_CFG: u32 = 3226228421; +pub const DM_REMOVE_ALL: u32 = 3241737473; +pub const ASPEED_LPC_CTRL_IOCTL_MAP: u32 = 1074835969; +pub const CCISS_GETFIRMVER: u32 = 2147762696; +pub const ND_IOCTL_ARS_START: u32 = 3223342594; +pub const PPPIOCSMRRU: u32 = 1074033723; +pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; +pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 2147792642; +pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; +pub const PPSETTIME: u32 = 1074294934; +pub const RTC_ALM_READ: u32 = 2149871624; +pub const VDUSE_SET_API_VERSION: u32 = 1074299137; +pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 1075342600; +pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; +pub const USBDEVFS_CONNECT: u32 = 21783; +pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; +pub const ATMARP_MKIP: u32 = 25058; +pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 15216; +pub const CCISS_GETHEARTBEAT: u32 = 2147762694; +pub const ATM_RSTADDR: u32 = 1074553223; +pub const NBD_SET_SIZE: u32 = 43778; +pub const UDF_GETVOLIDENT: u32 = 2147773506; +pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; +pub const MGSL_IOCSTXIDLE: u32 = 27906; +pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; +pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; +pub const PPRSTATUS: u32 = 2147577985; +pub const MGSL_IOCTXENABLE: u32 = 27908; +pub const UDF_GETEASIZE: u32 = 2147773504; +pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; +pub const VHOST_SET_OWNER: u32 = 44801; +pub const RIO_ALLOC_DMA: u32 = 3222826259; +pub const RIO_CM_CHAN_ACCEPT: u32 = 3221775111; +pub const I2OHRTGET: u32 = 3222038785; +pub const ATM_SETCIRANGE: u32 = 1074553227; +pub const HPET_IE_ON: u32 = 26625; +pub const PERF_EVENT_IOC_ID: u32 = 2147755015; +pub const TUNSETSNDBUF: u32 = 1074025684; +pub const PTP_PIN_SETFUNC: u32 = 1080048903; +pub const PPPIOCDISCONN: u32 = 29753; +pub const VIDIOC_QUERYCTRL: u32 = 3225703972; +pub const PPEXCL: u32 = 28815; +pub const PCITEST_MSI: u32 = 1074024451; +pub const FDWERRORCLR: u32 = 598; +pub const AUTOFS_IOC_FAIL: u32 = 37729; +pub const USBDEVFS_IOCTL: u32 = 3222033682; +pub const VIDIOC_S_STD: u32 = 1074288152; +pub const F2FS_IOC_RESIZE_FS: u32 = 1074328848; +pub const SONET_SETDIAG: u32 = 3221512466; +pub const BTRFS_IOC_DEFRAG: u32 = 1342215170; +pub const CCISS_GETDRIVVER: u32 = 2147762697; +pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 2148034839; +pub const HPET_IRQFREQ: u32 = 1074030598; +pub const ATM_GETESI: u32 = 1074553221; +pub const CCISS_GETLUNINFO: u32 = 2148286993; +pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; +pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; +pub const PERF_EVENT_IOC_SET_BPF: u32 = 1074013192; +pub const UDMABUF_CREATE_LIST: u32 = 1074296131; +pub const VHOST_SET_LOG_BASE: u32 = 1074310916; +pub const ZATM_GETPOOL: u32 = 1074553185; +pub const BR2684_SETFILT: u32 = 1075601808; +pub const RNDGETPOOL: u32 = 2148028930; +pub const PPS_GETPARAMS: u32 = 2147774625; +pub const IOC_PR_RESERVE: u32 = 1074819273; +pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; +pub const RIO_CM_CHAN_CLOSE: u32 = 1073898244; +pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; +pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; +pub const PMU_IOC_GET_BACKLIGHT: u32 = 2147762689; +pub const USBDEVFS_GET_CAPABILITIES: u32 = 2147767578; +pub const SCIF_WRITETO: u32 = 3223876363; +pub const UDF_RELOCATE_BLOCKS: u32 = 3221515331; +pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; +pub const CCISS_REGNEWD: u32 = 16910; +pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 1074033169; +pub const VIDIOC_CREATE_BUFS: u32 = 3237500508; +pub const CAPI_GET_VERSION: u32 = 3222291207; +pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 2228770626; +pub const VFIO_EEH_PE_OP: u32 = 15225; +pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; +pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 2148070674; +pub const NBD_SET_SIZE_BLOCKS: u32 = 43783; +pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 45312; +pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; +pub const VIDIOC_S_AUDOUT: u32 = 1077171762; +pub const VIDIOC_S_FMT: u32 = 3234616837; +pub const PPPIOCATTACH: u32 = 1074033725; +pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310948; +pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; +pub const CCISS_BIG_PASSTHRU: u32 = 3227009554; +pub const IPMICTL_SET_MY_LUN_CMD: u32 = 2147772691; +pub const PCITEST_LEGACY_IRQ: u32 = 20482; +pub const USBDEVFS_SUBMITURB: u32 = 2150389002; +pub const AUTOFS_IOC_READY: u32 = 37728; +pub const BTRFS_IOC_SEND: u32 = 1078498342; +pub const VIDIOC_G_EXT_CTRLS: u32 = 3222820423; +pub const JSIOCSBTNMAP: u32 = 1140877875; +pub const PPPIOCSFLAGS: u32 = 1074033753; +pub const NVRAM_INIT: u32 = 28736; +pub const RFKILL_IOCTL_NOINPUT: u32 = 20993; +pub const BTRFS_IOC_BALANCE: u32 = 1342215180; +pub const FS_IOC_GETFSMAP: u32 = 3233830971; +pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 2147772699; +pub const STP_POLICY_ID_GET: u32 = 2148541697; +pub const PPSETFLAGS: u32 = 1074032795; +pub const CEC_ADAP_S_PHYS_ADDR: u32 = 1073897730; +pub const ATMTCP_CREATE: u32 = 24974; +pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 45314; +pub const PPPIOCGXASYNCMAP: u32 = 2149610576; +pub const VHOST_SET_VRING_CALL: u32 = 1074310945; +pub const LIRC_GET_FEATURES: u32 = 2147772672; +pub const GSMIOC_DISABLE_NET: u32 = 18179; +pub const AUTOFS_IOC_CATATONIC: u32 = 37730; +pub const NBD_DO_IT: u32 = 43779; +pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 1074030879; +pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772697; +pub const EVIOCSCLOCKID: u32 = 1074021792; +pub const USBDEVFS_FREE_STREAMS: u32 = 2148029725; +pub const FSI_SCOM_RESET: u32 = 1074033411; +pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 2147762694; +pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; +pub const FDDEFPRM: u32 = 1075577411; +pub const TEE_IOC_INVOKE: u32 = 2148574211; +pub const USBDEVFS_BULK: u32 = 3222295810; +pub const SCIF_VWRITETO: u32 = 3223876365; +pub const SONYPI_IOCSBRT: u32 = 1073837568; +pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; +pub const RTC_PIE_ON: u32 = 28677; +pub const BTRFS_IOC_SCAN_DEV: u32 = 1342215172; +pub const PPPIOCXFERUNIT: u32 = 29774; +pub const WDIOC_GETTIMEOUT: u32 = 2147768071; +pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3234370597; +pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 1074312774; +pub const FBIO_WAITFORVSYNC: u32 = 1074021920; +pub const RTC_PIE_OFF: u32 = 28678; +pub const EVIOCGRAB: u32 = 1074021776; +pub const PMU_IOC_SET_BACKLIGHT: u32 = 1074020866; +pub const EVIOCGREP: u32 = 2148025603; +pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 1074013195; +pub const UFFDIO_CONTINUE: u32 = 3223366151; +pub const VDUSE_GET_API_VERSION: u32 = 2148040960; +pub const RTC_RD_TIME: u32 = 2149871625; +pub const FDMSGOFF: u32 = 582; +pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 2148296988; +pub const CAPI_GET_ERRCODE: u32 = 2147631905; +pub const PCITEST_SET_IRQTYPE: u32 = 1074024456; +pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223606825; +pub const MATROXFB_SET_OUTPUT_MODE: u32 = 1074032378; +pub const RIO_DEV_ADD: u32 = 1075866903; +pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; +pub const FBIO_RADEON_SET_MIRROR: u32 = 1074020356; +pub const PCITEST_GET_IRQTYPE: u32 = 20489; +pub const JSIOCGVERSION: u32 = 2147772929; +pub const SONYPI_IOCSBLUE: u32 = 1073837577; +pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 13074; +pub const F2FS_IOC_GET_FEATURES: u32 = 2147808524; +pub const SCIF_REG: u32 = 3223876360; +pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 1081634440; +pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 1074012933; +pub const RIO_WAIT_FOR_ASYNC: u32 = 1074294038; +pub const VHOST_SET_VRING_NUM: u32 = 1074310928; +pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; +pub const RIO_FREE_DMA: u32 = 1074294036; +pub const MGSL_IOCRXENABLE: u32 = 27909; +pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 1977; +pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 2148034838; +pub const PPPIOCGL2TPSTATS: u32 = 2152231990; +pub const PERF_EVENT_IOC_PERIOD: u32 = 1074275332; +pub const PTP_PIN_SETFUNC2: u32 = 1080048912; +pub const CHIOEXCHANGE: u32 = 1075602178; +pub const NILFS_IOCTL_GET_SUINFO: u32 = 2149084804; +pub const CEC_DQEVENT: u32 = 3226493191; +pub const UI_SET_SWBIT: u32 = 1074025837; +pub const VHOST_VDPA_SET_CONFIG: u32 = 1074311028; +pub const TUNSETIFF: u32 = 1074025674; +pub const CHIOPOSITION: u32 = 1074553603; +pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 1074030879; +pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 1074304019; +pub const RIO_UNMAP_OUTBOUND: u32 = 1076391184; +pub const CAPI_CLR_FLAGS: u32 = 2147762981; +pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323663; +pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 2147774200; +pub const EVIOCSMASK: u32 = 1074808211; +pub const BTRFS_IOC_FORGET_DEV: u32 = 1342215173; +pub const CXL_MEM_QUERY_COMMANDS: u32 = 2148060673; +pub const CEC_S_MODE: u32 = 1074028809; +pub const MGSL_IOCSIF: u32 = 27914; +pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; +pub const PPSETMODE: u32 = 1074032768; +pub const VFIO_DEVICE_SET_IRQS: u32 = 15214; +pub const VIDIOC_PREPARE_BUF: u32 = 3225704029; +pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 2151964938; +pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 1092645098; +pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; +pub const UDMABUF_CREATE: u32 = 1075344706; +pub const SONET_CLRDIAG: u32 = 3221512467; +pub const PHN_SET_REG: u32 = 1074032641; +pub const RNDADDTOENTCNT: u32 = 1074024961; +pub const VBG_IOCTL_CHECK_BALLOON: u32 = 3223344657; +pub const VIDIOC_OMAP3ISP_STAT_REQ: u32 = 3222820550; +pub const PPS_FETCH: u32 = 3221516452; +pub const RTC_AIE_OFF: u32 = 28674; +pub const VFIO_GROUP_SET_CONTAINER: u32 = 15208; +pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 1074275094; +pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 15224; +pub const VFIO_IOMMU_GET_INFO: u32 = 15216; +pub const DM_DEV_SUSPEND: u32 = 3241737478; +pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 2147677461; +pub const FW_CDEV_IOC_STOP_ISO: u32 = 1074012939; +pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; +pub const ATMMPC_CTRL: u32 = 25048; +pub const PPPIOCSXASYNCMAP: u32 = 1075868751; +pub const CHIOGSTATUS: u32 = 1074291464; +pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; +pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 2147773699; +pub const CAPI_SET_FLAGS: u32 = 2147762980; +pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 15210; +pub const VHOST_SET_MEM_TABLE: u32 = 1074310915; +pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 1074032376; +pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 46658; +pub const VHOST_GET_FEATURES: u32 = 2148052736; +pub const LIRC_GET_REC_RESOLUTION: u32 = 2147772679; +pub const PACKET_CTRL_CMD: u32 = 3222820865; +pub const LIRC_SET_TRANSMITTER_MASK: u32 = 1074030871; +pub const BTRFS_IOC_ADD_DEV: u32 = 1342215178; +pub const JSIOCGCORR: u32 = 2149870114; +pub const VIDIOC_G_FMT: u32 = 3234616836; +pub const RTC_EPOCH_SET: u32 = 1074032654; +pub const CAPI_GET_PROFILE: u32 = 3225436937; +pub const ATM_GETLOOP: u32 = 1074553170; +pub const SCIF_LISTEN: u32 = 1074033410; +pub const NBD_CLEAR_QUE: u32 = 43781; +pub const F2FS_IOC_MOVE_RANGE: u32 = 3223385353; +pub const LIRC_GET_LENGTH: u32 = 2147772687; +pub const I8K_SET_FAN: u32 = 3221514631; +pub const FDSETMAXERRS: u32 = 1075053132; +pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 2151699968; +pub const SNAPSHOT_SET_SWAP_AREA: u32 = 1074541325; +pub const LIRC_GET_REC_TIMEOUT: u32 = 2147772708; +pub const EVIOCRMFF: u32 = 1074021761; +pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; +pub const PPRDATA: u32 = 2147577989; +pub const RIO_MPORT_GET_PROPERTIES: u32 = 2150657284; +pub const TUNSETVNETHDRSZ: u32 = 1074025688; +pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; +pub const GSMIOC_GETCONF: u32 = 2152482560; +pub const LIRC_GET_SEND_MODE: u32 = 2147772673; +pub const PPPIOCSACTIVE: u32 = 1074295878; +pub const SIOCGSTAMPNS_NEW: u32 = 2148567303; +pub const IPMICTL_RECEIVE_MSG: u32 = 3222825228; +pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 1074030869; +pub const UI_END_FF_ERASE: u32 = 1074550219; +pub const SWITCHTEC_IOCTL_FLASH_PART_INFO: u32 = 3222296385; +pub const FW_CDEV_IOC_SEND_PHY_PACKET: u32 = 3222807317; +pub const NBD_SET_FLAGS: u32 = 43786; +pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 15212; +pub const REISERFS_IOC_UNPACK: u32 = 1074056449; +pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 1074012935; +pub const RIO_SET_EVENT_MASK: u32 = 1074031885; +pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 2148021012; +pub const VDUSE_VQ_INJECT_IRQ: u32 = 1074037015; +pub const I2OPASSTHRU: u32 = 2148034828; +pub const IOC_OPAL_SET_PW: u32 = 1109422304; +pub const FSI_SCOM_READ: u32 = 3223352065; +pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 2147790704; +pub const VIDIOC_QBUF: u32 = 3225703951; +pub const VIDIOC_S_TUNER: u32 = 1079268894; +pub const TUNGETVNETHDRSZ: u32 = 2147767511; +pub const CAPI_NCCI_GETUNIT: u32 = 2147762983; +pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 2147792455; +pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221509831; +pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; +pub const TEE_IOC_VERSION: u32 = 2148312064; +pub const VIDIOC_LOG_STATUS: u32 = 22086; +pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 2149345557; +pub const VHOST_SET_LOG_FD: u32 = 1074048775; +pub const SCIF_SEND: u32 = 3222827782; +pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; +pub const NS_ADJBUFLEV: u32 = 24931; +pub const VIDIOC_DBG_S_REGISTER: u32 = 1077433935; +pub const NILFS_IOCTL_RESIZE: u32 = 1074294411; +pub const PHN_GETREG: u32 = 3221778437; +pub const I2OSWDL: u32 = 3223087365; +pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 22019; +pub const JSIOCGBUTTONS: u32 = 2147576338; +pub const VFIO_IOMMU_ENABLE: u32 = 15219; +pub const DM_DEV_RENAME: u32 = 3241737477; +pub const MEDIA_IOC_SETUP_LINK: u32 = 3224665091; +pub const VIDIOC_ENUMOUTPUT: u32 = 3225966128; +pub const STP_POLICY_ID_SET: u32 = 3222283520; +pub const VHOST_VDPA_SET_CONFIG_CALL: u32 = 1074048887; +pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; +pub const VIDIOC_S_CROP: u32 = 1075074620; +pub const WDIOC_GETTEMP: u32 = 2147768067; +pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 1092120804; +pub const UI_SET_LEDBIT: u32 = 1074025833; +pub const NBD_SET_SOCK: u32 = 43776; +pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 1342215231; +pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; +pub const I2OSWUL: u32 = 3223087366; +pub const IOCTL_MEI_NOTIFY_GET: u32 = 2147764227; +pub const FDFMTTRK: u32 = 1074528840; +pub const MMTIMER_GETBITS: u32 = 27908; +pub const VIDIOC_ENUMSTD: u32 = 3225966105; +pub const VHOST_GET_VRING_BASE: u32 = 3221794578; +pub const VFIO_DEVICE_IOEVENTFD: u32 = 15220; +pub const ATMARP_SETENTRY: u32 = 25059; +pub const CCISS_REVALIDVOLS: u32 = 16906; +pub const MGSL_IOCLOOPTXDONE: u32 = 27913; +pub const RTC_VL_READ: u32 = 2147774483; +pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; +pub const RIO_DEV_DEL: u32 = 1075866904; +pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; +pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; +pub const SONYPI_IOCSFAN: u32 = 1073837579; +pub const SPIOCSTYPE: u32 = 1074032897; +pub const IPMICTL_REGISTER_FOR_CMD: u32 = 2147641614; +pub const I8K_GET_FAN: u32 = 3221514630; +pub const TUNGETVNETBE: u32 = 2147767519; +pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; +pub const UI_END_FF_UPLOAD: u32 = 1080055241; +pub const TOSH_SMM: u32 = 3222828176; +pub const SONYPI_IOCGBAT2REM: u32 = 2147644933; +pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 2148070673; +pub const PPPIOCSNPMODE: u32 = 1074295883; +pub const USBDEVFS_CONTROL: u32 = 3222295808; +pub const HIDIOCGUSAGE: u32 = 3222816779; +pub const TUNSETTXFILTER: u32 = 1074025681; +pub const TUNGETVNETLE: u32 = 2147767517; +pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; +pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; +pub const MGSL_IOCGXSYNC: u32 = 27924; +pub const HIDIOCGFIELDINFO: u32 = 3224913930; +pub const VIDIOC_SUBDEV_G_STD: u32 = 2148029975; +pub const I2OVALIDATE: u32 = 2147772680; +pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; +pub const NILFS_IOCTL_GET_CPINFO: u32 = 2149084802; +pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; +pub const VFAT_IOCTL_READDIR_SHORT: u32 = 2182640130; +pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; +pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 2148070675; +pub const FDGETDRVSTAT: u32 = 2150892050; +pub const SYNC_IOC_MERGE: u32 = 3224387075; +pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; +pub const PPPIOCBRIDGECHAN: u32 = 1074033717; +pub const LIRC_SET_SEND_MODE: u32 = 1074030865; +pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 1074818315; +pub const ATM_GETTYPE: u32 = 1074553220; +pub const PHN_GETREGS: u32 = 3223875591; +pub const FDSETEMSGTRESH: u32 = 586; +pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; +pub const MGSL_IOCWAITEVENT: u32 = 3221515528; +pub const CAPI_INSTALLED: u32 = 2147631906; +pub const EVIOCGMASK: u32 = 2148550034; +pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 2148045849; +pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; +pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; +pub const GSMIOC_GETFIRST: u32 = 2147763972; +pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 1074012952; +pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; +pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 62724; +pub const CAPI_GET_SERIAL: u32 = 3221504776; +pub const FDSETDRVPRM: u32 = 1079509648; +pub const IOC_OPAL_SAVE: u32 = 1092120796; +pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; +pub const TUNSETIFINDEX: u32 = 1074025690; +pub const CCISS_SETINTINFO: u32 = 1074283011; +pub const RTC_VL_CLR: u32 = 28692; +pub const VIDIOC_REQBUFS: u32 = 3222558216; +pub const USBDEVFS_REAPURBNDELAY32: u32 = 1074025741; +pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; +pub const USBDEVFS_SETCONFIGURATION: u32 = 2147767557; +pub const CCISS_GETNODENAME: u32 = 2148549124; +pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; +pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; +pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 15217; +pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 1076372242; +pub const LPSETTIMEOUT_NEW: u32 = 1074791951; +pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; +pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; +pub const FDRAWCMD: u32 = 600; +pub const SCIF_UNREG: u32 = 3222303497; +pub const PPPIOCGIDLE64: u32 = 2148561983; +pub const USBDEVFS_RELEASEINTERFACE: u32 = 2147767568; +pub const VIDIOC_CROPCAP: u32 = 3224131130; +pub const DFL_FPGA_PORT_GET_INFO: u32 = 46657; +pub const PHN_SET_REGS: u32 = 1074032643; +pub const ATMLEC_DATA: u32 = 25041; +pub const PPPOEIOCDFWD: u32 = 45313; +pub const VIDIOC_S_SELECTION: u32 = 3225441887; +pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 13065; +pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; +pub const VIDIOC_S_CTRL: u32 = 3221771804; +pub const ZATM_SETPOOL: u32 = 1074553187; +pub const MTIOCPOS: u32 = 2147773699; +pub const PMU_IOC_SLEEP: u32 = 16896; +pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; +pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; +pub const NILFS_IOCTL_GET_SUSTAT: u32 = 2150657669; +pub const VIDIOC_QUERYCAP: u32 = 2154321408; +pub const HPET_INFO: u32 = 2148296707; +pub const VIDIOC_AM437X_CCDC_CFG: u32 = 1074026177; +pub const DM_LIST_DEVICES: u32 = 3241737474; +pub const TUNSETOWNER: u32 = 1074025676; +pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; +pub const RNDADDENTROPY: u32 = 1074287107; +pub const USBDEVFS_RESET: u32 = 21780; +pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 1342215182; +pub const USBDEVFS_FORBID_SUSPEND: u32 = 21793; +pub const FDGETDRVTYP: u32 = 2148532751; +pub const PPWCONTROL: u32 = 1073836164; +pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; +pub const KCOV_DISABLE: u32 = 25445; +pub const IOC_OPAL_ACTIVATE_LSP: u32 = 1092120799; +pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 2148577144; +pub const PPPIOCSPASS: u32 = 1074295879; +pub const RIO_CM_CHAN_CONNECT: u32 = 1074291464; +pub const I2OSWDEL: u32 = 3223087367; +pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 2148296211; +pub const IOC_OPAL_MBR_DONE: u32 = 1091596521; +pub const PPPIOCSMAXCID: u32 = 1074033745; +pub const PPSETPHASE: u32 = 1074032788; +pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 1074311029; +pub const USBDEVFS_GET_SPEED: u32 = 21791; +pub const SONET_GETFRAMING: u32 = 2147770646; +pub const VIDIOC_QUERYBUF: u32 = 3225703945; +pub const VIDIOC_S_EDID: u32 = 3223606825; +pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 1075352617; +pub const PPS_GETCAP: u32 = 2147774627; +pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 13071; +pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 1074030873; +pub const SCIF_GET_NODEIDS: u32 = 3222827790; +pub const NBD_DISCONNECT: u32 = 43784; +pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; +pub const VFIO_IOMMU_DISABLE: u32 = 15220; +pub const SNAPSHOT_CREATE_IMAGE: u32 = 1074017041; +pub const SNAPSHOT_POWER_OFF: u32 = 13072; +pub const APM_IOC_STANDBY: u32 = 16641; +pub const PPPIOCGUNIT: u32 = 2147775574; +pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 1074041702; +pub const SCIF_BIND: u32 = 3221779201; +pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 22368; +pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 1074818688; +pub const IOC_OPAL_LOCK_UNLOCK: u32 = 1092120797; +pub const F2FS_IOC_SET_PIN_FILE: u32 = 1074066701; +pub const PPPIOCGRASYNCMAP: u32 = 2147775573; +pub const MMTIMER_MMAPAVAIL: u32 = 27910; +pub const I2OPASSTHRU32: u32 = 2148034828; +pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 1074050689; +pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 2156156515; +pub const UI_SET_SNDBIT: u32 = 1074025834; +pub const VIDIOC_G_AUDOUT: u32 = 2150913585; +pub const RTC_PLL_SET: u32 = 1075605522; +pub const VIDIOC_ENUMAUDIO: u32 = 3224655425; +pub const AUTOFS_DEV_IOCTL_TIMEOUT: u32 = 3222836090; +pub const VBG_IOCTL_DRIVER_VERSION_INFO: u32 = 3224131072; +pub const VHOST_SCSI_GET_EVENTS_MISSED: u32 = 1074048836; +pub const VHOST_SET_VRING_ADDR: u32 = 1076408081; +pub const VDUSE_CREATE_DEV: u32 = 1095794946; +pub const FDFLUSH: u32 = 587; +pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; +pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 1074312836; +pub const F2FS_IOC_GET_PIN_FILE: u32 = 2147808526; +pub const SCIF_CONNECT: u32 = 3221779203; +pub const BLKREPORTZONE: u32 = 3222278786; +pub const AUTOFS_IOC_ASKUMOUNT: u32 = 2147783536; +pub const ATM_ADDPARTY: u32 = 1074291188; +pub const FDSETPRM: u32 = 1075577410; +pub const ATM_GETSTATZ: u32 = 1074553169; +pub const ISST_IF_MSR_COMMAND: u32 = 3221552644; +pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 2180551740; +pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 1075861083; +pub const SEV_ISSUE_CMD: u32 = 3222295296; +pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; +pub const PCITEST_COPY: u32 = 1074024454; +pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 2147772690; +pub const CHIOGPICKER: u32 = 2147771140; +pub const CAPI_NCCI_OPENCOUNT: u32 = 2147762982; +pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; +pub const PERF_EVENT_IOC_SET_FILTER: u32 = 1074013190; +pub const IOC_OPAL_REVERT_TPR: u32 = 1091072226; +pub const CHIOGVPARAMS: u32 = 2154849043; +pub const PTP_PEROUT_REQUEST: u32 = 1077427459; +pub const FSI_SCOM_CHECK: u32 = 2147775232; +pub const RTC_IRQP_READ: u32 = 2147774475; +pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 2149084421; +pub const HIDIOCGRDESCSIZE: u32 = 2147764225; +pub const UI_GET_VERSION: u32 = 2147767597; +pub const NILFS_IOCTL_GET_CPSTAT: u32 = 2149084803; +pub const CCISS_GETBUSTYPES: u32 = 2147762695; +pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 15223; +pub const VIDIOC_EXPBUF: u32 = 3225441808; +pub const UI_SET_RELBIT: u32 = 1074025830; +pub const VFIO_SET_IOMMU: u32 = 15206; +pub const VIDIOC_S_MODULATOR: u32 = 1078220343; +pub const TUNGETFILTER: u32 = 2148029659; +pub const CCISS_SETNODENAME: u32 = 1074807301; +pub const FBIO_GETCONTROL2: u32 = 2147763849; +pub const TUNSETDEBUG: u32 = 1074025673; +pub const DM_DEV_REMOVE: u32 = 3241737476; +pub const HIDIOCSUSAGES: u32 = 1344030740; +pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; +pub const FBIOGET_VBLANK: u32 = 2149598738; +pub const ATM_GETSTAT: u32 = 1074553168; +pub const VIDIOC_G_JPEGCOMP: u32 = 2156680765; +pub const TUNATTACHFILTER: u32 = 1074287829; +pub const UI_SET_ABSBIT: u32 = 1074025831; +pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 2147792453; +pub const USBDEVFS_REAPURB32: u32 = 1074025740; +pub const BTRFS_IOC_TRANS_END: u32 = 37895; +pub const CAPI_REGISTER: u32 = 1074545409; +pub const F2FS_IOC_COMPRESS_FILE: u32 = 62744; +pub const USBDEVFS_DISCARDURB: u32 = 21771; +pub const HE_GET_REG: u32 = 1074553184; +pub const ATM_SETLOOP: u32 = 1074553171; +pub const ATMSIGD_CTRL: u32 = 25072; +pub const CIOC_KERNEL_VERSION: u32 = 3221512970; +pub const BTRFS_IOC_CLONE_RANGE: u32 = 1075876877; +pub const SNAPSHOT_UNFREEZE: u32 = 13058; +pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 62723; +pub const PMU_IOC_HAS_ADB: u32 = 2147762692; +pub const I2OGETIOPS: u32 = 2149607680; +pub const VIDIOC_S_FBUF: u32 = 1076647435; +pub const PPRCONTROL: u32 = 2147577987; +pub const CHIOSPICKER: u32 = 1074029317; +pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 15221; +pub const TUNGETSNDBUF: u32 = 2147767507; +pub const GSMIOC_SETCONF: u32 = 1078740737; +pub const IOC_PR_PREEMPT: u32 = 1075343563; +pub const KCOV_INIT_TRACE: u32 = 2147771137; +pub const SONYPI_IOCGBAT1CAP: u32 = 2147644930; +pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 2148554560; +pub const MTIOCTOP: u32 = 1074294017; +pub const VHOST_VDPA_SET_STATUS: u32 = 1073852274; +pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 1074048835; +pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 15221; +pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; +pub const PPPIOCGMRU: u32 = 2147775571; +pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; +pub const PPPIOCGFLAGS: u32 = 2147775578; +pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; +pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; +pub const ATM_DELLECSADDR: u32 = 1074553231; +pub const FW_CDEV_IOC_GET_SPEED: u32 = 8977; +pub const PPPIOCGIDLE32: u32 = 2148037695; +pub const VFIO_DEVICE_RESET: u32 = 15215; +pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; +pub const WDIOC_GETSTATUS: u32 = 2147768065; +pub const BTRFS_IOC_SET_FEATURES: u32 = 1076925497; +pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; +pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; +pub const PCITEST_READ: u32 = 1074024453; +pub const VFIO_GROUP_GET_STATUS: u32 = 15207; +pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 2147774203; +pub const USBDEVFS_CLEAR_HALT: u32 = 2147767573; +pub const VIDIOC_DECODER_CMD: u32 = 3225966176; +pub const VIDIOC_G_AUDIO: u32 = 2150913569; +pub const CCISS_RESCANDISK: u32 = 16912; +pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 1074818316; +pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 1091596519; +pub const USBDEVFS_REAPURB: u32 = 1074025740; +pub const DFL_FPGA_CHECK_EXTENSION: u32 = 46593; +pub const AUTOFS_IOC_PROTOVER: u32 = 2147783523; +pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; +pub const BTRFS_IOC_GET_FEATURES: u32 = 2149094457; +pub const PCITEST_MSIX: u32 = 1074024455; +pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 1076925456; +pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; +pub const DM_GET_TARGET_VERSION: u32 = 3241737489; +pub const PPPIOCGIDLE: u32 = 2148037695; +pub const NVRAM_SETCKS: u32 = 28737; +pub const WDIOC_GETSUPPORT: u32 = 2150127360; +pub const GSMIOC_ENABLE_NET: u32 = 1077167874; +pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 2151986177; +pub const NE_ADD_VCPU: u32 = 3221532193; +pub const EVIOCSKEYCODE_V2: u32 = 1076380932; +pub const PTP_SYS_OFFSET_EXTENDED2: u32 = 3300932882; +pub const SCIF_FENCE_WAIT: u32 = 3221517072; +pub const RIO_TRANSFER: u32 = 3222826261; +pub const FSL_HV_IOCTL_DOORBELL: u32 = 3221794566; +pub const RIO_MPORT_MAINT_WRITE_LOCAL: u32 = 1075342598; +pub const I2OEVTREG: u32 = 1074555146; +pub const I2OPARMGET: u32 = 3222825220; +pub const EVIOCGID: u32 = 2148025602; +pub const BTRFS_IOC_QGROUP_CREATE: u32 = 1074828330; +pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; +pub const VIDIOC_S_PARM: u32 = 3234616854; +pub const TUNSETSTEERINGEBPF: u32 = 2147767520; +pub const ATM_GETNAMES: u32 = 1074291075; +pub const VIDIOC_QUERYMENU: u32 = 3224131109; +pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 46660; +pub const I2OLCTGET: u32 = 3222038786; +pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 1074816532; +pub const NS_SETBUFLEV: u32 = 1074553186; +pub const BLKCLOSEZONE: u32 = 1074795143; +pub const SONET_GETFRSENSE: u32 = 2147901719; +pub const UI_SET_EVBIT: u32 = 1074025828; +pub const DM_LIST_VERSIONS: u32 = 3241737485; +pub const HIDIOCGSTRING: u32 = 2164541444; +pub const PPPIOCATTCHAN: u32 = 1074033720; +pub const VDUSE_DEV_SET_CONFIG: u32 = 1074299154; +pub const TUNGETFEATURES: u32 = 2147767503; +pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 15209; +pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 2147772689; +pub const CCISS_REGNEWDISK: u32 = 1074020877; +pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 2156156515; +pub const PHN_SETREGS: u32 = 1076391944; +pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 2147774992; +pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; +pub const TUNGETIFF: u32 = 2147767506; +pub const PTP_CLOCK_GETCAPS2: u32 = 2152742154; +pub const BTRFS_IOC_RESIZE: u32 = 1342215171; +pub const VHOST_SET_VRING_ENDIAN: u32 = 1074310931; +pub const PPS_KC_BIND: u32 = 1074032805; +pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 62727; +pub const UI_SET_FFBIT: u32 = 1074025835; +pub const IPMICTL_GET_MY_LUN_CMD: u32 = 2147772692; +pub const CEC_ADAP_G_PHYS_ADDR: u32 = 2147639553; +pub const CEC_G_MODE: u32 = 2147770632; +pub const USBDEVFS_RESETEP: u32 = 2147767555; +pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 31872; +pub const USBDEVFS_ALLOC_STREAMS: u32 = 2148029724; +pub const MGSL_IOCSXCTRL: u32 = 27925; +pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; +pub const PPPIOCUNBRIDGECHAN: u32 = 29748; +pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 62722; +pub const ISST_IF_GET_PLATFORM_INFO: u32 = 2147810816; +pub const SCIF_FENCE_MARK: u32 = 3222303503; +pub const USBDEVFS_RELEASE_PORT: u32 = 2147767577; +pub const VFIO_CHECK_EXTENSION: u32 = 15205; +pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 2150667307; +pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 2147774995; +pub const UI_SET_PHYS: u32 = 1074025836; +pub const FDWERRORGET: u32 = 2149057047; +pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223606824; +pub const MGSL_IOCGSTATS: u32 = 27911; +pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 1074050817; +pub const SIOCGSTAMP_NEW: u32 = 2148567302; +pub const RTC_WKALM_RD: u32 = 2150133776; +pub const PHN_GET_REG: u32 = 3221516288; +pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; +pub const PHN_NOT_OH: u32 = 28676; +pub const PPGETMODES: u32 = 2147774615; +pub const CHIOGPARAMS: u32 = 2148819718; +pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 15219; +pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310947; +pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; +pub const BTRFS_IOC_RM_DEV_V2: u32 = 1342215226; +pub const MGSL_IOCWAITGPIO: u32 = 3222301970; +pub const PMU_IOC_CAN_SLEEP: u32 = 2147762693; +pub const KCOV_ENABLE: u32 = 25444; +pub const BTRFS_IOC_CLONE: u32 = 1074041865; +pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; +pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 1074012942; +pub const AGPIOC_ALLOCATE: u32 = 3221504262; +pub const NE_SET_USER_MEMORY_REGION: u32 = 1075359267; +pub const MGSL_IOCTXABORT: u32 = 27910; +pub const MGSL_IOCSGPIO: u32 = 1074818320; +pub const LIRC_SET_REC_CARRIER: u32 = 1074030868; +pub const F2FS_IOC_FLUSH_DEVICE: u32 = 1074328842; +pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 13060; +pub const RTC_UIE_OFF: u32 = 28676; +pub const BT_BMC_IOCTL_SMS_ATN: u32 = 45312; +pub const NVME_IOCTL_ID: u32 = 20032; +pub const NE_START_ENCLAVE: u32 = 3222318628; +pub const VIDIOC_STREAMON: u32 = 1074026002; +pub const FDPOLLDRVSTAT: u32 = 2150892051; +pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; +pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; +pub const VIDIOC_SUBDEV_S_STD: u32 = 1074288152; +pub const WDIOC_GETTIMELEFT: u32 = 2147768074; +pub const ATM_GETLINKRATE: u32 = 1074553217; +pub const RTC_WKALM_SET: u32 = 1076391951; +pub const VHOST_GET_BACKEND_FEATURES: u32 = 2148052774; +pub const ATMARP_ENCAP: u32 = 25061; +pub const CAPI_GET_FLAGS: u32 = 2147762979; +pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772696; +pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 1074050690; +pub const NS_GET_OWNER_UID: u32 = 46852; +pub const VIDIOC_OVERLAY: u32 = 1074025998; +pub const BTRFS_IOC_WAIT_SYNC: u32 = 1074304022; +pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; +pub const VHOST_GET_VRING_ENDIAN: u32 = 1074310932; +pub const ATM_GETADDR: u32 = 1074553222; +pub const PHN_GET_REGS: u32 = 3221516290; +pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; +pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; +pub const SNAPSHOT_S2RAM: u32 = 13067; +pub const JSIOCSAXMAP: u32 = 1077963313; +pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 1073935638; +pub const VBG_IOCTL_HGCM_DISCONNECT: u32 = 3223082501; +pub const SCIF_FENCE_SIGNAL: u32 = 3223876369; +pub const VFIO_DEVICE_GET_PCI_HOT_RESET_INFO: u32 = 15216; +pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; +pub const MMTIMER_GETOFFSET: u32 = 27904; +pub const RIO_CM_CHAN_LISTEN: u32 = 1073898246; +pub const ATM_SETSC: u32 = 1074029041; +pub const F2FS_IOC_SHUTDOWN: u32 = 2147768445; +pub const NVME_IOCTL_RESCAN: u32 = 20038; +pub const BLKOPENZONE: u32 = 1074795142; +pub const DM_VERSION: u32 = 3241737472; +pub const CEC_TRANSMIT: u32 = 3224920325; +pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; +pub const SIOCMKCLIP: u32 = 25056; +pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 45313; +pub const HIDIOCGVERSION: u32 = 2147764225; +pub const VIDIOC_S_INPUT: u32 = 3221509671; +pub const VIDIOC_G_CROP: u32 = 3222558267; +pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 1074030883; +pub const EVIOCGEFFECTS: u32 = 2147763588; +pub const UVCIOC_CTRL_QUERY: u32 = 3222041889; +pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 1094217963; +pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; +pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; +pub const USBDEVFS_GETDRIVER: u32 = 1090802952; +pub const IDT77105_GETSTAT: u32 = 1074553138; +pub const HIDIOCINITREPORT: u32 = 18437; +pub const VFIO_DEVICE_GET_INFO: u32 = 15211; +pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; +pub const RNDGETENTCNT: u32 = 2147766784; +pub const PPPIOCNEWUNIT: u32 = 3221517374; +pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; +pub const FDRESET: u32 = 596; +pub const IOC_PR_REGISTER: u32 = 1075343560; +pub const HIDIOCSREPORT: u32 = 1074546696; +pub const TEE_IOC_OPEN_SESSION: u32 = 2148574210; +pub const TEE_IOC_SUPPL_RECV: u32 = 2148574214; +pub const BTRFS_IOC_BALANCE_CTL: u32 = 1074041889; +pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; +pub const HIDIOCGRAWINFO: u32 = 2148026371; +pub const PPPIOCSCOMPRESS: u32 = 1074558029; +pub const USBDEVFS_CONNECTINFO: u32 = 1074287889; +pub const BLKRESETZONE: u32 = 1074795139; +pub const CHIOINITELEM: u32 = 25361; +pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 1074818700; +pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; +pub const RIO_MPORT_MAINT_HDID_SET: u32 = 1073900801; +pub const PPGETPHASE: u32 = 2147774617; +pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 2164806939; +pub const FDMSGON: u32 = 581; +pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; +pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; +pub const MEDIA_REQUEST_IOC_REINIT: u32 = 31873; +pub const IOC_OPAL_ERASE_LR: u32 = 1091596518; +pub const FDFMTBEG: u32 = 583; +pub const RNDRESEEDCRNG: u32 = 20999; +pub const ISST_IF_GET_PHY_ID: u32 = 3221552641; +pub const TUNSETNOCSUM: u32 = 1074025672; +pub const SONET_GETSTAT: u32 = 2149867792; +pub const TFD_IOC_SET_TICKS: u32 = 1074287616; +pub const PPDATADIR: u32 = 1074032784; +pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 1091596517; +pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; +pub const RIO_CM_CHAN_SEND: u32 = 1074815753; +pub const PPWCTLONIRQ: u32 = 1073836178; +pub const SONYPI_IOCGBRT: u32 = 2147579392; +pub const IOC_PR_RELEASE: u32 = 1074819274; +pub const PPCLRIRQ: u32 = 2147774611; +pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 2147772698; +pub const MGSL_IOCSXSYNC: u32 = 27923; +pub const HPET_IE_OFF: u32 = 26626; +pub const IOC_OPAL_ACTIVATE_USR: u32 = 1091596513; +pub const SONET_SETFRAMING: u32 = 1074028821; +pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 1074013193; +pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; +pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; +pub const BLKFINISHZONE: u32 = 1074795144; +pub const EVIOCREVOKE: u32 = 1074021777; +pub const VFIO_DEVICE_FEATURE: u32 = 15221; +pub const CCISS_GETPCIINFO: u32 = 2148024833; +pub const ISST_IF_MBOX_COMMAND: u32 = 3221552643; +pub const SCIF_ACCEPTREQ: u32 = 3222303492; +pub const PERF_EVENT_IOC_QUERY_BPF: u32 = 3221496842; +pub const VIDIOC_STREAMOFF: u32 = 1074026003; +pub const VDUSE_DESTROY_DEV: u32 = 1090552067; +pub const FDGETFDCSTAT: u32 = 2149581333; +pub const VIDIOC_S_PRIORITY: u32 = 1074026052; +pub const SNAPSHOT_FREEZE: u32 = 13057; +pub const VIDIOC_ENUMINPUT: u32 = 3226490394; +pub const ZATM_GETPOOLZ: u32 = 1074553186; +pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 1074294026; +pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; +pub const VIDIOC_G_STD: u32 = 2148029975; +pub const USBDEVFS_ALLOW_SUSPEND: u32 = 21794; +pub const SONET_GETSTATZ: u32 = 2149867793; +pub const SCIF_ACCEPTREG: u32 = 3221779205; +pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; +pub const PPPIOCSRASYNCMAP: u32 = 1074033748; +pub const IOCTL_MEI_NOTIFY_SET: u32 = 1074022402; +pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 2151715885; +pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 1074066694; +pub const ATMLEC_CTRL: u32 = 25040; +pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 2147774201; +pub const DM_DEV_CREATE: u32 = 3241737475; +pub const VHOST_VDPA_GET_VRING_NUM: u32 = 2147659638; +pub const VIDIOC_G_CTRL: u32 = 3221771803; +pub const NBD_CLEAR_SOCK: u32 = 43780; +pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 15218; +pub const WDIOC_KEEPALIVE: u32 = 2147768069; +pub const NVME_IOCTL_SUBSYS_RESET: u32 = 20037; +pub const PTP_EXTTS_REQUEST2: u32 = 1074806027; +pub const PCITEST_BAR: u32 = 20481; +pub const MGSL_IOCGGPIO: u32 = 2148560145; +pub const EVIOCSREP: u32 = 1074283779; +pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 15213; +pub const HPET_DPI: u32 = 26629; +pub const VDUSE_VQ_SETUP_KICKFD: u32 = 1074299158; +pub const ND_IOCTL_CALL: u32 = 3225439754; +pub const HIDIOCGDEVINFO: u32 = 2149337091; +pub const DM_TABLE_DEPS: u32 = 3241737483; +pub const BTRFS_IOC_DEV_INFO: u32 = 3489698846; +pub const VDUSE_IOTLB_GET_FD: u32 = 3223355664; +pub const FW_CDEV_IOC_GET_INFO: u32 = 3223855872; +pub const VIDIOC_G_PRIORITY: u32 = 2147767875; +pub const ATM_NEWBACKENDIF: u32 = 1073897971; +pub const VIDIOC_S_EXT_CTRLS: u32 = 3222820424; +pub const VIDIOC_SUBDEV_ENUM_DV_TIMINGS: u32 = 3230946914; +pub const VIDIOC_OMAP3ISP_CCDC_CFG: u32 = 3223344833; +pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 1076909650; +pub const DM_TABLE_LOAD: u32 = 3241737481; +pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 62721; +pub const VIDIOC_G_OUTPUT: u32 = 2147767854; +pub const ATM_DROPPARTY: u32 = 1074029045; +pub const CHIOGELEM: u32 = 1080845072; +pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 2152240185; +pub const EVIOCSKEYCODE: u32 = 1074283780; +pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; +pub const TUNSETLINK: u32 = 1074025677; +pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; +pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 37916; +pub const PPS_SETPARAMS: u32 = 1074032802; +pub const IOC_OPAL_LR_SETUP: u32 = 1093169379; +pub const FW_CDEV_IOC_DEALLOCATE: u32 = 1074012931; +pub const WDIOC_SETTIMEOUT: u32 = 3221509894; +pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 22369; +pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; +pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 15222; +pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 1074836224; +pub const VIDIOC_G_EDID: u32 = 3223606824; +pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 1075377419; +pub const RIO_MAP_INBOUND: u32 = 3223874833; +pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 1091072222; +pub const USBDEVFS_CLAIM_PORT: u32 = 2147767576; +pub const VIDIOC_S_AUDIO: u32 = 1077171746; +pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 2148558363; +pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 1076372243; +pub const BTRFS_IOC_SNAP_DESTROY: u32 = 1342215183; +pub const SNAPSHOT_FREE: u32 = 13061; +pub const I8K_GET_SPEED: u32 = 3221514629; +pub const HIDIOCGREPORT: u32 = 1074546695; +pub const HPET_EPI: u32 = 26628; +pub const JSIOCSCORR: u32 = 1076128289; +pub const IOC_PR_PREEMPT_ABORT: u32 = 1075343564; +pub const RIO_MAP_OUTBOUND: u32 = 3223874831; +pub const ATM_SETESI: u32 = 1074553228; +pub const FW_CDEV_IOC_START_ISO: u32 = 1074799370; +pub const ATM_DELADDR: u32 = 1074553225; +pub const PPFCONTROL: u32 = 1073901710; +pub const SONYPI_IOCGFAN: u32 = 2147579402; +pub const RTC_IRQP_SET: u32 = 1074032652; +pub const PCITEST_WRITE: u32 = 1074024452; +pub const PPCLAIM: u32 = 28811; +pub const VIDIOC_S_JPEGCOMP: u32 = 1082938942; +pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 2147641615; +pub const VHOST_SET_FEATURES: u32 = 1074310912; +pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; +pub const VIDIOC_DQBUF: u32 = 3225703953; +pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 2214630434; +pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 1074304026; +pub const ATMLEC_MCAST: u32 = 25042; +pub const MMTIMER_GETFREQ: u32 = 2147773698; +pub const VIDIOC_G_SELECTION: u32 = 3225441886; +pub const RTC_ALM_SET: u32 = 1076129799; +pub const PPPOEIOCSFWD: u32 = 1074049280; +pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 2147772702; +pub const FS_IOC_ENABLE_VERITY: u32 = 1082156677; +pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; +pub const FDFMTEND: u32 = 585; +pub const DMA_BUF_SET_NAME: u32 = 1074029057; +pub const UI_BEGIN_FF_UPLOAD: u32 = 3227538888; +pub const RTC_UIE_ON: u32 = 28675; +pub const PPRELEASE: u32 = 28812; +pub const VFIO_IOMMU_UNMAP_DMA: u32 = 15218; +pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3225179842; +pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; +pub const VFAT_IOCTL_READDIR_BOTH: u32 = 2182640129; +pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; +pub const VHOST_SET_VRING_KICK: u32 = 1074310944; +pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 1342215192; +pub const BTRFS_IOC_SNAP_CREATE: u32 = 1342215169; +pub const SONYPI_IOCGBAT2CAP: u32 = 2147644932; +pub const PPNEGOT: u32 = 1074032785; +pub const NBD_PRINT_DEBUG: u32 = 43782; +pub const BTRFS_IOC_INO_LOOKUP_USER: u32 = 3489698878; +pub const BTRFS_IOC_GET_SUBVOL_ROOTREF: u32 = 3489698877; +pub const FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS: u32 = 3225445913; +pub const BTRFS_IOC_FS_INFO: u32 = 2214630431; +pub const VIDIOC_ENUM_FMT: u32 = 3225441794; +pub const VIDIOC_G_INPUT: u32 = 2147767846; +pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; +pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 2147792515; +pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; +pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 1077974060; +pub const MMTIMER_GETCOUNTER: u32 = 2147773705; +pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221516026; +pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 37934; +pub const RIO_CM_CHAN_BIND: u32 = 1074291461; +pub const HIDIOCGRDESC: u32 = 2416199682; +pub const MGSL_IOCGIF: u32 = 27915; +pub const VIDIOC_S_OUTPUT: u32 = 3221509679; +pub const HIDIOCGREPORTINFO: u32 = 3222030345; +pub const WDIOC_GETBOOTSTATUS: u32 = 2147768066; +pub const VDUSE_VQ_GET_INFO: u32 = 3224404245; +pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 1076142677; +pub const BLKGETDISKSEQ: u32 = 2148012672; +pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; +pub const ACRN_IOCTL_DESTROY_VM: u32 = 41489; +pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 1075094099; +pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 41522; +pub const ACRN_IOCTL_IRQFD: u32 = 1075356273; +pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; +pub const ACRN_IOCTL_INJECT_MSI: u32 = 1074831907; +pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 41523; +pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 1075094100; +pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 1074307633; +pub const ACRN_IOCTL_SET_IRQLINE: u32 = 1074307621; +pub const ACRN_IOCTL_START_VM: u32 = 41490; +pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 1093181974; +pub const ACRN_IOCTL_SET_MEMSEG: u32 = 1075880513; +pub const ACRN_IOCTL_PAUSE_VM: u32 = 41491; +pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 41525; +pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 1075880514; +pub const ACRN_IOCTL_IOEVENTFD: u32 = 1075880560; +pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 1076142678; +pub const ACRN_IOCTL_RESET_VM: u32 = 41493; +pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 41524; +pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 1074045476; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/landlock.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/landlock.rs new file mode 100644 index 0000000000000000000000000000000000000000..2f9257ddf92f520f6b90dd5c043b2ccf408e4081 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/landlock.rs @@ -0,0 +1,102 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct landlock_ruleset_attr { +pub handled_access_fs: __u64, +pub handled_access_net: __u64, +pub scoped: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct landlock_path_beneath_attr { +pub allowed_access: __u64, +pub parent_fd: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct landlock_net_port_attr { +pub allowed_access: __u64, +pub port: __u64, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; +pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; +pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; +pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; +pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; +pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; +pub const LANDLOCK_ACCESS_FS_READ_DIR: u32 = 8; +pub const LANDLOCK_ACCESS_FS_REMOVE_DIR: u32 = 16; +pub const LANDLOCK_ACCESS_FS_REMOVE_FILE: u32 = 32; +pub const LANDLOCK_ACCESS_FS_MAKE_CHAR: u32 = 64; +pub const LANDLOCK_ACCESS_FS_MAKE_DIR: u32 = 128; +pub const LANDLOCK_ACCESS_FS_MAKE_REG: u32 = 256; +pub const LANDLOCK_ACCESS_FS_MAKE_SOCK: u32 = 512; +pub const LANDLOCK_ACCESS_FS_MAKE_FIFO: u32 = 1024; +pub const LANDLOCK_ACCESS_FS_MAKE_BLOCK: u32 = 2048; +pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; +pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; +pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; +pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; +pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; +pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum landlock_rule_type { +LANDLOCK_RULE_PATH_BENEATH = 1, +LANDLOCK_RULE_NET_PORT = 2, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/loop_device.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/loop_device.rs new file mode 100644 index 0000000000000000000000000000000000000000..a69c0087d9c75c7ffcd6cdbc7bb51d4ca2f43241 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/loop_device.rs @@ -0,0 +1,132 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct loop_info { +pub lo_number: crate::ctypes::c_int, +pub lo_device: __kernel_old_dev_t, +pub lo_inode: crate::ctypes::c_ulong, +pub lo_rdevice: __kernel_old_dev_t, +pub lo_offset: crate::ctypes::c_int, +pub lo_encrypt_type: crate::ctypes::c_int, +pub lo_encrypt_key_size: crate::ctypes::c_int, +pub lo_flags: crate::ctypes::c_int, +pub lo_name: [crate::ctypes::c_char; 64usize], +pub lo_encrypt_key: [crate::ctypes::c_uchar; 32usize], +pub lo_init: [crate::ctypes::c_ulong; 2usize], +pub reserved: [crate::ctypes::c_char; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct loop_info64 { +pub lo_device: __u64, +pub lo_inode: __u64, +pub lo_rdevice: __u64, +pub lo_offset: __u64, +pub lo_sizelimit: __u64, +pub lo_number: __u32, +pub lo_encrypt_type: __u32, +pub lo_encrypt_key_size: __u32, +pub lo_flags: __u32, +pub lo_file_name: [__u8; 64usize], +pub lo_crypt_name: [__u8; 64usize], +pub lo_encrypt_key: [__u8; 32usize], +pub lo_init: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct loop_config { +pub fd: __u32, +pub block_size: __u32, +pub info: loop_info64, +pub __reserved: [__u64; 8usize], +} +pub const LO_NAME_SIZE: u32 = 64; +pub const LO_KEY_SIZE: u32 = 32; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const LO_CRYPT_NONE: u32 = 0; +pub const LO_CRYPT_XOR: u32 = 1; +pub const LO_CRYPT_DES: u32 = 2; +pub const LO_CRYPT_FISH2: u32 = 3; +pub const LO_CRYPT_BLOW: u32 = 4; +pub const LO_CRYPT_CAST128: u32 = 5; +pub const LO_CRYPT_IDEA: u32 = 6; +pub const LO_CRYPT_DUMMY: u32 = 9; +pub const LO_CRYPT_SKIPJACK: u32 = 10; +pub const LO_CRYPT_CRYPTOAPI: u32 = 18; +pub const MAX_LO_CRYPT: u32 = 20; +pub const LOOP_SET_FD: u32 = 19456; +pub const LOOP_CLR_FD: u32 = 19457; +pub const LOOP_SET_STATUS: u32 = 19458; +pub const LOOP_GET_STATUS: u32 = 19459; +pub const LOOP_SET_STATUS64: u32 = 19460; +pub const LOOP_GET_STATUS64: u32 = 19461; +pub const LOOP_CHANGE_FD: u32 = 19462; +pub const LOOP_SET_CAPACITY: u32 = 19463; +pub const LOOP_SET_DIRECT_IO: u32 = 19464; +pub const LOOP_SET_BLOCK_SIZE: u32 = 19465; +pub const LOOP_CONFIGURE: u32 = 19466; +pub const LOOP_CTL_ADD: u32 = 19584; +pub const LOOP_CTL_REMOVE: u32 = 19585; +pub const LOOP_CTL_GET_FREE: u32 = 19586; +pub const LO_FLAGS_READ_ONLY: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_READ_ONLY; +pub const LO_FLAGS_AUTOCLEAR: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_AUTOCLEAR; +pub const LO_FLAGS_PARTSCAN: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_PARTSCAN; +pub const LO_FLAGS_DIRECT_IO: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_DIRECT_IO; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +LO_FLAGS_READ_ONLY = 1, +LO_FLAGS_AUTOCLEAR = 4, +LO_FLAGS_PARTSCAN = 8, +LO_FLAGS_DIRECT_IO = 16, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/net.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/net.rs new file mode 100644 index 0000000000000000000000000000000000000000..d31bc01ca248eec66f5ead1b450c90cbfc96f5df --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/net.rs @@ -0,0 +1,3483 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_sa_family_t = crate::ctypes::c_ushort; +pub type socklen_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] +pub struct __BindgenBitfieldUnit { +storage: Storage, +} +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +pub struct __BindgenUnionField(::core::marker::PhantomData); +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __kernel_sockaddr_storage { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { +pub ss_family: __kernel_sa_family_t, +pub __data: [crate::ctypes::c_char; 126usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct in_addr { +pub s_addr: __be32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_mreq { +pub imr_multiaddr: in_addr, +pub imr_interface: in_addr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_mreqn { +pub imr_multiaddr: in_addr, +pub imr_address: in_addr, +pub imr_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_mreq_source { +pub imr_multiaddr: __be32, +pub imr_interface: __be32, +pub imr_sourceaddr: __be32, +} +#[repr(C)] +pub struct ip_msfilter { +pub imsf_multiaddr: __be32, +pub imsf_interface: __be32, +pub imsf_fmode: __u32, +pub imsf_numsrc: __u32, +pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, +} +#[repr(C)] +pub struct ip_msfilter__bindgen_ty_1 { +pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, +pub __bindgen_anon_1: __BindgenUnionField, +pub bindgen_union_field: u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { +pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, +pub imsf_slist_flex: __IncompleteArrayField<__be32>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct group_req { +pub gr_interface: __u32, +pub gr_group: __kernel_sockaddr_storage, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct group_source_req { +pub gsr_interface: __u32, +pub gsr_group: __kernel_sockaddr_storage, +pub gsr_source: __kernel_sockaddr_storage, +} +#[repr(C)] +pub struct group_filter { +pub __bindgen_anon_1: group_filter__bindgen_ty_1, +} +#[repr(C)] +pub struct group_filter__bindgen_ty_1 { +pub __bindgen_anon_1: __BindgenUnionField, +pub __bindgen_anon_2: __BindgenUnionField, +pub bindgen_union_field: [u32; 67usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { +pub gf_interface_aux: __u32, +pub gf_group_aux: __kernel_sockaddr_storage, +pub gf_fmode_aux: __u32, +pub gf_numsrc_aux: __u32, +pub gf_slist: [__kernel_sockaddr_storage; 1usize], +} +#[repr(C)] +pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { +pub gf_interface: __u32, +pub gf_group: __kernel_sockaddr_storage, +pub gf_fmode: __u32, +pub gf_numsrc: __u32, +pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct in_pktinfo { +pub ipi_ifindex: crate::ctypes::c_int, +pub ipi_spec_dst: in_addr, +pub ipi_addr: in_addr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_in { +pub sin_family: __kernel_sa_family_t, +pub sin_port: __be16, +pub sin_addr: in_addr, +pub __pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct iphdr { +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, +pub tos: __u8, +pub tot_len: __be16, +pub id: __be16, +pub frag_off: __be16, +pub ttl: __u8, +pub protocol: __u8, +pub check: __sum16, +pub __bindgen_anon_1: iphdr__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { +pub saddr: __be32, +pub daddr: __be32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { +pub saddr: __be32, +pub daddr: __be32, +} +#[repr(C)] +#[derive(Debug)] +pub struct ip_auth_hdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +pub reserved: __be16, +pub spi: __be32, +pub seq_no: __be32, +pub auth_data: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug)] +pub struct ip_esp_hdr { +pub spi: __be32, +pub seq_no: __be32, +pub enc_data: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_comp_hdr { +pub nexthdr: __u8, +pub flags: __u8, +pub cpi: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_beet_phdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +pub padlen: __u8, +pub reserved: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_iptfs_hdr { +pub subtype: __u8, +pub flags: __u8, +pub block_offset: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_iptfs_cc_hdr { +pub subtype: __u8, +pub flags: __u8, +pub block_offset: __be16, +pub loss_rate: __be32, +pub rtt_adelay_xdelay: __be64, +pub tval: __be32, +pub techo: __be32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_addr { +pub in6_u: in6_addr__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sockaddr_in6 { +pub sin6_family: crate::ctypes::c_ushort, +pub sin6_port: __be16, +pub sin6_flowinfo: __be32, +pub sin6_addr: in6_addr, +pub sin6_scope_id: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6_mreq { +pub ipv6mr_multiaddr: in6_addr, +pub ipv6mr_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_flowlabel_req { +pub flr_dst: in6_addr, +pub flr_label: __be32, +pub flr_action: __u8, +pub flr_share: __u8, +pub flr_flags: __u16, +pub flr_expires: __u16, +pub flr_linger: __u16, +pub __flr_pad: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_pktinfo { +pub ipi6_addr: in6_addr, +pub ipi6_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ip6_mtuinfo { +pub ip6m_addr: sockaddr_in6, +pub ip6m_mtu: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_ifreq { +pub ifr6_addr: in6_addr, +pub ifr6_prefixlen: __u32, +pub ifr6_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ipv6_rt_hdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +pub type_: __u8, +pub segments_left: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct ipv6_opt_hdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +} +#[repr(C)] +pub struct rt0_hdr { +pub rt_hdr: ipv6_rt_hdr, +pub reserved: __u32, +pub addr: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct rt2_hdr { +pub rt_hdr: ipv6_rt_hdr, +pub reserved: __u32, +pub addr: in6_addr, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct ipv6_destopt_hao { +pub type_: __u8, +pub length: __u8, +pub addr: in6_addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6hdr { +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, +pub flow_lbl: [__u8; 3usize], +pub payload_len: __be16, +pub nexthdr: __u8, +pub hop_limit: __u8, +pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { +pub saddr: in6_addr, +pub daddr: in6_addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { +pub saddr: in6_addr, +pub daddr: in6_addr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcphdr { +pub source: __be16, +pub dest: __be16, +pub seq: __be32, +pub ack_seq: __be32, +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +pub window: __be16, +pub check: __sum16, +pub urg_ptr: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_repair_opt { +pub opt_code: __u32, +pub opt_val: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_repair_window { +pub snd_wl1: __u32, +pub snd_wnd: __u32, +pub max_window: __u32, +pub rcv_wnd: __u32, +pub rcv_wup: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_info { +pub tcpi_state: __u8, +pub tcpi_ca_state: __u8, +pub tcpi_retransmits: __u8, +pub tcpi_probes: __u8, +pub tcpi_backoff: __u8, +pub tcpi_options: __u8, +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +pub tcpi_rto: __u32, +pub tcpi_ato: __u32, +pub tcpi_snd_mss: __u32, +pub tcpi_rcv_mss: __u32, +pub tcpi_unacked: __u32, +pub tcpi_sacked: __u32, +pub tcpi_lost: __u32, +pub tcpi_retrans: __u32, +pub tcpi_fackets: __u32, +pub tcpi_last_data_sent: __u32, +pub tcpi_last_ack_sent: __u32, +pub tcpi_last_data_recv: __u32, +pub tcpi_last_ack_recv: __u32, +pub tcpi_pmtu: __u32, +pub tcpi_rcv_ssthresh: __u32, +pub tcpi_rtt: __u32, +pub tcpi_rttvar: __u32, +pub tcpi_snd_ssthresh: __u32, +pub tcpi_snd_cwnd: __u32, +pub tcpi_advmss: __u32, +pub tcpi_reordering: __u32, +pub tcpi_rcv_rtt: __u32, +pub tcpi_rcv_space: __u32, +pub tcpi_total_retrans: __u32, +pub tcpi_pacing_rate: __u64, +pub tcpi_max_pacing_rate: __u64, +pub tcpi_bytes_acked: __u64, +pub tcpi_bytes_received: __u64, +pub tcpi_segs_out: __u32, +pub tcpi_segs_in: __u32, +pub tcpi_notsent_bytes: __u32, +pub tcpi_min_rtt: __u32, +pub tcpi_data_segs_in: __u32, +pub tcpi_data_segs_out: __u32, +pub tcpi_delivery_rate: __u64, +pub tcpi_busy_time: __u64, +pub tcpi_rwnd_limited: __u64, +pub tcpi_sndbuf_limited: __u64, +pub tcpi_delivered: __u32, +pub tcpi_delivered_ce: __u32, +pub tcpi_bytes_sent: __u64, +pub tcpi_bytes_retrans: __u64, +pub tcpi_dsack_dups: __u32, +pub tcpi_reord_seen: __u32, +pub tcpi_rcv_ooopack: __u32, +pub tcpi_snd_wnd: __u32, +pub tcpi_rcv_wnd: __u32, +pub tcpi_rehash: __u32, +pub tcpi_total_rto: __u16, +pub tcpi_total_rto_recoveries: __u16, +pub tcpi_total_rto_time: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tcp_md5sig { +pub tcpm_addr: __kernel_sockaddr_storage, +pub tcpm_flags: __u8, +pub tcpm_prefixlen: __u8, +pub tcpm_keylen: __u16, +pub tcpm_ifindex: crate::ctypes::c_int, +pub tcpm_key: [__u8; 80usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_diag_md5sig { +pub tcpm_family: __u8, +pub tcpm_prefixlen: __u8, +pub tcpm_keylen: __u16, +pub tcpm_addr: [__be32; 4usize], +pub tcpm_key: [__u8; 80usize], +} +#[repr(C)] +#[repr(align(8))] +#[derive(Copy, Clone)] +pub struct tcp_ao_add { +pub addr: __kernel_sockaddr_storage, +pub alg_name: [crate::ctypes::c_char; 64usize], +pub ifindex: __s32, +pub _bitfield_align_1: [u32; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +pub reserved2: __u16, +pub prefix: __u8, +pub sndid: __u8, +pub rcvid: __u8, +pub maclen: __u8, +pub keyflags: __u8, +pub keylen: __u8, +pub key: [__u8; 80usize], +} +#[repr(C)] +#[repr(align(8))] +#[derive(Copy, Clone)] +pub struct tcp_ao_del { +pub addr: __kernel_sockaddr_storage, +pub ifindex: __s32, +pub _bitfield_align_1: [u32; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +pub reserved2: __u16, +pub prefix: __u8, +pub sndid: __u8, +pub rcvid: __u8, +pub current_key: __u8, +pub rnext: __u8, +pub keyflags: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_ao_info_opt { +pub _bitfield_align_1: [u32; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +pub reserved2: __u16, +pub current_key: __u8, +pub rnext: __u8, +pub pkt_good: __u64, +pub pkt_bad: __u64, +pub pkt_key_not_found: __u64, +pub pkt_ao_required: __u64, +pub pkt_dropped_icmp: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tcp_ao_getsockopt { +pub addr: __kernel_sockaddr_storage, +pub alg_name: [crate::ctypes::c_char; 64usize], +pub key: [__u8; 80usize], +pub nkeys: __u32, +pub _bitfield_align_1: [u16; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +pub sndid: __u8, +pub rcvid: __u8, +pub prefix: __u8, +pub maclen: __u8, +pub keyflags: __u8, +pub keylen: __u8, +pub ifindex: __s32, +pub pkt_good: __u64, +pub pkt_bad: __u64, +} +#[repr(C)] +#[repr(align(8))] +#[derive(Debug, Copy, Clone)] +pub struct tcp_ao_repair { +pub snt_isn: __be32, +pub rcv_isn: __be32, +pub snd_sne: __u32, +pub rcv_sne: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_zerocopy_receive { +pub address: __u64, +pub length: __u32, +pub recv_skip_hint: __u32, +pub inq: __u32, +pub err: __s32, +pub copybuf_address: __u64, +pub copybuf_len: __s32, +pub flags: __u32, +pub msg_control: __u64, +pub msg_controllen: __u64, +pub msg_flags: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_un { +pub sun_family: __kernel_sa_family_t, +pub sun_path: [crate::ctypes::c_char; 108usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sockaddr { +pub __storage: __kernel_sockaddr_storage, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sync_serial_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct te1_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +pub slot_map: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct raw_hdlc_proto { +pub encoding: crate::ctypes::c_ushort, +pub parity: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto { +pub t391: crate::ctypes::c_uint, +pub t392: crate::ctypes::c_uint, +pub n391: crate::ctypes::c_uint, +pub n392: crate::ctypes::c_uint, +pub n393: crate::ctypes::c_uint, +pub lmi: crate::ctypes::c_ushort, +pub dce: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc { +pub dlci: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc_info { +pub dlci: crate::ctypes::c_uint, +pub master: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cisco_proto { +pub interval: crate::ctypes::c_uint, +pub timeout: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct x25_hdlc_proto { +pub dce: crate::ctypes::c_ushort, +pub modulo: crate::ctypes::c_uint, +pub window: crate::ctypes::c_uint, +pub t1: crate::ctypes::c_uint, +pub t2: crate::ctypes::c_uint, +pub n2: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifmap { +pub mem_start: crate::ctypes::c_ulong, +pub mem_end: crate::ctypes::c_ulong, +pub base_addr: crate::ctypes::c_ushort, +pub irq: crate::ctypes::c_uchar, +pub dma: crate::ctypes::c_uchar, +pub port: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct if_settings { +pub type_: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +pub ifs_ifsu: if_settings__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifreq { +pub ifr_ifrn: ifreq__bindgen_ty_1, +pub ifr_ifru: ifreq__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifconf { +pub ifc_len: crate::ctypes::c_int, +pub ifc_ifcu: ifconf__bindgen_ty_1, +} +#[repr(C)] +pub struct xt_entry_match { +pub u: xt_entry_match__bindgen_ty_1, +pub data: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 { +pub match_size: __u16, +pub name: [crate::ctypes::c_char; 29usize], +pub revision: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 { +pub match_size: __u16, +pub match_: *mut xt_match, +} +#[repr(C)] +pub struct xt_entry_target { +pub u: xt_entry_target__bindgen_ty_1, +pub data: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 { +pub target_size: __u16, +pub name: [crate::ctypes::c_char; 29usize], +pub revision: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 { +pub target_size: __u16, +pub target: *mut xt_target, +} +#[repr(C)] +pub struct xt_standard_target { +pub target: xt_entry_target, +pub verdict: crate::ctypes::c_int, +} +#[repr(C)] +pub struct xt_error_target { +pub target: xt_entry_target, +pub errorname: [crate::ctypes::c_char; 30usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_get_revision { +pub name: [crate::ctypes::c_char; 29usize], +pub revision: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _xt_align { +pub u8_: __u8, +pub u16_: __u16, +pub u32_: __u32, +pub u64_: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_counters { +pub pcnt: __u64, +pub bcnt: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct xt_counters_info { +pub name: [crate::ctypes::c_char; 32usize], +pub num_counters: crate::ctypes::c_uint, +pub counters: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_tcp { +pub spts: [__u16; 2usize], +pub dpts: [__u16; 2usize], +pub option: __u8, +pub flg_mask: __u8, +pub flg_cmp: __u8, +pub invflags: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_udp { +pub spts: [__u16; 2usize], +pub dpts: [__u16; 2usize], +pub invflags: __u8, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ip6t_ip6 { +pub src: in6_addr, +pub dst: in6_addr, +pub smsk: in6_addr, +pub dmsk: in6_addr, +pub iniface: [crate::ctypes::c_char; 16usize], +pub outiface: [crate::ctypes::c_char; 16usize], +pub iniface_mask: [crate::ctypes::c_uchar; 16usize], +pub outiface_mask: [crate::ctypes::c_uchar; 16usize], +pub proto: __u16, +pub tos: __u8, +pub flags: __u8, +pub invflags: __u8, +} +#[repr(C)] +pub struct ip6t_entry { +pub ipv6: ip6t_ip6, +pub nfcache: crate::ctypes::c_uint, +pub target_offset: __u16, +pub next_offset: __u16, +pub comefrom: crate::ctypes::c_uint, +pub counters: xt_counters, +pub elems: __IncompleteArrayField, +} +#[repr(C)] +pub struct ip6t_standard { +pub entry: ip6t_entry, +pub target: xt_standard_target, +} +#[repr(C)] +pub struct ip6t_error { +pub entry: ip6t_entry, +pub target: xt_error_target, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip6t_icmp { +pub type_: __u8, +pub code: [__u8; 2usize], +pub invflags: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip6t_getinfo { +pub name: [crate::ctypes::c_char; 32usize], +pub valid_hooks: crate::ctypes::c_uint, +pub hook_entry: [crate::ctypes::c_uint; 5usize], +pub underflow: [crate::ctypes::c_uint; 5usize], +pub num_entries: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +} +#[repr(C)] +pub struct ip6t_replace { +pub name: [crate::ctypes::c_char; 32usize], +pub valid_hooks: crate::ctypes::c_uint, +pub num_entries: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +pub hook_entry: [crate::ctypes::c_uint; 5usize], +pub underflow: [crate::ctypes::c_uint; 5usize], +pub num_counters: crate::ctypes::c_uint, +pub counters: *mut xt_counters, +pub entries: __IncompleteArrayField, +} +#[repr(C)] +pub struct ip6t_get_entries { +pub name: [crate::ctypes::c_char; 32usize], +pub size: crate::ctypes::c_uint, +pub entrytable: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct so_timestamping { +pub flags: crate::ctypes::c_int, +pub bind_phc: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hwtstamp_config { +pub flags: crate::ctypes::c_int, +pub tx_type: crate::ctypes::c_int, +pub rx_filter: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct scm_ts_pktinfo { +pub if_index: __u32, +pub pkt_length: __u32, +pub reserved: [__u32; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sock_txtime { +pub clockid: __kernel_clockid_t, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct linger { +pub l_onoff: crate::ctypes::c_int, +pub l_linger: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct msghdr { +pub msg_name: *mut crate::ctypes::c_void, +pub msg_namelen: crate::ctypes::c_int, +pub msg_iov: *mut iovec, +pub msg_iovlen: usize, +pub msg_control: *mut crate::ctypes::c_void, +pub msg_controllen: usize, +pub msg_flags: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cmsghdr { +pub cmsg_len: usize, +pub cmsg_level: crate::ctypes::c_int, +pub cmsg_type: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ucred { +pub pid: __u32, +pub uid: __u32, +pub gid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mmsghdr { +pub msg_hdr: msghdr, +pub msg_len: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_match { +pub _address: u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_target { +pub _address: u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iovec { +pub _address: u8, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _K_SS_MAXSIZE: u32 = 128; +pub const SOCK_SNDBUF_LOCK: u32 = 1; +pub const SOCK_RCVBUF_LOCK: u32 = 2; +pub const SOCK_BUF_LOCK_MASK: u32 = 3; +pub const SOCK_TXREHASH_DEFAULT: u32 = 255; +pub const SOCK_TXREHASH_DISABLED: u32 = 0; +pub const SOCK_TXREHASH_ENABLED: u32 = 1; +pub const IP_TOS: u32 = 1; +pub const IP_TTL: u32 = 2; +pub const IP_HDRINCL: u32 = 3; +pub const IP_OPTIONS: u32 = 4; +pub const IP_ROUTER_ALERT: u32 = 5; +pub const IP_RECVOPTS: u32 = 6; +pub const IP_RETOPTS: u32 = 7; +pub const IP_PKTINFO: u32 = 8; +pub const IP_PKTOPTIONS: u32 = 9; +pub const IP_MTU_DISCOVER: u32 = 10; +pub const IP_RECVERR: u32 = 11; +pub const IP_RECVTTL: u32 = 12; +pub const IP_RECVTOS: u32 = 13; +pub const IP_MTU: u32 = 14; +pub const IP_FREEBIND: u32 = 15; +pub const IP_IPSEC_POLICY: u32 = 16; +pub const IP_XFRM_POLICY: u32 = 17; +pub const IP_PASSSEC: u32 = 18; +pub const IP_TRANSPARENT: u32 = 19; +pub const IP_RECVRETOPTS: u32 = 7; +pub const IP_ORIGDSTADDR: u32 = 20; +pub const IP_RECVORIGDSTADDR: u32 = 20; +pub const IP_MINTTL: u32 = 21; +pub const IP_NODEFRAG: u32 = 22; +pub const IP_CHECKSUM: u32 = 23; +pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; +pub const IP_RECVFRAGSIZE: u32 = 25; +pub const IP_RECVERR_RFC4884: u32 = 26; +pub const IP_PMTUDISC_DONT: u32 = 0; +pub const IP_PMTUDISC_WANT: u32 = 1; +pub const IP_PMTUDISC_DO: u32 = 2; +pub const IP_PMTUDISC_PROBE: u32 = 3; +pub const IP_PMTUDISC_INTERFACE: u32 = 4; +pub const IP_PMTUDISC_OMIT: u32 = 5; +pub const IP_MULTICAST_IF: u32 = 32; +pub const IP_MULTICAST_TTL: u32 = 33; +pub const IP_MULTICAST_LOOP: u32 = 34; +pub const IP_ADD_MEMBERSHIP: u32 = 35; +pub const IP_DROP_MEMBERSHIP: u32 = 36; +pub const IP_UNBLOCK_SOURCE: u32 = 37; +pub const IP_BLOCK_SOURCE: u32 = 38; +pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; +pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; +pub const IP_MSFILTER: u32 = 41; +pub const MCAST_JOIN_GROUP: u32 = 42; +pub const MCAST_BLOCK_SOURCE: u32 = 43; +pub const MCAST_UNBLOCK_SOURCE: u32 = 44; +pub const MCAST_LEAVE_GROUP: u32 = 45; +pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; +pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; +pub const MCAST_MSFILTER: u32 = 48; +pub const IP_MULTICAST_ALL: u32 = 49; +pub const IP_UNICAST_IF: u32 = 50; +pub const IP_LOCAL_PORT_RANGE: u32 = 51; +pub const IP_PROTOCOL: u32 = 52; +pub const MCAST_EXCLUDE: u32 = 0; +pub const MCAST_INCLUDE: u32 = 1; +pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; +pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; +pub const __SOCK_SIZE__: u32 = 16; +pub const IN_CLASSA_NET: u32 = 4278190080; +pub const IN_CLASSA_NSHIFT: u32 = 24; +pub const IN_CLASSA_HOST: u32 = 16777215; +pub const IN_CLASSA_MAX: u32 = 128; +pub const IN_CLASSB_NET: u32 = 4294901760; +pub const IN_CLASSB_NSHIFT: u32 = 16; +pub const IN_CLASSB_HOST: u32 = 65535; +pub const IN_CLASSB_MAX: u32 = 65536; +pub const IN_CLASSC_NET: u32 = 4294967040; +pub const IN_CLASSC_NSHIFT: u32 = 8; +pub const IN_CLASSC_HOST: u32 = 255; +pub const IN_MULTICAST_NET: u32 = 3758096384; +pub const IN_CLASSE_NET: u32 = 4294967295; +pub const IN_CLASSE_NSHIFT: u32 = 0; +pub const IN_LOOPBACKNET: u32 = 127; +pub const INADDR_LOOPBACK: u32 = 2130706433; +pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; +pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; +pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; +pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; +pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; +pub const __LITTLE_ENDIAN: u32 = 1234; +pub const IPTOS_TOS_MASK: u32 = 30; +pub const IPTOS_LOWDELAY: u32 = 16; +pub const IPTOS_THROUGHPUT: u32 = 8; +pub const IPTOS_RELIABILITY: u32 = 4; +pub const IPTOS_MINCOST: u32 = 2; +pub const IPTOS_PREC_MASK: u32 = 224; +pub const IPTOS_PREC_NETCONTROL: u32 = 224; +pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; +pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; +pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; +pub const IPTOS_PREC_FLASH: u32 = 96; +pub const IPTOS_PREC_IMMEDIATE: u32 = 64; +pub const IPTOS_PREC_PRIORITY: u32 = 32; +pub const IPTOS_PREC_ROUTINE: u32 = 0; +pub const IPOPT_COPY: u32 = 128; +pub const IPOPT_CLASS_MASK: u32 = 96; +pub const IPOPT_NUMBER_MASK: u32 = 31; +pub const IPOPT_CONTROL: u32 = 0; +pub const IPOPT_RESERVED1: u32 = 32; +pub const IPOPT_MEASUREMENT: u32 = 64; +pub const IPOPT_RESERVED2: u32 = 96; +pub const IPOPT_END: u32 = 0; +pub const IPOPT_NOOP: u32 = 1; +pub const IPOPT_SEC: u32 = 130; +pub const IPOPT_LSRR: u32 = 131; +pub const IPOPT_TIMESTAMP: u32 = 68; +pub const IPOPT_CIPSO: u32 = 134; +pub const IPOPT_RR: u32 = 7; +pub const IPOPT_SID: u32 = 136; +pub const IPOPT_SSRR: u32 = 137; +pub const IPOPT_RA: u32 = 148; +pub const IPVERSION: u32 = 4; +pub const MAXTTL: u32 = 255; +pub const IPDEFTTL: u32 = 64; +pub const IPOPT_OPTVAL: u32 = 0; +pub const IPOPT_OLEN: u32 = 1; +pub const IPOPT_OFFSET: u32 = 2; +pub const IPOPT_MINOFF: u32 = 4; +pub const MAX_IPOPTLEN: u32 = 40; +pub const IPOPT_NOP: u32 = 1; +pub const IPOPT_EOL: u32 = 0; +pub const IPOPT_TS: u32 = 68; +pub const IPOPT_TS_TSONLY: u32 = 0; +pub const IPOPT_TS_TSANDADDR: u32 = 1; +pub const IPOPT_TS_PRESPEC: u32 = 3; +pub const IPV4_BEET_PHMAXLEN: u32 = 8; +pub const IPV6_FL_A_GET: u32 = 0; +pub const IPV6_FL_A_PUT: u32 = 1; +pub const IPV6_FL_A_RENEW: u32 = 2; +pub const IPV6_FL_F_CREATE: u32 = 1; +pub const IPV6_FL_F_EXCL: u32 = 2; +pub const IPV6_FL_F_REFLECT: u32 = 4; +pub const IPV6_FL_F_REMOTE: u32 = 8; +pub const IPV6_FL_S_NONE: u32 = 0; +pub const IPV6_FL_S_EXCL: u32 = 1; +pub const IPV6_FL_S_PROCESS: u32 = 2; +pub const IPV6_FL_S_USER: u32 = 3; +pub const IPV6_FL_S_ANY: u32 = 255; +pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; +pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; +pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; +pub const IPV6_PRIORITY_FILLER: u32 = 256; +pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; +pub const IPV6_PRIORITY_RESERVED1: u32 = 768; +pub const IPV6_PRIORITY_BULK: u32 = 1024; +pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; +pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; +pub const IPV6_PRIORITY_CONTROL: u32 = 1792; +pub const IPV6_PRIORITY_8: u32 = 2048; +pub const IPV6_PRIORITY_9: u32 = 2304; +pub const IPV6_PRIORITY_10: u32 = 2560; +pub const IPV6_PRIORITY_11: u32 = 2816; +pub const IPV6_PRIORITY_12: u32 = 3072; +pub const IPV6_PRIORITY_13: u32 = 3328; +pub const IPV6_PRIORITY_14: u32 = 3584; +pub const IPV6_PRIORITY_15: u32 = 3840; +pub const IPPROTO_HOPOPTS: u32 = 0; +pub const IPPROTO_ROUTING: u32 = 43; +pub const IPPROTO_FRAGMENT: u32 = 44; +pub const IPPROTO_ICMPV6: u32 = 58; +pub const IPPROTO_NONE: u32 = 59; +pub const IPPROTO_DSTOPTS: u32 = 60; +pub const IPPROTO_MH: u32 = 135; +pub const IPV6_TLV_PAD1: u32 = 0; +pub const IPV6_TLV_PADN: u32 = 1; +pub const IPV6_TLV_ROUTERALERT: u32 = 5; +pub const IPV6_TLV_CALIPSO: u32 = 7; +pub const IPV6_TLV_IOAM: u32 = 49; +pub const IPV6_TLV_JUMBO: u32 = 194; +pub const IPV6_TLV_HAO: u32 = 201; +pub const IPV6_ADDRFORM: u32 = 1; +pub const IPV6_2292PKTINFO: u32 = 2; +pub const IPV6_2292HOPOPTS: u32 = 3; +pub const IPV6_2292DSTOPTS: u32 = 4; +pub const IPV6_2292RTHDR: u32 = 5; +pub const IPV6_2292PKTOPTIONS: u32 = 6; +pub const IPV6_CHECKSUM: u32 = 7; +pub const IPV6_2292HOPLIMIT: u32 = 8; +pub const IPV6_NEXTHOP: u32 = 9; +pub const IPV6_AUTHHDR: u32 = 10; +pub const IPV6_FLOWINFO: u32 = 11; +pub const IPV6_UNICAST_HOPS: u32 = 16; +pub const IPV6_MULTICAST_IF: u32 = 17; +pub const IPV6_MULTICAST_HOPS: u32 = 18; +pub const IPV6_MULTICAST_LOOP: u32 = 19; +pub const IPV6_ADD_MEMBERSHIP: u32 = 20; +pub const IPV6_DROP_MEMBERSHIP: u32 = 21; +pub const IPV6_ROUTER_ALERT: u32 = 22; +pub const IPV6_MTU_DISCOVER: u32 = 23; +pub const IPV6_MTU: u32 = 24; +pub const IPV6_RECVERR: u32 = 25; +pub const IPV6_V6ONLY: u32 = 26; +pub const IPV6_JOIN_ANYCAST: u32 = 27; +pub const IPV6_LEAVE_ANYCAST: u32 = 28; +pub const IPV6_MULTICAST_ALL: u32 = 29; +pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; +pub const IPV6_RECVERR_RFC4884: u32 = 31; +pub const IPV6_PMTUDISC_DONT: u32 = 0; +pub const IPV6_PMTUDISC_WANT: u32 = 1; +pub const IPV6_PMTUDISC_DO: u32 = 2; +pub const IPV6_PMTUDISC_PROBE: u32 = 3; +pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; +pub const IPV6_PMTUDISC_OMIT: u32 = 5; +pub const IPV6_FLOWLABEL_MGR: u32 = 32; +pub const IPV6_FLOWINFO_SEND: u32 = 33; +pub const IPV6_IPSEC_POLICY: u32 = 34; +pub const IPV6_XFRM_POLICY: u32 = 35; +pub const IPV6_HDRINCL: u32 = 36; +pub const IPV6_RECVPKTINFO: u32 = 49; +pub const IPV6_PKTINFO: u32 = 50; +pub const IPV6_RECVHOPLIMIT: u32 = 51; +pub const IPV6_HOPLIMIT: u32 = 52; +pub const IPV6_RECVHOPOPTS: u32 = 53; +pub const IPV6_HOPOPTS: u32 = 54; +pub const IPV6_RTHDRDSTOPTS: u32 = 55; +pub const IPV6_RECVRTHDR: u32 = 56; +pub const IPV6_RTHDR: u32 = 57; +pub const IPV6_RECVDSTOPTS: u32 = 58; +pub const IPV6_DSTOPTS: u32 = 59; +pub const IPV6_RECVPATHMTU: u32 = 60; +pub const IPV6_PATHMTU: u32 = 61; +pub const IPV6_DONTFRAG: u32 = 62; +pub const IPV6_RECVTCLASS: u32 = 66; +pub const IPV6_TCLASS: u32 = 67; +pub const IPV6_AUTOFLOWLABEL: u32 = 70; +pub const IPV6_ADDR_PREFERENCES: u32 = 72; +pub const IPV6_PREFER_SRC_TMP: u32 = 1; +pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; +pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; +pub const IPV6_PREFER_SRC_COA: u32 = 4; +pub const IPV6_PREFER_SRC_HOME: u32 = 1024; +pub const IPV6_PREFER_SRC_CGA: u32 = 8; +pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; +pub const IPV6_MINHOPCOUNT: u32 = 73; +pub const IPV6_ORIGDSTADDR: u32 = 74; +pub const IPV6_RECVORIGDSTADDR: u32 = 74; +pub const IPV6_TRANSPARENT: u32 = 75; +pub const IPV6_UNICAST_IF: u32 = 76; +pub const IPV6_RECVFRAGSIZE: u32 = 77; +pub const IPV6_FREEBIND: u32 = 78; +pub const IPV6_MIN_MTU: u32 = 1280; +pub const IPV6_SRCRT_STRICT: u32 = 1; +pub const IPV6_SRCRT_TYPE_0: u32 = 0; +pub const IPV6_SRCRT_TYPE_2: u32 = 2; +pub const IPV6_SRCRT_TYPE_3: u32 = 3; +pub const IPV6_SRCRT_TYPE_4: u32 = 4; +pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; +pub const SIOCGSTAMP_OLD: u32 = 35078; +pub const SIOCGSTAMPNS_OLD: u32 = 35079; +pub const SOL_SOCKET: u32 = 1; +pub const SO_DEBUG: u32 = 1; +pub const SO_REUSEADDR: u32 = 2; +pub const SO_TYPE: u32 = 3; +pub const SO_ERROR: u32 = 4; +pub const SO_DONTROUTE: u32 = 5; +pub const SO_BROADCAST: u32 = 6; +pub const SO_SNDBUF: u32 = 7; +pub const SO_RCVBUF: u32 = 8; +pub const SO_SNDBUFFORCE: u32 = 32; +pub const SO_RCVBUFFORCE: u32 = 33; +pub const SO_KEEPALIVE: u32 = 9; +pub const SO_OOBINLINE: u32 = 10; +pub const SO_NO_CHECK: u32 = 11; +pub const SO_PRIORITY: u32 = 12; +pub const SO_LINGER: u32 = 13; +pub const SO_BSDCOMPAT: u32 = 14; +pub const SO_REUSEPORT: u32 = 15; +pub const SO_PASSCRED: u32 = 16; +pub const SO_PEERCRED: u32 = 17; +pub const SO_RCVLOWAT: u32 = 18; +pub const SO_SNDLOWAT: u32 = 19; +pub const SO_RCVTIMEO_OLD: u32 = 20; +pub const SO_SNDTIMEO_OLD: u32 = 21; +pub const SO_SECURITY_AUTHENTICATION: u32 = 22; +pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; +pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; +pub const SO_BINDTODEVICE: u32 = 25; +pub const SO_ATTACH_FILTER: u32 = 26; +pub const SO_DETACH_FILTER: u32 = 27; +pub const SO_GET_FILTER: u32 = 26; +pub const SO_PEERNAME: u32 = 28; +pub const SO_ACCEPTCONN: u32 = 30; +pub const SO_PEERSEC: u32 = 31; +pub const SO_PASSSEC: u32 = 34; +pub const SO_MARK: u32 = 36; +pub const SO_PROTOCOL: u32 = 38; +pub const SO_DOMAIN: u32 = 39; +pub const SO_RXQ_OVFL: u32 = 40; +pub const SO_WIFI_STATUS: u32 = 41; +pub const SCM_WIFI_STATUS: u32 = 41; +pub const SO_PEEK_OFF: u32 = 42; +pub const SO_NOFCS: u32 = 43; +pub const SO_LOCK_FILTER: u32 = 44; +pub const SO_SELECT_ERR_QUEUE: u32 = 45; +pub const SO_BUSY_POLL: u32 = 46; +pub const SO_MAX_PACING_RATE: u32 = 47; +pub const SO_BPF_EXTENSIONS: u32 = 48; +pub const SO_INCOMING_CPU: u32 = 49; +pub const SO_ATTACH_BPF: u32 = 50; +pub const SO_DETACH_BPF: u32 = 27; +pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; +pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; +pub const SO_CNX_ADVICE: u32 = 53; +pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; +pub const SO_MEMINFO: u32 = 55; +pub const SO_INCOMING_NAPI_ID: u32 = 56; +pub const SO_COOKIE: u32 = 57; +pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; +pub const SO_PEERGROUPS: u32 = 59; +pub const SO_ZEROCOPY: u32 = 60; +pub const SO_TXTIME: u32 = 61; +pub const SCM_TXTIME: u32 = 61; +pub const SO_BINDTOIFINDEX: u32 = 62; +pub const SO_TIMESTAMP_OLD: u32 = 29; +pub const SO_TIMESTAMPNS_OLD: u32 = 35; +pub const SO_TIMESTAMPING_OLD: u32 = 37; +pub const SO_TIMESTAMP_NEW: u32 = 63; +pub const SO_TIMESTAMPNS_NEW: u32 = 64; +pub const SO_TIMESTAMPING_NEW: u32 = 65; +pub const SO_RCVTIMEO_NEW: u32 = 66; +pub const SO_SNDTIMEO_NEW: u32 = 67; +pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; +pub const SO_PREFER_BUSY_POLL: u32 = 69; +pub const SO_BUSY_POLL_BUDGET: u32 = 70; +pub const SO_NETNS_COOKIE: u32 = 71; +pub const SO_BUF_LOCK: u32 = 72; +pub const SO_RESERVE_MEM: u32 = 73; +pub const SO_TXREHASH: u32 = 74; +pub const SO_RCVMARK: u32 = 75; +pub const SO_PASSPIDFD: u32 = 76; +pub const SO_PEERPIDFD: u32 = 77; +pub const SO_DEVMEM_LINEAR: u32 = 78; +pub const SCM_DEVMEM_LINEAR: u32 = 78; +pub const SO_DEVMEM_DMABUF: u32 = 79; +pub const SCM_DEVMEM_DMABUF: u32 = 79; +pub const SO_DEVMEM_DONTNEED: u32 = 80; +pub const SCM_TS_OPT_ID: u32 = 81; +pub const SO_RCVPRIORITY: u32 = 82; +pub const SO_PASSRIGHTS: u32 = 83; +pub const SYS_SOCKET: u32 = 1; +pub const SYS_BIND: u32 = 2; +pub const SYS_CONNECT: u32 = 3; +pub const SYS_LISTEN: u32 = 4; +pub const SYS_ACCEPT: u32 = 5; +pub const SYS_GETSOCKNAME: u32 = 6; +pub const SYS_GETPEERNAME: u32 = 7; +pub const SYS_SOCKETPAIR: u32 = 8; +pub const SYS_SEND: u32 = 9; +pub const SYS_RECV: u32 = 10; +pub const SYS_SENDTO: u32 = 11; +pub const SYS_RECVFROM: u32 = 12; +pub const SYS_SHUTDOWN: u32 = 13; +pub const SYS_SETSOCKOPT: u32 = 14; +pub const SYS_GETSOCKOPT: u32 = 15; +pub const SYS_SENDMSG: u32 = 16; +pub const SYS_RECVMSG: u32 = 17; +pub const SYS_ACCEPT4: u32 = 18; +pub const SYS_RECVMMSG: u32 = 19; +pub const SYS_SENDMMSG: u32 = 20; +pub const __SO_ACCEPTCON: u32 = 65536; +pub const TCP_MSS_DEFAULT: u32 = 536; +pub const TCP_MSS_DESIRED: u32 = 1220; +pub const TCP_NODELAY: u32 = 1; +pub const TCP_MAXSEG: u32 = 2; +pub const TCP_CORK: u32 = 3; +pub const TCP_KEEPIDLE: u32 = 4; +pub const TCP_KEEPINTVL: u32 = 5; +pub const TCP_KEEPCNT: u32 = 6; +pub const TCP_SYNCNT: u32 = 7; +pub const TCP_LINGER2: u32 = 8; +pub const TCP_DEFER_ACCEPT: u32 = 9; +pub const TCP_WINDOW_CLAMP: u32 = 10; +pub const TCP_INFO: u32 = 11; +pub const TCP_QUICKACK: u32 = 12; +pub const TCP_CONGESTION: u32 = 13; +pub const TCP_MD5SIG: u32 = 14; +pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; +pub const TCP_THIN_DUPACK: u32 = 17; +pub const TCP_USER_TIMEOUT: u32 = 18; +pub const TCP_REPAIR: u32 = 19; +pub const TCP_REPAIR_QUEUE: u32 = 20; +pub const TCP_QUEUE_SEQ: u32 = 21; +pub const TCP_REPAIR_OPTIONS: u32 = 22; +pub const TCP_FASTOPEN: u32 = 23; +pub const TCP_TIMESTAMP: u32 = 24; +pub const TCP_NOTSENT_LOWAT: u32 = 25; +pub const TCP_CC_INFO: u32 = 26; +pub const TCP_SAVE_SYN: u32 = 27; +pub const TCP_SAVED_SYN: u32 = 28; +pub const TCP_REPAIR_WINDOW: u32 = 29; +pub const TCP_FASTOPEN_CONNECT: u32 = 30; +pub const TCP_ULP: u32 = 31; +pub const TCP_MD5SIG_EXT: u32 = 32; +pub const TCP_FASTOPEN_KEY: u32 = 33; +pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; +pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; +pub const TCP_INQ: u32 = 36; +pub const TCP_CM_INQ: u32 = 36; +pub const TCP_TX_DELAY: u32 = 37; +pub const TCP_AO_ADD_KEY: u32 = 38; +pub const TCP_AO_DEL_KEY: u32 = 39; +pub const TCP_AO_INFO: u32 = 40; +pub const TCP_AO_GET_KEYS: u32 = 41; +pub const TCP_AO_REPAIR: u32 = 42; +pub const TCP_IS_MPTCP: u32 = 43; +pub const TCP_RTO_MAX_MS: u32 = 44; +pub const TCP_RTO_MIN_US: u32 = 45; +pub const TCP_DELACK_MAX_US: u32 = 46; +pub const TCP_REPAIR_ON: u32 = 1; +pub const TCP_REPAIR_OFF: u32 = 0; +pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; +pub const TCPI_OPT_TIMESTAMPS: u32 = 1; +pub const TCPI_OPT_SACK: u32 = 2; +pub const TCPI_OPT_WSCALE: u32 = 4; +pub const TCPI_OPT_ECN: u32 = 8; +pub const TCPI_OPT_ECN_SEEN: u32 = 16; +pub const TCPI_OPT_SYN_DATA: u32 = 32; +pub const TCPI_OPT_USEC_TS: u32 = 64; +pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; +pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; +pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; +pub const TCP_AO_MAXKEYLEN: u32 = 80; +pub const TCP_AO_KEYF_IFINDEX: u32 = 1; +pub const TCP_AO_KEYF_EXCLUDE_OPT: u32 = 2; +pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; +pub const UNIX_PATH_MAX: u32 = 108; +pub const IFNAMSIZ: u32 = 16; +pub const IFALIASZ: u32 = 256; +pub const ALTIFNAMSIZ: u32 = 128; +pub const GENERIC_HDLC_VERSION: u32 = 4; +pub const CLOCK_DEFAULT: u32 = 0; +pub const CLOCK_EXT: u32 = 1; +pub const CLOCK_INT: u32 = 2; +pub const CLOCK_TXINT: u32 = 3; +pub const CLOCK_TXFROMRX: u32 = 4; +pub const ENCODING_DEFAULT: u32 = 0; +pub const ENCODING_NRZ: u32 = 1; +pub const ENCODING_NRZI: u32 = 2; +pub const ENCODING_FM_MARK: u32 = 3; +pub const ENCODING_FM_SPACE: u32 = 4; +pub const ENCODING_MANCHESTER: u32 = 5; +pub const PARITY_DEFAULT: u32 = 0; +pub const PARITY_NONE: u32 = 1; +pub const PARITY_CRC16_PR0: u32 = 2; +pub const PARITY_CRC16_PR1: u32 = 3; +pub const PARITY_CRC16_PR0_CCITT: u32 = 4; +pub const PARITY_CRC16_PR1_CCITT: u32 = 5; +pub const PARITY_CRC32_PR0_CCITT: u32 = 6; +pub const PARITY_CRC32_PR1_CCITT: u32 = 7; +pub const LMI_DEFAULT: u32 = 0; +pub const LMI_NONE: u32 = 1; +pub const LMI_ANSI: u32 = 2; +pub const LMI_CCITT: u32 = 3; +pub const LMI_CISCO: u32 = 4; +pub const IF_GET_IFACE: u32 = 1; +pub const IF_GET_PROTO: u32 = 2; +pub const IF_IFACE_V35: u32 = 4096; +pub const IF_IFACE_V24: u32 = 4097; +pub const IF_IFACE_X21: u32 = 4098; +pub const IF_IFACE_T1: u32 = 4099; +pub const IF_IFACE_E1: u32 = 4100; +pub const IF_IFACE_SYNC_SERIAL: u32 = 4101; +pub const IF_IFACE_X21D: u32 = 4102; +pub const IF_PROTO_HDLC: u32 = 8192; +pub const IF_PROTO_PPP: u32 = 8193; +pub const IF_PROTO_CISCO: u32 = 8194; +pub const IF_PROTO_FR: u32 = 8195; +pub const IF_PROTO_FR_ADD_PVC: u32 = 8196; +pub const IF_PROTO_FR_DEL_PVC: u32 = 8197; +pub const IF_PROTO_X25: u32 = 8198; +pub const IF_PROTO_HDLC_ETH: u32 = 8199; +pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200; +pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201; +pub const IF_PROTO_FR_PVC: u32 = 8202; +pub const IF_PROTO_FR_ETH_PVC: u32 = 8203; +pub const IF_PROTO_RAW: u32 = 8204; +pub const IFHWADDRLEN: u32 = 6; +pub const NF_DROP: u32 = 0; +pub const NF_ACCEPT: u32 = 1; +pub const NF_STOLEN: u32 = 2; +pub const NF_QUEUE: u32 = 3; +pub const NF_REPEAT: u32 = 4; +pub const NF_STOP: u32 = 5; +pub const NF_MAX_VERDICT: u32 = 5; +pub const NF_VERDICT_MASK: u32 = 255; +pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768; +pub const NF_VERDICT_QMASK: u32 = 4294901760; +pub const NF_VERDICT_QBITS: u32 = 16; +pub const NF_VERDICT_BITS: u32 = 16; +pub const NF_IP6_PRE_ROUTING: u32 = 0; +pub const NF_IP6_LOCAL_IN: u32 = 1; +pub const NF_IP6_FORWARD: u32 = 2; +pub const NF_IP6_LOCAL_OUT: u32 = 3; +pub const NF_IP6_POST_ROUTING: u32 = 4; +pub const NF_IP6_NUMHOOKS: u32 = 5; +pub const XT_FUNCTION_MAXNAMELEN: u32 = 30; +pub const XT_EXTENSION_MAXNAMELEN: u32 = 29; +pub const XT_TABLE_MAXNAMELEN: u32 = 32; +pub const XT_CONTINUE: u32 = 4294967295; +pub const XT_RETURN: i32 = -5; +pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0"; +pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0"; +pub const XT_INV_PROTO: u32 = 64; +pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30; +pub const IP6T_TABLE_MAXNAMELEN: u32 = 32; +pub const IP6T_CONTINUE: u32 = 4294967295; +pub const IP6T_RETURN: i32 = -5; +pub const XT_TCP_INV_SRCPT: u32 = 1; +pub const XT_TCP_INV_DSTPT: u32 = 2; +pub const XT_TCP_INV_FLAGS: u32 = 4; +pub const XT_TCP_INV_OPTION: u32 = 8; +pub const XT_TCP_INV_MASK: u32 = 15; +pub const XT_UDP_INV_SRCPT: u32 = 1; +pub const XT_UDP_INV_DSTPT: u32 = 2; +pub const XT_UDP_INV_MASK: u32 = 3; +pub const IP6T_TCP_INV_SRCPT: u32 = 1; +pub const IP6T_TCP_INV_DSTPT: u32 = 2; +pub const IP6T_TCP_INV_FLAGS: u32 = 4; +pub const IP6T_TCP_INV_OPTION: u32 = 8; +pub const IP6T_TCP_INV_MASK: u32 = 15; +pub const IP6T_UDP_INV_SRCPT: u32 = 1; +pub const IP6T_UDP_INV_DSTPT: u32 = 2; +pub const IP6T_UDP_INV_MASK: u32 = 3; +pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0"; +pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0"; +pub const IP6T_F_PROTO: u32 = 1; +pub const IP6T_F_TOS: u32 = 2; +pub const IP6T_F_GOTO: u32 = 4; +pub const IP6T_F_MASK: u32 = 7; +pub const IP6T_INV_VIA_IN: u32 = 1; +pub const IP6T_INV_VIA_OUT: u32 = 2; +pub const IP6T_INV_TOS: u32 = 4; +pub const IP6T_INV_SRCIP: u32 = 8; +pub const IP6T_INV_DSTIP: u32 = 16; +pub const IP6T_INV_FRAG: u32 = 32; +pub const IP6T_INV_PROTO: u32 = 64; +pub const IP6T_INV_MASK: u32 = 127; +pub const IP6T_BASE_CTL: u32 = 64; +pub const IP6T_SO_SET_REPLACE: u32 = 64; +pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65; +pub const IP6T_SO_SET_MAX: u32 = 65; +pub const IP6T_SO_GET_INFO: u32 = 64; +pub const IP6T_SO_GET_ENTRIES: u32 = 65; +pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68; +pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69; +pub const IP6T_SO_GET_MAX: u32 = 69; +pub const IP6T_SO_ORIGINAL_DST: u32 = 80; +pub const IP6T_ICMP_INV: u32 = 1; +pub const NF_IP_PRE_ROUTING: u32 = 0; +pub const NF_IP_LOCAL_IN: u32 = 1; +pub const NF_IP_FORWARD: u32 = 2; +pub const NF_IP_LOCAL_OUT: u32 = 3; +pub const NF_IP_POST_ROUTING: u32 = 4; +pub const NF_IP_NUMHOOKS: u32 = 5; +pub const SO_ORIGINAL_DST: u32 = 80; +pub const SHUT_RD: u32 = 0; +pub const SHUT_WR: u32 = 1; +pub const SHUT_RDWR: u32 = 2; +pub const SOCK_STREAM: u32 = 1; +pub const SOCK_DGRAM: u32 = 2; +pub const SOCK_RAW: u32 = 3; +pub const SOCK_RDM: u32 = 4; +pub const SOCK_SEQPACKET: u32 = 5; +pub const MSG_DONTWAIT: u32 = 64; +pub const AF_UNSPEC: u32 = 0; +pub const AF_UNIX: u32 = 1; +pub const AF_INET: u32 = 2; +pub const AF_AX25: u32 = 3; +pub const AF_IPX: u32 = 4; +pub const AF_APPLETALK: u32 = 5; +pub const AF_NETROM: u32 = 6; +pub const AF_BRIDGE: u32 = 7; +pub const AF_ATMPVC: u32 = 8; +pub const AF_X25: u32 = 9; +pub const AF_INET6: u32 = 10; +pub const AF_ROSE: u32 = 11; +pub const AF_DECnet: u32 = 12; +pub const AF_NETBEUI: u32 = 13; +pub const AF_SECURITY: u32 = 14; +pub const AF_KEY: u32 = 15; +pub const AF_NETLINK: u32 = 16; +pub const AF_PACKET: u32 = 17; +pub const AF_ASH: u32 = 18; +pub const AF_ECONET: u32 = 19; +pub const AF_ATMSVC: u32 = 20; +pub const AF_RDS: u32 = 21; +pub const AF_SNA: u32 = 22; +pub const AF_IRDA: u32 = 23; +pub const AF_PPPOX: u32 = 24; +pub const AF_WANPIPE: u32 = 25; +pub const AF_LLC: u32 = 26; +pub const AF_CAN: u32 = 29; +pub const AF_TIPC: u32 = 30; +pub const AF_BLUETOOTH: u32 = 31; +pub const AF_IUCV: u32 = 32; +pub const AF_RXRPC: u32 = 33; +pub const AF_ISDN: u32 = 34; +pub const AF_PHONET: u32 = 35; +pub const AF_IEEE802154: u32 = 36; +pub const AF_CAIF: u32 = 37; +pub const AF_ALG: u32 = 38; +pub const AF_NFC: u32 = 39; +pub const AF_VSOCK: u32 = 40; +pub const AF_KCM: u32 = 41; +pub const AF_QIPCRTR: u32 = 42; +pub const AF_SMC: u32 = 43; +pub const AF_XDP: u32 = 44; +pub const AF_MCTP: u32 = 45; +pub const AF_MAX: u32 = 46; +pub const MSG_OOB: u32 = 1; +pub const MSG_PEEK: u32 = 2; +pub const MSG_DONTROUTE: u32 = 4; +pub const MSG_CTRUNC: u32 = 8; +pub const MSG_PROBE: u32 = 16; +pub const MSG_TRUNC: u32 = 32; +pub const MSG_EOR: u32 = 128; +pub const MSG_WAITALL: u32 = 256; +pub const MSG_FIN: u32 = 512; +pub const MSG_SYN: u32 = 1024; +pub const MSG_CONFIRM: u32 = 2048; +pub const MSG_RST: u32 = 4096; +pub const MSG_ERRQUEUE: u32 = 8192; +pub const MSG_NOSIGNAL: u32 = 16384; +pub const MSG_MORE: u32 = 32768; +pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; +pub const SCM_RIGHTS: u32 = 1; +pub const SCM_CREDENTIALS: u32 = 2; +pub const SCM_SECURITY: u32 = 3; +pub const SOL_IP: u32 = 0; +pub const SOL_TCP: u32 = 6; +pub const SOL_UDP: u32 = 17; +pub const SOL_IPV6: u32 = 41; +pub const SOL_ICMPV6: u32 = 58; +pub const SOL_SCTP: u32 = 132; +pub const SOL_UDPLITE: u32 = 136; +pub const SOL_RAW: u32 = 255; +pub const SOL_IPX: u32 = 256; +pub const SOL_AX25: u32 = 257; +pub const SOL_ATALK: u32 = 258; +pub const SOL_NETROM: u32 = 259; +pub const SOL_ROSE: u32 = 260; +pub const SOL_DECNET: u32 = 261; +pub const SOL_X25: u32 = 262; +pub const SOL_PACKET: u32 = 263; +pub const SOL_ATM: u32 = 264; +pub const SOL_AAL: u32 = 265; +pub const SOL_IRDA: u32 = 266; +pub const SOL_NETBEUI: u32 = 267; +pub const SOL_LLC: u32 = 268; +pub const SOL_DCCP: u32 = 269; +pub const SOL_NETLINK: u32 = 270; +pub const SOL_TIPC: u32 = 271; +pub const SOL_RXRPC: u32 = 272; +pub const SOL_PPPOL2TP: u32 = 273; +pub const SOL_BLUETOOTH: u32 = 274; +pub const SOL_PNPIPE: u32 = 275; +pub const SOL_RDS: u32 = 276; +pub const SOL_IUCV: u32 = 277; +pub const SOL_CAIF: u32 = 278; +pub const SOL_ALG: u32 = 279; +pub const SOL_NFC: u32 = 280; +pub const SOL_KCM: u32 = 281; +pub const SOL_TLS: u32 = 282; +pub const SOL_XDP: u32 = 283; +pub const SOL_MPTCP: u32 = 284; +pub const SOL_MCTP: u32 = 285; +pub const SOL_SMC: u32 = 286; +pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; +pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; +pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; +pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; +pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; +pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; +pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; +pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; +pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; +pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; +pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; +pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; +pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; +pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; +pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; +pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; +pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; +pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; +pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; +pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; +pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; +pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; +pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; +pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; +pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; +pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; +pub const IPPROTO_AGGFRAG: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AGGFRAG; +pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; +pub const IPPROTO_SMC: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SMC; +pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; +pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; +pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; +pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; +pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; +pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; +pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; +pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; +pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; +pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; +pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; +pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; +pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; +pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; +pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; +pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; +pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; +pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; +pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; +pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; +pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; +pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; +pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; +pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; +pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; +pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; +pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; +pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; +pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; +pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; +pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; +pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; +pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; +pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; +pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; +pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; +pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; +pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; +pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; +pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; +pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; +pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; +pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; +pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; +pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; +pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; +pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; +pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; +pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; +pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; +pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; +pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; +pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; +pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; +pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; +pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; +pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; +pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; +pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; +pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; +pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; +pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; +pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; +pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; +pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; +pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; +pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; +pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; +pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; +pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; +pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; +pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; +pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; +pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; +pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; +pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; +pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; +pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; +pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; +pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; +pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; +pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; +pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; +pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; +pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; +pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; +pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; +pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; +pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; +pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; +pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; +pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; +pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; +pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; +pub const DEVCONF_ACCEPT_RA_MIN_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_LFT; +pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; +pub const TCP_FLAG_AE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_AE; +pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; +pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; +pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; +pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; +pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; +pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; +pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; +pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; +pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; +pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; +pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; +pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; +pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; +pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; +pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; +pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; +pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; +pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; +pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; +pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; +pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; +pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; +pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; +pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; +pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; +pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; +pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; +pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; +pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; +pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; +pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; +pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; +pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; +pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; +pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; +pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; +pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; +pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; +pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; +pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; +pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; +pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; +pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN; +pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT; +pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN; +pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN; +pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING; +pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT; +pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP; +pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT; +pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT; +pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING; +pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC; +pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET; +pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4; +pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP; +pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV; +pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE; +pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6; +pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET; +pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO; +pub const SOF_TIMESTAMPING_TX_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_HARDWARE; +pub const SOF_TIMESTAMPING_TX_SOFTWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_SOFTWARE; +pub const SOF_TIMESTAMPING_RX_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_RX_HARDWARE; +pub const SOF_TIMESTAMPING_RX_SOFTWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_RX_SOFTWARE; +pub const SOF_TIMESTAMPING_SOFTWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_SOFTWARE; +pub const SOF_TIMESTAMPING_SYS_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_SYS_HARDWARE; +pub const SOF_TIMESTAMPING_RAW_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_RAW_HARDWARE; +pub const SOF_TIMESTAMPING_OPT_ID: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_ID; +pub const SOF_TIMESTAMPING_TX_SCHED: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_SCHED; +pub const SOF_TIMESTAMPING_TX_ACK: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_ACK; +pub const SOF_TIMESTAMPING_OPT_CMSG: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_CMSG; +pub const SOF_TIMESTAMPING_OPT_TSONLY: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_TSONLY; +pub const SOF_TIMESTAMPING_OPT_STATS: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_STATS; +pub const SOF_TIMESTAMPING_OPT_PKTINFO: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_PKTINFO; +pub const SOF_TIMESTAMPING_OPT_TX_SWHW: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_TX_SWHW; +pub const SOF_TIMESTAMPING_BIND_PHC: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_BIND_PHC; +pub const SOF_TIMESTAMPING_OPT_ID_TCP: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_ID_TCP; +pub const SOF_TIMESTAMPING_OPT_RX_FILTER: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_RX_FILTER; +pub const SOF_TIMESTAMPING_TX_COMPLETION: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_COMPLETION; +pub const SOF_TIMESTAMPING_LAST: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_COMPLETION; +pub const SOF_TIMESTAMPING_MASK: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_MASK; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +IPPROTO_IP = 0, +IPPROTO_ICMP = 1, +IPPROTO_IGMP = 2, +IPPROTO_IPIP = 4, +IPPROTO_TCP = 6, +IPPROTO_EGP = 8, +IPPROTO_PUP = 12, +IPPROTO_UDP = 17, +IPPROTO_IDP = 22, +IPPROTO_TP = 29, +IPPROTO_DCCP = 33, +IPPROTO_IPV6 = 41, +IPPROTO_RSVP = 46, +IPPROTO_GRE = 47, +IPPROTO_ESP = 50, +IPPROTO_AH = 51, +IPPROTO_MTP = 92, +IPPROTO_BEETPH = 94, +IPPROTO_ENCAP = 98, +IPPROTO_PIM = 103, +IPPROTO_COMP = 108, +IPPROTO_L2TP = 115, +IPPROTO_SCTP = 132, +IPPROTO_UDPLITE = 136, +IPPROTO_MPLS = 137, +IPPROTO_ETHERNET = 143, +IPPROTO_AGGFRAG = 144, +IPPROTO_RAW = 255, +IPPROTO_SMC = 256, +IPPROTO_MPTCP = 262, +IPPROTO_MAX = 263, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IPV4_DEVCONF_FORWARDING = 1, +IPV4_DEVCONF_MC_FORWARDING = 2, +IPV4_DEVCONF_PROXY_ARP = 3, +IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, +IPV4_DEVCONF_SECURE_REDIRECTS = 5, +IPV4_DEVCONF_SEND_REDIRECTS = 6, +IPV4_DEVCONF_SHARED_MEDIA = 7, +IPV4_DEVCONF_RP_FILTER = 8, +IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, +IPV4_DEVCONF_BOOTP_RELAY = 10, +IPV4_DEVCONF_LOG_MARTIANS = 11, +IPV4_DEVCONF_TAG = 12, +IPV4_DEVCONF_ARPFILTER = 13, +IPV4_DEVCONF_MEDIUM_ID = 14, +IPV4_DEVCONF_NOXFRM = 15, +IPV4_DEVCONF_NOPOLICY = 16, +IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, +IPV4_DEVCONF_ARP_ANNOUNCE = 18, +IPV4_DEVCONF_ARP_IGNORE = 19, +IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, +IPV4_DEVCONF_ARP_ACCEPT = 21, +IPV4_DEVCONF_ARP_NOTIFY = 22, +IPV4_DEVCONF_ACCEPT_LOCAL = 23, +IPV4_DEVCONF_SRC_VMARK = 24, +IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, +IPV4_DEVCONF_ROUTE_LOCALNET = 26, +IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, +IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, +IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, +IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, +IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, +IPV4_DEVCONF_BC_FORWARDING = 32, +IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, +__IPV4_DEVCONF_MAX = 34, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +DEVCONF_FORWARDING = 0, +DEVCONF_HOPLIMIT = 1, +DEVCONF_MTU6 = 2, +DEVCONF_ACCEPT_RA = 3, +DEVCONF_ACCEPT_REDIRECTS = 4, +DEVCONF_AUTOCONF = 5, +DEVCONF_DAD_TRANSMITS = 6, +DEVCONF_RTR_SOLICITS = 7, +DEVCONF_RTR_SOLICIT_INTERVAL = 8, +DEVCONF_RTR_SOLICIT_DELAY = 9, +DEVCONF_USE_TEMPADDR = 10, +DEVCONF_TEMP_VALID_LFT = 11, +DEVCONF_TEMP_PREFERED_LFT = 12, +DEVCONF_REGEN_MAX_RETRY = 13, +DEVCONF_MAX_DESYNC_FACTOR = 14, +DEVCONF_MAX_ADDRESSES = 15, +DEVCONF_FORCE_MLD_VERSION = 16, +DEVCONF_ACCEPT_RA_DEFRTR = 17, +DEVCONF_ACCEPT_RA_PINFO = 18, +DEVCONF_ACCEPT_RA_RTR_PREF = 19, +DEVCONF_RTR_PROBE_INTERVAL = 20, +DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, +DEVCONF_PROXY_NDP = 22, +DEVCONF_OPTIMISTIC_DAD = 23, +DEVCONF_ACCEPT_SOURCE_ROUTE = 24, +DEVCONF_MC_FORWARDING = 25, +DEVCONF_DISABLE_IPV6 = 26, +DEVCONF_ACCEPT_DAD = 27, +DEVCONF_FORCE_TLLAO = 28, +DEVCONF_NDISC_NOTIFY = 29, +DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, +DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, +DEVCONF_SUPPRESS_FRAG_NDISC = 32, +DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, +DEVCONF_USE_OPTIMISTIC = 34, +DEVCONF_ACCEPT_RA_MTU = 35, +DEVCONF_STABLE_SECRET = 36, +DEVCONF_USE_OIF_ADDRS_ONLY = 37, +DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, +DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, +DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, +DEVCONF_DROP_UNSOLICITED_NA = 41, +DEVCONF_KEEP_ADDR_ON_DOWN = 42, +DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, +DEVCONF_SEG6_ENABLED = 44, +DEVCONF_SEG6_REQUIRE_HMAC = 45, +DEVCONF_ENHANCED_DAD = 46, +DEVCONF_ADDR_GEN_MODE = 47, +DEVCONF_DISABLE_POLICY = 48, +DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, +DEVCONF_NDISC_TCLASS = 50, +DEVCONF_RPL_SEG_ENABLED = 51, +DEVCONF_RA_DEFRTR_METRIC = 52, +DEVCONF_IOAM6_ENABLED = 53, +DEVCONF_IOAM6_ID = 54, +DEVCONF_IOAM6_ID_WIDE = 55, +DEVCONF_NDISC_EVICT_NOCARRIER = 56, +DEVCONF_ACCEPT_UNTRACKED_NA = 57, +DEVCONF_ACCEPT_RA_MIN_LFT = 58, +DEVCONF_MAX = 59, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum socket_state { +SS_FREE = 0, +SS_UNCONNECTED = 1, +SS_CONNECTING = 2, +SS_CONNECTED = 3, +SS_DISCONNECTING = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +TCP_FLAG_AE = 1, +TCP_FLAG_CWR = 32768, +TCP_FLAG_ECE = 16384, +TCP_FLAG_URG = 8192, +TCP_FLAG_ACK = 4096, +TCP_FLAG_PSH = 2048, +TCP_FLAG_RST = 1024, +TCP_FLAG_SYN = 512, +TCP_FLAG_FIN = 256, +TCP_RESERVED_BITS = 14, +TCP_DATA_OFFSET = 240, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_5 { +TCP_NO_QUEUE = 0, +TCP_RECV_QUEUE = 1, +TCP_SEND_QUEUE = 2, +TCP_QUEUES_NR = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tcp_fastopen_client_fail { +TFO_STATUS_UNSPEC = 0, +TFO_COOKIE_UNAVAILABLE = 1, +TFO_DATA_NOT_ACKED = 2, +TFO_SYN_RETRANSMITTED = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tcp_ca_state { +TCP_CA_Open = 0, +TCP_CA_Disorder = 1, +TCP_CA_CWR = 2, +TCP_CA_Recovery = 3, +TCP_CA_Loss = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_6 { +TCP_NLA_PAD = 0, +TCP_NLA_BUSY = 1, +TCP_NLA_RWND_LIMITED = 2, +TCP_NLA_SNDBUF_LIMITED = 3, +TCP_NLA_DATA_SEGS_OUT = 4, +TCP_NLA_TOTAL_RETRANS = 5, +TCP_NLA_PACING_RATE = 6, +TCP_NLA_DELIVERY_RATE = 7, +TCP_NLA_SND_CWND = 8, +TCP_NLA_REORDERING = 9, +TCP_NLA_MIN_RTT = 10, +TCP_NLA_RECUR_RETRANS = 11, +TCP_NLA_DELIVERY_RATE_APP_LMT = 12, +TCP_NLA_SNDQ_SIZE = 13, +TCP_NLA_CA_STATE = 14, +TCP_NLA_SND_SSTHRESH = 15, +TCP_NLA_DELIVERED = 16, +TCP_NLA_DELIVERED_CE = 17, +TCP_NLA_BYTES_SENT = 18, +TCP_NLA_BYTES_RETRANS = 19, +TCP_NLA_DSACK_DUPS = 20, +TCP_NLA_REORD_SEEN = 21, +TCP_NLA_SRTT = 22, +TCP_NLA_TIMEOUT_REHASH = 23, +TCP_NLA_BYTES_NOTSENT = 24, +TCP_NLA_EDT = 25, +TCP_NLA_TTL = 26, +TCP_NLA_REHASH = 27, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum net_device_flags { +IFF_UP = 1, +IFF_BROADCAST = 2, +IFF_DEBUG = 4, +IFF_LOOPBACK = 8, +IFF_POINTOPOINT = 16, +IFF_NOTRAILERS = 32, +IFF_RUNNING = 64, +IFF_NOARP = 128, +IFF_PROMISC = 256, +IFF_ALLMULTI = 512, +IFF_MASTER = 1024, +IFF_SLAVE = 2048, +IFF_MULTICAST = 4096, +IFF_PORTSEL = 8192, +IFF_AUTOMEDIA = 16384, +IFF_DYNAMIC = 32768, +IFF_LOWER_UP = 65536, +IFF_DORMANT = 131072, +IFF_ECHO = 262144, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_7 { +IF_OPER_UNKNOWN = 0, +IF_OPER_NOTPRESENT = 1, +IF_OPER_DOWN = 2, +IF_OPER_LOWERLAYERDOWN = 3, +IF_OPER_TESTING = 4, +IF_OPER_DORMANT = 5, +IF_OPER_UP = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_8 { +IF_LINK_MODE_DEFAULT = 0, +IF_LINK_MODE_DORMANT = 1, +IF_LINK_MODE_TESTING = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_inet_hooks { +NF_INET_PRE_ROUTING = 0, +NF_INET_LOCAL_IN = 1, +NF_INET_FORWARD = 2, +NF_INET_LOCAL_OUT = 3, +NF_INET_POST_ROUTING = 4, +NF_INET_NUMHOOKS = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_dev_hooks { +NF_NETDEV_INGRESS = 0, +NF_NETDEV_EGRESS = 1, +NF_NETDEV_NUMHOOKS = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_9 { +NFPROTO_UNSPEC = 0, +NFPROTO_INET = 1, +NFPROTO_IPV4 = 2, +NFPROTO_ARP = 3, +NFPROTO_NETDEV = 5, +NFPROTO_BRIDGE = 7, +NFPROTO_IPV6 = 10, +NFPROTO_DECNET = 12, +NFPROTO_NUMPROTO = 13, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_ip6_hook_priorities { +NF_IP6_PRI_FIRST = -2147483648, +NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450, +NF_IP6_PRI_CONNTRACK_DEFRAG = -400, +NF_IP6_PRI_RAW = -300, +NF_IP6_PRI_SELINUX_FIRST = -225, +NF_IP6_PRI_CONNTRACK = -200, +NF_IP6_PRI_MANGLE = -150, +NF_IP6_PRI_NAT_DST = -100, +NF_IP6_PRI_FILTER = 0, +NF_IP6_PRI_SECURITY = 50, +NF_IP6_PRI_NAT_SRC = 100, +NF_IP6_PRI_SELINUX_LAST = 225, +NF_IP6_PRI_CONNTRACK_HELPER = 300, +NF_IP6_PRI_LAST = 2147483647, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_ip_hook_priorities { +NF_IP_PRI_FIRST = -2147483648, +NF_IP_PRI_RAW_BEFORE_DEFRAG = -450, +NF_IP_PRI_CONNTRACK_DEFRAG = -400, +NF_IP_PRI_RAW = -300, +NF_IP_PRI_SELINUX_FIRST = -225, +NF_IP_PRI_CONNTRACK = -200, +NF_IP_PRI_MANGLE = -150, +NF_IP_PRI_NAT_DST = -100, +NF_IP_PRI_FILTER = 0, +NF_IP_PRI_SECURITY = 50, +NF_IP_PRI_NAT_SRC = 100, +NF_IP_PRI_SELINUX_LAST = 225, +NF_IP_PRI_CONNTRACK_HELPER = 300, +NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_provider_qualifier { +HWTSTAMP_PROVIDER_QUALIFIER_PRECISE = 0, +HWTSTAMP_PROVIDER_QUALIFIER_APPROX = 1, +HWTSTAMP_PROVIDER_QUALIFIER_CNT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_10 { +SOF_TIMESTAMPING_TX_HARDWARE = 1, +SOF_TIMESTAMPING_TX_SOFTWARE = 2, +SOF_TIMESTAMPING_RX_HARDWARE = 4, +SOF_TIMESTAMPING_RX_SOFTWARE = 8, +SOF_TIMESTAMPING_SOFTWARE = 16, +SOF_TIMESTAMPING_SYS_HARDWARE = 32, +SOF_TIMESTAMPING_RAW_HARDWARE = 64, +SOF_TIMESTAMPING_OPT_ID = 128, +SOF_TIMESTAMPING_TX_SCHED = 256, +SOF_TIMESTAMPING_TX_ACK = 512, +SOF_TIMESTAMPING_OPT_CMSG = 1024, +SOF_TIMESTAMPING_OPT_TSONLY = 2048, +SOF_TIMESTAMPING_OPT_STATS = 4096, +SOF_TIMESTAMPING_OPT_PKTINFO = 8192, +SOF_TIMESTAMPING_OPT_TX_SWHW = 16384, +SOF_TIMESTAMPING_BIND_PHC = 32768, +SOF_TIMESTAMPING_OPT_ID_TCP = 65536, +SOF_TIMESTAMPING_OPT_RX_FILTER = 131072, +SOF_TIMESTAMPING_TX_COMPLETION = 262144, +SOF_TIMESTAMPING_MASK = 524287, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_flags { +HWTSTAMP_FLAG_BONDED_PHC_INDEX = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_tx_types { +HWTSTAMP_TX_OFF = 0, +HWTSTAMP_TX_ON = 1, +HWTSTAMP_TX_ONESTEP_SYNC = 2, +HWTSTAMP_TX_ONESTEP_P2P = 3, +__HWTSTAMP_TX_CNT = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_rx_filters { +HWTSTAMP_FILTER_NONE = 0, +HWTSTAMP_FILTER_ALL = 1, +HWTSTAMP_FILTER_SOME = 2, +HWTSTAMP_FILTER_PTP_V1_L4_EVENT = 3, +HWTSTAMP_FILTER_PTP_V1_L4_SYNC = 4, +HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ = 5, +HWTSTAMP_FILTER_PTP_V2_L4_EVENT = 6, +HWTSTAMP_FILTER_PTP_V2_L4_SYNC = 7, +HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ = 8, +HWTSTAMP_FILTER_PTP_V2_L2_EVENT = 9, +HWTSTAMP_FILTER_PTP_V2_L2_SYNC = 10, +HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ = 11, +HWTSTAMP_FILTER_PTP_V2_EVENT = 12, +HWTSTAMP_FILTER_PTP_V2_SYNC = 13, +HWTSTAMP_FILTER_PTP_V2_DELAY_REQ = 14, +HWTSTAMP_FILTER_NTP_ALL = 15, +__HWTSTAMP_FILTER_CNT = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum txtime_flags { +SOF_TXTIME_DEADLINE_MODE = 1, +SOF_TXTIME_REPORT_ERRORS = 2, +SOF_TXTIME_FLAGS_MASK = 3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __kernel_sockaddr_storage__bindgen_ty_1 { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, +pub __align: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union iphdr__bindgen_ty_1 { +pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, +pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union in6_addr__bindgen_ty_1 { +pub u6_addr8: [__u8; 16usize], +pub u6_addr16: [__be16; 8usize], +pub u6_addr32: [__be32; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ipv6hdr__bindgen_ty_1 { +pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, +pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tcp_word_hdr { +pub hdr: tcphdr, +pub words: [__be32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union if_settings__bindgen_ty_1 { +pub raw_hdlc: *mut raw_hdlc_proto, +pub cisco: *mut cisco_proto, +pub fr: *mut fr_proto, +pub fr_pvc: *mut fr_proto_pvc, +pub fr_pvc_info: *mut fr_proto_pvc_info, +pub x25: *mut x25_hdlc_proto, +pub sync: *mut sync_serial_settings, +pub te1: *mut te1_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_1 { +pub ifrn_name: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_2 { +pub ifru_addr: sockaddr, +pub ifru_dstaddr: sockaddr, +pub ifru_broadaddr: sockaddr, +pub ifru_netmask: sockaddr, +pub ifru_hwaddr: sockaddr, +pub ifru_flags: crate::ctypes::c_short, +pub ifru_ivalue: crate::ctypes::c_int, +pub ifru_mtu: crate::ctypes::c_int, +pub ifru_map: ifmap, +pub ifru_slave: [crate::ctypes::c_char; 16usize], +pub ifru_newname: [crate::ctypes::c_char; 16usize], +pub ifru_data: *mut crate::ctypes::c_void, +pub ifru_settings: if_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifconf__bindgen_ty_1 { +pub ifcu_buf: *mut crate::ctypes::c_char, +pub ifcu_req: *mut ifreq, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union nf_inet_addr { +pub all: [__u32; 4usize], +pub ip: __be32, +pub ip6: [__be32; 4usize], +pub in_: in_addr, +pub in6: in6_addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union xt_entry_match__bindgen_ty_1 { +pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1, +pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2, +pub match_size: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union xt_entry_target__bindgen_ty_1 { +pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1, +pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2, +pub target_size: __u16, +} +impl __BindgenBitfieldUnit { +#[inline] +pub const fn new(storage: Storage) -> Self { +Self { storage } +} +} +impl __BindgenBitfieldUnit +where +Storage: AsRef<[u8]> + AsMut<[u8]>, +{ +#[inline] +fn extract_bit(byte: u8, index: usize) -> bool { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +byte & mask == mask +} +#[inline] +pub fn get_bit(&self, index: usize) -> bool { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = self.storage.as_ref()[byte_index]; +Self::extract_bit(byte, index) +} +#[inline] +pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; +Self::extract_bit(byte, index) +} +#[inline] +fn change_bit(byte: u8, index: usize, val: bool) -> u8 { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +if val { +byte | mask +} else { +byte & !mask +} +} +#[inline] +pub fn set_bit(&mut self, index: usize, val: bool) { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = &mut self.storage.as_mut()[byte_index]; +*byte = Self::change_bit(*byte, index, val); +} +#[inline] +pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; +} +#[inline] +pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if self.get_bit(i + bit_offset) { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +self.set_bit(index + bit_offset, val_bit_is_set); +} +} +#[inline] +pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +} +} +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl __BindgenUnionField { +#[inline] +pub const fn new() -> Self { +__BindgenUnionField(::core::marker::PhantomData) +} +#[inline] +pub unsafe fn as_ref(&self) -> &T { +::core::mem::transmute(self) +} +#[inline] +pub unsafe fn as_mut(&mut self) -> &mut T { +::core::mem::transmute(self) +} +} +impl ::core::default::Default for __BindgenUnionField { +#[inline] +fn default() -> Self { +Self::new() +} +} +impl ::core::clone::Clone for __BindgenUnionField { +#[inline] +fn clone(&self) -> Self { +*self +} +} +impl ::core::marker::Copy for __BindgenUnionField {} +impl ::core::fmt::Debug for __BindgenUnionField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__BindgenUnionField") +} +} +impl ::core::hash::Hash for __BindgenUnionField { +fn hash(&self, _state: &mut H) {} +} +impl ::core::cmp::PartialEq for __BindgenUnionField { +fn eq(&self, _other: &__BindgenUnionField) -> bool { +true +} +} +impl ::core::cmp::Eq for __BindgenUnionField {} +impl iphdr { +#[inline] +pub fn ihl(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +} +#[inline] +pub fn set_ihl(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn ihl_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +} +} +#[inline] +pub fn version(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +} +#[inline] +pub fn set_version(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn version_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 4u8, { +let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; +ihl as u64 +}); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let version: u8 = unsafe { ::core::mem::transmute(version) }; +version as u64 +}); +__bindgen_bitfield_unit +} +} +impl ipv6hdr { +#[inline] +pub fn priority(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +} +#[inline] +pub fn set_priority(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn priority_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +} +} +#[inline] +pub fn version(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +} +#[inline] +pub fn set_version(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn version_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 4u8, { +let priority: u8 = unsafe { ::core::mem::transmute(priority) }; +priority as u64 +}); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let version: u8 = unsafe { ::core::mem::transmute(version) }; +version as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcphdr { +#[inline] +pub fn ae(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +} +#[inline] +pub fn set_ae(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ae_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn res1(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 3u8) as u16) } +} +#[inline] +pub fn set_res1(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 3u8, val as u64) +} +} +#[inline] +pub unsafe fn res1_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 3u8) as u16) } +} +#[inline] +pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 3u8, val as u64) +} +} +#[inline] +pub fn doff(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } +} +#[inline] +pub fn set_doff(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn doff_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u16) } +} +#[inline] +pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn fin(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +} +#[inline] +pub fn set_fin(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(8usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn fin_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +} +} +#[inline] +pub fn syn(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +} +#[inline] +pub fn set_syn(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(9usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn syn_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +} +} +#[inline] +pub fn rst(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +} +#[inline] +pub fn set_rst(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(10usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn rst_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +} +} +#[inline] +pub fn psh(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +} +#[inline] +pub fn set_psh(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(11usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn psh_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +} +} +#[inline] +pub fn ack(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +} +#[inline] +pub fn set_ack(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(12usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ack_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +} +} +#[inline] +pub fn urg(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +} +#[inline] +pub fn set_urg(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(13usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn urg_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +} +} +#[inline] +pub fn ece(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +} +#[inline] +pub fn set_ece(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(14usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ece_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +} +} +#[inline] +pub fn cwr(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +} +#[inline] +pub fn set_cwr(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(15usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn cwr_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(ae: __u16, res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let ae: u16 = unsafe { ::core::mem::transmute(ae) }; +ae as u64 +}); +__bindgen_bitfield_unit.set(1usize, 3u8, { +let res1: u16 = unsafe { ::core::mem::transmute(res1) }; +res1 as u64 +}); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let doff: u16 = unsafe { ::core::mem::transmute(doff) }; +doff as u64 +}); +__bindgen_bitfield_unit.set(8usize, 1u8, { +let fin: u16 = unsafe { ::core::mem::transmute(fin) }; +fin as u64 +}); +__bindgen_bitfield_unit.set(9usize, 1u8, { +let syn: u16 = unsafe { ::core::mem::transmute(syn) }; +syn as u64 +}); +__bindgen_bitfield_unit.set(10usize, 1u8, { +let rst: u16 = unsafe { ::core::mem::transmute(rst) }; +rst as u64 +}); +__bindgen_bitfield_unit.set(11usize, 1u8, { +let psh: u16 = unsafe { ::core::mem::transmute(psh) }; +psh as u64 +}); +__bindgen_bitfield_unit.set(12usize, 1u8, { +let ack: u16 = unsafe { ::core::mem::transmute(ack) }; +ack as u64 +}); +__bindgen_bitfield_unit.set(13usize, 1u8, { +let urg: u16 = unsafe { ::core::mem::transmute(urg) }; +urg as u64 +}); +__bindgen_bitfield_unit.set(14usize, 1u8, { +let ece: u16 = unsafe { ::core::mem::transmute(ece) }; +ece as u64 +}); +__bindgen_bitfield_unit.set(15usize, 1u8, { +let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; +cwr as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_info { +#[inline] +pub fn tcpi_snd_wscale(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +} +#[inline] +pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +} +} +#[inline] +pub fn tcpi_rcv_wscale(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +} +#[inline] +pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +} +#[inline] +pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(8usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +} +} +#[inline] +pub fn tcpi_fastopen_client_fail(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +} +#[inline] +pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(9usize, 2u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 4u8, { +let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; +tcpi_snd_wscale as u64 +}); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; +tcpi_rcv_wscale as u64 +}); +__bindgen_bitfield_unit.set(8usize, 1u8, { +let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; +tcpi_delivery_rate_app_limited as u64 +}); +__bindgen_bitfield_unit.set(9usize, 2u8, { +let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; +tcpi_fastopen_client_fail as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_add { +#[inline] +pub fn set_current(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_current(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_current_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_rnext(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_rnext(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 30u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; +set_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; +set_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 30u8, { +let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_del { +#[inline] +pub fn set_current(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_current(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_current_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_rnext(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_rnext(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn del_async(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +} +#[inline] +pub fn set_del_async(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn del_async_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 29u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; +set_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; +set_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 1u8, { +let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; +del_async as u64 +}); +__bindgen_bitfield_unit.set(3usize, 29u8, { +let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_info_opt { +#[inline] +pub fn set_current(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_current(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_current_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_rnext(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_rnext(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn ao_required(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +} +#[inline] +pub fn set_ao_required(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_counters(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_counters(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +} +} +#[inline] +pub fn accept_icmps(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +} +#[inline] +pub fn set_accept_icmps(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(5usize, 27u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; +set_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; +set_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 1u8, { +let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; +ao_required as u64 +}); +__bindgen_bitfield_unit.set(3usize, 1u8, { +let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; +set_counters as u64 +}); +__bindgen_bitfield_unit.set(4usize, 1u8, { +let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; +accept_icmps as u64 +}); +__bindgen_bitfield_unit.set(5usize, 27u8, { +let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_getsockopt { +#[inline] +pub fn is_current(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +} +#[inline] +pub fn set_is_current(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn is_current_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn is_rnext(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +} +#[inline] +pub fn set_is_rnext(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn get_all(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +} +#[inline] +pub fn set_get_all(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn get_all_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 13u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; +is_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; +is_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 1u8, { +let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; +get_all as u64 +}); +__bindgen_bitfield_unit.set(3usize, 13u8, { +let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl nf_inet_hooks { +pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS; +} +impl nf_ip_hook_priorities { +pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM; +} +impl hwtstamp_flags { +pub const HWTSTAMP_FLAG_LAST: hwtstamp_flags = hwtstamp_flags::HWTSTAMP_FLAG_BONDED_PHC_INDEX; +} +impl hwtstamp_flags { +pub const HWTSTAMP_FLAG_MASK: hwtstamp_flags = hwtstamp_flags::HWTSTAMP_FLAG_BONDED_PHC_INDEX; +} +impl txtime_flags { +pub const SOF_TXTIME_FLAGS_LAST: txtime_flags = txtime_flags::SOF_TXTIME_REPORT_ERRORS; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/prctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/prctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..3858c5fbe2956b1e2903dd5b3a0a116d5f6d5884 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/prctl.rs @@ -0,0 +1,269 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct prctl_mm_map { +pub start_code: __u64, +pub end_code: __u64, +pub start_data: __u64, +pub end_data: __u64, +pub start_brk: __u64, +pub brk: __u64, +pub start_stack: __u64, +pub arg_start: __u64, +pub arg_end: __u64, +pub env_start: __u64, +pub env_end: __u64, +pub auxv: *mut __u64, +pub auxv_size: __u32, +pub exe_fd: __u32, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const PR_SET_PDEATHSIG: u32 = 1; +pub const PR_GET_PDEATHSIG: u32 = 2; +pub const PR_GET_DUMPABLE: u32 = 3; +pub const PR_SET_DUMPABLE: u32 = 4; +pub const PR_GET_UNALIGN: u32 = 5; +pub const PR_SET_UNALIGN: u32 = 6; +pub const PR_UNALIGN_NOPRINT: u32 = 1; +pub const PR_UNALIGN_SIGBUS: u32 = 2; +pub const PR_GET_KEEPCAPS: u32 = 7; +pub const PR_SET_KEEPCAPS: u32 = 8; +pub const PR_GET_FPEMU: u32 = 9; +pub const PR_SET_FPEMU: u32 = 10; +pub const PR_FPEMU_NOPRINT: u32 = 1; +pub const PR_FPEMU_SIGFPE: u32 = 2; +pub const PR_GET_FPEXC: u32 = 11; +pub const PR_SET_FPEXC: u32 = 12; +pub const PR_FP_EXC_SW_ENABLE: u32 = 128; +pub const PR_FP_EXC_DIV: u32 = 65536; +pub const PR_FP_EXC_OVF: u32 = 131072; +pub const PR_FP_EXC_UND: u32 = 262144; +pub const PR_FP_EXC_RES: u32 = 524288; +pub const PR_FP_EXC_INV: u32 = 1048576; +pub const PR_FP_EXC_DISABLED: u32 = 0; +pub const PR_FP_EXC_NONRECOV: u32 = 1; +pub const PR_FP_EXC_ASYNC: u32 = 2; +pub const PR_FP_EXC_PRECISE: u32 = 3; +pub const PR_GET_TIMING: u32 = 13; +pub const PR_SET_TIMING: u32 = 14; +pub const PR_TIMING_STATISTICAL: u32 = 0; +pub const PR_TIMING_TIMESTAMP: u32 = 1; +pub const PR_SET_NAME: u32 = 15; +pub const PR_GET_NAME: u32 = 16; +pub const PR_GET_ENDIAN: u32 = 19; +pub const PR_SET_ENDIAN: u32 = 20; +pub const PR_ENDIAN_BIG: u32 = 0; +pub const PR_ENDIAN_LITTLE: u32 = 1; +pub const PR_ENDIAN_PPC_LITTLE: u32 = 2; +pub const PR_GET_SECCOMP: u32 = 21; +pub const PR_SET_SECCOMP: u32 = 22; +pub const PR_CAPBSET_READ: u32 = 23; +pub const PR_CAPBSET_DROP: u32 = 24; +pub const PR_GET_TSC: u32 = 25; +pub const PR_SET_TSC: u32 = 26; +pub const PR_TSC_ENABLE: u32 = 1; +pub const PR_TSC_SIGSEGV: u32 = 2; +pub const PR_GET_SECUREBITS: u32 = 27; +pub const PR_SET_SECUREBITS: u32 = 28; +pub const PR_SET_TIMERSLACK: u32 = 29; +pub const PR_GET_TIMERSLACK: u32 = 30; +pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31; +pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32; +pub const PR_MCE_KILL: u32 = 33; +pub const PR_MCE_KILL_CLEAR: u32 = 0; +pub const PR_MCE_KILL_SET: u32 = 1; +pub const PR_MCE_KILL_LATE: u32 = 0; +pub const PR_MCE_KILL_EARLY: u32 = 1; +pub const PR_MCE_KILL_DEFAULT: u32 = 2; +pub const PR_MCE_KILL_GET: u32 = 34; +pub const PR_SET_MM: u32 = 35; +pub const PR_SET_MM_START_CODE: u32 = 1; +pub const PR_SET_MM_END_CODE: u32 = 2; +pub const PR_SET_MM_START_DATA: u32 = 3; +pub const PR_SET_MM_END_DATA: u32 = 4; +pub const PR_SET_MM_START_STACK: u32 = 5; +pub const PR_SET_MM_START_BRK: u32 = 6; +pub const PR_SET_MM_BRK: u32 = 7; +pub const PR_SET_MM_ARG_START: u32 = 8; +pub const PR_SET_MM_ARG_END: u32 = 9; +pub const PR_SET_MM_ENV_START: u32 = 10; +pub const PR_SET_MM_ENV_END: u32 = 11; +pub const PR_SET_MM_AUXV: u32 = 12; +pub const PR_SET_MM_EXE_FILE: u32 = 13; +pub const PR_SET_MM_MAP: u32 = 14; +pub const PR_SET_MM_MAP_SIZE: u32 = 15; +pub const PR_SET_PTRACER: u32 = 1499557217; +pub const PR_SET_CHILD_SUBREAPER: u32 = 36; +pub const PR_GET_CHILD_SUBREAPER: u32 = 37; +pub const PR_SET_NO_NEW_PRIVS: u32 = 38; +pub const PR_GET_NO_NEW_PRIVS: u32 = 39; +pub const PR_GET_TID_ADDRESS: u32 = 40; +pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_GET_THP_DISABLE: u32 = 42; +pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; +pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; +pub const PR_SET_FP_MODE: u32 = 45; +pub const PR_GET_FP_MODE: u32 = 46; +pub const PR_FP_MODE_FR: u32 = 1; +pub const PR_FP_MODE_FRE: u32 = 2; +pub const PR_CAP_AMBIENT: u32 = 47; +pub const PR_CAP_AMBIENT_IS_SET: u32 = 1; +pub const PR_CAP_AMBIENT_RAISE: u32 = 2; +pub const PR_CAP_AMBIENT_LOWER: u32 = 3; +pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4; +pub const PR_SVE_SET_VL: u32 = 50; +pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SVE_GET_VL: u32 = 51; +pub const PR_SVE_VL_LEN_MASK: u32 = 65535; +pub const PR_SVE_VL_INHERIT: u32 = 131072; +pub const PR_GET_SPECULATION_CTRL: u32 = 52; +pub const PR_SET_SPECULATION_CTRL: u32 = 53; +pub const PR_SPEC_STORE_BYPASS: u32 = 0; +pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1; +pub const PR_SPEC_L1D_FLUSH: u32 = 2; +pub const PR_SPEC_NOT_AFFECTED: u32 = 0; +pub const PR_SPEC_PRCTL: u32 = 1; +pub const PR_SPEC_ENABLE: u32 = 2; +pub const PR_SPEC_DISABLE: u32 = 4; +pub const PR_SPEC_FORCE_DISABLE: u32 = 8; +pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16; +pub const PR_PAC_RESET_KEYS: u32 = 54; +pub const PR_PAC_APIAKEY: u32 = 1; +pub const PR_PAC_APIBKEY: u32 = 2; +pub const PR_PAC_APDAKEY: u32 = 4; +pub const PR_PAC_APDBKEY: u32 = 8; +pub const PR_PAC_APGAKEY: u32 = 16; +pub const PR_SET_TAGGED_ADDR_CTRL: u32 = 55; +pub const PR_GET_TAGGED_ADDR_CTRL: u32 = 56; +pub const PR_TAGGED_ADDR_ENABLE: u32 = 1; +pub const PR_MTE_TCF_NONE: u32 = 0; +pub const PR_MTE_TCF_SYNC: u32 = 2; +pub const PR_MTE_TCF_ASYNC: u32 = 4; +pub const PR_MTE_TCF_MASK: u32 = 6; +pub const PR_MTE_TAG_SHIFT: u32 = 3; +pub const PR_MTE_TAG_MASK: u32 = 524280; +pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_PMLEN_SHIFT: u32 = 24; +pub const PR_PMLEN_MASK: u32 = 2130706432; +pub const PR_SET_IO_FLUSHER: u32 = 57; +pub const PR_GET_IO_FLUSHER: u32 = 58; +pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; +pub const PR_SYS_DISPATCH_OFF: u32 = 0; +pub const PR_SYS_DISPATCH_ON: u32 = 1; +pub const SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; +pub const SYSCALL_DISPATCH_FILTER_BLOCK: u32 = 1; +pub const PR_PAC_SET_ENABLED_KEYS: u32 = 60; +pub const PR_PAC_GET_ENABLED_KEYS: u32 = 61; +pub const PR_SCHED_CORE: u32 = 62; +pub const PR_SCHED_CORE_GET: u32 = 0; +pub const PR_SCHED_CORE_CREATE: u32 = 1; +pub const PR_SCHED_CORE_SHARE_TO: u32 = 2; +pub const PR_SCHED_CORE_SHARE_FROM: u32 = 3; +pub const PR_SCHED_CORE_MAX: u32 = 4; +pub const PR_SCHED_CORE_SCOPE_THREAD: u32 = 0; +pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: u32 = 1; +pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: u32 = 2; +pub const PR_SME_SET_VL: u32 = 63; +pub const PR_SME_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SME_GET_VL: u32 = 64; +pub const PR_SME_VL_LEN_MASK: u32 = 65535; +pub const PR_SME_VL_INHERIT: u32 = 131072; +pub const PR_SET_MDWE: u32 = 65; +pub const PR_MDWE_REFUSE_EXEC_GAIN: u32 = 1; +pub const PR_MDWE_NO_INHERIT: u32 = 2; +pub const PR_GET_MDWE: u32 = 66; +pub const PR_SET_VMA: u32 = 1398164801; +pub const PR_SET_VMA_ANON_NAME: u32 = 0; +pub const PR_GET_AUXV: u32 = 1096112214; +pub const PR_SET_MEMORY_MERGE: u32 = 67; +pub const PR_GET_MEMORY_MERGE: u32 = 68; +pub const PR_RISCV_V_SET_CONTROL: u32 = 69; +pub const PR_RISCV_V_GET_CONTROL: u32 = 70; +pub const PR_RISCV_V_VSTATE_CTRL_DEFAULT: u32 = 0; +pub const PR_RISCV_V_VSTATE_CTRL_OFF: u32 = 1; +pub const PR_RISCV_V_VSTATE_CTRL_ON: u32 = 2; +pub const PR_RISCV_V_VSTATE_CTRL_INHERIT: u32 = 16; +pub const PR_RISCV_V_VSTATE_CTRL_CUR_MASK: u32 = 3; +pub const PR_RISCV_V_VSTATE_CTRL_NEXT_MASK: u32 = 12; +pub const PR_RISCV_V_VSTATE_CTRL_MASK: u32 = 31; +pub const PR_RISCV_SET_ICACHE_FLUSH_CTX: u32 = 71; +pub const PR_RISCV_CTX_SW_FENCEI_ON: u32 = 0; +pub const PR_RISCV_CTX_SW_FENCEI_OFF: u32 = 1; +pub const PR_RISCV_SCOPE_PER_PROCESS: u32 = 0; +pub const PR_RISCV_SCOPE_PER_THREAD: u32 = 1; +pub const PR_PPC_GET_DEXCR: u32 = 72; +pub const PR_PPC_SET_DEXCR: u32 = 73; +pub const PR_PPC_DEXCR_SBHE: u32 = 0; +pub const PR_PPC_DEXCR_IBRTPD: u32 = 1; +pub const PR_PPC_DEXCR_SRAPD: u32 = 2; +pub const PR_PPC_DEXCR_NPHIE: u32 = 3; +pub const PR_PPC_DEXCR_CTRL_EDITABLE: u32 = 1; +pub const PR_PPC_DEXCR_CTRL_SET: u32 = 2; +pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; +pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; +pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; +pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; +pub const PR_GET_SHADOW_STACK_STATUS: u32 = 74; +pub const PR_SET_SHADOW_STACK_STATUS: u32 = 75; +pub const PR_SHADOW_STACK_ENABLE: u32 = 1; +pub const PR_SHADOW_STACK_WRITE: u32 = 2; +pub const PR_SHADOW_STACK_PUSH: u32 = 4; +pub const PR_LOCK_SHADOW_STACK_STATUS: u32 = 76; +pub const PR_TIMER_CREATE_RESTORE_IDS: u32 = 77; +pub const PR_TIMER_CREATE_RESTORE_IDS_OFF: u32 = 0; +pub const PR_TIMER_CREATE_RESTORE_IDS_ON: u32 = 1; +pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; +pub const PR_FUTEX_HASH: u32 = 78; +pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; +pub const FH_FLAG_IMMUTABLE: u32 = 1; +pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_FUTEX_HASH_GET_IMMUTABLE: u32 = 3; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/ptrace.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/ptrace.rs new file mode 100644 index 0000000000000000000000000000000000000000..1c1c03307c0d3ef3b96d2dba87fc463992df0430 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/ptrace.rs @@ -0,0 +1,890 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Copy, Clone)] +pub struct audit_status { +pub mask: __u32, +pub enabled: __u32, +pub failure: __u32, +pub pid: __u32, +pub rate_limit: __u32, +pub backlog_limit: __u32, +pub lost: __u32, +pub backlog: __u32, +pub __bindgen_anon_1: audit_status__bindgen_ty_1, +pub backlog_wait_time: __u32, +pub backlog_wait_time_actual: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct audit_features { +pub vers: __u32, +pub mask: __u32, +pub features: __u32, +pub lock: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct audit_tty_status { +pub enabled: __u32, +pub log_passwd: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct audit_rule_data { +pub flags: __u32, +pub action: __u32, +pub field_count: __u32, +pub mask: [__u32; 64usize], +pub fields: [__u32; 64usize], +pub values: [__u32; 64usize], +pub fieldflags: [__u32; 64usize], +pub buflen: __u32, +pub buf: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sock_filter { +pub code: __u16, +pub jt: __u8, +pub jf: __u8, +pub k: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sock_fprog { +pub len: crate::ctypes::c_ushort, +pub filter: *mut sock_filter, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_peeksiginfo_args { +pub off: __u64, +pub flags: __u32, +pub nr: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_metadata { +pub filter_off: __u64, +pub flags: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ptrace_syscall_info { +pub op: __u8, +pub reserved: __u8, +pub flags: __u16, +pub arch: __u32, +pub instruction_pointer: __u64, +pub stack_pointer: __u64, +pub __bindgen_anon_1: ptrace_syscall_info__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_syscall_info__bindgen_ty_1__bindgen_ty_1 { +pub nr: __u64, +pub args: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_syscall_info__bindgen_ty_1__bindgen_ty_2 { +pub rval: __s64, +pub is_error: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_syscall_info__bindgen_ty_1__bindgen_ty_3 { +pub nr: __u64, +pub args: [__u64; 6usize], +pub ret_data: __u32, +pub reserved2: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_rseq_configuration { +pub rseq_abi_pointer: __u64, +pub rseq_abi_size: __u32, +pub signature: __u32, +pub flags: __u32, +pub pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_sud_config { +pub mode: __u64, +pub selector: __u64, +pub offset: __u64, +pub len: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pt_regs { +pub uregs: [crate::ctypes::c_long; 18usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_data { +pub nr: crate::ctypes::c_int, +pub arch: __u32, +pub instruction_pointer: __u64, +pub args: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif_sizes { +pub seccomp_notif: __u16, +pub seccomp_notif_resp: __u16, +pub seccomp_data: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif { +pub id: __u64, +pub pid: __u32, +pub flags: __u32, +pub data: seccomp_data, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif_resp { +pub id: __u64, +pub val: __s64, +pub error: __s32, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif_addfd { +pub id: __u64, +pub flags: __u32, +pub srcfd: __u32, +pub newfd: __u32, +pub newfd_flags: __u32, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const EM_NONE: u32 = 0; +pub const EM_M32: u32 = 1; +pub const EM_SPARC: u32 = 2; +pub const EM_386: u32 = 3; +pub const EM_68K: u32 = 4; +pub const EM_88K: u32 = 5; +pub const EM_486: u32 = 6; +pub const EM_860: u32 = 7; +pub const EM_MIPS: u32 = 8; +pub const EM_MIPS_RS3_LE: u32 = 10; +pub const EM_MIPS_RS4_BE: u32 = 10; +pub const EM_PARISC: u32 = 15; +pub const EM_SPARC32PLUS: u32 = 18; +pub const EM_PPC: u32 = 20; +pub const EM_PPC64: u32 = 21; +pub const EM_SPU: u32 = 23; +pub const EM_ARM: u32 = 40; +pub const EM_SH: u32 = 42; +pub const EM_SPARCV9: u32 = 43; +pub const EM_H8_300: u32 = 46; +pub const EM_IA_64: u32 = 50; +pub const EM_X86_64: u32 = 62; +pub const EM_S390: u32 = 22; +pub const EM_CRIS: u32 = 76; +pub const EM_M32R: u32 = 88; +pub const EM_MN10300: u32 = 89; +pub const EM_OPENRISC: u32 = 92; +pub const EM_ARCOMPACT: u32 = 93; +pub const EM_XTENSA: u32 = 94; +pub const EM_BLACKFIN: u32 = 106; +pub const EM_UNICORE: u32 = 110; +pub const EM_ALTERA_NIOS2: u32 = 113; +pub const EM_TI_C6000: u32 = 140; +pub const EM_HEXAGON: u32 = 164; +pub const EM_NDS32: u32 = 167; +pub const EM_AARCH64: u32 = 183; +pub const EM_TILEPRO: u32 = 188; +pub const EM_MICROBLAZE: u32 = 189; +pub const EM_TILEGX: u32 = 191; +pub const EM_ARCV2: u32 = 195; +pub const EM_RISCV: u32 = 243; +pub const EM_BPF: u32 = 247; +pub const EM_CSKY: u32 = 252; +pub const EM_LOONGARCH: u32 = 258; +pub const EM_FRV: u32 = 21569; +pub const EM_ALPHA: u32 = 36902; +pub const EM_CYGNUS_M32R: u32 = 36929; +pub const EM_S390_OLD: u32 = 41872; +pub const EM_CYGNUS_MN10300: u32 = 48879; +pub const AUDIT_GET: u32 = 1000; +pub const AUDIT_SET: u32 = 1001; +pub const AUDIT_LIST: u32 = 1002; +pub const AUDIT_ADD: u32 = 1003; +pub const AUDIT_DEL: u32 = 1004; +pub const AUDIT_USER: u32 = 1005; +pub const AUDIT_LOGIN: u32 = 1006; +pub const AUDIT_WATCH_INS: u32 = 1007; +pub const AUDIT_WATCH_REM: u32 = 1008; +pub const AUDIT_WATCH_LIST: u32 = 1009; +pub const AUDIT_SIGNAL_INFO: u32 = 1010; +pub const AUDIT_ADD_RULE: u32 = 1011; +pub const AUDIT_DEL_RULE: u32 = 1012; +pub const AUDIT_LIST_RULES: u32 = 1013; +pub const AUDIT_TRIM: u32 = 1014; +pub const AUDIT_MAKE_EQUIV: u32 = 1015; +pub const AUDIT_TTY_GET: u32 = 1016; +pub const AUDIT_TTY_SET: u32 = 1017; +pub const AUDIT_SET_FEATURE: u32 = 1018; +pub const AUDIT_GET_FEATURE: u32 = 1019; +pub const AUDIT_FIRST_USER_MSG: u32 = 1100; +pub const AUDIT_USER_AVC: u32 = 1107; +pub const AUDIT_USER_TTY: u32 = 1124; +pub const AUDIT_LAST_USER_MSG: u32 = 1199; +pub const AUDIT_FIRST_USER_MSG2: u32 = 2100; +pub const AUDIT_LAST_USER_MSG2: u32 = 2999; +pub const AUDIT_DAEMON_START: u32 = 1200; +pub const AUDIT_DAEMON_END: u32 = 1201; +pub const AUDIT_DAEMON_ABORT: u32 = 1202; +pub const AUDIT_DAEMON_CONFIG: u32 = 1203; +pub const AUDIT_SYSCALL: u32 = 1300; +pub const AUDIT_PATH: u32 = 1302; +pub const AUDIT_IPC: u32 = 1303; +pub const AUDIT_SOCKETCALL: u32 = 1304; +pub const AUDIT_CONFIG_CHANGE: u32 = 1305; +pub const AUDIT_SOCKADDR: u32 = 1306; +pub const AUDIT_CWD: u32 = 1307; +pub const AUDIT_EXECVE: u32 = 1309; +pub const AUDIT_IPC_SET_PERM: u32 = 1311; +pub const AUDIT_MQ_OPEN: u32 = 1312; +pub const AUDIT_MQ_SENDRECV: u32 = 1313; +pub const AUDIT_MQ_NOTIFY: u32 = 1314; +pub const AUDIT_MQ_GETSETATTR: u32 = 1315; +pub const AUDIT_KERNEL_OTHER: u32 = 1316; +pub const AUDIT_FD_PAIR: u32 = 1317; +pub const AUDIT_OBJ_PID: u32 = 1318; +pub const AUDIT_TTY: u32 = 1319; +pub const AUDIT_EOE: u32 = 1320; +pub const AUDIT_BPRM_FCAPS: u32 = 1321; +pub const AUDIT_CAPSET: u32 = 1322; +pub const AUDIT_MMAP: u32 = 1323; +pub const AUDIT_NETFILTER_PKT: u32 = 1324; +pub const AUDIT_NETFILTER_CFG: u32 = 1325; +pub const AUDIT_SECCOMP: u32 = 1326; +pub const AUDIT_PROCTITLE: u32 = 1327; +pub const AUDIT_FEATURE_CHANGE: u32 = 1328; +pub const AUDIT_REPLACE: u32 = 1329; +pub const AUDIT_KERN_MODULE: u32 = 1330; +pub const AUDIT_FANOTIFY: u32 = 1331; +pub const AUDIT_TIME_INJOFFSET: u32 = 1332; +pub const AUDIT_TIME_ADJNTPVAL: u32 = 1333; +pub const AUDIT_BPF: u32 = 1334; +pub const AUDIT_EVENT_LISTENER: u32 = 1335; +pub const AUDIT_URINGOP: u32 = 1336; +pub const AUDIT_OPENAT2: u32 = 1337; +pub const AUDIT_DM_CTRL: u32 = 1338; +pub const AUDIT_DM_EVENT: u32 = 1339; +pub const AUDIT_AVC: u32 = 1400; +pub const AUDIT_SELINUX_ERR: u32 = 1401; +pub const AUDIT_AVC_PATH: u32 = 1402; +pub const AUDIT_MAC_POLICY_LOAD: u32 = 1403; +pub const AUDIT_MAC_STATUS: u32 = 1404; +pub const AUDIT_MAC_CONFIG_CHANGE: u32 = 1405; +pub const AUDIT_MAC_UNLBL_ALLOW: u32 = 1406; +pub const AUDIT_MAC_CIPSOV4_ADD: u32 = 1407; +pub const AUDIT_MAC_CIPSOV4_DEL: u32 = 1408; +pub const AUDIT_MAC_MAP_ADD: u32 = 1409; +pub const AUDIT_MAC_MAP_DEL: u32 = 1410; +pub const AUDIT_MAC_IPSEC_ADDSA: u32 = 1411; +pub const AUDIT_MAC_IPSEC_DELSA: u32 = 1412; +pub const AUDIT_MAC_IPSEC_ADDSPD: u32 = 1413; +pub const AUDIT_MAC_IPSEC_DELSPD: u32 = 1414; +pub const AUDIT_MAC_IPSEC_EVENT: u32 = 1415; +pub const AUDIT_MAC_UNLBL_STCADD: u32 = 1416; +pub const AUDIT_MAC_UNLBL_STCDEL: u32 = 1417; +pub const AUDIT_MAC_CALIPSO_ADD: u32 = 1418; +pub const AUDIT_MAC_CALIPSO_DEL: u32 = 1419; +pub const AUDIT_IPE_ACCESS: u32 = 1420; +pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; +pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; +pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; +pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; +pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; +pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; +pub const AUDIT_ANOM_ABEND: u32 = 1701; +pub const AUDIT_ANOM_LINK: u32 = 1702; +pub const AUDIT_ANOM_CREAT: u32 = 1703; +pub const AUDIT_INTEGRITY_DATA: u32 = 1800; +pub const AUDIT_INTEGRITY_METADATA: u32 = 1801; +pub const AUDIT_INTEGRITY_STATUS: u32 = 1802; +pub const AUDIT_INTEGRITY_HASH: u32 = 1803; +pub const AUDIT_INTEGRITY_PCR: u32 = 1804; +pub const AUDIT_INTEGRITY_RULE: u32 = 1805; +pub const AUDIT_INTEGRITY_EVM_XATTR: u32 = 1806; +pub const AUDIT_INTEGRITY_POLICY_RULE: u32 = 1807; +pub const AUDIT_INTEGRITY_USERSPACE: u32 = 1808; +pub const AUDIT_KERNEL: u32 = 2000; +pub const AUDIT_FILTER_USER: u32 = 0; +pub const AUDIT_FILTER_TASK: u32 = 1; +pub const AUDIT_FILTER_ENTRY: u32 = 2; +pub const AUDIT_FILTER_WATCH: u32 = 3; +pub const AUDIT_FILTER_EXIT: u32 = 4; +pub const AUDIT_FILTER_EXCLUDE: u32 = 5; +pub const AUDIT_FILTER_TYPE: u32 = 5; +pub const AUDIT_FILTER_FS: u32 = 6; +pub const AUDIT_FILTER_URING_EXIT: u32 = 7; +pub const AUDIT_NR_FILTERS: u32 = 8; +pub const AUDIT_FILTER_PREPEND: u32 = 16; +pub const AUDIT_NEVER: u32 = 0; +pub const AUDIT_POSSIBLE: u32 = 1; +pub const AUDIT_ALWAYS: u32 = 2; +pub const AUDIT_MAX_FIELDS: u32 = 64; +pub const AUDIT_MAX_KEY_LEN: u32 = 256; +pub const AUDIT_BITMASK_SIZE: u32 = 64; +pub const AUDIT_SYSCALL_CLASSES: u32 = 16; +pub const AUDIT_CLASS_DIR_WRITE: u32 = 0; +pub const AUDIT_CLASS_DIR_WRITE_32: u32 = 1; +pub const AUDIT_CLASS_CHATTR: u32 = 2; +pub const AUDIT_CLASS_CHATTR_32: u32 = 3; +pub const AUDIT_CLASS_READ: u32 = 4; +pub const AUDIT_CLASS_READ_32: u32 = 5; +pub const AUDIT_CLASS_WRITE: u32 = 6; +pub const AUDIT_CLASS_WRITE_32: u32 = 7; +pub const AUDIT_CLASS_SIGNAL: u32 = 8; +pub const AUDIT_CLASS_SIGNAL_32: u32 = 9; +pub const AUDIT_UNUSED_BITS: u32 = 134216704; +pub const AUDIT_COMPARE_UID_TO_OBJ_UID: u32 = 1; +pub const AUDIT_COMPARE_GID_TO_OBJ_GID: u32 = 2; +pub const AUDIT_COMPARE_EUID_TO_OBJ_UID: u32 = 3; +pub const AUDIT_COMPARE_EGID_TO_OBJ_GID: u32 = 4; +pub const AUDIT_COMPARE_AUID_TO_OBJ_UID: u32 = 5; +pub const AUDIT_COMPARE_SUID_TO_OBJ_UID: u32 = 6; +pub const AUDIT_COMPARE_SGID_TO_OBJ_GID: u32 = 7; +pub const AUDIT_COMPARE_FSUID_TO_OBJ_UID: u32 = 8; +pub const AUDIT_COMPARE_FSGID_TO_OBJ_GID: u32 = 9; +pub const AUDIT_COMPARE_UID_TO_AUID: u32 = 10; +pub const AUDIT_COMPARE_UID_TO_EUID: u32 = 11; +pub const AUDIT_COMPARE_UID_TO_FSUID: u32 = 12; +pub const AUDIT_COMPARE_UID_TO_SUID: u32 = 13; +pub const AUDIT_COMPARE_AUID_TO_FSUID: u32 = 14; +pub const AUDIT_COMPARE_AUID_TO_SUID: u32 = 15; +pub const AUDIT_COMPARE_AUID_TO_EUID: u32 = 16; +pub const AUDIT_COMPARE_EUID_TO_SUID: u32 = 17; +pub const AUDIT_COMPARE_EUID_TO_FSUID: u32 = 18; +pub const AUDIT_COMPARE_SUID_TO_FSUID: u32 = 19; +pub const AUDIT_COMPARE_GID_TO_EGID: u32 = 20; +pub const AUDIT_COMPARE_GID_TO_FSGID: u32 = 21; +pub const AUDIT_COMPARE_GID_TO_SGID: u32 = 22; +pub const AUDIT_COMPARE_EGID_TO_FSGID: u32 = 23; +pub const AUDIT_COMPARE_EGID_TO_SGID: u32 = 24; +pub const AUDIT_COMPARE_SGID_TO_FSGID: u32 = 25; +pub const AUDIT_MAX_FIELD_COMPARE: u32 = 25; +pub const AUDIT_PID: u32 = 0; +pub const AUDIT_UID: u32 = 1; +pub const AUDIT_EUID: u32 = 2; +pub const AUDIT_SUID: u32 = 3; +pub const AUDIT_FSUID: u32 = 4; +pub const AUDIT_GID: u32 = 5; +pub const AUDIT_EGID: u32 = 6; +pub const AUDIT_SGID: u32 = 7; +pub const AUDIT_FSGID: u32 = 8; +pub const AUDIT_LOGINUID: u32 = 9; +pub const AUDIT_PERS: u32 = 10; +pub const AUDIT_ARCH: u32 = 11; +pub const AUDIT_MSGTYPE: u32 = 12; +pub const AUDIT_SUBJ_USER: u32 = 13; +pub const AUDIT_SUBJ_ROLE: u32 = 14; +pub const AUDIT_SUBJ_TYPE: u32 = 15; +pub const AUDIT_SUBJ_SEN: u32 = 16; +pub const AUDIT_SUBJ_CLR: u32 = 17; +pub const AUDIT_PPID: u32 = 18; +pub const AUDIT_OBJ_USER: u32 = 19; +pub const AUDIT_OBJ_ROLE: u32 = 20; +pub const AUDIT_OBJ_TYPE: u32 = 21; +pub const AUDIT_OBJ_LEV_LOW: u32 = 22; +pub const AUDIT_OBJ_LEV_HIGH: u32 = 23; +pub const AUDIT_LOGINUID_SET: u32 = 24; +pub const AUDIT_SESSIONID: u32 = 25; +pub const AUDIT_FSTYPE: u32 = 26; +pub const AUDIT_DEVMAJOR: u32 = 100; +pub const AUDIT_DEVMINOR: u32 = 101; +pub const AUDIT_INODE: u32 = 102; +pub const AUDIT_EXIT: u32 = 103; +pub const AUDIT_SUCCESS: u32 = 104; +pub const AUDIT_WATCH: u32 = 105; +pub const AUDIT_PERM: u32 = 106; +pub const AUDIT_DIR: u32 = 107; +pub const AUDIT_FILETYPE: u32 = 108; +pub const AUDIT_OBJ_UID: u32 = 109; +pub const AUDIT_OBJ_GID: u32 = 110; +pub const AUDIT_FIELD_COMPARE: u32 = 111; +pub const AUDIT_EXE: u32 = 112; +pub const AUDIT_SADDR_FAM: u32 = 113; +pub const AUDIT_ARG0: u32 = 200; +pub const AUDIT_ARG1: u32 = 201; +pub const AUDIT_ARG2: u32 = 202; +pub const AUDIT_ARG3: u32 = 203; +pub const AUDIT_FILTERKEY: u32 = 210; +pub const AUDIT_NEGATE: u32 = 2147483648; +pub const AUDIT_BIT_MASK: u32 = 134217728; +pub const AUDIT_LESS_THAN: u32 = 268435456; +pub const AUDIT_GREATER_THAN: u32 = 536870912; +pub const AUDIT_NOT_EQUAL: u32 = 805306368; +pub const AUDIT_EQUAL: u32 = 1073741824; +pub const AUDIT_BIT_TEST: u32 = 1207959552; +pub const AUDIT_LESS_THAN_OR_EQUAL: u32 = 1342177280; +pub const AUDIT_GREATER_THAN_OR_EQUAL: u32 = 1610612736; +pub const AUDIT_OPERATORS: u32 = 2013265920; +pub const AUDIT_STATUS_ENABLED: u32 = 1; +pub const AUDIT_STATUS_FAILURE: u32 = 2; +pub const AUDIT_STATUS_PID: u32 = 4; +pub const AUDIT_STATUS_RATE_LIMIT: u32 = 8; +pub const AUDIT_STATUS_BACKLOG_LIMIT: u32 = 16; +pub const AUDIT_STATUS_BACKLOG_WAIT_TIME: u32 = 32; +pub const AUDIT_STATUS_LOST: u32 = 64; +pub const AUDIT_STATUS_BACKLOG_WAIT_TIME_ACTUAL: u32 = 128; +pub const AUDIT_FEATURE_BITMAP_BACKLOG_LIMIT: u32 = 1; +pub const AUDIT_FEATURE_BITMAP_BACKLOG_WAIT_TIME: u32 = 2; +pub const AUDIT_FEATURE_BITMAP_EXECUTABLE_PATH: u32 = 4; +pub const AUDIT_FEATURE_BITMAP_EXCLUDE_EXTEND: u32 = 8; +pub const AUDIT_FEATURE_BITMAP_SESSIONID_FILTER: u32 = 16; +pub const AUDIT_FEATURE_BITMAP_LOST_RESET: u32 = 32; +pub const AUDIT_FEATURE_BITMAP_FILTER_FS: u32 = 64; +pub const AUDIT_FEATURE_BITMAP_ALL: u32 = 127; +pub const AUDIT_VERSION_LATEST: u32 = 127; +pub const AUDIT_VERSION_BACKLOG_LIMIT: u32 = 1; +pub const AUDIT_VERSION_BACKLOG_WAIT_TIME: u32 = 2; +pub const AUDIT_FAIL_SILENT: u32 = 0; +pub const AUDIT_FAIL_PRINTK: u32 = 1; +pub const AUDIT_FAIL_PANIC: u32 = 2; +pub const __AUDIT_ARCH_CONVENTION_MASK: u32 = 805306368; +pub const __AUDIT_ARCH_CONVENTION_MIPS64_N32: u32 = 536870912; +pub const __AUDIT_ARCH_64BIT: u32 = 2147483648; +pub const __AUDIT_ARCH_LE: u32 = 1073741824; +pub const AUDIT_ARCH_AARCH64: u32 = 3221225655; +pub const AUDIT_ARCH_ALPHA: u32 = 3221262374; +pub const AUDIT_ARCH_ARCOMPACT: u32 = 1073741917; +pub const AUDIT_ARCH_ARCOMPACTBE: u32 = 93; +pub const AUDIT_ARCH_ARCV2: u32 = 1073742019; +pub const AUDIT_ARCH_ARCV2BE: u32 = 195; +pub const AUDIT_ARCH_ARM: u32 = 1073741864; +pub const AUDIT_ARCH_ARMEB: u32 = 40; +pub const AUDIT_ARCH_C6X: u32 = 1073741964; +pub const AUDIT_ARCH_C6XBE: u32 = 140; +pub const AUDIT_ARCH_CRIS: u32 = 1073741900; +pub const AUDIT_ARCH_CSKY: u32 = 1073742076; +pub const AUDIT_ARCH_FRV: u32 = 21569; +pub const AUDIT_ARCH_H8300: u32 = 46; +pub const AUDIT_ARCH_HEXAGON: u32 = 164; +pub const AUDIT_ARCH_I386: u32 = 1073741827; +pub const AUDIT_ARCH_IA64: u32 = 3221225522; +pub const AUDIT_ARCH_M32R: u32 = 88; +pub const AUDIT_ARCH_M68K: u32 = 4; +pub const AUDIT_ARCH_MICROBLAZE: u32 = 189; +pub const AUDIT_ARCH_MIPS: u32 = 8; +pub const AUDIT_ARCH_MIPSEL: u32 = 1073741832; +pub const AUDIT_ARCH_MIPS64: u32 = 2147483656; +pub const AUDIT_ARCH_MIPS64N32: u32 = 2684354568; +pub const AUDIT_ARCH_MIPSEL64: u32 = 3221225480; +pub const AUDIT_ARCH_MIPSEL64N32: u32 = 3758096392; +pub const AUDIT_ARCH_NDS32: u32 = 1073741991; +pub const AUDIT_ARCH_NDS32BE: u32 = 167; +pub const AUDIT_ARCH_NIOS2: u32 = 1073741937; +pub const AUDIT_ARCH_OPENRISC: u32 = 92; +pub const AUDIT_ARCH_PARISC: u32 = 15; +pub const AUDIT_ARCH_PARISC64: u32 = 2147483663; +pub const AUDIT_ARCH_PPC: u32 = 20; +pub const AUDIT_ARCH_PPC64: u32 = 2147483669; +pub const AUDIT_ARCH_PPC64LE: u32 = 3221225493; +pub const AUDIT_ARCH_RISCV32: u32 = 1073742067; +pub const AUDIT_ARCH_RISCV64: u32 = 3221225715; +pub const AUDIT_ARCH_S390: u32 = 22; +pub const AUDIT_ARCH_S390X: u32 = 2147483670; +pub const AUDIT_ARCH_SH: u32 = 42; +pub const AUDIT_ARCH_SHEL: u32 = 1073741866; +pub const AUDIT_ARCH_SH64: u32 = 2147483690; +pub const AUDIT_ARCH_SHEL64: u32 = 3221225514; +pub const AUDIT_ARCH_SPARC: u32 = 2; +pub const AUDIT_ARCH_SPARC64: u32 = 2147483691; +pub const AUDIT_ARCH_TILEGX: u32 = 3221225663; +pub const AUDIT_ARCH_TILEGX32: u32 = 1073742015; +pub const AUDIT_ARCH_TILEPRO: u32 = 1073742012; +pub const AUDIT_ARCH_UNICORE: u32 = 1073741934; +pub const AUDIT_ARCH_X86_64: u32 = 3221225534; +pub const AUDIT_ARCH_XTENSA: u32 = 94; +pub const AUDIT_ARCH_LOONGARCH32: u32 = 1073742082; +pub const AUDIT_ARCH_LOONGARCH64: u32 = 3221225730; +pub const AUDIT_PERM_EXEC: u32 = 1; +pub const AUDIT_PERM_WRITE: u32 = 2; +pub const AUDIT_PERM_READ: u32 = 4; +pub const AUDIT_PERM_ATTR: u32 = 8; +pub const AUDIT_MESSAGE_TEXT_MAX: u32 = 8560; +pub const AUDIT_FEATURE_VERSION: u32 = 1; +pub const AUDIT_FEATURE_ONLY_UNSET_LOGINUID: u32 = 0; +pub const AUDIT_FEATURE_LOGINUID_IMMUTABLE: u32 = 1; +pub const AUDIT_LAST_FEATURE: u32 = 1; +pub const BPF_LD: u32 = 0; +pub const BPF_LDX: u32 = 1; +pub const BPF_ST: u32 = 2; +pub const BPF_STX: u32 = 3; +pub const BPF_ALU: u32 = 4; +pub const BPF_JMP: u32 = 5; +pub const BPF_RET: u32 = 6; +pub const BPF_MISC: u32 = 7; +pub const BPF_W: u32 = 0; +pub const BPF_H: u32 = 8; +pub const BPF_B: u32 = 16; +pub const BPF_IMM: u32 = 0; +pub const BPF_ABS: u32 = 32; +pub const BPF_IND: u32 = 64; +pub const BPF_MEM: u32 = 96; +pub const BPF_LEN: u32 = 128; +pub const BPF_MSH: u32 = 160; +pub const BPF_ADD: u32 = 0; +pub const BPF_SUB: u32 = 16; +pub const BPF_MUL: u32 = 32; +pub const BPF_DIV: u32 = 48; +pub const BPF_OR: u32 = 64; +pub const BPF_AND: u32 = 80; +pub const BPF_LSH: u32 = 96; +pub const BPF_RSH: u32 = 112; +pub const BPF_NEG: u32 = 128; +pub const BPF_MOD: u32 = 144; +pub const BPF_XOR: u32 = 160; +pub const BPF_JA: u32 = 0; +pub const BPF_JEQ: u32 = 16; +pub const BPF_JGT: u32 = 32; +pub const BPF_JGE: u32 = 48; +pub const BPF_JSET: u32 = 64; +pub const BPF_K: u32 = 0; +pub const BPF_X: u32 = 8; +pub const BPF_MAXINSNS: u32 = 4096; +pub const BPF_MAJOR_VERSION: u32 = 1; +pub const BPF_MINOR_VERSION: u32 = 1; +pub const BPF_A: u32 = 16; +pub const BPF_TAX: u32 = 0; +pub const BPF_TXA: u32 = 128; +pub const BPF_MEMWORDS: u32 = 16; +pub const SKF_AD_OFF: i32 = -4096; +pub const SKF_AD_PROTOCOL: u32 = 0; +pub const SKF_AD_PKTTYPE: u32 = 4; +pub const SKF_AD_IFINDEX: u32 = 8; +pub const SKF_AD_NLATTR: u32 = 12; +pub const SKF_AD_NLATTR_NEST: u32 = 16; +pub const SKF_AD_MARK: u32 = 20; +pub const SKF_AD_QUEUE: u32 = 24; +pub const SKF_AD_HATYPE: u32 = 28; +pub const SKF_AD_RXHASH: u32 = 32; +pub const SKF_AD_CPU: u32 = 36; +pub const SKF_AD_ALU_XOR_X: u32 = 40; +pub const SKF_AD_VLAN_TAG: u32 = 44; +pub const SKF_AD_VLAN_TAG_PRESENT: u32 = 48; +pub const SKF_AD_PAY_OFFSET: u32 = 52; +pub const SKF_AD_RANDOM: u32 = 56; +pub const SKF_AD_VLAN_TPID: u32 = 60; +pub const SKF_AD_MAX: u32 = 64; +pub const SKF_NET_OFF: i32 = -1048576; +pub const SKF_LL_OFF: i32 = -2097152; +pub const BPF_NET_OFF: i32 = -1048576; +pub const BPF_LL_OFF: i32 = -2097152; +pub const PTRACE_TRACEME: u32 = 0; +pub const PTRACE_PEEKTEXT: u32 = 1; +pub const PTRACE_PEEKDATA: u32 = 2; +pub const PTRACE_PEEKUSR: u32 = 3; +pub const PTRACE_POKETEXT: u32 = 4; +pub const PTRACE_POKEDATA: u32 = 5; +pub const PTRACE_POKEUSR: u32 = 6; +pub const PTRACE_CONT: u32 = 7; +pub const PTRACE_KILL: u32 = 8; +pub const PTRACE_SINGLESTEP: u32 = 9; +pub const PTRACE_ATTACH: u32 = 16; +pub const PTRACE_DETACH: u32 = 17; +pub const PTRACE_SYSCALL: u32 = 24; +pub const PTRACE_SETOPTIONS: u32 = 16896; +pub const PTRACE_GETEVENTMSG: u32 = 16897; +pub const PTRACE_GETSIGINFO: u32 = 16898; +pub const PTRACE_SETSIGINFO: u32 = 16899; +pub const PTRACE_GETREGSET: u32 = 16900; +pub const PTRACE_SETREGSET: u32 = 16901; +pub const PTRACE_SEIZE: u32 = 16902; +pub const PTRACE_INTERRUPT: u32 = 16903; +pub const PTRACE_LISTEN: u32 = 16904; +pub const PTRACE_PEEKSIGINFO: u32 = 16905; +pub const PTRACE_GETSIGMASK: u32 = 16906; +pub const PTRACE_SETSIGMASK: u32 = 16907; +pub const PTRACE_SECCOMP_GET_FILTER: u32 = 16908; +pub const PTRACE_SECCOMP_GET_METADATA: u32 = 16909; +pub const PTRACE_GET_SYSCALL_INFO: u32 = 16910; +pub const PTRACE_SET_SYSCALL_INFO: u32 = 16914; +pub const PTRACE_SYSCALL_INFO_NONE: u32 = 0; +pub const PTRACE_SYSCALL_INFO_ENTRY: u32 = 1; +pub const PTRACE_SYSCALL_INFO_EXIT: u32 = 2; +pub const PTRACE_SYSCALL_INFO_SECCOMP: u32 = 3; +pub const PTRACE_GET_RSEQ_CONFIGURATION: u32 = 16911; +pub const PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG: u32 = 16912; +pub const PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG: u32 = 16913; +pub const PTRACE_EVENTMSG_SYSCALL_ENTRY: u32 = 1; +pub const PTRACE_EVENTMSG_SYSCALL_EXIT: u32 = 2; +pub const PTRACE_PEEKSIGINFO_SHARED: u32 = 1; +pub const PTRACE_EVENT_FORK: u32 = 1; +pub const PTRACE_EVENT_VFORK: u32 = 2; +pub const PTRACE_EVENT_CLONE: u32 = 3; +pub const PTRACE_EVENT_EXEC: u32 = 4; +pub const PTRACE_EVENT_VFORK_DONE: u32 = 5; +pub const PTRACE_EVENT_EXIT: u32 = 6; +pub const PTRACE_EVENT_SECCOMP: u32 = 7; +pub const PTRACE_EVENT_STOP: u32 = 128; +pub const PTRACE_O_TRACESYSGOOD: u32 = 1; +pub const PTRACE_O_TRACEFORK: u32 = 2; +pub const PTRACE_O_TRACEVFORK: u32 = 4; +pub const PTRACE_O_TRACECLONE: u32 = 8; +pub const PTRACE_O_TRACEEXEC: u32 = 16; +pub const PTRACE_O_TRACEVFORKDONE: u32 = 32; +pub const PTRACE_O_TRACEEXIT: u32 = 64; +pub const PTRACE_O_TRACESECCOMP: u32 = 128; +pub const PTRACE_O_EXITKILL: u32 = 1048576; +pub const PTRACE_O_SUSPEND_SECCOMP: u32 = 2097152; +pub const PTRACE_O_MASK: u32 = 3145983; +pub const HWCAP_SWP: u32 = 1; +pub const HWCAP_HALF: u32 = 2; +pub const HWCAP_THUMB: u32 = 4; +pub const HWCAP_26BIT: u32 = 8; +pub const HWCAP_FAST_MULT: u32 = 16; +pub const HWCAP_FPA: u32 = 32; +pub const HWCAP_VFP: u32 = 64; +pub const HWCAP_EDSP: u32 = 128; +pub const HWCAP_JAVA: u32 = 256; +pub const HWCAP_IWMMXT: u32 = 512; +pub const HWCAP_CRUNCH: u32 = 1024; +pub const HWCAP_THUMBEE: u32 = 2048; +pub const HWCAP_NEON: u32 = 4096; +pub const HWCAP_VFPv3: u32 = 8192; +pub const HWCAP_VFPv3D16: u32 = 16384; +pub const HWCAP_TLS: u32 = 32768; +pub const HWCAP_VFPv4: u32 = 65536; +pub const HWCAP_IDIVA: u32 = 131072; +pub const HWCAP_IDIVT: u32 = 262144; +pub const HWCAP_VFPD32: u32 = 524288; +pub const HWCAP_IDIV: u32 = 393216; +pub const HWCAP_LPAE: u32 = 1048576; +pub const HWCAP_EVTSTRM: u32 = 2097152; +pub const HWCAP_FPHP: u32 = 4194304; +pub const HWCAP_ASIMDHP: u32 = 8388608; +pub const HWCAP_ASIMDDP: u32 = 16777216; +pub const HWCAP_ASIMDFHM: u32 = 33554432; +pub const HWCAP_ASIMDBF16: u32 = 67108864; +pub const HWCAP_I8MM: u32 = 134217728; +pub const HWCAP2_AES: u32 = 1; +pub const HWCAP2_PMULL: u32 = 2; +pub const HWCAP2_SHA1: u32 = 4; +pub const HWCAP2_SHA2: u32 = 8; +pub const HWCAP2_CRC32: u32 = 16; +pub const HWCAP2_SB: u32 = 32; +pub const HWCAP2_SSBS: u32 = 64; +pub const PTRACE_GETREGS: u32 = 12; +pub const PTRACE_SETREGS: u32 = 13; +pub const PTRACE_GETFPREGS: u32 = 14; +pub const PTRACE_SETFPREGS: u32 = 15; +pub const PTRACE_GETWMMXREGS: u32 = 18; +pub const PTRACE_SETWMMXREGS: u32 = 19; +pub const PTRACE_OLDSETOPTIONS: u32 = 21; +pub const PTRACE_GET_THREAD_AREA: u32 = 22; +pub const PTRACE_SET_SYSCALL: u32 = 23; +pub const PTRACE_GETCRUNCHREGS: u32 = 25; +pub const PTRACE_SETCRUNCHREGS: u32 = 26; +pub const PTRACE_GETVFPREGS: u32 = 27; +pub const PTRACE_SETVFPREGS: u32 = 28; +pub const PTRACE_GETHBPREGS: u32 = 29; +pub const PTRACE_SETHBPREGS: u32 = 30; +pub const PTRACE_GETFDPIC: u32 = 31; +pub const PTRACE_GETFDPIC_EXEC: u32 = 0; +pub const PTRACE_GETFDPIC_INTERP: u32 = 1; +pub const USR26_MODE: u32 = 0; +pub const FIQ26_MODE: u32 = 1; +pub const IRQ26_MODE: u32 = 2; +pub const SVC26_MODE: u32 = 3; +pub const USR_MODE: u32 = 16; +pub const SVC_MODE: u32 = 19; +pub const FIQ_MODE: u32 = 17; +pub const IRQ_MODE: u32 = 18; +pub const MON_MODE: u32 = 22; +pub const ABT_MODE: u32 = 23; +pub const HYP_MODE: u32 = 26; +pub const UND_MODE: u32 = 27; +pub const SYSTEM_MODE: u32 = 31; +pub const MODE32_BIT: u32 = 16; +pub const MODE_MASK: u32 = 31; +pub const V4_PSR_T_BIT: u32 = 32; +pub const V7M_PSR_T_BIT: u32 = 16777216; +pub const PSR_T_BIT: u32 = 32; +pub const PSR_F_BIT: u32 = 64; +pub const PSR_I_BIT: u32 = 128; +pub const PSR_A_BIT: u32 = 256; +pub const PSR_E_BIT: u32 = 512; +pub const PSR_J_BIT: u32 = 16777216; +pub const PSR_Q_BIT: u32 = 134217728; +pub const PSR_V_BIT: u32 = 268435456; +pub const PSR_C_BIT: u32 = 536870912; +pub const PSR_Z_BIT: u32 = 1073741824; +pub const PSR_N_BIT: u32 = 2147483648; +pub const PSR_f: u32 = 4278190080; +pub const PSR_s: u32 = 16711680; +pub const PSR_x: u32 = 65280; +pub const PSR_c: u32 = 255; +pub const APSR_MASK: u32 = 4161732608; +pub const PSR_ISET_MASK: u32 = 16777232; +pub const PSR_IT_MASK: u32 = 100727808; +pub const PSR_ENDIAN_MASK: u32 = 512; +pub const PSR_ENDSTATE: u32 = 0; +pub const PT_TEXT_ADDR: u32 = 65536; +pub const PT_DATA_ADDR: u32 = 65540; +pub const PT_TEXT_END_ADDR: u32 = 65544; +pub const ARM_VFPREGS_SIZE: u32 = 260; +pub const SECCOMP_MODE_DISABLED: u32 = 0; +pub const SECCOMP_MODE_STRICT: u32 = 1; +pub const SECCOMP_MODE_FILTER: u32 = 2; +pub const SECCOMP_SET_MODE_STRICT: u32 = 0; +pub const SECCOMP_SET_MODE_FILTER: u32 = 1; +pub const SECCOMP_GET_ACTION_AVAIL: u32 = 2; +pub const SECCOMP_GET_NOTIF_SIZES: u32 = 3; +pub const SECCOMP_FILTER_FLAG_TSYNC: u32 = 1; +pub const SECCOMP_FILTER_FLAG_LOG: u32 = 2; +pub const SECCOMP_FILTER_FLAG_SPEC_ALLOW: u32 = 4; +pub const SECCOMP_FILTER_FLAG_NEW_LISTENER: u32 = 8; +pub const SECCOMP_FILTER_FLAG_TSYNC_ESRCH: u32 = 16; +pub const SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV: u32 = 32; +pub const SECCOMP_RET_KILL_PROCESS: u32 = 2147483648; +pub const SECCOMP_RET_KILL_THREAD: u32 = 0; +pub const SECCOMP_RET_KILL: u32 = 0; +pub const SECCOMP_RET_TRAP: u32 = 196608; +pub const SECCOMP_RET_ERRNO: u32 = 327680; +pub const SECCOMP_RET_USER_NOTIF: u32 = 2143289344; +pub const SECCOMP_RET_TRACE: u32 = 2146435072; +pub const SECCOMP_RET_LOG: u32 = 2147221504; +pub const SECCOMP_RET_ALLOW: u32 = 2147418112; +pub const SECCOMP_RET_ACTION_FULL: u32 = 4294901760; +pub const SECCOMP_RET_ACTION: u32 = 2147418112; +pub const SECCOMP_RET_DATA: u32 = 65535; +pub const SECCOMP_USER_NOTIF_FLAG_CONTINUE: u32 = 1; +pub const SECCOMP_USER_NOTIF_FD_SYNC_WAKE_UP: u32 = 1; +pub const SECCOMP_ADDFD_FLAG_SETFD: u32 = 1; +pub const SECCOMP_ADDFD_FLAG_SEND: u32 = 2; +pub const SECCOMP_IOC_MAGIC: u8 = 33u8; +pub const Audit_equal: _bindgen_ty_1 = _bindgen_ty_1::Audit_equal; +pub const Audit_not_equal: _bindgen_ty_1 = _bindgen_ty_1::Audit_not_equal; +pub const Audit_bitmask: _bindgen_ty_1 = _bindgen_ty_1::Audit_bitmask; +pub const Audit_bittest: _bindgen_ty_1 = _bindgen_ty_1::Audit_bittest; +pub const Audit_lt: _bindgen_ty_1 = _bindgen_ty_1::Audit_lt; +pub const Audit_gt: _bindgen_ty_1 = _bindgen_ty_1::Audit_gt; +pub const Audit_le: _bindgen_ty_1 = _bindgen_ty_1::Audit_le; +pub const Audit_ge: _bindgen_ty_1 = _bindgen_ty_1::Audit_ge; +pub const Audit_bad: _bindgen_ty_1 = _bindgen_ty_1::Audit_bad; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +Audit_equal = 0, +Audit_not_equal = 1, +Audit_bitmask = 2, +Audit_bittest = 3, +Audit_lt = 4, +Audit_gt = 5, +Audit_le = 6, +Audit_ge = 7, +Audit_bad = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum audit_nlgrps { +AUDIT_NLGRP_NONE = 0, +AUDIT_NLGRP_READLOG = 1, +__AUDIT_NLGRP_MAX = 2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union audit_status__bindgen_ty_1 { +pub version: __u32, +pub feature_bitmap: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ptrace_syscall_info__bindgen_ty_1 { +pub entry: ptrace_syscall_info__bindgen_ty_1__bindgen_ty_1, +pub exit: ptrace_syscall_info__bindgen_ty_1__bindgen_ty_2, +pub seccomp: ptrace_syscall_info__bindgen_ty_1__bindgen_ty_3, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/system.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/system.rs new file mode 100644 index 0000000000000000000000000000000000000000..87e1c0a59eee404e5ed3719e1ce3b17fe27e3db5 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/arm/system.rs @@ -0,0 +1,100 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sysinfo { +pub uptime: __kernel_long_t, +pub loads: [__kernel_ulong_t; 3usize], +pub totalram: __kernel_ulong_t, +pub freeram: __kernel_ulong_t, +pub sharedram: __kernel_ulong_t, +pub bufferram: __kernel_ulong_t, +pub totalswap: __kernel_ulong_t, +pub freeswap: __kernel_ulong_t, +pub procs: __u16, +pub pad: __u16, +pub totalhigh: __kernel_ulong_t, +pub freehigh: __kernel_ulong_t, +pub mem_unit: __u32, +pub _f: [crate::ctypes::c_char; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct oldold_utsname { +pub sysname: [crate::ctypes::c_char; 9usize], +pub nodename: [crate::ctypes::c_char; 9usize], +pub release: [crate::ctypes::c_char; 9usize], +pub version: [crate::ctypes::c_char; 9usize], +pub machine: [crate::ctypes::c_char; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct old_utsname { +pub sysname: [crate::ctypes::c_char; 65usize], +pub nodename: [crate::ctypes::c_char; 65usize], +pub release: [crate::ctypes::c_char; 65usize], +pub version: [crate::ctypes::c_char; 65usize], +pub machine: [crate::ctypes::c_char; 65usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct new_utsname { +pub sysname: [crate::ctypes::c_char; 65usize], +pub nodename: [crate::ctypes::c_char; 65usize], +pub release: [crate::ctypes::c_char; 65usize], +pub version: [crate::ctypes::c_char; 65usize], +pub machine: [crate::ctypes::c_char; 65usize], +pub domainname: [crate::ctypes::c_char; 65usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const SI_LOAD_SHIFT: u32 = 16; +pub const __OLD_UTS_LEN: u32 = 8; +pub const __NEW_UTS_LEN: u32 = 64; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/elf.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/elf.rs new file mode 100644 index 0000000000000000000000000000000000000000..19d755994e3a1f444230546b0a9dc016d4cc5579 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/elf.rs @@ -0,0 +1,299 @@ +//! The ELF ABI. 🧝 +//! +//! This module is not as comprehensive as bindgened [`elf_uapi`] and provides only types for target +//! pointer width: instead of [`elf32_phdr`] and [`elf64_phdr`] there's only [`Elf_Phdr`]. +//! +//! [`elf_uapi`]: super::elf_uapi +//! [`elf32_phdr`]: super::elf_uapi::elf32_phdr +//! [`elf64_phdr`]: super::elf_uapi::elf64_phdr + +pub const SELFMAG: usize = 4; +pub const ELFMAG: [u8; SELFMAG] = [0x7f, b'E', b'L', b'F']; +pub const EI_CLASS: usize = 4; +pub const EI_DATA: usize = 5; +pub const EI_VERSION: usize = 6; +pub const EI_OSABI: usize = 7; +pub const EI_ABIVERSION: usize = 8; +pub const EV_CURRENT: u8 = 1; +#[cfg(target_pointer_width = "32")] +pub const ELFCLASS: u8 = 1; // ELFCLASS32 +#[cfg(target_pointer_width = "64")] +pub const ELFCLASS: u8 = 2; // ELFCLASS64 +#[cfg(target_endian = "little")] +pub const ELFDATA: u8 = 1; // ELFDATA2LSB +#[cfg(target_endian = "big")] +pub const ELFDATA: u8 = 2; // ELFDATA2MSB +pub const ELFOSABI_SYSV: u8 = 0; +pub const ELFOSABI_LINUX: u8 = 3; +// At present all of our supported platforms use 0. +pub const ELFABIVERSION: u8 = 0; +pub const ET_DYN: u16 = 3; +pub const EI_NIDENT: usize = 16; +pub const SHN_UNDEF: u16 = 0; +pub const SHN_ABS: u16 = 0xfff1; +pub const PN_XNUM: u16 = 0xffff; +pub const PT_LOAD: u32 = 1; +pub const PT_DYNAMIC: u32 = 2; +pub const PT_INTERP: u32 = 3; +pub const PT_PHDR: u32 = 6; +pub const PT_TLS: u32 = 7; +pub const PT_GNU_STACK: u32 = 0x6474_e551; +pub const PT_GNU_RELRO: u32 = 0x6474_e552; +pub const PF_X: u32 = 1; +pub const PF_W: u32 = 2; +pub const PF_R: u32 = 4; +pub const DT_NULL: usize = 0; +pub const DT_HASH: usize = 4; +pub const DT_STRTAB: usize = 5; +pub const DT_SYMTAB: usize = 6; +pub const DT_RELA: usize = 7; +pub const DT_RELASZ: usize = 8; +pub const DT_RELAENT: usize = 9; +pub const DT_REL: usize = 17; +pub const DT_RELSZ: usize = 18; +pub const DT_RELENT: usize = 19; +pub const DT_SYMENT: usize = 11; +pub const DT_GNU_HASH: usize = 0x6fff_fef5; +pub const DT_VERSYM: usize = 0x6fff_fff0; +pub const DT_VERDEF: usize = 0x6fff_fffc; +pub const STB_WEAK: u8 = 2; +pub const STB_GLOBAL: u8 = 1; +pub const STT_NOTYPE: u8 = 0; +pub const STT_FUNC: u8 = 2; +pub const STN_UNDEF: u32 = 0; +pub const VER_FLG_BASE: u16 = 0x1; +pub const VER_DEF_CURRENT: u16 = 1; +pub const STV_DEFAULT: u8 = 0; +#[cfg(target_arch = "arm")] +pub const EM_CURRENT: u16 = 40; // EM_ARM +#[cfg(target_arch = "x86")] +pub const EM_CURRENT: u16 = 3; // EM_386 +#[cfg(target_arch = "powerpc")] +pub const EM_CURRENT: u16 = 20; // EM_PPC +#[cfg(target_arch = "powerpc64")] +pub const EM_CURRENT: u16 = 21; // EM_PPC64 +#[cfg(target_arch = "s390x")] +pub const EM_CURRENT: u16 = 22; // EM_S390 +#[cfg(any( + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "mips64", + target_arch = "mips64r6" +))] +pub const EM_CURRENT: u16 = 8; // EM_MIPS +#[cfg(target_arch = "x86_64")] +pub const EM_CURRENT: u16 = 62; // EM_X86_64 +#[cfg(target_arch = "aarch64")] +pub const EM_CURRENT: u16 = 183; // EM_AARCH64 +#[cfg(target_arch = "riscv64")] +pub const EM_CURRENT: u16 = 243; // EM_RISCV + +#[inline] +pub const fn ELF_ST_VISIBILITY(o: u8) -> u8 { + o & 0x03 +} + +#[inline] +pub const fn ELF_ST_BIND(val: u8) -> u8 { + val >> 4 +} + +#[inline] +pub const fn ELF_ST_TYPE(val: u8) -> u8 { + val & 0xf +} + +#[repr(C)] +pub struct Elf_Ehdr { + pub e_ident: [u8; EI_NIDENT], + pub e_type: u16, + pub e_machine: u16, + pub e_version: u32, + pub e_entry: usize, + pub e_phoff: usize, + pub e_shoff: usize, + pub e_flags: u32, + pub e_ehsize: u16, + pub e_phentsize: u16, + pub e_phnum: u16, + pub e_shentsize: u16, + pub e_shnum: u16, + pub e_shstrndx: u16, +} + +#[cfg(target_pointer_width = "32")] +#[repr(C)] +pub struct Elf_Phdr { + pub p_type: u32, + pub p_offset: usize, + pub p_vaddr: usize, + pub p_paddr: usize, + pub p_filesz: usize, + pub p_memsz: usize, + pub p_flags: u32, + pub p_align: usize, +} + +#[cfg(target_pointer_width = "64")] +#[repr(C)] +pub struct Elf_Phdr { + pub p_type: u32, + pub p_flags: u32, + pub p_offset: usize, + pub p_vaddr: usize, + pub p_paddr: usize, + pub p_filesz: usize, + pub p_memsz: usize, + pub p_align: usize, +} + +#[cfg(target_pointer_width = "32")] +#[repr(C)] +pub struct Elf_Sym { + pub st_name: u32, + pub st_value: usize, + pub st_size: usize, + pub st_info: u8, + pub st_other: u8, + pub st_shndx: u16, +} + +#[cfg(target_pointer_width = "64")] +#[repr(C)] +pub struct Elf_Sym { + pub st_name: u32, + pub st_info: u8, + pub st_other: u8, + pub st_shndx: u16, + pub st_value: usize, + pub st_size: usize, +} + +#[repr(C)] +pub struct Elf_Verdef { + pub vd_version: u16, + pub vd_flags: u16, + pub vd_ndx: u16, + pub vd_cnt: u16, + pub vd_hash: u32, + pub vd_aux: u32, + pub vd_next: u32, +} + +#[repr(C)] +pub struct Elf_Verdaux { + pub vda_name: u32, + pub _vda_next: u32, +} + +#[cfg(target_pointer_width = "32")] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct Elf_Dyn { + pub d_tag: usize, + pub d_un: Elf_Dyn_Union, +} + +#[cfg(target_pointer_width = "32")] +#[repr(C)] +#[derive(Copy, Clone)] +pub union Elf_Dyn_Union { + pub d_val: u32, + pub d_ptr: usize, +} + +#[cfg(target_pointer_width = "64")] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct Elf_Dyn { + pub d_tag: usize, + pub d_un: Elf_Dyn_Union, +} + +#[cfg(target_pointer_width = "64")] +#[repr(C)] +#[derive(Copy, Clone)] +pub union Elf_Dyn_Union { + pub d_val: u64, + pub d_ptr: usize, +} + +#[cfg(target_pointer_width = "32")] +#[repr(C)] +pub struct Elf_Rela { + pub r_offset: usize, + pub r_info: u32, + pub r_addend: usize, +} + +#[cfg(target_pointer_width = "64")] +#[repr(C)] +pub struct Elf_Rela { + pub r_offset: usize, + pub r_info: u64, + pub r_addend: usize, +} + +impl Elf_Rela { + #[inline] + pub fn type_(&self) -> u32 { + #[cfg(target_pointer_width = "32")] + { + self.r_info & 0xff + } + #[cfg(target_pointer_width = "64")] + { + (self.r_info & 0xffff_ffff) as u32 + } + } +} + +#[cfg(target_pointer_width = "32")] +#[repr(C)] +pub struct Elf_Rel { + pub r_offset: usize, + pub r_info: u32, +} + +#[cfg(target_pointer_width = "64")] +#[repr(C)] +pub struct Elf_Rel { + pub r_offset: usize, + pub r_info: u64, +} + +impl Elf_Rel { + #[inline] + pub fn type_(&self) -> u32 { + #[cfg(target_pointer_width = "32")] + { + self.r_info & 0xff + } + #[cfg(target_pointer_width = "64")] + { + (self.r_info & 0xffff_ffff) as u32 + } + } +} + +#[cfg(target_arch = "x86_64")] +pub const R_RELATIVE: u32 = 8; // `R_X86_64_RELATIVE` +#[cfg(target_arch = "x86")] +pub const R_RELATIVE: u32 = 8; // `R_386_RELATIVE` +#[cfg(target_arch = "aarch64")] +pub const R_RELATIVE: u32 = 1027; // `R_AARCH64_RELATIVE` +#[cfg(target_arch = "riscv64")] +pub const R_RELATIVE: u32 = 3; // `R_RISCV_RELATIVE` +#[cfg(target_arch = "arm")] +pub const R_RELATIVE: u32 = 23; // `R_ARM_RELATIVE` + +#[repr(C)] +#[derive(Clone)] +pub struct Elf_auxv_t { + pub a_type: usize, + + // Some of the values in the auxv array are pointers, so we make `a_val` a + // pointer, in order to preserve their provenance. For the values which are + // integers, we cast this to `usize`. + pub a_val: *mut crate::ctypes::c_void, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/lib.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/lib.rs new file mode 100644 index 0000000000000000000000000000000000000000..18d40f95f3ad1f5378a8209a937d4a5c6d3566ef --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/lib.rs @@ -0,0 +1,1731 @@ +#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] +#![cfg_attr(not(feature = "std"), no_std)] +/* +Unsafe functions no longer implicitly create unsafe blocks (RFC 2585). +While newer bindgen versions follow this convention, we support Rust 1.63 which warns about +this behavior. We can simply silence these warnings. +*/ +#![allow(unused_unsafe)] + +#[cfg(feature = "std")] +pub use std::os::raw as ctypes; + +#[cfg(all(not(feature = "std"), feature = "no_std"))] +pub mod ctypes { + // The signedness of `char` is platform-specific, and we have to match + // what Rust's `CStr` uses. + #[cfg(any( + target_arch = "aarch64", + target_arch = "arm", + target_arch = "msp430", + target_arch = "powerpc", + target_arch = "powerpc64", + target_arch = "riscv32", + target_arch = "riscv64", + target_arch = "s390x", + ))] + pub type c_char = c_uchar; + #[cfg(any( + target_arch = "loongarch64", + target_arch = "mips", + target_arch = "mips64", + target_arch = "mips32r6", + target_arch = "mips64r6", + target_arch = "sparc", + target_arch = "sparc64", + target_arch = "x86", + target_arch = "x86_64", + target_arch = "xtensa", + ))] + pub type c_char = c_schar; + + // The following assumes that Linux is always either ILP32 or LP64, + // and char is always 8-bit. + // + // In theory, `c_long` and `c_ulong` could be `isize` and `usize` + // respectively, however in practice Linux doesn't use them in that way + // consistently. So stick with the convention followed by `libc` and + // others and use the fixed-width types. + pub type c_schar = i8; + pub type c_uchar = u8; + pub type c_short = i16; + pub type c_ushort = u16; + pub type c_int = i32; + pub type c_uint = u32; + #[cfg(target_pointer_width = "32")] + pub type c_long = i32; + #[cfg(target_pointer_width = "32")] + pub type c_ulong = u32; + #[cfg(target_pointer_width = "64")] + pub type c_long = i64; + #[cfg(target_pointer_width = "64")] + pub type c_ulong = u64; + pub type c_longlong = i64; + pub type c_ulonglong = u64; + pub type c_float = f32; + pub type c_double = f64; + + pub use core::ffi::c_void; +} + +// Confirm that our type definitions above match the actual type definitions. +#[cfg(test)] +mod assertions { + use super::ctypes; + static_assertions::assert_eq_size!(ctypes::c_char, libc::c_char); + static_assertions::assert_type_eq_all!(ctypes::c_schar, libc::c_schar); + static_assertions::assert_type_eq_all!(ctypes::c_uchar, libc::c_uchar); + static_assertions::assert_type_eq_all!(ctypes::c_short, libc::c_short); + static_assertions::assert_type_eq_all!(ctypes::c_ushort, libc::c_ushort); + static_assertions::assert_type_eq_all!(ctypes::c_int, libc::c_int); + static_assertions::assert_type_eq_all!(ctypes::c_uint, libc::c_uint); + static_assertions::assert_type_eq_all!(ctypes::c_long, libc::c_long); + static_assertions::assert_type_eq_all!(ctypes::c_ulong, libc::c_ulong); + static_assertions::assert_type_eq_all!(ctypes::c_longlong, libc::c_longlong); + static_assertions::assert_type_eq_all!(ctypes::c_ulonglong, libc::c_ulonglong); + static_assertions::assert_type_eq_all!(ctypes::c_float, libc::c_float); + static_assertions::assert_type_eq_all!(ctypes::c_double, libc::c_double); +} + +// We don't enable `derive_eq` in bindgen because adding `PartialEq`/`Eq` to +// *all* structs noticeably increases compile times. But we can add a few +// manual impls where they're especially useful. +#[cfg(feature = "general")] +impl PartialEq for general::__kernel_timespec { + fn eq(&self, other: &Self) -> bool { + ({ + let Self { tv_sec, tv_nsec } = self; + (tv_sec, tv_nsec) + }) == ({ + let Self { tv_sec, tv_nsec } = other; + (tv_sec, tv_nsec) + }) + } +} +#[cfg(feature = "general")] +impl Eq for general::__kernel_timespec {} + +#[cfg(feature = "net")] +pub mod cmsg_macros { + use crate::ctypes::{c_long, c_uchar, c_uint}; + use crate::net::{cmsghdr, msghdr}; + use core::mem::size_of; + use core::ptr; + + pub const unsafe fn CMSG_ALIGN(len: c_uint) -> c_uint { + let c_long_size = size_of::() as c_uint; + (len + c_long_size - 1) & !(c_long_size - 1) + } + + pub const unsafe fn CMSG_DATA(cmsg: *const cmsghdr) -> *mut c_uchar { + (cmsg as *mut c_uchar).add(size_of::()) + } + + pub const unsafe fn CMSG_SPACE(len: c_uint) -> c_uint { + size_of::() as c_uint + CMSG_ALIGN(len) + } + + pub const unsafe fn CMSG_LEN(len: c_uint) -> c_uint { + size_of::() as c_uint + len + } + + pub const unsafe fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr { + if (*mhdr).msg_controllen < size_of::() as _ { + return ptr::null_mut(); + } + + (*mhdr).msg_control as *mut cmsghdr + } + + pub unsafe fn CMSG_NXTHDR(mhdr: *const msghdr, cmsg: *const cmsghdr) -> *mut cmsghdr { + // We convert from raw pointers to usize here, which may not be sound in a + // future version of Rust. Once the provenance rules are set in stone, + // it will be a good idea to give this function a once-over. + + let cmsg_len = (*cmsg).cmsg_len; + let next_cmsg = (cmsg as *mut u8).add(CMSG_ALIGN(cmsg_len as _) as usize) as *mut cmsghdr; + let max = ((*mhdr).msg_control as usize) + ((*mhdr).msg_controllen as usize); + + if cmsg_len < size_of::() as _ { + return ptr::null_mut(); + } + + if next_cmsg.add(1) as usize > max + || next_cmsg as usize + CMSG_ALIGN((*next_cmsg).cmsg_len as _) as usize > max + { + return ptr::null_mut(); + } + + next_cmsg + } +} + +#[cfg(feature = "general")] +pub mod select_macros { + use crate::ctypes::c_int; + use crate::general::__kernel_fd_set; + use core::mem::size_of; + + pub unsafe fn FD_CLR(fd: c_int, set: *mut __kernel_fd_set) { + let bytes = set as *mut u8; + if fd >= 0 { + *bytes.add((fd / 8) as usize) &= !(1 << (fd % 8)); + } + } + + pub unsafe fn FD_SET(fd: c_int, set: *mut __kernel_fd_set) { + let bytes = set as *mut u8; + if fd >= 0 { + *bytes.add((fd / 8) as usize) |= 1 << (fd % 8); + } + } + + pub unsafe fn FD_ISSET(fd: c_int, set: *const __kernel_fd_set) -> bool { + let bytes = set as *const u8; + if fd >= 0 { + *bytes.add((fd / 8) as usize) & (1 << (fd % 8)) != 0 + } else { + false + } + } + + pub unsafe fn FD_ZERO(set: *mut __kernel_fd_set) { + let bytes = set as *mut u8; + core::ptr::write_bytes(bytes, 0, size_of::<__kernel_fd_set>()); + } +} + +#[cfg(feature = "general")] +pub mod signal_macros { + pub const SIG_DFL: super::general::__kernel_sighandler_t = None; + + /// Rust doesn't currently permit us to use `transmute` to convert the + /// `SIG_IGN` value into a function pointer in a `const` initializer, so + /// we make it a function instead. + /// + #[inline] + pub const fn sig_ign() -> super::general::__kernel_sighandler_t { + // Safety: This creates an invalid pointer, but the pointer type + // includes `unsafe`, which covers the safety of calling it. + Some(unsafe { + core::mem::transmute::(1) + }) + } +} + +#[cfg(feature = "elf")] +pub mod elf; + +// The rest of this file is auto-generated! +#[cfg(feature = "auxvec")] +#[cfg(target_arch = "arm")] +#[path = "arm/auxvec.rs"] +pub mod auxvec; +#[cfg(feature = "bootparam")] +#[cfg(target_arch = "arm")] +#[path = "arm/bootparam.rs"] +pub mod bootparam; +#[cfg(feature = "btrfs")] +#[cfg(target_arch = "arm")] +#[path = "arm/btrfs.rs"] +pub mod btrfs; +#[cfg(feature = "elf_uapi")] +#[cfg(target_arch = "arm")] +#[path = "arm/elf_uapi.rs"] +pub mod elf_uapi; +#[cfg(feature = "errno")] +#[cfg(target_arch = "arm")] +#[path = "arm/errno.rs"] +pub mod errno; +#[cfg(feature = "general")] +#[cfg(target_arch = "arm")] +#[path = "arm/general.rs"] +pub mod general; +#[cfg(feature = "if_arp")] +#[cfg(target_arch = "arm")] +#[path = "arm/if_arp.rs"] +pub mod if_arp; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "arm")] +#[path = "arm/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "if_packet")] +#[cfg(target_arch = "arm")] +#[path = "arm/if_packet.rs"] +pub mod if_packet; +#[cfg(feature = "image")] +#[cfg(target_arch = "arm")] +#[path = "arm/image.rs"] +pub mod image; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "arm")] +#[path = "arm/io_uring.rs"] +pub mod io_uring; +#[cfg(feature = "ioctl")] +#[cfg(target_arch = "arm")] +#[path = "arm/ioctl.rs"] +pub mod ioctl; +#[cfg(feature = "landlock")] +#[cfg(target_arch = "arm")] +#[path = "arm/landlock.rs"] +pub mod landlock; +#[cfg(feature = "loop_device")] +#[cfg(target_arch = "arm")] +#[path = "arm/loop_device.rs"] +pub mod loop_device; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "arm")] +#[path = "arm/mempolicy.rs"] +pub mod mempolicy; +#[cfg(feature = "net")] +#[cfg(target_arch = "arm")] +#[path = "arm/net.rs"] +pub mod net; +#[cfg(feature = "netlink")] +#[cfg(target_arch = "arm")] +#[path = "arm/netlink.rs"] +pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "arm")] +#[path = "arm/prctl.rs"] +pub mod prctl; +#[cfg(feature = "ptrace")] +#[cfg(target_arch = "arm")] +#[path = "arm/ptrace.rs"] +pub mod ptrace; +#[cfg(feature = "system")] +#[cfg(target_arch = "arm")] +#[path = "arm/system.rs"] +pub mod system; +#[cfg(feature = "xdp")] +#[cfg(target_arch = "arm")] +#[path = "arm/xdp.rs"] +pub mod xdp; +#[cfg(feature = "auxvec")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/auxvec.rs"] +pub mod auxvec; +#[cfg(feature = "bootparam")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/bootparam.rs"] +pub mod bootparam; +#[cfg(feature = "btrfs")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/btrfs.rs"] +pub mod btrfs; +#[cfg(feature = "elf_uapi")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/elf_uapi.rs"] +pub mod elf_uapi; +#[cfg(feature = "errno")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/errno.rs"] +pub mod errno; +#[cfg(feature = "general")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/general.rs"] +pub mod general; +#[cfg(feature = "if_arp")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/if_arp.rs"] +pub mod if_arp; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "if_packet")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/if_packet.rs"] +pub mod if_packet; +#[cfg(feature = "image")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/image.rs"] +pub mod image; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/io_uring.rs"] +pub mod io_uring; +#[cfg(feature = "ioctl")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/ioctl.rs"] +pub mod ioctl; +#[cfg(feature = "landlock")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/landlock.rs"] +pub mod landlock; +#[cfg(feature = "loop_device")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/loop_device.rs"] +pub mod loop_device; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/mempolicy.rs"] +pub mod mempolicy; +#[cfg(feature = "net")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/net.rs"] +pub mod net; +#[cfg(feature = "netlink")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/netlink.rs"] +pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/prctl.rs"] +pub mod prctl; +#[cfg(feature = "ptrace")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/ptrace.rs"] +pub mod ptrace; +#[cfg(feature = "system")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/system.rs"] +pub mod system; +#[cfg(feature = "xdp")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/xdp.rs"] +pub mod xdp; +#[cfg(feature = "auxvec")] +#[cfg(target_arch = "csky")] +#[path = "csky/auxvec.rs"] +pub mod auxvec; +#[cfg(feature = "bootparam")] +#[cfg(target_arch = "csky")] +#[path = "csky/bootparam.rs"] +pub mod bootparam; +#[cfg(feature = "btrfs")] +#[cfg(target_arch = "csky")] +#[path = "csky/btrfs.rs"] +pub mod btrfs; +#[cfg(feature = "elf_uapi")] +#[cfg(target_arch = "csky")] +#[path = "csky/elf_uapi.rs"] +pub mod elf_uapi; +#[cfg(feature = "errno")] +#[cfg(target_arch = "csky")] +#[path = "csky/errno.rs"] +pub mod errno; +#[cfg(feature = "general")] +#[cfg(target_arch = "csky")] +#[path = "csky/general.rs"] +pub mod general; +#[cfg(feature = "if_arp")] +#[cfg(target_arch = "csky")] +#[path = "csky/if_arp.rs"] +pub mod if_arp; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "csky")] +#[path = "csky/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "if_packet")] +#[cfg(target_arch = "csky")] +#[path = "csky/if_packet.rs"] +pub mod if_packet; +#[cfg(feature = "image")] +#[cfg(target_arch = "csky")] +#[path = "csky/image.rs"] +pub mod image; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "csky")] +#[path = "csky/io_uring.rs"] +pub mod io_uring; +#[cfg(feature = "ioctl")] +#[cfg(target_arch = "csky")] +#[path = "csky/ioctl.rs"] +pub mod ioctl; +#[cfg(feature = "landlock")] +#[cfg(target_arch = "csky")] +#[path = "csky/landlock.rs"] +pub mod landlock; +#[cfg(feature = "loop_device")] +#[cfg(target_arch = "csky")] +#[path = "csky/loop_device.rs"] +pub mod loop_device; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "csky")] +#[path = "csky/mempolicy.rs"] +pub mod mempolicy; +#[cfg(feature = "net")] +#[cfg(target_arch = "csky")] +#[path = "csky/net.rs"] +pub mod net; +#[cfg(feature = "netlink")] +#[cfg(target_arch = "csky")] +#[path = "csky/netlink.rs"] +pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "csky")] +#[path = "csky/prctl.rs"] +pub mod prctl; +#[cfg(feature = "ptrace")] +#[cfg(target_arch = "csky")] +#[path = "csky/ptrace.rs"] +pub mod ptrace; +#[cfg(feature = "system")] +#[cfg(target_arch = "csky")] +#[path = "csky/system.rs"] +pub mod system; +#[cfg(feature = "xdp")] +#[cfg(target_arch = "csky")] +#[path = "csky/xdp.rs"] +pub mod xdp; +#[cfg(feature = "auxvec")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/auxvec.rs"] +pub mod auxvec; +#[cfg(feature = "bootparam")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/bootparam.rs"] +pub mod bootparam; +#[cfg(feature = "btrfs")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/btrfs.rs"] +pub mod btrfs; +#[cfg(feature = "elf_uapi")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/elf_uapi.rs"] +pub mod elf_uapi; +#[cfg(feature = "errno")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/errno.rs"] +pub mod errno; +#[cfg(feature = "general")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/general.rs"] +pub mod general; +#[cfg(feature = "if_arp")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/if_arp.rs"] +pub mod if_arp; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "if_packet")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/if_packet.rs"] +pub mod if_packet; +#[cfg(feature = "image")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/image.rs"] +pub mod image; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/io_uring.rs"] +pub mod io_uring; +#[cfg(feature = "ioctl")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/ioctl.rs"] +pub mod ioctl; +#[cfg(feature = "landlock")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/landlock.rs"] +pub mod landlock; +#[cfg(feature = "loop_device")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/loop_device.rs"] +pub mod loop_device; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/mempolicy.rs"] +pub mod mempolicy; +#[cfg(feature = "net")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/net.rs"] +pub mod net; +#[cfg(feature = "netlink")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/netlink.rs"] +pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/prctl.rs"] +pub mod prctl; +#[cfg(feature = "ptrace")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/ptrace.rs"] +pub mod ptrace; +#[cfg(feature = "system")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/system.rs"] +pub mod system; +#[cfg(feature = "xdp")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/xdp.rs"] +pub mod xdp; +#[cfg(feature = "auxvec")] +#[cfg(target_arch = "mips")] +#[path = "mips/auxvec.rs"] +pub mod auxvec; +#[cfg(feature = "bootparam")] +#[cfg(target_arch = "mips")] +#[path = "mips/bootparam.rs"] +pub mod bootparam; +#[cfg(feature = "btrfs")] +#[cfg(target_arch = "mips")] +#[path = "mips/btrfs.rs"] +pub mod btrfs; +#[cfg(feature = "elf_uapi")] +#[cfg(target_arch = "mips")] +#[path = "mips/elf_uapi.rs"] +pub mod elf_uapi; +#[cfg(feature = "errno")] +#[cfg(target_arch = "mips")] +#[path = "mips/errno.rs"] +pub mod errno; +#[cfg(feature = "general")] +#[cfg(target_arch = "mips")] +#[path = "mips/general.rs"] +pub mod general; +#[cfg(feature = "if_arp")] +#[cfg(target_arch = "mips")] +#[path = "mips/if_arp.rs"] +pub mod if_arp; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "mips")] +#[path = "mips/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "if_packet")] +#[cfg(target_arch = "mips")] +#[path = "mips/if_packet.rs"] +pub mod if_packet; +#[cfg(feature = "image")] +#[cfg(target_arch = "mips")] +#[path = "mips/image.rs"] +pub mod image; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "mips")] +#[path = "mips/io_uring.rs"] +pub mod io_uring; +#[cfg(feature = "ioctl")] +#[cfg(target_arch = "mips")] +#[path = "mips/ioctl.rs"] +pub mod ioctl; +#[cfg(feature = "landlock")] +#[cfg(target_arch = "mips")] +#[path = "mips/landlock.rs"] +pub mod landlock; +#[cfg(feature = "loop_device")] +#[cfg(target_arch = "mips")] +#[path = "mips/loop_device.rs"] +pub mod loop_device; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "mips")] +#[path = "mips/mempolicy.rs"] +pub mod mempolicy; +#[cfg(feature = "net")] +#[cfg(target_arch = "mips")] +#[path = "mips/net.rs"] +pub mod net; +#[cfg(feature = "netlink")] +#[cfg(target_arch = "mips")] +#[path = "mips/netlink.rs"] +pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "mips")] +#[path = "mips/prctl.rs"] +pub mod prctl; +#[cfg(feature = "ptrace")] +#[cfg(target_arch = "mips")] +#[path = "mips/ptrace.rs"] +pub mod ptrace; +#[cfg(feature = "system")] +#[cfg(target_arch = "mips")] +#[path = "mips/system.rs"] +pub mod system; +#[cfg(feature = "xdp")] +#[cfg(target_arch = "mips")] +#[path = "mips/xdp.rs"] +pub mod xdp; +#[cfg(feature = "auxvec")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/auxvec.rs"] +pub mod auxvec; +#[cfg(feature = "bootparam")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/bootparam.rs"] +pub mod bootparam; +#[cfg(feature = "btrfs")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/btrfs.rs"] +pub mod btrfs; +#[cfg(feature = "elf_uapi")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/elf_uapi.rs"] +pub mod elf_uapi; +#[cfg(feature = "errno")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/errno.rs"] +pub mod errno; +#[cfg(feature = "general")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/general.rs"] +pub mod general; +#[cfg(feature = "if_arp")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/if_arp.rs"] +pub mod if_arp; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "if_packet")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/if_packet.rs"] +pub mod if_packet; +#[cfg(feature = "image")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/image.rs"] +pub mod image; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/io_uring.rs"] +pub mod io_uring; +#[cfg(feature = "ioctl")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/ioctl.rs"] +pub mod ioctl; +#[cfg(feature = "landlock")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/landlock.rs"] +pub mod landlock; +#[cfg(feature = "loop_device")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/loop_device.rs"] +pub mod loop_device; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/mempolicy.rs"] +pub mod mempolicy; +#[cfg(feature = "net")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/net.rs"] +pub mod net; +#[cfg(feature = "netlink")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/netlink.rs"] +pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/prctl.rs"] +pub mod prctl; +#[cfg(feature = "ptrace")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/ptrace.rs"] +pub mod ptrace; +#[cfg(feature = "system")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/system.rs"] +pub mod system; +#[cfg(feature = "xdp")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/xdp.rs"] +pub mod xdp; +#[cfg(feature = "auxvec")] +#[cfg(target_arch = "mips32r6")] +#[path = "mips32r6/auxvec.rs"] +pub mod auxvec; +#[cfg(feature = "bootparam")] +#[cfg(target_arch = "mips32r6")] +#[path = "mips32r6/bootparam.rs"] +pub mod bootparam; +#[cfg(feature = "btrfs")] +#[cfg(target_arch = "mips32r6")] +#[path = "mips32r6/btrfs.rs"] +pub mod btrfs; +#[cfg(feature = "elf_uapi")] +#[cfg(target_arch = "mips32r6")] +#[path = "mips32r6/elf_uapi.rs"] +pub mod elf_uapi; +#[cfg(feature = "errno")] +#[cfg(target_arch = "mips32r6")] +#[path = "mips32r6/errno.rs"] +pub mod errno; +#[cfg(feature = "general")] +#[cfg(target_arch = "mips32r6")] +#[path = "mips32r6/general.rs"] +pub mod general; +#[cfg(feature = "if_arp")] +#[cfg(target_arch = "mips32r6")] +#[path = "mips32r6/if_arp.rs"] +pub mod if_arp; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "mips32r6")] +#[path = "mips32r6/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "if_packet")] +#[cfg(target_arch = "mips32r6")] +#[path = "mips32r6/if_packet.rs"] +pub mod if_packet; +#[cfg(feature = "image")] +#[cfg(target_arch = "mips32r6")] +#[path = "mips32r6/image.rs"] +pub mod image; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "mips32r6")] +#[path = "mips32r6/io_uring.rs"] +pub mod io_uring; +#[cfg(feature = "ioctl")] +#[cfg(target_arch = "mips32r6")] +#[path = "mips32r6/ioctl.rs"] +pub mod ioctl; +#[cfg(feature = "landlock")] +#[cfg(target_arch = "mips32r6")] +#[path = "mips32r6/landlock.rs"] +pub mod landlock; +#[cfg(feature = "loop_device")] +#[cfg(target_arch = "mips32r6")] +#[path = "mips32r6/loop_device.rs"] +pub mod loop_device; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "mips32r6")] +#[path = "mips32r6/mempolicy.rs"] +pub mod mempolicy; +#[cfg(feature = "net")] +#[cfg(target_arch = "mips32r6")] +#[path = "mips32r6/net.rs"] +pub mod net; +#[cfg(feature = "netlink")] +#[cfg(target_arch = "mips32r6")] +#[path = "mips32r6/netlink.rs"] +pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "mips32r6")] +#[path = "mips32r6/prctl.rs"] +pub mod prctl; +#[cfg(feature = "ptrace")] +#[cfg(target_arch = "mips32r6")] +#[path = "mips32r6/ptrace.rs"] +pub mod ptrace; +#[cfg(feature = "system")] +#[cfg(target_arch = "mips32r6")] +#[path = "mips32r6/system.rs"] +pub mod system; +#[cfg(feature = "xdp")] +#[cfg(target_arch = "mips32r6")] +#[path = "mips32r6/xdp.rs"] +pub mod xdp; +#[cfg(feature = "auxvec")] +#[cfg(target_arch = "mips64r6")] +#[path = "mips64r6/auxvec.rs"] +pub mod auxvec; +#[cfg(feature = "bootparam")] +#[cfg(target_arch = "mips64r6")] +#[path = "mips64r6/bootparam.rs"] +pub mod bootparam; +#[cfg(feature = "btrfs")] +#[cfg(target_arch = "mips64r6")] +#[path = "mips64r6/btrfs.rs"] +pub mod btrfs; +#[cfg(feature = "elf_uapi")] +#[cfg(target_arch = "mips64r6")] +#[path = "mips64r6/elf_uapi.rs"] +pub mod elf_uapi; +#[cfg(feature = "errno")] +#[cfg(target_arch = "mips64r6")] +#[path = "mips64r6/errno.rs"] +pub mod errno; +#[cfg(feature = "general")] +#[cfg(target_arch = "mips64r6")] +#[path = "mips64r6/general.rs"] +pub mod general; +#[cfg(feature = "if_arp")] +#[cfg(target_arch = "mips64r6")] +#[path = "mips64r6/if_arp.rs"] +pub mod if_arp; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "mips64r6")] +#[path = "mips64r6/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "if_packet")] +#[cfg(target_arch = "mips64r6")] +#[path = "mips64r6/if_packet.rs"] +pub mod if_packet; +#[cfg(feature = "image")] +#[cfg(target_arch = "mips64r6")] +#[path = "mips64r6/image.rs"] +pub mod image; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "mips64r6")] +#[path = "mips64r6/io_uring.rs"] +pub mod io_uring; +#[cfg(feature = "ioctl")] +#[cfg(target_arch = "mips64r6")] +#[path = "mips64r6/ioctl.rs"] +pub mod ioctl; +#[cfg(feature = "landlock")] +#[cfg(target_arch = "mips64r6")] +#[path = "mips64r6/landlock.rs"] +pub mod landlock; +#[cfg(feature = "loop_device")] +#[cfg(target_arch = "mips64r6")] +#[path = "mips64r6/loop_device.rs"] +pub mod loop_device; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "mips64r6")] +#[path = "mips64r6/mempolicy.rs"] +pub mod mempolicy; +#[cfg(feature = "net")] +#[cfg(target_arch = "mips64r6")] +#[path = "mips64r6/net.rs"] +pub mod net; +#[cfg(feature = "netlink")] +#[cfg(target_arch = "mips64r6")] +#[path = "mips64r6/netlink.rs"] +pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "mips64r6")] +#[path = "mips64r6/prctl.rs"] +pub mod prctl; +#[cfg(feature = "ptrace")] +#[cfg(target_arch = "mips64r6")] +#[path = "mips64r6/ptrace.rs"] +pub mod ptrace; +#[cfg(feature = "system")] +#[cfg(target_arch = "mips64r6")] +#[path = "mips64r6/system.rs"] +pub mod system; +#[cfg(feature = "xdp")] +#[cfg(target_arch = "mips64r6")] +#[path = "mips64r6/xdp.rs"] +pub mod xdp; +#[cfg(feature = "auxvec")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/auxvec.rs"] +pub mod auxvec; +#[cfg(feature = "bootparam")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/bootparam.rs"] +pub mod bootparam; +#[cfg(feature = "btrfs")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/btrfs.rs"] +pub mod btrfs; +#[cfg(feature = "elf_uapi")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/elf_uapi.rs"] +pub mod elf_uapi; +#[cfg(feature = "errno")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/errno.rs"] +pub mod errno; +#[cfg(feature = "general")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/general.rs"] +pub mod general; +#[cfg(feature = "if_arp")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/if_arp.rs"] +pub mod if_arp; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "if_packet")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/if_packet.rs"] +pub mod if_packet; +#[cfg(feature = "image")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/image.rs"] +pub mod image; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/io_uring.rs"] +pub mod io_uring; +#[cfg(feature = "ioctl")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/ioctl.rs"] +pub mod ioctl; +#[cfg(feature = "landlock")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/landlock.rs"] +pub mod landlock; +#[cfg(feature = "loop_device")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/loop_device.rs"] +pub mod loop_device; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/mempolicy.rs"] +pub mod mempolicy; +#[cfg(feature = "net")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/net.rs"] +pub mod net; +#[cfg(feature = "netlink")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/netlink.rs"] +pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/prctl.rs"] +pub mod prctl; +#[cfg(feature = "ptrace")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/ptrace.rs"] +pub mod ptrace; +#[cfg(feature = "system")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/system.rs"] +pub mod system; +#[cfg(feature = "xdp")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/xdp.rs"] +pub mod xdp; +#[cfg(feature = "auxvec")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/auxvec.rs"] +pub mod auxvec; +#[cfg(feature = "bootparam")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/bootparam.rs"] +pub mod bootparam; +#[cfg(feature = "btrfs")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/btrfs.rs"] +pub mod btrfs; +#[cfg(feature = "elf_uapi")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/elf_uapi.rs"] +pub mod elf_uapi; +#[cfg(feature = "errno")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/errno.rs"] +pub mod errno; +#[cfg(feature = "general")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/general.rs"] +pub mod general; +#[cfg(feature = "if_arp")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/if_arp.rs"] +pub mod if_arp; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "if_packet")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/if_packet.rs"] +pub mod if_packet; +#[cfg(feature = "image")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/image.rs"] +pub mod image; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/io_uring.rs"] +pub mod io_uring; +#[cfg(feature = "ioctl")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/ioctl.rs"] +pub mod ioctl; +#[cfg(feature = "landlock")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/landlock.rs"] +pub mod landlock; +#[cfg(feature = "loop_device")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/loop_device.rs"] +pub mod loop_device; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/mempolicy.rs"] +pub mod mempolicy; +#[cfg(feature = "net")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/net.rs"] +pub mod net; +#[cfg(feature = "netlink")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/netlink.rs"] +pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/prctl.rs"] +pub mod prctl; +#[cfg(feature = "ptrace")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/ptrace.rs"] +pub mod ptrace; +#[cfg(feature = "system")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/system.rs"] +pub mod system; +#[cfg(feature = "xdp")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/xdp.rs"] +pub mod xdp; +#[cfg(feature = "auxvec")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/auxvec.rs"] +pub mod auxvec; +#[cfg(feature = "bootparam")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/bootparam.rs"] +pub mod bootparam; +#[cfg(feature = "btrfs")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/btrfs.rs"] +pub mod btrfs; +#[cfg(feature = "elf_uapi")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/elf_uapi.rs"] +pub mod elf_uapi; +#[cfg(feature = "errno")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/errno.rs"] +pub mod errno; +#[cfg(feature = "general")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/general.rs"] +pub mod general; +#[cfg(feature = "if_arp")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/if_arp.rs"] +pub mod if_arp; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "if_packet")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/if_packet.rs"] +pub mod if_packet; +#[cfg(feature = "image")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/image.rs"] +pub mod image; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/io_uring.rs"] +pub mod io_uring; +#[cfg(feature = "ioctl")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/ioctl.rs"] +pub mod ioctl; +#[cfg(feature = "landlock")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/landlock.rs"] +pub mod landlock; +#[cfg(feature = "loop_device")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/loop_device.rs"] +pub mod loop_device; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/mempolicy.rs"] +pub mod mempolicy; +#[cfg(feature = "net")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/net.rs"] +pub mod net; +#[cfg(feature = "netlink")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/netlink.rs"] +pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/prctl.rs"] +pub mod prctl; +#[cfg(feature = "ptrace")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/ptrace.rs"] +pub mod ptrace; +#[cfg(feature = "system")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/system.rs"] +pub mod system; +#[cfg(feature = "xdp")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/xdp.rs"] +pub mod xdp; +#[cfg(feature = "auxvec")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/auxvec.rs"] +pub mod auxvec; +#[cfg(feature = "bootparam")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/bootparam.rs"] +pub mod bootparam; +#[cfg(feature = "btrfs")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/btrfs.rs"] +pub mod btrfs; +#[cfg(feature = "elf_uapi")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/elf_uapi.rs"] +pub mod elf_uapi; +#[cfg(feature = "errno")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/errno.rs"] +pub mod errno; +#[cfg(feature = "general")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/general.rs"] +pub mod general; +#[cfg(feature = "if_arp")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/if_arp.rs"] +pub mod if_arp; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "if_packet")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/if_packet.rs"] +pub mod if_packet; +#[cfg(feature = "image")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/image.rs"] +pub mod image; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/io_uring.rs"] +pub mod io_uring; +#[cfg(feature = "ioctl")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/ioctl.rs"] +pub mod ioctl; +#[cfg(feature = "landlock")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/landlock.rs"] +pub mod landlock; +#[cfg(feature = "loop_device")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/loop_device.rs"] +pub mod loop_device; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/mempolicy.rs"] +pub mod mempolicy; +#[cfg(feature = "net")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/net.rs"] +pub mod net; +#[cfg(feature = "netlink")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/netlink.rs"] +pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/prctl.rs"] +pub mod prctl; +#[cfg(feature = "ptrace")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/ptrace.rs"] +pub mod ptrace; +#[cfg(feature = "system")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/system.rs"] +pub mod system; +#[cfg(feature = "xdp")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/xdp.rs"] +pub mod xdp; +#[cfg(feature = "auxvec")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/auxvec.rs"] +pub mod auxvec; +#[cfg(feature = "bootparam")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/bootparam.rs"] +pub mod bootparam; +#[cfg(feature = "btrfs")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/btrfs.rs"] +pub mod btrfs; +#[cfg(feature = "elf_uapi")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/elf_uapi.rs"] +pub mod elf_uapi; +#[cfg(feature = "errno")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/errno.rs"] +pub mod errno; +#[cfg(feature = "general")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/general.rs"] +pub mod general; +#[cfg(feature = "if_arp")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/if_arp.rs"] +pub mod if_arp; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "if_packet")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/if_packet.rs"] +pub mod if_packet; +#[cfg(feature = "image")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/image.rs"] +pub mod image; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/io_uring.rs"] +pub mod io_uring; +#[cfg(feature = "ioctl")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/ioctl.rs"] +pub mod ioctl; +#[cfg(feature = "landlock")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/landlock.rs"] +pub mod landlock; +#[cfg(feature = "loop_device")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/loop_device.rs"] +pub mod loop_device; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/mempolicy.rs"] +pub mod mempolicy; +#[cfg(feature = "net")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/net.rs"] +pub mod net; +#[cfg(feature = "netlink")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/netlink.rs"] +pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/prctl.rs"] +pub mod prctl; +#[cfg(feature = "ptrace")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/ptrace.rs"] +pub mod ptrace; +#[cfg(feature = "system")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/system.rs"] +pub mod system; +#[cfg(feature = "xdp")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/xdp.rs"] +pub mod xdp; +#[cfg(feature = "auxvec")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/auxvec.rs"] +pub mod auxvec; +#[cfg(feature = "bootparam")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/bootparam.rs"] +pub mod bootparam; +#[cfg(feature = "btrfs")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/btrfs.rs"] +pub mod btrfs; +#[cfg(feature = "elf_uapi")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/elf_uapi.rs"] +pub mod elf_uapi; +#[cfg(feature = "errno")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/errno.rs"] +pub mod errno; +#[cfg(feature = "general")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/general.rs"] +pub mod general; +#[cfg(feature = "if_arp")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/if_arp.rs"] +pub mod if_arp; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "if_packet")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/if_packet.rs"] +pub mod if_packet; +#[cfg(feature = "image")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/image.rs"] +pub mod image; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/io_uring.rs"] +pub mod io_uring; +#[cfg(feature = "ioctl")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/ioctl.rs"] +pub mod ioctl; +#[cfg(feature = "landlock")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/landlock.rs"] +pub mod landlock; +#[cfg(feature = "loop_device")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/loop_device.rs"] +pub mod loop_device; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/mempolicy.rs"] +pub mod mempolicy; +#[cfg(feature = "net")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/net.rs"] +pub mod net; +#[cfg(feature = "netlink")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/netlink.rs"] +pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/prctl.rs"] +pub mod prctl; +#[cfg(feature = "ptrace")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/ptrace.rs"] +pub mod ptrace; +#[cfg(feature = "system")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/system.rs"] +pub mod system; +#[cfg(feature = "xdp")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/xdp.rs"] +pub mod xdp; +#[cfg(feature = "auxvec")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/auxvec.rs"] +pub mod auxvec; +#[cfg(feature = "bootparam")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/bootparam.rs"] +pub mod bootparam; +#[cfg(feature = "btrfs")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/btrfs.rs"] +pub mod btrfs; +#[cfg(feature = "elf_uapi")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/elf_uapi.rs"] +pub mod elf_uapi; +#[cfg(feature = "errno")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/errno.rs"] +pub mod errno; +#[cfg(feature = "general")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/general.rs"] +pub mod general; +#[cfg(feature = "if_arp")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/if_arp.rs"] +pub mod if_arp; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "if_packet")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/if_packet.rs"] +pub mod if_packet; +#[cfg(feature = "image")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/image.rs"] +pub mod image; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/io_uring.rs"] +pub mod io_uring; +#[cfg(feature = "ioctl")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/ioctl.rs"] +pub mod ioctl; +#[cfg(feature = "landlock")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/landlock.rs"] +pub mod landlock; +#[cfg(feature = "loop_device")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/loop_device.rs"] +pub mod loop_device; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/mempolicy.rs"] +pub mod mempolicy; +#[cfg(feature = "net")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/net.rs"] +pub mod net; +#[cfg(feature = "netlink")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/netlink.rs"] +pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/prctl.rs"] +pub mod prctl; +#[cfg(feature = "ptrace")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/ptrace.rs"] +pub mod ptrace; +#[cfg(feature = "system")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/system.rs"] +pub mod system; +#[cfg(feature = "xdp")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/xdp.rs"] +pub mod xdp; +#[cfg(feature = "auxvec")] +#[cfg(target_arch = "x86")] +#[path = "x86/auxvec.rs"] +pub mod auxvec; +#[cfg(feature = "bootparam")] +#[cfg(target_arch = "x86")] +#[path = "x86/bootparam.rs"] +pub mod bootparam; +#[cfg(feature = "btrfs")] +#[cfg(target_arch = "x86")] +#[path = "x86/btrfs.rs"] +pub mod btrfs; +#[cfg(feature = "elf_uapi")] +#[cfg(target_arch = "x86")] +#[path = "x86/elf_uapi.rs"] +pub mod elf_uapi; +#[cfg(feature = "errno")] +#[cfg(target_arch = "x86")] +#[path = "x86/errno.rs"] +pub mod errno; +#[cfg(feature = "general")] +#[cfg(target_arch = "x86")] +#[path = "x86/general.rs"] +pub mod general; +#[cfg(feature = "if_arp")] +#[cfg(target_arch = "x86")] +#[path = "x86/if_arp.rs"] +pub mod if_arp; +#[cfg(feature = "if_ether")] +#[cfg(target_arch = "x86")] +#[path = "x86/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "if_packet")] +#[cfg(target_arch = "x86")] +#[path = "x86/if_packet.rs"] +pub mod if_packet; +#[cfg(feature = "image")] +#[cfg(target_arch = "x86")] +#[path = "x86/image.rs"] +pub mod image; +#[cfg(feature = "io_uring")] +#[cfg(target_arch = "x86")] +#[path = "x86/io_uring.rs"] +pub mod io_uring; +#[cfg(feature = "ioctl")] +#[cfg(target_arch = "x86")] +#[path = "x86/ioctl.rs"] +pub mod ioctl; +#[cfg(feature = "landlock")] +#[cfg(target_arch = "x86")] +#[path = "x86/landlock.rs"] +pub mod landlock; +#[cfg(feature = "loop_device")] +#[cfg(target_arch = "x86")] +#[path = "x86/loop_device.rs"] +pub mod loop_device; +#[cfg(feature = "mempolicy")] +#[cfg(target_arch = "x86")] +#[path = "x86/mempolicy.rs"] +pub mod mempolicy; +#[cfg(feature = "net")] +#[cfg(target_arch = "x86")] +#[path = "x86/net.rs"] +pub mod net; +#[cfg(feature = "netlink")] +#[cfg(target_arch = "x86")] +#[path = "x86/netlink.rs"] +pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(target_arch = "x86")] +#[path = "x86/prctl.rs"] +pub mod prctl; +#[cfg(feature = "ptrace")] +#[cfg(target_arch = "x86")] +#[path = "x86/ptrace.rs"] +pub mod ptrace; +#[cfg(feature = "system")] +#[cfg(target_arch = "x86")] +#[path = "x86/system.rs"] +pub mod system; +#[cfg(feature = "xdp")] +#[cfg(target_arch = "x86")] +#[path = "x86/xdp.rs"] +pub mod xdp; +#[cfg(feature = "auxvec")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/auxvec.rs"] +pub mod auxvec; +#[cfg(feature = "bootparam")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/bootparam.rs"] +pub mod bootparam; +#[cfg(feature = "btrfs")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/btrfs.rs"] +pub mod btrfs; +#[cfg(feature = "elf_uapi")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/elf_uapi.rs"] +pub mod elf_uapi; +#[cfg(feature = "errno")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/errno.rs"] +pub mod errno; +#[cfg(feature = "general")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/general.rs"] +pub mod general; +#[cfg(feature = "if_arp")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/if_arp.rs"] +pub mod if_arp; +#[cfg(feature = "if_ether")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "if_packet")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/if_packet.rs"] +pub mod if_packet; +#[cfg(feature = "image")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/image.rs"] +pub mod image; +#[cfg(feature = "io_uring")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/io_uring.rs"] +pub mod io_uring; +#[cfg(feature = "ioctl")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/ioctl.rs"] +pub mod ioctl; +#[cfg(feature = "landlock")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/landlock.rs"] +pub mod landlock; +#[cfg(feature = "loop_device")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/loop_device.rs"] +pub mod loop_device; +#[cfg(feature = "mempolicy")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/mempolicy.rs"] +pub mod mempolicy; +#[cfg(feature = "net")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/net.rs"] +pub mod net; +#[cfg(feature = "netlink")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/netlink.rs"] +pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/prctl.rs"] +pub mod prctl; +#[cfg(feature = "ptrace")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/ptrace.rs"] +pub mod ptrace; +#[cfg(feature = "system")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/system.rs"] +pub mod system; +#[cfg(feature = "xdp")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/xdp.rs"] +pub mod xdp; +#[cfg(feature = "auxvec")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/auxvec.rs"] +pub mod auxvec; +#[cfg(feature = "bootparam")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/bootparam.rs"] +pub mod bootparam; +#[cfg(feature = "btrfs")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/btrfs.rs"] +pub mod btrfs; +#[cfg(feature = "elf_uapi")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/elf_uapi.rs"] +pub mod elf_uapi; +#[cfg(feature = "errno")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/errno.rs"] +pub mod errno; +#[cfg(feature = "general")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/general.rs"] +pub mod general; +#[cfg(feature = "if_arp")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/if_arp.rs"] +pub mod if_arp; +#[cfg(feature = "if_ether")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/if_ether.rs"] +pub mod if_ether; +#[cfg(feature = "if_packet")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/if_packet.rs"] +pub mod if_packet; +#[cfg(feature = "image")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/image.rs"] +pub mod image; +#[cfg(feature = "io_uring")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/io_uring.rs"] +pub mod io_uring; +#[cfg(feature = "ioctl")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/ioctl.rs"] +pub mod ioctl; +#[cfg(feature = "landlock")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/landlock.rs"] +pub mod landlock; +#[cfg(feature = "loop_device")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/loop_device.rs"] +pub mod loop_device; +#[cfg(feature = "mempolicy")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/mempolicy.rs"] +pub mod mempolicy; +#[cfg(feature = "net")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/net.rs"] +pub mod net; +#[cfg(feature = "netlink")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/netlink.rs"] +pub mod netlink; +#[cfg(feature = "prctl")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/prctl.rs"] +pub mod prctl; +#[cfg(feature = "ptrace")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/ptrace.rs"] +pub mod ptrace; +#[cfg(feature = "system")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/system.rs"] +pub mod system; +#[cfg(feature = "xdp")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/xdp.rs"] +pub mod xdp; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/if_arp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/if_arp.rs new file mode 100644 index 0000000000000000000000000000000000000000..525743a681d83577d5ef6a3c45c9528c6785bd66 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/if_arp.rs @@ -0,0 +1,2791 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_sa_family_t = crate::ctypes::c_ushort; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __kernel_sockaddr_storage { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { +pub ss_family: __kernel_sa_family_t, +pub __data: [crate::ctypes::c_char; 126usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sockaddr { +pub __storage: __kernel_sockaddr_storage, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sync_serial_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct te1_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +pub slot_map: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct raw_hdlc_proto { +pub encoding: crate::ctypes::c_ushort, +pub parity: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto { +pub t391: crate::ctypes::c_uint, +pub t392: crate::ctypes::c_uint, +pub n391: crate::ctypes::c_uint, +pub n392: crate::ctypes::c_uint, +pub n393: crate::ctypes::c_uint, +pub lmi: crate::ctypes::c_ushort, +pub dce: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc { +pub dlci: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc_info { +pub dlci: crate::ctypes::c_uint, +pub master: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cisco_proto { +pub interval: crate::ctypes::c_uint, +pub timeout: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct x25_hdlc_proto { +pub dce: crate::ctypes::c_ushort, +pub modulo: crate::ctypes::c_uint, +pub window: crate::ctypes::c_uint, +pub t1: crate::ctypes::c_uint, +pub t2: crate::ctypes::c_uint, +pub n2: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifmap { +pub mem_start: crate::ctypes::c_ulong, +pub mem_end: crate::ctypes::c_ulong, +pub base_addr: crate::ctypes::c_ushort, +pub irq: crate::ctypes::c_uchar, +pub dma: crate::ctypes::c_uchar, +pub port: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct if_settings { +pub type_: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +pub ifs_ifsu: if_settings__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifreq { +pub ifr_ifrn: ifreq__bindgen_ty_1, +pub ifr_ifru: ifreq__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifconf { +pub ifc_len: crate::ctypes::c_int, +pub ifc_ifcu: ifconf__bindgen_ty_1, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct ethhdr { +pub h_dest: [crate::ctypes::c_uchar; 6usize], +pub h_source: [crate::ctypes::c_uchar; 6usize], +pub h_proto: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_pkt { +pub spkt_family: crate::ctypes::c_ushort, +pub spkt_device: [crate::ctypes::c_uchar; 14usize], +pub spkt_protocol: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_ll { +pub sll_family: crate::ctypes::c_ushort, +pub sll_protocol: __be16, +pub sll_ifindex: crate::ctypes::c_int, +pub sll_hatype: crate::ctypes::c_ushort, +pub sll_pkttype: crate::ctypes::c_uchar, +pub sll_halen: crate::ctypes::c_uchar, +pub sll_addr: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats_v3 { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +pub tp_freeze_q_cnt: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_rollover_stats { +pub tp_all: __u64, +pub tp_huge: __u64, +pub tp_failed: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_auxdata { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr { +pub tp_status: crate::ctypes::c_ulong, +pub tp_len: crate::ctypes::c_uint, +pub tp_snaplen: crate::ctypes::c_uint, +pub tp_mac: crate::ctypes::c_ushort, +pub tp_net: crate::ctypes::c_ushort, +pub tp_sec: crate::ctypes::c_uint, +pub tp_usec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket2_hdr { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +pub tp_padding: [__u8; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr_variant1 { +pub tp_rxhash: __u32, +pub tp_vlan_tci: __u32, +pub tp_vlan_tpid: __u16, +pub tp_padding: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket3_hdr { +pub tp_next_offset: __u32, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_snaplen: __u32, +pub tp_len: __u32, +pub tp_status: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub __bindgen_anon_1: tpacket3_hdr__bindgen_ty_1, +pub tp_padding: [__u8; 8usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_bd_ts { +pub ts_sec: crate::ctypes::c_uint, +pub __bindgen_anon_1: tpacket_bd_ts__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_hdr_v1 { +pub block_status: __u32, +pub num_pkts: __u32, +pub offset_to_first_pkt: __u32, +pub blk_len: __u32, +pub seq_num: __u64, +pub ts_first_pkt: tpacket_bd_ts, +pub ts_last_pkt: tpacket_bd_ts, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_block_desc { +pub version: __u32, +pub offset_to_priv: __u32, +pub hdr: tpacket_bd_header_u, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req3 { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +pub tp_retire_blk_tov: crate::ctypes::c_uint, +pub tp_sizeof_priv: crate::ctypes::c_uint, +pub tp_feature_req_word: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct packet_mreq { +pub mr_ifindex: crate::ctypes::c_int, +pub mr_type: crate::ctypes::c_ushort, +pub mr_alen: crate::ctypes::c_ushort, +pub mr_address: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fanout_args { +pub id: __u16, +pub type_flags: __u16, +pub max_num_members: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_nl { +pub nl_family: __kernel_sa_family_t, +pub nl_pad: crate::ctypes::c_ushort, +pub nl_pid: __u32, +pub nl_groups: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsghdr { +pub nlmsg_len: __u32, +pub nlmsg_type: __u16, +pub nlmsg_flags: __u16, +pub nlmsg_seq: __u32, +pub nlmsg_pid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsgerr { +pub error: crate::ctypes::c_int, +pub msg: nlmsghdr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_pktinfo { +pub group: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_req { +pub nm_block_size: crate::ctypes::c_uint, +pub nm_block_nr: crate::ctypes::c_uint, +pub nm_frame_size: crate::ctypes::c_uint, +pub nm_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_hdr { +pub nm_status: crate::ctypes::c_uint, +pub nm_len: crate::ctypes::c_uint, +pub nm_group: __u32, +pub nm_pid: __u32, +pub nm_uid: __u32, +pub nm_gid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlattr { +pub nla_len: __u16, +pub nla_type: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nla_bitfield32 { +pub value: __u32, +pub selector: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats { +pub rx_packets: __u32, +pub tx_packets: __u32, +pub rx_bytes: __u32, +pub tx_bytes: __u32, +pub rx_errors: __u32, +pub tx_errors: __u32, +pub rx_dropped: __u32, +pub tx_dropped: __u32, +pub multicast: __u32, +pub collisions: __u32, +pub rx_length_errors: __u32, +pub rx_over_errors: __u32, +pub rx_crc_errors: __u32, +pub rx_frame_errors: __u32, +pub rx_fifo_errors: __u32, +pub rx_missed_errors: __u32, +pub tx_aborted_errors: __u32, +pub tx_carrier_errors: __u32, +pub tx_fifo_errors: __u32, +pub tx_heartbeat_errors: __u32, +pub tx_window_errors: __u32, +pub rx_compressed: __u32, +pub tx_compressed: __u32, +pub rx_nohandler: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +pub collisions: __u64, +pub rx_length_errors: __u64, +pub rx_over_errors: __u64, +pub rx_crc_errors: __u64, +pub rx_frame_errors: __u64, +pub rx_fifo_errors: __u64, +pub rx_missed_errors: __u64, +pub tx_aborted_errors: __u64, +pub tx_carrier_errors: __u64, +pub tx_fifo_errors: __u64, +pub tx_heartbeat_errors: __u64, +pub tx_window_errors: __u64, +pub rx_compressed: __u64, +pub tx_compressed: __u64, +pub rx_nohandler: __u64, +pub rx_otherhost_dropped: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_hw_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_ifmap { +pub mem_start: __u64, +pub mem_end: __u64, +pub base_addr: __u64, +pub irq: __u16, +pub dma: __u8, +pub port: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_bridge_id { +pub prio: [__u8; 2usize], +pub addr: [__u8; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_cacheinfo { +pub max_reasm_len: __u32, +pub tstamp: __u32, +pub reachable_time: __u32, +pub retrans_time: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_qos_mapping { +pub from: __u32, +pub to: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tunnel_msg { +pub family: __u8, +pub flags: __u8, +pub reserved2: __u16, +pub ifindex: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vxlan_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_geneve_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_mac { +pub vf: __u32, +pub mac: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_broadcast { +pub broadcast: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan_info { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +pub vlan_proto: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_tx_rate { +pub vf: __u32, +pub rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rate { +pub vf: __u32, +pub min_tx_rate: __u32, +pub max_tx_rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_spoofchk { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_guid { +pub vf: __u32, +pub guid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_link_state { +pub vf: __u32, +pub link_state: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rss_query_en { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_trust { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_port_vsi { +pub vsi_mgr_id: __u8, +pub vsi_type_id: [__u8; 3usize], +pub vsi_type_version: __u8, +pub pad: [__u8; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct if_stats_msg { +pub family: __u8, +pub pad1: __u8, +pub pad2: __u16, +pub ifindex: __u32, +pub filter_mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_rmnet_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct arpreq { +pub arp_pa: sockaddr, +pub arp_ha: sockaddr, +pub arp_flags: crate::ctypes::c_int, +pub arp_netmask: sockaddr, +pub arp_dev: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct arpreq_old { +pub arp_pa: sockaddr, +pub arp_ha: sockaddr, +pub arp_flags: crate::ctypes::c_int, +pub arp_netmask: sockaddr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct arphdr { +pub ar_hrd: __be16, +pub ar_pro: __be16, +pub ar_hln: crate::ctypes::c_uchar, +pub ar_pln: crate::ctypes::c_uchar, +pub ar_op: __be16, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _K_SS_MAXSIZE: u32 = 128; +pub const SOCK_SNDBUF_LOCK: u32 = 1; +pub const SOCK_RCVBUF_LOCK: u32 = 2; +pub const SOCK_BUF_LOCK_MASK: u32 = 3; +pub const SOCK_TXREHASH_DEFAULT: u32 = 255; +pub const SOCK_TXREHASH_DISABLED: u32 = 0; +pub const SOCK_TXREHASH_ENABLED: u32 = 1; +pub const IFNAMSIZ: u32 = 16; +pub const IFALIASZ: u32 = 256; +pub const ALTIFNAMSIZ: u32 = 128; +pub const GENERIC_HDLC_VERSION: u32 = 4; +pub const CLOCK_DEFAULT: u32 = 0; +pub const CLOCK_EXT: u32 = 1; +pub const CLOCK_INT: u32 = 2; +pub const CLOCK_TXINT: u32 = 3; +pub const CLOCK_TXFROMRX: u32 = 4; +pub const ENCODING_DEFAULT: u32 = 0; +pub const ENCODING_NRZ: u32 = 1; +pub const ENCODING_NRZI: u32 = 2; +pub const ENCODING_FM_MARK: u32 = 3; +pub const ENCODING_FM_SPACE: u32 = 4; +pub const ENCODING_MANCHESTER: u32 = 5; +pub const PARITY_DEFAULT: u32 = 0; +pub const PARITY_NONE: u32 = 1; +pub const PARITY_CRC16_PR0: u32 = 2; +pub const PARITY_CRC16_PR1: u32 = 3; +pub const PARITY_CRC16_PR0_CCITT: u32 = 4; +pub const PARITY_CRC16_PR1_CCITT: u32 = 5; +pub const PARITY_CRC32_PR0_CCITT: u32 = 6; +pub const PARITY_CRC32_PR1_CCITT: u32 = 7; +pub const LMI_DEFAULT: u32 = 0; +pub const LMI_NONE: u32 = 1; +pub const LMI_ANSI: u32 = 2; +pub const LMI_CCITT: u32 = 3; +pub const LMI_CISCO: u32 = 4; +pub const IF_GET_IFACE: u32 = 1; +pub const IF_GET_PROTO: u32 = 2; +pub const IF_IFACE_V35: u32 = 4096; +pub const IF_IFACE_V24: u32 = 4097; +pub const IF_IFACE_X21: u32 = 4098; +pub const IF_IFACE_T1: u32 = 4099; +pub const IF_IFACE_E1: u32 = 4100; +pub const IF_IFACE_SYNC_SERIAL: u32 = 4101; +pub const IF_IFACE_X21D: u32 = 4102; +pub const IF_PROTO_HDLC: u32 = 8192; +pub const IF_PROTO_PPP: u32 = 8193; +pub const IF_PROTO_CISCO: u32 = 8194; +pub const IF_PROTO_FR: u32 = 8195; +pub const IF_PROTO_FR_ADD_PVC: u32 = 8196; +pub const IF_PROTO_FR_DEL_PVC: u32 = 8197; +pub const IF_PROTO_X25: u32 = 8198; +pub const IF_PROTO_HDLC_ETH: u32 = 8199; +pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200; +pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201; +pub const IF_PROTO_FR_PVC: u32 = 8202; +pub const IF_PROTO_FR_ETH_PVC: u32 = 8203; +pub const IF_PROTO_RAW: u32 = 8204; +pub const IFHWADDRLEN: u32 = 6; +pub const ETH_ALEN: u32 = 6; +pub const ETH_TLEN: u32 = 2; +pub const ETH_HLEN: u32 = 14; +pub const ETH_ZLEN: u32 = 60; +pub const ETH_DATA_LEN: u32 = 1500; +pub const ETH_FRAME_LEN: u32 = 1514; +pub const ETH_FCS_LEN: u32 = 4; +pub const ETH_MIN_MTU: u32 = 68; +pub const ETH_MAX_MTU: u32 = 65535; +pub const ETH_P_LOOP: u32 = 96; +pub const ETH_P_PUP: u32 = 512; +pub const ETH_P_PUPAT: u32 = 513; +pub const ETH_P_TSN: u32 = 8944; +pub const ETH_P_ERSPAN2: u32 = 8939; +pub const ETH_P_IP: u32 = 2048; +pub const ETH_P_X25: u32 = 2053; +pub const ETH_P_ARP: u32 = 2054; +pub const ETH_P_BPQ: u32 = 2303; +pub const ETH_P_IEEEPUP: u32 = 2560; +pub const ETH_P_IEEEPUPAT: u32 = 2561; +pub const ETH_P_BATMAN: u32 = 17157; +pub const ETH_P_DEC: u32 = 24576; +pub const ETH_P_DNA_DL: u32 = 24577; +pub const ETH_P_DNA_RC: u32 = 24578; +pub const ETH_P_DNA_RT: u32 = 24579; +pub const ETH_P_LAT: u32 = 24580; +pub const ETH_P_DIAG: u32 = 24581; +pub const ETH_P_CUST: u32 = 24582; +pub const ETH_P_SCA: u32 = 24583; +pub const ETH_P_TEB: u32 = 25944; +pub const ETH_P_RARP: u32 = 32821; +pub const ETH_P_ATALK: u32 = 32923; +pub const ETH_P_AARP: u32 = 33011; +pub const ETH_P_8021Q: u32 = 33024; +pub const ETH_P_ERSPAN: u32 = 35006; +pub const ETH_P_IPX: u32 = 33079; +pub const ETH_P_IPV6: u32 = 34525; +pub const ETH_P_PAUSE: u32 = 34824; +pub const ETH_P_SLOW: u32 = 34825; +pub const ETH_P_WCCP: u32 = 34878; +pub const ETH_P_MPLS_UC: u32 = 34887; +pub const ETH_P_MPLS_MC: u32 = 34888; +pub const ETH_P_ATMMPOA: u32 = 34892; +pub const ETH_P_PPP_DISC: u32 = 34915; +pub const ETH_P_PPP_SES: u32 = 34916; +pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_ATMFATE: u32 = 34948; +pub const ETH_P_PAE: u32 = 34958; +pub const ETH_P_PROFINET: u32 = 34962; +pub const ETH_P_REALTEK: u32 = 34969; +pub const ETH_P_AOE: u32 = 34978; +pub const ETH_P_ETHERCAT: u32 = 34980; +pub const ETH_P_8021AD: u32 = 34984; +pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_PREAUTH: u32 = 35015; +pub const ETH_P_TIPC: u32 = 35018; +pub const ETH_P_LLDP: u32 = 35020; +pub const ETH_P_MRP: u32 = 35043; +pub const ETH_P_MACSEC: u32 = 35045; +pub const ETH_P_8021AH: u32 = 35047; +pub const ETH_P_MVRP: u32 = 35061; +pub const ETH_P_1588: u32 = 35063; +pub const ETH_P_NCSI: u32 = 35064; +pub const ETH_P_PRP: u32 = 35067; +pub const ETH_P_CFM: u32 = 35074; +pub const ETH_P_FCOE: u32 = 35078; +pub const ETH_P_IBOE: u32 = 35093; +pub const ETH_P_TDLS: u32 = 35085; +pub const ETH_P_FIP: u32 = 35092; +pub const ETH_P_80221: u32 = 35095; +pub const ETH_P_HSR: u32 = 35119; +pub const ETH_P_NSH: u32 = 35151; +pub const ETH_P_LOOPBACK: u32 = 36864; +pub const ETH_P_QINQ1: u32 = 37120; +pub const ETH_P_QINQ2: u32 = 37376; +pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_EDSA: u32 = 56026; +pub const ETH_P_DSA_8021Q: u32 = 56027; +pub const ETH_P_DSA_A5PSW: u32 = 57345; +pub const ETH_P_IFE: u32 = 60734; +pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_802_3_MIN: u32 = 1536; +pub const ETH_P_802_3: u32 = 1; +pub const ETH_P_AX25: u32 = 2; +pub const ETH_P_ALL: u32 = 3; +pub const ETH_P_802_2: u32 = 4; +pub const ETH_P_SNAP: u32 = 5; +pub const ETH_P_DDCMP: u32 = 6; +pub const ETH_P_WAN_PPP: u32 = 7; +pub const ETH_P_PPP_MP: u32 = 8; +pub const ETH_P_LOCALTALK: u32 = 9; +pub const ETH_P_CAN: u32 = 12; +pub const ETH_P_CANFD: u32 = 13; +pub const ETH_P_CANXL: u32 = 14; +pub const ETH_P_PPPTALK: u32 = 16; +pub const ETH_P_TR_802_2: u32 = 17; +pub const ETH_P_MOBITEX: u32 = 21; +pub const ETH_P_CONTROL: u32 = 22; +pub const ETH_P_IRDA: u32 = 23; +pub const ETH_P_ECONET: u32 = 24; +pub const ETH_P_HDLC: u32 = 25; +pub const ETH_P_ARCNET: u32 = 26; +pub const ETH_P_DSA: u32 = 27; +pub const ETH_P_TRAILER: u32 = 28; +pub const ETH_P_PHONET: u32 = 245; +pub const ETH_P_IEEE802154: u32 = 246; +pub const ETH_P_CAIF: u32 = 247; +pub const ETH_P_XDSA: u32 = 248; +pub const ETH_P_MAP: u32 = 249; +pub const ETH_P_MCTP: u32 = 250; +pub const __LITTLE_ENDIAN: u32 = 1234; +pub const PACKET_HOST: u32 = 0; +pub const PACKET_BROADCAST: u32 = 1; +pub const PACKET_MULTICAST: u32 = 2; +pub const PACKET_OTHERHOST: u32 = 3; +pub const PACKET_OUTGOING: u32 = 4; +pub const PACKET_LOOPBACK: u32 = 5; +pub const PACKET_USER: u32 = 6; +pub const PACKET_KERNEL: u32 = 7; +pub const PACKET_FASTROUTE: u32 = 6; +pub const PACKET_ADD_MEMBERSHIP: u32 = 1; +pub const PACKET_DROP_MEMBERSHIP: u32 = 2; +pub const PACKET_RECV_OUTPUT: u32 = 3; +pub const PACKET_RX_RING: u32 = 5; +pub const PACKET_STATISTICS: u32 = 6; +pub const PACKET_COPY_THRESH: u32 = 7; +pub const PACKET_AUXDATA: u32 = 8; +pub const PACKET_ORIGDEV: u32 = 9; +pub const PACKET_VERSION: u32 = 10; +pub const PACKET_HDRLEN: u32 = 11; +pub const PACKET_RESERVE: u32 = 12; +pub const PACKET_TX_RING: u32 = 13; +pub const PACKET_LOSS: u32 = 14; +pub const PACKET_VNET_HDR: u32 = 15; +pub const PACKET_TX_TIMESTAMP: u32 = 16; +pub const PACKET_TIMESTAMP: u32 = 17; +pub const PACKET_FANOUT: u32 = 18; +pub const PACKET_TX_HAS_OFF: u32 = 19; +pub const PACKET_QDISC_BYPASS: u32 = 20; +pub const PACKET_ROLLOVER_STATS: u32 = 21; +pub const PACKET_FANOUT_DATA: u32 = 22; +pub const PACKET_IGNORE_OUTGOING: u32 = 23; +pub const PACKET_VNET_HDR_SZ: u32 = 24; +pub const PACKET_FANOUT_HASH: u32 = 0; +pub const PACKET_FANOUT_LB: u32 = 1; +pub const PACKET_FANOUT_CPU: u32 = 2; +pub const PACKET_FANOUT_ROLLOVER: u32 = 3; +pub const PACKET_FANOUT_RND: u32 = 4; +pub const PACKET_FANOUT_QM: u32 = 5; +pub const PACKET_FANOUT_CBPF: u32 = 6; +pub const PACKET_FANOUT_EBPF: u32 = 7; +pub const PACKET_FANOUT_FLAG_ROLLOVER: u32 = 4096; +pub const PACKET_FANOUT_FLAG_UNIQUEID: u32 = 8192; +pub const PACKET_FANOUT_FLAG_IGNORE_OUTGOING: u32 = 16384; +pub const PACKET_FANOUT_FLAG_DEFRAG: u32 = 32768; +pub const TP_STATUS_KERNEL: u32 = 0; +pub const TP_STATUS_USER: u32 = 1; +pub const TP_STATUS_COPY: u32 = 2; +pub const TP_STATUS_LOSING: u32 = 4; +pub const TP_STATUS_CSUMNOTREADY: u32 = 8; +pub const TP_STATUS_VLAN_VALID: u32 = 16; +pub const TP_STATUS_BLK_TMO: u32 = 32; +pub const TP_STATUS_VLAN_TPID_VALID: u32 = 64; +pub const TP_STATUS_CSUM_VALID: u32 = 128; +pub const TP_STATUS_GSO_TCP: u32 = 256; +pub const TP_STATUS_AVAILABLE: u32 = 0; +pub const TP_STATUS_SEND_REQUEST: u32 = 1; +pub const TP_STATUS_SENDING: u32 = 2; +pub const TP_STATUS_WRONG_FORMAT: u32 = 4; +pub const TP_STATUS_TS_SOFTWARE: u32 = 536870912; +pub const TP_STATUS_TS_SYS_HARDWARE: u32 = 1073741824; +pub const TP_STATUS_TS_RAW_HARDWARE: u32 = 2147483648; +pub const TP_FT_REQ_FILL_RXHASH: u32 = 1; +pub const TPACKET_ALIGNMENT: u32 = 16; +pub const PACKET_MR_MULTICAST: u32 = 0; +pub const PACKET_MR_PROMISC: u32 = 1; +pub const PACKET_MR_ALLMULTI: u32 = 2; +pub const PACKET_MR_UNICAST: u32 = 3; +pub const NETLINK_ROUTE: u32 = 0; +pub const NETLINK_UNUSED: u32 = 1; +pub const NETLINK_USERSOCK: u32 = 2; +pub const NETLINK_FIREWALL: u32 = 3; +pub const NETLINK_SOCK_DIAG: u32 = 4; +pub const NETLINK_NFLOG: u32 = 5; +pub const NETLINK_XFRM: u32 = 6; +pub const NETLINK_SELINUX: u32 = 7; +pub const NETLINK_ISCSI: u32 = 8; +pub const NETLINK_AUDIT: u32 = 9; +pub const NETLINK_FIB_LOOKUP: u32 = 10; +pub const NETLINK_CONNECTOR: u32 = 11; +pub const NETLINK_NETFILTER: u32 = 12; +pub const NETLINK_IP6_FW: u32 = 13; +pub const NETLINK_DNRTMSG: u32 = 14; +pub const NETLINK_KOBJECT_UEVENT: u32 = 15; +pub const NETLINK_GENERIC: u32 = 16; +pub const NETLINK_SCSITRANSPORT: u32 = 18; +pub const NETLINK_ECRYPTFS: u32 = 19; +pub const NETLINK_RDMA: u32 = 20; +pub const NETLINK_CRYPTO: u32 = 21; +pub const NETLINK_SMC: u32 = 22; +pub const NETLINK_INET_DIAG: u32 = 4; +pub const MAX_LINKS: u32 = 32; +pub const NLM_F_REQUEST: u32 = 1; +pub const NLM_F_MULTI: u32 = 2; +pub const NLM_F_ACK: u32 = 4; +pub const NLM_F_ECHO: u32 = 8; +pub const NLM_F_DUMP_INTR: u32 = 16; +pub const NLM_F_DUMP_FILTERED: u32 = 32; +pub const NLM_F_ROOT: u32 = 256; +pub const NLM_F_MATCH: u32 = 512; +pub const NLM_F_ATOMIC: u32 = 1024; +pub const NLM_F_DUMP: u32 = 768; +pub const NLM_F_REPLACE: u32 = 256; +pub const NLM_F_EXCL: u32 = 512; +pub const NLM_F_CREATE: u32 = 1024; +pub const NLM_F_APPEND: u32 = 2048; +pub const NLM_F_NONREC: u32 = 256; +pub const NLM_F_BULK: u32 = 512; +pub const NLM_F_CAPPED: u32 = 256; +pub const NLM_F_ACK_TLVS: u32 = 512; +pub const NLMSG_ALIGNTO: u32 = 4; +pub const NLMSG_NOOP: u32 = 1; +pub const NLMSG_ERROR: u32 = 2; +pub const NLMSG_DONE: u32 = 3; +pub const NLMSG_OVERRUN: u32 = 4; +pub const NLMSG_MIN_TYPE: u32 = 16; +pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; +pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; +pub const NETLINK_PKTINFO: u32 = 3; +pub const NETLINK_BROADCAST_ERROR: u32 = 4; +pub const NETLINK_NO_ENOBUFS: u32 = 5; +pub const NETLINK_RX_RING: u32 = 6; +pub const NETLINK_TX_RING: u32 = 7; +pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; +pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; +pub const NETLINK_CAP_ACK: u32 = 10; +pub const NETLINK_EXT_ACK: u32 = 11; +pub const NETLINK_GET_STRICT_CHK: u32 = 12; +pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; +pub const NET_MAJOR: u32 = 36; +pub const NLA_F_NESTED: u32 = 32768; +pub const NLA_F_NET_BYTEORDER: u32 = 16384; +pub const NLA_TYPE_MASK: i32 = -49153; +pub const NLA_ALIGNTO: u32 = 4; +pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; +pub const MACVLAN_FLAG_NODST: u32 = 2; +pub const IPVLAN_F_PRIVATE: u32 = 1; +pub const IPVLAN_F_VEPA: u32 = 2; +pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; +pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; +pub const MAX_VLAN_LIST_LEN: u32 = 1; +pub const PORT_PROFILE_MAX: u32 = 40; +pub const PORT_UUID_MAX: u32 = 16; +pub const PORT_SELF_VF: i32 = -1; +pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; +pub const XDP_FLAGS_SKB_MODE: u32 = 2; +pub const XDP_FLAGS_DRV_MODE: u32 = 4; +pub const XDP_FLAGS_HW_MODE: u32 = 8; +pub const XDP_FLAGS_REPLACE: u32 = 16; +pub const XDP_FLAGS_MODES: u32 = 14; +pub const XDP_FLAGS_MASK: u32 = 31; +pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; +pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; +pub const MAX_ADDR_LEN: u32 = 32; +pub const INIT_NETDEV_GROUP: u32 = 0; +pub const NET_NAME_UNKNOWN: u32 = 0; +pub const NET_NAME_ENUM: u32 = 1; +pub const NET_NAME_PREDICTABLE: u32 = 2; +pub const NET_NAME_USER: u32 = 3; +pub const NET_NAME_RENAMED: u32 = 4; +pub const NET_ADDR_PERM: u32 = 0; +pub const NET_ADDR_RANDOM: u32 = 1; +pub const NET_ADDR_STOLEN: u32 = 2; +pub const NET_ADDR_SET: u32 = 3; +pub const ARPHRD_NETROM: u32 = 0; +pub const ARPHRD_ETHER: u32 = 1; +pub const ARPHRD_EETHER: u32 = 2; +pub const ARPHRD_AX25: u32 = 3; +pub const ARPHRD_PRONET: u32 = 4; +pub const ARPHRD_CHAOS: u32 = 5; +pub const ARPHRD_IEEE802: u32 = 6; +pub const ARPHRD_ARCNET: u32 = 7; +pub const ARPHRD_APPLETLK: u32 = 8; +pub const ARPHRD_DLCI: u32 = 15; +pub const ARPHRD_ATM: u32 = 19; +pub const ARPHRD_METRICOM: u32 = 23; +pub const ARPHRD_IEEE1394: u32 = 24; +pub const ARPHRD_EUI64: u32 = 27; +pub const ARPHRD_INFINIBAND: u32 = 32; +pub const ARPHRD_SLIP: u32 = 256; +pub const ARPHRD_CSLIP: u32 = 257; +pub const ARPHRD_SLIP6: u32 = 258; +pub const ARPHRD_CSLIP6: u32 = 259; +pub const ARPHRD_RSRVD: u32 = 260; +pub const ARPHRD_ADAPT: u32 = 264; +pub const ARPHRD_ROSE: u32 = 270; +pub const ARPHRD_X25: u32 = 271; +pub const ARPHRD_HWX25: u32 = 272; +pub const ARPHRD_CAN: u32 = 280; +pub const ARPHRD_MCTP: u32 = 290; +pub const ARPHRD_PPP: u32 = 512; +pub const ARPHRD_CISCO: u32 = 513; +pub const ARPHRD_HDLC: u32 = 513; +pub const ARPHRD_LAPB: u32 = 516; +pub const ARPHRD_DDCMP: u32 = 517; +pub const ARPHRD_RAWHDLC: u32 = 518; +pub const ARPHRD_RAWIP: u32 = 519; +pub const ARPHRD_TUNNEL: u32 = 768; +pub const ARPHRD_TUNNEL6: u32 = 769; +pub const ARPHRD_FRAD: u32 = 770; +pub const ARPHRD_SKIP: u32 = 771; +pub const ARPHRD_LOOPBACK: u32 = 772; +pub const ARPHRD_LOCALTLK: u32 = 773; +pub const ARPHRD_FDDI: u32 = 774; +pub const ARPHRD_BIF: u32 = 775; +pub const ARPHRD_SIT: u32 = 776; +pub const ARPHRD_IPDDP: u32 = 777; +pub const ARPHRD_IPGRE: u32 = 778; +pub const ARPHRD_PIMREG: u32 = 779; +pub const ARPHRD_HIPPI: u32 = 780; +pub const ARPHRD_ASH: u32 = 781; +pub const ARPHRD_ECONET: u32 = 782; +pub const ARPHRD_IRDA: u32 = 783; +pub const ARPHRD_FCPP: u32 = 784; +pub const ARPHRD_FCAL: u32 = 785; +pub const ARPHRD_FCPL: u32 = 786; +pub const ARPHRD_FCFABRIC: u32 = 787; +pub const ARPHRD_IEEE802_TR: u32 = 800; +pub const ARPHRD_IEEE80211: u32 = 801; +pub const ARPHRD_IEEE80211_PRISM: u32 = 802; +pub const ARPHRD_IEEE80211_RADIOTAP: u32 = 803; +pub const ARPHRD_IEEE802154: u32 = 804; +pub const ARPHRD_IEEE802154_MONITOR: u32 = 805; +pub const ARPHRD_PHONET: u32 = 820; +pub const ARPHRD_PHONET_PIPE: u32 = 821; +pub const ARPHRD_CAIF: u32 = 822; +pub const ARPHRD_IP6GRE: u32 = 823; +pub const ARPHRD_NETLINK: u32 = 824; +pub const ARPHRD_6LOWPAN: u32 = 825; +pub const ARPHRD_VSOCKMON: u32 = 826; +pub const ARPHRD_VOID: u32 = 65535; +pub const ARPHRD_NONE: u32 = 65534; +pub const ARPOP_REQUEST: u32 = 1; +pub const ARPOP_REPLY: u32 = 2; +pub const ARPOP_RREQUEST: u32 = 3; +pub const ARPOP_RREPLY: u32 = 4; +pub const ARPOP_InREQUEST: u32 = 8; +pub const ARPOP_InREPLY: u32 = 9; +pub const ARPOP_NAK: u32 = 10; +pub const ATF_COM: u32 = 2; +pub const ATF_PERM: u32 = 4; +pub const ATF_PUBL: u32 = 8; +pub const ATF_USETRAILERS: u32 = 16; +pub const ATF_NETMASK: u32 = 32; +pub const ATF_DONTPUB: u32 = 64; +pub const IF_OPER_UNKNOWN: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_UNKNOWN; +pub const IF_OPER_NOTPRESENT: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_NOTPRESENT; +pub const IF_OPER_DOWN: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_DOWN; +pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_LOWERLAYERDOWN; +pub const IF_OPER_TESTING: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_TESTING; +pub const IF_OPER_DORMANT: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_DORMANT; +pub const IF_OPER_UP: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_UP; +pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_2 = _bindgen_ty_2::IF_LINK_MODE_DEFAULT; +pub const IF_LINK_MODE_DORMANT: _bindgen_ty_2 = _bindgen_ty_2::IF_LINK_MODE_DORMANT; +pub const IF_LINK_MODE_TESTING: _bindgen_ty_2 = _bindgen_ty_2::IF_LINK_MODE_TESTING; +pub const NETLINK_UNCONNECTED: _bindgen_ty_3 = _bindgen_ty_3::NETLINK_UNCONNECTED; +pub const NETLINK_CONNECTED: _bindgen_ty_3 = _bindgen_ty_3::NETLINK_CONNECTED; +pub const IFLA_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_UNSPEC; +pub const IFLA_ADDRESS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_ADDRESS; +pub const IFLA_BROADCAST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_BROADCAST; +pub const IFLA_IFNAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IFNAME; +pub const IFLA_MTU: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MTU; +pub const IFLA_LINK: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINK; +pub const IFLA_QDISC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_QDISC; +pub const IFLA_STATS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_STATS; +pub const IFLA_COST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_COST; +pub const IFLA_PRIORITY: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PRIORITY; +pub const IFLA_MASTER: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MASTER; +pub const IFLA_WIRELESS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_WIRELESS; +pub const IFLA_PROTINFO: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROTINFO; +pub const IFLA_TXQLEN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TXQLEN; +pub const IFLA_MAP: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAP; +pub const IFLA_WEIGHT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_WEIGHT; +pub const IFLA_OPERSTATE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_OPERSTATE; +pub const IFLA_LINKMODE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINKMODE; +pub const IFLA_LINKINFO: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINKINFO; +pub const IFLA_NET_NS_PID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NET_NS_PID; +pub const IFLA_IFALIAS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IFALIAS; +pub const IFLA_NUM_VF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NUM_VF; +pub const IFLA_VFINFO_LIST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_VFINFO_LIST; +pub const IFLA_STATS64: _bindgen_ty_4 = _bindgen_ty_4::IFLA_STATS64; +pub const IFLA_VF_PORTS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_VF_PORTS; +pub const IFLA_PORT_SELF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PORT_SELF; +pub const IFLA_AF_SPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_AF_SPEC; +pub const IFLA_GROUP: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GROUP; +pub const IFLA_NET_NS_FD: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NET_NS_FD; +pub const IFLA_EXT_MASK: _bindgen_ty_4 = _bindgen_ty_4::IFLA_EXT_MASK; +pub const IFLA_PROMISCUITY: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROMISCUITY; +pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NUM_TX_QUEUES; +pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NUM_RX_QUEUES; +pub const IFLA_CARRIER: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER; +pub const IFLA_PHYS_PORT_ID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PHYS_PORT_ID; +pub const IFLA_CARRIER_CHANGES: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER_CHANGES; +pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PHYS_SWITCH_ID; +pub const IFLA_LINK_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINK_NETNSID; +pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PHYS_PORT_NAME; +pub const IFLA_PROTO_DOWN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROTO_DOWN; +pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_MAX_SEGS; +pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_MAX_SIZE; +pub const IFLA_PAD: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PAD; +pub const IFLA_XDP: _bindgen_ty_4 = _bindgen_ty_4::IFLA_XDP; +pub const IFLA_EVENT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_EVENT; +pub const IFLA_NEW_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NEW_NETNSID; +pub const IFLA_IF_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IF_NETNSID; +pub const IFLA_TARGET_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IF_NETNSID; +pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER_UP_COUNT; +pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER_DOWN_COUNT; +pub const IFLA_NEW_IFINDEX: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NEW_IFINDEX; +pub const IFLA_MIN_MTU: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MIN_MTU; +pub const IFLA_MAX_MTU: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_MTU; +pub const IFLA_PROP_LIST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROP_LIST; +pub const IFLA_ALT_IFNAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_ALT_IFNAME; +pub const IFLA_PERM_ADDRESS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PERM_ADDRESS; +pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROTO_DOWN_REASON; +pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PARENT_DEV_NAME; +pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PARENT_DEV_BUS_NAME; +pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_MAX_SIZE; +pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TSO_MAX_SIZE; +pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TSO_MAX_SEGS; +pub const IFLA_ALLMULTI: _bindgen_ty_4 = _bindgen_ty_4::IFLA_ALLMULTI; +pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT; +pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE; +pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE; +pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON; +pub const IFLA_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX; +pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC; +pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_MASK; +pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_VALUE; +pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_PROTO_DOWN_REASON_CNT; +pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_VALUE; +pub const IFLA_INET_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_INET_UNSPEC; +pub const IFLA_INET_CONF: _bindgen_ty_6 = _bindgen_ty_6::IFLA_INET_CONF; +pub const __IFLA_INET_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_INET_MAX; +pub const IFLA_INET6_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_UNSPEC; +pub const IFLA_INET6_FLAGS: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_FLAGS; +pub const IFLA_INET6_CONF: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_CONF; +pub const IFLA_INET6_STATS: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_STATS; +pub const IFLA_INET6_MCAST: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_MCAST; +pub const IFLA_INET6_CACHEINFO: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_CACHEINFO; +pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_ICMP6STATS; +pub const IFLA_INET6_TOKEN: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_TOKEN; +pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_ADDR_GEN_MODE; +pub const IFLA_INET6_RA_MTU: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_RA_MTU; +pub const __IFLA_INET6_MAX: _bindgen_ty_7 = _bindgen_ty_7::__IFLA_INET6_MAX; +pub const IFLA_BR_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_UNSPEC; +pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FORWARD_DELAY; +pub const IFLA_BR_HELLO_TIME: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_HELLO_TIME; +pub const IFLA_BR_MAX_AGE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MAX_AGE; +pub const IFLA_BR_AGEING_TIME: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_AGEING_TIME; +pub const IFLA_BR_STP_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_STATE; +pub const IFLA_BR_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_PRIORITY; +pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_FILTERING; +pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_PROTOCOL; +pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_GROUP_FWD_MASK; +pub const IFLA_BR_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_ROOT_ID; +pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_BRIDGE_ID; +pub const IFLA_BR_ROOT_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_ROOT_PORT; +pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_ROOT_PATH_COST; +pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TOPOLOGY_CHANGE; +pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; +pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_HELLO_TIMER; +pub const IFLA_BR_TCN_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TCN_TIMER; +pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TOPOLOGY_CHANGE_TIMER; +pub const IFLA_BR_GC_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_GC_TIMER; +pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_GROUP_ADDR; +pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_FLUSH; +pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_ROUTER; +pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_SNOOPING; +pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERY_USE_IFADDR; +pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER; +pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_HASH_ELASTICITY; +pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_HASH_MAX; +pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_LAST_MEMBER_CNT; +pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_STARTUP_QUERY_CNT; +pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_LAST_MEMBER_INTVL; +pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_MEMBERSHIP_INTVL; +pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_INTVL; +pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERY_INTVL; +pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; +pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; +pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_NF_CALL_IPTABLES; +pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_NF_CALL_IP6TABLES; +pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_NF_CALL_ARPTABLES; +pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_DEFAULT_PVID; +pub const IFLA_BR_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_PAD; +pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_STATS_ENABLED; +pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_STATS_ENABLED; +pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_IGMP_VERSION; +pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_MLD_VERSION; +pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_STATS_PER_PORT; +pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BOOLOPT; +pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; +pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; +pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; +pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; +pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; +pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_UNSPEC; +pub const IFLA_BRPORT_STATE: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_STATE; +pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PRIORITY; +pub const IFLA_BRPORT_COST: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_COST; +pub const IFLA_BRPORT_MODE: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MODE; +pub const IFLA_BRPORT_GUARD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_GUARD; +pub const IFLA_BRPORT_PROTECT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PROTECT; +pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_FAST_LEAVE; +pub const IFLA_BRPORT_LEARNING: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_LEARNING; +pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_UNICAST_FLOOD; +pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PROXYARP; +pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_LEARNING_SYNC; +pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PROXYARP_WIFI; +pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_ROOT_ID; +pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BRIDGE_ID; +pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_DESIGNATED_PORT; +pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_DESIGNATED_COST; +pub const IFLA_BRPORT_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_ID; +pub const IFLA_BRPORT_NO: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NO; +pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; +pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_CONFIG_PENDING; +pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MESSAGE_AGE_TIMER; +pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_FORWARD_DELAY_TIMER; +pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_HOLD_TIMER; +pub const IFLA_BRPORT_FLUSH: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_FLUSH; +pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MULTICAST_ROUTER; +pub const IFLA_BRPORT_PAD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PAD; +pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_FLOOD; +pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_TO_UCAST; +pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_VLAN_TUNNEL; +pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BCAST_FLOOD; +pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_GROUP_FWD_MASK; +pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_SUPPRESS; +pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_ISOLATED; +pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_PORT; +pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MRP_RING_OPEN; +pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MRP_IN_OPEN; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; +pub const IFLA_BRPORT_LOCKED: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_LOCKED; +pub const IFLA_BRPORT_MAB: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MAB; +pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_N_GROUPS; +pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; +pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; +pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; +pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; +pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; +pub const IFLA_INFO_DATA: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_DATA; +pub const IFLA_INFO_XSTATS: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_XSTATS; +pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_SLAVE_KIND; +pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_SLAVE_DATA; +pub const __IFLA_INFO_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_INFO_MAX; +pub const IFLA_VLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_UNSPEC; +pub const IFLA_VLAN_ID: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_ID; +pub const IFLA_VLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_FLAGS; +pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_EGRESS_QOS; +pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_INGRESS_QOS; +pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_PROTOCOL; +pub const __IFLA_VLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_VLAN_MAX; +pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VLAN_QOS_UNSPEC; +pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VLAN_QOS_MAPPING; +pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VLAN_QOS_MAX; +pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_UNSPEC; +pub const IFLA_MACVLAN_MODE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MODE; +pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_FLAGS; +pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR_MODE; +pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR; +pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR_DATA; +pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR_COUNT; +pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_BC_QUEUE_LEN; +pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_BC_QUEUE_LEN_USED; +pub const IFLA_MACVLAN_BC_CUTOFF: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_BC_CUTOFF; +pub const __IFLA_MACVLAN_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_MACVLAN_MAX; +pub const IFLA_VRF_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_VRF_UNSPEC; +pub const IFLA_VRF_TABLE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_VRF_TABLE; +pub const __IFLA_VRF_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_VRF_MAX; +pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_VRF_PORT_UNSPEC; +pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_16 = _bindgen_ty_16::IFLA_VRF_PORT_TABLE; +pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_VRF_PORT_MAX; +pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_UNSPEC; +pub const IFLA_MACSEC_SCI: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_SCI; +pub const IFLA_MACSEC_PORT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_PORT; +pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ICV_LEN; +pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_CIPHER_SUITE; +pub const IFLA_MACSEC_WINDOW: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_WINDOW; +pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ENCODING_SA; +pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ENCRYPT; +pub const IFLA_MACSEC_PROTECT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_PROTECT; +pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_INC_SCI; +pub const IFLA_MACSEC_ES: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ES; +pub const IFLA_MACSEC_SCB: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_SCB; +pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_REPLAY_PROTECT; +pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_VALIDATION; +pub const IFLA_MACSEC_PAD: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_PAD; +pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_OFFLOAD; +pub const __IFLA_MACSEC_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_MACSEC_MAX; +pub const IFLA_XFRM_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_UNSPEC; +pub const IFLA_XFRM_LINK: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_LINK; +pub const IFLA_XFRM_IF_ID: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_IF_ID; +pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_COLLECT_METADATA; +pub const __IFLA_XFRM_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_XFRM_MAX; +pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::IFLA_IPVLAN_UNSPEC; +pub const IFLA_IPVLAN_MODE: _bindgen_ty_19 = _bindgen_ty_19::IFLA_IPVLAN_MODE; +pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_19 = _bindgen_ty_19::IFLA_IPVLAN_FLAGS; +pub const __IFLA_IPVLAN_MAX: _bindgen_ty_19 = _bindgen_ty_19::__IFLA_IPVLAN_MAX; +pub const IFLA_NETKIT_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_UNSPEC; +pub const IFLA_NETKIT_PEER_INFO: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_INFO; +pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PRIMARY; +pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY; +pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY; +pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB; +pub const IFLA_NETKIT_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; +pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX; +pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC; +pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_BYTES; +pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_PKTS; +pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_DROPS; +pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_BYTES; +pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_PKTS; +pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_DROPS; +pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_PAD; +pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_21 = _bindgen_ty_21::__VNIFILTER_ENTRY_STATS_MAX; +pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_START; +pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_END; +pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_GROUP; +pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_GROUP6; +pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_STATS; +pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_22 = _bindgen_ty_22::__VXLAN_VNIFILTER_ENTRY_MAX; +pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::VXLAN_VNIFILTER_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_23 = _bindgen_ty_23::VXLAN_VNIFILTER_ENTRY; +pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_23 = _bindgen_ty_23::__VXLAN_VNIFILTER_MAX; +pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UNSPEC; +pub const IFLA_VXLAN_ID: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_ID; +pub const IFLA_VXLAN_GROUP: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GROUP; +pub const IFLA_VXLAN_LINK: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LINK; +pub const IFLA_VXLAN_LOCAL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LOCAL; +pub const IFLA_VXLAN_TTL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_TTL; +pub const IFLA_VXLAN_TOS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_TOS; +pub const IFLA_VXLAN_LEARNING: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LEARNING; +pub const IFLA_VXLAN_AGEING: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_AGEING; +pub const IFLA_VXLAN_LIMIT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LIMIT; +pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_PORT_RANGE; +pub const IFLA_VXLAN_PROXY: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_PROXY; +pub const IFLA_VXLAN_RSC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_RSC; +pub const IFLA_VXLAN_L2MISS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_L2MISS; +pub const IFLA_VXLAN_L3MISS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_L3MISS; +pub const IFLA_VXLAN_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_PORT; +pub const IFLA_VXLAN_GROUP6: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GROUP6; +pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LOCAL6; +pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UDP_CSUM; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; +pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_REMCSUM_TX; +pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_REMCSUM_RX; +pub const IFLA_VXLAN_GBP: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GBP; +pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_REMCSUM_NOPARTIAL; +pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_COLLECT_METADATA; +pub const IFLA_VXLAN_LABEL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LABEL; +pub const IFLA_VXLAN_GPE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GPE; +pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_TTL_INHERIT; +pub const IFLA_VXLAN_DF: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_DF; +pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_VNIFILTER; +pub const IFLA_VXLAN_LOCALBYPASS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LOCALBYPASS; +pub const IFLA_VXLAN_LABEL_POLICY: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LABEL_POLICY; +pub const IFLA_VXLAN_RESERVED_BITS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_RESERVED_BITS; +pub const __IFLA_VXLAN_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_VXLAN_MAX; +pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UNSPEC; +pub const IFLA_GENEVE_ID: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ID; +pub const IFLA_GENEVE_REMOTE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_REMOTE; +pub const IFLA_GENEVE_TTL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_TTL; +pub const IFLA_GENEVE_TOS: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_TOS; +pub const IFLA_GENEVE_PORT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT; +pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_COLLECT_METADATA; +pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_REMOTE6; +pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UDP_CSUM; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; +pub const IFLA_GENEVE_LABEL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LABEL; +pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_TTL_INHERIT; +pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; +pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; +pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; +pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; +pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; +pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_ETHERTYPE; +pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_SRCPORT_MIN; +pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_MULTIPROTO_MODE; +pub const __IFLA_BAREUDP_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_BAREUDP_MAX; +pub const IFLA_PPP_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_PPP_UNSPEC; +pub const IFLA_PPP_DEV_FD: _bindgen_ty_27 = _bindgen_ty_27::IFLA_PPP_DEV_FD; +pub const __IFLA_PPP_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_PPP_MAX; +pub const IFLA_GTP_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_UNSPEC; +pub const IFLA_GTP_FD0: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_FD0; +pub const IFLA_GTP_FD1: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_FD1; +pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_PDP_HASHSIZE; +pub const IFLA_GTP_ROLE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_ROLE; +pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_CREATE_SOCKETS; +pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_RESTART_COUNT; +pub const IFLA_GTP_LOCAL: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_LOCAL; +pub const IFLA_GTP_LOCAL6: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_LOCAL6; +pub const __IFLA_GTP_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_GTP_MAX; +pub const IFLA_BOND_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_UNSPEC; +pub const IFLA_BOND_MODE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MODE; +pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ACTIVE_SLAVE; +pub const IFLA_BOND_MIIMON: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MIIMON; +pub const IFLA_BOND_UPDELAY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_UPDELAY; +pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_DOWNDELAY; +pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_USE_CARRIER; +pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_INTERVAL; +pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_IP_TARGET; +pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_VALIDATE; +pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_ALL_TARGETS; +pub const IFLA_BOND_PRIMARY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PRIMARY; +pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PRIMARY_RESELECT; +pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_FAIL_OVER_MAC; +pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_XMIT_HASH_POLICY; +pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_RESEND_IGMP; +pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_NUM_PEER_NOTIF; +pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ALL_SLAVES_ACTIVE; +pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MIN_LINKS; +pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LP_INTERVAL; +pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PACKETS_PER_SLAVE; +pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_LACP_RATE; +pub const IFLA_BOND_AD_SELECT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_SELECT; +pub const IFLA_BOND_AD_INFO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_INFO; +pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_ACTOR_SYS_PRIO; +pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_USER_PORT_KEY; +pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_ACTOR_SYSTEM; +pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_TLB_DYNAMIC_LB; +pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PEER_NOTIF_DELAY; +pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_LACP_ACTIVE; +pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSED_MAX; +pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_NS_IP6_TARGET; +pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_COUPLED_CONTROL; +pub const __IFLA_BOND_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_MAX; +pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_UNSPEC; +pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_AGGREGATOR; +pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_NUM_PORTS; +pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_ACTOR_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_PARTNER_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_PARTNER_MAC; +pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_BOND_AD_INFO_MAX; +pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_UNSPEC; +pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_STATE; +pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_MII_STATUS; +pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; +pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PERM_HWADDR; +pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_QUEUE_ID; +pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; +pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; +pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; +pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; +pub const __IFLA_VF_INFO_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_INFO_MAX; +pub const IFLA_VF_UNSPEC: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_UNSPEC; +pub const IFLA_VF_MAC: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_MAC; +pub const IFLA_VF_VLAN: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_VLAN; +pub const IFLA_VF_TX_RATE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_TX_RATE; +pub const IFLA_VF_SPOOFCHK: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_SPOOFCHK; +pub const IFLA_VF_LINK_STATE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_LINK_STATE; +pub const IFLA_VF_RATE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_RATE; +pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_RSS_QUERY_EN; +pub const IFLA_VF_STATS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS; +pub const IFLA_VF_TRUST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_TRUST; +pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_IB_NODE_GUID; +pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_IB_PORT_GUID; +pub const IFLA_VF_VLAN_LIST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_VLAN_LIST; +pub const IFLA_VF_BROADCAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_BROADCAST; +pub const __IFLA_VF_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_MAX; +pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_VLAN_INFO_UNSPEC; +pub const IFLA_VF_VLAN_INFO: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_VLAN_INFO; +pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_VLAN_INFO_MAX; +pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_LINK_STATE_AUTO; +pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_LINK_STATE_ENABLE; +pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_LINK_STATE_DISABLE; +pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_VF_LINK_STATE_MAX; +pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_RX_PACKETS; +pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_TX_PACKETS; +pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_RX_BYTES; +pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_TX_BYTES; +pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_BROADCAST; +pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_MULTICAST; +pub const IFLA_VF_STATS_PAD: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_PAD; +pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_RX_DROPPED; +pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_TX_DROPPED; +pub const __IFLA_VF_STATS_MAX: _bindgen_ty_36 = _bindgen_ty_36::__IFLA_VF_STATS_MAX; +pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_37 = _bindgen_ty_37::IFLA_VF_PORT_UNSPEC; +pub const IFLA_VF_PORT: _bindgen_ty_37 = _bindgen_ty_37::IFLA_VF_PORT; +pub const __IFLA_VF_PORT_MAX: _bindgen_ty_37 = _bindgen_ty_37::__IFLA_VF_PORT_MAX; +pub const IFLA_PORT_UNSPEC: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_UNSPEC; +pub const IFLA_PORT_VF: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_VF; +pub const IFLA_PORT_PROFILE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_PROFILE; +pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_VSI_TYPE; +pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_INSTANCE_UUID; +pub const IFLA_PORT_HOST_UUID: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_HOST_UUID; +pub const IFLA_PORT_REQUEST: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_REQUEST; +pub const IFLA_PORT_RESPONSE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_RESPONSE; +pub const __IFLA_PORT_MAX: _bindgen_ty_38 = _bindgen_ty_38::__IFLA_PORT_MAX; +pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_PREASSOCIATE; +pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_PREASSOCIATE_RR; +pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_ASSOCIATE; +pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_DISASSOCIATE; +pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_SUCCESS; +pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_INVALID_FORMAT; +pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_UNUSED_VTID; +pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_VTID_VIOLATION; +pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; +pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_OUT_OF_SYNC; +pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_SUCCESS; +pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_INPROGRESS; +pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_INVALID; +pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_BADSTATE; +pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_ERROR; +pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_UNSPEC; +pub const IFLA_IPOIB_PKEY: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_PKEY; +pub const IFLA_IPOIB_MODE: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_MODE; +pub const IFLA_IPOIB_UMCAST: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_UMCAST; +pub const __IFLA_IPOIB_MAX: _bindgen_ty_41 = _bindgen_ty_41::__IFLA_IPOIB_MAX; +pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_42 = _bindgen_ty_42::IPOIB_MODE_DATAGRAM; +pub const IPOIB_MODE_CONNECTED: _bindgen_ty_42 = _bindgen_ty_42::IPOIB_MODE_CONNECTED; +pub const HSR_PROTOCOL_HSR: _bindgen_ty_43 = _bindgen_ty_43::HSR_PROTOCOL_HSR; +pub const HSR_PROTOCOL_PRP: _bindgen_ty_43 = _bindgen_ty_43::HSR_PROTOCOL_PRP; +pub const HSR_PROTOCOL_MAX: _bindgen_ty_43 = _bindgen_ty_43::HSR_PROTOCOL_MAX; +pub const IFLA_HSR_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_UNSPEC; +pub const IFLA_HSR_SLAVE1: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SLAVE1; +pub const IFLA_HSR_SLAVE2: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SLAVE2; +pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_MULTICAST_SPEC; +pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SUPERVISION_ADDR; +pub const IFLA_HSR_SEQ_NR: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SEQ_NR; +pub const IFLA_HSR_VERSION: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_VERSION; +pub const IFLA_HSR_PROTOCOL: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_PROTOCOL; +pub const IFLA_HSR_INTERLINK: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_INTERLINK; +pub const __IFLA_HSR_MAX: _bindgen_ty_44 = _bindgen_ty_44::__IFLA_HSR_MAX; +pub const IFLA_STATS_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_UNSPEC; +pub const IFLA_STATS_LINK_64: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_64; +pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_XSTATS; +pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_XSTATS_SLAVE; +pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_OFFLOAD_XSTATS; +pub const IFLA_STATS_AF_SPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_AF_SPEC; +pub const __IFLA_STATS_MAX: _bindgen_ty_45 = _bindgen_ty_45::__IFLA_STATS_MAX; +pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_STATS_GETSET_UNSPEC; +pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_46 = _bindgen_ty_46::IFLA_STATS_GET_FILTERS; +pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_46 = _bindgen_ty_46::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_STATS_GETSET_MAX; +pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_47 = _bindgen_ty_47::LINK_XSTATS_TYPE_UNSPEC; +pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_47 = _bindgen_ty_47::LINK_XSTATS_TYPE_BRIDGE; +pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_47 = _bindgen_ty_47::LINK_XSTATS_TYPE_BOND; +pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_47 = _bindgen_ty_47::__LINK_XSTATS_TYPE_MAX; +pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_CPU_HIT; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_HW_S_INFO; +pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_48 = _bindgen_ty_48::__IFLA_OFFLOAD_XSTATS_MAX; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_49 = _bindgen_ty_49::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_49 = _bindgen_ty_49::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_49 = _bindgen_ty_49::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; +pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_49 = _bindgen_ty_49::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; +pub const XDP_ATTACHED_NONE: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_NONE; +pub const XDP_ATTACHED_DRV: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_DRV; +pub const XDP_ATTACHED_SKB: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_SKB; +pub const XDP_ATTACHED_HW: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_HW; +pub const XDP_ATTACHED_MULTI: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_MULTI; +pub const IFLA_XDP_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_UNSPEC; +pub const IFLA_XDP_FD: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_FD; +pub const IFLA_XDP_ATTACHED: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_ATTACHED; +pub const IFLA_XDP_FLAGS: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_FLAGS; +pub const IFLA_XDP_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_PROG_ID; +pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_DRV_PROG_ID; +pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_SKB_PROG_ID; +pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_HW_PROG_ID; +pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_EXPECTED_FD; +pub const __IFLA_XDP_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_XDP_MAX; +pub const IFLA_EVENT_NONE: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_NONE; +pub const IFLA_EVENT_REBOOT: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_REBOOT; +pub const IFLA_EVENT_FEATURES: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_FEATURES; +pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_BONDING_FAILOVER; +pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_NOTIFY_PEERS; +pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_IGMP_RESEND; +pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_BONDING_OPTIONS; +pub const IFLA_TUN_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_UNSPEC; +pub const IFLA_TUN_OWNER: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_OWNER; +pub const IFLA_TUN_GROUP: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_GROUP; +pub const IFLA_TUN_TYPE: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_TYPE; +pub const IFLA_TUN_PI: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_PI; +pub const IFLA_TUN_VNET_HDR: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_VNET_HDR; +pub const IFLA_TUN_PERSIST: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_PERSIST; +pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_MULTI_QUEUE; +pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_NUM_QUEUES; +pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_NUM_DISABLED_QUEUES; +pub const __IFLA_TUN_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_TUN_MAX; +pub const IFLA_RMNET_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_UNSPEC; +pub const IFLA_RMNET_MUX_ID: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_MUX_ID; +pub const IFLA_RMNET_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_FLAGS; +pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX; +pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC; +pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING; +pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX; +pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC; +pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; +pub const IFLA_DSA_MASTER: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; +pub const __IFLA_DSA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__IFLA_DSA_MAX; +pub const IFLA_OVPN_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::IFLA_OVPN_UNSPEC; +pub const IFLA_OVPN_MODE: _bindgen_ty_57 = _bindgen_ty_57::IFLA_OVPN_MODE; +pub const __IFLA_OVPN_MAX: _bindgen_ty_57 = _bindgen_ty_57::__IFLA_OVPN_MAX; +pub const IF_PORT_UNKNOWN: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_UNKNOWN; +pub const IF_PORT_10BASE2: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_10BASE2; +pub const IF_PORT_10BASET: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_10BASET; +pub const IF_PORT_AUI: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_AUI; +pub const IF_PORT_100BASET: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_100BASET; +pub const IF_PORT_100BASETX: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_100BASETX; +pub const IF_PORT_100BASEFX: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_100BASEFX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum net_device_flags { +IFF_UP = 1, +IFF_BROADCAST = 2, +IFF_DEBUG = 4, +IFF_LOOPBACK = 8, +IFF_POINTOPOINT = 16, +IFF_NOTRAILERS = 32, +IFF_RUNNING = 64, +IFF_NOARP = 128, +IFF_PROMISC = 256, +IFF_ALLMULTI = 512, +IFF_MASTER = 1024, +IFF_SLAVE = 2048, +IFF_MULTICAST = 4096, +IFF_PORTSEL = 8192, +IFF_AUTOMEDIA = 16384, +IFF_DYNAMIC = 32768, +IFF_LOWER_UP = 65536, +IFF_DORMANT = 131072, +IFF_ECHO = 262144, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +IF_OPER_UNKNOWN = 0, +IF_OPER_NOTPRESENT = 1, +IF_OPER_DOWN = 2, +IF_OPER_LOWERLAYERDOWN = 3, +IF_OPER_TESTING = 4, +IF_OPER_DORMANT = 5, +IF_OPER_UP = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IF_LINK_MODE_DEFAULT = 0, +IF_LINK_MODE_DORMANT = 1, +IF_LINK_MODE_TESTING = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tpacket_versions { +TPACKET_V1 = 0, +TPACKET_V2 = 1, +TPACKET_V3 = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nlmsgerr_attrs { +NLMSGERR_ATTR_UNUSED = 0, +NLMSGERR_ATTR_MSG = 1, +NLMSGERR_ATTR_OFFS = 2, +NLMSGERR_ATTR_COOKIE = 3, +NLMSGERR_ATTR_POLICY = 4, +NLMSGERR_ATTR_MISS_TYPE = 5, +NLMSGERR_ATTR_MISS_NEST = 6, +__NLMSGERR_ATTR_MAX = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl_mmap_status { +NL_MMAP_STATUS_UNUSED = 0, +NL_MMAP_STATUS_RESERVED = 1, +NL_MMAP_STATUS_VALID = 2, +NL_MMAP_STATUS_COPY = 3, +NL_MMAP_STATUS_SKIP = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +NETLINK_UNCONNECTED = 0, +NETLINK_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_attribute_type { +NL_ATTR_TYPE_INVALID = 0, +NL_ATTR_TYPE_FLAG = 1, +NL_ATTR_TYPE_U8 = 2, +NL_ATTR_TYPE_U16 = 3, +NL_ATTR_TYPE_U32 = 4, +NL_ATTR_TYPE_U64 = 5, +NL_ATTR_TYPE_S8 = 6, +NL_ATTR_TYPE_S16 = 7, +NL_ATTR_TYPE_S32 = 8, +NL_ATTR_TYPE_S64 = 9, +NL_ATTR_TYPE_BINARY = 10, +NL_ATTR_TYPE_STRING = 11, +NL_ATTR_TYPE_NUL_STRING = 12, +NL_ATTR_TYPE_NESTED = 13, +NL_ATTR_TYPE_NESTED_ARRAY = 14, +NL_ATTR_TYPE_BITFIELD32 = 15, +NL_ATTR_TYPE_SINT = 16, +NL_ATTR_TYPE_UINT = 17, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_policy_type_attr { +NL_POLICY_TYPE_ATTR_UNSPEC = 0, +NL_POLICY_TYPE_ATTR_TYPE = 1, +NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, +NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, +NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, +NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, +NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, +NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, +NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, +NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, +NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, +NL_POLICY_TYPE_ATTR_PAD = 11, +NL_POLICY_TYPE_ATTR_MASK = 12, +__NL_POLICY_TYPE_ATTR_MAX = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IFLA_UNSPEC = 0, +IFLA_ADDRESS = 1, +IFLA_BROADCAST = 2, +IFLA_IFNAME = 3, +IFLA_MTU = 4, +IFLA_LINK = 5, +IFLA_QDISC = 6, +IFLA_STATS = 7, +IFLA_COST = 8, +IFLA_PRIORITY = 9, +IFLA_MASTER = 10, +IFLA_WIRELESS = 11, +IFLA_PROTINFO = 12, +IFLA_TXQLEN = 13, +IFLA_MAP = 14, +IFLA_WEIGHT = 15, +IFLA_OPERSTATE = 16, +IFLA_LINKMODE = 17, +IFLA_LINKINFO = 18, +IFLA_NET_NS_PID = 19, +IFLA_IFALIAS = 20, +IFLA_NUM_VF = 21, +IFLA_VFINFO_LIST = 22, +IFLA_STATS64 = 23, +IFLA_VF_PORTS = 24, +IFLA_PORT_SELF = 25, +IFLA_AF_SPEC = 26, +IFLA_GROUP = 27, +IFLA_NET_NS_FD = 28, +IFLA_EXT_MASK = 29, +IFLA_PROMISCUITY = 30, +IFLA_NUM_TX_QUEUES = 31, +IFLA_NUM_RX_QUEUES = 32, +IFLA_CARRIER = 33, +IFLA_PHYS_PORT_ID = 34, +IFLA_CARRIER_CHANGES = 35, +IFLA_PHYS_SWITCH_ID = 36, +IFLA_LINK_NETNSID = 37, +IFLA_PHYS_PORT_NAME = 38, +IFLA_PROTO_DOWN = 39, +IFLA_GSO_MAX_SEGS = 40, +IFLA_GSO_MAX_SIZE = 41, +IFLA_PAD = 42, +IFLA_XDP = 43, +IFLA_EVENT = 44, +IFLA_NEW_NETNSID = 45, +IFLA_IF_NETNSID = 46, +IFLA_CARRIER_UP_COUNT = 47, +IFLA_CARRIER_DOWN_COUNT = 48, +IFLA_NEW_IFINDEX = 49, +IFLA_MIN_MTU = 50, +IFLA_MAX_MTU = 51, +IFLA_PROP_LIST = 52, +IFLA_ALT_IFNAME = 53, +IFLA_PERM_ADDRESS = 54, +IFLA_PROTO_DOWN_REASON = 55, +IFLA_PARENT_DEV_NAME = 56, +IFLA_PARENT_DEV_BUS_NAME = 57, +IFLA_GRO_MAX_SIZE = 58, +IFLA_TSO_MAX_SIZE = 59, +IFLA_TSO_MAX_SEGS = 60, +IFLA_ALLMULTI = 61, +IFLA_DEVLINK_PORT = 62, +IFLA_GSO_IPV4_MAX_SIZE = 63, +IFLA_GRO_IPV4_MAX_SIZE = 64, +IFLA_DPLL_PIN = 65, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +IFLA_NETNS_IMMUTABLE = 67, +__IFLA_MAX = 68, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_5 { +IFLA_PROTO_DOWN_REASON_UNSPEC = 0, +IFLA_PROTO_DOWN_REASON_MASK = 1, +IFLA_PROTO_DOWN_REASON_VALUE = 2, +__IFLA_PROTO_DOWN_REASON_CNT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_6 { +IFLA_INET_UNSPEC = 0, +IFLA_INET_CONF = 1, +__IFLA_INET_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_7 { +IFLA_INET6_UNSPEC = 0, +IFLA_INET6_FLAGS = 1, +IFLA_INET6_CONF = 2, +IFLA_INET6_STATS = 3, +IFLA_INET6_MCAST = 4, +IFLA_INET6_CACHEINFO = 5, +IFLA_INET6_ICMP6STATS = 6, +IFLA_INET6_TOKEN = 7, +IFLA_INET6_ADDR_GEN_MODE = 8, +IFLA_INET6_RA_MTU = 9, +__IFLA_INET6_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum in6_addr_gen_mode { +IN6_ADDR_GEN_MODE_EUI64 = 0, +IN6_ADDR_GEN_MODE_NONE = 1, +IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, +IN6_ADDR_GEN_MODE_RANDOM = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_8 { +IFLA_BR_UNSPEC = 0, +IFLA_BR_FORWARD_DELAY = 1, +IFLA_BR_HELLO_TIME = 2, +IFLA_BR_MAX_AGE = 3, +IFLA_BR_AGEING_TIME = 4, +IFLA_BR_STP_STATE = 5, +IFLA_BR_PRIORITY = 6, +IFLA_BR_VLAN_FILTERING = 7, +IFLA_BR_VLAN_PROTOCOL = 8, +IFLA_BR_GROUP_FWD_MASK = 9, +IFLA_BR_ROOT_ID = 10, +IFLA_BR_BRIDGE_ID = 11, +IFLA_BR_ROOT_PORT = 12, +IFLA_BR_ROOT_PATH_COST = 13, +IFLA_BR_TOPOLOGY_CHANGE = 14, +IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, +IFLA_BR_HELLO_TIMER = 16, +IFLA_BR_TCN_TIMER = 17, +IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, +IFLA_BR_GC_TIMER = 19, +IFLA_BR_GROUP_ADDR = 20, +IFLA_BR_FDB_FLUSH = 21, +IFLA_BR_MCAST_ROUTER = 22, +IFLA_BR_MCAST_SNOOPING = 23, +IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, +IFLA_BR_MCAST_QUERIER = 25, +IFLA_BR_MCAST_HASH_ELASTICITY = 26, +IFLA_BR_MCAST_HASH_MAX = 27, +IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, +IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, +IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, +IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, +IFLA_BR_MCAST_QUERIER_INTVL = 32, +IFLA_BR_MCAST_QUERY_INTVL = 33, +IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, +IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, +IFLA_BR_NF_CALL_IPTABLES = 36, +IFLA_BR_NF_CALL_IP6TABLES = 37, +IFLA_BR_NF_CALL_ARPTABLES = 38, +IFLA_BR_VLAN_DEFAULT_PVID = 39, +IFLA_BR_PAD = 40, +IFLA_BR_VLAN_STATS_ENABLED = 41, +IFLA_BR_MCAST_STATS_ENABLED = 42, +IFLA_BR_MCAST_IGMP_VERSION = 43, +IFLA_BR_MCAST_MLD_VERSION = 44, +IFLA_BR_VLAN_STATS_PER_PORT = 45, +IFLA_BR_MULTI_BOOLOPT = 46, +IFLA_BR_MCAST_QUERIER_STATE = 47, +IFLA_BR_FDB_N_LEARNED = 48, +IFLA_BR_FDB_MAX_LEARNED = 49, +__IFLA_BR_MAX = 50, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_9 { +BRIDGE_MODE_UNSPEC = 0, +BRIDGE_MODE_HAIRPIN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_10 { +IFLA_BRPORT_UNSPEC = 0, +IFLA_BRPORT_STATE = 1, +IFLA_BRPORT_PRIORITY = 2, +IFLA_BRPORT_COST = 3, +IFLA_BRPORT_MODE = 4, +IFLA_BRPORT_GUARD = 5, +IFLA_BRPORT_PROTECT = 6, +IFLA_BRPORT_FAST_LEAVE = 7, +IFLA_BRPORT_LEARNING = 8, +IFLA_BRPORT_UNICAST_FLOOD = 9, +IFLA_BRPORT_PROXYARP = 10, +IFLA_BRPORT_LEARNING_SYNC = 11, +IFLA_BRPORT_PROXYARP_WIFI = 12, +IFLA_BRPORT_ROOT_ID = 13, +IFLA_BRPORT_BRIDGE_ID = 14, +IFLA_BRPORT_DESIGNATED_PORT = 15, +IFLA_BRPORT_DESIGNATED_COST = 16, +IFLA_BRPORT_ID = 17, +IFLA_BRPORT_NO = 18, +IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, +IFLA_BRPORT_CONFIG_PENDING = 20, +IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, +IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, +IFLA_BRPORT_HOLD_TIMER = 23, +IFLA_BRPORT_FLUSH = 24, +IFLA_BRPORT_MULTICAST_ROUTER = 25, +IFLA_BRPORT_PAD = 26, +IFLA_BRPORT_MCAST_FLOOD = 27, +IFLA_BRPORT_MCAST_TO_UCAST = 28, +IFLA_BRPORT_VLAN_TUNNEL = 29, +IFLA_BRPORT_BCAST_FLOOD = 30, +IFLA_BRPORT_GROUP_FWD_MASK = 31, +IFLA_BRPORT_NEIGH_SUPPRESS = 32, +IFLA_BRPORT_ISOLATED = 33, +IFLA_BRPORT_BACKUP_PORT = 34, +IFLA_BRPORT_MRP_RING_OPEN = 35, +IFLA_BRPORT_MRP_IN_OPEN = 36, +IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, +IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, +IFLA_BRPORT_LOCKED = 39, +IFLA_BRPORT_MAB = 40, +IFLA_BRPORT_MCAST_N_GROUPS = 41, +IFLA_BRPORT_MCAST_MAX_GROUPS = 42, +IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, +IFLA_BRPORT_BACKUP_NHID = 44, +__IFLA_BRPORT_MAX = 45, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_11 { +IFLA_INFO_UNSPEC = 0, +IFLA_INFO_KIND = 1, +IFLA_INFO_DATA = 2, +IFLA_INFO_XSTATS = 3, +IFLA_INFO_SLAVE_KIND = 4, +IFLA_INFO_SLAVE_DATA = 5, +__IFLA_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_12 { +IFLA_VLAN_UNSPEC = 0, +IFLA_VLAN_ID = 1, +IFLA_VLAN_FLAGS = 2, +IFLA_VLAN_EGRESS_QOS = 3, +IFLA_VLAN_INGRESS_QOS = 4, +IFLA_VLAN_PROTOCOL = 5, +__IFLA_VLAN_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_13 { +IFLA_VLAN_QOS_UNSPEC = 0, +IFLA_VLAN_QOS_MAPPING = 1, +__IFLA_VLAN_QOS_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_14 { +IFLA_MACVLAN_UNSPEC = 0, +IFLA_MACVLAN_MODE = 1, +IFLA_MACVLAN_FLAGS = 2, +IFLA_MACVLAN_MACADDR_MODE = 3, +IFLA_MACVLAN_MACADDR = 4, +IFLA_MACVLAN_MACADDR_DATA = 5, +IFLA_MACVLAN_MACADDR_COUNT = 6, +IFLA_MACVLAN_BC_QUEUE_LEN = 7, +IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, +IFLA_MACVLAN_BC_CUTOFF = 9, +__IFLA_MACVLAN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_mode { +MACVLAN_MODE_PRIVATE = 1, +MACVLAN_MODE_VEPA = 2, +MACVLAN_MODE_BRIDGE = 4, +MACVLAN_MODE_PASSTHRU = 8, +MACVLAN_MODE_SOURCE = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_macaddr_mode { +MACVLAN_MACADDR_ADD = 0, +MACVLAN_MACADDR_DEL = 1, +MACVLAN_MACADDR_FLUSH = 2, +MACVLAN_MACADDR_SET = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_15 { +IFLA_VRF_UNSPEC = 0, +IFLA_VRF_TABLE = 1, +__IFLA_VRF_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_16 { +IFLA_VRF_PORT_UNSPEC = 0, +IFLA_VRF_PORT_TABLE = 1, +__IFLA_VRF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_17 { +IFLA_MACSEC_UNSPEC = 0, +IFLA_MACSEC_SCI = 1, +IFLA_MACSEC_PORT = 2, +IFLA_MACSEC_ICV_LEN = 3, +IFLA_MACSEC_CIPHER_SUITE = 4, +IFLA_MACSEC_WINDOW = 5, +IFLA_MACSEC_ENCODING_SA = 6, +IFLA_MACSEC_ENCRYPT = 7, +IFLA_MACSEC_PROTECT = 8, +IFLA_MACSEC_INC_SCI = 9, +IFLA_MACSEC_ES = 10, +IFLA_MACSEC_SCB = 11, +IFLA_MACSEC_REPLAY_PROTECT = 12, +IFLA_MACSEC_VALIDATION = 13, +IFLA_MACSEC_PAD = 14, +IFLA_MACSEC_OFFLOAD = 15, +__IFLA_MACSEC_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_18 { +IFLA_XFRM_UNSPEC = 0, +IFLA_XFRM_LINK = 1, +IFLA_XFRM_IF_ID = 2, +IFLA_XFRM_COLLECT_METADATA = 3, +__IFLA_XFRM_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_validation_type { +MACSEC_VALIDATE_DISABLED = 0, +MACSEC_VALIDATE_CHECK = 1, +MACSEC_VALIDATE_STRICT = 2, +__MACSEC_VALIDATE_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_offload { +MACSEC_OFFLOAD_OFF = 0, +MACSEC_OFFLOAD_PHY = 1, +MACSEC_OFFLOAD_MAC = 2, +__MACSEC_OFFLOAD_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_19 { +IFLA_IPVLAN_UNSPEC = 0, +IFLA_IPVLAN_MODE = 1, +IFLA_IPVLAN_FLAGS = 2, +__IFLA_IPVLAN_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ipvlan_mode { +IPVLAN_MODE_L2 = 0, +IPVLAN_MODE_L3 = 1, +IPVLAN_MODE_L3S = 2, +IPVLAN_MODE_MAX = 3, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_action { +NETKIT_NEXT = -1, +NETKIT_PASS = 0, +NETKIT_DROP = 2, +NETKIT_REDIRECT = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_mode { +NETKIT_L2 = 0, +NETKIT_L3 = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_20 { +IFLA_NETKIT_UNSPEC = 0, +IFLA_NETKIT_PEER_INFO = 1, +IFLA_NETKIT_PRIMARY = 2, +IFLA_NETKIT_POLICY = 3, +IFLA_NETKIT_PEER_POLICY = 4, +IFLA_NETKIT_MODE = 5, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +IFLA_NETKIT_HEADROOM = 8, +IFLA_NETKIT_TAILROOM = 9, +__IFLA_NETKIT_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_21 { +VNIFILTER_ENTRY_STATS_UNSPEC = 0, +VNIFILTER_ENTRY_STATS_RX_BYTES = 1, +VNIFILTER_ENTRY_STATS_RX_PKTS = 2, +VNIFILTER_ENTRY_STATS_RX_DROPS = 3, +VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, +VNIFILTER_ENTRY_STATS_TX_BYTES = 5, +VNIFILTER_ENTRY_STATS_TX_PKTS = 6, +VNIFILTER_ENTRY_STATS_TX_DROPS = 7, +VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, +VNIFILTER_ENTRY_STATS_PAD = 9, +__VNIFILTER_ENTRY_STATS_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_22 { +VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY_START = 1, +VXLAN_VNIFILTER_ENTRY_END = 2, +VXLAN_VNIFILTER_ENTRY_GROUP = 3, +VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, +VXLAN_VNIFILTER_ENTRY_STATS = 5, +__VXLAN_VNIFILTER_ENTRY_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_23 { +VXLAN_VNIFILTER_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY = 1, +__VXLAN_VNIFILTER_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_24 { +IFLA_VXLAN_UNSPEC = 0, +IFLA_VXLAN_ID = 1, +IFLA_VXLAN_GROUP = 2, +IFLA_VXLAN_LINK = 3, +IFLA_VXLAN_LOCAL = 4, +IFLA_VXLAN_TTL = 5, +IFLA_VXLAN_TOS = 6, +IFLA_VXLAN_LEARNING = 7, +IFLA_VXLAN_AGEING = 8, +IFLA_VXLAN_LIMIT = 9, +IFLA_VXLAN_PORT_RANGE = 10, +IFLA_VXLAN_PROXY = 11, +IFLA_VXLAN_RSC = 12, +IFLA_VXLAN_L2MISS = 13, +IFLA_VXLAN_L3MISS = 14, +IFLA_VXLAN_PORT = 15, +IFLA_VXLAN_GROUP6 = 16, +IFLA_VXLAN_LOCAL6 = 17, +IFLA_VXLAN_UDP_CSUM = 18, +IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, +IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, +IFLA_VXLAN_REMCSUM_TX = 21, +IFLA_VXLAN_REMCSUM_RX = 22, +IFLA_VXLAN_GBP = 23, +IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, +IFLA_VXLAN_COLLECT_METADATA = 25, +IFLA_VXLAN_LABEL = 26, +IFLA_VXLAN_GPE = 27, +IFLA_VXLAN_TTL_INHERIT = 28, +IFLA_VXLAN_DF = 29, +IFLA_VXLAN_VNIFILTER = 30, +IFLA_VXLAN_LOCALBYPASS = 31, +IFLA_VXLAN_LABEL_POLICY = 32, +IFLA_VXLAN_RESERVED_BITS = 33, +__IFLA_VXLAN_MAX = 34, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_df { +VXLAN_DF_UNSET = 0, +VXLAN_DF_SET = 1, +VXLAN_DF_INHERIT = 2, +__VXLAN_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_label_policy { +VXLAN_LABEL_FIXED = 0, +VXLAN_LABEL_INHERIT = 1, +__VXLAN_LABEL_END = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_25 { +IFLA_GENEVE_UNSPEC = 0, +IFLA_GENEVE_ID = 1, +IFLA_GENEVE_REMOTE = 2, +IFLA_GENEVE_TTL = 3, +IFLA_GENEVE_TOS = 4, +IFLA_GENEVE_PORT = 5, +IFLA_GENEVE_COLLECT_METADATA = 6, +IFLA_GENEVE_REMOTE6 = 7, +IFLA_GENEVE_UDP_CSUM = 8, +IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, +IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, +IFLA_GENEVE_LABEL = 11, +IFLA_GENEVE_TTL_INHERIT = 12, +IFLA_GENEVE_DF = 13, +IFLA_GENEVE_INNER_PROTO_INHERIT = 14, +IFLA_GENEVE_PORT_RANGE = 15, +__IFLA_GENEVE_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_geneve_df { +GENEVE_DF_UNSET = 0, +GENEVE_DF_SET = 1, +GENEVE_DF_INHERIT = 2, +__GENEVE_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_26 { +IFLA_BAREUDP_UNSPEC = 0, +IFLA_BAREUDP_PORT = 1, +IFLA_BAREUDP_ETHERTYPE = 2, +IFLA_BAREUDP_SRCPORT_MIN = 3, +IFLA_BAREUDP_MULTIPROTO_MODE = 4, +__IFLA_BAREUDP_MAX = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_27 { +IFLA_PPP_UNSPEC = 0, +IFLA_PPP_DEV_FD = 1, +__IFLA_PPP_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_gtp_role { +GTP_ROLE_GGSN = 0, +GTP_ROLE_SGSN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_28 { +IFLA_GTP_UNSPEC = 0, +IFLA_GTP_FD0 = 1, +IFLA_GTP_FD1 = 2, +IFLA_GTP_PDP_HASHSIZE = 3, +IFLA_GTP_ROLE = 4, +IFLA_GTP_CREATE_SOCKETS = 5, +IFLA_GTP_RESTART_COUNT = 6, +IFLA_GTP_LOCAL = 7, +IFLA_GTP_LOCAL6 = 8, +__IFLA_GTP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_29 { +IFLA_BOND_UNSPEC = 0, +IFLA_BOND_MODE = 1, +IFLA_BOND_ACTIVE_SLAVE = 2, +IFLA_BOND_MIIMON = 3, +IFLA_BOND_UPDELAY = 4, +IFLA_BOND_DOWNDELAY = 5, +IFLA_BOND_USE_CARRIER = 6, +IFLA_BOND_ARP_INTERVAL = 7, +IFLA_BOND_ARP_IP_TARGET = 8, +IFLA_BOND_ARP_VALIDATE = 9, +IFLA_BOND_ARP_ALL_TARGETS = 10, +IFLA_BOND_PRIMARY = 11, +IFLA_BOND_PRIMARY_RESELECT = 12, +IFLA_BOND_FAIL_OVER_MAC = 13, +IFLA_BOND_XMIT_HASH_POLICY = 14, +IFLA_BOND_RESEND_IGMP = 15, +IFLA_BOND_NUM_PEER_NOTIF = 16, +IFLA_BOND_ALL_SLAVES_ACTIVE = 17, +IFLA_BOND_MIN_LINKS = 18, +IFLA_BOND_LP_INTERVAL = 19, +IFLA_BOND_PACKETS_PER_SLAVE = 20, +IFLA_BOND_AD_LACP_RATE = 21, +IFLA_BOND_AD_SELECT = 22, +IFLA_BOND_AD_INFO = 23, +IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, +IFLA_BOND_AD_USER_PORT_KEY = 25, +IFLA_BOND_AD_ACTOR_SYSTEM = 26, +IFLA_BOND_TLB_DYNAMIC_LB = 27, +IFLA_BOND_PEER_NOTIF_DELAY = 28, +IFLA_BOND_AD_LACP_ACTIVE = 29, +IFLA_BOND_MISSED_MAX = 30, +IFLA_BOND_NS_IP6_TARGET = 31, +IFLA_BOND_COUPLED_CONTROL = 32, +__IFLA_BOND_MAX = 33, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_30 { +IFLA_BOND_AD_INFO_UNSPEC = 0, +IFLA_BOND_AD_INFO_AGGREGATOR = 1, +IFLA_BOND_AD_INFO_NUM_PORTS = 2, +IFLA_BOND_AD_INFO_ACTOR_KEY = 3, +IFLA_BOND_AD_INFO_PARTNER_KEY = 4, +IFLA_BOND_AD_INFO_PARTNER_MAC = 5, +__IFLA_BOND_AD_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_31 { +IFLA_BOND_SLAVE_UNSPEC = 0, +IFLA_BOND_SLAVE_STATE = 1, +IFLA_BOND_SLAVE_MII_STATUS = 2, +IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, +IFLA_BOND_SLAVE_PERM_HWADDR = 4, +IFLA_BOND_SLAVE_QUEUE_ID = 5, +IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, +IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, +IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, +IFLA_BOND_SLAVE_PRIO = 9, +__IFLA_BOND_SLAVE_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_32 { +IFLA_VF_INFO_UNSPEC = 0, +IFLA_VF_INFO = 1, +__IFLA_VF_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_33 { +IFLA_VF_UNSPEC = 0, +IFLA_VF_MAC = 1, +IFLA_VF_VLAN = 2, +IFLA_VF_TX_RATE = 3, +IFLA_VF_SPOOFCHK = 4, +IFLA_VF_LINK_STATE = 5, +IFLA_VF_RATE = 6, +IFLA_VF_RSS_QUERY_EN = 7, +IFLA_VF_STATS = 8, +IFLA_VF_TRUST = 9, +IFLA_VF_IB_NODE_GUID = 10, +IFLA_VF_IB_PORT_GUID = 11, +IFLA_VF_VLAN_LIST = 12, +IFLA_VF_BROADCAST = 13, +__IFLA_VF_MAX = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_34 { +IFLA_VF_VLAN_INFO_UNSPEC = 0, +IFLA_VF_VLAN_INFO = 1, +__IFLA_VF_VLAN_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_35 { +IFLA_VF_LINK_STATE_AUTO = 0, +IFLA_VF_LINK_STATE_ENABLE = 1, +IFLA_VF_LINK_STATE_DISABLE = 2, +__IFLA_VF_LINK_STATE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_36 { +IFLA_VF_STATS_RX_PACKETS = 0, +IFLA_VF_STATS_TX_PACKETS = 1, +IFLA_VF_STATS_RX_BYTES = 2, +IFLA_VF_STATS_TX_BYTES = 3, +IFLA_VF_STATS_BROADCAST = 4, +IFLA_VF_STATS_MULTICAST = 5, +IFLA_VF_STATS_PAD = 6, +IFLA_VF_STATS_RX_DROPPED = 7, +IFLA_VF_STATS_TX_DROPPED = 8, +__IFLA_VF_STATS_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_37 { +IFLA_VF_PORT_UNSPEC = 0, +IFLA_VF_PORT = 1, +__IFLA_VF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_38 { +IFLA_PORT_UNSPEC = 0, +IFLA_PORT_VF = 1, +IFLA_PORT_PROFILE = 2, +IFLA_PORT_VSI_TYPE = 3, +IFLA_PORT_INSTANCE_UUID = 4, +IFLA_PORT_HOST_UUID = 5, +IFLA_PORT_REQUEST = 6, +IFLA_PORT_RESPONSE = 7, +__IFLA_PORT_MAX = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_39 { +PORT_REQUEST_PREASSOCIATE = 0, +PORT_REQUEST_PREASSOCIATE_RR = 1, +PORT_REQUEST_ASSOCIATE = 2, +PORT_REQUEST_DISASSOCIATE = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_40 { +PORT_VDP_RESPONSE_SUCCESS = 0, +PORT_VDP_RESPONSE_INVALID_FORMAT = 1, +PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, +PORT_VDP_RESPONSE_UNUSED_VTID = 3, +PORT_VDP_RESPONSE_VTID_VIOLATION = 4, +PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, +PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, +PORT_PROFILE_RESPONSE_SUCCESS = 256, +PORT_PROFILE_RESPONSE_INPROGRESS = 257, +PORT_PROFILE_RESPONSE_INVALID = 258, +PORT_PROFILE_RESPONSE_BADSTATE = 259, +PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, +PORT_PROFILE_RESPONSE_ERROR = 261, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_41 { +IFLA_IPOIB_UNSPEC = 0, +IFLA_IPOIB_PKEY = 1, +IFLA_IPOIB_MODE = 2, +IFLA_IPOIB_UMCAST = 3, +__IFLA_IPOIB_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_42 { +IPOIB_MODE_DATAGRAM = 0, +IPOIB_MODE_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_43 { +HSR_PROTOCOL_HSR = 0, +HSR_PROTOCOL_PRP = 1, +HSR_PROTOCOL_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_44 { +IFLA_HSR_UNSPEC = 0, +IFLA_HSR_SLAVE1 = 1, +IFLA_HSR_SLAVE2 = 2, +IFLA_HSR_MULTICAST_SPEC = 3, +IFLA_HSR_SUPERVISION_ADDR = 4, +IFLA_HSR_SEQ_NR = 5, +IFLA_HSR_VERSION = 6, +IFLA_HSR_PROTOCOL = 7, +IFLA_HSR_INTERLINK = 8, +__IFLA_HSR_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_45 { +IFLA_STATS_UNSPEC = 0, +IFLA_STATS_LINK_64 = 1, +IFLA_STATS_LINK_XSTATS = 2, +IFLA_STATS_LINK_XSTATS_SLAVE = 3, +IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, +IFLA_STATS_AF_SPEC = 5, +__IFLA_STATS_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_46 { +IFLA_STATS_GETSET_UNSPEC = 0, +IFLA_STATS_GET_FILTERS = 1, +IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, +__IFLA_STATS_GETSET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_47 { +LINK_XSTATS_TYPE_UNSPEC = 0, +LINK_XSTATS_TYPE_BRIDGE = 1, +LINK_XSTATS_TYPE_BOND = 2, +__LINK_XSTATS_TYPE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_48 { +IFLA_OFFLOAD_XSTATS_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, +IFLA_OFFLOAD_XSTATS_L3_STATS = 3, +__IFLA_OFFLOAD_XSTATS_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_49 { +IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, +__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_50 { +XDP_ATTACHED_NONE = 0, +XDP_ATTACHED_DRV = 1, +XDP_ATTACHED_SKB = 2, +XDP_ATTACHED_HW = 3, +XDP_ATTACHED_MULTI = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_51 { +IFLA_XDP_UNSPEC = 0, +IFLA_XDP_FD = 1, +IFLA_XDP_ATTACHED = 2, +IFLA_XDP_FLAGS = 3, +IFLA_XDP_PROG_ID = 4, +IFLA_XDP_DRV_PROG_ID = 5, +IFLA_XDP_SKB_PROG_ID = 6, +IFLA_XDP_HW_PROG_ID = 7, +IFLA_XDP_EXPECTED_FD = 8, +__IFLA_XDP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_52 { +IFLA_EVENT_NONE = 0, +IFLA_EVENT_REBOOT = 1, +IFLA_EVENT_FEATURES = 2, +IFLA_EVENT_BONDING_FAILOVER = 3, +IFLA_EVENT_NOTIFY_PEERS = 4, +IFLA_EVENT_IGMP_RESEND = 5, +IFLA_EVENT_BONDING_OPTIONS = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_53 { +IFLA_TUN_UNSPEC = 0, +IFLA_TUN_OWNER = 1, +IFLA_TUN_GROUP = 2, +IFLA_TUN_TYPE = 3, +IFLA_TUN_PI = 4, +IFLA_TUN_VNET_HDR = 5, +IFLA_TUN_PERSIST = 6, +IFLA_TUN_MULTI_QUEUE = 7, +IFLA_TUN_NUM_QUEUES = 8, +IFLA_TUN_NUM_DISABLED_QUEUES = 9, +__IFLA_TUN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_54 { +IFLA_RMNET_UNSPEC = 0, +IFLA_RMNET_MUX_ID = 1, +IFLA_RMNET_FLAGS = 2, +__IFLA_RMNET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_55 { +IFLA_MCTP_UNSPEC = 0, +IFLA_MCTP_NET = 1, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_56 { +IFLA_DSA_UNSPEC = 0, +IFLA_DSA_CONDUIT = 1, +__IFLA_DSA_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ovpn_mode { +OVPN_MODE_P2P = 0, +OVPN_MODE_MP = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_57 { +IFLA_OVPN_UNSPEC = 0, +IFLA_OVPN_MODE = 1, +__IFLA_OVPN_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_58 { +IF_PORT_UNKNOWN = 0, +IF_PORT_10BASE2 = 1, +IF_PORT_10BASET = 2, +IF_PORT_AUI = 3, +IF_PORT_100BASET = 4, +IF_PORT_100BASETX = 5, +IF_PORT_100BASEFX = 6, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __kernel_sockaddr_storage__bindgen_ty_1 { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, +pub __align: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union if_settings__bindgen_ty_1 { +pub raw_hdlc: *mut raw_hdlc_proto, +pub cisco: *mut cisco_proto, +pub fr: *mut fr_proto, +pub fr_pvc: *mut fr_proto_pvc, +pub fr_pvc_info: *mut fr_proto_pvc_info, +pub x25: *mut x25_hdlc_proto, +pub sync: *mut sync_serial_settings, +pub te1: *mut te1_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_1 { +pub ifrn_name: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_2 { +pub ifru_addr: sockaddr, +pub ifru_dstaddr: sockaddr, +pub ifru_broadaddr: sockaddr, +pub ifru_netmask: sockaddr, +pub ifru_hwaddr: sockaddr, +pub ifru_flags: crate::ctypes::c_short, +pub ifru_ivalue: crate::ctypes::c_int, +pub ifru_mtu: crate::ctypes::c_int, +pub ifru_map: ifmap, +pub ifru_slave: [crate::ctypes::c_char; 16usize], +pub ifru_newname: [crate::ctypes::c_char; 16usize], +pub ifru_data: *mut crate::ctypes::c_void, +pub ifru_settings: if_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifconf__bindgen_ty_1 { +pub ifcu_buf: *mut crate::ctypes::c_char, +pub ifcu_req: *mut ifreq, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_stats_u { +pub stats1: tpacket_stats, +pub stats3: tpacket_stats_v3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket3_hdr__bindgen_ty_1 { +pub hv1: tpacket_hdr_variant1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_ts__bindgen_ty_1 { +pub ts_usec: crate::ctypes::c_uint, +pub ts_nsec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_header_u { +pub bh1: tpacket_hdr_v1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_req_u { +pub req: tpacket_req, +pub req3: tpacket_req3, +} +impl nlmsgerr_attrs { +pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; +} +impl netlink_policy_type_attr { +pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; +} +impl macsec_validation_type { +pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; +} +impl macsec_offload { +pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; +} +impl ifla_vxlan_df { +pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; +} +impl ifla_vxlan_label_policy { +pub const VXLAN_LABEL_MAX: ifla_vxlan_label_policy = ifla_vxlan_label_policy::VXLAN_LABEL_INHERIT; +} +impl ifla_geneve_df { +pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/if_packet.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/if_packet.rs new file mode 100644 index 0000000000000000000000000000000000000000..4b64e0204fcfd1fb72d6aed489d86ca96c8e11b0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/if_packet.rs @@ -0,0 +1,311 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_pkt { +pub spkt_family: crate::ctypes::c_ushort, +pub spkt_device: [crate::ctypes::c_uchar; 14usize], +pub spkt_protocol: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_ll { +pub sll_family: crate::ctypes::c_ushort, +pub sll_protocol: __be16, +pub sll_ifindex: crate::ctypes::c_int, +pub sll_hatype: crate::ctypes::c_ushort, +pub sll_pkttype: crate::ctypes::c_uchar, +pub sll_halen: crate::ctypes::c_uchar, +pub sll_addr: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats_v3 { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +pub tp_freeze_q_cnt: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_rollover_stats { +pub tp_all: __u64, +pub tp_huge: __u64, +pub tp_failed: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_auxdata { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr { +pub tp_status: crate::ctypes::c_ulong, +pub tp_len: crate::ctypes::c_uint, +pub tp_snaplen: crate::ctypes::c_uint, +pub tp_mac: crate::ctypes::c_ushort, +pub tp_net: crate::ctypes::c_ushort, +pub tp_sec: crate::ctypes::c_uint, +pub tp_usec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket2_hdr { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +pub tp_padding: [__u8; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr_variant1 { +pub tp_rxhash: __u32, +pub tp_vlan_tci: __u32, +pub tp_vlan_tpid: __u16, +pub tp_padding: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket3_hdr { +pub tp_next_offset: __u32, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_snaplen: __u32, +pub tp_len: __u32, +pub tp_status: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub __bindgen_anon_1: tpacket3_hdr__bindgen_ty_1, +pub tp_padding: [__u8; 8usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_bd_ts { +pub ts_sec: crate::ctypes::c_uint, +pub __bindgen_anon_1: tpacket_bd_ts__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_hdr_v1 { +pub block_status: __u32, +pub num_pkts: __u32, +pub offset_to_first_pkt: __u32, +pub blk_len: __u32, +pub seq_num: __u64, +pub ts_first_pkt: tpacket_bd_ts, +pub ts_last_pkt: tpacket_bd_ts, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_block_desc { +pub version: __u32, +pub offset_to_priv: __u32, +pub hdr: tpacket_bd_header_u, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req3 { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +pub tp_retire_blk_tov: crate::ctypes::c_uint, +pub tp_sizeof_priv: crate::ctypes::c_uint, +pub tp_feature_req_word: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct packet_mreq { +pub mr_ifindex: crate::ctypes::c_int, +pub mr_type: crate::ctypes::c_ushort, +pub mr_alen: crate::ctypes::c_ushort, +pub mr_address: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fanout_args { +pub id: __u16, +pub type_flags: __u16, +pub max_num_members: __u32, +} +pub const __LITTLE_ENDIAN: u32 = 1234; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const PACKET_HOST: u32 = 0; +pub const PACKET_BROADCAST: u32 = 1; +pub const PACKET_MULTICAST: u32 = 2; +pub const PACKET_OTHERHOST: u32 = 3; +pub const PACKET_OUTGOING: u32 = 4; +pub const PACKET_LOOPBACK: u32 = 5; +pub const PACKET_USER: u32 = 6; +pub const PACKET_KERNEL: u32 = 7; +pub const PACKET_FASTROUTE: u32 = 6; +pub const PACKET_ADD_MEMBERSHIP: u32 = 1; +pub const PACKET_DROP_MEMBERSHIP: u32 = 2; +pub const PACKET_RECV_OUTPUT: u32 = 3; +pub const PACKET_RX_RING: u32 = 5; +pub const PACKET_STATISTICS: u32 = 6; +pub const PACKET_COPY_THRESH: u32 = 7; +pub const PACKET_AUXDATA: u32 = 8; +pub const PACKET_ORIGDEV: u32 = 9; +pub const PACKET_VERSION: u32 = 10; +pub const PACKET_HDRLEN: u32 = 11; +pub const PACKET_RESERVE: u32 = 12; +pub const PACKET_TX_RING: u32 = 13; +pub const PACKET_LOSS: u32 = 14; +pub const PACKET_VNET_HDR: u32 = 15; +pub const PACKET_TX_TIMESTAMP: u32 = 16; +pub const PACKET_TIMESTAMP: u32 = 17; +pub const PACKET_FANOUT: u32 = 18; +pub const PACKET_TX_HAS_OFF: u32 = 19; +pub const PACKET_QDISC_BYPASS: u32 = 20; +pub const PACKET_ROLLOVER_STATS: u32 = 21; +pub const PACKET_FANOUT_DATA: u32 = 22; +pub const PACKET_IGNORE_OUTGOING: u32 = 23; +pub const PACKET_VNET_HDR_SZ: u32 = 24; +pub const PACKET_FANOUT_HASH: u32 = 0; +pub const PACKET_FANOUT_LB: u32 = 1; +pub const PACKET_FANOUT_CPU: u32 = 2; +pub const PACKET_FANOUT_ROLLOVER: u32 = 3; +pub const PACKET_FANOUT_RND: u32 = 4; +pub const PACKET_FANOUT_QM: u32 = 5; +pub const PACKET_FANOUT_CBPF: u32 = 6; +pub const PACKET_FANOUT_EBPF: u32 = 7; +pub const PACKET_FANOUT_FLAG_ROLLOVER: u32 = 4096; +pub const PACKET_FANOUT_FLAG_UNIQUEID: u32 = 8192; +pub const PACKET_FANOUT_FLAG_IGNORE_OUTGOING: u32 = 16384; +pub const PACKET_FANOUT_FLAG_DEFRAG: u32 = 32768; +pub const TP_STATUS_KERNEL: u32 = 0; +pub const TP_STATUS_USER: u32 = 1; +pub const TP_STATUS_COPY: u32 = 2; +pub const TP_STATUS_LOSING: u32 = 4; +pub const TP_STATUS_CSUMNOTREADY: u32 = 8; +pub const TP_STATUS_VLAN_VALID: u32 = 16; +pub const TP_STATUS_BLK_TMO: u32 = 32; +pub const TP_STATUS_VLAN_TPID_VALID: u32 = 64; +pub const TP_STATUS_CSUM_VALID: u32 = 128; +pub const TP_STATUS_GSO_TCP: u32 = 256; +pub const TP_STATUS_AVAILABLE: u32 = 0; +pub const TP_STATUS_SEND_REQUEST: u32 = 1; +pub const TP_STATUS_SENDING: u32 = 2; +pub const TP_STATUS_WRONG_FORMAT: u32 = 4; +pub const TP_STATUS_TS_SOFTWARE: u32 = 536870912; +pub const TP_STATUS_TS_SYS_HARDWARE: u32 = 1073741824; +pub const TP_STATUS_TS_RAW_HARDWARE: u32 = 2147483648; +pub const TP_FT_REQ_FILL_RXHASH: u32 = 1; +pub const TPACKET_ALIGNMENT: u32 = 16; +pub const PACKET_MR_MULTICAST: u32 = 0; +pub const PACKET_MR_PROMISC: u32 = 1; +pub const PACKET_MR_ALLMULTI: u32 = 2; +pub const PACKET_MR_UNICAST: u32 = 3; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tpacket_versions { +TPACKET_V1 = 0, +TPACKET_V2 = 1, +TPACKET_V3 = 2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_stats_u { +pub stats1: tpacket_stats, +pub stats3: tpacket_stats_v3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket3_hdr__bindgen_ty_1 { +pub hv1: tpacket_hdr_variant1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_ts__bindgen_ty_1 { +pub ts_usec: crate::ctypes::c_uint, +pub ts_nsec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_header_u { +pub bh1: tpacket_hdr_v1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_req_u { +pub req: tpacket_req, +pub req3: tpacket_req3, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/io_uring.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/io_uring.rs new file mode 100644 index 0000000000000000000000000000000000000000..81d56f6ff16ac8976c314af22bf04a39cb3a72d0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/io_uring.rs @@ -0,0 +1,1440 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_rwf_t = crate::ctypes::c_int; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +pub struct __BindgenUnionField(::core::marker::PhantomData); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v1 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub master_key_descriptor: [__u8; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_key { +pub mode: __u32, +pub raw: [__u8; 64usize], +pub size: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v2 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub log2_data_unit_size: __u8, +pub __reserved: [__u8; 3usize], +pub master_key_identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_policy_ex_arg { +pub policy_size: __u64, +pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_key_specifier { +pub type_: __u32, +pub __reserved: __u32, +pub u: fscrypt_key_specifier__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct fscrypt_provisioning_key_payload { +pub type_: __u32, +pub flags: __u32, +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +pub struct fscrypt_add_key_arg { +pub key_spec: fscrypt_key_specifier, +pub raw_size: __u32, +pub key_id: __u32, +pub flags: __u32, +pub __reserved: [__u32; 7usize], +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_remove_key_arg { +pub key_spec: fscrypt_key_specifier, +pub removal_status_flags: __u32, +pub __reserved: [__u32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_key_status_arg { +pub key_spec: fscrypt_key_specifier, +pub __reserved: [__u32; 6usize], +pub status: __u32, +pub status_flags: __u32, +pub user_count: __u32, +pub __out_reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mount_attr { +pub attr_set: __u64, +pub attr_clr: __u64, +pub propagation: __u64, +pub userns_fd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct statmount { +pub size: __u32, +pub mnt_opts: __u32, +pub mask: __u64, +pub sb_dev_major: __u32, +pub sb_dev_minor: __u32, +pub sb_magic: __u64, +pub sb_flags: __u32, +pub fs_type: __u32, +pub mnt_id: __u64, +pub mnt_parent_id: __u64, +pub mnt_id_old: __u32, +pub mnt_parent_id_old: __u32, +pub mnt_attr: __u64, +pub mnt_propagation: __u64, +pub mnt_peer_group: __u64, +pub mnt_master: __u64, +pub propagate_from: __u64, +pub mnt_root: __u32, +pub mnt_point: __u32, +pub mnt_ns_id: __u64, +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub supported_mask: __u64, +pub mnt_uidmap_num: __u32, +pub mnt_uidmap: __u32, +pub mnt_gidmap_num: __u32, +pub mnt_gidmap: __u32, +pub __spare2: [__u64; 43usize], +pub str_: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mnt_id_req { +pub size: __u32, +pub spare: __u32, +pub mnt_id: __u64, +pub param: __u64, +pub mnt_ns_id: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_clone_range { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fstrim_range { +pub start: __u64, +pub len: __u64, +pub minlen: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsuuid2 { +pub len: __u8, +pub uuid: [__u8; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fs_sysfs_path { +pub len: __u8, +pub name: [__u8; 128usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_dedupe_range_info { +pub dest_fd: __s64, +pub dest_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct file_dedupe_range { +pub src_offset: __u64, +pub src_length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct files_stat_struct { +pub nr_files: crate::ctypes::c_ulong, +pub nr_free_files: crate::ctypes::c_ulong, +pub max_files: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct inodes_stat_t { +pub nr_inodes: crate::ctypes::c_long, +pub nr_unused: crate::ctypes::c_long, +pub dummy: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsxattr { +pub fsx_xflags: __u32, +pub fsx_extsize: __u32, +pub fsx_nextents: __u32, +pub fsx_projid: __u32, +pub fsx_cowextsize: __u32, +pub fsx_pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct page_region { +pub start: __u64, +pub end: __u64, +pub categories: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pm_scan_arg { +pub size: __u64, +pub flags: __u64, +pub start: __u64, +pub end: __u64, +pub walk_end: __u64, +pub vec: __u64, +pub vec_len: __u64, +pub max_pages: __u64, +pub category_inverted: __u64, +pub category_mask: __u64, +pub category_anyof_mask: __u64, +pub return_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct procmap_query { +pub size: __u64, +pub query_flags: __u64, +pub query_addr: __u64, +pub vma_start: __u64, +pub vma_end: __u64, +pub vma_flags: __u64, +pub vma_page_size: __u64, +pub vma_offset: __u64, +pub inode: __u64, +pub dev_major: __u32, +pub dev_minor: __u32, +pub vma_name_size: __u32, +pub build_id_size: __u32, +pub vma_name_addr: __u64, +pub build_id_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_timespec { +pub tv_sec: __kernel_time64_t, +pub tv_nsec: crate::ctypes::c_longlong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_itimerspec { +pub it_interval: __kernel_timespec, +pub it_value: __kernel_timespec, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_long_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timespec { +pub tv_sec: __kernel_old_time_t, +pub tv_nsec: crate::ctypes::c_long, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_itimerval { +pub it_interval: __kernel_old_timeval, +pub it_value: __kernel_old_timeval, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sock_timeval { +pub tv_sec: __s64, +pub tv_usec: __s64, +} +#[repr(C)] +pub struct io_uring_sqe { +pub opcode: __u8, +pub flags: __u8, +pub ioprio: __u16, +pub fd: __s32, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, +pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, +pub len: __u32, +pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, +pub user_data: __u64, +pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, +pub personality: __u16, +pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, +pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { +pub cmd_op: __u32, +pub __pad1: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_2__bindgen_ty_1 { +pub level: __u32, +pub optname: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { +pub addr_len: __u16, +pub __pad3: [__u16; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_2 { +pub write_stream: __u8, +pub __pad4: [__u8; 3usize], +} +#[repr(C)] +pub struct io_uring_sqe__bindgen_ty_6 { +pub __bindgen_anon_1: __BindgenUnionField, +pub __bindgen_anon_2: __BindgenUnionField, +pub optval: __BindgenUnionField<__u64>, +pub cmd: __BindgenUnionField<[__u8; 0usize]>, +pub bindgen_union_field: [u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { +pub addr3: __u64, +pub __pad2: [__u64; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_2 { +pub attr_ptr: __u64, +pub attr_type_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_attr_pi { +pub flags: __u16, +pub app_tag: __u16, +pub len: __u32, +pub addr: __u64, +pub seed: __u64, +pub rsvd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct io_uring_cqe { +pub user_data: __u64, +pub res: __s32, +pub flags: __u32, +pub big_cqe: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_sqring_offsets { +pub head: __u32, +pub tail: __u32, +pub ring_mask: __u32, +pub ring_entries: __u32, +pub flags: __u32, +pub dropped: __u32, +pub array: __u32, +pub resv1: __u32, +pub user_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_cqring_offsets { +pub head: __u32, +pub tail: __u32, +pub ring_mask: __u32, +pub ring_entries: __u32, +pub overflow: __u32, +pub cqes: __u32, +pub flags: __u32, +pub resv1: __u32, +pub user_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_params { +pub sq_entries: __u32, +pub cq_entries: __u32, +pub flags: __u32, +pub sq_thread_cpu: __u32, +pub sq_thread_idle: __u32, +pub features: __u32, +pub wq_fd: __u32, +pub resv: [__u32; 3usize], +pub sq_off: io_sqring_offsets, +pub cq_off: io_cqring_offsets, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_files_update { +pub offset: __u32, +pub resv: __u32, +pub fds: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_region_desc { +pub user_addr: __u64, +pub size: __u64, +pub flags: __u32, +pub id: __u32, +pub mmap_offset: __u64, +pub __resv: [__u64; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_mem_region_reg { +pub region_uptr: __u64, +pub flags: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_rsrc_register { +pub nr: __u32, +pub flags: __u32, +pub resv2: __u64, +pub data: __u64, +pub tags: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_rsrc_update { +pub offset: __u32, +pub resv: __u32, +pub data: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_rsrc_update2 { +pub offset: __u32, +pub resv: __u32, +pub data: __u64, +pub tags: __u64, +pub nr: __u32, +pub resv2: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_probe_op { +pub op: __u8, +pub resv: __u8, +pub flags: __u16, +pub resv2: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct io_uring_probe { +pub last_op: __u8, +pub ops_len: __u8, +pub resv: __u16, +pub resv2: [__u32; 3usize], +pub ops: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct io_uring_restriction { +pub opcode: __u16, +pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, +pub resv: __u8, +pub resv2: [__u32; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_clock_register { +pub clockid: __u32, +pub __resv: [__u32; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_clone_buffers { +pub src_fd: __u32, +pub flags: __u32, +pub src_off: __u32, +pub dst_off: __u32, +pub nr: __u32, +pub pad: [__u32; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf { +pub addr: __u64, +pub len: __u32, +pub bid: __u16, +pub resv: __u16, +} +#[repr(C)] +pub struct io_uring_buf_ring { +pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_buf_ring__bindgen_ty_1 { +pub __bindgen_anon_1: __BindgenUnionField, +pub __bindgen_anon_2: __BindgenUnionField, +pub bindgen_union_field: [u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { +pub resv1: __u64, +pub resv2: __u32, +pub resv3: __u16, +pub tail: __u16, +} +#[repr(C)] +#[derive(Debug)] +pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { +pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, +pub bufs: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_reg { +pub ring_addr: __u64, +pub ring_entries: __u32, +pub bgid: __u16, +pub flags: __u16, +pub resv: [__u64; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_status { +pub buf_group: __u32, +pub head: __u32, +pub resv: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_napi { +pub busy_poll_to: __u32, +pub prefer_busy_poll: __u8, +pub opcode: __u8, +pub pad: [__u8; 2usize], +pub op_param: __u32, +pub resv: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_reg_wait { +pub ts: __kernel_timespec, +pub min_wait_usec: __u32, +pub flags: __u32, +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub pad: [__u32; 3usize], +pub pad2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_getevents_arg { +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub min_wait_usec: __u32, +pub ts: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sync_cancel_reg { +pub addr: __u64, +pub fd: __s32, +pub flags: __u32, +pub timeout: __kernel_timespec, +pub opcode: __u8, +pub pad: [__u8; 7usize], +pub pad2: [__u64; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_file_index_range { +pub off: __u32, +pub len: __u32, +pub resv: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_recvmsg_out { +pub namelen: __u32, +pub controllen: __u32, +pub payloadlen: __u32, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 3usize], +} +pub const NR_OPEN: u32 = 1024; +pub const NGROUPS_MAX: u32 = 65536; +pub const ARG_MAX: u32 = 131072; +pub const LINK_MAX: u32 = 127; +pub const MAX_CANON: u32 = 255; +pub const MAX_INPUT: u32 = 255; +pub const NAME_MAX: u32 = 255; +pub const PATH_MAX: u32 = 4096; +pub const PIPE_BUF: u32 = 4096; +pub const XATTR_NAME_MAX: u32 = 255; +pub const XATTR_SIZE_MAX: u32 = 65536; +pub const XATTR_LIST_MAX: u32 = 65536; +pub const RTSIG_MAX: u32 = 32; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_SIZEBITS: u32 = 14; +pub const _IOC_DIRBITS: u32 = 2; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 16383; +pub const _IOC_DIRMASK: u32 = 3; +pub const _IOC_NRSHIFT: u32 = 0; +pub const _IOC_TYPESHIFT: u32 = 8; +pub const _IOC_SIZESHIFT: u32 = 16; +pub const _IOC_DIRSHIFT: u32 = 30; +pub const _IOC_NONE: u32 = 0; +pub const _IOC_WRITE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const IOC_IN: u32 = 1073741824; +pub const IOC_OUT: u32 = 2147483648; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 1073676288; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; +pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; +pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; +pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; +pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; +pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; +pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; +pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; +pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; +pub const FSCRYPT_POLICY_V1: u32 = 0; +pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; +pub const FSCRYPT_POLICY_V2: u32 = 2; +pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; +pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; +pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; +pub const FSCRYPT_ADD_KEY_FLAG_HW_WRAPPED: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; +pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; +pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; +pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; +pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; +pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FS_POLICY_FLAGS_VALID: u32 = 7; +pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; +pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; +pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; +pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; +pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; +pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; +pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; +pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; +pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FS_MAX_KEY_SIZE: u32 = 64; +pub const MS_RDONLY: u32 = 1; +pub const MS_NOSUID: u32 = 2; +pub const MS_NODEV: u32 = 4; +pub const MS_NOEXEC: u32 = 8; +pub const MS_SYNCHRONOUS: u32 = 16; +pub const MS_REMOUNT: u32 = 32; +pub const MS_MANDLOCK: u32 = 64; +pub const MS_DIRSYNC: u32 = 128; +pub const MS_NOSYMFOLLOW: u32 = 256; +pub const MS_NOATIME: u32 = 1024; +pub const MS_NODIRATIME: u32 = 2048; +pub const MS_BIND: u32 = 4096; +pub const MS_MOVE: u32 = 8192; +pub const MS_REC: u32 = 16384; +pub const MS_VERBOSE: u32 = 32768; +pub const MS_SILENT: u32 = 32768; +pub const MS_POSIXACL: u32 = 65536; +pub const MS_UNBINDABLE: u32 = 131072; +pub const MS_PRIVATE: u32 = 262144; +pub const MS_SLAVE: u32 = 524288; +pub const MS_SHARED: u32 = 1048576; +pub const MS_RELATIME: u32 = 2097152; +pub const MS_KERNMOUNT: u32 = 4194304; +pub const MS_I_VERSION: u32 = 8388608; +pub const MS_STRICTATIME: u32 = 16777216; +pub const MS_LAZYTIME: u32 = 33554432; +pub const MS_SUBMOUNT: u32 = 67108864; +pub const MS_NOREMOTELOCK: u32 = 134217728; +pub const MS_NOSEC: u32 = 268435456; +pub const MS_BORN: u32 = 536870912; +pub const MS_ACTIVE: u32 = 1073741824; +pub const MS_NOUSER: u32 = 2147483648; +pub const MS_RMT_MASK: u32 = 41943121; +pub const MS_MGC_VAL: u32 = 3236757504; +pub const MS_MGC_MSK: u32 = 4294901760; +pub const OPEN_TREE_CLONE: u32 = 1; +pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; +pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; +pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; +pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; +pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; +pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; +pub const MOVE_MOUNT_SET_GROUP: u32 = 256; +pub const MOVE_MOUNT_BENEATH: u32 = 512; +pub const MOVE_MOUNT__MASK: u32 = 887; +pub const FSOPEN_CLOEXEC: u32 = 1; +pub const FSPICK_CLOEXEC: u32 = 1; +pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; +pub const FSPICK_NO_AUTOMOUNT: u32 = 4; +pub const FSPICK_EMPTY_PATH: u32 = 8; +pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const MOUNT_ATTR_RDONLY: u32 = 1; +pub const MOUNT_ATTR_NOSUID: u32 = 2; +pub const MOUNT_ATTR_NODEV: u32 = 4; +pub const MOUNT_ATTR_NOEXEC: u32 = 8; +pub const MOUNT_ATTR__ATIME: u32 = 112; +pub const MOUNT_ATTR_RELATIME: u32 = 0; +pub const MOUNT_ATTR_NOATIME: u32 = 16; +pub const MOUNT_ATTR_STRICTATIME: u32 = 32; +pub const MOUNT_ATTR_NODIRATIME: u32 = 128; +pub const MOUNT_ATTR_IDMAP: u32 = 1048576; +pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; +pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; +pub const MNT_ID_REQ_SIZE_VER0: u32 = 24; +pub const MNT_ID_REQ_SIZE_VER1: u32 = 32; +pub const STATMOUNT_SB_BASIC: u32 = 1; +pub const STATMOUNT_MNT_BASIC: u32 = 2; +pub const STATMOUNT_PROPAGATE_FROM: u32 = 4; +pub const STATMOUNT_MNT_ROOT: u32 = 8; +pub const STATMOUNT_MNT_POINT: u32 = 16; +pub const STATMOUNT_FS_TYPE: u32 = 32; +pub const STATMOUNT_MNT_NS_ID: u32 = 64; +pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; +pub const STATMOUNT_SUPPORTED_MASK: u32 = 4096; +pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; +pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; +pub const LSMT_ROOT: i32 = -1; +pub const LISTMOUNT_REVERSE: u32 = 1; +pub const INR_OPEN_CUR: u32 = 1024; +pub const INR_OPEN_MAX: u32 = 4096; +pub const BLOCK_SIZE_BITS: u32 = 10; +pub const BLOCK_SIZE: u32 = 1024; +pub const IO_INTEGRITY_CHK_GUARD: u32 = 1; +pub const IO_INTEGRITY_CHK_REFTAG: u32 = 2; +pub const IO_INTEGRITY_CHK_APPTAG: u32 = 4; +pub const IO_INTEGRITY_VALID_FLAGS: u32 = 7; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const SEEK_DATA: u32 = 3; +pub const SEEK_HOLE: u32 = 4; +pub const SEEK_MAX: u32 = 4; +pub const RENAME_NOREPLACE: u32 = 1; +pub const RENAME_EXCHANGE: u32 = 2; +pub const RENAME_WHITEOUT: u32 = 4; +pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; +pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; +pub const NR_FILE: u32 = 8192; +pub const FS_XFLAG_REALTIME: u32 = 1; +pub const FS_XFLAG_PREALLOC: u32 = 2; +pub const FS_XFLAG_IMMUTABLE: u32 = 8; +pub const FS_XFLAG_APPEND: u32 = 16; +pub const FS_XFLAG_SYNC: u32 = 32; +pub const FS_XFLAG_NOATIME: u32 = 64; +pub const FS_XFLAG_NODUMP: u32 = 128; +pub const FS_XFLAG_RTINHERIT: u32 = 256; +pub const FS_XFLAG_PROJINHERIT: u32 = 512; +pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; +pub const FS_XFLAG_EXTSIZE: u32 = 2048; +pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; +pub const FS_XFLAG_NODEFRAG: u32 = 8192; +pub const FS_XFLAG_FILESTREAM: u32 = 16384; +pub const FS_XFLAG_DAX: u32 = 32768; +pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_HASATTR: u32 = 2147483648; +pub const BMAP_IOCTL: u32 = 1; +pub const FSLABEL_MAX: u32 = 256; +pub const FS_SECRM_FL: u32 = 1; +pub const FS_UNRM_FL: u32 = 2; +pub const FS_COMPR_FL: u32 = 4; +pub const FS_SYNC_FL: u32 = 8; +pub const FS_IMMUTABLE_FL: u32 = 16; +pub const FS_APPEND_FL: u32 = 32; +pub const FS_NODUMP_FL: u32 = 64; +pub const FS_NOATIME_FL: u32 = 128; +pub const FS_DIRTY_FL: u32 = 256; +pub const FS_COMPRBLK_FL: u32 = 512; +pub const FS_NOCOMP_FL: u32 = 1024; +pub const FS_ENCRYPT_FL: u32 = 2048; +pub const FS_BTREE_FL: u32 = 4096; +pub const FS_INDEX_FL: u32 = 4096; +pub const FS_IMAGIC_FL: u32 = 8192; +pub const FS_JOURNAL_DATA_FL: u32 = 16384; +pub const FS_NOTAIL_FL: u32 = 32768; +pub const FS_DIRSYNC_FL: u32 = 65536; +pub const FS_TOPDIR_FL: u32 = 131072; +pub const FS_HUGE_FILE_FL: u32 = 262144; +pub const FS_EXTENT_FL: u32 = 524288; +pub const FS_VERITY_FL: u32 = 1048576; +pub const FS_EA_INODE_FL: u32 = 2097152; +pub const FS_EOFBLOCKS_FL: u32 = 4194304; +pub const FS_NOCOW_FL: u32 = 8388608; +pub const FS_DAX_FL: u32 = 33554432; +pub const FS_INLINE_DATA_FL: u32 = 268435456; +pub const FS_PROJINHERIT_FL: u32 = 536870912; +pub const FS_CASEFOLD_FL: u32 = 1073741824; +pub const FS_RESERVED_FL: u32 = 2147483648; +pub const FS_FL_USER_VISIBLE: u32 = 253951; +pub const FS_FL_USER_MODIFIABLE: u32 = 229631; +pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; +pub const SYNC_FILE_RANGE_WRITE: u32 = 2; +pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; +pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; +pub const PROCFS_IOCTL_MAGIC: u8 = 102u8; +pub const PAGE_IS_WPALLOWED: u32 = 1; +pub const PAGE_IS_WRITTEN: u32 = 2; +pub const PAGE_IS_FILE: u32 = 4; +pub const PAGE_IS_PRESENT: u32 = 8; +pub const PAGE_IS_SWAPPED: u32 = 16; +pub const PAGE_IS_PFNZERO: u32 = 32; +pub const PAGE_IS_HUGE: u32 = 64; +pub const PAGE_IS_SOFT_DIRTY: u32 = 128; +pub const PAGE_IS_GUARD: u32 = 256; +pub const PM_SCAN_WP_MATCHING: u32 = 1; +pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; +pub const IORING_FILE_INDEX_ALLOC: i32 = -1; +pub const IORING_SETUP_IOPOLL: u32 = 1; +pub const IORING_SETUP_SQPOLL: u32 = 2; +pub const IORING_SETUP_SQ_AFF: u32 = 4; +pub const IORING_SETUP_CQSIZE: u32 = 8; +pub const IORING_SETUP_CLAMP: u32 = 16; +pub const IORING_SETUP_ATTACH_WQ: u32 = 32; +pub const IORING_SETUP_R_DISABLED: u32 = 64; +pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; +pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; +pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; +pub const IORING_SETUP_SQE128: u32 = 1024; +pub const IORING_SETUP_CQE32: u32 = 2048; +pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; +pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; +pub const IORING_SETUP_NO_MMAP: u32 = 16384; +pub const IORING_SETUP_REGISTERED_FD_ONLY: u32 = 32768; +pub const IORING_SETUP_NO_SQARRAY: u32 = 65536; +pub const IORING_SETUP_HYBRID_IOPOLL: u32 = 131072; +pub const IORING_URING_CMD_FIXED: u32 = 1; +pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_FSYNC_DATASYNC: u32 = 1; +pub const IORING_TIMEOUT_ABS: u32 = 1; +pub const IORING_TIMEOUT_UPDATE: u32 = 2; +pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; +pub const IORING_TIMEOUT_REALTIME: u32 = 8; +pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; +pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; +pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; +pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; +pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; +pub const IORING_POLL_ADD_MULTI: u32 = 1; +pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; +pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; +pub const IORING_POLL_ADD_LEVEL: u32 = 8; +pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; +pub const IORING_ASYNC_CANCEL_FD: u32 = 2; +pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; +pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; +pub const IORING_ASYNC_CANCEL_USERDATA: u32 = 16; +pub const IORING_ASYNC_CANCEL_OP: u32 = 32; +pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; +pub const IORING_RECV_MULTISHOT: u32 = 2; +pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; +pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; +pub const IORING_RECVSEND_BUNDLE: u32 = 16; +pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; +pub const IORING_ACCEPT_MULTISHOT: u32 = 1; +pub const IORING_ACCEPT_DONTWAIT: u32 = 2; +pub const IORING_ACCEPT_POLL_FIRST: u32 = 4; +pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; +pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; +pub const IORING_FIXED_FD_NO_CLOEXEC: u32 = 1; +pub const IORING_NOP_INJECT_RESULT: u32 = 1; +pub const IORING_NOP_FILE: u32 = 2; +pub const IORING_NOP_FIXED_FILE: u32 = 4; +pub const IORING_NOP_FIXED_BUFFER: u32 = 8; +pub const IORING_CQE_F_BUFFER: u32 = 1; +pub const IORING_CQE_F_MORE: u32 = 2; +pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; +pub const IORING_CQE_F_NOTIF: u32 = 8; +pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; +pub const IORING_OFF_SQ_RING: u32 = 0; +pub const IORING_OFF_CQ_RING: u32 = 134217728; +pub const IORING_OFF_SQES: u32 = 268435456; +pub const IORING_OFF_PBUF_RING: u32 = 2147483648; +pub const IORING_OFF_PBUF_SHIFT: u32 = 16; +pub const IORING_OFF_MMAP_MASK: u32 = 4160749568; +pub const IORING_SQ_NEED_WAKEUP: u32 = 1; +pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; +pub const IORING_SQ_TASKRUN: u32 = 4; +pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; +pub const IORING_ENTER_GETEVENTS: u32 = 1; +pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; +pub const IORING_ENTER_SQ_WAIT: u32 = 4; +pub const IORING_ENTER_EXT_ARG: u32 = 8; +pub const IORING_ENTER_REGISTERED_RING: u32 = 16; +pub const IORING_ENTER_ABS_TIMER: u32 = 32; +pub const IORING_ENTER_EXT_ARG_REG: u32 = 64; +pub const IORING_ENTER_NO_IOWAIT: u32 = 128; +pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; +pub const IORING_FEAT_NODROP: u32 = 2; +pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; +pub const IORING_FEAT_RW_CUR_POS: u32 = 8; +pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; +pub const IORING_FEAT_FAST_POLL: u32 = 32; +pub const IORING_FEAT_POLL_32BITS: u32 = 64; +pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; +pub const IORING_FEAT_EXT_ARG: u32 = 256; +pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; +pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; +pub const IORING_FEAT_CQE_SKIP: u32 = 2048; +pub const IORING_FEAT_LINKED_FILE: u32 = 4096; +pub const IORING_FEAT_REG_REG_RING: u32 = 8192; +pub const IORING_FEAT_RECVSEND_BUNDLE: u32 = 16384; +pub const IORING_FEAT_MIN_TIMEOUT: u32 = 32768; +pub const IORING_FEAT_RW_ATTR: u32 = 65536; +pub const IORING_FEAT_NO_IOWAIT: u32 = 131072; +pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; +pub const IORING_REGISTER_FILES_SKIP: i32 = -2; +pub const IO_URING_OP_SUPPORTED: u32 = 1; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; +pub const IORING_MEM_REGION_TYPE_USER: _bindgen_ty_1 = _bindgen_ty_1::IORING_MEM_REGION_TYPE_USER; +pub const IORING_MEM_REGION_REG_WAIT_ARG: _bindgen_ty_2 = _bindgen_ty_2::IORING_MEM_REGION_REG_WAIT_ARG; +pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_REGISTER_DST_REPLACE: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_DST_REPLACE; +pub const IORING_REG_WAIT_TS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REG_WAIT_TS; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum fsconfig_command { +FSCONFIG_SET_FLAG = 0, +FSCONFIG_SET_STRING = 1, +FSCONFIG_SET_BINARY = 2, +FSCONFIG_SET_PATH = 3, +FSCONFIG_SET_PATH_EMPTY = 4, +FSCONFIG_SET_FD = 5, +FSCONFIG_CMD_CREATE = 6, +FSCONFIG_CMD_RECONFIGURE = 7, +FSCONFIG_CMD_CREATE_EXCL = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum procmap_query_flags { +PROCMAP_QUERY_VMA_READABLE = 1, +PROCMAP_QUERY_VMA_WRITABLE = 2, +PROCMAP_QUERY_VMA_EXECUTABLE = 4, +PROCMAP_QUERY_VMA_SHARED = 8, +PROCMAP_QUERY_COVERING_OR_NEXT_VMA = 16, +PROCMAP_QUERY_FILE_BACKED_VMA = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_sqe_flags_bit { +IOSQE_FIXED_FILE_BIT = 0, +IOSQE_IO_DRAIN_BIT = 1, +IOSQE_IO_LINK_BIT = 2, +IOSQE_IO_HARDLINK_BIT = 3, +IOSQE_ASYNC_BIT = 4, +IOSQE_BUFFER_SELECT_BIT = 5, +IOSQE_CQE_SKIP_SUCCESS_BIT = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_op { +IORING_OP_NOP = 0, +IORING_OP_READV = 1, +IORING_OP_WRITEV = 2, +IORING_OP_FSYNC = 3, +IORING_OP_READ_FIXED = 4, +IORING_OP_WRITE_FIXED = 5, +IORING_OP_POLL_ADD = 6, +IORING_OP_POLL_REMOVE = 7, +IORING_OP_SYNC_FILE_RANGE = 8, +IORING_OP_SENDMSG = 9, +IORING_OP_RECVMSG = 10, +IORING_OP_TIMEOUT = 11, +IORING_OP_TIMEOUT_REMOVE = 12, +IORING_OP_ACCEPT = 13, +IORING_OP_ASYNC_CANCEL = 14, +IORING_OP_LINK_TIMEOUT = 15, +IORING_OP_CONNECT = 16, +IORING_OP_FALLOCATE = 17, +IORING_OP_OPENAT = 18, +IORING_OP_CLOSE = 19, +IORING_OP_FILES_UPDATE = 20, +IORING_OP_STATX = 21, +IORING_OP_READ = 22, +IORING_OP_WRITE = 23, +IORING_OP_FADVISE = 24, +IORING_OP_MADVISE = 25, +IORING_OP_SEND = 26, +IORING_OP_RECV = 27, +IORING_OP_OPENAT2 = 28, +IORING_OP_EPOLL_CTL = 29, +IORING_OP_SPLICE = 30, +IORING_OP_PROVIDE_BUFFERS = 31, +IORING_OP_REMOVE_BUFFERS = 32, +IORING_OP_TEE = 33, +IORING_OP_SHUTDOWN = 34, +IORING_OP_RENAMEAT = 35, +IORING_OP_UNLINKAT = 36, +IORING_OP_MKDIRAT = 37, +IORING_OP_SYMLINKAT = 38, +IORING_OP_LINKAT = 39, +IORING_OP_MSG_RING = 40, +IORING_OP_FSETXATTR = 41, +IORING_OP_SETXATTR = 42, +IORING_OP_FGETXATTR = 43, +IORING_OP_GETXATTR = 44, +IORING_OP_SOCKET = 45, +IORING_OP_URING_CMD = 46, +IORING_OP_SEND_ZC = 47, +IORING_OP_SENDMSG_ZC = 48, +IORING_OP_READ_MULTISHOT = 49, +IORING_OP_WAITID = 50, +IORING_OP_FUTEX_WAIT = 51, +IORING_OP_FUTEX_WAKE = 52, +IORING_OP_FUTEX_WAITV = 53, +IORING_OP_FIXED_FD_INSTALL = 54, +IORING_OP_FTRUNCATE = 55, +IORING_OP_BIND = 56, +IORING_OP_LISTEN = 57, +IORING_OP_RECV_ZC = 58, +IORING_OP_EPOLL_WAIT = 59, +IORING_OP_READV_FIXED = 60, +IORING_OP_WRITEV_FIXED = 61, +IORING_OP_PIPE = 62, +IORING_OP_LAST = 63, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_msg_ring_flags { +IORING_MSG_DATA = 0, +IORING_MSG_SEND_FD = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_register_op { +IORING_REGISTER_BUFFERS = 0, +IORING_UNREGISTER_BUFFERS = 1, +IORING_REGISTER_FILES = 2, +IORING_UNREGISTER_FILES = 3, +IORING_REGISTER_EVENTFD = 4, +IORING_UNREGISTER_EVENTFD = 5, +IORING_REGISTER_FILES_UPDATE = 6, +IORING_REGISTER_EVENTFD_ASYNC = 7, +IORING_REGISTER_PROBE = 8, +IORING_REGISTER_PERSONALITY = 9, +IORING_UNREGISTER_PERSONALITY = 10, +IORING_REGISTER_RESTRICTIONS = 11, +IORING_REGISTER_ENABLE_RINGS = 12, +IORING_REGISTER_FILES2 = 13, +IORING_REGISTER_FILES_UPDATE2 = 14, +IORING_REGISTER_BUFFERS2 = 15, +IORING_REGISTER_BUFFERS_UPDATE = 16, +IORING_REGISTER_IOWQ_AFF = 17, +IORING_UNREGISTER_IOWQ_AFF = 18, +IORING_REGISTER_IOWQ_MAX_WORKERS = 19, +IORING_REGISTER_RING_FDS = 20, +IORING_UNREGISTER_RING_FDS = 21, +IORING_REGISTER_PBUF_RING = 22, +IORING_UNREGISTER_PBUF_RING = 23, +IORING_REGISTER_SYNC_CANCEL = 24, +IORING_REGISTER_FILE_ALLOC_RANGE = 25, +IORING_REGISTER_PBUF_STATUS = 26, +IORING_REGISTER_NAPI = 27, +IORING_UNREGISTER_NAPI = 28, +IORING_REGISTER_CLOCK = 29, +IORING_REGISTER_CLONE_BUFFERS = 30, +IORING_REGISTER_SEND_MSG_RING = 31, +IORING_REGISTER_ZCRX_IFQ = 32, +IORING_REGISTER_RESIZE_RINGS = 33, +IORING_REGISTER_MEM_REGION = 34, +IORING_REGISTER_LAST = 35, +IORING_REGISTER_USE_REGISTERED_RING = 2147483648, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_wq_type { +IO_WQ_BOUND = 0, +IO_WQ_UNBOUND = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +IORING_MEM_REGION_TYPE_USER = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IORING_MEM_REGION_REG_WAIT_ARG = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +IORING_REGISTER_SRC_REGISTERED = 1, +IORING_REGISTER_DST_REPLACE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_register_pbuf_ring_flags { +IOU_PBUF_RING_MMAP = 1, +IOU_PBUF_RING_INC = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_op { +IO_URING_NAPI_REGISTER_OP = 0, +IO_URING_NAPI_STATIC_ADD_ID = 1, +IO_URING_NAPI_STATIC_DEL_ID = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_tracking_strategy { +IO_URING_NAPI_TRACKING_DYNAMIC = 0, +IO_URING_NAPI_TRACKING_STATIC = 1, +IO_URING_NAPI_TRACKING_INACTIVE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_register_restriction_op { +IORING_RESTRICTION_REGISTER_OP = 0, +IORING_RESTRICTION_SQE_OP = 1, +IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, +IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, +IORING_RESTRICTION_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IORING_REG_WAIT_TS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_socket_op { +SOCKET_URING_OP_SIOCINQ = 0, +SOCKET_URING_OP_SIOCOUTQ = 1, +SOCKET_URING_OP_GETSOCKOPT = 2, +SOCKET_URING_OP_SETSOCKOPT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { +pub version: __u8, +pub v1: fscrypt_policy_v1, +pub v2: fscrypt_policy_v2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_key_specifier__bindgen_ty_1 { +pub __reserved: [__u8; 32usize], +pub descriptor: [__u8; 8usize], +pub identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_1 { +pub off: __u64, +pub addr2: __u64, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_2 { +pub addr: __u64, +pub splice_off_in: __u64, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_2__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_3 { +pub rw_flags: __kernel_rwf_t, +pub fsync_flags: __u32, +pub poll_events: __u16, +pub poll32_events: __u32, +pub sync_range_flags: __u32, +pub msg_flags: __u32, +pub timeout_flags: __u32, +pub accept_flags: __u32, +pub cancel_flags: __u32, +pub open_flags: __u32, +pub statx_flags: __u32, +pub fadvise_advice: __u32, +pub splice_flags: __u32, +pub rename_flags: __u32, +pub unlink_flags: __u32, +pub hardlink_flags: __u32, +pub xattr_flags: __u32, +pub msg_ring_flags: __u32, +pub uring_cmd_flags: __u32, +pub waitid_flags: __u32, +pub futex_flags: __u32, +pub install_fd_flags: __u32, +pub nop_flags: __u32, +pub pipe_flags: __u32, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_4 { +pub buf_index: __u16, +pub buf_group: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_5 { +pub splice_fd_in: __s32, +pub file_index: __u32, +pub zcrx_ifq_idx: __u32, +pub optlen: __u32, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, +pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_5__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_restriction__bindgen_ty_1 { +pub register_op: __u8, +pub sqe_op: __u8, +pub sqe_flags: __u8, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl __BindgenUnionField { +#[inline] +pub const fn new() -> Self { +__BindgenUnionField(::core::marker::PhantomData) +} +#[inline] +pub unsafe fn as_ref(&self) -> &T { +::core::mem::transmute(self) +} +#[inline] +pub unsafe fn as_mut(&mut self) -> &mut T { +::core::mem::transmute(self) +} +} +impl ::core::default::Default for __BindgenUnionField { +#[inline] +fn default() -> Self { +Self::new() +} +} +impl ::core::clone::Clone for __BindgenUnionField { +#[inline] +fn clone(&self) -> Self { +*self +} +} +impl ::core::marker::Copy for __BindgenUnionField {} +impl ::core::fmt::Debug for __BindgenUnionField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__BindgenUnionField") +} +} +impl ::core::hash::Hash for __BindgenUnionField { +fn hash(&self, _state: &mut H) {} +} +impl ::core::cmp::PartialEq for __BindgenUnionField { +fn eq(&self, _other: &__BindgenUnionField) -> bool { +true +} +} +impl ::core::cmp::Eq for __BindgenUnionField {} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/ioctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/ioctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..13aef4bb2117a4c0a3377e5f05ecab3a7b17e77b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/ioctl.rs @@ -0,0 +1,1502 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const FIONREAD: u32 = 21531; +pub const FIONBIO: u32 = 21537; +pub const FIOCLEX: u32 = 21585; +pub const FIONCLEX: u32 = 21584; +pub const FIOASYNC: u32 = 21586; +pub const FIOQSIZE: u32 = 21600; +pub const TCXONC: u32 = 21514; +pub const TCFLSH: u32 = 21515; +pub const TIOCSCTTY: u32 = 21518; +pub const TIOCSPGRP: u32 = 21520; +pub const TIOCOUTQ: u32 = 21521; +pub const TIOCSTI: u32 = 21522; +pub const TIOCSWINSZ: u32 = 21524; +pub const TIOCMGET: u32 = 21525; +pub const TIOCMBIS: u32 = 21526; +pub const TIOCMBIC: u32 = 21527; +pub const TIOCMSET: u32 = 21528; +pub const TIOCSSOFTCAR: u32 = 21530; +pub const TIOCLINUX: u32 = 21532; +pub const TIOCCONS: u32 = 21533; +pub const TIOCSSERIAL: u32 = 21535; +pub const TIOCPKT: u32 = 21536; +pub const TIOCNOTTY: u32 = 21538; +pub const TIOCSETD: u32 = 21539; +pub const TIOCSBRK: u32 = 21543; +pub const TIOCCBRK: u32 = 21544; +pub const TIOCSRS485: u32 = 21551; +pub const TIOCSPTLCK: u32 = 1074025521; +pub const TIOCSIG: u32 = 1074025526; +pub const TIOCVHANGUP: u32 = 21559; +pub const TIOCSERCONFIG: u32 = 21587; +pub const TIOCSERGWILD: u32 = 21588; +pub const TIOCSERSWILD: u32 = 21589; +pub const TIOCSLCKTRMIOS: u32 = 21591; +pub const TIOCSERGSTRUCT: u32 = 21592; +pub const TIOCSERGETLSR: u32 = 21593; +pub const TIOCSERGETMULTI: u32 = 21594; +pub const TIOCSERSETMULTI: u32 = 21595; +pub const TIOCMIWAIT: u32 = 21596; +pub const TCGETS: u32 = 21505; +pub const TCGETA: u32 = 21509; +pub const TCSBRK: u32 = 21513; +pub const TCSBRKP: u32 = 21541; +pub const TCSETA: u32 = 21510; +pub const TCSETAF: u32 = 21512; +pub const TCSETAW: u32 = 21511; +pub const TIOCEXCL: u32 = 21516; +pub const TIOCNXCL: u32 = 21517; +pub const TIOCGDEV: u32 = 2147767346; +pub const TIOCGEXCL: u32 = 2147767360; +pub const TIOCGICOUNT: u32 = 21597; +pub const TIOCGLCKTRMIOS: u32 = 21590; +pub const TIOCGPGRP: u32 = 21519; +pub const TIOCGPKT: u32 = 2147767352; +pub const TIOCGPTLCK: u32 = 2147767353; +pub const TIOCGPTN: u32 = 2147767344; +pub const TIOCGPTPEER: u32 = 21569; +pub const TIOCGRS485: u32 = 21550; +pub const TIOCGSERIAL: u32 = 21534; +pub const TIOCGSID: u32 = 21545; +pub const TIOCGSOFTCAR: u32 = 21529; +pub const TIOCGWINSZ: u32 = 21523; +pub const TCGETS2: u32 = 2150388778; +pub const TCGETX: u32 = 21554; +pub const TCSETS: u32 = 21506; +pub const TCSETS2: u32 = 1076646955; +pub const TCSETSF: u32 = 21508; +pub const TCSETSF2: u32 = 1076646957; +pub const TCSETSW: u32 = 21507; +pub const TCSETSW2: u32 = 1076646956; +pub const TCSETX: u32 = 21555; +pub const TCSETXF: u32 = 21556; +pub const TCSETXW: u32 = 21557; +pub const TIOCGETD: u32 = 21540; +pub const MTIOCGET: u32 = 2150657282; +pub const BLKSSZGET: u32 = 4712; +pub const BLKPBSZGET: u32 = 4731; +pub const BLKROSET: u32 = 4701; +pub const BLKROGET: u32 = 4702; +pub const BLKRRPART: u32 = 4703; +pub const BLKGETSIZE: u32 = 4704; +pub const BLKFLSBUF: u32 = 4705; +pub const BLKRASET: u32 = 4706; +pub const BLKRAGET: u32 = 4707; +pub const BLKFRASET: u32 = 4708; +pub const BLKFRAGET: u32 = 4709; +pub const BLKSECTSET: u32 = 4710; +pub const BLKSECTGET: u32 = 4711; +pub const BLKPG: u32 = 4713; +pub const BLKBSZGET: u32 = 2148012656; +pub const BLKBSZSET: u32 = 1074270833; +pub const BLKGETSIZE64: u32 = 2148012658; +pub const BLKTRACESETUP: u32 = 3225948787; +pub const BLKTRACESTART: u32 = 4724; +pub const BLKTRACESTOP: u32 = 4725; +pub const BLKTRACETEARDOWN: u32 = 4726; +pub const BLKDISCARD: u32 = 4727; +pub const BLKIOMIN: u32 = 4728; +pub const BLKIOOPT: u32 = 4729; +pub const BLKALIGNOFF: u32 = 4730; +pub const BLKDISCARDZEROES: u32 = 4732; +pub const BLKSECDISCARD: u32 = 4733; +pub const BLKROTATIONAL: u32 = 4734; +pub const BLKZEROOUT: u32 = 4735; +pub const FIEMAP_MAX_OFFSET: i32 = -1; +pub const FIEMAP_FLAG_SYNC: u32 = 1; +pub const FIEMAP_FLAG_XATTR: u32 = 2; +pub const FIEMAP_FLAG_CACHE: u32 = 4; +pub const FIEMAP_FLAGS_COMPAT: u32 = 3; +pub const FIEMAP_EXTENT_LAST: u32 = 1; +pub const FIEMAP_EXTENT_UNKNOWN: u32 = 2; +pub const FIEMAP_EXTENT_DELALLOC: u32 = 4; +pub const FIEMAP_EXTENT_ENCODED: u32 = 8; +pub const FIEMAP_EXTENT_DATA_ENCRYPTED: u32 = 128; +pub const FIEMAP_EXTENT_NOT_ALIGNED: u32 = 256; +pub const FIEMAP_EXTENT_DATA_INLINE: u32 = 512; +pub const FIEMAP_EXTENT_DATA_TAIL: u32 = 1024; +pub const FIEMAP_EXTENT_UNWRITTEN: u32 = 2048; +pub const FIEMAP_EXTENT_MERGED: u32 = 4096; +pub const FIEMAP_EXTENT_SHARED: u32 = 8192; +pub const UFFDIO_REGISTER: u32 = 3223366144; +pub const UFFDIO_UNREGISTER: u32 = 2148575745; +pub const UFFDIO_WAKE: u32 = 2148575746; +pub const UFFDIO_COPY: u32 = 3223890435; +pub const UFFDIO_ZEROPAGE: u32 = 3223366148; +pub const UFFDIO_WRITEPROTECT: u32 = 3222841862; +pub const UFFDIO_API: u32 = 3222841919; +pub const NS_GET_USERNS: u32 = 46849; +pub const NS_GET_PARENT: u32 = 46850; +pub const NS_GET_NSTYPE: u32 = 46851; +pub const KDGETLED: u32 = 19249; +pub const KDSETLED: u32 = 19250; +pub const KDGKBLED: u32 = 19300; +pub const KDSKBLED: u32 = 19301; +pub const KDGKBTYPE: u32 = 19251; +pub const KDADDIO: u32 = 19252; +pub const KDDELIO: u32 = 19253; +pub const KDENABIO: u32 = 19254; +pub const KDDISABIO: u32 = 19255; +pub const KDSETMODE: u32 = 19258; +pub const KDGETMODE: u32 = 19259; +pub const KDMKTONE: u32 = 19248; +pub const KIOCSOUND: u32 = 19247; +pub const GIO_CMAP: u32 = 19312; +pub const PIO_CMAP: u32 = 19313; +pub const GIO_FONT: u32 = 19296; +pub const GIO_FONTX: u32 = 19307; +pub const PIO_FONT: u32 = 19297; +pub const PIO_FONTX: u32 = 19308; +pub const PIO_FONTRESET: u32 = 19309; +pub const GIO_SCRNMAP: u32 = 19264; +pub const GIO_UNISCRNMAP: u32 = 19305; +pub const PIO_SCRNMAP: u32 = 19265; +pub const PIO_UNISCRNMAP: u32 = 19306; +pub const GIO_UNIMAP: u32 = 19302; +pub const PIO_UNIMAP: u32 = 19303; +pub const PIO_UNIMAPCLR: u32 = 19304; +pub const KDGKBMODE: u32 = 19268; +pub const KDSKBMODE: u32 = 19269; +pub const KDGKBMETA: u32 = 19298; +pub const KDSKBMETA: u32 = 19299; +pub const KDGKBENT: u32 = 19270; +pub const KDSKBENT: u32 = 19271; +pub const KDGKBSENT: u32 = 19272; +pub const KDSKBSENT: u32 = 19273; +pub const KDGKBDIACR: u32 = 19274; +pub const KDGETKEYCODE: u32 = 19276; +pub const KDSETKEYCODE: u32 = 19277; +pub const KDSIGACCEPT: u32 = 19278; +pub const VT_OPENQRY: u32 = 22016; +pub const VT_GETMODE: u32 = 22017; +pub const VT_SETMODE: u32 = 22018; +pub const VT_GETSTATE: u32 = 22019; +pub const VT_RELDISP: u32 = 22021; +pub const VT_ACTIVATE: u32 = 22022; +pub const VT_WAITACTIVE: u32 = 22023; +pub const VT_DISALLOCATE: u32 = 22024; +pub const VT_RESIZE: u32 = 22025; +pub const VT_RESIZEX: u32 = 22026; +pub const FIOSETOWN: u32 = 35073; +pub const SIOCSPGRP: u32 = 35074; +pub const FIOGETOWN: u32 = 35075; +pub const SIOCGPGRP: u32 = 35076; +pub const SIOCATMARK: u32 = 35077; +pub const SIOCGSTAMP: u32 = 35078; +pub const TIOCINQ: u32 = 21531; +pub const SIOCADDRT: u32 = 35083; +pub const SIOCDELRT: u32 = 35084; +pub const SIOCGIFNAME: u32 = 35088; +pub const SIOCSIFLINK: u32 = 35089; +pub const SIOCGIFCONF: u32 = 35090; +pub const SIOCGIFFLAGS: u32 = 35091; +pub const SIOCSIFFLAGS: u32 = 35092; +pub const SIOCGIFADDR: u32 = 35093; +pub const SIOCSIFADDR: u32 = 35094; +pub const SIOCGIFDSTADDR: u32 = 35095; +pub const SIOCSIFDSTADDR: u32 = 35096; +pub const SIOCGIFBRDADDR: u32 = 35097; +pub const SIOCSIFBRDADDR: u32 = 35098; +pub const SIOCGIFNETMASK: u32 = 35099; +pub const SIOCSIFNETMASK: u32 = 35100; +pub const SIOCGIFMETRIC: u32 = 35101; +pub const SIOCSIFMETRIC: u32 = 35102; +pub const SIOCGIFMEM: u32 = 35103; +pub const SIOCSIFMEM: u32 = 35104; +pub const SIOCGIFMTU: u32 = 35105; +pub const SIOCSIFMTU: u32 = 35106; +pub const SIOCSIFHWADDR: u32 = 35108; +pub const SIOCGIFENCAP: u32 = 35109; +pub const SIOCSIFENCAP: u32 = 35110; +pub const SIOCGIFHWADDR: u32 = 35111; +pub const SIOCGIFSLAVE: u32 = 35113; +pub const SIOCSIFSLAVE: u32 = 35120; +pub const SIOCADDMULTI: u32 = 35121; +pub const SIOCDELMULTI: u32 = 35122; +pub const SIOCDARP: u32 = 35155; +pub const SIOCGARP: u32 = 35156; +pub const SIOCSARP: u32 = 35157; +pub const SIOCDRARP: u32 = 35168; +pub const SIOCGRARP: u32 = 35169; +pub const SIOCSRARP: u32 = 35170; +pub const SIOCGIFMAP: u32 = 35184; +pub const SIOCSIFMAP: u32 = 35185; +pub const SIOCRTMSG: u32 = 35085; +pub const SIOCSIFNAME: u32 = 35107; +pub const SIOCGIFINDEX: u32 = 35123; +pub const SIOGIFINDEX: u32 = 35123; +pub const SIOCSIFPFLAGS: u32 = 35124; +pub const SIOCGIFPFLAGS: u32 = 35125; +pub const SIOCDIFADDR: u32 = 35126; +pub const SIOCSIFHWBROADCAST: u32 = 35127; +pub const SIOCGIFCOUNT: u32 = 35128; +pub const SIOCGIFBR: u32 = 35136; +pub const SIOCSIFBR: u32 = 35137; +pub const SIOCGIFTXQLEN: u32 = 35138; +pub const SIOCSIFTXQLEN: u32 = 35139; +pub const SIOCADDDLCI: u32 = 35200; +pub const SIOCDELDLCI: u32 = 35201; +pub const SIOCDEVPRIVATE: u32 = 35312; +pub const SIOCPROTOPRIVATE: u32 = 35296; +pub const FIBMAP: u32 = 1; +pub const FIGETBSZ: u32 = 2; +pub const FIFREEZE: u32 = 3221510263; +pub const FITHAW: u32 = 3221510264; +pub const FITRIM: u32 = 3222820985; +pub const FICLONE: u32 = 1074041865; +pub const FICLONERANGE: u32 = 1075876877; +pub const FIDEDUPERANGE: u32 = 3222836278; +pub const FS_IOC_GETFLAGS: u32 = 2148034049; +pub const FS_IOC_SETFLAGS: u32 = 1074292226; +pub const FS_IOC_GETVERSION: u32 = 2148038145; +pub const FS_IOC_SETVERSION: u32 = 1074296322; +pub const FS_IOC_FIEMAP: u32 = 3223348747; +pub const FS_IOC32_GETFLAGS: u32 = 2147771905; +pub const FS_IOC32_SETFLAGS: u32 = 1074030082; +pub const FS_IOC32_GETVERSION: u32 = 2147776001; +pub const FS_IOC32_SETVERSION: u32 = 1074034178; +pub const FS_IOC_FSGETXATTR: u32 = 2149341215; +pub const FS_IOC_FSSETXATTR: u32 = 1075599392; +pub const FS_IOC_GETFSLABEL: u32 = 2164298801; +pub const FS_IOC_SETFSLABEL: u32 = 1090556978; +pub const EXT4_IOC_GETVERSION: u32 = 2148034051; +pub const EXT4_IOC_SETVERSION: u32 = 1074292228; +pub const EXT4_IOC_GETVERSION_OLD: u32 = 2148038145; +pub const EXT4_IOC_SETVERSION_OLD: u32 = 1074296322; +pub const EXT4_IOC_GETRSVSZ: u32 = 2148034053; +pub const EXT4_IOC_SETRSVSZ: u32 = 1074292230; +pub const EXT4_IOC_GROUP_EXTEND: u32 = 1074292231; +pub const EXT4_IOC_MIGRATE: u32 = 26121; +pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 26124; +pub const EXT4_IOC_RESIZE_FS: u32 = 1074292240; +pub const EXT4_IOC_SWAP_BOOT: u32 = 26129; +pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 26130; +pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 26152; +pub const EXT4_IOC_GETSTATE: u32 = 1074030121; +pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; +pub const EXT4_IOC_CHECKPOINT: u32 = 1074030123; +pub const EXT4_IOC_SHUTDOWN: u32 = 2147768445; +pub const EXT4_IOC32_GETVERSION: u32 = 2147771907; +pub const EXT4_IOC32_SETVERSION: u32 = 1074030084; +pub const EXT4_IOC32_GETRSVSZ: u32 = 2147771909; +pub const EXT4_IOC32_SETRSVSZ: u32 = 1074030086; +pub const EXT4_IOC32_GROUP_EXTEND: u32 = 1074030087; +pub const EXT4_IOC32_GETVERSION_OLD: u32 = 2147776001; +pub const EXT4_IOC32_SETVERSION_OLD: u32 = 1074034178; +pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 2148030015; +pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; +pub const LIRC_SET_SEND_CARRIER: u32 = 1074030867; +pub const AUTOFS_IOC_PROTOSUBVER: u32 = 2147783527; +pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; +pub const FSI_SCOM_WRITE: u32 = 3223352066; +pub const ATM_GETCIRANGE: u32 = 1074815370; +pub const DMA_BUF_SET_NAME_B: u32 = 1074291201; +pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; +pub const TUNSETPERSIST: u32 = 1074025675; +pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 1074554389; +pub const CEC_RECEIVE: u32 = 3224920326; +pub const MGSL_IOCGPARAMS: u32 = 2150657281; +pub const ENI_SETMULT: u32 = 1074815335; +pub const RIO_GET_EVENT_MASK: u32 = 2147773710; +pub const LIRC_GET_MAX_TIMEOUT: u32 = 2147772681; +pub const USBDEVFS_CLAIMINTERFACE: u32 = 2147767567; +pub const CHIOMOVE: u32 = 1075077889; +pub const SONYPI_IOCGBATFLAGS: u32 = 2147579399; +pub const BTRFS_IOC_SYNC: u32 = 37896; +pub const VIDIOC_TRY_FMT: u32 = 3234879040; +pub const LIRC_SET_REC_MODE: u32 = 1074030866; +pub const VIDIOC_DQEVENT: u32 = 2156418649; +pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 46338; +pub const UVCIOC_CTRL_MAP: u32 = 3227546912; +pub const VHOST_SET_BACKEND_FEATURES: u32 = 1074310949; +pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 1074311008; +pub const UI_SET_KEYBIT: u32 = 1074025829; +pub const LIRC_SET_REC_TIMEOUT: u32 = 1074030872; +pub const FS_IOC_GET_ENCRYPTION_KEY_STATUS: u32 = 3229640218; +pub const BTRFS_IOC_TREE_SEARCH_V2: u32 = 3228603409; +pub const VHOST_SET_VRING_BASE: u32 = 1074310930; +pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 1074294025; +pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3223344713; +pub const LIRC_GET_REC_MODE: u32 = 2147772674; +pub const PPGETTIME: u32 = 2148561045; +pub const BTRFS_IOC_RM_DEV: u32 = 1342215179; +pub const ATM_SETBACKEND: u32 = 1073897970; +pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; +pub const FBIO_WAITEVENT: u32 = 18056; +pub const SWITCHTEC_IOCTL_PORT_TO_PFF: u32 = 3222034245; +pub const NVME_IOCTL_IO_CMD: u32 = 3225964099; +pub const IPMICTL_RECEIVE_MSG_TRUNC: u32 = 3224398091; +pub const FDTWADDLE: u32 = 601; +pub const NVME_IOCTL_SUBMIT_IO: u32 = 1076907586; +pub const NILFS_IOCTL_SYNC: u32 = 2148036234; +pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; +pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; +pub const DM_DEV_STATUS: u32 = 3241737479; +pub const TEE_IOC_CLOSE_SESSION: u32 = 2147787781; +pub const NS_GETPSTAT: u32 = 3222298977; +pub const UI_SET_PROPBIT: u32 = 1074025838; +pub const TUNSETFILTEREBPF: u32 = 2147767521; +pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 1074031874; +pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; +pub const WDIOC_SETOPTIONS: u32 = 2147768068; +pub const VHOST_SCSI_SET_ENDPOINT: u32 = 1088991040; +pub const MGSL_IOCGTXIDLE: u32 = 27907; +pub const ATM_ADDLECSADDR: u32 = 1074815374; +pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; +pub const FDGETPRM: u32 = 2149581316; +pub const HIDIOCAPPLICATION: u32 = 18434; +pub const ENI_MEMDUMP: u32 = 1074815328; +pub const PTP_SYS_OFFSET2: u32 = 1128283406; +pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; +pub const DMA_BUF_SET_NAME_A: u32 = 1074029057; +pub const PTP_PIN_GETFUNC: u32 = 3227532550; +pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; +pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 1074312776; +pub const RTC_EPOCH_READ: u32 = 2148036621; +pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; +pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; +pub const ATM_GETLECSADDR: u32 = 1074815376; +pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; +pub const SONET_GETDIAG: u32 = 2147770644; +pub const ATMMPC_DATA: u32 = 25049; +pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 2148296989; +pub const HIDIOCGCOLLECTIONINDEX: u32 = 1075333136; +pub const RPMSG_CREATE_EPT_IOCTL: u32 = 1076409601; +pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; +pub const UI_DEV_SETUP: u32 = 1079792899; +pub const ISST_IF_IO_CMD: u32 = 1074331138; +pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 2149084423; +pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; +pub const BLKGETNRZONES: u32 = 2147750533; +pub const VIDIOC_G_MODULATOR: u32 = 3225703990; +pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; +pub const USBDEVFS_SETINTERFACE: u32 = 2148029700; +pub const PPPIOCGCHAN: u32 = 2147775543; +pub const EVIOCGVERSION: u32 = 2147763457; +pub const VHOST_NET_SET_BACKEND: u32 = 1074310960; +pub const USBDEVFS_REAPURBNDELAY: u32 = 1074287885; +pub const RNDZAPENTCNT: u32 = 20996; +pub const VIDIOC_G_PARM: u32 = 3234616853; +pub const TUNGETDEVNETNS: u32 = 21731; +pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 1074030877; +pub const VHOST_SET_VRING_ERR: u32 = 1074310946; +pub const VDUSE_VQ_SETUP: u32 = 1075872020; +pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221787492; +pub const VIDIOC_S_FREQUENCY: u32 = 1076647481; +pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 1075377428; +pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; +pub const WDIOC_GETPRETIMEOUT: u32 = 2147768073; +pub const USBDEVFS_DROP_PRIVILEGES: u32 = 1074025758; +pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 1342215191; +pub const VHOST_VSOCK_SET_RUNNING: u32 = 1074048865; +pub const STP_SET_OPTIONS: u32 = 1074275586; +pub const FBIO_RADEON_GET_MIRROR: u32 = 2148024323; +pub const IVTVFB_IOC_DMA_FRAME: u32 = 1075336896; +pub const IPMICTL_SEND_COMMAND: u32 = 2150131981; +pub const VIDIOC_G_ENC_INDEX: u32 = 2283296332; +pub const DFL_FPGA_FME_PORT_PR: u32 = 46720; +pub const CHIOSVOLTAG: u32 = 1076912914; +pub const ATM_SETESIF: u32 = 1074815373; +pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 1075323652; +pub const PMU_IOC_GET_MODEL: u32 = 2148024835; +pub const JSIOCGBTNMAP: u32 = 2214619700; +pub const USBDEVFS_HUB_PORTINFO: u32 = 2155894035; +pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; +pub const FDCLRPRM: u32 = 577; +pub const BTRFS_IOC_SCRUB: u32 = 3288372251; +pub const USBDEVFS_DISCONNECT: u32 = 21782; +pub const TUNSETVNETBE: u32 = 1074025694; +pub const ATMTCP_REMOVE: u32 = 24975; +pub const VHOST_VDPA_GET_CONFIG: u32 = 2148052851; +pub const PPPIOCGNPMODE: u32 = 3221779532; +pub const FDGETDRVPRM: u32 = 2155872785; +pub const TUNSETVNETLE: u32 = 1074025692; +pub const PHN_SETREG: u32 = 1074294790; +pub const PPPIOCDETACH: u32 = 1074033724; +pub const MMTIMER_GETRES: u32 = 2148035841; +pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; +pub const PPGETFLAGS: u32 = 2147774618; +pub const VDUSE_DEV_GET_FEATURES: u32 = 2148040977; +pub const CAPI_MANUFACTURER_CMD: u32 = 3222291232; +pub const VIDIOC_G_TUNER: u32 = 3226752541; +pub const DM_TABLE_STATUS: u32 = 3241737484; +pub const DM_DEV_ARM_POLL: u32 = 3241737488; +pub const NE_CREATE_VM: u32 = 2148052512; +pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; +pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 62735; +pub const DFL_FPGA_PORT_DMA_MAP: u32 = 46659; +pub const MGSL_IOCGXCTRL: u32 = 27926; +pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 1076372225; +pub const SONYPI_IOCGBLUE: u32 = 2147579400; +pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 62743; +pub const I2OHTML: u32 = 3224398089; +pub const VFIO_GET_API_VERSION: u32 = 15204; +pub const IDT77105_GETSTATZ: u32 = 1074815283; +pub const I2OPARMSET: u32 = 3223873795; +pub const TEE_IOC_CANCEL: u32 = 2148049924; +pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; +pub const DFL_FPGA_PORT_RESET: u32 = 46656; +pub const PPPIOCGASYNCMAP: u32 = 2147775576; +pub const EVIOCGKEYCODE_V2: u32 = 2150122756; +pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; +pub const HIDIOCSUSAGE: u32 = 1075333132; +pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323664; +pub const PTP_EXTTS_REQUEST: u32 = 1074806018; +pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; +pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; +pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 1088991041; +pub const JSIOCGAXES: u32 = 2147576337; +pub const HIDIOCSFLAG: u32 = 1074022415; +pub const PTP_PEROUT_REQUEST2: u32 = 1077427468; +pub const PPWDATA: u32 = 1073836166; +pub const PTP_CLOCK_GETCAPS: u32 = 2152742145; +pub const FDGETMAXERRS: u32 = 2148794894; +pub const TUNSETQUEUE: u32 = 1074025689; +pub const PTP_ENABLE_PPS: u32 = 1074019588; +pub const SIOCSIFATMTCP: u32 = 24960; +pub const CEC_ADAP_G_LOG_ADDRS: u32 = 2153537795; +pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; +pub const NBD_SET_BLKSIZE: u32 = 43777; +pub const NBD_SET_TIMEOUT: u32 = 43785; +pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 1074048834; +pub const RIO_UNMAP_INBOUND: u32 = 1074294034; +pub const ATM_QUERYLOOP: u32 = 1074815316; +pub const DFL_FPGA_GET_API_VERSION: u32 = 46592; +pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 21795; +pub const FBIO_CURSOR: u32 = 3228059144; +pub const RNDCLEARPOOL: u32 = 20998; +pub const VIDIOC_QUERYSTD: u32 = 2148030015; +pub const DMA_BUF_IOCTL_SYNC: u32 = 1074291200; +pub const SCIF_RECV: u32 = 3222827783; +pub const PTP_PIN_GETFUNC2: u32 = 3227532559; +pub const FW_CDEV_IOC_ALLOCATE: u32 = 3223331586; +pub const CEC_ADAP_G_CAPS: u32 = 3226231040; +pub const VIDIOC_G_FBUF: u32 = 2150651402; +pub const PTP_ENABLE_PPS2: u32 = 1074019597; +pub const PCITEST_CLEAR_IRQ: u32 = 20496; +pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 2147772688; +pub const BTRFS_IOC_DEVICES_READY: u32 = 2415957031; +pub const JSIOCGAXMAP: u32 = 2151705138; +pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 2148541196; +pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 1074799383; +pub const RTC_WIE_OFF: u32 = 28688; +pub const PPGETMODE: u32 = 2147774616; +pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; +pub const PTP_SYS_OFFSET: u32 = 1128283397; +pub const BTRFS_IOC_SPACE_INFO: u32 = 3222311956; +pub const VIDIOC_SUBDEV_ENUM_FRAME_SIZE: u32 = 3225441866; +pub const ND_IOCTL_VENDOR: u32 = 3221769737; +pub const SCIF_VREADFROM: u32 = 3223876364; +pub const BTRFS_IOC_TRANS_START: u32 = 37894; +pub const INOTIFY_IOC_SETNEXTWD: u32 = 1074022656; +pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 2148021006; +pub const TUNDETACHFILTER: u32 = 1074812118; +pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; +pub const IOC_PR_CLEAR: u32 = 1074819277; +pub const SCIF_READFROM: u32 = 3223876362; +pub const PPPIOCGDEBUG: u32 = 2147775553; +pub const BLKGETZONESZ: u32 = 2147750532; +pub const HIDIOCGUSAGES: u32 = 3491514387; +pub const SONYPI_IOCGTEMP: u32 = 2147579404; +pub const UI_SET_MSCBIT: u32 = 1074025832; +pub const APM_IOC_SUSPEND: u32 = 16642; +pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; +pub const RTC_PLL_GET: u32 = 2149609489; +pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; +pub const USBDEVFS_DISCSIGNAL: u32 = 2148553998; +pub const LIRC_GET_MIN_TIMEOUT: u32 = 2147772680; +pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 2174244674; +pub const DM_TARGET_MSG: u32 = 3241737486; +pub const SONYPI_IOCGBAT1REM: u32 = 2147644931; +pub const EVIOCSFF: u32 = 1076905344; +pub const TUNSETGROUP: u32 = 1074025678; +pub const EVIOCGKEYCODE: u32 = 2148025604; +pub const KCOV_REMOTE_ENABLE: u32 = 1075340134; +pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; +pub const FDEJECT: u32 = 602; +pub const TUNSETOFFLOAD: u32 = 1074025680; +pub const PPPIOCCONNECT: u32 = 1074033722; +pub const ATM_ADDADDR: u32 = 1074815368; +pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 33043; +pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; +pub const VHOST_VDPA_GET_STATUS: u32 = 2147594097; +pub const CCISS_PASSTHRU: u32 = 3227009547; +pub const MGSL_IOCCLRMODCOUNT: u32 = 27919; +pub const TEE_IOC_SUPPL_SEND: u32 = 2148574215; +pub const ATMARPD_CTRL: u32 = 25057; +pub const UI_ABS_SETUP: u32 = 1075598596; +pub const UI_DEV_DESTROY: u32 = 21762; +pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; +pub const RTC_AIE_ON: u32 = 28673; +pub const AUTOFS_IOC_EXPIRE: u32 = 2165085029; +pub const PPPIOCSDEBUG: u32 = 1074033728; +pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; +pub const PPPIOCSMRU: u32 = 1074033746; +pub const CCISS_DEREGDISK: u32 = 16908; +pub const UI_DEV_CREATE: u32 = 21761; +pub const FUSE_DEV_IOC_CLONE: u32 = 2147804416; +pub const BTRFS_IOC_START_SYNC: u32 = 2148045848; +pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 1074294401; +pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 2148021011; +pub const DM_TABLE_CLEAR: u32 = 3241737482; +pub const CCISS_GETINTINFO: u32 = 2148024834; +pub const PPPIOCSASYNCMAP: u32 = 1074033751; +pub const I2OEVTGET: u32 = 2154326283; +pub const NVME_IOCTL_RESET: u32 = 20036; +pub const PPYIELD: u32 = 28813; +pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; +pub const TUNSETCARRIER: u32 = 1074025698; +pub const DM_DEV_WAIT: u32 = 3241737480; +pub const RTC_WIE_ON: u32 = 28687; +pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; +pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; +pub const MGSL_IOCSPARAMS: u32 = 1076915456; +pub const RTC_SET_TIME: u32 = 1076129802; +pub const VHOST_RESET_OWNER: u32 = 44802; +pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 1091072232; +pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; +pub const UDF_GETEABLOCK: u32 = 2148035649; +pub const VFIO_IOMMU_MAP_DMA: u32 = 15217; +pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 1075861082; +pub const HIDIOCGFLAG: u32 = 2147764238; +pub const HIDIOCGUCODE: u32 = 3222816781; +pub const VIDIOC_OMAP3ISP_AF_CFG: u32 = 3226228421; +pub const DM_REMOVE_ALL: u32 = 3241737473; +pub const ASPEED_LPC_CTRL_IOCTL_MAP: u32 = 1074835969; +pub const CCISS_GETFIRMVER: u32 = 2147762696; +pub const ND_IOCTL_ARS_START: u32 = 3223342594; +pub const PPPIOCSMRRU: u32 = 1074033723; +pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; +pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 2147792642; +pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; +pub const PPSETTIME: u32 = 1074819222; +pub const RTC_ALM_READ: u32 = 2149871624; +pub const VDUSE_SET_API_VERSION: u32 = 1074299137; +pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 1075342600; +pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; +pub const USBDEVFS_CONNECT: u32 = 21783; +pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; +pub const ATMARP_MKIP: u32 = 25058; +pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 15216; +pub const CCISS_GETHEARTBEAT: u32 = 2147762694; +pub const ATM_RSTADDR: u32 = 1074815367; +pub const NBD_SET_SIZE: u32 = 43778; +pub const UDF_GETVOLIDENT: u32 = 2148035650; +pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; +pub const MGSL_IOCSTXIDLE: u32 = 27906; +pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; +pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; +pub const PPRSTATUS: u32 = 2147577985; +pub const MGSL_IOCTXENABLE: u32 = 27908; +pub const UDF_GETEASIZE: u32 = 2147773504; +pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; +pub const VHOST_SET_OWNER: u32 = 44801; +pub const RIO_ALLOC_DMA: u32 = 3222826259; +pub const RIO_CM_CHAN_ACCEPT: u32 = 3221775111; +pub const I2OHRTGET: u32 = 3222825217; +pub const ATM_SETCIRANGE: u32 = 1074815371; +pub const HPET_IE_ON: u32 = 26625; +pub const PERF_EVENT_IOC_ID: u32 = 2148017159; +pub const TUNSETSNDBUF: u32 = 1074025684; +pub const PTP_PIN_SETFUNC: u32 = 1080048903; +pub const PPPIOCDISCONN: u32 = 29753; +pub const VIDIOC_QUERYCTRL: u32 = 3225703972; +pub const PPEXCL: u32 = 28815; +pub const PCITEST_MSI: u32 = 1074024451; +pub const FDWERRORCLR: u32 = 598; +pub const AUTOFS_IOC_FAIL: u32 = 37729; +pub const USBDEVFS_IOCTL: u32 = 3222295826; +pub const VIDIOC_S_STD: u32 = 1074288152; +pub const F2FS_IOC_RESIZE_FS: u32 = 1074328848; +pub const SONET_SETDIAG: u32 = 3221512466; +pub const BTRFS_IOC_DEFRAG: u32 = 1342215170; +pub const CCISS_GETDRIVVER: u32 = 2147762697; +pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 2148034839; +pub const HPET_IRQFREQ: u32 = 1074292742; +pub const ATM_GETESI: u32 = 1074815365; +pub const CCISS_GETLUNINFO: u32 = 2148286993; +pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; +pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; +pub const PERF_EVENT_IOC_SET_BPF: u32 = 1074013192; +pub const UDMABUF_CREATE_LIST: u32 = 1074296131; +pub const VHOST_SET_LOG_BASE: u32 = 1074310916; +pub const ZATM_GETPOOL: u32 = 1074815329; +pub const BR2684_SETFILT: u32 = 1075601808; +pub const RNDGETPOOL: u32 = 2148028930; +pub const PPS_GETPARAMS: u32 = 2148036769; +pub const IOC_PR_RESERVE: u32 = 1074819273; +pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; +pub const RIO_CM_CHAN_CLOSE: u32 = 1073898244; +pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; +pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; +pub const PMU_IOC_GET_BACKLIGHT: u32 = 2148024833; +pub const USBDEVFS_GET_CAPABILITIES: u32 = 2147767578; +pub const SCIF_WRITETO: u32 = 3223876363; +pub const UDF_RELOCATE_BLOCKS: u32 = 3221777475; +pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; +pub const CCISS_REGNEWD: u32 = 16910; +pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 1074033169; +pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; +pub const CAPI_GET_VERSION: u32 = 3222291207; +pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 2228770626; +pub const VFIO_EEH_PE_OP: u32 = 15225; +pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; +pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 2148070674; +pub const NBD_SET_SIZE_BLOCKS: u32 = 43783; +pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 45312; +pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; +pub const VIDIOC_S_AUDOUT: u32 = 1077171762; +pub const VIDIOC_S_FMT: u32 = 3234878981; +pub const PPPIOCATTACH: u32 = 1074033725; +pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310948; +pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; +pub const CCISS_BIG_PASSTHRU: u32 = 3227533842; +pub const IPMICTL_SET_MY_LUN_CMD: u32 = 2147772691; +pub const PCITEST_LEGACY_IRQ: u32 = 20482; +pub const USBDEVFS_SUBMITURB: u32 = 2151175434; +pub const AUTOFS_IOC_READY: u32 = 37728; +pub const BTRFS_IOC_SEND: u32 = 1078498342; +pub const VIDIOC_G_EXT_CTRLS: u32 = 3223344711; +pub const JSIOCSBTNMAP: u32 = 1140877875; +pub const PPPIOCSFLAGS: u32 = 1074033753; +pub const NVRAM_INIT: u32 = 28736; +pub const RFKILL_IOCTL_NOINPUT: u32 = 20993; +pub const BTRFS_IOC_BALANCE: u32 = 1342215180; +pub const FS_IOC_GETFSMAP: u32 = 3233830971; +pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 2147772699; +pub const STP_POLICY_ID_GET: u32 = 2148541697; +pub const PPSETFLAGS: u32 = 1074032795; +pub const CEC_ADAP_S_PHYS_ADDR: u32 = 1073897730; +pub const ATMTCP_CREATE: u32 = 24974; +pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 45314; +pub const PPPIOCGXASYNCMAP: u32 = 2149610576; +pub const VHOST_SET_VRING_CALL: u32 = 1074310945; +pub const LIRC_GET_FEATURES: u32 = 2147772672; +pub const GSMIOC_DISABLE_NET: u32 = 18179; +pub const AUTOFS_IOC_CATATONIC: u32 = 37730; +pub const NBD_DO_IT: u32 = 43779; +pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 1074030879; +pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772697; +pub const EVIOCSCLOCKID: u32 = 1074021792; +pub const USBDEVFS_FREE_STREAMS: u32 = 2148029725; +pub const FSI_SCOM_RESET: u32 = 1074033411; +pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 2148024838; +pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; +pub const FDDEFPRM: u32 = 1075839555; +pub const TEE_IOC_INVOKE: u32 = 2148574211; +pub const USBDEVFS_BULK: u32 = 3222820098; +pub const SCIF_VWRITETO: u32 = 3223876365; +pub const SONYPI_IOCSBRT: u32 = 1073837568; +pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; +pub const RTC_PIE_ON: u32 = 28677; +pub const BTRFS_IOC_SCAN_DEV: u32 = 1342215172; +pub const PPPIOCXFERUNIT: u32 = 29774; +pub const WDIOC_GETTIMEOUT: u32 = 2147768071; +pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3234370597; +pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 1074312774; +pub const FBIO_WAITFORVSYNC: u32 = 1074021920; +pub const RTC_PIE_OFF: u32 = 28678; +pub const EVIOCGRAB: u32 = 1074021776; +pub const PMU_IOC_SET_BACKLIGHT: u32 = 1074283010; +pub const EVIOCGREP: u32 = 2148025603; +pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 1074275339; +pub const UFFDIO_CONTINUE: u32 = 3223366151; +pub const VDUSE_GET_API_VERSION: u32 = 2148040960; +pub const RTC_RD_TIME: u32 = 2149871625; +pub const FDMSGOFF: u32 = 582; +pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 2148296988; +pub const CAPI_GET_ERRCODE: u32 = 2147631905; +pub const PCITEST_SET_IRQTYPE: u32 = 1074024456; +pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; +pub const MATROXFB_SET_OUTPUT_MODE: u32 = 1074294522; +pub const RIO_DEV_ADD: u32 = 1075866903; +pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; +pub const FBIO_RADEON_SET_MIRROR: u32 = 1074282500; +pub const PCITEST_GET_IRQTYPE: u32 = 20489; +pub const JSIOCGVERSION: u32 = 2147772929; +pub const SONYPI_IOCSBLUE: u32 = 1073837577; +pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 13074; +pub const F2FS_IOC_GET_FEATURES: u32 = 2147808524; +pub const SCIF_REG: u32 = 3223876360; +pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 1081634440; +pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 1074012933; +pub const RIO_WAIT_FOR_ASYNC: u32 = 1074294038; +pub const VHOST_SET_VRING_NUM: u32 = 1074310928; +pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; +pub const RIO_FREE_DMA: u32 = 1074294036; +pub const MGSL_IOCRXENABLE: u32 = 27909; +pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 1977; +pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 2148034838; +pub const PPPIOCGL2TPSTATS: u32 = 2152231990; +pub const PERF_EVENT_IOC_PERIOD: u32 = 1074275332; +pub const PTP_PIN_SETFUNC2: u32 = 1080048912; +pub const CHIOEXCHANGE: u32 = 1075602178; +pub const NILFS_IOCTL_GET_SUINFO: u32 = 2149084804; +pub const CEC_DQEVENT: u32 = 3226493191; +pub const UI_SET_SWBIT: u32 = 1074025837; +pub const VHOST_VDPA_SET_CONFIG: u32 = 1074311028; +pub const TUNSETIFF: u32 = 1074025674; +pub const CHIOPOSITION: u32 = 1074553603; +pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 1074030879; +pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 1074304019; +pub const RIO_UNMAP_OUTBOUND: u32 = 1076391184; +pub const CAPI_CLR_FLAGS: u32 = 2147762981; +pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323663; +pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 2148036344; +pub const EVIOCSMASK: u32 = 1074808211; +pub const BTRFS_IOC_FORGET_DEV: u32 = 1342215173; +pub const CXL_MEM_QUERY_COMMANDS: u32 = 2148060673; +pub const CEC_S_MODE: u32 = 1074028809; +pub const MGSL_IOCSIF: u32 = 27914; +pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; +pub const PPSETMODE: u32 = 1074032768; +pub const VFIO_DEVICE_SET_IRQS: u32 = 15214; +pub const VIDIOC_PREPARE_BUF: u32 = 3227014749; +pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 2151964938; +pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 1092645098; +pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; +pub const UDMABUF_CREATE: u32 = 1075344706; +pub const SONET_CLRDIAG: u32 = 3221512467; +pub const PHN_SET_REG: u32 = 1074294785; +pub const RNDADDTOENTCNT: u32 = 1074024961; +pub const VBG_IOCTL_CHECK_BALLOON: u32 = 3223344657; +pub const VIDIOC_OMAP3ISP_STAT_REQ: u32 = 3223869126; +pub const PPS_FETCH: u32 = 3221778596; +pub const RTC_AIE_OFF: u32 = 28674; +pub const VFIO_GROUP_SET_CONTAINER: u32 = 15208; +pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 1074275094; +pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 15224; +pub const VFIO_IOMMU_GET_INFO: u32 = 15216; +pub const DM_DEV_SUSPEND: u32 = 3241737478; +pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 2147677461; +pub const FW_CDEV_IOC_STOP_ISO: u32 = 1074012939; +pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; +pub const ATMMPC_CTRL: u32 = 25048; +pub const PPPIOCSXASYNCMAP: u32 = 1075868751; +pub const CHIOGSTATUS: u32 = 1074815752; +pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; +pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 2147773699; +pub const CAPI_SET_FLAGS: u32 = 2147762980; +pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 15210; +pub const VHOST_SET_MEM_TABLE: u32 = 1074310915; +pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 1074294520; +pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 46658; +pub const VHOST_GET_FEATURES: u32 = 2148052736; +pub const LIRC_GET_REC_RESOLUTION: u32 = 2147772679; +pub const PACKET_CTRL_CMD: u32 = 3222820865; +pub const LIRC_SET_TRANSMITTER_MASK: u32 = 1074030871; +pub const BTRFS_IOC_ADD_DEV: u32 = 1342215178; +pub const JSIOCGCORR: u32 = 2149870114; +pub const VIDIOC_G_FMT: u32 = 3234878980; +pub const RTC_EPOCH_SET: u32 = 1074294798; +pub const CAPI_GET_PROFILE: u32 = 3225436937; +pub const ATM_GETLOOP: u32 = 1074815314; +pub const SCIF_LISTEN: u32 = 1074033410; +pub const NBD_CLEAR_QUE: u32 = 43781; +pub const F2FS_IOC_MOVE_RANGE: u32 = 3223385353; +pub const LIRC_GET_LENGTH: u32 = 2147772687; +pub const I8K_SET_FAN: u32 = 3221776775; +pub const FDSETMAXERRS: u32 = 1075053132; +pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 2151699968; +pub const SNAPSHOT_SET_SWAP_AREA: u32 = 1074541325; +pub const LIRC_GET_REC_TIMEOUT: u32 = 2147772708; +pub const EVIOCRMFF: u32 = 1074021761; +pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; +pub const PPRDATA: u32 = 2147577989; +pub const RIO_MPORT_GET_PROPERTIES: u32 = 2150657284; +pub const TUNSETVNETHDRSZ: u32 = 1074025688; +pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; +pub const GSMIOC_GETCONF: u32 = 2152482560; +pub const LIRC_GET_SEND_MODE: u32 = 2147772673; +pub const PPPIOCSACTIVE: u32 = 1074820166; +pub const SIOCGSTAMPNS_NEW: u32 = 2148567303; +pub const IPMICTL_RECEIVE_MSG: u32 = 3224398092; +pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 1074030869; +pub const UI_END_FF_ERASE: u32 = 1074550219; +pub const SWITCHTEC_IOCTL_FLASH_PART_INFO: u32 = 3222296385; +pub const FW_CDEV_IOC_SEND_PHY_PACKET: u32 = 3222807317; +pub const NBD_SET_FLAGS: u32 = 43786; +pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 15212; +pub const REISERFS_IOC_UNPACK: u32 = 1074318593; +pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 1074012935; +pub const RIO_SET_EVENT_MASK: u32 = 1074031885; +pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 2148021012; +pub const VDUSE_VQ_INJECT_IRQ: u32 = 1074037015; +pub const I2OPASSTHRU: u32 = 2148559116; +pub const IOC_OPAL_SET_PW: u32 = 1109422304; +pub const FSI_SCOM_READ: u32 = 3223352065; +pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 2147790704; +pub const VIDIOC_QBUF: u32 = 3227014671; +pub const VIDIOC_S_TUNER: u32 = 1079268894; +pub const TUNGETVNETHDRSZ: u32 = 2147767511; +pub const CAPI_NCCI_GETUNIT: u32 = 2147762983; +pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 2147792455; +pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; +pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; +pub const TEE_IOC_VERSION: u32 = 2148312064; +pub const VIDIOC_LOG_STATUS: u32 = 22086; +pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 2150656277; +pub const VHOST_SET_LOG_FD: u32 = 1074048775; +pub const SCIF_SEND: u32 = 3222827782; +pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; +pub const NS_ADJBUFLEV: u32 = 24931; +pub const VIDIOC_DBG_S_REGISTER: u32 = 1077433935; +pub const NILFS_IOCTL_RESIZE: u32 = 1074294411; +pub const PHN_GETREG: u32 = 3221778437; +pub const I2OSWDL: u32 = 3224398085; +pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 22019; +pub const JSIOCGBUTTONS: u32 = 2147576338; +pub const VFIO_IOMMU_ENABLE: u32 = 15219; +pub const DM_DEV_RENAME: u32 = 3241737477; +pub const MEDIA_IOC_SETUP_LINK: u32 = 3224665091; +pub const VIDIOC_ENUMOUTPUT: u32 = 3225966128; +pub const STP_POLICY_ID_SET: u32 = 3222283520; +pub const VHOST_VDPA_SET_CONFIG_CALL: u32 = 1074048887; +pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; +pub const VIDIOC_S_CROP: u32 = 1075074620; +pub const WDIOC_GETTEMP: u32 = 2147768067; +pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 1092120804; +pub const UI_SET_LEDBIT: u32 = 1074025833; +pub const NBD_SET_SOCK: u32 = 43776; +pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 1342215231; +pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; +pub const I2OSWUL: u32 = 3224398086; +pub const IOCTL_MEI_NOTIFY_GET: u32 = 2147764227; +pub const FDFMTTRK: u32 = 1074528840; +pub const MMTIMER_GETBITS: u32 = 27908; +pub const VIDIOC_ENUMSTD: u32 = 3225966105; +pub const VHOST_GET_VRING_BASE: u32 = 3221794578; +pub const VFIO_DEVICE_IOEVENTFD: u32 = 15220; +pub const ATMARP_SETENTRY: u32 = 25059; +pub const CCISS_REVALIDVOLS: u32 = 16906; +pub const MGSL_IOCLOOPTXDONE: u32 = 27913; +pub const RTC_VL_READ: u32 = 2147774483; +pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; +pub const RIO_DEV_DEL: u32 = 1075866904; +pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; +pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; +pub const SONYPI_IOCSFAN: u32 = 1073837579; +pub const SPIOCSTYPE: u32 = 1074295041; +pub const IPMICTL_REGISTER_FOR_CMD: u32 = 2147641614; +pub const I8K_GET_FAN: u32 = 3221776774; +pub const TUNGETVNETBE: u32 = 2147767519; +pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; +pub const UI_END_FF_UPLOAD: u32 = 1080579529; +pub const TOSH_SMM: u32 = 3222828176; +pub const SONYPI_IOCGBAT2REM: u32 = 2147644933; +pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 2148070673; +pub const PPPIOCSNPMODE: u32 = 1074295883; +pub const USBDEVFS_CONTROL: u32 = 3222820096; +pub const HIDIOCGUSAGE: u32 = 3222816779; +pub const TUNSETTXFILTER: u32 = 1074025681; +pub const TUNGETVNETLE: u32 = 2147767517; +pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; +pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; +pub const MGSL_IOCGXSYNC: u32 = 27924; +pub const HIDIOCGFIELDINFO: u32 = 3224913930; +pub const VIDIOC_SUBDEV_G_STD: u32 = 2148029975; +pub const I2OVALIDATE: u32 = 2147772680; +pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; +pub const NILFS_IOCTL_GET_CPINFO: u32 = 2149084802; +pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; +pub const VFAT_IOCTL_READDIR_SHORT: u32 = 2184212994; +pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; +pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 2148070675; +pub const FDGETDRVSTAT: u32 = 2152727058; +pub const SYNC_IOC_MERGE: u32 = 3224387075; +pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; +pub const PPPIOCBRIDGECHAN: u32 = 1074033717; +pub const LIRC_SET_SEND_MODE: u32 = 1074030865; +pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 1074818315; +pub const ATM_GETTYPE: u32 = 1074815364; +pub const PHN_GETREGS: u32 = 3223875591; +pub const FDSETEMSGTRESH: u32 = 586; +pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; +pub const MGSL_IOCWAITEVENT: u32 = 3221515528; +pub const CAPI_INSTALLED: u32 = 2147631906; +pub const EVIOCGMASK: u32 = 2148550034; +pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 2148045849; +pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; +pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; +pub const GSMIOC_GETFIRST: u32 = 2147763972; +pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 1074012952; +pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; +pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 62724; +pub const CAPI_GET_SERIAL: u32 = 3221504776; +pub const FDSETDRVPRM: u32 = 1082131088; +pub const IOC_OPAL_SAVE: u32 = 1092120796; +pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; +pub const TUNSETIFINDEX: u32 = 1074025690; +pub const CCISS_SETINTINFO: u32 = 1074283011; +pub const RTC_VL_CLR: u32 = 28692; +pub const VIDIOC_REQBUFS: u32 = 3222558216; +pub const USBDEVFS_REAPURBNDELAY32: u32 = 1074025741; +pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; +pub const USBDEVFS_SETCONFIGURATION: u32 = 2147767557; +pub const CCISS_GETNODENAME: u32 = 2148549124; +pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; +pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; +pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 15217; +pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 1076372242; +pub const LPSETTIMEOUT_NEW: u32 = 1074791951; +pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; +pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; +pub const FDRAWCMD: u32 = 600; +pub const SCIF_UNREG: u32 = 3222303497; +pub const PPPIOCGIDLE64: u32 = 2148561983; +pub const USBDEVFS_RELEASEINTERFACE: u32 = 2147767568; +pub const VIDIOC_CROPCAP: u32 = 3224131130; +pub const DFL_FPGA_PORT_GET_INFO: u32 = 46657; +pub const PHN_SET_REGS: u32 = 1074294787; +pub const ATMLEC_DATA: u32 = 25041; +pub const PPPOEIOCDFWD: u32 = 45313; +pub const VIDIOC_S_SELECTION: u32 = 3225441887; +pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 13065; +pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; +pub const VIDIOC_S_CTRL: u32 = 3221771804; +pub const ZATM_SETPOOL: u32 = 1074815331; +pub const MTIOCPOS: u32 = 2148035843; +pub const PMU_IOC_SLEEP: u32 = 16896; +pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; +pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; +pub const NILFS_IOCTL_GET_SUSTAT: u32 = 2150657669; +pub const VIDIOC_QUERYCAP: u32 = 2154321408; +pub const HPET_INFO: u32 = 2149083139; +pub const VIDIOC_AM437X_CCDC_CFG: u32 = 1074288321; +pub const DM_LIST_DEVICES: u32 = 3241737474; +pub const TUNSETOWNER: u32 = 1074025676; +pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; +pub const RNDADDENTROPY: u32 = 1074287107; +pub const USBDEVFS_RESET: u32 = 21780; +pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 1342215182; +pub const USBDEVFS_FORBID_SUSPEND: u32 = 21793; +pub const FDGETDRVTYP: u32 = 2148532751; +pub const PPWCONTROL: u32 = 1073836164; +pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; +pub const KCOV_DISABLE: u32 = 25445; +pub const IOC_OPAL_ACTIVATE_LSP: u32 = 1092120799; +pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 2148577144; +pub const PPPIOCSPASS: u32 = 1074820167; +pub const RIO_CM_CHAN_CONNECT: u32 = 1074291464; +pub const I2OSWDEL: u32 = 3224398087; +pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 2148296211; +pub const IOC_OPAL_MBR_DONE: u32 = 1091596521; +pub const PPPIOCSMAXCID: u32 = 1074033745; +pub const PPSETPHASE: u32 = 1074032788; +pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 1074311029; +pub const USBDEVFS_GET_SPEED: u32 = 21791; +pub const SONET_GETFRAMING: u32 = 2147770646; +pub const VIDIOC_QUERYBUF: u32 = 3227014665; +pub const VIDIOC_S_EDID: u32 = 3223868969; +pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 1075352617; +pub const PPS_GETCAP: u32 = 2148036771; +pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 13071; +pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 1074030873; +pub const SCIF_GET_NODEIDS: u32 = 3222827790; +pub const NBD_DISCONNECT: u32 = 43784; +pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; +pub const VFIO_IOMMU_DISABLE: u32 = 15220; +pub const SNAPSHOT_CREATE_IMAGE: u32 = 1074017041; +pub const SNAPSHOT_POWER_OFF: u32 = 13072; +pub const APM_IOC_STANDBY: u32 = 16641; +pub const PPPIOCGUNIT: u32 = 2147775574; +pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 1074041702; +pub const SCIF_BIND: u32 = 3221779201; +pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 22368; +pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 1074818688; +pub const IOC_OPAL_LOCK_UNLOCK: u32 = 1092120797; +pub const F2FS_IOC_SET_PIN_FILE: u32 = 1074066701; +pub const PPPIOCGRASYNCMAP: u32 = 2147775573; +pub const MMTIMER_MMAPAVAIL: u32 = 27910; +pub const I2OPASSTHRU32: u32 = 2148034828; +pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 1074050689; +pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 2156156515; +pub const UI_SET_SNDBIT: u32 = 1074025834; +pub const VIDIOC_G_AUDOUT: u32 = 2150913585; +pub const RTC_PLL_SET: u32 = 1075867666; +pub const VIDIOC_ENUMAUDIO: u32 = 3224655425; +pub const AUTOFS_DEV_IOCTL_TIMEOUT: u32 = 3222836090; +pub const VBG_IOCTL_DRIVER_VERSION_INFO: u32 = 3224131072; +pub const VHOST_SCSI_GET_EVENTS_MISSED: u32 = 1074048836; +pub const VHOST_SET_VRING_ADDR: u32 = 1076408081; +pub const VDUSE_CREATE_DEV: u32 = 1095794946; +pub const FDFLUSH: u32 = 587; +pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; +pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 1074312836; +pub const F2FS_IOC_GET_PIN_FILE: u32 = 2147808526; +pub const SCIF_CONNECT: u32 = 3221779203; +pub const BLKREPORTZONE: u32 = 3222278786; +pub const AUTOFS_IOC_ASKUMOUNT: u32 = 2147783536; +pub const ATM_ADDPARTY: u32 = 1074815476; +pub const FDSETPRM: u32 = 1075839554; +pub const ATM_GETSTATZ: u32 = 1074815313; +pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; +pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 2180551740; +pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 1075861083; +pub const SEV_ISSUE_CMD: u32 = 3222295296; +pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; +pub const PCITEST_COPY: u32 = 1074286598; +pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 2147772690; +pub const CHIOGPICKER: u32 = 2147771140; +pub const CAPI_NCCI_OPENCOUNT: u32 = 2147762982; +pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; +pub const PERF_EVENT_IOC_SET_FILTER: u32 = 1074275334; +pub const IOC_OPAL_REVERT_TPR: u32 = 1091072226; +pub const CHIOGVPARAMS: u32 = 2154849043; +pub const PTP_PEROUT_REQUEST: u32 = 1077427459; +pub const FSI_SCOM_CHECK: u32 = 2147775232; +pub const RTC_IRQP_READ: u32 = 2148036619; +pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 2149084421; +pub const HIDIOCGRDESCSIZE: u32 = 2147764225; +pub const UI_GET_VERSION: u32 = 2147767597; +pub const NILFS_IOCTL_GET_CPSTAT: u32 = 2149084803; +pub const CCISS_GETBUSTYPES: u32 = 2147762695; +pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 15223; +pub const VIDIOC_EXPBUF: u32 = 3225441808; +pub const UI_SET_RELBIT: u32 = 1074025830; +pub const VFIO_SET_IOMMU: u32 = 15206; +pub const VIDIOC_S_MODULATOR: u32 = 1078220343; +pub const TUNGETFILTER: u32 = 2148553947; +pub const CCISS_SETNODENAME: u32 = 1074807301; +pub const FBIO_GETCONTROL2: u32 = 2148025993; +pub const TUNSETDEBUG: u32 = 1074025673; +pub const DM_DEV_REMOVE: u32 = 3241737476; +pub const HIDIOCSUSAGES: u32 = 1344030740; +pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; +pub const FBIOGET_VBLANK: u32 = 2149598738; +pub const ATM_GETSTAT: u32 = 1074815312; +pub const VIDIOC_G_JPEGCOMP: u32 = 2156680765; +pub const TUNATTACHFILTER: u32 = 1074812117; +pub const UI_SET_ABSBIT: u32 = 1074025831; +pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 2147792453; +pub const USBDEVFS_REAPURB32: u32 = 1074025740; +pub const BTRFS_IOC_TRANS_END: u32 = 37895; +pub const CAPI_REGISTER: u32 = 1074545409; +pub const F2FS_IOC_COMPRESS_FILE: u32 = 62744; +pub const USBDEVFS_DISCARDURB: u32 = 21771; +pub const HE_GET_REG: u32 = 1074815328; +pub const ATM_SETLOOP: u32 = 1074815315; +pub const ATMSIGD_CTRL: u32 = 25072; +pub const CIOC_KERNEL_VERSION: u32 = 3221775114; +pub const BTRFS_IOC_CLONE_RANGE: u32 = 1075876877; +pub const SNAPSHOT_UNFREEZE: u32 = 13058; +pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 62723; +pub const PMU_IOC_HAS_ADB: u32 = 2148024836; +pub const I2OGETIOPS: u32 = 2149607680; +pub const VIDIOC_S_FBUF: u32 = 1076909579; +pub const PPRCONTROL: u32 = 2147577987; +pub const CHIOSPICKER: u32 = 1074029317; +pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 15221; +pub const TUNGETSNDBUF: u32 = 2147767507; +pub const GSMIOC_SETCONF: u32 = 1078740737; +pub const IOC_PR_PREEMPT: u32 = 1075343563; +pub const KCOV_INIT_TRACE: u32 = 2148033281; +pub const SONYPI_IOCGBAT1CAP: u32 = 2147644930; +pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 2148554560; +pub const MTIOCTOP: u32 = 1074294017; +pub const VHOST_VDPA_SET_STATUS: u32 = 1073852274; +pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 1074048835; +pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 15221; +pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; +pub const PPPIOCGMRU: u32 = 2147775571; +pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; +pub const PPPIOCGFLAGS: u32 = 2147775578; +pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; +pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; +pub const ATM_DELLECSADDR: u32 = 1074815375; +pub const FW_CDEV_IOC_GET_SPEED: u32 = 8977; +pub const PPPIOCGIDLE32: u32 = 2148037695; +pub const VFIO_DEVICE_RESET: u32 = 15215; +pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; +pub const WDIOC_GETSTATUS: u32 = 2147768065; +pub const BTRFS_IOC_SET_FEATURES: u32 = 1076925497; +pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; +pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; +pub const PCITEST_READ: u32 = 1074286597; +pub const VFIO_GROUP_GET_STATUS: u32 = 15207; +pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 2148036347; +pub const USBDEVFS_CLEAR_HALT: u32 = 2147767573; +pub const VIDIOC_DECODER_CMD: u32 = 3225966176; +pub const VIDIOC_G_AUDIO: u32 = 2150913569; +pub const CCISS_RESCANDISK: u32 = 16912; +pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 1074818316; +pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 1091596519; +pub const USBDEVFS_REAPURB: u32 = 1074287884; +pub const DFL_FPGA_CHECK_EXTENSION: u32 = 46593; +pub const AUTOFS_IOC_PROTOVER: u32 = 2147783523; +pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; +pub const BTRFS_IOC_GET_FEATURES: u32 = 2149094457; +pub const PCITEST_MSIX: u32 = 1074024455; +pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 1076925456; +pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; +pub const DM_GET_TARGET_VERSION: u32 = 3241737489; +pub const PPPIOCGIDLE: u32 = 2148561983; +pub const NVRAM_SETCKS: u32 = 28737; +pub const WDIOC_GETSUPPORT: u32 = 2150127360; +pub const GSMIOC_ENABLE_NET: u32 = 1077167874; +pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 2151986177; +pub const NE_ADD_VCPU: u32 = 3221532193; +pub const EVIOCSKEYCODE_V2: u32 = 1076380932; +pub const PTP_SYS_OFFSET_EXTENDED2: u32 = 3300932882; +pub const SCIF_FENCE_WAIT: u32 = 3221517072; +pub const RIO_TRANSFER: u32 = 3222826261; +pub const FSL_HV_IOCTL_DOORBELL: u32 = 3221794566; +pub const RIO_MPORT_MAINT_WRITE_LOCAL: u32 = 1075342598; +pub const I2OEVTREG: u32 = 1074555146; +pub const I2OPARMGET: u32 = 3223873796; +pub const EVIOCGID: u32 = 2148025602; +pub const BTRFS_IOC_QGROUP_CREATE: u32 = 1074828330; +pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; +pub const VIDIOC_S_PARM: u32 = 3234616854; +pub const TUNSETSTEERINGEBPF: u32 = 2147767520; +pub const ATM_GETNAMES: u32 = 1074815363; +pub const VIDIOC_QUERYMENU: u32 = 3224131109; +pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 46660; +pub const I2OLCTGET: u32 = 3222825218; +pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 1074816532; +pub const NS_SETBUFLEV: u32 = 1074815330; +pub const BLKCLOSEZONE: u32 = 1074795143; +pub const SONET_GETFRSENSE: u32 = 2147901719; +pub const UI_SET_EVBIT: u32 = 1074025828; +pub const DM_LIST_VERSIONS: u32 = 3241737485; +pub const HIDIOCGSTRING: u32 = 2164541444; +pub const PPPIOCATTCHAN: u32 = 1074033720; +pub const VDUSE_DEV_SET_CONFIG: u32 = 1074299154; +pub const TUNGETFEATURES: u32 = 2147767503; +pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 15209; +pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 2147772689; +pub const CCISS_REGNEWDISK: u32 = 1074020877; +pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 2156156515; +pub const PHN_SETREGS: u32 = 1076391944; +pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 2147774992; +pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; +pub const TUNGETIFF: u32 = 2147767506; +pub const PTP_CLOCK_GETCAPS2: u32 = 2152742154; +pub const BTRFS_IOC_RESIZE: u32 = 1342215171; +pub const VHOST_SET_VRING_ENDIAN: u32 = 1074310931; +pub const PPS_KC_BIND: u32 = 1074294949; +pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 62727; +pub const UI_SET_FFBIT: u32 = 1074025835; +pub const IPMICTL_GET_MY_LUN_CMD: u32 = 2147772692; +pub const CEC_ADAP_G_PHYS_ADDR: u32 = 2147639553; +pub const CEC_G_MODE: u32 = 2147770632; +pub const USBDEVFS_RESETEP: u32 = 2147767555; +pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 31872; +pub const USBDEVFS_ALLOC_STREAMS: u32 = 2148029724; +pub const MGSL_IOCSXCTRL: u32 = 27925; +pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; +pub const PPPIOCUNBRIDGECHAN: u32 = 29748; +pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 62722; +pub const ISST_IF_GET_PLATFORM_INFO: u32 = 2148072960; +pub const SCIF_FENCE_MARK: u32 = 3222303503; +pub const USBDEVFS_RELEASE_PORT: u32 = 2147767577; +pub const VFIO_CHECK_EXTENSION: u32 = 15205; +pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 2150667307; +pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 2147774995; +pub const UI_SET_PHYS: u32 = 1074287980; +pub const FDWERRORGET: u32 = 2150105623; +pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; +pub const MGSL_IOCGSTATS: u32 = 27911; +pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 1074050817; +pub const SIOCGSTAMP_NEW: u32 = 2148567302; +pub const RTC_WKALM_RD: u32 = 2150133776; +pub const PHN_GET_REG: u32 = 3221778432; +pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; +pub const PHN_NOT_OH: u32 = 28676; +pub const PPGETMODES: u32 = 2147774615; +pub const CHIOGPARAMS: u32 = 2148819718; +pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 15219; +pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310947; +pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; +pub const BTRFS_IOC_RM_DEV_V2: u32 = 1342215226; +pub const MGSL_IOCWAITGPIO: u32 = 3222301970; +pub const PMU_IOC_CAN_SLEEP: u32 = 2148024837; +pub const KCOV_ENABLE: u32 = 25444; +pub const BTRFS_IOC_CLONE: u32 = 1074041865; +pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; +pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 1074012942; +pub const AGPIOC_ALLOCATE: u32 = 3221766406; +pub const NE_SET_USER_MEMORY_REGION: u32 = 1075359267; +pub const MGSL_IOCTXABORT: u32 = 27910; +pub const MGSL_IOCSGPIO: u32 = 1074818320; +pub const LIRC_SET_REC_CARRIER: u32 = 1074030868; +pub const F2FS_IOC_FLUSH_DEVICE: u32 = 1074328842; +pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 13060; +pub const RTC_UIE_OFF: u32 = 28676; +pub const BT_BMC_IOCTL_SMS_ATN: u32 = 45312; +pub const NVME_IOCTL_ID: u32 = 20032; +pub const NE_START_ENCLAVE: u32 = 3222318628; +pub const VIDIOC_STREAMON: u32 = 1074026002; +pub const FDPOLLDRVSTAT: u32 = 2152727059; +pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; +pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; +pub const VIDIOC_SUBDEV_S_STD: u32 = 1074288152; +pub const WDIOC_GETTIMELEFT: u32 = 2147768074; +pub const ATM_GETLINKRATE: u32 = 1074815361; +pub const RTC_WKALM_SET: u32 = 1076391951; +pub const VHOST_GET_BACKEND_FEATURES: u32 = 2148052774; +pub const ATMARP_ENCAP: u32 = 25061; +pub const CAPI_GET_FLAGS: u32 = 2147762979; +pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772696; +pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 1074050690; +pub const NS_GET_OWNER_UID: u32 = 46852; +pub const VIDIOC_OVERLAY: u32 = 1074025998; +pub const BTRFS_IOC_WAIT_SYNC: u32 = 1074304022; +pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; +pub const VHOST_GET_VRING_ENDIAN: u32 = 1074310932; +pub const ATM_GETADDR: u32 = 1074815366; +pub const PHN_GET_REGS: u32 = 3221778434; +pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; +pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; +pub const SNAPSHOT_S2RAM: u32 = 13067; +pub const JSIOCSAXMAP: u32 = 1077963313; +pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 1073935638; +pub const VBG_IOCTL_HGCM_DISCONNECT: u32 = 3223082501; +pub const SCIF_FENCE_SIGNAL: u32 = 3223876369; +pub const VFIO_DEVICE_GET_PCI_HOT_RESET_INFO: u32 = 15216; +pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; +pub const MMTIMER_GETOFFSET: u32 = 27904; +pub const RIO_CM_CHAN_LISTEN: u32 = 1073898246; +pub const ATM_SETSC: u32 = 1074029041; +pub const F2FS_IOC_SHUTDOWN: u32 = 2147768445; +pub const NVME_IOCTL_RESCAN: u32 = 20038; +pub const BLKOPENZONE: u32 = 1074795142; +pub const DM_VERSION: u32 = 3241737472; +pub const CEC_TRANSMIT: u32 = 3224920325; +pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; +pub const SIOCMKCLIP: u32 = 25056; +pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 45313; +pub const HIDIOCGVERSION: u32 = 2147764225; +pub const VIDIOC_S_INPUT: u32 = 3221509671; +pub const VIDIOC_G_CROP: u32 = 3222558267; +pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 1074030883; +pub const EVIOCGEFFECTS: u32 = 2147763588; +pub const UVCIOC_CTRL_QUERY: u32 = 3222304033; +pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 1094217963; +pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; +pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; +pub const USBDEVFS_GETDRIVER: u32 = 1090802952; +pub const IDT77105_GETSTAT: u32 = 1074815282; +pub const HIDIOCINITREPORT: u32 = 18437; +pub const VFIO_DEVICE_GET_INFO: u32 = 15211; +pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; +pub const RNDGETENTCNT: u32 = 2147766784; +pub const PPPIOCNEWUNIT: u32 = 3221517374; +pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; +pub const FDRESET: u32 = 596; +pub const IOC_PR_REGISTER: u32 = 1075343560; +pub const HIDIOCSREPORT: u32 = 1074546696; +pub const TEE_IOC_OPEN_SESSION: u32 = 2148574210; +pub const TEE_IOC_SUPPL_RECV: u32 = 2148574214; +pub const BTRFS_IOC_BALANCE_CTL: u32 = 1074041889; +pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; +pub const HIDIOCGRAWINFO: u32 = 2148026371; +pub const PPPIOCSCOMPRESS: u32 = 1074820173; +pub const USBDEVFS_CONNECTINFO: u32 = 1074287889; +pub const BLKRESETZONE: u32 = 1074795139; +pub const CHIOINITELEM: u32 = 25361; +pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 1074818700; +pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; +pub const RIO_MPORT_MAINT_HDID_SET: u32 = 1073900801; +pub const PPGETPHASE: u32 = 2147774617; +pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 2164806939; +pub const FDMSGON: u32 = 581; +pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; +pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; +pub const MEDIA_REQUEST_IOC_REINIT: u32 = 31873; +pub const IOC_OPAL_ERASE_LR: u32 = 1091596518; +pub const FDFMTBEG: u32 = 583; +pub const RNDRESEEDCRNG: u32 = 20999; +pub const ISST_IF_GET_PHY_ID: u32 = 3221814785; +pub const TUNSETNOCSUM: u32 = 1074025672; +pub const SONET_GETSTAT: u32 = 2149867792; +pub const TFD_IOC_SET_TICKS: u32 = 1074287616; +pub const PPDATADIR: u32 = 1074032784; +pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 1091596517; +pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; +pub const RIO_CM_CHAN_SEND: u32 = 1074815753; +pub const PPWCTLONIRQ: u32 = 1073836178; +pub const SONYPI_IOCGBRT: u32 = 2147579392; +pub const IOC_PR_RELEASE: u32 = 1074819274; +pub const PPCLRIRQ: u32 = 2147774611; +pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 2147772698; +pub const MGSL_IOCSXSYNC: u32 = 27923; +pub const HPET_IE_OFF: u32 = 26626; +pub const IOC_OPAL_ACTIVATE_USR: u32 = 1091596513; +pub const SONET_SETFRAMING: u32 = 1074028821; +pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 1074013193; +pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; +pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; +pub const BLKFINISHZONE: u32 = 1074795144; +pub const EVIOCREVOKE: u32 = 1074021777; +pub const VFIO_DEVICE_FEATURE: u32 = 15221; +pub const CCISS_GETPCIINFO: u32 = 2148024833; +pub const ISST_IF_MBOX_COMMAND: u32 = 3221814787; +pub const SCIF_ACCEPTREQ: u32 = 3222303492; +pub const PERF_EVENT_IOC_QUERY_BPF: u32 = 3221758986; +pub const VIDIOC_STREAMOFF: u32 = 1074026003; +pub const VDUSE_DESTROY_DEV: u32 = 1090552067; +pub const FDGETFDCSTAT: u32 = 2150105621; +pub const VIDIOC_S_PRIORITY: u32 = 1074026052; +pub const SNAPSHOT_FREEZE: u32 = 13057; +pub const VIDIOC_ENUMINPUT: u32 = 3226490394; +pub const ZATM_GETPOOLZ: u32 = 1074815330; +pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 1074294026; +pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; +pub const VIDIOC_G_STD: u32 = 2148029975; +pub const USBDEVFS_ALLOW_SUSPEND: u32 = 21794; +pub const SONET_GETSTATZ: u32 = 2149867793; +pub const SCIF_ACCEPTREG: u32 = 3221779205; +pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; +pub const PPPIOCSRASYNCMAP: u32 = 1074033748; +pub const IOCTL_MEI_NOTIFY_SET: u32 = 1074022402; +pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 2151715885; +pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 1074066694; +pub const ATMLEC_CTRL: u32 = 25040; +pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 2148036345; +pub const DM_DEV_CREATE: u32 = 3241737475; +pub const VHOST_VDPA_GET_VRING_NUM: u32 = 2147659638; +pub const VIDIOC_G_CTRL: u32 = 3221771803; +pub const NBD_CLEAR_SOCK: u32 = 43780; +pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 15218; +pub const WDIOC_KEEPALIVE: u32 = 2147768069; +pub const NVME_IOCTL_SUBSYS_RESET: u32 = 20037; +pub const PTP_EXTTS_REQUEST2: u32 = 1074806027; +pub const PCITEST_BAR: u32 = 20481; +pub const MGSL_IOCGGPIO: u32 = 2148560145; +pub const EVIOCSREP: u32 = 1074283779; +pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 15213; +pub const HPET_DPI: u32 = 26629; +pub const VDUSE_VQ_SETUP_KICKFD: u32 = 1074299158; +pub const ND_IOCTL_CALL: u32 = 3225439754; +pub const HIDIOCGDEVINFO: u32 = 2149337091; +pub const DM_TABLE_DEPS: u32 = 3241737483; +pub const BTRFS_IOC_DEV_INFO: u32 = 3489698846; +pub const VDUSE_IOTLB_GET_FD: u32 = 3223355664; +pub const FW_CDEV_IOC_GET_INFO: u32 = 3223855872; +pub const VIDIOC_G_PRIORITY: u32 = 2147767875; +pub const ATM_NEWBACKENDIF: u32 = 1073897971; +pub const VIDIOC_S_EXT_CTRLS: u32 = 3223344712; +pub const VIDIOC_SUBDEV_ENUM_DV_TIMINGS: u32 = 3230946914; +pub const VIDIOC_OMAP3ISP_CCDC_CFG: u32 = 3224917697; +pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 1076909650; +pub const DM_TABLE_LOAD: u32 = 3241737481; +pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 62721; +pub const VIDIOC_G_OUTPUT: u32 = 2147767854; +pub const ATM_DROPPARTY: u32 = 1074029045; +pub const CHIOGELEM: u32 = 1080845072; +pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 2152240185; +pub const EVIOCSKEYCODE: u32 = 1074283780; +pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; +pub const TUNSETLINK: u32 = 1074025677; +pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; +pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 37916; +pub const PPS_SETPARAMS: u32 = 1074294946; +pub const IOC_OPAL_LR_SETUP: u32 = 1093169379; +pub const FW_CDEV_IOC_DEALLOCATE: u32 = 1074012931; +pub const WDIOC_SETTIMEOUT: u32 = 3221509894; +pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 22369; +pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; +pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 15222; +pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 1074836224; +pub const VIDIOC_G_EDID: u32 = 3223868968; +pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 1075377419; +pub const RIO_MAP_INBOUND: u32 = 3223874833; +pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 1091072222; +pub const USBDEVFS_CLAIM_PORT: u32 = 2147767576; +pub const VIDIOC_S_AUDIO: u32 = 1077171746; +pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 2148558363; +pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 1076372243; +pub const BTRFS_IOC_SNAP_DESTROY: u32 = 1342215183; +pub const SNAPSHOT_FREE: u32 = 13061; +pub const I8K_GET_SPEED: u32 = 3221776773; +pub const HIDIOCGREPORT: u32 = 1074546695; +pub const HPET_EPI: u32 = 26628; +pub const JSIOCSCORR: u32 = 1076128289; +pub const IOC_PR_PREEMPT_ABORT: u32 = 1075343564; +pub const RIO_MAP_OUTBOUND: u32 = 3223874831; +pub const ATM_SETESI: u32 = 1074815372; +pub const FW_CDEV_IOC_START_ISO: u32 = 1074799370; +pub const ATM_DELADDR: u32 = 1074815369; +pub const PPFCONTROL: u32 = 1073901710; +pub const SONYPI_IOCGFAN: u32 = 2147579402; +pub const RTC_IRQP_SET: u32 = 1074294796; +pub const PCITEST_WRITE: u32 = 1074286596; +pub const PPCLAIM: u32 = 28811; +pub const VIDIOC_S_JPEGCOMP: u32 = 1082938942; +pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 2147641615; +pub const VHOST_SET_FEATURES: u32 = 1074310912; +pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; +pub const VIDIOC_DQBUF: u32 = 3227014673; +pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 2214630434; +pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 1074304026; +pub const ATMLEC_MCAST: u32 = 25042; +pub const MMTIMER_GETFREQ: u32 = 2148035842; +pub const VIDIOC_G_SELECTION: u32 = 3225441886; +pub const RTC_ALM_SET: u32 = 1076129799; +pub const PPPOEIOCSFWD: u32 = 1074311424; +pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 2147772702; +pub const FS_IOC_ENABLE_VERITY: u32 = 1082156677; +pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; +pub const FDFMTEND: u32 = 585; +pub const DMA_BUF_SET_NAME: u32 = 1074291201; +pub const UI_BEGIN_FF_UPLOAD: u32 = 3228063176; +pub const RTC_UIE_ON: u32 = 28675; +pub const PPRELEASE: u32 = 28812; +pub const VFIO_IOMMU_UNMAP_DMA: u32 = 15218; +pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3228587714; +pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; +pub const VFAT_IOCTL_READDIR_BOTH: u32 = 2184212993; +pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; +pub const VHOST_SET_VRING_KICK: u32 = 1074310944; +pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 1342215192; +pub const BTRFS_IOC_SNAP_CREATE: u32 = 1342215169; +pub const SONYPI_IOCGBAT2CAP: u32 = 2147644932; +pub const PPNEGOT: u32 = 1074032785; +pub const NBD_PRINT_DEBUG: u32 = 43782; +pub const BTRFS_IOC_INO_LOOKUP_USER: u32 = 3489698878; +pub const BTRFS_IOC_GET_SUBVOL_ROOTREF: u32 = 3489698877; +pub const FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS: u32 = 3225445913; +pub const BTRFS_IOC_FS_INFO: u32 = 2214630431; +pub const VIDIOC_ENUM_FMT: u32 = 3225441794; +pub const VIDIOC_G_INPUT: u32 = 2147767846; +pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; +pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 2147792515; +pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; +pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 1077974060; +pub const MMTIMER_GETCOUNTER: u32 = 2148035849; +pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; +pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 37934; +pub const RIO_CM_CHAN_BIND: u32 = 1074291461; +pub const HIDIOCGRDESC: u32 = 2416199682; +pub const MGSL_IOCGIF: u32 = 27915; +pub const VIDIOC_S_OUTPUT: u32 = 3221509679; +pub const HIDIOCGREPORTINFO: u32 = 3222030345; +pub const WDIOC_GETBOOTSTATUS: u32 = 2147768066; +pub const VDUSE_VQ_GET_INFO: u32 = 3224404245; +pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 1076142677; +pub const BLKGETDISKSEQ: u32 = 2148012672; +pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; +pub const ACRN_IOCTL_DESTROY_VM: u32 = 41489; +pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 1075094099; +pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 41522; +pub const ACRN_IOCTL_IRQFD: u32 = 1075356273; +pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; +pub const ACRN_IOCTL_INJECT_MSI: u32 = 1074831907; +pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 41523; +pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 1075094100; +pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 1074307633; +pub const ACRN_IOCTL_SET_IRQLINE: u32 = 1074307621; +pub const ACRN_IOCTL_START_VM: u32 = 41490; +pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 1093181974; +pub const ACRN_IOCTL_SET_MEMSEG: u32 = 1075880513; +pub const ACRN_IOCTL_PAUSE_VM: u32 = 41491; +pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 41525; +pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 1075880514; +pub const ACRN_IOCTL_IOEVENTFD: u32 = 1075880560; +pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 1076142678; +pub const ACRN_IOCTL_RESET_VM: u32 = 41493; +pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 41524; +pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 1074307620; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/landlock.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/landlock.rs new file mode 100644 index 0000000000000000000000000000000000000000..b4adb6c11607d5b94a3979e5eb29871e8b225085 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/landlock.rs @@ -0,0 +1,104 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct landlock_ruleset_attr { +pub handled_access_fs: __u64, +pub handled_access_net: __u64, +pub scoped: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct landlock_path_beneath_attr { +pub allowed_access: __u64, +pub parent_fd: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct landlock_net_port_attr { +pub allowed_access: __u64, +pub port: __u64, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; +pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; +pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; +pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; +pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; +pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; +pub const LANDLOCK_ACCESS_FS_READ_DIR: u32 = 8; +pub const LANDLOCK_ACCESS_FS_REMOVE_DIR: u32 = 16; +pub const LANDLOCK_ACCESS_FS_REMOVE_FILE: u32 = 32; +pub const LANDLOCK_ACCESS_FS_MAKE_CHAR: u32 = 64; +pub const LANDLOCK_ACCESS_FS_MAKE_DIR: u32 = 128; +pub const LANDLOCK_ACCESS_FS_MAKE_REG: u32 = 256; +pub const LANDLOCK_ACCESS_FS_MAKE_SOCK: u32 = 512; +pub const LANDLOCK_ACCESS_FS_MAKE_FIFO: u32 = 1024; +pub const LANDLOCK_ACCESS_FS_MAKE_BLOCK: u32 = 2048; +pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; +pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; +pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; +pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; +pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; +pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum landlock_rule_type { +LANDLOCK_RULE_PATH_BENEATH = 1, +LANDLOCK_RULE_NET_PORT = 2, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/loop_device.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/loop_device.rs new file mode 100644 index 0000000000000000000000000000000000000000..5e1a2291bc1c21263aa4793eeb74c91ba7ec920f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/loop_device.rs @@ -0,0 +1,134 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct loop_info { +pub lo_number: crate::ctypes::c_int, +pub lo_device: __kernel_old_dev_t, +pub lo_inode: crate::ctypes::c_ulong, +pub lo_rdevice: __kernel_old_dev_t, +pub lo_offset: crate::ctypes::c_int, +pub lo_encrypt_type: crate::ctypes::c_int, +pub lo_encrypt_key_size: crate::ctypes::c_int, +pub lo_flags: crate::ctypes::c_int, +pub lo_name: [crate::ctypes::c_char; 64usize], +pub lo_encrypt_key: [crate::ctypes::c_uchar; 32usize], +pub lo_init: [crate::ctypes::c_ulong; 2usize], +pub reserved: [crate::ctypes::c_char; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct loop_info64 { +pub lo_device: __u64, +pub lo_inode: __u64, +pub lo_rdevice: __u64, +pub lo_offset: __u64, +pub lo_sizelimit: __u64, +pub lo_number: __u32, +pub lo_encrypt_type: __u32, +pub lo_encrypt_key_size: __u32, +pub lo_flags: __u32, +pub lo_file_name: [__u8; 64usize], +pub lo_crypt_name: [__u8; 64usize], +pub lo_encrypt_key: [__u8; 32usize], +pub lo_init: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct loop_config { +pub fd: __u32, +pub block_size: __u32, +pub info: loop_info64, +pub __reserved: [__u64; 8usize], +} +pub const LO_NAME_SIZE: u32 = 64; +pub const LO_KEY_SIZE: u32 = 32; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const LO_CRYPT_NONE: u32 = 0; +pub const LO_CRYPT_XOR: u32 = 1; +pub const LO_CRYPT_DES: u32 = 2; +pub const LO_CRYPT_FISH2: u32 = 3; +pub const LO_CRYPT_BLOW: u32 = 4; +pub const LO_CRYPT_CAST128: u32 = 5; +pub const LO_CRYPT_IDEA: u32 = 6; +pub const LO_CRYPT_DUMMY: u32 = 9; +pub const LO_CRYPT_SKIPJACK: u32 = 10; +pub const LO_CRYPT_CRYPTOAPI: u32 = 18; +pub const MAX_LO_CRYPT: u32 = 20; +pub const LOOP_SET_FD: u32 = 19456; +pub const LOOP_CLR_FD: u32 = 19457; +pub const LOOP_SET_STATUS: u32 = 19458; +pub const LOOP_GET_STATUS: u32 = 19459; +pub const LOOP_SET_STATUS64: u32 = 19460; +pub const LOOP_GET_STATUS64: u32 = 19461; +pub const LOOP_CHANGE_FD: u32 = 19462; +pub const LOOP_SET_CAPACITY: u32 = 19463; +pub const LOOP_SET_DIRECT_IO: u32 = 19464; +pub const LOOP_SET_BLOCK_SIZE: u32 = 19465; +pub const LOOP_CONFIGURE: u32 = 19466; +pub const LOOP_CTL_ADD: u32 = 19584; +pub const LOOP_CTL_REMOVE: u32 = 19585; +pub const LOOP_CTL_GET_FREE: u32 = 19586; +pub const LO_FLAGS_READ_ONLY: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_READ_ONLY; +pub const LO_FLAGS_AUTOCLEAR: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_AUTOCLEAR; +pub const LO_FLAGS_PARTSCAN: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_PARTSCAN; +pub const LO_FLAGS_DIRECT_IO: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_DIRECT_IO; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +LO_FLAGS_READ_ONLY = 1, +LO_FLAGS_AUTOCLEAR = 4, +LO_FLAGS_PARTSCAN = 8, +LO_FLAGS_DIRECT_IO = 16, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/mempolicy.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/mempolicy.rs new file mode 100644 index 0000000000000000000000000000000000000000..51914ccda4aae99462299b196a931dd5feea3a80 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/mempolicy.rs @@ -0,0 +1,175 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EDEADLK: u32 = 35; +pub const ENAMETOOLONG: u32 = 36; +pub const ENOLCK: u32 = 37; +pub const ENOSYS: u32 = 38; +pub const ENOTEMPTY: u32 = 39; +pub const ELOOP: u32 = 40; +pub const EWOULDBLOCK: u32 = 11; +pub const ENOMSG: u32 = 42; +pub const EIDRM: u32 = 43; +pub const ECHRNG: u32 = 44; +pub const EL2NSYNC: u32 = 45; +pub const EL3HLT: u32 = 46; +pub const EL3RST: u32 = 47; +pub const ELNRNG: u32 = 48; +pub const EUNATCH: u32 = 49; +pub const ENOCSI: u32 = 50; +pub const EL2HLT: u32 = 51; +pub const EBADE: u32 = 52; +pub const EBADR: u32 = 53; +pub const EXFULL: u32 = 54; +pub const ENOANO: u32 = 55; +pub const EBADRQC: u32 = 56; +pub const EBADSLT: u32 = 57; +pub const EDEADLOCK: u32 = 35; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EMULTIHOP: u32 = 72; +pub const EDOTDOT: u32 = 73; +pub const EBADMSG: u32 = 74; +pub const EOVERFLOW: u32 = 75; +pub const ENOTUNIQ: u32 = 76; +pub const EBADFD: u32 = 77; +pub const EREMCHG: u32 = 78; +pub const ELIBACC: u32 = 79; +pub const ELIBBAD: u32 = 80; +pub const ELIBSCN: u32 = 81; +pub const ELIBMAX: u32 = 82; +pub const ELIBEXEC: u32 = 83; +pub const EILSEQ: u32 = 84; +pub const ERESTART: u32 = 85; +pub const ESTRPIPE: u32 = 86; +pub const EUSERS: u32 = 87; +pub const ENOTSOCK: u32 = 88; +pub const EDESTADDRREQ: u32 = 89; +pub const EMSGSIZE: u32 = 90; +pub const EPROTOTYPE: u32 = 91; +pub const ENOPROTOOPT: u32 = 92; +pub const EPROTONOSUPPORT: u32 = 93; +pub const ESOCKTNOSUPPORT: u32 = 94; +pub const EOPNOTSUPP: u32 = 95; +pub const EPFNOSUPPORT: u32 = 96; +pub const EAFNOSUPPORT: u32 = 97; +pub const EADDRINUSE: u32 = 98; +pub const EADDRNOTAVAIL: u32 = 99; +pub const ENETDOWN: u32 = 100; +pub const ENETUNREACH: u32 = 101; +pub const ENETRESET: u32 = 102; +pub const ECONNABORTED: u32 = 103; +pub const ECONNRESET: u32 = 104; +pub const ENOBUFS: u32 = 105; +pub const EISCONN: u32 = 106; +pub const ENOTCONN: u32 = 107; +pub const ESHUTDOWN: u32 = 108; +pub const ETOOMANYREFS: u32 = 109; +pub const ETIMEDOUT: u32 = 110; +pub const ECONNREFUSED: u32 = 111; +pub const EHOSTDOWN: u32 = 112; +pub const EHOSTUNREACH: u32 = 113; +pub const EALREADY: u32 = 114; +pub const EINPROGRESS: u32 = 115; +pub const ESTALE: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EDQUOT: u32 = 122; +pub const ENOMEDIUM: u32 = 123; +pub const EMEDIUMTYPE: u32 = 124; +pub const ECANCELED: u32 = 125; +pub const ENOKEY: u32 = 126; +pub const EKEYEXPIRED: u32 = 127; +pub const EKEYREVOKED: u32 = 128; +pub const EKEYREJECTED: u32 = 129; +pub const EOWNERDEAD: u32 = 130; +pub const ENOTRECOVERABLE: u32 = 131; +pub const ERFKILL: u32 = 132; +pub const EHWPOISON: u32 = 133; +pub const MPOL_F_STATIC_NODES: u32 = 32768; +pub const MPOL_F_RELATIVE_NODES: u32 = 16384; +pub const MPOL_F_NUMA_BALANCING: u32 = 8192; +pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_F_NODE: u32 = 1; +pub const MPOL_F_ADDR: u32 = 2; +pub const MPOL_F_MEMS_ALLOWED: u32 = 4; +pub const MPOL_MF_STRICT: u32 = 1; +pub const MPOL_MF_MOVE: u32 = 2; +pub const MPOL_MF_MOVE_ALL: u32 = 4; +pub const MPOL_MF_LAZY: u32 = 8; +pub const MPOL_MF_INTERNAL: u32 = 16; +pub const MPOL_MF_VALID: u32 = 7; +pub const MPOL_F_SHARED: u32 = 1; +pub const MPOL_F_MOF: u32 = 8; +pub const MPOL_F_MORON: u32 = 16; +pub const RECLAIM_ZONE: u32 = 1; +pub const RECLAIM_WRITE: u32 = 2; +pub const RECLAIM_UNMAP: u32 = 4; +pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; +pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; +pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; +pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; +pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; +pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; +pub const MPOL_WEIGHTED_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_WEIGHTED_INTERLEAVE; +pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +MPOL_DEFAULT = 0, +MPOL_PREFERRED = 1, +MPOL_BIND = 2, +MPOL_INTERLEAVE = 3, +MPOL_LOCAL = 4, +MPOL_PREFERRED_MANY = 5, +MPOL_WEIGHTED_INTERLEAVE = 6, +MPOL_MAX = 7, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/net.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/net.rs new file mode 100644 index 0000000000000000000000000000000000000000..3bc35984b5e02d5652681a95fc4593e88fd6f12c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/net.rs @@ -0,0 +1,3491 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_sa_family_t = crate::ctypes::c_ushort; +pub type socklen_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] +pub struct __BindgenBitfieldUnit { +storage: Storage, +} +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +pub struct __BindgenUnionField(::core::marker::PhantomData); +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __kernel_sockaddr_storage { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { +pub ss_family: __kernel_sa_family_t, +pub __data: [crate::ctypes::c_char; 126usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct in_addr { +pub s_addr: __be32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_mreq { +pub imr_multiaddr: in_addr, +pub imr_interface: in_addr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_mreqn { +pub imr_multiaddr: in_addr, +pub imr_address: in_addr, +pub imr_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_mreq_source { +pub imr_multiaddr: __be32, +pub imr_interface: __be32, +pub imr_sourceaddr: __be32, +} +#[repr(C)] +pub struct ip_msfilter { +pub imsf_multiaddr: __be32, +pub imsf_interface: __be32, +pub imsf_fmode: __u32, +pub imsf_numsrc: __u32, +pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, +} +#[repr(C)] +pub struct ip_msfilter__bindgen_ty_1 { +pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, +pub __bindgen_anon_1: __BindgenUnionField, +pub bindgen_union_field: u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { +pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, +pub imsf_slist_flex: __IncompleteArrayField<__be32>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct group_req { +pub gr_interface: __u32, +pub gr_group: __kernel_sockaddr_storage, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct group_source_req { +pub gsr_interface: __u32, +pub gsr_group: __kernel_sockaddr_storage, +pub gsr_source: __kernel_sockaddr_storage, +} +#[repr(C)] +pub struct group_filter { +pub __bindgen_anon_1: group_filter__bindgen_ty_1, +} +#[repr(C)] +pub struct group_filter__bindgen_ty_1 { +pub __bindgen_anon_1: __BindgenUnionField, +pub __bindgen_anon_2: __BindgenUnionField, +pub bindgen_union_field: [u64; 34usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { +pub gf_interface_aux: __u32, +pub gf_group_aux: __kernel_sockaddr_storage, +pub gf_fmode_aux: __u32, +pub gf_numsrc_aux: __u32, +pub gf_slist: [__kernel_sockaddr_storage; 1usize], +} +#[repr(C)] +pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { +pub gf_interface: __u32, +pub gf_group: __kernel_sockaddr_storage, +pub gf_fmode: __u32, +pub gf_numsrc: __u32, +pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct in_pktinfo { +pub ipi_ifindex: crate::ctypes::c_int, +pub ipi_spec_dst: in_addr, +pub ipi_addr: in_addr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_in { +pub sin_family: __kernel_sa_family_t, +pub sin_port: __be16, +pub sin_addr: in_addr, +pub __pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct iphdr { +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, +pub tos: __u8, +pub tot_len: __be16, +pub id: __be16, +pub frag_off: __be16, +pub ttl: __u8, +pub protocol: __u8, +pub check: __sum16, +pub __bindgen_anon_1: iphdr__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { +pub saddr: __be32, +pub daddr: __be32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { +pub saddr: __be32, +pub daddr: __be32, +} +#[repr(C)] +#[derive(Debug)] +pub struct ip_auth_hdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +pub reserved: __be16, +pub spi: __be32, +pub seq_no: __be32, +pub auth_data: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug)] +pub struct ip_esp_hdr { +pub spi: __be32, +pub seq_no: __be32, +pub enc_data: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_comp_hdr { +pub nexthdr: __u8, +pub flags: __u8, +pub cpi: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_beet_phdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +pub padlen: __u8, +pub reserved: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_iptfs_hdr { +pub subtype: __u8, +pub flags: __u8, +pub block_offset: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_iptfs_cc_hdr { +pub subtype: __u8, +pub flags: __u8, +pub block_offset: __be16, +pub loss_rate: __be32, +pub rtt_adelay_xdelay: __be64, +pub tval: __be32, +pub techo: __be32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_addr { +pub in6_u: in6_addr__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sockaddr_in6 { +pub sin6_family: crate::ctypes::c_ushort, +pub sin6_port: __be16, +pub sin6_flowinfo: __be32, +pub sin6_addr: in6_addr, +pub sin6_scope_id: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6_mreq { +pub ipv6mr_multiaddr: in6_addr, +pub ipv6mr_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_flowlabel_req { +pub flr_dst: in6_addr, +pub flr_label: __be32, +pub flr_action: __u8, +pub flr_share: __u8, +pub flr_flags: __u16, +pub flr_expires: __u16, +pub flr_linger: __u16, +pub __flr_pad: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_pktinfo { +pub ipi6_addr: in6_addr, +pub ipi6_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ip6_mtuinfo { +pub ip6m_addr: sockaddr_in6, +pub ip6m_mtu: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_ifreq { +pub ifr6_addr: in6_addr, +pub ifr6_prefixlen: __u32, +pub ifr6_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ipv6_rt_hdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +pub type_: __u8, +pub segments_left: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct ipv6_opt_hdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +} +#[repr(C)] +pub struct rt0_hdr { +pub rt_hdr: ipv6_rt_hdr, +pub reserved: __u32, +pub addr: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct rt2_hdr { +pub rt_hdr: ipv6_rt_hdr, +pub reserved: __u32, +pub addr: in6_addr, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct ipv6_destopt_hao { +pub type_: __u8, +pub length: __u8, +pub addr: in6_addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6hdr { +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, +pub flow_lbl: [__u8; 3usize], +pub payload_len: __be16, +pub nexthdr: __u8, +pub hop_limit: __u8, +pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { +pub saddr: in6_addr, +pub daddr: in6_addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { +pub saddr: in6_addr, +pub daddr: in6_addr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcphdr { +pub source: __be16, +pub dest: __be16, +pub seq: __be32, +pub ack_seq: __be32, +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +pub window: __be16, +pub check: __sum16, +pub urg_ptr: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_repair_opt { +pub opt_code: __u32, +pub opt_val: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_repair_window { +pub snd_wl1: __u32, +pub snd_wnd: __u32, +pub max_window: __u32, +pub rcv_wnd: __u32, +pub rcv_wup: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_info { +pub tcpi_state: __u8, +pub tcpi_ca_state: __u8, +pub tcpi_retransmits: __u8, +pub tcpi_probes: __u8, +pub tcpi_backoff: __u8, +pub tcpi_options: __u8, +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +pub tcpi_rto: __u32, +pub tcpi_ato: __u32, +pub tcpi_snd_mss: __u32, +pub tcpi_rcv_mss: __u32, +pub tcpi_unacked: __u32, +pub tcpi_sacked: __u32, +pub tcpi_lost: __u32, +pub tcpi_retrans: __u32, +pub tcpi_fackets: __u32, +pub tcpi_last_data_sent: __u32, +pub tcpi_last_ack_sent: __u32, +pub tcpi_last_data_recv: __u32, +pub tcpi_last_ack_recv: __u32, +pub tcpi_pmtu: __u32, +pub tcpi_rcv_ssthresh: __u32, +pub tcpi_rtt: __u32, +pub tcpi_rttvar: __u32, +pub tcpi_snd_ssthresh: __u32, +pub tcpi_snd_cwnd: __u32, +pub tcpi_advmss: __u32, +pub tcpi_reordering: __u32, +pub tcpi_rcv_rtt: __u32, +pub tcpi_rcv_space: __u32, +pub tcpi_total_retrans: __u32, +pub tcpi_pacing_rate: __u64, +pub tcpi_max_pacing_rate: __u64, +pub tcpi_bytes_acked: __u64, +pub tcpi_bytes_received: __u64, +pub tcpi_segs_out: __u32, +pub tcpi_segs_in: __u32, +pub tcpi_notsent_bytes: __u32, +pub tcpi_min_rtt: __u32, +pub tcpi_data_segs_in: __u32, +pub tcpi_data_segs_out: __u32, +pub tcpi_delivery_rate: __u64, +pub tcpi_busy_time: __u64, +pub tcpi_rwnd_limited: __u64, +pub tcpi_sndbuf_limited: __u64, +pub tcpi_delivered: __u32, +pub tcpi_delivered_ce: __u32, +pub tcpi_bytes_sent: __u64, +pub tcpi_bytes_retrans: __u64, +pub tcpi_dsack_dups: __u32, +pub tcpi_reord_seen: __u32, +pub tcpi_rcv_ooopack: __u32, +pub tcpi_snd_wnd: __u32, +pub tcpi_rcv_wnd: __u32, +pub tcpi_rehash: __u32, +pub tcpi_total_rto: __u16, +pub tcpi_total_rto_recoveries: __u16, +pub tcpi_total_rto_time: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tcp_md5sig { +pub tcpm_addr: __kernel_sockaddr_storage, +pub tcpm_flags: __u8, +pub tcpm_prefixlen: __u8, +pub tcpm_keylen: __u16, +pub tcpm_ifindex: crate::ctypes::c_int, +pub tcpm_key: [__u8; 80usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_diag_md5sig { +pub tcpm_family: __u8, +pub tcpm_prefixlen: __u8, +pub tcpm_keylen: __u16, +pub tcpm_addr: [__be32; 4usize], +pub tcpm_key: [__u8; 80usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tcp_ao_add { +pub addr: __kernel_sockaddr_storage, +pub alg_name: [crate::ctypes::c_char; 64usize], +pub ifindex: __s32, +pub _bitfield_align_1: [u32; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +pub reserved2: __u16, +pub prefix: __u8, +pub sndid: __u8, +pub rcvid: __u8, +pub maclen: __u8, +pub keyflags: __u8, +pub keylen: __u8, +pub key: [__u8; 80usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tcp_ao_del { +pub addr: __kernel_sockaddr_storage, +pub ifindex: __s32, +pub _bitfield_align_1: [u32; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +pub reserved2: __u16, +pub prefix: __u8, +pub sndid: __u8, +pub rcvid: __u8, +pub current_key: __u8, +pub rnext: __u8, +pub keyflags: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_ao_info_opt { +pub _bitfield_align_1: [u32; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +pub reserved2: __u16, +pub current_key: __u8, +pub rnext: __u8, +pub pkt_good: __u64, +pub pkt_bad: __u64, +pub pkt_key_not_found: __u64, +pub pkt_ao_required: __u64, +pub pkt_dropped_icmp: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tcp_ao_getsockopt { +pub addr: __kernel_sockaddr_storage, +pub alg_name: [crate::ctypes::c_char; 64usize], +pub key: [__u8; 80usize], +pub nkeys: __u32, +pub _bitfield_align_1: [u16; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +pub sndid: __u8, +pub rcvid: __u8, +pub prefix: __u8, +pub maclen: __u8, +pub keyflags: __u8, +pub keylen: __u8, +pub ifindex: __s32, +pub pkt_good: __u64, +pub pkt_bad: __u64, +} +#[repr(C)] +#[repr(align(8))] +#[derive(Debug, Copy, Clone)] +pub struct tcp_ao_repair { +pub snt_isn: __be32, +pub rcv_isn: __be32, +pub snd_sne: __u32, +pub rcv_sne: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_zerocopy_receive { +pub address: __u64, +pub length: __u32, +pub recv_skip_hint: __u32, +pub inq: __u32, +pub err: __s32, +pub copybuf_address: __u64, +pub copybuf_len: __s32, +pub flags: __u32, +pub msg_control: __u64, +pub msg_controllen: __u64, +pub msg_flags: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_un { +pub sun_family: __kernel_sa_family_t, +pub sun_path: [crate::ctypes::c_char; 108usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sockaddr { +pub __storage: __kernel_sockaddr_storage, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sync_serial_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct te1_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +pub slot_map: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct raw_hdlc_proto { +pub encoding: crate::ctypes::c_ushort, +pub parity: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto { +pub t391: crate::ctypes::c_uint, +pub t392: crate::ctypes::c_uint, +pub n391: crate::ctypes::c_uint, +pub n392: crate::ctypes::c_uint, +pub n393: crate::ctypes::c_uint, +pub lmi: crate::ctypes::c_ushort, +pub dce: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc { +pub dlci: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc_info { +pub dlci: crate::ctypes::c_uint, +pub master: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cisco_proto { +pub interval: crate::ctypes::c_uint, +pub timeout: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct x25_hdlc_proto { +pub dce: crate::ctypes::c_ushort, +pub modulo: crate::ctypes::c_uint, +pub window: crate::ctypes::c_uint, +pub t1: crate::ctypes::c_uint, +pub t2: crate::ctypes::c_uint, +pub n2: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifmap { +pub mem_start: crate::ctypes::c_ulong, +pub mem_end: crate::ctypes::c_ulong, +pub base_addr: crate::ctypes::c_ushort, +pub irq: crate::ctypes::c_uchar, +pub dma: crate::ctypes::c_uchar, +pub port: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct if_settings { +pub type_: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +pub ifs_ifsu: if_settings__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifreq { +pub ifr_ifrn: ifreq__bindgen_ty_1, +pub ifr_ifru: ifreq__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifconf { +pub ifc_len: crate::ctypes::c_int, +pub ifc_ifcu: ifconf__bindgen_ty_1, +} +#[repr(C)] +pub struct xt_entry_match { +pub u: xt_entry_match__bindgen_ty_1, +pub data: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 { +pub match_size: __u16, +pub name: [crate::ctypes::c_char; 29usize], +pub revision: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 { +pub match_size: __u16, +pub match_: *mut xt_match, +} +#[repr(C)] +pub struct xt_entry_target { +pub u: xt_entry_target__bindgen_ty_1, +pub data: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 { +pub target_size: __u16, +pub name: [crate::ctypes::c_char; 29usize], +pub revision: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 { +pub target_size: __u16, +pub target: *mut xt_target, +} +#[repr(C)] +pub struct xt_standard_target { +pub target: xt_entry_target, +pub verdict: crate::ctypes::c_int, +} +#[repr(C)] +pub struct xt_error_target { +pub target: xt_entry_target, +pub errorname: [crate::ctypes::c_char; 30usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_get_revision { +pub name: [crate::ctypes::c_char; 29usize], +pub revision: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _xt_align { +pub u8_: __u8, +pub u16_: __u16, +pub u32_: __u32, +pub u64_: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_counters { +pub pcnt: __u64, +pub bcnt: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct xt_counters_info { +pub name: [crate::ctypes::c_char; 32usize], +pub num_counters: crate::ctypes::c_uint, +pub counters: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_tcp { +pub spts: [__u16; 2usize], +pub dpts: [__u16; 2usize], +pub option: __u8, +pub flg_mask: __u8, +pub flg_cmp: __u8, +pub invflags: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_udp { +pub spts: [__u16; 2usize], +pub dpts: [__u16; 2usize], +pub invflags: __u8, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ip6t_ip6 { +pub src: in6_addr, +pub dst: in6_addr, +pub smsk: in6_addr, +pub dmsk: in6_addr, +pub iniface: [crate::ctypes::c_char; 16usize], +pub outiface: [crate::ctypes::c_char; 16usize], +pub iniface_mask: [crate::ctypes::c_uchar; 16usize], +pub outiface_mask: [crate::ctypes::c_uchar; 16usize], +pub proto: __u16, +pub tos: __u8, +pub flags: __u8, +pub invflags: __u8, +} +#[repr(C)] +pub struct ip6t_entry { +pub ipv6: ip6t_ip6, +pub nfcache: crate::ctypes::c_uint, +pub target_offset: __u16, +pub next_offset: __u16, +pub comefrom: crate::ctypes::c_uint, +pub counters: xt_counters, +pub elems: __IncompleteArrayField, +} +#[repr(C)] +pub struct ip6t_standard { +pub entry: ip6t_entry, +pub target: xt_standard_target, +} +#[repr(C)] +pub struct ip6t_error { +pub entry: ip6t_entry, +pub target: xt_error_target, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip6t_icmp { +pub type_: __u8, +pub code: [__u8; 2usize], +pub invflags: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip6t_getinfo { +pub name: [crate::ctypes::c_char; 32usize], +pub valid_hooks: crate::ctypes::c_uint, +pub hook_entry: [crate::ctypes::c_uint; 5usize], +pub underflow: [crate::ctypes::c_uint; 5usize], +pub num_entries: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +} +#[repr(C)] +pub struct ip6t_replace { +pub name: [crate::ctypes::c_char; 32usize], +pub valid_hooks: crate::ctypes::c_uint, +pub num_entries: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +pub hook_entry: [crate::ctypes::c_uint; 5usize], +pub underflow: [crate::ctypes::c_uint; 5usize], +pub num_counters: crate::ctypes::c_uint, +pub counters: *mut xt_counters, +pub entries: __IncompleteArrayField, +} +#[repr(C)] +pub struct ip6t_get_entries { +pub name: [crate::ctypes::c_char; 32usize], +pub size: crate::ctypes::c_uint, +pub entrytable: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct so_timestamping { +pub flags: crate::ctypes::c_int, +pub bind_phc: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hwtstamp_config { +pub flags: crate::ctypes::c_int, +pub tx_type: crate::ctypes::c_int, +pub rx_filter: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct scm_ts_pktinfo { +pub if_index: __u32, +pub pkt_length: __u32, +pub reserved: [__u32; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sock_txtime { +pub clockid: __kernel_clockid_t, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct linger { +pub l_onoff: crate::ctypes::c_int, +pub l_linger: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct msghdr { +pub msg_name: *mut crate::ctypes::c_void, +pub msg_namelen: crate::ctypes::c_int, +pub msg_iov: *mut iovec, +pub msg_iovlen: usize, +pub msg_control: *mut crate::ctypes::c_void, +pub msg_controllen: usize, +pub msg_flags: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cmsghdr { +pub cmsg_len: usize, +pub cmsg_level: crate::ctypes::c_int, +pub cmsg_type: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ucred { +pub pid: __u32, +pub uid: __u32, +pub gid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mmsghdr { +pub msg_hdr: msghdr, +pub msg_len: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_match { +pub _address: u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_target { +pub _address: u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iovec { +pub _address: u8, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _K_SS_MAXSIZE: u32 = 128; +pub const SOCK_SNDBUF_LOCK: u32 = 1; +pub const SOCK_RCVBUF_LOCK: u32 = 2; +pub const SOCK_BUF_LOCK_MASK: u32 = 3; +pub const SOCK_TXREHASH_DEFAULT: u32 = 255; +pub const SOCK_TXREHASH_DISABLED: u32 = 0; +pub const SOCK_TXREHASH_ENABLED: u32 = 1; +pub const IP_TOS: u32 = 1; +pub const IP_TTL: u32 = 2; +pub const IP_HDRINCL: u32 = 3; +pub const IP_OPTIONS: u32 = 4; +pub const IP_ROUTER_ALERT: u32 = 5; +pub const IP_RECVOPTS: u32 = 6; +pub const IP_RETOPTS: u32 = 7; +pub const IP_PKTINFO: u32 = 8; +pub const IP_PKTOPTIONS: u32 = 9; +pub const IP_MTU_DISCOVER: u32 = 10; +pub const IP_RECVERR: u32 = 11; +pub const IP_RECVTTL: u32 = 12; +pub const IP_RECVTOS: u32 = 13; +pub const IP_MTU: u32 = 14; +pub const IP_FREEBIND: u32 = 15; +pub const IP_IPSEC_POLICY: u32 = 16; +pub const IP_XFRM_POLICY: u32 = 17; +pub const IP_PASSSEC: u32 = 18; +pub const IP_TRANSPARENT: u32 = 19; +pub const IP_RECVRETOPTS: u32 = 7; +pub const IP_ORIGDSTADDR: u32 = 20; +pub const IP_RECVORIGDSTADDR: u32 = 20; +pub const IP_MINTTL: u32 = 21; +pub const IP_NODEFRAG: u32 = 22; +pub const IP_CHECKSUM: u32 = 23; +pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; +pub const IP_RECVFRAGSIZE: u32 = 25; +pub const IP_RECVERR_RFC4884: u32 = 26; +pub const IP_PMTUDISC_DONT: u32 = 0; +pub const IP_PMTUDISC_WANT: u32 = 1; +pub const IP_PMTUDISC_DO: u32 = 2; +pub const IP_PMTUDISC_PROBE: u32 = 3; +pub const IP_PMTUDISC_INTERFACE: u32 = 4; +pub const IP_PMTUDISC_OMIT: u32 = 5; +pub const IP_MULTICAST_IF: u32 = 32; +pub const IP_MULTICAST_TTL: u32 = 33; +pub const IP_MULTICAST_LOOP: u32 = 34; +pub const IP_ADD_MEMBERSHIP: u32 = 35; +pub const IP_DROP_MEMBERSHIP: u32 = 36; +pub const IP_UNBLOCK_SOURCE: u32 = 37; +pub const IP_BLOCK_SOURCE: u32 = 38; +pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; +pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; +pub const IP_MSFILTER: u32 = 41; +pub const MCAST_JOIN_GROUP: u32 = 42; +pub const MCAST_BLOCK_SOURCE: u32 = 43; +pub const MCAST_UNBLOCK_SOURCE: u32 = 44; +pub const MCAST_LEAVE_GROUP: u32 = 45; +pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; +pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; +pub const MCAST_MSFILTER: u32 = 48; +pub const IP_MULTICAST_ALL: u32 = 49; +pub const IP_UNICAST_IF: u32 = 50; +pub const IP_LOCAL_PORT_RANGE: u32 = 51; +pub const IP_PROTOCOL: u32 = 52; +pub const MCAST_EXCLUDE: u32 = 0; +pub const MCAST_INCLUDE: u32 = 1; +pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; +pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; +pub const __SOCK_SIZE__: u32 = 16; +pub const IN_CLASSA_NET: u32 = 4278190080; +pub const IN_CLASSA_NSHIFT: u32 = 24; +pub const IN_CLASSA_HOST: u32 = 16777215; +pub const IN_CLASSA_MAX: u32 = 128; +pub const IN_CLASSB_NET: u32 = 4294901760; +pub const IN_CLASSB_NSHIFT: u32 = 16; +pub const IN_CLASSB_HOST: u32 = 65535; +pub const IN_CLASSB_MAX: u32 = 65536; +pub const IN_CLASSC_NET: u32 = 4294967040; +pub const IN_CLASSC_NSHIFT: u32 = 8; +pub const IN_CLASSC_HOST: u32 = 255; +pub const IN_MULTICAST_NET: u32 = 3758096384; +pub const IN_CLASSE_NET: u32 = 4294967295; +pub const IN_CLASSE_NSHIFT: u32 = 0; +pub const IN_LOOPBACKNET: u32 = 127; +pub const INADDR_LOOPBACK: u32 = 2130706433; +pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; +pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; +pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; +pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; +pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; +pub const __LITTLE_ENDIAN: u32 = 1234; +pub const IPTOS_TOS_MASK: u32 = 30; +pub const IPTOS_LOWDELAY: u32 = 16; +pub const IPTOS_THROUGHPUT: u32 = 8; +pub const IPTOS_RELIABILITY: u32 = 4; +pub const IPTOS_MINCOST: u32 = 2; +pub const IPTOS_PREC_MASK: u32 = 224; +pub const IPTOS_PREC_NETCONTROL: u32 = 224; +pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; +pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; +pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; +pub const IPTOS_PREC_FLASH: u32 = 96; +pub const IPTOS_PREC_IMMEDIATE: u32 = 64; +pub const IPTOS_PREC_PRIORITY: u32 = 32; +pub const IPTOS_PREC_ROUTINE: u32 = 0; +pub const IPOPT_COPY: u32 = 128; +pub const IPOPT_CLASS_MASK: u32 = 96; +pub const IPOPT_NUMBER_MASK: u32 = 31; +pub const IPOPT_CONTROL: u32 = 0; +pub const IPOPT_RESERVED1: u32 = 32; +pub const IPOPT_MEASUREMENT: u32 = 64; +pub const IPOPT_RESERVED2: u32 = 96; +pub const IPOPT_END: u32 = 0; +pub const IPOPT_NOOP: u32 = 1; +pub const IPOPT_SEC: u32 = 130; +pub const IPOPT_LSRR: u32 = 131; +pub const IPOPT_TIMESTAMP: u32 = 68; +pub const IPOPT_CIPSO: u32 = 134; +pub const IPOPT_RR: u32 = 7; +pub const IPOPT_SID: u32 = 136; +pub const IPOPT_SSRR: u32 = 137; +pub const IPOPT_RA: u32 = 148; +pub const IPVERSION: u32 = 4; +pub const MAXTTL: u32 = 255; +pub const IPDEFTTL: u32 = 64; +pub const IPOPT_OPTVAL: u32 = 0; +pub const IPOPT_OLEN: u32 = 1; +pub const IPOPT_OFFSET: u32 = 2; +pub const IPOPT_MINOFF: u32 = 4; +pub const MAX_IPOPTLEN: u32 = 40; +pub const IPOPT_NOP: u32 = 1; +pub const IPOPT_EOL: u32 = 0; +pub const IPOPT_TS: u32 = 68; +pub const IPOPT_TS_TSONLY: u32 = 0; +pub const IPOPT_TS_TSANDADDR: u32 = 1; +pub const IPOPT_TS_PRESPEC: u32 = 3; +pub const IPV4_BEET_PHMAXLEN: u32 = 8; +pub const IPV6_FL_A_GET: u32 = 0; +pub const IPV6_FL_A_PUT: u32 = 1; +pub const IPV6_FL_A_RENEW: u32 = 2; +pub const IPV6_FL_F_CREATE: u32 = 1; +pub const IPV6_FL_F_EXCL: u32 = 2; +pub const IPV6_FL_F_REFLECT: u32 = 4; +pub const IPV6_FL_F_REMOTE: u32 = 8; +pub const IPV6_FL_S_NONE: u32 = 0; +pub const IPV6_FL_S_EXCL: u32 = 1; +pub const IPV6_FL_S_PROCESS: u32 = 2; +pub const IPV6_FL_S_USER: u32 = 3; +pub const IPV6_FL_S_ANY: u32 = 255; +pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; +pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; +pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; +pub const IPV6_PRIORITY_FILLER: u32 = 256; +pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; +pub const IPV6_PRIORITY_RESERVED1: u32 = 768; +pub const IPV6_PRIORITY_BULK: u32 = 1024; +pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; +pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; +pub const IPV6_PRIORITY_CONTROL: u32 = 1792; +pub const IPV6_PRIORITY_8: u32 = 2048; +pub const IPV6_PRIORITY_9: u32 = 2304; +pub const IPV6_PRIORITY_10: u32 = 2560; +pub const IPV6_PRIORITY_11: u32 = 2816; +pub const IPV6_PRIORITY_12: u32 = 3072; +pub const IPV6_PRIORITY_13: u32 = 3328; +pub const IPV6_PRIORITY_14: u32 = 3584; +pub const IPV6_PRIORITY_15: u32 = 3840; +pub const IPPROTO_HOPOPTS: u32 = 0; +pub const IPPROTO_ROUTING: u32 = 43; +pub const IPPROTO_FRAGMENT: u32 = 44; +pub const IPPROTO_ICMPV6: u32 = 58; +pub const IPPROTO_NONE: u32 = 59; +pub const IPPROTO_DSTOPTS: u32 = 60; +pub const IPPROTO_MH: u32 = 135; +pub const IPV6_TLV_PAD1: u32 = 0; +pub const IPV6_TLV_PADN: u32 = 1; +pub const IPV6_TLV_ROUTERALERT: u32 = 5; +pub const IPV6_TLV_CALIPSO: u32 = 7; +pub const IPV6_TLV_IOAM: u32 = 49; +pub const IPV6_TLV_JUMBO: u32 = 194; +pub const IPV6_TLV_HAO: u32 = 201; +pub const IPV6_ADDRFORM: u32 = 1; +pub const IPV6_2292PKTINFO: u32 = 2; +pub const IPV6_2292HOPOPTS: u32 = 3; +pub const IPV6_2292DSTOPTS: u32 = 4; +pub const IPV6_2292RTHDR: u32 = 5; +pub const IPV6_2292PKTOPTIONS: u32 = 6; +pub const IPV6_CHECKSUM: u32 = 7; +pub const IPV6_2292HOPLIMIT: u32 = 8; +pub const IPV6_NEXTHOP: u32 = 9; +pub const IPV6_AUTHHDR: u32 = 10; +pub const IPV6_FLOWINFO: u32 = 11; +pub const IPV6_UNICAST_HOPS: u32 = 16; +pub const IPV6_MULTICAST_IF: u32 = 17; +pub const IPV6_MULTICAST_HOPS: u32 = 18; +pub const IPV6_MULTICAST_LOOP: u32 = 19; +pub const IPV6_ADD_MEMBERSHIP: u32 = 20; +pub const IPV6_DROP_MEMBERSHIP: u32 = 21; +pub const IPV6_ROUTER_ALERT: u32 = 22; +pub const IPV6_MTU_DISCOVER: u32 = 23; +pub const IPV6_MTU: u32 = 24; +pub const IPV6_RECVERR: u32 = 25; +pub const IPV6_V6ONLY: u32 = 26; +pub const IPV6_JOIN_ANYCAST: u32 = 27; +pub const IPV6_LEAVE_ANYCAST: u32 = 28; +pub const IPV6_MULTICAST_ALL: u32 = 29; +pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; +pub const IPV6_RECVERR_RFC4884: u32 = 31; +pub const IPV6_PMTUDISC_DONT: u32 = 0; +pub const IPV6_PMTUDISC_WANT: u32 = 1; +pub const IPV6_PMTUDISC_DO: u32 = 2; +pub const IPV6_PMTUDISC_PROBE: u32 = 3; +pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; +pub const IPV6_PMTUDISC_OMIT: u32 = 5; +pub const IPV6_FLOWLABEL_MGR: u32 = 32; +pub const IPV6_FLOWINFO_SEND: u32 = 33; +pub const IPV6_IPSEC_POLICY: u32 = 34; +pub const IPV6_XFRM_POLICY: u32 = 35; +pub const IPV6_HDRINCL: u32 = 36; +pub const IPV6_RECVPKTINFO: u32 = 49; +pub const IPV6_PKTINFO: u32 = 50; +pub const IPV6_RECVHOPLIMIT: u32 = 51; +pub const IPV6_HOPLIMIT: u32 = 52; +pub const IPV6_RECVHOPOPTS: u32 = 53; +pub const IPV6_HOPOPTS: u32 = 54; +pub const IPV6_RTHDRDSTOPTS: u32 = 55; +pub const IPV6_RECVRTHDR: u32 = 56; +pub const IPV6_RTHDR: u32 = 57; +pub const IPV6_RECVDSTOPTS: u32 = 58; +pub const IPV6_DSTOPTS: u32 = 59; +pub const IPV6_RECVPATHMTU: u32 = 60; +pub const IPV6_PATHMTU: u32 = 61; +pub const IPV6_DONTFRAG: u32 = 62; +pub const IPV6_RECVTCLASS: u32 = 66; +pub const IPV6_TCLASS: u32 = 67; +pub const IPV6_AUTOFLOWLABEL: u32 = 70; +pub const IPV6_ADDR_PREFERENCES: u32 = 72; +pub const IPV6_PREFER_SRC_TMP: u32 = 1; +pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; +pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; +pub const IPV6_PREFER_SRC_COA: u32 = 4; +pub const IPV6_PREFER_SRC_HOME: u32 = 1024; +pub const IPV6_PREFER_SRC_CGA: u32 = 8; +pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; +pub const IPV6_MINHOPCOUNT: u32 = 73; +pub const IPV6_ORIGDSTADDR: u32 = 74; +pub const IPV6_RECVORIGDSTADDR: u32 = 74; +pub const IPV6_TRANSPARENT: u32 = 75; +pub const IPV6_UNICAST_IF: u32 = 76; +pub const IPV6_RECVFRAGSIZE: u32 = 77; +pub const IPV6_FREEBIND: u32 = 78; +pub const IPV6_MIN_MTU: u32 = 1280; +pub const IPV6_SRCRT_STRICT: u32 = 1; +pub const IPV6_SRCRT_TYPE_0: u32 = 0; +pub const IPV6_SRCRT_TYPE_2: u32 = 2; +pub const IPV6_SRCRT_TYPE_3: u32 = 3; +pub const IPV6_SRCRT_TYPE_4: u32 = 4; +pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; +pub const SIOCGSTAMP_OLD: u32 = 35078; +pub const SIOCGSTAMPNS_OLD: u32 = 35079; +pub const SOL_SOCKET: u32 = 1; +pub const SO_DEBUG: u32 = 1; +pub const SO_REUSEADDR: u32 = 2; +pub const SO_TYPE: u32 = 3; +pub const SO_ERROR: u32 = 4; +pub const SO_DONTROUTE: u32 = 5; +pub const SO_BROADCAST: u32 = 6; +pub const SO_SNDBUF: u32 = 7; +pub const SO_RCVBUF: u32 = 8; +pub const SO_SNDBUFFORCE: u32 = 32; +pub const SO_RCVBUFFORCE: u32 = 33; +pub const SO_KEEPALIVE: u32 = 9; +pub const SO_OOBINLINE: u32 = 10; +pub const SO_NO_CHECK: u32 = 11; +pub const SO_PRIORITY: u32 = 12; +pub const SO_LINGER: u32 = 13; +pub const SO_BSDCOMPAT: u32 = 14; +pub const SO_REUSEPORT: u32 = 15; +pub const SO_PASSCRED: u32 = 16; +pub const SO_PEERCRED: u32 = 17; +pub const SO_RCVLOWAT: u32 = 18; +pub const SO_SNDLOWAT: u32 = 19; +pub const SO_RCVTIMEO_OLD: u32 = 20; +pub const SO_SNDTIMEO_OLD: u32 = 21; +pub const SO_SECURITY_AUTHENTICATION: u32 = 22; +pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; +pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; +pub const SO_BINDTODEVICE: u32 = 25; +pub const SO_ATTACH_FILTER: u32 = 26; +pub const SO_DETACH_FILTER: u32 = 27; +pub const SO_GET_FILTER: u32 = 26; +pub const SO_PEERNAME: u32 = 28; +pub const SO_ACCEPTCONN: u32 = 30; +pub const SO_PEERSEC: u32 = 31; +pub const SO_PASSSEC: u32 = 34; +pub const SO_MARK: u32 = 36; +pub const SO_PROTOCOL: u32 = 38; +pub const SO_DOMAIN: u32 = 39; +pub const SO_RXQ_OVFL: u32 = 40; +pub const SO_WIFI_STATUS: u32 = 41; +pub const SCM_WIFI_STATUS: u32 = 41; +pub const SO_PEEK_OFF: u32 = 42; +pub const SO_NOFCS: u32 = 43; +pub const SO_LOCK_FILTER: u32 = 44; +pub const SO_SELECT_ERR_QUEUE: u32 = 45; +pub const SO_BUSY_POLL: u32 = 46; +pub const SO_MAX_PACING_RATE: u32 = 47; +pub const SO_BPF_EXTENSIONS: u32 = 48; +pub const SO_INCOMING_CPU: u32 = 49; +pub const SO_ATTACH_BPF: u32 = 50; +pub const SO_DETACH_BPF: u32 = 27; +pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; +pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; +pub const SO_CNX_ADVICE: u32 = 53; +pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; +pub const SO_MEMINFO: u32 = 55; +pub const SO_INCOMING_NAPI_ID: u32 = 56; +pub const SO_COOKIE: u32 = 57; +pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; +pub const SO_PEERGROUPS: u32 = 59; +pub const SO_ZEROCOPY: u32 = 60; +pub const SO_TXTIME: u32 = 61; +pub const SCM_TXTIME: u32 = 61; +pub const SO_BINDTOIFINDEX: u32 = 62; +pub const SO_TIMESTAMP_OLD: u32 = 29; +pub const SO_TIMESTAMPNS_OLD: u32 = 35; +pub const SO_TIMESTAMPING_OLD: u32 = 37; +pub const SO_TIMESTAMP_NEW: u32 = 63; +pub const SO_TIMESTAMPNS_NEW: u32 = 64; +pub const SO_TIMESTAMPING_NEW: u32 = 65; +pub const SO_RCVTIMEO_NEW: u32 = 66; +pub const SO_SNDTIMEO_NEW: u32 = 67; +pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; +pub const SO_PREFER_BUSY_POLL: u32 = 69; +pub const SO_BUSY_POLL_BUDGET: u32 = 70; +pub const SO_NETNS_COOKIE: u32 = 71; +pub const SO_BUF_LOCK: u32 = 72; +pub const SO_RESERVE_MEM: u32 = 73; +pub const SO_TXREHASH: u32 = 74; +pub const SO_RCVMARK: u32 = 75; +pub const SO_PASSPIDFD: u32 = 76; +pub const SO_PEERPIDFD: u32 = 77; +pub const SO_DEVMEM_LINEAR: u32 = 78; +pub const SCM_DEVMEM_LINEAR: u32 = 78; +pub const SO_DEVMEM_DMABUF: u32 = 79; +pub const SCM_DEVMEM_DMABUF: u32 = 79; +pub const SO_DEVMEM_DONTNEED: u32 = 80; +pub const SCM_TS_OPT_ID: u32 = 81; +pub const SO_RCVPRIORITY: u32 = 82; +pub const SO_PASSRIGHTS: u32 = 83; +pub const SO_TIMESTAMP: u32 = 29; +pub const SO_TIMESTAMPNS: u32 = 35; +pub const SO_TIMESTAMPING: u32 = 37; +pub const SO_RCVTIMEO: u32 = 20; +pub const SO_SNDTIMEO: u32 = 21; +pub const SCM_TIMESTAMP: u32 = 29; +pub const SCM_TIMESTAMPNS: u32 = 35; +pub const SCM_TIMESTAMPING: u32 = 37; +pub const SYS_SOCKET: u32 = 1; +pub const SYS_BIND: u32 = 2; +pub const SYS_CONNECT: u32 = 3; +pub const SYS_LISTEN: u32 = 4; +pub const SYS_ACCEPT: u32 = 5; +pub const SYS_GETSOCKNAME: u32 = 6; +pub const SYS_GETPEERNAME: u32 = 7; +pub const SYS_SOCKETPAIR: u32 = 8; +pub const SYS_SEND: u32 = 9; +pub const SYS_RECV: u32 = 10; +pub const SYS_SENDTO: u32 = 11; +pub const SYS_RECVFROM: u32 = 12; +pub const SYS_SHUTDOWN: u32 = 13; +pub const SYS_SETSOCKOPT: u32 = 14; +pub const SYS_GETSOCKOPT: u32 = 15; +pub const SYS_SENDMSG: u32 = 16; +pub const SYS_RECVMSG: u32 = 17; +pub const SYS_ACCEPT4: u32 = 18; +pub const SYS_RECVMMSG: u32 = 19; +pub const SYS_SENDMMSG: u32 = 20; +pub const __SO_ACCEPTCON: u32 = 65536; +pub const TCP_MSS_DEFAULT: u32 = 536; +pub const TCP_MSS_DESIRED: u32 = 1220; +pub const TCP_NODELAY: u32 = 1; +pub const TCP_MAXSEG: u32 = 2; +pub const TCP_CORK: u32 = 3; +pub const TCP_KEEPIDLE: u32 = 4; +pub const TCP_KEEPINTVL: u32 = 5; +pub const TCP_KEEPCNT: u32 = 6; +pub const TCP_SYNCNT: u32 = 7; +pub const TCP_LINGER2: u32 = 8; +pub const TCP_DEFER_ACCEPT: u32 = 9; +pub const TCP_WINDOW_CLAMP: u32 = 10; +pub const TCP_INFO: u32 = 11; +pub const TCP_QUICKACK: u32 = 12; +pub const TCP_CONGESTION: u32 = 13; +pub const TCP_MD5SIG: u32 = 14; +pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; +pub const TCP_THIN_DUPACK: u32 = 17; +pub const TCP_USER_TIMEOUT: u32 = 18; +pub const TCP_REPAIR: u32 = 19; +pub const TCP_REPAIR_QUEUE: u32 = 20; +pub const TCP_QUEUE_SEQ: u32 = 21; +pub const TCP_REPAIR_OPTIONS: u32 = 22; +pub const TCP_FASTOPEN: u32 = 23; +pub const TCP_TIMESTAMP: u32 = 24; +pub const TCP_NOTSENT_LOWAT: u32 = 25; +pub const TCP_CC_INFO: u32 = 26; +pub const TCP_SAVE_SYN: u32 = 27; +pub const TCP_SAVED_SYN: u32 = 28; +pub const TCP_REPAIR_WINDOW: u32 = 29; +pub const TCP_FASTOPEN_CONNECT: u32 = 30; +pub const TCP_ULP: u32 = 31; +pub const TCP_MD5SIG_EXT: u32 = 32; +pub const TCP_FASTOPEN_KEY: u32 = 33; +pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; +pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; +pub const TCP_INQ: u32 = 36; +pub const TCP_CM_INQ: u32 = 36; +pub const TCP_TX_DELAY: u32 = 37; +pub const TCP_AO_ADD_KEY: u32 = 38; +pub const TCP_AO_DEL_KEY: u32 = 39; +pub const TCP_AO_INFO: u32 = 40; +pub const TCP_AO_GET_KEYS: u32 = 41; +pub const TCP_AO_REPAIR: u32 = 42; +pub const TCP_IS_MPTCP: u32 = 43; +pub const TCP_RTO_MAX_MS: u32 = 44; +pub const TCP_RTO_MIN_US: u32 = 45; +pub const TCP_DELACK_MAX_US: u32 = 46; +pub const TCP_REPAIR_ON: u32 = 1; +pub const TCP_REPAIR_OFF: u32 = 0; +pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; +pub const TCPI_OPT_TIMESTAMPS: u32 = 1; +pub const TCPI_OPT_SACK: u32 = 2; +pub const TCPI_OPT_WSCALE: u32 = 4; +pub const TCPI_OPT_ECN: u32 = 8; +pub const TCPI_OPT_ECN_SEEN: u32 = 16; +pub const TCPI_OPT_SYN_DATA: u32 = 32; +pub const TCPI_OPT_USEC_TS: u32 = 64; +pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; +pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; +pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; +pub const TCP_AO_MAXKEYLEN: u32 = 80; +pub const TCP_AO_KEYF_IFINDEX: u32 = 1; +pub const TCP_AO_KEYF_EXCLUDE_OPT: u32 = 2; +pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; +pub const UNIX_PATH_MAX: u32 = 108; +pub const IFNAMSIZ: u32 = 16; +pub const IFALIASZ: u32 = 256; +pub const ALTIFNAMSIZ: u32 = 128; +pub const GENERIC_HDLC_VERSION: u32 = 4; +pub const CLOCK_DEFAULT: u32 = 0; +pub const CLOCK_EXT: u32 = 1; +pub const CLOCK_INT: u32 = 2; +pub const CLOCK_TXINT: u32 = 3; +pub const CLOCK_TXFROMRX: u32 = 4; +pub const ENCODING_DEFAULT: u32 = 0; +pub const ENCODING_NRZ: u32 = 1; +pub const ENCODING_NRZI: u32 = 2; +pub const ENCODING_FM_MARK: u32 = 3; +pub const ENCODING_FM_SPACE: u32 = 4; +pub const ENCODING_MANCHESTER: u32 = 5; +pub const PARITY_DEFAULT: u32 = 0; +pub const PARITY_NONE: u32 = 1; +pub const PARITY_CRC16_PR0: u32 = 2; +pub const PARITY_CRC16_PR1: u32 = 3; +pub const PARITY_CRC16_PR0_CCITT: u32 = 4; +pub const PARITY_CRC16_PR1_CCITT: u32 = 5; +pub const PARITY_CRC32_PR0_CCITT: u32 = 6; +pub const PARITY_CRC32_PR1_CCITT: u32 = 7; +pub const LMI_DEFAULT: u32 = 0; +pub const LMI_NONE: u32 = 1; +pub const LMI_ANSI: u32 = 2; +pub const LMI_CCITT: u32 = 3; +pub const LMI_CISCO: u32 = 4; +pub const IF_GET_IFACE: u32 = 1; +pub const IF_GET_PROTO: u32 = 2; +pub const IF_IFACE_V35: u32 = 4096; +pub const IF_IFACE_V24: u32 = 4097; +pub const IF_IFACE_X21: u32 = 4098; +pub const IF_IFACE_T1: u32 = 4099; +pub const IF_IFACE_E1: u32 = 4100; +pub const IF_IFACE_SYNC_SERIAL: u32 = 4101; +pub const IF_IFACE_X21D: u32 = 4102; +pub const IF_PROTO_HDLC: u32 = 8192; +pub const IF_PROTO_PPP: u32 = 8193; +pub const IF_PROTO_CISCO: u32 = 8194; +pub const IF_PROTO_FR: u32 = 8195; +pub const IF_PROTO_FR_ADD_PVC: u32 = 8196; +pub const IF_PROTO_FR_DEL_PVC: u32 = 8197; +pub const IF_PROTO_X25: u32 = 8198; +pub const IF_PROTO_HDLC_ETH: u32 = 8199; +pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200; +pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201; +pub const IF_PROTO_FR_PVC: u32 = 8202; +pub const IF_PROTO_FR_ETH_PVC: u32 = 8203; +pub const IF_PROTO_RAW: u32 = 8204; +pub const IFHWADDRLEN: u32 = 6; +pub const NF_DROP: u32 = 0; +pub const NF_ACCEPT: u32 = 1; +pub const NF_STOLEN: u32 = 2; +pub const NF_QUEUE: u32 = 3; +pub const NF_REPEAT: u32 = 4; +pub const NF_STOP: u32 = 5; +pub const NF_MAX_VERDICT: u32 = 5; +pub const NF_VERDICT_MASK: u32 = 255; +pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768; +pub const NF_VERDICT_QMASK: u32 = 4294901760; +pub const NF_VERDICT_QBITS: u32 = 16; +pub const NF_VERDICT_BITS: u32 = 16; +pub const NF_IP6_PRE_ROUTING: u32 = 0; +pub const NF_IP6_LOCAL_IN: u32 = 1; +pub const NF_IP6_FORWARD: u32 = 2; +pub const NF_IP6_LOCAL_OUT: u32 = 3; +pub const NF_IP6_POST_ROUTING: u32 = 4; +pub const NF_IP6_NUMHOOKS: u32 = 5; +pub const XT_FUNCTION_MAXNAMELEN: u32 = 30; +pub const XT_EXTENSION_MAXNAMELEN: u32 = 29; +pub const XT_TABLE_MAXNAMELEN: u32 = 32; +pub const XT_CONTINUE: u32 = 4294967295; +pub const XT_RETURN: i32 = -5; +pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0"; +pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0"; +pub const XT_INV_PROTO: u32 = 64; +pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30; +pub const IP6T_TABLE_MAXNAMELEN: u32 = 32; +pub const IP6T_CONTINUE: u32 = 4294967295; +pub const IP6T_RETURN: i32 = -5; +pub const XT_TCP_INV_SRCPT: u32 = 1; +pub const XT_TCP_INV_DSTPT: u32 = 2; +pub const XT_TCP_INV_FLAGS: u32 = 4; +pub const XT_TCP_INV_OPTION: u32 = 8; +pub const XT_TCP_INV_MASK: u32 = 15; +pub const XT_UDP_INV_SRCPT: u32 = 1; +pub const XT_UDP_INV_DSTPT: u32 = 2; +pub const XT_UDP_INV_MASK: u32 = 3; +pub const IP6T_TCP_INV_SRCPT: u32 = 1; +pub const IP6T_TCP_INV_DSTPT: u32 = 2; +pub const IP6T_TCP_INV_FLAGS: u32 = 4; +pub const IP6T_TCP_INV_OPTION: u32 = 8; +pub const IP6T_TCP_INV_MASK: u32 = 15; +pub const IP6T_UDP_INV_SRCPT: u32 = 1; +pub const IP6T_UDP_INV_DSTPT: u32 = 2; +pub const IP6T_UDP_INV_MASK: u32 = 3; +pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0"; +pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0"; +pub const IP6T_F_PROTO: u32 = 1; +pub const IP6T_F_TOS: u32 = 2; +pub const IP6T_F_GOTO: u32 = 4; +pub const IP6T_F_MASK: u32 = 7; +pub const IP6T_INV_VIA_IN: u32 = 1; +pub const IP6T_INV_VIA_OUT: u32 = 2; +pub const IP6T_INV_TOS: u32 = 4; +pub const IP6T_INV_SRCIP: u32 = 8; +pub const IP6T_INV_DSTIP: u32 = 16; +pub const IP6T_INV_FRAG: u32 = 32; +pub const IP6T_INV_PROTO: u32 = 64; +pub const IP6T_INV_MASK: u32 = 127; +pub const IP6T_BASE_CTL: u32 = 64; +pub const IP6T_SO_SET_REPLACE: u32 = 64; +pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65; +pub const IP6T_SO_SET_MAX: u32 = 65; +pub const IP6T_SO_GET_INFO: u32 = 64; +pub const IP6T_SO_GET_ENTRIES: u32 = 65; +pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68; +pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69; +pub const IP6T_SO_GET_MAX: u32 = 69; +pub const IP6T_SO_ORIGINAL_DST: u32 = 80; +pub const IP6T_ICMP_INV: u32 = 1; +pub const NF_IP_PRE_ROUTING: u32 = 0; +pub const NF_IP_LOCAL_IN: u32 = 1; +pub const NF_IP_FORWARD: u32 = 2; +pub const NF_IP_LOCAL_OUT: u32 = 3; +pub const NF_IP_POST_ROUTING: u32 = 4; +pub const NF_IP_NUMHOOKS: u32 = 5; +pub const SO_ORIGINAL_DST: u32 = 80; +pub const SHUT_RD: u32 = 0; +pub const SHUT_WR: u32 = 1; +pub const SHUT_RDWR: u32 = 2; +pub const SOCK_STREAM: u32 = 1; +pub const SOCK_DGRAM: u32 = 2; +pub const SOCK_RAW: u32 = 3; +pub const SOCK_RDM: u32 = 4; +pub const SOCK_SEQPACKET: u32 = 5; +pub const MSG_DONTWAIT: u32 = 64; +pub const AF_UNSPEC: u32 = 0; +pub const AF_UNIX: u32 = 1; +pub const AF_INET: u32 = 2; +pub const AF_AX25: u32 = 3; +pub const AF_IPX: u32 = 4; +pub const AF_APPLETALK: u32 = 5; +pub const AF_NETROM: u32 = 6; +pub const AF_BRIDGE: u32 = 7; +pub const AF_ATMPVC: u32 = 8; +pub const AF_X25: u32 = 9; +pub const AF_INET6: u32 = 10; +pub const AF_ROSE: u32 = 11; +pub const AF_DECnet: u32 = 12; +pub const AF_NETBEUI: u32 = 13; +pub const AF_SECURITY: u32 = 14; +pub const AF_KEY: u32 = 15; +pub const AF_NETLINK: u32 = 16; +pub const AF_PACKET: u32 = 17; +pub const AF_ASH: u32 = 18; +pub const AF_ECONET: u32 = 19; +pub const AF_ATMSVC: u32 = 20; +pub const AF_RDS: u32 = 21; +pub const AF_SNA: u32 = 22; +pub const AF_IRDA: u32 = 23; +pub const AF_PPPOX: u32 = 24; +pub const AF_WANPIPE: u32 = 25; +pub const AF_LLC: u32 = 26; +pub const AF_CAN: u32 = 29; +pub const AF_TIPC: u32 = 30; +pub const AF_BLUETOOTH: u32 = 31; +pub const AF_IUCV: u32 = 32; +pub const AF_RXRPC: u32 = 33; +pub const AF_ISDN: u32 = 34; +pub const AF_PHONET: u32 = 35; +pub const AF_IEEE802154: u32 = 36; +pub const AF_CAIF: u32 = 37; +pub const AF_ALG: u32 = 38; +pub const AF_NFC: u32 = 39; +pub const AF_VSOCK: u32 = 40; +pub const AF_KCM: u32 = 41; +pub const AF_QIPCRTR: u32 = 42; +pub const AF_SMC: u32 = 43; +pub const AF_XDP: u32 = 44; +pub const AF_MCTP: u32 = 45; +pub const AF_MAX: u32 = 46; +pub const MSG_OOB: u32 = 1; +pub const MSG_PEEK: u32 = 2; +pub const MSG_DONTROUTE: u32 = 4; +pub const MSG_CTRUNC: u32 = 8; +pub const MSG_PROBE: u32 = 16; +pub const MSG_TRUNC: u32 = 32; +pub const MSG_EOR: u32 = 128; +pub const MSG_WAITALL: u32 = 256; +pub const MSG_FIN: u32 = 512; +pub const MSG_SYN: u32 = 1024; +pub const MSG_CONFIRM: u32 = 2048; +pub const MSG_RST: u32 = 4096; +pub const MSG_ERRQUEUE: u32 = 8192; +pub const MSG_NOSIGNAL: u32 = 16384; +pub const MSG_MORE: u32 = 32768; +pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; +pub const SCM_RIGHTS: u32 = 1; +pub const SCM_CREDENTIALS: u32 = 2; +pub const SCM_SECURITY: u32 = 3; +pub const SOL_IP: u32 = 0; +pub const SOL_TCP: u32 = 6; +pub const SOL_UDP: u32 = 17; +pub const SOL_IPV6: u32 = 41; +pub const SOL_ICMPV6: u32 = 58; +pub const SOL_SCTP: u32 = 132; +pub const SOL_UDPLITE: u32 = 136; +pub const SOL_RAW: u32 = 255; +pub const SOL_IPX: u32 = 256; +pub const SOL_AX25: u32 = 257; +pub const SOL_ATALK: u32 = 258; +pub const SOL_NETROM: u32 = 259; +pub const SOL_ROSE: u32 = 260; +pub const SOL_DECNET: u32 = 261; +pub const SOL_X25: u32 = 262; +pub const SOL_PACKET: u32 = 263; +pub const SOL_ATM: u32 = 264; +pub const SOL_AAL: u32 = 265; +pub const SOL_IRDA: u32 = 266; +pub const SOL_NETBEUI: u32 = 267; +pub const SOL_LLC: u32 = 268; +pub const SOL_DCCP: u32 = 269; +pub const SOL_NETLINK: u32 = 270; +pub const SOL_TIPC: u32 = 271; +pub const SOL_RXRPC: u32 = 272; +pub const SOL_PPPOL2TP: u32 = 273; +pub const SOL_BLUETOOTH: u32 = 274; +pub const SOL_PNPIPE: u32 = 275; +pub const SOL_RDS: u32 = 276; +pub const SOL_IUCV: u32 = 277; +pub const SOL_CAIF: u32 = 278; +pub const SOL_ALG: u32 = 279; +pub const SOL_NFC: u32 = 280; +pub const SOL_KCM: u32 = 281; +pub const SOL_TLS: u32 = 282; +pub const SOL_XDP: u32 = 283; +pub const SOL_MPTCP: u32 = 284; +pub const SOL_MCTP: u32 = 285; +pub const SOL_SMC: u32 = 286; +pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; +pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; +pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; +pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; +pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; +pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; +pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; +pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; +pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; +pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; +pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; +pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; +pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; +pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; +pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; +pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; +pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; +pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; +pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; +pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; +pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; +pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; +pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; +pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; +pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; +pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; +pub const IPPROTO_AGGFRAG: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AGGFRAG; +pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; +pub const IPPROTO_SMC: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SMC; +pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; +pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; +pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; +pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; +pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; +pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; +pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; +pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; +pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; +pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; +pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; +pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; +pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; +pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; +pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; +pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; +pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; +pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; +pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; +pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; +pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; +pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; +pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; +pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; +pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; +pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; +pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; +pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; +pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; +pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; +pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; +pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; +pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; +pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; +pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; +pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; +pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; +pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; +pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; +pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; +pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; +pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; +pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; +pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; +pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; +pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; +pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; +pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; +pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; +pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; +pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; +pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; +pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; +pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; +pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; +pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; +pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; +pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; +pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; +pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; +pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; +pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; +pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; +pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; +pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; +pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; +pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; +pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; +pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; +pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; +pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; +pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; +pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; +pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; +pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; +pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; +pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; +pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; +pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; +pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; +pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; +pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; +pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; +pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; +pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; +pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; +pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; +pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; +pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; +pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; +pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; +pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; +pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; +pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; +pub const DEVCONF_ACCEPT_RA_MIN_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_LFT; +pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; +pub const TCP_FLAG_AE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_AE; +pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; +pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; +pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; +pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; +pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; +pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; +pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; +pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; +pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; +pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; +pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; +pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; +pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; +pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; +pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; +pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; +pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; +pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; +pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; +pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; +pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; +pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; +pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; +pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; +pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; +pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; +pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; +pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; +pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; +pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; +pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; +pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; +pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; +pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; +pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; +pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; +pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; +pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; +pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; +pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; +pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; +pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; +pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN; +pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT; +pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN; +pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN; +pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING; +pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT; +pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP; +pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT; +pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT; +pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING; +pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC; +pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET; +pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4; +pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP; +pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV; +pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE; +pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6; +pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET; +pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO; +pub const SOF_TIMESTAMPING_TX_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_HARDWARE; +pub const SOF_TIMESTAMPING_TX_SOFTWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_SOFTWARE; +pub const SOF_TIMESTAMPING_RX_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_RX_HARDWARE; +pub const SOF_TIMESTAMPING_RX_SOFTWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_RX_SOFTWARE; +pub const SOF_TIMESTAMPING_SOFTWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_SOFTWARE; +pub const SOF_TIMESTAMPING_SYS_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_SYS_HARDWARE; +pub const SOF_TIMESTAMPING_RAW_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_RAW_HARDWARE; +pub const SOF_TIMESTAMPING_OPT_ID: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_ID; +pub const SOF_TIMESTAMPING_TX_SCHED: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_SCHED; +pub const SOF_TIMESTAMPING_TX_ACK: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_ACK; +pub const SOF_TIMESTAMPING_OPT_CMSG: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_CMSG; +pub const SOF_TIMESTAMPING_OPT_TSONLY: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_TSONLY; +pub const SOF_TIMESTAMPING_OPT_STATS: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_STATS; +pub const SOF_TIMESTAMPING_OPT_PKTINFO: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_PKTINFO; +pub const SOF_TIMESTAMPING_OPT_TX_SWHW: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_TX_SWHW; +pub const SOF_TIMESTAMPING_BIND_PHC: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_BIND_PHC; +pub const SOF_TIMESTAMPING_OPT_ID_TCP: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_ID_TCP; +pub const SOF_TIMESTAMPING_OPT_RX_FILTER: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_RX_FILTER; +pub const SOF_TIMESTAMPING_TX_COMPLETION: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_COMPLETION; +pub const SOF_TIMESTAMPING_LAST: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_COMPLETION; +pub const SOF_TIMESTAMPING_MASK: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_MASK; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +IPPROTO_IP = 0, +IPPROTO_ICMP = 1, +IPPROTO_IGMP = 2, +IPPROTO_IPIP = 4, +IPPROTO_TCP = 6, +IPPROTO_EGP = 8, +IPPROTO_PUP = 12, +IPPROTO_UDP = 17, +IPPROTO_IDP = 22, +IPPROTO_TP = 29, +IPPROTO_DCCP = 33, +IPPROTO_IPV6 = 41, +IPPROTO_RSVP = 46, +IPPROTO_GRE = 47, +IPPROTO_ESP = 50, +IPPROTO_AH = 51, +IPPROTO_MTP = 92, +IPPROTO_BEETPH = 94, +IPPROTO_ENCAP = 98, +IPPROTO_PIM = 103, +IPPROTO_COMP = 108, +IPPROTO_L2TP = 115, +IPPROTO_SCTP = 132, +IPPROTO_UDPLITE = 136, +IPPROTO_MPLS = 137, +IPPROTO_ETHERNET = 143, +IPPROTO_AGGFRAG = 144, +IPPROTO_RAW = 255, +IPPROTO_SMC = 256, +IPPROTO_MPTCP = 262, +IPPROTO_MAX = 263, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IPV4_DEVCONF_FORWARDING = 1, +IPV4_DEVCONF_MC_FORWARDING = 2, +IPV4_DEVCONF_PROXY_ARP = 3, +IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, +IPV4_DEVCONF_SECURE_REDIRECTS = 5, +IPV4_DEVCONF_SEND_REDIRECTS = 6, +IPV4_DEVCONF_SHARED_MEDIA = 7, +IPV4_DEVCONF_RP_FILTER = 8, +IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, +IPV4_DEVCONF_BOOTP_RELAY = 10, +IPV4_DEVCONF_LOG_MARTIANS = 11, +IPV4_DEVCONF_TAG = 12, +IPV4_DEVCONF_ARPFILTER = 13, +IPV4_DEVCONF_MEDIUM_ID = 14, +IPV4_DEVCONF_NOXFRM = 15, +IPV4_DEVCONF_NOPOLICY = 16, +IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, +IPV4_DEVCONF_ARP_ANNOUNCE = 18, +IPV4_DEVCONF_ARP_IGNORE = 19, +IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, +IPV4_DEVCONF_ARP_ACCEPT = 21, +IPV4_DEVCONF_ARP_NOTIFY = 22, +IPV4_DEVCONF_ACCEPT_LOCAL = 23, +IPV4_DEVCONF_SRC_VMARK = 24, +IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, +IPV4_DEVCONF_ROUTE_LOCALNET = 26, +IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, +IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, +IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, +IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, +IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, +IPV4_DEVCONF_BC_FORWARDING = 32, +IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, +__IPV4_DEVCONF_MAX = 34, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +DEVCONF_FORWARDING = 0, +DEVCONF_HOPLIMIT = 1, +DEVCONF_MTU6 = 2, +DEVCONF_ACCEPT_RA = 3, +DEVCONF_ACCEPT_REDIRECTS = 4, +DEVCONF_AUTOCONF = 5, +DEVCONF_DAD_TRANSMITS = 6, +DEVCONF_RTR_SOLICITS = 7, +DEVCONF_RTR_SOLICIT_INTERVAL = 8, +DEVCONF_RTR_SOLICIT_DELAY = 9, +DEVCONF_USE_TEMPADDR = 10, +DEVCONF_TEMP_VALID_LFT = 11, +DEVCONF_TEMP_PREFERED_LFT = 12, +DEVCONF_REGEN_MAX_RETRY = 13, +DEVCONF_MAX_DESYNC_FACTOR = 14, +DEVCONF_MAX_ADDRESSES = 15, +DEVCONF_FORCE_MLD_VERSION = 16, +DEVCONF_ACCEPT_RA_DEFRTR = 17, +DEVCONF_ACCEPT_RA_PINFO = 18, +DEVCONF_ACCEPT_RA_RTR_PREF = 19, +DEVCONF_RTR_PROBE_INTERVAL = 20, +DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, +DEVCONF_PROXY_NDP = 22, +DEVCONF_OPTIMISTIC_DAD = 23, +DEVCONF_ACCEPT_SOURCE_ROUTE = 24, +DEVCONF_MC_FORWARDING = 25, +DEVCONF_DISABLE_IPV6 = 26, +DEVCONF_ACCEPT_DAD = 27, +DEVCONF_FORCE_TLLAO = 28, +DEVCONF_NDISC_NOTIFY = 29, +DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, +DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, +DEVCONF_SUPPRESS_FRAG_NDISC = 32, +DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, +DEVCONF_USE_OPTIMISTIC = 34, +DEVCONF_ACCEPT_RA_MTU = 35, +DEVCONF_STABLE_SECRET = 36, +DEVCONF_USE_OIF_ADDRS_ONLY = 37, +DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, +DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, +DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, +DEVCONF_DROP_UNSOLICITED_NA = 41, +DEVCONF_KEEP_ADDR_ON_DOWN = 42, +DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, +DEVCONF_SEG6_ENABLED = 44, +DEVCONF_SEG6_REQUIRE_HMAC = 45, +DEVCONF_ENHANCED_DAD = 46, +DEVCONF_ADDR_GEN_MODE = 47, +DEVCONF_DISABLE_POLICY = 48, +DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, +DEVCONF_NDISC_TCLASS = 50, +DEVCONF_RPL_SEG_ENABLED = 51, +DEVCONF_RA_DEFRTR_METRIC = 52, +DEVCONF_IOAM6_ENABLED = 53, +DEVCONF_IOAM6_ID = 54, +DEVCONF_IOAM6_ID_WIDE = 55, +DEVCONF_NDISC_EVICT_NOCARRIER = 56, +DEVCONF_ACCEPT_UNTRACKED_NA = 57, +DEVCONF_ACCEPT_RA_MIN_LFT = 58, +DEVCONF_MAX = 59, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum socket_state { +SS_FREE = 0, +SS_UNCONNECTED = 1, +SS_CONNECTING = 2, +SS_CONNECTED = 3, +SS_DISCONNECTING = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +TCP_FLAG_AE = 1, +TCP_FLAG_CWR = 32768, +TCP_FLAG_ECE = 16384, +TCP_FLAG_URG = 8192, +TCP_FLAG_ACK = 4096, +TCP_FLAG_PSH = 2048, +TCP_FLAG_RST = 1024, +TCP_FLAG_SYN = 512, +TCP_FLAG_FIN = 256, +TCP_RESERVED_BITS = 14, +TCP_DATA_OFFSET = 240, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_5 { +TCP_NO_QUEUE = 0, +TCP_RECV_QUEUE = 1, +TCP_SEND_QUEUE = 2, +TCP_QUEUES_NR = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tcp_fastopen_client_fail { +TFO_STATUS_UNSPEC = 0, +TFO_COOKIE_UNAVAILABLE = 1, +TFO_DATA_NOT_ACKED = 2, +TFO_SYN_RETRANSMITTED = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tcp_ca_state { +TCP_CA_Open = 0, +TCP_CA_Disorder = 1, +TCP_CA_CWR = 2, +TCP_CA_Recovery = 3, +TCP_CA_Loss = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_6 { +TCP_NLA_PAD = 0, +TCP_NLA_BUSY = 1, +TCP_NLA_RWND_LIMITED = 2, +TCP_NLA_SNDBUF_LIMITED = 3, +TCP_NLA_DATA_SEGS_OUT = 4, +TCP_NLA_TOTAL_RETRANS = 5, +TCP_NLA_PACING_RATE = 6, +TCP_NLA_DELIVERY_RATE = 7, +TCP_NLA_SND_CWND = 8, +TCP_NLA_REORDERING = 9, +TCP_NLA_MIN_RTT = 10, +TCP_NLA_RECUR_RETRANS = 11, +TCP_NLA_DELIVERY_RATE_APP_LMT = 12, +TCP_NLA_SNDQ_SIZE = 13, +TCP_NLA_CA_STATE = 14, +TCP_NLA_SND_SSTHRESH = 15, +TCP_NLA_DELIVERED = 16, +TCP_NLA_DELIVERED_CE = 17, +TCP_NLA_BYTES_SENT = 18, +TCP_NLA_BYTES_RETRANS = 19, +TCP_NLA_DSACK_DUPS = 20, +TCP_NLA_REORD_SEEN = 21, +TCP_NLA_SRTT = 22, +TCP_NLA_TIMEOUT_REHASH = 23, +TCP_NLA_BYTES_NOTSENT = 24, +TCP_NLA_EDT = 25, +TCP_NLA_TTL = 26, +TCP_NLA_REHASH = 27, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum net_device_flags { +IFF_UP = 1, +IFF_BROADCAST = 2, +IFF_DEBUG = 4, +IFF_LOOPBACK = 8, +IFF_POINTOPOINT = 16, +IFF_NOTRAILERS = 32, +IFF_RUNNING = 64, +IFF_NOARP = 128, +IFF_PROMISC = 256, +IFF_ALLMULTI = 512, +IFF_MASTER = 1024, +IFF_SLAVE = 2048, +IFF_MULTICAST = 4096, +IFF_PORTSEL = 8192, +IFF_AUTOMEDIA = 16384, +IFF_DYNAMIC = 32768, +IFF_LOWER_UP = 65536, +IFF_DORMANT = 131072, +IFF_ECHO = 262144, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_7 { +IF_OPER_UNKNOWN = 0, +IF_OPER_NOTPRESENT = 1, +IF_OPER_DOWN = 2, +IF_OPER_LOWERLAYERDOWN = 3, +IF_OPER_TESTING = 4, +IF_OPER_DORMANT = 5, +IF_OPER_UP = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_8 { +IF_LINK_MODE_DEFAULT = 0, +IF_LINK_MODE_DORMANT = 1, +IF_LINK_MODE_TESTING = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_inet_hooks { +NF_INET_PRE_ROUTING = 0, +NF_INET_LOCAL_IN = 1, +NF_INET_FORWARD = 2, +NF_INET_LOCAL_OUT = 3, +NF_INET_POST_ROUTING = 4, +NF_INET_NUMHOOKS = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_dev_hooks { +NF_NETDEV_INGRESS = 0, +NF_NETDEV_EGRESS = 1, +NF_NETDEV_NUMHOOKS = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_9 { +NFPROTO_UNSPEC = 0, +NFPROTO_INET = 1, +NFPROTO_IPV4 = 2, +NFPROTO_ARP = 3, +NFPROTO_NETDEV = 5, +NFPROTO_BRIDGE = 7, +NFPROTO_IPV6 = 10, +NFPROTO_DECNET = 12, +NFPROTO_NUMPROTO = 13, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_ip6_hook_priorities { +NF_IP6_PRI_FIRST = -2147483648, +NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450, +NF_IP6_PRI_CONNTRACK_DEFRAG = -400, +NF_IP6_PRI_RAW = -300, +NF_IP6_PRI_SELINUX_FIRST = -225, +NF_IP6_PRI_CONNTRACK = -200, +NF_IP6_PRI_MANGLE = -150, +NF_IP6_PRI_NAT_DST = -100, +NF_IP6_PRI_FILTER = 0, +NF_IP6_PRI_SECURITY = 50, +NF_IP6_PRI_NAT_SRC = 100, +NF_IP6_PRI_SELINUX_LAST = 225, +NF_IP6_PRI_CONNTRACK_HELPER = 300, +NF_IP6_PRI_LAST = 2147483647, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_ip_hook_priorities { +NF_IP_PRI_FIRST = -2147483648, +NF_IP_PRI_RAW_BEFORE_DEFRAG = -450, +NF_IP_PRI_CONNTRACK_DEFRAG = -400, +NF_IP_PRI_RAW = -300, +NF_IP_PRI_SELINUX_FIRST = -225, +NF_IP_PRI_CONNTRACK = -200, +NF_IP_PRI_MANGLE = -150, +NF_IP_PRI_NAT_DST = -100, +NF_IP_PRI_FILTER = 0, +NF_IP_PRI_SECURITY = 50, +NF_IP_PRI_NAT_SRC = 100, +NF_IP_PRI_SELINUX_LAST = 225, +NF_IP_PRI_CONNTRACK_HELPER = 300, +NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_provider_qualifier { +HWTSTAMP_PROVIDER_QUALIFIER_PRECISE = 0, +HWTSTAMP_PROVIDER_QUALIFIER_APPROX = 1, +HWTSTAMP_PROVIDER_QUALIFIER_CNT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_10 { +SOF_TIMESTAMPING_TX_HARDWARE = 1, +SOF_TIMESTAMPING_TX_SOFTWARE = 2, +SOF_TIMESTAMPING_RX_HARDWARE = 4, +SOF_TIMESTAMPING_RX_SOFTWARE = 8, +SOF_TIMESTAMPING_SOFTWARE = 16, +SOF_TIMESTAMPING_SYS_HARDWARE = 32, +SOF_TIMESTAMPING_RAW_HARDWARE = 64, +SOF_TIMESTAMPING_OPT_ID = 128, +SOF_TIMESTAMPING_TX_SCHED = 256, +SOF_TIMESTAMPING_TX_ACK = 512, +SOF_TIMESTAMPING_OPT_CMSG = 1024, +SOF_TIMESTAMPING_OPT_TSONLY = 2048, +SOF_TIMESTAMPING_OPT_STATS = 4096, +SOF_TIMESTAMPING_OPT_PKTINFO = 8192, +SOF_TIMESTAMPING_OPT_TX_SWHW = 16384, +SOF_TIMESTAMPING_BIND_PHC = 32768, +SOF_TIMESTAMPING_OPT_ID_TCP = 65536, +SOF_TIMESTAMPING_OPT_RX_FILTER = 131072, +SOF_TIMESTAMPING_TX_COMPLETION = 262144, +SOF_TIMESTAMPING_MASK = 524287, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_flags { +HWTSTAMP_FLAG_BONDED_PHC_INDEX = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_tx_types { +HWTSTAMP_TX_OFF = 0, +HWTSTAMP_TX_ON = 1, +HWTSTAMP_TX_ONESTEP_SYNC = 2, +HWTSTAMP_TX_ONESTEP_P2P = 3, +__HWTSTAMP_TX_CNT = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_rx_filters { +HWTSTAMP_FILTER_NONE = 0, +HWTSTAMP_FILTER_ALL = 1, +HWTSTAMP_FILTER_SOME = 2, +HWTSTAMP_FILTER_PTP_V1_L4_EVENT = 3, +HWTSTAMP_FILTER_PTP_V1_L4_SYNC = 4, +HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ = 5, +HWTSTAMP_FILTER_PTP_V2_L4_EVENT = 6, +HWTSTAMP_FILTER_PTP_V2_L4_SYNC = 7, +HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ = 8, +HWTSTAMP_FILTER_PTP_V2_L2_EVENT = 9, +HWTSTAMP_FILTER_PTP_V2_L2_SYNC = 10, +HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ = 11, +HWTSTAMP_FILTER_PTP_V2_EVENT = 12, +HWTSTAMP_FILTER_PTP_V2_SYNC = 13, +HWTSTAMP_FILTER_PTP_V2_DELAY_REQ = 14, +HWTSTAMP_FILTER_NTP_ALL = 15, +__HWTSTAMP_FILTER_CNT = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum txtime_flags { +SOF_TXTIME_DEADLINE_MODE = 1, +SOF_TXTIME_REPORT_ERRORS = 2, +SOF_TXTIME_FLAGS_MASK = 3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __kernel_sockaddr_storage__bindgen_ty_1 { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, +pub __align: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union iphdr__bindgen_ty_1 { +pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, +pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union in6_addr__bindgen_ty_1 { +pub u6_addr8: [__u8; 16usize], +pub u6_addr16: [__be16; 8usize], +pub u6_addr32: [__be32; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ipv6hdr__bindgen_ty_1 { +pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, +pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tcp_word_hdr { +pub hdr: tcphdr, +pub words: [__be32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union if_settings__bindgen_ty_1 { +pub raw_hdlc: *mut raw_hdlc_proto, +pub cisco: *mut cisco_proto, +pub fr: *mut fr_proto, +pub fr_pvc: *mut fr_proto_pvc, +pub fr_pvc_info: *mut fr_proto_pvc_info, +pub x25: *mut x25_hdlc_proto, +pub sync: *mut sync_serial_settings, +pub te1: *mut te1_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_1 { +pub ifrn_name: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_2 { +pub ifru_addr: sockaddr, +pub ifru_dstaddr: sockaddr, +pub ifru_broadaddr: sockaddr, +pub ifru_netmask: sockaddr, +pub ifru_hwaddr: sockaddr, +pub ifru_flags: crate::ctypes::c_short, +pub ifru_ivalue: crate::ctypes::c_int, +pub ifru_mtu: crate::ctypes::c_int, +pub ifru_map: ifmap, +pub ifru_slave: [crate::ctypes::c_char; 16usize], +pub ifru_newname: [crate::ctypes::c_char; 16usize], +pub ifru_data: *mut crate::ctypes::c_void, +pub ifru_settings: if_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifconf__bindgen_ty_1 { +pub ifcu_buf: *mut crate::ctypes::c_char, +pub ifcu_req: *mut ifreq, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union nf_inet_addr { +pub all: [__u32; 4usize], +pub ip: __be32, +pub ip6: [__be32; 4usize], +pub in_: in_addr, +pub in6: in6_addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union xt_entry_match__bindgen_ty_1 { +pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1, +pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2, +pub match_size: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union xt_entry_target__bindgen_ty_1 { +pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1, +pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2, +pub target_size: __u16, +} +impl __BindgenBitfieldUnit { +#[inline] +pub const fn new(storage: Storage) -> Self { +Self { storage } +} +} +impl __BindgenBitfieldUnit +where +Storage: AsRef<[u8]> + AsMut<[u8]>, +{ +#[inline] +fn extract_bit(byte: u8, index: usize) -> bool { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +byte & mask == mask +} +#[inline] +pub fn get_bit(&self, index: usize) -> bool { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = self.storage.as_ref()[byte_index]; +Self::extract_bit(byte, index) +} +#[inline] +pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; +Self::extract_bit(byte, index) +} +#[inline] +fn change_bit(byte: u8, index: usize, val: bool) -> u8 { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +if val { +byte | mask +} else { +byte & !mask +} +} +#[inline] +pub fn set_bit(&mut self, index: usize, val: bool) { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = &mut self.storage.as_mut()[byte_index]; +*byte = Self::change_bit(*byte, index, val); +} +#[inline] +pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; +} +#[inline] +pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if self.get_bit(i + bit_offset) { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +self.set_bit(index + bit_offset, val_bit_is_set); +} +} +#[inline] +pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +} +} +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl __BindgenUnionField { +#[inline] +pub const fn new() -> Self { +__BindgenUnionField(::core::marker::PhantomData) +} +#[inline] +pub unsafe fn as_ref(&self) -> &T { +::core::mem::transmute(self) +} +#[inline] +pub unsafe fn as_mut(&mut self) -> &mut T { +::core::mem::transmute(self) +} +} +impl ::core::default::Default for __BindgenUnionField { +#[inline] +fn default() -> Self { +Self::new() +} +} +impl ::core::clone::Clone for __BindgenUnionField { +#[inline] +fn clone(&self) -> Self { +*self +} +} +impl ::core::marker::Copy for __BindgenUnionField {} +impl ::core::fmt::Debug for __BindgenUnionField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__BindgenUnionField") +} +} +impl ::core::hash::Hash for __BindgenUnionField { +fn hash(&self, _state: &mut H) {} +} +impl ::core::cmp::PartialEq for __BindgenUnionField { +fn eq(&self, _other: &__BindgenUnionField) -> bool { +true +} +} +impl ::core::cmp::Eq for __BindgenUnionField {} +impl iphdr { +#[inline] +pub fn ihl(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +} +#[inline] +pub fn set_ihl(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn ihl_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +} +} +#[inline] +pub fn version(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +} +#[inline] +pub fn set_version(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn version_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 4u8, { +let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; +ihl as u64 +}); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let version: u8 = unsafe { ::core::mem::transmute(version) }; +version as u64 +}); +__bindgen_bitfield_unit +} +} +impl ipv6hdr { +#[inline] +pub fn priority(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +} +#[inline] +pub fn set_priority(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn priority_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +} +} +#[inline] +pub fn version(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +} +#[inline] +pub fn set_version(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn version_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 4u8, { +let priority: u8 = unsafe { ::core::mem::transmute(priority) }; +priority as u64 +}); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let version: u8 = unsafe { ::core::mem::transmute(version) }; +version as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcphdr { +#[inline] +pub fn ae(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +} +#[inline] +pub fn set_ae(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ae_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn res1(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 3u8) as u16) } +} +#[inline] +pub fn set_res1(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 3u8, val as u64) +} +} +#[inline] +pub unsafe fn res1_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 3u8) as u16) } +} +#[inline] +pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 3u8, val as u64) +} +} +#[inline] +pub fn doff(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } +} +#[inline] +pub fn set_doff(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn doff_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u16) } +} +#[inline] +pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn fin(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +} +#[inline] +pub fn set_fin(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(8usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn fin_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +} +} +#[inline] +pub fn syn(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +} +#[inline] +pub fn set_syn(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(9usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn syn_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +} +} +#[inline] +pub fn rst(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +} +#[inline] +pub fn set_rst(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(10usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn rst_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +} +} +#[inline] +pub fn psh(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +} +#[inline] +pub fn set_psh(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(11usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn psh_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +} +} +#[inline] +pub fn ack(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +} +#[inline] +pub fn set_ack(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(12usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ack_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +} +} +#[inline] +pub fn urg(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +} +#[inline] +pub fn set_urg(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(13usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn urg_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +} +} +#[inline] +pub fn ece(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +} +#[inline] +pub fn set_ece(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(14usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ece_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +} +} +#[inline] +pub fn cwr(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +} +#[inline] +pub fn set_cwr(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(15usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn cwr_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(ae: __u16, res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let ae: u16 = unsafe { ::core::mem::transmute(ae) }; +ae as u64 +}); +__bindgen_bitfield_unit.set(1usize, 3u8, { +let res1: u16 = unsafe { ::core::mem::transmute(res1) }; +res1 as u64 +}); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let doff: u16 = unsafe { ::core::mem::transmute(doff) }; +doff as u64 +}); +__bindgen_bitfield_unit.set(8usize, 1u8, { +let fin: u16 = unsafe { ::core::mem::transmute(fin) }; +fin as u64 +}); +__bindgen_bitfield_unit.set(9usize, 1u8, { +let syn: u16 = unsafe { ::core::mem::transmute(syn) }; +syn as u64 +}); +__bindgen_bitfield_unit.set(10usize, 1u8, { +let rst: u16 = unsafe { ::core::mem::transmute(rst) }; +rst as u64 +}); +__bindgen_bitfield_unit.set(11usize, 1u8, { +let psh: u16 = unsafe { ::core::mem::transmute(psh) }; +psh as u64 +}); +__bindgen_bitfield_unit.set(12usize, 1u8, { +let ack: u16 = unsafe { ::core::mem::transmute(ack) }; +ack as u64 +}); +__bindgen_bitfield_unit.set(13usize, 1u8, { +let urg: u16 = unsafe { ::core::mem::transmute(urg) }; +urg as u64 +}); +__bindgen_bitfield_unit.set(14usize, 1u8, { +let ece: u16 = unsafe { ::core::mem::transmute(ece) }; +ece as u64 +}); +__bindgen_bitfield_unit.set(15usize, 1u8, { +let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; +cwr as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_info { +#[inline] +pub fn tcpi_snd_wscale(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +} +#[inline] +pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +} +} +#[inline] +pub fn tcpi_rcv_wscale(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +} +#[inline] +pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +} +#[inline] +pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(8usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +} +} +#[inline] +pub fn tcpi_fastopen_client_fail(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +} +#[inline] +pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(9usize, 2u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 4u8, { +let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; +tcpi_snd_wscale as u64 +}); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; +tcpi_rcv_wscale as u64 +}); +__bindgen_bitfield_unit.set(8usize, 1u8, { +let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; +tcpi_delivery_rate_app_limited as u64 +}); +__bindgen_bitfield_unit.set(9usize, 2u8, { +let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; +tcpi_fastopen_client_fail as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_add { +#[inline] +pub fn set_current(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_current(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_current_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_rnext(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_rnext(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 30u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; +set_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; +set_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 30u8, { +let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_del { +#[inline] +pub fn set_current(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_current(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_current_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_rnext(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_rnext(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn del_async(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +} +#[inline] +pub fn set_del_async(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn del_async_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 29u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; +set_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; +set_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 1u8, { +let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; +del_async as u64 +}); +__bindgen_bitfield_unit.set(3usize, 29u8, { +let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_info_opt { +#[inline] +pub fn set_current(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_current(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_current_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_rnext(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_rnext(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn ao_required(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +} +#[inline] +pub fn set_ao_required(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_counters(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_counters(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +} +} +#[inline] +pub fn accept_icmps(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +} +#[inline] +pub fn set_accept_icmps(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(5usize, 27u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; +set_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; +set_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 1u8, { +let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; +ao_required as u64 +}); +__bindgen_bitfield_unit.set(3usize, 1u8, { +let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; +set_counters as u64 +}); +__bindgen_bitfield_unit.set(4usize, 1u8, { +let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; +accept_icmps as u64 +}); +__bindgen_bitfield_unit.set(5usize, 27u8, { +let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_getsockopt { +#[inline] +pub fn is_current(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +} +#[inline] +pub fn set_is_current(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn is_current_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn is_rnext(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +} +#[inline] +pub fn set_is_rnext(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn get_all(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +} +#[inline] +pub fn set_get_all(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn get_all_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 13u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; +is_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; +is_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 1u8, { +let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; +get_all as u64 +}); +__bindgen_bitfield_unit.set(3usize, 13u8, { +let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl nf_inet_hooks { +pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS; +} +impl nf_ip_hook_priorities { +pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM; +} +impl hwtstamp_flags { +pub const HWTSTAMP_FLAG_LAST: hwtstamp_flags = hwtstamp_flags::HWTSTAMP_FLAG_BONDED_PHC_INDEX; +} +impl hwtstamp_flags { +pub const HWTSTAMP_FLAG_MASK: hwtstamp_flags = hwtstamp_flags::HWTSTAMP_FLAG_BONDED_PHC_INDEX; +} +impl txtime_flags { +pub const SOF_TXTIME_FLAGS_LAST: txtime_flags = txtime_flags::SOF_TXTIME_REPORT_ERRORS; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/netlink.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/netlink.rs new file mode 100644 index 0000000000000000000000000000000000000000..c885fb3a385a970457e7dca441f035c76e2f72bc --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/netlink.rs @@ -0,0 +1,5461 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __kernel_sa_family_t = crate::ctypes::c_ushort; +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __kernel_sockaddr_storage { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { +pub ss_family: __kernel_sa_family_t, +pub __data: [crate::ctypes::c_char; 126usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_nl { +pub nl_family: __kernel_sa_family_t, +pub nl_pad: crate::ctypes::c_ushort, +pub nl_pid: __u32, +pub nl_groups: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsghdr { +pub nlmsg_len: __u32, +pub nlmsg_type: __u16, +pub nlmsg_flags: __u16, +pub nlmsg_seq: __u32, +pub nlmsg_pid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsgerr { +pub error: crate::ctypes::c_int, +pub msg: nlmsghdr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_pktinfo { +pub group: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_req { +pub nm_block_size: crate::ctypes::c_uint, +pub nm_block_nr: crate::ctypes::c_uint, +pub nm_frame_size: crate::ctypes::c_uint, +pub nm_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_hdr { +pub nm_status: crate::ctypes::c_uint, +pub nm_len: crate::ctypes::c_uint, +pub nm_group: __u32, +pub nm_pid: __u32, +pub nm_uid: __u32, +pub nm_gid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlattr { +pub nla_len: __u16, +pub nla_type: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nla_bitfield32 { +pub value: __u32, +pub selector: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_sta_flag_update { +pub mask: __u32, +pub set: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_vht { +pub mcs: [__u16; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_he { +pub mcs: [__u16; 8usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_pattern_support { +pub max_patterns: __u32, +pub min_pattern_len: __u32, +pub max_pattern_len: __u32, +pub max_pkt_offset: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_wowlan_tcp_data_seq { +pub start: __u32, +pub offset: __u32, +pub len: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct nl80211_wowlan_tcp_data_token { +pub offset: __u32, +pub len: __u32, +pub token_stream: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_wowlan_tcp_data_token_feature { +pub min_len: __u32, +pub max_len: __u32, +pub bufsize: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_coalesce_rule_support { +pub max_rules: __u32, +pub pat: nl80211_pattern_support, +pub max_delay: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_vendor_cmd_info { +pub vendor_id: __u32, +pub subcmd: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_bss_select_rssi_adjust { +pub band: __u8, +pub delta: __s8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats { +pub rx_packets: __u32, +pub tx_packets: __u32, +pub rx_bytes: __u32, +pub tx_bytes: __u32, +pub rx_errors: __u32, +pub tx_errors: __u32, +pub rx_dropped: __u32, +pub tx_dropped: __u32, +pub multicast: __u32, +pub collisions: __u32, +pub rx_length_errors: __u32, +pub rx_over_errors: __u32, +pub rx_crc_errors: __u32, +pub rx_frame_errors: __u32, +pub rx_fifo_errors: __u32, +pub rx_missed_errors: __u32, +pub tx_aborted_errors: __u32, +pub tx_carrier_errors: __u32, +pub tx_fifo_errors: __u32, +pub tx_heartbeat_errors: __u32, +pub tx_window_errors: __u32, +pub rx_compressed: __u32, +pub tx_compressed: __u32, +pub rx_nohandler: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +pub collisions: __u64, +pub rx_length_errors: __u64, +pub rx_over_errors: __u64, +pub rx_crc_errors: __u64, +pub rx_frame_errors: __u64, +pub rx_fifo_errors: __u64, +pub rx_missed_errors: __u64, +pub tx_aborted_errors: __u64, +pub tx_carrier_errors: __u64, +pub tx_fifo_errors: __u64, +pub tx_heartbeat_errors: __u64, +pub tx_window_errors: __u64, +pub rx_compressed: __u64, +pub tx_compressed: __u64, +pub rx_nohandler: __u64, +pub rx_otherhost_dropped: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_hw_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_ifmap { +pub mem_start: __u64, +pub mem_end: __u64, +pub base_addr: __u64, +pub irq: __u16, +pub dma: __u8, +pub port: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_bridge_id { +pub prio: [__u8; 2usize], +pub addr: [__u8; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_cacheinfo { +pub max_reasm_len: __u32, +pub tstamp: __u32, +pub reachable_time: __u32, +pub retrans_time: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_qos_mapping { +pub from: __u32, +pub to: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tunnel_msg { +pub family: __u8, +pub flags: __u8, +pub reserved2: __u16, +pub ifindex: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vxlan_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_geneve_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_mac { +pub vf: __u32, +pub mac: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_broadcast { +pub broadcast: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan_info { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +pub vlan_proto: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_tx_rate { +pub vf: __u32, +pub rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rate { +pub vf: __u32, +pub min_tx_rate: __u32, +pub max_tx_rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_spoofchk { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_guid { +pub vf: __u32, +pub guid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_link_state { +pub vf: __u32, +pub link_state: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rss_query_en { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_trust { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_port_vsi { +pub vsi_mgr_id: __u8, +pub vsi_type_id: [__u8; 3usize], +pub vsi_type_version: __u8, +pub pad: [__u8; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct if_stats_msg { +pub family: __u8, +pub pad1: __u8, +pub pad2: __u16, +pub ifindex: __u32, +pub filter_mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_rmnet_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifaddrmsg { +pub ifa_family: __u8, +pub ifa_prefixlen: __u8, +pub ifa_flags: __u8, +pub ifa_scope: __u8, +pub ifa_index: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifa_cacheinfo { +pub ifa_prefered: __u32, +pub ifa_valid: __u32, +pub cstamp: __u32, +pub tstamp: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ndmsg { +pub ndm_family: __u8, +pub ndm_pad1: __u8, +pub ndm_pad2: __u16, +pub ndm_ifindex: __s32, +pub ndm_state: __u16, +pub ndm_flags: __u8, +pub ndm_type: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nda_cacheinfo { +pub ndm_confirmed: __u32, +pub ndm_used: __u32, +pub ndm_updated: __u32, +pub ndm_refcnt: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ndt_stats { +pub ndts_allocs: __u64, +pub ndts_destroys: __u64, +pub ndts_hash_grows: __u64, +pub ndts_res_failed: __u64, +pub ndts_lookups: __u64, +pub ndts_hits: __u64, +pub ndts_rcv_probes_mcast: __u64, +pub ndts_rcv_probes_ucast: __u64, +pub ndts_periodic_gc_runs: __u64, +pub ndts_forced_gc_runs: __u64, +pub ndts_table_fulls: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ndtmsg { +pub ndtm_family: __u8, +pub ndtm_pad1: __u8, +pub ndtm_pad2: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ndt_config { +pub ndtc_key_len: __u16, +pub ndtc_entry_size: __u16, +pub ndtc_entries: __u32, +pub ndtc_last_flush: __u32, +pub ndtc_last_rand: __u32, +pub ndtc_hash_rnd: __u32, +pub ndtc_hash_mask: __u32, +pub ndtc_hash_chain_gc: __u32, +pub ndtc_proxy_qlen: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtattr { +pub rta_len: crate::ctypes::c_ushort, +pub rta_type: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtmsg { +pub rtm_family: crate::ctypes::c_uchar, +pub rtm_dst_len: crate::ctypes::c_uchar, +pub rtm_src_len: crate::ctypes::c_uchar, +pub rtm_tos: crate::ctypes::c_uchar, +pub rtm_table: crate::ctypes::c_uchar, +pub rtm_protocol: crate::ctypes::c_uchar, +pub rtm_scope: crate::ctypes::c_uchar, +pub rtm_type: crate::ctypes::c_uchar, +pub rtm_flags: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnexthop { +pub rtnh_len: crate::ctypes::c_ushort, +pub rtnh_flags: crate::ctypes::c_uchar, +pub rtnh_hops: crate::ctypes::c_uchar, +pub rtnh_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug)] +pub struct rtvia { +pub rtvia_family: __kernel_sa_family_t, +pub rtvia_addr: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rta_cacheinfo { +pub rta_clntref: __u32, +pub rta_lastuse: __u32, +pub rta_expires: __s32, +pub rta_error: __u32, +pub rta_used: __u32, +pub rta_id: __u32, +pub rta_ts: __u32, +pub rta_tsage: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct rta_session { +pub proto: __u8, +pub pad1: __u8, +pub pad2: __u16, +pub u: rta_session__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rta_session__bindgen_ty_1__bindgen_ty_1 { +pub sport: __u16, +pub dport: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rta_session__bindgen_ty_1__bindgen_ty_2 { +pub type_: __u8, +pub code: __u8, +pub ident: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rta_mfc_stats { +pub mfcs_packets: __u64, +pub mfcs_bytes: __u64, +pub mfcs_wrong_if: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtgenmsg { +pub rtgen_family: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifinfomsg { +pub ifi_family: crate::ctypes::c_uchar, +pub __ifi_pad: crate::ctypes::c_uchar, +pub ifi_type: crate::ctypes::c_ushort, +pub ifi_index: crate::ctypes::c_int, +pub ifi_flags: crate::ctypes::c_uint, +pub ifi_change: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct prefixmsg { +pub prefix_family: crate::ctypes::c_uchar, +pub prefix_pad1: crate::ctypes::c_uchar, +pub prefix_pad2: crate::ctypes::c_ushort, +pub prefix_ifindex: crate::ctypes::c_int, +pub prefix_type: crate::ctypes::c_uchar, +pub prefix_len: crate::ctypes::c_uchar, +pub prefix_flags: crate::ctypes::c_uchar, +pub prefix_pad3: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct prefix_cacheinfo { +pub preferred_time: __u32, +pub valid_time: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcmsg { +pub tcm_family: crate::ctypes::c_uchar, +pub tcm__pad1: crate::ctypes::c_uchar, +pub tcm__pad2: crate::ctypes::c_ushort, +pub tcm_ifindex: crate::ctypes::c_int, +pub tcm_handle: __u32, +pub tcm_parent: __u32, +pub tcm_info: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nduseroptmsg { +pub nduseropt_family: crate::ctypes::c_uchar, +pub nduseropt_pad1: crate::ctypes::c_uchar, +pub nduseropt_opts_len: crate::ctypes::c_ushort, +pub nduseropt_ifindex: crate::ctypes::c_int, +pub nduseropt_icmp_type: __u8, +pub nduseropt_icmp_code: __u8, +pub nduseropt_pad2: crate::ctypes::c_ushort, +pub nduseropt_pad3: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcamsg { +pub tca_family: crate::ctypes::c_uchar, +pub tca__pad1: crate::ctypes::c_uchar, +pub tca__pad2: crate::ctypes::c_ushort, +} +pub const _K_SS_MAXSIZE: u32 = 128; +pub const SOCK_SNDBUF_LOCK: u32 = 1; +pub const SOCK_RCVBUF_LOCK: u32 = 2; +pub const SOCK_BUF_LOCK_MASK: u32 = 3; +pub const SOCK_TXREHASH_DEFAULT: u32 = 255; +pub const SOCK_TXREHASH_DISABLED: u32 = 0; +pub const SOCK_TXREHASH_ENABLED: u32 = 1; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const NETLINK_ROUTE: u32 = 0; +pub const NETLINK_UNUSED: u32 = 1; +pub const NETLINK_USERSOCK: u32 = 2; +pub const NETLINK_FIREWALL: u32 = 3; +pub const NETLINK_SOCK_DIAG: u32 = 4; +pub const NETLINK_NFLOG: u32 = 5; +pub const NETLINK_XFRM: u32 = 6; +pub const NETLINK_SELINUX: u32 = 7; +pub const NETLINK_ISCSI: u32 = 8; +pub const NETLINK_AUDIT: u32 = 9; +pub const NETLINK_FIB_LOOKUP: u32 = 10; +pub const NETLINK_CONNECTOR: u32 = 11; +pub const NETLINK_NETFILTER: u32 = 12; +pub const NETLINK_IP6_FW: u32 = 13; +pub const NETLINK_DNRTMSG: u32 = 14; +pub const NETLINK_KOBJECT_UEVENT: u32 = 15; +pub const NETLINK_GENERIC: u32 = 16; +pub const NETLINK_SCSITRANSPORT: u32 = 18; +pub const NETLINK_ECRYPTFS: u32 = 19; +pub const NETLINK_RDMA: u32 = 20; +pub const NETLINK_CRYPTO: u32 = 21; +pub const NETLINK_SMC: u32 = 22; +pub const NETLINK_INET_DIAG: u32 = 4; +pub const MAX_LINKS: u32 = 32; +pub const NLM_F_REQUEST: u32 = 1; +pub const NLM_F_MULTI: u32 = 2; +pub const NLM_F_ACK: u32 = 4; +pub const NLM_F_ECHO: u32 = 8; +pub const NLM_F_DUMP_INTR: u32 = 16; +pub const NLM_F_DUMP_FILTERED: u32 = 32; +pub const NLM_F_ROOT: u32 = 256; +pub const NLM_F_MATCH: u32 = 512; +pub const NLM_F_ATOMIC: u32 = 1024; +pub const NLM_F_DUMP: u32 = 768; +pub const NLM_F_REPLACE: u32 = 256; +pub const NLM_F_EXCL: u32 = 512; +pub const NLM_F_CREATE: u32 = 1024; +pub const NLM_F_APPEND: u32 = 2048; +pub const NLM_F_NONREC: u32 = 256; +pub const NLM_F_BULK: u32 = 512; +pub const NLM_F_CAPPED: u32 = 256; +pub const NLM_F_ACK_TLVS: u32 = 512; +pub const NLMSG_ALIGNTO: u32 = 4; +pub const NLMSG_NOOP: u32 = 1; +pub const NLMSG_ERROR: u32 = 2; +pub const NLMSG_DONE: u32 = 3; +pub const NLMSG_OVERRUN: u32 = 4; +pub const NLMSG_MIN_TYPE: u32 = 16; +pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; +pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; +pub const NETLINK_PKTINFO: u32 = 3; +pub const NETLINK_BROADCAST_ERROR: u32 = 4; +pub const NETLINK_NO_ENOBUFS: u32 = 5; +pub const NETLINK_RX_RING: u32 = 6; +pub const NETLINK_TX_RING: u32 = 7; +pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; +pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; +pub const NETLINK_CAP_ACK: u32 = 10; +pub const NETLINK_EXT_ACK: u32 = 11; +pub const NETLINK_GET_STRICT_CHK: u32 = 12; +pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; +pub const NET_MAJOR: u32 = 36; +pub const NLA_F_NESTED: u32 = 32768; +pub const NLA_F_NET_BYTEORDER: u32 = 16384; +pub const NLA_TYPE_MASK: i32 = -49153; +pub const NLA_ALIGNTO: u32 = 4; +pub const NL80211_GENL_NAME: &[u8; 8] = b"nl80211\0"; +pub const NL80211_MULTICAST_GROUP_CONFIG: &[u8; 7] = b"config\0"; +pub const NL80211_MULTICAST_GROUP_SCAN: &[u8; 5] = b"scan\0"; +pub const NL80211_MULTICAST_GROUP_REG: &[u8; 11] = b"regulatory\0"; +pub const NL80211_MULTICAST_GROUP_MLME: &[u8; 5] = b"mlme\0"; +pub const NL80211_MULTICAST_GROUP_VENDOR: &[u8; 7] = b"vendor\0"; +pub const NL80211_MULTICAST_GROUP_NAN: &[u8; 4] = b"nan\0"; +pub const NL80211_MULTICAST_GROUP_TESTMODE: &[u8; 9] = b"testmode\0"; +pub const NL80211_EDMG_BW_CONFIG_MIN: u32 = 4; +pub const NL80211_EDMG_BW_CONFIG_MAX: u32 = 15; +pub const NL80211_EDMG_CHANNELS_MIN: u32 = 1; +pub const NL80211_EDMG_CHANNELS_MAX: u32 = 60; +pub const NL80211_WIPHY_NAME_MAXLEN: u32 = 64; +pub const NL80211_MAX_SUPP_RATES: u32 = 32; +pub const NL80211_MAX_SUPP_SELECTORS: u32 = 128; +pub const NL80211_MAX_SUPP_HT_RATES: u32 = 77; +pub const NL80211_MAX_SUPP_REG_RULES: u32 = 128; +pub const NL80211_TKIP_DATA_OFFSET_ENCR_KEY: u32 = 0; +pub const NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY: u32 = 16; +pub const NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY: u32 = 24; +pub const NL80211_HT_CAPABILITY_LEN: u32 = 26; +pub const NL80211_VHT_CAPABILITY_LEN: u32 = 12; +pub const NL80211_HE_MIN_CAPABILITY_LEN: u32 = 16; +pub const NL80211_HE_MAX_CAPABILITY_LEN: u32 = 54; +pub const NL80211_MAX_NR_CIPHER_SUITES: u32 = 5; +pub const NL80211_MAX_NR_AKM_SUITES: u32 = 2; +pub const NL80211_EHT_MIN_CAPABILITY_LEN: u32 = 13; +pub const NL80211_EHT_MAX_CAPABILITY_LEN: u32 = 51; +pub const NL80211_MIN_REMAIN_ON_CHANNEL_TIME: u32 = 10; +pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; +pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; +pub const NL80211_VHT_NSS_MAX: u32 = 8; +pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_KCK_LEN: u32 = 16; +pub const NL80211_KEK_LEN: u32 = 16; +pub const NL80211_KCK_EXT_LEN: u32 = 24; +pub const NL80211_KEK_EXT_LEN: u32 = 32; +pub const NL80211_KCK_EXT_LEN_32: u32 = 32; +pub const NL80211_REPLAY_CTR_LEN: u32 = 8; +pub const NL80211_CRIT_PROTO_MAX_DURATION: u32 = 5000; +pub const NL80211_VENDOR_ID_IS_LINUX: u32 = 2147483648; +pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; +pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; +pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; +pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; +pub const MACVLAN_FLAG_NODST: u32 = 2; +pub const IPVLAN_F_PRIVATE: u32 = 1; +pub const IPVLAN_F_VEPA: u32 = 2; +pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; +pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; +pub const MAX_VLAN_LIST_LEN: u32 = 1; +pub const PORT_PROFILE_MAX: u32 = 40; +pub const PORT_UUID_MAX: u32 = 16; +pub const PORT_SELF_VF: i32 = -1; +pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; +pub const XDP_FLAGS_SKB_MODE: u32 = 2; +pub const XDP_FLAGS_DRV_MODE: u32 = 4; +pub const XDP_FLAGS_HW_MODE: u32 = 8; +pub const XDP_FLAGS_REPLACE: u32 = 16; +pub const XDP_FLAGS_MODES: u32 = 14; +pub const XDP_FLAGS_MASK: u32 = 31; +pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; +pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; +pub const IFA_F_SECONDARY: u32 = 1; +pub const IFA_F_TEMPORARY: u32 = 1; +pub const IFA_F_NODAD: u32 = 2; +pub const IFA_F_OPTIMISTIC: u32 = 4; +pub const IFA_F_DADFAILED: u32 = 8; +pub const IFA_F_HOMEADDRESS: u32 = 16; +pub const IFA_F_DEPRECATED: u32 = 32; +pub const IFA_F_TENTATIVE: u32 = 64; +pub const IFA_F_PERMANENT: u32 = 128; +pub const IFA_F_MANAGETEMPADDR: u32 = 256; +pub const IFA_F_NOPREFIXROUTE: u32 = 512; +pub const IFA_F_MCAUTOJOIN: u32 = 1024; +pub const IFA_F_STABLE_PRIVACY: u32 = 2048; +pub const IFAPROT_UNSPEC: u32 = 0; +pub const IFAPROT_KERNEL_LO: u32 = 1; +pub const IFAPROT_KERNEL_RA: u32 = 2; +pub const IFAPROT_KERNEL_LL: u32 = 3; +pub const NTF_USE: u32 = 1; +pub const NTF_SELF: u32 = 2; +pub const NTF_MASTER: u32 = 4; +pub const NTF_PROXY: u32 = 8; +pub const NTF_EXT_LEARNED: u32 = 16; +pub const NTF_OFFLOADED: u32 = 32; +pub const NTF_STICKY: u32 = 64; +pub const NTF_ROUTER: u32 = 128; +pub const NTF_EXT_MANAGED: u32 = 1; +pub const NTF_EXT_LOCKED: u32 = 2; +pub const NUD_INCOMPLETE: u32 = 1; +pub const NUD_REACHABLE: u32 = 2; +pub const NUD_STALE: u32 = 4; +pub const NUD_DELAY: u32 = 8; +pub const NUD_PROBE: u32 = 16; +pub const NUD_FAILED: u32 = 32; +pub const NUD_NOARP: u32 = 64; +pub const NUD_PERMANENT: u32 = 128; +pub const NUD_NONE: u32 = 0; +pub const RTNL_FAMILY_IPMR: u32 = 128; +pub const RTNL_FAMILY_IP6MR: u32 = 129; +pub const RTNL_FAMILY_MAX: u32 = 129; +pub const RTA_ALIGNTO: u32 = 4; +pub const RTPROT_UNSPEC: u32 = 0; +pub const RTPROT_REDIRECT: u32 = 1; +pub const RTPROT_KERNEL: u32 = 2; +pub const RTPROT_BOOT: u32 = 3; +pub const RTPROT_STATIC: u32 = 4; +pub const RTPROT_GATED: u32 = 8; +pub const RTPROT_RA: u32 = 9; +pub const RTPROT_MRT: u32 = 10; +pub const RTPROT_ZEBRA: u32 = 11; +pub const RTPROT_BIRD: u32 = 12; +pub const RTPROT_DNROUTED: u32 = 13; +pub const RTPROT_XORP: u32 = 14; +pub const RTPROT_NTK: u32 = 15; +pub const RTPROT_DHCP: u32 = 16; +pub const RTPROT_MROUTED: u32 = 17; +pub const RTPROT_KEEPALIVED: u32 = 18; +pub const RTPROT_BABEL: u32 = 42; +pub const RTPROT_OVN: u32 = 84; +pub const RTPROT_OPENR: u32 = 99; +pub const RTPROT_BGP: u32 = 186; +pub const RTPROT_ISIS: u32 = 187; +pub const RTPROT_OSPF: u32 = 188; +pub const RTPROT_RIP: u32 = 189; +pub const RTPROT_EIGRP: u32 = 192; +pub const RTM_F_NOTIFY: u32 = 256; +pub const RTM_F_CLONED: u32 = 512; +pub const RTM_F_EQUALIZE: u32 = 1024; +pub const RTM_F_PREFIX: u32 = 2048; +pub const RTM_F_LOOKUP_TABLE: u32 = 4096; +pub const RTM_F_FIB_MATCH: u32 = 8192; +pub const RTM_F_OFFLOAD: u32 = 16384; +pub const RTM_F_TRAP: u32 = 32768; +pub const RTM_F_OFFLOAD_FAILED: u32 = 536870912; +pub const RTNH_F_DEAD: u32 = 1; +pub const RTNH_F_PERVASIVE: u32 = 2; +pub const RTNH_F_ONLINK: u32 = 4; +pub const RTNH_F_OFFLOAD: u32 = 8; +pub const RTNH_F_LINKDOWN: u32 = 16; +pub const RTNH_F_UNRESOLVED: u32 = 32; +pub const RTNH_F_TRAP: u32 = 64; +pub const RTNH_COMPARE_MASK: u32 = 89; +pub const RTNH_ALIGNTO: u32 = 4; +pub const RTNETLINK_HAVE_PEERINFO: u32 = 1; +pub const RTAX_FEATURE_ECN: u32 = 1; +pub const RTAX_FEATURE_SACK: u32 = 2; +pub const RTAX_FEATURE_TIMESTAMP: u32 = 4; +pub const RTAX_FEATURE_ALLFRAG: u32 = 8; +pub const RTAX_FEATURE_TCP_USEC_TS: u32 = 16; +pub const RTAX_FEATURE_MASK: u32 = 31; +pub const TCM_IFINDEX_MAGIC_BLOCK: u32 = 4294967295; +pub const TCA_DUMP_FLAGS_TERSE: u32 = 1; +pub const RTMGRP_LINK: u32 = 1; +pub const RTMGRP_NOTIFY: u32 = 2; +pub const RTMGRP_NEIGH: u32 = 4; +pub const RTMGRP_TC: u32 = 8; +pub const RTMGRP_IPV4_IFADDR: u32 = 16; +pub const RTMGRP_IPV4_MROUTE: u32 = 32; +pub const RTMGRP_IPV4_ROUTE: u32 = 64; +pub const RTMGRP_IPV4_RULE: u32 = 128; +pub const RTMGRP_IPV6_IFADDR: u32 = 256; +pub const RTMGRP_IPV6_MROUTE: u32 = 512; +pub const RTMGRP_IPV6_ROUTE: u32 = 1024; +pub const RTMGRP_IPV6_IFINFO: u32 = 2048; +pub const RTMGRP_DECnet_IFADDR: u32 = 4096; +pub const RTMGRP_DECnet_ROUTE: u32 = 16384; +pub const RTMGRP_IPV6_PREFIX: u32 = 131072; +pub const TCA_FLAG_LARGE_DUMP_ON: u32 = 1; +pub const TCA_ACT_FLAG_LARGE_DUMP_ON: u32 = 1; +pub const TCA_ACT_FLAG_TERSE_DUMP: u32 = 2; +pub const RTEXT_FILTER_VF: u32 = 1; +pub const RTEXT_FILTER_BRVLAN: u32 = 2; +pub const RTEXT_FILTER_BRVLAN_COMPRESSED: u32 = 4; +pub const RTEXT_FILTER_SKIP_STATS: u32 = 8; +pub const RTEXT_FILTER_MRP: u32 = 16; +pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; +pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; +pub const RTEXT_FILTER_MST: u32 = 128; +pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED; +pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED; +pub const IFLA_UNSPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_UNSPEC; +pub const IFLA_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ADDRESS; +pub const IFLA_BROADCAST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_BROADCAST; +pub const IFLA_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFNAME; +pub const IFLA_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MTU; +pub const IFLA_LINK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK; +pub const IFLA_QDISC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_QDISC; +pub const IFLA_STATS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS; +pub const IFLA_COST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_COST; +pub const IFLA_PRIORITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PRIORITY; +pub const IFLA_MASTER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MASTER; +pub const IFLA_WIRELESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WIRELESS; +pub const IFLA_PROTINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTINFO; +pub const IFLA_TXQLEN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TXQLEN; +pub const IFLA_MAP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAP; +pub const IFLA_WEIGHT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WEIGHT; +pub const IFLA_OPERSTATE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_OPERSTATE; +pub const IFLA_LINKMODE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKMODE; +pub const IFLA_LINKINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKINFO; +pub const IFLA_NET_NS_PID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_PID; +pub const IFLA_IFALIAS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFALIAS; +pub const IFLA_NUM_VF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_VF; +pub const IFLA_VFINFO_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VFINFO_LIST; +pub const IFLA_STATS64: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS64; +pub const IFLA_VF_PORTS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VF_PORTS; +pub const IFLA_PORT_SELF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PORT_SELF; +pub const IFLA_AF_SPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_AF_SPEC; +pub const IFLA_GROUP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GROUP; +pub const IFLA_NET_NS_FD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_FD; +pub const IFLA_EXT_MASK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EXT_MASK; +pub const IFLA_PROMISCUITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROMISCUITY; +pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_TX_QUEUES; +pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_RX_QUEUES; +pub const IFLA_CARRIER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER; +pub const IFLA_PHYS_PORT_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_ID; +pub const IFLA_CARRIER_CHANGES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_CHANGES; +pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_SWITCH_ID; +pub const IFLA_LINK_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK_NETNSID; +pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_NAME; +pub const IFLA_PROTO_DOWN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN; +pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SEGS; +pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SIZE; +pub const IFLA_PAD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PAD; +pub const IFLA_XDP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_XDP; +pub const IFLA_EVENT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EVENT; +pub const IFLA_NEW_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_NETNSID; +pub const IFLA_IF_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; +pub const IFLA_TARGET_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; +pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_UP_COUNT; +pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_DOWN_COUNT; +pub const IFLA_NEW_IFINDEX: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_IFINDEX; +pub const IFLA_MIN_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MIN_MTU; +pub const IFLA_MAX_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_MTU; +pub const IFLA_PROP_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROP_LIST; +pub const IFLA_ALT_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALT_IFNAME; +pub const IFLA_PERM_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PERM_ADDRESS; +pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN_REASON; +pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_NAME; +pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_BUS_NAME; +pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_MAX_SIZE; +pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SIZE; +pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SEGS; +pub const IFLA_ALLMULTI: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALLMULTI; +pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; +pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; +pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; +pub const IFLA_DPLL_PIN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_PACING_OFFLOAD_HORIZON; +pub const IFLA_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; +pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; +pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; +pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; +pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_3 = _bindgen_ty_3::__IFLA_PROTO_DOWN_REASON_CNT; +pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; +pub const IFLA_INET_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_UNSPEC; +pub const IFLA_INET_CONF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_CONF; +pub const __IFLA_INET_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_INET_MAX; +pub const IFLA_INET6_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_UNSPEC; +pub const IFLA_INET6_FLAGS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_FLAGS; +pub const IFLA_INET6_CONF: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CONF; +pub const IFLA_INET6_STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_STATS; +pub const IFLA_INET6_MCAST: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_MCAST; +pub const IFLA_INET6_CACHEINFO: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CACHEINFO; +pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ICMP6STATS; +pub const IFLA_INET6_TOKEN: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_TOKEN; +pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ADDR_GEN_MODE; +pub const IFLA_INET6_RA_MTU: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_RA_MTU; +pub const __IFLA_INET6_MAX: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_INET6_MAX; +pub const IFLA_BR_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_UNSPEC; +pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FORWARD_DELAY; +pub const IFLA_BR_HELLO_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIME; +pub const IFLA_BR_MAX_AGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MAX_AGE; +pub const IFLA_BR_AGEING_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_AGEING_TIME; +pub const IFLA_BR_STP_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_STATE; +pub const IFLA_BR_PRIORITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PRIORITY; +pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_FILTERING; +pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_PROTOCOL; +pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_FWD_MASK; +pub const IFLA_BR_ROOT_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_ID; +pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_BRIDGE_ID; +pub const IFLA_BR_ROOT_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PORT; +pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PATH_COST; +pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE; +pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; +pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIMER; +pub const IFLA_BR_TCN_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TCN_TIMER; +pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_TIMER; +pub const IFLA_BR_GC_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GC_TIMER; +pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_ADDR; +pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_FLUSH; +pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_ROUTER; +pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_SNOOPING; +pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_USE_IFADDR; +pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER; +pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_ELASTICITY; +pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_MAX; +pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_CNT; +pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_CNT; +pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_INTVL; +pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MEMBERSHIP_INTVL; +pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_INTVL; +pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_INTVL; +pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; +pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; +pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IPTABLES; +pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IP6TABLES; +pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_ARPTABLES; +pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_DEFAULT_PVID; +pub const IFLA_BR_PAD: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PAD; +pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_ENABLED; +pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STATS_ENABLED; +pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_IGMP_VERSION; +pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MLD_VERSION; +pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_PER_PORT; +pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BOOLOPT; +pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; +pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; +pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; +pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; +pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; +pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNSPEC; +pub const IFLA_BRPORT_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_STATE; +pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PRIORITY; +pub const IFLA_BRPORT_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_COST; +pub const IFLA_BRPORT_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MODE; +pub const IFLA_BRPORT_GUARD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GUARD; +pub const IFLA_BRPORT_PROTECT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROTECT; +pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FAST_LEAVE; +pub const IFLA_BRPORT_LEARNING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING; +pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNICAST_FLOOD; +pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP; +pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING_SYNC; +pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP_WIFI; +pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ROOT_ID; +pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BRIDGE_ID; +pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_PORT; +pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_COST; +pub const IFLA_BRPORT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ID; +pub const IFLA_BRPORT_NO: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NO; +pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; +pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_CONFIG_PENDING; +pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MESSAGE_AGE_TIMER; +pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FORWARD_DELAY_TIMER; +pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_HOLD_TIMER; +pub const IFLA_BRPORT_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FLUSH; +pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MULTICAST_ROUTER; +pub const IFLA_BRPORT_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PAD; +pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_FLOOD; +pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_TO_UCAST; +pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_VLAN_TUNNEL; +pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BCAST_FLOOD; +pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GROUP_FWD_MASK; +pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_SUPPRESS; +pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ISOLATED; +pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_PORT; +pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_RING_OPEN; +pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_IN_OPEN; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; +pub const IFLA_BRPORT_LOCKED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LOCKED; +pub const IFLA_BRPORT_MAB: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MAB; +pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_N_GROUPS; +pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; +pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; +pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; +pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; +pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; +pub const IFLA_INFO_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_DATA; +pub const IFLA_INFO_XSTATS: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_XSTATS; +pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_KIND; +pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_DATA; +pub const __IFLA_INFO_MAX: _bindgen_ty_9 = _bindgen_ty_9::__IFLA_INFO_MAX; +pub const IFLA_VLAN_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_UNSPEC; +pub const IFLA_VLAN_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_ID; +pub const IFLA_VLAN_FLAGS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_FLAGS; +pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_EGRESS_QOS; +pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_INGRESS_QOS; +pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_PROTOCOL; +pub const __IFLA_VLAN_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_VLAN_MAX; +pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_UNSPEC; +pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_MAPPING; +pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_VLAN_QOS_MAX; +pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_UNSPEC; +pub const IFLA_MACVLAN_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MODE; +pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_FLAGS; +pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_MODE; +pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR; +pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_DATA; +pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_COUNT; +pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN; +pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN_USED; +pub const IFLA_MACVLAN_BC_CUTOFF: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_CUTOFF; +pub const __IFLA_MACVLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_MACVLAN_MAX; +pub const IFLA_VRF_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_UNSPEC; +pub const IFLA_VRF_TABLE: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_TABLE; +pub const __IFLA_VRF_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VRF_MAX; +pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_UNSPEC; +pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_TABLE; +pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_VRF_PORT_MAX; +pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_UNSPEC; +pub const IFLA_MACSEC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCI; +pub const IFLA_MACSEC_PORT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PORT; +pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ICV_LEN; +pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_CIPHER_SUITE; +pub const IFLA_MACSEC_WINDOW: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_WINDOW; +pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCODING_SA; +pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCRYPT; +pub const IFLA_MACSEC_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PROTECT; +pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_INC_SCI; +pub const IFLA_MACSEC_ES: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ES; +pub const IFLA_MACSEC_SCB: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCB; +pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_REPLAY_PROTECT; +pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_VALIDATION; +pub const IFLA_MACSEC_PAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PAD; +pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_OFFLOAD; +pub const __IFLA_MACSEC_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_MACSEC_MAX; +pub const IFLA_XFRM_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_UNSPEC; +pub const IFLA_XFRM_LINK: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_LINK; +pub const IFLA_XFRM_IF_ID: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_IF_ID; +pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_COLLECT_METADATA; +pub const __IFLA_XFRM_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_XFRM_MAX; +pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_UNSPEC; +pub const IFLA_IPVLAN_MODE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_MODE; +pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_FLAGS; +pub const __IFLA_IPVLAN_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_IPVLAN_MAX; +pub const IFLA_NETKIT_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_UNSPEC; +pub const IFLA_NETKIT_PEER_INFO: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_INFO; +pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PRIMARY; +pub const IFLA_NETKIT_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_POLICY; +pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_POLICY; +pub const IFLA_NETKIT_MODE: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_SCRUB; +pub const IFLA_NETKIT_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; +pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const __IFLA_NETKIT_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_NETKIT_MAX; +pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_UNSPEC; +pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_BYTES; +pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_PKTS; +pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_DROPS; +pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_TX_BYTES; +pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_TX_PKTS; +pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_TX_DROPS; +pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_TX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_PAD; +pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_19 = _bindgen_ty_19::__VNIFILTER_ENTRY_STATS_MAX; +pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_START; +pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_END; +pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_GROUP; +pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_GROUP6; +pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_STATS; +pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_20 = _bindgen_ty_20::__VXLAN_VNIFILTER_ENTRY_MAX; +pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VXLAN_VNIFILTER_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_21 = _bindgen_ty_21::VXLAN_VNIFILTER_ENTRY; +pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_21 = _bindgen_ty_21::__VXLAN_VNIFILTER_MAX; +pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_UNSPEC; +pub const IFLA_VXLAN_ID: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_ID; +pub const IFLA_VXLAN_GROUP: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_GROUP; +pub const IFLA_VXLAN_LINK: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LINK; +pub const IFLA_VXLAN_LOCAL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LOCAL; +pub const IFLA_VXLAN_TTL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_TTL; +pub const IFLA_VXLAN_TOS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_TOS; +pub const IFLA_VXLAN_LEARNING: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LEARNING; +pub const IFLA_VXLAN_AGEING: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_AGEING; +pub const IFLA_VXLAN_LIMIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LIMIT; +pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_PORT_RANGE; +pub const IFLA_VXLAN_PROXY: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_PROXY; +pub const IFLA_VXLAN_RSC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_RSC; +pub const IFLA_VXLAN_L2MISS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_L2MISS; +pub const IFLA_VXLAN_L3MISS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_L3MISS; +pub const IFLA_VXLAN_PORT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_PORT; +pub const IFLA_VXLAN_GROUP6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_GROUP6; +pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LOCAL6; +pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_UDP_CSUM; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; +pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_REMCSUM_TX; +pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_REMCSUM_RX; +pub const IFLA_VXLAN_GBP: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_GBP; +pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_REMCSUM_NOPARTIAL; +pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_COLLECT_METADATA; +pub const IFLA_VXLAN_LABEL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LABEL; +pub const IFLA_VXLAN_GPE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_GPE; +pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_TTL_INHERIT; +pub const IFLA_VXLAN_DF: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_DF; +pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_VNIFILTER; +pub const IFLA_VXLAN_LOCALBYPASS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LOCALBYPASS; +pub const IFLA_VXLAN_LABEL_POLICY: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LABEL_POLICY; +pub const IFLA_VXLAN_RESERVED_BITS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_RESERVED_BITS; +pub const __IFLA_VXLAN_MAX: _bindgen_ty_22 = _bindgen_ty_22::__IFLA_VXLAN_MAX; +pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_UNSPEC; +pub const IFLA_GENEVE_ID: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ID; +pub const IFLA_GENEVE_REMOTE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_REMOTE; +pub const IFLA_GENEVE_TTL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_TTL; +pub const IFLA_GENEVE_TOS: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_TOS; +pub const IFLA_GENEVE_PORT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT; +pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_COLLECT_METADATA; +pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_REMOTE6; +pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_UDP_CSUM; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; +pub const IFLA_GENEVE_LABEL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LABEL; +pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_TTL_INHERIT; +pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; +pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; +pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; +pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; +pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; +pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_ETHERTYPE; +pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_SRCPORT_MIN; +pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_MULTIPROTO_MODE; +pub const __IFLA_BAREUDP_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_BAREUDP_MAX; +pub const IFLA_PPP_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_PPP_UNSPEC; +pub const IFLA_PPP_DEV_FD: _bindgen_ty_25 = _bindgen_ty_25::IFLA_PPP_DEV_FD; +pub const __IFLA_PPP_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_PPP_MAX; +pub const IFLA_GTP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_UNSPEC; +pub const IFLA_GTP_FD0: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_FD0; +pub const IFLA_GTP_FD1: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_FD1; +pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_PDP_HASHSIZE; +pub const IFLA_GTP_ROLE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_ROLE; +pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_CREATE_SOCKETS; +pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_RESTART_COUNT; +pub const IFLA_GTP_LOCAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_LOCAL; +pub const IFLA_GTP_LOCAL6: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_LOCAL6; +pub const __IFLA_GTP_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_GTP_MAX; +pub const IFLA_BOND_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_UNSPEC; +pub const IFLA_BOND_MODE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MODE; +pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ACTIVE_SLAVE; +pub const IFLA_BOND_MIIMON: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MIIMON; +pub const IFLA_BOND_UPDELAY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_UPDELAY; +pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_DOWNDELAY; +pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_USE_CARRIER; +pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ARP_INTERVAL; +pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ARP_IP_TARGET; +pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ARP_VALIDATE; +pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ARP_ALL_TARGETS; +pub const IFLA_BOND_PRIMARY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_PRIMARY; +pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_PRIMARY_RESELECT; +pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_FAIL_OVER_MAC; +pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_XMIT_HASH_POLICY; +pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_RESEND_IGMP; +pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NUM_PEER_NOTIF; +pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ALL_SLAVES_ACTIVE; +pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MIN_LINKS; +pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LP_INTERVAL; +pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_PACKETS_PER_SLAVE; +pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_LACP_RATE; +pub const IFLA_BOND_AD_SELECT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_SELECT; +pub const IFLA_BOND_AD_INFO: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO; +pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_ACTOR_SYS_PRIO; +pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_USER_PORT_KEY; +pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_ACTOR_SYSTEM; +pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_TLB_DYNAMIC_LB; +pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_PEER_NOTIF_DELAY; +pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_LACP_ACTIVE; +pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSED_MAX; +pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; +pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; +pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; +pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; +pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; +pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_NUM_PORTS; +pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_ACTOR_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_PARTNER_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_PARTNER_MAC; +pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_BOND_AD_INFO_MAX; +pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_UNSPEC; +pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_STATE; +pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_MII_STATUS; +pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; +pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PERM_HWADDR; +pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_QUEUE_ID; +pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; +pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; +pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; +pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; +pub const __IFLA_VF_INFO_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_VF_INFO_MAX; +pub const IFLA_VF_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_UNSPEC; +pub const IFLA_VF_MAC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_MAC; +pub const IFLA_VF_VLAN: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN; +pub const IFLA_VF_TX_RATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_TX_RATE; +pub const IFLA_VF_SPOOFCHK: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_SPOOFCHK; +pub const IFLA_VF_LINK_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_LINK_STATE; +pub const IFLA_VF_RATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_RATE; +pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_RSS_QUERY_EN; +pub const IFLA_VF_STATS: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_STATS; +pub const IFLA_VF_TRUST: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_TRUST; +pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_IB_NODE_GUID; +pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_IB_PORT_GUID; +pub const IFLA_VF_VLAN_LIST: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_LIST; +pub const IFLA_VF_BROADCAST: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_BROADCAST; +pub const __IFLA_VF_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_VF_MAX; +pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_VLAN_INFO_UNSPEC; +pub const IFLA_VF_VLAN_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_VLAN_INFO; +pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_VLAN_INFO_MAX; +pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_LINK_STATE_AUTO; +pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_LINK_STATE_ENABLE; +pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_LINK_STATE_DISABLE; +pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_LINK_STATE_MAX; +pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_RX_PACKETS; +pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_TX_PACKETS; +pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_RX_BYTES; +pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_TX_BYTES; +pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_BROADCAST; +pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_MULTICAST; +pub const IFLA_VF_STATS_PAD: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_PAD; +pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_RX_DROPPED; +pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_TX_DROPPED; +pub const __IFLA_VF_STATS_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_STATS_MAX; +pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_PORT_UNSPEC; +pub const IFLA_VF_PORT: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_PORT; +pub const __IFLA_VF_PORT_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_VF_PORT_MAX; +pub const IFLA_PORT_UNSPEC: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_UNSPEC; +pub const IFLA_PORT_VF: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_VF; +pub const IFLA_PORT_PROFILE: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_PROFILE; +pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_VSI_TYPE; +pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_INSTANCE_UUID; +pub const IFLA_PORT_HOST_UUID: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_HOST_UUID; +pub const IFLA_PORT_REQUEST: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_REQUEST; +pub const IFLA_PORT_RESPONSE: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_RESPONSE; +pub const __IFLA_PORT_MAX: _bindgen_ty_36 = _bindgen_ty_36::__IFLA_PORT_MAX; +pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_REQUEST_PREASSOCIATE; +pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_37 = _bindgen_ty_37::PORT_REQUEST_PREASSOCIATE_RR; +pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_REQUEST_ASSOCIATE; +pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_REQUEST_DISASSOCIATE; +pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_SUCCESS; +pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_INVALID_FORMAT; +pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_UNUSED_VTID; +pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_VTID_VIOLATION; +pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; +pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_OUT_OF_SYNC; +pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_SUCCESS; +pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_INPROGRESS; +pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_INVALID; +pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_BADSTATE; +pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_ERROR; +pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_39 = _bindgen_ty_39::IFLA_IPOIB_UNSPEC; +pub const IFLA_IPOIB_PKEY: _bindgen_ty_39 = _bindgen_ty_39::IFLA_IPOIB_PKEY; +pub const IFLA_IPOIB_MODE: _bindgen_ty_39 = _bindgen_ty_39::IFLA_IPOIB_MODE; +pub const IFLA_IPOIB_UMCAST: _bindgen_ty_39 = _bindgen_ty_39::IFLA_IPOIB_UMCAST; +pub const __IFLA_IPOIB_MAX: _bindgen_ty_39 = _bindgen_ty_39::__IFLA_IPOIB_MAX; +pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_40 = _bindgen_ty_40::IPOIB_MODE_DATAGRAM; +pub const IPOIB_MODE_CONNECTED: _bindgen_ty_40 = _bindgen_ty_40::IPOIB_MODE_CONNECTED; +pub const HSR_PROTOCOL_HSR: _bindgen_ty_41 = _bindgen_ty_41::HSR_PROTOCOL_HSR; +pub const HSR_PROTOCOL_PRP: _bindgen_ty_41 = _bindgen_ty_41::HSR_PROTOCOL_PRP; +pub const HSR_PROTOCOL_MAX: _bindgen_ty_41 = _bindgen_ty_41::HSR_PROTOCOL_MAX; +pub const IFLA_HSR_UNSPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_UNSPEC; +pub const IFLA_HSR_SLAVE1: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_SLAVE1; +pub const IFLA_HSR_SLAVE2: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_SLAVE2; +pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_MULTICAST_SPEC; +pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_SUPERVISION_ADDR; +pub const IFLA_HSR_SEQ_NR: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_SEQ_NR; +pub const IFLA_HSR_VERSION: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_VERSION; +pub const IFLA_HSR_PROTOCOL: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_PROTOCOL; +pub const IFLA_HSR_INTERLINK: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_INTERLINK; +pub const __IFLA_HSR_MAX: _bindgen_ty_42 = _bindgen_ty_42::__IFLA_HSR_MAX; +pub const IFLA_STATS_UNSPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_UNSPEC; +pub const IFLA_STATS_LINK_64: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_LINK_64; +pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_LINK_XSTATS; +pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_LINK_XSTATS_SLAVE; +pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_LINK_OFFLOAD_XSTATS; +pub const IFLA_STATS_AF_SPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_AF_SPEC; +pub const __IFLA_STATS_MAX: _bindgen_ty_43 = _bindgen_ty_43::__IFLA_STATS_MAX; +pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::IFLA_STATS_GETSET_UNSPEC; +pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_44 = _bindgen_ty_44::IFLA_STATS_GET_FILTERS; +pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_44 = _bindgen_ty_44::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_44 = _bindgen_ty_44::__IFLA_STATS_GETSET_MAX; +pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::LINK_XSTATS_TYPE_UNSPEC; +pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_45 = _bindgen_ty_45::LINK_XSTATS_TYPE_BRIDGE; +pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_45 = _bindgen_ty_45::LINK_XSTATS_TYPE_BOND; +pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_45 = _bindgen_ty_45::__LINK_XSTATS_TYPE_MAX; +pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_CPU_HIT; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO; +pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_OFFLOAD_XSTATS_MAX; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_47 = _bindgen_ty_47::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_47 = _bindgen_ty_47::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_47 = _bindgen_ty_47::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; +pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_47 = _bindgen_ty_47::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; +pub const XDP_ATTACHED_NONE: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_NONE; +pub const XDP_ATTACHED_DRV: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_DRV; +pub const XDP_ATTACHED_SKB: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_SKB; +pub const XDP_ATTACHED_HW: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_HW; +pub const XDP_ATTACHED_MULTI: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_MULTI; +pub const IFLA_XDP_UNSPEC: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_UNSPEC; +pub const IFLA_XDP_FD: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_FD; +pub const IFLA_XDP_ATTACHED: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_ATTACHED; +pub const IFLA_XDP_FLAGS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_FLAGS; +pub const IFLA_XDP_PROG_ID: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_PROG_ID; +pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_DRV_PROG_ID; +pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_SKB_PROG_ID; +pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_HW_PROG_ID; +pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_EXPECTED_FD; +pub const __IFLA_XDP_MAX: _bindgen_ty_49 = _bindgen_ty_49::__IFLA_XDP_MAX; +pub const IFLA_EVENT_NONE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_NONE; +pub const IFLA_EVENT_REBOOT: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_REBOOT; +pub const IFLA_EVENT_FEATURES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_FEATURES; +pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_BONDING_FAILOVER; +pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_NOTIFY_PEERS; +pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_IGMP_RESEND; +pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_BONDING_OPTIONS; +pub const IFLA_TUN_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_UNSPEC; +pub const IFLA_TUN_OWNER: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_OWNER; +pub const IFLA_TUN_GROUP: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_GROUP; +pub const IFLA_TUN_TYPE: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_TYPE; +pub const IFLA_TUN_PI: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_PI; +pub const IFLA_TUN_VNET_HDR: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_VNET_HDR; +pub const IFLA_TUN_PERSIST: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_PERSIST; +pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_MULTI_QUEUE; +pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_NUM_QUEUES; +pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_NUM_DISABLED_QUEUES; +pub const __IFLA_TUN_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_TUN_MAX; +pub const IFLA_RMNET_UNSPEC: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_UNSPEC; +pub const IFLA_RMNET_MUX_ID: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_MUX_ID; +pub const IFLA_RMNET_FLAGS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_FLAGS; +pub const __IFLA_RMNET_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_RMNET_MAX; +pub const IFLA_MCTP_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_UNSPEC; +pub const IFLA_MCTP_NET: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_PHYS_BINDING; +pub const __IFLA_MCTP_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_MCTP_MAX; +pub const IFLA_DSA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_UNSPEC; +pub const IFLA_DSA_CONDUIT: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; +pub const IFLA_DSA_MASTER: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; +pub const __IFLA_DSA_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_DSA_MAX; +pub const IFLA_OVPN_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_OVPN_UNSPEC; +pub const IFLA_OVPN_MODE: _bindgen_ty_55 = _bindgen_ty_55::IFLA_OVPN_MODE; +pub const __IFLA_OVPN_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_OVPN_MAX; +pub const IFA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFA_UNSPEC; +pub const IFA_ADDRESS: _bindgen_ty_56 = _bindgen_ty_56::IFA_ADDRESS; +pub const IFA_LOCAL: _bindgen_ty_56 = _bindgen_ty_56::IFA_LOCAL; +pub const IFA_LABEL: _bindgen_ty_56 = _bindgen_ty_56::IFA_LABEL; +pub const IFA_BROADCAST: _bindgen_ty_56 = _bindgen_ty_56::IFA_BROADCAST; +pub const IFA_ANYCAST: _bindgen_ty_56 = _bindgen_ty_56::IFA_ANYCAST; +pub const IFA_CACHEINFO: _bindgen_ty_56 = _bindgen_ty_56::IFA_CACHEINFO; +pub const IFA_MULTICAST: _bindgen_ty_56 = _bindgen_ty_56::IFA_MULTICAST; +pub const IFA_FLAGS: _bindgen_ty_56 = _bindgen_ty_56::IFA_FLAGS; +pub const IFA_RT_PRIORITY: _bindgen_ty_56 = _bindgen_ty_56::IFA_RT_PRIORITY; +pub const IFA_TARGET_NETNSID: _bindgen_ty_56 = _bindgen_ty_56::IFA_TARGET_NETNSID; +pub const IFA_PROTO: _bindgen_ty_56 = _bindgen_ty_56::IFA_PROTO; +pub const __IFA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__IFA_MAX; +pub const NDA_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::NDA_UNSPEC; +pub const NDA_DST: _bindgen_ty_57 = _bindgen_ty_57::NDA_DST; +pub const NDA_LLADDR: _bindgen_ty_57 = _bindgen_ty_57::NDA_LLADDR; +pub const NDA_CACHEINFO: _bindgen_ty_57 = _bindgen_ty_57::NDA_CACHEINFO; +pub const NDA_PROBES: _bindgen_ty_57 = _bindgen_ty_57::NDA_PROBES; +pub const NDA_VLAN: _bindgen_ty_57 = _bindgen_ty_57::NDA_VLAN; +pub const NDA_PORT: _bindgen_ty_57 = _bindgen_ty_57::NDA_PORT; +pub const NDA_VNI: _bindgen_ty_57 = _bindgen_ty_57::NDA_VNI; +pub const NDA_IFINDEX: _bindgen_ty_57 = _bindgen_ty_57::NDA_IFINDEX; +pub const NDA_MASTER: _bindgen_ty_57 = _bindgen_ty_57::NDA_MASTER; +pub const NDA_LINK_NETNSID: _bindgen_ty_57 = _bindgen_ty_57::NDA_LINK_NETNSID; +pub const NDA_SRC_VNI: _bindgen_ty_57 = _bindgen_ty_57::NDA_SRC_VNI; +pub const NDA_PROTOCOL: _bindgen_ty_57 = _bindgen_ty_57::NDA_PROTOCOL; +pub const NDA_NH_ID: _bindgen_ty_57 = _bindgen_ty_57::NDA_NH_ID; +pub const NDA_FDB_EXT_ATTRS: _bindgen_ty_57 = _bindgen_ty_57::NDA_FDB_EXT_ATTRS; +pub const NDA_FLAGS_EXT: _bindgen_ty_57 = _bindgen_ty_57::NDA_FLAGS_EXT; +pub const NDA_NDM_STATE_MASK: _bindgen_ty_57 = _bindgen_ty_57::NDA_NDM_STATE_MASK; +pub const NDA_NDM_FLAGS_MASK: _bindgen_ty_57 = _bindgen_ty_57::NDA_NDM_FLAGS_MASK; +pub const __NDA_MAX: _bindgen_ty_57 = _bindgen_ty_57::__NDA_MAX; +pub const NDTPA_UNSPEC: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_UNSPEC; +pub const NDTPA_IFINDEX: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_IFINDEX; +pub const NDTPA_REFCNT: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_REFCNT; +pub const NDTPA_REACHABLE_TIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_REACHABLE_TIME; +pub const NDTPA_BASE_REACHABLE_TIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_BASE_REACHABLE_TIME; +pub const NDTPA_RETRANS_TIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_RETRANS_TIME; +pub const NDTPA_GC_STALETIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_GC_STALETIME; +pub const NDTPA_DELAY_PROBE_TIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_DELAY_PROBE_TIME; +pub const NDTPA_QUEUE_LEN: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_QUEUE_LEN; +pub const NDTPA_APP_PROBES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_APP_PROBES; +pub const NDTPA_UCAST_PROBES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_UCAST_PROBES; +pub const NDTPA_MCAST_PROBES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_MCAST_PROBES; +pub const NDTPA_ANYCAST_DELAY: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_ANYCAST_DELAY; +pub const NDTPA_PROXY_DELAY: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_PROXY_DELAY; +pub const NDTPA_PROXY_QLEN: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_PROXY_QLEN; +pub const NDTPA_LOCKTIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_LOCKTIME; +pub const NDTPA_QUEUE_LENBYTES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_QUEUE_LENBYTES; +pub const NDTPA_MCAST_REPROBES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_MCAST_REPROBES; +pub const NDTPA_PAD: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_PAD; +pub const NDTPA_INTERVAL_PROBE_TIME_MS: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_INTERVAL_PROBE_TIME_MS; +pub const __NDTPA_MAX: _bindgen_ty_58 = _bindgen_ty_58::__NDTPA_MAX; +pub const NDTA_UNSPEC: _bindgen_ty_59 = _bindgen_ty_59::NDTA_UNSPEC; +pub const NDTA_NAME: _bindgen_ty_59 = _bindgen_ty_59::NDTA_NAME; +pub const NDTA_THRESH1: _bindgen_ty_59 = _bindgen_ty_59::NDTA_THRESH1; +pub const NDTA_THRESH2: _bindgen_ty_59 = _bindgen_ty_59::NDTA_THRESH2; +pub const NDTA_THRESH3: _bindgen_ty_59 = _bindgen_ty_59::NDTA_THRESH3; +pub const NDTA_CONFIG: _bindgen_ty_59 = _bindgen_ty_59::NDTA_CONFIG; +pub const NDTA_PARMS: _bindgen_ty_59 = _bindgen_ty_59::NDTA_PARMS; +pub const NDTA_STATS: _bindgen_ty_59 = _bindgen_ty_59::NDTA_STATS; +pub const NDTA_GC_INTERVAL: _bindgen_ty_59 = _bindgen_ty_59::NDTA_GC_INTERVAL; +pub const NDTA_PAD: _bindgen_ty_59 = _bindgen_ty_59::NDTA_PAD; +pub const __NDTA_MAX: _bindgen_ty_59 = _bindgen_ty_59::__NDTA_MAX; +pub const FDB_NOTIFY_BIT: _bindgen_ty_60 = _bindgen_ty_60::FDB_NOTIFY_BIT; +pub const FDB_NOTIFY_INACTIVE_BIT: _bindgen_ty_60 = _bindgen_ty_60::FDB_NOTIFY_INACTIVE_BIT; +pub const NFEA_UNSPEC: _bindgen_ty_61 = _bindgen_ty_61::NFEA_UNSPEC; +pub const NFEA_ACTIVITY_NOTIFY: _bindgen_ty_61 = _bindgen_ty_61::NFEA_ACTIVITY_NOTIFY; +pub const NFEA_DONT_REFRESH: _bindgen_ty_61 = _bindgen_ty_61::NFEA_DONT_REFRESH; +pub const __NFEA_MAX: _bindgen_ty_61 = _bindgen_ty_61::__NFEA_MAX; +pub const RTM_BASE: _bindgen_ty_62 = _bindgen_ty_62::RTM_BASE; +pub const RTM_NEWLINK: _bindgen_ty_62 = _bindgen_ty_62::RTM_BASE; +pub const RTM_DELLINK: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELLINK; +pub const RTM_GETLINK: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETLINK; +pub const RTM_SETLINK: _bindgen_ty_62 = _bindgen_ty_62::RTM_SETLINK; +pub const RTM_NEWADDR: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWADDR; +pub const RTM_DELADDR: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELADDR; +pub const RTM_GETADDR: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETADDR; +pub const RTM_NEWROUTE: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWROUTE; +pub const RTM_DELROUTE: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELROUTE; +pub const RTM_GETROUTE: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETROUTE; +pub const RTM_NEWNEIGH: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNEIGH; +pub const RTM_DELNEIGH: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNEIGH; +pub const RTM_GETNEIGH: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNEIGH; +pub const RTM_NEWRULE: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWRULE; +pub const RTM_DELRULE: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELRULE; +pub const RTM_GETRULE: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETRULE; +pub const RTM_NEWQDISC: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWQDISC; +pub const RTM_DELQDISC: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELQDISC; +pub const RTM_GETQDISC: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETQDISC; +pub const RTM_NEWTCLASS: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWTCLASS; +pub const RTM_DELTCLASS: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELTCLASS; +pub const RTM_GETTCLASS: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETTCLASS; +pub const RTM_NEWTFILTER: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWTFILTER; +pub const RTM_DELTFILTER: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELTFILTER; +pub const RTM_GETTFILTER: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETTFILTER; +pub const RTM_NEWACTION: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWACTION; +pub const RTM_DELACTION: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELACTION; +pub const RTM_GETACTION: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETACTION; +pub const RTM_NEWPREFIX: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWPREFIX; +pub const RTM_NEWMULTICAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWMULTICAST; +pub const RTM_DELMULTICAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELMULTICAST; +pub const RTM_GETMULTICAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETMULTICAST; +pub const RTM_NEWANYCAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWANYCAST; +pub const RTM_DELANYCAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELANYCAST; +pub const RTM_GETANYCAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETANYCAST; +pub const RTM_NEWNEIGHTBL: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNEIGHTBL; +pub const RTM_GETNEIGHTBL: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNEIGHTBL; +pub const RTM_SETNEIGHTBL: _bindgen_ty_62 = _bindgen_ty_62::RTM_SETNEIGHTBL; +pub const RTM_NEWNDUSEROPT: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNDUSEROPT; +pub const RTM_NEWADDRLABEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWADDRLABEL; +pub const RTM_DELADDRLABEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELADDRLABEL; +pub const RTM_GETADDRLABEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETADDRLABEL; +pub const RTM_GETDCB: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETDCB; +pub const RTM_SETDCB: _bindgen_ty_62 = _bindgen_ty_62::RTM_SETDCB; +pub const RTM_NEWNETCONF: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNETCONF; +pub const RTM_DELNETCONF: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNETCONF; +pub const RTM_GETNETCONF: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNETCONF; +pub const RTM_NEWMDB: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWMDB; +pub const RTM_DELMDB: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELMDB; +pub const RTM_GETMDB: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETMDB; +pub const RTM_NEWNSID: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNSID; +pub const RTM_DELNSID: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNSID; +pub const RTM_GETNSID: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNSID; +pub const RTM_NEWSTATS: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWSTATS; +pub const RTM_GETSTATS: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETSTATS; +pub const RTM_SETSTATS: _bindgen_ty_62 = _bindgen_ty_62::RTM_SETSTATS; +pub const RTM_NEWCACHEREPORT: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWCACHEREPORT; +pub const RTM_NEWCHAIN: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWCHAIN; +pub const RTM_DELCHAIN: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELCHAIN; +pub const RTM_GETCHAIN: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETCHAIN; +pub const RTM_NEWNEXTHOP: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNEXTHOP; +pub const RTM_DELNEXTHOP: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNEXTHOP; +pub const RTM_GETNEXTHOP: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNEXTHOP; +pub const RTM_NEWLINKPROP: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWLINKPROP; +pub const RTM_DELLINKPROP: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELLINKPROP; +pub const RTM_GETLINKPROP: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETLINKPROP; +pub const RTM_NEWVLAN: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWVLAN; +pub const RTM_DELVLAN: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELVLAN; +pub const RTM_GETVLAN: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETVLAN; +pub const RTM_NEWNEXTHOPBUCKET: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNEXTHOPBUCKET; +pub const RTM_DELNEXTHOPBUCKET: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNEXTHOPBUCKET; +pub const RTM_GETNEXTHOPBUCKET: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNEXTHOPBUCKET; +pub const RTM_NEWTUNNEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWTUNNEL; +pub const RTM_DELTUNNEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELTUNNEL; +pub const RTM_GETTUNNEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETTUNNEL; +pub const __RTM_MAX: _bindgen_ty_62 = _bindgen_ty_62::__RTM_MAX; +pub const RTN_UNSPEC: _bindgen_ty_63 = _bindgen_ty_63::RTN_UNSPEC; +pub const RTN_UNICAST: _bindgen_ty_63 = _bindgen_ty_63::RTN_UNICAST; +pub const RTN_LOCAL: _bindgen_ty_63 = _bindgen_ty_63::RTN_LOCAL; +pub const RTN_BROADCAST: _bindgen_ty_63 = _bindgen_ty_63::RTN_BROADCAST; +pub const RTN_ANYCAST: _bindgen_ty_63 = _bindgen_ty_63::RTN_ANYCAST; +pub const RTN_MULTICAST: _bindgen_ty_63 = _bindgen_ty_63::RTN_MULTICAST; +pub const RTN_BLACKHOLE: _bindgen_ty_63 = _bindgen_ty_63::RTN_BLACKHOLE; +pub const RTN_UNREACHABLE: _bindgen_ty_63 = _bindgen_ty_63::RTN_UNREACHABLE; +pub const RTN_PROHIBIT: _bindgen_ty_63 = _bindgen_ty_63::RTN_PROHIBIT; +pub const RTN_THROW: _bindgen_ty_63 = _bindgen_ty_63::RTN_THROW; +pub const RTN_NAT: _bindgen_ty_63 = _bindgen_ty_63::RTN_NAT; +pub const RTN_XRESOLVE: _bindgen_ty_63 = _bindgen_ty_63::RTN_XRESOLVE; +pub const __RTN_MAX: _bindgen_ty_63 = _bindgen_ty_63::__RTN_MAX; +pub const RTAX_UNSPEC: _bindgen_ty_64 = _bindgen_ty_64::RTAX_UNSPEC; +pub const RTAX_LOCK: _bindgen_ty_64 = _bindgen_ty_64::RTAX_LOCK; +pub const RTAX_MTU: _bindgen_ty_64 = _bindgen_ty_64::RTAX_MTU; +pub const RTAX_WINDOW: _bindgen_ty_64 = _bindgen_ty_64::RTAX_WINDOW; +pub const RTAX_RTT: _bindgen_ty_64 = _bindgen_ty_64::RTAX_RTT; +pub const RTAX_RTTVAR: _bindgen_ty_64 = _bindgen_ty_64::RTAX_RTTVAR; +pub const RTAX_SSTHRESH: _bindgen_ty_64 = _bindgen_ty_64::RTAX_SSTHRESH; +pub const RTAX_CWND: _bindgen_ty_64 = _bindgen_ty_64::RTAX_CWND; +pub const RTAX_ADVMSS: _bindgen_ty_64 = _bindgen_ty_64::RTAX_ADVMSS; +pub const RTAX_REORDERING: _bindgen_ty_64 = _bindgen_ty_64::RTAX_REORDERING; +pub const RTAX_HOPLIMIT: _bindgen_ty_64 = _bindgen_ty_64::RTAX_HOPLIMIT; +pub const RTAX_INITCWND: _bindgen_ty_64 = _bindgen_ty_64::RTAX_INITCWND; +pub const RTAX_FEATURES: _bindgen_ty_64 = _bindgen_ty_64::RTAX_FEATURES; +pub const RTAX_RTO_MIN: _bindgen_ty_64 = _bindgen_ty_64::RTAX_RTO_MIN; +pub const RTAX_INITRWND: _bindgen_ty_64 = _bindgen_ty_64::RTAX_INITRWND; +pub const RTAX_QUICKACK: _bindgen_ty_64 = _bindgen_ty_64::RTAX_QUICKACK; +pub const RTAX_CC_ALGO: _bindgen_ty_64 = _bindgen_ty_64::RTAX_CC_ALGO; +pub const RTAX_FASTOPEN_NO_COOKIE: _bindgen_ty_64 = _bindgen_ty_64::RTAX_FASTOPEN_NO_COOKIE; +pub const __RTAX_MAX: _bindgen_ty_64 = _bindgen_ty_64::__RTAX_MAX; +pub const PREFIX_UNSPEC: _bindgen_ty_65 = _bindgen_ty_65::PREFIX_UNSPEC; +pub const PREFIX_ADDRESS: _bindgen_ty_65 = _bindgen_ty_65::PREFIX_ADDRESS; +pub const PREFIX_CACHEINFO: _bindgen_ty_65 = _bindgen_ty_65::PREFIX_CACHEINFO; +pub const __PREFIX_MAX: _bindgen_ty_65 = _bindgen_ty_65::__PREFIX_MAX; +pub const TCA_UNSPEC: _bindgen_ty_66 = _bindgen_ty_66::TCA_UNSPEC; +pub const TCA_KIND: _bindgen_ty_66 = _bindgen_ty_66::TCA_KIND; +pub const TCA_OPTIONS: _bindgen_ty_66 = _bindgen_ty_66::TCA_OPTIONS; +pub const TCA_STATS: _bindgen_ty_66 = _bindgen_ty_66::TCA_STATS; +pub const TCA_XSTATS: _bindgen_ty_66 = _bindgen_ty_66::TCA_XSTATS; +pub const TCA_RATE: _bindgen_ty_66 = _bindgen_ty_66::TCA_RATE; +pub const TCA_FCNT: _bindgen_ty_66 = _bindgen_ty_66::TCA_FCNT; +pub const TCA_STATS2: _bindgen_ty_66 = _bindgen_ty_66::TCA_STATS2; +pub const TCA_STAB: _bindgen_ty_66 = _bindgen_ty_66::TCA_STAB; +pub const TCA_PAD: _bindgen_ty_66 = _bindgen_ty_66::TCA_PAD; +pub const TCA_DUMP_INVISIBLE: _bindgen_ty_66 = _bindgen_ty_66::TCA_DUMP_INVISIBLE; +pub const TCA_CHAIN: _bindgen_ty_66 = _bindgen_ty_66::TCA_CHAIN; +pub const TCA_HW_OFFLOAD: _bindgen_ty_66 = _bindgen_ty_66::TCA_HW_OFFLOAD; +pub const TCA_INGRESS_BLOCK: _bindgen_ty_66 = _bindgen_ty_66::TCA_INGRESS_BLOCK; +pub const TCA_EGRESS_BLOCK: _bindgen_ty_66 = _bindgen_ty_66::TCA_EGRESS_BLOCK; +pub const TCA_DUMP_FLAGS: _bindgen_ty_66 = _bindgen_ty_66::TCA_DUMP_FLAGS; +pub const TCA_EXT_WARN_MSG: _bindgen_ty_66 = _bindgen_ty_66::TCA_EXT_WARN_MSG; +pub const __TCA_MAX: _bindgen_ty_66 = _bindgen_ty_66::__TCA_MAX; +pub const NDUSEROPT_UNSPEC: _bindgen_ty_67 = _bindgen_ty_67::NDUSEROPT_UNSPEC; +pub const NDUSEROPT_SRCADDR: _bindgen_ty_67 = _bindgen_ty_67::NDUSEROPT_SRCADDR; +pub const __NDUSEROPT_MAX: _bindgen_ty_67 = _bindgen_ty_67::__NDUSEROPT_MAX; +pub const TCA_ROOT_UNSPEC: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_UNSPEC; +pub const TCA_ROOT_TAB: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_TAB; +pub const TCA_ROOT_FLAGS: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_FLAGS; +pub const TCA_ROOT_COUNT: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_COUNT; +pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_TIME_DELTA; +pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_EXT_WARN_MSG; +pub const __TCA_ROOT_MAX: _bindgen_ty_68 = _bindgen_ty_68::__TCA_ROOT_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nlmsgerr_attrs { +NLMSGERR_ATTR_UNUSED = 0, +NLMSGERR_ATTR_MSG = 1, +NLMSGERR_ATTR_OFFS = 2, +NLMSGERR_ATTR_COOKIE = 3, +NLMSGERR_ATTR_POLICY = 4, +NLMSGERR_ATTR_MISS_TYPE = 5, +NLMSGERR_ATTR_MISS_NEST = 6, +__NLMSGERR_ATTR_MAX = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl_mmap_status { +NL_MMAP_STATUS_UNUSED = 0, +NL_MMAP_STATUS_RESERVED = 1, +NL_MMAP_STATUS_VALID = 2, +NL_MMAP_STATUS_COPY = 3, +NL_MMAP_STATUS_SKIP = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +NETLINK_UNCONNECTED = 0, +NETLINK_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_attribute_type { +NL_ATTR_TYPE_INVALID = 0, +NL_ATTR_TYPE_FLAG = 1, +NL_ATTR_TYPE_U8 = 2, +NL_ATTR_TYPE_U16 = 3, +NL_ATTR_TYPE_U32 = 4, +NL_ATTR_TYPE_U64 = 5, +NL_ATTR_TYPE_S8 = 6, +NL_ATTR_TYPE_S16 = 7, +NL_ATTR_TYPE_S32 = 8, +NL_ATTR_TYPE_S64 = 9, +NL_ATTR_TYPE_BINARY = 10, +NL_ATTR_TYPE_STRING = 11, +NL_ATTR_TYPE_NUL_STRING = 12, +NL_ATTR_TYPE_NESTED = 13, +NL_ATTR_TYPE_NESTED_ARRAY = 14, +NL_ATTR_TYPE_BITFIELD32 = 15, +NL_ATTR_TYPE_SINT = 16, +NL_ATTR_TYPE_UINT = 17, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_policy_type_attr { +NL_POLICY_TYPE_ATTR_UNSPEC = 0, +NL_POLICY_TYPE_ATTR_TYPE = 1, +NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, +NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, +NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, +NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, +NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, +NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, +NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, +NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, +NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, +NL_POLICY_TYPE_ATTR_PAD = 11, +NL_POLICY_TYPE_ATTR_MASK = 12, +__NL_POLICY_TYPE_ATTR_MAX = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_commands { +NL80211_CMD_UNSPEC = 0, +NL80211_CMD_GET_WIPHY = 1, +NL80211_CMD_SET_WIPHY = 2, +NL80211_CMD_NEW_WIPHY = 3, +NL80211_CMD_DEL_WIPHY = 4, +NL80211_CMD_GET_INTERFACE = 5, +NL80211_CMD_SET_INTERFACE = 6, +NL80211_CMD_NEW_INTERFACE = 7, +NL80211_CMD_DEL_INTERFACE = 8, +NL80211_CMD_GET_KEY = 9, +NL80211_CMD_SET_KEY = 10, +NL80211_CMD_NEW_KEY = 11, +NL80211_CMD_DEL_KEY = 12, +NL80211_CMD_GET_BEACON = 13, +NL80211_CMD_SET_BEACON = 14, +NL80211_CMD_START_AP = 15, +NL80211_CMD_STOP_AP = 16, +NL80211_CMD_GET_STATION = 17, +NL80211_CMD_SET_STATION = 18, +NL80211_CMD_NEW_STATION = 19, +NL80211_CMD_DEL_STATION = 20, +NL80211_CMD_GET_MPATH = 21, +NL80211_CMD_SET_MPATH = 22, +NL80211_CMD_NEW_MPATH = 23, +NL80211_CMD_DEL_MPATH = 24, +NL80211_CMD_SET_BSS = 25, +NL80211_CMD_SET_REG = 26, +NL80211_CMD_REQ_SET_REG = 27, +NL80211_CMD_GET_MESH_CONFIG = 28, +NL80211_CMD_SET_MESH_CONFIG = 29, +NL80211_CMD_SET_MGMT_EXTRA_IE = 30, +NL80211_CMD_GET_REG = 31, +NL80211_CMD_GET_SCAN = 32, +NL80211_CMD_TRIGGER_SCAN = 33, +NL80211_CMD_NEW_SCAN_RESULTS = 34, +NL80211_CMD_SCAN_ABORTED = 35, +NL80211_CMD_REG_CHANGE = 36, +NL80211_CMD_AUTHENTICATE = 37, +NL80211_CMD_ASSOCIATE = 38, +NL80211_CMD_DEAUTHENTICATE = 39, +NL80211_CMD_DISASSOCIATE = 40, +NL80211_CMD_MICHAEL_MIC_FAILURE = 41, +NL80211_CMD_REG_BEACON_HINT = 42, +NL80211_CMD_JOIN_IBSS = 43, +NL80211_CMD_LEAVE_IBSS = 44, +NL80211_CMD_TESTMODE = 45, +NL80211_CMD_CONNECT = 46, +NL80211_CMD_ROAM = 47, +NL80211_CMD_DISCONNECT = 48, +NL80211_CMD_SET_WIPHY_NETNS = 49, +NL80211_CMD_GET_SURVEY = 50, +NL80211_CMD_NEW_SURVEY_RESULTS = 51, +NL80211_CMD_SET_PMKSA = 52, +NL80211_CMD_DEL_PMKSA = 53, +NL80211_CMD_FLUSH_PMKSA = 54, +NL80211_CMD_REMAIN_ON_CHANNEL = 55, +NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL = 56, +NL80211_CMD_SET_TX_BITRATE_MASK = 57, +NL80211_CMD_REGISTER_FRAME = 58, +NL80211_CMD_FRAME = 59, +NL80211_CMD_FRAME_TX_STATUS = 60, +NL80211_CMD_SET_POWER_SAVE = 61, +NL80211_CMD_GET_POWER_SAVE = 62, +NL80211_CMD_SET_CQM = 63, +NL80211_CMD_NOTIFY_CQM = 64, +NL80211_CMD_SET_CHANNEL = 65, +NL80211_CMD_SET_WDS_PEER = 66, +NL80211_CMD_FRAME_WAIT_CANCEL = 67, +NL80211_CMD_JOIN_MESH = 68, +NL80211_CMD_LEAVE_MESH = 69, +NL80211_CMD_UNPROT_DEAUTHENTICATE = 70, +NL80211_CMD_UNPROT_DISASSOCIATE = 71, +NL80211_CMD_NEW_PEER_CANDIDATE = 72, +NL80211_CMD_GET_WOWLAN = 73, +NL80211_CMD_SET_WOWLAN = 74, +NL80211_CMD_START_SCHED_SCAN = 75, +NL80211_CMD_STOP_SCHED_SCAN = 76, +NL80211_CMD_SCHED_SCAN_RESULTS = 77, +NL80211_CMD_SCHED_SCAN_STOPPED = 78, +NL80211_CMD_SET_REKEY_OFFLOAD = 79, +NL80211_CMD_PMKSA_CANDIDATE = 80, +NL80211_CMD_TDLS_OPER = 81, +NL80211_CMD_TDLS_MGMT = 82, +NL80211_CMD_UNEXPECTED_FRAME = 83, +NL80211_CMD_PROBE_CLIENT = 84, +NL80211_CMD_REGISTER_BEACONS = 85, +NL80211_CMD_UNEXPECTED_4ADDR_FRAME = 86, +NL80211_CMD_SET_NOACK_MAP = 87, +NL80211_CMD_CH_SWITCH_NOTIFY = 88, +NL80211_CMD_START_P2P_DEVICE = 89, +NL80211_CMD_STOP_P2P_DEVICE = 90, +NL80211_CMD_CONN_FAILED = 91, +NL80211_CMD_SET_MCAST_RATE = 92, +NL80211_CMD_SET_MAC_ACL = 93, +NL80211_CMD_RADAR_DETECT = 94, +NL80211_CMD_GET_PROTOCOL_FEATURES = 95, +NL80211_CMD_UPDATE_FT_IES = 96, +NL80211_CMD_FT_EVENT = 97, +NL80211_CMD_CRIT_PROTOCOL_START = 98, +NL80211_CMD_CRIT_PROTOCOL_STOP = 99, +NL80211_CMD_GET_COALESCE = 100, +NL80211_CMD_SET_COALESCE = 101, +NL80211_CMD_CHANNEL_SWITCH = 102, +NL80211_CMD_VENDOR = 103, +NL80211_CMD_SET_QOS_MAP = 104, +NL80211_CMD_ADD_TX_TS = 105, +NL80211_CMD_DEL_TX_TS = 106, +NL80211_CMD_GET_MPP = 107, +NL80211_CMD_JOIN_OCB = 108, +NL80211_CMD_LEAVE_OCB = 109, +NL80211_CMD_CH_SWITCH_STARTED_NOTIFY = 110, +NL80211_CMD_TDLS_CHANNEL_SWITCH = 111, +NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH = 112, +NL80211_CMD_WIPHY_REG_CHANGE = 113, +NL80211_CMD_ABORT_SCAN = 114, +NL80211_CMD_START_NAN = 115, +NL80211_CMD_STOP_NAN = 116, +NL80211_CMD_ADD_NAN_FUNCTION = 117, +NL80211_CMD_DEL_NAN_FUNCTION = 118, +NL80211_CMD_CHANGE_NAN_CONFIG = 119, +NL80211_CMD_NAN_MATCH = 120, +NL80211_CMD_SET_MULTICAST_TO_UNICAST = 121, +NL80211_CMD_UPDATE_CONNECT_PARAMS = 122, +NL80211_CMD_SET_PMK = 123, +NL80211_CMD_DEL_PMK = 124, +NL80211_CMD_PORT_AUTHORIZED = 125, +NL80211_CMD_RELOAD_REGDB = 126, +NL80211_CMD_EXTERNAL_AUTH = 127, +NL80211_CMD_STA_OPMODE_CHANGED = 128, +NL80211_CMD_CONTROL_PORT_FRAME = 129, +NL80211_CMD_GET_FTM_RESPONDER_STATS = 130, +NL80211_CMD_PEER_MEASUREMENT_START = 131, +NL80211_CMD_PEER_MEASUREMENT_RESULT = 132, +NL80211_CMD_PEER_MEASUREMENT_COMPLETE = 133, +NL80211_CMD_NOTIFY_RADAR = 134, +NL80211_CMD_UPDATE_OWE_INFO = 135, +NL80211_CMD_PROBE_MESH_LINK = 136, +NL80211_CMD_SET_TID_CONFIG = 137, +NL80211_CMD_UNPROT_BEACON = 138, +NL80211_CMD_CONTROL_PORT_FRAME_TX_STATUS = 139, +NL80211_CMD_SET_SAR_SPECS = 140, +NL80211_CMD_OBSS_COLOR_COLLISION = 141, +NL80211_CMD_COLOR_CHANGE_REQUEST = 142, +NL80211_CMD_COLOR_CHANGE_STARTED = 143, +NL80211_CMD_COLOR_CHANGE_ABORTED = 144, +NL80211_CMD_COLOR_CHANGE_COMPLETED = 145, +NL80211_CMD_SET_FILS_AAD = 146, +NL80211_CMD_ASSOC_COMEBACK = 147, +NL80211_CMD_ADD_LINK = 148, +NL80211_CMD_REMOVE_LINK = 149, +NL80211_CMD_ADD_LINK_STA = 150, +NL80211_CMD_MODIFY_LINK_STA = 151, +NL80211_CMD_REMOVE_LINK_STA = 152, +NL80211_CMD_SET_HW_TIMESTAMP = 153, +NL80211_CMD_LINKS_REMOVED = 154, +NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, +NL80211_CMD_ASSOC_MLO_RECONF = 156, +NL80211_CMD_EPCS_CFG = 157, +__NL80211_CMD_AFTER_LAST = 158, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_attrs { +NL80211_ATTR_UNSPEC = 0, +NL80211_ATTR_WIPHY = 1, +NL80211_ATTR_WIPHY_NAME = 2, +NL80211_ATTR_IFINDEX = 3, +NL80211_ATTR_IFNAME = 4, +NL80211_ATTR_IFTYPE = 5, +NL80211_ATTR_MAC = 6, +NL80211_ATTR_KEY_DATA = 7, +NL80211_ATTR_KEY_IDX = 8, +NL80211_ATTR_KEY_CIPHER = 9, +NL80211_ATTR_KEY_SEQ = 10, +NL80211_ATTR_KEY_DEFAULT = 11, +NL80211_ATTR_BEACON_INTERVAL = 12, +NL80211_ATTR_DTIM_PERIOD = 13, +NL80211_ATTR_BEACON_HEAD = 14, +NL80211_ATTR_BEACON_TAIL = 15, +NL80211_ATTR_STA_AID = 16, +NL80211_ATTR_STA_FLAGS = 17, +NL80211_ATTR_STA_LISTEN_INTERVAL = 18, +NL80211_ATTR_STA_SUPPORTED_RATES = 19, +NL80211_ATTR_STA_VLAN = 20, +NL80211_ATTR_STA_INFO = 21, +NL80211_ATTR_WIPHY_BANDS = 22, +NL80211_ATTR_MNTR_FLAGS = 23, +NL80211_ATTR_MESH_ID = 24, +NL80211_ATTR_STA_PLINK_ACTION = 25, +NL80211_ATTR_MPATH_NEXT_HOP = 26, +NL80211_ATTR_MPATH_INFO = 27, +NL80211_ATTR_BSS_CTS_PROT = 28, +NL80211_ATTR_BSS_SHORT_PREAMBLE = 29, +NL80211_ATTR_BSS_SHORT_SLOT_TIME = 30, +NL80211_ATTR_HT_CAPABILITY = 31, +NL80211_ATTR_SUPPORTED_IFTYPES = 32, +NL80211_ATTR_REG_ALPHA2 = 33, +NL80211_ATTR_REG_RULES = 34, +NL80211_ATTR_MESH_CONFIG = 35, +NL80211_ATTR_BSS_BASIC_RATES = 36, +NL80211_ATTR_WIPHY_TXQ_PARAMS = 37, +NL80211_ATTR_WIPHY_FREQ = 38, +NL80211_ATTR_WIPHY_CHANNEL_TYPE = 39, +NL80211_ATTR_KEY_DEFAULT_MGMT = 40, +NL80211_ATTR_MGMT_SUBTYPE = 41, +NL80211_ATTR_IE = 42, +NL80211_ATTR_MAX_NUM_SCAN_SSIDS = 43, +NL80211_ATTR_SCAN_FREQUENCIES = 44, +NL80211_ATTR_SCAN_SSIDS = 45, +NL80211_ATTR_GENERATION = 46, +NL80211_ATTR_BSS = 47, +NL80211_ATTR_REG_INITIATOR = 48, +NL80211_ATTR_REG_TYPE = 49, +NL80211_ATTR_SUPPORTED_COMMANDS = 50, +NL80211_ATTR_FRAME = 51, +NL80211_ATTR_SSID = 52, +NL80211_ATTR_AUTH_TYPE = 53, +NL80211_ATTR_REASON_CODE = 54, +NL80211_ATTR_KEY_TYPE = 55, +NL80211_ATTR_MAX_SCAN_IE_LEN = 56, +NL80211_ATTR_CIPHER_SUITES = 57, +NL80211_ATTR_FREQ_BEFORE = 58, +NL80211_ATTR_FREQ_AFTER = 59, +NL80211_ATTR_FREQ_FIXED = 60, +NL80211_ATTR_WIPHY_RETRY_SHORT = 61, +NL80211_ATTR_WIPHY_RETRY_LONG = 62, +NL80211_ATTR_WIPHY_FRAG_THRESHOLD = 63, +NL80211_ATTR_WIPHY_RTS_THRESHOLD = 64, +NL80211_ATTR_TIMED_OUT = 65, +NL80211_ATTR_USE_MFP = 66, +NL80211_ATTR_STA_FLAGS2 = 67, +NL80211_ATTR_CONTROL_PORT = 68, +NL80211_ATTR_TESTDATA = 69, +NL80211_ATTR_PRIVACY = 70, +NL80211_ATTR_DISCONNECTED_BY_AP = 71, +NL80211_ATTR_STATUS_CODE = 72, +NL80211_ATTR_CIPHER_SUITES_PAIRWISE = 73, +NL80211_ATTR_CIPHER_SUITE_GROUP = 74, +NL80211_ATTR_WPA_VERSIONS = 75, +NL80211_ATTR_AKM_SUITES = 76, +NL80211_ATTR_REQ_IE = 77, +NL80211_ATTR_RESP_IE = 78, +NL80211_ATTR_PREV_BSSID = 79, +NL80211_ATTR_KEY = 80, +NL80211_ATTR_KEYS = 81, +NL80211_ATTR_PID = 82, +NL80211_ATTR_4ADDR = 83, +NL80211_ATTR_SURVEY_INFO = 84, +NL80211_ATTR_PMKID = 85, +NL80211_ATTR_MAX_NUM_PMKIDS = 86, +NL80211_ATTR_DURATION = 87, +NL80211_ATTR_COOKIE = 88, +NL80211_ATTR_WIPHY_COVERAGE_CLASS = 89, +NL80211_ATTR_TX_RATES = 90, +NL80211_ATTR_FRAME_MATCH = 91, +NL80211_ATTR_ACK = 92, +NL80211_ATTR_PS_STATE = 93, +NL80211_ATTR_CQM = 94, +NL80211_ATTR_LOCAL_STATE_CHANGE = 95, +NL80211_ATTR_AP_ISOLATE = 96, +NL80211_ATTR_WIPHY_TX_POWER_SETTING = 97, +NL80211_ATTR_WIPHY_TX_POWER_LEVEL = 98, +NL80211_ATTR_TX_FRAME_TYPES = 99, +NL80211_ATTR_RX_FRAME_TYPES = 100, +NL80211_ATTR_FRAME_TYPE = 101, +NL80211_ATTR_CONTROL_PORT_ETHERTYPE = 102, +NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT = 103, +NL80211_ATTR_SUPPORT_IBSS_RSN = 104, +NL80211_ATTR_WIPHY_ANTENNA_TX = 105, +NL80211_ATTR_WIPHY_ANTENNA_RX = 106, +NL80211_ATTR_MCAST_RATE = 107, +NL80211_ATTR_OFFCHANNEL_TX_OK = 108, +NL80211_ATTR_BSS_HT_OPMODE = 109, +NL80211_ATTR_KEY_DEFAULT_TYPES = 110, +NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION = 111, +NL80211_ATTR_MESH_SETUP = 112, +NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX = 113, +NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX = 114, +NL80211_ATTR_SUPPORT_MESH_AUTH = 115, +NL80211_ATTR_STA_PLINK_STATE = 116, +NL80211_ATTR_WOWLAN_TRIGGERS = 117, +NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED = 118, +NL80211_ATTR_SCHED_SCAN_INTERVAL = 119, +NL80211_ATTR_INTERFACE_COMBINATIONS = 120, +NL80211_ATTR_SOFTWARE_IFTYPES = 121, +NL80211_ATTR_REKEY_DATA = 122, +NL80211_ATTR_MAX_NUM_SCHED_SCAN_SSIDS = 123, +NL80211_ATTR_MAX_SCHED_SCAN_IE_LEN = 124, +NL80211_ATTR_SCAN_SUPP_RATES = 125, +NL80211_ATTR_HIDDEN_SSID = 126, +NL80211_ATTR_IE_PROBE_RESP = 127, +NL80211_ATTR_IE_ASSOC_RESP = 128, +NL80211_ATTR_STA_WME = 129, +NL80211_ATTR_SUPPORT_AP_UAPSD = 130, +NL80211_ATTR_ROAM_SUPPORT = 131, +NL80211_ATTR_SCHED_SCAN_MATCH = 132, +NL80211_ATTR_MAX_MATCH_SETS = 133, +NL80211_ATTR_PMKSA_CANDIDATE = 134, +NL80211_ATTR_TX_NO_CCK_RATE = 135, +NL80211_ATTR_TDLS_ACTION = 136, +NL80211_ATTR_TDLS_DIALOG_TOKEN = 137, +NL80211_ATTR_TDLS_OPERATION = 138, +NL80211_ATTR_TDLS_SUPPORT = 139, +NL80211_ATTR_TDLS_EXTERNAL_SETUP = 140, +NL80211_ATTR_DEVICE_AP_SME = 141, +NL80211_ATTR_DONT_WAIT_FOR_ACK = 142, +NL80211_ATTR_FEATURE_FLAGS = 143, +NL80211_ATTR_PROBE_RESP_OFFLOAD = 144, +NL80211_ATTR_PROBE_RESP = 145, +NL80211_ATTR_DFS_REGION = 146, +NL80211_ATTR_DISABLE_HT = 147, +NL80211_ATTR_HT_CAPABILITY_MASK = 148, +NL80211_ATTR_NOACK_MAP = 149, +NL80211_ATTR_INACTIVITY_TIMEOUT = 150, +NL80211_ATTR_RX_SIGNAL_DBM = 151, +NL80211_ATTR_BG_SCAN_PERIOD = 152, +NL80211_ATTR_WDEV = 153, +NL80211_ATTR_USER_REG_HINT_TYPE = 154, +NL80211_ATTR_CONN_FAILED_REASON = 155, +NL80211_ATTR_AUTH_DATA = 156, +NL80211_ATTR_VHT_CAPABILITY = 157, +NL80211_ATTR_SCAN_FLAGS = 158, +NL80211_ATTR_CHANNEL_WIDTH = 159, +NL80211_ATTR_CENTER_FREQ1 = 160, +NL80211_ATTR_CENTER_FREQ2 = 161, +NL80211_ATTR_P2P_CTWINDOW = 162, +NL80211_ATTR_P2P_OPPPS = 163, +NL80211_ATTR_LOCAL_MESH_POWER_MODE = 164, +NL80211_ATTR_ACL_POLICY = 165, +NL80211_ATTR_MAC_ADDRS = 166, +NL80211_ATTR_MAC_ACL_MAX = 167, +NL80211_ATTR_RADAR_EVENT = 168, +NL80211_ATTR_EXT_CAPA = 169, +NL80211_ATTR_EXT_CAPA_MASK = 170, +NL80211_ATTR_STA_CAPABILITY = 171, +NL80211_ATTR_STA_EXT_CAPABILITY = 172, +NL80211_ATTR_PROTOCOL_FEATURES = 173, +NL80211_ATTR_SPLIT_WIPHY_DUMP = 174, +NL80211_ATTR_DISABLE_VHT = 175, +NL80211_ATTR_VHT_CAPABILITY_MASK = 176, +NL80211_ATTR_MDID = 177, +NL80211_ATTR_IE_RIC = 178, +NL80211_ATTR_CRIT_PROT_ID = 179, +NL80211_ATTR_MAX_CRIT_PROT_DURATION = 180, +NL80211_ATTR_PEER_AID = 181, +NL80211_ATTR_COALESCE_RULE = 182, +NL80211_ATTR_CH_SWITCH_COUNT = 183, +NL80211_ATTR_CH_SWITCH_BLOCK_TX = 184, +NL80211_ATTR_CSA_IES = 185, +NL80211_ATTR_CNTDWN_OFFS_BEACON = 186, +NL80211_ATTR_CNTDWN_OFFS_PRESP = 187, +NL80211_ATTR_RXMGMT_FLAGS = 188, +NL80211_ATTR_STA_SUPPORTED_CHANNELS = 189, +NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES = 190, +NL80211_ATTR_HANDLE_DFS = 191, +NL80211_ATTR_SUPPORT_5_MHZ = 192, +NL80211_ATTR_SUPPORT_10_MHZ = 193, +NL80211_ATTR_OPMODE_NOTIF = 194, +NL80211_ATTR_VENDOR_ID = 195, +NL80211_ATTR_VENDOR_SUBCMD = 196, +NL80211_ATTR_VENDOR_DATA = 197, +NL80211_ATTR_VENDOR_EVENTS = 198, +NL80211_ATTR_QOS_MAP = 199, +NL80211_ATTR_MAC_HINT = 200, +NL80211_ATTR_WIPHY_FREQ_HINT = 201, +NL80211_ATTR_MAX_AP_ASSOC_STA = 202, +NL80211_ATTR_TDLS_PEER_CAPABILITY = 203, +NL80211_ATTR_SOCKET_OWNER = 204, +NL80211_ATTR_CSA_C_OFFSETS_TX = 205, +NL80211_ATTR_MAX_CSA_COUNTERS = 206, +NL80211_ATTR_TDLS_INITIATOR = 207, +NL80211_ATTR_USE_RRM = 208, +NL80211_ATTR_WIPHY_DYN_ACK = 209, +NL80211_ATTR_TSID = 210, +NL80211_ATTR_USER_PRIO = 211, +NL80211_ATTR_ADMITTED_TIME = 212, +NL80211_ATTR_SMPS_MODE = 213, +NL80211_ATTR_OPER_CLASS = 214, +NL80211_ATTR_MAC_MASK = 215, +NL80211_ATTR_WIPHY_SELF_MANAGED_REG = 216, +NL80211_ATTR_EXT_FEATURES = 217, +NL80211_ATTR_SURVEY_RADIO_STATS = 218, +NL80211_ATTR_NETNS_FD = 219, +NL80211_ATTR_SCHED_SCAN_DELAY = 220, +NL80211_ATTR_REG_INDOOR = 221, +NL80211_ATTR_MAX_NUM_SCHED_SCAN_PLANS = 222, +NL80211_ATTR_MAX_SCAN_PLAN_INTERVAL = 223, +NL80211_ATTR_MAX_SCAN_PLAN_ITERATIONS = 224, +NL80211_ATTR_SCHED_SCAN_PLANS = 225, +NL80211_ATTR_PBSS = 226, +NL80211_ATTR_BSS_SELECT = 227, +NL80211_ATTR_STA_SUPPORT_P2P_PS = 228, +NL80211_ATTR_PAD = 229, +NL80211_ATTR_IFTYPE_EXT_CAPA = 230, +NL80211_ATTR_MU_MIMO_GROUP_DATA = 231, +NL80211_ATTR_MU_MIMO_FOLLOW_MAC_ADDR = 232, +NL80211_ATTR_SCAN_START_TIME_TSF = 233, +NL80211_ATTR_SCAN_START_TIME_TSF_BSSID = 234, +NL80211_ATTR_MEASUREMENT_DURATION = 235, +NL80211_ATTR_MEASUREMENT_DURATION_MANDATORY = 236, +NL80211_ATTR_MESH_PEER_AID = 237, +NL80211_ATTR_NAN_MASTER_PREF = 238, +NL80211_ATTR_BANDS = 239, +NL80211_ATTR_NAN_FUNC = 240, +NL80211_ATTR_NAN_MATCH = 241, +NL80211_ATTR_FILS_KEK = 242, +NL80211_ATTR_FILS_NONCES = 243, +NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED = 244, +NL80211_ATTR_BSSID = 245, +NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI = 246, +NL80211_ATTR_SCHED_SCAN_RSSI_ADJUST = 247, +NL80211_ATTR_TIMEOUT_REASON = 248, +NL80211_ATTR_FILS_ERP_USERNAME = 249, +NL80211_ATTR_FILS_ERP_REALM = 250, +NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM = 251, +NL80211_ATTR_FILS_ERP_RRK = 252, +NL80211_ATTR_FILS_CACHE_ID = 253, +NL80211_ATTR_PMK = 254, +NL80211_ATTR_SCHED_SCAN_MULTI = 255, +NL80211_ATTR_SCHED_SCAN_MAX_REQS = 256, +NL80211_ATTR_WANT_1X_4WAY_HS = 257, +NL80211_ATTR_PMKR0_NAME = 258, +NL80211_ATTR_PORT_AUTHORIZED = 259, +NL80211_ATTR_EXTERNAL_AUTH_ACTION = 260, +NL80211_ATTR_EXTERNAL_AUTH_SUPPORT = 261, +NL80211_ATTR_NSS = 262, +NL80211_ATTR_ACK_SIGNAL = 263, +NL80211_ATTR_CONTROL_PORT_OVER_NL80211 = 264, +NL80211_ATTR_TXQ_STATS = 265, +NL80211_ATTR_TXQ_LIMIT = 266, +NL80211_ATTR_TXQ_MEMORY_LIMIT = 267, +NL80211_ATTR_TXQ_QUANTUM = 268, +NL80211_ATTR_HE_CAPABILITY = 269, +NL80211_ATTR_FTM_RESPONDER = 270, +NL80211_ATTR_FTM_RESPONDER_STATS = 271, +NL80211_ATTR_TIMEOUT = 272, +NL80211_ATTR_PEER_MEASUREMENTS = 273, +NL80211_ATTR_AIRTIME_WEIGHT = 274, +NL80211_ATTR_STA_TX_POWER_SETTING = 275, +NL80211_ATTR_STA_TX_POWER = 276, +NL80211_ATTR_SAE_PASSWORD = 277, +NL80211_ATTR_TWT_RESPONDER = 278, +NL80211_ATTR_HE_OBSS_PD = 279, +NL80211_ATTR_WIPHY_EDMG_CHANNELS = 280, +NL80211_ATTR_WIPHY_EDMG_BW_CONFIG = 281, +NL80211_ATTR_VLAN_ID = 282, +NL80211_ATTR_HE_BSS_COLOR = 283, +NL80211_ATTR_IFTYPE_AKM_SUITES = 284, +NL80211_ATTR_TID_CONFIG = 285, +NL80211_ATTR_CONTROL_PORT_NO_PREAUTH = 286, +NL80211_ATTR_PMK_LIFETIME = 287, +NL80211_ATTR_PMK_REAUTH_THRESHOLD = 288, +NL80211_ATTR_RECEIVE_MULTICAST = 289, +NL80211_ATTR_WIPHY_FREQ_OFFSET = 290, +NL80211_ATTR_CENTER_FREQ1_OFFSET = 291, +NL80211_ATTR_SCAN_FREQ_KHZ = 292, +NL80211_ATTR_HE_6GHZ_CAPABILITY = 293, +NL80211_ATTR_FILS_DISCOVERY = 294, +NL80211_ATTR_UNSOL_BCAST_PROBE_RESP = 295, +NL80211_ATTR_S1G_CAPABILITY = 296, +NL80211_ATTR_S1G_CAPABILITY_MASK = 297, +NL80211_ATTR_SAE_PWE = 298, +NL80211_ATTR_RECONNECT_REQUESTED = 299, +NL80211_ATTR_SAR_SPEC = 300, +NL80211_ATTR_DISABLE_HE = 301, +NL80211_ATTR_OBSS_COLOR_BITMAP = 302, +NL80211_ATTR_COLOR_CHANGE_COUNT = 303, +NL80211_ATTR_COLOR_CHANGE_COLOR = 304, +NL80211_ATTR_COLOR_CHANGE_ELEMS = 305, +NL80211_ATTR_MBSSID_CONFIG = 306, +NL80211_ATTR_MBSSID_ELEMS = 307, +NL80211_ATTR_RADAR_BACKGROUND = 308, +NL80211_ATTR_AP_SETTINGS_FLAGS = 309, +NL80211_ATTR_EHT_CAPABILITY = 310, +NL80211_ATTR_DISABLE_EHT = 311, +NL80211_ATTR_MLO_LINKS = 312, +NL80211_ATTR_MLO_LINK_ID = 313, +NL80211_ATTR_MLD_ADDR = 314, +NL80211_ATTR_MLO_SUPPORT = 315, +NL80211_ATTR_MAX_NUM_AKM_SUITES = 316, +NL80211_ATTR_EML_CAPABILITY = 317, +NL80211_ATTR_MLD_CAPA_AND_OPS = 318, +NL80211_ATTR_TX_HW_TIMESTAMP = 319, +NL80211_ATTR_RX_HW_TIMESTAMP = 320, +NL80211_ATTR_TD_BITMAP = 321, +NL80211_ATTR_PUNCT_BITMAP = 322, +NL80211_ATTR_MAX_HW_TIMESTAMP_PEERS = 323, +NL80211_ATTR_HW_TIMESTAMP_ENABLED = 324, +NL80211_ATTR_EMA_RNR_ELEMS = 325, +NL80211_ATTR_MLO_LINK_DISABLED = 326, +NL80211_ATTR_BSS_DUMP_INCLUDE_USE_DATA = 327, +NL80211_ATTR_MLO_TTLM_DLINK = 328, +NL80211_ATTR_MLO_TTLM_ULINK = 329, +NL80211_ATTR_ASSOC_SPP_AMSDU = 330, +NL80211_ATTR_WIPHY_RADIOS = 331, +NL80211_ATTR_WIPHY_INTERFACE_COMBINATIONS = 332, +NL80211_ATTR_VIF_RADIO_MASK = 333, +NL80211_ATTR_SUPPORTED_SELECTORS = 334, +NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, +NL80211_ATTR_EPCS = 336, +NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +__NL80211_ATTR_AFTER_LAST = 338, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_iftype { +NL80211_IFTYPE_UNSPECIFIED = 0, +NL80211_IFTYPE_ADHOC = 1, +NL80211_IFTYPE_STATION = 2, +NL80211_IFTYPE_AP = 3, +NL80211_IFTYPE_AP_VLAN = 4, +NL80211_IFTYPE_WDS = 5, +NL80211_IFTYPE_MONITOR = 6, +NL80211_IFTYPE_MESH_POINT = 7, +NL80211_IFTYPE_P2P_CLIENT = 8, +NL80211_IFTYPE_P2P_GO = 9, +NL80211_IFTYPE_P2P_DEVICE = 10, +NL80211_IFTYPE_OCB = 11, +NL80211_IFTYPE_NAN = 12, +NUM_NL80211_IFTYPES = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_flags { +__NL80211_STA_FLAG_INVALID = 0, +NL80211_STA_FLAG_AUTHORIZED = 1, +NL80211_STA_FLAG_SHORT_PREAMBLE = 2, +NL80211_STA_FLAG_WME = 3, +NL80211_STA_FLAG_MFP = 4, +NL80211_STA_FLAG_AUTHENTICATED = 5, +NL80211_STA_FLAG_TDLS_PEER = 6, +NL80211_STA_FLAG_ASSOCIATED = 7, +NL80211_STA_FLAG_SPP_AMSDU = 8, +__NL80211_STA_FLAG_AFTER_LAST = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_p2p_ps_status { +NL80211_P2P_PS_UNSUPPORTED = 0, +NL80211_P2P_PS_SUPPORTED = 1, +NUM_NL80211_P2P_PS_STATUS = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_he_gi { +NL80211_RATE_INFO_HE_GI_0_8 = 0, +NL80211_RATE_INFO_HE_GI_1_6 = 1, +NL80211_RATE_INFO_HE_GI_3_2 = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_he_ltf { +NL80211_RATE_INFO_HE_1XLTF = 0, +NL80211_RATE_INFO_HE_2XLTF = 1, +NL80211_RATE_INFO_HE_4XLTF = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_he_ru_alloc { +NL80211_RATE_INFO_HE_RU_ALLOC_26 = 0, +NL80211_RATE_INFO_HE_RU_ALLOC_52 = 1, +NL80211_RATE_INFO_HE_RU_ALLOC_106 = 2, +NL80211_RATE_INFO_HE_RU_ALLOC_242 = 3, +NL80211_RATE_INFO_HE_RU_ALLOC_484 = 4, +NL80211_RATE_INFO_HE_RU_ALLOC_996 = 5, +NL80211_RATE_INFO_HE_RU_ALLOC_2x996 = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_gi { +NL80211_RATE_INFO_EHT_GI_0_8 = 0, +NL80211_RATE_INFO_EHT_GI_1_6 = 1, +NL80211_RATE_INFO_EHT_GI_3_2 = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ru_alloc { +NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, +NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, +NL80211_RATE_INFO_EHT_RU_ALLOC_52P26 = 2, +NL80211_RATE_INFO_EHT_RU_ALLOC_106 = 3, +NL80211_RATE_INFO_EHT_RU_ALLOC_106P26 = 4, +NL80211_RATE_INFO_EHT_RU_ALLOC_242 = 5, +NL80211_RATE_INFO_EHT_RU_ALLOC_484 = 6, +NL80211_RATE_INFO_EHT_RU_ALLOC_484P242 = 7, +NL80211_RATE_INFO_EHT_RU_ALLOC_996 = 8, +NL80211_RATE_INFO_EHT_RU_ALLOC_996P484 = 9, +NL80211_RATE_INFO_EHT_RU_ALLOC_996P484P242 = 10, +NL80211_RATE_INFO_EHT_RU_ALLOC_2x996 = 11, +NL80211_RATE_INFO_EHT_RU_ALLOC_2x996P484 = 12, +NL80211_RATE_INFO_EHT_RU_ALLOC_3x996 = 13, +NL80211_RATE_INFO_EHT_RU_ALLOC_3x996P484 = 14, +NL80211_RATE_INFO_EHT_RU_ALLOC_4x996 = 15, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_rate_info { +__NL80211_RATE_INFO_INVALID = 0, +NL80211_RATE_INFO_BITRATE = 1, +NL80211_RATE_INFO_MCS = 2, +NL80211_RATE_INFO_40_MHZ_WIDTH = 3, +NL80211_RATE_INFO_SHORT_GI = 4, +NL80211_RATE_INFO_BITRATE32 = 5, +NL80211_RATE_INFO_VHT_MCS = 6, +NL80211_RATE_INFO_VHT_NSS = 7, +NL80211_RATE_INFO_80_MHZ_WIDTH = 8, +NL80211_RATE_INFO_80P80_MHZ_WIDTH = 9, +NL80211_RATE_INFO_160_MHZ_WIDTH = 10, +NL80211_RATE_INFO_10_MHZ_WIDTH = 11, +NL80211_RATE_INFO_5_MHZ_WIDTH = 12, +NL80211_RATE_INFO_HE_MCS = 13, +NL80211_RATE_INFO_HE_NSS = 14, +NL80211_RATE_INFO_HE_GI = 15, +NL80211_RATE_INFO_HE_DCM = 16, +NL80211_RATE_INFO_HE_RU_ALLOC = 17, +NL80211_RATE_INFO_320_MHZ_WIDTH = 18, +NL80211_RATE_INFO_EHT_MCS = 19, +NL80211_RATE_INFO_EHT_NSS = 20, +NL80211_RATE_INFO_EHT_GI = 21, +NL80211_RATE_INFO_EHT_RU_ALLOC = 22, +NL80211_RATE_INFO_S1G_MCS = 23, +NL80211_RATE_INFO_S1G_NSS = 24, +NL80211_RATE_INFO_1_MHZ_WIDTH = 25, +NL80211_RATE_INFO_2_MHZ_WIDTH = 26, +NL80211_RATE_INFO_4_MHZ_WIDTH = 27, +NL80211_RATE_INFO_8_MHZ_WIDTH = 28, +NL80211_RATE_INFO_16_MHZ_WIDTH = 29, +__NL80211_RATE_INFO_AFTER_LAST = 30, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_bss_param { +__NL80211_STA_BSS_PARAM_INVALID = 0, +NL80211_STA_BSS_PARAM_CTS_PROT = 1, +NL80211_STA_BSS_PARAM_SHORT_PREAMBLE = 2, +NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME = 3, +NL80211_STA_BSS_PARAM_DTIM_PERIOD = 4, +NL80211_STA_BSS_PARAM_BEACON_INTERVAL = 5, +__NL80211_STA_BSS_PARAM_AFTER_LAST = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_info { +__NL80211_STA_INFO_INVALID = 0, +NL80211_STA_INFO_INACTIVE_TIME = 1, +NL80211_STA_INFO_RX_BYTES = 2, +NL80211_STA_INFO_TX_BYTES = 3, +NL80211_STA_INFO_LLID = 4, +NL80211_STA_INFO_PLID = 5, +NL80211_STA_INFO_PLINK_STATE = 6, +NL80211_STA_INFO_SIGNAL = 7, +NL80211_STA_INFO_TX_BITRATE = 8, +NL80211_STA_INFO_RX_PACKETS = 9, +NL80211_STA_INFO_TX_PACKETS = 10, +NL80211_STA_INFO_TX_RETRIES = 11, +NL80211_STA_INFO_TX_FAILED = 12, +NL80211_STA_INFO_SIGNAL_AVG = 13, +NL80211_STA_INFO_RX_BITRATE = 14, +NL80211_STA_INFO_BSS_PARAM = 15, +NL80211_STA_INFO_CONNECTED_TIME = 16, +NL80211_STA_INFO_STA_FLAGS = 17, +NL80211_STA_INFO_BEACON_LOSS = 18, +NL80211_STA_INFO_T_OFFSET = 19, +NL80211_STA_INFO_LOCAL_PM = 20, +NL80211_STA_INFO_PEER_PM = 21, +NL80211_STA_INFO_NONPEER_PM = 22, +NL80211_STA_INFO_RX_BYTES64 = 23, +NL80211_STA_INFO_TX_BYTES64 = 24, +NL80211_STA_INFO_CHAIN_SIGNAL = 25, +NL80211_STA_INFO_CHAIN_SIGNAL_AVG = 26, +NL80211_STA_INFO_EXPECTED_THROUGHPUT = 27, +NL80211_STA_INFO_RX_DROP_MISC = 28, +NL80211_STA_INFO_BEACON_RX = 29, +NL80211_STA_INFO_BEACON_SIGNAL_AVG = 30, +NL80211_STA_INFO_TID_STATS = 31, +NL80211_STA_INFO_RX_DURATION = 32, +NL80211_STA_INFO_PAD = 33, +NL80211_STA_INFO_ACK_SIGNAL = 34, +NL80211_STA_INFO_ACK_SIGNAL_AVG = 35, +NL80211_STA_INFO_RX_MPDUS = 36, +NL80211_STA_INFO_FCS_ERROR_COUNT = 37, +NL80211_STA_INFO_CONNECTED_TO_GATE = 38, +NL80211_STA_INFO_TX_DURATION = 39, +NL80211_STA_INFO_AIRTIME_WEIGHT = 40, +NL80211_STA_INFO_AIRTIME_LINK_METRIC = 41, +NL80211_STA_INFO_ASSOC_AT_BOOTTIME = 42, +NL80211_STA_INFO_CONNECTED_TO_AS = 43, +__NL80211_STA_INFO_AFTER_LAST = 44, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tid_stats { +__NL80211_TID_STATS_INVALID = 0, +NL80211_TID_STATS_RX_MSDU = 1, +NL80211_TID_STATS_TX_MSDU = 2, +NL80211_TID_STATS_TX_MSDU_RETRIES = 3, +NL80211_TID_STATS_TX_MSDU_FAILED = 4, +NL80211_TID_STATS_PAD = 5, +NL80211_TID_STATS_TXQ_STATS = 6, +NUM_NL80211_TID_STATS = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_txq_stats { +__NL80211_TXQ_STATS_INVALID = 0, +NL80211_TXQ_STATS_BACKLOG_BYTES = 1, +NL80211_TXQ_STATS_BACKLOG_PACKETS = 2, +NL80211_TXQ_STATS_FLOWS = 3, +NL80211_TXQ_STATS_DROPS = 4, +NL80211_TXQ_STATS_ECN_MARKS = 5, +NL80211_TXQ_STATS_OVERLIMIT = 6, +NL80211_TXQ_STATS_OVERMEMORY = 7, +NL80211_TXQ_STATS_COLLISIONS = 8, +NL80211_TXQ_STATS_TX_BYTES = 9, +NL80211_TXQ_STATS_TX_PACKETS = 10, +NL80211_TXQ_STATS_MAX_FLOWS = 11, +NUM_NL80211_TXQ_STATS = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mpath_flags { +NL80211_MPATH_FLAG_ACTIVE = 1, +NL80211_MPATH_FLAG_RESOLVING = 2, +NL80211_MPATH_FLAG_SN_VALID = 4, +NL80211_MPATH_FLAG_FIXED = 8, +NL80211_MPATH_FLAG_RESOLVED = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mpath_info { +__NL80211_MPATH_INFO_INVALID = 0, +NL80211_MPATH_INFO_FRAME_QLEN = 1, +NL80211_MPATH_INFO_SN = 2, +NL80211_MPATH_INFO_METRIC = 3, +NL80211_MPATH_INFO_EXPTIME = 4, +NL80211_MPATH_INFO_FLAGS = 5, +NL80211_MPATH_INFO_DISCOVERY_TIMEOUT = 6, +NL80211_MPATH_INFO_DISCOVERY_RETRIES = 7, +NL80211_MPATH_INFO_HOP_COUNT = 8, +NL80211_MPATH_INFO_PATH_CHANGE = 9, +__NL80211_MPATH_INFO_AFTER_LAST = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_band_iftype_attr { +__NL80211_BAND_IFTYPE_ATTR_INVALID = 0, +NL80211_BAND_IFTYPE_ATTR_IFTYPES = 1, +NL80211_BAND_IFTYPE_ATTR_HE_CAP_MAC = 2, +NL80211_BAND_IFTYPE_ATTR_HE_CAP_PHY = 3, +NL80211_BAND_IFTYPE_ATTR_HE_CAP_MCS_SET = 4, +NL80211_BAND_IFTYPE_ATTR_HE_CAP_PPE = 5, +NL80211_BAND_IFTYPE_ATTR_HE_6GHZ_CAPA = 6, +NL80211_BAND_IFTYPE_ATTR_VENDOR_ELEMS = 7, +NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, +NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, +NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, +NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_band_attr { +__NL80211_BAND_ATTR_INVALID = 0, +NL80211_BAND_ATTR_FREQS = 1, +NL80211_BAND_ATTR_RATES = 2, +NL80211_BAND_ATTR_HT_MCS_SET = 3, +NL80211_BAND_ATTR_HT_CAPA = 4, +NL80211_BAND_ATTR_HT_AMPDU_FACTOR = 5, +NL80211_BAND_ATTR_HT_AMPDU_DENSITY = 6, +NL80211_BAND_ATTR_VHT_MCS_SET = 7, +NL80211_BAND_ATTR_VHT_CAPA = 8, +NL80211_BAND_ATTR_IFTYPE_DATA = 9, +NL80211_BAND_ATTR_EDMG_CHANNELS = 10, +NL80211_BAND_ATTR_EDMG_BW_CONFIG = 11, +NL80211_BAND_ATTR_S1G_MCS_NSS_SET = 12, +NL80211_BAND_ATTR_S1G_CAPA = 13, +__NL80211_BAND_ATTR_AFTER_LAST = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wmm_rule { +__NL80211_WMMR_INVALID = 0, +NL80211_WMMR_CW_MIN = 1, +NL80211_WMMR_CW_MAX = 2, +NL80211_WMMR_AIFSN = 3, +NL80211_WMMR_TXOP = 4, +__NL80211_WMMR_LAST = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_frequency_attr { +__NL80211_FREQUENCY_ATTR_INVALID = 0, +NL80211_FREQUENCY_ATTR_FREQ = 1, +NL80211_FREQUENCY_ATTR_DISABLED = 2, +NL80211_FREQUENCY_ATTR_NO_IR = 3, +__NL80211_FREQUENCY_ATTR_NO_IBSS = 4, +NL80211_FREQUENCY_ATTR_RADAR = 5, +NL80211_FREQUENCY_ATTR_MAX_TX_POWER = 6, +NL80211_FREQUENCY_ATTR_DFS_STATE = 7, +NL80211_FREQUENCY_ATTR_DFS_TIME = 8, +NL80211_FREQUENCY_ATTR_NO_HT40_MINUS = 9, +NL80211_FREQUENCY_ATTR_NO_HT40_PLUS = 10, +NL80211_FREQUENCY_ATTR_NO_80MHZ = 11, +NL80211_FREQUENCY_ATTR_NO_160MHZ = 12, +NL80211_FREQUENCY_ATTR_DFS_CAC_TIME = 13, +NL80211_FREQUENCY_ATTR_INDOOR_ONLY = 14, +NL80211_FREQUENCY_ATTR_IR_CONCURRENT = 15, +NL80211_FREQUENCY_ATTR_NO_20MHZ = 16, +NL80211_FREQUENCY_ATTR_NO_10MHZ = 17, +NL80211_FREQUENCY_ATTR_WMM = 18, +NL80211_FREQUENCY_ATTR_NO_HE = 19, +NL80211_FREQUENCY_ATTR_OFFSET = 20, +NL80211_FREQUENCY_ATTR_1MHZ = 21, +NL80211_FREQUENCY_ATTR_2MHZ = 22, +NL80211_FREQUENCY_ATTR_4MHZ = 23, +NL80211_FREQUENCY_ATTR_8MHZ = 24, +NL80211_FREQUENCY_ATTR_16MHZ = 25, +NL80211_FREQUENCY_ATTR_NO_320MHZ = 26, +NL80211_FREQUENCY_ATTR_NO_EHT = 27, +NL80211_FREQUENCY_ATTR_PSD = 28, +NL80211_FREQUENCY_ATTR_DFS_CONCURRENT = 29, +NL80211_FREQUENCY_ATTR_NO_6GHZ_VLP_CLIENT = 30, +NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, +NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, +NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, +NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bitrate_attr { +__NL80211_BITRATE_ATTR_INVALID = 0, +NL80211_BITRATE_ATTR_RATE = 1, +NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE = 2, +__NL80211_BITRATE_ATTR_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_reg_initiator { +NL80211_REGDOM_SET_BY_CORE = 0, +NL80211_REGDOM_SET_BY_USER = 1, +NL80211_REGDOM_SET_BY_DRIVER = 2, +NL80211_REGDOM_SET_BY_COUNTRY_IE = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_reg_type { +NL80211_REGDOM_TYPE_COUNTRY = 0, +NL80211_REGDOM_TYPE_WORLD = 1, +NL80211_REGDOM_TYPE_CUSTOM_WORLD = 2, +NL80211_REGDOM_TYPE_INTERSECTION = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_reg_rule_attr { +__NL80211_REG_RULE_ATTR_INVALID = 0, +NL80211_ATTR_REG_RULE_FLAGS = 1, +NL80211_ATTR_FREQ_RANGE_START = 2, +NL80211_ATTR_FREQ_RANGE_END = 3, +NL80211_ATTR_FREQ_RANGE_MAX_BW = 4, +NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN = 5, +NL80211_ATTR_POWER_RULE_MAX_EIRP = 6, +NL80211_ATTR_DFS_CAC_TIME = 7, +NL80211_ATTR_POWER_RULE_PSD = 8, +__NL80211_REG_RULE_ATTR_AFTER_LAST = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sched_scan_match_attr { +__NL80211_SCHED_SCAN_MATCH_ATTR_INVALID = 0, +NL80211_SCHED_SCAN_MATCH_ATTR_SSID = 1, +NL80211_SCHED_SCAN_MATCH_ATTR_RSSI = 2, +NL80211_SCHED_SCAN_MATCH_ATTR_RELATIVE_RSSI = 3, +NL80211_SCHED_SCAN_MATCH_ATTR_RSSI_ADJUST = 4, +NL80211_SCHED_SCAN_MATCH_ATTR_BSSID = 5, +NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI = 6, +__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_reg_rule_flags { +NL80211_RRF_NO_OFDM = 1, +NL80211_RRF_NO_CCK = 2, +NL80211_RRF_NO_INDOOR = 4, +NL80211_RRF_NO_OUTDOOR = 8, +NL80211_RRF_DFS = 16, +NL80211_RRF_PTP_ONLY = 32, +NL80211_RRF_PTMP_ONLY = 64, +NL80211_RRF_NO_IR = 128, +__NL80211_RRF_NO_IBSS = 256, +NL80211_RRF_AUTO_BW = 2048, +NL80211_RRF_IR_CONCURRENT = 4096, +NL80211_RRF_NO_HT40MINUS = 8192, +NL80211_RRF_NO_HT40PLUS = 16384, +NL80211_RRF_NO_80MHZ = 32768, +NL80211_RRF_NO_160MHZ = 65536, +NL80211_RRF_NO_HE = 131072, +NL80211_RRF_NO_320MHZ = 262144, +NL80211_RRF_NO_EHT = 524288, +NL80211_RRF_PSD = 1048576, +NL80211_RRF_DFS_CONCURRENT = 2097152, +NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, +NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, +NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, +NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_dfs_regions { +NL80211_DFS_UNSET = 0, +NL80211_DFS_FCC = 1, +NL80211_DFS_ETSI = 2, +NL80211_DFS_JP = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_user_reg_hint_type { +NL80211_USER_REG_HINT_USER = 0, +NL80211_USER_REG_HINT_CELL_BASE = 1, +NL80211_USER_REG_HINT_INDOOR = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_survey_info { +__NL80211_SURVEY_INFO_INVALID = 0, +NL80211_SURVEY_INFO_FREQUENCY = 1, +NL80211_SURVEY_INFO_NOISE = 2, +NL80211_SURVEY_INFO_IN_USE = 3, +NL80211_SURVEY_INFO_TIME = 4, +NL80211_SURVEY_INFO_TIME_BUSY = 5, +NL80211_SURVEY_INFO_TIME_EXT_BUSY = 6, +NL80211_SURVEY_INFO_TIME_RX = 7, +NL80211_SURVEY_INFO_TIME_TX = 8, +NL80211_SURVEY_INFO_TIME_SCAN = 9, +NL80211_SURVEY_INFO_PAD = 10, +NL80211_SURVEY_INFO_TIME_BSS_RX = 11, +NL80211_SURVEY_INFO_FREQUENCY_OFFSET = 12, +__NL80211_SURVEY_INFO_AFTER_LAST = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mntr_flags { +__NL80211_MNTR_FLAG_INVALID = 0, +NL80211_MNTR_FLAG_FCSFAIL = 1, +NL80211_MNTR_FLAG_PLCPFAIL = 2, +NL80211_MNTR_FLAG_CONTROL = 3, +NL80211_MNTR_FLAG_OTHER_BSS = 4, +NL80211_MNTR_FLAG_COOK_FRAMES = 5, +NL80211_MNTR_FLAG_ACTIVE = 6, +NL80211_MNTR_FLAG_SKIP_TX = 7, +__NL80211_MNTR_FLAG_AFTER_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mesh_power_mode { +NL80211_MESH_POWER_UNKNOWN = 0, +NL80211_MESH_POWER_ACTIVE = 1, +NL80211_MESH_POWER_LIGHT_SLEEP = 2, +NL80211_MESH_POWER_DEEP_SLEEP = 3, +__NL80211_MESH_POWER_AFTER_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_meshconf_params { +__NL80211_MESHCONF_INVALID = 0, +NL80211_MESHCONF_RETRY_TIMEOUT = 1, +NL80211_MESHCONF_CONFIRM_TIMEOUT = 2, +NL80211_MESHCONF_HOLDING_TIMEOUT = 3, +NL80211_MESHCONF_MAX_PEER_LINKS = 4, +NL80211_MESHCONF_MAX_RETRIES = 5, +NL80211_MESHCONF_TTL = 6, +NL80211_MESHCONF_AUTO_OPEN_PLINKS = 7, +NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES = 8, +NL80211_MESHCONF_PATH_REFRESH_TIME = 9, +NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT = 10, +NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT = 11, +NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL = 12, +NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME = 13, +NL80211_MESHCONF_HWMP_ROOTMODE = 14, +NL80211_MESHCONF_ELEMENT_TTL = 15, +NL80211_MESHCONF_HWMP_RANN_INTERVAL = 16, +NL80211_MESHCONF_GATE_ANNOUNCEMENTS = 17, +NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL = 18, +NL80211_MESHCONF_FORWARDING = 19, +NL80211_MESHCONF_RSSI_THRESHOLD = 20, +NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR = 21, +NL80211_MESHCONF_HT_OPMODE = 22, +NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT = 23, +NL80211_MESHCONF_HWMP_ROOT_INTERVAL = 24, +NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL = 25, +NL80211_MESHCONF_POWER_MODE = 26, +NL80211_MESHCONF_AWAKE_WINDOW = 27, +NL80211_MESHCONF_PLINK_TIMEOUT = 28, +NL80211_MESHCONF_CONNECTED_TO_GATE = 29, +NL80211_MESHCONF_NOLEARN = 30, +NL80211_MESHCONF_CONNECTED_TO_AS = 31, +__NL80211_MESHCONF_ATTR_AFTER_LAST = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mesh_setup_params { +__NL80211_MESH_SETUP_INVALID = 0, +NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL = 1, +NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC = 2, +NL80211_MESH_SETUP_IE = 3, +NL80211_MESH_SETUP_USERSPACE_AUTH = 4, +NL80211_MESH_SETUP_USERSPACE_AMPE = 5, +NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC = 6, +NL80211_MESH_SETUP_USERSPACE_MPM = 7, +NL80211_MESH_SETUP_AUTH_PROTOCOL = 8, +__NL80211_MESH_SETUP_ATTR_AFTER_LAST = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_txq_attr { +__NL80211_TXQ_ATTR_INVALID = 0, +NL80211_TXQ_ATTR_AC = 1, +NL80211_TXQ_ATTR_TXOP = 2, +NL80211_TXQ_ATTR_CWMIN = 3, +NL80211_TXQ_ATTR_CWMAX = 4, +NL80211_TXQ_ATTR_AIFS = 5, +__NL80211_TXQ_ATTR_AFTER_LAST = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ac { +NL80211_AC_VO = 0, +NL80211_AC_VI = 1, +NL80211_AC_BE = 2, +NL80211_AC_BK = 3, +NL80211_NUM_ACS = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_channel_type { +NL80211_CHAN_NO_HT = 0, +NL80211_CHAN_HT20 = 1, +NL80211_CHAN_HT40MINUS = 2, +NL80211_CHAN_HT40PLUS = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_key_mode { +NL80211_KEY_RX_TX = 0, +NL80211_KEY_NO_TX = 1, +NL80211_KEY_SET_TX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_chan_width { +NL80211_CHAN_WIDTH_20_NOHT = 0, +NL80211_CHAN_WIDTH_20 = 1, +NL80211_CHAN_WIDTH_40 = 2, +NL80211_CHAN_WIDTH_80 = 3, +NL80211_CHAN_WIDTH_80P80 = 4, +NL80211_CHAN_WIDTH_160 = 5, +NL80211_CHAN_WIDTH_5 = 6, +NL80211_CHAN_WIDTH_10 = 7, +NL80211_CHAN_WIDTH_1 = 8, +NL80211_CHAN_WIDTH_2 = 9, +NL80211_CHAN_WIDTH_4 = 10, +NL80211_CHAN_WIDTH_8 = 11, +NL80211_CHAN_WIDTH_16 = 12, +NL80211_CHAN_WIDTH_320 = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_scan_width { +NL80211_BSS_CHAN_WIDTH_20 = 0, +NL80211_BSS_CHAN_WIDTH_10 = 1, +NL80211_BSS_CHAN_WIDTH_5 = 2, +NL80211_BSS_CHAN_WIDTH_1 = 3, +NL80211_BSS_CHAN_WIDTH_2 = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_use_for { +NL80211_BSS_USE_FOR_NORMAL = 1, +NL80211_BSS_USE_FOR_MLD_LINK = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_cannot_use_reasons { +NL80211_BSS_CANNOT_USE_NSTR_NONPRIMARY = 1, +NL80211_BSS_CANNOT_USE_6GHZ_PWR_MISMATCH = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss { +__NL80211_BSS_INVALID = 0, +NL80211_BSS_BSSID = 1, +NL80211_BSS_FREQUENCY = 2, +NL80211_BSS_TSF = 3, +NL80211_BSS_BEACON_INTERVAL = 4, +NL80211_BSS_CAPABILITY = 5, +NL80211_BSS_INFORMATION_ELEMENTS = 6, +NL80211_BSS_SIGNAL_MBM = 7, +NL80211_BSS_SIGNAL_UNSPEC = 8, +NL80211_BSS_STATUS = 9, +NL80211_BSS_SEEN_MS_AGO = 10, +NL80211_BSS_BEACON_IES = 11, +NL80211_BSS_CHAN_WIDTH = 12, +NL80211_BSS_BEACON_TSF = 13, +NL80211_BSS_PRESP_DATA = 14, +NL80211_BSS_LAST_SEEN_BOOTTIME = 15, +NL80211_BSS_PAD = 16, +NL80211_BSS_PARENT_TSF = 17, +NL80211_BSS_PARENT_BSSID = 18, +NL80211_BSS_CHAIN_SIGNAL = 19, +NL80211_BSS_FREQUENCY_OFFSET = 20, +NL80211_BSS_MLO_LINK_ID = 21, +NL80211_BSS_MLD_ADDR = 22, +NL80211_BSS_USE_FOR = 23, +NL80211_BSS_CANNOT_USE_REASONS = 24, +__NL80211_BSS_AFTER_LAST = 25, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_status { +NL80211_BSS_STATUS_AUTHENTICATED = 0, +NL80211_BSS_STATUS_ASSOCIATED = 1, +NL80211_BSS_STATUS_IBSS_JOINED = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_auth_type { +NL80211_AUTHTYPE_OPEN_SYSTEM = 0, +NL80211_AUTHTYPE_SHARED_KEY = 1, +NL80211_AUTHTYPE_FT = 2, +NL80211_AUTHTYPE_NETWORK_EAP = 3, +NL80211_AUTHTYPE_SAE = 4, +NL80211_AUTHTYPE_FILS_SK = 5, +NL80211_AUTHTYPE_FILS_SK_PFS = 6, +NL80211_AUTHTYPE_FILS_PK = 7, +__NL80211_AUTHTYPE_NUM = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_key_type { +NL80211_KEYTYPE_GROUP = 0, +NL80211_KEYTYPE_PAIRWISE = 1, +NL80211_KEYTYPE_PEERKEY = 2, +NUM_NL80211_KEYTYPES = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mfp { +NL80211_MFP_NO = 0, +NL80211_MFP_REQUIRED = 1, +NL80211_MFP_OPTIONAL = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wpa_versions { +NL80211_WPA_VERSION_1 = 1, +NL80211_WPA_VERSION_2 = 2, +NL80211_WPA_VERSION_3 = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_key_default_types { +__NL80211_KEY_DEFAULT_TYPE_INVALID = 0, +NL80211_KEY_DEFAULT_TYPE_UNICAST = 1, +NL80211_KEY_DEFAULT_TYPE_MULTICAST = 2, +NUM_NL80211_KEY_DEFAULT_TYPES = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_key_attributes { +__NL80211_KEY_INVALID = 0, +NL80211_KEY_DATA = 1, +NL80211_KEY_IDX = 2, +NL80211_KEY_CIPHER = 3, +NL80211_KEY_SEQ = 4, +NL80211_KEY_DEFAULT = 5, +NL80211_KEY_DEFAULT_MGMT = 6, +NL80211_KEY_TYPE = 7, +NL80211_KEY_DEFAULT_TYPES = 8, +NL80211_KEY_MODE = 9, +NL80211_KEY_DEFAULT_BEACON = 10, +__NL80211_KEY_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tx_rate_attributes { +__NL80211_TXRATE_INVALID = 0, +NL80211_TXRATE_LEGACY = 1, +NL80211_TXRATE_HT = 2, +NL80211_TXRATE_VHT = 3, +NL80211_TXRATE_GI = 4, +NL80211_TXRATE_HE = 5, +NL80211_TXRATE_HE_GI = 6, +NL80211_TXRATE_HE_LTF = 7, +__NL80211_TXRATE_AFTER_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_txrate_gi { +NL80211_TXRATE_DEFAULT_GI = 0, +NL80211_TXRATE_FORCE_SGI = 1, +NL80211_TXRATE_FORCE_LGI = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_band { +NL80211_BAND_2GHZ = 0, +NL80211_BAND_5GHZ = 1, +NL80211_BAND_60GHZ = 2, +NL80211_BAND_6GHZ = 3, +NL80211_BAND_S1GHZ = 4, +NL80211_BAND_LC = 5, +NUM_NL80211_BANDS = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ps_state { +NL80211_PS_DISABLED = 0, +NL80211_PS_ENABLED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_attr_cqm { +__NL80211_ATTR_CQM_INVALID = 0, +NL80211_ATTR_CQM_RSSI_THOLD = 1, +NL80211_ATTR_CQM_RSSI_HYST = 2, +NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT = 3, +NL80211_ATTR_CQM_PKT_LOSS_EVENT = 4, +NL80211_ATTR_CQM_TXE_RATE = 5, +NL80211_ATTR_CQM_TXE_PKTS = 6, +NL80211_ATTR_CQM_TXE_INTVL = 7, +NL80211_ATTR_CQM_BEACON_LOSS_EVENT = 8, +NL80211_ATTR_CQM_RSSI_LEVEL = 9, +__NL80211_ATTR_CQM_AFTER_LAST = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_cqm_rssi_threshold_event { +NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW = 0, +NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH = 1, +NL80211_CQM_RSSI_BEACON_LOSS_EVENT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tx_power_setting { +NL80211_TX_POWER_AUTOMATIC = 0, +NL80211_TX_POWER_LIMITED = 1, +NL80211_TX_POWER_FIXED = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tid_config { +NL80211_TID_CONFIG_ENABLE = 0, +NL80211_TID_CONFIG_DISABLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tx_rate_setting { +NL80211_TX_RATE_AUTOMATIC = 0, +NL80211_TX_RATE_LIMITED = 1, +NL80211_TX_RATE_FIXED = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tid_config_attr { +__NL80211_TID_CONFIG_ATTR_INVALID = 0, +NL80211_TID_CONFIG_ATTR_PAD = 1, +NL80211_TID_CONFIG_ATTR_VIF_SUPP = 2, +NL80211_TID_CONFIG_ATTR_PEER_SUPP = 3, +NL80211_TID_CONFIG_ATTR_OVERRIDE = 4, +NL80211_TID_CONFIG_ATTR_TIDS = 5, +NL80211_TID_CONFIG_ATTR_NOACK = 6, +NL80211_TID_CONFIG_ATTR_RETRY_SHORT = 7, +NL80211_TID_CONFIG_ATTR_RETRY_LONG = 8, +NL80211_TID_CONFIG_ATTR_AMPDU_CTRL = 9, +NL80211_TID_CONFIG_ATTR_RTSCTS_CTRL = 10, +NL80211_TID_CONFIG_ATTR_AMSDU_CTRL = 11, +NL80211_TID_CONFIG_ATTR_TX_RATE_TYPE = 12, +NL80211_TID_CONFIG_ATTR_TX_RATE = 13, +__NL80211_TID_CONFIG_ATTR_AFTER_LAST = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_packet_pattern_attr { +__NL80211_PKTPAT_INVALID = 0, +NL80211_PKTPAT_MASK = 1, +NL80211_PKTPAT_PATTERN = 2, +NL80211_PKTPAT_OFFSET = 3, +NUM_NL80211_PKTPAT = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wowlan_triggers { +__NL80211_WOWLAN_TRIG_INVALID = 0, +NL80211_WOWLAN_TRIG_ANY = 1, +NL80211_WOWLAN_TRIG_DISCONNECT = 2, +NL80211_WOWLAN_TRIG_MAGIC_PKT = 3, +NL80211_WOWLAN_TRIG_PKT_PATTERN = 4, +NL80211_WOWLAN_TRIG_GTK_REKEY_SUPPORTED = 5, +NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE = 6, +NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST = 7, +NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE = 8, +NL80211_WOWLAN_TRIG_RFKILL_RELEASE = 9, +NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211 = 10, +NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN = 11, +NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023 = 12, +NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN = 13, +NL80211_WOWLAN_TRIG_TCP_CONNECTION = 14, +NL80211_WOWLAN_TRIG_WAKEUP_TCP_MATCH = 15, +NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST = 16, +NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS = 17, +NL80211_WOWLAN_TRIG_NET_DETECT = 18, +NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS = 19, +NL80211_WOWLAN_TRIG_UNPROTECTED_DEAUTH_DISASSOC = 20, +NUM_NL80211_WOWLAN_TRIG = 21, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wowlan_tcp_attrs { +__NL80211_WOWLAN_TCP_INVALID = 0, +NL80211_WOWLAN_TCP_SRC_IPV4 = 1, +NL80211_WOWLAN_TCP_DST_IPV4 = 2, +NL80211_WOWLAN_TCP_DST_MAC = 3, +NL80211_WOWLAN_TCP_SRC_PORT = 4, +NL80211_WOWLAN_TCP_DST_PORT = 5, +NL80211_WOWLAN_TCP_DATA_PAYLOAD = 6, +NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ = 7, +NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN = 8, +NL80211_WOWLAN_TCP_DATA_INTERVAL = 9, +NL80211_WOWLAN_TCP_WAKE_PAYLOAD = 10, +NL80211_WOWLAN_TCP_WAKE_MASK = 11, +NUM_NL80211_WOWLAN_TCP = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_attr_coalesce_rule { +__NL80211_COALESCE_RULE_INVALID = 0, +NL80211_ATTR_COALESCE_RULE_DELAY = 1, +NL80211_ATTR_COALESCE_RULE_CONDITION = 2, +NL80211_ATTR_COALESCE_RULE_PKT_PATTERN = 3, +NUM_NL80211_ATTR_COALESCE_RULE = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_coalesce_condition { +NL80211_COALESCE_CONDITION_MATCH = 0, +NL80211_COALESCE_CONDITION_NO_MATCH = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_iface_limit_attrs { +NL80211_IFACE_LIMIT_UNSPEC = 0, +NL80211_IFACE_LIMIT_MAX = 1, +NL80211_IFACE_LIMIT_TYPES = 2, +NUM_NL80211_IFACE_LIMIT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_if_combination_attrs { +NL80211_IFACE_COMB_UNSPEC = 0, +NL80211_IFACE_COMB_LIMITS = 1, +NL80211_IFACE_COMB_MAXNUM = 2, +NL80211_IFACE_COMB_STA_AP_BI_MATCH = 3, +NL80211_IFACE_COMB_NUM_CHANNELS = 4, +NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS = 5, +NL80211_IFACE_COMB_RADAR_DETECT_REGIONS = 6, +NL80211_IFACE_COMB_BI_MIN_GCD = 7, +NUM_NL80211_IFACE_COMB = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_plink_state { +NL80211_PLINK_LISTEN = 0, +NL80211_PLINK_OPN_SNT = 1, +NL80211_PLINK_OPN_RCVD = 2, +NL80211_PLINK_CNF_RCVD = 3, +NL80211_PLINK_ESTAB = 4, +NL80211_PLINK_HOLDING = 5, +NL80211_PLINK_BLOCKED = 6, +NUM_NL80211_PLINK_STATES = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_plink_action { +NL80211_PLINK_ACTION_NO_ACTION = 0, +NL80211_PLINK_ACTION_OPEN = 1, +NL80211_PLINK_ACTION_BLOCK = 2, +NUM_NL80211_PLINK_ACTIONS = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_rekey_data { +__NL80211_REKEY_DATA_INVALID = 0, +NL80211_REKEY_DATA_KEK = 1, +NL80211_REKEY_DATA_KCK = 2, +NL80211_REKEY_DATA_REPLAY_CTR = 3, +NL80211_REKEY_DATA_AKM = 4, +NUM_NL80211_REKEY_DATA = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_hidden_ssid { +NL80211_HIDDEN_SSID_NOT_IN_USE = 0, +NL80211_HIDDEN_SSID_ZERO_LEN = 1, +NL80211_HIDDEN_SSID_ZERO_CONTENTS = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_wme_attr { +__NL80211_STA_WME_INVALID = 0, +NL80211_STA_WME_UAPSD_QUEUES = 1, +NL80211_STA_WME_MAX_SP = 2, +__NL80211_STA_WME_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_pmksa_candidate_attr { +__NL80211_PMKSA_CANDIDATE_INVALID = 0, +NL80211_PMKSA_CANDIDATE_INDEX = 1, +NL80211_PMKSA_CANDIDATE_BSSID = 2, +NL80211_PMKSA_CANDIDATE_PREAUTH = 3, +NUM_NL80211_PMKSA_CANDIDATE = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tdls_operation { +NL80211_TDLS_DISCOVERY_REQ = 0, +NL80211_TDLS_SETUP = 1, +NL80211_TDLS_TEARDOWN = 2, +NL80211_TDLS_ENABLE_LINK = 3, +NL80211_TDLS_DISABLE_LINK = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ap_sme_features { +NL80211_AP_SME_SA_QUERY_OFFLOAD = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_feature_flags { +NL80211_FEATURE_SK_TX_STATUS = 1, +NL80211_FEATURE_HT_IBSS = 2, +NL80211_FEATURE_INACTIVITY_TIMER = 4, +NL80211_FEATURE_CELL_BASE_REG_HINTS = 8, +NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL = 16, +NL80211_FEATURE_SAE = 32, +NL80211_FEATURE_LOW_PRIORITY_SCAN = 64, +NL80211_FEATURE_SCAN_FLUSH = 128, +NL80211_FEATURE_AP_SCAN = 256, +NL80211_FEATURE_VIF_TXPOWER = 512, +NL80211_FEATURE_NEED_OBSS_SCAN = 1024, +NL80211_FEATURE_P2P_GO_CTWIN = 2048, +NL80211_FEATURE_P2P_GO_OPPPS = 4096, +NL80211_FEATURE_ADVERTISE_CHAN_LIMITS = 16384, +NL80211_FEATURE_FULL_AP_CLIENT_STATE = 32768, +NL80211_FEATURE_USERSPACE_MPM = 65536, +NL80211_FEATURE_ACTIVE_MONITOR = 131072, +NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE = 262144, +NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES = 524288, +NL80211_FEATURE_WFA_TPC_IE_IN_PROBES = 1048576, +NL80211_FEATURE_QUIET = 2097152, +NL80211_FEATURE_TX_POWER_INSERTION = 4194304, +NL80211_FEATURE_ACKTO_ESTIMATION = 8388608, +NL80211_FEATURE_STATIC_SMPS = 16777216, +NL80211_FEATURE_DYNAMIC_SMPS = 33554432, +NL80211_FEATURE_SUPPORTS_WMM_ADMISSION = 67108864, +NL80211_FEATURE_MAC_ON_CREATE = 134217728, +NL80211_FEATURE_TDLS_CHANNEL_SWITCH = 268435456, +NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR = 536870912, +NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR = 1073741824, +NL80211_FEATURE_ND_RANDOM_MAC_ADDR = 2147483648, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ext_feature_index { +NL80211_EXT_FEATURE_VHT_IBSS = 0, +NL80211_EXT_FEATURE_RRM = 1, +NL80211_EXT_FEATURE_MU_MIMO_AIR_SNIFFER = 2, +NL80211_EXT_FEATURE_SCAN_START_TIME = 3, +NL80211_EXT_FEATURE_BSS_PARENT_TSF = 4, +NL80211_EXT_FEATURE_SET_SCAN_DWELL = 5, +NL80211_EXT_FEATURE_BEACON_RATE_LEGACY = 6, +NL80211_EXT_FEATURE_BEACON_RATE_HT = 7, +NL80211_EXT_FEATURE_BEACON_RATE_VHT = 8, +NL80211_EXT_FEATURE_FILS_STA = 9, +NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA = 10, +NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED = 11, +NL80211_EXT_FEATURE_SCHED_SCAN_RELATIVE_RSSI = 12, +NL80211_EXT_FEATURE_CQM_RSSI_LIST = 13, +NL80211_EXT_FEATURE_FILS_SK_OFFLOAD = 14, +NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_PSK = 15, +NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X = 16, +NL80211_EXT_FEATURE_FILS_MAX_CHANNEL_TIME = 17, +NL80211_EXT_FEATURE_ACCEPT_BCAST_PROBE_RESP = 18, +NL80211_EXT_FEATURE_OCE_PROBE_REQ_HIGH_TX_RATE = 19, +NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION = 20, +NL80211_EXT_FEATURE_MFP_OPTIONAL = 21, +NL80211_EXT_FEATURE_LOW_SPAN_SCAN = 22, +NL80211_EXT_FEATURE_LOW_POWER_SCAN = 23, +NL80211_EXT_FEATURE_HIGH_ACCURACY_SCAN = 24, +NL80211_EXT_FEATURE_DFS_OFFLOAD = 25, +NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211 = 26, +NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT = 27, +NL80211_EXT_FEATURE_TXQS = 28, +NL80211_EXT_FEATURE_SCAN_RANDOM_SN = 29, +NL80211_EXT_FEATURE_SCAN_MIN_PREQ_CONTENT = 30, +NL80211_EXT_FEATURE_CAN_REPLACE_PTK0 = 31, +NL80211_EXT_FEATURE_ENABLE_FTM_RESPONDER = 32, +NL80211_EXT_FEATURE_AIRTIME_FAIRNESS = 33, +NL80211_EXT_FEATURE_AP_PMKSA_CACHING = 34, +NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD = 35, +NL80211_EXT_FEATURE_EXT_KEY_ID = 36, +NL80211_EXT_FEATURE_STA_TX_PWR = 37, +NL80211_EXT_FEATURE_SAE_OFFLOAD = 38, +NL80211_EXT_FEATURE_VLAN_OFFLOAD = 39, +NL80211_EXT_FEATURE_AQL = 40, +NL80211_EXT_FEATURE_BEACON_PROTECTION = 41, +NL80211_EXT_FEATURE_CONTROL_PORT_NO_PREAUTH = 42, +NL80211_EXT_FEATURE_PROTECTED_TWT = 43, +NL80211_EXT_FEATURE_DEL_IBSS_STA = 44, +NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS = 45, +NL80211_EXT_FEATURE_BEACON_PROTECTION_CLIENT = 46, +NL80211_EXT_FEATURE_SCAN_FREQ_KHZ = 47, +NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211_TX_STATUS = 48, +NL80211_EXT_FEATURE_OPERATING_CHANNEL_VALIDATION = 49, +NL80211_EXT_FEATURE_4WAY_HANDSHAKE_AP_PSK = 50, +NL80211_EXT_FEATURE_SAE_OFFLOAD_AP = 51, +NL80211_EXT_FEATURE_FILS_DISCOVERY = 52, +NL80211_EXT_FEATURE_UNSOL_BCAST_PROBE_RESP = 53, +NL80211_EXT_FEATURE_BEACON_RATE_HE = 54, +NL80211_EXT_FEATURE_SECURE_LTF = 55, +NL80211_EXT_FEATURE_SECURE_RTT = 56, +NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE = 57, +NL80211_EXT_FEATURE_BSS_COLOR = 58, +NL80211_EXT_FEATURE_FILS_CRYPTO_OFFLOAD = 59, +NL80211_EXT_FEATURE_RADAR_BACKGROUND = 60, +NL80211_EXT_FEATURE_POWERED_ADDR_CHANGE = 61, +NL80211_EXT_FEATURE_PUNCT = 62, +NL80211_EXT_FEATURE_SECURE_NAN = 63, +NL80211_EXT_FEATURE_AUTH_AND_DEAUTH_RANDOM_TA = 64, +NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, +NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, +NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, +NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, +NUM_NL80211_EXT_FEATURES = 69, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_probe_resp_offload_support_attr { +NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS = 1, +NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2 = 2, +NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P = 4, +NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_connect_failed_reason { +NL80211_CONN_FAIL_MAX_CLIENTS = 0, +NL80211_CONN_FAIL_BLOCKED_CLIENT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_timeout_reason { +NL80211_TIMEOUT_UNSPECIFIED = 0, +NL80211_TIMEOUT_SCAN = 1, +NL80211_TIMEOUT_AUTH = 2, +NL80211_TIMEOUT_ASSOC = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_scan_flags { +NL80211_SCAN_FLAG_LOW_PRIORITY = 1, +NL80211_SCAN_FLAG_FLUSH = 2, +NL80211_SCAN_FLAG_AP = 4, +NL80211_SCAN_FLAG_RANDOM_ADDR = 8, +NL80211_SCAN_FLAG_FILS_MAX_CHANNEL_TIME = 16, +NL80211_SCAN_FLAG_ACCEPT_BCAST_PROBE_RESP = 32, +NL80211_SCAN_FLAG_OCE_PROBE_REQ_HIGH_TX_RATE = 64, +NL80211_SCAN_FLAG_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION = 128, +NL80211_SCAN_FLAG_LOW_SPAN = 256, +NL80211_SCAN_FLAG_LOW_POWER = 512, +NL80211_SCAN_FLAG_HIGH_ACCURACY = 1024, +NL80211_SCAN_FLAG_RANDOM_SN = 2048, +NL80211_SCAN_FLAG_MIN_PREQ_CONTENT = 4096, +NL80211_SCAN_FLAG_FREQ_KHZ = 8192, +NL80211_SCAN_FLAG_COLOCATED_6GHZ = 16384, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_acl_policy { +NL80211_ACL_POLICY_ACCEPT_UNLESS_LISTED = 0, +NL80211_ACL_POLICY_DENY_UNLESS_LISTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_smps_mode { +NL80211_SMPS_OFF = 0, +NL80211_SMPS_STATIC = 1, +NL80211_SMPS_DYNAMIC = 2, +__NL80211_SMPS_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_radar_event { +NL80211_RADAR_DETECTED = 0, +NL80211_RADAR_CAC_FINISHED = 1, +NL80211_RADAR_CAC_ABORTED = 2, +NL80211_RADAR_NOP_FINISHED = 3, +NL80211_RADAR_PRE_CAC_EXPIRED = 4, +NL80211_RADAR_CAC_STARTED = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_dfs_state { +NL80211_DFS_USABLE = 0, +NL80211_DFS_UNAVAILABLE = 1, +NL80211_DFS_AVAILABLE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_protocol_features { +NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_crit_proto_id { +NL80211_CRIT_PROTO_UNSPEC = 0, +NL80211_CRIT_PROTO_DHCP = 1, +NL80211_CRIT_PROTO_EAPOL = 2, +NL80211_CRIT_PROTO_APIPA = 3, +NUM_NL80211_CRIT_PROTO = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_rxmgmt_flags { +NL80211_RXMGMT_FLAG_ANSWERED = 1, +NL80211_RXMGMT_FLAG_EXTERNAL_AUTH = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tdls_peer_capability { +NL80211_TDLS_PEER_HT = 1, +NL80211_TDLS_PEER_VHT = 2, +NL80211_TDLS_PEER_WMM = 4, +NL80211_TDLS_PEER_HE = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sched_scan_plan { +__NL80211_SCHED_SCAN_PLAN_INVALID = 0, +NL80211_SCHED_SCAN_PLAN_INTERVAL = 1, +NL80211_SCHED_SCAN_PLAN_ITERATIONS = 2, +__NL80211_SCHED_SCAN_PLAN_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_select_attr { +__NL80211_BSS_SELECT_ATTR_INVALID = 0, +NL80211_BSS_SELECT_ATTR_RSSI = 1, +NL80211_BSS_SELECT_ATTR_BAND_PREF = 2, +NL80211_BSS_SELECT_ATTR_RSSI_ADJUST = 3, +__NL80211_BSS_SELECT_ATTR_AFTER_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_function_type { +NL80211_NAN_FUNC_PUBLISH = 0, +NL80211_NAN_FUNC_SUBSCRIBE = 1, +NL80211_NAN_FUNC_FOLLOW_UP = 2, +__NL80211_NAN_FUNC_TYPE_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_publish_type { +NL80211_NAN_SOLICITED_PUBLISH = 1, +NL80211_NAN_UNSOLICITED_PUBLISH = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_func_term_reason { +NL80211_NAN_FUNC_TERM_REASON_USER_REQUEST = 0, +NL80211_NAN_FUNC_TERM_REASON_TTL_EXPIRED = 1, +NL80211_NAN_FUNC_TERM_REASON_ERROR = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_func_attributes { +__NL80211_NAN_FUNC_INVALID = 0, +NL80211_NAN_FUNC_TYPE = 1, +NL80211_NAN_FUNC_SERVICE_ID = 2, +NL80211_NAN_FUNC_PUBLISH_TYPE = 3, +NL80211_NAN_FUNC_PUBLISH_BCAST = 4, +NL80211_NAN_FUNC_SUBSCRIBE_ACTIVE = 5, +NL80211_NAN_FUNC_FOLLOW_UP_ID = 6, +NL80211_NAN_FUNC_FOLLOW_UP_REQ_ID = 7, +NL80211_NAN_FUNC_FOLLOW_UP_DEST = 8, +NL80211_NAN_FUNC_CLOSE_RANGE = 9, +NL80211_NAN_FUNC_TTL = 10, +NL80211_NAN_FUNC_SERVICE_INFO = 11, +NL80211_NAN_FUNC_SRF = 12, +NL80211_NAN_FUNC_RX_MATCH_FILTER = 13, +NL80211_NAN_FUNC_TX_MATCH_FILTER = 14, +NL80211_NAN_FUNC_INSTANCE_ID = 15, +NL80211_NAN_FUNC_TERM_REASON = 16, +NUM_NL80211_NAN_FUNC_ATTR = 17, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_srf_attributes { +__NL80211_NAN_SRF_INVALID = 0, +NL80211_NAN_SRF_INCLUDE = 1, +NL80211_NAN_SRF_BF = 2, +NL80211_NAN_SRF_BF_IDX = 3, +NL80211_NAN_SRF_MAC_ADDRS = 4, +NUM_NL80211_NAN_SRF_ATTR = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_match_attributes { +__NL80211_NAN_MATCH_INVALID = 0, +NL80211_NAN_MATCH_FUNC_LOCAL = 1, +NL80211_NAN_MATCH_FUNC_PEER = 2, +NUM_NL80211_NAN_MATCH_ATTR = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_external_auth_action { +NL80211_EXTERNAL_AUTH_START = 0, +NL80211_EXTERNAL_AUTH_ABORT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ftm_responder_attributes { +__NL80211_FTM_RESP_ATTR_INVALID = 0, +NL80211_FTM_RESP_ATTR_ENABLED = 1, +NL80211_FTM_RESP_ATTR_LCI = 2, +NL80211_FTM_RESP_ATTR_CIVICLOC = 3, +__NL80211_FTM_RESP_ATTR_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ftm_responder_stats { +__NL80211_FTM_STATS_INVALID = 0, +NL80211_FTM_STATS_SUCCESS_NUM = 1, +NL80211_FTM_STATS_PARTIAL_NUM = 2, +NL80211_FTM_STATS_FAILED_NUM = 3, +NL80211_FTM_STATS_ASAP_NUM = 4, +NL80211_FTM_STATS_NON_ASAP_NUM = 5, +NL80211_FTM_STATS_TOTAL_DURATION_MSEC = 6, +NL80211_FTM_STATS_UNKNOWN_TRIGGERS_NUM = 7, +NL80211_FTM_STATS_RESCHEDULE_REQUESTS_NUM = 8, +NL80211_FTM_STATS_OUT_OF_WINDOW_TRIGGERS_NUM = 9, +NL80211_FTM_STATS_PAD = 10, +__NL80211_FTM_STATS_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_preamble { +NL80211_PREAMBLE_LEGACY = 0, +NL80211_PREAMBLE_HT = 1, +NL80211_PREAMBLE_VHT = 2, +NL80211_PREAMBLE_DMG = 3, +NL80211_PREAMBLE_HE = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_type { +NL80211_PMSR_TYPE_INVALID = 0, +NL80211_PMSR_TYPE_FTM = 1, +NUM_NL80211_PMSR_TYPES = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_status { +NL80211_PMSR_STATUS_SUCCESS = 0, +NL80211_PMSR_STATUS_REFUSED = 1, +NL80211_PMSR_STATUS_TIMEOUT = 2, +NL80211_PMSR_STATUS_FAILURE = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_req { +__NL80211_PMSR_REQ_ATTR_INVALID = 0, +NL80211_PMSR_REQ_ATTR_DATA = 1, +NL80211_PMSR_REQ_ATTR_GET_AP_TSF = 2, +NUM_NL80211_PMSR_REQ_ATTRS = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_resp { +__NL80211_PMSR_RESP_ATTR_INVALID = 0, +NL80211_PMSR_RESP_ATTR_DATA = 1, +NL80211_PMSR_RESP_ATTR_STATUS = 2, +NL80211_PMSR_RESP_ATTR_HOST_TIME = 3, +NL80211_PMSR_RESP_ATTR_AP_TSF = 4, +NL80211_PMSR_RESP_ATTR_FINAL = 5, +NL80211_PMSR_RESP_ATTR_PAD = 6, +NUM_NL80211_PMSR_RESP_ATTRS = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_peer_attrs { +__NL80211_PMSR_PEER_ATTR_INVALID = 0, +NL80211_PMSR_PEER_ATTR_ADDR = 1, +NL80211_PMSR_PEER_ATTR_CHAN = 2, +NL80211_PMSR_PEER_ATTR_REQ = 3, +NL80211_PMSR_PEER_ATTR_RESP = 4, +NUM_NL80211_PMSR_PEER_ATTRS = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_attrs { +__NL80211_PMSR_ATTR_INVALID = 0, +NL80211_PMSR_ATTR_MAX_PEERS = 1, +NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, +NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, +NL80211_PMSR_ATTR_TYPE_CAPA = 4, +NL80211_PMSR_ATTR_PEERS = 5, +NUM_NL80211_PMSR_ATTR = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_capa { +__NL80211_PMSR_FTM_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_CAPA_ATTR_ASAP = 1, +NL80211_PMSR_FTM_CAPA_ATTR_NON_ASAP = 2, +NL80211_PMSR_FTM_CAPA_ATTR_REQ_LCI = 3, +NL80211_PMSR_FTM_CAPA_ATTR_REQ_CIVICLOC = 4, +NL80211_PMSR_FTM_CAPA_ATTR_PREAMBLES = 5, +NL80211_PMSR_FTM_CAPA_ATTR_BANDWIDTHS = 6, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, +NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, +NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req { +__NL80211_PMSR_FTM_REQ_ATTR_INVALID = 0, +NL80211_PMSR_FTM_REQ_ATTR_ASAP = 1, +NL80211_PMSR_FTM_REQ_ATTR_PREAMBLE = 2, +NL80211_PMSR_FTM_REQ_ATTR_NUM_BURSTS_EXP = 3, +NL80211_PMSR_FTM_REQ_ATTR_BURST_PERIOD = 4, +NL80211_PMSR_FTM_REQ_ATTR_BURST_DURATION = 5, +NL80211_PMSR_FTM_REQ_ATTR_FTMS_PER_BURST = 6, +NL80211_PMSR_FTM_REQ_ATTR_NUM_FTMR_RETRIES = 7, +NL80211_PMSR_FTM_REQ_ATTR_REQUEST_LCI = 8, +NL80211_PMSR_FTM_REQ_ATTR_REQUEST_CIVICLOC = 9, +NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, +NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, +NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, +NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_failure_reasons { +NL80211_PMSR_FTM_FAILURE_UNSPECIFIED = 0, +NL80211_PMSR_FTM_FAILURE_NO_RESPONSE = 1, +NL80211_PMSR_FTM_FAILURE_REJECTED = 2, +NL80211_PMSR_FTM_FAILURE_WRONG_CHANNEL = 3, +NL80211_PMSR_FTM_FAILURE_PEER_NOT_CAPABLE = 4, +NL80211_PMSR_FTM_FAILURE_INVALID_TIMESTAMP = 5, +NL80211_PMSR_FTM_FAILURE_PEER_BUSY = 6, +NL80211_PMSR_FTM_FAILURE_BAD_CHANGED_PARAMS = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_resp { +__NL80211_PMSR_FTM_RESP_ATTR_INVALID = 0, +NL80211_PMSR_FTM_RESP_ATTR_FAIL_REASON = 1, +NL80211_PMSR_FTM_RESP_ATTR_BURST_INDEX = 2, +NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_ATTEMPTS = 3, +NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_SUCCESSES = 4, +NL80211_PMSR_FTM_RESP_ATTR_BUSY_RETRY_TIME = 5, +NL80211_PMSR_FTM_RESP_ATTR_NUM_BURSTS_EXP = 6, +NL80211_PMSR_FTM_RESP_ATTR_BURST_DURATION = 7, +NL80211_PMSR_FTM_RESP_ATTR_FTMS_PER_BURST = 8, +NL80211_PMSR_FTM_RESP_ATTR_RSSI_AVG = 9, +NL80211_PMSR_FTM_RESP_ATTR_RSSI_SPREAD = 10, +NL80211_PMSR_FTM_RESP_ATTR_TX_RATE = 11, +NL80211_PMSR_FTM_RESP_ATTR_RX_RATE = 12, +NL80211_PMSR_FTM_RESP_ATTR_RTT_AVG = 13, +NL80211_PMSR_FTM_RESP_ATTR_RTT_VARIANCE = 14, +NL80211_PMSR_FTM_RESP_ATTR_RTT_SPREAD = 15, +NL80211_PMSR_FTM_RESP_ATTR_DIST_AVG = 16, +NL80211_PMSR_FTM_RESP_ATTR_DIST_VARIANCE = 17, +NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, +NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, +NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, +NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_obss_pd_attributes { +__NL80211_HE_OBSS_PD_ATTR_INVALID = 0, +NL80211_HE_OBSS_PD_ATTR_MIN_OFFSET = 1, +NL80211_HE_OBSS_PD_ATTR_MAX_OFFSET = 2, +NL80211_HE_OBSS_PD_ATTR_NON_SRG_MAX_OFFSET = 3, +NL80211_HE_OBSS_PD_ATTR_BSS_COLOR_BITMAP = 4, +NL80211_HE_OBSS_PD_ATTR_PARTIAL_BSSID_BITMAP = 5, +NL80211_HE_OBSS_PD_ATTR_SR_CTRL = 6, +__NL80211_HE_OBSS_PD_ATTR_LAST = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_color_attributes { +__NL80211_HE_BSS_COLOR_ATTR_INVALID = 0, +NL80211_HE_BSS_COLOR_ATTR_COLOR = 1, +NL80211_HE_BSS_COLOR_ATTR_DISABLED = 2, +NL80211_HE_BSS_COLOR_ATTR_PARTIAL = 3, +__NL80211_HE_BSS_COLOR_ATTR_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_iftype_akm_attributes { +__NL80211_IFTYPE_AKM_ATTR_INVALID = 0, +NL80211_IFTYPE_AKM_ATTR_IFTYPES = 1, +NL80211_IFTYPE_AKM_ATTR_SUITES = 2, +__NL80211_IFTYPE_AKM_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_fils_discovery_attributes { +__NL80211_FILS_DISCOVERY_ATTR_INVALID = 0, +NL80211_FILS_DISCOVERY_ATTR_INT_MIN = 1, +NL80211_FILS_DISCOVERY_ATTR_INT_MAX = 2, +NL80211_FILS_DISCOVERY_ATTR_TMPL = 3, +__NL80211_FILS_DISCOVERY_ATTR_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_unsol_bcast_probe_resp_attributes { +__NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INVALID = 0, +NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INT = 1, +NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_TMPL = 2, +__NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sae_pwe_mechanism { +NL80211_SAE_PWE_UNSPECIFIED = 0, +NL80211_SAE_PWE_HUNT_AND_PECK = 1, +NL80211_SAE_PWE_HASH_TO_ELEMENT = 2, +NL80211_SAE_PWE_BOTH = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sar_type { +NL80211_SAR_TYPE_POWER = 0, +NUM_NL80211_SAR_TYPE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sar_attrs { +__NL80211_SAR_ATTR_INVALID = 0, +NL80211_SAR_ATTR_TYPE = 1, +NL80211_SAR_ATTR_SPECS = 2, +__NL80211_SAR_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sar_specs_attrs { +__NL80211_SAR_ATTR_SPECS_INVALID = 0, +NL80211_SAR_ATTR_SPECS_POWER = 1, +NL80211_SAR_ATTR_SPECS_RANGE_INDEX = 2, +NL80211_SAR_ATTR_SPECS_START_FREQ = 3, +NL80211_SAR_ATTR_SPECS_END_FREQ = 4, +__NL80211_SAR_ATTR_SPECS_LAST = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mbssid_config_attributes { +__NL80211_MBSSID_CONFIG_ATTR_INVALID = 0, +NL80211_MBSSID_CONFIG_ATTR_MAX_INTERFACES = 1, +NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 2, +NL80211_MBSSID_CONFIG_ATTR_INDEX = 3, +NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 4, +NL80211_MBSSID_CONFIG_ATTR_EMA = 5, +NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID = 6, +__NL80211_MBSSID_CONFIG_ATTR_LAST = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ap_settings_flags { +NL80211_AP_SETTINGS_EXTERNAL_AUTH_SUPPORT = 1, +NL80211_AP_SETTINGS_SA_QUERY_OFFLOAD_SUPPORT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wiphy_radio_attrs { +__NL80211_WIPHY_RADIO_ATTR_INVALID = 0, +NL80211_WIPHY_RADIO_ATTR_INDEX = 1, +NL80211_WIPHY_RADIO_ATTR_FREQ_RANGE = 2, +NL80211_WIPHY_RADIO_ATTR_INTERFACE_COMBINATION = 3, +NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK = 4, +__NL80211_WIPHY_RADIO_ATTR_LAST = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wiphy_radio_freq_range { +__NL80211_WIPHY_RADIO_FREQ_ATTR_INVALID = 0, +NL80211_WIPHY_RADIO_FREQ_ATTR_START = 1, +NL80211_WIPHY_RADIO_FREQ_ATTR_END = 2, +__NL80211_WIPHY_RADIO_FREQ_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IFLA_UNSPEC = 0, +IFLA_ADDRESS = 1, +IFLA_BROADCAST = 2, +IFLA_IFNAME = 3, +IFLA_MTU = 4, +IFLA_LINK = 5, +IFLA_QDISC = 6, +IFLA_STATS = 7, +IFLA_COST = 8, +IFLA_PRIORITY = 9, +IFLA_MASTER = 10, +IFLA_WIRELESS = 11, +IFLA_PROTINFO = 12, +IFLA_TXQLEN = 13, +IFLA_MAP = 14, +IFLA_WEIGHT = 15, +IFLA_OPERSTATE = 16, +IFLA_LINKMODE = 17, +IFLA_LINKINFO = 18, +IFLA_NET_NS_PID = 19, +IFLA_IFALIAS = 20, +IFLA_NUM_VF = 21, +IFLA_VFINFO_LIST = 22, +IFLA_STATS64 = 23, +IFLA_VF_PORTS = 24, +IFLA_PORT_SELF = 25, +IFLA_AF_SPEC = 26, +IFLA_GROUP = 27, +IFLA_NET_NS_FD = 28, +IFLA_EXT_MASK = 29, +IFLA_PROMISCUITY = 30, +IFLA_NUM_TX_QUEUES = 31, +IFLA_NUM_RX_QUEUES = 32, +IFLA_CARRIER = 33, +IFLA_PHYS_PORT_ID = 34, +IFLA_CARRIER_CHANGES = 35, +IFLA_PHYS_SWITCH_ID = 36, +IFLA_LINK_NETNSID = 37, +IFLA_PHYS_PORT_NAME = 38, +IFLA_PROTO_DOWN = 39, +IFLA_GSO_MAX_SEGS = 40, +IFLA_GSO_MAX_SIZE = 41, +IFLA_PAD = 42, +IFLA_XDP = 43, +IFLA_EVENT = 44, +IFLA_NEW_NETNSID = 45, +IFLA_IF_NETNSID = 46, +IFLA_CARRIER_UP_COUNT = 47, +IFLA_CARRIER_DOWN_COUNT = 48, +IFLA_NEW_IFINDEX = 49, +IFLA_MIN_MTU = 50, +IFLA_MAX_MTU = 51, +IFLA_PROP_LIST = 52, +IFLA_ALT_IFNAME = 53, +IFLA_PERM_ADDRESS = 54, +IFLA_PROTO_DOWN_REASON = 55, +IFLA_PARENT_DEV_NAME = 56, +IFLA_PARENT_DEV_BUS_NAME = 57, +IFLA_GRO_MAX_SIZE = 58, +IFLA_TSO_MAX_SIZE = 59, +IFLA_TSO_MAX_SEGS = 60, +IFLA_ALLMULTI = 61, +IFLA_DEVLINK_PORT = 62, +IFLA_GSO_IPV4_MAX_SIZE = 63, +IFLA_GRO_IPV4_MAX_SIZE = 64, +IFLA_DPLL_PIN = 65, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +IFLA_NETNS_IMMUTABLE = 67, +__IFLA_MAX = 68, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +IFLA_PROTO_DOWN_REASON_UNSPEC = 0, +IFLA_PROTO_DOWN_REASON_MASK = 1, +IFLA_PROTO_DOWN_REASON_VALUE = 2, +__IFLA_PROTO_DOWN_REASON_CNT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IFLA_INET_UNSPEC = 0, +IFLA_INET_CONF = 1, +__IFLA_INET_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_5 { +IFLA_INET6_UNSPEC = 0, +IFLA_INET6_FLAGS = 1, +IFLA_INET6_CONF = 2, +IFLA_INET6_STATS = 3, +IFLA_INET6_MCAST = 4, +IFLA_INET6_CACHEINFO = 5, +IFLA_INET6_ICMP6STATS = 6, +IFLA_INET6_TOKEN = 7, +IFLA_INET6_ADDR_GEN_MODE = 8, +IFLA_INET6_RA_MTU = 9, +__IFLA_INET6_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum in6_addr_gen_mode { +IN6_ADDR_GEN_MODE_EUI64 = 0, +IN6_ADDR_GEN_MODE_NONE = 1, +IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, +IN6_ADDR_GEN_MODE_RANDOM = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_6 { +IFLA_BR_UNSPEC = 0, +IFLA_BR_FORWARD_DELAY = 1, +IFLA_BR_HELLO_TIME = 2, +IFLA_BR_MAX_AGE = 3, +IFLA_BR_AGEING_TIME = 4, +IFLA_BR_STP_STATE = 5, +IFLA_BR_PRIORITY = 6, +IFLA_BR_VLAN_FILTERING = 7, +IFLA_BR_VLAN_PROTOCOL = 8, +IFLA_BR_GROUP_FWD_MASK = 9, +IFLA_BR_ROOT_ID = 10, +IFLA_BR_BRIDGE_ID = 11, +IFLA_BR_ROOT_PORT = 12, +IFLA_BR_ROOT_PATH_COST = 13, +IFLA_BR_TOPOLOGY_CHANGE = 14, +IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, +IFLA_BR_HELLO_TIMER = 16, +IFLA_BR_TCN_TIMER = 17, +IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, +IFLA_BR_GC_TIMER = 19, +IFLA_BR_GROUP_ADDR = 20, +IFLA_BR_FDB_FLUSH = 21, +IFLA_BR_MCAST_ROUTER = 22, +IFLA_BR_MCAST_SNOOPING = 23, +IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, +IFLA_BR_MCAST_QUERIER = 25, +IFLA_BR_MCAST_HASH_ELASTICITY = 26, +IFLA_BR_MCAST_HASH_MAX = 27, +IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, +IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, +IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, +IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, +IFLA_BR_MCAST_QUERIER_INTVL = 32, +IFLA_BR_MCAST_QUERY_INTVL = 33, +IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, +IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, +IFLA_BR_NF_CALL_IPTABLES = 36, +IFLA_BR_NF_CALL_IP6TABLES = 37, +IFLA_BR_NF_CALL_ARPTABLES = 38, +IFLA_BR_VLAN_DEFAULT_PVID = 39, +IFLA_BR_PAD = 40, +IFLA_BR_VLAN_STATS_ENABLED = 41, +IFLA_BR_MCAST_STATS_ENABLED = 42, +IFLA_BR_MCAST_IGMP_VERSION = 43, +IFLA_BR_MCAST_MLD_VERSION = 44, +IFLA_BR_VLAN_STATS_PER_PORT = 45, +IFLA_BR_MULTI_BOOLOPT = 46, +IFLA_BR_MCAST_QUERIER_STATE = 47, +IFLA_BR_FDB_N_LEARNED = 48, +IFLA_BR_FDB_MAX_LEARNED = 49, +__IFLA_BR_MAX = 50, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_7 { +BRIDGE_MODE_UNSPEC = 0, +BRIDGE_MODE_HAIRPIN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_8 { +IFLA_BRPORT_UNSPEC = 0, +IFLA_BRPORT_STATE = 1, +IFLA_BRPORT_PRIORITY = 2, +IFLA_BRPORT_COST = 3, +IFLA_BRPORT_MODE = 4, +IFLA_BRPORT_GUARD = 5, +IFLA_BRPORT_PROTECT = 6, +IFLA_BRPORT_FAST_LEAVE = 7, +IFLA_BRPORT_LEARNING = 8, +IFLA_BRPORT_UNICAST_FLOOD = 9, +IFLA_BRPORT_PROXYARP = 10, +IFLA_BRPORT_LEARNING_SYNC = 11, +IFLA_BRPORT_PROXYARP_WIFI = 12, +IFLA_BRPORT_ROOT_ID = 13, +IFLA_BRPORT_BRIDGE_ID = 14, +IFLA_BRPORT_DESIGNATED_PORT = 15, +IFLA_BRPORT_DESIGNATED_COST = 16, +IFLA_BRPORT_ID = 17, +IFLA_BRPORT_NO = 18, +IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, +IFLA_BRPORT_CONFIG_PENDING = 20, +IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, +IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, +IFLA_BRPORT_HOLD_TIMER = 23, +IFLA_BRPORT_FLUSH = 24, +IFLA_BRPORT_MULTICAST_ROUTER = 25, +IFLA_BRPORT_PAD = 26, +IFLA_BRPORT_MCAST_FLOOD = 27, +IFLA_BRPORT_MCAST_TO_UCAST = 28, +IFLA_BRPORT_VLAN_TUNNEL = 29, +IFLA_BRPORT_BCAST_FLOOD = 30, +IFLA_BRPORT_GROUP_FWD_MASK = 31, +IFLA_BRPORT_NEIGH_SUPPRESS = 32, +IFLA_BRPORT_ISOLATED = 33, +IFLA_BRPORT_BACKUP_PORT = 34, +IFLA_BRPORT_MRP_RING_OPEN = 35, +IFLA_BRPORT_MRP_IN_OPEN = 36, +IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, +IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, +IFLA_BRPORT_LOCKED = 39, +IFLA_BRPORT_MAB = 40, +IFLA_BRPORT_MCAST_N_GROUPS = 41, +IFLA_BRPORT_MCAST_MAX_GROUPS = 42, +IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, +IFLA_BRPORT_BACKUP_NHID = 44, +__IFLA_BRPORT_MAX = 45, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_9 { +IFLA_INFO_UNSPEC = 0, +IFLA_INFO_KIND = 1, +IFLA_INFO_DATA = 2, +IFLA_INFO_XSTATS = 3, +IFLA_INFO_SLAVE_KIND = 4, +IFLA_INFO_SLAVE_DATA = 5, +__IFLA_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_10 { +IFLA_VLAN_UNSPEC = 0, +IFLA_VLAN_ID = 1, +IFLA_VLAN_FLAGS = 2, +IFLA_VLAN_EGRESS_QOS = 3, +IFLA_VLAN_INGRESS_QOS = 4, +IFLA_VLAN_PROTOCOL = 5, +__IFLA_VLAN_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_11 { +IFLA_VLAN_QOS_UNSPEC = 0, +IFLA_VLAN_QOS_MAPPING = 1, +__IFLA_VLAN_QOS_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_12 { +IFLA_MACVLAN_UNSPEC = 0, +IFLA_MACVLAN_MODE = 1, +IFLA_MACVLAN_FLAGS = 2, +IFLA_MACVLAN_MACADDR_MODE = 3, +IFLA_MACVLAN_MACADDR = 4, +IFLA_MACVLAN_MACADDR_DATA = 5, +IFLA_MACVLAN_MACADDR_COUNT = 6, +IFLA_MACVLAN_BC_QUEUE_LEN = 7, +IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, +IFLA_MACVLAN_BC_CUTOFF = 9, +__IFLA_MACVLAN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_mode { +MACVLAN_MODE_PRIVATE = 1, +MACVLAN_MODE_VEPA = 2, +MACVLAN_MODE_BRIDGE = 4, +MACVLAN_MODE_PASSTHRU = 8, +MACVLAN_MODE_SOURCE = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_macaddr_mode { +MACVLAN_MACADDR_ADD = 0, +MACVLAN_MACADDR_DEL = 1, +MACVLAN_MACADDR_FLUSH = 2, +MACVLAN_MACADDR_SET = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_13 { +IFLA_VRF_UNSPEC = 0, +IFLA_VRF_TABLE = 1, +__IFLA_VRF_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_14 { +IFLA_VRF_PORT_UNSPEC = 0, +IFLA_VRF_PORT_TABLE = 1, +__IFLA_VRF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_15 { +IFLA_MACSEC_UNSPEC = 0, +IFLA_MACSEC_SCI = 1, +IFLA_MACSEC_PORT = 2, +IFLA_MACSEC_ICV_LEN = 3, +IFLA_MACSEC_CIPHER_SUITE = 4, +IFLA_MACSEC_WINDOW = 5, +IFLA_MACSEC_ENCODING_SA = 6, +IFLA_MACSEC_ENCRYPT = 7, +IFLA_MACSEC_PROTECT = 8, +IFLA_MACSEC_INC_SCI = 9, +IFLA_MACSEC_ES = 10, +IFLA_MACSEC_SCB = 11, +IFLA_MACSEC_REPLAY_PROTECT = 12, +IFLA_MACSEC_VALIDATION = 13, +IFLA_MACSEC_PAD = 14, +IFLA_MACSEC_OFFLOAD = 15, +__IFLA_MACSEC_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_16 { +IFLA_XFRM_UNSPEC = 0, +IFLA_XFRM_LINK = 1, +IFLA_XFRM_IF_ID = 2, +IFLA_XFRM_COLLECT_METADATA = 3, +__IFLA_XFRM_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_validation_type { +MACSEC_VALIDATE_DISABLED = 0, +MACSEC_VALIDATE_CHECK = 1, +MACSEC_VALIDATE_STRICT = 2, +__MACSEC_VALIDATE_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_offload { +MACSEC_OFFLOAD_OFF = 0, +MACSEC_OFFLOAD_PHY = 1, +MACSEC_OFFLOAD_MAC = 2, +__MACSEC_OFFLOAD_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_17 { +IFLA_IPVLAN_UNSPEC = 0, +IFLA_IPVLAN_MODE = 1, +IFLA_IPVLAN_FLAGS = 2, +__IFLA_IPVLAN_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ipvlan_mode { +IPVLAN_MODE_L2 = 0, +IPVLAN_MODE_L3 = 1, +IPVLAN_MODE_L3S = 2, +IPVLAN_MODE_MAX = 3, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_action { +NETKIT_NEXT = -1, +NETKIT_PASS = 0, +NETKIT_DROP = 2, +NETKIT_REDIRECT = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_mode { +NETKIT_L2 = 0, +NETKIT_L3 = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_18 { +IFLA_NETKIT_UNSPEC = 0, +IFLA_NETKIT_PEER_INFO = 1, +IFLA_NETKIT_PRIMARY = 2, +IFLA_NETKIT_POLICY = 3, +IFLA_NETKIT_PEER_POLICY = 4, +IFLA_NETKIT_MODE = 5, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +IFLA_NETKIT_HEADROOM = 8, +IFLA_NETKIT_TAILROOM = 9, +__IFLA_NETKIT_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_19 { +VNIFILTER_ENTRY_STATS_UNSPEC = 0, +VNIFILTER_ENTRY_STATS_RX_BYTES = 1, +VNIFILTER_ENTRY_STATS_RX_PKTS = 2, +VNIFILTER_ENTRY_STATS_RX_DROPS = 3, +VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, +VNIFILTER_ENTRY_STATS_TX_BYTES = 5, +VNIFILTER_ENTRY_STATS_TX_PKTS = 6, +VNIFILTER_ENTRY_STATS_TX_DROPS = 7, +VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, +VNIFILTER_ENTRY_STATS_PAD = 9, +__VNIFILTER_ENTRY_STATS_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_20 { +VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY_START = 1, +VXLAN_VNIFILTER_ENTRY_END = 2, +VXLAN_VNIFILTER_ENTRY_GROUP = 3, +VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, +VXLAN_VNIFILTER_ENTRY_STATS = 5, +__VXLAN_VNIFILTER_ENTRY_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_21 { +VXLAN_VNIFILTER_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY = 1, +__VXLAN_VNIFILTER_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_22 { +IFLA_VXLAN_UNSPEC = 0, +IFLA_VXLAN_ID = 1, +IFLA_VXLAN_GROUP = 2, +IFLA_VXLAN_LINK = 3, +IFLA_VXLAN_LOCAL = 4, +IFLA_VXLAN_TTL = 5, +IFLA_VXLAN_TOS = 6, +IFLA_VXLAN_LEARNING = 7, +IFLA_VXLAN_AGEING = 8, +IFLA_VXLAN_LIMIT = 9, +IFLA_VXLAN_PORT_RANGE = 10, +IFLA_VXLAN_PROXY = 11, +IFLA_VXLAN_RSC = 12, +IFLA_VXLAN_L2MISS = 13, +IFLA_VXLAN_L3MISS = 14, +IFLA_VXLAN_PORT = 15, +IFLA_VXLAN_GROUP6 = 16, +IFLA_VXLAN_LOCAL6 = 17, +IFLA_VXLAN_UDP_CSUM = 18, +IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, +IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, +IFLA_VXLAN_REMCSUM_TX = 21, +IFLA_VXLAN_REMCSUM_RX = 22, +IFLA_VXLAN_GBP = 23, +IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, +IFLA_VXLAN_COLLECT_METADATA = 25, +IFLA_VXLAN_LABEL = 26, +IFLA_VXLAN_GPE = 27, +IFLA_VXLAN_TTL_INHERIT = 28, +IFLA_VXLAN_DF = 29, +IFLA_VXLAN_VNIFILTER = 30, +IFLA_VXLAN_LOCALBYPASS = 31, +IFLA_VXLAN_LABEL_POLICY = 32, +IFLA_VXLAN_RESERVED_BITS = 33, +__IFLA_VXLAN_MAX = 34, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_df { +VXLAN_DF_UNSET = 0, +VXLAN_DF_SET = 1, +VXLAN_DF_INHERIT = 2, +__VXLAN_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_label_policy { +VXLAN_LABEL_FIXED = 0, +VXLAN_LABEL_INHERIT = 1, +__VXLAN_LABEL_END = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_23 { +IFLA_GENEVE_UNSPEC = 0, +IFLA_GENEVE_ID = 1, +IFLA_GENEVE_REMOTE = 2, +IFLA_GENEVE_TTL = 3, +IFLA_GENEVE_TOS = 4, +IFLA_GENEVE_PORT = 5, +IFLA_GENEVE_COLLECT_METADATA = 6, +IFLA_GENEVE_REMOTE6 = 7, +IFLA_GENEVE_UDP_CSUM = 8, +IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, +IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, +IFLA_GENEVE_LABEL = 11, +IFLA_GENEVE_TTL_INHERIT = 12, +IFLA_GENEVE_DF = 13, +IFLA_GENEVE_INNER_PROTO_INHERIT = 14, +IFLA_GENEVE_PORT_RANGE = 15, +__IFLA_GENEVE_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_geneve_df { +GENEVE_DF_UNSET = 0, +GENEVE_DF_SET = 1, +GENEVE_DF_INHERIT = 2, +__GENEVE_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_24 { +IFLA_BAREUDP_UNSPEC = 0, +IFLA_BAREUDP_PORT = 1, +IFLA_BAREUDP_ETHERTYPE = 2, +IFLA_BAREUDP_SRCPORT_MIN = 3, +IFLA_BAREUDP_MULTIPROTO_MODE = 4, +__IFLA_BAREUDP_MAX = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_25 { +IFLA_PPP_UNSPEC = 0, +IFLA_PPP_DEV_FD = 1, +__IFLA_PPP_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_gtp_role { +GTP_ROLE_GGSN = 0, +GTP_ROLE_SGSN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_26 { +IFLA_GTP_UNSPEC = 0, +IFLA_GTP_FD0 = 1, +IFLA_GTP_FD1 = 2, +IFLA_GTP_PDP_HASHSIZE = 3, +IFLA_GTP_ROLE = 4, +IFLA_GTP_CREATE_SOCKETS = 5, +IFLA_GTP_RESTART_COUNT = 6, +IFLA_GTP_LOCAL = 7, +IFLA_GTP_LOCAL6 = 8, +__IFLA_GTP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_27 { +IFLA_BOND_UNSPEC = 0, +IFLA_BOND_MODE = 1, +IFLA_BOND_ACTIVE_SLAVE = 2, +IFLA_BOND_MIIMON = 3, +IFLA_BOND_UPDELAY = 4, +IFLA_BOND_DOWNDELAY = 5, +IFLA_BOND_USE_CARRIER = 6, +IFLA_BOND_ARP_INTERVAL = 7, +IFLA_BOND_ARP_IP_TARGET = 8, +IFLA_BOND_ARP_VALIDATE = 9, +IFLA_BOND_ARP_ALL_TARGETS = 10, +IFLA_BOND_PRIMARY = 11, +IFLA_BOND_PRIMARY_RESELECT = 12, +IFLA_BOND_FAIL_OVER_MAC = 13, +IFLA_BOND_XMIT_HASH_POLICY = 14, +IFLA_BOND_RESEND_IGMP = 15, +IFLA_BOND_NUM_PEER_NOTIF = 16, +IFLA_BOND_ALL_SLAVES_ACTIVE = 17, +IFLA_BOND_MIN_LINKS = 18, +IFLA_BOND_LP_INTERVAL = 19, +IFLA_BOND_PACKETS_PER_SLAVE = 20, +IFLA_BOND_AD_LACP_RATE = 21, +IFLA_BOND_AD_SELECT = 22, +IFLA_BOND_AD_INFO = 23, +IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, +IFLA_BOND_AD_USER_PORT_KEY = 25, +IFLA_BOND_AD_ACTOR_SYSTEM = 26, +IFLA_BOND_TLB_DYNAMIC_LB = 27, +IFLA_BOND_PEER_NOTIF_DELAY = 28, +IFLA_BOND_AD_LACP_ACTIVE = 29, +IFLA_BOND_MISSED_MAX = 30, +IFLA_BOND_NS_IP6_TARGET = 31, +IFLA_BOND_COUPLED_CONTROL = 32, +__IFLA_BOND_MAX = 33, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_28 { +IFLA_BOND_AD_INFO_UNSPEC = 0, +IFLA_BOND_AD_INFO_AGGREGATOR = 1, +IFLA_BOND_AD_INFO_NUM_PORTS = 2, +IFLA_BOND_AD_INFO_ACTOR_KEY = 3, +IFLA_BOND_AD_INFO_PARTNER_KEY = 4, +IFLA_BOND_AD_INFO_PARTNER_MAC = 5, +__IFLA_BOND_AD_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_29 { +IFLA_BOND_SLAVE_UNSPEC = 0, +IFLA_BOND_SLAVE_STATE = 1, +IFLA_BOND_SLAVE_MII_STATUS = 2, +IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, +IFLA_BOND_SLAVE_PERM_HWADDR = 4, +IFLA_BOND_SLAVE_QUEUE_ID = 5, +IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, +IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, +IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, +IFLA_BOND_SLAVE_PRIO = 9, +__IFLA_BOND_SLAVE_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_30 { +IFLA_VF_INFO_UNSPEC = 0, +IFLA_VF_INFO = 1, +__IFLA_VF_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_31 { +IFLA_VF_UNSPEC = 0, +IFLA_VF_MAC = 1, +IFLA_VF_VLAN = 2, +IFLA_VF_TX_RATE = 3, +IFLA_VF_SPOOFCHK = 4, +IFLA_VF_LINK_STATE = 5, +IFLA_VF_RATE = 6, +IFLA_VF_RSS_QUERY_EN = 7, +IFLA_VF_STATS = 8, +IFLA_VF_TRUST = 9, +IFLA_VF_IB_NODE_GUID = 10, +IFLA_VF_IB_PORT_GUID = 11, +IFLA_VF_VLAN_LIST = 12, +IFLA_VF_BROADCAST = 13, +__IFLA_VF_MAX = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_32 { +IFLA_VF_VLAN_INFO_UNSPEC = 0, +IFLA_VF_VLAN_INFO = 1, +__IFLA_VF_VLAN_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_33 { +IFLA_VF_LINK_STATE_AUTO = 0, +IFLA_VF_LINK_STATE_ENABLE = 1, +IFLA_VF_LINK_STATE_DISABLE = 2, +__IFLA_VF_LINK_STATE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_34 { +IFLA_VF_STATS_RX_PACKETS = 0, +IFLA_VF_STATS_TX_PACKETS = 1, +IFLA_VF_STATS_RX_BYTES = 2, +IFLA_VF_STATS_TX_BYTES = 3, +IFLA_VF_STATS_BROADCAST = 4, +IFLA_VF_STATS_MULTICAST = 5, +IFLA_VF_STATS_PAD = 6, +IFLA_VF_STATS_RX_DROPPED = 7, +IFLA_VF_STATS_TX_DROPPED = 8, +__IFLA_VF_STATS_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_35 { +IFLA_VF_PORT_UNSPEC = 0, +IFLA_VF_PORT = 1, +__IFLA_VF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_36 { +IFLA_PORT_UNSPEC = 0, +IFLA_PORT_VF = 1, +IFLA_PORT_PROFILE = 2, +IFLA_PORT_VSI_TYPE = 3, +IFLA_PORT_INSTANCE_UUID = 4, +IFLA_PORT_HOST_UUID = 5, +IFLA_PORT_REQUEST = 6, +IFLA_PORT_RESPONSE = 7, +__IFLA_PORT_MAX = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_37 { +PORT_REQUEST_PREASSOCIATE = 0, +PORT_REQUEST_PREASSOCIATE_RR = 1, +PORT_REQUEST_ASSOCIATE = 2, +PORT_REQUEST_DISASSOCIATE = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_38 { +PORT_VDP_RESPONSE_SUCCESS = 0, +PORT_VDP_RESPONSE_INVALID_FORMAT = 1, +PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, +PORT_VDP_RESPONSE_UNUSED_VTID = 3, +PORT_VDP_RESPONSE_VTID_VIOLATION = 4, +PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, +PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, +PORT_PROFILE_RESPONSE_SUCCESS = 256, +PORT_PROFILE_RESPONSE_INPROGRESS = 257, +PORT_PROFILE_RESPONSE_INVALID = 258, +PORT_PROFILE_RESPONSE_BADSTATE = 259, +PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, +PORT_PROFILE_RESPONSE_ERROR = 261, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_39 { +IFLA_IPOIB_UNSPEC = 0, +IFLA_IPOIB_PKEY = 1, +IFLA_IPOIB_MODE = 2, +IFLA_IPOIB_UMCAST = 3, +__IFLA_IPOIB_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_40 { +IPOIB_MODE_DATAGRAM = 0, +IPOIB_MODE_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_41 { +HSR_PROTOCOL_HSR = 0, +HSR_PROTOCOL_PRP = 1, +HSR_PROTOCOL_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_42 { +IFLA_HSR_UNSPEC = 0, +IFLA_HSR_SLAVE1 = 1, +IFLA_HSR_SLAVE2 = 2, +IFLA_HSR_MULTICAST_SPEC = 3, +IFLA_HSR_SUPERVISION_ADDR = 4, +IFLA_HSR_SEQ_NR = 5, +IFLA_HSR_VERSION = 6, +IFLA_HSR_PROTOCOL = 7, +IFLA_HSR_INTERLINK = 8, +__IFLA_HSR_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_43 { +IFLA_STATS_UNSPEC = 0, +IFLA_STATS_LINK_64 = 1, +IFLA_STATS_LINK_XSTATS = 2, +IFLA_STATS_LINK_XSTATS_SLAVE = 3, +IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, +IFLA_STATS_AF_SPEC = 5, +__IFLA_STATS_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_44 { +IFLA_STATS_GETSET_UNSPEC = 0, +IFLA_STATS_GET_FILTERS = 1, +IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, +__IFLA_STATS_GETSET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_45 { +LINK_XSTATS_TYPE_UNSPEC = 0, +LINK_XSTATS_TYPE_BRIDGE = 1, +LINK_XSTATS_TYPE_BOND = 2, +__LINK_XSTATS_TYPE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_46 { +IFLA_OFFLOAD_XSTATS_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, +IFLA_OFFLOAD_XSTATS_L3_STATS = 3, +__IFLA_OFFLOAD_XSTATS_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_47 { +IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, +__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_48 { +XDP_ATTACHED_NONE = 0, +XDP_ATTACHED_DRV = 1, +XDP_ATTACHED_SKB = 2, +XDP_ATTACHED_HW = 3, +XDP_ATTACHED_MULTI = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_49 { +IFLA_XDP_UNSPEC = 0, +IFLA_XDP_FD = 1, +IFLA_XDP_ATTACHED = 2, +IFLA_XDP_FLAGS = 3, +IFLA_XDP_PROG_ID = 4, +IFLA_XDP_DRV_PROG_ID = 5, +IFLA_XDP_SKB_PROG_ID = 6, +IFLA_XDP_HW_PROG_ID = 7, +IFLA_XDP_EXPECTED_FD = 8, +__IFLA_XDP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_50 { +IFLA_EVENT_NONE = 0, +IFLA_EVENT_REBOOT = 1, +IFLA_EVENT_FEATURES = 2, +IFLA_EVENT_BONDING_FAILOVER = 3, +IFLA_EVENT_NOTIFY_PEERS = 4, +IFLA_EVENT_IGMP_RESEND = 5, +IFLA_EVENT_BONDING_OPTIONS = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_51 { +IFLA_TUN_UNSPEC = 0, +IFLA_TUN_OWNER = 1, +IFLA_TUN_GROUP = 2, +IFLA_TUN_TYPE = 3, +IFLA_TUN_PI = 4, +IFLA_TUN_VNET_HDR = 5, +IFLA_TUN_PERSIST = 6, +IFLA_TUN_MULTI_QUEUE = 7, +IFLA_TUN_NUM_QUEUES = 8, +IFLA_TUN_NUM_DISABLED_QUEUES = 9, +__IFLA_TUN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_52 { +IFLA_RMNET_UNSPEC = 0, +IFLA_RMNET_MUX_ID = 1, +IFLA_RMNET_FLAGS = 2, +__IFLA_RMNET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_53 { +IFLA_MCTP_UNSPEC = 0, +IFLA_MCTP_NET = 1, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_54 { +IFLA_DSA_UNSPEC = 0, +IFLA_DSA_CONDUIT = 1, +__IFLA_DSA_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ovpn_mode { +OVPN_MODE_P2P = 0, +OVPN_MODE_MP = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_55 { +IFLA_OVPN_UNSPEC = 0, +IFLA_OVPN_MODE = 1, +__IFLA_OVPN_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_56 { +IFA_UNSPEC = 0, +IFA_ADDRESS = 1, +IFA_LOCAL = 2, +IFA_LABEL = 3, +IFA_BROADCAST = 4, +IFA_ANYCAST = 5, +IFA_CACHEINFO = 6, +IFA_MULTICAST = 7, +IFA_FLAGS = 8, +IFA_RT_PRIORITY = 9, +IFA_TARGET_NETNSID = 10, +IFA_PROTO = 11, +__IFA_MAX = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_57 { +NDA_UNSPEC = 0, +NDA_DST = 1, +NDA_LLADDR = 2, +NDA_CACHEINFO = 3, +NDA_PROBES = 4, +NDA_VLAN = 5, +NDA_PORT = 6, +NDA_VNI = 7, +NDA_IFINDEX = 8, +NDA_MASTER = 9, +NDA_LINK_NETNSID = 10, +NDA_SRC_VNI = 11, +NDA_PROTOCOL = 12, +NDA_NH_ID = 13, +NDA_FDB_EXT_ATTRS = 14, +NDA_FLAGS_EXT = 15, +NDA_NDM_STATE_MASK = 16, +NDA_NDM_FLAGS_MASK = 17, +__NDA_MAX = 18, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_58 { +NDTPA_UNSPEC = 0, +NDTPA_IFINDEX = 1, +NDTPA_REFCNT = 2, +NDTPA_REACHABLE_TIME = 3, +NDTPA_BASE_REACHABLE_TIME = 4, +NDTPA_RETRANS_TIME = 5, +NDTPA_GC_STALETIME = 6, +NDTPA_DELAY_PROBE_TIME = 7, +NDTPA_QUEUE_LEN = 8, +NDTPA_APP_PROBES = 9, +NDTPA_UCAST_PROBES = 10, +NDTPA_MCAST_PROBES = 11, +NDTPA_ANYCAST_DELAY = 12, +NDTPA_PROXY_DELAY = 13, +NDTPA_PROXY_QLEN = 14, +NDTPA_LOCKTIME = 15, +NDTPA_QUEUE_LENBYTES = 16, +NDTPA_MCAST_REPROBES = 17, +NDTPA_PAD = 18, +NDTPA_INTERVAL_PROBE_TIME_MS = 19, +__NDTPA_MAX = 20, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_59 { +NDTA_UNSPEC = 0, +NDTA_NAME = 1, +NDTA_THRESH1 = 2, +NDTA_THRESH2 = 3, +NDTA_THRESH3 = 4, +NDTA_CONFIG = 5, +NDTA_PARMS = 6, +NDTA_STATS = 7, +NDTA_GC_INTERVAL = 8, +NDTA_PAD = 9, +__NDTA_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_60 { +FDB_NOTIFY_BIT = 1, +FDB_NOTIFY_INACTIVE_BIT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_61 { +NFEA_UNSPEC = 0, +NFEA_ACTIVITY_NOTIFY = 1, +NFEA_DONT_REFRESH = 2, +__NFEA_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_62 { +RTM_BASE = 16, +RTM_DELLINK = 17, +RTM_GETLINK = 18, +RTM_SETLINK = 19, +RTM_NEWADDR = 20, +RTM_DELADDR = 21, +RTM_GETADDR = 22, +RTM_NEWROUTE = 24, +RTM_DELROUTE = 25, +RTM_GETROUTE = 26, +RTM_NEWNEIGH = 28, +RTM_DELNEIGH = 29, +RTM_GETNEIGH = 30, +RTM_NEWRULE = 32, +RTM_DELRULE = 33, +RTM_GETRULE = 34, +RTM_NEWQDISC = 36, +RTM_DELQDISC = 37, +RTM_GETQDISC = 38, +RTM_NEWTCLASS = 40, +RTM_DELTCLASS = 41, +RTM_GETTCLASS = 42, +RTM_NEWTFILTER = 44, +RTM_DELTFILTER = 45, +RTM_GETTFILTER = 46, +RTM_NEWACTION = 48, +RTM_DELACTION = 49, +RTM_GETACTION = 50, +RTM_NEWPREFIX = 52, +RTM_NEWMULTICAST = 56, +RTM_DELMULTICAST = 57, +RTM_GETMULTICAST = 58, +RTM_NEWANYCAST = 60, +RTM_DELANYCAST = 61, +RTM_GETANYCAST = 62, +RTM_NEWNEIGHTBL = 64, +RTM_GETNEIGHTBL = 66, +RTM_SETNEIGHTBL = 67, +RTM_NEWNDUSEROPT = 68, +RTM_NEWADDRLABEL = 72, +RTM_DELADDRLABEL = 73, +RTM_GETADDRLABEL = 74, +RTM_GETDCB = 78, +RTM_SETDCB = 79, +RTM_NEWNETCONF = 80, +RTM_DELNETCONF = 81, +RTM_GETNETCONF = 82, +RTM_NEWMDB = 84, +RTM_DELMDB = 85, +RTM_GETMDB = 86, +RTM_NEWNSID = 88, +RTM_DELNSID = 89, +RTM_GETNSID = 90, +RTM_NEWSTATS = 92, +RTM_GETSTATS = 94, +RTM_SETSTATS = 95, +RTM_NEWCACHEREPORT = 96, +RTM_NEWCHAIN = 100, +RTM_DELCHAIN = 101, +RTM_GETCHAIN = 102, +RTM_NEWNEXTHOP = 104, +RTM_DELNEXTHOP = 105, +RTM_GETNEXTHOP = 106, +RTM_NEWLINKPROP = 108, +RTM_DELLINKPROP = 109, +RTM_GETLINKPROP = 110, +RTM_NEWVLAN = 112, +RTM_DELVLAN = 113, +RTM_GETVLAN = 114, +RTM_NEWNEXTHOPBUCKET = 116, +RTM_DELNEXTHOPBUCKET = 117, +RTM_GETNEXTHOPBUCKET = 118, +RTM_NEWTUNNEL = 120, +RTM_DELTUNNEL = 121, +RTM_GETTUNNEL = 122, +__RTM_MAX = 123, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_63 { +RTN_UNSPEC = 0, +RTN_UNICAST = 1, +RTN_LOCAL = 2, +RTN_BROADCAST = 3, +RTN_ANYCAST = 4, +RTN_MULTICAST = 5, +RTN_BLACKHOLE = 6, +RTN_UNREACHABLE = 7, +RTN_PROHIBIT = 8, +RTN_THROW = 9, +RTN_NAT = 10, +RTN_XRESOLVE = 11, +__RTN_MAX = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum rt_scope_t { +RT_SCOPE_UNIVERSE = 0, +RT_SCOPE_SITE = 200, +RT_SCOPE_LINK = 253, +RT_SCOPE_HOST = 254, +RT_SCOPE_NOWHERE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum rt_class_t { +RT_TABLE_UNSPEC = 0, +RT_TABLE_COMPAT = 252, +RT_TABLE_DEFAULT = 253, +RT_TABLE_MAIN = 254, +RT_TABLE_LOCAL = 255, +RT_TABLE_MAX = 4294967295, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum rtattr_type_t { +RTA_UNSPEC = 0, +RTA_DST = 1, +RTA_SRC = 2, +RTA_IIF = 3, +RTA_OIF = 4, +RTA_GATEWAY = 5, +RTA_PRIORITY = 6, +RTA_PREFSRC = 7, +RTA_METRICS = 8, +RTA_MULTIPATH = 9, +RTA_PROTOINFO = 10, +RTA_FLOW = 11, +RTA_CACHEINFO = 12, +RTA_SESSION = 13, +RTA_MP_ALGO = 14, +RTA_TABLE = 15, +RTA_MARK = 16, +RTA_MFC_STATS = 17, +RTA_VIA = 18, +RTA_NEWDST = 19, +RTA_PREF = 20, +RTA_ENCAP_TYPE = 21, +RTA_ENCAP = 22, +RTA_EXPIRES = 23, +RTA_PAD = 24, +RTA_UID = 25, +RTA_TTL_PROPAGATE = 26, +RTA_IP_PROTO = 27, +RTA_SPORT = 28, +RTA_DPORT = 29, +RTA_NH_ID = 30, +RTA_FLOWLABEL = 31, +__RTA_MAX = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_64 { +RTAX_UNSPEC = 0, +RTAX_LOCK = 1, +RTAX_MTU = 2, +RTAX_WINDOW = 3, +RTAX_RTT = 4, +RTAX_RTTVAR = 5, +RTAX_SSTHRESH = 6, +RTAX_CWND = 7, +RTAX_ADVMSS = 8, +RTAX_REORDERING = 9, +RTAX_HOPLIMIT = 10, +RTAX_INITCWND = 11, +RTAX_FEATURES = 12, +RTAX_RTO_MIN = 13, +RTAX_INITRWND = 14, +RTAX_QUICKACK = 15, +RTAX_CC_ALGO = 16, +RTAX_FASTOPEN_NO_COOKIE = 17, +__RTAX_MAX = 18, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_65 { +PREFIX_UNSPEC = 0, +PREFIX_ADDRESS = 1, +PREFIX_CACHEINFO = 2, +__PREFIX_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_66 { +TCA_UNSPEC = 0, +TCA_KIND = 1, +TCA_OPTIONS = 2, +TCA_STATS = 3, +TCA_XSTATS = 4, +TCA_RATE = 5, +TCA_FCNT = 6, +TCA_STATS2 = 7, +TCA_STAB = 8, +TCA_PAD = 9, +TCA_DUMP_INVISIBLE = 10, +TCA_CHAIN = 11, +TCA_HW_OFFLOAD = 12, +TCA_INGRESS_BLOCK = 13, +TCA_EGRESS_BLOCK = 14, +TCA_DUMP_FLAGS = 15, +TCA_EXT_WARN_MSG = 16, +__TCA_MAX = 17, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_67 { +NDUSEROPT_UNSPEC = 0, +NDUSEROPT_SRCADDR = 1, +__NDUSEROPT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum rtnetlink_groups { +RTNLGRP_NONE = 0, +RTNLGRP_LINK = 1, +RTNLGRP_NOTIFY = 2, +RTNLGRP_NEIGH = 3, +RTNLGRP_TC = 4, +RTNLGRP_IPV4_IFADDR = 5, +RTNLGRP_IPV4_MROUTE = 6, +RTNLGRP_IPV4_ROUTE = 7, +RTNLGRP_IPV4_RULE = 8, +RTNLGRP_IPV6_IFADDR = 9, +RTNLGRP_IPV6_MROUTE = 10, +RTNLGRP_IPV6_ROUTE = 11, +RTNLGRP_IPV6_IFINFO = 12, +RTNLGRP_DECnet_IFADDR = 13, +RTNLGRP_NOP2 = 14, +RTNLGRP_DECnet_ROUTE = 15, +RTNLGRP_DECnet_RULE = 16, +RTNLGRP_NOP4 = 17, +RTNLGRP_IPV6_PREFIX = 18, +RTNLGRP_IPV6_RULE = 19, +RTNLGRP_ND_USEROPT = 20, +RTNLGRP_PHONET_IFADDR = 21, +RTNLGRP_PHONET_ROUTE = 22, +RTNLGRP_DCB = 23, +RTNLGRP_IPV4_NETCONF = 24, +RTNLGRP_IPV6_NETCONF = 25, +RTNLGRP_MDB = 26, +RTNLGRP_MPLS_ROUTE = 27, +RTNLGRP_NSID = 28, +RTNLGRP_MPLS_NETCONF = 29, +RTNLGRP_IPV4_MROUTE_R = 30, +RTNLGRP_IPV6_MROUTE_R = 31, +RTNLGRP_NEXTHOP = 32, +RTNLGRP_BRVLAN = 33, +RTNLGRP_MCTP_IFADDR = 34, +RTNLGRP_TUNNEL = 35, +RTNLGRP_STATS = 36, +RTNLGRP_IPV4_MCADDR = 37, +RTNLGRP_IPV6_MCADDR = 38, +RTNLGRP_IPV6_ACADDR = 39, +__RTNLGRP_MAX = 40, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_68 { +TCA_ROOT_UNSPEC = 0, +TCA_ROOT_TAB = 1, +TCA_ROOT_FLAGS = 2, +TCA_ROOT_COUNT = 3, +TCA_ROOT_TIME_DELTA = 4, +TCA_ROOT_EXT_WARN_MSG = 5, +__TCA_ROOT_MAX = 6, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __kernel_sockaddr_storage__bindgen_ty_1 { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, +pub __align: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union rta_session__bindgen_ty_1 { +pub ports: rta_session__bindgen_ty_1__bindgen_ty_1, +pub icmpt: rta_session__bindgen_ty_1__bindgen_ty_2, +pub spi: __u32, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl nlmsgerr_attrs { +pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; +} +impl netlink_policy_type_attr { +pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; +} +impl nl80211_commands { +pub const NL80211_CMD_NEW_BEACON: nl80211_commands = nl80211_commands::NL80211_CMD_START_AP; +} +impl nl80211_commands { +pub const NL80211_CMD_DEL_BEACON: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_AP; +} +impl nl80211_commands { +pub const NL80211_CMD_REGISTER_ACTION: nl80211_commands = nl80211_commands::NL80211_CMD_REGISTER_FRAME; +} +impl nl80211_commands { +pub const NL80211_CMD_ACTION: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME; +} +impl nl80211_commands { +pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; +} +impl nl80211_commands { +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +} +impl nl80211_attrs { +pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; +} +impl nl80211_attrs { +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS; +} +impl nl80211_iftype { +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +} +impl nl80211_sta_flags { +pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; +} +impl nl80211_rate_info { +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +} +impl nl80211_sta_bss_param { +pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; +} +impl nl80211_sta_info { +pub const NL80211_STA_INFO_MAX: nl80211_sta_info = nl80211_sta_info::NL80211_STA_INFO_CONNECTED_TO_AS; +} +impl nl80211_tid_stats { +pub const NL80211_TID_STATS_MAX: nl80211_tid_stats = nl80211_tid_stats::NL80211_TID_STATS_TXQ_STATS; +} +impl nl80211_txq_stats { +pub const NL80211_TXQ_STATS_MAX: nl80211_txq_stats = nl80211_txq_stats::NL80211_TXQ_STATS_MAX_FLOWS; +} +impl nl80211_mpath_info { +pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; +} +impl nl80211_band_iftype_attr { +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +} +impl nl80211_band_attr { +pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; +} +impl nl80211_wmm_rule { +pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; +} +impl nl80211_frequency_attr { +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +} +impl nl80211_bitrate_attr { +pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; +} +impl nl80211_reg_rule_attr { +pub const NL80211_REG_RULE_ATTR_MAX: nl80211_reg_rule_attr = nl80211_reg_rule_attr::NL80211_ATTR_POWER_RULE_PSD; +} +impl nl80211_sched_scan_match_attr { +pub const NL80211_SCHED_SCAN_MATCH_ATTR_MAX: nl80211_sched_scan_match_attr = nl80211_sched_scan_match_attr::NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI; +} +impl nl80211_survey_info { +pub const NL80211_SURVEY_INFO_MAX: nl80211_survey_info = nl80211_survey_info::NL80211_SURVEY_INFO_FREQUENCY_OFFSET; +} +impl nl80211_mntr_flags { +pub const NL80211_MNTR_FLAG_MAX: nl80211_mntr_flags = nl80211_mntr_flags::NL80211_MNTR_FLAG_SKIP_TX; +} +impl nl80211_mesh_power_mode { +pub const NL80211_MESH_POWER_MAX: nl80211_mesh_power_mode = nl80211_mesh_power_mode::NL80211_MESH_POWER_DEEP_SLEEP; +} +impl nl80211_meshconf_params { +pub const NL80211_MESHCONF_ATTR_MAX: nl80211_meshconf_params = nl80211_meshconf_params::NL80211_MESHCONF_CONNECTED_TO_AS; +} +impl nl80211_mesh_setup_params { +pub const NL80211_MESH_SETUP_ATTR_MAX: nl80211_mesh_setup_params = nl80211_mesh_setup_params::NL80211_MESH_SETUP_AUTH_PROTOCOL; +} +impl nl80211_txq_attr { +pub const NL80211_TXQ_ATTR_MAX: nl80211_txq_attr = nl80211_txq_attr::NL80211_TXQ_ATTR_AIFS; +} +impl nl80211_bss { +pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; +} +impl nl80211_auth_type { +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +} +impl nl80211_auth_type { +pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; +} +impl nl80211_key_attributes { +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +} +impl nl80211_tx_rate_attributes { +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +} +impl nl80211_attr_cqm { +pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; +} +impl nl80211_tid_config_attr { +pub const NL80211_TID_CONFIG_ATTR_MAX: nl80211_tid_config_attr = nl80211_tid_config_attr::NL80211_TID_CONFIG_ATTR_TX_RATE; +} +impl nl80211_packet_pattern_attr { +pub const MAX_NL80211_PKTPAT: nl80211_packet_pattern_attr = nl80211_packet_pattern_attr::NL80211_PKTPAT_OFFSET; +} +impl nl80211_wowlan_triggers { +pub const MAX_NL80211_WOWLAN_TRIG: nl80211_wowlan_triggers = nl80211_wowlan_triggers::NL80211_WOWLAN_TRIG_UNPROTECTED_DEAUTH_DISASSOC; +} +impl nl80211_wowlan_tcp_attrs { +pub const MAX_NL80211_WOWLAN_TCP: nl80211_wowlan_tcp_attrs = nl80211_wowlan_tcp_attrs::NL80211_WOWLAN_TCP_WAKE_MASK; +} +impl nl80211_attr_coalesce_rule { +pub const NL80211_ATTR_COALESCE_RULE_MAX: nl80211_attr_coalesce_rule = nl80211_attr_coalesce_rule::NL80211_ATTR_COALESCE_RULE_PKT_PATTERN; +} +impl nl80211_iface_limit_attrs { +pub const MAX_NL80211_IFACE_LIMIT: nl80211_iface_limit_attrs = nl80211_iface_limit_attrs::NL80211_IFACE_LIMIT_TYPES; +} +impl nl80211_if_combination_attrs { +pub const MAX_NL80211_IFACE_COMB: nl80211_if_combination_attrs = nl80211_if_combination_attrs::NL80211_IFACE_COMB_BI_MIN_GCD; +} +impl nl80211_plink_state { +pub const MAX_NL80211_PLINK_STATES: nl80211_plink_state = nl80211_plink_state::NL80211_PLINK_BLOCKED; +} +impl nl80211_rekey_data { +pub const MAX_NL80211_REKEY_DATA: nl80211_rekey_data = nl80211_rekey_data::NL80211_REKEY_DATA_AKM; +} +impl nl80211_sta_wme_attr { +pub const NL80211_STA_WME_MAX: nl80211_sta_wme_attr = nl80211_sta_wme_attr::NL80211_STA_WME_MAX_SP; +} +impl nl80211_pmksa_candidate_attr { +pub const MAX_NL80211_PMKSA_CANDIDATE: nl80211_pmksa_candidate_attr = nl80211_pmksa_candidate_attr::NL80211_PMKSA_CANDIDATE_PREAUTH; +} +impl nl80211_ext_feature_index { +pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; +} +impl nl80211_ext_feature_index { +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +} +impl nl80211_smps_mode { +pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; +} +impl nl80211_sched_scan_plan { +pub const NL80211_SCHED_SCAN_PLAN_MAX: nl80211_sched_scan_plan = nl80211_sched_scan_plan::NL80211_SCHED_SCAN_PLAN_ITERATIONS; +} +impl nl80211_bss_select_attr { +pub const NL80211_BSS_SELECT_ATTR_MAX: nl80211_bss_select_attr = nl80211_bss_select_attr::NL80211_BSS_SELECT_ATTR_RSSI_ADJUST; +} +impl nl80211_nan_function_type { +pub const NL80211_NAN_FUNC_MAX_TYPE: nl80211_nan_function_type = nl80211_nan_function_type::NL80211_NAN_FUNC_FOLLOW_UP; +} +impl nl80211_nan_func_attributes { +pub const NL80211_NAN_FUNC_ATTR_MAX: nl80211_nan_func_attributes = nl80211_nan_func_attributes::NL80211_NAN_FUNC_TERM_REASON; +} +impl nl80211_nan_srf_attributes { +pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf_attributes::NL80211_NAN_SRF_MAC_ADDRS; +} +impl nl80211_nan_match_attributes { +pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; +} +impl nl80211_ftm_responder_attributes { +pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; +} +impl nl80211_ftm_responder_stats { +pub const NL80211_FTM_STATS_MAX: nl80211_ftm_responder_stats = nl80211_ftm_responder_stats::NL80211_FTM_STATS_PAD; +} +impl nl80211_peer_measurement_type { +pub const NL80211_PMSR_TYPE_MAX: nl80211_peer_measurement_type = nl80211_peer_measurement_type::NL80211_PMSR_TYPE_FTM; +} +impl nl80211_peer_measurement_req { +pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer_measurement_req::NL80211_PMSR_REQ_ATTR_GET_AP_TSF; +} +impl nl80211_peer_measurement_resp { +pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; +} +impl nl80211_peer_measurement_peer_attrs { +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +} +impl nl80211_peer_measurement_attrs { +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +} +impl nl80211_peer_measurement_ftm_capa { +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +} +impl nl80211_peer_measurement_ftm_req { +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +} +impl nl80211_peer_measurement_ftm_resp { +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +} +impl nl80211_obss_pd_attributes { +pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; +} +impl nl80211_bss_color_attributes { +pub const NL80211_HE_BSS_COLOR_ATTR_MAX: nl80211_bss_color_attributes = nl80211_bss_color_attributes::NL80211_HE_BSS_COLOR_ATTR_PARTIAL; +} +impl nl80211_iftype_akm_attributes { +pub const NL80211_IFTYPE_AKM_ATTR_MAX: nl80211_iftype_akm_attributes = nl80211_iftype_akm_attributes::NL80211_IFTYPE_AKM_ATTR_SUITES; +} +impl nl80211_fils_discovery_attributes { +pub const NL80211_FILS_DISCOVERY_ATTR_MAX: nl80211_fils_discovery_attributes = nl80211_fils_discovery_attributes::NL80211_FILS_DISCOVERY_ATTR_TMPL; +} +impl nl80211_unsol_bcast_probe_resp_attributes { +pub const NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_MAX: nl80211_unsol_bcast_probe_resp_attributes = nl80211_unsol_bcast_probe_resp_attributes::NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_TMPL; +} +impl nl80211_sar_attrs { +pub const NL80211_SAR_ATTR_MAX: nl80211_sar_attrs = nl80211_sar_attrs::NL80211_SAR_ATTR_SPECS; +} +impl nl80211_sar_specs_attrs { +pub const NL80211_SAR_ATTR_SPECS_MAX: nl80211_sar_specs_attrs = nl80211_sar_specs_attrs::NL80211_SAR_ATTR_SPECS_END_FREQ; +} +impl nl80211_mbssid_config_attributes { +pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID; +} +impl nl80211_wiphy_radio_attrs { +pub const NL80211_WIPHY_RADIO_ATTR_MAX: nl80211_wiphy_radio_attrs = nl80211_wiphy_radio_attrs::NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK; +} +impl nl80211_wiphy_radio_freq_range { +pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl80211_wiphy_radio_freq_range::NL80211_WIPHY_RADIO_FREQ_ATTR_END; +} +impl macsec_validation_type { +pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; +} +impl macsec_offload { +pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; +} +impl ifla_vxlan_df { +pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; +} +impl ifla_vxlan_label_policy { +pub const VXLAN_LABEL_MAX: ifla_vxlan_label_policy = ifla_vxlan_label_policy::VXLAN_LABEL_INHERIT; +} +impl ifla_geneve_df { +pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/prctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/prctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..bc57e740cc2bae9c99cb4c120186c555328f2625 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/prctl.rs @@ -0,0 +1,271 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct prctl_mm_map { +pub start_code: __u64, +pub end_code: __u64, +pub start_data: __u64, +pub end_data: __u64, +pub start_brk: __u64, +pub brk: __u64, +pub start_stack: __u64, +pub arg_start: __u64, +pub arg_end: __u64, +pub env_start: __u64, +pub env_end: __u64, +pub auxv: *mut __u64, +pub auxv_size: __u32, +pub exe_fd: __u32, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const PR_SET_PDEATHSIG: u32 = 1; +pub const PR_GET_PDEATHSIG: u32 = 2; +pub const PR_GET_DUMPABLE: u32 = 3; +pub const PR_SET_DUMPABLE: u32 = 4; +pub const PR_GET_UNALIGN: u32 = 5; +pub const PR_SET_UNALIGN: u32 = 6; +pub const PR_UNALIGN_NOPRINT: u32 = 1; +pub const PR_UNALIGN_SIGBUS: u32 = 2; +pub const PR_GET_KEEPCAPS: u32 = 7; +pub const PR_SET_KEEPCAPS: u32 = 8; +pub const PR_GET_FPEMU: u32 = 9; +pub const PR_SET_FPEMU: u32 = 10; +pub const PR_FPEMU_NOPRINT: u32 = 1; +pub const PR_FPEMU_SIGFPE: u32 = 2; +pub const PR_GET_FPEXC: u32 = 11; +pub const PR_SET_FPEXC: u32 = 12; +pub const PR_FP_EXC_SW_ENABLE: u32 = 128; +pub const PR_FP_EXC_DIV: u32 = 65536; +pub const PR_FP_EXC_OVF: u32 = 131072; +pub const PR_FP_EXC_UND: u32 = 262144; +pub const PR_FP_EXC_RES: u32 = 524288; +pub const PR_FP_EXC_INV: u32 = 1048576; +pub const PR_FP_EXC_DISABLED: u32 = 0; +pub const PR_FP_EXC_NONRECOV: u32 = 1; +pub const PR_FP_EXC_ASYNC: u32 = 2; +pub const PR_FP_EXC_PRECISE: u32 = 3; +pub const PR_GET_TIMING: u32 = 13; +pub const PR_SET_TIMING: u32 = 14; +pub const PR_TIMING_STATISTICAL: u32 = 0; +pub const PR_TIMING_TIMESTAMP: u32 = 1; +pub const PR_SET_NAME: u32 = 15; +pub const PR_GET_NAME: u32 = 16; +pub const PR_GET_ENDIAN: u32 = 19; +pub const PR_SET_ENDIAN: u32 = 20; +pub const PR_ENDIAN_BIG: u32 = 0; +pub const PR_ENDIAN_LITTLE: u32 = 1; +pub const PR_ENDIAN_PPC_LITTLE: u32 = 2; +pub const PR_GET_SECCOMP: u32 = 21; +pub const PR_SET_SECCOMP: u32 = 22; +pub const PR_CAPBSET_READ: u32 = 23; +pub const PR_CAPBSET_DROP: u32 = 24; +pub const PR_GET_TSC: u32 = 25; +pub const PR_SET_TSC: u32 = 26; +pub const PR_TSC_ENABLE: u32 = 1; +pub const PR_TSC_SIGSEGV: u32 = 2; +pub const PR_GET_SECUREBITS: u32 = 27; +pub const PR_SET_SECUREBITS: u32 = 28; +pub const PR_SET_TIMERSLACK: u32 = 29; +pub const PR_GET_TIMERSLACK: u32 = 30; +pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31; +pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32; +pub const PR_MCE_KILL: u32 = 33; +pub const PR_MCE_KILL_CLEAR: u32 = 0; +pub const PR_MCE_KILL_SET: u32 = 1; +pub const PR_MCE_KILL_LATE: u32 = 0; +pub const PR_MCE_KILL_EARLY: u32 = 1; +pub const PR_MCE_KILL_DEFAULT: u32 = 2; +pub const PR_MCE_KILL_GET: u32 = 34; +pub const PR_SET_MM: u32 = 35; +pub const PR_SET_MM_START_CODE: u32 = 1; +pub const PR_SET_MM_END_CODE: u32 = 2; +pub const PR_SET_MM_START_DATA: u32 = 3; +pub const PR_SET_MM_END_DATA: u32 = 4; +pub const PR_SET_MM_START_STACK: u32 = 5; +pub const PR_SET_MM_START_BRK: u32 = 6; +pub const PR_SET_MM_BRK: u32 = 7; +pub const PR_SET_MM_ARG_START: u32 = 8; +pub const PR_SET_MM_ARG_END: u32 = 9; +pub const PR_SET_MM_ENV_START: u32 = 10; +pub const PR_SET_MM_ENV_END: u32 = 11; +pub const PR_SET_MM_AUXV: u32 = 12; +pub const PR_SET_MM_EXE_FILE: u32 = 13; +pub const PR_SET_MM_MAP: u32 = 14; +pub const PR_SET_MM_MAP_SIZE: u32 = 15; +pub const PR_SET_PTRACER: u32 = 1499557217; +pub const PR_SET_CHILD_SUBREAPER: u32 = 36; +pub const PR_GET_CHILD_SUBREAPER: u32 = 37; +pub const PR_SET_NO_NEW_PRIVS: u32 = 38; +pub const PR_GET_NO_NEW_PRIVS: u32 = 39; +pub const PR_GET_TID_ADDRESS: u32 = 40; +pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_GET_THP_DISABLE: u32 = 42; +pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; +pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; +pub const PR_SET_FP_MODE: u32 = 45; +pub const PR_GET_FP_MODE: u32 = 46; +pub const PR_FP_MODE_FR: u32 = 1; +pub const PR_FP_MODE_FRE: u32 = 2; +pub const PR_CAP_AMBIENT: u32 = 47; +pub const PR_CAP_AMBIENT_IS_SET: u32 = 1; +pub const PR_CAP_AMBIENT_RAISE: u32 = 2; +pub const PR_CAP_AMBIENT_LOWER: u32 = 3; +pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4; +pub const PR_SVE_SET_VL: u32 = 50; +pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SVE_GET_VL: u32 = 51; +pub const PR_SVE_VL_LEN_MASK: u32 = 65535; +pub const PR_SVE_VL_INHERIT: u32 = 131072; +pub const PR_GET_SPECULATION_CTRL: u32 = 52; +pub const PR_SET_SPECULATION_CTRL: u32 = 53; +pub const PR_SPEC_STORE_BYPASS: u32 = 0; +pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1; +pub const PR_SPEC_L1D_FLUSH: u32 = 2; +pub const PR_SPEC_NOT_AFFECTED: u32 = 0; +pub const PR_SPEC_PRCTL: u32 = 1; +pub const PR_SPEC_ENABLE: u32 = 2; +pub const PR_SPEC_DISABLE: u32 = 4; +pub const PR_SPEC_FORCE_DISABLE: u32 = 8; +pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16; +pub const PR_PAC_RESET_KEYS: u32 = 54; +pub const PR_PAC_APIAKEY: u32 = 1; +pub const PR_PAC_APIBKEY: u32 = 2; +pub const PR_PAC_APDAKEY: u32 = 4; +pub const PR_PAC_APDBKEY: u32 = 8; +pub const PR_PAC_APGAKEY: u32 = 16; +pub const PR_SET_TAGGED_ADDR_CTRL: u32 = 55; +pub const PR_GET_TAGGED_ADDR_CTRL: u32 = 56; +pub const PR_TAGGED_ADDR_ENABLE: u32 = 1; +pub const PR_MTE_TCF_NONE: u32 = 0; +pub const PR_MTE_TCF_SYNC: u32 = 2; +pub const PR_MTE_TCF_ASYNC: u32 = 4; +pub const PR_MTE_TCF_MASK: u32 = 6; +pub const PR_MTE_TAG_SHIFT: u32 = 3; +pub const PR_MTE_TAG_MASK: u32 = 524280; +pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_PMLEN_SHIFT: u32 = 24; +pub const PR_PMLEN_MASK: u32 = 2130706432; +pub const PR_SET_IO_FLUSHER: u32 = 57; +pub const PR_GET_IO_FLUSHER: u32 = 58; +pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; +pub const PR_SYS_DISPATCH_OFF: u32 = 0; +pub const PR_SYS_DISPATCH_ON: u32 = 1; +pub const SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; +pub const SYSCALL_DISPATCH_FILTER_BLOCK: u32 = 1; +pub const PR_PAC_SET_ENABLED_KEYS: u32 = 60; +pub const PR_PAC_GET_ENABLED_KEYS: u32 = 61; +pub const PR_SCHED_CORE: u32 = 62; +pub const PR_SCHED_CORE_GET: u32 = 0; +pub const PR_SCHED_CORE_CREATE: u32 = 1; +pub const PR_SCHED_CORE_SHARE_TO: u32 = 2; +pub const PR_SCHED_CORE_SHARE_FROM: u32 = 3; +pub const PR_SCHED_CORE_MAX: u32 = 4; +pub const PR_SCHED_CORE_SCOPE_THREAD: u32 = 0; +pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: u32 = 1; +pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: u32 = 2; +pub const PR_SME_SET_VL: u32 = 63; +pub const PR_SME_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SME_GET_VL: u32 = 64; +pub const PR_SME_VL_LEN_MASK: u32 = 65535; +pub const PR_SME_VL_INHERIT: u32 = 131072; +pub const PR_SET_MDWE: u32 = 65; +pub const PR_MDWE_REFUSE_EXEC_GAIN: u32 = 1; +pub const PR_MDWE_NO_INHERIT: u32 = 2; +pub const PR_GET_MDWE: u32 = 66; +pub const PR_SET_VMA: u32 = 1398164801; +pub const PR_SET_VMA_ANON_NAME: u32 = 0; +pub const PR_GET_AUXV: u32 = 1096112214; +pub const PR_SET_MEMORY_MERGE: u32 = 67; +pub const PR_GET_MEMORY_MERGE: u32 = 68; +pub const PR_RISCV_V_SET_CONTROL: u32 = 69; +pub const PR_RISCV_V_GET_CONTROL: u32 = 70; +pub const PR_RISCV_V_VSTATE_CTRL_DEFAULT: u32 = 0; +pub const PR_RISCV_V_VSTATE_CTRL_OFF: u32 = 1; +pub const PR_RISCV_V_VSTATE_CTRL_ON: u32 = 2; +pub const PR_RISCV_V_VSTATE_CTRL_INHERIT: u32 = 16; +pub const PR_RISCV_V_VSTATE_CTRL_CUR_MASK: u32 = 3; +pub const PR_RISCV_V_VSTATE_CTRL_NEXT_MASK: u32 = 12; +pub const PR_RISCV_V_VSTATE_CTRL_MASK: u32 = 31; +pub const PR_RISCV_SET_ICACHE_FLUSH_CTX: u32 = 71; +pub const PR_RISCV_CTX_SW_FENCEI_ON: u32 = 0; +pub const PR_RISCV_CTX_SW_FENCEI_OFF: u32 = 1; +pub const PR_RISCV_SCOPE_PER_PROCESS: u32 = 0; +pub const PR_RISCV_SCOPE_PER_THREAD: u32 = 1; +pub const PR_PPC_GET_DEXCR: u32 = 72; +pub const PR_PPC_SET_DEXCR: u32 = 73; +pub const PR_PPC_DEXCR_SBHE: u32 = 0; +pub const PR_PPC_DEXCR_IBRTPD: u32 = 1; +pub const PR_PPC_DEXCR_SRAPD: u32 = 2; +pub const PR_PPC_DEXCR_NPHIE: u32 = 3; +pub const PR_PPC_DEXCR_CTRL_EDITABLE: u32 = 1; +pub const PR_PPC_DEXCR_CTRL_SET: u32 = 2; +pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; +pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; +pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; +pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; +pub const PR_GET_SHADOW_STACK_STATUS: u32 = 74; +pub const PR_SET_SHADOW_STACK_STATUS: u32 = 75; +pub const PR_SHADOW_STACK_ENABLE: u32 = 1; +pub const PR_SHADOW_STACK_WRITE: u32 = 2; +pub const PR_SHADOW_STACK_PUSH: u32 = 4; +pub const PR_LOCK_SHADOW_STACK_STATUS: u32 = 76; +pub const PR_TIMER_CREATE_RESTORE_IDS: u32 = 77; +pub const PR_TIMER_CREATE_RESTORE_IDS_OFF: u32 = 0; +pub const PR_TIMER_CREATE_RESTORE_IDS_ON: u32 = 1; +pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; +pub const PR_FUTEX_HASH: u32 = 78; +pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; +pub const FH_FLAG_IMMUTABLE: u32 = 1; +pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_FUTEX_HASH_GET_IMMUTABLE: u32 = 3; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/ptrace.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/ptrace.rs new file mode 100644 index 0000000000000000000000000000000000000000..fd719a12d8726b0c5290133edf461bd4ef9c1414 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/ptrace.rs @@ -0,0 +1,894 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Copy, Clone)] +pub struct audit_status { +pub mask: __u32, +pub enabled: __u32, +pub failure: __u32, +pub pid: __u32, +pub rate_limit: __u32, +pub backlog_limit: __u32, +pub lost: __u32, +pub backlog: __u32, +pub __bindgen_anon_1: audit_status__bindgen_ty_1, +pub backlog_wait_time: __u32, +pub backlog_wait_time_actual: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct audit_features { +pub vers: __u32, +pub mask: __u32, +pub features: __u32, +pub lock: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct audit_tty_status { +pub enabled: __u32, +pub log_passwd: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct audit_rule_data { +pub flags: __u32, +pub action: __u32, +pub field_count: __u32, +pub mask: [__u32; 64usize], +pub fields: [__u32; 64usize], +pub values: [__u32; 64usize], +pub fieldflags: [__u32; 64usize], +pub buflen: __u32, +pub buf: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sock_filter { +pub code: __u16, +pub jt: __u8, +pub jf: __u8, +pub k: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sock_fprog { +pub len: crate::ctypes::c_ushort, +pub filter: *mut sock_filter, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_peeksiginfo_args { +pub off: __u64, +pub flags: __u32, +pub nr: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_metadata { +pub filter_off: __u64, +pub flags: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ptrace_syscall_info { +pub op: __u8, +pub reserved: __u8, +pub flags: __u16, +pub arch: __u32, +pub instruction_pointer: __u64, +pub stack_pointer: __u64, +pub __bindgen_anon_1: ptrace_syscall_info__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_syscall_info__bindgen_ty_1__bindgen_ty_1 { +pub nr: __u64, +pub args: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_syscall_info__bindgen_ty_1__bindgen_ty_2 { +pub rval: __s64, +pub is_error: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_syscall_info__bindgen_ty_1__bindgen_ty_3 { +pub nr: __u64, +pub args: [__u64; 6usize], +pub ret_data: __u32, +pub reserved2: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_rseq_configuration { +pub rseq_abi_pointer: __u64, +pub rseq_abi_size: __u32, +pub signature: __u32, +pub flags: __u32, +pub pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_sud_config { +pub mode: __u64, +pub selector: __u64, +pub offset: __u64, +pub len: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_regs_struct { +pub pc: crate::ctypes::c_ulong, +pub ra: crate::ctypes::c_ulong, +pub sp: crate::ctypes::c_ulong, +pub gp: crate::ctypes::c_ulong, +pub tp: crate::ctypes::c_ulong, +pub t0: crate::ctypes::c_ulong, +pub t1: crate::ctypes::c_ulong, +pub t2: crate::ctypes::c_ulong, +pub s0: crate::ctypes::c_ulong, +pub s1: crate::ctypes::c_ulong, +pub a0: crate::ctypes::c_ulong, +pub a1: crate::ctypes::c_ulong, +pub a2: crate::ctypes::c_ulong, +pub a3: crate::ctypes::c_ulong, +pub a4: crate::ctypes::c_ulong, +pub a5: crate::ctypes::c_ulong, +pub a6: crate::ctypes::c_ulong, +pub a7: crate::ctypes::c_ulong, +pub s2: crate::ctypes::c_ulong, +pub s3: crate::ctypes::c_ulong, +pub s4: crate::ctypes::c_ulong, +pub s5: crate::ctypes::c_ulong, +pub s6: crate::ctypes::c_ulong, +pub s7: crate::ctypes::c_ulong, +pub s8: crate::ctypes::c_ulong, +pub s9: crate::ctypes::c_ulong, +pub s10: crate::ctypes::c_ulong, +pub s11: crate::ctypes::c_ulong, +pub t3: crate::ctypes::c_ulong, +pub t4: crate::ctypes::c_ulong, +pub t5: crate::ctypes::c_ulong, +pub t6: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __riscv_f_ext_state { +pub f: [__u32; 32usize], +pub fcsr: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __riscv_d_ext_state { +pub f: [__u64; 32usize], +pub fcsr: __u32, +} +#[repr(C)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __riscv_q_ext_state { +pub f: [__u64; 64usize], +pub fcsr: __u32, +pub reserved: [__u32; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __riscv_ctx_hdr { +pub magic: __u32, +pub size: __u32, +} +#[repr(C)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __riscv_extra_ext_header { +pub __padding: [__u32; 129usize], +pub reserved: __u32, +pub hdr: __riscv_ctx_hdr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __riscv_v_ext_state { +pub vstart: crate::ctypes::c_ulong, +pub vl: crate::ctypes::c_ulong, +pub vtype: crate::ctypes::c_ulong, +pub vcsr: crate::ctypes::c_ulong, +pub vlenb: crate::ctypes::c_ulong, +pub datap: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Debug)] +pub struct __riscv_v_regset_state { +pub vstart: crate::ctypes::c_ulong, +pub vl: crate::ctypes::c_ulong, +pub vtype: crate::ctypes::c_ulong, +pub vcsr: crate::ctypes::c_ulong, +pub vlenb: crate::ctypes::c_ulong, +pub vreg: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_data { +pub nr: crate::ctypes::c_int, +pub arch: __u32, +pub instruction_pointer: __u64, +pub args: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif_sizes { +pub seccomp_notif: __u16, +pub seccomp_notif_resp: __u16, +pub seccomp_data: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif { +pub id: __u64, +pub pid: __u32, +pub flags: __u32, +pub data: seccomp_data, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif_resp { +pub id: __u64, +pub val: __s64, +pub error: __s32, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif_addfd { +pub id: __u64, +pub flags: __u32, +pub srcfd: __u32, +pub newfd: __u32, +pub newfd_flags: __u32, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const EM_NONE: u32 = 0; +pub const EM_M32: u32 = 1; +pub const EM_SPARC: u32 = 2; +pub const EM_386: u32 = 3; +pub const EM_68K: u32 = 4; +pub const EM_88K: u32 = 5; +pub const EM_486: u32 = 6; +pub const EM_860: u32 = 7; +pub const EM_MIPS: u32 = 8; +pub const EM_MIPS_RS3_LE: u32 = 10; +pub const EM_MIPS_RS4_BE: u32 = 10; +pub const EM_PARISC: u32 = 15; +pub const EM_SPARC32PLUS: u32 = 18; +pub const EM_PPC: u32 = 20; +pub const EM_PPC64: u32 = 21; +pub const EM_SPU: u32 = 23; +pub const EM_ARM: u32 = 40; +pub const EM_SH: u32 = 42; +pub const EM_SPARCV9: u32 = 43; +pub const EM_H8_300: u32 = 46; +pub const EM_IA_64: u32 = 50; +pub const EM_X86_64: u32 = 62; +pub const EM_S390: u32 = 22; +pub const EM_CRIS: u32 = 76; +pub const EM_M32R: u32 = 88; +pub const EM_MN10300: u32 = 89; +pub const EM_OPENRISC: u32 = 92; +pub const EM_ARCOMPACT: u32 = 93; +pub const EM_XTENSA: u32 = 94; +pub const EM_BLACKFIN: u32 = 106; +pub const EM_UNICORE: u32 = 110; +pub const EM_ALTERA_NIOS2: u32 = 113; +pub const EM_TI_C6000: u32 = 140; +pub const EM_HEXAGON: u32 = 164; +pub const EM_NDS32: u32 = 167; +pub const EM_AARCH64: u32 = 183; +pub const EM_TILEPRO: u32 = 188; +pub const EM_MICROBLAZE: u32 = 189; +pub const EM_TILEGX: u32 = 191; +pub const EM_ARCV2: u32 = 195; +pub const EM_RISCV: u32 = 243; +pub const EM_BPF: u32 = 247; +pub const EM_CSKY: u32 = 252; +pub const EM_LOONGARCH: u32 = 258; +pub const EM_FRV: u32 = 21569; +pub const EM_ALPHA: u32 = 36902; +pub const EM_CYGNUS_M32R: u32 = 36929; +pub const EM_S390_OLD: u32 = 41872; +pub const EM_CYGNUS_MN10300: u32 = 48879; +pub const AUDIT_GET: u32 = 1000; +pub const AUDIT_SET: u32 = 1001; +pub const AUDIT_LIST: u32 = 1002; +pub const AUDIT_ADD: u32 = 1003; +pub const AUDIT_DEL: u32 = 1004; +pub const AUDIT_USER: u32 = 1005; +pub const AUDIT_LOGIN: u32 = 1006; +pub const AUDIT_WATCH_INS: u32 = 1007; +pub const AUDIT_WATCH_REM: u32 = 1008; +pub const AUDIT_WATCH_LIST: u32 = 1009; +pub const AUDIT_SIGNAL_INFO: u32 = 1010; +pub const AUDIT_ADD_RULE: u32 = 1011; +pub const AUDIT_DEL_RULE: u32 = 1012; +pub const AUDIT_LIST_RULES: u32 = 1013; +pub const AUDIT_TRIM: u32 = 1014; +pub const AUDIT_MAKE_EQUIV: u32 = 1015; +pub const AUDIT_TTY_GET: u32 = 1016; +pub const AUDIT_TTY_SET: u32 = 1017; +pub const AUDIT_SET_FEATURE: u32 = 1018; +pub const AUDIT_GET_FEATURE: u32 = 1019; +pub const AUDIT_FIRST_USER_MSG: u32 = 1100; +pub const AUDIT_USER_AVC: u32 = 1107; +pub const AUDIT_USER_TTY: u32 = 1124; +pub const AUDIT_LAST_USER_MSG: u32 = 1199; +pub const AUDIT_FIRST_USER_MSG2: u32 = 2100; +pub const AUDIT_LAST_USER_MSG2: u32 = 2999; +pub const AUDIT_DAEMON_START: u32 = 1200; +pub const AUDIT_DAEMON_END: u32 = 1201; +pub const AUDIT_DAEMON_ABORT: u32 = 1202; +pub const AUDIT_DAEMON_CONFIG: u32 = 1203; +pub const AUDIT_SYSCALL: u32 = 1300; +pub const AUDIT_PATH: u32 = 1302; +pub const AUDIT_IPC: u32 = 1303; +pub const AUDIT_SOCKETCALL: u32 = 1304; +pub const AUDIT_CONFIG_CHANGE: u32 = 1305; +pub const AUDIT_SOCKADDR: u32 = 1306; +pub const AUDIT_CWD: u32 = 1307; +pub const AUDIT_EXECVE: u32 = 1309; +pub const AUDIT_IPC_SET_PERM: u32 = 1311; +pub const AUDIT_MQ_OPEN: u32 = 1312; +pub const AUDIT_MQ_SENDRECV: u32 = 1313; +pub const AUDIT_MQ_NOTIFY: u32 = 1314; +pub const AUDIT_MQ_GETSETATTR: u32 = 1315; +pub const AUDIT_KERNEL_OTHER: u32 = 1316; +pub const AUDIT_FD_PAIR: u32 = 1317; +pub const AUDIT_OBJ_PID: u32 = 1318; +pub const AUDIT_TTY: u32 = 1319; +pub const AUDIT_EOE: u32 = 1320; +pub const AUDIT_BPRM_FCAPS: u32 = 1321; +pub const AUDIT_CAPSET: u32 = 1322; +pub const AUDIT_MMAP: u32 = 1323; +pub const AUDIT_NETFILTER_PKT: u32 = 1324; +pub const AUDIT_NETFILTER_CFG: u32 = 1325; +pub const AUDIT_SECCOMP: u32 = 1326; +pub const AUDIT_PROCTITLE: u32 = 1327; +pub const AUDIT_FEATURE_CHANGE: u32 = 1328; +pub const AUDIT_REPLACE: u32 = 1329; +pub const AUDIT_KERN_MODULE: u32 = 1330; +pub const AUDIT_FANOTIFY: u32 = 1331; +pub const AUDIT_TIME_INJOFFSET: u32 = 1332; +pub const AUDIT_TIME_ADJNTPVAL: u32 = 1333; +pub const AUDIT_BPF: u32 = 1334; +pub const AUDIT_EVENT_LISTENER: u32 = 1335; +pub const AUDIT_URINGOP: u32 = 1336; +pub const AUDIT_OPENAT2: u32 = 1337; +pub const AUDIT_DM_CTRL: u32 = 1338; +pub const AUDIT_DM_EVENT: u32 = 1339; +pub const AUDIT_AVC: u32 = 1400; +pub const AUDIT_SELINUX_ERR: u32 = 1401; +pub const AUDIT_AVC_PATH: u32 = 1402; +pub const AUDIT_MAC_POLICY_LOAD: u32 = 1403; +pub const AUDIT_MAC_STATUS: u32 = 1404; +pub const AUDIT_MAC_CONFIG_CHANGE: u32 = 1405; +pub const AUDIT_MAC_UNLBL_ALLOW: u32 = 1406; +pub const AUDIT_MAC_CIPSOV4_ADD: u32 = 1407; +pub const AUDIT_MAC_CIPSOV4_DEL: u32 = 1408; +pub const AUDIT_MAC_MAP_ADD: u32 = 1409; +pub const AUDIT_MAC_MAP_DEL: u32 = 1410; +pub const AUDIT_MAC_IPSEC_ADDSA: u32 = 1411; +pub const AUDIT_MAC_IPSEC_DELSA: u32 = 1412; +pub const AUDIT_MAC_IPSEC_ADDSPD: u32 = 1413; +pub const AUDIT_MAC_IPSEC_DELSPD: u32 = 1414; +pub const AUDIT_MAC_IPSEC_EVENT: u32 = 1415; +pub const AUDIT_MAC_UNLBL_STCADD: u32 = 1416; +pub const AUDIT_MAC_UNLBL_STCDEL: u32 = 1417; +pub const AUDIT_MAC_CALIPSO_ADD: u32 = 1418; +pub const AUDIT_MAC_CALIPSO_DEL: u32 = 1419; +pub const AUDIT_IPE_ACCESS: u32 = 1420; +pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; +pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; +pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; +pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; +pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; +pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; +pub const AUDIT_ANOM_ABEND: u32 = 1701; +pub const AUDIT_ANOM_LINK: u32 = 1702; +pub const AUDIT_ANOM_CREAT: u32 = 1703; +pub const AUDIT_INTEGRITY_DATA: u32 = 1800; +pub const AUDIT_INTEGRITY_METADATA: u32 = 1801; +pub const AUDIT_INTEGRITY_STATUS: u32 = 1802; +pub const AUDIT_INTEGRITY_HASH: u32 = 1803; +pub const AUDIT_INTEGRITY_PCR: u32 = 1804; +pub const AUDIT_INTEGRITY_RULE: u32 = 1805; +pub const AUDIT_INTEGRITY_EVM_XATTR: u32 = 1806; +pub const AUDIT_INTEGRITY_POLICY_RULE: u32 = 1807; +pub const AUDIT_INTEGRITY_USERSPACE: u32 = 1808; +pub const AUDIT_KERNEL: u32 = 2000; +pub const AUDIT_FILTER_USER: u32 = 0; +pub const AUDIT_FILTER_TASK: u32 = 1; +pub const AUDIT_FILTER_ENTRY: u32 = 2; +pub const AUDIT_FILTER_WATCH: u32 = 3; +pub const AUDIT_FILTER_EXIT: u32 = 4; +pub const AUDIT_FILTER_EXCLUDE: u32 = 5; +pub const AUDIT_FILTER_TYPE: u32 = 5; +pub const AUDIT_FILTER_FS: u32 = 6; +pub const AUDIT_FILTER_URING_EXIT: u32 = 7; +pub const AUDIT_NR_FILTERS: u32 = 8; +pub const AUDIT_FILTER_PREPEND: u32 = 16; +pub const AUDIT_NEVER: u32 = 0; +pub const AUDIT_POSSIBLE: u32 = 1; +pub const AUDIT_ALWAYS: u32 = 2; +pub const AUDIT_MAX_FIELDS: u32 = 64; +pub const AUDIT_MAX_KEY_LEN: u32 = 256; +pub const AUDIT_BITMASK_SIZE: u32 = 64; +pub const AUDIT_SYSCALL_CLASSES: u32 = 16; +pub const AUDIT_CLASS_DIR_WRITE: u32 = 0; +pub const AUDIT_CLASS_DIR_WRITE_32: u32 = 1; +pub const AUDIT_CLASS_CHATTR: u32 = 2; +pub const AUDIT_CLASS_CHATTR_32: u32 = 3; +pub const AUDIT_CLASS_READ: u32 = 4; +pub const AUDIT_CLASS_READ_32: u32 = 5; +pub const AUDIT_CLASS_WRITE: u32 = 6; +pub const AUDIT_CLASS_WRITE_32: u32 = 7; +pub const AUDIT_CLASS_SIGNAL: u32 = 8; +pub const AUDIT_CLASS_SIGNAL_32: u32 = 9; +pub const AUDIT_UNUSED_BITS: u32 = 134216704; +pub const AUDIT_COMPARE_UID_TO_OBJ_UID: u32 = 1; +pub const AUDIT_COMPARE_GID_TO_OBJ_GID: u32 = 2; +pub const AUDIT_COMPARE_EUID_TO_OBJ_UID: u32 = 3; +pub const AUDIT_COMPARE_EGID_TO_OBJ_GID: u32 = 4; +pub const AUDIT_COMPARE_AUID_TO_OBJ_UID: u32 = 5; +pub const AUDIT_COMPARE_SUID_TO_OBJ_UID: u32 = 6; +pub const AUDIT_COMPARE_SGID_TO_OBJ_GID: u32 = 7; +pub const AUDIT_COMPARE_FSUID_TO_OBJ_UID: u32 = 8; +pub const AUDIT_COMPARE_FSGID_TO_OBJ_GID: u32 = 9; +pub const AUDIT_COMPARE_UID_TO_AUID: u32 = 10; +pub const AUDIT_COMPARE_UID_TO_EUID: u32 = 11; +pub const AUDIT_COMPARE_UID_TO_FSUID: u32 = 12; +pub const AUDIT_COMPARE_UID_TO_SUID: u32 = 13; +pub const AUDIT_COMPARE_AUID_TO_FSUID: u32 = 14; +pub const AUDIT_COMPARE_AUID_TO_SUID: u32 = 15; +pub const AUDIT_COMPARE_AUID_TO_EUID: u32 = 16; +pub const AUDIT_COMPARE_EUID_TO_SUID: u32 = 17; +pub const AUDIT_COMPARE_EUID_TO_FSUID: u32 = 18; +pub const AUDIT_COMPARE_SUID_TO_FSUID: u32 = 19; +pub const AUDIT_COMPARE_GID_TO_EGID: u32 = 20; +pub const AUDIT_COMPARE_GID_TO_FSGID: u32 = 21; +pub const AUDIT_COMPARE_GID_TO_SGID: u32 = 22; +pub const AUDIT_COMPARE_EGID_TO_FSGID: u32 = 23; +pub const AUDIT_COMPARE_EGID_TO_SGID: u32 = 24; +pub const AUDIT_COMPARE_SGID_TO_FSGID: u32 = 25; +pub const AUDIT_MAX_FIELD_COMPARE: u32 = 25; +pub const AUDIT_PID: u32 = 0; +pub const AUDIT_UID: u32 = 1; +pub const AUDIT_EUID: u32 = 2; +pub const AUDIT_SUID: u32 = 3; +pub const AUDIT_FSUID: u32 = 4; +pub const AUDIT_GID: u32 = 5; +pub const AUDIT_EGID: u32 = 6; +pub const AUDIT_SGID: u32 = 7; +pub const AUDIT_FSGID: u32 = 8; +pub const AUDIT_LOGINUID: u32 = 9; +pub const AUDIT_PERS: u32 = 10; +pub const AUDIT_ARCH: u32 = 11; +pub const AUDIT_MSGTYPE: u32 = 12; +pub const AUDIT_SUBJ_USER: u32 = 13; +pub const AUDIT_SUBJ_ROLE: u32 = 14; +pub const AUDIT_SUBJ_TYPE: u32 = 15; +pub const AUDIT_SUBJ_SEN: u32 = 16; +pub const AUDIT_SUBJ_CLR: u32 = 17; +pub const AUDIT_PPID: u32 = 18; +pub const AUDIT_OBJ_USER: u32 = 19; +pub const AUDIT_OBJ_ROLE: u32 = 20; +pub const AUDIT_OBJ_TYPE: u32 = 21; +pub const AUDIT_OBJ_LEV_LOW: u32 = 22; +pub const AUDIT_OBJ_LEV_HIGH: u32 = 23; +pub const AUDIT_LOGINUID_SET: u32 = 24; +pub const AUDIT_SESSIONID: u32 = 25; +pub const AUDIT_FSTYPE: u32 = 26; +pub const AUDIT_DEVMAJOR: u32 = 100; +pub const AUDIT_DEVMINOR: u32 = 101; +pub const AUDIT_INODE: u32 = 102; +pub const AUDIT_EXIT: u32 = 103; +pub const AUDIT_SUCCESS: u32 = 104; +pub const AUDIT_WATCH: u32 = 105; +pub const AUDIT_PERM: u32 = 106; +pub const AUDIT_DIR: u32 = 107; +pub const AUDIT_FILETYPE: u32 = 108; +pub const AUDIT_OBJ_UID: u32 = 109; +pub const AUDIT_OBJ_GID: u32 = 110; +pub const AUDIT_FIELD_COMPARE: u32 = 111; +pub const AUDIT_EXE: u32 = 112; +pub const AUDIT_SADDR_FAM: u32 = 113; +pub const AUDIT_ARG0: u32 = 200; +pub const AUDIT_ARG1: u32 = 201; +pub const AUDIT_ARG2: u32 = 202; +pub const AUDIT_ARG3: u32 = 203; +pub const AUDIT_FILTERKEY: u32 = 210; +pub const AUDIT_NEGATE: u32 = 2147483648; +pub const AUDIT_BIT_MASK: u32 = 134217728; +pub const AUDIT_LESS_THAN: u32 = 268435456; +pub const AUDIT_GREATER_THAN: u32 = 536870912; +pub const AUDIT_NOT_EQUAL: u32 = 805306368; +pub const AUDIT_EQUAL: u32 = 1073741824; +pub const AUDIT_BIT_TEST: u32 = 1207959552; +pub const AUDIT_LESS_THAN_OR_EQUAL: u32 = 1342177280; +pub const AUDIT_GREATER_THAN_OR_EQUAL: u32 = 1610612736; +pub const AUDIT_OPERATORS: u32 = 2013265920; +pub const AUDIT_STATUS_ENABLED: u32 = 1; +pub const AUDIT_STATUS_FAILURE: u32 = 2; +pub const AUDIT_STATUS_PID: u32 = 4; +pub const AUDIT_STATUS_RATE_LIMIT: u32 = 8; +pub const AUDIT_STATUS_BACKLOG_LIMIT: u32 = 16; +pub const AUDIT_STATUS_BACKLOG_WAIT_TIME: u32 = 32; +pub const AUDIT_STATUS_LOST: u32 = 64; +pub const AUDIT_STATUS_BACKLOG_WAIT_TIME_ACTUAL: u32 = 128; +pub const AUDIT_FEATURE_BITMAP_BACKLOG_LIMIT: u32 = 1; +pub const AUDIT_FEATURE_BITMAP_BACKLOG_WAIT_TIME: u32 = 2; +pub const AUDIT_FEATURE_BITMAP_EXECUTABLE_PATH: u32 = 4; +pub const AUDIT_FEATURE_BITMAP_EXCLUDE_EXTEND: u32 = 8; +pub const AUDIT_FEATURE_BITMAP_SESSIONID_FILTER: u32 = 16; +pub const AUDIT_FEATURE_BITMAP_LOST_RESET: u32 = 32; +pub const AUDIT_FEATURE_BITMAP_FILTER_FS: u32 = 64; +pub const AUDIT_FEATURE_BITMAP_ALL: u32 = 127; +pub const AUDIT_VERSION_LATEST: u32 = 127; +pub const AUDIT_VERSION_BACKLOG_LIMIT: u32 = 1; +pub const AUDIT_VERSION_BACKLOG_WAIT_TIME: u32 = 2; +pub const AUDIT_FAIL_SILENT: u32 = 0; +pub const AUDIT_FAIL_PRINTK: u32 = 1; +pub const AUDIT_FAIL_PANIC: u32 = 2; +pub const __AUDIT_ARCH_CONVENTION_MASK: u32 = 805306368; +pub const __AUDIT_ARCH_CONVENTION_MIPS64_N32: u32 = 536870912; +pub const __AUDIT_ARCH_64BIT: u32 = 2147483648; +pub const __AUDIT_ARCH_LE: u32 = 1073741824; +pub const AUDIT_ARCH_AARCH64: u32 = 3221225655; +pub const AUDIT_ARCH_ALPHA: u32 = 3221262374; +pub const AUDIT_ARCH_ARCOMPACT: u32 = 1073741917; +pub const AUDIT_ARCH_ARCOMPACTBE: u32 = 93; +pub const AUDIT_ARCH_ARCV2: u32 = 1073742019; +pub const AUDIT_ARCH_ARCV2BE: u32 = 195; +pub const AUDIT_ARCH_ARM: u32 = 1073741864; +pub const AUDIT_ARCH_ARMEB: u32 = 40; +pub const AUDIT_ARCH_C6X: u32 = 1073741964; +pub const AUDIT_ARCH_C6XBE: u32 = 140; +pub const AUDIT_ARCH_CRIS: u32 = 1073741900; +pub const AUDIT_ARCH_CSKY: u32 = 1073742076; +pub const AUDIT_ARCH_FRV: u32 = 21569; +pub const AUDIT_ARCH_H8300: u32 = 46; +pub const AUDIT_ARCH_HEXAGON: u32 = 164; +pub const AUDIT_ARCH_I386: u32 = 1073741827; +pub const AUDIT_ARCH_IA64: u32 = 3221225522; +pub const AUDIT_ARCH_M32R: u32 = 88; +pub const AUDIT_ARCH_M68K: u32 = 4; +pub const AUDIT_ARCH_MICROBLAZE: u32 = 189; +pub const AUDIT_ARCH_MIPS: u32 = 8; +pub const AUDIT_ARCH_MIPSEL: u32 = 1073741832; +pub const AUDIT_ARCH_MIPS64: u32 = 2147483656; +pub const AUDIT_ARCH_MIPS64N32: u32 = 2684354568; +pub const AUDIT_ARCH_MIPSEL64: u32 = 3221225480; +pub const AUDIT_ARCH_MIPSEL64N32: u32 = 3758096392; +pub const AUDIT_ARCH_NDS32: u32 = 1073741991; +pub const AUDIT_ARCH_NDS32BE: u32 = 167; +pub const AUDIT_ARCH_NIOS2: u32 = 1073741937; +pub const AUDIT_ARCH_OPENRISC: u32 = 92; +pub const AUDIT_ARCH_PARISC: u32 = 15; +pub const AUDIT_ARCH_PARISC64: u32 = 2147483663; +pub const AUDIT_ARCH_PPC: u32 = 20; +pub const AUDIT_ARCH_PPC64: u32 = 2147483669; +pub const AUDIT_ARCH_PPC64LE: u32 = 3221225493; +pub const AUDIT_ARCH_RISCV32: u32 = 1073742067; +pub const AUDIT_ARCH_RISCV64: u32 = 3221225715; +pub const AUDIT_ARCH_S390: u32 = 22; +pub const AUDIT_ARCH_S390X: u32 = 2147483670; +pub const AUDIT_ARCH_SH: u32 = 42; +pub const AUDIT_ARCH_SHEL: u32 = 1073741866; +pub const AUDIT_ARCH_SH64: u32 = 2147483690; +pub const AUDIT_ARCH_SHEL64: u32 = 3221225514; +pub const AUDIT_ARCH_SPARC: u32 = 2; +pub const AUDIT_ARCH_SPARC64: u32 = 2147483691; +pub const AUDIT_ARCH_TILEGX: u32 = 3221225663; +pub const AUDIT_ARCH_TILEGX32: u32 = 1073742015; +pub const AUDIT_ARCH_TILEPRO: u32 = 1073742012; +pub const AUDIT_ARCH_UNICORE: u32 = 1073741934; +pub const AUDIT_ARCH_X86_64: u32 = 3221225534; +pub const AUDIT_ARCH_XTENSA: u32 = 94; +pub const AUDIT_ARCH_LOONGARCH32: u32 = 1073742082; +pub const AUDIT_ARCH_LOONGARCH64: u32 = 3221225730; +pub const AUDIT_PERM_EXEC: u32 = 1; +pub const AUDIT_PERM_WRITE: u32 = 2; +pub const AUDIT_PERM_READ: u32 = 4; +pub const AUDIT_PERM_ATTR: u32 = 8; +pub const AUDIT_MESSAGE_TEXT_MAX: u32 = 8560; +pub const AUDIT_FEATURE_VERSION: u32 = 1; +pub const AUDIT_FEATURE_ONLY_UNSET_LOGINUID: u32 = 0; +pub const AUDIT_FEATURE_LOGINUID_IMMUTABLE: u32 = 1; +pub const AUDIT_LAST_FEATURE: u32 = 1; +pub const BPF_LD: u32 = 0; +pub const BPF_LDX: u32 = 1; +pub const BPF_ST: u32 = 2; +pub const BPF_STX: u32 = 3; +pub const BPF_ALU: u32 = 4; +pub const BPF_JMP: u32 = 5; +pub const BPF_RET: u32 = 6; +pub const BPF_MISC: u32 = 7; +pub const BPF_W: u32 = 0; +pub const BPF_H: u32 = 8; +pub const BPF_B: u32 = 16; +pub const BPF_IMM: u32 = 0; +pub const BPF_ABS: u32 = 32; +pub const BPF_IND: u32 = 64; +pub const BPF_MEM: u32 = 96; +pub const BPF_LEN: u32 = 128; +pub const BPF_MSH: u32 = 160; +pub const BPF_ADD: u32 = 0; +pub const BPF_SUB: u32 = 16; +pub const BPF_MUL: u32 = 32; +pub const BPF_DIV: u32 = 48; +pub const BPF_OR: u32 = 64; +pub const BPF_AND: u32 = 80; +pub const BPF_LSH: u32 = 96; +pub const BPF_RSH: u32 = 112; +pub const BPF_NEG: u32 = 128; +pub const BPF_MOD: u32 = 144; +pub const BPF_XOR: u32 = 160; +pub const BPF_JA: u32 = 0; +pub const BPF_JEQ: u32 = 16; +pub const BPF_JGT: u32 = 32; +pub const BPF_JGE: u32 = 48; +pub const BPF_JSET: u32 = 64; +pub const BPF_K: u32 = 0; +pub const BPF_X: u32 = 8; +pub const BPF_MAXINSNS: u32 = 4096; +pub const BPF_MAJOR_VERSION: u32 = 1; +pub const BPF_MINOR_VERSION: u32 = 1; +pub const BPF_A: u32 = 16; +pub const BPF_TAX: u32 = 0; +pub const BPF_TXA: u32 = 128; +pub const BPF_MEMWORDS: u32 = 16; +pub const SKF_AD_OFF: i32 = -4096; +pub const SKF_AD_PROTOCOL: u32 = 0; +pub const SKF_AD_PKTTYPE: u32 = 4; +pub const SKF_AD_IFINDEX: u32 = 8; +pub const SKF_AD_NLATTR: u32 = 12; +pub const SKF_AD_NLATTR_NEST: u32 = 16; +pub const SKF_AD_MARK: u32 = 20; +pub const SKF_AD_QUEUE: u32 = 24; +pub const SKF_AD_HATYPE: u32 = 28; +pub const SKF_AD_RXHASH: u32 = 32; +pub const SKF_AD_CPU: u32 = 36; +pub const SKF_AD_ALU_XOR_X: u32 = 40; +pub const SKF_AD_VLAN_TAG: u32 = 44; +pub const SKF_AD_VLAN_TAG_PRESENT: u32 = 48; +pub const SKF_AD_PAY_OFFSET: u32 = 52; +pub const SKF_AD_RANDOM: u32 = 56; +pub const SKF_AD_VLAN_TPID: u32 = 60; +pub const SKF_AD_MAX: u32 = 64; +pub const SKF_NET_OFF: i32 = -1048576; +pub const SKF_LL_OFF: i32 = -2097152; +pub const BPF_NET_OFF: i32 = -1048576; +pub const BPF_LL_OFF: i32 = -2097152; +pub const PTRACE_TRACEME: u32 = 0; +pub const PTRACE_PEEKTEXT: u32 = 1; +pub const PTRACE_PEEKDATA: u32 = 2; +pub const PTRACE_PEEKUSR: u32 = 3; +pub const PTRACE_POKETEXT: u32 = 4; +pub const PTRACE_POKEDATA: u32 = 5; +pub const PTRACE_POKEUSR: u32 = 6; +pub const PTRACE_CONT: u32 = 7; +pub const PTRACE_KILL: u32 = 8; +pub const PTRACE_SINGLESTEP: u32 = 9; +pub const PTRACE_ATTACH: u32 = 16; +pub const PTRACE_DETACH: u32 = 17; +pub const PTRACE_SYSCALL: u32 = 24; +pub const PTRACE_SETOPTIONS: u32 = 16896; +pub const PTRACE_GETEVENTMSG: u32 = 16897; +pub const PTRACE_GETSIGINFO: u32 = 16898; +pub const PTRACE_SETSIGINFO: u32 = 16899; +pub const PTRACE_GETREGSET: u32 = 16900; +pub const PTRACE_SETREGSET: u32 = 16901; +pub const PTRACE_SEIZE: u32 = 16902; +pub const PTRACE_INTERRUPT: u32 = 16903; +pub const PTRACE_LISTEN: u32 = 16904; +pub const PTRACE_PEEKSIGINFO: u32 = 16905; +pub const PTRACE_GETSIGMASK: u32 = 16906; +pub const PTRACE_SETSIGMASK: u32 = 16907; +pub const PTRACE_SECCOMP_GET_FILTER: u32 = 16908; +pub const PTRACE_SECCOMP_GET_METADATA: u32 = 16909; +pub const PTRACE_GET_SYSCALL_INFO: u32 = 16910; +pub const PTRACE_SET_SYSCALL_INFO: u32 = 16914; +pub const PTRACE_SYSCALL_INFO_NONE: u32 = 0; +pub const PTRACE_SYSCALL_INFO_ENTRY: u32 = 1; +pub const PTRACE_SYSCALL_INFO_EXIT: u32 = 2; +pub const PTRACE_SYSCALL_INFO_SECCOMP: u32 = 3; +pub const PTRACE_GET_RSEQ_CONFIGURATION: u32 = 16911; +pub const PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG: u32 = 16912; +pub const PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG: u32 = 16913; +pub const PTRACE_EVENTMSG_SYSCALL_ENTRY: u32 = 1; +pub const PTRACE_EVENTMSG_SYSCALL_EXIT: u32 = 2; +pub const PTRACE_PEEKSIGINFO_SHARED: u32 = 1; +pub const PTRACE_EVENT_FORK: u32 = 1; +pub const PTRACE_EVENT_VFORK: u32 = 2; +pub const PTRACE_EVENT_CLONE: u32 = 3; +pub const PTRACE_EVENT_EXEC: u32 = 4; +pub const PTRACE_EVENT_VFORK_DONE: u32 = 5; +pub const PTRACE_EVENT_EXIT: u32 = 6; +pub const PTRACE_EVENT_SECCOMP: u32 = 7; +pub const PTRACE_EVENT_STOP: u32 = 128; +pub const PTRACE_O_TRACESYSGOOD: u32 = 1; +pub const PTRACE_O_TRACEFORK: u32 = 2; +pub const PTRACE_O_TRACEVFORK: u32 = 4; +pub const PTRACE_O_TRACECLONE: u32 = 8; +pub const PTRACE_O_TRACEEXEC: u32 = 16; +pub const PTRACE_O_TRACEVFORKDONE: u32 = 32; +pub const PTRACE_O_TRACEEXIT: u32 = 64; +pub const PTRACE_O_TRACESECCOMP: u32 = 128; +pub const PTRACE_O_EXITKILL: u32 = 1048576; +pub const PTRACE_O_SUSPEND_SECCOMP: u32 = 2097152; +pub const PTRACE_O_MASK: u32 = 3145983; +pub const PTRACE_GETFDPIC: u32 = 33; +pub const PTRACE_GETFDPIC_EXEC: u32 = 0; +pub const PTRACE_GETFDPIC_INTERP: u32 = 1; +pub const RISCV_MAX_VLENB: u32 = 8192; +pub const SECCOMP_MODE_DISABLED: u32 = 0; +pub const SECCOMP_MODE_STRICT: u32 = 1; +pub const SECCOMP_MODE_FILTER: u32 = 2; +pub const SECCOMP_SET_MODE_STRICT: u32 = 0; +pub const SECCOMP_SET_MODE_FILTER: u32 = 1; +pub const SECCOMP_GET_ACTION_AVAIL: u32 = 2; +pub const SECCOMP_GET_NOTIF_SIZES: u32 = 3; +pub const SECCOMP_FILTER_FLAG_TSYNC: u32 = 1; +pub const SECCOMP_FILTER_FLAG_LOG: u32 = 2; +pub const SECCOMP_FILTER_FLAG_SPEC_ALLOW: u32 = 4; +pub const SECCOMP_FILTER_FLAG_NEW_LISTENER: u32 = 8; +pub const SECCOMP_FILTER_FLAG_TSYNC_ESRCH: u32 = 16; +pub const SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV: u32 = 32; +pub const SECCOMP_RET_KILL_PROCESS: u32 = 2147483648; +pub const SECCOMP_RET_KILL_THREAD: u32 = 0; +pub const SECCOMP_RET_KILL: u32 = 0; +pub const SECCOMP_RET_TRAP: u32 = 196608; +pub const SECCOMP_RET_ERRNO: u32 = 327680; +pub const SECCOMP_RET_USER_NOTIF: u32 = 2143289344; +pub const SECCOMP_RET_TRACE: u32 = 2146435072; +pub const SECCOMP_RET_LOG: u32 = 2147221504; +pub const SECCOMP_RET_ALLOW: u32 = 2147418112; +pub const SECCOMP_RET_ACTION_FULL: u32 = 4294901760; +pub const SECCOMP_RET_ACTION: u32 = 2147418112; +pub const SECCOMP_RET_DATA: u32 = 65535; +pub const SECCOMP_USER_NOTIF_FLAG_CONTINUE: u32 = 1; +pub const SECCOMP_USER_NOTIF_FD_SYNC_WAKE_UP: u32 = 1; +pub const SECCOMP_ADDFD_FLAG_SETFD: u32 = 1; +pub const SECCOMP_ADDFD_FLAG_SEND: u32 = 2; +pub const SECCOMP_IOC_MAGIC: u8 = 33u8; +pub const Audit_equal: _bindgen_ty_1 = _bindgen_ty_1::Audit_equal; +pub const Audit_not_equal: _bindgen_ty_1 = _bindgen_ty_1::Audit_not_equal; +pub const Audit_bitmask: _bindgen_ty_1 = _bindgen_ty_1::Audit_bitmask; +pub const Audit_bittest: _bindgen_ty_1 = _bindgen_ty_1::Audit_bittest; +pub const Audit_lt: _bindgen_ty_1 = _bindgen_ty_1::Audit_lt; +pub const Audit_gt: _bindgen_ty_1 = _bindgen_ty_1::Audit_gt; +pub const Audit_le: _bindgen_ty_1 = _bindgen_ty_1::Audit_le; +pub const Audit_ge: _bindgen_ty_1 = _bindgen_ty_1::Audit_ge; +pub const Audit_bad: _bindgen_ty_1 = _bindgen_ty_1::Audit_bad; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +Audit_equal = 0, +Audit_not_equal = 1, +Audit_bitmask = 2, +Audit_bittest = 3, +Audit_lt = 4, +Audit_gt = 5, +Audit_le = 6, +Audit_ge = 7, +Audit_bad = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum audit_nlgrps { +AUDIT_NLGRP_NONE = 0, +AUDIT_NLGRP_READLOG = 1, +__AUDIT_NLGRP_MAX = 2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union audit_status__bindgen_ty_1 { +pub version: __u32, +pub feature_bitmap: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ptrace_syscall_info__bindgen_ty_1 { +pub entry: ptrace_syscall_info__bindgen_ty_1__bindgen_ty_1, +pub exit: ptrace_syscall_info__bindgen_ty_1__bindgen_ty_2, +pub seccomp: ptrace_syscall_info__bindgen_ty_1__bindgen_ty_3, +} +#[repr(C)] +#[repr(align(16))] +#[derive(Copy, Clone)] +pub union __riscv_fp_state { +pub f: __riscv_f_ext_state, +pub d: __riscv_d_ext_state, +pub q: __riscv_q_ext_state, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/system.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/system.rs new file mode 100644 index 0000000000000000000000000000000000000000..67f1be19fe9ec44d0fe3edf1ad32b181beeb7085 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/system.rs @@ -0,0 +1,132 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Debug)] +pub struct sysinfo { +pub uptime: __kernel_long_t, +pub loads: [__kernel_ulong_t; 3usize], +pub totalram: __kernel_ulong_t, +pub freeram: __kernel_ulong_t, +pub sharedram: __kernel_ulong_t, +pub bufferram: __kernel_ulong_t, +pub totalswap: __kernel_ulong_t, +pub freeswap: __kernel_ulong_t, +pub procs: __u16, +pub pad: __u16, +pub totalhigh: __kernel_ulong_t, +pub freehigh: __kernel_ulong_t, +pub mem_unit: __u32, +pub _f: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct oldold_utsname { +pub sysname: [crate::ctypes::c_char; 9usize], +pub nodename: [crate::ctypes::c_char; 9usize], +pub release: [crate::ctypes::c_char; 9usize], +pub version: [crate::ctypes::c_char; 9usize], +pub machine: [crate::ctypes::c_char; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct old_utsname { +pub sysname: [crate::ctypes::c_char; 65usize], +pub nodename: [crate::ctypes::c_char; 65usize], +pub release: [crate::ctypes::c_char; 65usize], +pub version: [crate::ctypes::c_char; 65usize], +pub machine: [crate::ctypes::c_char; 65usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct new_utsname { +pub sysname: [crate::ctypes::c_char; 65usize], +pub nodename: [crate::ctypes::c_char; 65usize], +pub release: [crate::ctypes::c_char; 65usize], +pub version: [crate::ctypes::c_char; 65usize], +pub machine: [crate::ctypes::c_char; 65usize], +pub domainname: [crate::ctypes::c_char; 65usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const SI_LOAD_SHIFT: u32 = 16; +pub const __OLD_UTS_LEN: u32 = 8; +pub const __NEW_UTS_LEN: u32 = 64; +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/xdp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/xdp.rs new file mode 100644 index 0000000000000000000000000000000000000000..b5a6772509e292820e1fb9358888c3b434ce479e --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/riscv64/xdp.rs @@ -0,0 +1,193 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_xdp { +pub sxdp_family: __u16, +pub sxdp_flags: __u16, +pub sxdp_ifindex: __u32, +pub sxdp_queue_id: __u32, +pub sxdp_shared_umem_fd: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_ring_offset { +pub producer: __u64, +pub consumer: __u64, +pub desc: __u64, +pub flags: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_mmap_offsets { +pub rx: xdp_ring_offset, +pub tx: xdp_ring_offset, +pub fr: xdp_ring_offset, +pub cr: xdp_ring_offset, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_umem_reg { +pub addr: __u64, +pub len: __u64, +pub chunk_size: __u32, +pub headroom: __u32, +pub flags: __u32, +pub tx_metadata_len: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_statistics { +pub rx_dropped: __u64, +pub rx_invalid_descs: __u64, +pub tx_invalid_descs: __u64, +pub rx_ring_full: __u64, +pub rx_fill_ring_empty_descs: __u64, +pub tx_ring_empty_descs: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_options { +pub flags: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct xsk_tx_metadata { +pub flags: __u64, +pub __bindgen_anon_1: xsk_tx_metadata__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xsk_tx_metadata__bindgen_ty_1__bindgen_ty_1 { +pub csum_start: __u16, +pub csum_offset: __u16, +pub launch_time: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xsk_tx_metadata__bindgen_ty_1__bindgen_ty_2 { +pub tx_timestamp: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_desc { +pub addr: __u64, +pub len: __u32, +pub options: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_ring_offset_v1 { +pub producer: __u64, +pub consumer: __u64, +pub desc: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_mmap_offsets_v1 { +pub rx: xdp_ring_offset_v1, +pub tx: xdp_ring_offset_v1, +pub fr: xdp_ring_offset_v1, +pub cr: xdp_ring_offset_v1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_umem_reg_v1 { +pub addr: __u64, +pub len: __u64, +pub chunk_size: __u32, +pub headroom: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_statistics_v1 { +pub rx_dropped: __u64, +pub rx_invalid_descs: __u64, +pub tx_invalid_descs: __u64, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const XDP_SHARED_UMEM: u32 = 1; +pub const XDP_COPY: u32 = 2; +pub const XDP_ZEROCOPY: u32 = 4; +pub const XDP_USE_NEED_WAKEUP: u32 = 8; +pub const XDP_USE_SG: u32 = 16; +pub const XDP_UMEM_UNALIGNED_CHUNK_FLAG: u32 = 1; +pub const XDP_UMEM_TX_SW_CSUM: u32 = 2; +pub const XDP_UMEM_TX_METADATA_LEN: u32 = 4; +pub const XDP_RING_NEED_WAKEUP: u32 = 1; +pub const XDP_MMAP_OFFSETS: u32 = 1; +pub const XDP_RX_RING: u32 = 2; +pub const XDP_TX_RING: u32 = 3; +pub const XDP_UMEM_REG: u32 = 4; +pub const XDP_UMEM_FILL_RING: u32 = 5; +pub const XDP_UMEM_COMPLETION_RING: u32 = 6; +pub const XDP_STATISTICS: u32 = 7; +pub const XDP_OPTIONS: u32 = 8; +pub const XDP_OPTIONS_ZEROCOPY: u32 = 1; +pub const XDP_PGOFF_RX_RING: u32 = 0; +pub const XDP_PGOFF_TX_RING: u32 = 2147483648; +pub const XDP_UMEM_PGOFF_FILL_RING: u64 = 4294967296; +pub const XDP_UMEM_PGOFF_COMPLETION_RING: u64 = 6442450944; +pub const XSK_UNALIGNED_BUF_OFFSET_SHIFT: u32 = 48; +pub const XSK_UNALIGNED_BUF_ADDR_MASK: u64 = 281474976710655; +pub const XDP_TXMD_FLAGS_TIMESTAMP: u32 = 1; +pub const XDP_TXMD_FLAGS_CHECKSUM: u32 = 2; +pub const XDP_TXMD_FLAGS_LAUNCH_TIME: u32 = 4; +pub const XDP_PKT_CONTD: u32 = 1; +pub const XDP_TX_METADATA: u32 = 2; +#[repr(C)] +#[derive(Copy, Clone)] +pub union xsk_tx_metadata__bindgen_ty_1 { +pub request: xsk_tx_metadata__bindgen_ty_1__bindgen_ty_1, +pub completion: xsk_tx_metadata__bindgen_ty_1__bindgen_ty_2, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/auxvec.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/auxvec.rs new file mode 100644 index 0000000000000000000000000000000000000000..0ea172da5165e45cc4d66432331ff76f5a5cc07f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/auxvec.rs @@ -0,0 +1,32 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_VECTOR_SIZE_ARCH: u32 = 1; +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_PLATFORM: u32 = 15; +pub const AT_HWCAP: u32 = 16; +pub const AT_CLKTCK: u32 = 17; +pub const AT_SECURE: u32 = 23; +pub const AT_BASE_PLATFORM: u32 = 24; +pub const AT_RANDOM: u32 = 25; +pub const AT_HWCAP2: u32 = 26; +pub const AT_RSEQ_FEATURE_SIZE: u32 = 27; +pub const AT_RSEQ_ALIGN: u32 = 28; +pub const AT_HWCAP3: u32 = 29; +pub const AT_HWCAP4: u32 = 30; +pub const AT_EXECFN: u32 = 31; +pub const AT_MINSIGSTKSZ: u32 = 51; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/bootparam.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/bootparam.rs new file mode 100644 index 0000000000000000000000000000000000000000..bff15e373cd12fce9e91f11af9ee8efb9065775b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/bootparam.rs @@ -0,0 +1,3 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + + diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/btrfs.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/btrfs.rs new file mode 100644 index 0000000000000000000000000000000000000000..a4c6548762b3bb97985b89a4da2170cec8529d9a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/btrfs.rs @@ -0,0 +1,1916 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type addr_t = crate::ctypes::c_ulong; +pub type saddr_t = crate::ctypes::c_long; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_ulong; +pub type __kernel_ssize_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_ino_t = crate::ctypes::c_uint; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_sigset_t = crate::ctypes::c_ulong; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_rwf_t = crate::ctypes::c_int; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C, packed(4))] +#[derive(Copy, Clone)] +pub struct __vector128 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __vector128__bindgen_ty_1__bindgen_ty_1 { +pub high: __u64, +pub low: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v1 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub master_key_descriptor: [__u8; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_key { +pub mode: __u32, +pub raw: [__u8; 64usize], +pub size: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v2 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub log2_data_unit_size: __u8, +pub __reserved: [__u8; 3usize], +pub master_key_identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_policy_ex_arg { +pub policy_size: __u64, +pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_key_specifier { +pub type_: __u32, +pub __reserved: __u32, +pub u: fscrypt_key_specifier__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct fscrypt_provisioning_key_payload { +pub type_: __u32, +pub flags: __u32, +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +pub struct fscrypt_add_key_arg { +pub key_spec: fscrypt_key_specifier, +pub raw_size: __u32, +pub key_id: __u32, +pub flags: __u32, +pub __reserved: [__u32; 7usize], +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_remove_key_arg { +pub key_spec: fscrypt_key_specifier, +pub removal_status_flags: __u32, +pub __reserved: [__u32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_key_status_arg { +pub key_spec: fscrypt_key_specifier, +pub __reserved: [__u32; 6usize], +pub status: __u32, +pub status_flags: __u32, +pub user_count: __u32, +pub __out_reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mount_attr { +pub attr_set: __u64, +pub attr_clr: __u64, +pub propagation: __u64, +pub userns_fd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct statmount { +pub size: __u32, +pub mnt_opts: __u32, +pub mask: __u64, +pub sb_dev_major: __u32, +pub sb_dev_minor: __u32, +pub sb_magic: __u64, +pub sb_flags: __u32, +pub fs_type: __u32, +pub mnt_id: __u64, +pub mnt_parent_id: __u64, +pub mnt_id_old: __u32, +pub mnt_parent_id_old: __u32, +pub mnt_attr: __u64, +pub mnt_propagation: __u64, +pub mnt_peer_group: __u64, +pub mnt_master: __u64, +pub propagate_from: __u64, +pub mnt_root: __u32, +pub mnt_point: __u32, +pub mnt_ns_id: __u64, +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub supported_mask: __u64, +pub mnt_uidmap_num: __u32, +pub mnt_uidmap: __u32, +pub mnt_gidmap_num: __u32, +pub mnt_gidmap: __u32, +pub __spare2: [__u64; 43usize], +pub str_: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mnt_id_req { +pub size: __u32, +pub spare: __u32, +pub mnt_id: __u64, +pub param: __u64, +pub mnt_ns_id: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_clone_range { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fstrim_range { +pub start: __u64, +pub len: __u64, +pub minlen: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsuuid2 { +pub len: __u8, +pub uuid: [__u8; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fs_sysfs_path { +pub len: __u8, +pub name: [__u8; 128usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_dedupe_range_info { +pub dest_fd: __s64, +pub dest_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct file_dedupe_range { +pub src_offset: __u64, +pub src_length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct files_stat_struct { +pub nr_files: crate::ctypes::c_ulong, +pub nr_free_files: crate::ctypes::c_ulong, +pub max_files: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct inodes_stat_t { +pub nr_inodes: crate::ctypes::c_long, +pub nr_unused: crate::ctypes::c_long, +pub dummy: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsxattr { +pub fsx_xflags: __u32, +pub fsx_extsize: __u32, +pub fsx_nextents: __u32, +pub fsx_projid: __u32, +pub fsx_cowextsize: __u32, +pub fsx_pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct page_region { +pub start: __u64, +pub end: __u64, +pub categories: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pm_scan_arg { +pub size: __u64, +pub flags: __u64, +pub start: __u64, +pub end: __u64, +pub walk_end: __u64, +pub vec: __u64, +pub vec_len: __u64, +pub max_pages: __u64, +pub category_inverted: __u64, +pub category_mask: __u64, +pub category_anyof_mask: __u64, +pub return_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct procmap_query { +pub size: __u64, +pub query_flags: __u64, +pub query_addr: __u64, +pub vma_start: __u64, +pub vma_end: __u64, +pub vma_flags: __u64, +pub vma_page_size: __u64, +pub vma_offset: __u64, +pub inode: __u64, +pub dev_major: __u32, +pub dev_minor: __u32, +pub vma_name_size: __u32, +pub build_id_size: __u32, +pub vma_name_addr: __u64, +pub build_id_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_vol_args { +pub fd: __s64, +pub name: [crate::ctypes::c_char; 4088usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_limit { +pub flags: __u64, +pub max_rfer: __u64, +pub max_excl: __u64, +pub rsv_rfer: __u64, +pub rsv_excl: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_qgroup_inherit { +pub flags: __u64, +pub num_qgroups: __u64, +pub num_ref_copies: __u64, +pub num_excl_copies: __u64, +pub lim: btrfs_qgroup_limit, +pub qgroups: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_qgroup_limit_args { +pub qgroupid: __u64, +pub lim: btrfs_qgroup_limit, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_vol_args_v2 { +pub fd: __s64, +pub transid: __u64, +pub flags: __u64, +pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1, +pub __bindgen_anon_2: btrfs_ioctl_vol_args_v2__bindgen_ty_2, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1 { +pub size: __u64, +pub qgroup_inherit: *mut btrfs_qgroup_inherit, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_scrub_progress { +pub data_extents_scrubbed: __u64, +pub tree_extents_scrubbed: __u64, +pub data_bytes_scrubbed: __u64, +pub tree_bytes_scrubbed: __u64, +pub read_errors: __u64, +pub csum_errors: __u64, +pub verify_errors: __u64, +pub no_csum: __u64, +pub csum_discards: __u64, +pub super_errors: __u64, +pub malloc_errors: __u64, +pub uncorrectable_errors: __u64, +pub corrected_errors: __u64, +pub last_physical: __u64, +pub unverified_errors: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_scrub_args { +pub devid: __u64, +pub start: __u64, +pub end: __u64, +pub flags: __u64, +pub progress: btrfs_scrub_progress, +pub unused: [__u64; 109usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_dev_replace_start_params { +pub srcdevid: __u64, +pub cont_reading_from_srcdev_mode: __u64, +pub srcdev_name: [__u8; 1025usize], +pub tgtdev_name: [__u8; 1025usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_dev_replace_status_params { +pub replace_state: __u64, +pub progress_1000: __u64, +pub time_started: __u64, +pub time_stopped: __u64, +pub num_write_errors: __u64, +pub num_uncorrectable_read_errors: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_dev_replace_args { +pub cmd: __u64, +pub result: __u64, +pub __bindgen_anon_1: btrfs_ioctl_dev_replace_args__bindgen_ty_1, +pub spare: [__u64; 64usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_dev_info_args { +pub devid: __u64, +pub uuid: [__u8; 16usize], +pub bytes_used: __u64, +pub total_bytes: __u64, +pub fsid: [__u8; 16usize], +pub unused: [__u64; 377usize], +pub path: [__u8; 1024usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_fs_info_args { +pub max_id: __u64, +pub num_devices: __u64, +pub fsid: [__u8; 16usize], +pub nodesize: __u32, +pub sectorsize: __u32, +pub clone_alignment: __u32, +pub csum_type: __u16, +pub csum_size: __u16, +pub flags: __u64, +pub generation: __u64, +pub metadata_uuid: [__u8; 16usize], +pub reserved: [__u8; 944usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_feature_flags { +pub compat_flags: __u64, +pub compat_ro_flags: __u64, +pub incompat_flags: __u64, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct btrfs_balance_args { +pub profiles: __u64, +pub __bindgen_anon_1: btrfs_balance_args__bindgen_ty_1, +pub devid: __u64, +pub pstart: __u64, +pub pend: __u64, +pub vstart: __u64, +pub vend: __u64, +pub target: __u64, +pub flags: __u64, +pub __bindgen_anon_2: btrfs_balance_args__bindgen_ty_2, +pub stripes_min: __u32, +pub stripes_max: __u32, +pub unused: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_balance_args__bindgen_ty_1__bindgen_ty_1 { +pub usage_min: __u32, +pub usage_max: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_balance_args__bindgen_ty_2__bindgen_ty_1 { +pub limit_min: __u32, +pub limit_max: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_balance_progress { +pub expected: __u64, +pub considered: __u64, +pub completed: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_balance_args { +pub flags: __u64, +pub state: __u64, +pub data: btrfs_balance_args, +pub meta: btrfs_balance_args, +pub sys: btrfs_balance_args, +pub stat: btrfs_balance_progress, +pub unused: [__u64; 72usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_ino_lookup_args { +pub treeid: __u64, +pub objectid: __u64, +pub name: [crate::ctypes::c_char; 4080usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_ino_lookup_user_args { +pub dirid: __u64, +pub treeid: __u64, +pub name: [crate::ctypes::c_char; 256usize], +pub path: [crate::ctypes::c_char; 3824usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_search_key { +pub tree_id: __u64, +pub min_objectid: __u64, +pub max_objectid: __u64, +pub min_offset: __u64, +pub max_offset: __u64, +pub min_transid: __u64, +pub max_transid: __u64, +pub min_type: __u32, +pub max_type: __u32, +pub nr_items: __u32, +pub unused: __u32, +pub unused1: __u64, +pub unused2: __u64, +pub unused3: __u64, +pub unused4: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_search_header { +pub transid: __u64, +pub objectid: __u64, +pub offset: __u64, +pub type_: __u32, +pub len: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_search_args { +pub key: btrfs_ioctl_search_key, +pub buf: [crate::ctypes::c_char; 3992usize], +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_search_args_v2 { +pub key: btrfs_ioctl_search_key, +pub buf_size: __u64, +pub buf: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_clone_range_args { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_defrag_range_args { +pub start: __u64, +pub len: __u64, +pub flags: __u64, +pub extent_thresh: __u32, +pub __bindgen_anon_1: btrfs_ioctl_defrag_range_args__bindgen_ty_1, +pub unused: [__u32; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_defrag_range_args__bindgen_ty_1__bindgen_ty_1 { +pub type_: __u8, +pub level: __s8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_same_extent_info { +pub fd: __s64, +pub logical_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_same_args { +pub logical_offset: __u64, +pub length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_space_info { +pub flags: __u64, +pub total_bytes: __u64, +pub used_bytes: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_space_args { +pub space_slots: __u64, +pub total_spaces: __u64, +pub spaces: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_data_container { +pub bytes_left: __u32, +pub bytes_missing: __u32, +pub elem_cnt: __u32, +pub elem_missed: __u32, +pub val: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_ino_path_args { +pub inum: __u64, +pub size: __u64, +pub reserved: [__u64; 4usize], +pub fspath: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_logical_ino_args { +pub logical: __u64, +pub size: __u64, +pub reserved: [__u64; 3usize], +pub flags: __u64, +pub inodes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_dev_stats { +pub devid: __u64, +pub nr_items: __u64, +pub flags: __u64, +pub values: [__u64; 5usize], +pub unused: [__u64; 121usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_quota_ctl_args { +pub cmd: __u64, +pub status: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_quota_rescan_args { +pub flags: __u64, +pub progress: __u64, +pub reserved: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_qgroup_assign_args { +pub assign: __u64, +pub src: __u64, +pub dst: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_qgroup_create_args { +pub create: __u64, +pub qgroupid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_timespec { +pub sec: __u64, +pub nsec: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_received_subvol_args { +pub uuid: [crate::ctypes::c_char; 16usize], +pub stransid: __u64, +pub rtransid: __u64, +pub stime: btrfs_ioctl_timespec, +pub rtime: btrfs_ioctl_timespec, +pub flags: __u64, +pub reserved: [__u64; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_send_args { +pub send_fd: __s64, +pub clone_sources_count: __u64, +pub clone_sources: *mut __u64, +pub parent_root: __u64, +pub flags: __u64, +pub version: __u32, +pub reserved: [__u8; 28usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_subvol_info_args { +pub treeid: __u64, +pub name: [crate::ctypes::c_char; 256usize], +pub parent_id: __u64, +pub dirid: __u64, +pub generation: __u64, +pub flags: __u64, +pub uuid: [__u8; 16usize], +pub parent_uuid: [__u8; 16usize], +pub received_uuid: [__u8; 16usize], +pub ctransid: __u64, +pub otransid: __u64, +pub stransid: __u64, +pub rtransid: __u64, +pub ctime: btrfs_ioctl_timespec, +pub otime: btrfs_ioctl_timespec, +pub stime: btrfs_ioctl_timespec, +pub rtime: btrfs_ioctl_timespec, +pub reserved: [__u64; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_subvol_rootref_args { +pub min_treeid: __u64, +pub rootref: [btrfs_ioctl_get_subvol_rootref_args__bindgen_ty_1; 255usize], +pub num_items: __u8, +pub align: [__u8; 7usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_subvol_rootref_args__bindgen_ty_1 { +pub treeid: __u64, +pub dirid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_encoded_io_args { +pub iov: *const iovec, +pub iovcnt: crate::ctypes::c_ulong, +pub offset: __s64, +pub flags: __u64, +pub len: __u64, +pub unencoded_len: __u64, +pub unencoded_offset: __u64, +pub compression: __u32, +pub encryption: __u32, +pub reserved: [__u8; 64usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_subvol_wait { +pub subvolid: __u64, +pub mode: __u32, +pub count: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_disk_key { +pub objectid: __le64, +pub type_: __u8, +pub offset: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_key { +pub objectid: __u64, +pub type_: __u8, +pub offset: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_header { +pub csum: [__u8; 32usize], +pub fsid: [__u8; 16usize], +pub bytenr: __le64, +pub flags: __le64, +pub chunk_tree_uuid: [__u8; 16usize], +pub generation: __le64, +pub owner: __le64, +pub nritems: __le32, +pub level: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_root_backup { +pub tree_root: __le64, +pub tree_root_gen: __le64, +pub chunk_root: __le64, +pub chunk_root_gen: __le64, +pub extent_root: __le64, +pub extent_root_gen: __le64, +pub fs_root: __le64, +pub fs_root_gen: __le64, +pub dev_root: __le64, +pub dev_root_gen: __le64, +pub csum_root: __le64, +pub csum_root_gen: __le64, +pub total_bytes: __le64, +pub bytes_used: __le64, +pub num_devices: __le64, +pub unused_64: [__le64; 4usize], +pub tree_root_level: __u8, +pub chunk_root_level: __u8, +pub extent_root_level: __u8, +pub fs_root_level: __u8, +pub dev_root_level: __u8, +pub csum_root_level: __u8, +pub unused_8: [__u8; 10usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_item { +pub key: btrfs_disk_key, +pub offset: __le32, +pub size: __le32, +} +#[repr(C, packed)] +pub struct btrfs_leaf { +pub header: btrfs_header, +pub items: __IncompleteArrayField, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_key_ptr { +pub key: btrfs_disk_key, +pub blockptr: __le64, +pub generation: __le64, +} +#[repr(C, packed)] +pub struct btrfs_node { +pub header: btrfs_header, +pub ptrs: __IncompleteArrayField, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_item { +pub devid: __le64, +pub total_bytes: __le64, +pub bytes_used: __le64, +pub io_align: __le32, +pub io_width: __le32, +pub sector_size: __le32, +pub type_: __le64, +pub generation: __le64, +pub start_offset: __le64, +pub dev_group: __le32, +pub seek_speed: __u8, +pub bandwidth: __u8, +pub uuid: [__u8; 16usize], +pub fsid: [__u8; 16usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_stripe { +pub devid: __le64, +pub offset: __le64, +pub dev_uuid: [__u8; 16usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_chunk { +pub length: __le64, +pub owner: __le64, +pub stripe_len: __le64, +pub type_: __le64, +pub io_align: __le32, +pub io_width: __le32, +pub sector_size: __le32, +pub num_stripes: __le16, +pub sub_stripes: __le16, +pub stripe: btrfs_stripe, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_super_block { +pub csum: [__u8; 32usize], +pub fsid: [__u8; 16usize], +pub bytenr: __le64, +pub flags: __le64, +pub magic: __le64, +pub generation: __le64, +pub root: __le64, +pub chunk_root: __le64, +pub log_root: __le64, +pub __unused_log_root_transid: __le64, +pub total_bytes: __le64, +pub bytes_used: __le64, +pub root_dir_objectid: __le64, +pub num_devices: __le64, +pub sectorsize: __le32, +pub nodesize: __le32, +pub __unused_leafsize: __le32, +pub stripesize: __le32, +pub sys_chunk_array_size: __le32, +pub chunk_root_generation: __le64, +pub compat_flags: __le64, +pub compat_ro_flags: __le64, +pub incompat_flags: __le64, +pub csum_type: __le16, +pub root_level: __u8, +pub chunk_root_level: __u8, +pub log_root_level: __u8, +pub dev_item: btrfs_dev_item, +pub label: [crate::ctypes::c_char; 256usize], +pub cache_generation: __le64, +pub uuid_tree_generation: __le64, +pub metadata_uuid: [__u8; 16usize], +pub nr_global_roots: __u64, +pub reserved: [__le64; 27usize], +pub sys_chunk_array: [__u8; 2048usize], +pub super_roots: [btrfs_root_backup; 4usize], +pub padding: [__u8; 565usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_free_space_entry { +pub offset: __le64, +pub bytes: __le64, +pub type_: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_free_space_header { +pub location: btrfs_disk_key, +pub generation: __le64, +pub num_entries: __le64, +pub num_bitmaps: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_raid_stride { +pub devid: __le64, +pub physical: __le64, +} +#[repr(C, packed)] +pub struct btrfs_stripe_extent { +pub __bindgen_anon_1: btrfs_stripe_extent__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_stripe_extent__bindgen_ty_1 { +pub __empty_strides: btrfs_stripe_extent__bindgen_ty_1__bindgen_ty_1, +pub strides: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_stripe_extent__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_item { +pub refs: __le64, +pub generation: __le64, +pub flags: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_item_v0 { +pub refs: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_tree_block_info { +pub key: btrfs_disk_key, +pub level: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_data_ref { +pub root: __le64, +pub objectid: __le64, +pub offset: __le64, +pub count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_shared_data_ref { +pub count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_owner_ref { +pub root_id: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_inline_ref { +pub type_: __u8, +pub offset: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_extent { +pub chunk_tree: __le64, +pub chunk_objectid: __le64, +pub chunk_offset: __le64, +pub length: __le64, +pub chunk_tree_uuid: [__u8; 16usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_inode_ref { +pub index: __le64, +pub name_len: __le16, +} +#[repr(C, packed)] +pub struct btrfs_inode_extref { +pub parent_objectid: __le64, +pub index: __le64, +pub name_len: __le16, +pub name: __IncompleteArrayField<__u8>, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_timespec { +pub sec: __le64, +pub nsec: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_inode_item { +pub generation: __le64, +pub transid: __le64, +pub size: __le64, +pub nbytes: __le64, +pub block_group: __le64, +pub nlink: __le32, +pub uid: __le32, +pub gid: __le32, +pub mode: __le32, +pub rdev: __le64, +pub flags: __le64, +pub sequence: __le64, +pub reserved: [__le64; 4usize], +pub atime: btrfs_timespec, +pub ctime: btrfs_timespec, +pub mtime: btrfs_timespec, +pub otime: btrfs_timespec, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dir_log_item { +pub end: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dir_item { +pub location: btrfs_disk_key, +pub transid: __le64, +pub data_len: __le16, +pub name_len: __le16, +pub type_: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_root_item { +pub inode: btrfs_inode_item, +pub generation: __le64, +pub root_dirid: __le64, +pub bytenr: __le64, +pub byte_limit: __le64, +pub bytes_used: __le64, +pub last_snapshot: __le64, +pub flags: __le64, +pub refs: __le32, +pub drop_progress: btrfs_disk_key, +pub drop_level: __u8, +pub level: __u8, +pub generation_v2: __le64, +pub uuid: [__u8; 16usize], +pub parent_uuid: [__u8; 16usize], +pub received_uuid: [__u8; 16usize], +pub ctransid: __le64, +pub otransid: __le64, +pub stransid: __le64, +pub rtransid: __le64, +pub ctime: btrfs_timespec, +pub otime: btrfs_timespec, +pub stime: btrfs_timespec, +pub rtime: btrfs_timespec, +pub reserved: [__le64; 8usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_root_ref { +pub dirid: __le64, +pub sequence: __le64, +pub name_len: __le16, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct btrfs_disk_balance_args { +pub profiles: __le64, +pub __bindgen_anon_1: btrfs_disk_balance_args__bindgen_ty_1, +pub devid: __le64, +pub pstart: __le64, +pub pend: __le64, +pub vstart: __le64, +pub vend: __le64, +pub target: __le64, +pub flags: __le64, +pub __bindgen_anon_2: btrfs_disk_balance_args__bindgen_ty_2, +pub stripes_min: __le32, +pub stripes_max: __le32, +pub unused: [__le64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_disk_balance_args__bindgen_ty_1__bindgen_ty_1 { +pub usage_min: __le32, +pub usage_max: __le32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_disk_balance_args__bindgen_ty_2__bindgen_ty_1 { +pub limit_min: __le32, +pub limit_max: __le32, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct btrfs_balance_item { +pub flags: __le64, +pub data: btrfs_disk_balance_args, +pub meta: btrfs_disk_balance_args, +pub sys: btrfs_disk_balance_args, +pub unused: [__le64; 4usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_file_extent_item { +pub generation: __le64, +pub ram_bytes: __le64, +pub compression: __u8, +pub encryption: __u8, +pub other_encoding: __le16, +pub type_: __u8, +pub disk_bytenr: __le64, +pub disk_num_bytes: __le64, +pub offset: __le64, +pub num_bytes: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_csum_item { +pub csum: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_stats_item { +pub values: [__le64; 5usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_replace_item { +pub src_devid: __le64, +pub cursor_left: __le64, +pub cursor_right: __le64, +pub cont_reading_from_srcdev_mode: __le64, +pub replace_state: __le64, +pub time_started: __le64, +pub time_stopped: __le64, +pub num_write_errors: __le64, +pub num_uncorrectable_read_errors: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_free_space_info { +pub extent_count: __le32, +pub flags: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_status_item { +pub version: __le64, +pub generation: __le64, +pub flags: __le64, +pub rescan: __le64, +pub enable_gen: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_info_item { +pub generation: __le64, +pub rfer: __le64, +pub rfer_cmpr: __le64, +pub excl: __le64, +pub excl_cmpr: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_limit_item { +pub flags: __le64, +pub max_rfer: __le64, +pub max_excl: __le64, +pub rsv_rfer: __le64, +pub rsv_excl: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_verity_descriptor_item { +pub size: __le64, +pub reserved: [__le64; 2usize], +pub encryption: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iovec { +pub _address: u8, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_SIZEBITS: u32 = 14; +pub const _IOC_DIRBITS: u32 = 2; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 16383; +pub const _IOC_DIRMASK: u32 = 3; +pub const _IOC_NRSHIFT: u32 = 0; +pub const _IOC_TYPESHIFT: u32 = 8; +pub const _IOC_SIZESHIFT: u32 = 16; +pub const _IOC_DIRSHIFT: u32 = 30; +pub const _IOC_NONE: u32 = 0; +pub const _IOC_WRITE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const IOC_IN: u32 = 1073741824; +pub const IOC_OUT: u32 = 2147483648; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 1073676288; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const NR_OPEN: u32 = 1024; +pub const NGROUPS_MAX: u32 = 65536; +pub const ARG_MAX: u32 = 131072; +pub const LINK_MAX: u32 = 127; +pub const MAX_CANON: u32 = 255; +pub const MAX_INPUT: u32 = 255; +pub const NAME_MAX: u32 = 255; +pub const PATH_MAX: u32 = 4096; +pub const PIPE_BUF: u32 = 4096; +pub const XATTR_NAME_MAX: u32 = 255; +pub const XATTR_SIZE_MAX: u32 = 65536; +pub const XATTR_LIST_MAX: u32 = 65536; +pub const RTSIG_MAX: u32 = 32; +pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; +pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; +pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; +pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; +pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; +pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; +pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; +pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; +pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; +pub const FSCRYPT_POLICY_V1: u32 = 0; +pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; +pub const FSCRYPT_POLICY_V2: u32 = 2; +pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; +pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; +pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; +pub const FSCRYPT_ADD_KEY_FLAG_HW_WRAPPED: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; +pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; +pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; +pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; +pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; +pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FS_POLICY_FLAGS_VALID: u32 = 7; +pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; +pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; +pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; +pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; +pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; +pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; +pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; +pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; +pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FS_MAX_KEY_SIZE: u32 = 64; +pub const MS_RDONLY: u32 = 1; +pub const MS_NOSUID: u32 = 2; +pub const MS_NODEV: u32 = 4; +pub const MS_NOEXEC: u32 = 8; +pub const MS_SYNCHRONOUS: u32 = 16; +pub const MS_REMOUNT: u32 = 32; +pub const MS_MANDLOCK: u32 = 64; +pub const MS_DIRSYNC: u32 = 128; +pub const MS_NOSYMFOLLOW: u32 = 256; +pub const MS_NOATIME: u32 = 1024; +pub const MS_NODIRATIME: u32 = 2048; +pub const MS_BIND: u32 = 4096; +pub const MS_MOVE: u32 = 8192; +pub const MS_REC: u32 = 16384; +pub const MS_VERBOSE: u32 = 32768; +pub const MS_SILENT: u32 = 32768; +pub const MS_POSIXACL: u32 = 65536; +pub const MS_UNBINDABLE: u32 = 131072; +pub const MS_PRIVATE: u32 = 262144; +pub const MS_SLAVE: u32 = 524288; +pub const MS_SHARED: u32 = 1048576; +pub const MS_RELATIME: u32 = 2097152; +pub const MS_KERNMOUNT: u32 = 4194304; +pub const MS_I_VERSION: u32 = 8388608; +pub const MS_STRICTATIME: u32 = 16777216; +pub const MS_LAZYTIME: u32 = 33554432; +pub const MS_SUBMOUNT: u32 = 67108864; +pub const MS_NOREMOTELOCK: u32 = 134217728; +pub const MS_NOSEC: u32 = 268435456; +pub const MS_BORN: u32 = 536870912; +pub const MS_ACTIVE: u32 = 1073741824; +pub const MS_NOUSER: u32 = 2147483648; +pub const MS_RMT_MASK: u32 = 41943121; +pub const MS_MGC_VAL: u32 = 3236757504; +pub const MS_MGC_MSK: u32 = 4294901760; +pub const OPEN_TREE_CLONE: u32 = 1; +pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; +pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; +pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; +pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; +pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; +pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; +pub const MOVE_MOUNT_SET_GROUP: u32 = 256; +pub const MOVE_MOUNT_BENEATH: u32 = 512; +pub const MOVE_MOUNT__MASK: u32 = 887; +pub const FSOPEN_CLOEXEC: u32 = 1; +pub const FSPICK_CLOEXEC: u32 = 1; +pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; +pub const FSPICK_NO_AUTOMOUNT: u32 = 4; +pub const FSPICK_EMPTY_PATH: u32 = 8; +pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const MOUNT_ATTR_RDONLY: u32 = 1; +pub const MOUNT_ATTR_NOSUID: u32 = 2; +pub const MOUNT_ATTR_NODEV: u32 = 4; +pub const MOUNT_ATTR_NOEXEC: u32 = 8; +pub const MOUNT_ATTR__ATIME: u32 = 112; +pub const MOUNT_ATTR_RELATIME: u32 = 0; +pub const MOUNT_ATTR_NOATIME: u32 = 16; +pub const MOUNT_ATTR_STRICTATIME: u32 = 32; +pub const MOUNT_ATTR_NODIRATIME: u32 = 128; +pub const MOUNT_ATTR_IDMAP: u32 = 1048576; +pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; +pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; +pub const MNT_ID_REQ_SIZE_VER0: u32 = 24; +pub const MNT_ID_REQ_SIZE_VER1: u32 = 32; +pub const STATMOUNT_SB_BASIC: u32 = 1; +pub const STATMOUNT_MNT_BASIC: u32 = 2; +pub const STATMOUNT_PROPAGATE_FROM: u32 = 4; +pub const STATMOUNT_MNT_ROOT: u32 = 8; +pub const STATMOUNT_MNT_POINT: u32 = 16; +pub const STATMOUNT_FS_TYPE: u32 = 32; +pub const STATMOUNT_MNT_NS_ID: u32 = 64; +pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; +pub const STATMOUNT_SUPPORTED_MASK: u32 = 4096; +pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; +pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; +pub const LSMT_ROOT: i32 = -1; +pub const LISTMOUNT_REVERSE: u32 = 1; +pub const INR_OPEN_CUR: u32 = 1024; +pub const INR_OPEN_MAX: u32 = 4096; +pub const BLOCK_SIZE_BITS: u32 = 10; +pub const BLOCK_SIZE: u32 = 1024; +pub const IO_INTEGRITY_CHK_GUARD: u32 = 1; +pub const IO_INTEGRITY_CHK_REFTAG: u32 = 2; +pub const IO_INTEGRITY_CHK_APPTAG: u32 = 4; +pub const IO_INTEGRITY_VALID_FLAGS: u32 = 7; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const SEEK_DATA: u32 = 3; +pub const SEEK_HOLE: u32 = 4; +pub const SEEK_MAX: u32 = 4; +pub const RENAME_NOREPLACE: u32 = 1; +pub const RENAME_EXCHANGE: u32 = 2; +pub const RENAME_WHITEOUT: u32 = 4; +pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; +pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; +pub const NR_FILE: u32 = 8192; +pub const FS_XFLAG_REALTIME: u32 = 1; +pub const FS_XFLAG_PREALLOC: u32 = 2; +pub const FS_XFLAG_IMMUTABLE: u32 = 8; +pub const FS_XFLAG_APPEND: u32 = 16; +pub const FS_XFLAG_SYNC: u32 = 32; +pub const FS_XFLAG_NOATIME: u32 = 64; +pub const FS_XFLAG_NODUMP: u32 = 128; +pub const FS_XFLAG_RTINHERIT: u32 = 256; +pub const FS_XFLAG_PROJINHERIT: u32 = 512; +pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; +pub const FS_XFLAG_EXTSIZE: u32 = 2048; +pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; +pub const FS_XFLAG_NODEFRAG: u32 = 8192; +pub const FS_XFLAG_FILESTREAM: u32 = 16384; +pub const FS_XFLAG_DAX: u32 = 32768; +pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_HASATTR: u32 = 2147483648; +pub const BMAP_IOCTL: u32 = 1; +pub const FSLABEL_MAX: u32 = 256; +pub const FS_SECRM_FL: u32 = 1; +pub const FS_UNRM_FL: u32 = 2; +pub const FS_COMPR_FL: u32 = 4; +pub const FS_SYNC_FL: u32 = 8; +pub const FS_IMMUTABLE_FL: u32 = 16; +pub const FS_APPEND_FL: u32 = 32; +pub const FS_NODUMP_FL: u32 = 64; +pub const FS_NOATIME_FL: u32 = 128; +pub const FS_DIRTY_FL: u32 = 256; +pub const FS_COMPRBLK_FL: u32 = 512; +pub const FS_NOCOMP_FL: u32 = 1024; +pub const FS_ENCRYPT_FL: u32 = 2048; +pub const FS_BTREE_FL: u32 = 4096; +pub const FS_INDEX_FL: u32 = 4096; +pub const FS_IMAGIC_FL: u32 = 8192; +pub const FS_JOURNAL_DATA_FL: u32 = 16384; +pub const FS_NOTAIL_FL: u32 = 32768; +pub const FS_DIRSYNC_FL: u32 = 65536; +pub const FS_TOPDIR_FL: u32 = 131072; +pub const FS_HUGE_FILE_FL: u32 = 262144; +pub const FS_EXTENT_FL: u32 = 524288; +pub const FS_VERITY_FL: u32 = 1048576; +pub const FS_EA_INODE_FL: u32 = 2097152; +pub const FS_EOFBLOCKS_FL: u32 = 4194304; +pub const FS_NOCOW_FL: u32 = 8388608; +pub const FS_DAX_FL: u32 = 33554432; +pub const FS_INLINE_DATA_FL: u32 = 268435456; +pub const FS_PROJINHERIT_FL: u32 = 536870912; +pub const FS_CASEFOLD_FL: u32 = 1073741824; +pub const FS_RESERVED_FL: u32 = 2147483648; +pub const FS_FL_USER_VISIBLE: u32 = 253951; +pub const FS_FL_USER_MODIFIABLE: u32 = 229631; +pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; +pub const SYNC_FILE_RANGE_WRITE: u32 = 2; +pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; +pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; +pub const PROCFS_IOCTL_MAGIC: u8 = 102u8; +pub const PAGE_IS_WPALLOWED: u32 = 1; +pub const PAGE_IS_WRITTEN: u32 = 2; +pub const PAGE_IS_FILE: u32 = 4; +pub const PAGE_IS_PRESENT: u32 = 8; +pub const PAGE_IS_SWAPPED: u32 = 16; +pub const PAGE_IS_PFNZERO: u32 = 32; +pub const PAGE_IS_HUGE: u32 = 64; +pub const PAGE_IS_SOFT_DIRTY: u32 = 128; +pub const PAGE_IS_GUARD: u32 = 256; +pub const PM_SCAN_WP_MATCHING: u32 = 1; +pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const BTRFS_IOCTL_MAGIC: u32 = 148; +pub const BTRFS_VOL_NAME_MAX: u32 = 255; +pub const BTRFS_LABEL_SIZE: u32 = 256; +pub const BTRFS_PATH_NAME_MAX: u32 = 4087; +pub const BTRFS_DEVICE_PATH_NAME_MAX: u32 = 1024; +pub const BTRFS_SUBVOL_NAME_MAX: u32 = 4039; +pub const BTRFS_SUBVOL_CREATE_ASYNC: u32 = 1; +pub const BTRFS_SUBVOL_RDONLY: u32 = 2; +pub const BTRFS_SUBVOL_QGROUP_INHERIT: u32 = 4; +pub const BTRFS_DEVICE_SPEC_BY_ID: u32 = 8; +pub const BTRFS_SUBVOL_SPEC_BY_ID: u32 = 16; +pub const BTRFS_VOL_ARG_V2_FLAGS_SUPPORTED: u32 = 30; +pub const BTRFS_FSID_SIZE: u32 = 16; +pub const BTRFS_UUID_SIZE: u32 = 16; +pub const BTRFS_UUID_UNPARSED_SIZE: u32 = 37; +pub const BTRFS_QGROUP_LIMIT_MAX_RFER: u32 = 1; +pub const BTRFS_QGROUP_LIMIT_MAX_EXCL: u32 = 2; +pub const BTRFS_QGROUP_LIMIT_RSV_RFER: u32 = 4; +pub const BTRFS_QGROUP_LIMIT_RSV_EXCL: u32 = 8; +pub const BTRFS_QGROUP_LIMIT_RFER_CMPR: u32 = 16; +pub const BTRFS_QGROUP_LIMIT_EXCL_CMPR: u32 = 32; +pub const BTRFS_QGROUP_INHERIT_SET_LIMITS: u32 = 1; +pub const BTRFS_QGROUP_INHERIT_FLAGS_SUPP: u32 = 1; +pub const BTRFS_DEVICE_REMOVE_ARGS_MASK: u32 = 8; +pub const BTRFS_SUBVOL_CREATE_ARGS_MASK: u32 = 6; +pub const BTRFS_SUBVOL_DELETE_ARGS_MASK: u32 = 16; +pub const BTRFS_SCRUB_READONLY: u32 = 1; +pub const BTRFS_SCRUB_SUPPORTED_FLAGS: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_CONT_READING_FROM_SRCDEV_MODE_ALWAYS: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_CONT_READING_FROM_SRCDEV_MODE_AVOID: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_NEVER_STARTED: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_STARTED: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_FINISHED: u32 = 2; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_CANCELED: u32 = 3; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_SUSPENDED: u32 = 4; +pub const BTRFS_IOCTL_DEV_REPLACE_CMD_START: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_CMD_STATUS: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_CMD_CANCEL: u32 = 2; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_NO_ERROR: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_NOT_STARTED: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_ALREADY_STARTED: u32 = 2; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_SCRUB_INPROGRESS: u32 = 3; +pub const BTRFS_FS_INFO_FLAG_CSUM_INFO: u32 = 1; +pub const BTRFS_FS_INFO_FLAG_GENERATION: u32 = 2; +pub const BTRFS_FS_INFO_FLAG_METADATA_UUID: u32 = 4; +pub const BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE: u32 = 1; +pub const BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE_VALID: u32 = 2; +pub const BTRFS_FEATURE_COMPAT_RO_VERITY: u32 = 4; +pub const BTRFS_FEATURE_COMPAT_RO_BLOCK_GROUP_TREE: u32 = 8; +pub const BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF: u32 = 1; +pub const BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL: u32 = 2; +pub const BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS: u32 = 4; +pub const BTRFS_FEATURE_INCOMPAT_COMPRESS_LZO: u32 = 8; +pub const BTRFS_FEATURE_INCOMPAT_COMPRESS_ZSTD: u32 = 16; +pub const BTRFS_FEATURE_INCOMPAT_BIG_METADATA: u32 = 32; +pub const BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF: u32 = 64; +pub const BTRFS_FEATURE_INCOMPAT_RAID56: u32 = 128; +pub const BTRFS_FEATURE_INCOMPAT_SKINNY_METADATA: u32 = 256; +pub const BTRFS_FEATURE_INCOMPAT_NO_HOLES: u32 = 512; +pub const BTRFS_FEATURE_INCOMPAT_METADATA_UUID: u32 = 1024; +pub const BTRFS_FEATURE_INCOMPAT_RAID1C34: u32 = 2048; +pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; +pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; +pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; +pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; +pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; +pub const BTRFS_BALANCE_DATA: u32 = 1; +pub const BTRFS_BALANCE_SYSTEM: u32 = 2; +pub const BTRFS_BALANCE_METADATA: u32 = 4; +pub const BTRFS_BALANCE_TYPE_MASK: u32 = 7; +pub const BTRFS_BALANCE_FORCE: u32 = 8; +pub const BTRFS_BALANCE_RESUME: u32 = 16; +pub const BTRFS_BALANCE_ARGS_PROFILES: u32 = 1; +pub const BTRFS_BALANCE_ARGS_USAGE: u32 = 2; +pub const BTRFS_BALANCE_ARGS_DEVID: u32 = 4; +pub const BTRFS_BALANCE_ARGS_DRANGE: u32 = 8; +pub const BTRFS_BALANCE_ARGS_VRANGE: u32 = 16; +pub const BTRFS_BALANCE_ARGS_LIMIT: u32 = 32; +pub const BTRFS_BALANCE_ARGS_LIMIT_RANGE: u32 = 64; +pub const BTRFS_BALANCE_ARGS_STRIPES_RANGE: u32 = 128; +pub const BTRFS_BALANCE_ARGS_USAGE_RANGE: u32 = 1024; +pub const BTRFS_BALANCE_ARGS_MASK: u32 = 1279; +pub const BTRFS_BALANCE_ARGS_CONVERT: u32 = 256; +pub const BTRFS_BALANCE_ARGS_SOFT: u32 = 512; +pub const BTRFS_BALANCE_STATE_RUNNING: u32 = 1; +pub const BTRFS_BALANCE_STATE_PAUSE_REQ: u32 = 2; +pub const BTRFS_BALANCE_STATE_CANCEL_REQ: u32 = 4; +pub const BTRFS_INO_LOOKUP_PATH_MAX: u32 = 4080; +pub const BTRFS_INO_LOOKUP_USER_PATH_MAX: u32 = 3824; +pub const BTRFS_DEFRAG_RANGE_COMPRESS: u32 = 1; +pub const BTRFS_DEFRAG_RANGE_START_IO: u32 = 2; +pub const BTRFS_DEFRAG_RANGE_COMPRESS_LEVEL: u32 = 4; +pub const BTRFS_DEFRAG_RANGE_FLAGS_SUPP: u32 = 7; +pub const BTRFS_SAME_DATA_DIFFERS: u32 = 1; +pub const BTRFS_LOGICAL_INO_ARGS_IGNORE_OFFSET: u32 = 1; +pub const BTRFS_DEV_STATS_RESET: u32 = 1; +pub const BTRFS_QUOTA_CTL_ENABLE: u32 = 1; +pub const BTRFS_QUOTA_CTL_DISABLE: u32 = 2; +pub const BTRFS_QUOTA_CTL_RESCAN__NOTUSED: u32 = 3; +pub const BTRFS_QUOTA_CTL_ENABLE_SIMPLE_QUOTA: u32 = 4; +pub const BTRFS_SEND_FLAG_NO_FILE_DATA: u32 = 1; +pub const BTRFS_SEND_FLAG_OMIT_STREAM_HEADER: u32 = 2; +pub const BTRFS_SEND_FLAG_OMIT_END_CMD: u32 = 4; +pub const BTRFS_SEND_FLAG_VERSION: u32 = 8; +pub const BTRFS_SEND_FLAG_COMPRESSED: u32 = 16; +pub const BTRFS_SEND_FLAG_MASK: u32 = 31; +pub const BTRFS_MAX_ROOTREF_BUFFER_NUM: u32 = 255; +pub const BTRFS_ENCODED_IO_COMPRESSION_NONE: u32 = 0; +pub const BTRFS_ENCODED_IO_COMPRESSION_ZLIB: u32 = 1; +pub const BTRFS_ENCODED_IO_COMPRESSION_ZSTD: u32 = 2; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_4K: u32 = 3; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_8K: u32 = 4; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_16K: u32 = 5; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_32K: u32 = 6; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7; +pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8; +pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0; +pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2; +pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3; +pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4; +pub const BTRFS_MAGIC: u64 = 5575266562640200287; +pub const BTRFS_MAX_LEVEL: u32 = 8; +pub const BTRFS_NAME_LEN: u32 = 255; +pub const BTRFS_LINK_MAX: u32 = 65535; +pub const BTRFS_ROOT_TREE_OBJECTID: u32 = 1; +pub const BTRFS_EXTENT_TREE_OBJECTID: u32 = 2; +pub const BTRFS_CHUNK_TREE_OBJECTID: u32 = 3; +pub const BTRFS_DEV_TREE_OBJECTID: u32 = 4; +pub const BTRFS_FS_TREE_OBJECTID: u32 = 5; +pub const BTRFS_ROOT_TREE_DIR_OBJECTID: u32 = 6; +pub const BTRFS_CSUM_TREE_OBJECTID: u32 = 7; +pub const BTRFS_QUOTA_TREE_OBJECTID: u32 = 8; +pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; +pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; +pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; +pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; +pub const BTRFS_BALANCE_OBJECTID: i32 = -4; +pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; +pub const BTRFS_TREE_LOG_OBJECTID: i32 = -6; +pub const BTRFS_TREE_LOG_FIXUP_OBJECTID: i32 = -7; +pub const BTRFS_TREE_RELOC_OBJECTID: i32 = -8; +pub const BTRFS_DATA_RELOC_TREE_OBJECTID: i32 = -9; +pub const BTRFS_EXTENT_CSUM_OBJECTID: i32 = -10; +pub const BTRFS_FREE_SPACE_OBJECTID: i32 = -11; +pub const BTRFS_FREE_INO_OBJECTID: i32 = -12; +pub const BTRFS_MULTIPLE_OBJECTIDS: i32 = -255; +pub const BTRFS_FIRST_FREE_OBJECTID: u32 = 256; +pub const BTRFS_LAST_FREE_OBJECTID: i32 = -256; +pub const BTRFS_FIRST_CHUNK_TREE_OBJECTID: u32 = 256; +pub const BTRFS_DEV_ITEMS_OBJECTID: u32 = 1; +pub const BTRFS_BTREE_INODE_OBJECTID: u32 = 1; +pub const BTRFS_EMPTY_SUBVOL_DIR_OBJECTID: u32 = 2; +pub const BTRFS_DEV_REPLACE_DEVID: u32 = 0; +pub const BTRFS_INODE_ITEM_KEY: u32 = 1; +pub const BTRFS_INODE_REF_KEY: u32 = 12; +pub const BTRFS_INODE_EXTREF_KEY: u32 = 13; +pub const BTRFS_XATTR_ITEM_KEY: u32 = 24; +pub const BTRFS_VERITY_DESC_ITEM_KEY: u32 = 36; +pub const BTRFS_VERITY_MERKLE_ITEM_KEY: u32 = 37; +pub const BTRFS_ORPHAN_ITEM_KEY: u32 = 48; +pub const BTRFS_DIR_LOG_ITEM_KEY: u32 = 60; +pub const BTRFS_DIR_LOG_INDEX_KEY: u32 = 72; +pub const BTRFS_DIR_ITEM_KEY: u32 = 84; +pub const BTRFS_DIR_INDEX_KEY: u32 = 96; +pub const BTRFS_EXTENT_DATA_KEY: u32 = 108; +pub const BTRFS_EXTENT_CSUM_KEY: u32 = 128; +pub const BTRFS_ROOT_ITEM_KEY: u32 = 132; +pub const BTRFS_ROOT_BACKREF_KEY: u32 = 144; +pub const BTRFS_ROOT_REF_KEY: u32 = 156; +pub const BTRFS_EXTENT_ITEM_KEY: u32 = 168; +pub const BTRFS_METADATA_ITEM_KEY: u32 = 169; +pub const BTRFS_EXTENT_OWNER_REF_KEY: u32 = 172; +pub const BTRFS_TREE_BLOCK_REF_KEY: u32 = 176; +pub const BTRFS_EXTENT_DATA_REF_KEY: u32 = 178; +pub const BTRFS_SHARED_BLOCK_REF_KEY: u32 = 182; +pub const BTRFS_SHARED_DATA_REF_KEY: u32 = 184; +pub const BTRFS_BLOCK_GROUP_ITEM_KEY: u32 = 192; +pub const BTRFS_FREE_SPACE_INFO_KEY: u32 = 198; +pub const BTRFS_FREE_SPACE_EXTENT_KEY: u32 = 199; +pub const BTRFS_FREE_SPACE_BITMAP_KEY: u32 = 200; +pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; +pub const BTRFS_DEV_ITEM_KEY: u32 = 216; +pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; +pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; +pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; +pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; +pub const BTRFS_QGROUP_RELATION_KEY: u32 = 246; +pub const BTRFS_BALANCE_ITEM_KEY: u32 = 248; +pub const BTRFS_TEMPORARY_ITEM_KEY: u32 = 248; +pub const BTRFS_DEV_STATS_KEY: u32 = 249; +pub const BTRFS_PERSISTENT_ITEM_KEY: u32 = 249; +pub const BTRFS_DEV_REPLACE_KEY: u32 = 250; +pub const BTRFS_UUID_KEY_SUBVOL: u32 = 251; +pub const BTRFS_UUID_KEY_RECEIVED_SUBVOL: u32 = 252; +pub const BTRFS_STRING_ITEM_KEY: u32 = 253; +pub const BTRFS_MAX_METADATA_BLOCKSIZE: u32 = 65536; +pub const BTRFS_CSUM_SIZE: u32 = 32; +pub const BTRFS_FT_UNKNOWN: u32 = 0; +pub const BTRFS_FT_REG_FILE: u32 = 1; +pub const BTRFS_FT_DIR: u32 = 2; +pub const BTRFS_FT_CHRDEV: u32 = 3; +pub const BTRFS_FT_BLKDEV: u32 = 4; +pub const BTRFS_FT_FIFO: u32 = 5; +pub const BTRFS_FT_SOCK: u32 = 6; +pub const BTRFS_FT_SYMLINK: u32 = 7; +pub const BTRFS_FT_XATTR: u32 = 8; +pub const BTRFS_FT_MAX: u32 = 9; +pub const BTRFS_FT_ENCRYPTED: u32 = 128; +pub const BTRFS_INODE_NODATASUM: u32 = 1; +pub const BTRFS_INODE_NODATACOW: u32 = 2; +pub const BTRFS_INODE_READONLY: u32 = 4; +pub const BTRFS_INODE_NOCOMPRESS: u32 = 8; +pub const BTRFS_INODE_PREALLOC: u32 = 16; +pub const BTRFS_INODE_SYNC: u32 = 32; +pub const BTRFS_INODE_IMMUTABLE: u32 = 64; +pub const BTRFS_INODE_APPEND: u32 = 128; +pub const BTRFS_INODE_NODUMP: u32 = 256; +pub const BTRFS_INODE_NOATIME: u32 = 512; +pub const BTRFS_INODE_DIRSYNC: u32 = 1024; +pub const BTRFS_INODE_COMPRESS: u32 = 2048; +pub const BTRFS_INODE_ROOT_ITEM_INIT: u32 = 2147483648; +pub const BTRFS_INODE_FLAG_MASK: u32 = 2147487743; +pub const BTRFS_INODE_RO_VERITY: u32 = 1; +pub const BTRFS_INODE_RO_FLAG_MASK: u32 = 1; +pub const BTRFS_SYSTEM_CHUNK_ARRAY_SIZE: u32 = 2048; +pub const BTRFS_NUM_BACKUP_ROOTS: u32 = 4; +pub const BTRFS_FREE_SPACE_EXTENT: u32 = 1; +pub const BTRFS_FREE_SPACE_BITMAP: u32 = 2; +pub const BTRFS_HEADER_FLAG_WRITTEN: u32 = 1; +pub const BTRFS_HEADER_FLAG_RELOC: u32 = 2; +pub const BTRFS_SUPER_FLAG_ERROR: u32 = 4; +pub const BTRFS_SUPER_FLAG_SEEDING: u64 = 4294967296; +pub const BTRFS_SUPER_FLAG_METADUMP: u64 = 8589934592; +pub const BTRFS_SUPER_FLAG_METADUMP_V2: u64 = 17179869184; +pub const BTRFS_SUPER_FLAG_CHANGING_FSID: u64 = 34359738368; +pub const BTRFS_SUPER_FLAG_CHANGING_FSID_V2: u64 = 68719476736; +pub const BTRFS_SUPER_FLAG_CHANGING_BG_TREE: u64 = 274877906944; +pub const BTRFS_SUPER_FLAG_CHANGING_DATA_CSUM: u64 = 549755813888; +pub const BTRFS_SUPER_FLAG_CHANGING_META_CSUM: u64 = 1099511627776; +pub const BTRFS_EXTENT_FLAG_DATA: u32 = 1; +pub const BTRFS_EXTENT_FLAG_TREE_BLOCK: u32 = 2; +pub const BTRFS_BLOCK_FLAG_FULL_BACKREF: u32 = 256; +pub const BTRFS_BACKREF_REV_MAX: u32 = 256; +pub const BTRFS_BACKREF_REV_SHIFT: u32 = 56; +pub const BTRFS_OLD_BACKREF_REV: u32 = 0; +pub const BTRFS_MIXED_BACKREF_REV: u32 = 1; +pub const BTRFS_EXTENT_FLAG_SUPER: u64 = 281474976710656; +pub const BTRFS_ROOT_SUBVOL_RDONLY: u32 = 1; +pub const BTRFS_ROOT_SUBVOL_DEAD: u64 = 281474976710656; +pub const BTRFS_DEV_REPLACE_ITEM_CONT_READING_FROM_SRCDEV_MODE_ALWAYS: u32 = 0; +pub const BTRFS_DEV_REPLACE_ITEM_CONT_READING_FROM_SRCDEV_MODE_AVOID: u32 = 1; +pub const BTRFS_BLOCK_GROUP_DATA: u32 = 1; +pub const BTRFS_BLOCK_GROUP_SYSTEM: u32 = 2; +pub const BTRFS_BLOCK_GROUP_METADATA: u32 = 4; +pub const BTRFS_BLOCK_GROUP_RAID0: u32 = 8; +pub const BTRFS_BLOCK_GROUP_RAID1: u32 = 16; +pub const BTRFS_BLOCK_GROUP_DUP: u32 = 32; +pub const BTRFS_BLOCK_GROUP_RAID10: u32 = 64; +pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; +pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; +pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; +pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; +pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; +pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; +pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; +pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; +pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; +pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; +pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; +pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; +pub const BTRFS_QGROUP_STATUS_FLAG_INCONSISTENT: u32 = 4; +pub const BTRFS_QGROUP_STATUS_FLAG_SIMPLE_MODE: u32 = 8; +pub const BTRFS_QGROUP_STATUS_FLAGS_MASK: u32 = 15; +pub const BTRFS_QGROUP_STATUS_VERSION: u32 = 1; +pub const BTRFS_FILE_EXTENT_INLINE: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_FILE_EXTENT_INLINE; +pub const BTRFS_FILE_EXTENT_REG: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_FILE_EXTENT_REG; +pub const BTRFS_FILE_EXTENT_PREALLOC: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_FILE_EXTENT_PREALLOC; +pub const BTRFS_NR_FILE_EXTENT_TYPES: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_NR_FILE_EXTENT_TYPES; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum fsconfig_command { +FSCONFIG_SET_FLAG = 0, +FSCONFIG_SET_STRING = 1, +FSCONFIG_SET_BINARY = 2, +FSCONFIG_SET_PATH = 3, +FSCONFIG_SET_PATH_EMPTY = 4, +FSCONFIG_SET_FD = 5, +FSCONFIG_CMD_CREATE = 6, +FSCONFIG_CMD_RECONFIGURE = 7, +FSCONFIG_CMD_CREATE_EXCL = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum procmap_query_flags { +PROCMAP_QUERY_VMA_READABLE = 1, +PROCMAP_QUERY_VMA_WRITABLE = 2, +PROCMAP_QUERY_VMA_EXECUTABLE = 4, +PROCMAP_QUERY_VMA_SHARED = 8, +PROCMAP_QUERY_COVERING_OR_NEXT_VMA = 16, +PROCMAP_QUERY_FILE_BACKED_VMA = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum btrfs_dev_stat_values { +BTRFS_DEV_STAT_WRITE_ERRS = 0, +BTRFS_DEV_STAT_READ_ERRS = 1, +BTRFS_DEV_STAT_FLUSH_ERRS = 2, +BTRFS_DEV_STAT_CORRUPTION_ERRS = 3, +BTRFS_DEV_STAT_GENERATION_ERRS = 4, +BTRFS_DEV_STAT_VALUES_MAX = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum btrfs_err_code { +BTRFS_ERROR_DEV_RAID1_MIN_NOT_MET = 1, +BTRFS_ERROR_DEV_RAID10_MIN_NOT_MET = 2, +BTRFS_ERROR_DEV_RAID5_MIN_NOT_MET = 3, +BTRFS_ERROR_DEV_RAID6_MIN_NOT_MET = 4, +BTRFS_ERROR_DEV_TGT_REPLACE = 5, +BTRFS_ERROR_DEV_MISSING_NOT_FOUND = 6, +BTRFS_ERROR_DEV_ONLY_WRITABLE = 7, +BTRFS_ERROR_DEV_EXCL_RUN_IN_PROGRESS = 8, +BTRFS_ERROR_DEV_RAID1C3_MIN_NOT_MET = 9, +BTRFS_ERROR_DEV_RAID1C4_MIN_NOT_MET = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum btrfs_csum_type { +BTRFS_CSUM_TYPE_CRC32 = 0, +BTRFS_CSUM_TYPE_XXHASH = 1, +BTRFS_CSUM_TYPE_SHA256 = 2, +BTRFS_CSUM_TYPE_BLAKE2 = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +BTRFS_FILE_EXTENT_INLINE = 0, +BTRFS_FILE_EXTENT_REG = 1, +BTRFS_FILE_EXTENT_PREALLOC = 2, +BTRFS_NR_FILE_EXTENT_TYPES = 3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __vector128__bindgen_ty_1 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1, +pub u: [__u32; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { +pub version: __u8, +pub v1: fscrypt_policy_v1, +pub v2: fscrypt_policy_v2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_key_specifier__bindgen_ty_1 { +pub __reserved: [__u8; 32usize], +pub descriptor: [__u8; 8usize], +pub identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { +pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, +pub unused: [__u64; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_vol_args_v2__bindgen_ty_2 { +pub name: [crate::ctypes::c_char; 4040usize], +pub devid: __u64, +pub subvolid: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_dev_replace_args__bindgen_ty_1 { +pub start: btrfs_ioctl_dev_replace_start_params, +pub status: btrfs_ioctl_dev_replace_status_params, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_balance_args__bindgen_ty_1 { +pub usage: __u64, +pub __bindgen_anon_1: btrfs_balance_args__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_balance_args__bindgen_ty_2 { +pub limit: __u64, +pub __bindgen_anon_1: btrfs_balance_args__bindgen_ty_2__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_defrag_range_args__bindgen_ty_1 { +pub compress_type: __u32, +pub compress: btrfs_ioctl_defrag_range_args__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_disk_balance_args__bindgen_ty_1 { +pub usage: __le64, +pub __bindgen_anon_1: btrfs_disk_balance_args__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_disk_balance_args__bindgen_ty_2 { +pub limit: __le64, +pub __bindgen_anon_1: btrfs_disk_balance_args__bindgen_ty_2__bindgen_ty_1, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/elf_uapi.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/elf_uapi.rs new file mode 100644 index 0000000000000000000000000000000000000000..f2006a8e7ac44cef11d9e0eac48611f7ebfafe75 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/elf_uapi.rs @@ -0,0 +1,674 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type addr_t = crate::ctypes::c_ulong; +pub type saddr_t = crate::ctypes::c_long; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_ulong; +pub type __kernel_ssize_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_ino_t = crate::ctypes::c_uint; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_sigset_t = crate::ctypes::c_ulong; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type Elf32_Addr = __u32; +pub type Elf32_Half = __u16; +pub type Elf32_Off = __u32; +pub type Elf32_Sword = __s32; +pub type Elf32_Word = __u32; +pub type Elf32_Versym = __u16; +pub type Elf64_Addr = __u64; +pub type Elf64_Half = __u16; +pub type Elf64_SHalf = __s16; +pub type Elf64_Off = __u64; +pub type Elf64_Sword = __s32; +pub type Elf64_Word = __u32; +pub type Elf64_Xword = __u64; +pub type Elf64_Sxword = __s64; +pub type Elf64_Versym = __u16; +pub type Elf32_Rel = elf32_rel; +pub type Elf64_Rel = elf64_rel; +pub type Elf32_Rela = elf32_rela; +pub type Elf64_Rela = elf64_rela; +pub type Elf32_Sym = elf32_sym; +pub type Elf64_Sym = elf64_sym; +pub type Elf32_Ehdr = elf32_hdr; +pub type Elf64_Ehdr = elf64_hdr; +pub type Elf32_Phdr = elf32_phdr; +pub type Elf64_Phdr = elf64_phdr; +pub type Elf32_Shdr = elf32_shdr; +pub type Elf64_Shdr = elf64_shdr; +pub type Elf32_Nhdr = elf32_note; +pub type Elf64_Nhdr = elf64_note; +#[repr(C, packed(4))] +#[derive(Copy, Clone)] +pub struct __vector128 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __vector128__bindgen_ty_1__bindgen_ty_1 { +pub high: __u64, +pub low: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct Elf32_Dyn { +pub d_tag: Elf32_Sword, +pub d_un: Elf32_Dyn__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct Elf64_Dyn { +pub d_tag: Elf64_Sxword, +pub d_un: Elf64_Dyn__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_rel { +pub r_offset: Elf32_Addr, +pub r_info: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_rel { +pub r_offset: Elf64_Addr, +pub r_info: Elf64_Xword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_rela { +pub r_offset: Elf32_Addr, +pub r_info: Elf32_Word, +pub r_addend: Elf32_Sword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_rela { +pub r_offset: Elf64_Addr, +pub r_info: Elf64_Xword, +pub r_addend: Elf64_Sxword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_sym { +pub st_name: Elf32_Word, +pub st_value: Elf32_Addr, +pub st_size: Elf32_Word, +pub st_info: crate::ctypes::c_uchar, +pub st_other: crate::ctypes::c_uchar, +pub st_shndx: Elf32_Half, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_sym { +pub st_name: Elf64_Word, +pub st_info: crate::ctypes::c_uchar, +pub st_other: crate::ctypes::c_uchar, +pub st_shndx: Elf64_Half, +pub st_value: Elf64_Addr, +pub st_size: Elf64_Xword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_hdr { +pub e_ident: [crate::ctypes::c_uchar; 16usize], +pub e_type: Elf32_Half, +pub e_machine: Elf32_Half, +pub e_version: Elf32_Word, +pub e_entry: Elf32_Addr, +pub e_phoff: Elf32_Off, +pub e_shoff: Elf32_Off, +pub e_flags: Elf32_Word, +pub e_ehsize: Elf32_Half, +pub e_phentsize: Elf32_Half, +pub e_phnum: Elf32_Half, +pub e_shentsize: Elf32_Half, +pub e_shnum: Elf32_Half, +pub e_shstrndx: Elf32_Half, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_hdr { +pub e_ident: [crate::ctypes::c_uchar; 16usize], +pub e_type: Elf64_Half, +pub e_machine: Elf64_Half, +pub e_version: Elf64_Word, +pub e_entry: Elf64_Addr, +pub e_phoff: Elf64_Off, +pub e_shoff: Elf64_Off, +pub e_flags: Elf64_Word, +pub e_ehsize: Elf64_Half, +pub e_phentsize: Elf64_Half, +pub e_phnum: Elf64_Half, +pub e_shentsize: Elf64_Half, +pub e_shnum: Elf64_Half, +pub e_shstrndx: Elf64_Half, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_phdr { +pub p_type: Elf32_Word, +pub p_offset: Elf32_Off, +pub p_vaddr: Elf32_Addr, +pub p_paddr: Elf32_Addr, +pub p_filesz: Elf32_Word, +pub p_memsz: Elf32_Word, +pub p_flags: Elf32_Word, +pub p_align: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_phdr { +pub p_type: Elf64_Word, +pub p_flags: Elf64_Word, +pub p_offset: Elf64_Off, +pub p_vaddr: Elf64_Addr, +pub p_paddr: Elf64_Addr, +pub p_filesz: Elf64_Xword, +pub p_memsz: Elf64_Xword, +pub p_align: Elf64_Xword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_shdr { +pub sh_name: Elf32_Word, +pub sh_type: Elf32_Word, +pub sh_flags: Elf32_Word, +pub sh_addr: Elf32_Addr, +pub sh_offset: Elf32_Off, +pub sh_size: Elf32_Word, +pub sh_link: Elf32_Word, +pub sh_info: Elf32_Word, +pub sh_addralign: Elf32_Word, +pub sh_entsize: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_shdr { +pub sh_name: Elf64_Word, +pub sh_type: Elf64_Word, +pub sh_flags: Elf64_Xword, +pub sh_addr: Elf64_Addr, +pub sh_offset: Elf64_Off, +pub sh_size: Elf64_Xword, +pub sh_link: Elf64_Word, +pub sh_info: Elf64_Word, +pub sh_addralign: Elf64_Xword, +pub sh_entsize: Elf64_Xword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_note { +pub n_namesz: Elf32_Word, +pub n_descsz: Elf32_Word, +pub n_type: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_note { +pub n_namesz: Elf64_Word, +pub n_descsz: Elf64_Word, +pub n_type: Elf64_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Elf32_Verdef { +pub vd_version: Elf32_Half, +pub vd_flags: Elf32_Half, +pub vd_ndx: Elf32_Half, +pub vd_cnt: Elf32_Half, +pub vd_hash: Elf32_Word, +pub vd_aux: Elf32_Word, +pub vd_next: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Elf64_Verdef { +pub vd_version: Elf64_Half, +pub vd_flags: Elf64_Half, +pub vd_ndx: Elf64_Half, +pub vd_cnt: Elf64_Half, +pub vd_hash: Elf64_Word, +pub vd_aux: Elf64_Word, +pub vd_next: Elf64_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Elf32_Verdaux { +pub vda_name: Elf32_Word, +pub vda_next: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Elf64_Verdaux { +pub vda_name: Elf64_Word, +pub vda_next: Elf64_Word, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const EM_NONE: u32 = 0; +pub const EM_M32: u32 = 1; +pub const EM_SPARC: u32 = 2; +pub const EM_386: u32 = 3; +pub const EM_68K: u32 = 4; +pub const EM_88K: u32 = 5; +pub const EM_486: u32 = 6; +pub const EM_860: u32 = 7; +pub const EM_MIPS: u32 = 8; +pub const EM_MIPS_RS3_LE: u32 = 10; +pub const EM_MIPS_RS4_BE: u32 = 10; +pub const EM_PARISC: u32 = 15; +pub const EM_SPARC32PLUS: u32 = 18; +pub const EM_PPC: u32 = 20; +pub const EM_PPC64: u32 = 21; +pub const EM_SPU: u32 = 23; +pub const EM_ARM: u32 = 40; +pub const EM_SH: u32 = 42; +pub const EM_SPARCV9: u32 = 43; +pub const EM_H8_300: u32 = 46; +pub const EM_IA_64: u32 = 50; +pub const EM_X86_64: u32 = 62; +pub const EM_S390: u32 = 22; +pub const EM_CRIS: u32 = 76; +pub const EM_M32R: u32 = 88; +pub const EM_MN10300: u32 = 89; +pub const EM_OPENRISC: u32 = 92; +pub const EM_ARCOMPACT: u32 = 93; +pub const EM_XTENSA: u32 = 94; +pub const EM_BLACKFIN: u32 = 106; +pub const EM_UNICORE: u32 = 110; +pub const EM_ALTERA_NIOS2: u32 = 113; +pub const EM_TI_C6000: u32 = 140; +pub const EM_HEXAGON: u32 = 164; +pub const EM_NDS32: u32 = 167; +pub const EM_AARCH64: u32 = 183; +pub const EM_TILEPRO: u32 = 188; +pub const EM_MICROBLAZE: u32 = 189; +pub const EM_TILEGX: u32 = 191; +pub const EM_ARCV2: u32 = 195; +pub const EM_RISCV: u32 = 243; +pub const EM_BPF: u32 = 247; +pub const EM_CSKY: u32 = 252; +pub const EM_LOONGARCH: u32 = 258; +pub const EM_FRV: u32 = 21569; +pub const EM_ALPHA: u32 = 36902; +pub const EM_CYGNUS_M32R: u32 = 36929; +pub const EM_S390_OLD: u32 = 41872; +pub const EM_CYGNUS_MN10300: u32 = 48879; +pub const PT_NULL: u32 = 0; +pub const PT_LOAD: u32 = 1; +pub const PT_DYNAMIC: u32 = 2; +pub const PT_INTERP: u32 = 3; +pub const PT_NOTE: u32 = 4; +pub const PT_SHLIB: u32 = 5; +pub const PT_PHDR: u32 = 6; +pub const PT_TLS: u32 = 7; +pub const PT_LOOS: u32 = 1610612736; +pub const PT_HIOS: u32 = 1879048191; +pub const PT_LOPROC: u32 = 1879048192; +pub const PT_HIPROC: u32 = 2147483647; +pub const PT_GNU_EH_FRAME: u32 = 1685382480; +pub const PT_GNU_STACK: u32 = 1685382481; +pub const PT_GNU_RELRO: u32 = 1685382482; +pub const PT_GNU_PROPERTY: u32 = 1685382483; +pub const PT_AARCH64_MEMTAG_MTE: u32 = 1879048194; +pub const PN_XNUM: u32 = 65535; +pub const ET_NONE: u32 = 0; +pub const ET_REL: u32 = 1; +pub const ET_EXEC: u32 = 2; +pub const ET_DYN: u32 = 3; +pub const ET_CORE: u32 = 4; +pub const ET_LOPROC: u32 = 65280; +pub const ET_HIPROC: u32 = 65535; +pub const DT_NULL: u32 = 0; +pub const DT_NEEDED: u32 = 1; +pub const DT_PLTRELSZ: u32 = 2; +pub const DT_PLTGOT: u32 = 3; +pub const DT_HASH: u32 = 4; +pub const DT_STRTAB: u32 = 5; +pub const DT_SYMTAB: u32 = 6; +pub const DT_RELA: u32 = 7; +pub const DT_RELASZ: u32 = 8; +pub const DT_RELAENT: u32 = 9; +pub const DT_STRSZ: u32 = 10; +pub const DT_SYMENT: u32 = 11; +pub const DT_INIT: u32 = 12; +pub const DT_FINI: u32 = 13; +pub const DT_SONAME: u32 = 14; +pub const DT_RPATH: u32 = 15; +pub const DT_SYMBOLIC: u32 = 16; +pub const DT_REL: u32 = 17; +pub const DT_RELSZ: u32 = 18; +pub const DT_RELENT: u32 = 19; +pub const DT_PLTREL: u32 = 20; +pub const DT_DEBUG: u32 = 21; +pub const DT_TEXTREL: u32 = 22; +pub const DT_JMPREL: u32 = 23; +pub const DT_ENCODING: u32 = 32; +pub const OLD_DT_LOOS: u32 = 1610612736; +pub const DT_LOOS: u32 = 1610612749; +pub const DT_HIOS: u32 = 1879044096; +pub const DT_VALRNGLO: u32 = 1879047424; +pub const DT_VALRNGHI: u32 = 1879047679; +pub const DT_ADDRRNGLO: u32 = 1879047680; +pub const DT_GNU_HASH: u32 = 1879047925; +pub const DT_ADDRRNGHI: u32 = 1879047935; +pub const DT_VERSYM: u32 = 1879048176; +pub const DT_RELACOUNT: u32 = 1879048185; +pub const DT_RELCOUNT: u32 = 1879048186; +pub const DT_FLAGS_1: u32 = 1879048187; +pub const DT_VERDEF: u32 = 1879048188; +pub const DT_VERDEFNUM: u32 = 1879048189; +pub const DT_VERNEED: u32 = 1879048190; +pub const DT_VERNEEDNUM: u32 = 1879048191; +pub const OLD_DT_HIOS: u32 = 1879048191; +pub const DT_LOPROC: u32 = 1879048192; +pub const DT_HIPROC: u32 = 2147483647; +pub const STB_LOCAL: u32 = 0; +pub const STB_GLOBAL: u32 = 1; +pub const STB_WEAK: u32 = 2; +pub const STN_UNDEF: u32 = 0; +pub const STT_NOTYPE: u32 = 0; +pub const STT_OBJECT: u32 = 1; +pub const STT_FUNC: u32 = 2; +pub const STT_SECTION: u32 = 3; +pub const STT_FILE: u32 = 4; +pub const STT_COMMON: u32 = 5; +pub const STT_TLS: u32 = 6; +pub const VER_FLG_BASE: u32 = 1; +pub const VER_FLG_WEAK: u32 = 2; +pub const EI_NIDENT: u32 = 16; +pub const PF_R: u32 = 4; +pub const PF_W: u32 = 2; +pub const PF_X: u32 = 1; +pub const SHT_NULL: u32 = 0; +pub const SHT_PROGBITS: u32 = 1; +pub const SHT_SYMTAB: u32 = 2; +pub const SHT_STRTAB: u32 = 3; +pub const SHT_RELA: u32 = 4; +pub const SHT_HASH: u32 = 5; +pub const SHT_DYNAMIC: u32 = 6; +pub const SHT_NOTE: u32 = 7; +pub const SHT_NOBITS: u32 = 8; +pub const SHT_REL: u32 = 9; +pub const SHT_SHLIB: u32 = 10; +pub const SHT_DYNSYM: u32 = 11; +pub const SHT_NUM: u32 = 12; +pub const SHT_LOPROC: u32 = 1879048192; +pub const SHT_HIPROC: u32 = 2147483647; +pub const SHT_LOUSER: u32 = 2147483648; +pub const SHT_HIUSER: u32 = 4294967295; +pub const SHF_WRITE: u32 = 1; +pub const SHF_ALLOC: u32 = 2; +pub const SHF_EXECINSTR: u32 = 4; +pub const SHF_MERGE: u32 = 16; +pub const SHF_STRINGS: u32 = 32; +pub const SHF_INFO_LINK: u32 = 64; +pub const SHF_LINK_ORDER: u32 = 128; +pub const SHF_OS_NONCONFORMING: u32 = 256; +pub const SHF_GROUP: u32 = 512; +pub const SHF_TLS: u32 = 1024; +pub const SHF_RELA_LIVEPATCH: u32 = 1048576; +pub const SHF_RO_AFTER_INIT: u32 = 2097152; +pub const SHF_ORDERED: u32 = 67108864; +pub const SHF_EXCLUDE: u32 = 134217728; +pub const SHF_MASKOS: u32 = 267386880; +pub const SHF_MASKPROC: u32 = 4026531840; +pub const SHN_UNDEF: u32 = 0; +pub const SHN_LORESERVE: u32 = 65280; +pub const SHN_LOPROC: u32 = 65280; +pub const SHN_HIPROC: u32 = 65311; +pub const SHN_LIVEPATCH: u32 = 65312; +pub const SHN_ABS: u32 = 65521; +pub const SHN_COMMON: u32 = 65522; +pub const SHN_HIRESERVE: u32 = 65535; +pub const EI_MAG0: u32 = 0; +pub const EI_MAG1: u32 = 1; +pub const EI_MAG2: u32 = 2; +pub const EI_MAG3: u32 = 3; +pub const EI_CLASS: u32 = 4; +pub const EI_DATA: u32 = 5; +pub const EI_VERSION: u32 = 6; +pub const EI_OSABI: u32 = 7; +pub const EI_PAD: u32 = 8; +pub const ELFMAG0: u32 = 127; +pub const ELFMAG1: u8 = 69u8; +pub const ELFMAG2: u8 = 76u8; +pub const ELFMAG3: u8 = 70u8; +pub const ELFMAG: &[u8; 5] = b"\x7FELF\0"; +pub const SELFMAG: u32 = 4; +pub const ELFCLASSNONE: u32 = 0; +pub const ELFCLASS32: u32 = 1; +pub const ELFCLASS64: u32 = 2; +pub const ELFCLASSNUM: u32 = 3; +pub const ELFDATANONE: u32 = 0; +pub const ELFDATA2LSB: u32 = 1; +pub const ELFDATA2MSB: u32 = 2; +pub const EV_NONE: u32 = 0; +pub const EV_CURRENT: u32 = 1; +pub const EV_NUM: u32 = 2; +pub const ELFOSABI_NONE: u32 = 0; +pub const ELFOSABI_LINUX: u32 = 3; +pub const ELF_OSABI: u32 = 0; +pub const NN_GNU_PROPERTY_TYPE_0: &[u8; 4] = b"GNU\0"; +pub const NT_GNU_PROPERTY_TYPE_0: u32 = 5; +pub const NN_PRSTATUS: &[u8; 5] = b"CORE\0"; +pub const NT_PRSTATUS: u32 = 1; +pub const NN_PRFPREG: &[u8; 5] = b"CORE\0"; +pub const NT_PRFPREG: u32 = 2; +pub const NN_PRPSINFO: &[u8; 5] = b"CORE\0"; +pub const NT_PRPSINFO: u32 = 3; +pub const NN_TASKSTRUCT: &[u8; 5] = b"CORE\0"; +pub const NT_TASKSTRUCT: u32 = 4; +pub const NN_AUXV: &[u8; 5] = b"CORE\0"; +pub const NT_AUXV: u32 = 6; +pub const NN_SIGINFO: &[u8; 5] = b"CORE\0"; +pub const NT_SIGINFO: u32 = 1397311305; +pub const NN_FILE: &[u8; 5] = b"CORE\0"; +pub const NT_FILE: u32 = 1179208773; +pub const NN_PRXFPREG: &[u8; 6] = b"LINUX\0"; +pub const NT_PRXFPREG: u32 = 1189489535; +pub const NN_PPC_VMX: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_VMX: u32 = 256; +pub const NN_PPC_SPE: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_SPE: u32 = 257; +pub const NN_PPC_VSX: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_VSX: u32 = 258; +pub const NN_PPC_TAR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TAR: u32 = 259; +pub const NN_PPC_PPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_PPR: u32 = 260; +pub const NN_PPC_DSCR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_DSCR: u32 = 261; +pub const NN_PPC_EBB: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_EBB: u32 = 262; +pub const NN_PPC_PMU: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_PMU: u32 = 263; +pub const NN_PPC_TM_CGPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CGPR: u32 = 264; +pub const NN_PPC_TM_CFPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CFPR: u32 = 265; +pub const NN_PPC_TM_CVMX: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CVMX: u32 = 266; +pub const NN_PPC_TM_CVSX: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CVSX: u32 = 267; +pub const NN_PPC_TM_SPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_SPR: u32 = 268; +pub const NN_PPC_TM_CTAR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CTAR: u32 = 269; +pub const NN_PPC_TM_CPPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CPPR: u32 = 270; +pub const NN_PPC_TM_CDSCR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CDSCR: u32 = 271; +pub const NN_PPC_PKEY: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_PKEY: u32 = 272; +pub const NN_PPC_DEXCR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_DEXCR: u32 = 273; +pub const NN_PPC_HASHKEYR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_HASHKEYR: u32 = 274; +pub const NN_386_TLS: &[u8; 6] = b"LINUX\0"; +pub const NT_386_TLS: u32 = 512; +pub const NN_386_IOPERM: &[u8; 6] = b"LINUX\0"; +pub const NT_386_IOPERM: u32 = 513; +pub const NN_X86_XSTATE: &[u8; 6] = b"LINUX\0"; +pub const NT_X86_XSTATE: u32 = 514; +pub const NN_X86_SHSTK: &[u8; 6] = b"LINUX\0"; +pub const NT_X86_SHSTK: u32 = 516; +pub const NN_X86_XSAVE_LAYOUT: &[u8; 6] = b"LINUX\0"; +pub const NT_X86_XSAVE_LAYOUT: u32 = 517; +pub const NN_S390_HIGH_GPRS: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_HIGH_GPRS: u32 = 768; +pub const NN_S390_TIMER: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_TIMER: u32 = 769; +pub const NN_S390_TODCMP: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_TODCMP: u32 = 770; +pub const NN_S390_TODPREG: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_TODPREG: u32 = 771; +pub const NN_S390_CTRS: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_CTRS: u32 = 772; +pub const NN_S390_PREFIX: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_PREFIX: u32 = 773; +pub const NN_S390_LAST_BREAK: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_LAST_BREAK: u32 = 774; +pub const NN_S390_SYSTEM_CALL: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_SYSTEM_CALL: u32 = 775; +pub const NN_S390_TDB: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_TDB: u32 = 776; +pub const NN_S390_VXRS_LOW: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_VXRS_LOW: u32 = 777; +pub const NN_S390_VXRS_HIGH: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_VXRS_HIGH: u32 = 778; +pub const NN_S390_GS_CB: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_GS_CB: u32 = 779; +pub const NN_S390_GS_BC: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_GS_BC: u32 = 780; +pub const NN_S390_RI_CB: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_RI_CB: u32 = 781; +pub const NN_S390_PV_CPU_DATA: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_PV_CPU_DATA: u32 = 782; +pub const NN_ARM_VFP: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_VFP: u32 = 1024; +pub const NN_ARM_TLS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_TLS: u32 = 1025; +pub const NN_ARM_HW_BREAK: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_HW_BREAK: u32 = 1026; +pub const NN_ARM_HW_WATCH: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_HW_WATCH: u32 = 1027; +pub const NN_ARM_SYSTEM_CALL: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_SYSTEM_CALL: u32 = 1028; +pub const NN_ARM_SVE: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_SVE: u32 = 1029; +pub const NN_ARM_PAC_MASK: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_PAC_MASK: u32 = 1030; +pub const NN_ARM_PACA_KEYS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_PACA_KEYS: u32 = 1031; +pub const NN_ARM_PACG_KEYS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_PACG_KEYS: u32 = 1032; +pub const NN_ARM_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_TAGGED_ADDR_CTRL: u32 = 1033; +pub const NN_ARM_PAC_ENABLED_KEYS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_PAC_ENABLED_KEYS: u32 = 1034; +pub const NN_ARM_SSVE: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_SSVE: u32 = 1035; +pub const NN_ARM_ZA: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_ZA: u32 = 1036; +pub const NN_ARM_ZT: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_ZT: u32 = 1037; +pub const NN_ARM_FPMR: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_FPMR: u32 = 1038; +pub const NN_ARM_POE: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_POE: u32 = 1039; +pub const NN_ARM_GCS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_GCS: u32 = 1040; +pub const NN_ARC_V2: &[u8; 6] = b"LINUX\0"; +pub const NT_ARC_V2: u32 = 1536; +pub const NN_VMCOREDD: &[u8; 6] = b"LINUX\0"; +pub const NT_VMCOREDD: u32 = 1792; +pub const NN_MIPS_DSP: &[u8; 6] = b"LINUX\0"; +pub const NT_MIPS_DSP: u32 = 2048; +pub const NN_MIPS_FP_MODE: &[u8; 6] = b"LINUX\0"; +pub const NT_MIPS_FP_MODE: u32 = 2049; +pub const NN_MIPS_MSA: &[u8; 6] = b"LINUX\0"; +pub const NT_MIPS_MSA: u32 = 2050; +pub const NN_RISCV_CSR: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_CSR: u32 = 2304; +pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_VECTOR: u32 = 2305; +pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_CPUCFG: u32 = 2560; +pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_CSR: u32 = 2561; +pub const NN_LOONGARCH_LSX: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_LSX: u32 = 2562; +pub const NN_LOONGARCH_LASX: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_LASX: u32 = 2563; +pub const NN_LOONGARCH_LBT: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_LBT: u32 = 2564; +pub const NN_LOONGARCH_HW_BREAK: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_HW_BREAK: u32 = 2565; +pub const NN_LOONGARCH_HW_WATCH: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_HW_WATCH: u32 = 2566; +pub const GNU_PROPERTY_AARCH64_FEATURE_1_AND: u32 = 3221225472; +pub const GNU_PROPERTY_AARCH64_FEATURE_1_BTI: u32 = 1; +#[repr(C)] +#[derive(Copy, Clone)] +pub union __vector128__bindgen_ty_1 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1, +pub u: [__u32; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union Elf32_Dyn__bindgen_ty_1 { +pub d_val: Elf32_Sword, +pub d_ptr: Elf32_Addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union Elf64_Dyn__bindgen_ty_1 { +pub d_val: Elf64_Xword, +pub d_ptr: Elf64_Addr, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/errno.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/errno.rs new file mode 100644 index 0000000000000000000000000000000000000000..48eaf61f93450ac4c0b622351a597022885ad4bb --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/errno.rs @@ -0,0 +1,135 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EDEADLK: u32 = 35; +pub const ENAMETOOLONG: u32 = 36; +pub const ENOLCK: u32 = 37; +pub const ENOSYS: u32 = 38; +pub const ENOTEMPTY: u32 = 39; +pub const ELOOP: u32 = 40; +pub const EWOULDBLOCK: u32 = 11; +pub const ENOMSG: u32 = 42; +pub const EIDRM: u32 = 43; +pub const ECHRNG: u32 = 44; +pub const EL2NSYNC: u32 = 45; +pub const EL3HLT: u32 = 46; +pub const EL3RST: u32 = 47; +pub const ELNRNG: u32 = 48; +pub const EUNATCH: u32 = 49; +pub const ENOCSI: u32 = 50; +pub const EL2HLT: u32 = 51; +pub const EBADE: u32 = 52; +pub const EBADR: u32 = 53; +pub const EXFULL: u32 = 54; +pub const ENOANO: u32 = 55; +pub const EBADRQC: u32 = 56; +pub const EBADSLT: u32 = 57; +pub const EDEADLOCK: u32 = 35; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EMULTIHOP: u32 = 72; +pub const EDOTDOT: u32 = 73; +pub const EBADMSG: u32 = 74; +pub const EOVERFLOW: u32 = 75; +pub const ENOTUNIQ: u32 = 76; +pub const EBADFD: u32 = 77; +pub const EREMCHG: u32 = 78; +pub const ELIBACC: u32 = 79; +pub const ELIBBAD: u32 = 80; +pub const ELIBSCN: u32 = 81; +pub const ELIBMAX: u32 = 82; +pub const ELIBEXEC: u32 = 83; +pub const EILSEQ: u32 = 84; +pub const ERESTART: u32 = 85; +pub const ESTRPIPE: u32 = 86; +pub const EUSERS: u32 = 87; +pub const ENOTSOCK: u32 = 88; +pub const EDESTADDRREQ: u32 = 89; +pub const EMSGSIZE: u32 = 90; +pub const EPROTOTYPE: u32 = 91; +pub const ENOPROTOOPT: u32 = 92; +pub const EPROTONOSUPPORT: u32 = 93; +pub const ESOCKTNOSUPPORT: u32 = 94; +pub const EOPNOTSUPP: u32 = 95; +pub const EPFNOSUPPORT: u32 = 96; +pub const EAFNOSUPPORT: u32 = 97; +pub const EADDRINUSE: u32 = 98; +pub const EADDRNOTAVAIL: u32 = 99; +pub const ENETDOWN: u32 = 100; +pub const ENETUNREACH: u32 = 101; +pub const ENETRESET: u32 = 102; +pub const ECONNABORTED: u32 = 103; +pub const ECONNRESET: u32 = 104; +pub const ENOBUFS: u32 = 105; +pub const EISCONN: u32 = 106; +pub const ENOTCONN: u32 = 107; +pub const ESHUTDOWN: u32 = 108; +pub const ETOOMANYREFS: u32 = 109; +pub const ETIMEDOUT: u32 = 110; +pub const ECONNREFUSED: u32 = 111; +pub const EHOSTDOWN: u32 = 112; +pub const EHOSTUNREACH: u32 = 113; +pub const EALREADY: u32 = 114; +pub const EINPROGRESS: u32 = 115; +pub const ESTALE: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EDQUOT: u32 = 122; +pub const ENOMEDIUM: u32 = 123; +pub const EMEDIUMTYPE: u32 = 124; +pub const ECANCELED: u32 = 125; +pub const ENOKEY: u32 = 126; +pub const EKEYEXPIRED: u32 = 127; +pub const EKEYREVOKED: u32 = 128; +pub const EKEYREJECTED: u32 = 129; +pub const EOWNERDEAD: u32 = 130; +pub const ENOTRECOVERABLE: u32 = 131; +pub const ERFKILL: u32 = 132; +pub const EHWPOISON: u32 = 133; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/general.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/general.rs new file mode 100644 index 0000000000000000000000000000000000000000..118715ebc2c3dda3eb667a4ce3ea3beb8c0a0c2d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/general.rs @@ -0,0 +1,3248 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type addr_t = crate::ctypes::c_ulong; +pub type saddr_t = crate::ctypes::c_long; +pub type __kernel_sighandler_t = ::core::option::Option; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_ulong; +pub type __kernel_ssize_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_ino_t = crate::ctypes::c_uint; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_sigset_t = crate::ctypes::c_ulong; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type cap_user_header_t = *mut __user_cap_header_struct; +pub type cap_user_data_t = *mut __user_cap_data_struct; +pub type __kernel_rwf_t = crate::ctypes::c_int; +pub type sigset_t = crate::ctypes::c_ulong; +pub type __signalfn_t = ::core::option::Option; +pub type __sighandler_t = __signalfn_t; +pub type __restorefn_t = ::core::option::Option; +pub type __sigrestore_t = __restorefn_t; +pub type stack_t = sigaltstack; +pub type sigval_t = sigval; +pub type siginfo_t = siginfo; +pub type sigevent_t = sigevent; +pub type cc_t = crate::ctypes::c_uchar; +pub type speed_t = crate::ctypes::c_uint; +pub type tcflag_t = crate::ctypes::c_uint; +pub type fsid_t = __kernel_fsid_t; +pub type __fsword_t = __u32; +#[repr(C)] +#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] +pub struct __BindgenBitfieldUnit { +storage: Storage, +} +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C, packed(4))] +#[derive(Copy, Clone)] +pub struct __vector128 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __vector128__bindgen_ty_1__bindgen_ty_1 { +pub high: __u64, +pub low: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_fd_set { +pub fds_bits: [crate::ctypes::c_ulong; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_fsid_t { +pub val: [crate::ctypes::c_int; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __user_cap_header_struct { +pub version: __u32, +pub pid: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __user_cap_data_struct { +pub effective: __u32, +pub permitted: __u32, +pub inheritable: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vfs_cap_data { +pub magic_etc: __le32, +pub data: [vfs_cap_data__bindgen_ty_1; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vfs_cap_data__bindgen_ty_1 { +pub permitted: __le32, +pub inheritable: __le32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vfs_ns_cap_data { +pub magic_etc: __le32, +pub data: [vfs_ns_cap_data__bindgen_ty_1; 2usize], +pub rootid: __le32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vfs_ns_cap_data__bindgen_ty_1 { +pub permitted: __le32, +pub inheritable: __le32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct f_owner_ex { +pub type_: crate::ctypes::c_int, +pub pid: __kernel_pid_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct flock { +pub l_type: crate::ctypes::c_short, +pub l_whence: crate::ctypes::c_short, +pub l_start: __kernel_off_t, +pub l_len: __kernel_off_t, +pub l_pid: __kernel_pid_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct flock64 { +pub l_type: crate::ctypes::c_short, +pub l_whence: crate::ctypes::c_short, +pub l_start: __kernel_loff_t, +pub l_len: __kernel_loff_t, +pub l_pid: __kernel_pid_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct open_how { +pub flags: __u64, +pub mode: __u64, +pub resolve: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct epoll_event { +pub events: __poll_t, +pub data: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct epoll_params { +pub busy_poll_usecs: __u32, +pub busy_poll_budget: __u16, +pub prefer_busy_poll: __u8, +pub __pad: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v1 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub master_key_descriptor: [__u8; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_key { +pub mode: __u32, +pub raw: [__u8; 64usize], +pub size: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v2 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub log2_data_unit_size: __u8, +pub __reserved: [__u8; 3usize], +pub master_key_identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_policy_ex_arg { +pub policy_size: __u64, +pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_key_specifier { +pub type_: __u32, +pub __reserved: __u32, +pub u: fscrypt_key_specifier__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct fscrypt_provisioning_key_payload { +pub type_: __u32, +pub flags: __u32, +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +pub struct fscrypt_add_key_arg { +pub key_spec: fscrypt_key_specifier, +pub raw_size: __u32, +pub key_id: __u32, +pub flags: __u32, +pub __reserved: [__u32; 7usize], +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_remove_key_arg { +pub key_spec: fscrypt_key_specifier, +pub removal_status_flags: __u32, +pub __reserved: [__u32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_key_status_arg { +pub key_spec: fscrypt_key_specifier, +pub __reserved: [__u32; 6usize], +pub status: __u32, +pub status_flags: __u32, +pub user_count: __u32, +pub __out_reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mount_attr { +pub attr_set: __u64, +pub attr_clr: __u64, +pub propagation: __u64, +pub userns_fd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct statmount { +pub size: __u32, +pub mnt_opts: __u32, +pub mask: __u64, +pub sb_dev_major: __u32, +pub sb_dev_minor: __u32, +pub sb_magic: __u64, +pub sb_flags: __u32, +pub fs_type: __u32, +pub mnt_id: __u64, +pub mnt_parent_id: __u64, +pub mnt_id_old: __u32, +pub mnt_parent_id_old: __u32, +pub mnt_attr: __u64, +pub mnt_propagation: __u64, +pub mnt_peer_group: __u64, +pub mnt_master: __u64, +pub propagate_from: __u64, +pub mnt_root: __u32, +pub mnt_point: __u32, +pub mnt_ns_id: __u64, +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub supported_mask: __u64, +pub mnt_uidmap_num: __u32, +pub mnt_uidmap: __u32, +pub mnt_gidmap_num: __u32, +pub mnt_gidmap: __u32, +pub __spare2: [__u64; 43usize], +pub str_: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mnt_id_req { +pub size: __u32, +pub spare: __u32, +pub mnt_id: __u64, +pub param: __u64, +pub mnt_ns_id: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_clone_range { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fstrim_range { +pub start: __u64, +pub len: __u64, +pub minlen: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsuuid2 { +pub len: __u8, +pub uuid: [__u8; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fs_sysfs_path { +pub len: __u8, +pub name: [__u8; 128usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_dedupe_range_info { +pub dest_fd: __s64, +pub dest_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct file_dedupe_range { +pub src_offset: __u64, +pub src_length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct files_stat_struct { +pub nr_files: crate::ctypes::c_ulong, +pub nr_free_files: crate::ctypes::c_ulong, +pub max_files: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct inodes_stat_t { +pub nr_inodes: crate::ctypes::c_long, +pub nr_unused: crate::ctypes::c_long, +pub dummy: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsxattr { +pub fsx_xflags: __u32, +pub fsx_extsize: __u32, +pub fsx_nextents: __u32, +pub fsx_projid: __u32, +pub fsx_cowextsize: __u32, +pub fsx_pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct page_region { +pub start: __u64, +pub end: __u64, +pub categories: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pm_scan_arg { +pub size: __u64, +pub flags: __u64, +pub start: __u64, +pub end: __u64, +pub walk_end: __u64, +pub vec: __u64, +pub vec_len: __u64, +pub max_pages: __u64, +pub category_inverted: __u64, +pub category_mask: __u64, +pub category_anyof_mask: __u64, +pub return_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct procmap_query { +pub size: __u64, +pub query_flags: __u64, +pub query_addr: __u64, +pub vma_start: __u64, +pub vma_end: __u64, +pub vma_flags: __u64, +pub vma_page_size: __u64, +pub vma_offset: __u64, +pub inode: __u64, +pub dev_major: __u32, +pub dev_minor: __u32, +pub vma_name_size: __u32, +pub build_id_size: __u32, +pub vma_name_addr: __u64, +pub build_id_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct futex_waitv { +pub val: __u64, +pub uaddr: __u64, +pub flags: __u32, +pub __reserved: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct robust_list { +pub next: *mut robust_list, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct robust_list_head { +pub list: robust_list, +pub futex_offset: crate::ctypes::c_long, +pub list_op_pending: *mut robust_list, +} +#[repr(C)] +#[derive(Debug)] +pub struct inotify_event { +pub wd: __s32, +pub mask: __u32, +pub cookie: __u32, +pub len: __u32, +pub name: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cachestat_range { +pub off: __u64, +pub len: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cachestat { +pub nr_cache: __u64, +pub nr_dirty: __u64, +pub nr_writeback: __u64, +pub nr_evicted: __u64, +pub nr_recently_evicted: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pollfd { +pub fd: crate::ctypes::c_int, +pub events: crate::ctypes::c_short, +pub revents: crate::ctypes::c_short, +} +#[repr(C)] +#[derive(Debug)] +pub struct rand_pool_info { +pub entropy_count: crate::ctypes::c_int, +pub buf_size: crate::ctypes::c_int, +pub buf: __IncompleteArrayField<__u32>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vgetrandom_opaque_params { +pub size_of_opaque_state: __u32, +pub mmap_prot: __u32, +pub mmap_flags: __u32, +pub reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_timespec { +pub tv_sec: __kernel_time64_t, +pub tv_nsec: crate::ctypes::c_longlong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_itimerspec { +pub it_interval: __kernel_timespec, +pub it_value: __kernel_timespec, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_long_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timespec { +pub tv_sec: __kernel_old_time_t, +pub tv_nsec: crate::ctypes::c_long, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_itimerval { +pub it_interval: __kernel_old_timeval, +pub it_value: __kernel_old_timeval, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sock_timeval { +pub tv_sec: __s64, +pub tv_usec: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rusage { +pub ru_utime: __kernel_old_timeval, +pub ru_stime: __kernel_old_timeval, +pub ru_maxrss: __kernel_long_t, +pub ru_ixrss: __kernel_long_t, +pub ru_idrss: __kernel_long_t, +pub ru_isrss: __kernel_long_t, +pub ru_minflt: __kernel_long_t, +pub ru_majflt: __kernel_long_t, +pub ru_nswap: __kernel_long_t, +pub ru_inblock: __kernel_long_t, +pub ru_oublock: __kernel_long_t, +pub ru_msgsnd: __kernel_long_t, +pub ru_msgrcv: __kernel_long_t, +pub ru_nsignals: __kernel_long_t, +pub ru_nvcsw: __kernel_long_t, +pub ru_nivcsw: __kernel_long_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rlimit { +pub rlim_cur: __kernel_ulong_t, +pub rlim_max: __kernel_ulong_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rlimit64 { +pub rlim_cur: __u64, +pub rlim_max: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct clone_args { +pub flags: __u64, +pub pidfd: __u64, +pub child_tid: __u64, +pub parent_tid: __u64, +pub exit_signal: __u64, +pub stack: __u64, +pub stack_size: __u64, +pub tls: __u64, +pub set_tid: __u64, +pub set_tid_size: __u64, +pub cgroup: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timespec { +pub tv_sec: __kernel_old_time_t, +pub tv_nsec: crate::ctypes::c_long, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timeval { +pub tv_sec: __kernel_old_time_t, +pub tv_usec: __kernel_suseconds_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct itimerspec { +pub it_interval: timespec, +pub it_value: timespec, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct itimerval { +pub it_interval: timeval, +pub it_value: timeval, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timezone { +pub tz_minuteswest: crate::ctypes::c_int, +pub tz_dsttime: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pt_regs { +_unused: [u8; 0], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sigaction { +pub _u: sigaction__bindgen_ty_1, +pub sa_flags: crate::ctypes::c_ulong, +pub sa_restorer: ::core::option::Option, +pub sa_mask: sigset_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigaltstack { +pub ss_sp: *mut crate::ctypes::c_void, +pub ss_flags: crate::ctypes::c_int, +pub ss_size: __kernel_size_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_1 { +pub _pid: __kernel_pid_t, +pub _uid: __kernel_uid32_t, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __sifields__bindgen_ty_2 { +pub _tid: __kernel_timer_t, +pub _overrun: crate::ctypes::c_int, +pub _sigval: sigval_t, +pub _sys_private: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __sifields__bindgen_ty_3 { +pub _pid: __kernel_pid_t, +pub _uid: __kernel_uid32_t, +pub _sigval: sigval_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_4 { +pub _pid: __kernel_pid_t, +pub _uid: __kernel_uid32_t, +pub _status: crate::ctypes::c_int, +pub _utime: __kernel_clock_t, +pub _stime: __kernel_clock_t, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __sifields__bindgen_ty_5 { +pub _addr: *mut crate::ctypes::c_void, +pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { +pub _dummy_bnd: [crate::ctypes::c_char; 8usize], +pub _lower: *mut crate::ctypes::c_void, +pub _upper: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { +pub _dummy_pkey: [crate::ctypes::c_char; 8usize], +pub _pkey: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { +pub _data: crate::ctypes::c_ulong, +pub _type: __u32, +pub _flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_6 { +pub _band: crate::ctypes::c_long, +pub _fd: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_7 { +pub _call_addr: *mut crate::ctypes::c_void, +pub _syscall: crate::ctypes::c_int, +pub _arch: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct siginfo { +pub __bindgen_anon_1: siginfo__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { +pub si_signo: crate::ctypes::c_int, +pub si_errno: crate::ctypes::c_int, +pub si_code: crate::ctypes::c_int, +pub _sifields: __sifields, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sigevent { +pub sigev_value: sigval_t, +pub sigev_signo: crate::ctypes::c_int, +pub sigev_notify: crate::ctypes::c_int, +pub _sigev_un: sigevent__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { +pub _function: ::core::option::Option, +pub _attribute: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statx_timestamp { +pub tv_sec: __s64, +pub tv_nsec: __u32, +pub __reserved: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statx { +pub stx_mask: __u32, +pub stx_blksize: __u32, +pub stx_attributes: __u64, +pub stx_nlink: __u32, +pub stx_uid: __u32, +pub stx_gid: __u32, +pub stx_mode: __u16, +pub __spare0: [__u16; 1usize], +pub stx_ino: __u64, +pub stx_size: __u64, +pub stx_blocks: __u64, +pub stx_attributes_mask: __u64, +pub stx_atime: statx_timestamp, +pub stx_btime: statx_timestamp, +pub stx_ctime: statx_timestamp, +pub stx_mtime: statx_timestamp, +pub stx_rdev_major: __u32, +pub stx_rdev_minor: __u32, +pub stx_dev_major: __u32, +pub stx_dev_minor: __u32, +pub stx_mnt_id: __u64, +pub stx_dio_mem_align: __u32, +pub stx_dio_offset_align: __u32, +pub stx_subvol: __u64, +pub stx_atomic_write_unit_min: __u32, +pub stx_atomic_write_unit_max: __u32, +pub stx_atomic_write_segments_max: __u32, +pub stx_dio_read_offset_align: __u32, +pub stx_atomic_write_unit_max_opt: __u32, +pub __spare2: [__u32; 1usize], +pub __spare3: [__u64; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct termios { +pub c_iflag: tcflag_t, +pub c_oflag: tcflag_t, +pub c_cflag: tcflag_t, +pub c_lflag: tcflag_t, +pub c_line: cc_t, +pub c_cc: [cc_t; 19usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct termios2 { +pub c_iflag: tcflag_t, +pub c_oflag: tcflag_t, +pub c_cflag: tcflag_t, +pub c_lflag: tcflag_t, +pub c_line: cc_t, +pub c_cc: [cc_t; 19usize], +pub c_ispeed: speed_t, +pub c_ospeed: speed_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ktermios { +pub c_iflag: tcflag_t, +pub c_oflag: tcflag_t, +pub c_cflag: tcflag_t, +pub c_lflag: tcflag_t, +pub c_line: cc_t, +pub c_cc: [cc_t; 19usize], +pub c_ispeed: speed_t, +pub c_ospeed: speed_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct winsize { +pub ws_row: crate::ctypes::c_ushort, +pub ws_col: crate::ctypes::c_ushort, +pub ws_xpixel: crate::ctypes::c_ushort, +pub ws_ypixel: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct termio { +pub c_iflag: crate::ctypes::c_ushort, +pub c_oflag: crate::ctypes::c_ushort, +pub c_cflag: crate::ctypes::c_ushort, +pub c_lflag: crate::ctypes::c_ushort, +pub c_line: crate::ctypes::c_uchar, +pub c_cc: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iovec { +pub iov_base: *mut crate::ctypes::c_void, +pub iov_len: __kernel_size_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dmabuf_cmsg { +pub frag_offset: __u64, +pub frag_size: __u32, +pub frag_token: __u32, +pub dmabuf_id: __u32, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dmabuf_token { +pub token_start: __u32, +pub token_count: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xattr_args { +pub value: __u64, +pub size: __u32, +pub flags: __u32, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct uffd_msg { +pub event: __u8, +pub reserved1: __u8, +pub reserved2: __u16, +pub reserved3: __u32, +pub arg: uffd_msg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { +pub flags: __u64, +pub address: __u64, +pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { +pub ufd: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { +pub from: __u64, +pub to: __u64, +pub len: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { +pub start: __u64, +pub end: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { +pub reserved1: __u64, +pub reserved2: __u64, +pub reserved3: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_api { +pub api: __u64, +pub features: __u64, +pub ioctls: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_range { +pub start: __u64, +pub len: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_register { +pub range: uffdio_range, +pub mode: __u64, +pub ioctls: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_copy { +pub dst: __u64, +pub src: __u64, +pub len: __u64, +pub mode: __u64, +pub copy: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_zeropage { +pub range: uffdio_range, +pub mode: __u64, +pub zeropage: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_writeprotect { +pub range: uffdio_range, +pub mode: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_continue { +pub range: uffdio_range, +pub mode: __u64, +pub mapped: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_poison { +pub range: uffdio_range, +pub mode: __u64, +pub updated: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_move { +pub dst: __u64, +pub src: __u64, +pub len: __u64, +pub mode: __u64, +pub move_: __s64, +} +#[repr(C)] +#[derive(Debug)] +pub struct linux_dirent64 { +pub d_ino: crate::ctypes::c_ulong, +pub d_off: crate::ctypes::c_long, +pub d_reclen: __u16, +pub d_type: __u8, +pub d_name: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stat { +pub st_dev: crate::ctypes::c_ulong, +pub st_ino: crate::ctypes::c_ulong, +pub st_nlink: crate::ctypes::c_ulong, +pub st_mode: crate::ctypes::c_uint, +pub st_uid: crate::ctypes::c_uint, +pub st_gid: crate::ctypes::c_uint, +pub __pad1: crate::ctypes::c_uint, +pub st_rdev: crate::ctypes::c_ulong, +pub st_size: crate::ctypes::c_ulong, +pub st_atime: crate::ctypes::c_ulong, +pub st_atime_nsec: crate::ctypes::c_ulong, +pub st_mtime: crate::ctypes::c_ulong, +pub st_mtime_nsec: crate::ctypes::c_ulong, +pub st_ctime: crate::ctypes::c_ulong, +pub st_ctime_nsec: crate::ctypes::c_ulong, +pub st_blksize: crate::ctypes::c_ulong, +pub st_blocks: crate::ctypes::c_long, +pub __unused: [crate::ctypes::c_ulong; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statfs { +pub f_type: crate::ctypes::c_uint, +pub f_bsize: crate::ctypes::c_uint, +pub f_blocks: crate::ctypes::c_ulong, +pub f_bfree: crate::ctypes::c_ulong, +pub f_bavail: crate::ctypes::c_ulong, +pub f_files: crate::ctypes::c_ulong, +pub f_ffree: crate::ctypes::c_ulong, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: crate::ctypes::c_uint, +pub f_frsize: crate::ctypes::c_uint, +pub f_flags: crate::ctypes::c_uint, +pub f_spare: [crate::ctypes::c_uint; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statfs64 { +pub f_type: crate::ctypes::c_uint, +pub f_bsize: crate::ctypes::c_uint, +pub f_blocks: crate::ctypes::c_ulonglong, +pub f_bfree: crate::ctypes::c_ulonglong, +pub f_bavail: crate::ctypes::c_ulonglong, +pub f_files: crate::ctypes::c_ulonglong, +pub f_ffree: crate::ctypes::c_ulonglong, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: crate::ctypes::c_uint, +pub f_frsize: crate::ctypes::c_uint, +pub f_flags: crate::ctypes::c_uint, +pub f_spare: [crate::ctypes::c_uint; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_desc { +pub entry_number: crate::ctypes::c_uint, +pub base_addr: crate::ctypes::c_uint, +pub limit: crate::ctypes::c_uint, +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, +pub __bindgen_padding_0: [u8; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct kernel_sigset_t { +pub sig: [crate::ctypes::c_ulong; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct kernel_sigaction { +pub sa_handler_kernel: __kernel_sighandler_t, +pub sa_flags: crate::ctypes::c_ulong, +pub sa_restorer: __sigrestore_t, +pub sa_mask: kernel_sigset_t, +} +pub const LINUX_VERSION_CODE: u32 = 397312; +pub const LINUX_VERSION_MAJOR: u32 = 6; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 16; +pub const LINUX_VERSION_SUBLEVEL: u32 = 0; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const __FD_SETSIZE: u32 = 1024; +pub const _LINUX_CAPABILITY_VERSION_1: u32 = 429392688; +pub const _LINUX_CAPABILITY_U32S_1: u32 = 1; +pub const _LINUX_CAPABILITY_VERSION_2: u32 = 537333798; +pub const _LINUX_CAPABILITY_U32S_2: u32 = 2; +pub const _LINUX_CAPABILITY_VERSION_3: u32 = 537396514; +pub const _LINUX_CAPABILITY_U32S_3: u32 = 2; +pub const VFS_CAP_REVISION_MASK: u32 = 4278190080; +pub const VFS_CAP_REVISION_SHIFT: u32 = 24; +pub const VFS_CAP_FLAGS_MASK: i64 = -4278190081; +pub const VFS_CAP_FLAGS_EFFECTIVE: u32 = 1; +pub const VFS_CAP_REVISION_1: u32 = 16777216; +pub const VFS_CAP_U32_1: u32 = 1; +pub const VFS_CAP_REVISION_2: u32 = 33554432; +pub const VFS_CAP_U32_2: u32 = 2; +pub const VFS_CAP_REVISION_3: u32 = 50331648; +pub const VFS_CAP_U32_3: u32 = 2; +pub const VFS_CAP_U32: u32 = 2; +pub const VFS_CAP_REVISION: u32 = 50331648; +pub const _LINUX_CAPABILITY_VERSION: u32 = 429392688; +pub const _LINUX_CAPABILITY_U32S: u32 = 1; +pub const CAP_CHOWN: u32 = 0; +pub const CAP_DAC_OVERRIDE: u32 = 1; +pub const CAP_DAC_READ_SEARCH: u32 = 2; +pub const CAP_FOWNER: u32 = 3; +pub const CAP_FSETID: u32 = 4; +pub const CAP_KILL: u32 = 5; +pub const CAP_SETGID: u32 = 6; +pub const CAP_SETUID: u32 = 7; +pub const CAP_SETPCAP: u32 = 8; +pub const CAP_LINUX_IMMUTABLE: u32 = 9; +pub const CAP_NET_BIND_SERVICE: u32 = 10; +pub const CAP_NET_BROADCAST: u32 = 11; +pub const CAP_NET_ADMIN: u32 = 12; +pub const CAP_NET_RAW: u32 = 13; +pub const CAP_IPC_LOCK: u32 = 14; +pub const CAP_IPC_OWNER: u32 = 15; +pub const CAP_SYS_MODULE: u32 = 16; +pub const CAP_SYS_RAWIO: u32 = 17; +pub const CAP_SYS_CHROOT: u32 = 18; +pub const CAP_SYS_PTRACE: u32 = 19; +pub const CAP_SYS_PACCT: u32 = 20; +pub const CAP_SYS_ADMIN: u32 = 21; +pub const CAP_SYS_BOOT: u32 = 22; +pub const CAP_SYS_NICE: u32 = 23; +pub const CAP_SYS_RESOURCE: u32 = 24; +pub const CAP_SYS_TIME: u32 = 25; +pub const CAP_SYS_TTY_CONFIG: u32 = 26; +pub const CAP_MKNOD: u32 = 27; +pub const CAP_LEASE: u32 = 28; +pub const CAP_AUDIT_WRITE: u32 = 29; +pub const CAP_AUDIT_CONTROL: u32 = 30; +pub const CAP_SETFCAP: u32 = 31; +pub const CAP_MAC_OVERRIDE: u32 = 32; +pub const CAP_MAC_ADMIN: u32 = 33; +pub const CAP_SYSLOG: u32 = 34; +pub const CAP_WAKE_ALARM: u32 = 35; +pub const CAP_BLOCK_SUSPEND: u32 = 36; +pub const CAP_AUDIT_READ: u32 = 37; +pub const CAP_PERFMON: u32 = 38; +pub const CAP_BPF: u32 = 39; +pub const CAP_CHECKPOINT_RESTORE: u32 = 40; +pub const CAP_LAST_CAP: u32 = 40; +pub const O_ACCMODE: u32 = 3; +pub const O_RDONLY: u32 = 0; +pub const O_WRONLY: u32 = 1; +pub const O_RDWR: u32 = 2; +pub const O_CREAT: u32 = 64; +pub const O_EXCL: u32 = 128; +pub const O_NOCTTY: u32 = 256; +pub const O_TRUNC: u32 = 512; +pub const O_APPEND: u32 = 1024; +pub const O_NONBLOCK: u32 = 2048; +pub const O_DSYNC: u32 = 4096; +pub const FASYNC: u32 = 8192; +pub const O_DIRECT: u32 = 16384; +pub const O_LARGEFILE: u32 = 32768; +pub const O_DIRECTORY: u32 = 65536; +pub const O_NOFOLLOW: u32 = 131072; +pub const O_NOATIME: u32 = 262144; +pub const O_CLOEXEC: u32 = 524288; +pub const __O_SYNC: u32 = 1048576; +pub const O_SYNC: u32 = 1052672; +pub const O_PATH: u32 = 2097152; +pub const __O_TMPFILE: u32 = 4194304; +pub const O_TMPFILE: u32 = 4259840; +pub const O_NDELAY: u32 = 2048; +pub const F_DUPFD: u32 = 0; +pub const F_GETFD: u32 = 1; +pub const F_SETFD: u32 = 2; +pub const F_GETFL: u32 = 3; +pub const F_SETFL: u32 = 4; +pub const F_GETLK: u32 = 5; +pub const F_SETLK: u32 = 6; +pub const F_SETLKW: u32 = 7; +pub const F_SETOWN: u32 = 8; +pub const F_GETOWN: u32 = 9; +pub const F_SETSIG: u32 = 10; +pub const F_GETSIG: u32 = 11; +pub const F_SETOWN_EX: u32 = 15; +pub const F_GETOWN_EX: u32 = 16; +pub const F_GETOWNER_UIDS: u32 = 17; +pub const F_OFD_GETLK: u32 = 36; +pub const F_OFD_SETLK: u32 = 37; +pub const F_OFD_SETLKW: u32 = 38; +pub const F_OWNER_TID: u32 = 0; +pub const F_OWNER_PID: u32 = 1; +pub const F_OWNER_PGRP: u32 = 2; +pub const FD_CLOEXEC: u32 = 1; +pub const F_RDLCK: u32 = 0; +pub const F_WRLCK: u32 = 1; +pub const F_UNLCK: u32 = 2; +pub const F_EXLCK: u32 = 4; +pub const F_SHLCK: u32 = 8; +pub const LOCK_SH: u32 = 1; +pub const LOCK_EX: u32 = 2; +pub const LOCK_NB: u32 = 4; +pub const LOCK_UN: u32 = 8; +pub const LOCK_MAND: u32 = 32; +pub const LOCK_READ: u32 = 64; +pub const LOCK_WRITE: u32 = 128; +pub const LOCK_RW: u32 = 192; +pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; +pub const RESOLVE_NO_XDEV: u32 = 1; +pub const RESOLVE_NO_MAGICLINKS: u32 = 2; +pub const RESOLVE_NO_SYMLINKS: u32 = 4; +pub const RESOLVE_BENEATH: u32 = 8; +pub const RESOLVE_IN_ROOT: u32 = 16; +pub const RESOLVE_CACHED: u32 = 32; +pub const F_SETLEASE: u32 = 1024; +pub const F_GETLEASE: u32 = 1025; +pub const F_NOTIFY: u32 = 1026; +pub const F_DUPFD_QUERY: u32 = 1027; +pub const F_CREATED_QUERY: u32 = 1028; +pub const F_CANCELLK: u32 = 1029; +pub const F_DUPFD_CLOEXEC: u32 = 1030; +pub const F_SETPIPE_SZ: u32 = 1031; +pub const F_GETPIPE_SZ: u32 = 1032; +pub const F_ADD_SEALS: u32 = 1033; +pub const F_GET_SEALS: u32 = 1034; +pub const F_SEAL_SEAL: u32 = 1; +pub const F_SEAL_SHRINK: u32 = 2; +pub const F_SEAL_GROW: u32 = 4; +pub const F_SEAL_WRITE: u32 = 8; +pub const F_SEAL_FUTURE_WRITE: u32 = 16; +pub const F_SEAL_EXEC: u32 = 32; +pub const F_GET_RW_HINT: u32 = 1035; +pub const F_SET_RW_HINT: u32 = 1036; +pub const F_GET_FILE_RW_HINT: u32 = 1037; +pub const F_SET_FILE_RW_HINT: u32 = 1038; +pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; +pub const RWH_WRITE_LIFE_NONE: u32 = 1; +pub const RWH_WRITE_LIFE_SHORT: u32 = 2; +pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; +pub const RWH_WRITE_LIFE_LONG: u32 = 4; +pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; +pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const DN_ACCESS: u32 = 1; +pub const DN_MODIFY: u32 = 2; +pub const DN_CREATE: u32 = 4; +pub const DN_DELETE: u32 = 8; +pub const DN_RENAME: u32 = 16; +pub const DN_ATTRIB: u32 = 32; +pub const DN_MULTISHOT: u32 = 2147483648; +pub const AT_FDCWD: i32 = -100; +pub const AT_SYMLINK_NOFOLLOW: u32 = 256; +pub const AT_SYMLINK_FOLLOW: u32 = 1024; +pub const AT_NO_AUTOMOUNT: u32 = 2048; +pub const AT_EMPTY_PATH: u32 = 4096; +pub const AT_STATX_SYNC_TYPE: u32 = 24576; +pub const AT_STATX_SYNC_AS_STAT: u32 = 0; +pub const AT_STATX_FORCE_SYNC: u32 = 8192; +pub const AT_STATX_DONT_SYNC: u32 = 16384; +pub const AT_RECURSIVE: u32 = 32768; +pub const AT_RENAME_NOREPLACE: u32 = 1; +pub const AT_RENAME_EXCHANGE: u32 = 2; +pub const AT_RENAME_WHITEOUT: u32 = 4; +pub const AT_EACCESS: u32 = 512; +pub const AT_REMOVEDIR: u32 = 512; +pub const AT_HANDLE_FID: u32 = 512; +pub const AT_HANDLE_MNT_ID_UNIQUE: u32 = 1; +pub const AT_HANDLE_CONNECTABLE: u32 = 2; +pub const AT_EXECVE_CHECK: u32 = 65536; +pub const EPOLL_CLOEXEC: u32 = 524288; +pub const EPOLL_CTL_ADD: u32 = 1; +pub const EPOLL_CTL_DEL: u32 = 2; +pub const EPOLL_CTL_MOD: u32 = 3; +pub const EPOLL_IOC_TYPE: u32 = 138; +pub const POSIX_FADV_NORMAL: u32 = 0; +pub const POSIX_FADV_RANDOM: u32 = 1; +pub const POSIX_FADV_SEQUENTIAL: u32 = 2; +pub const POSIX_FADV_WILLNEED: u32 = 3; +pub const POSIX_FADV_DONTNEED: u32 = 6; +pub const POSIX_FADV_NOREUSE: u32 = 7; +pub const FALLOC_FL_ALLOCATE_RANGE: u32 = 0; +pub const FALLOC_FL_KEEP_SIZE: u32 = 1; +pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; +pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; +pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; +pub const FALLOC_FL_ZERO_RANGE: u32 = 16; +pub const FALLOC_FL_INSERT_RANGE: u32 = 32; +pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; +pub const NR_OPEN: u32 = 1024; +pub const NGROUPS_MAX: u32 = 65536; +pub const ARG_MAX: u32 = 131072; +pub const LINK_MAX: u32 = 127; +pub const MAX_CANON: u32 = 255; +pub const MAX_INPUT: u32 = 255; +pub const NAME_MAX: u32 = 255; +pub const PATH_MAX: u32 = 4096; +pub const PIPE_BUF: u32 = 4096; +pub const XATTR_NAME_MAX: u32 = 255; +pub const XATTR_SIZE_MAX: u32 = 65536; +pub const XATTR_LIST_MAX: u32 = 65536; +pub const RTSIG_MAX: u32 = 32; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_SIZEBITS: u32 = 14; +pub const _IOC_DIRBITS: u32 = 2; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 16383; +pub const _IOC_DIRMASK: u32 = 3; +pub const _IOC_NRSHIFT: u32 = 0; +pub const _IOC_TYPESHIFT: u32 = 8; +pub const _IOC_SIZESHIFT: u32 = 16; +pub const _IOC_DIRSHIFT: u32 = 30; +pub const _IOC_NONE: u32 = 0; +pub const _IOC_WRITE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const IOC_IN: u32 = 1073741824; +pub const IOC_OUT: u32 = 2147483648; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 1073676288; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; +pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; +pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; +pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; +pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; +pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; +pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; +pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; +pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; +pub const FSCRYPT_POLICY_V1: u32 = 0; +pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; +pub const FSCRYPT_POLICY_V2: u32 = 2; +pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; +pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; +pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; +pub const FSCRYPT_ADD_KEY_FLAG_HW_WRAPPED: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; +pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; +pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; +pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; +pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; +pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FS_POLICY_FLAGS_VALID: u32 = 7; +pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; +pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; +pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; +pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; +pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; +pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; +pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; +pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; +pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FS_MAX_KEY_SIZE: u32 = 64; +pub const MS_RDONLY: u32 = 1; +pub const MS_NOSUID: u32 = 2; +pub const MS_NODEV: u32 = 4; +pub const MS_NOEXEC: u32 = 8; +pub const MS_SYNCHRONOUS: u32 = 16; +pub const MS_REMOUNT: u32 = 32; +pub const MS_MANDLOCK: u32 = 64; +pub const MS_DIRSYNC: u32 = 128; +pub const MS_NOSYMFOLLOW: u32 = 256; +pub const MS_NOATIME: u32 = 1024; +pub const MS_NODIRATIME: u32 = 2048; +pub const MS_BIND: u32 = 4096; +pub const MS_MOVE: u32 = 8192; +pub const MS_REC: u32 = 16384; +pub const MS_VERBOSE: u32 = 32768; +pub const MS_SILENT: u32 = 32768; +pub const MS_POSIXACL: u32 = 65536; +pub const MS_UNBINDABLE: u32 = 131072; +pub const MS_PRIVATE: u32 = 262144; +pub const MS_SLAVE: u32 = 524288; +pub const MS_SHARED: u32 = 1048576; +pub const MS_RELATIME: u32 = 2097152; +pub const MS_KERNMOUNT: u32 = 4194304; +pub const MS_I_VERSION: u32 = 8388608; +pub const MS_STRICTATIME: u32 = 16777216; +pub const MS_LAZYTIME: u32 = 33554432; +pub const MS_SUBMOUNT: u32 = 67108864; +pub const MS_NOREMOTELOCK: u32 = 134217728; +pub const MS_NOSEC: u32 = 268435456; +pub const MS_BORN: u32 = 536870912; +pub const MS_ACTIVE: u32 = 1073741824; +pub const MS_NOUSER: u32 = 2147483648; +pub const MS_RMT_MASK: u32 = 41943121; +pub const MS_MGC_VAL: u32 = 3236757504; +pub const MS_MGC_MSK: u32 = 4294901760; +pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_CLOEXEC: u32 = 524288; +pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; +pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; +pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; +pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; +pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; +pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; +pub const MOVE_MOUNT_SET_GROUP: u32 = 256; +pub const MOVE_MOUNT_BENEATH: u32 = 512; +pub const MOVE_MOUNT__MASK: u32 = 887; +pub const FSOPEN_CLOEXEC: u32 = 1; +pub const FSPICK_CLOEXEC: u32 = 1; +pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; +pub const FSPICK_NO_AUTOMOUNT: u32 = 4; +pub const FSPICK_EMPTY_PATH: u32 = 8; +pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const MOUNT_ATTR_RDONLY: u32 = 1; +pub const MOUNT_ATTR_NOSUID: u32 = 2; +pub const MOUNT_ATTR_NODEV: u32 = 4; +pub const MOUNT_ATTR_NOEXEC: u32 = 8; +pub const MOUNT_ATTR__ATIME: u32 = 112; +pub const MOUNT_ATTR_RELATIME: u32 = 0; +pub const MOUNT_ATTR_NOATIME: u32 = 16; +pub const MOUNT_ATTR_STRICTATIME: u32 = 32; +pub const MOUNT_ATTR_NODIRATIME: u32 = 128; +pub const MOUNT_ATTR_IDMAP: u32 = 1048576; +pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; +pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; +pub const MNT_ID_REQ_SIZE_VER0: u32 = 24; +pub const MNT_ID_REQ_SIZE_VER1: u32 = 32; +pub const STATMOUNT_SB_BASIC: u32 = 1; +pub const STATMOUNT_MNT_BASIC: u32 = 2; +pub const STATMOUNT_PROPAGATE_FROM: u32 = 4; +pub const STATMOUNT_MNT_ROOT: u32 = 8; +pub const STATMOUNT_MNT_POINT: u32 = 16; +pub const STATMOUNT_FS_TYPE: u32 = 32; +pub const STATMOUNT_MNT_NS_ID: u32 = 64; +pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; +pub const STATMOUNT_SUPPORTED_MASK: u32 = 4096; +pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; +pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; +pub const LSMT_ROOT: i32 = -1; +pub const LISTMOUNT_REVERSE: u32 = 1; +pub const INR_OPEN_CUR: u32 = 1024; +pub const INR_OPEN_MAX: u32 = 4096; +pub const BLOCK_SIZE_BITS: u32 = 10; +pub const BLOCK_SIZE: u32 = 1024; +pub const IO_INTEGRITY_CHK_GUARD: u32 = 1; +pub const IO_INTEGRITY_CHK_REFTAG: u32 = 2; +pub const IO_INTEGRITY_CHK_APPTAG: u32 = 4; +pub const IO_INTEGRITY_VALID_FLAGS: u32 = 7; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const SEEK_DATA: u32 = 3; +pub const SEEK_HOLE: u32 = 4; +pub const SEEK_MAX: u32 = 4; +pub const RENAME_NOREPLACE: u32 = 1; +pub const RENAME_EXCHANGE: u32 = 2; +pub const RENAME_WHITEOUT: u32 = 4; +pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; +pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; +pub const NR_FILE: u32 = 8192; +pub const FS_XFLAG_REALTIME: u32 = 1; +pub const FS_XFLAG_PREALLOC: u32 = 2; +pub const FS_XFLAG_IMMUTABLE: u32 = 8; +pub const FS_XFLAG_APPEND: u32 = 16; +pub const FS_XFLAG_SYNC: u32 = 32; +pub const FS_XFLAG_NOATIME: u32 = 64; +pub const FS_XFLAG_NODUMP: u32 = 128; +pub const FS_XFLAG_RTINHERIT: u32 = 256; +pub const FS_XFLAG_PROJINHERIT: u32 = 512; +pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; +pub const FS_XFLAG_EXTSIZE: u32 = 2048; +pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; +pub const FS_XFLAG_NODEFRAG: u32 = 8192; +pub const FS_XFLAG_FILESTREAM: u32 = 16384; +pub const FS_XFLAG_DAX: u32 = 32768; +pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_HASATTR: u32 = 2147483648; +pub const BMAP_IOCTL: u32 = 1; +pub const FSLABEL_MAX: u32 = 256; +pub const FS_SECRM_FL: u32 = 1; +pub const FS_UNRM_FL: u32 = 2; +pub const FS_COMPR_FL: u32 = 4; +pub const FS_SYNC_FL: u32 = 8; +pub const FS_IMMUTABLE_FL: u32 = 16; +pub const FS_APPEND_FL: u32 = 32; +pub const FS_NODUMP_FL: u32 = 64; +pub const FS_NOATIME_FL: u32 = 128; +pub const FS_DIRTY_FL: u32 = 256; +pub const FS_COMPRBLK_FL: u32 = 512; +pub const FS_NOCOMP_FL: u32 = 1024; +pub const FS_ENCRYPT_FL: u32 = 2048; +pub const FS_BTREE_FL: u32 = 4096; +pub const FS_INDEX_FL: u32 = 4096; +pub const FS_IMAGIC_FL: u32 = 8192; +pub const FS_JOURNAL_DATA_FL: u32 = 16384; +pub const FS_NOTAIL_FL: u32 = 32768; +pub const FS_DIRSYNC_FL: u32 = 65536; +pub const FS_TOPDIR_FL: u32 = 131072; +pub const FS_HUGE_FILE_FL: u32 = 262144; +pub const FS_EXTENT_FL: u32 = 524288; +pub const FS_VERITY_FL: u32 = 1048576; +pub const FS_EA_INODE_FL: u32 = 2097152; +pub const FS_EOFBLOCKS_FL: u32 = 4194304; +pub const FS_NOCOW_FL: u32 = 8388608; +pub const FS_DAX_FL: u32 = 33554432; +pub const FS_INLINE_DATA_FL: u32 = 268435456; +pub const FS_PROJINHERIT_FL: u32 = 536870912; +pub const FS_CASEFOLD_FL: u32 = 1073741824; +pub const FS_RESERVED_FL: u32 = 2147483648; +pub const FS_FL_USER_VISIBLE: u32 = 253951; +pub const FS_FL_USER_MODIFIABLE: u32 = 229631; +pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; +pub const SYNC_FILE_RANGE_WRITE: u32 = 2; +pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; +pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; +pub const PROCFS_IOCTL_MAGIC: u8 = 102u8; +pub const PAGE_IS_WPALLOWED: u32 = 1; +pub const PAGE_IS_WRITTEN: u32 = 2; +pub const PAGE_IS_FILE: u32 = 4; +pub const PAGE_IS_PRESENT: u32 = 8; +pub const PAGE_IS_SWAPPED: u32 = 16; +pub const PAGE_IS_PFNZERO: u32 = 32; +pub const PAGE_IS_HUGE: u32 = 64; +pub const PAGE_IS_SOFT_DIRTY: u32 = 128; +pub const PAGE_IS_GUARD: u32 = 256; +pub const PM_SCAN_WP_MATCHING: u32 = 1; +pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FUTEX_WAIT: u32 = 0; +pub const FUTEX_WAKE: u32 = 1; +pub const FUTEX_FD: u32 = 2; +pub const FUTEX_REQUEUE: u32 = 3; +pub const FUTEX_CMP_REQUEUE: u32 = 4; +pub const FUTEX_WAKE_OP: u32 = 5; +pub const FUTEX_LOCK_PI: u32 = 6; +pub const FUTEX_UNLOCK_PI: u32 = 7; +pub const FUTEX_TRYLOCK_PI: u32 = 8; +pub const FUTEX_WAIT_BITSET: u32 = 9; +pub const FUTEX_WAKE_BITSET: u32 = 10; +pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; +pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; +pub const FUTEX_LOCK_PI2: u32 = 13; +pub const FUTEX_PRIVATE_FLAG: u32 = 128; +pub const FUTEX_CLOCK_REALTIME: u32 = 256; +pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_WAIT_PRIVATE: u32 = 128; +pub const FUTEX_WAKE_PRIVATE: u32 = 129; +pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; +pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; +pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; +pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; +pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; +pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; +pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; +pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; +pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; +pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; +pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX2_SIZE_U8: u32 = 0; +pub const FUTEX2_SIZE_U16: u32 = 1; +pub const FUTEX2_SIZE_U32: u32 = 2; +pub const FUTEX2_SIZE_U64: u32 = 3; +pub const FUTEX2_NUMA: u32 = 4; +pub const FUTEX2_MPOL: u32 = 8; +pub const FUTEX2_PRIVATE: u32 = 128; +pub const FUTEX2_SIZE_MASK: u32 = 3; +pub const FUTEX_32: u32 = 2; +pub const FUTEX_NO_NODE: i32 = -1; +pub const FUTEX_WAITV_MAX: u32 = 128; +pub const FUTEX_WAITERS: u32 = 2147483648; +pub const FUTEX_OWNER_DIED: u32 = 1073741824; +pub const FUTEX_TID_MASK: u32 = 1073741823; +pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; +pub const FUTEX_OP_SET: u32 = 0; +pub const FUTEX_OP_ADD: u32 = 1; +pub const FUTEX_OP_OR: u32 = 2; +pub const FUTEX_OP_ANDN: u32 = 3; +pub const FUTEX_OP_XOR: u32 = 4; +pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; +pub const FUTEX_OP_CMP_EQ: u32 = 0; +pub const FUTEX_OP_CMP_NE: u32 = 1; +pub const FUTEX_OP_CMP_LT: u32 = 2; +pub const FUTEX_OP_CMP_LE: u32 = 3; +pub const FUTEX_OP_CMP_GT: u32 = 4; +pub const FUTEX_OP_CMP_GE: u32 = 5; +pub const IN_ACCESS: u32 = 1; +pub const IN_MODIFY: u32 = 2; +pub const IN_ATTRIB: u32 = 4; +pub const IN_CLOSE_WRITE: u32 = 8; +pub const IN_CLOSE_NOWRITE: u32 = 16; +pub const IN_OPEN: u32 = 32; +pub const IN_MOVED_FROM: u32 = 64; +pub const IN_MOVED_TO: u32 = 128; +pub const IN_CREATE: u32 = 256; +pub const IN_DELETE: u32 = 512; +pub const IN_DELETE_SELF: u32 = 1024; +pub const IN_MOVE_SELF: u32 = 2048; +pub const IN_UNMOUNT: u32 = 8192; +pub const IN_Q_OVERFLOW: u32 = 16384; +pub const IN_IGNORED: u32 = 32768; +pub const IN_CLOSE: u32 = 24; +pub const IN_MOVE: u32 = 192; +pub const IN_ONLYDIR: u32 = 16777216; +pub const IN_DONT_FOLLOW: u32 = 33554432; +pub const IN_EXCL_UNLINK: u32 = 67108864; +pub const IN_MASK_CREATE: u32 = 268435456; +pub const IN_MASK_ADD: u32 = 536870912; +pub const IN_ISDIR: u32 = 1073741824; +pub const IN_ONESHOT: u32 = 2147483648; +pub const IN_ALL_EVENTS: u32 = 4095; +pub const IN_CLOEXEC: u32 = 524288; +pub const IN_NONBLOCK: u32 = 2048; +pub const ADFS_SUPER_MAGIC: u32 = 44533; +pub const AFFS_SUPER_MAGIC: u32 = 44543; +pub const AFS_SUPER_MAGIC: u32 = 1397113167; +pub const AUTOFS_SUPER_MAGIC: u32 = 391; +pub const CEPH_SUPER_MAGIC: u32 = 12805120; +pub const CODA_SUPER_MAGIC: u32 = 1937076805; +pub const CRAMFS_MAGIC: u32 = 684539205; +pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; +pub const DEBUGFS_MAGIC: u32 = 1684170528; +pub const SECURITYFS_MAGIC: u32 = 1935894131; +pub const SELINUX_MAGIC: u32 = 4185718668; +pub const SMACK_MAGIC: u32 = 1128357203; +pub const RAMFS_MAGIC: u32 = 2240043254; +pub const TMPFS_MAGIC: u32 = 16914836; +pub const HUGETLBFS_MAGIC: u32 = 2508478710; +pub const SQUASHFS_MAGIC: u32 = 1936814952; +pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; +pub const EFS_SUPER_MAGIC: u32 = 4278867; +pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; +pub const EXT2_SUPER_MAGIC: u32 = 61267; +pub const EXT3_SUPER_MAGIC: u32 = 61267; +pub const XENFS_SUPER_MAGIC: u32 = 2881100148; +pub const EXT4_SUPER_MAGIC: u32 = 61267; +pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; +pub const NILFS_SUPER_MAGIC: u32 = 13364; +pub const F2FS_SUPER_MAGIC: u32 = 4076150800; +pub const HPFS_SUPER_MAGIC: u32 = 4187351113; +pub const ISOFS_SUPER_MAGIC: u32 = 38496; +pub const JFFS2_SUPER_MAGIC: u32 = 29366; +pub const XFS_SUPER_MAGIC: u32 = 1481003842; +pub const PSTOREFS_MAGIC: u32 = 1634035564; +pub const EFIVARFS_MAGIC: u32 = 3730735588; +pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; +pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; +pub const FUSE_SUPER_MAGIC: u32 = 1702057286; +pub const BCACHEFS_SUPER_MAGIC: u32 = 3393526350; +pub const MINIX_SUPER_MAGIC: u32 = 4991; +pub const MINIX_SUPER_MAGIC2: u32 = 5007; +pub const MINIX2_SUPER_MAGIC: u32 = 9320; +pub const MINIX2_SUPER_MAGIC2: u32 = 9336; +pub const MINIX3_SUPER_MAGIC: u32 = 19802; +pub const MSDOS_SUPER_MAGIC: u32 = 19780; +pub const EXFAT_SUPER_MAGIC: u32 = 538032816; +pub const NCP_SUPER_MAGIC: u32 = 22092; +pub const NFS_SUPER_MAGIC: u32 = 26985; +pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; +pub const OPENPROM_SUPER_MAGIC: u32 = 40865; +pub const QNX4_SUPER_MAGIC: u32 = 47; +pub const QNX6_SUPER_MAGIC: u32 = 1746473250; +pub const AFS_FS_MAGIC: u32 = 1799439955; +pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; +pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9] = b"ReIsErFs\0"; +pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr2Fs\0"; +pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr3Fs\0"; +pub const SMB_SUPER_MAGIC: u32 = 20859; +pub const CIFS_SUPER_MAGIC: u32 = 4283649346; +pub const SMB2_SUPER_MAGIC: u32 = 4266872130; +pub const CGROUP_SUPER_MAGIC: u32 = 2613483; +pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; +pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; +pub const STACK_END_MAGIC: u32 = 1470918301; +pub const TRACEFS_MAGIC: u32 = 1953653091; +pub const V9FS_MAGIC: u32 = 16914839; +pub const BDEVFS_MAGIC: u32 = 1650746742; +pub const DAXFS_MAGIC: u32 = 1684300152; +pub const BINFMTFS_MAGIC: u32 = 1112100429; +pub const DEVPTS_SUPER_MAGIC: u32 = 7377; +pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; +pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; +pub const PIPEFS_MAGIC: u32 = 1346981957; +pub const PROC_SUPER_MAGIC: u32 = 40864; +pub const SOCKFS_MAGIC: u32 = 1397703499; +pub const SYSFS_MAGIC: u32 = 1650812274; +pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; +pub const MTD_INODE_FS_MAGIC: u32 = 288389204; +pub const ANON_INODE_FS_MAGIC: u32 = 151263540; +pub const BTRFS_TEST_MAGIC: u32 = 1936880249; +pub const NSFS_MAGIC: u32 = 1853056627; +pub const BPF_FS_MAGIC: u32 = 3405662737; +pub const AAFS_MAGIC: u32 = 1513908720; +pub const ZONEFS_MAGIC: u32 = 1515144787; +pub const UDF_SUPER_MAGIC: u32 = 352400198; +pub const DMA_BUF_MAGIC: u32 = 1145913666; +pub const DEVMEM_MAGIC: u32 = 1162691661; +pub const SECRETMEM_MAGIC: u32 = 1397048141; +pub const PID_FS_MAGIC: u32 = 1346978886; +pub const PROT_READ: u32 = 1; +pub const PROT_WRITE: u32 = 2; +pub const PROT_EXEC: u32 = 4; +pub const PROT_SEM: u32 = 8; +pub const PROT_NONE: u32 = 0; +pub const PROT_GROWSDOWN: u32 = 16777216; +pub const PROT_GROWSUP: u32 = 33554432; +pub const MAP_TYPE: u32 = 15; +pub const MAP_FIXED: u32 = 16; +pub const MAP_ANONYMOUS: u32 = 32; +pub const MAP_POPULATE: u32 = 32768; +pub const MAP_NONBLOCK: u32 = 65536; +pub const MAP_STACK: u32 = 131072; +pub const MAP_HUGETLB: u32 = 262144; +pub const MAP_SYNC: u32 = 524288; +pub const MAP_FIXED_NOREPLACE: u32 = 1048576; +pub const MAP_UNINITIALIZED: u32 = 67108864; +pub const MLOCK_ONFAULT: u32 = 1; +pub const MS_ASYNC: u32 = 1; +pub const MS_INVALIDATE: u32 = 2; +pub const MS_SYNC: u32 = 4; +pub const MADV_NORMAL: u32 = 0; +pub const MADV_RANDOM: u32 = 1; +pub const MADV_SEQUENTIAL: u32 = 2; +pub const MADV_WILLNEED: u32 = 3; +pub const MADV_DONTNEED: u32 = 4; +pub const MADV_FREE: u32 = 8; +pub const MADV_REMOVE: u32 = 9; +pub const MADV_DONTFORK: u32 = 10; +pub const MADV_DOFORK: u32 = 11; +pub const MADV_HWPOISON: u32 = 100; +pub const MADV_SOFT_OFFLINE: u32 = 101; +pub const MADV_MERGEABLE: u32 = 12; +pub const MADV_UNMERGEABLE: u32 = 13; +pub const MADV_HUGEPAGE: u32 = 14; +pub const MADV_NOHUGEPAGE: u32 = 15; +pub const MADV_DONTDUMP: u32 = 16; +pub const MADV_DODUMP: u32 = 17; +pub const MADV_WIPEONFORK: u32 = 18; +pub const MADV_KEEPONFORK: u32 = 19; +pub const MADV_COLD: u32 = 20; +pub const MADV_PAGEOUT: u32 = 21; +pub const MADV_POPULATE_READ: u32 = 22; +pub const MADV_POPULATE_WRITE: u32 = 23; +pub const MADV_DONTNEED_LOCKED: u32 = 24; +pub const MADV_COLLAPSE: u32 = 25; +pub const MADV_GUARD_INSTALL: u32 = 102; +pub const MADV_GUARD_REMOVE: u32 = 103; +pub const MAP_FILE: u32 = 0; +pub const PKEY_UNRESTRICTED: u32 = 0; +pub const PKEY_DISABLE_ACCESS: u32 = 1; +pub const PKEY_DISABLE_WRITE: u32 = 2; +pub const PKEY_ACCESS_MASK: u32 = 3; +pub const MAP_GROWSDOWN: u32 = 256; +pub const MAP_DENYWRITE: u32 = 2048; +pub const MAP_EXECUTABLE: u32 = 4096; +pub const MAP_LOCKED: u32 = 8192; +pub const MAP_NORESERVE: u32 = 16384; +pub const MCL_CURRENT: u32 = 1; +pub const MCL_FUTURE: u32 = 2; +pub const MCL_ONFAULT: u32 = 4; +pub const SHADOW_STACK_SET_TOKEN: u32 = 1; +pub const SHADOW_STACK_SET_MARKER: u32 = 2; +pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; +pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; +pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; +pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; +pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; +pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; +pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; +pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; +pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; +pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; +pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; +pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; +pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; +pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; +pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; +pub const MREMAP_MAYMOVE: u32 = 1; +pub const MREMAP_FIXED: u32 = 2; +pub const MREMAP_DONTUNMAP: u32 = 4; +pub const OVERCOMMIT_GUESS: u32 = 0; +pub const OVERCOMMIT_ALWAYS: u32 = 1; +pub const OVERCOMMIT_NEVER: u32 = 2; +pub const MAP_SHARED: u32 = 1; +pub const MAP_PRIVATE: u32 = 2; +pub const MAP_SHARED_VALIDATE: u32 = 3; +pub const MAP_DROPPABLE: u32 = 8; +pub const MAP_HUGE_SHIFT: u32 = 26; +pub const MAP_HUGE_MASK: u32 = 63; +pub const MAP_HUGE_16KB: u32 = 939524096; +pub const MAP_HUGE_64KB: u32 = 1073741824; +pub const MAP_HUGE_512KB: u32 = 1275068416; +pub const MAP_HUGE_1MB: u32 = 1342177280; +pub const MAP_HUGE_2MB: u32 = 1409286144; +pub const MAP_HUGE_8MB: u32 = 1543503872; +pub const MAP_HUGE_16MB: u32 = 1610612736; +pub const MAP_HUGE_32MB: u32 = 1677721600; +pub const MAP_HUGE_256MB: u32 = 1879048192; +pub const MAP_HUGE_512MB: u32 = 1946157056; +pub const MAP_HUGE_1GB: u32 = 2013265920; +pub const MAP_HUGE_2GB: u32 = 2080374784; +pub const MAP_HUGE_16GB: u32 = 2281701376; +pub const POLLIN: u32 = 1; +pub const POLLPRI: u32 = 2; +pub const POLLOUT: u32 = 4; +pub const POLLERR: u32 = 8; +pub const POLLHUP: u32 = 16; +pub const POLLNVAL: u32 = 32; +pub const POLLRDNORM: u32 = 64; +pub const POLLRDBAND: u32 = 128; +pub const POLLWRNORM: u32 = 256; +pub const POLLWRBAND: u32 = 512; +pub const POLLMSG: u32 = 1024; +pub const POLLREMOVE: u32 = 4096; +pub const POLLRDHUP: u32 = 8192; +pub const GRND_NONBLOCK: u32 = 1; +pub const GRND_RANDOM: u32 = 2; +pub const GRND_INSECURE: u32 = 4; +pub const LINUX_REBOOT_MAGIC1: u32 = 4276215469; +pub const LINUX_REBOOT_MAGIC2: u32 = 672274793; +pub const LINUX_REBOOT_MAGIC2A: u32 = 85072278; +pub const LINUX_REBOOT_MAGIC2B: u32 = 369367448; +pub const LINUX_REBOOT_MAGIC2C: u32 = 537993216; +pub const LINUX_REBOOT_CMD_RESTART: u32 = 19088743; +pub const LINUX_REBOOT_CMD_HALT: u32 = 3454992675; +pub const LINUX_REBOOT_CMD_CAD_ON: u32 = 2309737967; +pub const LINUX_REBOOT_CMD_CAD_OFF: u32 = 0; +pub const LINUX_REBOOT_CMD_POWER_OFF: u32 = 1126301404; +pub const LINUX_REBOOT_CMD_RESTART2: u32 = 2712847316; +pub const LINUX_REBOOT_CMD_SW_SUSPEND: u32 = 3489725666; +pub const LINUX_REBOOT_CMD_KEXEC: u32 = 1163412803; +pub const RUSAGE_SELF: u32 = 0; +pub const RUSAGE_CHILDREN: i32 = -1; +pub const RUSAGE_BOTH: i32 = -2; +pub const RUSAGE_THREAD: u32 = 1; +pub const RLIM64_INFINITY: i32 = -1; +pub const PRIO_MIN: i32 = -20; +pub const PRIO_MAX: u32 = 20; +pub const PRIO_PROCESS: u32 = 0; +pub const PRIO_PGRP: u32 = 1; +pub const PRIO_USER: u32 = 2; +pub const _STK_LIM: u32 = 8388608; +pub const MLOCK_LIMIT: u32 = 8388608; +pub const RLIMIT_CPU: u32 = 0; +pub const RLIMIT_FSIZE: u32 = 1; +pub const RLIMIT_DATA: u32 = 2; +pub const RLIMIT_STACK: u32 = 3; +pub const RLIMIT_CORE: u32 = 4; +pub const RLIMIT_RSS: u32 = 5; +pub const RLIMIT_NPROC: u32 = 6; +pub const RLIMIT_NOFILE: u32 = 7; +pub const RLIMIT_MEMLOCK: u32 = 8; +pub const RLIMIT_AS: u32 = 9; +pub const RLIMIT_LOCKS: u32 = 10; +pub const RLIMIT_SIGPENDING: u32 = 11; +pub const RLIMIT_MSGQUEUE: u32 = 12; +pub const RLIMIT_NICE: u32 = 13; +pub const RLIMIT_RTPRIO: u32 = 14; +pub const RLIMIT_RTTIME: u32 = 15; +pub const RLIM_NLIMITS: u32 = 16; +pub const RLIM_INFINITY: i32 = -1; +pub const CSIGNAL: u32 = 255; +pub const CLONE_VM: u32 = 256; +pub const CLONE_FS: u32 = 512; +pub const CLONE_FILES: u32 = 1024; +pub const CLONE_SIGHAND: u32 = 2048; +pub const CLONE_PIDFD: u32 = 4096; +pub const CLONE_PTRACE: u32 = 8192; +pub const CLONE_VFORK: u32 = 16384; +pub const CLONE_PARENT: u32 = 32768; +pub const CLONE_THREAD: u32 = 65536; +pub const CLONE_NEWNS: u32 = 131072; +pub const CLONE_SYSVSEM: u32 = 262144; +pub const CLONE_SETTLS: u32 = 524288; +pub const CLONE_PARENT_SETTID: u32 = 1048576; +pub const CLONE_CHILD_CLEARTID: u32 = 2097152; +pub const CLONE_DETACHED: u32 = 4194304; +pub const CLONE_UNTRACED: u32 = 8388608; +pub const CLONE_CHILD_SETTID: u32 = 16777216; +pub const CLONE_NEWCGROUP: u32 = 33554432; +pub const CLONE_NEWUTS: u32 = 67108864; +pub const CLONE_NEWIPC: u32 = 134217728; +pub const CLONE_NEWUSER: u32 = 268435456; +pub const CLONE_NEWPID: u32 = 536870912; +pub const CLONE_NEWNET: u32 = 1073741824; +pub const CLONE_IO: u32 = 2147483648; +pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; +pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_NEWTIME: u32 = 128; +pub const CLONE_ARGS_SIZE_VER0: u32 = 64; +pub const CLONE_ARGS_SIZE_VER1: u32 = 80; +pub const CLONE_ARGS_SIZE_VER2: u32 = 88; +pub const SCHED_NORMAL: u32 = 0; +pub const SCHED_FIFO: u32 = 1; +pub const SCHED_RR: u32 = 2; +pub const SCHED_BATCH: u32 = 3; +pub const SCHED_IDLE: u32 = 5; +pub const SCHED_DEADLINE: u32 = 6; +pub const SCHED_EXT: u32 = 7; +pub const SCHED_RESET_ON_FORK: u32 = 1073741824; +pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; +pub const SCHED_FLAG_RECLAIM: u32 = 2; +pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; +pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; +pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; +pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; +pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; +pub const SCHED_FLAG_KEEP_ALL: u32 = 24; +pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; +pub const SCHED_FLAG_ALL: u32 = 127; +pub const ITIMER_REAL: u32 = 0; +pub const ITIMER_VIRTUAL: u32 = 1; +pub const ITIMER_PROF: u32 = 2; +pub const CLOCK_REALTIME: u32 = 0; +pub const CLOCK_MONOTONIC: u32 = 1; +pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; +pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; +pub const CLOCK_MONOTONIC_RAW: u32 = 4; +pub const CLOCK_REALTIME_COARSE: u32 = 5; +pub const CLOCK_MONOTONIC_COARSE: u32 = 6; +pub const CLOCK_BOOTTIME: u32 = 7; +pub const CLOCK_REALTIME_ALARM: u32 = 8; +pub const CLOCK_BOOTTIME_ALARM: u32 = 9; +pub const CLOCK_SGI_CYCLE: u32 = 10; +pub const CLOCK_TAI: u32 = 11; +pub const MAX_CLOCKS: u32 = 16; +pub const CLOCKS_MASK: u32 = 1; +pub const CLOCKS_MONO: u32 = 1; +pub const TIMER_ABSTIME: u32 = 1; +pub const NSIG: u32 = 32; +pub const SIGHUP: u32 = 1; +pub const SIGINT: u32 = 2; +pub const SIGQUIT: u32 = 3; +pub const SIGILL: u32 = 4; +pub const SIGTRAP: u32 = 5; +pub const SIGABRT: u32 = 6; +pub const SIGIOT: u32 = 6; +pub const SIGBUS: u32 = 7; +pub const SIGFPE: u32 = 8; +pub const SIGKILL: u32 = 9; +pub const SIGUSR1: u32 = 10; +pub const SIGSEGV: u32 = 11; +pub const SIGUSR2: u32 = 12; +pub const SIGPIPE: u32 = 13; +pub const SIGALRM: u32 = 14; +pub const SIGTERM: u32 = 15; +pub const SIGSTKFLT: u32 = 16; +pub const SIGCHLD: u32 = 17; +pub const SIGCONT: u32 = 18; +pub const SIGSTOP: u32 = 19; +pub const SIGTSTP: u32 = 20; +pub const SIGTTIN: u32 = 21; +pub const SIGTTOU: u32 = 22; +pub const SIGURG: u32 = 23; +pub const SIGXCPU: u32 = 24; +pub const SIGXFSZ: u32 = 25; +pub const SIGVTALRM: u32 = 26; +pub const SIGPROF: u32 = 27; +pub const SIGWINCH: u32 = 28; +pub const SIGIO: u32 = 29; +pub const SIGPOLL: u32 = 29; +pub const SIGPWR: u32 = 30; +pub const SIGSYS: u32 = 31; +pub const SIGUNUSED: u32 = 31; +pub const SIGRTMIN: u32 = 32; +pub const SA_RESTORER: u32 = 67108864; +pub const MINSIGSTKSZ: u32 = 2048; +pub const SIGSTKSZ: u32 = 8192; +pub const SA_NOCLDSTOP: u32 = 1; +pub const SA_NOCLDWAIT: u32 = 2; +pub const SA_SIGINFO: u32 = 4; +pub const SA_UNSUPPORTED: u32 = 1024; +pub const SA_EXPOSE_TAGBITS: u32 = 2048; +pub const SA_ONSTACK: u32 = 134217728; +pub const SA_RESTART: u32 = 268435456; +pub const SA_NODEFER: u32 = 1073741824; +pub const SA_RESETHAND: u32 = 2147483648; +pub const SA_NOMASK: u32 = 1073741824; +pub const SA_ONESHOT: u32 = 2147483648; +pub const SIG_BLOCK: u32 = 0; +pub const SIG_UNBLOCK: u32 = 1; +pub const SIG_SETMASK: u32 = 2; +pub const SI_MAX_SIZE: u32 = 128; +pub const SI_USER: u32 = 0; +pub const SI_KERNEL: u32 = 128; +pub const SI_QUEUE: i32 = -1; +pub const SI_TIMER: i32 = -2; +pub const SI_MESGQ: i32 = -3; +pub const SI_ASYNCIO: i32 = -4; +pub const SI_SIGIO: i32 = -5; +pub const SI_TKILL: i32 = -6; +pub const SI_DETHREAD: i32 = -7; +pub const SI_ASYNCNL: i32 = -60; +pub const ILL_ILLOPC: u32 = 1; +pub const ILL_ILLOPN: u32 = 2; +pub const ILL_ILLADR: u32 = 3; +pub const ILL_ILLTRP: u32 = 4; +pub const ILL_PRVOPC: u32 = 5; +pub const ILL_PRVREG: u32 = 6; +pub const ILL_COPROC: u32 = 7; +pub const ILL_BADSTK: u32 = 8; +pub const ILL_BADIADDR: u32 = 9; +pub const __ILL_BREAK: u32 = 10; +pub const __ILL_BNDMOD: u32 = 11; +pub const NSIGILL: u32 = 11; +pub const FPE_INTDIV: u32 = 1; +pub const FPE_INTOVF: u32 = 2; +pub const FPE_FLTDIV: u32 = 3; +pub const FPE_FLTOVF: u32 = 4; +pub const FPE_FLTUND: u32 = 5; +pub const FPE_FLTRES: u32 = 6; +pub const FPE_FLTINV: u32 = 7; +pub const FPE_FLTSUB: u32 = 8; +pub const __FPE_DECOVF: u32 = 9; +pub const __FPE_DECDIV: u32 = 10; +pub const __FPE_DECERR: u32 = 11; +pub const __FPE_INVASC: u32 = 12; +pub const __FPE_INVDEC: u32 = 13; +pub const FPE_FLTUNK: u32 = 14; +pub const FPE_CONDTRAP: u32 = 15; +pub const NSIGFPE: u32 = 15; +pub const SEGV_MAPERR: u32 = 1; +pub const SEGV_ACCERR: u32 = 2; +pub const SEGV_BNDERR: u32 = 3; +pub const SEGV_PKUERR: u32 = 4; +pub const SEGV_ACCADI: u32 = 5; +pub const SEGV_ADIDERR: u32 = 6; +pub const SEGV_ADIPERR: u32 = 7; +pub const SEGV_MTEAERR: u32 = 8; +pub const SEGV_MTESERR: u32 = 9; +pub const SEGV_CPERR: u32 = 10; +pub const NSIGSEGV: u32 = 10; +pub const BUS_ADRALN: u32 = 1; +pub const BUS_ADRERR: u32 = 2; +pub const BUS_OBJERR: u32 = 3; +pub const BUS_MCEERR_AR: u32 = 4; +pub const BUS_MCEERR_AO: u32 = 5; +pub const NSIGBUS: u32 = 5; +pub const TRAP_BRKPT: u32 = 1; +pub const TRAP_TRACE: u32 = 2; +pub const TRAP_BRANCH: u32 = 3; +pub const TRAP_HWBKPT: u32 = 4; +pub const TRAP_UNK: u32 = 5; +pub const TRAP_PERF: u32 = 6; +pub const NSIGTRAP: u32 = 6; +pub const TRAP_PERF_FLAG_ASYNC: u32 = 1; +pub const CLD_EXITED: u32 = 1; +pub const CLD_KILLED: u32 = 2; +pub const CLD_DUMPED: u32 = 3; +pub const CLD_TRAPPED: u32 = 4; +pub const CLD_STOPPED: u32 = 5; +pub const CLD_CONTINUED: u32 = 6; +pub const NSIGCHLD: u32 = 6; +pub const POLL_IN: u32 = 1; +pub const POLL_OUT: u32 = 2; +pub const POLL_MSG: u32 = 3; +pub const POLL_ERR: u32 = 4; +pub const POLL_PRI: u32 = 5; +pub const POLL_HUP: u32 = 6; +pub const NSIGPOLL: u32 = 6; +pub const SYS_SECCOMP: u32 = 1; +pub const SYS_USER_DISPATCH: u32 = 2; +pub const NSIGSYS: u32 = 2; +pub const EMT_TAGOVF: u32 = 1; +pub const NSIGEMT: u32 = 1; +pub const SIGEV_SIGNAL: u32 = 0; +pub const SIGEV_NONE: u32 = 1; +pub const SIGEV_THREAD: u32 = 2; +pub const SIGEV_THREAD_ID: u32 = 4; +pub const SIGEV_MAX_SIZE: u32 = 64; +pub const SS_ONSTACK: u32 = 1; +pub const SS_DISABLE: u32 = 2; +pub const SS_AUTODISARM: u32 = 2147483648; +pub const SS_FLAG_BITS: u32 = 2147483648; +pub const S_IFMT: u32 = 61440; +pub const S_IFSOCK: u32 = 49152; +pub const S_IFLNK: u32 = 40960; +pub const S_IFREG: u32 = 32768; +pub const S_IFBLK: u32 = 24576; +pub const S_IFDIR: u32 = 16384; +pub const S_IFCHR: u32 = 8192; +pub const S_IFIFO: u32 = 4096; +pub const S_ISUID: u32 = 2048; +pub const S_ISGID: u32 = 1024; +pub const S_ISVTX: u32 = 512; +pub const S_IRWXU: u32 = 448; +pub const S_IRUSR: u32 = 256; +pub const S_IWUSR: u32 = 128; +pub const S_IXUSR: u32 = 64; +pub const S_IRWXG: u32 = 56; +pub const S_IRGRP: u32 = 32; +pub const S_IWGRP: u32 = 16; +pub const S_IXGRP: u32 = 8; +pub const S_IRWXO: u32 = 7; +pub const S_IROTH: u32 = 4; +pub const S_IWOTH: u32 = 2; +pub const S_IXOTH: u32 = 1; +pub const STATX_TYPE: u32 = 1; +pub const STATX_MODE: u32 = 2; +pub const STATX_NLINK: u32 = 4; +pub const STATX_UID: u32 = 8; +pub const STATX_GID: u32 = 16; +pub const STATX_ATIME: u32 = 32; +pub const STATX_MTIME: u32 = 64; +pub const STATX_CTIME: u32 = 128; +pub const STATX_INO: u32 = 256; +pub const STATX_SIZE: u32 = 512; +pub const STATX_BLOCKS: u32 = 1024; +pub const STATX_BASIC_STATS: u32 = 2047; +pub const STATX_BTIME: u32 = 2048; +pub const STATX_MNT_ID: u32 = 4096; +pub const STATX_DIOALIGN: u32 = 8192; +pub const STATX_MNT_ID_UNIQUE: u32 = 16384; +pub const STATX_SUBVOL: u32 = 32768; +pub const STATX_WRITE_ATOMIC: u32 = 65536; +pub const STATX_DIO_READ_ALIGN: u32 = 131072; +pub const STATX__RESERVED: u32 = 2147483648; +pub const STATX_ALL: u32 = 4095; +pub const STATX_ATTR_COMPRESSED: u32 = 4; +pub const STATX_ATTR_IMMUTABLE: u32 = 16; +pub const STATX_ATTR_APPEND: u32 = 32; +pub const STATX_ATTR_NODUMP: u32 = 64; +pub const STATX_ATTR_ENCRYPTED: u32 = 2048; +pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; +pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; +pub const STATX_ATTR_VERITY: u32 = 1048576; +pub const STATX_ATTR_DAX: u32 = 2097152; +pub const STATX_ATTR_WRITE_ATOMIC: u32 = 4194304; +pub const IGNBRK: u32 = 1; +pub const BRKINT: u32 = 2; +pub const IGNPAR: u32 = 4; +pub const PARMRK: u32 = 8; +pub const INPCK: u32 = 16; +pub const ISTRIP: u32 = 32; +pub const INLCR: u32 = 64; +pub const IGNCR: u32 = 128; +pub const ICRNL: u32 = 256; +pub const IXANY: u32 = 2048; +pub const OPOST: u32 = 1; +pub const OCRNL: u32 = 8; +pub const ONOCR: u32 = 16; +pub const ONLRET: u32 = 32; +pub const OFILL: u32 = 64; +pub const OFDEL: u32 = 128; +pub const B0: u32 = 0; +pub const B50: u32 = 1; +pub const B75: u32 = 2; +pub const B110: u32 = 3; +pub const B134: u32 = 4; +pub const B150: u32 = 5; +pub const B200: u32 = 6; +pub const B300: u32 = 7; +pub const B600: u32 = 8; +pub const B1200: u32 = 9; +pub const B1800: u32 = 10; +pub const B2400: u32 = 11; +pub const B4800: u32 = 12; +pub const B9600: u32 = 13; +pub const B19200: u32 = 14; +pub const B38400: u32 = 15; +pub const EXTA: u32 = 14; +pub const EXTB: u32 = 15; +pub const ADDRB: u32 = 536870912; +pub const CMSPAR: u32 = 1073741824; +pub const CRTSCTS: u32 = 2147483648; +pub const IBSHIFT: u32 = 16; +pub const TCOOFF: u32 = 0; +pub const TCOON: u32 = 1; +pub const TCIOFF: u32 = 2; +pub const TCION: u32 = 3; +pub const TCIFLUSH: u32 = 0; +pub const TCOFLUSH: u32 = 1; +pub const TCIOFLUSH: u32 = 2; +pub const NCCS: u32 = 19; +pub const VINTR: u32 = 0; +pub const VQUIT: u32 = 1; +pub const VERASE: u32 = 2; +pub const VKILL: u32 = 3; +pub const VEOF: u32 = 4; +pub const VTIME: u32 = 5; +pub const VMIN: u32 = 6; +pub const VSWTC: u32 = 7; +pub const VSTART: u32 = 8; +pub const VSTOP: u32 = 9; +pub const VSUSP: u32 = 10; +pub const VEOL: u32 = 11; +pub const VREPRINT: u32 = 12; +pub const VDISCARD: u32 = 13; +pub const VWERASE: u32 = 14; +pub const VLNEXT: u32 = 15; +pub const VEOL2: u32 = 16; +pub const IUCLC: u32 = 512; +pub const IXON: u32 = 1024; +pub const IXOFF: u32 = 4096; +pub const IMAXBEL: u32 = 8192; +pub const IUTF8: u32 = 16384; +pub const OLCUC: u32 = 2; +pub const ONLCR: u32 = 4; +pub const NLDLY: u32 = 256; +pub const NL0: u32 = 0; +pub const NL1: u32 = 256; +pub const CRDLY: u32 = 1536; +pub const CR0: u32 = 0; +pub const CR1: u32 = 512; +pub const CR2: u32 = 1024; +pub const CR3: u32 = 1536; +pub const TABDLY: u32 = 6144; +pub const TAB0: u32 = 0; +pub const TAB1: u32 = 2048; +pub const TAB2: u32 = 4096; +pub const TAB3: u32 = 6144; +pub const XTABS: u32 = 6144; +pub const BSDLY: u32 = 8192; +pub const BS0: u32 = 0; +pub const BS1: u32 = 8192; +pub const VTDLY: u32 = 16384; +pub const VT0: u32 = 0; +pub const VT1: u32 = 16384; +pub const FFDLY: u32 = 32768; +pub const FF0: u32 = 0; +pub const FF1: u32 = 32768; +pub const CBAUD: u32 = 4111; +pub const CSIZE: u32 = 48; +pub const CS5: u32 = 0; +pub const CS6: u32 = 16; +pub const CS7: u32 = 32; +pub const CS8: u32 = 48; +pub const CSTOPB: u32 = 64; +pub const CREAD: u32 = 128; +pub const PARENB: u32 = 256; +pub const PARODD: u32 = 512; +pub const HUPCL: u32 = 1024; +pub const CLOCAL: u32 = 2048; +pub const CBAUDEX: u32 = 4096; +pub const BOTHER: u32 = 4096; +pub const B57600: u32 = 4097; +pub const B115200: u32 = 4098; +pub const B230400: u32 = 4099; +pub const B460800: u32 = 4100; +pub const B500000: u32 = 4101; +pub const B576000: u32 = 4102; +pub const B921600: u32 = 4103; +pub const B1000000: u32 = 4104; +pub const B1152000: u32 = 4105; +pub const B1500000: u32 = 4106; +pub const B2000000: u32 = 4107; +pub const B2500000: u32 = 4108; +pub const B3000000: u32 = 4109; +pub const B3500000: u32 = 4110; +pub const B4000000: u32 = 4111; +pub const CIBAUD: u32 = 269418496; +pub const ISIG: u32 = 1; +pub const ICANON: u32 = 2; +pub const XCASE: u32 = 4; +pub const ECHO: u32 = 8; +pub const ECHOE: u32 = 16; +pub const ECHOK: u32 = 32; +pub const ECHONL: u32 = 64; +pub const NOFLSH: u32 = 128; +pub const TOSTOP: u32 = 256; +pub const ECHOCTL: u32 = 512; +pub const ECHOPRT: u32 = 1024; +pub const ECHOKE: u32 = 2048; +pub const FLUSHO: u32 = 4096; +pub const PENDIN: u32 = 16384; +pub const IEXTEN: u32 = 32768; +pub const EXTPROC: u32 = 65536; +pub const TCSANOW: u32 = 0; +pub const TCSADRAIN: u32 = 1; +pub const TCSAFLUSH: u32 = 2; +pub const TIOCPKT_DATA: u32 = 0; +pub const TIOCPKT_FLUSHREAD: u32 = 1; +pub const TIOCPKT_FLUSHWRITE: u32 = 2; +pub const TIOCPKT_STOP: u32 = 4; +pub const TIOCPKT_START: u32 = 8; +pub const TIOCPKT_NOSTOP: u32 = 16; +pub const TIOCPKT_DOSTOP: u32 = 32; +pub const TIOCPKT_IOCTL: u32 = 64; +pub const TIOCSER_TEMT: u32 = 1; +pub const NCC: u32 = 8; +pub const TIOCM_LE: u32 = 1; +pub const TIOCM_DTR: u32 = 2; +pub const TIOCM_RTS: u32 = 4; +pub const TIOCM_ST: u32 = 8; +pub const TIOCM_SR: u32 = 16; +pub const TIOCM_CTS: u32 = 32; +pub const TIOCM_CAR: u32 = 64; +pub const TIOCM_RNG: u32 = 128; +pub const TIOCM_DSR: u32 = 256; +pub const TIOCM_CD: u32 = 64; +pub const TIOCM_RI: u32 = 128; +pub const TIOCM_OUT1: u32 = 8192; +pub const TIOCM_OUT2: u32 = 16384; +pub const TIOCM_LOOP: u32 = 32768; +pub const UIO_FASTIOV: u32 = 8; +pub const UIO_MAXIOV: u32 = 1024; +pub const __NR_exit: u32 = 1; +pub const __NR_fork: u32 = 2; +pub const __NR_read: u32 = 3; +pub const __NR_write: u32 = 4; +pub const __NR_open: u32 = 5; +pub const __NR_close: u32 = 6; +pub const __NR_restart_syscall: u32 = 7; +pub const __NR_creat: u32 = 8; +pub const __NR_link: u32 = 9; +pub const __NR_unlink: u32 = 10; +pub const __NR_execve: u32 = 11; +pub const __NR_chdir: u32 = 12; +pub const __NR_mknod: u32 = 14; +pub const __NR_chmod: u32 = 15; +pub const __NR_lseek: u32 = 19; +pub const __NR_getpid: u32 = 20; +pub const __NR_mount: u32 = 21; +pub const __NR_umount: u32 = 22; +pub const __NR_ptrace: u32 = 26; +pub const __NR_alarm: u32 = 27; +pub const __NR_pause: u32 = 29; +pub const __NR_utime: u32 = 30; +pub const __NR_access: u32 = 33; +pub const __NR_nice: u32 = 34; +pub const __NR_sync: u32 = 36; +pub const __NR_kill: u32 = 37; +pub const __NR_rename: u32 = 38; +pub const __NR_mkdir: u32 = 39; +pub const __NR_rmdir: u32 = 40; +pub const __NR_dup: u32 = 41; +pub const __NR_pipe: u32 = 42; +pub const __NR_times: u32 = 43; +pub const __NR_brk: u32 = 45; +pub const __NR_signal: u32 = 48; +pub const __NR_acct: u32 = 51; +pub const __NR_umount2: u32 = 52; +pub const __NR_ioctl: u32 = 54; +pub const __NR_fcntl: u32 = 55; +pub const __NR_setpgid: u32 = 57; +pub const __NR_umask: u32 = 60; +pub const __NR_chroot: u32 = 61; +pub const __NR_ustat: u32 = 62; +pub const __NR_dup2: u32 = 63; +pub const __NR_getppid: u32 = 64; +pub const __NR_getpgrp: u32 = 65; +pub const __NR_setsid: u32 = 66; +pub const __NR_sigaction: u32 = 67; +pub const __NR_sigsuspend: u32 = 72; +pub const __NR_sigpending: u32 = 73; +pub const __NR_sethostname: u32 = 74; +pub const __NR_setrlimit: u32 = 75; +pub const __NR_getrusage: u32 = 77; +pub const __NR_gettimeofday: u32 = 78; +pub const __NR_settimeofday: u32 = 79; +pub const __NR_symlink: u32 = 83; +pub const __NR_readlink: u32 = 85; +pub const __NR_uselib: u32 = 86; +pub const __NR_swapon: u32 = 87; +pub const __NR_reboot: u32 = 88; +pub const __NR_readdir: u32 = 89; +pub const __NR_mmap: u32 = 90; +pub const __NR_munmap: u32 = 91; +pub const __NR_truncate: u32 = 92; +pub const __NR_ftruncate: u32 = 93; +pub const __NR_fchmod: u32 = 94; +pub const __NR_getpriority: u32 = 96; +pub const __NR_setpriority: u32 = 97; +pub const __NR_statfs: u32 = 99; +pub const __NR_fstatfs: u32 = 100; +pub const __NR_socketcall: u32 = 102; +pub const __NR_syslog: u32 = 103; +pub const __NR_setitimer: u32 = 104; +pub const __NR_getitimer: u32 = 105; +pub const __NR_stat: u32 = 106; +pub const __NR_lstat: u32 = 107; +pub const __NR_fstat: u32 = 108; +pub const __NR_lookup_dcookie: u32 = 110; +pub const __NR_vhangup: u32 = 111; +pub const __NR_idle: u32 = 112; +pub const __NR_wait4: u32 = 114; +pub const __NR_swapoff: u32 = 115; +pub const __NR_sysinfo: u32 = 116; +pub const __NR_ipc: u32 = 117; +pub const __NR_fsync: u32 = 118; +pub const __NR_sigreturn: u32 = 119; +pub const __NR_clone: u32 = 120; +pub const __NR_setdomainname: u32 = 121; +pub const __NR_uname: u32 = 122; +pub const __NR_adjtimex: u32 = 124; +pub const __NR_mprotect: u32 = 125; +pub const __NR_sigprocmask: u32 = 126; +pub const __NR_create_module: u32 = 127; +pub const __NR_init_module: u32 = 128; +pub const __NR_delete_module: u32 = 129; +pub const __NR_get_kernel_syms: u32 = 130; +pub const __NR_quotactl: u32 = 131; +pub const __NR_getpgid: u32 = 132; +pub const __NR_fchdir: u32 = 133; +pub const __NR_bdflush: u32 = 134; +pub const __NR_sysfs: u32 = 135; +pub const __NR_personality: u32 = 136; +pub const __NR_afs_syscall: u32 = 137; +pub const __NR_getdents: u32 = 141; +pub const __NR_select: u32 = 142; +pub const __NR_flock: u32 = 143; +pub const __NR_msync: u32 = 144; +pub const __NR_readv: u32 = 145; +pub const __NR_writev: u32 = 146; +pub const __NR_getsid: u32 = 147; +pub const __NR_fdatasync: u32 = 148; +pub const __NR__sysctl: u32 = 149; +pub const __NR_mlock: u32 = 150; +pub const __NR_munlock: u32 = 151; +pub const __NR_mlockall: u32 = 152; +pub const __NR_munlockall: u32 = 153; +pub const __NR_sched_setparam: u32 = 154; +pub const __NR_sched_getparam: u32 = 155; +pub const __NR_sched_setscheduler: u32 = 156; +pub const __NR_sched_getscheduler: u32 = 157; +pub const __NR_sched_yield: u32 = 158; +pub const __NR_sched_get_priority_max: u32 = 159; +pub const __NR_sched_get_priority_min: u32 = 160; +pub const __NR_sched_rr_get_interval: u32 = 161; +pub const __NR_nanosleep: u32 = 162; +pub const __NR_mremap: u32 = 163; +pub const __NR_query_module: u32 = 167; +pub const __NR_poll: u32 = 168; +pub const __NR_nfsservctl: u32 = 169; +pub const __NR_prctl: u32 = 172; +pub const __NR_rt_sigreturn: u32 = 173; +pub const __NR_rt_sigaction: u32 = 174; +pub const __NR_rt_sigprocmask: u32 = 175; +pub const __NR_rt_sigpending: u32 = 176; +pub const __NR_rt_sigtimedwait: u32 = 177; +pub const __NR_rt_sigqueueinfo: u32 = 178; +pub const __NR_rt_sigsuspend: u32 = 179; +pub const __NR_pread64: u32 = 180; +pub const __NR_pwrite64: u32 = 181; +pub const __NR_getcwd: u32 = 183; +pub const __NR_capget: u32 = 184; +pub const __NR_capset: u32 = 185; +pub const __NR_sigaltstack: u32 = 186; +pub const __NR_sendfile: u32 = 187; +pub const __NR_getpmsg: u32 = 188; +pub const __NR_putpmsg: u32 = 189; +pub const __NR_vfork: u32 = 190; +pub const __NR_getrlimit: u32 = 191; +pub const __NR_lchown: u32 = 198; +pub const __NR_getuid: u32 = 199; +pub const __NR_getgid: u32 = 200; +pub const __NR_geteuid: u32 = 201; +pub const __NR_getegid: u32 = 202; +pub const __NR_setreuid: u32 = 203; +pub const __NR_setregid: u32 = 204; +pub const __NR_getgroups: u32 = 205; +pub const __NR_setgroups: u32 = 206; +pub const __NR_fchown: u32 = 207; +pub const __NR_setresuid: u32 = 208; +pub const __NR_getresuid: u32 = 209; +pub const __NR_setresgid: u32 = 210; +pub const __NR_getresgid: u32 = 211; +pub const __NR_chown: u32 = 212; +pub const __NR_setuid: u32 = 213; +pub const __NR_setgid: u32 = 214; +pub const __NR_setfsuid: u32 = 215; +pub const __NR_setfsgid: u32 = 216; +pub const __NR_pivot_root: u32 = 217; +pub const __NR_mincore: u32 = 218; +pub const __NR_madvise: u32 = 219; +pub const __NR_getdents64: u32 = 220; +pub const __NR_readahead: u32 = 222; +pub const __NR_setxattr: u32 = 224; +pub const __NR_lsetxattr: u32 = 225; +pub const __NR_fsetxattr: u32 = 226; +pub const __NR_getxattr: u32 = 227; +pub const __NR_lgetxattr: u32 = 228; +pub const __NR_fgetxattr: u32 = 229; +pub const __NR_listxattr: u32 = 230; +pub const __NR_llistxattr: u32 = 231; +pub const __NR_flistxattr: u32 = 232; +pub const __NR_removexattr: u32 = 233; +pub const __NR_lremovexattr: u32 = 234; +pub const __NR_fremovexattr: u32 = 235; +pub const __NR_gettid: u32 = 236; +pub const __NR_tkill: u32 = 237; +pub const __NR_futex: u32 = 238; +pub const __NR_sched_setaffinity: u32 = 239; +pub const __NR_sched_getaffinity: u32 = 240; +pub const __NR_tgkill: u32 = 241; +pub const __NR_io_setup: u32 = 243; +pub const __NR_io_destroy: u32 = 244; +pub const __NR_io_getevents: u32 = 245; +pub const __NR_io_submit: u32 = 246; +pub const __NR_io_cancel: u32 = 247; +pub const __NR_exit_group: u32 = 248; +pub const __NR_epoll_create: u32 = 249; +pub const __NR_epoll_ctl: u32 = 250; +pub const __NR_epoll_wait: u32 = 251; +pub const __NR_set_tid_address: u32 = 252; +pub const __NR_fadvise64: u32 = 253; +pub const __NR_timer_create: u32 = 254; +pub const __NR_timer_settime: u32 = 255; +pub const __NR_timer_gettime: u32 = 256; +pub const __NR_timer_getoverrun: u32 = 257; +pub const __NR_timer_delete: u32 = 258; +pub const __NR_clock_settime: u32 = 259; +pub const __NR_clock_gettime: u32 = 260; +pub const __NR_clock_getres: u32 = 261; +pub const __NR_clock_nanosleep: u32 = 262; +pub const __NR_statfs64: u32 = 265; +pub const __NR_fstatfs64: u32 = 266; +pub const __NR_remap_file_pages: u32 = 267; +pub const __NR_mbind: u32 = 268; +pub const __NR_get_mempolicy: u32 = 269; +pub const __NR_set_mempolicy: u32 = 270; +pub const __NR_mq_open: u32 = 271; +pub const __NR_mq_unlink: u32 = 272; +pub const __NR_mq_timedsend: u32 = 273; +pub const __NR_mq_timedreceive: u32 = 274; +pub const __NR_mq_notify: u32 = 275; +pub const __NR_mq_getsetattr: u32 = 276; +pub const __NR_kexec_load: u32 = 277; +pub const __NR_add_key: u32 = 278; +pub const __NR_request_key: u32 = 279; +pub const __NR_keyctl: u32 = 280; +pub const __NR_waitid: u32 = 281; +pub const __NR_ioprio_set: u32 = 282; +pub const __NR_ioprio_get: u32 = 283; +pub const __NR_inotify_init: u32 = 284; +pub const __NR_inotify_add_watch: u32 = 285; +pub const __NR_inotify_rm_watch: u32 = 286; +pub const __NR_migrate_pages: u32 = 287; +pub const __NR_openat: u32 = 288; +pub const __NR_mkdirat: u32 = 289; +pub const __NR_mknodat: u32 = 290; +pub const __NR_fchownat: u32 = 291; +pub const __NR_futimesat: u32 = 292; +pub const __NR_newfstatat: u32 = 293; +pub const __NR_unlinkat: u32 = 294; +pub const __NR_renameat: u32 = 295; +pub const __NR_linkat: u32 = 296; +pub const __NR_symlinkat: u32 = 297; +pub const __NR_readlinkat: u32 = 298; +pub const __NR_fchmodat: u32 = 299; +pub const __NR_faccessat: u32 = 300; +pub const __NR_pselect6: u32 = 301; +pub const __NR_ppoll: u32 = 302; +pub const __NR_unshare: u32 = 303; +pub const __NR_set_robust_list: u32 = 304; +pub const __NR_get_robust_list: u32 = 305; +pub const __NR_splice: u32 = 306; +pub const __NR_sync_file_range: u32 = 307; +pub const __NR_tee: u32 = 308; +pub const __NR_vmsplice: u32 = 309; +pub const __NR_move_pages: u32 = 310; +pub const __NR_getcpu: u32 = 311; +pub const __NR_epoll_pwait: u32 = 312; +pub const __NR_utimes: u32 = 313; +pub const __NR_fallocate: u32 = 314; +pub const __NR_utimensat: u32 = 315; +pub const __NR_signalfd: u32 = 316; +pub const __NR_timerfd: u32 = 317; +pub const __NR_eventfd: u32 = 318; +pub const __NR_timerfd_create: u32 = 319; +pub const __NR_timerfd_settime: u32 = 320; +pub const __NR_timerfd_gettime: u32 = 321; +pub const __NR_signalfd4: u32 = 322; +pub const __NR_eventfd2: u32 = 323; +pub const __NR_inotify_init1: u32 = 324; +pub const __NR_pipe2: u32 = 325; +pub const __NR_dup3: u32 = 326; +pub const __NR_epoll_create1: u32 = 327; +pub const __NR_preadv: u32 = 328; +pub const __NR_pwritev: u32 = 329; +pub const __NR_rt_tgsigqueueinfo: u32 = 330; +pub const __NR_perf_event_open: u32 = 331; +pub const __NR_fanotify_init: u32 = 332; +pub const __NR_fanotify_mark: u32 = 333; +pub const __NR_prlimit64: u32 = 334; +pub const __NR_name_to_handle_at: u32 = 335; +pub const __NR_open_by_handle_at: u32 = 336; +pub const __NR_clock_adjtime: u32 = 337; +pub const __NR_syncfs: u32 = 338; +pub const __NR_setns: u32 = 339; +pub const __NR_process_vm_readv: u32 = 340; +pub const __NR_process_vm_writev: u32 = 341; +pub const __NR_s390_runtime_instr: u32 = 342; +pub const __NR_kcmp: u32 = 343; +pub const __NR_finit_module: u32 = 344; +pub const __NR_sched_setattr: u32 = 345; +pub const __NR_sched_getattr: u32 = 346; +pub const __NR_renameat2: u32 = 347; +pub const __NR_seccomp: u32 = 348; +pub const __NR_getrandom: u32 = 349; +pub const __NR_memfd_create: u32 = 350; +pub const __NR_bpf: u32 = 351; +pub const __NR_s390_pci_mmio_write: u32 = 352; +pub const __NR_s390_pci_mmio_read: u32 = 353; +pub const __NR_execveat: u32 = 354; +pub const __NR_userfaultfd: u32 = 355; +pub const __NR_membarrier: u32 = 356; +pub const __NR_recvmmsg: u32 = 357; +pub const __NR_sendmmsg: u32 = 358; +pub const __NR_socket: u32 = 359; +pub const __NR_socketpair: u32 = 360; +pub const __NR_bind: u32 = 361; +pub const __NR_connect: u32 = 362; +pub const __NR_listen: u32 = 363; +pub const __NR_accept4: u32 = 364; +pub const __NR_getsockopt: u32 = 365; +pub const __NR_setsockopt: u32 = 366; +pub const __NR_getsockname: u32 = 367; +pub const __NR_getpeername: u32 = 368; +pub const __NR_sendto: u32 = 369; +pub const __NR_sendmsg: u32 = 370; +pub const __NR_recvfrom: u32 = 371; +pub const __NR_recvmsg: u32 = 372; +pub const __NR_shutdown: u32 = 373; +pub const __NR_mlock2: u32 = 374; +pub const __NR_copy_file_range: u32 = 375; +pub const __NR_preadv2: u32 = 376; +pub const __NR_pwritev2: u32 = 377; +pub const __NR_s390_guarded_storage: u32 = 378; +pub const __NR_statx: u32 = 379; +pub const __NR_s390_sthyi: u32 = 380; +pub const __NR_kexec_file_load: u32 = 381; +pub const __NR_io_pgetevents: u32 = 382; +pub const __NR_rseq: u32 = 383; +pub const __NR_pkey_mprotect: u32 = 384; +pub const __NR_pkey_alloc: u32 = 385; +pub const __NR_pkey_free: u32 = 386; +pub const __NR_semtimedop: u32 = 392; +pub const __NR_semget: u32 = 393; +pub const __NR_semctl: u32 = 394; +pub const __NR_shmget: u32 = 395; +pub const __NR_shmctl: u32 = 396; +pub const __NR_shmat: u32 = 397; +pub const __NR_shmdt: u32 = 398; +pub const __NR_msgget: u32 = 399; +pub const __NR_msgsnd: u32 = 400; +pub const __NR_msgrcv: u32 = 401; +pub const __NR_msgctl: u32 = 402; +pub const __NR_pidfd_send_signal: u32 = 424; +pub const __NR_io_uring_setup: u32 = 425; +pub const __NR_io_uring_enter: u32 = 426; +pub const __NR_io_uring_register: u32 = 427; +pub const __NR_open_tree: u32 = 428; +pub const __NR_move_mount: u32 = 429; +pub const __NR_fsopen: u32 = 430; +pub const __NR_fsconfig: u32 = 431; +pub const __NR_fsmount: u32 = 432; +pub const __NR_fspick: u32 = 433; +pub const __NR_pidfd_open: u32 = 434; +pub const __NR_clone3: u32 = 435; +pub const __NR_close_range: u32 = 436; +pub const __NR_openat2: u32 = 437; +pub const __NR_pidfd_getfd: u32 = 438; +pub const __NR_faccessat2: u32 = 439; +pub const __NR_process_madvise: u32 = 440; +pub const __NR_epoll_pwait2: u32 = 441; +pub const __NR_mount_setattr: u32 = 442; +pub const __NR_quotactl_fd: u32 = 443; +pub const __NR_landlock_create_ruleset: u32 = 444; +pub const __NR_landlock_add_rule: u32 = 445; +pub const __NR_landlock_restrict_self: u32 = 446; +pub const __NR_memfd_secret: u32 = 447; +pub const __NR_process_mrelease: u32 = 448; +pub const __NR_futex_waitv: u32 = 449; +pub const __NR_set_mempolicy_home_node: u32 = 450; +pub const __NR_cachestat: u32 = 451; +pub const __NR_fchmodat2: u32 = 452; +pub const __NR_map_shadow_stack: u32 = 453; +pub const __NR_futex_wake: u32 = 454; +pub const __NR_futex_wait: u32 = 455; +pub const __NR_futex_requeue: u32 = 456; +pub const __NR_statmount: u32 = 457; +pub const __NR_listmount: u32 = 458; +pub const __NR_lsm_get_self_attr: u32 = 459; +pub const __NR_lsm_set_self_attr: u32 = 460; +pub const __NR_lsm_list_modules: u32 = 461; +pub const __NR_mseal: u32 = 462; +pub const __NR_setxattrat: u32 = 463; +pub const __NR_getxattrat: u32 = 464; +pub const __NR_listxattrat: u32 = 465; +pub const __NR_removexattrat: u32 = 466; +pub const __NR_open_tree_attr: u32 = 467; +pub const WNOHANG: u32 = 1; +pub const WUNTRACED: u32 = 2; +pub const WSTOPPED: u32 = 2; +pub const WEXITED: u32 = 4; +pub const WCONTINUED: u32 = 8; +pub const WNOWAIT: u32 = 16777216; +pub const __WNOTHREAD: u32 = 536870912; +pub const __WALL: u32 = 1073741824; +pub const __WCLONE: u32 = 2147483648; +pub const P_ALL: u32 = 0; +pub const P_PID: u32 = 1; +pub const P_PGID: u32 = 2; +pub const P_PIDFD: u32 = 3; +pub const XATTR_CREATE: u32 = 1; +pub const XATTR_REPLACE: u32 = 2; +pub const XATTR_OS2_PREFIX: &[u8; 5] = b"os2.\0"; +pub const XATTR_MAC_OSX_PREFIX: &[u8; 5] = b"osx.\0"; +pub const XATTR_BTRFS_PREFIX: &[u8; 7] = b"btrfs.\0"; +pub const XATTR_HURD_PREFIX: &[u8; 5] = b"gnu.\0"; +pub const XATTR_SECURITY_PREFIX: &[u8; 10] = b"security.\0"; +pub const XATTR_SYSTEM_PREFIX: &[u8; 8] = b"system.\0"; +pub const XATTR_TRUSTED_PREFIX: &[u8; 9] = b"trusted.\0"; +pub const XATTR_USER_PREFIX: &[u8; 6] = b"user.\0"; +pub const XATTR_EVM_SUFFIX: &[u8; 4] = b"evm\0"; +pub const XATTR_NAME_EVM: &[u8; 13] = b"security.evm\0"; +pub const XATTR_IMA_SUFFIX: &[u8; 4] = b"ima\0"; +pub const XATTR_NAME_IMA: &[u8; 13] = b"security.ima\0"; +pub const XATTR_SELINUX_SUFFIX: &[u8; 8] = b"selinux\0"; +pub const XATTR_NAME_SELINUX: &[u8; 17] = b"security.selinux\0"; +pub const XATTR_SMACK_SUFFIX: &[u8; 8] = b"SMACK64\0"; +pub const XATTR_SMACK_IPIN: &[u8; 12] = b"SMACK64IPIN\0"; +pub const XATTR_SMACK_IPOUT: &[u8; 13] = b"SMACK64IPOUT\0"; +pub const XATTR_SMACK_EXEC: &[u8; 12] = b"SMACK64EXEC\0"; +pub const XATTR_SMACK_TRANSMUTE: &[u8; 17] = b"SMACK64TRANSMUTE\0"; +pub const XATTR_SMACK_MMAP: &[u8; 12] = b"SMACK64MMAP\0"; +pub const XATTR_NAME_SMACK: &[u8; 17] = b"security.SMACK64\0"; +pub const XATTR_NAME_SMACKIPIN: &[u8; 21] = b"security.SMACK64IPIN\0"; +pub const XATTR_NAME_SMACKIPOUT: &[u8; 22] = b"security.SMACK64IPOUT\0"; +pub const XATTR_NAME_SMACKEXEC: &[u8; 21] = b"security.SMACK64EXEC\0"; +pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26] = b"security.SMACK64TRANSMUTE\0"; +pub const XATTR_NAME_SMACKMMAP: &[u8; 21] = b"security.SMACK64MMAP\0"; +pub const XATTR_APPARMOR_SUFFIX: &[u8; 9] = b"apparmor\0"; +pub const XATTR_NAME_APPARMOR: &[u8; 18] = b"security.apparmor\0"; +pub const XATTR_CAPS_SUFFIX: &[u8; 11] = b"capability\0"; +pub const XATTR_NAME_CAPS: &[u8; 20] = b"security.capability\0"; +pub const XATTR_BPF_LSM_SUFFIX: &[u8; 5] = b"bpf.\0"; +pub const XATTR_NAME_BPF_LSM: &[u8; 14] = b"security.bpf.\0"; +pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17] = b"posix_acl_access\0"; +pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24] = b"system.posix_acl_access\0"; +pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18] = b"posix_acl_default\0"; +pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25] = b"system.posix_acl_default\0"; +pub const MFD_CLOEXEC: u32 = 1; +pub const MFD_ALLOW_SEALING: u32 = 2; +pub const MFD_HUGETLB: u32 = 4; +pub const MFD_NOEXEC_SEAL: u32 = 8; +pub const MFD_EXEC: u32 = 16; +pub const MFD_HUGE_SHIFT: u32 = 26; +pub const MFD_HUGE_MASK: u32 = 63; +pub const MFD_HUGE_64KB: u32 = 1073741824; +pub const MFD_HUGE_512KB: u32 = 1275068416; +pub const MFD_HUGE_1MB: u32 = 1342177280; +pub const MFD_HUGE_2MB: u32 = 1409286144; +pub const MFD_HUGE_8MB: u32 = 1543503872; +pub const MFD_HUGE_16MB: u32 = 1610612736; +pub const MFD_HUGE_32MB: u32 = 1677721600; +pub const MFD_HUGE_256MB: u32 = 1879048192; +pub const MFD_HUGE_512MB: u32 = 1946157056; +pub const MFD_HUGE_1GB: u32 = 2013265920; +pub const MFD_HUGE_2GB: u32 = 2080374784; +pub const MFD_HUGE_16GB: u32 = 2281701376; +pub const TFD_TIMER_ABSTIME: u32 = 1; +pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; +pub const TFD_CLOEXEC: u32 = 524288; +pub const TFD_NONBLOCK: u32 = 2048; +pub const USERFAULTFD_IOC: u32 = 170; +pub const _UFFDIO_REGISTER: u32 = 0; +pub const _UFFDIO_UNREGISTER: u32 = 1; +pub const _UFFDIO_WAKE: u32 = 2; +pub const _UFFDIO_COPY: u32 = 3; +pub const _UFFDIO_ZEROPAGE: u32 = 4; +pub const _UFFDIO_MOVE: u32 = 5; +pub const _UFFDIO_WRITEPROTECT: u32 = 6; +pub const _UFFDIO_CONTINUE: u32 = 7; +pub const _UFFDIO_POISON: u32 = 8; +pub const _UFFDIO_API: u32 = 63; +pub const UFFDIO: u32 = 170; +pub const UFFD_EVENT_PAGEFAULT: u32 = 18; +pub const UFFD_EVENT_FORK: u32 = 19; +pub const UFFD_EVENT_REMAP: u32 = 20; +pub const UFFD_EVENT_REMOVE: u32 = 21; +pub const UFFD_EVENT_UNMAP: u32 = 22; +pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; +pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; +pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; +pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; +pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; +pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; +pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; +pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; +pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; +pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; +pub const UFFD_FEATURE_SIGBUS: u32 = 128; +pub const UFFD_FEATURE_THREAD_ID: u32 = 256; +pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; +pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; +pub const UFFD_FEATURE_EXACT_ADDRESS: u32 = 2048; +pub const UFFD_FEATURE_WP_HUGETLBFS_SHMEM: u32 = 4096; +pub const UFFD_FEATURE_WP_UNPOPULATED: u32 = 8192; +pub const UFFD_FEATURE_POISON: u32 = 16384; +pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; +pub const UFFD_FEATURE_MOVE: u32 = 65536; +pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const DT_UNKNOWN: u32 = 0; +pub const DT_FIFO: u32 = 1; +pub const DT_CHR: u32 = 2; +pub const DT_DIR: u32 = 4; +pub const DT_BLK: u32 = 6; +pub const DT_REG: u32 = 8; +pub const DT_LNK: u32 = 10; +pub const DT_SOCK: u32 = 12; +pub const STAT_HAVE_NSEC: u32 = 1; +pub const F_OK: u32 = 0; +pub const R_OK: u32 = 4; +pub const W_OK: u32 = 2; +pub const X_OK: u32 = 1; +pub const UTIME_NOW: u32 = 1073741823; +pub const UTIME_OMIT: u32 = 1073741822; +pub const MNT_FORCE: u32 = 1; +pub const MNT_DETACH: u32 = 2; +pub const MNT_EXPIRE: u32 = 4; +pub const UMOUNT_NOFOLLOW: u32 = 8; +pub const UMOUNT_UNUSED: u32 = 2147483648; +pub const STDIN_FILENO: u32 = 0; +pub const STDOUT_FILENO: u32 = 1; +pub const STDERR_FILENO: u32 = 2; +pub const RWF_HIPRI: u32 = 1; +pub const RWF_DSYNC: u32 = 2; +pub const RWF_SYNC: u32 = 4; +pub const RWF_NOWAIT: u32 = 8; +pub const RWF_APPEND: u32 = 16; +pub const EFD_SEMAPHORE: u32 = 1; +pub const EFD_CLOEXEC: u32 = 524288; +pub const EFD_NONBLOCK: u32 = 2048; +pub const EPOLLIN: u32 = 1; +pub const EPOLLPRI: u32 = 2; +pub const EPOLLOUT: u32 = 4; +pub const EPOLLERR: u32 = 8; +pub const EPOLLHUP: u32 = 16; +pub const EPOLLNVAL: u32 = 32; +pub const EPOLLRDNORM: u32 = 64; +pub const EPOLLRDBAND: u32 = 128; +pub const EPOLLWRNORM: u32 = 256; +pub const EPOLLWRBAND: u32 = 512; +pub const EPOLLMSG: u32 = 1024; +pub const EPOLLRDHUP: u32 = 8192; +pub const EPOLLEXCLUSIVE: u32 = 268435456; +pub const EPOLLWAKEUP: u32 = 536870912; +pub const EPOLLONESHOT: u32 = 1073741824; +pub const EPOLLET: u32 = 2147483648; +pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336; +pub const TFD_CREATE_FLAGS: u32 = 526336; +pub const TFD_SETTIME_FLAGS: u32 = 1; +pub const UFFD_API: u32 = 170; +pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; +pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; +pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; +pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; +pub const UFFDIO_COPY_MODE_WP: u32 = 2; +pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; +pub const SPLICE_F_MOVE: u32 = 1; +pub const SPLICE_F_NONBLOCK: u32 = 2; +pub const SPLICE_F_MORE: u32 = 4; +pub const SPLICE_F_GIFT: u32 = 8; +pub const _NSIG: u32 = 64; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum fsconfig_command { +FSCONFIG_SET_FLAG = 0, +FSCONFIG_SET_STRING = 1, +FSCONFIG_SET_BINARY = 2, +FSCONFIG_SET_PATH = 3, +FSCONFIG_SET_PATH_EMPTY = 4, +FSCONFIG_SET_FD = 5, +FSCONFIG_CMD_CREATE = 6, +FSCONFIG_CMD_RECONFIGURE = 7, +FSCONFIG_CMD_CREATE_EXCL = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum procmap_query_flags { +PROCMAP_QUERY_VMA_READABLE = 1, +PROCMAP_QUERY_VMA_WRITABLE = 2, +PROCMAP_QUERY_VMA_EXECUTABLE = 4, +PROCMAP_QUERY_VMA_SHARED = 8, +PROCMAP_QUERY_COVERING_OR_NEXT_VMA = 16, +PROCMAP_QUERY_FILE_BACKED_VMA = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum membarrier_cmd { +MEMBARRIER_CMD_QUERY = 0, +MEMBARRIER_CMD_GLOBAL = 1, +MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, +MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, +MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, +MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, +MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, +MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, +MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, +MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, +MEMBARRIER_CMD_GET_REGISTRATIONS = 512, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum membarrier_cmd_flag { +MEMBARRIER_CMD_FLAG_CPU = 1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __vector128__bindgen_ty_1 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1, +pub u: [__u32; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { +pub version: __u8, +pub v1: fscrypt_policy_v1, +pub v2: fscrypt_policy_v2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_key_specifier__bindgen_ty_1 { +pub __reserved: [__u8; 32usize], +pub descriptor: [__u8; 8usize], +pub identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union sigaction__bindgen_ty_1 { +pub _sa_handler: __sighandler_t, +pub _sa_sigaction: ::core::option::Option, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union sigval { +pub sival_int: crate::ctypes::c_int, +pub sival_ptr: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __sifields { +pub _kill: __sifields__bindgen_ty_1, +pub _timer: __sifields__bindgen_ty_2, +pub _rt: __sifields__bindgen_ty_3, +pub _sigchld: __sifields__bindgen_ty_4, +pub _sigfault: __sifields__bindgen_ty_5, +pub _sigpoll: __sifields__bindgen_ty_6, +pub _sigsys: __sifields__bindgen_ty_7, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __sifields__bindgen_ty_5__bindgen_ty_1 { +pub _trapno: crate::ctypes::c_int, +pub _addr_lsb: crate::ctypes::c_short, +pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, +pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, +pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union siginfo__bindgen_ty_1 { +pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, +pub _si_pad: [crate::ctypes::c_int; 32usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union sigevent__bindgen_ty_1 { +pub _pad: [crate::ctypes::c_int; 12usize], +pub _tid: crate::ctypes::c_int, +pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union uffd_msg__bindgen_ty_1 { +pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, +pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, +pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, +pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, +pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { +pub ptid: __u32, +} +impl __BindgenBitfieldUnit { +#[inline] +pub const fn new(storage: Storage) -> Self { +Self { storage } +} +} +impl __BindgenBitfieldUnit +where +Storage: AsRef<[u8]> + AsMut<[u8]>, +{ +#[inline] +fn extract_bit(byte: u8, index: usize) -> bool { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +byte & mask == mask +} +#[inline] +pub fn get_bit(&self, index: usize) -> bool { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = self.storage.as_ref()[byte_index]; +Self::extract_bit(byte, index) +} +#[inline] +pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; +Self::extract_bit(byte, index) +} +#[inline] +fn change_bit(byte: u8, index: usize, val: bool) -> u8 { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +if val { +byte | mask +} else { +byte & !mask +} +} +#[inline] +pub fn set_bit(&mut self, index: usize, val: bool) { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = &mut self.storage.as_mut()[byte_index]; +*byte = Self::change_bit(*byte, index, val); +} +#[inline] +pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; +} +#[inline] +pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if self.get_bit(i + bit_offset) { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +self.set_bit(index + bit_offset, val_bit_is_set); +} +} +#[inline] +pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +} +} +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl membarrier_cmd { +pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; +} +impl user_desc { +#[inline] +pub fn seg_32bit(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn contents(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +} +#[inline] +pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 2u8, val as u64) +} +} +#[inline] +pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +} +#[inline] +pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +} +} +#[inline] +pub fn read_exec_only(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +} +#[inline] +pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +} +} +#[inline] +pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +} +#[inline] +pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +} +} +#[inline] +pub fn seg_not_present(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +} +#[inline] +pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(5usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +} +} +#[inline] +pub fn useable(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +} +#[inline] +pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(6usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; +seg_32bit as u64 +}); +__bindgen_bitfield_unit.set(1usize, 2u8, { +let contents: u32 = unsafe { ::core::mem::transmute(contents) }; +contents as u64 +}); +__bindgen_bitfield_unit.set(3usize, 1u8, { +let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; +read_exec_only as u64 +}); +__bindgen_bitfield_unit.set(4usize, 1u8, { +let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; +limit_in_pages as u64 +}); +__bindgen_bitfield_unit.set(5usize, 1u8, { +let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; +seg_not_present as u64 +}); +__bindgen_bitfield_unit.set(6usize, 1u8, { +let useable: u32 = unsafe { ::core::mem::transmute(useable) }; +useable as u64 +}); +__bindgen_bitfield_unit +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/if_arp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/if_arp.rs new file mode 100644 index 0000000000000000000000000000000000000000..ed3578eadd1a424593e8d12480f49113e0948fbe --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/if_arp.rs @@ -0,0 +1,2811 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type addr_t = crate::ctypes::c_ulong; +pub type saddr_t = crate::ctypes::c_long; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_ulong; +pub type __kernel_ssize_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_ino_t = crate::ctypes::c_uint; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_sigset_t = crate::ctypes::c_ulong; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_sa_family_t = crate::ctypes::c_ushort; +#[repr(C, packed(4))] +#[derive(Copy, Clone)] +pub struct __vector128 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __vector128__bindgen_ty_1__bindgen_ty_1 { +pub high: __u64, +pub low: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __kernel_sockaddr_storage { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { +pub ss_family: __kernel_sa_family_t, +pub __data: [crate::ctypes::c_char; 126usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sockaddr { +pub __storage: __kernel_sockaddr_storage, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sync_serial_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct te1_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +pub slot_map: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct raw_hdlc_proto { +pub encoding: crate::ctypes::c_ushort, +pub parity: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto { +pub t391: crate::ctypes::c_uint, +pub t392: crate::ctypes::c_uint, +pub n391: crate::ctypes::c_uint, +pub n392: crate::ctypes::c_uint, +pub n393: crate::ctypes::c_uint, +pub lmi: crate::ctypes::c_ushort, +pub dce: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc { +pub dlci: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc_info { +pub dlci: crate::ctypes::c_uint, +pub master: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cisco_proto { +pub interval: crate::ctypes::c_uint, +pub timeout: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct x25_hdlc_proto { +pub dce: crate::ctypes::c_ushort, +pub modulo: crate::ctypes::c_uint, +pub window: crate::ctypes::c_uint, +pub t1: crate::ctypes::c_uint, +pub t2: crate::ctypes::c_uint, +pub n2: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifmap { +pub mem_start: crate::ctypes::c_ulong, +pub mem_end: crate::ctypes::c_ulong, +pub base_addr: crate::ctypes::c_ushort, +pub irq: crate::ctypes::c_uchar, +pub dma: crate::ctypes::c_uchar, +pub port: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct if_settings { +pub type_: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +pub ifs_ifsu: if_settings__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifreq { +pub ifr_ifrn: ifreq__bindgen_ty_1, +pub ifr_ifru: ifreq__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifconf { +pub ifc_len: crate::ctypes::c_int, +pub ifc_ifcu: ifconf__bindgen_ty_1, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct ethhdr { +pub h_dest: [crate::ctypes::c_uchar; 6usize], +pub h_source: [crate::ctypes::c_uchar; 6usize], +pub h_proto: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_pkt { +pub spkt_family: crate::ctypes::c_ushort, +pub spkt_device: [crate::ctypes::c_uchar; 14usize], +pub spkt_protocol: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_ll { +pub sll_family: crate::ctypes::c_ushort, +pub sll_protocol: __be16, +pub sll_ifindex: crate::ctypes::c_int, +pub sll_hatype: crate::ctypes::c_ushort, +pub sll_pkttype: crate::ctypes::c_uchar, +pub sll_halen: crate::ctypes::c_uchar, +pub sll_addr: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats_v3 { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +pub tp_freeze_q_cnt: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_rollover_stats { +pub tp_all: __u64, +pub tp_huge: __u64, +pub tp_failed: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_auxdata { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr { +pub tp_status: crate::ctypes::c_ulong, +pub tp_len: crate::ctypes::c_uint, +pub tp_snaplen: crate::ctypes::c_uint, +pub tp_mac: crate::ctypes::c_ushort, +pub tp_net: crate::ctypes::c_ushort, +pub tp_sec: crate::ctypes::c_uint, +pub tp_usec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket2_hdr { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +pub tp_padding: [__u8; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr_variant1 { +pub tp_rxhash: __u32, +pub tp_vlan_tci: __u32, +pub tp_vlan_tpid: __u16, +pub tp_padding: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket3_hdr { +pub tp_next_offset: __u32, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_snaplen: __u32, +pub tp_len: __u32, +pub tp_status: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub __bindgen_anon_1: tpacket3_hdr__bindgen_ty_1, +pub tp_padding: [__u8; 8usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_bd_ts { +pub ts_sec: crate::ctypes::c_uint, +pub __bindgen_anon_1: tpacket_bd_ts__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_hdr_v1 { +pub block_status: __u32, +pub num_pkts: __u32, +pub offset_to_first_pkt: __u32, +pub blk_len: __u32, +pub seq_num: __u64, +pub ts_first_pkt: tpacket_bd_ts, +pub ts_last_pkt: tpacket_bd_ts, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_block_desc { +pub version: __u32, +pub offset_to_priv: __u32, +pub hdr: tpacket_bd_header_u, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req3 { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +pub tp_retire_blk_tov: crate::ctypes::c_uint, +pub tp_sizeof_priv: crate::ctypes::c_uint, +pub tp_feature_req_word: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct packet_mreq { +pub mr_ifindex: crate::ctypes::c_int, +pub mr_type: crate::ctypes::c_ushort, +pub mr_alen: crate::ctypes::c_ushort, +pub mr_address: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fanout_args { +pub type_flags: __u16, +pub id: __u16, +pub max_num_members: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_nl { +pub nl_family: __kernel_sa_family_t, +pub nl_pad: crate::ctypes::c_ushort, +pub nl_pid: __u32, +pub nl_groups: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsghdr { +pub nlmsg_len: __u32, +pub nlmsg_type: __u16, +pub nlmsg_flags: __u16, +pub nlmsg_seq: __u32, +pub nlmsg_pid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsgerr { +pub error: crate::ctypes::c_int, +pub msg: nlmsghdr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_pktinfo { +pub group: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_req { +pub nm_block_size: crate::ctypes::c_uint, +pub nm_block_nr: crate::ctypes::c_uint, +pub nm_frame_size: crate::ctypes::c_uint, +pub nm_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_hdr { +pub nm_status: crate::ctypes::c_uint, +pub nm_len: crate::ctypes::c_uint, +pub nm_group: __u32, +pub nm_pid: __u32, +pub nm_uid: __u32, +pub nm_gid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlattr { +pub nla_len: __u16, +pub nla_type: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nla_bitfield32 { +pub value: __u32, +pub selector: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats { +pub rx_packets: __u32, +pub tx_packets: __u32, +pub rx_bytes: __u32, +pub tx_bytes: __u32, +pub rx_errors: __u32, +pub tx_errors: __u32, +pub rx_dropped: __u32, +pub tx_dropped: __u32, +pub multicast: __u32, +pub collisions: __u32, +pub rx_length_errors: __u32, +pub rx_over_errors: __u32, +pub rx_crc_errors: __u32, +pub rx_frame_errors: __u32, +pub rx_fifo_errors: __u32, +pub rx_missed_errors: __u32, +pub tx_aborted_errors: __u32, +pub tx_carrier_errors: __u32, +pub tx_fifo_errors: __u32, +pub tx_heartbeat_errors: __u32, +pub tx_window_errors: __u32, +pub rx_compressed: __u32, +pub tx_compressed: __u32, +pub rx_nohandler: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +pub collisions: __u64, +pub rx_length_errors: __u64, +pub rx_over_errors: __u64, +pub rx_crc_errors: __u64, +pub rx_frame_errors: __u64, +pub rx_fifo_errors: __u64, +pub rx_missed_errors: __u64, +pub tx_aborted_errors: __u64, +pub tx_carrier_errors: __u64, +pub tx_fifo_errors: __u64, +pub tx_heartbeat_errors: __u64, +pub tx_window_errors: __u64, +pub rx_compressed: __u64, +pub tx_compressed: __u64, +pub rx_nohandler: __u64, +pub rx_otherhost_dropped: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_hw_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_ifmap { +pub mem_start: __u64, +pub mem_end: __u64, +pub base_addr: __u64, +pub irq: __u16, +pub dma: __u8, +pub port: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_bridge_id { +pub prio: [__u8; 2usize], +pub addr: [__u8; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_cacheinfo { +pub max_reasm_len: __u32, +pub tstamp: __u32, +pub reachable_time: __u32, +pub retrans_time: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_qos_mapping { +pub from: __u32, +pub to: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tunnel_msg { +pub family: __u8, +pub flags: __u8, +pub reserved2: __u16, +pub ifindex: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vxlan_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_geneve_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_mac { +pub vf: __u32, +pub mac: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_broadcast { +pub broadcast: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan_info { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +pub vlan_proto: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_tx_rate { +pub vf: __u32, +pub rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rate { +pub vf: __u32, +pub min_tx_rate: __u32, +pub max_tx_rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_spoofchk { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_guid { +pub vf: __u32, +pub guid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_link_state { +pub vf: __u32, +pub link_state: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rss_query_en { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_trust { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_port_vsi { +pub vsi_mgr_id: __u8, +pub vsi_type_id: [__u8; 3usize], +pub vsi_type_version: __u8, +pub pad: [__u8; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct if_stats_msg { +pub family: __u8, +pub pad1: __u8, +pub pad2: __u16, +pub ifindex: __u32, +pub filter_mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_rmnet_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct arpreq { +pub arp_pa: sockaddr, +pub arp_ha: sockaddr, +pub arp_flags: crate::ctypes::c_int, +pub arp_netmask: sockaddr, +pub arp_dev: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct arpreq_old { +pub arp_pa: sockaddr, +pub arp_ha: sockaddr, +pub arp_flags: crate::ctypes::c_int, +pub arp_netmask: sockaddr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct arphdr { +pub ar_hrd: __be16, +pub ar_pro: __be16, +pub ar_hln: crate::ctypes::c_uchar, +pub ar_pln: crate::ctypes::c_uchar, +pub ar_op: __be16, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _K_SS_MAXSIZE: u32 = 128; +pub const SOCK_SNDBUF_LOCK: u32 = 1; +pub const SOCK_RCVBUF_LOCK: u32 = 2; +pub const SOCK_BUF_LOCK_MASK: u32 = 3; +pub const SOCK_TXREHASH_DEFAULT: u32 = 255; +pub const SOCK_TXREHASH_DISABLED: u32 = 0; +pub const SOCK_TXREHASH_ENABLED: u32 = 1; +pub const IFNAMSIZ: u32 = 16; +pub const IFALIASZ: u32 = 256; +pub const ALTIFNAMSIZ: u32 = 128; +pub const GENERIC_HDLC_VERSION: u32 = 4; +pub const CLOCK_DEFAULT: u32 = 0; +pub const CLOCK_EXT: u32 = 1; +pub const CLOCK_INT: u32 = 2; +pub const CLOCK_TXINT: u32 = 3; +pub const CLOCK_TXFROMRX: u32 = 4; +pub const ENCODING_DEFAULT: u32 = 0; +pub const ENCODING_NRZ: u32 = 1; +pub const ENCODING_NRZI: u32 = 2; +pub const ENCODING_FM_MARK: u32 = 3; +pub const ENCODING_FM_SPACE: u32 = 4; +pub const ENCODING_MANCHESTER: u32 = 5; +pub const PARITY_DEFAULT: u32 = 0; +pub const PARITY_NONE: u32 = 1; +pub const PARITY_CRC16_PR0: u32 = 2; +pub const PARITY_CRC16_PR1: u32 = 3; +pub const PARITY_CRC16_PR0_CCITT: u32 = 4; +pub const PARITY_CRC16_PR1_CCITT: u32 = 5; +pub const PARITY_CRC32_PR0_CCITT: u32 = 6; +pub const PARITY_CRC32_PR1_CCITT: u32 = 7; +pub const LMI_DEFAULT: u32 = 0; +pub const LMI_NONE: u32 = 1; +pub const LMI_ANSI: u32 = 2; +pub const LMI_CCITT: u32 = 3; +pub const LMI_CISCO: u32 = 4; +pub const IF_GET_IFACE: u32 = 1; +pub const IF_GET_PROTO: u32 = 2; +pub const IF_IFACE_V35: u32 = 4096; +pub const IF_IFACE_V24: u32 = 4097; +pub const IF_IFACE_X21: u32 = 4098; +pub const IF_IFACE_T1: u32 = 4099; +pub const IF_IFACE_E1: u32 = 4100; +pub const IF_IFACE_SYNC_SERIAL: u32 = 4101; +pub const IF_IFACE_X21D: u32 = 4102; +pub const IF_PROTO_HDLC: u32 = 8192; +pub const IF_PROTO_PPP: u32 = 8193; +pub const IF_PROTO_CISCO: u32 = 8194; +pub const IF_PROTO_FR: u32 = 8195; +pub const IF_PROTO_FR_ADD_PVC: u32 = 8196; +pub const IF_PROTO_FR_DEL_PVC: u32 = 8197; +pub const IF_PROTO_X25: u32 = 8198; +pub const IF_PROTO_HDLC_ETH: u32 = 8199; +pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200; +pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201; +pub const IF_PROTO_FR_PVC: u32 = 8202; +pub const IF_PROTO_FR_ETH_PVC: u32 = 8203; +pub const IF_PROTO_RAW: u32 = 8204; +pub const IFHWADDRLEN: u32 = 6; +pub const ETH_ALEN: u32 = 6; +pub const ETH_TLEN: u32 = 2; +pub const ETH_HLEN: u32 = 14; +pub const ETH_ZLEN: u32 = 60; +pub const ETH_DATA_LEN: u32 = 1500; +pub const ETH_FRAME_LEN: u32 = 1514; +pub const ETH_FCS_LEN: u32 = 4; +pub const ETH_MIN_MTU: u32 = 68; +pub const ETH_MAX_MTU: u32 = 65535; +pub const ETH_P_LOOP: u32 = 96; +pub const ETH_P_PUP: u32 = 512; +pub const ETH_P_PUPAT: u32 = 513; +pub const ETH_P_TSN: u32 = 8944; +pub const ETH_P_ERSPAN2: u32 = 8939; +pub const ETH_P_IP: u32 = 2048; +pub const ETH_P_X25: u32 = 2053; +pub const ETH_P_ARP: u32 = 2054; +pub const ETH_P_BPQ: u32 = 2303; +pub const ETH_P_IEEEPUP: u32 = 2560; +pub const ETH_P_IEEEPUPAT: u32 = 2561; +pub const ETH_P_BATMAN: u32 = 17157; +pub const ETH_P_DEC: u32 = 24576; +pub const ETH_P_DNA_DL: u32 = 24577; +pub const ETH_P_DNA_RC: u32 = 24578; +pub const ETH_P_DNA_RT: u32 = 24579; +pub const ETH_P_LAT: u32 = 24580; +pub const ETH_P_DIAG: u32 = 24581; +pub const ETH_P_CUST: u32 = 24582; +pub const ETH_P_SCA: u32 = 24583; +pub const ETH_P_TEB: u32 = 25944; +pub const ETH_P_RARP: u32 = 32821; +pub const ETH_P_ATALK: u32 = 32923; +pub const ETH_P_AARP: u32 = 33011; +pub const ETH_P_8021Q: u32 = 33024; +pub const ETH_P_ERSPAN: u32 = 35006; +pub const ETH_P_IPX: u32 = 33079; +pub const ETH_P_IPV6: u32 = 34525; +pub const ETH_P_PAUSE: u32 = 34824; +pub const ETH_P_SLOW: u32 = 34825; +pub const ETH_P_WCCP: u32 = 34878; +pub const ETH_P_MPLS_UC: u32 = 34887; +pub const ETH_P_MPLS_MC: u32 = 34888; +pub const ETH_P_ATMMPOA: u32 = 34892; +pub const ETH_P_PPP_DISC: u32 = 34915; +pub const ETH_P_PPP_SES: u32 = 34916; +pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_ATMFATE: u32 = 34948; +pub const ETH_P_PAE: u32 = 34958; +pub const ETH_P_PROFINET: u32 = 34962; +pub const ETH_P_REALTEK: u32 = 34969; +pub const ETH_P_AOE: u32 = 34978; +pub const ETH_P_ETHERCAT: u32 = 34980; +pub const ETH_P_8021AD: u32 = 34984; +pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_PREAUTH: u32 = 35015; +pub const ETH_P_TIPC: u32 = 35018; +pub const ETH_P_LLDP: u32 = 35020; +pub const ETH_P_MRP: u32 = 35043; +pub const ETH_P_MACSEC: u32 = 35045; +pub const ETH_P_8021AH: u32 = 35047; +pub const ETH_P_MVRP: u32 = 35061; +pub const ETH_P_1588: u32 = 35063; +pub const ETH_P_NCSI: u32 = 35064; +pub const ETH_P_PRP: u32 = 35067; +pub const ETH_P_CFM: u32 = 35074; +pub const ETH_P_FCOE: u32 = 35078; +pub const ETH_P_IBOE: u32 = 35093; +pub const ETH_P_TDLS: u32 = 35085; +pub const ETH_P_FIP: u32 = 35092; +pub const ETH_P_80221: u32 = 35095; +pub const ETH_P_HSR: u32 = 35119; +pub const ETH_P_NSH: u32 = 35151; +pub const ETH_P_LOOPBACK: u32 = 36864; +pub const ETH_P_QINQ1: u32 = 37120; +pub const ETH_P_QINQ2: u32 = 37376; +pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_EDSA: u32 = 56026; +pub const ETH_P_DSA_8021Q: u32 = 56027; +pub const ETH_P_DSA_A5PSW: u32 = 57345; +pub const ETH_P_IFE: u32 = 60734; +pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_802_3_MIN: u32 = 1536; +pub const ETH_P_802_3: u32 = 1; +pub const ETH_P_AX25: u32 = 2; +pub const ETH_P_ALL: u32 = 3; +pub const ETH_P_802_2: u32 = 4; +pub const ETH_P_SNAP: u32 = 5; +pub const ETH_P_DDCMP: u32 = 6; +pub const ETH_P_WAN_PPP: u32 = 7; +pub const ETH_P_PPP_MP: u32 = 8; +pub const ETH_P_LOCALTALK: u32 = 9; +pub const ETH_P_CAN: u32 = 12; +pub const ETH_P_CANFD: u32 = 13; +pub const ETH_P_CANXL: u32 = 14; +pub const ETH_P_PPPTALK: u32 = 16; +pub const ETH_P_TR_802_2: u32 = 17; +pub const ETH_P_MOBITEX: u32 = 21; +pub const ETH_P_CONTROL: u32 = 22; +pub const ETH_P_IRDA: u32 = 23; +pub const ETH_P_ECONET: u32 = 24; +pub const ETH_P_HDLC: u32 = 25; +pub const ETH_P_ARCNET: u32 = 26; +pub const ETH_P_DSA: u32 = 27; +pub const ETH_P_TRAILER: u32 = 28; +pub const ETH_P_PHONET: u32 = 245; +pub const ETH_P_IEEE802154: u32 = 246; +pub const ETH_P_CAIF: u32 = 247; +pub const ETH_P_XDSA: u32 = 248; +pub const ETH_P_MAP: u32 = 249; +pub const ETH_P_MCTP: u32 = 250; +pub const __BIG_ENDIAN: u32 = 4321; +pub const PACKET_HOST: u32 = 0; +pub const PACKET_BROADCAST: u32 = 1; +pub const PACKET_MULTICAST: u32 = 2; +pub const PACKET_OTHERHOST: u32 = 3; +pub const PACKET_OUTGOING: u32 = 4; +pub const PACKET_LOOPBACK: u32 = 5; +pub const PACKET_USER: u32 = 6; +pub const PACKET_KERNEL: u32 = 7; +pub const PACKET_FASTROUTE: u32 = 6; +pub const PACKET_ADD_MEMBERSHIP: u32 = 1; +pub const PACKET_DROP_MEMBERSHIP: u32 = 2; +pub const PACKET_RECV_OUTPUT: u32 = 3; +pub const PACKET_RX_RING: u32 = 5; +pub const PACKET_STATISTICS: u32 = 6; +pub const PACKET_COPY_THRESH: u32 = 7; +pub const PACKET_AUXDATA: u32 = 8; +pub const PACKET_ORIGDEV: u32 = 9; +pub const PACKET_VERSION: u32 = 10; +pub const PACKET_HDRLEN: u32 = 11; +pub const PACKET_RESERVE: u32 = 12; +pub const PACKET_TX_RING: u32 = 13; +pub const PACKET_LOSS: u32 = 14; +pub const PACKET_VNET_HDR: u32 = 15; +pub const PACKET_TX_TIMESTAMP: u32 = 16; +pub const PACKET_TIMESTAMP: u32 = 17; +pub const PACKET_FANOUT: u32 = 18; +pub const PACKET_TX_HAS_OFF: u32 = 19; +pub const PACKET_QDISC_BYPASS: u32 = 20; +pub const PACKET_ROLLOVER_STATS: u32 = 21; +pub const PACKET_FANOUT_DATA: u32 = 22; +pub const PACKET_IGNORE_OUTGOING: u32 = 23; +pub const PACKET_VNET_HDR_SZ: u32 = 24; +pub const PACKET_FANOUT_HASH: u32 = 0; +pub const PACKET_FANOUT_LB: u32 = 1; +pub const PACKET_FANOUT_CPU: u32 = 2; +pub const PACKET_FANOUT_ROLLOVER: u32 = 3; +pub const PACKET_FANOUT_RND: u32 = 4; +pub const PACKET_FANOUT_QM: u32 = 5; +pub const PACKET_FANOUT_CBPF: u32 = 6; +pub const PACKET_FANOUT_EBPF: u32 = 7; +pub const PACKET_FANOUT_FLAG_ROLLOVER: u32 = 4096; +pub const PACKET_FANOUT_FLAG_UNIQUEID: u32 = 8192; +pub const PACKET_FANOUT_FLAG_IGNORE_OUTGOING: u32 = 16384; +pub const PACKET_FANOUT_FLAG_DEFRAG: u32 = 32768; +pub const TP_STATUS_KERNEL: u32 = 0; +pub const TP_STATUS_USER: u32 = 1; +pub const TP_STATUS_COPY: u32 = 2; +pub const TP_STATUS_LOSING: u32 = 4; +pub const TP_STATUS_CSUMNOTREADY: u32 = 8; +pub const TP_STATUS_VLAN_VALID: u32 = 16; +pub const TP_STATUS_BLK_TMO: u32 = 32; +pub const TP_STATUS_VLAN_TPID_VALID: u32 = 64; +pub const TP_STATUS_CSUM_VALID: u32 = 128; +pub const TP_STATUS_GSO_TCP: u32 = 256; +pub const TP_STATUS_AVAILABLE: u32 = 0; +pub const TP_STATUS_SEND_REQUEST: u32 = 1; +pub const TP_STATUS_SENDING: u32 = 2; +pub const TP_STATUS_WRONG_FORMAT: u32 = 4; +pub const TP_STATUS_TS_SOFTWARE: u32 = 536870912; +pub const TP_STATUS_TS_SYS_HARDWARE: u32 = 1073741824; +pub const TP_STATUS_TS_RAW_HARDWARE: u32 = 2147483648; +pub const TP_FT_REQ_FILL_RXHASH: u32 = 1; +pub const TPACKET_ALIGNMENT: u32 = 16; +pub const PACKET_MR_MULTICAST: u32 = 0; +pub const PACKET_MR_PROMISC: u32 = 1; +pub const PACKET_MR_ALLMULTI: u32 = 2; +pub const PACKET_MR_UNICAST: u32 = 3; +pub const NETLINK_ROUTE: u32 = 0; +pub const NETLINK_UNUSED: u32 = 1; +pub const NETLINK_USERSOCK: u32 = 2; +pub const NETLINK_FIREWALL: u32 = 3; +pub const NETLINK_SOCK_DIAG: u32 = 4; +pub const NETLINK_NFLOG: u32 = 5; +pub const NETLINK_XFRM: u32 = 6; +pub const NETLINK_SELINUX: u32 = 7; +pub const NETLINK_ISCSI: u32 = 8; +pub const NETLINK_AUDIT: u32 = 9; +pub const NETLINK_FIB_LOOKUP: u32 = 10; +pub const NETLINK_CONNECTOR: u32 = 11; +pub const NETLINK_NETFILTER: u32 = 12; +pub const NETLINK_IP6_FW: u32 = 13; +pub const NETLINK_DNRTMSG: u32 = 14; +pub const NETLINK_KOBJECT_UEVENT: u32 = 15; +pub const NETLINK_GENERIC: u32 = 16; +pub const NETLINK_SCSITRANSPORT: u32 = 18; +pub const NETLINK_ECRYPTFS: u32 = 19; +pub const NETLINK_RDMA: u32 = 20; +pub const NETLINK_CRYPTO: u32 = 21; +pub const NETLINK_SMC: u32 = 22; +pub const NETLINK_INET_DIAG: u32 = 4; +pub const MAX_LINKS: u32 = 32; +pub const NLM_F_REQUEST: u32 = 1; +pub const NLM_F_MULTI: u32 = 2; +pub const NLM_F_ACK: u32 = 4; +pub const NLM_F_ECHO: u32 = 8; +pub const NLM_F_DUMP_INTR: u32 = 16; +pub const NLM_F_DUMP_FILTERED: u32 = 32; +pub const NLM_F_ROOT: u32 = 256; +pub const NLM_F_MATCH: u32 = 512; +pub const NLM_F_ATOMIC: u32 = 1024; +pub const NLM_F_DUMP: u32 = 768; +pub const NLM_F_REPLACE: u32 = 256; +pub const NLM_F_EXCL: u32 = 512; +pub const NLM_F_CREATE: u32 = 1024; +pub const NLM_F_APPEND: u32 = 2048; +pub const NLM_F_NONREC: u32 = 256; +pub const NLM_F_BULK: u32 = 512; +pub const NLM_F_CAPPED: u32 = 256; +pub const NLM_F_ACK_TLVS: u32 = 512; +pub const NLMSG_ALIGNTO: u32 = 4; +pub const NLMSG_NOOP: u32 = 1; +pub const NLMSG_ERROR: u32 = 2; +pub const NLMSG_DONE: u32 = 3; +pub const NLMSG_OVERRUN: u32 = 4; +pub const NLMSG_MIN_TYPE: u32 = 16; +pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; +pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; +pub const NETLINK_PKTINFO: u32 = 3; +pub const NETLINK_BROADCAST_ERROR: u32 = 4; +pub const NETLINK_NO_ENOBUFS: u32 = 5; +pub const NETLINK_RX_RING: u32 = 6; +pub const NETLINK_TX_RING: u32 = 7; +pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; +pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; +pub const NETLINK_CAP_ACK: u32 = 10; +pub const NETLINK_EXT_ACK: u32 = 11; +pub const NETLINK_GET_STRICT_CHK: u32 = 12; +pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; +pub const NET_MAJOR: u32 = 36; +pub const NLA_F_NESTED: u32 = 32768; +pub const NLA_F_NET_BYTEORDER: u32 = 16384; +pub const NLA_TYPE_MASK: i32 = -49153; +pub const NLA_ALIGNTO: u32 = 4; +pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; +pub const MACVLAN_FLAG_NODST: u32 = 2; +pub const IPVLAN_F_PRIVATE: u32 = 1; +pub const IPVLAN_F_VEPA: u32 = 2; +pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; +pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; +pub const MAX_VLAN_LIST_LEN: u32 = 1; +pub const PORT_PROFILE_MAX: u32 = 40; +pub const PORT_UUID_MAX: u32 = 16; +pub const PORT_SELF_VF: i32 = -1; +pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; +pub const XDP_FLAGS_SKB_MODE: u32 = 2; +pub const XDP_FLAGS_DRV_MODE: u32 = 4; +pub const XDP_FLAGS_HW_MODE: u32 = 8; +pub const XDP_FLAGS_REPLACE: u32 = 16; +pub const XDP_FLAGS_MODES: u32 = 14; +pub const XDP_FLAGS_MASK: u32 = 31; +pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; +pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; +pub const MAX_ADDR_LEN: u32 = 32; +pub const INIT_NETDEV_GROUP: u32 = 0; +pub const NET_NAME_UNKNOWN: u32 = 0; +pub const NET_NAME_ENUM: u32 = 1; +pub const NET_NAME_PREDICTABLE: u32 = 2; +pub const NET_NAME_USER: u32 = 3; +pub const NET_NAME_RENAMED: u32 = 4; +pub const NET_ADDR_PERM: u32 = 0; +pub const NET_ADDR_RANDOM: u32 = 1; +pub const NET_ADDR_STOLEN: u32 = 2; +pub const NET_ADDR_SET: u32 = 3; +pub const ARPHRD_NETROM: u32 = 0; +pub const ARPHRD_ETHER: u32 = 1; +pub const ARPHRD_EETHER: u32 = 2; +pub const ARPHRD_AX25: u32 = 3; +pub const ARPHRD_PRONET: u32 = 4; +pub const ARPHRD_CHAOS: u32 = 5; +pub const ARPHRD_IEEE802: u32 = 6; +pub const ARPHRD_ARCNET: u32 = 7; +pub const ARPHRD_APPLETLK: u32 = 8; +pub const ARPHRD_DLCI: u32 = 15; +pub const ARPHRD_ATM: u32 = 19; +pub const ARPHRD_METRICOM: u32 = 23; +pub const ARPHRD_IEEE1394: u32 = 24; +pub const ARPHRD_EUI64: u32 = 27; +pub const ARPHRD_INFINIBAND: u32 = 32; +pub const ARPHRD_SLIP: u32 = 256; +pub const ARPHRD_CSLIP: u32 = 257; +pub const ARPHRD_SLIP6: u32 = 258; +pub const ARPHRD_CSLIP6: u32 = 259; +pub const ARPHRD_RSRVD: u32 = 260; +pub const ARPHRD_ADAPT: u32 = 264; +pub const ARPHRD_ROSE: u32 = 270; +pub const ARPHRD_X25: u32 = 271; +pub const ARPHRD_HWX25: u32 = 272; +pub const ARPHRD_CAN: u32 = 280; +pub const ARPHRD_MCTP: u32 = 290; +pub const ARPHRD_PPP: u32 = 512; +pub const ARPHRD_CISCO: u32 = 513; +pub const ARPHRD_HDLC: u32 = 513; +pub const ARPHRD_LAPB: u32 = 516; +pub const ARPHRD_DDCMP: u32 = 517; +pub const ARPHRD_RAWHDLC: u32 = 518; +pub const ARPHRD_RAWIP: u32 = 519; +pub const ARPHRD_TUNNEL: u32 = 768; +pub const ARPHRD_TUNNEL6: u32 = 769; +pub const ARPHRD_FRAD: u32 = 770; +pub const ARPHRD_SKIP: u32 = 771; +pub const ARPHRD_LOOPBACK: u32 = 772; +pub const ARPHRD_LOCALTLK: u32 = 773; +pub const ARPHRD_FDDI: u32 = 774; +pub const ARPHRD_BIF: u32 = 775; +pub const ARPHRD_SIT: u32 = 776; +pub const ARPHRD_IPDDP: u32 = 777; +pub const ARPHRD_IPGRE: u32 = 778; +pub const ARPHRD_PIMREG: u32 = 779; +pub const ARPHRD_HIPPI: u32 = 780; +pub const ARPHRD_ASH: u32 = 781; +pub const ARPHRD_ECONET: u32 = 782; +pub const ARPHRD_IRDA: u32 = 783; +pub const ARPHRD_FCPP: u32 = 784; +pub const ARPHRD_FCAL: u32 = 785; +pub const ARPHRD_FCPL: u32 = 786; +pub const ARPHRD_FCFABRIC: u32 = 787; +pub const ARPHRD_IEEE802_TR: u32 = 800; +pub const ARPHRD_IEEE80211: u32 = 801; +pub const ARPHRD_IEEE80211_PRISM: u32 = 802; +pub const ARPHRD_IEEE80211_RADIOTAP: u32 = 803; +pub const ARPHRD_IEEE802154: u32 = 804; +pub const ARPHRD_IEEE802154_MONITOR: u32 = 805; +pub const ARPHRD_PHONET: u32 = 820; +pub const ARPHRD_PHONET_PIPE: u32 = 821; +pub const ARPHRD_CAIF: u32 = 822; +pub const ARPHRD_IP6GRE: u32 = 823; +pub const ARPHRD_NETLINK: u32 = 824; +pub const ARPHRD_6LOWPAN: u32 = 825; +pub const ARPHRD_VSOCKMON: u32 = 826; +pub const ARPHRD_VOID: u32 = 65535; +pub const ARPHRD_NONE: u32 = 65534; +pub const ARPOP_REQUEST: u32 = 1; +pub const ARPOP_REPLY: u32 = 2; +pub const ARPOP_RREQUEST: u32 = 3; +pub const ARPOP_RREPLY: u32 = 4; +pub const ARPOP_InREQUEST: u32 = 8; +pub const ARPOP_InREPLY: u32 = 9; +pub const ARPOP_NAK: u32 = 10; +pub const ATF_COM: u32 = 2; +pub const ATF_PERM: u32 = 4; +pub const ATF_PUBL: u32 = 8; +pub const ATF_USETRAILERS: u32 = 16; +pub const ATF_NETMASK: u32 = 32; +pub const ATF_DONTPUB: u32 = 64; +pub const IF_OPER_UNKNOWN: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_UNKNOWN; +pub const IF_OPER_NOTPRESENT: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_NOTPRESENT; +pub const IF_OPER_DOWN: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_DOWN; +pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_LOWERLAYERDOWN; +pub const IF_OPER_TESTING: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_TESTING; +pub const IF_OPER_DORMANT: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_DORMANT; +pub const IF_OPER_UP: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_UP; +pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_2 = _bindgen_ty_2::IF_LINK_MODE_DEFAULT; +pub const IF_LINK_MODE_DORMANT: _bindgen_ty_2 = _bindgen_ty_2::IF_LINK_MODE_DORMANT; +pub const IF_LINK_MODE_TESTING: _bindgen_ty_2 = _bindgen_ty_2::IF_LINK_MODE_TESTING; +pub const NETLINK_UNCONNECTED: _bindgen_ty_3 = _bindgen_ty_3::NETLINK_UNCONNECTED; +pub const NETLINK_CONNECTED: _bindgen_ty_3 = _bindgen_ty_3::NETLINK_CONNECTED; +pub const IFLA_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_UNSPEC; +pub const IFLA_ADDRESS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_ADDRESS; +pub const IFLA_BROADCAST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_BROADCAST; +pub const IFLA_IFNAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IFNAME; +pub const IFLA_MTU: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MTU; +pub const IFLA_LINK: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINK; +pub const IFLA_QDISC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_QDISC; +pub const IFLA_STATS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_STATS; +pub const IFLA_COST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_COST; +pub const IFLA_PRIORITY: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PRIORITY; +pub const IFLA_MASTER: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MASTER; +pub const IFLA_WIRELESS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_WIRELESS; +pub const IFLA_PROTINFO: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROTINFO; +pub const IFLA_TXQLEN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TXQLEN; +pub const IFLA_MAP: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAP; +pub const IFLA_WEIGHT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_WEIGHT; +pub const IFLA_OPERSTATE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_OPERSTATE; +pub const IFLA_LINKMODE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINKMODE; +pub const IFLA_LINKINFO: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINKINFO; +pub const IFLA_NET_NS_PID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NET_NS_PID; +pub const IFLA_IFALIAS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IFALIAS; +pub const IFLA_NUM_VF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NUM_VF; +pub const IFLA_VFINFO_LIST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_VFINFO_LIST; +pub const IFLA_STATS64: _bindgen_ty_4 = _bindgen_ty_4::IFLA_STATS64; +pub const IFLA_VF_PORTS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_VF_PORTS; +pub const IFLA_PORT_SELF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PORT_SELF; +pub const IFLA_AF_SPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_AF_SPEC; +pub const IFLA_GROUP: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GROUP; +pub const IFLA_NET_NS_FD: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NET_NS_FD; +pub const IFLA_EXT_MASK: _bindgen_ty_4 = _bindgen_ty_4::IFLA_EXT_MASK; +pub const IFLA_PROMISCUITY: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROMISCUITY; +pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NUM_TX_QUEUES; +pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NUM_RX_QUEUES; +pub const IFLA_CARRIER: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER; +pub const IFLA_PHYS_PORT_ID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PHYS_PORT_ID; +pub const IFLA_CARRIER_CHANGES: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER_CHANGES; +pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PHYS_SWITCH_ID; +pub const IFLA_LINK_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINK_NETNSID; +pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PHYS_PORT_NAME; +pub const IFLA_PROTO_DOWN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROTO_DOWN; +pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_MAX_SEGS; +pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_MAX_SIZE; +pub const IFLA_PAD: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PAD; +pub const IFLA_XDP: _bindgen_ty_4 = _bindgen_ty_4::IFLA_XDP; +pub const IFLA_EVENT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_EVENT; +pub const IFLA_NEW_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NEW_NETNSID; +pub const IFLA_IF_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IF_NETNSID; +pub const IFLA_TARGET_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IF_NETNSID; +pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER_UP_COUNT; +pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER_DOWN_COUNT; +pub const IFLA_NEW_IFINDEX: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NEW_IFINDEX; +pub const IFLA_MIN_MTU: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MIN_MTU; +pub const IFLA_MAX_MTU: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_MTU; +pub const IFLA_PROP_LIST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROP_LIST; +pub const IFLA_ALT_IFNAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_ALT_IFNAME; +pub const IFLA_PERM_ADDRESS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PERM_ADDRESS; +pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROTO_DOWN_REASON; +pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PARENT_DEV_NAME; +pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PARENT_DEV_BUS_NAME; +pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_MAX_SIZE; +pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TSO_MAX_SIZE; +pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TSO_MAX_SEGS; +pub const IFLA_ALLMULTI: _bindgen_ty_4 = _bindgen_ty_4::IFLA_ALLMULTI; +pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT; +pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE; +pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE; +pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON; +pub const IFLA_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX; +pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC; +pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_MASK; +pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_VALUE; +pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_PROTO_DOWN_REASON_CNT; +pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_VALUE; +pub const IFLA_INET_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_INET_UNSPEC; +pub const IFLA_INET_CONF: _bindgen_ty_6 = _bindgen_ty_6::IFLA_INET_CONF; +pub const __IFLA_INET_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_INET_MAX; +pub const IFLA_INET6_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_UNSPEC; +pub const IFLA_INET6_FLAGS: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_FLAGS; +pub const IFLA_INET6_CONF: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_CONF; +pub const IFLA_INET6_STATS: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_STATS; +pub const IFLA_INET6_MCAST: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_MCAST; +pub const IFLA_INET6_CACHEINFO: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_CACHEINFO; +pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_ICMP6STATS; +pub const IFLA_INET6_TOKEN: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_TOKEN; +pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_ADDR_GEN_MODE; +pub const IFLA_INET6_RA_MTU: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_RA_MTU; +pub const __IFLA_INET6_MAX: _bindgen_ty_7 = _bindgen_ty_7::__IFLA_INET6_MAX; +pub const IFLA_BR_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_UNSPEC; +pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FORWARD_DELAY; +pub const IFLA_BR_HELLO_TIME: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_HELLO_TIME; +pub const IFLA_BR_MAX_AGE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MAX_AGE; +pub const IFLA_BR_AGEING_TIME: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_AGEING_TIME; +pub const IFLA_BR_STP_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_STATE; +pub const IFLA_BR_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_PRIORITY; +pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_FILTERING; +pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_PROTOCOL; +pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_GROUP_FWD_MASK; +pub const IFLA_BR_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_ROOT_ID; +pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_BRIDGE_ID; +pub const IFLA_BR_ROOT_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_ROOT_PORT; +pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_ROOT_PATH_COST; +pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TOPOLOGY_CHANGE; +pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; +pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_HELLO_TIMER; +pub const IFLA_BR_TCN_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TCN_TIMER; +pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TOPOLOGY_CHANGE_TIMER; +pub const IFLA_BR_GC_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_GC_TIMER; +pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_GROUP_ADDR; +pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_FLUSH; +pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_ROUTER; +pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_SNOOPING; +pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERY_USE_IFADDR; +pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER; +pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_HASH_ELASTICITY; +pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_HASH_MAX; +pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_LAST_MEMBER_CNT; +pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_STARTUP_QUERY_CNT; +pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_LAST_MEMBER_INTVL; +pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_MEMBERSHIP_INTVL; +pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_INTVL; +pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERY_INTVL; +pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; +pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; +pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_NF_CALL_IPTABLES; +pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_NF_CALL_IP6TABLES; +pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_NF_CALL_ARPTABLES; +pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_DEFAULT_PVID; +pub const IFLA_BR_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_PAD; +pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_STATS_ENABLED; +pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_STATS_ENABLED; +pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_IGMP_VERSION; +pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_MLD_VERSION; +pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_STATS_PER_PORT; +pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BOOLOPT; +pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; +pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; +pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; +pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; +pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; +pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_UNSPEC; +pub const IFLA_BRPORT_STATE: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_STATE; +pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PRIORITY; +pub const IFLA_BRPORT_COST: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_COST; +pub const IFLA_BRPORT_MODE: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MODE; +pub const IFLA_BRPORT_GUARD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_GUARD; +pub const IFLA_BRPORT_PROTECT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PROTECT; +pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_FAST_LEAVE; +pub const IFLA_BRPORT_LEARNING: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_LEARNING; +pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_UNICAST_FLOOD; +pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PROXYARP; +pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_LEARNING_SYNC; +pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PROXYARP_WIFI; +pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_ROOT_ID; +pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BRIDGE_ID; +pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_DESIGNATED_PORT; +pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_DESIGNATED_COST; +pub const IFLA_BRPORT_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_ID; +pub const IFLA_BRPORT_NO: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NO; +pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; +pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_CONFIG_PENDING; +pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MESSAGE_AGE_TIMER; +pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_FORWARD_DELAY_TIMER; +pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_HOLD_TIMER; +pub const IFLA_BRPORT_FLUSH: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_FLUSH; +pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MULTICAST_ROUTER; +pub const IFLA_BRPORT_PAD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PAD; +pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_FLOOD; +pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_TO_UCAST; +pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_VLAN_TUNNEL; +pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BCAST_FLOOD; +pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_GROUP_FWD_MASK; +pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_SUPPRESS; +pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_ISOLATED; +pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_PORT; +pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MRP_RING_OPEN; +pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MRP_IN_OPEN; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; +pub const IFLA_BRPORT_LOCKED: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_LOCKED; +pub const IFLA_BRPORT_MAB: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MAB; +pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_N_GROUPS; +pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; +pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; +pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; +pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; +pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; +pub const IFLA_INFO_DATA: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_DATA; +pub const IFLA_INFO_XSTATS: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_XSTATS; +pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_SLAVE_KIND; +pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_SLAVE_DATA; +pub const __IFLA_INFO_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_INFO_MAX; +pub const IFLA_VLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_UNSPEC; +pub const IFLA_VLAN_ID: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_ID; +pub const IFLA_VLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_FLAGS; +pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_EGRESS_QOS; +pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_INGRESS_QOS; +pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_PROTOCOL; +pub const __IFLA_VLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_VLAN_MAX; +pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VLAN_QOS_UNSPEC; +pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VLAN_QOS_MAPPING; +pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VLAN_QOS_MAX; +pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_UNSPEC; +pub const IFLA_MACVLAN_MODE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MODE; +pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_FLAGS; +pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR_MODE; +pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR; +pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR_DATA; +pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR_COUNT; +pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_BC_QUEUE_LEN; +pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_BC_QUEUE_LEN_USED; +pub const IFLA_MACVLAN_BC_CUTOFF: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_BC_CUTOFF; +pub const __IFLA_MACVLAN_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_MACVLAN_MAX; +pub const IFLA_VRF_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_VRF_UNSPEC; +pub const IFLA_VRF_TABLE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_VRF_TABLE; +pub const __IFLA_VRF_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_VRF_MAX; +pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_VRF_PORT_UNSPEC; +pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_16 = _bindgen_ty_16::IFLA_VRF_PORT_TABLE; +pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_VRF_PORT_MAX; +pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_UNSPEC; +pub const IFLA_MACSEC_SCI: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_SCI; +pub const IFLA_MACSEC_PORT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_PORT; +pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ICV_LEN; +pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_CIPHER_SUITE; +pub const IFLA_MACSEC_WINDOW: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_WINDOW; +pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ENCODING_SA; +pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ENCRYPT; +pub const IFLA_MACSEC_PROTECT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_PROTECT; +pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_INC_SCI; +pub const IFLA_MACSEC_ES: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ES; +pub const IFLA_MACSEC_SCB: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_SCB; +pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_REPLAY_PROTECT; +pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_VALIDATION; +pub const IFLA_MACSEC_PAD: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_PAD; +pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_OFFLOAD; +pub const __IFLA_MACSEC_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_MACSEC_MAX; +pub const IFLA_XFRM_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_UNSPEC; +pub const IFLA_XFRM_LINK: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_LINK; +pub const IFLA_XFRM_IF_ID: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_IF_ID; +pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_COLLECT_METADATA; +pub const __IFLA_XFRM_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_XFRM_MAX; +pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::IFLA_IPVLAN_UNSPEC; +pub const IFLA_IPVLAN_MODE: _bindgen_ty_19 = _bindgen_ty_19::IFLA_IPVLAN_MODE; +pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_19 = _bindgen_ty_19::IFLA_IPVLAN_FLAGS; +pub const __IFLA_IPVLAN_MAX: _bindgen_ty_19 = _bindgen_ty_19::__IFLA_IPVLAN_MAX; +pub const IFLA_NETKIT_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_UNSPEC; +pub const IFLA_NETKIT_PEER_INFO: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_INFO; +pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PRIMARY; +pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY; +pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY; +pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB; +pub const IFLA_NETKIT_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; +pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX; +pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC; +pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_BYTES; +pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_PKTS; +pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_DROPS; +pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_BYTES; +pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_PKTS; +pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_DROPS; +pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_PAD; +pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_21 = _bindgen_ty_21::__VNIFILTER_ENTRY_STATS_MAX; +pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_START; +pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_END; +pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_GROUP; +pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_GROUP6; +pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_STATS; +pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_22 = _bindgen_ty_22::__VXLAN_VNIFILTER_ENTRY_MAX; +pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::VXLAN_VNIFILTER_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_23 = _bindgen_ty_23::VXLAN_VNIFILTER_ENTRY; +pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_23 = _bindgen_ty_23::__VXLAN_VNIFILTER_MAX; +pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UNSPEC; +pub const IFLA_VXLAN_ID: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_ID; +pub const IFLA_VXLAN_GROUP: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GROUP; +pub const IFLA_VXLAN_LINK: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LINK; +pub const IFLA_VXLAN_LOCAL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LOCAL; +pub const IFLA_VXLAN_TTL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_TTL; +pub const IFLA_VXLAN_TOS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_TOS; +pub const IFLA_VXLAN_LEARNING: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LEARNING; +pub const IFLA_VXLAN_AGEING: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_AGEING; +pub const IFLA_VXLAN_LIMIT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LIMIT; +pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_PORT_RANGE; +pub const IFLA_VXLAN_PROXY: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_PROXY; +pub const IFLA_VXLAN_RSC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_RSC; +pub const IFLA_VXLAN_L2MISS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_L2MISS; +pub const IFLA_VXLAN_L3MISS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_L3MISS; +pub const IFLA_VXLAN_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_PORT; +pub const IFLA_VXLAN_GROUP6: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GROUP6; +pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LOCAL6; +pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UDP_CSUM; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; +pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_REMCSUM_TX; +pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_REMCSUM_RX; +pub const IFLA_VXLAN_GBP: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GBP; +pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_REMCSUM_NOPARTIAL; +pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_COLLECT_METADATA; +pub const IFLA_VXLAN_LABEL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LABEL; +pub const IFLA_VXLAN_GPE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GPE; +pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_TTL_INHERIT; +pub const IFLA_VXLAN_DF: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_DF; +pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_VNIFILTER; +pub const IFLA_VXLAN_LOCALBYPASS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LOCALBYPASS; +pub const IFLA_VXLAN_LABEL_POLICY: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LABEL_POLICY; +pub const IFLA_VXLAN_RESERVED_BITS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_RESERVED_BITS; +pub const __IFLA_VXLAN_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_VXLAN_MAX; +pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UNSPEC; +pub const IFLA_GENEVE_ID: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ID; +pub const IFLA_GENEVE_REMOTE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_REMOTE; +pub const IFLA_GENEVE_TTL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_TTL; +pub const IFLA_GENEVE_TOS: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_TOS; +pub const IFLA_GENEVE_PORT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT; +pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_COLLECT_METADATA; +pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_REMOTE6; +pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UDP_CSUM; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; +pub const IFLA_GENEVE_LABEL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LABEL; +pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_TTL_INHERIT; +pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; +pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; +pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; +pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; +pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; +pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_ETHERTYPE; +pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_SRCPORT_MIN; +pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_MULTIPROTO_MODE; +pub const __IFLA_BAREUDP_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_BAREUDP_MAX; +pub const IFLA_PPP_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_PPP_UNSPEC; +pub const IFLA_PPP_DEV_FD: _bindgen_ty_27 = _bindgen_ty_27::IFLA_PPP_DEV_FD; +pub const __IFLA_PPP_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_PPP_MAX; +pub const IFLA_GTP_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_UNSPEC; +pub const IFLA_GTP_FD0: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_FD0; +pub const IFLA_GTP_FD1: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_FD1; +pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_PDP_HASHSIZE; +pub const IFLA_GTP_ROLE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_ROLE; +pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_CREATE_SOCKETS; +pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_RESTART_COUNT; +pub const IFLA_GTP_LOCAL: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_LOCAL; +pub const IFLA_GTP_LOCAL6: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_LOCAL6; +pub const __IFLA_GTP_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_GTP_MAX; +pub const IFLA_BOND_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_UNSPEC; +pub const IFLA_BOND_MODE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MODE; +pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ACTIVE_SLAVE; +pub const IFLA_BOND_MIIMON: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MIIMON; +pub const IFLA_BOND_UPDELAY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_UPDELAY; +pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_DOWNDELAY; +pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_USE_CARRIER; +pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_INTERVAL; +pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_IP_TARGET; +pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_VALIDATE; +pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_ALL_TARGETS; +pub const IFLA_BOND_PRIMARY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PRIMARY; +pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PRIMARY_RESELECT; +pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_FAIL_OVER_MAC; +pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_XMIT_HASH_POLICY; +pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_RESEND_IGMP; +pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_NUM_PEER_NOTIF; +pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ALL_SLAVES_ACTIVE; +pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MIN_LINKS; +pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LP_INTERVAL; +pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PACKETS_PER_SLAVE; +pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_LACP_RATE; +pub const IFLA_BOND_AD_SELECT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_SELECT; +pub const IFLA_BOND_AD_INFO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_INFO; +pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_ACTOR_SYS_PRIO; +pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_USER_PORT_KEY; +pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_ACTOR_SYSTEM; +pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_TLB_DYNAMIC_LB; +pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PEER_NOTIF_DELAY; +pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_LACP_ACTIVE; +pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSED_MAX; +pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_NS_IP6_TARGET; +pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_COUPLED_CONTROL; +pub const __IFLA_BOND_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_MAX; +pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_UNSPEC; +pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_AGGREGATOR; +pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_NUM_PORTS; +pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_ACTOR_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_PARTNER_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_PARTNER_MAC; +pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_BOND_AD_INFO_MAX; +pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_UNSPEC; +pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_STATE; +pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_MII_STATUS; +pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; +pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PERM_HWADDR; +pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_QUEUE_ID; +pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; +pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; +pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; +pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; +pub const __IFLA_VF_INFO_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_INFO_MAX; +pub const IFLA_VF_UNSPEC: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_UNSPEC; +pub const IFLA_VF_MAC: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_MAC; +pub const IFLA_VF_VLAN: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_VLAN; +pub const IFLA_VF_TX_RATE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_TX_RATE; +pub const IFLA_VF_SPOOFCHK: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_SPOOFCHK; +pub const IFLA_VF_LINK_STATE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_LINK_STATE; +pub const IFLA_VF_RATE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_RATE; +pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_RSS_QUERY_EN; +pub const IFLA_VF_STATS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS; +pub const IFLA_VF_TRUST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_TRUST; +pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_IB_NODE_GUID; +pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_IB_PORT_GUID; +pub const IFLA_VF_VLAN_LIST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_VLAN_LIST; +pub const IFLA_VF_BROADCAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_BROADCAST; +pub const __IFLA_VF_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_MAX; +pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_VLAN_INFO_UNSPEC; +pub const IFLA_VF_VLAN_INFO: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_VLAN_INFO; +pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_VLAN_INFO_MAX; +pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_LINK_STATE_AUTO; +pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_LINK_STATE_ENABLE; +pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_LINK_STATE_DISABLE; +pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_VF_LINK_STATE_MAX; +pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_RX_PACKETS; +pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_TX_PACKETS; +pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_RX_BYTES; +pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_TX_BYTES; +pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_BROADCAST; +pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_MULTICAST; +pub const IFLA_VF_STATS_PAD: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_PAD; +pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_RX_DROPPED; +pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_TX_DROPPED; +pub const __IFLA_VF_STATS_MAX: _bindgen_ty_36 = _bindgen_ty_36::__IFLA_VF_STATS_MAX; +pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_37 = _bindgen_ty_37::IFLA_VF_PORT_UNSPEC; +pub const IFLA_VF_PORT: _bindgen_ty_37 = _bindgen_ty_37::IFLA_VF_PORT; +pub const __IFLA_VF_PORT_MAX: _bindgen_ty_37 = _bindgen_ty_37::__IFLA_VF_PORT_MAX; +pub const IFLA_PORT_UNSPEC: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_UNSPEC; +pub const IFLA_PORT_VF: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_VF; +pub const IFLA_PORT_PROFILE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_PROFILE; +pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_VSI_TYPE; +pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_INSTANCE_UUID; +pub const IFLA_PORT_HOST_UUID: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_HOST_UUID; +pub const IFLA_PORT_REQUEST: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_REQUEST; +pub const IFLA_PORT_RESPONSE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_RESPONSE; +pub const __IFLA_PORT_MAX: _bindgen_ty_38 = _bindgen_ty_38::__IFLA_PORT_MAX; +pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_PREASSOCIATE; +pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_PREASSOCIATE_RR; +pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_ASSOCIATE; +pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_DISASSOCIATE; +pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_SUCCESS; +pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_INVALID_FORMAT; +pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_UNUSED_VTID; +pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_VTID_VIOLATION; +pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; +pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_OUT_OF_SYNC; +pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_SUCCESS; +pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_INPROGRESS; +pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_INVALID; +pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_BADSTATE; +pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_ERROR; +pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_UNSPEC; +pub const IFLA_IPOIB_PKEY: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_PKEY; +pub const IFLA_IPOIB_MODE: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_MODE; +pub const IFLA_IPOIB_UMCAST: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_UMCAST; +pub const __IFLA_IPOIB_MAX: _bindgen_ty_41 = _bindgen_ty_41::__IFLA_IPOIB_MAX; +pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_42 = _bindgen_ty_42::IPOIB_MODE_DATAGRAM; +pub const IPOIB_MODE_CONNECTED: _bindgen_ty_42 = _bindgen_ty_42::IPOIB_MODE_CONNECTED; +pub const HSR_PROTOCOL_HSR: _bindgen_ty_43 = _bindgen_ty_43::HSR_PROTOCOL_HSR; +pub const HSR_PROTOCOL_PRP: _bindgen_ty_43 = _bindgen_ty_43::HSR_PROTOCOL_PRP; +pub const HSR_PROTOCOL_MAX: _bindgen_ty_43 = _bindgen_ty_43::HSR_PROTOCOL_MAX; +pub const IFLA_HSR_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_UNSPEC; +pub const IFLA_HSR_SLAVE1: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SLAVE1; +pub const IFLA_HSR_SLAVE2: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SLAVE2; +pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_MULTICAST_SPEC; +pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SUPERVISION_ADDR; +pub const IFLA_HSR_SEQ_NR: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SEQ_NR; +pub const IFLA_HSR_VERSION: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_VERSION; +pub const IFLA_HSR_PROTOCOL: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_PROTOCOL; +pub const IFLA_HSR_INTERLINK: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_INTERLINK; +pub const __IFLA_HSR_MAX: _bindgen_ty_44 = _bindgen_ty_44::__IFLA_HSR_MAX; +pub const IFLA_STATS_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_UNSPEC; +pub const IFLA_STATS_LINK_64: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_64; +pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_XSTATS; +pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_XSTATS_SLAVE; +pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_OFFLOAD_XSTATS; +pub const IFLA_STATS_AF_SPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_AF_SPEC; +pub const __IFLA_STATS_MAX: _bindgen_ty_45 = _bindgen_ty_45::__IFLA_STATS_MAX; +pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_STATS_GETSET_UNSPEC; +pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_46 = _bindgen_ty_46::IFLA_STATS_GET_FILTERS; +pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_46 = _bindgen_ty_46::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_STATS_GETSET_MAX; +pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_47 = _bindgen_ty_47::LINK_XSTATS_TYPE_UNSPEC; +pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_47 = _bindgen_ty_47::LINK_XSTATS_TYPE_BRIDGE; +pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_47 = _bindgen_ty_47::LINK_XSTATS_TYPE_BOND; +pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_47 = _bindgen_ty_47::__LINK_XSTATS_TYPE_MAX; +pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_CPU_HIT; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_HW_S_INFO; +pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_48 = _bindgen_ty_48::__IFLA_OFFLOAD_XSTATS_MAX; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_49 = _bindgen_ty_49::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_49 = _bindgen_ty_49::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_49 = _bindgen_ty_49::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; +pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_49 = _bindgen_ty_49::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; +pub const XDP_ATTACHED_NONE: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_NONE; +pub const XDP_ATTACHED_DRV: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_DRV; +pub const XDP_ATTACHED_SKB: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_SKB; +pub const XDP_ATTACHED_HW: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_HW; +pub const XDP_ATTACHED_MULTI: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_MULTI; +pub const IFLA_XDP_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_UNSPEC; +pub const IFLA_XDP_FD: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_FD; +pub const IFLA_XDP_ATTACHED: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_ATTACHED; +pub const IFLA_XDP_FLAGS: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_FLAGS; +pub const IFLA_XDP_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_PROG_ID; +pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_DRV_PROG_ID; +pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_SKB_PROG_ID; +pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_HW_PROG_ID; +pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_EXPECTED_FD; +pub const __IFLA_XDP_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_XDP_MAX; +pub const IFLA_EVENT_NONE: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_NONE; +pub const IFLA_EVENT_REBOOT: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_REBOOT; +pub const IFLA_EVENT_FEATURES: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_FEATURES; +pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_BONDING_FAILOVER; +pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_NOTIFY_PEERS; +pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_IGMP_RESEND; +pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_BONDING_OPTIONS; +pub const IFLA_TUN_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_UNSPEC; +pub const IFLA_TUN_OWNER: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_OWNER; +pub const IFLA_TUN_GROUP: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_GROUP; +pub const IFLA_TUN_TYPE: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_TYPE; +pub const IFLA_TUN_PI: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_PI; +pub const IFLA_TUN_VNET_HDR: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_VNET_HDR; +pub const IFLA_TUN_PERSIST: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_PERSIST; +pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_MULTI_QUEUE; +pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_NUM_QUEUES; +pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_NUM_DISABLED_QUEUES; +pub const __IFLA_TUN_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_TUN_MAX; +pub const IFLA_RMNET_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_UNSPEC; +pub const IFLA_RMNET_MUX_ID: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_MUX_ID; +pub const IFLA_RMNET_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_FLAGS; +pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX; +pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC; +pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING; +pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX; +pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC; +pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; +pub const IFLA_DSA_MASTER: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; +pub const __IFLA_DSA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__IFLA_DSA_MAX; +pub const IFLA_OVPN_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::IFLA_OVPN_UNSPEC; +pub const IFLA_OVPN_MODE: _bindgen_ty_57 = _bindgen_ty_57::IFLA_OVPN_MODE; +pub const __IFLA_OVPN_MAX: _bindgen_ty_57 = _bindgen_ty_57::__IFLA_OVPN_MAX; +pub const IF_PORT_UNKNOWN: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_UNKNOWN; +pub const IF_PORT_10BASE2: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_10BASE2; +pub const IF_PORT_10BASET: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_10BASET; +pub const IF_PORT_AUI: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_AUI; +pub const IF_PORT_100BASET: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_100BASET; +pub const IF_PORT_100BASETX: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_100BASETX; +pub const IF_PORT_100BASEFX: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_100BASEFX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum net_device_flags { +IFF_UP = 1, +IFF_BROADCAST = 2, +IFF_DEBUG = 4, +IFF_LOOPBACK = 8, +IFF_POINTOPOINT = 16, +IFF_NOTRAILERS = 32, +IFF_RUNNING = 64, +IFF_NOARP = 128, +IFF_PROMISC = 256, +IFF_ALLMULTI = 512, +IFF_MASTER = 1024, +IFF_SLAVE = 2048, +IFF_MULTICAST = 4096, +IFF_PORTSEL = 8192, +IFF_AUTOMEDIA = 16384, +IFF_DYNAMIC = 32768, +IFF_LOWER_UP = 65536, +IFF_DORMANT = 131072, +IFF_ECHO = 262144, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +IF_OPER_UNKNOWN = 0, +IF_OPER_NOTPRESENT = 1, +IF_OPER_DOWN = 2, +IF_OPER_LOWERLAYERDOWN = 3, +IF_OPER_TESTING = 4, +IF_OPER_DORMANT = 5, +IF_OPER_UP = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IF_LINK_MODE_DEFAULT = 0, +IF_LINK_MODE_DORMANT = 1, +IF_LINK_MODE_TESTING = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tpacket_versions { +TPACKET_V1 = 0, +TPACKET_V2 = 1, +TPACKET_V3 = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nlmsgerr_attrs { +NLMSGERR_ATTR_UNUSED = 0, +NLMSGERR_ATTR_MSG = 1, +NLMSGERR_ATTR_OFFS = 2, +NLMSGERR_ATTR_COOKIE = 3, +NLMSGERR_ATTR_POLICY = 4, +NLMSGERR_ATTR_MISS_TYPE = 5, +NLMSGERR_ATTR_MISS_NEST = 6, +__NLMSGERR_ATTR_MAX = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl_mmap_status { +NL_MMAP_STATUS_UNUSED = 0, +NL_MMAP_STATUS_RESERVED = 1, +NL_MMAP_STATUS_VALID = 2, +NL_MMAP_STATUS_COPY = 3, +NL_MMAP_STATUS_SKIP = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +NETLINK_UNCONNECTED = 0, +NETLINK_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_attribute_type { +NL_ATTR_TYPE_INVALID = 0, +NL_ATTR_TYPE_FLAG = 1, +NL_ATTR_TYPE_U8 = 2, +NL_ATTR_TYPE_U16 = 3, +NL_ATTR_TYPE_U32 = 4, +NL_ATTR_TYPE_U64 = 5, +NL_ATTR_TYPE_S8 = 6, +NL_ATTR_TYPE_S16 = 7, +NL_ATTR_TYPE_S32 = 8, +NL_ATTR_TYPE_S64 = 9, +NL_ATTR_TYPE_BINARY = 10, +NL_ATTR_TYPE_STRING = 11, +NL_ATTR_TYPE_NUL_STRING = 12, +NL_ATTR_TYPE_NESTED = 13, +NL_ATTR_TYPE_NESTED_ARRAY = 14, +NL_ATTR_TYPE_BITFIELD32 = 15, +NL_ATTR_TYPE_SINT = 16, +NL_ATTR_TYPE_UINT = 17, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_policy_type_attr { +NL_POLICY_TYPE_ATTR_UNSPEC = 0, +NL_POLICY_TYPE_ATTR_TYPE = 1, +NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, +NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, +NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, +NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, +NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, +NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, +NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, +NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, +NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, +NL_POLICY_TYPE_ATTR_PAD = 11, +NL_POLICY_TYPE_ATTR_MASK = 12, +__NL_POLICY_TYPE_ATTR_MAX = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IFLA_UNSPEC = 0, +IFLA_ADDRESS = 1, +IFLA_BROADCAST = 2, +IFLA_IFNAME = 3, +IFLA_MTU = 4, +IFLA_LINK = 5, +IFLA_QDISC = 6, +IFLA_STATS = 7, +IFLA_COST = 8, +IFLA_PRIORITY = 9, +IFLA_MASTER = 10, +IFLA_WIRELESS = 11, +IFLA_PROTINFO = 12, +IFLA_TXQLEN = 13, +IFLA_MAP = 14, +IFLA_WEIGHT = 15, +IFLA_OPERSTATE = 16, +IFLA_LINKMODE = 17, +IFLA_LINKINFO = 18, +IFLA_NET_NS_PID = 19, +IFLA_IFALIAS = 20, +IFLA_NUM_VF = 21, +IFLA_VFINFO_LIST = 22, +IFLA_STATS64 = 23, +IFLA_VF_PORTS = 24, +IFLA_PORT_SELF = 25, +IFLA_AF_SPEC = 26, +IFLA_GROUP = 27, +IFLA_NET_NS_FD = 28, +IFLA_EXT_MASK = 29, +IFLA_PROMISCUITY = 30, +IFLA_NUM_TX_QUEUES = 31, +IFLA_NUM_RX_QUEUES = 32, +IFLA_CARRIER = 33, +IFLA_PHYS_PORT_ID = 34, +IFLA_CARRIER_CHANGES = 35, +IFLA_PHYS_SWITCH_ID = 36, +IFLA_LINK_NETNSID = 37, +IFLA_PHYS_PORT_NAME = 38, +IFLA_PROTO_DOWN = 39, +IFLA_GSO_MAX_SEGS = 40, +IFLA_GSO_MAX_SIZE = 41, +IFLA_PAD = 42, +IFLA_XDP = 43, +IFLA_EVENT = 44, +IFLA_NEW_NETNSID = 45, +IFLA_IF_NETNSID = 46, +IFLA_CARRIER_UP_COUNT = 47, +IFLA_CARRIER_DOWN_COUNT = 48, +IFLA_NEW_IFINDEX = 49, +IFLA_MIN_MTU = 50, +IFLA_MAX_MTU = 51, +IFLA_PROP_LIST = 52, +IFLA_ALT_IFNAME = 53, +IFLA_PERM_ADDRESS = 54, +IFLA_PROTO_DOWN_REASON = 55, +IFLA_PARENT_DEV_NAME = 56, +IFLA_PARENT_DEV_BUS_NAME = 57, +IFLA_GRO_MAX_SIZE = 58, +IFLA_TSO_MAX_SIZE = 59, +IFLA_TSO_MAX_SEGS = 60, +IFLA_ALLMULTI = 61, +IFLA_DEVLINK_PORT = 62, +IFLA_GSO_IPV4_MAX_SIZE = 63, +IFLA_GRO_IPV4_MAX_SIZE = 64, +IFLA_DPLL_PIN = 65, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +IFLA_NETNS_IMMUTABLE = 67, +__IFLA_MAX = 68, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_5 { +IFLA_PROTO_DOWN_REASON_UNSPEC = 0, +IFLA_PROTO_DOWN_REASON_MASK = 1, +IFLA_PROTO_DOWN_REASON_VALUE = 2, +__IFLA_PROTO_DOWN_REASON_CNT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_6 { +IFLA_INET_UNSPEC = 0, +IFLA_INET_CONF = 1, +__IFLA_INET_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_7 { +IFLA_INET6_UNSPEC = 0, +IFLA_INET6_FLAGS = 1, +IFLA_INET6_CONF = 2, +IFLA_INET6_STATS = 3, +IFLA_INET6_MCAST = 4, +IFLA_INET6_CACHEINFO = 5, +IFLA_INET6_ICMP6STATS = 6, +IFLA_INET6_TOKEN = 7, +IFLA_INET6_ADDR_GEN_MODE = 8, +IFLA_INET6_RA_MTU = 9, +__IFLA_INET6_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum in6_addr_gen_mode { +IN6_ADDR_GEN_MODE_EUI64 = 0, +IN6_ADDR_GEN_MODE_NONE = 1, +IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, +IN6_ADDR_GEN_MODE_RANDOM = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_8 { +IFLA_BR_UNSPEC = 0, +IFLA_BR_FORWARD_DELAY = 1, +IFLA_BR_HELLO_TIME = 2, +IFLA_BR_MAX_AGE = 3, +IFLA_BR_AGEING_TIME = 4, +IFLA_BR_STP_STATE = 5, +IFLA_BR_PRIORITY = 6, +IFLA_BR_VLAN_FILTERING = 7, +IFLA_BR_VLAN_PROTOCOL = 8, +IFLA_BR_GROUP_FWD_MASK = 9, +IFLA_BR_ROOT_ID = 10, +IFLA_BR_BRIDGE_ID = 11, +IFLA_BR_ROOT_PORT = 12, +IFLA_BR_ROOT_PATH_COST = 13, +IFLA_BR_TOPOLOGY_CHANGE = 14, +IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, +IFLA_BR_HELLO_TIMER = 16, +IFLA_BR_TCN_TIMER = 17, +IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, +IFLA_BR_GC_TIMER = 19, +IFLA_BR_GROUP_ADDR = 20, +IFLA_BR_FDB_FLUSH = 21, +IFLA_BR_MCAST_ROUTER = 22, +IFLA_BR_MCAST_SNOOPING = 23, +IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, +IFLA_BR_MCAST_QUERIER = 25, +IFLA_BR_MCAST_HASH_ELASTICITY = 26, +IFLA_BR_MCAST_HASH_MAX = 27, +IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, +IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, +IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, +IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, +IFLA_BR_MCAST_QUERIER_INTVL = 32, +IFLA_BR_MCAST_QUERY_INTVL = 33, +IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, +IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, +IFLA_BR_NF_CALL_IPTABLES = 36, +IFLA_BR_NF_CALL_IP6TABLES = 37, +IFLA_BR_NF_CALL_ARPTABLES = 38, +IFLA_BR_VLAN_DEFAULT_PVID = 39, +IFLA_BR_PAD = 40, +IFLA_BR_VLAN_STATS_ENABLED = 41, +IFLA_BR_MCAST_STATS_ENABLED = 42, +IFLA_BR_MCAST_IGMP_VERSION = 43, +IFLA_BR_MCAST_MLD_VERSION = 44, +IFLA_BR_VLAN_STATS_PER_PORT = 45, +IFLA_BR_MULTI_BOOLOPT = 46, +IFLA_BR_MCAST_QUERIER_STATE = 47, +IFLA_BR_FDB_N_LEARNED = 48, +IFLA_BR_FDB_MAX_LEARNED = 49, +__IFLA_BR_MAX = 50, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_9 { +BRIDGE_MODE_UNSPEC = 0, +BRIDGE_MODE_HAIRPIN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_10 { +IFLA_BRPORT_UNSPEC = 0, +IFLA_BRPORT_STATE = 1, +IFLA_BRPORT_PRIORITY = 2, +IFLA_BRPORT_COST = 3, +IFLA_BRPORT_MODE = 4, +IFLA_BRPORT_GUARD = 5, +IFLA_BRPORT_PROTECT = 6, +IFLA_BRPORT_FAST_LEAVE = 7, +IFLA_BRPORT_LEARNING = 8, +IFLA_BRPORT_UNICAST_FLOOD = 9, +IFLA_BRPORT_PROXYARP = 10, +IFLA_BRPORT_LEARNING_SYNC = 11, +IFLA_BRPORT_PROXYARP_WIFI = 12, +IFLA_BRPORT_ROOT_ID = 13, +IFLA_BRPORT_BRIDGE_ID = 14, +IFLA_BRPORT_DESIGNATED_PORT = 15, +IFLA_BRPORT_DESIGNATED_COST = 16, +IFLA_BRPORT_ID = 17, +IFLA_BRPORT_NO = 18, +IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, +IFLA_BRPORT_CONFIG_PENDING = 20, +IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, +IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, +IFLA_BRPORT_HOLD_TIMER = 23, +IFLA_BRPORT_FLUSH = 24, +IFLA_BRPORT_MULTICAST_ROUTER = 25, +IFLA_BRPORT_PAD = 26, +IFLA_BRPORT_MCAST_FLOOD = 27, +IFLA_BRPORT_MCAST_TO_UCAST = 28, +IFLA_BRPORT_VLAN_TUNNEL = 29, +IFLA_BRPORT_BCAST_FLOOD = 30, +IFLA_BRPORT_GROUP_FWD_MASK = 31, +IFLA_BRPORT_NEIGH_SUPPRESS = 32, +IFLA_BRPORT_ISOLATED = 33, +IFLA_BRPORT_BACKUP_PORT = 34, +IFLA_BRPORT_MRP_RING_OPEN = 35, +IFLA_BRPORT_MRP_IN_OPEN = 36, +IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, +IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, +IFLA_BRPORT_LOCKED = 39, +IFLA_BRPORT_MAB = 40, +IFLA_BRPORT_MCAST_N_GROUPS = 41, +IFLA_BRPORT_MCAST_MAX_GROUPS = 42, +IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, +IFLA_BRPORT_BACKUP_NHID = 44, +__IFLA_BRPORT_MAX = 45, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_11 { +IFLA_INFO_UNSPEC = 0, +IFLA_INFO_KIND = 1, +IFLA_INFO_DATA = 2, +IFLA_INFO_XSTATS = 3, +IFLA_INFO_SLAVE_KIND = 4, +IFLA_INFO_SLAVE_DATA = 5, +__IFLA_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_12 { +IFLA_VLAN_UNSPEC = 0, +IFLA_VLAN_ID = 1, +IFLA_VLAN_FLAGS = 2, +IFLA_VLAN_EGRESS_QOS = 3, +IFLA_VLAN_INGRESS_QOS = 4, +IFLA_VLAN_PROTOCOL = 5, +__IFLA_VLAN_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_13 { +IFLA_VLAN_QOS_UNSPEC = 0, +IFLA_VLAN_QOS_MAPPING = 1, +__IFLA_VLAN_QOS_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_14 { +IFLA_MACVLAN_UNSPEC = 0, +IFLA_MACVLAN_MODE = 1, +IFLA_MACVLAN_FLAGS = 2, +IFLA_MACVLAN_MACADDR_MODE = 3, +IFLA_MACVLAN_MACADDR = 4, +IFLA_MACVLAN_MACADDR_DATA = 5, +IFLA_MACVLAN_MACADDR_COUNT = 6, +IFLA_MACVLAN_BC_QUEUE_LEN = 7, +IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, +IFLA_MACVLAN_BC_CUTOFF = 9, +__IFLA_MACVLAN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_mode { +MACVLAN_MODE_PRIVATE = 1, +MACVLAN_MODE_VEPA = 2, +MACVLAN_MODE_BRIDGE = 4, +MACVLAN_MODE_PASSTHRU = 8, +MACVLAN_MODE_SOURCE = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_macaddr_mode { +MACVLAN_MACADDR_ADD = 0, +MACVLAN_MACADDR_DEL = 1, +MACVLAN_MACADDR_FLUSH = 2, +MACVLAN_MACADDR_SET = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_15 { +IFLA_VRF_UNSPEC = 0, +IFLA_VRF_TABLE = 1, +__IFLA_VRF_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_16 { +IFLA_VRF_PORT_UNSPEC = 0, +IFLA_VRF_PORT_TABLE = 1, +__IFLA_VRF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_17 { +IFLA_MACSEC_UNSPEC = 0, +IFLA_MACSEC_SCI = 1, +IFLA_MACSEC_PORT = 2, +IFLA_MACSEC_ICV_LEN = 3, +IFLA_MACSEC_CIPHER_SUITE = 4, +IFLA_MACSEC_WINDOW = 5, +IFLA_MACSEC_ENCODING_SA = 6, +IFLA_MACSEC_ENCRYPT = 7, +IFLA_MACSEC_PROTECT = 8, +IFLA_MACSEC_INC_SCI = 9, +IFLA_MACSEC_ES = 10, +IFLA_MACSEC_SCB = 11, +IFLA_MACSEC_REPLAY_PROTECT = 12, +IFLA_MACSEC_VALIDATION = 13, +IFLA_MACSEC_PAD = 14, +IFLA_MACSEC_OFFLOAD = 15, +__IFLA_MACSEC_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_18 { +IFLA_XFRM_UNSPEC = 0, +IFLA_XFRM_LINK = 1, +IFLA_XFRM_IF_ID = 2, +IFLA_XFRM_COLLECT_METADATA = 3, +__IFLA_XFRM_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_validation_type { +MACSEC_VALIDATE_DISABLED = 0, +MACSEC_VALIDATE_CHECK = 1, +MACSEC_VALIDATE_STRICT = 2, +__MACSEC_VALIDATE_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_offload { +MACSEC_OFFLOAD_OFF = 0, +MACSEC_OFFLOAD_PHY = 1, +MACSEC_OFFLOAD_MAC = 2, +__MACSEC_OFFLOAD_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_19 { +IFLA_IPVLAN_UNSPEC = 0, +IFLA_IPVLAN_MODE = 1, +IFLA_IPVLAN_FLAGS = 2, +__IFLA_IPVLAN_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ipvlan_mode { +IPVLAN_MODE_L2 = 0, +IPVLAN_MODE_L3 = 1, +IPVLAN_MODE_L3S = 2, +IPVLAN_MODE_MAX = 3, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_action { +NETKIT_NEXT = -1, +NETKIT_PASS = 0, +NETKIT_DROP = 2, +NETKIT_REDIRECT = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_mode { +NETKIT_L2 = 0, +NETKIT_L3 = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_20 { +IFLA_NETKIT_UNSPEC = 0, +IFLA_NETKIT_PEER_INFO = 1, +IFLA_NETKIT_PRIMARY = 2, +IFLA_NETKIT_POLICY = 3, +IFLA_NETKIT_PEER_POLICY = 4, +IFLA_NETKIT_MODE = 5, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +IFLA_NETKIT_HEADROOM = 8, +IFLA_NETKIT_TAILROOM = 9, +__IFLA_NETKIT_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_21 { +VNIFILTER_ENTRY_STATS_UNSPEC = 0, +VNIFILTER_ENTRY_STATS_RX_BYTES = 1, +VNIFILTER_ENTRY_STATS_RX_PKTS = 2, +VNIFILTER_ENTRY_STATS_RX_DROPS = 3, +VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, +VNIFILTER_ENTRY_STATS_TX_BYTES = 5, +VNIFILTER_ENTRY_STATS_TX_PKTS = 6, +VNIFILTER_ENTRY_STATS_TX_DROPS = 7, +VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, +VNIFILTER_ENTRY_STATS_PAD = 9, +__VNIFILTER_ENTRY_STATS_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_22 { +VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY_START = 1, +VXLAN_VNIFILTER_ENTRY_END = 2, +VXLAN_VNIFILTER_ENTRY_GROUP = 3, +VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, +VXLAN_VNIFILTER_ENTRY_STATS = 5, +__VXLAN_VNIFILTER_ENTRY_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_23 { +VXLAN_VNIFILTER_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY = 1, +__VXLAN_VNIFILTER_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_24 { +IFLA_VXLAN_UNSPEC = 0, +IFLA_VXLAN_ID = 1, +IFLA_VXLAN_GROUP = 2, +IFLA_VXLAN_LINK = 3, +IFLA_VXLAN_LOCAL = 4, +IFLA_VXLAN_TTL = 5, +IFLA_VXLAN_TOS = 6, +IFLA_VXLAN_LEARNING = 7, +IFLA_VXLAN_AGEING = 8, +IFLA_VXLAN_LIMIT = 9, +IFLA_VXLAN_PORT_RANGE = 10, +IFLA_VXLAN_PROXY = 11, +IFLA_VXLAN_RSC = 12, +IFLA_VXLAN_L2MISS = 13, +IFLA_VXLAN_L3MISS = 14, +IFLA_VXLAN_PORT = 15, +IFLA_VXLAN_GROUP6 = 16, +IFLA_VXLAN_LOCAL6 = 17, +IFLA_VXLAN_UDP_CSUM = 18, +IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, +IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, +IFLA_VXLAN_REMCSUM_TX = 21, +IFLA_VXLAN_REMCSUM_RX = 22, +IFLA_VXLAN_GBP = 23, +IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, +IFLA_VXLAN_COLLECT_METADATA = 25, +IFLA_VXLAN_LABEL = 26, +IFLA_VXLAN_GPE = 27, +IFLA_VXLAN_TTL_INHERIT = 28, +IFLA_VXLAN_DF = 29, +IFLA_VXLAN_VNIFILTER = 30, +IFLA_VXLAN_LOCALBYPASS = 31, +IFLA_VXLAN_LABEL_POLICY = 32, +IFLA_VXLAN_RESERVED_BITS = 33, +__IFLA_VXLAN_MAX = 34, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_df { +VXLAN_DF_UNSET = 0, +VXLAN_DF_SET = 1, +VXLAN_DF_INHERIT = 2, +__VXLAN_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_label_policy { +VXLAN_LABEL_FIXED = 0, +VXLAN_LABEL_INHERIT = 1, +__VXLAN_LABEL_END = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_25 { +IFLA_GENEVE_UNSPEC = 0, +IFLA_GENEVE_ID = 1, +IFLA_GENEVE_REMOTE = 2, +IFLA_GENEVE_TTL = 3, +IFLA_GENEVE_TOS = 4, +IFLA_GENEVE_PORT = 5, +IFLA_GENEVE_COLLECT_METADATA = 6, +IFLA_GENEVE_REMOTE6 = 7, +IFLA_GENEVE_UDP_CSUM = 8, +IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, +IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, +IFLA_GENEVE_LABEL = 11, +IFLA_GENEVE_TTL_INHERIT = 12, +IFLA_GENEVE_DF = 13, +IFLA_GENEVE_INNER_PROTO_INHERIT = 14, +IFLA_GENEVE_PORT_RANGE = 15, +__IFLA_GENEVE_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_geneve_df { +GENEVE_DF_UNSET = 0, +GENEVE_DF_SET = 1, +GENEVE_DF_INHERIT = 2, +__GENEVE_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_26 { +IFLA_BAREUDP_UNSPEC = 0, +IFLA_BAREUDP_PORT = 1, +IFLA_BAREUDP_ETHERTYPE = 2, +IFLA_BAREUDP_SRCPORT_MIN = 3, +IFLA_BAREUDP_MULTIPROTO_MODE = 4, +__IFLA_BAREUDP_MAX = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_27 { +IFLA_PPP_UNSPEC = 0, +IFLA_PPP_DEV_FD = 1, +__IFLA_PPP_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_gtp_role { +GTP_ROLE_GGSN = 0, +GTP_ROLE_SGSN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_28 { +IFLA_GTP_UNSPEC = 0, +IFLA_GTP_FD0 = 1, +IFLA_GTP_FD1 = 2, +IFLA_GTP_PDP_HASHSIZE = 3, +IFLA_GTP_ROLE = 4, +IFLA_GTP_CREATE_SOCKETS = 5, +IFLA_GTP_RESTART_COUNT = 6, +IFLA_GTP_LOCAL = 7, +IFLA_GTP_LOCAL6 = 8, +__IFLA_GTP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_29 { +IFLA_BOND_UNSPEC = 0, +IFLA_BOND_MODE = 1, +IFLA_BOND_ACTIVE_SLAVE = 2, +IFLA_BOND_MIIMON = 3, +IFLA_BOND_UPDELAY = 4, +IFLA_BOND_DOWNDELAY = 5, +IFLA_BOND_USE_CARRIER = 6, +IFLA_BOND_ARP_INTERVAL = 7, +IFLA_BOND_ARP_IP_TARGET = 8, +IFLA_BOND_ARP_VALIDATE = 9, +IFLA_BOND_ARP_ALL_TARGETS = 10, +IFLA_BOND_PRIMARY = 11, +IFLA_BOND_PRIMARY_RESELECT = 12, +IFLA_BOND_FAIL_OVER_MAC = 13, +IFLA_BOND_XMIT_HASH_POLICY = 14, +IFLA_BOND_RESEND_IGMP = 15, +IFLA_BOND_NUM_PEER_NOTIF = 16, +IFLA_BOND_ALL_SLAVES_ACTIVE = 17, +IFLA_BOND_MIN_LINKS = 18, +IFLA_BOND_LP_INTERVAL = 19, +IFLA_BOND_PACKETS_PER_SLAVE = 20, +IFLA_BOND_AD_LACP_RATE = 21, +IFLA_BOND_AD_SELECT = 22, +IFLA_BOND_AD_INFO = 23, +IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, +IFLA_BOND_AD_USER_PORT_KEY = 25, +IFLA_BOND_AD_ACTOR_SYSTEM = 26, +IFLA_BOND_TLB_DYNAMIC_LB = 27, +IFLA_BOND_PEER_NOTIF_DELAY = 28, +IFLA_BOND_AD_LACP_ACTIVE = 29, +IFLA_BOND_MISSED_MAX = 30, +IFLA_BOND_NS_IP6_TARGET = 31, +IFLA_BOND_COUPLED_CONTROL = 32, +__IFLA_BOND_MAX = 33, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_30 { +IFLA_BOND_AD_INFO_UNSPEC = 0, +IFLA_BOND_AD_INFO_AGGREGATOR = 1, +IFLA_BOND_AD_INFO_NUM_PORTS = 2, +IFLA_BOND_AD_INFO_ACTOR_KEY = 3, +IFLA_BOND_AD_INFO_PARTNER_KEY = 4, +IFLA_BOND_AD_INFO_PARTNER_MAC = 5, +__IFLA_BOND_AD_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_31 { +IFLA_BOND_SLAVE_UNSPEC = 0, +IFLA_BOND_SLAVE_STATE = 1, +IFLA_BOND_SLAVE_MII_STATUS = 2, +IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, +IFLA_BOND_SLAVE_PERM_HWADDR = 4, +IFLA_BOND_SLAVE_QUEUE_ID = 5, +IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, +IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, +IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, +IFLA_BOND_SLAVE_PRIO = 9, +__IFLA_BOND_SLAVE_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_32 { +IFLA_VF_INFO_UNSPEC = 0, +IFLA_VF_INFO = 1, +__IFLA_VF_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_33 { +IFLA_VF_UNSPEC = 0, +IFLA_VF_MAC = 1, +IFLA_VF_VLAN = 2, +IFLA_VF_TX_RATE = 3, +IFLA_VF_SPOOFCHK = 4, +IFLA_VF_LINK_STATE = 5, +IFLA_VF_RATE = 6, +IFLA_VF_RSS_QUERY_EN = 7, +IFLA_VF_STATS = 8, +IFLA_VF_TRUST = 9, +IFLA_VF_IB_NODE_GUID = 10, +IFLA_VF_IB_PORT_GUID = 11, +IFLA_VF_VLAN_LIST = 12, +IFLA_VF_BROADCAST = 13, +__IFLA_VF_MAX = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_34 { +IFLA_VF_VLAN_INFO_UNSPEC = 0, +IFLA_VF_VLAN_INFO = 1, +__IFLA_VF_VLAN_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_35 { +IFLA_VF_LINK_STATE_AUTO = 0, +IFLA_VF_LINK_STATE_ENABLE = 1, +IFLA_VF_LINK_STATE_DISABLE = 2, +__IFLA_VF_LINK_STATE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_36 { +IFLA_VF_STATS_RX_PACKETS = 0, +IFLA_VF_STATS_TX_PACKETS = 1, +IFLA_VF_STATS_RX_BYTES = 2, +IFLA_VF_STATS_TX_BYTES = 3, +IFLA_VF_STATS_BROADCAST = 4, +IFLA_VF_STATS_MULTICAST = 5, +IFLA_VF_STATS_PAD = 6, +IFLA_VF_STATS_RX_DROPPED = 7, +IFLA_VF_STATS_TX_DROPPED = 8, +__IFLA_VF_STATS_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_37 { +IFLA_VF_PORT_UNSPEC = 0, +IFLA_VF_PORT = 1, +__IFLA_VF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_38 { +IFLA_PORT_UNSPEC = 0, +IFLA_PORT_VF = 1, +IFLA_PORT_PROFILE = 2, +IFLA_PORT_VSI_TYPE = 3, +IFLA_PORT_INSTANCE_UUID = 4, +IFLA_PORT_HOST_UUID = 5, +IFLA_PORT_REQUEST = 6, +IFLA_PORT_RESPONSE = 7, +__IFLA_PORT_MAX = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_39 { +PORT_REQUEST_PREASSOCIATE = 0, +PORT_REQUEST_PREASSOCIATE_RR = 1, +PORT_REQUEST_ASSOCIATE = 2, +PORT_REQUEST_DISASSOCIATE = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_40 { +PORT_VDP_RESPONSE_SUCCESS = 0, +PORT_VDP_RESPONSE_INVALID_FORMAT = 1, +PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, +PORT_VDP_RESPONSE_UNUSED_VTID = 3, +PORT_VDP_RESPONSE_VTID_VIOLATION = 4, +PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, +PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, +PORT_PROFILE_RESPONSE_SUCCESS = 256, +PORT_PROFILE_RESPONSE_INPROGRESS = 257, +PORT_PROFILE_RESPONSE_INVALID = 258, +PORT_PROFILE_RESPONSE_BADSTATE = 259, +PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, +PORT_PROFILE_RESPONSE_ERROR = 261, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_41 { +IFLA_IPOIB_UNSPEC = 0, +IFLA_IPOIB_PKEY = 1, +IFLA_IPOIB_MODE = 2, +IFLA_IPOIB_UMCAST = 3, +__IFLA_IPOIB_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_42 { +IPOIB_MODE_DATAGRAM = 0, +IPOIB_MODE_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_43 { +HSR_PROTOCOL_HSR = 0, +HSR_PROTOCOL_PRP = 1, +HSR_PROTOCOL_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_44 { +IFLA_HSR_UNSPEC = 0, +IFLA_HSR_SLAVE1 = 1, +IFLA_HSR_SLAVE2 = 2, +IFLA_HSR_MULTICAST_SPEC = 3, +IFLA_HSR_SUPERVISION_ADDR = 4, +IFLA_HSR_SEQ_NR = 5, +IFLA_HSR_VERSION = 6, +IFLA_HSR_PROTOCOL = 7, +IFLA_HSR_INTERLINK = 8, +__IFLA_HSR_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_45 { +IFLA_STATS_UNSPEC = 0, +IFLA_STATS_LINK_64 = 1, +IFLA_STATS_LINK_XSTATS = 2, +IFLA_STATS_LINK_XSTATS_SLAVE = 3, +IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, +IFLA_STATS_AF_SPEC = 5, +__IFLA_STATS_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_46 { +IFLA_STATS_GETSET_UNSPEC = 0, +IFLA_STATS_GET_FILTERS = 1, +IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, +__IFLA_STATS_GETSET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_47 { +LINK_XSTATS_TYPE_UNSPEC = 0, +LINK_XSTATS_TYPE_BRIDGE = 1, +LINK_XSTATS_TYPE_BOND = 2, +__LINK_XSTATS_TYPE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_48 { +IFLA_OFFLOAD_XSTATS_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, +IFLA_OFFLOAD_XSTATS_L3_STATS = 3, +__IFLA_OFFLOAD_XSTATS_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_49 { +IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, +__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_50 { +XDP_ATTACHED_NONE = 0, +XDP_ATTACHED_DRV = 1, +XDP_ATTACHED_SKB = 2, +XDP_ATTACHED_HW = 3, +XDP_ATTACHED_MULTI = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_51 { +IFLA_XDP_UNSPEC = 0, +IFLA_XDP_FD = 1, +IFLA_XDP_ATTACHED = 2, +IFLA_XDP_FLAGS = 3, +IFLA_XDP_PROG_ID = 4, +IFLA_XDP_DRV_PROG_ID = 5, +IFLA_XDP_SKB_PROG_ID = 6, +IFLA_XDP_HW_PROG_ID = 7, +IFLA_XDP_EXPECTED_FD = 8, +__IFLA_XDP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_52 { +IFLA_EVENT_NONE = 0, +IFLA_EVENT_REBOOT = 1, +IFLA_EVENT_FEATURES = 2, +IFLA_EVENT_BONDING_FAILOVER = 3, +IFLA_EVENT_NOTIFY_PEERS = 4, +IFLA_EVENT_IGMP_RESEND = 5, +IFLA_EVENT_BONDING_OPTIONS = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_53 { +IFLA_TUN_UNSPEC = 0, +IFLA_TUN_OWNER = 1, +IFLA_TUN_GROUP = 2, +IFLA_TUN_TYPE = 3, +IFLA_TUN_PI = 4, +IFLA_TUN_VNET_HDR = 5, +IFLA_TUN_PERSIST = 6, +IFLA_TUN_MULTI_QUEUE = 7, +IFLA_TUN_NUM_QUEUES = 8, +IFLA_TUN_NUM_DISABLED_QUEUES = 9, +__IFLA_TUN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_54 { +IFLA_RMNET_UNSPEC = 0, +IFLA_RMNET_MUX_ID = 1, +IFLA_RMNET_FLAGS = 2, +__IFLA_RMNET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_55 { +IFLA_MCTP_UNSPEC = 0, +IFLA_MCTP_NET = 1, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_56 { +IFLA_DSA_UNSPEC = 0, +IFLA_DSA_CONDUIT = 1, +__IFLA_DSA_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ovpn_mode { +OVPN_MODE_P2P = 0, +OVPN_MODE_MP = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_57 { +IFLA_OVPN_UNSPEC = 0, +IFLA_OVPN_MODE = 1, +__IFLA_OVPN_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_58 { +IF_PORT_UNKNOWN = 0, +IF_PORT_10BASE2 = 1, +IF_PORT_10BASET = 2, +IF_PORT_AUI = 3, +IF_PORT_100BASET = 4, +IF_PORT_100BASETX = 5, +IF_PORT_100BASEFX = 6, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __vector128__bindgen_ty_1 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1, +pub u: [__u32; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __kernel_sockaddr_storage__bindgen_ty_1 { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, +pub __align: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union if_settings__bindgen_ty_1 { +pub raw_hdlc: *mut raw_hdlc_proto, +pub cisco: *mut cisco_proto, +pub fr: *mut fr_proto, +pub fr_pvc: *mut fr_proto_pvc, +pub fr_pvc_info: *mut fr_proto_pvc_info, +pub x25: *mut x25_hdlc_proto, +pub sync: *mut sync_serial_settings, +pub te1: *mut te1_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_1 { +pub ifrn_name: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_2 { +pub ifru_addr: sockaddr, +pub ifru_dstaddr: sockaddr, +pub ifru_broadaddr: sockaddr, +pub ifru_netmask: sockaddr, +pub ifru_hwaddr: sockaddr, +pub ifru_flags: crate::ctypes::c_short, +pub ifru_ivalue: crate::ctypes::c_int, +pub ifru_mtu: crate::ctypes::c_int, +pub ifru_map: ifmap, +pub ifru_slave: [crate::ctypes::c_char; 16usize], +pub ifru_newname: [crate::ctypes::c_char; 16usize], +pub ifru_data: *mut crate::ctypes::c_void, +pub ifru_settings: if_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifconf__bindgen_ty_1 { +pub ifcu_buf: *mut crate::ctypes::c_char, +pub ifcu_req: *mut ifreq, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_stats_u { +pub stats1: tpacket_stats, +pub stats3: tpacket_stats_v3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket3_hdr__bindgen_ty_1 { +pub hv1: tpacket_hdr_variant1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_ts__bindgen_ty_1 { +pub ts_usec: crate::ctypes::c_uint, +pub ts_nsec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_header_u { +pub bh1: tpacket_hdr_v1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_req_u { +pub req: tpacket_req, +pub req3: tpacket_req3, +} +impl nlmsgerr_attrs { +pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; +} +impl netlink_policy_type_attr { +pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; +} +impl macsec_validation_type { +pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; +} +impl macsec_offload { +pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; +} +impl ifla_vxlan_df { +pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; +} +impl ifla_vxlan_label_policy { +pub const VXLAN_LABEL_MAX: ifla_vxlan_label_policy = ifla_vxlan_label_policy::VXLAN_LABEL_INHERIT; +} +impl ifla_geneve_df { +pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/if_ether.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/if_ether.rs new file mode 100644 index 0000000000000000000000000000000000000000..1ccd26a876e483f26e91402d2781dd9804f99462 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/if_ether.rs @@ -0,0 +1,190 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type addr_t = crate::ctypes::c_ulong; +pub type saddr_t = crate::ctypes::c_long; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_ulong; +pub type __kernel_ssize_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_ino_t = crate::ctypes::c_uint; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_sigset_t = crate::ctypes::c_ulong; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C, packed(4))] +#[derive(Copy, Clone)] +pub struct __vector128 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __vector128__bindgen_ty_1__bindgen_ty_1 { +pub high: __u64, +pub low: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct ethhdr { +pub h_dest: [crate::ctypes::c_uchar; 6usize], +pub h_source: [crate::ctypes::c_uchar; 6usize], +pub h_proto: __be16, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const ETH_ALEN: u32 = 6; +pub const ETH_TLEN: u32 = 2; +pub const ETH_HLEN: u32 = 14; +pub const ETH_ZLEN: u32 = 60; +pub const ETH_DATA_LEN: u32 = 1500; +pub const ETH_FRAME_LEN: u32 = 1514; +pub const ETH_FCS_LEN: u32 = 4; +pub const ETH_MIN_MTU: u32 = 68; +pub const ETH_MAX_MTU: u32 = 65535; +pub const ETH_P_LOOP: u32 = 96; +pub const ETH_P_PUP: u32 = 512; +pub const ETH_P_PUPAT: u32 = 513; +pub const ETH_P_TSN: u32 = 8944; +pub const ETH_P_ERSPAN2: u32 = 8939; +pub const ETH_P_IP: u32 = 2048; +pub const ETH_P_X25: u32 = 2053; +pub const ETH_P_ARP: u32 = 2054; +pub const ETH_P_BPQ: u32 = 2303; +pub const ETH_P_IEEEPUP: u32 = 2560; +pub const ETH_P_IEEEPUPAT: u32 = 2561; +pub const ETH_P_BATMAN: u32 = 17157; +pub const ETH_P_DEC: u32 = 24576; +pub const ETH_P_DNA_DL: u32 = 24577; +pub const ETH_P_DNA_RC: u32 = 24578; +pub const ETH_P_DNA_RT: u32 = 24579; +pub const ETH_P_LAT: u32 = 24580; +pub const ETH_P_DIAG: u32 = 24581; +pub const ETH_P_CUST: u32 = 24582; +pub const ETH_P_SCA: u32 = 24583; +pub const ETH_P_TEB: u32 = 25944; +pub const ETH_P_RARP: u32 = 32821; +pub const ETH_P_ATALK: u32 = 32923; +pub const ETH_P_AARP: u32 = 33011; +pub const ETH_P_8021Q: u32 = 33024; +pub const ETH_P_ERSPAN: u32 = 35006; +pub const ETH_P_IPX: u32 = 33079; +pub const ETH_P_IPV6: u32 = 34525; +pub const ETH_P_PAUSE: u32 = 34824; +pub const ETH_P_SLOW: u32 = 34825; +pub const ETH_P_WCCP: u32 = 34878; +pub const ETH_P_MPLS_UC: u32 = 34887; +pub const ETH_P_MPLS_MC: u32 = 34888; +pub const ETH_P_ATMMPOA: u32 = 34892; +pub const ETH_P_PPP_DISC: u32 = 34915; +pub const ETH_P_PPP_SES: u32 = 34916; +pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_ATMFATE: u32 = 34948; +pub const ETH_P_PAE: u32 = 34958; +pub const ETH_P_PROFINET: u32 = 34962; +pub const ETH_P_REALTEK: u32 = 34969; +pub const ETH_P_AOE: u32 = 34978; +pub const ETH_P_ETHERCAT: u32 = 34980; +pub const ETH_P_8021AD: u32 = 34984; +pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_PREAUTH: u32 = 35015; +pub const ETH_P_TIPC: u32 = 35018; +pub const ETH_P_LLDP: u32 = 35020; +pub const ETH_P_MRP: u32 = 35043; +pub const ETH_P_MACSEC: u32 = 35045; +pub const ETH_P_8021AH: u32 = 35047; +pub const ETH_P_MVRP: u32 = 35061; +pub const ETH_P_1588: u32 = 35063; +pub const ETH_P_NCSI: u32 = 35064; +pub const ETH_P_PRP: u32 = 35067; +pub const ETH_P_CFM: u32 = 35074; +pub const ETH_P_FCOE: u32 = 35078; +pub const ETH_P_IBOE: u32 = 35093; +pub const ETH_P_TDLS: u32 = 35085; +pub const ETH_P_FIP: u32 = 35092; +pub const ETH_P_80221: u32 = 35095; +pub const ETH_P_HSR: u32 = 35119; +pub const ETH_P_NSH: u32 = 35151; +pub const ETH_P_LOOPBACK: u32 = 36864; +pub const ETH_P_QINQ1: u32 = 37120; +pub const ETH_P_QINQ2: u32 = 37376; +pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_EDSA: u32 = 56026; +pub const ETH_P_DSA_8021Q: u32 = 56027; +pub const ETH_P_DSA_A5PSW: u32 = 57345; +pub const ETH_P_IFE: u32 = 60734; +pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_802_3_MIN: u32 = 1536; +pub const ETH_P_802_3: u32 = 1; +pub const ETH_P_AX25: u32 = 2; +pub const ETH_P_ALL: u32 = 3; +pub const ETH_P_802_2: u32 = 4; +pub const ETH_P_SNAP: u32 = 5; +pub const ETH_P_DDCMP: u32 = 6; +pub const ETH_P_WAN_PPP: u32 = 7; +pub const ETH_P_PPP_MP: u32 = 8; +pub const ETH_P_LOCALTALK: u32 = 9; +pub const ETH_P_CAN: u32 = 12; +pub const ETH_P_CANFD: u32 = 13; +pub const ETH_P_CANXL: u32 = 14; +pub const ETH_P_PPPTALK: u32 = 16; +pub const ETH_P_TR_802_2: u32 = 17; +pub const ETH_P_MOBITEX: u32 = 21; +pub const ETH_P_CONTROL: u32 = 22; +pub const ETH_P_IRDA: u32 = 23; +pub const ETH_P_ECONET: u32 = 24; +pub const ETH_P_HDLC: u32 = 25; +pub const ETH_P_ARCNET: u32 = 26; +pub const ETH_P_DSA: u32 = 27; +pub const ETH_P_TRAILER: u32 = 28; +pub const ETH_P_PHONET: u32 = 245; +pub const ETH_P_IEEE802154: u32 = 246; +pub const ETH_P_CAIF: u32 = 247; +pub const ETH_P_XDSA: u32 = 248; +pub const ETH_P_MAP: u32 = 249; +pub const ETH_P_MCTP: u32 = 250; +#[repr(C)] +#[derive(Copy, Clone)] +pub union __vector128__bindgen_ty_1 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1, +pub u: [__u32; 4usize], +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/if_packet.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/if_packet.rs new file mode 100644 index 0000000000000000000000000000000000000000..ce94d0a283d27ab1bf7d35940dfcdd5d48c18a06 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/if_packet.rs @@ -0,0 +1,331 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type addr_t = crate::ctypes::c_ulong; +pub type saddr_t = crate::ctypes::c_long; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_ulong; +pub type __kernel_ssize_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_ino_t = crate::ctypes::c_uint; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_sigset_t = crate::ctypes::c_ulong; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C, packed(4))] +#[derive(Copy, Clone)] +pub struct __vector128 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __vector128__bindgen_ty_1__bindgen_ty_1 { +pub high: __u64, +pub low: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_pkt { +pub spkt_family: crate::ctypes::c_ushort, +pub spkt_device: [crate::ctypes::c_uchar; 14usize], +pub spkt_protocol: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_ll { +pub sll_family: crate::ctypes::c_ushort, +pub sll_protocol: __be16, +pub sll_ifindex: crate::ctypes::c_int, +pub sll_hatype: crate::ctypes::c_ushort, +pub sll_pkttype: crate::ctypes::c_uchar, +pub sll_halen: crate::ctypes::c_uchar, +pub sll_addr: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats_v3 { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +pub tp_freeze_q_cnt: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_rollover_stats { +pub tp_all: __u64, +pub tp_huge: __u64, +pub tp_failed: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_auxdata { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr { +pub tp_status: crate::ctypes::c_ulong, +pub tp_len: crate::ctypes::c_uint, +pub tp_snaplen: crate::ctypes::c_uint, +pub tp_mac: crate::ctypes::c_ushort, +pub tp_net: crate::ctypes::c_ushort, +pub tp_sec: crate::ctypes::c_uint, +pub tp_usec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket2_hdr { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +pub tp_padding: [__u8; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr_variant1 { +pub tp_rxhash: __u32, +pub tp_vlan_tci: __u32, +pub tp_vlan_tpid: __u16, +pub tp_padding: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket3_hdr { +pub tp_next_offset: __u32, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_snaplen: __u32, +pub tp_len: __u32, +pub tp_status: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub __bindgen_anon_1: tpacket3_hdr__bindgen_ty_1, +pub tp_padding: [__u8; 8usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_bd_ts { +pub ts_sec: crate::ctypes::c_uint, +pub __bindgen_anon_1: tpacket_bd_ts__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_hdr_v1 { +pub block_status: __u32, +pub num_pkts: __u32, +pub offset_to_first_pkt: __u32, +pub blk_len: __u32, +pub seq_num: __u64, +pub ts_first_pkt: tpacket_bd_ts, +pub ts_last_pkt: tpacket_bd_ts, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_block_desc { +pub version: __u32, +pub offset_to_priv: __u32, +pub hdr: tpacket_bd_header_u, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req3 { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +pub tp_retire_blk_tov: crate::ctypes::c_uint, +pub tp_sizeof_priv: crate::ctypes::c_uint, +pub tp_feature_req_word: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct packet_mreq { +pub mr_ifindex: crate::ctypes::c_int, +pub mr_type: crate::ctypes::c_ushort, +pub mr_alen: crate::ctypes::c_ushort, +pub mr_address: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fanout_args { +pub type_flags: __u16, +pub id: __u16, +pub max_num_members: __u32, +} +pub const __BIG_ENDIAN: u32 = 4321; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const PACKET_HOST: u32 = 0; +pub const PACKET_BROADCAST: u32 = 1; +pub const PACKET_MULTICAST: u32 = 2; +pub const PACKET_OTHERHOST: u32 = 3; +pub const PACKET_OUTGOING: u32 = 4; +pub const PACKET_LOOPBACK: u32 = 5; +pub const PACKET_USER: u32 = 6; +pub const PACKET_KERNEL: u32 = 7; +pub const PACKET_FASTROUTE: u32 = 6; +pub const PACKET_ADD_MEMBERSHIP: u32 = 1; +pub const PACKET_DROP_MEMBERSHIP: u32 = 2; +pub const PACKET_RECV_OUTPUT: u32 = 3; +pub const PACKET_RX_RING: u32 = 5; +pub const PACKET_STATISTICS: u32 = 6; +pub const PACKET_COPY_THRESH: u32 = 7; +pub const PACKET_AUXDATA: u32 = 8; +pub const PACKET_ORIGDEV: u32 = 9; +pub const PACKET_VERSION: u32 = 10; +pub const PACKET_HDRLEN: u32 = 11; +pub const PACKET_RESERVE: u32 = 12; +pub const PACKET_TX_RING: u32 = 13; +pub const PACKET_LOSS: u32 = 14; +pub const PACKET_VNET_HDR: u32 = 15; +pub const PACKET_TX_TIMESTAMP: u32 = 16; +pub const PACKET_TIMESTAMP: u32 = 17; +pub const PACKET_FANOUT: u32 = 18; +pub const PACKET_TX_HAS_OFF: u32 = 19; +pub const PACKET_QDISC_BYPASS: u32 = 20; +pub const PACKET_ROLLOVER_STATS: u32 = 21; +pub const PACKET_FANOUT_DATA: u32 = 22; +pub const PACKET_IGNORE_OUTGOING: u32 = 23; +pub const PACKET_VNET_HDR_SZ: u32 = 24; +pub const PACKET_FANOUT_HASH: u32 = 0; +pub const PACKET_FANOUT_LB: u32 = 1; +pub const PACKET_FANOUT_CPU: u32 = 2; +pub const PACKET_FANOUT_ROLLOVER: u32 = 3; +pub const PACKET_FANOUT_RND: u32 = 4; +pub const PACKET_FANOUT_QM: u32 = 5; +pub const PACKET_FANOUT_CBPF: u32 = 6; +pub const PACKET_FANOUT_EBPF: u32 = 7; +pub const PACKET_FANOUT_FLAG_ROLLOVER: u32 = 4096; +pub const PACKET_FANOUT_FLAG_UNIQUEID: u32 = 8192; +pub const PACKET_FANOUT_FLAG_IGNORE_OUTGOING: u32 = 16384; +pub const PACKET_FANOUT_FLAG_DEFRAG: u32 = 32768; +pub const TP_STATUS_KERNEL: u32 = 0; +pub const TP_STATUS_USER: u32 = 1; +pub const TP_STATUS_COPY: u32 = 2; +pub const TP_STATUS_LOSING: u32 = 4; +pub const TP_STATUS_CSUMNOTREADY: u32 = 8; +pub const TP_STATUS_VLAN_VALID: u32 = 16; +pub const TP_STATUS_BLK_TMO: u32 = 32; +pub const TP_STATUS_VLAN_TPID_VALID: u32 = 64; +pub const TP_STATUS_CSUM_VALID: u32 = 128; +pub const TP_STATUS_GSO_TCP: u32 = 256; +pub const TP_STATUS_AVAILABLE: u32 = 0; +pub const TP_STATUS_SEND_REQUEST: u32 = 1; +pub const TP_STATUS_SENDING: u32 = 2; +pub const TP_STATUS_WRONG_FORMAT: u32 = 4; +pub const TP_STATUS_TS_SOFTWARE: u32 = 536870912; +pub const TP_STATUS_TS_SYS_HARDWARE: u32 = 1073741824; +pub const TP_STATUS_TS_RAW_HARDWARE: u32 = 2147483648; +pub const TP_FT_REQ_FILL_RXHASH: u32 = 1; +pub const TPACKET_ALIGNMENT: u32 = 16; +pub const PACKET_MR_MULTICAST: u32 = 0; +pub const PACKET_MR_PROMISC: u32 = 1; +pub const PACKET_MR_ALLMULTI: u32 = 2; +pub const PACKET_MR_UNICAST: u32 = 3; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tpacket_versions { +TPACKET_V1 = 0, +TPACKET_V2 = 1, +TPACKET_V3 = 2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __vector128__bindgen_ty_1 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1, +pub u: [__u32; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_stats_u { +pub stats1: tpacket_stats, +pub stats3: tpacket_stats_v3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket3_hdr__bindgen_ty_1 { +pub hv1: tpacket_hdr_variant1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_ts__bindgen_ty_1 { +pub ts_usec: crate::ctypes::c_uint, +pub ts_nsec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_header_u { +pub bh1: tpacket_hdr_v1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_req_u { +pub req: tpacket_req, +pub req3: tpacket_req3, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/image.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/image.rs new file mode 100644 index 0000000000000000000000000000000000000000..bff15e373cd12fce9e91f11af9ee8efb9065775b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/image.rs @@ -0,0 +1,3 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + + diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/io_uring.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/io_uring.rs new file mode 100644 index 0000000000000000000000000000000000000000..ea70cad4c69f63b15676bf484cf77b8779853ebd --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/io_uring.rs @@ -0,0 +1,1460 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type addr_t = crate::ctypes::c_ulong; +pub type saddr_t = crate::ctypes::c_long; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_ulong; +pub type __kernel_ssize_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_ino_t = crate::ctypes::c_uint; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_sigset_t = crate::ctypes::c_ulong; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_rwf_t = crate::ctypes::c_int; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +pub struct __BindgenUnionField(::core::marker::PhantomData); +#[repr(C, packed(4))] +#[derive(Copy, Clone)] +pub struct __vector128 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __vector128__bindgen_ty_1__bindgen_ty_1 { +pub high: __u64, +pub low: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v1 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub master_key_descriptor: [__u8; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_key { +pub mode: __u32, +pub raw: [__u8; 64usize], +pub size: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v2 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub log2_data_unit_size: __u8, +pub __reserved: [__u8; 3usize], +pub master_key_identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_policy_ex_arg { +pub policy_size: __u64, +pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_key_specifier { +pub type_: __u32, +pub __reserved: __u32, +pub u: fscrypt_key_specifier__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct fscrypt_provisioning_key_payload { +pub type_: __u32, +pub flags: __u32, +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +pub struct fscrypt_add_key_arg { +pub key_spec: fscrypt_key_specifier, +pub raw_size: __u32, +pub key_id: __u32, +pub flags: __u32, +pub __reserved: [__u32; 7usize], +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_remove_key_arg { +pub key_spec: fscrypt_key_specifier, +pub removal_status_flags: __u32, +pub __reserved: [__u32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_key_status_arg { +pub key_spec: fscrypt_key_specifier, +pub __reserved: [__u32; 6usize], +pub status: __u32, +pub status_flags: __u32, +pub user_count: __u32, +pub __out_reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mount_attr { +pub attr_set: __u64, +pub attr_clr: __u64, +pub propagation: __u64, +pub userns_fd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct statmount { +pub size: __u32, +pub mnt_opts: __u32, +pub mask: __u64, +pub sb_dev_major: __u32, +pub sb_dev_minor: __u32, +pub sb_magic: __u64, +pub sb_flags: __u32, +pub fs_type: __u32, +pub mnt_id: __u64, +pub mnt_parent_id: __u64, +pub mnt_id_old: __u32, +pub mnt_parent_id_old: __u32, +pub mnt_attr: __u64, +pub mnt_propagation: __u64, +pub mnt_peer_group: __u64, +pub mnt_master: __u64, +pub propagate_from: __u64, +pub mnt_root: __u32, +pub mnt_point: __u32, +pub mnt_ns_id: __u64, +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub supported_mask: __u64, +pub mnt_uidmap_num: __u32, +pub mnt_uidmap: __u32, +pub mnt_gidmap_num: __u32, +pub mnt_gidmap: __u32, +pub __spare2: [__u64; 43usize], +pub str_: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mnt_id_req { +pub size: __u32, +pub spare: __u32, +pub mnt_id: __u64, +pub param: __u64, +pub mnt_ns_id: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_clone_range { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fstrim_range { +pub start: __u64, +pub len: __u64, +pub minlen: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsuuid2 { +pub len: __u8, +pub uuid: [__u8; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fs_sysfs_path { +pub len: __u8, +pub name: [__u8; 128usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_dedupe_range_info { +pub dest_fd: __s64, +pub dest_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct file_dedupe_range { +pub src_offset: __u64, +pub src_length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct files_stat_struct { +pub nr_files: crate::ctypes::c_ulong, +pub nr_free_files: crate::ctypes::c_ulong, +pub max_files: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct inodes_stat_t { +pub nr_inodes: crate::ctypes::c_long, +pub nr_unused: crate::ctypes::c_long, +pub dummy: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsxattr { +pub fsx_xflags: __u32, +pub fsx_extsize: __u32, +pub fsx_nextents: __u32, +pub fsx_projid: __u32, +pub fsx_cowextsize: __u32, +pub fsx_pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct page_region { +pub start: __u64, +pub end: __u64, +pub categories: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pm_scan_arg { +pub size: __u64, +pub flags: __u64, +pub start: __u64, +pub end: __u64, +pub walk_end: __u64, +pub vec: __u64, +pub vec_len: __u64, +pub max_pages: __u64, +pub category_inverted: __u64, +pub category_mask: __u64, +pub category_anyof_mask: __u64, +pub return_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct procmap_query { +pub size: __u64, +pub query_flags: __u64, +pub query_addr: __u64, +pub vma_start: __u64, +pub vma_end: __u64, +pub vma_flags: __u64, +pub vma_page_size: __u64, +pub vma_offset: __u64, +pub inode: __u64, +pub dev_major: __u32, +pub dev_minor: __u32, +pub vma_name_size: __u32, +pub build_id_size: __u32, +pub vma_name_addr: __u64, +pub build_id_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_timespec { +pub tv_sec: __kernel_time64_t, +pub tv_nsec: crate::ctypes::c_longlong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_itimerspec { +pub it_interval: __kernel_timespec, +pub it_value: __kernel_timespec, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_long_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timespec { +pub tv_sec: __kernel_old_time_t, +pub tv_nsec: crate::ctypes::c_long, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_itimerval { +pub it_interval: __kernel_old_timeval, +pub it_value: __kernel_old_timeval, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sock_timeval { +pub tv_sec: __s64, +pub tv_usec: __s64, +} +#[repr(C)] +pub struct io_uring_sqe { +pub opcode: __u8, +pub flags: __u8, +pub ioprio: __u16, +pub fd: __s32, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, +pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, +pub len: __u32, +pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, +pub user_data: __u64, +pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, +pub personality: __u16, +pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, +pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { +pub cmd_op: __u32, +pub __pad1: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_2__bindgen_ty_1 { +pub level: __u32, +pub optname: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { +pub addr_len: __u16, +pub __pad3: [__u16; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_2 { +pub write_stream: __u8, +pub __pad4: [__u8; 3usize], +} +#[repr(C)] +pub struct io_uring_sqe__bindgen_ty_6 { +pub __bindgen_anon_1: __BindgenUnionField, +pub __bindgen_anon_2: __BindgenUnionField, +pub optval: __BindgenUnionField<__u64>, +pub cmd: __BindgenUnionField<[__u8; 0usize]>, +pub bindgen_union_field: [u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { +pub addr3: __u64, +pub __pad2: [__u64; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_2 { +pub attr_ptr: __u64, +pub attr_type_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_attr_pi { +pub flags: __u16, +pub app_tag: __u16, +pub len: __u32, +pub addr: __u64, +pub seed: __u64, +pub rsvd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct io_uring_cqe { +pub user_data: __u64, +pub res: __s32, +pub flags: __u32, +pub big_cqe: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_sqring_offsets { +pub head: __u32, +pub tail: __u32, +pub ring_mask: __u32, +pub ring_entries: __u32, +pub flags: __u32, +pub dropped: __u32, +pub array: __u32, +pub resv1: __u32, +pub user_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_cqring_offsets { +pub head: __u32, +pub tail: __u32, +pub ring_mask: __u32, +pub ring_entries: __u32, +pub overflow: __u32, +pub cqes: __u32, +pub flags: __u32, +pub resv1: __u32, +pub user_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_params { +pub sq_entries: __u32, +pub cq_entries: __u32, +pub flags: __u32, +pub sq_thread_cpu: __u32, +pub sq_thread_idle: __u32, +pub features: __u32, +pub wq_fd: __u32, +pub resv: [__u32; 3usize], +pub sq_off: io_sqring_offsets, +pub cq_off: io_cqring_offsets, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_files_update { +pub offset: __u32, +pub resv: __u32, +pub fds: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_region_desc { +pub user_addr: __u64, +pub size: __u64, +pub flags: __u32, +pub id: __u32, +pub mmap_offset: __u64, +pub __resv: [__u64; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_mem_region_reg { +pub region_uptr: __u64, +pub flags: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_rsrc_register { +pub nr: __u32, +pub flags: __u32, +pub resv2: __u64, +pub data: __u64, +pub tags: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_rsrc_update { +pub offset: __u32, +pub resv: __u32, +pub data: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_rsrc_update2 { +pub offset: __u32, +pub resv: __u32, +pub data: __u64, +pub tags: __u64, +pub nr: __u32, +pub resv2: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_probe_op { +pub op: __u8, +pub resv: __u8, +pub flags: __u16, +pub resv2: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct io_uring_probe { +pub last_op: __u8, +pub ops_len: __u8, +pub resv: __u16, +pub resv2: [__u32; 3usize], +pub ops: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct io_uring_restriction { +pub opcode: __u16, +pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, +pub resv: __u8, +pub resv2: [__u32; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_clock_register { +pub clockid: __u32, +pub __resv: [__u32; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_clone_buffers { +pub src_fd: __u32, +pub flags: __u32, +pub src_off: __u32, +pub dst_off: __u32, +pub nr: __u32, +pub pad: [__u32; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf { +pub addr: __u64, +pub len: __u32, +pub bid: __u16, +pub resv: __u16, +} +#[repr(C)] +pub struct io_uring_buf_ring { +pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_buf_ring__bindgen_ty_1 { +pub __bindgen_anon_1: __BindgenUnionField, +pub __bindgen_anon_2: __BindgenUnionField, +pub bindgen_union_field: [u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { +pub resv1: __u64, +pub resv2: __u32, +pub resv3: __u16, +pub tail: __u16, +} +#[repr(C)] +#[derive(Debug)] +pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { +pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, +pub bufs: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_reg { +pub ring_addr: __u64, +pub ring_entries: __u32, +pub bgid: __u16, +pub flags: __u16, +pub resv: [__u64; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_status { +pub buf_group: __u32, +pub head: __u32, +pub resv: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_napi { +pub busy_poll_to: __u32, +pub prefer_busy_poll: __u8, +pub opcode: __u8, +pub pad: [__u8; 2usize], +pub op_param: __u32, +pub resv: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_reg_wait { +pub ts: __kernel_timespec, +pub min_wait_usec: __u32, +pub flags: __u32, +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub pad: [__u32; 3usize], +pub pad2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_getevents_arg { +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub min_wait_usec: __u32, +pub ts: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sync_cancel_reg { +pub addr: __u64, +pub fd: __s32, +pub flags: __u32, +pub timeout: __kernel_timespec, +pub opcode: __u8, +pub pad: [__u8; 7usize], +pub pad2: [__u64; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_file_index_range { +pub off: __u32, +pub len: __u32, +pub resv: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_recvmsg_out { +pub namelen: __u32, +pub controllen: __u32, +pub payloadlen: __u32, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 3usize], +} +pub const NR_OPEN: u32 = 1024; +pub const NGROUPS_MAX: u32 = 65536; +pub const ARG_MAX: u32 = 131072; +pub const LINK_MAX: u32 = 127; +pub const MAX_CANON: u32 = 255; +pub const MAX_INPUT: u32 = 255; +pub const NAME_MAX: u32 = 255; +pub const PATH_MAX: u32 = 4096; +pub const PIPE_BUF: u32 = 4096; +pub const XATTR_NAME_MAX: u32 = 255; +pub const XATTR_SIZE_MAX: u32 = 65536; +pub const XATTR_LIST_MAX: u32 = 65536; +pub const RTSIG_MAX: u32 = 32; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_SIZEBITS: u32 = 14; +pub const _IOC_DIRBITS: u32 = 2; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 16383; +pub const _IOC_DIRMASK: u32 = 3; +pub const _IOC_NRSHIFT: u32 = 0; +pub const _IOC_TYPESHIFT: u32 = 8; +pub const _IOC_SIZESHIFT: u32 = 16; +pub const _IOC_DIRSHIFT: u32 = 30; +pub const _IOC_NONE: u32 = 0; +pub const _IOC_WRITE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const IOC_IN: u32 = 1073741824; +pub const IOC_OUT: u32 = 2147483648; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 1073676288; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; +pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; +pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; +pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; +pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; +pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; +pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; +pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; +pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; +pub const FSCRYPT_POLICY_V1: u32 = 0; +pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; +pub const FSCRYPT_POLICY_V2: u32 = 2; +pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; +pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; +pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; +pub const FSCRYPT_ADD_KEY_FLAG_HW_WRAPPED: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; +pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; +pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; +pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; +pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; +pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FS_POLICY_FLAGS_VALID: u32 = 7; +pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; +pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; +pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; +pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; +pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; +pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; +pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; +pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; +pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FS_MAX_KEY_SIZE: u32 = 64; +pub const MS_RDONLY: u32 = 1; +pub const MS_NOSUID: u32 = 2; +pub const MS_NODEV: u32 = 4; +pub const MS_NOEXEC: u32 = 8; +pub const MS_SYNCHRONOUS: u32 = 16; +pub const MS_REMOUNT: u32 = 32; +pub const MS_MANDLOCK: u32 = 64; +pub const MS_DIRSYNC: u32 = 128; +pub const MS_NOSYMFOLLOW: u32 = 256; +pub const MS_NOATIME: u32 = 1024; +pub const MS_NODIRATIME: u32 = 2048; +pub const MS_BIND: u32 = 4096; +pub const MS_MOVE: u32 = 8192; +pub const MS_REC: u32 = 16384; +pub const MS_VERBOSE: u32 = 32768; +pub const MS_SILENT: u32 = 32768; +pub const MS_POSIXACL: u32 = 65536; +pub const MS_UNBINDABLE: u32 = 131072; +pub const MS_PRIVATE: u32 = 262144; +pub const MS_SLAVE: u32 = 524288; +pub const MS_SHARED: u32 = 1048576; +pub const MS_RELATIME: u32 = 2097152; +pub const MS_KERNMOUNT: u32 = 4194304; +pub const MS_I_VERSION: u32 = 8388608; +pub const MS_STRICTATIME: u32 = 16777216; +pub const MS_LAZYTIME: u32 = 33554432; +pub const MS_SUBMOUNT: u32 = 67108864; +pub const MS_NOREMOTELOCK: u32 = 134217728; +pub const MS_NOSEC: u32 = 268435456; +pub const MS_BORN: u32 = 536870912; +pub const MS_ACTIVE: u32 = 1073741824; +pub const MS_NOUSER: u32 = 2147483648; +pub const MS_RMT_MASK: u32 = 41943121; +pub const MS_MGC_VAL: u32 = 3236757504; +pub const MS_MGC_MSK: u32 = 4294901760; +pub const OPEN_TREE_CLONE: u32 = 1; +pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; +pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; +pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; +pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; +pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; +pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; +pub const MOVE_MOUNT_SET_GROUP: u32 = 256; +pub const MOVE_MOUNT_BENEATH: u32 = 512; +pub const MOVE_MOUNT__MASK: u32 = 887; +pub const FSOPEN_CLOEXEC: u32 = 1; +pub const FSPICK_CLOEXEC: u32 = 1; +pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; +pub const FSPICK_NO_AUTOMOUNT: u32 = 4; +pub const FSPICK_EMPTY_PATH: u32 = 8; +pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const MOUNT_ATTR_RDONLY: u32 = 1; +pub const MOUNT_ATTR_NOSUID: u32 = 2; +pub const MOUNT_ATTR_NODEV: u32 = 4; +pub const MOUNT_ATTR_NOEXEC: u32 = 8; +pub const MOUNT_ATTR__ATIME: u32 = 112; +pub const MOUNT_ATTR_RELATIME: u32 = 0; +pub const MOUNT_ATTR_NOATIME: u32 = 16; +pub const MOUNT_ATTR_STRICTATIME: u32 = 32; +pub const MOUNT_ATTR_NODIRATIME: u32 = 128; +pub const MOUNT_ATTR_IDMAP: u32 = 1048576; +pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; +pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; +pub const MNT_ID_REQ_SIZE_VER0: u32 = 24; +pub const MNT_ID_REQ_SIZE_VER1: u32 = 32; +pub const STATMOUNT_SB_BASIC: u32 = 1; +pub const STATMOUNT_MNT_BASIC: u32 = 2; +pub const STATMOUNT_PROPAGATE_FROM: u32 = 4; +pub const STATMOUNT_MNT_ROOT: u32 = 8; +pub const STATMOUNT_MNT_POINT: u32 = 16; +pub const STATMOUNT_FS_TYPE: u32 = 32; +pub const STATMOUNT_MNT_NS_ID: u32 = 64; +pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; +pub const STATMOUNT_SUPPORTED_MASK: u32 = 4096; +pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; +pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; +pub const LSMT_ROOT: i32 = -1; +pub const LISTMOUNT_REVERSE: u32 = 1; +pub const INR_OPEN_CUR: u32 = 1024; +pub const INR_OPEN_MAX: u32 = 4096; +pub const BLOCK_SIZE_BITS: u32 = 10; +pub const BLOCK_SIZE: u32 = 1024; +pub const IO_INTEGRITY_CHK_GUARD: u32 = 1; +pub const IO_INTEGRITY_CHK_REFTAG: u32 = 2; +pub const IO_INTEGRITY_CHK_APPTAG: u32 = 4; +pub const IO_INTEGRITY_VALID_FLAGS: u32 = 7; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const SEEK_DATA: u32 = 3; +pub const SEEK_HOLE: u32 = 4; +pub const SEEK_MAX: u32 = 4; +pub const RENAME_NOREPLACE: u32 = 1; +pub const RENAME_EXCHANGE: u32 = 2; +pub const RENAME_WHITEOUT: u32 = 4; +pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; +pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; +pub const NR_FILE: u32 = 8192; +pub const FS_XFLAG_REALTIME: u32 = 1; +pub const FS_XFLAG_PREALLOC: u32 = 2; +pub const FS_XFLAG_IMMUTABLE: u32 = 8; +pub const FS_XFLAG_APPEND: u32 = 16; +pub const FS_XFLAG_SYNC: u32 = 32; +pub const FS_XFLAG_NOATIME: u32 = 64; +pub const FS_XFLAG_NODUMP: u32 = 128; +pub const FS_XFLAG_RTINHERIT: u32 = 256; +pub const FS_XFLAG_PROJINHERIT: u32 = 512; +pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; +pub const FS_XFLAG_EXTSIZE: u32 = 2048; +pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; +pub const FS_XFLAG_NODEFRAG: u32 = 8192; +pub const FS_XFLAG_FILESTREAM: u32 = 16384; +pub const FS_XFLAG_DAX: u32 = 32768; +pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_HASATTR: u32 = 2147483648; +pub const BMAP_IOCTL: u32 = 1; +pub const FSLABEL_MAX: u32 = 256; +pub const FS_SECRM_FL: u32 = 1; +pub const FS_UNRM_FL: u32 = 2; +pub const FS_COMPR_FL: u32 = 4; +pub const FS_SYNC_FL: u32 = 8; +pub const FS_IMMUTABLE_FL: u32 = 16; +pub const FS_APPEND_FL: u32 = 32; +pub const FS_NODUMP_FL: u32 = 64; +pub const FS_NOATIME_FL: u32 = 128; +pub const FS_DIRTY_FL: u32 = 256; +pub const FS_COMPRBLK_FL: u32 = 512; +pub const FS_NOCOMP_FL: u32 = 1024; +pub const FS_ENCRYPT_FL: u32 = 2048; +pub const FS_BTREE_FL: u32 = 4096; +pub const FS_INDEX_FL: u32 = 4096; +pub const FS_IMAGIC_FL: u32 = 8192; +pub const FS_JOURNAL_DATA_FL: u32 = 16384; +pub const FS_NOTAIL_FL: u32 = 32768; +pub const FS_DIRSYNC_FL: u32 = 65536; +pub const FS_TOPDIR_FL: u32 = 131072; +pub const FS_HUGE_FILE_FL: u32 = 262144; +pub const FS_EXTENT_FL: u32 = 524288; +pub const FS_VERITY_FL: u32 = 1048576; +pub const FS_EA_INODE_FL: u32 = 2097152; +pub const FS_EOFBLOCKS_FL: u32 = 4194304; +pub const FS_NOCOW_FL: u32 = 8388608; +pub const FS_DAX_FL: u32 = 33554432; +pub const FS_INLINE_DATA_FL: u32 = 268435456; +pub const FS_PROJINHERIT_FL: u32 = 536870912; +pub const FS_CASEFOLD_FL: u32 = 1073741824; +pub const FS_RESERVED_FL: u32 = 2147483648; +pub const FS_FL_USER_VISIBLE: u32 = 253951; +pub const FS_FL_USER_MODIFIABLE: u32 = 229631; +pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; +pub const SYNC_FILE_RANGE_WRITE: u32 = 2; +pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; +pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; +pub const PROCFS_IOCTL_MAGIC: u8 = 102u8; +pub const PAGE_IS_WPALLOWED: u32 = 1; +pub const PAGE_IS_WRITTEN: u32 = 2; +pub const PAGE_IS_FILE: u32 = 4; +pub const PAGE_IS_PRESENT: u32 = 8; +pub const PAGE_IS_SWAPPED: u32 = 16; +pub const PAGE_IS_PFNZERO: u32 = 32; +pub const PAGE_IS_HUGE: u32 = 64; +pub const PAGE_IS_SOFT_DIRTY: u32 = 128; +pub const PAGE_IS_GUARD: u32 = 256; +pub const PM_SCAN_WP_MATCHING: u32 = 1; +pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; +pub const IORING_FILE_INDEX_ALLOC: i32 = -1; +pub const IORING_SETUP_IOPOLL: u32 = 1; +pub const IORING_SETUP_SQPOLL: u32 = 2; +pub const IORING_SETUP_SQ_AFF: u32 = 4; +pub const IORING_SETUP_CQSIZE: u32 = 8; +pub const IORING_SETUP_CLAMP: u32 = 16; +pub const IORING_SETUP_ATTACH_WQ: u32 = 32; +pub const IORING_SETUP_R_DISABLED: u32 = 64; +pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; +pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; +pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; +pub const IORING_SETUP_SQE128: u32 = 1024; +pub const IORING_SETUP_CQE32: u32 = 2048; +pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; +pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; +pub const IORING_SETUP_NO_MMAP: u32 = 16384; +pub const IORING_SETUP_REGISTERED_FD_ONLY: u32 = 32768; +pub const IORING_SETUP_NO_SQARRAY: u32 = 65536; +pub const IORING_SETUP_HYBRID_IOPOLL: u32 = 131072; +pub const IORING_URING_CMD_FIXED: u32 = 1; +pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_FSYNC_DATASYNC: u32 = 1; +pub const IORING_TIMEOUT_ABS: u32 = 1; +pub const IORING_TIMEOUT_UPDATE: u32 = 2; +pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; +pub const IORING_TIMEOUT_REALTIME: u32 = 8; +pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; +pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; +pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; +pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; +pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; +pub const IORING_POLL_ADD_MULTI: u32 = 1; +pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; +pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; +pub const IORING_POLL_ADD_LEVEL: u32 = 8; +pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; +pub const IORING_ASYNC_CANCEL_FD: u32 = 2; +pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; +pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; +pub const IORING_ASYNC_CANCEL_USERDATA: u32 = 16; +pub const IORING_ASYNC_CANCEL_OP: u32 = 32; +pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; +pub const IORING_RECV_MULTISHOT: u32 = 2; +pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; +pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; +pub const IORING_RECVSEND_BUNDLE: u32 = 16; +pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; +pub const IORING_ACCEPT_MULTISHOT: u32 = 1; +pub const IORING_ACCEPT_DONTWAIT: u32 = 2; +pub const IORING_ACCEPT_POLL_FIRST: u32 = 4; +pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; +pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; +pub const IORING_FIXED_FD_NO_CLOEXEC: u32 = 1; +pub const IORING_NOP_INJECT_RESULT: u32 = 1; +pub const IORING_NOP_FILE: u32 = 2; +pub const IORING_NOP_FIXED_FILE: u32 = 4; +pub const IORING_NOP_FIXED_BUFFER: u32 = 8; +pub const IORING_CQE_F_BUFFER: u32 = 1; +pub const IORING_CQE_F_MORE: u32 = 2; +pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; +pub const IORING_CQE_F_NOTIF: u32 = 8; +pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; +pub const IORING_OFF_SQ_RING: u32 = 0; +pub const IORING_OFF_CQ_RING: u32 = 134217728; +pub const IORING_OFF_SQES: u32 = 268435456; +pub const IORING_OFF_PBUF_RING: u32 = 2147483648; +pub const IORING_OFF_PBUF_SHIFT: u32 = 16; +pub const IORING_OFF_MMAP_MASK: u32 = 4160749568; +pub const IORING_SQ_NEED_WAKEUP: u32 = 1; +pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; +pub const IORING_SQ_TASKRUN: u32 = 4; +pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; +pub const IORING_ENTER_GETEVENTS: u32 = 1; +pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; +pub const IORING_ENTER_SQ_WAIT: u32 = 4; +pub const IORING_ENTER_EXT_ARG: u32 = 8; +pub const IORING_ENTER_REGISTERED_RING: u32 = 16; +pub const IORING_ENTER_ABS_TIMER: u32 = 32; +pub const IORING_ENTER_EXT_ARG_REG: u32 = 64; +pub const IORING_ENTER_NO_IOWAIT: u32 = 128; +pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; +pub const IORING_FEAT_NODROP: u32 = 2; +pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; +pub const IORING_FEAT_RW_CUR_POS: u32 = 8; +pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; +pub const IORING_FEAT_FAST_POLL: u32 = 32; +pub const IORING_FEAT_POLL_32BITS: u32 = 64; +pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; +pub const IORING_FEAT_EXT_ARG: u32 = 256; +pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; +pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; +pub const IORING_FEAT_CQE_SKIP: u32 = 2048; +pub const IORING_FEAT_LINKED_FILE: u32 = 4096; +pub const IORING_FEAT_REG_REG_RING: u32 = 8192; +pub const IORING_FEAT_RECVSEND_BUNDLE: u32 = 16384; +pub const IORING_FEAT_MIN_TIMEOUT: u32 = 32768; +pub const IORING_FEAT_RW_ATTR: u32 = 65536; +pub const IORING_FEAT_NO_IOWAIT: u32 = 131072; +pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; +pub const IORING_REGISTER_FILES_SKIP: i32 = -2; +pub const IO_URING_OP_SUPPORTED: u32 = 1; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; +pub const IORING_MEM_REGION_TYPE_USER: _bindgen_ty_1 = _bindgen_ty_1::IORING_MEM_REGION_TYPE_USER; +pub const IORING_MEM_REGION_REG_WAIT_ARG: _bindgen_ty_2 = _bindgen_ty_2::IORING_MEM_REGION_REG_WAIT_ARG; +pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_REGISTER_DST_REPLACE: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_DST_REPLACE; +pub const IORING_REG_WAIT_TS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REG_WAIT_TS; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum fsconfig_command { +FSCONFIG_SET_FLAG = 0, +FSCONFIG_SET_STRING = 1, +FSCONFIG_SET_BINARY = 2, +FSCONFIG_SET_PATH = 3, +FSCONFIG_SET_PATH_EMPTY = 4, +FSCONFIG_SET_FD = 5, +FSCONFIG_CMD_CREATE = 6, +FSCONFIG_CMD_RECONFIGURE = 7, +FSCONFIG_CMD_CREATE_EXCL = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum procmap_query_flags { +PROCMAP_QUERY_VMA_READABLE = 1, +PROCMAP_QUERY_VMA_WRITABLE = 2, +PROCMAP_QUERY_VMA_EXECUTABLE = 4, +PROCMAP_QUERY_VMA_SHARED = 8, +PROCMAP_QUERY_COVERING_OR_NEXT_VMA = 16, +PROCMAP_QUERY_FILE_BACKED_VMA = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_sqe_flags_bit { +IOSQE_FIXED_FILE_BIT = 0, +IOSQE_IO_DRAIN_BIT = 1, +IOSQE_IO_LINK_BIT = 2, +IOSQE_IO_HARDLINK_BIT = 3, +IOSQE_ASYNC_BIT = 4, +IOSQE_BUFFER_SELECT_BIT = 5, +IOSQE_CQE_SKIP_SUCCESS_BIT = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_op { +IORING_OP_NOP = 0, +IORING_OP_READV = 1, +IORING_OP_WRITEV = 2, +IORING_OP_FSYNC = 3, +IORING_OP_READ_FIXED = 4, +IORING_OP_WRITE_FIXED = 5, +IORING_OP_POLL_ADD = 6, +IORING_OP_POLL_REMOVE = 7, +IORING_OP_SYNC_FILE_RANGE = 8, +IORING_OP_SENDMSG = 9, +IORING_OP_RECVMSG = 10, +IORING_OP_TIMEOUT = 11, +IORING_OP_TIMEOUT_REMOVE = 12, +IORING_OP_ACCEPT = 13, +IORING_OP_ASYNC_CANCEL = 14, +IORING_OP_LINK_TIMEOUT = 15, +IORING_OP_CONNECT = 16, +IORING_OP_FALLOCATE = 17, +IORING_OP_OPENAT = 18, +IORING_OP_CLOSE = 19, +IORING_OP_FILES_UPDATE = 20, +IORING_OP_STATX = 21, +IORING_OP_READ = 22, +IORING_OP_WRITE = 23, +IORING_OP_FADVISE = 24, +IORING_OP_MADVISE = 25, +IORING_OP_SEND = 26, +IORING_OP_RECV = 27, +IORING_OP_OPENAT2 = 28, +IORING_OP_EPOLL_CTL = 29, +IORING_OP_SPLICE = 30, +IORING_OP_PROVIDE_BUFFERS = 31, +IORING_OP_REMOVE_BUFFERS = 32, +IORING_OP_TEE = 33, +IORING_OP_SHUTDOWN = 34, +IORING_OP_RENAMEAT = 35, +IORING_OP_UNLINKAT = 36, +IORING_OP_MKDIRAT = 37, +IORING_OP_SYMLINKAT = 38, +IORING_OP_LINKAT = 39, +IORING_OP_MSG_RING = 40, +IORING_OP_FSETXATTR = 41, +IORING_OP_SETXATTR = 42, +IORING_OP_FGETXATTR = 43, +IORING_OP_GETXATTR = 44, +IORING_OP_SOCKET = 45, +IORING_OP_URING_CMD = 46, +IORING_OP_SEND_ZC = 47, +IORING_OP_SENDMSG_ZC = 48, +IORING_OP_READ_MULTISHOT = 49, +IORING_OP_WAITID = 50, +IORING_OP_FUTEX_WAIT = 51, +IORING_OP_FUTEX_WAKE = 52, +IORING_OP_FUTEX_WAITV = 53, +IORING_OP_FIXED_FD_INSTALL = 54, +IORING_OP_FTRUNCATE = 55, +IORING_OP_BIND = 56, +IORING_OP_LISTEN = 57, +IORING_OP_RECV_ZC = 58, +IORING_OP_EPOLL_WAIT = 59, +IORING_OP_READV_FIXED = 60, +IORING_OP_WRITEV_FIXED = 61, +IORING_OP_PIPE = 62, +IORING_OP_LAST = 63, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_msg_ring_flags { +IORING_MSG_DATA = 0, +IORING_MSG_SEND_FD = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_register_op { +IORING_REGISTER_BUFFERS = 0, +IORING_UNREGISTER_BUFFERS = 1, +IORING_REGISTER_FILES = 2, +IORING_UNREGISTER_FILES = 3, +IORING_REGISTER_EVENTFD = 4, +IORING_UNREGISTER_EVENTFD = 5, +IORING_REGISTER_FILES_UPDATE = 6, +IORING_REGISTER_EVENTFD_ASYNC = 7, +IORING_REGISTER_PROBE = 8, +IORING_REGISTER_PERSONALITY = 9, +IORING_UNREGISTER_PERSONALITY = 10, +IORING_REGISTER_RESTRICTIONS = 11, +IORING_REGISTER_ENABLE_RINGS = 12, +IORING_REGISTER_FILES2 = 13, +IORING_REGISTER_FILES_UPDATE2 = 14, +IORING_REGISTER_BUFFERS2 = 15, +IORING_REGISTER_BUFFERS_UPDATE = 16, +IORING_REGISTER_IOWQ_AFF = 17, +IORING_UNREGISTER_IOWQ_AFF = 18, +IORING_REGISTER_IOWQ_MAX_WORKERS = 19, +IORING_REGISTER_RING_FDS = 20, +IORING_UNREGISTER_RING_FDS = 21, +IORING_REGISTER_PBUF_RING = 22, +IORING_UNREGISTER_PBUF_RING = 23, +IORING_REGISTER_SYNC_CANCEL = 24, +IORING_REGISTER_FILE_ALLOC_RANGE = 25, +IORING_REGISTER_PBUF_STATUS = 26, +IORING_REGISTER_NAPI = 27, +IORING_UNREGISTER_NAPI = 28, +IORING_REGISTER_CLOCK = 29, +IORING_REGISTER_CLONE_BUFFERS = 30, +IORING_REGISTER_SEND_MSG_RING = 31, +IORING_REGISTER_ZCRX_IFQ = 32, +IORING_REGISTER_RESIZE_RINGS = 33, +IORING_REGISTER_MEM_REGION = 34, +IORING_REGISTER_LAST = 35, +IORING_REGISTER_USE_REGISTERED_RING = 2147483648, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_wq_type { +IO_WQ_BOUND = 0, +IO_WQ_UNBOUND = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +IORING_MEM_REGION_TYPE_USER = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IORING_MEM_REGION_REG_WAIT_ARG = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +IORING_REGISTER_SRC_REGISTERED = 1, +IORING_REGISTER_DST_REPLACE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_register_pbuf_ring_flags { +IOU_PBUF_RING_MMAP = 1, +IOU_PBUF_RING_INC = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_op { +IO_URING_NAPI_REGISTER_OP = 0, +IO_URING_NAPI_STATIC_ADD_ID = 1, +IO_URING_NAPI_STATIC_DEL_ID = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_tracking_strategy { +IO_URING_NAPI_TRACKING_DYNAMIC = 0, +IO_URING_NAPI_TRACKING_STATIC = 1, +IO_URING_NAPI_TRACKING_INACTIVE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_register_restriction_op { +IORING_RESTRICTION_REGISTER_OP = 0, +IORING_RESTRICTION_SQE_OP = 1, +IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, +IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, +IORING_RESTRICTION_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IORING_REG_WAIT_TS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_socket_op { +SOCKET_URING_OP_SIOCINQ = 0, +SOCKET_URING_OP_SIOCOUTQ = 1, +SOCKET_URING_OP_GETSOCKOPT = 2, +SOCKET_URING_OP_SETSOCKOPT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __vector128__bindgen_ty_1 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1, +pub u: [__u32; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { +pub version: __u8, +pub v1: fscrypt_policy_v1, +pub v2: fscrypt_policy_v2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_key_specifier__bindgen_ty_1 { +pub __reserved: [__u8; 32usize], +pub descriptor: [__u8; 8usize], +pub identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_1 { +pub off: __u64, +pub addr2: __u64, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_2 { +pub addr: __u64, +pub splice_off_in: __u64, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_2__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_3 { +pub rw_flags: __kernel_rwf_t, +pub fsync_flags: __u32, +pub poll_events: __u16, +pub poll32_events: __u32, +pub sync_range_flags: __u32, +pub msg_flags: __u32, +pub timeout_flags: __u32, +pub accept_flags: __u32, +pub cancel_flags: __u32, +pub open_flags: __u32, +pub statx_flags: __u32, +pub fadvise_advice: __u32, +pub splice_flags: __u32, +pub rename_flags: __u32, +pub unlink_flags: __u32, +pub hardlink_flags: __u32, +pub xattr_flags: __u32, +pub msg_ring_flags: __u32, +pub uring_cmd_flags: __u32, +pub waitid_flags: __u32, +pub futex_flags: __u32, +pub install_fd_flags: __u32, +pub nop_flags: __u32, +pub pipe_flags: __u32, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_4 { +pub buf_index: __u16, +pub buf_group: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_5 { +pub splice_fd_in: __s32, +pub file_index: __u32, +pub zcrx_ifq_idx: __u32, +pub optlen: __u32, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, +pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_5__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_restriction__bindgen_ty_1 { +pub register_op: __u8, +pub sqe_op: __u8, +pub sqe_flags: __u8, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl __BindgenUnionField { +#[inline] +pub const fn new() -> Self { +__BindgenUnionField(::core::marker::PhantomData) +} +#[inline] +pub unsafe fn as_ref(&self) -> &T { +::core::mem::transmute(self) +} +#[inline] +pub unsafe fn as_mut(&mut self) -> &mut T { +::core::mem::transmute(self) +} +} +impl ::core::default::Default for __BindgenUnionField { +#[inline] +fn default() -> Self { +Self::new() +} +} +impl ::core::clone::Clone for __BindgenUnionField { +#[inline] +fn clone(&self) -> Self { +*self +} +} +impl ::core::marker::Copy for __BindgenUnionField {} +impl ::core::fmt::Debug for __BindgenUnionField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__BindgenUnionField") +} +} +impl ::core::hash::Hash for __BindgenUnionField { +fn hash(&self, _state: &mut H) {} +} +impl ::core::cmp::PartialEq for __BindgenUnionField { +fn eq(&self, _other: &__BindgenUnionField) -> bool { +true +} +} +impl ::core::cmp::Eq for __BindgenUnionField {} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/ioctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/ioctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..0e30001e3b8b0ba1ad038001dd1cf465e5be972d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/ioctl.rs @@ -0,0 +1,1502 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const FIONREAD: u32 = 21531; +pub const FIONBIO: u32 = 21537; +pub const FIOCLEX: u32 = 21585; +pub const FIONCLEX: u32 = 21584; +pub const FIOASYNC: u32 = 21586; +pub const FIOQSIZE: u32 = 21598; +pub const TCXONC: u32 = 21514; +pub const TCFLSH: u32 = 21515; +pub const TIOCSCTTY: u32 = 21518; +pub const TIOCSPGRP: u32 = 21520; +pub const TIOCOUTQ: u32 = 21521; +pub const TIOCSTI: u32 = 21522; +pub const TIOCSWINSZ: u32 = 21524; +pub const TIOCMGET: u32 = 21525; +pub const TIOCMBIS: u32 = 21526; +pub const TIOCMBIC: u32 = 21527; +pub const TIOCMSET: u32 = 21528; +pub const TIOCSSOFTCAR: u32 = 21530; +pub const TIOCLINUX: u32 = 21532; +pub const TIOCCONS: u32 = 21533; +pub const TIOCSSERIAL: u32 = 21535; +pub const TIOCPKT: u32 = 21536; +pub const TIOCNOTTY: u32 = 21538; +pub const TIOCSETD: u32 = 21539; +pub const TIOCSBRK: u32 = 21543; +pub const TIOCCBRK: u32 = 21544; +pub const TIOCSRS485: u32 = 21551; +pub const TIOCSPTLCK: u32 = 1074025521; +pub const TIOCSIG: u32 = 1074025526; +pub const TIOCVHANGUP: u32 = 21559; +pub const TIOCSERCONFIG: u32 = 21587; +pub const TIOCSERGWILD: u32 = 21588; +pub const TIOCSERSWILD: u32 = 21589; +pub const TIOCSLCKTRMIOS: u32 = 21591; +pub const TIOCSERGSTRUCT: u32 = 21592; +pub const TIOCSERGETLSR: u32 = 21593; +pub const TIOCSERGETMULTI: u32 = 21594; +pub const TIOCSERSETMULTI: u32 = 21595; +pub const TIOCMIWAIT: u32 = 21596; +pub const TCGETS: u32 = 21505; +pub const TCGETA: u32 = 21509; +pub const TCSBRK: u32 = 21513; +pub const TCSBRKP: u32 = 21541; +pub const TCSETA: u32 = 21510; +pub const TCSETAF: u32 = 21512; +pub const TCSETAW: u32 = 21511; +pub const TIOCEXCL: u32 = 21516; +pub const TIOCNXCL: u32 = 21517; +pub const TIOCGDEV: u32 = 2147767346; +pub const TIOCGEXCL: u32 = 2147767360; +pub const TIOCGICOUNT: u32 = 21597; +pub const TIOCGLCKTRMIOS: u32 = 21590; +pub const TIOCGPGRP: u32 = 21519; +pub const TIOCGPKT: u32 = 2147767352; +pub const TIOCGPTLCK: u32 = 2147767353; +pub const TIOCGPTN: u32 = 2147767344; +pub const TIOCGPTPEER: u32 = 21569; +pub const TIOCGRS485: u32 = 21550; +pub const TIOCGSERIAL: u32 = 21534; +pub const TIOCGSID: u32 = 21545; +pub const TIOCGSOFTCAR: u32 = 21529; +pub const TIOCGWINSZ: u32 = 21523; +pub const TCGETS2: u32 = 2150388778; +pub const TCGETX: u32 = 21554; +pub const TCSETS: u32 = 21506; +pub const TCSETS2: u32 = 1076646955; +pub const TCSETSF: u32 = 21508; +pub const TCSETSF2: u32 = 1076646957; +pub const TCSETSW: u32 = 21507; +pub const TCSETSW2: u32 = 1076646956; +pub const TCSETX: u32 = 21555; +pub const TCSETXF: u32 = 21556; +pub const TCSETXW: u32 = 21557; +pub const TIOCGETD: u32 = 21540; +pub const MTIOCGET: u32 = 2150657282; +pub const BLKSSZGET: u32 = 4712; +pub const BLKPBSZGET: u32 = 4731; +pub const BLKROSET: u32 = 4701; +pub const BLKROGET: u32 = 4702; +pub const BLKRRPART: u32 = 4703; +pub const BLKGETSIZE: u32 = 4704; +pub const BLKFLSBUF: u32 = 4705; +pub const BLKRASET: u32 = 4706; +pub const BLKRAGET: u32 = 4707; +pub const BLKFRASET: u32 = 4708; +pub const BLKFRAGET: u32 = 4709; +pub const BLKSECTSET: u32 = 4710; +pub const BLKSECTGET: u32 = 4711; +pub const BLKPG: u32 = 4713; +pub const BLKBSZGET: u32 = 2148012656; +pub const BLKBSZSET: u32 = 1074270833; +pub const BLKGETSIZE64: u32 = 2148012658; +pub const BLKTRACESETUP: u32 = 3225948787; +pub const BLKTRACESTART: u32 = 4724; +pub const BLKTRACESTOP: u32 = 4725; +pub const BLKTRACETEARDOWN: u32 = 4726; +pub const BLKDISCARD: u32 = 4727; +pub const BLKIOMIN: u32 = 4728; +pub const BLKIOOPT: u32 = 4729; +pub const BLKALIGNOFF: u32 = 4730; +pub const BLKDISCARDZEROES: u32 = 4732; +pub const BLKSECDISCARD: u32 = 4733; +pub const BLKROTATIONAL: u32 = 4734; +pub const BLKZEROOUT: u32 = 4735; +pub const FIEMAP_MAX_OFFSET: i32 = -1; +pub const FIEMAP_FLAG_SYNC: u32 = 1; +pub const FIEMAP_FLAG_XATTR: u32 = 2; +pub const FIEMAP_FLAG_CACHE: u32 = 4; +pub const FIEMAP_FLAGS_COMPAT: u32 = 3; +pub const FIEMAP_EXTENT_LAST: u32 = 1; +pub const FIEMAP_EXTENT_UNKNOWN: u32 = 2; +pub const FIEMAP_EXTENT_DELALLOC: u32 = 4; +pub const FIEMAP_EXTENT_ENCODED: u32 = 8; +pub const FIEMAP_EXTENT_DATA_ENCRYPTED: u32 = 128; +pub const FIEMAP_EXTENT_NOT_ALIGNED: u32 = 256; +pub const FIEMAP_EXTENT_DATA_INLINE: u32 = 512; +pub const FIEMAP_EXTENT_DATA_TAIL: u32 = 1024; +pub const FIEMAP_EXTENT_UNWRITTEN: u32 = 2048; +pub const FIEMAP_EXTENT_MERGED: u32 = 4096; +pub const FIEMAP_EXTENT_SHARED: u32 = 8192; +pub const UFFDIO_REGISTER: u32 = 3223366144; +pub const UFFDIO_UNREGISTER: u32 = 2148575745; +pub const UFFDIO_WAKE: u32 = 2148575746; +pub const UFFDIO_COPY: u32 = 3223890435; +pub const UFFDIO_ZEROPAGE: u32 = 3223366148; +pub const UFFDIO_WRITEPROTECT: u32 = 3222841862; +pub const UFFDIO_API: u32 = 3222841919; +pub const NS_GET_USERNS: u32 = 46849; +pub const NS_GET_PARENT: u32 = 46850; +pub const NS_GET_NSTYPE: u32 = 46851; +pub const KDGETLED: u32 = 19249; +pub const KDSETLED: u32 = 19250; +pub const KDGKBLED: u32 = 19300; +pub const KDSKBLED: u32 = 19301; +pub const KDGKBTYPE: u32 = 19251; +pub const KDADDIO: u32 = 19252; +pub const KDDELIO: u32 = 19253; +pub const KDENABIO: u32 = 19254; +pub const KDDISABIO: u32 = 19255; +pub const KDSETMODE: u32 = 19258; +pub const KDGETMODE: u32 = 19259; +pub const KDMKTONE: u32 = 19248; +pub const KIOCSOUND: u32 = 19247; +pub const GIO_CMAP: u32 = 19312; +pub const PIO_CMAP: u32 = 19313; +pub const GIO_FONT: u32 = 19296; +pub const GIO_FONTX: u32 = 19307; +pub const PIO_FONT: u32 = 19297; +pub const PIO_FONTX: u32 = 19308; +pub const PIO_FONTRESET: u32 = 19309; +pub const GIO_SCRNMAP: u32 = 19264; +pub const GIO_UNISCRNMAP: u32 = 19305; +pub const PIO_SCRNMAP: u32 = 19265; +pub const PIO_UNISCRNMAP: u32 = 19306; +pub const GIO_UNIMAP: u32 = 19302; +pub const PIO_UNIMAP: u32 = 19303; +pub const PIO_UNIMAPCLR: u32 = 19304; +pub const KDGKBMODE: u32 = 19268; +pub const KDSKBMODE: u32 = 19269; +pub const KDGKBMETA: u32 = 19298; +pub const KDSKBMETA: u32 = 19299; +pub const KDGKBENT: u32 = 19270; +pub const KDSKBENT: u32 = 19271; +pub const KDGKBSENT: u32 = 19272; +pub const KDSKBSENT: u32 = 19273; +pub const KDGKBDIACR: u32 = 19274; +pub const KDGETKEYCODE: u32 = 19276; +pub const KDSETKEYCODE: u32 = 19277; +pub const KDSIGACCEPT: u32 = 19278; +pub const VT_OPENQRY: u32 = 22016; +pub const VT_GETMODE: u32 = 22017; +pub const VT_SETMODE: u32 = 22018; +pub const VT_GETSTATE: u32 = 22019; +pub const VT_RELDISP: u32 = 22021; +pub const VT_ACTIVATE: u32 = 22022; +pub const VT_WAITACTIVE: u32 = 22023; +pub const VT_DISALLOCATE: u32 = 22024; +pub const VT_RESIZE: u32 = 22025; +pub const VT_RESIZEX: u32 = 22026; +pub const FIOSETOWN: u32 = 35073; +pub const SIOCSPGRP: u32 = 35074; +pub const FIOGETOWN: u32 = 35075; +pub const SIOCGPGRP: u32 = 35076; +pub const SIOCATMARK: u32 = 35077; +pub const SIOCGSTAMP: u32 = 35078; +pub const TIOCINQ: u32 = 21531; +pub const SIOCADDRT: u32 = 35083; +pub const SIOCDELRT: u32 = 35084; +pub const SIOCGIFNAME: u32 = 35088; +pub const SIOCSIFLINK: u32 = 35089; +pub const SIOCGIFCONF: u32 = 35090; +pub const SIOCGIFFLAGS: u32 = 35091; +pub const SIOCSIFFLAGS: u32 = 35092; +pub const SIOCGIFADDR: u32 = 35093; +pub const SIOCSIFADDR: u32 = 35094; +pub const SIOCGIFDSTADDR: u32 = 35095; +pub const SIOCSIFDSTADDR: u32 = 35096; +pub const SIOCGIFBRDADDR: u32 = 35097; +pub const SIOCSIFBRDADDR: u32 = 35098; +pub const SIOCGIFNETMASK: u32 = 35099; +pub const SIOCSIFNETMASK: u32 = 35100; +pub const SIOCGIFMETRIC: u32 = 35101; +pub const SIOCSIFMETRIC: u32 = 35102; +pub const SIOCGIFMEM: u32 = 35103; +pub const SIOCSIFMEM: u32 = 35104; +pub const SIOCGIFMTU: u32 = 35105; +pub const SIOCSIFMTU: u32 = 35106; +pub const SIOCSIFHWADDR: u32 = 35108; +pub const SIOCGIFENCAP: u32 = 35109; +pub const SIOCSIFENCAP: u32 = 35110; +pub const SIOCGIFHWADDR: u32 = 35111; +pub const SIOCGIFSLAVE: u32 = 35113; +pub const SIOCSIFSLAVE: u32 = 35120; +pub const SIOCADDMULTI: u32 = 35121; +pub const SIOCDELMULTI: u32 = 35122; +pub const SIOCDARP: u32 = 35155; +pub const SIOCGARP: u32 = 35156; +pub const SIOCSARP: u32 = 35157; +pub const SIOCDRARP: u32 = 35168; +pub const SIOCGRARP: u32 = 35169; +pub const SIOCSRARP: u32 = 35170; +pub const SIOCGIFMAP: u32 = 35184; +pub const SIOCSIFMAP: u32 = 35185; +pub const SIOCRTMSG: u32 = 35085; +pub const SIOCSIFNAME: u32 = 35107; +pub const SIOCGIFINDEX: u32 = 35123; +pub const SIOGIFINDEX: u32 = 35123; +pub const SIOCSIFPFLAGS: u32 = 35124; +pub const SIOCGIFPFLAGS: u32 = 35125; +pub const SIOCDIFADDR: u32 = 35126; +pub const SIOCSIFHWBROADCAST: u32 = 35127; +pub const SIOCGIFCOUNT: u32 = 35128; +pub const SIOCGIFBR: u32 = 35136; +pub const SIOCSIFBR: u32 = 35137; +pub const SIOCGIFTXQLEN: u32 = 35138; +pub const SIOCSIFTXQLEN: u32 = 35139; +pub const SIOCADDDLCI: u32 = 35200; +pub const SIOCDELDLCI: u32 = 35201; +pub const SIOCDEVPRIVATE: u32 = 35312; +pub const SIOCPROTOPRIVATE: u32 = 35296; +pub const FIBMAP: u32 = 1; +pub const FIGETBSZ: u32 = 2; +pub const FIFREEZE: u32 = 3221510263; +pub const FITHAW: u32 = 3221510264; +pub const FITRIM: u32 = 3222820985; +pub const FICLONE: u32 = 1074041865; +pub const FICLONERANGE: u32 = 1075876877; +pub const FIDEDUPERANGE: u32 = 3222836278; +pub const FS_IOC_GETFLAGS: u32 = 2148034049; +pub const FS_IOC_SETFLAGS: u32 = 1074292226; +pub const FS_IOC_GETVERSION: u32 = 2148038145; +pub const FS_IOC_SETVERSION: u32 = 1074296322; +pub const FS_IOC_FIEMAP: u32 = 3223348747; +pub const FS_IOC32_GETFLAGS: u32 = 2147771905; +pub const FS_IOC32_SETFLAGS: u32 = 1074030082; +pub const FS_IOC32_GETVERSION: u32 = 2147776001; +pub const FS_IOC32_SETVERSION: u32 = 1074034178; +pub const FS_IOC_FSGETXATTR: u32 = 2149341215; +pub const FS_IOC_FSSETXATTR: u32 = 1075599392; +pub const FS_IOC_GETFSLABEL: u32 = 2164298801; +pub const FS_IOC_SETFSLABEL: u32 = 1090556978; +pub const EXT4_IOC_GETVERSION: u32 = 2148034051; +pub const EXT4_IOC_SETVERSION: u32 = 1074292228; +pub const EXT4_IOC_GETVERSION_OLD: u32 = 2148038145; +pub const EXT4_IOC_SETVERSION_OLD: u32 = 1074296322; +pub const EXT4_IOC_GETRSVSZ: u32 = 2148034053; +pub const EXT4_IOC_SETRSVSZ: u32 = 1074292230; +pub const EXT4_IOC_GROUP_EXTEND: u32 = 1074292231; +pub const EXT4_IOC_MIGRATE: u32 = 26121; +pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 26124; +pub const EXT4_IOC_RESIZE_FS: u32 = 1074292240; +pub const EXT4_IOC_SWAP_BOOT: u32 = 26129; +pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 26130; +pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 26152; +pub const EXT4_IOC_GETSTATE: u32 = 1074030121; +pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; +pub const EXT4_IOC_CHECKPOINT: u32 = 1074030123; +pub const EXT4_IOC_SHUTDOWN: u32 = 2147768445; +pub const EXT4_IOC32_GETVERSION: u32 = 2147771907; +pub const EXT4_IOC32_SETVERSION: u32 = 1074030084; +pub const EXT4_IOC32_GETRSVSZ: u32 = 2147771909; +pub const EXT4_IOC32_SETRSVSZ: u32 = 1074030086; +pub const EXT4_IOC32_GROUP_EXTEND: u32 = 1074030087; +pub const EXT4_IOC32_GETVERSION_OLD: u32 = 2147776001; +pub const EXT4_IOC32_SETVERSION_OLD: u32 = 1074034178; +pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 2148030015; +pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; +pub const LIRC_SET_SEND_CARRIER: u32 = 1074030867; +pub const AUTOFS_IOC_PROTOSUBVER: u32 = 2147783527; +pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; +pub const FSI_SCOM_WRITE: u32 = 3223352066; +pub const ATM_GETCIRANGE: u32 = 1074815370; +pub const DMA_BUF_SET_NAME_B: u32 = 1074291201; +pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; +pub const TUNSETPERSIST: u32 = 1074025675; +pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 1074554389; +pub const CEC_RECEIVE: u32 = 3224920326; +pub const MGSL_IOCGPARAMS: u32 = 2150657281; +pub const ENI_SETMULT: u32 = 1074815335; +pub const RIO_GET_EVENT_MASK: u32 = 2147773710; +pub const LIRC_GET_MAX_TIMEOUT: u32 = 2147772681; +pub const USBDEVFS_CLAIMINTERFACE: u32 = 2147767567; +pub const CHIOMOVE: u32 = 1075077889; +pub const SONYPI_IOCGBATFLAGS: u32 = 2147579399; +pub const BTRFS_IOC_SYNC: u32 = 37896; +pub const VIDIOC_TRY_FMT: u32 = 3234879040; +pub const LIRC_SET_REC_MODE: u32 = 1074030866; +pub const VIDIOC_DQEVENT: u32 = 2156418649; +pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 46338; +pub const UVCIOC_CTRL_MAP: u32 = 3227546912; +pub const VHOST_SET_BACKEND_FEATURES: u32 = 1074310949; +pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 1074311008; +pub const UI_SET_KEYBIT: u32 = 1074025829; +pub const LIRC_SET_REC_TIMEOUT: u32 = 1074030872; +pub const FS_IOC_GET_ENCRYPTION_KEY_STATUS: u32 = 3229640218; +pub const BTRFS_IOC_TREE_SEARCH_V2: u32 = 3228603409; +pub const VHOST_SET_VRING_BASE: u32 = 1074310930; +pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 1074294025; +pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3223344713; +pub const LIRC_GET_REC_MODE: u32 = 2147772674; +pub const PPGETTIME: u32 = 2148561045; +pub const BTRFS_IOC_RM_DEV: u32 = 1342215179; +pub const ATM_SETBACKEND: u32 = 1073897970; +pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; +pub const FBIO_WAITEVENT: u32 = 18056; +pub const SWITCHTEC_IOCTL_PORT_TO_PFF: u32 = 3222034245; +pub const NVME_IOCTL_IO_CMD: u32 = 3225964099; +pub const IPMICTL_RECEIVE_MSG_TRUNC: u32 = 3224398091; +pub const FDTWADDLE: u32 = 601; +pub const NVME_IOCTL_SUBMIT_IO: u32 = 1076907586; +pub const NILFS_IOCTL_SYNC: u32 = 2148036234; +pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; +pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; +pub const DM_DEV_STATUS: u32 = 3241737479; +pub const TEE_IOC_CLOSE_SESSION: u32 = 2147787781; +pub const NS_GETPSTAT: u32 = 3222298977; +pub const UI_SET_PROPBIT: u32 = 1074025838; +pub const TUNSETFILTEREBPF: u32 = 2147767521; +pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 1074031874; +pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; +pub const WDIOC_SETOPTIONS: u32 = 2147768068; +pub const VHOST_SCSI_SET_ENDPOINT: u32 = 1088991040; +pub const MGSL_IOCGTXIDLE: u32 = 27907; +pub const ATM_ADDLECSADDR: u32 = 1074815374; +pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; +pub const FDGETPRM: u32 = 2149581316; +pub const HIDIOCAPPLICATION: u32 = 18434; +pub const ENI_MEMDUMP: u32 = 1074815328; +pub const PTP_SYS_OFFSET2: u32 = 1128283406; +pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; +pub const DMA_BUF_SET_NAME_A: u32 = 1074029057; +pub const PTP_PIN_GETFUNC: u32 = 3227532550; +pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; +pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 1074312776; +pub const RTC_EPOCH_READ: u32 = 2148036621; +pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; +pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; +pub const ATM_GETLECSADDR: u32 = 1074815376; +pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; +pub const SONET_GETDIAG: u32 = 2147770644; +pub const ATMMPC_DATA: u32 = 25049; +pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 2148296989; +pub const HIDIOCGCOLLECTIONINDEX: u32 = 1075333136; +pub const RPMSG_CREATE_EPT_IOCTL: u32 = 1076409601; +pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; +pub const UI_DEV_SETUP: u32 = 1079792899; +pub const ISST_IF_IO_CMD: u32 = 1074331138; +pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 2149084423; +pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; +pub const BLKGETNRZONES: u32 = 2147750533; +pub const VIDIOC_G_MODULATOR: u32 = 3225703990; +pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; +pub const USBDEVFS_SETINTERFACE: u32 = 2148029700; +pub const PPPIOCGCHAN: u32 = 2147775543; +pub const EVIOCGVERSION: u32 = 2147763457; +pub const VHOST_NET_SET_BACKEND: u32 = 1074310960; +pub const USBDEVFS_REAPURBNDELAY: u32 = 1074287885; +pub const RNDZAPENTCNT: u32 = 20996; +pub const VIDIOC_G_PARM: u32 = 3234616853; +pub const TUNGETDEVNETNS: u32 = 21731; +pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 1074030877; +pub const VHOST_SET_VRING_ERR: u32 = 1074310946; +pub const VDUSE_VQ_SETUP: u32 = 1075872020; +pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221787492; +pub const VIDIOC_S_FREQUENCY: u32 = 1076647481; +pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 1075377428; +pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; +pub const WDIOC_GETPRETIMEOUT: u32 = 2147768073; +pub const USBDEVFS_DROP_PRIVILEGES: u32 = 1074025758; +pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 1342215191; +pub const VHOST_VSOCK_SET_RUNNING: u32 = 1074048865; +pub const STP_SET_OPTIONS: u32 = 1074275586; +pub const FBIO_RADEON_GET_MIRROR: u32 = 2148024323; +pub const IVTVFB_IOC_DMA_FRAME: u32 = 1075336896; +pub const IPMICTL_SEND_COMMAND: u32 = 2150131981; +pub const VIDIOC_G_ENC_INDEX: u32 = 2283296332; +pub const DFL_FPGA_FME_PORT_PR: u32 = 46720; +pub const CHIOSVOLTAG: u32 = 1076912914; +pub const ATM_SETESIF: u32 = 1074815373; +pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 1075323652; +pub const PMU_IOC_GET_MODEL: u32 = 2148024835; +pub const JSIOCGBTNMAP: u32 = 2214619700; +pub const USBDEVFS_HUB_PORTINFO: u32 = 2155894035; +pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; +pub const FDCLRPRM: u32 = 577; +pub const BTRFS_IOC_SCRUB: u32 = 3288372251; +pub const USBDEVFS_DISCONNECT: u32 = 21782; +pub const TUNSETVNETBE: u32 = 1074025694; +pub const ATMTCP_REMOVE: u32 = 24975; +pub const VHOST_VDPA_GET_CONFIG: u32 = 2148052851; +pub const PPPIOCGNPMODE: u32 = 3221779532; +pub const FDGETDRVPRM: u32 = 2155872785; +pub const TUNSETVNETLE: u32 = 1074025692; +pub const PHN_SETREG: u32 = 1074294790; +pub const PPPIOCDETACH: u32 = 1074033724; +pub const MMTIMER_GETRES: u32 = 2148035841; +pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; +pub const PPGETFLAGS: u32 = 2147774618; +pub const VDUSE_DEV_GET_FEATURES: u32 = 2148040977; +pub const CAPI_MANUFACTURER_CMD: u32 = 3222291232; +pub const VIDIOC_G_TUNER: u32 = 3226752541; +pub const DM_TABLE_STATUS: u32 = 3241737484; +pub const DM_DEV_ARM_POLL: u32 = 3241737488; +pub const NE_CREATE_VM: u32 = 2148052512; +pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; +pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 62735; +pub const DFL_FPGA_PORT_DMA_MAP: u32 = 46659; +pub const MGSL_IOCGXCTRL: u32 = 27926; +pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 1076372225; +pub const SONYPI_IOCGBLUE: u32 = 2147579400; +pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 62743; +pub const I2OHTML: u32 = 3224398089; +pub const VFIO_GET_API_VERSION: u32 = 15204; +pub const IDT77105_GETSTATZ: u32 = 1074815283; +pub const I2OPARMSET: u32 = 3223873795; +pub const TEE_IOC_CANCEL: u32 = 2148049924; +pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; +pub const DFL_FPGA_PORT_RESET: u32 = 46656; +pub const PPPIOCGASYNCMAP: u32 = 2147775576; +pub const EVIOCGKEYCODE_V2: u32 = 2150122756; +pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; +pub const HIDIOCSUSAGE: u32 = 1075333132; +pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323664; +pub const PTP_EXTTS_REQUEST: u32 = 1074806018; +pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; +pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; +pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 1088991041; +pub const JSIOCGAXES: u32 = 2147576337; +pub const HIDIOCSFLAG: u32 = 1074022415; +pub const PTP_PEROUT_REQUEST2: u32 = 1077427468; +pub const PPWDATA: u32 = 1073836166; +pub const PTP_CLOCK_GETCAPS: u32 = 2152742145; +pub const FDGETMAXERRS: u32 = 2148794894; +pub const TUNSETQUEUE: u32 = 1074025689; +pub const PTP_ENABLE_PPS: u32 = 1074019588; +pub const SIOCSIFATMTCP: u32 = 24960; +pub const CEC_ADAP_G_LOG_ADDRS: u32 = 2153537795; +pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; +pub const NBD_SET_BLKSIZE: u32 = 43777; +pub const NBD_SET_TIMEOUT: u32 = 43785; +pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 1074048834; +pub const RIO_UNMAP_INBOUND: u32 = 1074294034; +pub const ATM_QUERYLOOP: u32 = 1074815316; +pub const DFL_FPGA_GET_API_VERSION: u32 = 46592; +pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 21795; +pub const FBIO_CURSOR: u32 = 3228059144; +pub const RNDCLEARPOOL: u32 = 20998; +pub const VIDIOC_QUERYSTD: u32 = 2148030015; +pub const DMA_BUF_IOCTL_SYNC: u32 = 1074291200; +pub const SCIF_RECV: u32 = 3222827783; +pub const PTP_PIN_GETFUNC2: u32 = 3227532559; +pub const FW_CDEV_IOC_ALLOCATE: u32 = 3223331586; +pub const CEC_ADAP_G_CAPS: u32 = 3226231040; +pub const VIDIOC_G_FBUF: u32 = 2150651402; +pub const PTP_ENABLE_PPS2: u32 = 1074019597; +pub const PCITEST_CLEAR_IRQ: u32 = 20496; +pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 2147772688; +pub const BTRFS_IOC_DEVICES_READY: u32 = 2415957031; +pub const JSIOCGAXMAP: u32 = 2151705138; +pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 2148541196; +pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 1074799383; +pub const RTC_WIE_OFF: u32 = 28688; +pub const PPGETMODE: u32 = 2147774616; +pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; +pub const PTP_SYS_OFFSET: u32 = 1128283397; +pub const BTRFS_IOC_SPACE_INFO: u32 = 3222311956; +pub const VIDIOC_SUBDEV_ENUM_FRAME_SIZE: u32 = 3225441866; +pub const ND_IOCTL_VENDOR: u32 = 3221769737; +pub const SCIF_VREADFROM: u32 = 3223876364; +pub const BTRFS_IOC_TRANS_START: u32 = 37894; +pub const INOTIFY_IOC_SETNEXTWD: u32 = 1074022656; +pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 2148021006; +pub const TUNDETACHFILTER: u32 = 1074812118; +pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; +pub const IOC_PR_CLEAR: u32 = 1074819277; +pub const SCIF_READFROM: u32 = 3223876362; +pub const PPPIOCGDEBUG: u32 = 2147775553; +pub const BLKGETZONESZ: u32 = 2147750532; +pub const HIDIOCGUSAGES: u32 = 3491514387; +pub const SONYPI_IOCGTEMP: u32 = 2147579404; +pub const UI_SET_MSCBIT: u32 = 1074025832; +pub const APM_IOC_SUSPEND: u32 = 16642; +pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; +pub const RTC_PLL_GET: u32 = 2149609489; +pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; +pub const USBDEVFS_DISCSIGNAL: u32 = 2148553998; +pub const LIRC_GET_MIN_TIMEOUT: u32 = 2147772680; +pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 2174244674; +pub const DM_TARGET_MSG: u32 = 3241737486; +pub const SONYPI_IOCGBAT1REM: u32 = 2147644931; +pub const EVIOCSFF: u32 = 1076905344; +pub const TUNSETGROUP: u32 = 1074025678; +pub const EVIOCGKEYCODE: u32 = 2148025604; +pub const KCOV_REMOTE_ENABLE: u32 = 1075340134; +pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; +pub const FDEJECT: u32 = 602; +pub const TUNSETOFFLOAD: u32 = 1074025680; +pub const PPPIOCCONNECT: u32 = 1074033722; +pub const ATM_ADDADDR: u32 = 1074815368; +pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 33043; +pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; +pub const VHOST_VDPA_GET_STATUS: u32 = 2147594097; +pub const CCISS_PASSTHRU: u32 = 3227009547; +pub const MGSL_IOCCLRMODCOUNT: u32 = 27919; +pub const TEE_IOC_SUPPL_SEND: u32 = 2148574215; +pub const ATMARPD_CTRL: u32 = 25057; +pub const UI_ABS_SETUP: u32 = 1075598596; +pub const UI_DEV_DESTROY: u32 = 21762; +pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; +pub const RTC_AIE_ON: u32 = 28673; +pub const AUTOFS_IOC_EXPIRE: u32 = 2165085029; +pub const PPPIOCSDEBUG: u32 = 1074033728; +pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; +pub const PPPIOCSMRU: u32 = 1074033746; +pub const CCISS_DEREGDISK: u32 = 16908; +pub const UI_DEV_CREATE: u32 = 21761; +pub const FUSE_DEV_IOC_CLONE: u32 = 2147804416; +pub const BTRFS_IOC_START_SYNC: u32 = 2148045848; +pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 1074294401; +pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 2148021011; +pub const DM_TABLE_CLEAR: u32 = 3241737482; +pub const CCISS_GETINTINFO: u32 = 2148024834; +pub const PPPIOCSASYNCMAP: u32 = 1074033751; +pub const I2OEVTGET: u32 = 2154326283; +pub const NVME_IOCTL_RESET: u32 = 20036; +pub const PPYIELD: u32 = 28813; +pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; +pub const TUNSETCARRIER: u32 = 1074025698; +pub const DM_DEV_WAIT: u32 = 3241737480; +pub const RTC_WIE_ON: u32 = 28687; +pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; +pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; +pub const MGSL_IOCSPARAMS: u32 = 1076915456; +pub const RTC_SET_TIME: u32 = 1076129802; +pub const VHOST_RESET_OWNER: u32 = 44802; +pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 1091072232; +pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; +pub const UDF_GETEABLOCK: u32 = 2148035649; +pub const VFIO_IOMMU_MAP_DMA: u32 = 15217; +pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 1075861082; +pub const HIDIOCGFLAG: u32 = 2147764238; +pub const HIDIOCGUCODE: u32 = 3222816781; +pub const VIDIOC_OMAP3ISP_AF_CFG: u32 = 3226228421; +pub const DM_REMOVE_ALL: u32 = 3241737473; +pub const ASPEED_LPC_CTRL_IOCTL_MAP: u32 = 1074835969; +pub const CCISS_GETFIRMVER: u32 = 2147762696; +pub const ND_IOCTL_ARS_START: u32 = 3223342594; +pub const PPPIOCSMRRU: u32 = 1074033723; +pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; +pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 2147792642; +pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; +pub const PPSETTIME: u32 = 1074819222; +pub const RTC_ALM_READ: u32 = 2149871624; +pub const VDUSE_SET_API_VERSION: u32 = 1074299137; +pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 1075342600; +pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; +pub const USBDEVFS_CONNECT: u32 = 21783; +pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; +pub const ATMARP_MKIP: u32 = 25058; +pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 15216; +pub const CCISS_GETHEARTBEAT: u32 = 2147762694; +pub const ATM_RSTADDR: u32 = 1074815367; +pub const NBD_SET_SIZE: u32 = 43778; +pub const UDF_GETVOLIDENT: u32 = 2148035650; +pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; +pub const MGSL_IOCSTXIDLE: u32 = 27906; +pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; +pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; +pub const PPRSTATUS: u32 = 2147577985; +pub const MGSL_IOCTXENABLE: u32 = 27908; +pub const UDF_GETEASIZE: u32 = 2147773504; +pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; +pub const VHOST_SET_OWNER: u32 = 44801; +pub const RIO_ALLOC_DMA: u32 = 3222826259; +pub const RIO_CM_CHAN_ACCEPT: u32 = 3221775111; +pub const I2OHRTGET: u32 = 3222825217; +pub const ATM_SETCIRANGE: u32 = 1074815371; +pub const HPET_IE_ON: u32 = 26625; +pub const PERF_EVENT_IOC_ID: u32 = 2148017159; +pub const TUNSETSNDBUF: u32 = 1074025684; +pub const PTP_PIN_SETFUNC: u32 = 1080048903; +pub const PPPIOCDISCONN: u32 = 29753; +pub const VIDIOC_QUERYCTRL: u32 = 3225703972; +pub const PPEXCL: u32 = 28815; +pub const PCITEST_MSI: u32 = 1074024451; +pub const FDWERRORCLR: u32 = 598; +pub const AUTOFS_IOC_FAIL: u32 = 37729; +pub const USBDEVFS_IOCTL: u32 = 3222295826; +pub const VIDIOC_S_STD: u32 = 1074288152; +pub const F2FS_IOC_RESIZE_FS: u32 = 1074328848; +pub const SONET_SETDIAG: u32 = 3221512466; +pub const BTRFS_IOC_DEFRAG: u32 = 1342215170; +pub const CCISS_GETDRIVVER: u32 = 2147762697; +pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 2148034839; +pub const HPET_IRQFREQ: u32 = 1074292742; +pub const ATM_GETESI: u32 = 1074815365; +pub const CCISS_GETLUNINFO: u32 = 2148286993; +pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; +pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; +pub const PERF_EVENT_IOC_SET_BPF: u32 = 1074013192; +pub const UDMABUF_CREATE_LIST: u32 = 1074296131; +pub const VHOST_SET_LOG_BASE: u32 = 1074310916; +pub const ZATM_GETPOOL: u32 = 1074815329; +pub const BR2684_SETFILT: u32 = 1075601808; +pub const RNDGETPOOL: u32 = 2148028930; +pub const PPS_GETPARAMS: u32 = 2148036769; +pub const IOC_PR_RESERVE: u32 = 1074819273; +pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; +pub const RIO_CM_CHAN_CLOSE: u32 = 1073898244; +pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; +pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; +pub const PMU_IOC_GET_BACKLIGHT: u32 = 2148024833; +pub const USBDEVFS_GET_CAPABILITIES: u32 = 2147767578; +pub const SCIF_WRITETO: u32 = 3223876363; +pub const UDF_RELOCATE_BLOCKS: u32 = 3221777475; +pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; +pub const CCISS_REGNEWD: u32 = 16910; +pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 1074033169; +pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; +pub const CAPI_GET_VERSION: u32 = 3222291207; +pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 2228770626; +pub const VFIO_EEH_PE_OP: u32 = 15225; +pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; +pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 2148070674; +pub const NBD_SET_SIZE_BLOCKS: u32 = 43783; +pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 45312; +pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; +pub const VIDIOC_S_AUDOUT: u32 = 1077171762; +pub const VIDIOC_S_FMT: u32 = 3234878981; +pub const PPPIOCATTACH: u32 = 1074033725; +pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310948; +pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; +pub const CCISS_BIG_PASSTHRU: u32 = 3227533842; +pub const IPMICTL_SET_MY_LUN_CMD: u32 = 2147772691; +pub const PCITEST_LEGACY_IRQ: u32 = 20482; +pub const USBDEVFS_SUBMITURB: u32 = 2151175434; +pub const AUTOFS_IOC_READY: u32 = 37728; +pub const BTRFS_IOC_SEND: u32 = 1078498342; +pub const VIDIOC_G_EXT_CTRLS: u32 = 3223344711; +pub const JSIOCSBTNMAP: u32 = 1140877875; +pub const PPPIOCSFLAGS: u32 = 1074033753; +pub const NVRAM_INIT: u32 = 28736; +pub const RFKILL_IOCTL_NOINPUT: u32 = 20993; +pub const BTRFS_IOC_BALANCE: u32 = 1342215180; +pub const FS_IOC_GETFSMAP: u32 = 3233830971; +pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 2147772699; +pub const STP_POLICY_ID_GET: u32 = 2148541697; +pub const PPSETFLAGS: u32 = 1074032795; +pub const CEC_ADAP_S_PHYS_ADDR: u32 = 1073897730; +pub const ATMTCP_CREATE: u32 = 24974; +pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 45314; +pub const PPPIOCGXASYNCMAP: u32 = 2149610576; +pub const VHOST_SET_VRING_CALL: u32 = 1074310945; +pub const LIRC_GET_FEATURES: u32 = 2147772672; +pub const GSMIOC_DISABLE_NET: u32 = 18179; +pub const AUTOFS_IOC_CATATONIC: u32 = 37730; +pub const NBD_DO_IT: u32 = 43779; +pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 1074030879; +pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772697; +pub const EVIOCSCLOCKID: u32 = 1074021792; +pub const USBDEVFS_FREE_STREAMS: u32 = 2148029725; +pub const FSI_SCOM_RESET: u32 = 1074033411; +pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 2148024838; +pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; +pub const FDDEFPRM: u32 = 1075839555; +pub const TEE_IOC_INVOKE: u32 = 2148574211; +pub const USBDEVFS_BULK: u32 = 3222820098; +pub const SCIF_VWRITETO: u32 = 3223876365; +pub const SONYPI_IOCSBRT: u32 = 1073837568; +pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; +pub const RTC_PIE_ON: u32 = 28677; +pub const BTRFS_IOC_SCAN_DEV: u32 = 1342215172; +pub const PPPIOCXFERUNIT: u32 = 29774; +pub const WDIOC_GETTIMEOUT: u32 = 2147768071; +pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3234370597; +pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 1074312774; +pub const FBIO_WAITFORVSYNC: u32 = 1074021920; +pub const RTC_PIE_OFF: u32 = 28678; +pub const EVIOCGRAB: u32 = 1074021776; +pub const PMU_IOC_SET_BACKLIGHT: u32 = 1074283010; +pub const EVIOCGREP: u32 = 2148025603; +pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 1074275339; +pub const UFFDIO_CONTINUE: u32 = 3223366151; +pub const VDUSE_GET_API_VERSION: u32 = 2148040960; +pub const RTC_RD_TIME: u32 = 2149871625; +pub const FDMSGOFF: u32 = 582; +pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 2148296988; +pub const CAPI_GET_ERRCODE: u32 = 2147631905; +pub const PCITEST_SET_IRQTYPE: u32 = 1074024456; +pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; +pub const MATROXFB_SET_OUTPUT_MODE: u32 = 1074294522; +pub const RIO_DEV_ADD: u32 = 1075866903; +pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; +pub const FBIO_RADEON_SET_MIRROR: u32 = 1074282500; +pub const PCITEST_GET_IRQTYPE: u32 = 20489; +pub const JSIOCGVERSION: u32 = 2147772929; +pub const SONYPI_IOCSBLUE: u32 = 1073837577; +pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 13074; +pub const F2FS_IOC_GET_FEATURES: u32 = 2147808524; +pub const SCIF_REG: u32 = 3223876360; +pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 1081634440; +pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 1074012933; +pub const RIO_WAIT_FOR_ASYNC: u32 = 1074294038; +pub const VHOST_SET_VRING_NUM: u32 = 1074310928; +pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; +pub const RIO_FREE_DMA: u32 = 1074294036; +pub const MGSL_IOCRXENABLE: u32 = 27909; +pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 1977; +pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 2148034838; +pub const PPPIOCGL2TPSTATS: u32 = 2152231990; +pub const PERF_EVENT_IOC_PERIOD: u32 = 1074275332; +pub const PTP_PIN_SETFUNC2: u32 = 1080048912; +pub const CHIOEXCHANGE: u32 = 1075602178; +pub const NILFS_IOCTL_GET_SUINFO: u32 = 2149084804; +pub const CEC_DQEVENT: u32 = 3226493191; +pub const UI_SET_SWBIT: u32 = 1074025837; +pub const VHOST_VDPA_SET_CONFIG: u32 = 1074311028; +pub const TUNSETIFF: u32 = 1074025674; +pub const CHIOPOSITION: u32 = 1074553603; +pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 1074030879; +pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 1074304019; +pub const RIO_UNMAP_OUTBOUND: u32 = 1076391184; +pub const CAPI_CLR_FLAGS: u32 = 2147762981; +pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323663; +pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 2148036344; +pub const EVIOCSMASK: u32 = 1074808211; +pub const BTRFS_IOC_FORGET_DEV: u32 = 1342215173; +pub const CXL_MEM_QUERY_COMMANDS: u32 = 2148060673; +pub const CEC_S_MODE: u32 = 1074028809; +pub const MGSL_IOCSIF: u32 = 27914; +pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; +pub const PPSETMODE: u32 = 1074032768; +pub const VFIO_DEVICE_SET_IRQS: u32 = 15214; +pub const VIDIOC_PREPARE_BUF: u32 = 3227014749; +pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 2151964938; +pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 1092645098; +pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; +pub const UDMABUF_CREATE: u32 = 1075344706; +pub const SONET_CLRDIAG: u32 = 3221512467; +pub const PHN_SET_REG: u32 = 1074294785; +pub const RNDADDTOENTCNT: u32 = 1074024961; +pub const VBG_IOCTL_CHECK_BALLOON: u32 = 3223344657; +pub const VIDIOC_OMAP3ISP_STAT_REQ: u32 = 3223869126; +pub const PPS_FETCH: u32 = 3221778596; +pub const RTC_AIE_OFF: u32 = 28674; +pub const VFIO_GROUP_SET_CONTAINER: u32 = 15208; +pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 1074275094; +pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 15224; +pub const VFIO_IOMMU_GET_INFO: u32 = 15216; +pub const DM_DEV_SUSPEND: u32 = 3241737478; +pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 2147677461; +pub const FW_CDEV_IOC_STOP_ISO: u32 = 1074012939; +pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; +pub const ATMMPC_CTRL: u32 = 25048; +pub const PPPIOCSXASYNCMAP: u32 = 1075868751; +pub const CHIOGSTATUS: u32 = 1074815752; +pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; +pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 2147773699; +pub const CAPI_SET_FLAGS: u32 = 2147762980; +pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 15210; +pub const VHOST_SET_MEM_TABLE: u32 = 1074310915; +pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 1074294520; +pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 46658; +pub const VHOST_GET_FEATURES: u32 = 2148052736; +pub const LIRC_GET_REC_RESOLUTION: u32 = 2147772679; +pub const PACKET_CTRL_CMD: u32 = 3222820865; +pub const LIRC_SET_TRANSMITTER_MASK: u32 = 1074030871; +pub const BTRFS_IOC_ADD_DEV: u32 = 1342215178; +pub const JSIOCGCORR: u32 = 2149870114; +pub const VIDIOC_G_FMT: u32 = 3234878980; +pub const RTC_EPOCH_SET: u32 = 1074294798; +pub const CAPI_GET_PROFILE: u32 = 3225436937; +pub const ATM_GETLOOP: u32 = 1074815314; +pub const SCIF_LISTEN: u32 = 1074033410; +pub const NBD_CLEAR_QUE: u32 = 43781; +pub const F2FS_IOC_MOVE_RANGE: u32 = 3223385353; +pub const LIRC_GET_LENGTH: u32 = 2147772687; +pub const I8K_SET_FAN: u32 = 3221776775; +pub const FDSETMAXERRS: u32 = 1075053132; +pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 2151699968; +pub const SNAPSHOT_SET_SWAP_AREA: u32 = 1074541325; +pub const LIRC_GET_REC_TIMEOUT: u32 = 2147772708; +pub const EVIOCRMFF: u32 = 1074021761; +pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; +pub const PPRDATA: u32 = 2147577989; +pub const RIO_MPORT_GET_PROPERTIES: u32 = 2150657284; +pub const TUNSETVNETHDRSZ: u32 = 1074025688; +pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; +pub const GSMIOC_GETCONF: u32 = 2152482560; +pub const LIRC_GET_SEND_MODE: u32 = 2147772673; +pub const PPPIOCSACTIVE: u32 = 1074820166; +pub const SIOCGSTAMPNS_NEW: u32 = 2148567303; +pub const IPMICTL_RECEIVE_MSG: u32 = 3224398092; +pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 1074030869; +pub const UI_END_FF_ERASE: u32 = 1074550219; +pub const SWITCHTEC_IOCTL_FLASH_PART_INFO: u32 = 3222296385; +pub const FW_CDEV_IOC_SEND_PHY_PACKET: u32 = 3222807317; +pub const NBD_SET_FLAGS: u32 = 43786; +pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 15212; +pub const REISERFS_IOC_UNPACK: u32 = 1074318593; +pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 1074012935; +pub const RIO_SET_EVENT_MASK: u32 = 1074031885; +pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 2148021012; +pub const VDUSE_VQ_INJECT_IRQ: u32 = 1074037015; +pub const I2OPASSTHRU: u32 = 2148559116; +pub const IOC_OPAL_SET_PW: u32 = 1109422304; +pub const FSI_SCOM_READ: u32 = 3223352065; +pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 2147790704; +pub const VIDIOC_QBUF: u32 = 3227014671; +pub const VIDIOC_S_TUNER: u32 = 1079268894; +pub const TUNGETVNETHDRSZ: u32 = 2147767511; +pub const CAPI_NCCI_GETUNIT: u32 = 2147762983; +pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 2147792455; +pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; +pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; +pub const TEE_IOC_VERSION: u32 = 2148312064; +pub const VIDIOC_LOG_STATUS: u32 = 22086; +pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 2150656277; +pub const VHOST_SET_LOG_FD: u32 = 1074048775; +pub const SCIF_SEND: u32 = 3222827782; +pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; +pub const NS_ADJBUFLEV: u32 = 24931; +pub const VIDIOC_DBG_S_REGISTER: u32 = 1077433935; +pub const NILFS_IOCTL_RESIZE: u32 = 1074294411; +pub const PHN_GETREG: u32 = 3221778437; +pub const I2OSWDL: u32 = 3224398085; +pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 22019; +pub const JSIOCGBUTTONS: u32 = 2147576338; +pub const VFIO_IOMMU_ENABLE: u32 = 15219; +pub const DM_DEV_RENAME: u32 = 3241737477; +pub const MEDIA_IOC_SETUP_LINK: u32 = 3224665091; +pub const VIDIOC_ENUMOUTPUT: u32 = 3225966128; +pub const STP_POLICY_ID_SET: u32 = 3222283520; +pub const VHOST_VDPA_SET_CONFIG_CALL: u32 = 1074048887; +pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; +pub const VIDIOC_S_CROP: u32 = 1075074620; +pub const WDIOC_GETTEMP: u32 = 2147768067; +pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 1092120804; +pub const UI_SET_LEDBIT: u32 = 1074025833; +pub const NBD_SET_SOCK: u32 = 43776; +pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 1342215231; +pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; +pub const I2OSWUL: u32 = 3224398086; +pub const IOCTL_MEI_NOTIFY_GET: u32 = 2147764227; +pub const FDFMTTRK: u32 = 1074528840; +pub const MMTIMER_GETBITS: u32 = 27908; +pub const VIDIOC_ENUMSTD: u32 = 3225966105; +pub const VHOST_GET_VRING_BASE: u32 = 3221794578; +pub const VFIO_DEVICE_IOEVENTFD: u32 = 15220; +pub const ATMARP_SETENTRY: u32 = 25059; +pub const CCISS_REVALIDVOLS: u32 = 16906; +pub const MGSL_IOCLOOPTXDONE: u32 = 27913; +pub const RTC_VL_READ: u32 = 2147774483; +pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; +pub const RIO_DEV_DEL: u32 = 1075866904; +pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; +pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; +pub const SONYPI_IOCSFAN: u32 = 1073837579; +pub const SPIOCSTYPE: u32 = 1074295041; +pub const IPMICTL_REGISTER_FOR_CMD: u32 = 2147641614; +pub const I8K_GET_FAN: u32 = 3221776774; +pub const TUNGETVNETBE: u32 = 2147767519; +pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; +pub const UI_END_FF_UPLOAD: u32 = 1080579529; +pub const TOSH_SMM: u32 = 3222828176; +pub const SONYPI_IOCGBAT2REM: u32 = 2147644933; +pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 2148070673; +pub const PPPIOCSNPMODE: u32 = 1074295883; +pub const USBDEVFS_CONTROL: u32 = 3222820096; +pub const HIDIOCGUSAGE: u32 = 3222816779; +pub const TUNSETTXFILTER: u32 = 1074025681; +pub const TUNGETVNETLE: u32 = 2147767517; +pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; +pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; +pub const MGSL_IOCGXSYNC: u32 = 27924; +pub const HIDIOCGFIELDINFO: u32 = 3224913930; +pub const VIDIOC_SUBDEV_G_STD: u32 = 2148029975; +pub const I2OVALIDATE: u32 = 2147772680; +pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; +pub const NILFS_IOCTL_GET_CPINFO: u32 = 2149084802; +pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; +pub const VFAT_IOCTL_READDIR_SHORT: u32 = 2184212994; +pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; +pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 2148070675; +pub const FDGETDRVSTAT: u32 = 2152727058; +pub const SYNC_IOC_MERGE: u32 = 3224387075; +pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; +pub const PPPIOCBRIDGECHAN: u32 = 1074033717; +pub const LIRC_SET_SEND_MODE: u32 = 1074030865; +pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 1074818315; +pub const ATM_GETTYPE: u32 = 1074815364; +pub const PHN_GETREGS: u32 = 3223875591; +pub const FDSETEMSGTRESH: u32 = 586; +pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; +pub const MGSL_IOCWAITEVENT: u32 = 3221515528; +pub const CAPI_INSTALLED: u32 = 2147631906; +pub const EVIOCGMASK: u32 = 2148550034; +pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 2148045849; +pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; +pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; +pub const GSMIOC_GETFIRST: u32 = 2147763972; +pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 1074012952; +pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; +pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 62724; +pub const CAPI_GET_SERIAL: u32 = 3221504776; +pub const FDSETDRVPRM: u32 = 1082131088; +pub const IOC_OPAL_SAVE: u32 = 1092120796; +pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; +pub const TUNSETIFINDEX: u32 = 1074025690; +pub const CCISS_SETINTINFO: u32 = 1074283011; +pub const RTC_VL_CLR: u32 = 28692; +pub const VIDIOC_REQBUFS: u32 = 3222558216; +pub const USBDEVFS_REAPURBNDELAY32: u32 = 1074025741; +pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; +pub const USBDEVFS_SETCONFIGURATION: u32 = 2147767557; +pub const CCISS_GETNODENAME: u32 = 2148549124; +pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; +pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; +pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 15217; +pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 1076372242; +pub const LPSETTIMEOUT_NEW: u32 = 1074791951; +pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; +pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; +pub const FDRAWCMD: u32 = 600; +pub const SCIF_UNREG: u32 = 3222303497; +pub const PPPIOCGIDLE64: u32 = 2148561983; +pub const USBDEVFS_RELEASEINTERFACE: u32 = 2147767568; +pub const VIDIOC_CROPCAP: u32 = 3224131130; +pub const DFL_FPGA_PORT_GET_INFO: u32 = 46657; +pub const PHN_SET_REGS: u32 = 1074294787; +pub const ATMLEC_DATA: u32 = 25041; +pub const PPPOEIOCDFWD: u32 = 45313; +pub const VIDIOC_S_SELECTION: u32 = 3225441887; +pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 13065; +pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; +pub const VIDIOC_S_CTRL: u32 = 3221771804; +pub const ZATM_SETPOOL: u32 = 1074815331; +pub const MTIOCPOS: u32 = 2148035843; +pub const PMU_IOC_SLEEP: u32 = 16896; +pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; +pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; +pub const NILFS_IOCTL_GET_SUSTAT: u32 = 2150657669; +pub const VIDIOC_QUERYCAP: u32 = 2154321408; +pub const HPET_INFO: u32 = 2149083139; +pub const VIDIOC_AM437X_CCDC_CFG: u32 = 1074288321; +pub const DM_LIST_DEVICES: u32 = 3241737474; +pub const TUNSETOWNER: u32 = 1074025676; +pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; +pub const RNDADDENTROPY: u32 = 1074287107; +pub const USBDEVFS_RESET: u32 = 21780; +pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 1342215182; +pub const USBDEVFS_FORBID_SUSPEND: u32 = 21793; +pub const FDGETDRVTYP: u32 = 2148532751; +pub const PPWCONTROL: u32 = 1073836164; +pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; +pub const KCOV_DISABLE: u32 = 25445; +pub const IOC_OPAL_ACTIVATE_LSP: u32 = 1092120799; +pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 2148577144; +pub const PPPIOCSPASS: u32 = 1074820167; +pub const RIO_CM_CHAN_CONNECT: u32 = 1074291464; +pub const I2OSWDEL: u32 = 3224398087; +pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 2148296211; +pub const IOC_OPAL_MBR_DONE: u32 = 1091596521; +pub const PPPIOCSMAXCID: u32 = 1074033745; +pub const PPSETPHASE: u32 = 1074032788; +pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 1074311029; +pub const USBDEVFS_GET_SPEED: u32 = 21791; +pub const SONET_GETFRAMING: u32 = 2147770646; +pub const VIDIOC_QUERYBUF: u32 = 3227014665; +pub const VIDIOC_S_EDID: u32 = 3223868969; +pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 1075352617; +pub const PPS_GETCAP: u32 = 2148036771; +pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 13071; +pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 1074030873; +pub const SCIF_GET_NODEIDS: u32 = 3222827790; +pub const NBD_DISCONNECT: u32 = 43784; +pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; +pub const VFIO_IOMMU_DISABLE: u32 = 15220; +pub const SNAPSHOT_CREATE_IMAGE: u32 = 1074017041; +pub const SNAPSHOT_POWER_OFF: u32 = 13072; +pub const APM_IOC_STANDBY: u32 = 16641; +pub const PPPIOCGUNIT: u32 = 2147775574; +pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 1074041702; +pub const SCIF_BIND: u32 = 3221779201; +pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 22368; +pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 1074818688; +pub const IOC_OPAL_LOCK_UNLOCK: u32 = 1092120797; +pub const F2FS_IOC_SET_PIN_FILE: u32 = 1074066701; +pub const PPPIOCGRASYNCMAP: u32 = 2147775573; +pub const MMTIMER_MMAPAVAIL: u32 = 27910; +pub const I2OPASSTHRU32: u32 = 2148034828; +pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 1074050689; +pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 2156156515; +pub const UI_SET_SNDBIT: u32 = 1074025834; +pub const VIDIOC_G_AUDOUT: u32 = 2150913585; +pub const RTC_PLL_SET: u32 = 1075867666; +pub const VIDIOC_ENUMAUDIO: u32 = 3224655425; +pub const AUTOFS_DEV_IOCTL_TIMEOUT: u32 = 3222836090; +pub const VBG_IOCTL_DRIVER_VERSION_INFO: u32 = 3224131072; +pub const VHOST_SCSI_GET_EVENTS_MISSED: u32 = 1074048836; +pub const VHOST_SET_VRING_ADDR: u32 = 1076408081; +pub const VDUSE_CREATE_DEV: u32 = 1095794946; +pub const FDFLUSH: u32 = 587; +pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; +pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 1074312836; +pub const F2FS_IOC_GET_PIN_FILE: u32 = 2147808526; +pub const SCIF_CONNECT: u32 = 3221779203; +pub const BLKREPORTZONE: u32 = 3222278786; +pub const AUTOFS_IOC_ASKUMOUNT: u32 = 2147783536; +pub const ATM_ADDPARTY: u32 = 1074815476; +pub const FDSETPRM: u32 = 1075839554; +pub const ATM_GETSTATZ: u32 = 1074815313; +pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; +pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 2180551740; +pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 1075861083; +pub const SEV_ISSUE_CMD: u32 = 3222295296; +pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; +pub const PCITEST_COPY: u32 = 1074286598; +pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 2147772690; +pub const CHIOGPICKER: u32 = 2147771140; +pub const CAPI_NCCI_OPENCOUNT: u32 = 2147762982; +pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; +pub const PERF_EVENT_IOC_SET_FILTER: u32 = 1074275334; +pub const IOC_OPAL_REVERT_TPR: u32 = 1091072226; +pub const CHIOGVPARAMS: u32 = 2154849043; +pub const PTP_PEROUT_REQUEST: u32 = 1077427459; +pub const FSI_SCOM_CHECK: u32 = 2147775232; +pub const RTC_IRQP_READ: u32 = 2148036619; +pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 2149084421; +pub const HIDIOCGRDESCSIZE: u32 = 2147764225; +pub const UI_GET_VERSION: u32 = 2147767597; +pub const NILFS_IOCTL_GET_CPSTAT: u32 = 2149084803; +pub const CCISS_GETBUSTYPES: u32 = 2147762695; +pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 15223; +pub const VIDIOC_EXPBUF: u32 = 3225441808; +pub const UI_SET_RELBIT: u32 = 1074025830; +pub const VFIO_SET_IOMMU: u32 = 15206; +pub const VIDIOC_S_MODULATOR: u32 = 1078220343; +pub const TUNGETFILTER: u32 = 2148553947; +pub const CCISS_SETNODENAME: u32 = 1074807301; +pub const FBIO_GETCONTROL2: u32 = 2148025993; +pub const TUNSETDEBUG: u32 = 1074025673; +pub const DM_DEV_REMOVE: u32 = 3241737476; +pub const HIDIOCSUSAGES: u32 = 1344030740; +pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; +pub const FBIOGET_VBLANK: u32 = 2149598738; +pub const ATM_GETSTAT: u32 = 1074815312; +pub const VIDIOC_G_JPEGCOMP: u32 = 2156680765; +pub const TUNATTACHFILTER: u32 = 1074812117; +pub const UI_SET_ABSBIT: u32 = 1074025831; +pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 2147792453; +pub const USBDEVFS_REAPURB32: u32 = 1074025740; +pub const BTRFS_IOC_TRANS_END: u32 = 37895; +pub const CAPI_REGISTER: u32 = 1074545409; +pub const F2FS_IOC_COMPRESS_FILE: u32 = 62744; +pub const USBDEVFS_DISCARDURB: u32 = 21771; +pub const HE_GET_REG: u32 = 1074815328; +pub const ATM_SETLOOP: u32 = 1074815315; +pub const ATMSIGD_CTRL: u32 = 25072; +pub const CIOC_KERNEL_VERSION: u32 = 3221775114; +pub const BTRFS_IOC_CLONE_RANGE: u32 = 1075876877; +pub const SNAPSHOT_UNFREEZE: u32 = 13058; +pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 62723; +pub const PMU_IOC_HAS_ADB: u32 = 2148024836; +pub const I2OGETIOPS: u32 = 2149607680; +pub const VIDIOC_S_FBUF: u32 = 1076909579; +pub const PPRCONTROL: u32 = 2147577987; +pub const CHIOSPICKER: u32 = 1074029317; +pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 15221; +pub const TUNGETSNDBUF: u32 = 2147767507; +pub const GSMIOC_SETCONF: u32 = 1078740737; +pub const IOC_PR_PREEMPT: u32 = 1075343563; +pub const KCOV_INIT_TRACE: u32 = 2148033281; +pub const SONYPI_IOCGBAT1CAP: u32 = 2147644930; +pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 2148554560; +pub const MTIOCTOP: u32 = 1074294017; +pub const VHOST_VDPA_SET_STATUS: u32 = 1073852274; +pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 1074048835; +pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 15221; +pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; +pub const PPPIOCGMRU: u32 = 2147775571; +pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; +pub const PPPIOCGFLAGS: u32 = 2147775578; +pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; +pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; +pub const ATM_DELLECSADDR: u32 = 1074815375; +pub const FW_CDEV_IOC_GET_SPEED: u32 = 8977; +pub const PPPIOCGIDLE32: u32 = 2148037695; +pub const VFIO_DEVICE_RESET: u32 = 15215; +pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; +pub const WDIOC_GETSTATUS: u32 = 2147768065; +pub const BTRFS_IOC_SET_FEATURES: u32 = 1076925497; +pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; +pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; +pub const PCITEST_READ: u32 = 1074286597; +pub const VFIO_GROUP_GET_STATUS: u32 = 15207; +pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 2148036347; +pub const USBDEVFS_CLEAR_HALT: u32 = 2147767573; +pub const VIDIOC_DECODER_CMD: u32 = 3225966176; +pub const VIDIOC_G_AUDIO: u32 = 2150913569; +pub const CCISS_RESCANDISK: u32 = 16912; +pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 1074818316; +pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 1091596519; +pub const USBDEVFS_REAPURB: u32 = 1074287884; +pub const DFL_FPGA_CHECK_EXTENSION: u32 = 46593; +pub const AUTOFS_IOC_PROTOVER: u32 = 2147783523; +pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; +pub const BTRFS_IOC_GET_FEATURES: u32 = 2149094457; +pub const PCITEST_MSIX: u32 = 1074024455; +pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 1076925456; +pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; +pub const DM_GET_TARGET_VERSION: u32 = 3241737489; +pub const PPPIOCGIDLE: u32 = 2148561983; +pub const NVRAM_SETCKS: u32 = 28737; +pub const WDIOC_GETSUPPORT: u32 = 2150127360; +pub const GSMIOC_ENABLE_NET: u32 = 1077167874; +pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 2151986177; +pub const NE_ADD_VCPU: u32 = 3221532193; +pub const EVIOCSKEYCODE_V2: u32 = 1076380932; +pub const PTP_SYS_OFFSET_EXTENDED2: u32 = 3300932882; +pub const SCIF_FENCE_WAIT: u32 = 3221517072; +pub const RIO_TRANSFER: u32 = 3222826261; +pub const FSL_HV_IOCTL_DOORBELL: u32 = 3221794566; +pub const RIO_MPORT_MAINT_WRITE_LOCAL: u32 = 1075342598; +pub const I2OEVTREG: u32 = 1074555146; +pub const I2OPARMGET: u32 = 3223873796; +pub const EVIOCGID: u32 = 2148025602; +pub const BTRFS_IOC_QGROUP_CREATE: u32 = 1074828330; +pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; +pub const VIDIOC_S_PARM: u32 = 3234616854; +pub const TUNSETSTEERINGEBPF: u32 = 2147767520; +pub const ATM_GETNAMES: u32 = 1074815363; +pub const VIDIOC_QUERYMENU: u32 = 3224131109; +pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 46660; +pub const I2OLCTGET: u32 = 3222825218; +pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 1074816532; +pub const NS_SETBUFLEV: u32 = 1074815330; +pub const BLKCLOSEZONE: u32 = 1074795143; +pub const SONET_GETFRSENSE: u32 = 2147901719; +pub const UI_SET_EVBIT: u32 = 1074025828; +pub const DM_LIST_VERSIONS: u32 = 3241737485; +pub const HIDIOCGSTRING: u32 = 2164541444; +pub const PPPIOCATTCHAN: u32 = 1074033720; +pub const VDUSE_DEV_SET_CONFIG: u32 = 1074299154; +pub const TUNGETFEATURES: u32 = 2147767503; +pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 15209; +pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 2147772689; +pub const CCISS_REGNEWDISK: u32 = 1074020877; +pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 2156156515; +pub const PHN_SETREGS: u32 = 1076391944; +pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 2147774992; +pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; +pub const TUNGETIFF: u32 = 2147767506; +pub const PTP_CLOCK_GETCAPS2: u32 = 2152742154; +pub const BTRFS_IOC_RESIZE: u32 = 1342215171; +pub const VHOST_SET_VRING_ENDIAN: u32 = 1074310931; +pub const PPS_KC_BIND: u32 = 1074294949; +pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 62727; +pub const UI_SET_FFBIT: u32 = 1074025835; +pub const IPMICTL_GET_MY_LUN_CMD: u32 = 2147772692; +pub const CEC_ADAP_G_PHYS_ADDR: u32 = 2147639553; +pub const CEC_G_MODE: u32 = 2147770632; +pub const USBDEVFS_RESETEP: u32 = 2147767555; +pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 31872; +pub const USBDEVFS_ALLOC_STREAMS: u32 = 2148029724; +pub const MGSL_IOCSXCTRL: u32 = 27925; +pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; +pub const PPPIOCUNBRIDGECHAN: u32 = 29748; +pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 62722; +pub const ISST_IF_GET_PLATFORM_INFO: u32 = 2148072960; +pub const SCIF_FENCE_MARK: u32 = 3222303503; +pub const USBDEVFS_RELEASE_PORT: u32 = 2147767577; +pub const VFIO_CHECK_EXTENSION: u32 = 15205; +pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 2150667307; +pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 2147774995; +pub const UI_SET_PHYS: u32 = 1074287980; +pub const FDWERRORGET: u32 = 2150105623; +pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; +pub const MGSL_IOCGSTATS: u32 = 27911; +pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 1074050817; +pub const SIOCGSTAMP_NEW: u32 = 2148567302; +pub const RTC_WKALM_RD: u32 = 2150133776; +pub const PHN_GET_REG: u32 = 3221778432; +pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; +pub const PHN_NOT_OH: u32 = 28676; +pub const PPGETMODES: u32 = 2147774615; +pub const CHIOGPARAMS: u32 = 2148819718; +pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 15219; +pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310947; +pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; +pub const BTRFS_IOC_RM_DEV_V2: u32 = 1342215226; +pub const MGSL_IOCWAITGPIO: u32 = 3222301970; +pub const PMU_IOC_CAN_SLEEP: u32 = 2148024837; +pub const KCOV_ENABLE: u32 = 25444; +pub const BTRFS_IOC_CLONE: u32 = 1074041865; +pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; +pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 1074012942; +pub const AGPIOC_ALLOCATE: u32 = 3221766406; +pub const NE_SET_USER_MEMORY_REGION: u32 = 1075359267; +pub const MGSL_IOCTXABORT: u32 = 27910; +pub const MGSL_IOCSGPIO: u32 = 1074818320; +pub const LIRC_SET_REC_CARRIER: u32 = 1074030868; +pub const F2FS_IOC_FLUSH_DEVICE: u32 = 1074328842; +pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 13060; +pub const RTC_UIE_OFF: u32 = 28676; +pub const BT_BMC_IOCTL_SMS_ATN: u32 = 45312; +pub const NVME_IOCTL_ID: u32 = 20032; +pub const NE_START_ENCLAVE: u32 = 3222318628; +pub const VIDIOC_STREAMON: u32 = 1074026002; +pub const FDPOLLDRVSTAT: u32 = 2152727059; +pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; +pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; +pub const VIDIOC_SUBDEV_S_STD: u32 = 1074288152; +pub const WDIOC_GETTIMELEFT: u32 = 2147768074; +pub const ATM_GETLINKRATE: u32 = 1074815361; +pub const RTC_WKALM_SET: u32 = 1076391951; +pub const VHOST_GET_BACKEND_FEATURES: u32 = 2148052774; +pub const ATMARP_ENCAP: u32 = 25061; +pub const CAPI_GET_FLAGS: u32 = 2147762979; +pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772696; +pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 1074050690; +pub const NS_GET_OWNER_UID: u32 = 46852; +pub const VIDIOC_OVERLAY: u32 = 1074025998; +pub const BTRFS_IOC_WAIT_SYNC: u32 = 1074304022; +pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; +pub const VHOST_GET_VRING_ENDIAN: u32 = 1074310932; +pub const ATM_GETADDR: u32 = 1074815366; +pub const PHN_GET_REGS: u32 = 3221778434; +pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; +pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; +pub const SNAPSHOT_S2RAM: u32 = 13067; +pub const JSIOCSAXMAP: u32 = 1077963313; +pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 1073935638; +pub const VBG_IOCTL_HGCM_DISCONNECT: u32 = 3223082501; +pub const SCIF_FENCE_SIGNAL: u32 = 3223876369; +pub const VFIO_DEVICE_GET_PCI_HOT_RESET_INFO: u32 = 15216; +pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; +pub const MMTIMER_GETOFFSET: u32 = 27904; +pub const RIO_CM_CHAN_LISTEN: u32 = 1073898246; +pub const ATM_SETSC: u32 = 1074029041; +pub const F2FS_IOC_SHUTDOWN: u32 = 2147768445; +pub const NVME_IOCTL_RESCAN: u32 = 20038; +pub const BLKOPENZONE: u32 = 1074795142; +pub const DM_VERSION: u32 = 3241737472; +pub const CEC_TRANSMIT: u32 = 3224920325; +pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; +pub const SIOCMKCLIP: u32 = 25056; +pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 45313; +pub const HIDIOCGVERSION: u32 = 2147764225; +pub const VIDIOC_S_INPUT: u32 = 3221509671; +pub const VIDIOC_G_CROP: u32 = 3222558267; +pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 1074030883; +pub const EVIOCGEFFECTS: u32 = 2147763588; +pub const UVCIOC_CTRL_QUERY: u32 = 3222304033; +pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 1094217963; +pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; +pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; +pub const USBDEVFS_GETDRIVER: u32 = 1090802952; +pub const IDT77105_GETSTAT: u32 = 1074815282; +pub const HIDIOCINITREPORT: u32 = 18437; +pub const VFIO_DEVICE_GET_INFO: u32 = 15211; +pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; +pub const RNDGETENTCNT: u32 = 2147766784; +pub const PPPIOCNEWUNIT: u32 = 3221517374; +pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; +pub const FDRESET: u32 = 596; +pub const IOC_PR_REGISTER: u32 = 1075343560; +pub const HIDIOCSREPORT: u32 = 1074546696; +pub const TEE_IOC_OPEN_SESSION: u32 = 2148574210; +pub const TEE_IOC_SUPPL_RECV: u32 = 2148574214; +pub const BTRFS_IOC_BALANCE_CTL: u32 = 1074041889; +pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; +pub const HIDIOCGRAWINFO: u32 = 2148026371; +pub const PPPIOCSCOMPRESS: u32 = 1074820173; +pub const USBDEVFS_CONNECTINFO: u32 = 1074287889; +pub const BLKRESETZONE: u32 = 1074795139; +pub const CHIOINITELEM: u32 = 25361; +pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 1074818700; +pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; +pub const RIO_MPORT_MAINT_HDID_SET: u32 = 1073900801; +pub const PPGETPHASE: u32 = 2147774617; +pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 2164806939; +pub const FDMSGON: u32 = 581; +pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; +pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; +pub const MEDIA_REQUEST_IOC_REINIT: u32 = 31873; +pub const IOC_OPAL_ERASE_LR: u32 = 1091596518; +pub const FDFMTBEG: u32 = 583; +pub const RNDRESEEDCRNG: u32 = 20999; +pub const ISST_IF_GET_PHY_ID: u32 = 3221814785; +pub const TUNSETNOCSUM: u32 = 1074025672; +pub const SONET_GETSTAT: u32 = 2149867792; +pub const TFD_IOC_SET_TICKS: u32 = 1074287616; +pub const PPDATADIR: u32 = 1074032784; +pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 1091596517; +pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; +pub const RIO_CM_CHAN_SEND: u32 = 1074815753; +pub const PPWCTLONIRQ: u32 = 1073836178; +pub const SONYPI_IOCGBRT: u32 = 2147579392; +pub const IOC_PR_RELEASE: u32 = 1074819274; +pub const PPCLRIRQ: u32 = 2147774611; +pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 2147772698; +pub const MGSL_IOCSXSYNC: u32 = 27923; +pub const HPET_IE_OFF: u32 = 26626; +pub const IOC_OPAL_ACTIVATE_USR: u32 = 1091596513; +pub const SONET_SETFRAMING: u32 = 1074028821; +pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 1074013193; +pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; +pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; +pub const BLKFINISHZONE: u32 = 1074795144; +pub const EVIOCREVOKE: u32 = 1074021777; +pub const VFIO_DEVICE_FEATURE: u32 = 15221; +pub const CCISS_GETPCIINFO: u32 = 2148024833; +pub const ISST_IF_MBOX_COMMAND: u32 = 3221814787; +pub const SCIF_ACCEPTREQ: u32 = 3222303492; +pub const PERF_EVENT_IOC_QUERY_BPF: u32 = 3221758986; +pub const VIDIOC_STREAMOFF: u32 = 1074026003; +pub const VDUSE_DESTROY_DEV: u32 = 1090552067; +pub const FDGETFDCSTAT: u32 = 2150105621; +pub const VIDIOC_S_PRIORITY: u32 = 1074026052; +pub const SNAPSHOT_FREEZE: u32 = 13057; +pub const VIDIOC_ENUMINPUT: u32 = 3226490394; +pub const ZATM_GETPOOLZ: u32 = 1074815330; +pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 1074294026; +pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; +pub const VIDIOC_G_STD: u32 = 2148029975; +pub const USBDEVFS_ALLOW_SUSPEND: u32 = 21794; +pub const SONET_GETSTATZ: u32 = 2149867793; +pub const SCIF_ACCEPTREG: u32 = 3221779205; +pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; +pub const PPPIOCSRASYNCMAP: u32 = 1074033748; +pub const IOCTL_MEI_NOTIFY_SET: u32 = 1074022402; +pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 2151715885; +pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 1074066694; +pub const ATMLEC_CTRL: u32 = 25040; +pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 2148036345; +pub const DM_DEV_CREATE: u32 = 3241737475; +pub const VHOST_VDPA_GET_VRING_NUM: u32 = 2147659638; +pub const VIDIOC_G_CTRL: u32 = 3221771803; +pub const NBD_CLEAR_SOCK: u32 = 43780; +pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 15218; +pub const WDIOC_KEEPALIVE: u32 = 2147768069; +pub const NVME_IOCTL_SUBSYS_RESET: u32 = 20037; +pub const PTP_EXTTS_REQUEST2: u32 = 1074806027; +pub const PCITEST_BAR: u32 = 20481; +pub const MGSL_IOCGGPIO: u32 = 2148560145; +pub const EVIOCSREP: u32 = 1074283779; +pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 15213; +pub const HPET_DPI: u32 = 26629; +pub const VDUSE_VQ_SETUP_KICKFD: u32 = 1074299158; +pub const ND_IOCTL_CALL: u32 = 3225439754; +pub const HIDIOCGDEVINFO: u32 = 2149337091; +pub const DM_TABLE_DEPS: u32 = 3241737483; +pub const BTRFS_IOC_DEV_INFO: u32 = 3489698846; +pub const VDUSE_IOTLB_GET_FD: u32 = 3223355664; +pub const FW_CDEV_IOC_GET_INFO: u32 = 3223855872; +pub const VIDIOC_G_PRIORITY: u32 = 2147767875; +pub const ATM_NEWBACKENDIF: u32 = 1073897971; +pub const VIDIOC_S_EXT_CTRLS: u32 = 3223344712; +pub const VIDIOC_SUBDEV_ENUM_DV_TIMINGS: u32 = 3230946914; +pub const VIDIOC_OMAP3ISP_CCDC_CFG: u32 = 3224917697; +pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 1076909650; +pub const DM_TABLE_LOAD: u32 = 3241737481; +pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 62721; +pub const VIDIOC_G_OUTPUT: u32 = 2147767854; +pub const ATM_DROPPARTY: u32 = 1074029045; +pub const CHIOGELEM: u32 = 1080845072; +pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 2152240185; +pub const EVIOCSKEYCODE: u32 = 1074283780; +pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; +pub const TUNSETLINK: u32 = 1074025677; +pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; +pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 37916; +pub const PPS_SETPARAMS: u32 = 1074294946; +pub const IOC_OPAL_LR_SETUP: u32 = 1093169379; +pub const FW_CDEV_IOC_DEALLOCATE: u32 = 1074012931; +pub const WDIOC_SETTIMEOUT: u32 = 3221509894; +pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 22369; +pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; +pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 15222; +pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 1074836224; +pub const VIDIOC_G_EDID: u32 = 3223868968; +pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 1075377419; +pub const RIO_MAP_INBOUND: u32 = 3223874833; +pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 1091072222; +pub const USBDEVFS_CLAIM_PORT: u32 = 2147767576; +pub const VIDIOC_S_AUDIO: u32 = 1077171746; +pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 2148558363; +pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 1076372243; +pub const BTRFS_IOC_SNAP_DESTROY: u32 = 1342215183; +pub const SNAPSHOT_FREE: u32 = 13061; +pub const I8K_GET_SPEED: u32 = 3221776773; +pub const HIDIOCGREPORT: u32 = 1074546695; +pub const HPET_EPI: u32 = 26628; +pub const JSIOCSCORR: u32 = 1076128289; +pub const IOC_PR_PREEMPT_ABORT: u32 = 1075343564; +pub const RIO_MAP_OUTBOUND: u32 = 3223874831; +pub const ATM_SETESI: u32 = 1074815372; +pub const FW_CDEV_IOC_START_ISO: u32 = 1074799370; +pub const ATM_DELADDR: u32 = 1074815369; +pub const PPFCONTROL: u32 = 1073901710; +pub const SONYPI_IOCGFAN: u32 = 2147579402; +pub const RTC_IRQP_SET: u32 = 1074294796; +pub const PCITEST_WRITE: u32 = 1074286596; +pub const PPCLAIM: u32 = 28811; +pub const VIDIOC_S_JPEGCOMP: u32 = 1082938942; +pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 2147641615; +pub const VHOST_SET_FEATURES: u32 = 1074310912; +pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; +pub const VIDIOC_DQBUF: u32 = 3227014673; +pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 2214630434; +pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 1074304026; +pub const ATMLEC_MCAST: u32 = 25042; +pub const MMTIMER_GETFREQ: u32 = 2148035842; +pub const VIDIOC_G_SELECTION: u32 = 3225441886; +pub const RTC_ALM_SET: u32 = 1076129799; +pub const PPPOEIOCSFWD: u32 = 1074311424; +pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 2147772702; +pub const FS_IOC_ENABLE_VERITY: u32 = 1082156677; +pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; +pub const FDFMTEND: u32 = 585; +pub const DMA_BUF_SET_NAME: u32 = 1074291201; +pub const UI_BEGIN_FF_UPLOAD: u32 = 3228063176; +pub const RTC_UIE_ON: u32 = 28675; +pub const PPRELEASE: u32 = 28812; +pub const VFIO_IOMMU_UNMAP_DMA: u32 = 15218; +pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3228587714; +pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; +pub const VFAT_IOCTL_READDIR_BOTH: u32 = 2184212993; +pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; +pub const VHOST_SET_VRING_KICK: u32 = 1074310944; +pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 1342215192; +pub const BTRFS_IOC_SNAP_CREATE: u32 = 1342215169; +pub const SONYPI_IOCGBAT2CAP: u32 = 2147644932; +pub const PPNEGOT: u32 = 1074032785; +pub const NBD_PRINT_DEBUG: u32 = 43782; +pub const BTRFS_IOC_INO_LOOKUP_USER: u32 = 3489698878; +pub const BTRFS_IOC_GET_SUBVOL_ROOTREF: u32 = 3489698877; +pub const FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS: u32 = 3225445913; +pub const BTRFS_IOC_FS_INFO: u32 = 2214630431; +pub const VIDIOC_ENUM_FMT: u32 = 3225441794; +pub const VIDIOC_G_INPUT: u32 = 2147767846; +pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; +pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 2147792515; +pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; +pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 1077974060; +pub const MMTIMER_GETCOUNTER: u32 = 2148035849; +pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; +pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 37934; +pub const RIO_CM_CHAN_BIND: u32 = 1074291461; +pub const HIDIOCGRDESC: u32 = 2416199682; +pub const MGSL_IOCGIF: u32 = 27915; +pub const VIDIOC_S_OUTPUT: u32 = 3221509679; +pub const HIDIOCGREPORTINFO: u32 = 3222030345; +pub const WDIOC_GETBOOTSTATUS: u32 = 2147768066; +pub const VDUSE_VQ_GET_INFO: u32 = 3224404245; +pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 1076142677; +pub const BLKGETDISKSEQ: u32 = 2148012672; +pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; +pub const ACRN_IOCTL_DESTROY_VM: u32 = 41489; +pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 1075094099; +pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 41522; +pub const ACRN_IOCTL_IRQFD: u32 = 1075356273; +pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; +pub const ACRN_IOCTL_INJECT_MSI: u32 = 1074831907; +pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 41523; +pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 1075094100; +pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 1074307633; +pub const ACRN_IOCTL_SET_IRQLINE: u32 = 1074307621; +pub const ACRN_IOCTL_START_VM: u32 = 41490; +pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 1093181974; +pub const ACRN_IOCTL_SET_MEMSEG: u32 = 1075880513; +pub const ACRN_IOCTL_PAUSE_VM: u32 = 41491; +pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 41525; +pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 1075880514; +pub const ACRN_IOCTL_IOEVENTFD: u32 = 1075880560; +pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 1076142678; +pub const ACRN_IOCTL_RESET_VM: u32 = 41493; +pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 41524; +pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 1074307620; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/landlock.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/landlock.rs new file mode 100644 index 0000000000000000000000000000000000000000..e139cbf2b2afc6d72ed8da1845404dd23a6fd415 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/landlock.rs @@ -0,0 +1,124 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type addr_t = crate::ctypes::c_ulong; +pub type saddr_t = crate::ctypes::c_long; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_ulong; +pub type __kernel_ssize_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_ino_t = crate::ctypes::c_uint; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_sigset_t = crate::ctypes::c_ulong; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C, packed(4))] +#[derive(Copy, Clone)] +pub struct __vector128 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __vector128__bindgen_ty_1__bindgen_ty_1 { +pub high: __u64, +pub low: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct landlock_ruleset_attr { +pub handled_access_fs: __u64, +pub handled_access_net: __u64, +pub scoped: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct landlock_path_beneath_attr { +pub allowed_access: __u64, +pub parent_fd: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct landlock_net_port_attr { +pub allowed_access: __u64, +pub port: __u64, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; +pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; +pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; +pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; +pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; +pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; +pub const LANDLOCK_ACCESS_FS_READ_DIR: u32 = 8; +pub const LANDLOCK_ACCESS_FS_REMOVE_DIR: u32 = 16; +pub const LANDLOCK_ACCESS_FS_REMOVE_FILE: u32 = 32; +pub const LANDLOCK_ACCESS_FS_MAKE_CHAR: u32 = 64; +pub const LANDLOCK_ACCESS_FS_MAKE_DIR: u32 = 128; +pub const LANDLOCK_ACCESS_FS_MAKE_REG: u32 = 256; +pub const LANDLOCK_ACCESS_FS_MAKE_SOCK: u32 = 512; +pub const LANDLOCK_ACCESS_FS_MAKE_FIFO: u32 = 1024; +pub const LANDLOCK_ACCESS_FS_MAKE_BLOCK: u32 = 2048; +pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; +pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; +pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; +pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; +pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; +pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum landlock_rule_type { +LANDLOCK_RULE_PATH_BENEATH = 1, +LANDLOCK_RULE_NET_PORT = 2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __vector128__bindgen_ty_1 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1, +pub u: [__u32; 4usize], +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/loop_device.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/loop_device.rs new file mode 100644 index 0000000000000000000000000000000000000000..51cfdd166a8b01d405541554823b3b6f798569f7 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/loop_device.rs @@ -0,0 +1,154 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __kernel_size_t = crate::ctypes::c_ulong; +pub type __kernel_ssize_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_ino_t = crate::ctypes::c_uint; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_sigset_t = crate::ctypes::c_ulong; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type addr_t = crate::ctypes::c_ulong; +pub type saddr_t = crate::ctypes::c_long; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C, packed(4))] +#[derive(Copy, Clone)] +pub struct __vector128 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __vector128__bindgen_ty_1__bindgen_ty_1 { +pub high: __u64, +pub low: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct loop_info { +pub lo_number: crate::ctypes::c_int, +pub lo_device: __kernel_old_dev_t, +pub lo_inode: crate::ctypes::c_ulong, +pub lo_rdevice: __kernel_old_dev_t, +pub lo_offset: crate::ctypes::c_int, +pub lo_encrypt_type: crate::ctypes::c_int, +pub lo_encrypt_key_size: crate::ctypes::c_int, +pub lo_flags: crate::ctypes::c_int, +pub lo_name: [crate::ctypes::c_char; 64usize], +pub lo_encrypt_key: [crate::ctypes::c_uchar; 32usize], +pub lo_init: [crate::ctypes::c_ulong; 2usize], +pub reserved: [crate::ctypes::c_char; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct loop_info64 { +pub lo_device: __u64, +pub lo_inode: __u64, +pub lo_rdevice: __u64, +pub lo_offset: __u64, +pub lo_sizelimit: __u64, +pub lo_number: __u32, +pub lo_encrypt_type: __u32, +pub lo_encrypt_key_size: __u32, +pub lo_flags: __u32, +pub lo_file_name: [__u8; 64usize], +pub lo_crypt_name: [__u8; 64usize], +pub lo_encrypt_key: [__u8; 32usize], +pub lo_init: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct loop_config { +pub fd: __u32, +pub block_size: __u32, +pub info: loop_info64, +pub __reserved: [__u64; 8usize], +} +pub const LO_NAME_SIZE: u32 = 64; +pub const LO_KEY_SIZE: u32 = 32; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const LO_CRYPT_NONE: u32 = 0; +pub const LO_CRYPT_XOR: u32 = 1; +pub const LO_CRYPT_DES: u32 = 2; +pub const LO_CRYPT_FISH2: u32 = 3; +pub const LO_CRYPT_BLOW: u32 = 4; +pub const LO_CRYPT_CAST128: u32 = 5; +pub const LO_CRYPT_IDEA: u32 = 6; +pub const LO_CRYPT_DUMMY: u32 = 9; +pub const LO_CRYPT_SKIPJACK: u32 = 10; +pub const LO_CRYPT_CRYPTOAPI: u32 = 18; +pub const MAX_LO_CRYPT: u32 = 20; +pub const LOOP_SET_FD: u32 = 19456; +pub const LOOP_CLR_FD: u32 = 19457; +pub const LOOP_SET_STATUS: u32 = 19458; +pub const LOOP_GET_STATUS: u32 = 19459; +pub const LOOP_SET_STATUS64: u32 = 19460; +pub const LOOP_GET_STATUS64: u32 = 19461; +pub const LOOP_CHANGE_FD: u32 = 19462; +pub const LOOP_SET_CAPACITY: u32 = 19463; +pub const LOOP_SET_DIRECT_IO: u32 = 19464; +pub const LOOP_SET_BLOCK_SIZE: u32 = 19465; +pub const LOOP_CONFIGURE: u32 = 19466; +pub const LOOP_CTL_ADD: u32 = 19584; +pub const LOOP_CTL_REMOVE: u32 = 19585; +pub const LOOP_CTL_GET_FREE: u32 = 19586; +pub const LO_FLAGS_READ_ONLY: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_READ_ONLY; +pub const LO_FLAGS_AUTOCLEAR: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_AUTOCLEAR; +pub const LO_FLAGS_PARTSCAN: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_PARTSCAN; +pub const LO_FLAGS_DIRECT_IO: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_DIRECT_IO; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +LO_FLAGS_READ_ONLY = 1, +LO_FLAGS_AUTOCLEAR = 4, +LO_FLAGS_PARTSCAN = 8, +LO_FLAGS_DIRECT_IO = 16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __vector128__bindgen_ty_1 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1, +pub u: [__u32; 4usize], +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/mempolicy.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/mempolicy.rs new file mode 100644 index 0000000000000000000000000000000000000000..51914ccda4aae99462299b196a931dd5feea3a80 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/mempolicy.rs @@ -0,0 +1,175 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EDEADLK: u32 = 35; +pub const ENAMETOOLONG: u32 = 36; +pub const ENOLCK: u32 = 37; +pub const ENOSYS: u32 = 38; +pub const ENOTEMPTY: u32 = 39; +pub const ELOOP: u32 = 40; +pub const EWOULDBLOCK: u32 = 11; +pub const ENOMSG: u32 = 42; +pub const EIDRM: u32 = 43; +pub const ECHRNG: u32 = 44; +pub const EL2NSYNC: u32 = 45; +pub const EL3HLT: u32 = 46; +pub const EL3RST: u32 = 47; +pub const ELNRNG: u32 = 48; +pub const EUNATCH: u32 = 49; +pub const ENOCSI: u32 = 50; +pub const EL2HLT: u32 = 51; +pub const EBADE: u32 = 52; +pub const EBADR: u32 = 53; +pub const EXFULL: u32 = 54; +pub const ENOANO: u32 = 55; +pub const EBADRQC: u32 = 56; +pub const EBADSLT: u32 = 57; +pub const EDEADLOCK: u32 = 35; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EMULTIHOP: u32 = 72; +pub const EDOTDOT: u32 = 73; +pub const EBADMSG: u32 = 74; +pub const EOVERFLOW: u32 = 75; +pub const ENOTUNIQ: u32 = 76; +pub const EBADFD: u32 = 77; +pub const EREMCHG: u32 = 78; +pub const ELIBACC: u32 = 79; +pub const ELIBBAD: u32 = 80; +pub const ELIBSCN: u32 = 81; +pub const ELIBMAX: u32 = 82; +pub const ELIBEXEC: u32 = 83; +pub const EILSEQ: u32 = 84; +pub const ERESTART: u32 = 85; +pub const ESTRPIPE: u32 = 86; +pub const EUSERS: u32 = 87; +pub const ENOTSOCK: u32 = 88; +pub const EDESTADDRREQ: u32 = 89; +pub const EMSGSIZE: u32 = 90; +pub const EPROTOTYPE: u32 = 91; +pub const ENOPROTOOPT: u32 = 92; +pub const EPROTONOSUPPORT: u32 = 93; +pub const ESOCKTNOSUPPORT: u32 = 94; +pub const EOPNOTSUPP: u32 = 95; +pub const EPFNOSUPPORT: u32 = 96; +pub const EAFNOSUPPORT: u32 = 97; +pub const EADDRINUSE: u32 = 98; +pub const EADDRNOTAVAIL: u32 = 99; +pub const ENETDOWN: u32 = 100; +pub const ENETUNREACH: u32 = 101; +pub const ENETRESET: u32 = 102; +pub const ECONNABORTED: u32 = 103; +pub const ECONNRESET: u32 = 104; +pub const ENOBUFS: u32 = 105; +pub const EISCONN: u32 = 106; +pub const ENOTCONN: u32 = 107; +pub const ESHUTDOWN: u32 = 108; +pub const ETOOMANYREFS: u32 = 109; +pub const ETIMEDOUT: u32 = 110; +pub const ECONNREFUSED: u32 = 111; +pub const EHOSTDOWN: u32 = 112; +pub const EHOSTUNREACH: u32 = 113; +pub const EALREADY: u32 = 114; +pub const EINPROGRESS: u32 = 115; +pub const ESTALE: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EDQUOT: u32 = 122; +pub const ENOMEDIUM: u32 = 123; +pub const EMEDIUMTYPE: u32 = 124; +pub const ECANCELED: u32 = 125; +pub const ENOKEY: u32 = 126; +pub const EKEYEXPIRED: u32 = 127; +pub const EKEYREVOKED: u32 = 128; +pub const EKEYREJECTED: u32 = 129; +pub const EOWNERDEAD: u32 = 130; +pub const ENOTRECOVERABLE: u32 = 131; +pub const ERFKILL: u32 = 132; +pub const EHWPOISON: u32 = 133; +pub const MPOL_F_STATIC_NODES: u32 = 32768; +pub const MPOL_F_RELATIVE_NODES: u32 = 16384; +pub const MPOL_F_NUMA_BALANCING: u32 = 8192; +pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_F_NODE: u32 = 1; +pub const MPOL_F_ADDR: u32 = 2; +pub const MPOL_F_MEMS_ALLOWED: u32 = 4; +pub const MPOL_MF_STRICT: u32 = 1; +pub const MPOL_MF_MOVE: u32 = 2; +pub const MPOL_MF_MOVE_ALL: u32 = 4; +pub const MPOL_MF_LAZY: u32 = 8; +pub const MPOL_MF_INTERNAL: u32 = 16; +pub const MPOL_MF_VALID: u32 = 7; +pub const MPOL_F_SHARED: u32 = 1; +pub const MPOL_F_MOF: u32 = 8; +pub const MPOL_F_MORON: u32 = 16; +pub const RECLAIM_ZONE: u32 = 1; +pub const RECLAIM_WRITE: u32 = 2; +pub const RECLAIM_UNMAP: u32 = 4; +pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; +pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; +pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; +pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; +pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; +pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; +pub const MPOL_WEIGHTED_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_WEIGHTED_INTERLEAVE; +pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +MPOL_DEFAULT = 0, +MPOL_PREFERRED = 1, +MPOL_BIND = 2, +MPOL_INTERLEAVE = 3, +MPOL_LOCAL = 4, +MPOL_PREFERRED_MANY = 5, +MPOL_WEIGHTED_INTERLEAVE = 6, +MPOL_MAX = 7, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/net.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/net.rs new file mode 100644 index 0000000000000000000000000000000000000000..657dd9ca3fd6f1a92866654e8abe2f20bfdb2b83 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/net.rs @@ -0,0 +1,3511 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type addr_t = crate::ctypes::c_ulong; +pub type saddr_t = crate::ctypes::c_long; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_ulong; +pub type __kernel_ssize_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_ino_t = crate::ctypes::c_uint; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_sigset_t = crate::ctypes::c_ulong; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_sa_family_t = crate::ctypes::c_ushort; +pub type socklen_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] +pub struct __BindgenBitfieldUnit { +storage: Storage, +} +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +pub struct __BindgenUnionField(::core::marker::PhantomData); +#[repr(C, packed(4))] +#[derive(Copy, Clone)] +pub struct __vector128 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __vector128__bindgen_ty_1__bindgen_ty_1 { +pub high: __u64, +pub low: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __kernel_sockaddr_storage { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { +pub ss_family: __kernel_sa_family_t, +pub __data: [crate::ctypes::c_char; 126usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct in_addr { +pub s_addr: __be32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_mreq { +pub imr_multiaddr: in_addr, +pub imr_interface: in_addr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_mreqn { +pub imr_multiaddr: in_addr, +pub imr_address: in_addr, +pub imr_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_mreq_source { +pub imr_multiaddr: __be32, +pub imr_interface: __be32, +pub imr_sourceaddr: __be32, +} +#[repr(C)] +pub struct ip_msfilter { +pub imsf_multiaddr: __be32, +pub imsf_interface: __be32, +pub imsf_fmode: __u32, +pub imsf_numsrc: __u32, +pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, +} +#[repr(C)] +pub struct ip_msfilter__bindgen_ty_1 { +pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, +pub __bindgen_anon_1: __BindgenUnionField, +pub bindgen_union_field: u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { +pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, +pub imsf_slist_flex: __IncompleteArrayField<__be32>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct group_req { +pub gr_interface: __u32, +pub gr_group: __kernel_sockaddr_storage, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct group_source_req { +pub gsr_interface: __u32, +pub gsr_group: __kernel_sockaddr_storage, +pub gsr_source: __kernel_sockaddr_storage, +} +#[repr(C)] +pub struct group_filter { +pub __bindgen_anon_1: group_filter__bindgen_ty_1, +} +#[repr(C)] +pub struct group_filter__bindgen_ty_1 { +pub __bindgen_anon_1: __BindgenUnionField, +pub __bindgen_anon_2: __BindgenUnionField, +pub bindgen_union_field: [u64; 34usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { +pub gf_interface_aux: __u32, +pub gf_group_aux: __kernel_sockaddr_storage, +pub gf_fmode_aux: __u32, +pub gf_numsrc_aux: __u32, +pub gf_slist: [__kernel_sockaddr_storage; 1usize], +} +#[repr(C)] +pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { +pub gf_interface: __u32, +pub gf_group: __kernel_sockaddr_storage, +pub gf_fmode: __u32, +pub gf_numsrc: __u32, +pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct in_pktinfo { +pub ipi_ifindex: crate::ctypes::c_int, +pub ipi_spec_dst: in_addr, +pub ipi_addr: in_addr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_in { +pub sin_family: __kernel_sa_family_t, +pub sin_port: __be16, +pub sin_addr: in_addr, +pub __pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct iphdr { +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, +pub tos: __u8, +pub tot_len: __be16, +pub id: __be16, +pub frag_off: __be16, +pub ttl: __u8, +pub protocol: __u8, +pub check: __sum16, +pub __bindgen_anon_1: iphdr__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { +pub saddr: __be32, +pub daddr: __be32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { +pub saddr: __be32, +pub daddr: __be32, +} +#[repr(C)] +#[derive(Debug)] +pub struct ip_auth_hdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +pub reserved: __be16, +pub spi: __be32, +pub seq_no: __be32, +pub auth_data: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug)] +pub struct ip_esp_hdr { +pub spi: __be32, +pub seq_no: __be32, +pub enc_data: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_comp_hdr { +pub nexthdr: __u8, +pub flags: __u8, +pub cpi: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_beet_phdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +pub padlen: __u8, +pub reserved: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_iptfs_hdr { +pub subtype: __u8, +pub flags: __u8, +pub block_offset: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_iptfs_cc_hdr { +pub subtype: __u8, +pub flags: __u8, +pub block_offset: __be16, +pub loss_rate: __be32, +pub rtt_adelay_xdelay: __be64, +pub tval: __be32, +pub techo: __be32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_addr { +pub in6_u: in6_addr__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sockaddr_in6 { +pub sin6_family: crate::ctypes::c_ushort, +pub sin6_port: __be16, +pub sin6_flowinfo: __be32, +pub sin6_addr: in6_addr, +pub sin6_scope_id: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6_mreq { +pub ipv6mr_multiaddr: in6_addr, +pub ipv6mr_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_flowlabel_req { +pub flr_dst: in6_addr, +pub flr_label: __be32, +pub flr_action: __u8, +pub flr_share: __u8, +pub flr_flags: __u16, +pub flr_expires: __u16, +pub flr_linger: __u16, +pub __flr_pad: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_pktinfo { +pub ipi6_addr: in6_addr, +pub ipi6_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ip6_mtuinfo { +pub ip6m_addr: sockaddr_in6, +pub ip6m_mtu: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_ifreq { +pub ifr6_addr: in6_addr, +pub ifr6_prefixlen: __u32, +pub ifr6_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ipv6_rt_hdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +pub type_: __u8, +pub segments_left: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct ipv6_opt_hdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +} +#[repr(C)] +pub struct rt0_hdr { +pub rt_hdr: ipv6_rt_hdr, +pub reserved: __u32, +pub addr: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct rt2_hdr { +pub rt_hdr: ipv6_rt_hdr, +pub reserved: __u32, +pub addr: in6_addr, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct ipv6_destopt_hao { +pub type_: __u8, +pub length: __u8, +pub addr: in6_addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6hdr { +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, +pub flow_lbl: [__u8; 3usize], +pub payload_len: __be16, +pub nexthdr: __u8, +pub hop_limit: __u8, +pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { +pub saddr: in6_addr, +pub daddr: in6_addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { +pub saddr: in6_addr, +pub daddr: in6_addr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcphdr { +pub source: __be16, +pub dest: __be16, +pub seq: __be32, +pub ack_seq: __be32, +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +pub window: __be16, +pub check: __sum16, +pub urg_ptr: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_repair_opt { +pub opt_code: __u32, +pub opt_val: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_repair_window { +pub snd_wl1: __u32, +pub snd_wnd: __u32, +pub max_window: __u32, +pub rcv_wnd: __u32, +pub rcv_wup: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_info { +pub tcpi_state: __u8, +pub tcpi_ca_state: __u8, +pub tcpi_retransmits: __u8, +pub tcpi_probes: __u8, +pub tcpi_backoff: __u8, +pub tcpi_options: __u8, +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +pub tcpi_rto: __u32, +pub tcpi_ato: __u32, +pub tcpi_snd_mss: __u32, +pub tcpi_rcv_mss: __u32, +pub tcpi_unacked: __u32, +pub tcpi_sacked: __u32, +pub tcpi_lost: __u32, +pub tcpi_retrans: __u32, +pub tcpi_fackets: __u32, +pub tcpi_last_data_sent: __u32, +pub tcpi_last_ack_sent: __u32, +pub tcpi_last_data_recv: __u32, +pub tcpi_last_ack_recv: __u32, +pub tcpi_pmtu: __u32, +pub tcpi_rcv_ssthresh: __u32, +pub tcpi_rtt: __u32, +pub tcpi_rttvar: __u32, +pub tcpi_snd_ssthresh: __u32, +pub tcpi_snd_cwnd: __u32, +pub tcpi_advmss: __u32, +pub tcpi_reordering: __u32, +pub tcpi_rcv_rtt: __u32, +pub tcpi_rcv_space: __u32, +pub tcpi_total_retrans: __u32, +pub tcpi_pacing_rate: __u64, +pub tcpi_max_pacing_rate: __u64, +pub tcpi_bytes_acked: __u64, +pub tcpi_bytes_received: __u64, +pub tcpi_segs_out: __u32, +pub tcpi_segs_in: __u32, +pub tcpi_notsent_bytes: __u32, +pub tcpi_min_rtt: __u32, +pub tcpi_data_segs_in: __u32, +pub tcpi_data_segs_out: __u32, +pub tcpi_delivery_rate: __u64, +pub tcpi_busy_time: __u64, +pub tcpi_rwnd_limited: __u64, +pub tcpi_sndbuf_limited: __u64, +pub tcpi_delivered: __u32, +pub tcpi_delivered_ce: __u32, +pub tcpi_bytes_sent: __u64, +pub tcpi_bytes_retrans: __u64, +pub tcpi_dsack_dups: __u32, +pub tcpi_reord_seen: __u32, +pub tcpi_rcv_ooopack: __u32, +pub tcpi_snd_wnd: __u32, +pub tcpi_rcv_wnd: __u32, +pub tcpi_rehash: __u32, +pub tcpi_total_rto: __u16, +pub tcpi_total_rto_recoveries: __u16, +pub tcpi_total_rto_time: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tcp_md5sig { +pub tcpm_addr: __kernel_sockaddr_storage, +pub tcpm_flags: __u8, +pub tcpm_prefixlen: __u8, +pub tcpm_keylen: __u16, +pub tcpm_ifindex: crate::ctypes::c_int, +pub tcpm_key: [__u8; 80usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_diag_md5sig { +pub tcpm_family: __u8, +pub tcpm_prefixlen: __u8, +pub tcpm_keylen: __u16, +pub tcpm_addr: [__be32; 4usize], +pub tcpm_key: [__u8; 80usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tcp_ao_add { +pub addr: __kernel_sockaddr_storage, +pub alg_name: [crate::ctypes::c_char; 64usize], +pub ifindex: __s32, +pub _bitfield_align_1: [u32; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +pub reserved2: __u16, +pub prefix: __u8, +pub sndid: __u8, +pub rcvid: __u8, +pub maclen: __u8, +pub keyflags: __u8, +pub keylen: __u8, +pub key: [__u8; 80usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tcp_ao_del { +pub addr: __kernel_sockaddr_storage, +pub ifindex: __s32, +pub _bitfield_align_1: [u32; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +pub reserved2: __u16, +pub prefix: __u8, +pub sndid: __u8, +pub rcvid: __u8, +pub current_key: __u8, +pub rnext: __u8, +pub keyflags: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_ao_info_opt { +pub _bitfield_align_1: [u32; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +pub reserved2: __u16, +pub current_key: __u8, +pub rnext: __u8, +pub pkt_good: __u64, +pub pkt_bad: __u64, +pub pkt_key_not_found: __u64, +pub pkt_ao_required: __u64, +pub pkt_dropped_icmp: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tcp_ao_getsockopt { +pub addr: __kernel_sockaddr_storage, +pub alg_name: [crate::ctypes::c_char; 64usize], +pub key: [__u8; 80usize], +pub nkeys: __u32, +pub _bitfield_align_1: [u16; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +pub sndid: __u8, +pub rcvid: __u8, +pub prefix: __u8, +pub maclen: __u8, +pub keyflags: __u8, +pub keylen: __u8, +pub ifindex: __s32, +pub pkt_good: __u64, +pub pkt_bad: __u64, +} +#[repr(C)] +#[repr(align(8))] +#[derive(Debug, Copy, Clone)] +pub struct tcp_ao_repair { +pub snt_isn: __be32, +pub rcv_isn: __be32, +pub snd_sne: __u32, +pub rcv_sne: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_zerocopy_receive { +pub address: __u64, +pub length: __u32, +pub recv_skip_hint: __u32, +pub inq: __u32, +pub err: __s32, +pub copybuf_address: __u64, +pub copybuf_len: __s32, +pub flags: __u32, +pub msg_control: __u64, +pub msg_controllen: __u64, +pub msg_flags: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_un { +pub sun_family: __kernel_sa_family_t, +pub sun_path: [crate::ctypes::c_char; 108usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sockaddr { +pub __storage: __kernel_sockaddr_storage, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sync_serial_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct te1_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +pub slot_map: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct raw_hdlc_proto { +pub encoding: crate::ctypes::c_ushort, +pub parity: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto { +pub t391: crate::ctypes::c_uint, +pub t392: crate::ctypes::c_uint, +pub n391: crate::ctypes::c_uint, +pub n392: crate::ctypes::c_uint, +pub n393: crate::ctypes::c_uint, +pub lmi: crate::ctypes::c_ushort, +pub dce: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc { +pub dlci: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc_info { +pub dlci: crate::ctypes::c_uint, +pub master: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cisco_proto { +pub interval: crate::ctypes::c_uint, +pub timeout: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct x25_hdlc_proto { +pub dce: crate::ctypes::c_ushort, +pub modulo: crate::ctypes::c_uint, +pub window: crate::ctypes::c_uint, +pub t1: crate::ctypes::c_uint, +pub t2: crate::ctypes::c_uint, +pub n2: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifmap { +pub mem_start: crate::ctypes::c_ulong, +pub mem_end: crate::ctypes::c_ulong, +pub base_addr: crate::ctypes::c_ushort, +pub irq: crate::ctypes::c_uchar, +pub dma: crate::ctypes::c_uchar, +pub port: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct if_settings { +pub type_: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +pub ifs_ifsu: if_settings__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifreq { +pub ifr_ifrn: ifreq__bindgen_ty_1, +pub ifr_ifru: ifreq__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifconf { +pub ifc_len: crate::ctypes::c_int, +pub ifc_ifcu: ifconf__bindgen_ty_1, +} +#[repr(C)] +pub struct xt_entry_match { +pub u: xt_entry_match__bindgen_ty_1, +pub data: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 { +pub match_size: __u16, +pub name: [crate::ctypes::c_char; 29usize], +pub revision: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 { +pub match_size: __u16, +pub match_: *mut xt_match, +} +#[repr(C)] +pub struct xt_entry_target { +pub u: xt_entry_target__bindgen_ty_1, +pub data: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 { +pub target_size: __u16, +pub name: [crate::ctypes::c_char; 29usize], +pub revision: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 { +pub target_size: __u16, +pub target: *mut xt_target, +} +#[repr(C)] +pub struct xt_standard_target { +pub target: xt_entry_target, +pub verdict: crate::ctypes::c_int, +} +#[repr(C)] +pub struct xt_error_target { +pub target: xt_entry_target, +pub errorname: [crate::ctypes::c_char; 30usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_get_revision { +pub name: [crate::ctypes::c_char; 29usize], +pub revision: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _xt_align { +pub u8_: __u8, +pub u16_: __u16, +pub u32_: __u32, +pub u64_: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_counters { +pub pcnt: __u64, +pub bcnt: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct xt_counters_info { +pub name: [crate::ctypes::c_char; 32usize], +pub num_counters: crate::ctypes::c_uint, +pub counters: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_tcp { +pub spts: [__u16; 2usize], +pub dpts: [__u16; 2usize], +pub option: __u8, +pub flg_mask: __u8, +pub flg_cmp: __u8, +pub invflags: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_udp { +pub spts: [__u16; 2usize], +pub dpts: [__u16; 2usize], +pub invflags: __u8, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ip6t_ip6 { +pub src: in6_addr, +pub dst: in6_addr, +pub smsk: in6_addr, +pub dmsk: in6_addr, +pub iniface: [crate::ctypes::c_char; 16usize], +pub outiface: [crate::ctypes::c_char; 16usize], +pub iniface_mask: [crate::ctypes::c_uchar; 16usize], +pub outiface_mask: [crate::ctypes::c_uchar; 16usize], +pub proto: __u16, +pub tos: __u8, +pub flags: __u8, +pub invflags: __u8, +} +#[repr(C)] +pub struct ip6t_entry { +pub ipv6: ip6t_ip6, +pub nfcache: crate::ctypes::c_uint, +pub target_offset: __u16, +pub next_offset: __u16, +pub comefrom: crate::ctypes::c_uint, +pub counters: xt_counters, +pub elems: __IncompleteArrayField, +} +#[repr(C)] +pub struct ip6t_standard { +pub entry: ip6t_entry, +pub target: xt_standard_target, +} +#[repr(C)] +pub struct ip6t_error { +pub entry: ip6t_entry, +pub target: xt_error_target, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip6t_icmp { +pub type_: __u8, +pub code: [__u8; 2usize], +pub invflags: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip6t_getinfo { +pub name: [crate::ctypes::c_char; 32usize], +pub valid_hooks: crate::ctypes::c_uint, +pub hook_entry: [crate::ctypes::c_uint; 5usize], +pub underflow: [crate::ctypes::c_uint; 5usize], +pub num_entries: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +} +#[repr(C)] +pub struct ip6t_replace { +pub name: [crate::ctypes::c_char; 32usize], +pub valid_hooks: crate::ctypes::c_uint, +pub num_entries: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +pub hook_entry: [crate::ctypes::c_uint; 5usize], +pub underflow: [crate::ctypes::c_uint; 5usize], +pub num_counters: crate::ctypes::c_uint, +pub counters: *mut xt_counters, +pub entries: __IncompleteArrayField, +} +#[repr(C)] +pub struct ip6t_get_entries { +pub name: [crate::ctypes::c_char; 32usize], +pub size: crate::ctypes::c_uint, +pub entrytable: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct so_timestamping { +pub flags: crate::ctypes::c_int, +pub bind_phc: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hwtstamp_config { +pub flags: crate::ctypes::c_int, +pub tx_type: crate::ctypes::c_int, +pub rx_filter: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct scm_ts_pktinfo { +pub if_index: __u32, +pub pkt_length: __u32, +pub reserved: [__u32; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sock_txtime { +pub clockid: __kernel_clockid_t, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct linger { +pub l_onoff: crate::ctypes::c_int, +pub l_linger: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct msghdr { +pub msg_name: *mut crate::ctypes::c_void, +pub msg_namelen: crate::ctypes::c_int, +pub msg_iov: *mut iovec, +pub msg_iovlen: usize, +pub msg_control: *mut crate::ctypes::c_void, +pub msg_controllen: usize, +pub msg_flags: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cmsghdr { +pub cmsg_len: usize, +pub cmsg_level: crate::ctypes::c_int, +pub cmsg_type: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ucred { +pub pid: __u32, +pub uid: __u32, +pub gid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mmsghdr { +pub msg_hdr: msghdr, +pub msg_len: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_match { +pub _address: u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_target { +pub _address: u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iovec { +pub _address: u8, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _K_SS_MAXSIZE: u32 = 128; +pub const SOCK_SNDBUF_LOCK: u32 = 1; +pub const SOCK_RCVBUF_LOCK: u32 = 2; +pub const SOCK_BUF_LOCK_MASK: u32 = 3; +pub const SOCK_TXREHASH_DEFAULT: u32 = 255; +pub const SOCK_TXREHASH_DISABLED: u32 = 0; +pub const SOCK_TXREHASH_ENABLED: u32 = 1; +pub const IP_TOS: u32 = 1; +pub const IP_TTL: u32 = 2; +pub const IP_HDRINCL: u32 = 3; +pub const IP_OPTIONS: u32 = 4; +pub const IP_ROUTER_ALERT: u32 = 5; +pub const IP_RECVOPTS: u32 = 6; +pub const IP_RETOPTS: u32 = 7; +pub const IP_PKTINFO: u32 = 8; +pub const IP_PKTOPTIONS: u32 = 9; +pub const IP_MTU_DISCOVER: u32 = 10; +pub const IP_RECVERR: u32 = 11; +pub const IP_RECVTTL: u32 = 12; +pub const IP_RECVTOS: u32 = 13; +pub const IP_MTU: u32 = 14; +pub const IP_FREEBIND: u32 = 15; +pub const IP_IPSEC_POLICY: u32 = 16; +pub const IP_XFRM_POLICY: u32 = 17; +pub const IP_PASSSEC: u32 = 18; +pub const IP_TRANSPARENT: u32 = 19; +pub const IP_RECVRETOPTS: u32 = 7; +pub const IP_ORIGDSTADDR: u32 = 20; +pub const IP_RECVORIGDSTADDR: u32 = 20; +pub const IP_MINTTL: u32 = 21; +pub const IP_NODEFRAG: u32 = 22; +pub const IP_CHECKSUM: u32 = 23; +pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; +pub const IP_RECVFRAGSIZE: u32 = 25; +pub const IP_RECVERR_RFC4884: u32 = 26; +pub const IP_PMTUDISC_DONT: u32 = 0; +pub const IP_PMTUDISC_WANT: u32 = 1; +pub const IP_PMTUDISC_DO: u32 = 2; +pub const IP_PMTUDISC_PROBE: u32 = 3; +pub const IP_PMTUDISC_INTERFACE: u32 = 4; +pub const IP_PMTUDISC_OMIT: u32 = 5; +pub const IP_MULTICAST_IF: u32 = 32; +pub const IP_MULTICAST_TTL: u32 = 33; +pub const IP_MULTICAST_LOOP: u32 = 34; +pub const IP_ADD_MEMBERSHIP: u32 = 35; +pub const IP_DROP_MEMBERSHIP: u32 = 36; +pub const IP_UNBLOCK_SOURCE: u32 = 37; +pub const IP_BLOCK_SOURCE: u32 = 38; +pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; +pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; +pub const IP_MSFILTER: u32 = 41; +pub const MCAST_JOIN_GROUP: u32 = 42; +pub const MCAST_BLOCK_SOURCE: u32 = 43; +pub const MCAST_UNBLOCK_SOURCE: u32 = 44; +pub const MCAST_LEAVE_GROUP: u32 = 45; +pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; +pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; +pub const MCAST_MSFILTER: u32 = 48; +pub const IP_MULTICAST_ALL: u32 = 49; +pub const IP_UNICAST_IF: u32 = 50; +pub const IP_LOCAL_PORT_RANGE: u32 = 51; +pub const IP_PROTOCOL: u32 = 52; +pub const MCAST_EXCLUDE: u32 = 0; +pub const MCAST_INCLUDE: u32 = 1; +pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; +pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; +pub const __SOCK_SIZE__: u32 = 16; +pub const IN_CLASSA_NET: u32 = 4278190080; +pub const IN_CLASSA_NSHIFT: u32 = 24; +pub const IN_CLASSA_HOST: u32 = 16777215; +pub const IN_CLASSA_MAX: u32 = 128; +pub const IN_CLASSB_NET: u32 = 4294901760; +pub const IN_CLASSB_NSHIFT: u32 = 16; +pub const IN_CLASSB_HOST: u32 = 65535; +pub const IN_CLASSB_MAX: u32 = 65536; +pub const IN_CLASSC_NET: u32 = 4294967040; +pub const IN_CLASSC_NSHIFT: u32 = 8; +pub const IN_CLASSC_HOST: u32 = 255; +pub const IN_MULTICAST_NET: u32 = 3758096384; +pub const IN_CLASSE_NET: u32 = 4294967295; +pub const IN_CLASSE_NSHIFT: u32 = 0; +pub const IN_LOOPBACKNET: u32 = 127; +pub const INADDR_LOOPBACK: u32 = 2130706433; +pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; +pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; +pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; +pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; +pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; +pub const __BIG_ENDIAN: u32 = 4321; +pub const IPTOS_TOS_MASK: u32 = 30; +pub const IPTOS_LOWDELAY: u32 = 16; +pub const IPTOS_THROUGHPUT: u32 = 8; +pub const IPTOS_RELIABILITY: u32 = 4; +pub const IPTOS_MINCOST: u32 = 2; +pub const IPTOS_PREC_MASK: u32 = 224; +pub const IPTOS_PREC_NETCONTROL: u32 = 224; +pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; +pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; +pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; +pub const IPTOS_PREC_FLASH: u32 = 96; +pub const IPTOS_PREC_IMMEDIATE: u32 = 64; +pub const IPTOS_PREC_PRIORITY: u32 = 32; +pub const IPTOS_PREC_ROUTINE: u32 = 0; +pub const IPOPT_COPY: u32 = 128; +pub const IPOPT_CLASS_MASK: u32 = 96; +pub const IPOPT_NUMBER_MASK: u32 = 31; +pub const IPOPT_CONTROL: u32 = 0; +pub const IPOPT_RESERVED1: u32 = 32; +pub const IPOPT_MEASUREMENT: u32 = 64; +pub const IPOPT_RESERVED2: u32 = 96; +pub const IPOPT_END: u32 = 0; +pub const IPOPT_NOOP: u32 = 1; +pub const IPOPT_SEC: u32 = 130; +pub const IPOPT_LSRR: u32 = 131; +pub const IPOPT_TIMESTAMP: u32 = 68; +pub const IPOPT_CIPSO: u32 = 134; +pub const IPOPT_RR: u32 = 7; +pub const IPOPT_SID: u32 = 136; +pub const IPOPT_SSRR: u32 = 137; +pub const IPOPT_RA: u32 = 148; +pub const IPVERSION: u32 = 4; +pub const MAXTTL: u32 = 255; +pub const IPDEFTTL: u32 = 64; +pub const IPOPT_OPTVAL: u32 = 0; +pub const IPOPT_OLEN: u32 = 1; +pub const IPOPT_OFFSET: u32 = 2; +pub const IPOPT_MINOFF: u32 = 4; +pub const MAX_IPOPTLEN: u32 = 40; +pub const IPOPT_NOP: u32 = 1; +pub const IPOPT_EOL: u32 = 0; +pub const IPOPT_TS: u32 = 68; +pub const IPOPT_TS_TSONLY: u32 = 0; +pub const IPOPT_TS_TSANDADDR: u32 = 1; +pub const IPOPT_TS_PRESPEC: u32 = 3; +pub const IPV4_BEET_PHMAXLEN: u32 = 8; +pub const IPV6_FL_A_GET: u32 = 0; +pub const IPV6_FL_A_PUT: u32 = 1; +pub const IPV6_FL_A_RENEW: u32 = 2; +pub const IPV6_FL_F_CREATE: u32 = 1; +pub const IPV6_FL_F_EXCL: u32 = 2; +pub const IPV6_FL_F_REFLECT: u32 = 4; +pub const IPV6_FL_F_REMOTE: u32 = 8; +pub const IPV6_FL_S_NONE: u32 = 0; +pub const IPV6_FL_S_EXCL: u32 = 1; +pub const IPV6_FL_S_PROCESS: u32 = 2; +pub const IPV6_FL_S_USER: u32 = 3; +pub const IPV6_FL_S_ANY: u32 = 255; +pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; +pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; +pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; +pub const IPV6_PRIORITY_FILLER: u32 = 256; +pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; +pub const IPV6_PRIORITY_RESERVED1: u32 = 768; +pub const IPV6_PRIORITY_BULK: u32 = 1024; +pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; +pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; +pub const IPV6_PRIORITY_CONTROL: u32 = 1792; +pub const IPV6_PRIORITY_8: u32 = 2048; +pub const IPV6_PRIORITY_9: u32 = 2304; +pub const IPV6_PRIORITY_10: u32 = 2560; +pub const IPV6_PRIORITY_11: u32 = 2816; +pub const IPV6_PRIORITY_12: u32 = 3072; +pub const IPV6_PRIORITY_13: u32 = 3328; +pub const IPV6_PRIORITY_14: u32 = 3584; +pub const IPV6_PRIORITY_15: u32 = 3840; +pub const IPPROTO_HOPOPTS: u32 = 0; +pub const IPPROTO_ROUTING: u32 = 43; +pub const IPPROTO_FRAGMENT: u32 = 44; +pub const IPPROTO_ICMPV6: u32 = 58; +pub const IPPROTO_NONE: u32 = 59; +pub const IPPROTO_DSTOPTS: u32 = 60; +pub const IPPROTO_MH: u32 = 135; +pub const IPV6_TLV_PAD1: u32 = 0; +pub const IPV6_TLV_PADN: u32 = 1; +pub const IPV6_TLV_ROUTERALERT: u32 = 5; +pub const IPV6_TLV_CALIPSO: u32 = 7; +pub const IPV6_TLV_IOAM: u32 = 49; +pub const IPV6_TLV_JUMBO: u32 = 194; +pub const IPV6_TLV_HAO: u32 = 201; +pub const IPV6_ADDRFORM: u32 = 1; +pub const IPV6_2292PKTINFO: u32 = 2; +pub const IPV6_2292HOPOPTS: u32 = 3; +pub const IPV6_2292DSTOPTS: u32 = 4; +pub const IPV6_2292RTHDR: u32 = 5; +pub const IPV6_2292PKTOPTIONS: u32 = 6; +pub const IPV6_CHECKSUM: u32 = 7; +pub const IPV6_2292HOPLIMIT: u32 = 8; +pub const IPV6_NEXTHOP: u32 = 9; +pub const IPV6_AUTHHDR: u32 = 10; +pub const IPV6_FLOWINFO: u32 = 11; +pub const IPV6_UNICAST_HOPS: u32 = 16; +pub const IPV6_MULTICAST_IF: u32 = 17; +pub const IPV6_MULTICAST_HOPS: u32 = 18; +pub const IPV6_MULTICAST_LOOP: u32 = 19; +pub const IPV6_ADD_MEMBERSHIP: u32 = 20; +pub const IPV6_DROP_MEMBERSHIP: u32 = 21; +pub const IPV6_ROUTER_ALERT: u32 = 22; +pub const IPV6_MTU_DISCOVER: u32 = 23; +pub const IPV6_MTU: u32 = 24; +pub const IPV6_RECVERR: u32 = 25; +pub const IPV6_V6ONLY: u32 = 26; +pub const IPV6_JOIN_ANYCAST: u32 = 27; +pub const IPV6_LEAVE_ANYCAST: u32 = 28; +pub const IPV6_MULTICAST_ALL: u32 = 29; +pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; +pub const IPV6_RECVERR_RFC4884: u32 = 31; +pub const IPV6_PMTUDISC_DONT: u32 = 0; +pub const IPV6_PMTUDISC_WANT: u32 = 1; +pub const IPV6_PMTUDISC_DO: u32 = 2; +pub const IPV6_PMTUDISC_PROBE: u32 = 3; +pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; +pub const IPV6_PMTUDISC_OMIT: u32 = 5; +pub const IPV6_FLOWLABEL_MGR: u32 = 32; +pub const IPV6_FLOWINFO_SEND: u32 = 33; +pub const IPV6_IPSEC_POLICY: u32 = 34; +pub const IPV6_XFRM_POLICY: u32 = 35; +pub const IPV6_HDRINCL: u32 = 36; +pub const IPV6_RECVPKTINFO: u32 = 49; +pub const IPV6_PKTINFO: u32 = 50; +pub const IPV6_RECVHOPLIMIT: u32 = 51; +pub const IPV6_HOPLIMIT: u32 = 52; +pub const IPV6_RECVHOPOPTS: u32 = 53; +pub const IPV6_HOPOPTS: u32 = 54; +pub const IPV6_RTHDRDSTOPTS: u32 = 55; +pub const IPV6_RECVRTHDR: u32 = 56; +pub const IPV6_RTHDR: u32 = 57; +pub const IPV6_RECVDSTOPTS: u32 = 58; +pub const IPV6_DSTOPTS: u32 = 59; +pub const IPV6_RECVPATHMTU: u32 = 60; +pub const IPV6_PATHMTU: u32 = 61; +pub const IPV6_DONTFRAG: u32 = 62; +pub const IPV6_RECVTCLASS: u32 = 66; +pub const IPV6_TCLASS: u32 = 67; +pub const IPV6_AUTOFLOWLABEL: u32 = 70; +pub const IPV6_ADDR_PREFERENCES: u32 = 72; +pub const IPV6_PREFER_SRC_TMP: u32 = 1; +pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; +pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; +pub const IPV6_PREFER_SRC_COA: u32 = 4; +pub const IPV6_PREFER_SRC_HOME: u32 = 1024; +pub const IPV6_PREFER_SRC_CGA: u32 = 8; +pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; +pub const IPV6_MINHOPCOUNT: u32 = 73; +pub const IPV6_ORIGDSTADDR: u32 = 74; +pub const IPV6_RECVORIGDSTADDR: u32 = 74; +pub const IPV6_TRANSPARENT: u32 = 75; +pub const IPV6_UNICAST_IF: u32 = 76; +pub const IPV6_RECVFRAGSIZE: u32 = 77; +pub const IPV6_FREEBIND: u32 = 78; +pub const IPV6_MIN_MTU: u32 = 1280; +pub const IPV6_SRCRT_STRICT: u32 = 1; +pub const IPV6_SRCRT_TYPE_0: u32 = 0; +pub const IPV6_SRCRT_TYPE_2: u32 = 2; +pub const IPV6_SRCRT_TYPE_3: u32 = 3; +pub const IPV6_SRCRT_TYPE_4: u32 = 4; +pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; +pub const SIOCGSTAMP_OLD: u32 = 35078; +pub const SIOCGSTAMPNS_OLD: u32 = 35079; +pub const SOL_SOCKET: u32 = 1; +pub const SO_DEBUG: u32 = 1; +pub const SO_REUSEADDR: u32 = 2; +pub const SO_TYPE: u32 = 3; +pub const SO_ERROR: u32 = 4; +pub const SO_DONTROUTE: u32 = 5; +pub const SO_BROADCAST: u32 = 6; +pub const SO_SNDBUF: u32 = 7; +pub const SO_RCVBUF: u32 = 8; +pub const SO_SNDBUFFORCE: u32 = 32; +pub const SO_RCVBUFFORCE: u32 = 33; +pub const SO_KEEPALIVE: u32 = 9; +pub const SO_OOBINLINE: u32 = 10; +pub const SO_NO_CHECK: u32 = 11; +pub const SO_PRIORITY: u32 = 12; +pub const SO_LINGER: u32 = 13; +pub const SO_BSDCOMPAT: u32 = 14; +pub const SO_REUSEPORT: u32 = 15; +pub const SO_PASSCRED: u32 = 16; +pub const SO_PEERCRED: u32 = 17; +pub const SO_RCVLOWAT: u32 = 18; +pub const SO_SNDLOWAT: u32 = 19; +pub const SO_RCVTIMEO_OLD: u32 = 20; +pub const SO_SNDTIMEO_OLD: u32 = 21; +pub const SO_SECURITY_AUTHENTICATION: u32 = 22; +pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; +pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; +pub const SO_BINDTODEVICE: u32 = 25; +pub const SO_ATTACH_FILTER: u32 = 26; +pub const SO_DETACH_FILTER: u32 = 27; +pub const SO_GET_FILTER: u32 = 26; +pub const SO_PEERNAME: u32 = 28; +pub const SO_ACCEPTCONN: u32 = 30; +pub const SO_PEERSEC: u32 = 31; +pub const SO_PASSSEC: u32 = 34; +pub const SO_MARK: u32 = 36; +pub const SO_PROTOCOL: u32 = 38; +pub const SO_DOMAIN: u32 = 39; +pub const SO_RXQ_OVFL: u32 = 40; +pub const SO_WIFI_STATUS: u32 = 41; +pub const SCM_WIFI_STATUS: u32 = 41; +pub const SO_PEEK_OFF: u32 = 42; +pub const SO_NOFCS: u32 = 43; +pub const SO_LOCK_FILTER: u32 = 44; +pub const SO_SELECT_ERR_QUEUE: u32 = 45; +pub const SO_BUSY_POLL: u32 = 46; +pub const SO_MAX_PACING_RATE: u32 = 47; +pub const SO_BPF_EXTENSIONS: u32 = 48; +pub const SO_INCOMING_CPU: u32 = 49; +pub const SO_ATTACH_BPF: u32 = 50; +pub const SO_DETACH_BPF: u32 = 27; +pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; +pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; +pub const SO_CNX_ADVICE: u32 = 53; +pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; +pub const SO_MEMINFO: u32 = 55; +pub const SO_INCOMING_NAPI_ID: u32 = 56; +pub const SO_COOKIE: u32 = 57; +pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; +pub const SO_PEERGROUPS: u32 = 59; +pub const SO_ZEROCOPY: u32 = 60; +pub const SO_TXTIME: u32 = 61; +pub const SCM_TXTIME: u32 = 61; +pub const SO_BINDTOIFINDEX: u32 = 62; +pub const SO_TIMESTAMP_OLD: u32 = 29; +pub const SO_TIMESTAMPNS_OLD: u32 = 35; +pub const SO_TIMESTAMPING_OLD: u32 = 37; +pub const SO_TIMESTAMP_NEW: u32 = 63; +pub const SO_TIMESTAMPNS_NEW: u32 = 64; +pub const SO_TIMESTAMPING_NEW: u32 = 65; +pub const SO_RCVTIMEO_NEW: u32 = 66; +pub const SO_SNDTIMEO_NEW: u32 = 67; +pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; +pub const SO_PREFER_BUSY_POLL: u32 = 69; +pub const SO_BUSY_POLL_BUDGET: u32 = 70; +pub const SO_NETNS_COOKIE: u32 = 71; +pub const SO_BUF_LOCK: u32 = 72; +pub const SO_RESERVE_MEM: u32 = 73; +pub const SO_TXREHASH: u32 = 74; +pub const SO_RCVMARK: u32 = 75; +pub const SO_PASSPIDFD: u32 = 76; +pub const SO_PEERPIDFD: u32 = 77; +pub const SO_DEVMEM_LINEAR: u32 = 78; +pub const SCM_DEVMEM_LINEAR: u32 = 78; +pub const SO_DEVMEM_DMABUF: u32 = 79; +pub const SCM_DEVMEM_DMABUF: u32 = 79; +pub const SO_DEVMEM_DONTNEED: u32 = 80; +pub const SCM_TS_OPT_ID: u32 = 81; +pub const SO_RCVPRIORITY: u32 = 82; +pub const SO_PASSRIGHTS: u32 = 83; +pub const SO_TIMESTAMP: u32 = 29; +pub const SO_TIMESTAMPNS: u32 = 35; +pub const SO_TIMESTAMPING: u32 = 37; +pub const SO_RCVTIMEO: u32 = 20; +pub const SO_SNDTIMEO: u32 = 21; +pub const SCM_TIMESTAMP: u32 = 29; +pub const SCM_TIMESTAMPNS: u32 = 35; +pub const SCM_TIMESTAMPING: u32 = 37; +pub const SYS_SOCKET: u32 = 1; +pub const SYS_BIND: u32 = 2; +pub const SYS_CONNECT: u32 = 3; +pub const SYS_LISTEN: u32 = 4; +pub const SYS_ACCEPT: u32 = 5; +pub const SYS_GETSOCKNAME: u32 = 6; +pub const SYS_GETPEERNAME: u32 = 7; +pub const SYS_SOCKETPAIR: u32 = 8; +pub const SYS_SEND: u32 = 9; +pub const SYS_RECV: u32 = 10; +pub const SYS_SENDTO: u32 = 11; +pub const SYS_RECVFROM: u32 = 12; +pub const SYS_SHUTDOWN: u32 = 13; +pub const SYS_SETSOCKOPT: u32 = 14; +pub const SYS_GETSOCKOPT: u32 = 15; +pub const SYS_SENDMSG: u32 = 16; +pub const SYS_RECVMSG: u32 = 17; +pub const SYS_ACCEPT4: u32 = 18; +pub const SYS_RECVMMSG: u32 = 19; +pub const SYS_SENDMMSG: u32 = 20; +pub const __SO_ACCEPTCON: u32 = 65536; +pub const TCP_MSS_DEFAULT: u32 = 536; +pub const TCP_MSS_DESIRED: u32 = 1220; +pub const TCP_NODELAY: u32 = 1; +pub const TCP_MAXSEG: u32 = 2; +pub const TCP_CORK: u32 = 3; +pub const TCP_KEEPIDLE: u32 = 4; +pub const TCP_KEEPINTVL: u32 = 5; +pub const TCP_KEEPCNT: u32 = 6; +pub const TCP_SYNCNT: u32 = 7; +pub const TCP_LINGER2: u32 = 8; +pub const TCP_DEFER_ACCEPT: u32 = 9; +pub const TCP_WINDOW_CLAMP: u32 = 10; +pub const TCP_INFO: u32 = 11; +pub const TCP_QUICKACK: u32 = 12; +pub const TCP_CONGESTION: u32 = 13; +pub const TCP_MD5SIG: u32 = 14; +pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; +pub const TCP_THIN_DUPACK: u32 = 17; +pub const TCP_USER_TIMEOUT: u32 = 18; +pub const TCP_REPAIR: u32 = 19; +pub const TCP_REPAIR_QUEUE: u32 = 20; +pub const TCP_QUEUE_SEQ: u32 = 21; +pub const TCP_REPAIR_OPTIONS: u32 = 22; +pub const TCP_FASTOPEN: u32 = 23; +pub const TCP_TIMESTAMP: u32 = 24; +pub const TCP_NOTSENT_LOWAT: u32 = 25; +pub const TCP_CC_INFO: u32 = 26; +pub const TCP_SAVE_SYN: u32 = 27; +pub const TCP_SAVED_SYN: u32 = 28; +pub const TCP_REPAIR_WINDOW: u32 = 29; +pub const TCP_FASTOPEN_CONNECT: u32 = 30; +pub const TCP_ULP: u32 = 31; +pub const TCP_MD5SIG_EXT: u32 = 32; +pub const TCP_FASTOPEN_KEY: u32 = 33; +pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; +pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; +pub const TCP_INQ: u32 = 36; +pub const TCP_CM_INQ: u32 = 36; +pub const TCP_TX_DELAY: u32 = 37; +pub const TCP_AO_ADD_KEY: u32 = 38; +pub const TCP_AO_DEL_KEY: u32 = 39; +pub const TCP_AO_INFO: u32 = 40; +pub const TCP_AO_GET_KEYS: u32 = 41; +pub const TCP_AO_REPAIR: u32 = 42; +pub const TCP_IS_MPTCP: u32 = 43; +pub const TCP_RTO_MAX_MS: u32 = 44; +pub const TCP_RTO_MIN_US: u32 = 45; +pub const TCP_DELACK_MAX_US: u32 = 46; +pub const TCP_REPAIR_ON: u32 = 1; +pub const TCP_REPAIR_OFF: u32 = 0; +pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; +pub const TCPI_OPT_TIMESTAMPS: u32 = 1; +pub const TCPI_OPT_SACK: u32 = 2; +pub const TCPI_OPT_WSCALE: u32 = 4; +pub const TCPI_OPT_ECN: u32 = 8; +pub const TCPI_OPT_ECN_SEEN: u32 = 16; +pub const TCPI_OPT_SYN_DATA: u32 = 32; +pub const TCPI_OPT_USEC_TS: u32 = 64; +pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; +pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; +pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; +pub const TCP_AO_MAXKEYLEN: u32 = 80; +pub const TCP_AO_KEYF_IFINDEX: u32 = 1; +pub const TCP_AO_KEYF_EXCLUDE_OPT: u32 = 2; +pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; +pub const UNIX_PATH_MAX: u32 = 108; +pub const IFNAMSIZ: u32 = 16; +pub const IFALIASZ: u32 = 256; +pub const ALTIFNAMSIZ: u32 = 128; +pub const GENERIC_HDLC_VERSION: u32 = 4; +pub const CLOCK_DEFAULT: u32 = 0; +pub const CLOCK_EXT: u32 = 1; +pub const CLOCK_INT: u32 = 2; +pub const CLOCK_TXINT: u32 = 3; +pub const CLOCK_TXFROMRX: u32 = 4; +pub const ENCODING_DEFAULT: u32 = 0; +pub const ENCODING_NRZ: u32 = 1; +pub const ENCODING_NRZI: u32 = 2; +pub const ENCODING_FM_MARK: u32 = 3; +pub const ENCODING_FM_SPACE: u32 = 4; +pub const ENCODING_MANCHESTER: u32 = 5; +pub const PARITY_DEFAULT: u32 = 0; +pub const PARITY_NONE: u32 = 1; +pub const PARITY_CRC16_PR0: u32 = 2; +pub const PARITY_CRC16_PR1: u32 = 3; +pub const PARITY_CRC16_PR0_CCITT: u32 = 4; +pub const PARITY_CRC16_PR1_CCITT: u32 = 5; +pub const PARITY_CRC32_PR0_CCITT: u32 = 6; +pub const PARITY_CRC32_PR1_CCITT: u32 = 7; +pub const LMI_DEFAULT: u32 = 0; +pub const LMI_NONE: u32 = 1; +pub const LMI_ANSI: u32 = 2; +pub const LMI_CCITT: u32 = 3; +pub const LMI_CISCO: u32 = 4; +pub const IF_GET_IFACE: u32 = 1; +pub const IF_GET_PROTO: u32 = 2; +pub const IF_IFACE_V35: u32 = 4096; +pub const IF_IFACE_V24: u32 = 4097; +pub const IF_IFACE_X21: u32 = 4098; +pub const IF_IFACE_T1: u32 = 4099; +pub const IF_IFACE_E1: u32 = 4100; +pub const IF_IFACE_SYNC_SERIAL: u32 = 4101; +pub const IF_IFACE_X21D: u32 = 4102; +pub const IF_PROTO_HDLC: u32 = 8192; +pub const IF_PROTO_PPP: u32 = 8193; +pub const IF_PROTO_CISCO: u32 = 8194; +pub const IF_PROTO_FR: u32 = 8195; +pub const IF_PROTO_FR_ADD_PVC: u32 = 8196; +pub const IF_PROTO_FR_DEL_PVC: u32 = 8197; +pub const IF_PROTO_X25: u32 = 8198; +pub const IF_PROTO_HDLC_ETH: u32 = 8199; +pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200; +pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201; +pub const IF_PROTO_FR_PVC: u32 = 8202; +pub const IF_PROTO_FR_ETH_PVC: u32 = 8203; +pub const IF_PROTO_RAW: u32 = 8204; +pub const IFHWADDRLEN: u32 = 6; +pub const NF_DROP: u32 = 0; +pub const NF_ACCEPT: u32 = 1; +pub const NF_STOLEN: u32 = 2; +pub const NF_QUEUE: u32 = 3; +pub const NF_REPEAT: u32 = 4; +pub const NF_STOP: u32 = 5; +pub const NF_MAX_VERDICT: u32 = 5; +pub const NF_VERDICT_MASK: u32 = 255; +pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768; +pub const NF_VERDICT_QMASK: u32 = 4294901760; +pub const NF_VERDICT_QBITS: u32 = 16; +pub const NF_VERDICT_BITS: u32 = 16; +pub const NF_IP6_PRE_ROUTING: u32 = 0; +pub const NF_IP6_LOCAL_IN: u32 = 1; +pub const NF_IP6_FORWARD: u32 = 2; +pub const NF_IP6_LOCAL_OUT: u32 = 3; +pub const NF_IP6_POST_ROUTING: u32 = 4; +pub const NF_IP6_NUMHOOKS: u32 = 5; +pub const XT_FUNCTION_MAXNAMELEN: u32 = 30; +pub const XT_EXTENSION_MAXNAMELEN: u32 = 29; +pub const XT_TABLE_MAXNAMELEN: u32 = 32; +pub const XT_CONTINUE: u32 = 4294967295; +pub const XT_RETURN: i32 = -5; +pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0"; +pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0"; +pub const XT_INV_PROTO: u32 = 64; +pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30; +pub const IP6T_TABLE_MAXNAMELEN: u32 = 32; +pub const IP6T_CONTINUE: u32 = 4294967295; +pub const IP6T_RETURN: i32 = -5; +pub const XT_TCP_INV_SRCPT: u32 = 1; +pub const XT_TCP_INV_DSTPT: u32 = 2; +pub const XT_TCP_INV_FLAGS: u32 = 4; +pub const XT_TCP_INV_OPTION: u32 = 8; +pub const XT_TCP_INV_MASK: u32 = 15; +pub const XT_UDP_INV_SRCPT: u32 = 1; +pub const XT_UDP_INV_DSTPT: u32 = 2; +pub const XT_UDP_INV_MASK: u32 = 3; +pub const IP6T_TCP_INV_SRCPT: u32 = 1; +pub const IP6T_TCP_INV_DSTPT: u32 = 2; +pub const IP6T_TCP_INV_FLAGS: u32 = 4; +pub const IP6T_TCP_INV_OPTION: u32 = 8; +pub const IP6T_TCP_INV_MASK: u32 = 15; +pub const IP6T_UDP_INV_SRCPT: u32 = 1; +pub const IP6T_UDP_INV_DSTPT: u32 = 2; +pub const IP6T_UDP_INV_MASK: u32 = 3; +pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0"; +pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0"; +pub const IP6T_F_PROTO: u32 = 1; +pub const IP6T_F_TOS: u32 = 2; +pub const IP6T_F_GOTO: u32 = 4; +pub const IP6T_F_MASK: u32 = 7; +pub const IP6T_INV_VIA_IN: u32 = 1; +pub const IP6T_INV_VIA_OUT: u32 = 2; +pub const IP6T_INV_TOS: u32 = 4; +pub const IP6T_INV_SRCIP: u32 = 8; +pub const IP6T_INV_DSTIP: u32 = 16; +pub const IP6T_INV_FRAG: u32 = 32; +pub const IP6T_INV_PROTO: u32 = 64; +pub const IP6T_INV_MASK: u32 = 127; +pub const IP6T_BASE_CTL: u32 = 64; +pub const IP6T_SO_SET_REPLACE: u32 = 64; +pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65; +pub const IP6T_SO_SET_MAX: u32 = 65; +pub const IP6T_SO_GET_INFO: u32 = 64; +pub const IP6T_SO_GET_ENTRIES: u32 = 65; +pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68; +pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69; +pub const IP6T_SO_GET_MAX: u32 = 69; +pub const IP6T_SO_ORIGINAL_DST: u32 = 80; +pub const IP6T_ICMP_INV: u32 = 1; +pub const NF_IP_PRE_ROUTING: u32 = 0; +pub const NF_IP_LOCAL_IN: u32 = 1; +pub const NF_IP_FORWARD: u32 = 2; +pub const NF_IP_LOCAL_OUT: u32 = 3; +pub const NF_IP_POST_ROUTING: u32 = 4; +pub const NF_IP_NUMHOOKS: u32 = 5; +pub const SO_ORIGINAL_DST: u32 = 80; +pub const SHUT_RD: u32 = 0; +pub const SHUT_WR: u32 = 1; +pub const SHUT_RDWR: u32 = 2; +pub const SOCK_STREAM: u32 = 1; +pub const SOCK_DGRAM: u32 = 2; +pub const SOCK_RAW: u32 = 3; +pub const SOCK_RDM: u32 = 4; +pub const SOCK_SEQPACKET: u32 = 5; +pub const MSG_DONTWAIT: u32 = 64; +pub const AF_UNSPEC: u32 = 0; +pub const AF_UNIX: u32 = 1; +pub const AF_INET: u32 = 2; +pub const AF_AX25: u32 = 3; +pub const AF_IPX: u32 = 4; +pub const AF_APPLETALK: u32 = 5; +pub const AF_NETROM: u32 = 6; +pub const AF_BRIDGE: u32 = 7; +pub const AF_ATMPVC: u32 = 8; +pub const AF_X25: u32 = 9; +pub const AF_INET6: u32 = 10; +pub const AF_ROSE: u32 = 11; +pub const AF_DECnet: u32 = 12; +pub const AF_NETBEUI: u32 = 13; +pub const AF_SECURITY: u32 = 14; +pub const AF_KEY: u32 = 15; +pub const AF_NETLINK: u32 = 16; +pub const AF_PACKET: u32 = 17; +pub const AF_ASH: u32 = 18; +pub const AF_ECONET: u32 = 19; +pub const AF_ATMSVC: u32 = 20; +pub const AF_RDS: u32 = 21; +pub const AF_SNA: u32 = 22; +pub const AF_IRDA: u32 = 23; +pub const AF_PPPOX: u32 = 24; +pub const AF_WANPIPE: u32 = 25; +pub const AF_LLC: u32 = 26; +pub const AF_CAN: u32 = 29; +pub const AF_TIPC: u32 = 30; +pub const AF_BLUETOOTH: u32 = 31; +pub const AF_IUCV: u32 = 32; +pub const AF_RXRPC: u32 = 33; +pub const AF_ISDN: u32 = 34; +pub const AF_PHONET: u32 = 35; +pub const AF_IEEE802154: u32 = 36; +pub const AF_CAIF: u32 = 37; +pub const AF_ALG: u32 = 38; +pub const AF_NFC: u32 = 39; +pub const AF_VSOCK: u32 = 40; +pub const AF_KCM: u32 = 41; +pub const AF_QIPCRTR: u32 = 42; +pub const AF_SMC: u32 = 43; +pub const AF_XDP: u32 = 44; +pub const AF_MCTP: u32 = 45; +pub const AF_MAX: u32 = 46; +pub const MSG_OOB: u32 = 1; +pub const MSG_PEEK: u32 = 2; +pub const MSG_DONTROUTE: u32 = 4; +pub const MSG_CTRUNC: u32 = 8; +pub const MSG_PROBE: u32 = 16; +pub const MSG_TRUNC: u32 = 32; +pub const MSG_EOR: u32 = 128; +pub const MSG_WAITALL: u32 = 256; +pub const MSG_FIN: u32 = 512; +pub const MSG_SYN: u32 = 1024; +pub const MSG_CONFIRM: u32 = 2048; +pub const MSG_RST: u32 = 4096; +pub const MSG_ERRQUEUE: u32 = 8192; +pub const MSG_NOSIGNAL: u32 = 16384; +pub const MSG_MORE: u32 = 32768; +pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; +pub const SCM_RIGHTS: u32 = 1; +pub const SCM_CREDENTIALS: u32 = 2; +pub const SCM_SECURITY: u32 = 3; +pub const SOL_IP: u32 = 0; +pub const SOL_TCP: u32 = 6; +pub const SOL_UDP: u32 = 17; +pub const SOL_IPV6: u32 = 41; +pub const SOL_ICMPV6: u32 = 58; +pub const SOL_SCTP: u32 = 132; +pub const SOL_UDPLITE: u32 = 136; +pub const SOL_RAW: u32 = 255; +pub const SOL_IPX: u32 = 256; +pub const SOL_AX25: u32 = 257; +pub const SOL_ATALK: u32 = 258; +pub const SOL_NETROM: u32 = 259; +pub const SOL_ROSE: u32 = 260; +pub const SOL_DECNET: u32 = 261; +pub const SOL_X25: u32 = 262; +pub const SOL_PACKET: u32 = 263; +pub const SOL_ATM: u32 = 264; +pub const SOL_AAL: u32 = 265; +pub const SOL_IRDA: u32 = 266; +pub const SOL_NETBEUI: u32 = 267; +pub const SOL_LLC: u32 = 268; +pub const SOL_DCCP: u32 = 269; +pub const SOL_NETLINK: u32 = 270; +pub const SOL_TIPC: u32 = 271; +pub const SOL_RXRPC: u32 = 272; +pub const SOL_PPPOL2TP: u32 = 273; +pub const SOL_BLUETOOTH: u32 = 274; +pub const SOL_PNPIPE: u32 = 275; +pub const SOL_RDS: u32 = 276; +pub const SOL_IUCV: u32 = 277; +pub const SOL_CAIF: u32 = 278; +pub const SOL_ALG: u32 = 279; +pub const SOL_NFC: u32 = 280; +pub const SOL_KCM: u32 = 281; +pub const SOL_TLS: u32 = 282; +pub const SOL_XDP: u32 = 283; +pub const SOL_MPTCP: u32 = 284; +pub const SOL_MCTP: u32 = 285; +pub const SOL_SMC: u32 = 286; +pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; +pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; +pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; +pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; +pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; +pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; +pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; +pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; +pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; +pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; +pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; +pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; +pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; +pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; +pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; +pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; +pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; +pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; +pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; +pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; +pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; +pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; +pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; +pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; +pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; +pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; +pub const IPPROTO_AGGFRAG: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AGGFRAG; +pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; +pub const IPPROTO_SMC: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SMC; +pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; +pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; +pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; +pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; +pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; +pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; +pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; +pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; +pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; +pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; +pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; +pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; +pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; +pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; +pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; +pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; +pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; +pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; +pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; +pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; +pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; +pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; +pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; +pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; +pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; +pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; +pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; +pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; +pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; +pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; +pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; +pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; +pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; +pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; +pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; +pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; +pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; +pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; +pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; +pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; +pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; +pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; +pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; +pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; +pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; +pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; +pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; +pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; +pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; +pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; +pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; +pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; +pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; +pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; +pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; +pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; +pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; +pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; +pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; +pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; +pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; +pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; +pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; +pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; +pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; +pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; +pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; +pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; +pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; +pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; +pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; +pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; +pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; +pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; +pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; +pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; +pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; +pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; +pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; +pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; +pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; +pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; +pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; +pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; +pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; +pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; +pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; +pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; +pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; +pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; +pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; +pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; +pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; +pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; +pub const DEVCONF_ACCEPT_RA_MIN_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_LFT; +pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; +pub const TCP_FLAG_AE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_AE; +pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; +pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; +pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; +pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; +pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; +pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; +pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; +pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; +pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; +pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; +pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; +pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; +pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; +pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; +pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; +pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; +pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; +pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; +pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; +pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; +pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; +pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; +pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; +pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; +pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; +pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; +pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; +pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; +pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; +pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; +pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; +pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; +pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; +pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; +pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; +pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; +pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; +pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; +pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; +pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; +pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; +pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; +pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN; +pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT; +pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN; +pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN; +pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING; +pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT; +pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP; +pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT; +pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT; +pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING; +pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC; +pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET; +pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4; +pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP; +pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV; +pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE; +pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6; +pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET; +pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO; +pub const SOF_TIMESTAMPING_TX_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_HARDWARE; +pub const SOF_TIMESTAMPING_TX_SOFTWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_SOFTWARE; +pub const SOF_TIMESTAMPING_RX_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_RX_HARDWARE; +pub const SOF_TIMESTAMPING_RX_SOFTWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_RX_SOFTWARE; +pub const SOF_TIMESTAMPING_SOFTWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_SOFTWARE; +pub const SOF_TIMESTAMPING_SYS_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_SYS_HARDWARE; +pub const SOF_TIMESTAMPING_RAW_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_RAW_HARDWARE; +pub const SOF_TIMESTAMPING_OPT_ID: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_ID; +pub const SOF_TIMESTAMPING_TX_SCHED: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_SCHED; +pub const SOF_TIMESTAMPING_TX_ACK: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_ACK; +pub const SOF_TIMESTAMPING_OPT_CMSG: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_CMSG; +pub const SOF_TIMESTAMPING_OPT_TSONLY: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_TSONLY; +pub const SOF_TIMESTAMPING_OPT_STATS: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_STATS; +pub const SOF_TIMESTAMPING_OPT_PKTINFO: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_PKTINFO; +pub const SOF_TIMESTAMPING_OPT_TX_SWHW: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_TX_SWHW; +pub const SOF_TIMESTAMPING_BIND_PHC: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_BIND_PHC; +pub const SOF_TIMESTAMPING_OPT_ID_TCP: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_ID_TCP; +pub const SOF_TIMESTAMPING_OPT_RX_FILTER: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_RX_FILTER; +pub const SOF_TIMESTAMPING_TX_COMPLETION: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_COMPLETION; +pub const SOF_TIMESTAMPING_LAST: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_COMPLETION; +pub const SOF_TIMESTAMPING_MASK: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_MASK; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +IPPROTO_IP = 0, +IPPROTO_ICMP = 1, +IPPROTO_IGMP = 2, +IPPROTO_IPIP = 4, +IPPROTO_TCP = 6, +IPPROTO_EGP = 8, +IPPROTO_PUP = 12, +IPPROTO_UDP = 17, +IPPROTO_IDP = 22, +IPPROTO_TP = 29, +IPPROTO_DCCP = 33, +IPPROTO_IPV6 = 41, +IPPROTO_RSVP = 46, +IPPROTO_GRE = 47, +IPPROTO_ESP = 50, +IPPROTO_AH = 51, +IPPROTO_MTP = 92, +IPPROTO_BEETPH = 94, +IPPROTO_ENCAP = 98, +IPPROTO_PIM = 103, +IPPROTO_COMP = 108, +IPPROTO_L2TP = 115, +IPPROTO_SCTP = 132, +IPPROTO_UDPLITE = 136, +IPPROTO_MPLS = 137, +IPPROTO_ETHERNET = 143, +IPPROTO_AGGFRAG = 144, +IPPROTO_RAW = 255, +IPPROTO_SMC = 256, +IPPROTO_MPTCP = 262, +IPPROTO_MAX = 263, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IPV4_DEVCONF_FORWARDING = 1, +IPV4_DEVCONF_MC_FORWARDING = 2, +IPV4_DEVCONF_PROXY_ARP = 3, +IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, +IPV4_DEVCONF_SECURE_REDIRECTS = 5, +IPV4_DEVCONF_SEND_REDIRECTS = 6, +IPV4_DEVCONF_SHARED_MEDIA = 7, +IPV4_DEVCONF_RP_FILTER = 8, +IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, +IPV4_DEVCONF_BOOTP_RELAY = 10, +IPV4_DEVCONF_LOG_MARTIANS = 11, +IPV4_DEVCONF_TAG = 12, +IPV4_DEVCONF_ARPFILTER = 13, +IPV4_DEVCONF_MEDIUM_ID = 14, +IPV4_DEVCONF_NOXFRM = 15, +IPV4_DEVCONF_NOPOLICY = 16, +IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, +IPV4_DEVCONF_ARP_ANNOUNCE = 18, +IPV4_DEVCONF_ARP_IGNORE = 19, +IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, +IPV4_DEVCONF_ARP_ACCEPT = 21, +IPV4_DEVCONF_ARP_NOTIFY = 22, +IPV4_DEVCONF_ACCEPT_LOCAL = 23, +IPV4_DEVCONF_SRC_VMARK = 24, +IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, +IPV4_DEVCONF_ROUTE_LOCALNET = 26, +IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, +IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, +IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, +IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, +IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, +IPV4_DEVCONF_BC_FORWARDING = 32, +IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, +__IPV4_DEVCONF_MAX = 34, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +DEVCONF_FORWARDING = 0, +DEVCONF_HOPLIMIT = 1, +DEVCONF_MTU6 = 2, +DEVCONF_ACCEPT_RA = 3, +DEVCONF_ACCEPT_REDIRECTS = 4, +DEVCONF_AUTOCONF = 5, +DEVCONF_DAD_TRANSMITS = 6, +DEVCONF_RTR_SOLICITS = 7, +DEVCONF_RTR_SOLICIT_INTERVAL = 8, +DEVCONF_RTR_SOLICIT_DELAY = 9, +DEVCONF_USE_TEMPADDR = 10, +DEVCONF_TEMP_VALID_LFT = 11, +DEVCONF_TEMP_PREFERED_LFT = 12, +DEVCONF_REGEN_MAX_RETRY = 13, +DEVCONF_MAX_DESYNC_FACTOR = 14, +DEVCONF_MAX_ADDRESSES = 15, +DEVCONF_FORCE_MLD_VERSION = 16, +DEVCONF_ACCEPT_RA_DEFRTR = 17, +DEVCONF_ACCEPT_RA_PINFO = 18, +DEVCONF_ACCEPT_RA_RTR_PREF = 19, +DEVCONF_RTR_PROBE_INTERVAL = 20, +DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, +DEVCONF_PROXY_NDP = 22, +DEVCONF_OPTIMISTIC_DAD = 23, +DEVCONF_ACCEPT_SOURCE_ROUTE = 24, +DEVCONF_MC_FORWARDING = 25, +DEVCONF_DISABLE_IPV6 = 26, +DEVCONF_ACCEPT_DAD = 27, +DEVCONF_FORCE_TLLAO = 28, +DEVCONF_NDISC_NOTIFY = 29, +DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, +DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, +DEVCONF_SUPPRESS_FRAG_NDISC = 32, +DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, +DEVCONF_USE_OPTIMISTIC = 34, +DEVCONF_ACCEPT_RA_MTU = 35, +DEVCONF_STABLE_SECRET = 36, +DEVCONF_USE_OIF_ADDRS_ONLY = 37, +DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, +DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, +DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, +DEVCONF_DROP_UNSOLICITED_NA = 41, +DEVCONF_KEEP_ADDR_ON_DOWN = 42, +DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, +DEVCONF_SEG6_ENABLED = 44, +DEVCONF_SEG6_REQUIRE_HMAC = 45, +DEVCONF_ENHANCED_DAD = 46, +DEVCONF_ADDR_GEN_MODE = 47, +DEVCONF_DISABLE_POLICY = 48, +DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, +DEVCONF_NDISC_TCLASS = 50, +DEVCONF_RPL_SEG_ENABLED = 51, +DEVCONF_RA_DEFRTR_METRIC = 52, +DEVCONF_IOAM6_ENABLED = 53, +DEVCONF_IOAM6_ID = 54, +DEVCONF_IOAM6_ID_WIDE = 55, +DEVCONF_NDISC_EVICT_NOCARRIER = 56, +DEVCONF_ACCEPT_UNTRACKED_NA = 57, +DEVCONF_ACCEPT_RA_MIN_LFT = 58, +DEVCONF_MAX = 59, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum socket_state { +SS_FREE = 0, +SS_UNCONNECTED = 1, +SS_CONNECTING = 2, +SS_CONNECTED = 3, +SS_DISCONNECTING = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +TCP_FLAG_AE = 16777216, +TCP_FLAG_CWR = 8388608, +TCP_FLAG_ECE = 4194304, +TCP_FLAG_URG = 2097152, +TCP_FLAG_ACK = 1048576, +TCP_FLAG_PSH = 524288, +TCP_FLAG_RST = 262144, +TCP_FLAG_SYN = 131072, +TCP_FLAG_FIN = 65536, +TCP_RESERVED_BITS = 234881024, +TCP_DATA_OFFSET = 4026531840, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_5 { +TCP_NO_QUEUE = 0, +TCP_RECV_QUEUE = 1, +TCP_SEND_QUEUE = 2, +TCP_QUEUES_NR = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tcp_fastopen_client_fail { +TFO_STATUS_UNSPEC = 0, +TFO_COOKIE_UNAVAILABLE = 1, +TFO_DATA_NOT_ACKED = 2, +TFO_SYN_RETRANSMITTED = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tcp_ca_state { +TCP_CA_Open = 0, +TCP_CA_Disorder = 1, +TCP_CA_CWR = 2, +TCP_CA_Recovery = 3, +TCP_CA_Loss = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_6 { +TCP_NLA_PAD = 0, +TCP_NLA_BUSY = 1, +TCP_NLA_RWND_LIMITED = 2, +TCP_NLA_SNDBUF_LIMITED = 3, +TCP_NLA_DATA_SEGS_OUT = 4, +TCP_NLA_TOTAL_RETRANS = 5, +TCP_NLA_PACING_RATE = 6, +TCP_NLA_DELIVERY_RATE = 7, +TCP_NLA_SND_CWND = 8, +TCP_NLA_REORDERING = 9, +TCP_NLA_MIN_RTT = 10, +TCP_NLA_RECUR_RETRANS = 11, +TCP_NLA_DELIVERY_RATE_APP_LMT = 12, +TCP_NLA_SNDQ_SIZE = 13, +TCP_NLA_CA_STATE = 14, +TCP_NLA_SND_SSTHRESH = 15, +TCP_NLA_DELIVERED = 16, +TCP_NLA_DELIVERED_CE = 17, +TCP_NLA_BYTES_SENT = 18, +TCP_NLA_BYTES_RETRANS = 19, +TCP_NLA_DSACK_DUPS = 20, +TCP_NLA_REORD_SEEN = 21, +TCP_NLA_SRTT = 22, +TCP_NLA_TIMEOUT_REHASH = 23, +TCP_NLA_BYTES_NOTSENT = 24, +TCP_NLA_EDT = 25, +TCP_NLA_TTL = 26, +TCP_NLA_REHASH = 27, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum net_device_flags { +IFF_UP = 1, +IFF_BROADCAST = 2, +IFF_DEBUG = 4, +IFF_LOOPBACK = 8, +IFF_POINTOPOINT = 16, +IFF_NOTRAILERS = 32, +IFF_RUNNING = 64, +IFF_NOARP = 128, +IFF_PROMISC = 256, +IFF_ALLMULTI = 512, +IFF_MASTER = 1024, +IFF_SLAVE = 2048, +IFF_MULTICAST = 4096, +IFF_PORTSEL = 8192, +IFF_AUTOMEDIA = 16384, +IFF_DYNAMIC = 32768, +IFF_LOWER_UP = 65536, +IFF_DORMANT = 131072, +IFF_ECHO = 262144, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_7 { +IF_OPER_UNKNOWN = 0, +IF_OPER_NOTPRESENT = 1, +IF_OPER_DOWN = 2, +IF_OPER_LOWERLAYERDOWN = 3, +IF_OPER_TESTING = 4, +IF_OPER_DORMANT = 5, +IF_OPER_UP = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_8 { +IF_LINK_MODE_DEFAULT = 0, +IF_LINK_MODE_DORMANT = 1, +IF_LINK_MODE_TESTING = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_inet_hooks { +NF_INET_PRE_ROUTING = 0, +NF_INET_LOCAL_IN = 1, +NF_INET_FORWARD = 2, +NF_INET_LOCAL_OUT = 3, +NF_INET_POST_ROUTING = 4, +NF_INET_NUMHOOKS = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_dev_hooks { +NF_NETDEV_INGRESS = 0, +NF_NETDEV_EGRESS = 1, +NF_NETDEV_NUMHOOKS = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_9 { +NFPROTO_UNSPEC = 0, +NFPROTO_INET = 1, +NFPROTO_IPV4 = 2, +NFPROTO_ARP = 3, +NFPROTO_NETDEV = 5, +NFPROTO_BRIDGE = 7, +NFPROTO_IPV6 = 10, +NFPROTO_DECNET = 12, +NFPROTO_NUMPROTO = 13, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_ip6_hook_priorities { +NF_IP6_PRI_FIRST = -2147483648, +NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450, +NF_IP6_PRI_CONNTRACK_DEFRAG = -400, +NF_IP6_PRI_RAW = -300, +NF_IP6_PRI_SELINUX_FIRST = -225, +NF_IP6_PRI_CONNTRACK = -200, +NF_IP6_PRI_MANGLE = -150, +NF_IP6_PRI_NAT_DST = -100, +NF_IP6_PRI_FILTER = 0, +NF_IP6_PRI_SECURITY = 50, +NF_IP6_PRI_NAT_SRC = 100, +NF_IP6_PRI_SELINUX_LAST = 225, +NF_IP6_PRI_CONNTRACK_HELPER = 300, +NF_IP6_PRI_LAST = 2147483647, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_ip_hook_priorities { +NF_IP_PRI_FIRST = -2147483648, +NF_IP_PRI_RAW_BEFORE_DEFRAG = -450, +NF_IP_PRI_CONNTRACK_DEFRAG = -400, +NF_IP_PRI_RAW = -300, +NF_IP_PRI_SELINUX_FIRST = -225, +NF_IP_PRI_CONNTRACK = -200, +NF_IP_PRI_MANGLE = -150, +NF_IP_PRI_NAT_DST = -100, +NF_IP_PRI_FILTER = 0, +NF_IP_PRI_SECURITY = 50, +NF_IP_PRI_NAT_SRC = 100, +NF_IP_PRI_SELINUX_LAST = 225, +NF_IP_PRI_CONNTRACK_HELPER = 300, +NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_provider_qualifier { +HWTSTAMP_PROVIDER_QUALIFIER_PRECISE = 0, +HWTSTAMP_PROVIDER_QUALIFIER_APPROX = 1, +HWTSTAMP_PROVIDER_QUALIFIER_CNT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_10 { +SOF_TIMESTAMPING_TX_HARDWARE = 1, +SOF_TIMESTAMPING_TX_SOFTWARE = 2, +SOF_TIMESTAMPING_RX_HARDWARE = 4, +SOF_TIMESTAMPING_RX_SOFTWARE = 8, +SOF_TIMESTAMPING_SOFTWARE = 16, +SOF_TIMESTAMPING_SYS_HARDWARE = 32, +SOF_TIMESTAMPING_RAW_HARDWARE = 64, +SOF_TIMESTAMPING_OPT_ID = 128, +SOF_TIMESTAMPING_TX_SCHED = 256, +SOF_TIMESTAMPING_TX_ACK = 512, +SOF_TIMESTAMPING_OPT_CMSG = 1024, +SOF_TIMESTAMPING_OPT_TSONLY = 2048, +SOF_TIMESTAMPING_OPT_STATS = 4096, +SOF_TIMESTAMPING_OPT_PKTINFO = 8192, +SOF_TIMESTAMPING_OPT_TX_SWHW = 16384, +SOF_TIMESTAMPING_BIND_PHC = 32768, +SOF_TIMESTAMPING_OPT_ID_TCP = 65536, +SOF_TIMESTAMPING_OPT_RX_FILTER = 131072, +SOF_TIMESTAMPING_TX_COMPLETION = 262144, +SOF_TIMESTAMPING_MASK = 524287, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_flags { +HWTSTAMP_FLAG_BONDED_PHC_INDEX = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_tx_types { +HWTSTAMP_TX_OFF = 0, +HWTSTAMP_TX_ON = 1, +HWTSTAMP_TX_ONESTEP_SYNC = 2, +HWTSTAMP_TX_ONESTEP_P2P = 3, +__HWTSTAMP_TX_CNT = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_rx_filters { +HWTSTAMP_FILTER_NONE = 0, +HWTSTAMP_FILTER_ALL = 1, +HWTSTAMP_FILTER_SOME = 2, +HWTSTAMP_FILTER_PTP_V1_L4_EVENT = 3, +HWTSTAMP_FILTER_PTP_V1_L4_SYNC = 4, +HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ = 5, +HWTSTAMP_FILTER_PTP_V2_L4_EVENT = 6, +HWTSTAMP_FILTER_PTP_V2_L4_SYNC = 7, +HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ = 8, +HWTSTAMP_FILTER_PTP_V2_L2_EVENT = 9, +HWTSTAMP_FILTER_PTP_V2_L2_SYNC = 10, +HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ = 11, +HWTSTAMP_FILTER_PTP_V2_EVENT = 12, +HWTSTAMP_FILTER_PTP_V2_SYNC = 13, +HWTSTAMP_FILTER_PTP_V2_DELAY_REQ = 14, +HWTSTAMP_FILTER_NTP_ALL = 15, +__HWTSTAMP_FILTER_CNT = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum txtime_flags { +SOF_TXTIME_DEADLINE_MODE = 1, +SOF_TXTIME_REPORT_ERRORS = 2, +SOF_TXTIME_FLAGS_MASK = 3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __vector128__bindgen_ty_1 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1, +pub u: [__u32; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __kernel_sockaddr_storage__bindgen_ty_1 { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, +pub __align: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union iphdr__bindgen_ty_1 { +pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, +pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union in6_addr__bindgen_ty_1 { +pub u6_addr8: [__u8; 16usize], +pub u6_addr16: [__be16; 8usize], +pub u6_addr32: [__be32; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ipv6hdr__bindgen_ty_1 { +pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, +pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tcp_word_hdr { +pub hdr: tcphdr, +pub words: [__be32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union if_settings__bindgen_ty_1 { +pub raw_hdlc: *mut raw_hdlc_proto, +pub cisco: *mut cisco_proto, +pub fr: *mut fr_proto, +pub fr_pvc: *mut fr_proto_pvc, +pub fr_pvc_info: *mut fr_proto_pvc_info, +pub x25: *mut x25_hdlc_proto, +pub sync: *mut sync_serial_settings, +pub te1: *mut te1_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_1 { +pub ifrn_name: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_2 { +pub ifru_addr: sockaddr, +pub ifru_dstaddr: sockaddr, +pub ifru_broadaddr: sockaddr, +pub ifru_netmask: sockaddr, +pub ifru_hwaddr: sockaddr, +pub ifru_flags: crate::ctypes::c_short, +pub ifru_ivalue: crate::ctypes::c_int, +pub ifru_mtu: crate::ctypes::c_int, +pub ifru_map: ifmap, +pub ifru_slave: [crate::ctypes::c_char; 16usize], +pub ifru_newname: [crate::ctypes::c_char; 16usize], +pub ifru_data: *mut crate::ctypes::c_void, +pub ifru_settings: if_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifconf__bindgen_ty_1 { +pub ifcu_buf: *mut crate::ctypes::c_char, +pub ifcu_req: *mut ifreq, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union nf_inet_addr { +pub all: [__u32; 4usize], +pub ip: __be32, +pub ip6: [__be32; 4usize], +pub in_: in_addr, +pub in6: in6_addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union xt_entry_match__bindgen_ty_1 { +pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1, +pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2, +pub match_size: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union xt_entry_target__bindgen_ty_1 { +pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1, +pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2, +pub target_size: __u16, +} +impl __BindgenBitfieldUnit { +#[inline] +pub const fn new(storage: Storage) -> Self { +Self { storage } +} +} +impl __BindgenBitfieldUnit +where +Storage: AsRef<[u8]> + AsMut<[u8]>, +{ +#[inline] +fn extract_bit(byte: u8, index: usize) -> bool { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +byte & mask == mask +} +#[inline] +pub fn get_bit(&self, index: usize) -> bool { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = self.storage.as_ref()[byte_index]; +Self::extract_bit(byte, index) +} +#[inline] +pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; +Self::extract_bit(byte, index) +} +#[inline] +fn change_bit(byte: u8, index: usize, val: bool) -> u8 { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +if val { +byte | mask +} else { +byte & !mask +} +} +#[inline] +pub fn set_bit(&mut self, index: usize, val: bool) { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = &mut self.storage.as_mut()[byte_index]; +*byte = Self::change_bit(*byte, index, val); +} +#[inline] +pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; +} +#[inline] +pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if self.get_bit(i + bit_offset) { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +self.set_bit(index + bit_offset, val_bit_is_set); +} +} +#[inline] +pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +} +} +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl __BindgenUnionField { +#[inline] +pub const fn new() -> Self { +__BindgenUnionField(::core::marker::PhantomData) +} +#[inline] +pub unsafe fn as_ref(&self) -> &T { +::core::mem::transmute(self) +} +#[inline] +pub unsafe fn as_mut(&mut self) -> &mut T { +::core::mem::transmute(self) +} +} +impl ::core::default::Default for __BindgenUnionField { +#[inline] +fn default() -> Self { +Self::new() +} +} +impl ::core::clone::Clone for __BindgenUnionField { +#[inline] +fn clone(&self) -> Self { +*self +} +} +impl ::core::marker::Copy for __BindgenUnionField {} +impl ::core::fmt::Debug for __BindgenUnionField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__BindgenUnionField") +} +} +impl ::core::hash::Hash for __BindgenUnionField { +fn hash(&self, _state: &mut H) {} +} +impl ::core::cmp::PartialEq for __BindgenUnionField { +fn eq(&self, _other: &__BindgenUnionField) -> bool { +true +} +} +impl ::core::cmp::Eq for __BindgenUnionField {} +impl iphdr { +#[inline] +pub fn version(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +} +#[inline] +pub fn set_version(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn version_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +} +} +#[inline] +pub fn ihl(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +} +#[inline] +pub fn set_ihl(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn ihl_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(version: __u8, ihl: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 4u8, { +let version: u8 = unsafe { ::core::mem::transmute(version) }; +version as u64 +}); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; +ihl as u64 +}); +__bindgen_bitfield_unit +} +} +impl ipv6hdr { +#[inline] +pub fn version(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +} +#[inline] +pub fn set_version(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn version_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +} +} +#[inline] +pub fn priority(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +} +#[inline] +pub fn set_priority(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn priority_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(version: __u8, priority: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 4u8, { +let version: u8 = unsafe { ::core::mem::transmute(version) }; +version as u64 +}); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let priority: u8 = unsafe { ::core::mem::transmute(priority) }; +priority as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcphdr { +#[inline] +pub fn doff(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } +} +#[inline] +pub fn set_doff(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn doff_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u16) } +} +#[inline] +pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +} +} +#[inline] +pub fn res1(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 3u8) as u16) } +} +#[inline] +pub fn set_res1(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 3u8, val as u64) +} +} +#[inline] +pub unsafe fn res1_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 3u8) as u16) } +} +#[inline] +pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 3u8, val as u64) +} +} +#[inline] +pub fn ae(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u16) } +} +#[inline] +pub fn set_ae(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(7usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ae_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 7usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 7usize, 1u8, val as u64) +} +} +#[inline] +pub fn cwr(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +} +#[inline] +pub fn set_cwr(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(8usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn cwr_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +} +} +#[inline] +pub fn ece(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +} +#[inline] +pub fn set_ece(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(9usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ece_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +} +} +#[inline] +pub fn urg(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +} +#[inline] +pub fn set_urg(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(10usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn urg_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +} +} +#[inline] +pub fn ack(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +} +#[inline] +pub fn set_ack(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(11usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ack_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +} +} +#[inline] +pub fn psh(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +} +#[inline] +pub fn set_psh(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(12usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn psh_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +} +} +#[inline] +pub fn rst(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +} +#[inline] +pub fn set_rst(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(13usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn rst_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +} +} +#[inline] +pub fn syn(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +} +#[inline] +pub fn set_syn(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(14usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn syn_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +} +} +#[inline] +pub fn fin(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +} +#[inline] +pub fn set_fin(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(15usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn fin_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(doff: __u16, res1: __u16, ae: __u16, cwr: __u16, ece: __u16, urg: __u16, ack: __u16, psh: __u16, rst: __u16, syn: __u16, fin: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 4u8, { +let doff: u16 = unsafe { ::core::mem::transmute(doff) }; +doff as u64 +}); +__bindgen_bitfield_unit.set(4usize, 3u8, { +let res1: u16 = unsafe { ::core::mem::transmute(res1) }; +res1 as u64 +}); +__bindgen_bitfield_unit.set(7usize, 1u8, { +let ae: u16 = unsafe { ::core::mem::transmute(ae) }; +ae as u64 +}); +__bindgen_bitfield_unit.set(8usize, 1u8, { +let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; +cwr as u64 +}); +__bindgen_bitfield_unit.set(9usize, 1u8, { +let ece: u16 = unsafe { ::core::mem::transmute(ece) }; +ece as u64 +}); +__bindgen_bitfield_unit.set(10usize, 1u8, { +let urg: u16 = unsafe { ::core::mem::transmute(urg) }; +urg as u64 +}); +__bindgen_bitfield_unit.set(11usize, 1u8, { +let ack: u16 = unsafe { ::core::mem::transmute(ack) }; +ack as u64 +}); +__bindgen_bitfield_unit.set(12usize, 1u8, { +let psh: u16 = unsafe { ::core::mem::transmute(psh) }; +psh as u64 +}); +__bindgen_bitfield_unit.set(13usize, 1u8, { +let rst: u16 = unsafe { ::core::mem::transmute(rst) }; +rst as u64 +}); +__bindgen_bitfield_unit.set(14usize, 1u8, { +let syn: u16 = unsafe { ::core::mem::transmute(syn) }; +syn as u64 +}); +__bindgen_bitfield_unit.set(15usize, 1u8, { +let fin: u16 = unsafe { ::core::mem::transmute(fin) }; +fin as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_info { +#[inline] +pub fn tcpi_snd_wscale(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +} +#[inline] +pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +} +} +#[inline] +pub fn tcpi_rcv_wscale(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +} +#[inline] +pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +} +#[inline] +pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(8usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +} +} +#[inline] +pub fn tcpi_fastopen_client_fail(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +} +#[inline] +pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(9usize, 2u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 4u8, { +let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; +tcpi_snd_wscale as u64 +}); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; +tcpi_rcv_wscale as u64 +}); +__bindgen_bitfield_unit.set(8usize, 1u8, { +let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; +tcpi_delivery_rate_app_limited as u64 +}); +__bindgen_bitfield_unit.set(9usize, 2u8, { +let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; +tcpi_fastopen_client_fail as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_add { +#[inline] +pub fn set_current(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_current(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_current_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_rnext(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_rnext(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 30u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; +set_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; +set_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 30u8, { +let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_del { +#[inline] +pub fn set_current(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_current(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_current_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_rnext(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_rnext(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn del_async(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +} +#[inline] +pub fn set_del_async(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn del_async_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 29u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; +set_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; +set_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 1u8, { +let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; +del_async as u64 +}); +__bindgen_bitfield_unit.set(3usize, 29u8, { +let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_info_opt { +#[inline] +pub fn set_current(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_current(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_current_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_rnext(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_rnext(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn ao_required(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +} +#[inline] +pub fn set_ao_required(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_counters(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_counters(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +} +} +#[inline] +pub fn accept_icmps(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +} +#[inline] +pub fn set_accept_icmps(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(5usize, 27u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; +set_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; +set_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 1u8, { +let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; +ao_required as u64 +}); +__bindgen_bitfield_unit.set(3usize, 1u8, { +let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; +set_counters as u64 +}); +__bindgen_bitfield_unit.set(4usize, 1u8, { +let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; +accept_icmps as u64 +}); +__bindgen_bitfield_unit.set(5usize, 27u8, { +let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_getsockopt { +#[inline] +pub fn is_current(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +} +#[inline] +pub fn set_is_current(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn is_current_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn is_rnext(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +} +#[inline] +pub fn set_is_rnext(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn get_all(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +} +#[inline] +pub fn set_get_all(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn get_all_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 13u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; +is_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; +is_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 1u8, { +let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; +get_all as u64 +}); +__bindgen_bitfield_unit.set(3usize, 13u8, { +let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl nf_inet_hooks { +pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS; +} +impl nf_ip_hook_priorities { +pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM; +} +impl hwtstamp_flags { +pub const HWTSTAMP_FLAG_LAST: hwtstamp_flags = hwtstamp_flags::HWTSTAMP_FLAG_BONDED_PHC_INDEX; +} +impl hwtstamp_flags { +pub const HWTSTAMP_FLAG_MASK: hwtstamp_flags = hwtstamp_flags::HWTSTAMP_FLAG_BONDED_PHC_INDEX; +} +impl txtime_flags { +pub const SOF_TXTIME_FLAGS_LAST: txtime_flags = txtime_flags::SOF_TXTIME_REPORT_ERRORS; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/netlink.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/netlink.rs new file mode 100644 index 0000000000000000000000000000000000000000..76738af19734b76ea836e6eca1ee7ea442d81ce1 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/netlink.rs @@ -0,0 +1,5481 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __kernel_sa_family_t = crate::ctypes::c_ushort; +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type addr_t = crate::ctypes::c_ulong; +pub type saddr_t = crate::ctypes::c_long; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_ulong; +pub type __kernel_ssize_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_ino_t = crate::ctypes::c_uint; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_sigset_t = crate::ctypes::c_ulong; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __kernel_sockaddr_storage { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { +pub ss_family: __kernel_sa_family_t, +pub __data: [crate::ctypes::c_char; 126usize], +} +#[repr(C, packed(4))] +#[derive(Copy, Clone)] +pub struct __vector128 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __vector128__bindgen_ty_1__bindgen_ty_1 { +pub high: __u64, +pub low: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_nl { +pub nl_family: __kernel_sa_family_t, +pub nl_pad: crate::ctypes::c_ushort, +pub nl_pid: __u32, +pub nl_groups: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsghdr { +pub nlmsg_len: __u32, +pub nlmsg_type: __u16, +pub nlmsg_flags: __u16, +pub nlmsg_seq: __u32, +pub nlmsg_pid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsgerr { +pub error: crate::ctypes::c_int, +pub msg: nlmsghdr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_pktinfo { +pub group: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_req { +pub nm_block_size: crate::ctypes::c_uint, +pub nm_block_nr: crate::ctypes::c_uint, +pub nm_frame_size: crate::ctypes::c_uint, +pub nm_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_hdr { +pub nm_status: crate::ctypes::c_uint, +pub nm_len: crate::ctypes::c_uint, +pub nm_group: __u32, +pub nm_pid: __u32, +pub nm_uid: __u32, +pub nm_gid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlattr { +pub nla_len: __u16, +pub nla_type: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nla_bitfield32 { +pub value: __u32, +pub selector: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_sta_flag_update { +pub mask: __u32, +pub set: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_vht { +pub mcs: [__u16; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_he { +pub mcs: [__u16; 8usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_pattern_support { +pub max_patterns: __u32, +pub min_pattern_len: __u32, +pub max_pattern_len: __u32, +pub max_pkt_offset: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_wowlan_tcp_data_seq { +pub start: __u32, +pub offset: __u32, +pub len: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct nl80211_wowlan_tcp_data_token { +pub offset: __u32, +pub len: __u32, +pub token_stream: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_wowlan_tcp_data_token_feature { +pub min_len: __u32, +pub max_len: __u32, +pub bufsize: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_coalesce_rule_support { +pub max_rules: __u32, +pub pat: nl80211_pattern_support, +pub max_delay: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_vendor_cmd_info { +pub vendor_id: __u32, +pub subcmd: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_bss_select_rssi_adjust { +pub band: __u8, +pub delta: __s8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats { +pub rx_packets: __u32, +pub tx_packets: __u32, +pub rx_bytes: __u32, +pub tx_bytes: __u32, +pub rx_errors: __u32, +pub tx_errors: __u32, +pub rx_dropped: __u32, +pub tx_dropped: __u32, +pub multicast: __u32, +pub collisions: __u32, +pub rx_length_errors: __u32, +pub rx_over_errors: __u32, +pub rx_crc_errors: __u32, +pub rx_frame_errors: __u32, +pub rx_fifo_errors: __u32, +pub rx_missed_errors: __u32, +pub tx_aborted_errors: __u32, +pub tx_carrier_errors: __u32, +pub tx_fifo_errors: __u32, +pub tx_heartbeat_errors: __u32, +pub tx_window_errors: __u32, +pub rx_compressed: __u32, +pub tx_compressed: __u32, +pub rx_nohandler: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +pub collisions: __u64, +pub rx_length_errors: __u64, +pub rx_over_errors: __u64, +pub rx_crc_errors: __u64, +pub rx_frame_errors: __u64, +pub rx_fifo_errors: __u64, +pub rx_missed_errors: __u64, +pub tx_aborted_errors: __u64, +pub tx_carrier_errors: __u64, +pub tx_fifo_errors: __u64, +pub tx_heartbeat_errors: __u64, +pub tx_window_errors: __u64, +pub rx_compressed: __u64, +pub tx_compressed: __u64, +pub rx_nohandler: __u64, +pub rx_otherhost_dropped: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_hw_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_ifmap { +pub mem_start: __u64, +pub mem_end: __u64, +pub base_addr: __u64, +pub irq: __u16, +pub dma: __u8, +pub port: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_bridge_id { +pub prio: [__u8; 2usize], +pub addr: [__u8; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_cacheinfo { +pub max_reasm_len: __u32, +pub tstamp: __u32, +pub reachable_time: __u32, +pub retrans_time: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_qos_mapping { +pub from: __u32, +pub to: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tunnel_msg { +pub family: __u8, +pub flags: __u8, +pub reserved2: __u16, +pub ifindex: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vxlan_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_geneve_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_mac { +pub vf: __u32, +pub mac: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_broadcast { +pub broadcast: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan_info { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +pub vlan_proto: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_tx_rate { +pub vf: __u32, +pub rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rate { +pub vf: __u32, +pub min_tx_rate: __u32, +pub max_tx_rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_spoofchk { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_guid { +pub vf: __u32, +pub guid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_link_state { +pub vf: __u32, +pub link_state: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rss_query_en { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_trust { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_port_vsi { +pub vsi_mgr_id: __u8, +pub vsi_type_id: [__u8; 3usize], +pub vsi_type_version: __u8, +pub pad: [__u8; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct if_stats_msg { +pub family: __u8, +pub pad1: __u8, +pub pad2: __u16, +pub ifindex: __u32, +pub filter_mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_rmnet_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifaddrmsg { +pub ifa_family: __u8, +pub ifa_prefixlen: __u8, +pub ifa_flags: __u8, +pub ifa_scope: __u8, +pub ifa_index: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifa_cacheinfo { +pub ifa_prefered: __u32, +pub ifa_valid: __u32, +pub cstamp: __u32, +pub tstamp: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ndmsg { +pub ndm_family: __u8, +pub ndm_pad1: __u8, +pub ndm_pad2: __u16, +pub ndm_ifindex: __s32, +pub ndm_state: __u16, +pub ndm_flags: __u8, +pub ndm_type: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nda_cacheinfo { +pub ndm_confirmed: __u32, +pub ndm_used: __u32, +pub ndm_updated: __u32, +pub ndm_refcnt: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ndt_stats { +pub ndts_allocs: __u64, +pub ndts_destroys: __u64, +pub ndts_hash_grows: __u64, +pub ndts_res_failed: __u64, +pub ndts_lookups: __u64, +pub ndts_hits: __u64, +pub ndts_rcv_probes_mcast: __u64, +pub ndts_rcv_probes_ucast: __u64, +pub ndts_periodic_gc_runs: __u64, +pub ndts_forced_gc_runs: __u64, +pub ndts_table_fulls: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ndtmsg { +pub ndtm_family: __u8, +pub ndtm_pad1: __u8, +pub ndtm_pad2: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ndt_config { +pub ndtc_key_len: __u16, +pub ndtc_entry_size: __u16, +pub ndtc_entries: __u32, +pub ndtc_last_flush: __u32, +pub ndtc_last_rand: __u32, +pub ndtc_hash_rnd: __u32, +pub ndtc_hash_mask: __u32, +pub ndtc_hash_chain_gc: __u32, +pub ndtc_proxy_qlen: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtattr { +pub rta_len: crate::ctypes::c_ushort, +pub rta_type: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtmsg { +pub rtm_family: crate::ctypes::c_uchar, +pub rtm_dst_len: crate::ctypes::c_uchar, +pub rtm_src_len: crate::ctypes::c_uchar, +pub rtm_tos: crate::ctypes::c_uchar, +pub rtm_table: crate::ctypes::c_uchar, +pub rtm_protocol: crate::ctypes::c_uchar, +pub rtm_scope: crate::ctypes::c_uchar, +pub rtm_type: crate::ctypes::c_uchar, +pub rtm_flags: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnexthop { +pub rtnh_len: crate::ctypes::c_ushort, +pub rtnh_flags: crate::ctypes::c_uchar, +pub rtnh_hops: crate::ctypes::c_uchar, +pub rtnh_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug)] +pub struct rtvia { +pub rtvia_family: __kernel_sa_family_t, +pub rtvia_addr: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rta_cacheinfo { +pub rta_clntref: __u32, +pub rta_lastuse: __u32, +pub rta_expires: __s32, +pub rta_error: __u32, +pub rta_used: __u32, +pub rta_id: __u32, +pub rta_ts: __u32, +pub rta_tsage: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct rta_session { +pub proto: __u8, +pub pad1: __u8, +pub pad2: __u16, +pub u: rta_session__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rta_session__bindgen_ty_1__bindgen_ty_1 { +pub sport: __u16, +pub dport: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rta_session__bindgen_ty_1__bindgen_ty_2 { +pub type_: __u8, +pub code: __u8, +pub ident: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rta_mfc_stats { +pub mfcs_packets: __u64, +pub mfcs_bytes: __u64, +pub mfcs_wrong_if: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtgenmsg { +pub rtgen_family: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifinfomsg { +pub ifi_family: crate::ctypes::c_uchar, +pub __ifi_pad: crate::ctypes::c_uchar, +pub ifi_type: crate::ctypes::c_ushort, +pub ifi_index: crate::ctypes::c_int, +pub ifi_flags: crate::ctypes::c_uint, +pub ifi_change: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct prefixmsg { +pub prefix_family: crate::ctypes::c_uchar, +pub prefix_pad1: crate::ctypes::c_uchar, +pub prefix_pad2: crate::ctypes::c_ushort, +pub prefix_ifindex: crate::ctypes::c_int, +pub prefix_type: crate::ctypes::c_uchar, +pub prefix_len: crate::ctypes::c_uchar, +pub prefix_flags: crate::ctypes::c_uchar, +pub prefix_pad3: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct prefix_cacheinfo { +pub preferred_time: __u32, +pub valid_time: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcmsg { +pub tcm_family: crate::ctypes::c_uchar, +pub tcm__pad1: crate::ctypes::c_uchar, +pub tcm__pad2: crate::ctypes::c_ushort, +pub tcm_ifindex: crate::ctypes::c_int, +pub tcm_handle: __u32, +pub tcm_parent: __u32, +pub tcm_info: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nduseroptmsg { +pub nduseropt_family: crate::ctypes::c_uchar, +pub nduseropt_pad1: crate::ctypes::c_uchar, +pub nduseropt_opts_len: crate::ctypes::c_ushort, +pub nduseropt_ifindex: crate::ctypes::c_int, +pub nduseropt_icmp_type: __u8, +pub nduseropt_icmp_code: __u8, +pub nduseropt_pad2: crate::ctypes::c_ushort, +pub nduseropt_pad3: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcamsg { +pub tca_family: crate::ctypes::c_uchar, +pub tca__pad1: crate::ctypes::c_uchar, +pub tca__pad2: crate::ctypes::c_ushort, +} +pub const _K_SS_MAXSIZE: u32 = 128; +pub const SOCK_SNDBUF_LOCK: u32 = 1; +pub const SOCK_RCVBUF_LOCK: u32 = 2; +pub const SOCK_BUF_LOCK_MASK: u32 = 3; +pub const SOCK_TXREHASH_DEFAULT: u32 = 255; +pub const SOCK_TXREHASH_DISABLED: u32 = 0; +pub const SOCK_TXREHASH_ENABLED: u32 = 1; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const NETLINK_ROUTE: u32 = 0; +pub const NETLINK_UNUSED: u32 = 1; +pub const NETLINK_USERSOCK: u32 = 2; +pub const NETLINK_FIREWALL: u32 = 3; +pub const NETLINK_SOCK_DIAG: u32 = 4; +pub const NETLINK_NFLOG: u32 = 5; +pub const NETLINK_XFRM: u32 = 6; +pub const NETLINK_SELINUX: u32 = 7; +pub const NETLINK_ISCSI: u32 = 8; +pub const NETLINK_AUDIT: u32 = 9; +pub const NETLINK_FIB_LOOKUP: u32 = 10; +pub const NETLINK_CONNECTOR: u32 = 11; +pub const NETLINK_NETFILTER: u32 = 12; +pub const NETLINK_IP6_FW: u32 = 13; +pub const NETLINK_DNRTMSG: u32 = 14; +pub const NETLINK_KOBJECT_UEVENT: u32 = 15; +pub const NETLINK_GENERIC: u32 = 16; +pub const NETLINK_SCSITRANSPORT: u32 = 18; +pub const NETLINK_ECRYPTFS: u32 = 19; +pub const NETLINK_RDMA: u32 = 20; +pub const NETLINK_CRYPTO: u32 = 21; +pub const NETLINK_SMC: u32 = 22; +pub const NETLINK_INET_DIAG: u32 = 4; +pub const MAX_LINKS: u32 = 32; +pub const NLM_F_REQUEST: u32 = 1; +pub const NLM_F_MULTI: u32 = 2; +pub const NLM_F_ACK: u32 = 4; +pub const NLM_F_ECHO: u32 = 8; +pub const NLM_F_DUMP_INTR: u32 = 16; +pub const NLM_F_DUMP_FILTERED: u32 = 32; +pub const NLM_F_ROOT: u32 = 256; +pub const NLM_F_MATCH: u32 = 512; +pub const NLM_F_ATOMIC: u32 = 1024; +pub const NLM_F_DUMP: u32 = 768; +pub const NLM_F_REPLACE: u32 = 256; +pub const NLM_F_EXCL: u32 = 512; +pub const NLM_F_CREATE: u32 = 1024; +pub const NLM_F_APPEND: u32 = 2048; +pub const NLM_F_NONREC: u32 = 256; +pub const NLM_F_BULK: u32 = 512; +pub const NLM_F_CAPPED: u32 = 256; +pub const NLM_F_ACK_TLVS: u32 = 512; +pub const NLMSG_ALIGNTO: u32 = 4; +pub const NLMSG_NOOP: u32 = 1; +pub const NLMSG_ERROR: u32 = 2; +pub const NLMSG_DONE: u32 = 3; +pub const NLMSG_OVERRUN: u32 = 4; +pub const NLMSG_MIN_TYPE: u32 = 16; +pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; +pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; +pub const NETLINK_PKTINFO: u32 = 3; +pub const NETLINK_BROADCAST_ERROR: u32 = 4; +pub const NETLINK_NO_ENOBUFS: u32 = 5; +pub const NETLINK_RX_RING: u32 = 6; +pub const NETLINK_TX_RING: u32 = 7; +pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; +pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; +pub const NETLINK_CAP_ACK: u32 = 10; +pub const NETLINK_EXT_ACK: u32 = 11; +pub const NETLINK_GET_STRICT_CHK: u32 = 12; +pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; +pub const NET_MAJOR: u32 = 36; +pub const NLA_F_NESTED: u32 = 32768; +pub const NLA_F_NET_BYTEORDER: u32 = 16384; +pub const NLA_TYPE_MASK: i32 = -49153; +pub const NLA_ALIGNTO: u32 = 4; +pub const NL80211_GENL_NAME: &[u8; 8] = b"nl80211\0"; +pub const NL80211_MULTICAST_GROUP_CONFIG: &[u8; 7] = b"config\0"; +pub const NL80211_MULTICAST_GROUP_SCAN: &[u8; 5] = b"scan\0"; +pub const NL80211_MULTICAST_GROUP_REG: &[u8; 11] = b"regulatory\0"; +pub const NL80211_MULTICAST_GROUP_MLME: &[u8; 5] = b"mlme\0"; +pub const NL80211_MULTICAST_GROUP_VENDOR: &[u8; 7] = b"vendor\0"; +pub const NL80211_MULTICAST_GROUP_NAN: &[u8; 4] = b"nan\0"; +pub const NL80211_MULTICAST_GROUP_TESTMODE: &[u8; 9] = b"testmode\0"; +pub const NL80211_EDMG_BW_CONFIG_MIN: u32 = 4; +pub const NL80211_EDMG_BW_CONFIG_MAX: u32 = 15; +pub const NL80211_EDMG_CHANNELS_MIN: u32 = 1; +pub const NL80211_EDMG_CHANNELS_MAX: u32 = 60; +pub const NL80211_WIPHY_NAME_MAXLEN: u32 = 64; +pub const NL80211_MAX_SUPP_RATES: u32 = 32; +pub const NL80211_MAX_SUPP_SELECTORS: u32 = 128; +pub const NL80211_MAX_SUPP_HT_RATES: u32 = 77; +pub const NL80211_MAX_SUPP_REG_RULES: u32 = 128; +pub const NL80211_TKIP_DATA_OFFSET_ENCR_KEY: u32 = 0; +pub const NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY: u32 = 16; +pub const NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY: u32 = 24; +pub const NL80211_HT_CAPABILITY_LEN: u32 = 26; +pub const NL80211_VHT_CAPABILITY_LEN: u32 = 12; +pub const NL80211_HE_MIN_CAPABILITY_LEN: u32 = 16; +pub const NL80211_HE_MAX_CAPABILITY_LEN: u32 = 54; +pub const NL80211_MAX_NR_CIPHER_SUITES: u32 = 5; +pub const NL80211_MAX_NR_AKM_SUITES: u32 = 2; +pub const NL80211_EHT_MIN_CAPABILITY_LEN: u32 = 13; +pub const NL80211_EHT_MAX_CAPABILITY_LEN: u32 = 51; +pub const NL80211_MIN_REMAIN_ON_CHANNEL_TIME: u32 = 10; +pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; +pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; +pub const NL80211_VHT_NSS_MAX: u32 = 8; +pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_KCK_LEN: u32 = 16; +pub const NL80211_KEK_LEN: u32 = 16; +pub const NL80211_KCK_EXT_LEN: u32 = 24; +pub const NL80211_KEK_EXT_LEN: u32 = 32; +pub const NL80211_KCK_EXT_LEN_32: u32 = 32; +pub const NL80211_REPLAY_CTR_LEN: u32 = 8; +pub const NL80211_CRIT_PROTO_MAX_DURATION: u32 = 5000; +pub const NL80211_VENDOR_ID_IS_LINUX: u32 = 2147483648; +pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; +pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; +pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; +pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; +pub const MACVLAN_FLAG_NODST: u32 = 2; +pub const IPVLAN_F_PRIVATE: u32 = 1; +pub const IPVLAN_F_VEPA: u32 = 2; +pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; +pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; +pub const MAX_VLAN_LIST_LEN: u32 = 1; +pub const PORT_PROFILE_MAX: u32 = 40; +pub const PORT_UUID_MAX: u32 = 16; +pub const PORT_SELF_VF: i32 = -1; +pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; +pub const XDP_FLAGS_SKB_MODE: u32 = 2; +pub const XDP_FLAGS_DRV_MODE: u32 = 4; +pub const XDP_FLAGS_HW_MODE: u32 = 8; +pub const XDP_FLAGS_REPLACE: u32 = 16; +pub const XDP_FLAGS_MODES: u32 = 14; +pub const XDP_FLAGS_MASK: u32 = 31; +pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; +pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; +pub const IFA_F_SECONDARY: u32 = 1; +pub const IFA_F_TEMPORARY: u32 = 1; +pub const IFA_F_NODAD: u32 = 2; +pub const IFA_F_OPTIMISTIC: u32 = 4; +pub const IFA_F_DADFAILED: u32 = 8; +pub const IFA_F_HOMEADDRESS: u32 = 16; +pub const IFA_F_DEPRECATED: u32 = 32; +pub const IFA_F_TENTATIVE: u32 = 64; +pub const IFA_F_PERMANENT: u32 = 128; +pub const IFA_F_MANAGETEMPADDR: u32 = 256; +pub const IFA_F_NOPREFIXROUTE: u32 = 512; +pub const IFA_F_MCAUTOJOIN: u32 = 1024; +pub const IFA_F_STABLE_PRIVACY: u32 = 2048; +pub const IFAPROT_UNSPEC: u32 = 0; +pub const IFAPROT_KERNEL_LO: u32 = 1; +pub const IFAPROT_KERNEL_RA: u32 = 2; +pub const IFAPROT_KERNEL_LL: u32 = 3; +pub const NTF_USE: u32 = 1; +pub const NTF_SELF: u32 = 2; +pub const NTF_MASTER: u32 = 4; +pub const NTF_PROXY: u32 = 8; +pub const NTF_EXT_LEARNED: u32 = 16; +pub const NTF_OFFLOADED: u32 = 32; +pub const NTF_STICKY: u32 = 64; +pub const NTF_ROUTER: u32 = 128; +pub const NTF_EXT_MANAGED: u32 = 1; +pub const NTF_EXT_LOCKED: u32 = 2; +pub const NUD_INCOMPLETE: u32 = 1; +pub const NUD_REACHABLE: u32 = 2; +pub const NUD_STALE: u32 = 4; +pub const NUD_DELAY: u32 = 8; +pub const NUD_PROBE: u32 = 16; +pub const NUD_FAILED: u32 = 32; +pub const NUD_NOARP: u32 = 64; +pub const NUD_PERMANENT: u32 = 128; +pub const NUD_NONE: u32 = 0; +pub const RTNL_FAMILY_IPMR: u32 = 128; +pub const RTNL_FAMILY_IP6MR: u32 = 129; +pub const RTNL_FAMILY_MAX: u32 = 129; +pub const RTA_ALIGNTO: u32 = 4; +pub const RTPROT_UNSPEC: u32 = 0; +pub const RTPROT_REDIRECT: u32 = 1; +pub const RTPROT_KERNEL: u32 = 2; +pub const RTPROT_BOOT: u32 = 3; +pub const RTPROT_STATIC: u32 = 4; +pub const RTPROT_GATED: u32 = 8; +pub const RTPROT_RA: u32 = 9; +pub const RTPROT_MRT: u32 = 10; +pub const RTPROT_ZEBRA: u32 = 11; +pub const RTPROT_BIRD: u32 = 12; +pub const RTPROT_DNROUTED: u32 = 13; +pub const RTPROT_XORP: u32 = 14; +pub const RTPROT_NTK: u32 = 15; +pub const RTPROT_DHCP: u32 = 16; +pub const RTPROT_MROUTED: u32 = 17; +pub const RTPROT_KEEPALIVED: u32 = 18; +pub const RTPROT_BABEL: u32 = 42; +pub const RTPROT_OVN: u32 = 84; +pub const RTPROT_OPENR: u32 = 99; +pub const RTPROT_BGP: u32 = 186; +pub const RTPROT_ISIS: u32 = 187; +pub const RTPROT_OSPF: u32 = 188; +pub const RTPROT_RIP: u32 = 189; +pub const RTPROT_EIGRP: u32 = 192; +pub const RTM_F_NOTIFY: u32 = 256; +pub const RTM_F_CLONED: u32 = 512; +pub const RTM_F_EQUALIZE: u32 = 1024; +pub const RTM_F_PREFIX: u32 = 2048; +pub const RTM_F_LOOKUP_TABLE: u32 = 4096; +pub const RTM_F_FIB_MATCH: u32 = 8192; +pub const RTM_F_OFFLOAD: u32 = 16384; +pub const RTM_F_TRAP: u32 = 32768; +pub const RTM_F_OFFLOAD_FAILED: u32 = 536870912; +pub const RTNH_F_DEAD: u32 = 1; +pub const RTNH_F_PERVASIVE: u32 = 2; +pub const RTNH_F_ONLINK: u32 = 4; +pub const RTNH_F_OFFLOAD: u32 = 8; +pub const RTNH_F_LINKDOWN: u32 = 16; +pub const RTNH_F_UNRESOLVED: u32 = 32; +pub const RTNH_F_TRAP: u32 = 64; +pub const RTNH_COMPARE_MASK: u32 = 89; +pub const RTNH_ALIGNTO: u32 = 4; +pub const RTNETLINK_HAVE_PEERINFO: u32 = 1; +pub const RTAX_FEATURE_ECN: u32 = 1; +pub const RTAX_FEATURE_SACK: u32 = 2; +pub const RTAX_FEATURE_TIMESTAMP: u32 = 4; +pub const RTAX_FEATURE_ALLFRAG: u32 = 8; +pub const RTAX_FEATURE_TCP_USEC_TS: u32 = 16; +pub const RTAX_FEATURE_MASK: u32 = 31; +pub const TCM_IFINDEX_MAGIC_BLOCK: u32 = 4294967295; +pub const TCA_DUMP_FLAGS_TERSE: u32 = 1; +pub const RTMGRP_LINK: u32 = 1; +pub const RTMGRP_NOTIFY: u32 = 2; +pub const RTMGRP_NEIGH: u32 = 4; +pub const RTMGRP_TC: u32 = 8; +pub const RTMGRP_IPV4_IFADDR: u32 = 16; +pub const RTMGRP_IPV4_MROUTE: u32 = 32; +pub const RTMGRP_IPV4_ROUTE: u32 = 64; +pub const RTMGRP_IPV4_RULE: u32 = 128; +pub const RTMGRP_IPV6_IFADDR: u32 = 256; +pub const RTMGRP_IPV6_MROUTE: u32 = 512; +pub const RTMGRP_IPV6_ROUTE: u32 = 1024; +pub const RTMGRP_IPV6_IFINFO: u32 = 2048; +pub const RTMGRP_DECnet_IFADDR: u32 = 4096; +pub const RTMGRP_DECnet_ROUTE: u32 = 16384; +pub const RTMGRP_IPV6_PREFIX: u32 = 131072; +pub const TCA_FLAG_LARGE_DUMP_ON: u32 = 1; +pub const TCA_ACT_FLAG_LARGE_DUMP_ON: u32 = 1; +pub const TCA_ACT_FLAG_TERSE_DUMP: u32 = 2; +pub const RTEXT_FILTER_VF: u32 = 1; +pub const RTEXT_FILTER_BRVLAN: u32 = 2; +pub const RTEXT_FILTER_BRVLAN_COMPRESSED: u32 = 4; +pub const RTEXT_FILTER_SKIP_STATS: u32 = 8; +pub const RTEXT_FILTER_MRP: u32 = 16; +pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; +pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; +pub const RTEXT_FILTER_MST: u32 = 128; +pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED; +pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED; +pub const IFLA_UNSPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_UNSPEC; +pub const IFLA_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ADDRESS; +pub const IFLA_BROADCAST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_BROADCAST; +pub const IFLA_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFNAME; +pub const IFLA_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MTU; +pub const IFLA_LINK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK; +pub const IFLA_QDISC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_QDISC; +pub const IFLA_STATS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS; +pub const IFLA_COST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_COST; +pub const IFLA_PRIORITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PRIORITY; +pub const IFLA_MASTER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MASTER; +pub const IFLA_WIRELESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WIRELESS; +pub const IFLA_PROTINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTINFO; +pub const IFLA_TXQLEN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TXQLEN; +pub const IFLA_MAP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAP; +pub const IFLA_WEIGHT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WEIGHT; +pub const IFLA_OPERSTATE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_OPERSTATE; +pub const IFLA_LINKMODE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKMODE; +pub const IFLA_LINKINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKINFO; +pub const IFLA_NET_NS_PID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_PID; +pub const IFLA_IFALIAS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFALIAS; +pub const IFLA_NUM_VF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_VF; +pub const IFLA_VFINFO_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VFINFO_LIST; +pub const IFLA_STATS64: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS64; +pub const IFLA_VF_PORTS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VF_PORTS; +pub const IFLA_PORT_SELF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PORT_SELF; +pub const IFLA_AF_SPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_AF_SPEC; +pub const IFLA_GROUP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GROUP; +pub const IFLA_NET_NS_FD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_FD; +pub const IFLA_EXT_MASK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EXT_MASK; +pub const IFLA_PROMISCUITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROMISCUITY; +pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_TX_QUEUES; +pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_RX_QUEUES; +pub const IFLA_CARRIER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER; +pub const IFLA_PHYS_PORT_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_ID; +pub const IFLA_CARRIER_CHANGES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_CHANGES; +pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_SWITCH_ID; +pub const IFLA_LINK_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK_NETNSID; +pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_NAME; +pub const IFLA_PROTO_DOWN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN; +pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SEGS; +pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SIZE; +pub const IFLA_PAD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PAD; +pub const IFLA_XDP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_XDP; +pub const IFLA_EVENT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EVENT; +pub const IFLA_NEW_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_NETNSID; +pub const IFLA_IF_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; +pub const IFLA_TARGET_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; +pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_UP_COUNT; +pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_DOWN_COUNT; +pub const IFLA_NEW_IFINDEX: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_IFINDEX; +pub const IFLA_MIN_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MIN_MTU; +pub const IFLA_MAX_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_MTU; +pub const IFLA_PROP_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROP_LIST; +pub const IFLA_ALT_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALT_IFNAME; +pub const IFLA_PERM_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PERM_ADDRESS; +pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN_REASON; +pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_NAME; +pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_BUS_NAME; +pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_MAX_SIZE; +pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SIZE; +pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SEGS; +pub const IFLA_ALLMULTI: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALLMULTI; +pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; +pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; +pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; +pub const IFLA_DPLL_PIN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_PACING_OFFLOAD_HORIZON; +pub const IFLA_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; +pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; +pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; +pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; +pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_3 = _bindgen_ty_3::__IFLA_PROTO_DOWN_REASON_CNT; +pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; +pub const IFLA_INET_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_UNSPEC; +pub const IFLA_INET_CONF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_CONF; +pub const __IFLA_INET_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_INET_MAX; +pub const IFLA_INET6_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_UNSPEC; +pub const IFLA_INET6_FLAGS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_FLAGS; +pub const IFLA_INET6_CONF: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CONF; +pub const IFLA_INET6_STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_STATS; +pub const IFLA_INET6_MCAST: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_MCAST; +pub const IFLA_INET6_CACHEINFO: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CACHEINFO; +pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ICMP6STATS; +pub const IFLA_INET6_TOKEN: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_TOKEN; +pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ADDR_GEN_MODE; +pub const IFLA_INET6_RA_MTU: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_RA_MTU; +pub const __IFLA_INET6_MAX: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_INET6_MAX; +pub const IFLA_BR_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_UNSPEC; +pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FORWARD_DELAY; +pub const IFLA_BR_HELLO_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIME; +pub const IFLA_BR_MAX_AGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MAX_AGE; +pub const IFLA_BR_AGEING_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_AGEING_TIME; +pub const IFLA_BR_STP_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_STATE; +pub const IFLA_BR_PRIORITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PRIORITY; +pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_FILTERING; +pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_PROTOCOL; +pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_FWD_MASK; +pub const IFLA_BR_ROOT_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_ID; +pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_BRIDGE_ID; +pub const IFLA_BR_ROOT_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PORT; +pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PATH_COST; +pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE; +pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; +pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIMER; +pub const IFLA_BR_TCN_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TCN_TIMER; +pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_TIMER; +pub const IFLA_BR_GC_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GC_TIMER; +pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_ADDR; +pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_FLUSH; +pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_ROUTER; +pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_SNOOPING; +pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_USE_IFADDR; +pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER; +pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_ELASTICITY; +pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_MAX; +pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_CNT; +pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_CNT; +pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_INTVL; +pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MEMBERSHIP_INTVL; +pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_INTVL; +pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_INTVL; +pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; +pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; +pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IPTABLES; +pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IP6TABLES; +pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_ARPTABLES; +pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_DEFAULT_PVID; +pub const IFLA_BR_PAD: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PAD; +pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_ENABLED; +pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STATS_ENABLED; +pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_IGMP_VERSION; +pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MLD_VERSION; +pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_PER_PORT; +pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BOOLOPT; +pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; +pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; +pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; +pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; +pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; +pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNSPEC; +pub const IFLA_BRPORT_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_STATE; +pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PRIORITY; +pub const IFLA_BRPORT_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_COST; +pub const IFLA_BRPORT_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MODE; +pub const IFLA_BRPORT_GUARD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GUARD; +pub const IFLA_BRPORT_PROTECT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROTECT; +pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FAST_LEAVE; +pub const IFLA_BRPORT_LEARNING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING; +pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNICAST_FLOOD; +pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP; +pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING_SYNC; +pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP_WIFI; +pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ROOT_ID; +pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BRIDGE_ID; +pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_PORT; +pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_COST; +pub const IFLA_BRPORT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ID; +pub const IFLA_BRPORT_NO: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NO; +pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; +pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_CONFIG_PENDING; +pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MESSAGE_AGE_TIMER; +pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FORWARD_DELAY_TIMER; +pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_HOLD_TIMER; +pub const IFLA_BRPORT_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FLUSH; +pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MULTICAST_ROUTER; +pub const IFLA_BRPORT_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PAD; +pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_FLOOD; +pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_TO_UCAST; +pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_VLAN_TUNNEL; +pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BCAST_FLOOD; +pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GROUP_FWD_MASK; +pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_SUPPRESS; +pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ISOLATED; +pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_PORT; +pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_RING_OPEN; +pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_IN_OPEN; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; +pub const IFLA_BRPORT_LOCKED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LOCKED; +pub const IFLA_BRPORT_MAB: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MAB; +pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_N_GROUPS; +pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; +pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; +pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; +pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; +pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; +pub const IFLA_INFO_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_DATA; +pub const IFLA_INFO_XSTATS: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_XSTATS; +pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_KIND; +pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_DATA; +pub const __IFLA_INFO_MAX: _bindgen_ty_9 = _bindgen_ty_9::__IFLA_INFO_MAX; +pub const IFLA_VLAN_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_UNSPEC; +pub const IFLA_VLAN_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_ID; +pub const IFLA_VLAN_FLAGS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_FLAGS; +pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_EGRESS_QOS; +pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_INGRESS_QOS; +pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_PROTOCOL; +pub const __IFLA_VLAN_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_VLAN_MAX; +pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_UNSPEC; +pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_MAPPING; +pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_VLAN_QOS_MAX; +pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_UNSPEC; +pub const IFLA_MACVLAN_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MODE; +pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_FLAGS; +pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_MODE; +pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR; +pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_DATA; +pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_COUNT; +pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN; +pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN_USED; +pub const IFLA_MACVLAN_BC_CUTOFF: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_CUTOFF; +pub const __IFLA_MACVLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_MACVLAN_MAX; +pub const IFLA_VRF_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_UNSPEC; +pub const IFLA_VRF_TABLE: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_TABLE; +pub const __IFLA_VRF_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VRF_MAX; +pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_UNSPEC; +pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_TABLE; +pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_VRF_PORT_MAX; +pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_UNSPEC; +pub const IFLA_MACSEC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCI; +pub const IFLA_MACSEC_PORT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PORT; +pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ICV_LEN; +pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_CIPHER_SUITE; +pub const IFLA_MACSEC_WINDOW: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_WINDOW; +pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCODING_SA; +pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCRYPT; +pub const IFLA_MACSEC_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PROTECT; +pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_INC_SCI; +pub const IFLA_MACSEC_ES: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ES; +pub const IFLA_MACSEC_SCB: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCB; +pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_REPLAY_PROTECT; +pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_VALIDATION; +pub const IFLA_MACSEC_PAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PAD; +pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_OFFLOAD; +pub const __IFLA_MACSEC_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_MACSEC_MAX; +pub const IFLA_XFRM_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_UNSPEC; +pub const IFLA_XFRM_LINK: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_LINK; +pub const IFLA_XFRM_IF_ID: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_IF_ID; +pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_COLLECT_METADATA; +pub const __IFLA_XFRM_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_XFRM_MAX; +pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_UNSPEC; +pub const IFLA_IPVLAN_MODE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_MODE; +pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_FLAGS; +pub const __IFLA_IPVLAN_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_IPVLAN_MAX; +pub const IFLA_NETKIT_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_UNSPEC; +pub const IFLA_NETKIT_PEER_INFO: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_INFO; +pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PRIMARY; +pub const IFLA_NETKIT_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_POLICY; +pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_POLICY; +pub const IFLA_NETKIT_MODE: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_SCRUB; +pub const IFLA_NETKIT_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; +pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const __IFLA_NETKIT_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_NETKIT_MAX; +pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_UNSPEC; +pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_BYTES; +pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_PKTS; +pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_DROPS; +pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_TX_BYTES; +pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_TX_PKTS; +pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_TX_DROPS; +pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_TX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_PAD; +pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_19 = _bindgen_ty_19::__VNIFILTER_ENTRY_STATS_MAX; +pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_START; +pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_END; +pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_GROUP; +pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_GROUP6; +pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_STATS; +pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_20 = _bindgen_ty_20::__VXLAN_VNIFILTER_ENTRY_MAX; +pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VXLAN_VNIFILTER_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_21 = _bindgen_ty_21::VXLAN_VNIFILTER_ENTRY; +pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_21 = _bindgen_ty_21::__VXLAN_VNIFILTER_MAX; +pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_UNSPEC; +pub const IFLA_VXLAN_ID: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_ID; +pub const IFLA_VXLAN_GROUP: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_GROUP; +pub const IFLA_VXLAN_LINK: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LINK; +pub const IFLA_VXLAN_LOCAL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LOCAL; +pub const IFLA_VXLAN_TTL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_TTL; +pub const IFLA_VXLAN_TOS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_TOS; +pub const IFLA_VXLAN_LEARNING: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LEARNING; +pub const IFLA_VXLAN_AGEING: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_AGEING; +pub const IFLA_VXLAN_LIMIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LIMIT; +pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_PORT_RANGE; +pub const IFLA_VXLAN_PROXY: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_PROXY; +pub const IFLA_VXLAN_RSC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_RSC; +pub const IFLA_VXLAN_L2MISS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_L2MISS; +pub const IFLA_VXLAN_L3MISS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_L3MISS; +pub const IFLA_VXLAN_PORT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_PORT; +pub const IFLA_VXLAN_GROUP6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_GROUP6; +pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LOCAL6; +pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_UDP_CSUM; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; +pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_REMCSUM_TX; +pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_REMCSUM_RX; +pub const IFLA_VXLAN_GBP: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_GBP; +pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_REMCSUM_NOPARTIAL; +pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_COLLECT_METADATA; +pub const IFLA_VXLAN_LABEL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LABEL; +pub const IFLA_VXLAN_GPE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_GPE; +pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_TTL_INHERIT; +pub const IFLA_VXLAN_DF: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_DF; +pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_VNIFILTER; +pub const IFLA_VXLAN_LOCALBYPASS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LOCALBYPASS; +pub const IFLA_VXLAN_LABEL_POLICY: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LABEL_POLICY; +pub const IFLA_VXLAN_RESERVED_BITS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_RESERVED_BITS; +pub const __IFLA_VXLAN_MAX: _bindgen_ty_22 = _bindgen_ty_22::__IFLA_VXLAN_MAX; +pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_UNSPEC; +pub const IFLA_GENEVE_ID: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ID; +pub const IFLA_GENEVE_REMOTE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_REMOTE; +pub const IFLA_GENEVE_TTL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_TTL; +pub const IFLA_GENEVE_TOS: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_TOS; +pub const IFLA_GENEVE_PORT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT; +pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_COLLECT_METADATA; +pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_REMOTE6; +pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_UDP_CSUM; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; +pub const IFLA_GENEVE_LABEL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LABEL; +pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_TTL_INHERIT; +pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; +pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; +pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; +pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; +pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; +pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_ETHERTYPE; +pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_SRCPORT_MIN; +pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_MULTIPROTO_MODE; +pub const __IFLA_BAREUDP_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_BAREUDP_MAX; +pub const IFLA_PPP_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_PPP_UNSPEC; +pub const IFLA_PPP_DEV_FD: _bindgen_ty_25 = _bindgen_ty_25::IFLA_PPP_DEV_FD; +pub const __IFLA_PPP_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_PPP_MAX; +pub const IFLA_GTP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_UNSPEC; +pub const IFLA_GTP_FD0: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_FD0; +pub const IFLA_GTP_FD1: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_FD1; +pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_PDP_HASHSIZE; +pub const IFLA_GTP_ROLE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_ROLE; +pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_CREATE_SOCKETS; +pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_RESTART_COUNT; +pub const IFLA_GTP_LOCAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_LOCAL; +pub const IFLA_GTP_LOCAL6: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_LOCAL6; +pub const __IFLA_GTP_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_GTP_MAX; +pub const IFLA_BOND_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_UNSPEC; +pub const IFLA_BOND_MODE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MODE; +pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ACTIVE_SLAVE; +pub const IFLA_BOND_MIIMON: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MIIMON; +pub const IFLA_BOND_UPDELAY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_UPDELAY; +pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_DOWNDELAY; +pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_USE_CARRIER; +pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ARP_INTERVAL; +pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ARP_IP_TARGET; +pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ARP_VALIDATE; +pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ARP_ALL_TARGETS; +pub const IFLA_BOND_PRIMARY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_PRIMARY; +pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_PRIMARY_RESELECT; +pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_FAIL_OVER_MAC; +pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_XMIT_HASH_POLICY; +pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_RESEND_IGMP; +pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NUM_PEER_NOTIF; +pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ALL_SLAVES_ACTIVE; +pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MIN_LINKS; +pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LP_INTERVAL; +pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_PACKETS_PER_SLAVE; +pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_LACP_RATE; +pub const IFLA_BOND_AD_SELECT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_SELECT; +pub const IFLA_BOND_AD_INFO: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO; +pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_ACTOR_SYS_PRIO; +pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_USER_PORT_KEY; +pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_ACTOR_SYSTEM; +pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_TLB_DYNAMIC_LB; +pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_PEER_NOTIF_DELAY; +pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_LACP_ACTIVE; +pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSED_MAX; +pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; +pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; +pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; +pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; +pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; +pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_NUM_PORTS; +pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_ACTOR_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_PARTNER_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_PARTNER_MAC; +pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_BOND_AD_INFO_MAX; +pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_UNSPEC; +pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_STATE; +pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_MII_STATUS; +pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; +pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PERM_HWADDR; +pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_QUEUE_ID; +pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; +pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; +pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; +pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; +pub const __IFLA_VF_INFO_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_VF_INFO_MAX; +pub const IFLA_VF_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_UNSPEC; +pub const IFLA_VF_MAC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_MAC; +pub const IFLA_VF_VLAN: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN; +pub const IFLA_VF_TX_RATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_TX_RATE; +pub const IFLA_VF_SPOOFCHK: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_SPOOFCHK; +pub const IFLA_VF_LINK_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_LINK_STATE; +pub const IFLA_VF_RATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_RATE; +pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_RSS_QUERY_EN; +pub const IFLA_VF_STATS: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_STATS; +pub const IFLA_VF_TRUST: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_TRUST; +pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_IB_NODE_GUID; +pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_IB_PORT_GUID; +pub const IFLA_VF_VLAN_LIST: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_LIST; +pub const IFLA_VF_BROADCAST: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_BROADCAST; +pub const __IFLA_VF_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_VF_MAX; +pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_VLAN_INFO_UNSPEC; +pub const IFLA_VF_VLAN_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_VLAN_INFO; +pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_VLAN_INFO_MAX; +pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_LINK_STATE_AUTO; +pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_LINK_STATE_ENABLE; +pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_LINK_STATE_DISABLE; +pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_LINK_STATE_MAX; +pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_RX_PACKETS; +pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_TX_PACKETS; +pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_RX_BYTES; +pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_TX_BYTES; +pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_BROADCAST; +pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_MULTICAST; +pub const IFLA_VF_STATS_PAD: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_PAD; +pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_RX_DROPPED; +pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_TX_DROPPED; +pub const __IFLA_VF_STATS_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_STATS_MAX; +pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_PORT_UNSPEC; +pub const IFLA_VF_PORT: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_PORT; +pub const __IFLA_VF_PORT_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_VF_PORT_MAX; +pub const IFLA_PORT_UNSPEC: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_UNSPEC; +pub const IFLA_PORT_VF: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_VF; +pub const IFLA_PORT_PROFILE: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_PROFILE; +pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_VSI_TYPE; +pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_INSTANCE_UUID; +pub const IFLA_PORT_HOST_UUID: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_HOST_UUID; +pub const IFLA_PORT_REQUEST: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_REQUEST; +pub const IFLA_PORT_RESPONSE: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_RESPONSE; +pub const __IFLA_PORT_MAX: _bindgen_ty_36 = _bindgen_ty_36::__IFLA_PORT_MAX; +pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_REQUEST_PREASSOCIATE; +pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_37 = _bindgen_ty_37::PORT_REQUEST_PREASSOCIATE_RR; +pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_REQUEST_ASSOCIATE; +pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_REQUEST_DISASSOCIATE; +pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_SUCCESS; +pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_INVALID_FORMAT; +pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_UNUSED_VTID; +pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_VTID_VIOLATION; +pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; +pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_OUT_OF_SYNC; +pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_SUCCESS; +pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_INPROGRESS; +pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_INVALID; +pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_BADSTATE; +pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_ERROR; +pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_39 = _bindgen_ty_39::IFLA_IPOIB_UNSPEC; +pub const IFLA_IPOIB_PKEY: _bindgen_ty_39 = _bindgen_ty_39::IFLA_IPOIB_PKEY; +pub const IFLA_IPOIB_MODE: _bindgen_ty_39 = _bindgen_ty_39::IFLA_IPOIB_MODE; +pub const IFLA_IPOIB_UMCAST: _bindgen_ty_39 = _bindgen_ty_39::IFLA_IPOIB_UMCAST; +pub const __IFLA_IPOIB_MAX: _bindgen_ty_39 = _bindgen_ty_39::__IFLA_IPOIB_MAX; +pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_40 = _bindgen_ty_40::IPOIB_MODE_DATAGRAM; +pub const IPOIB_MODE_CONNECTED: _bindgen_ty_40 = _bindgen_ty_40::IPOIB_MODE_CONNECTED; +pub const HSR_PROTOCOL_HSR: _bindgen_ty_41 = _bindgen_ty_41::HSR_PROTOCOL_HSR; +pub const HSR_PROTOCOL_PRP: _bindgen_ty_41 = _bindgen_ty_41::HSR_PROTOCOL_PRP; +pub const HSR_PROTOCOL_MAX: _bindgen_ty_41 = _bindgen_ty_41::HSR_PROTOCOL_MAX; +pub const IFLA_HSR_UNSPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_UNSPEC; +pub const IFLA_HSR_SLAVE1: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_SLAVE1; +pub const IFLA_HSR_SLAVE2: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_SLAVE2; +pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_MULTICAST_SPEC; +pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_SUPERVISION_ADDR; +pub const IFLA_HSR_SEQ_NR: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_SEQ_NR; +pub const IFLA_HSR_VERSION: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_VERSION; +pub const IFLA_HSR_PROTOCOL: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_PROTOCOL; +pub const IFLA_HSR_INTERLINK: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_INTERLINK; +pub const __IFLA_HSR_MAX: _bindgen_ty_42 = _bindgen_ty_42::__IFLA_HSR_MAX; +pub const IFLA_STATS_UNSPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_UNSPEC; +pub const IFLA_STATS_LINK_64: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_LINK_64; +pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_LINK_XSTATS; +pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_LINK_XSTATS_SLAVE; +pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_LINK_OFFLOAD_XSTATS; +pub const IFLA_STATS_AF_SPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_AF_SPEC; +pub const __IFLA_STATS_MAX: _bindgen_ty_43 = _bindgen_ty_43::__IFLA_STATS_MAX; +pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::IFLA_STATS_GETSET_UNSPEC; +pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_44 = _bindgen_ty_44::IFLA_STATS_GET_FILTERS; +pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_44 = _bindgen_ty_44::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_44 = _bindgen_ty_44::__IFLA_STATS_GETSET_MAX; +pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::LINK_XSTATS_TYPE_UNSPEC; +pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_45 = _bindgen_ty_45::LINK_XSTATS_TYPE_BRIDGE; +pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_45 = _bindgen_ty_45::LINK_XSTATS_TYPE_BOND; +pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_45 = _bindgen_ty_45::__LINK_XSTATS_TYPE_MAX; +pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_CPU_HIT; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO; +pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_OFFLOAD_XSTATS_MAX; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_47 = _bindgen_ty_47::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_47 = _bindgen_ty_47::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_47 = _bindgen_ty_47::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; +pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_47 = _bindgen_ty_47::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; +pub const XDP_ATTACHED_NONE: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_NONE; +pub const XDP_ATTACHED_DRV: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_DRV; +pub const XDP_ATTACHED_SKB: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_SKB; +pub const XDP_ATTACHED_HW: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_HW; +pub const XDP_ATTACHED_MULTI: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_MULTI; +pub const IFLA_XDP_UNSPEC: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_UNSPEC; +pub const IFLA_XDP_FD: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_FD; +pub const IFLA_XDP_ATTACHED: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_ATTACHED; +pub const IFLA_XDP_FLAGS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_FLAGS; +pub const IFLA_XDP_PROG_ID: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_PROG_ID; +pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_DRV_PROG_ID; +pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_SKB_PROG_ID; +pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_HW_PROG_ID; +pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_EXPECTED_FD; +pub const __IFLA_XDP_MAX: _bindgen_ty_49 = _bindgen_ty_49::__IFLA_XDP_MAX; +pub const IFLA_EVENT_NONE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_NONE; +pub const IFLA_EVENT_REBOOT: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_REBOOT; +pub const IFLA_EVENT_FEATURES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_FEATURES; +pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_BONDING_FAILOVER; +pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_NOTIFY_PEERS; +pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_IGMP_RESEND; +pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_BONDING_OPTIONS; +pub const IFLA_TUN_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_UNSPEC; +pub const IFLA_TUN_OWNER: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_OWNER; +pub const IFLA_TUN_GROUP: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_GROUP; +pub const IFLA_TUN_TYPE: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_TYPE; +pub const IFLA_TUN_PI: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_PI; +pub const IFLA_TUN_VNET_HDR: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_VNET_HDR; +pub const IFLA_TUN_PERSIST: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_PERSIST; +pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_MULTI_QUEUE; +pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_NUM_QUEUES; +pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_NUM_DISABLED_QUEUES; +pub const __IFLA_TUN_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_TUN_MAX; +pub const IFLA_RMNET_UNSPEC: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_UNSPEC; +pub const IFLA_RMNET_MUX_ID: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_MUX_ID; +pub const IFLA_RMNET_FLAGS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_FLAGS; +pub const __IFLA_RMNET_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_RMNET_MAX; +pub const IFLA_MCTP_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_UNSPEC; +pub const IFLA_MCTP_NET: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_PHYS_BINDING; +pub const __IFLA_MCTP_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_MCTP_MAX; +pub const IFLA_DSA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_UNSPEC; +pub const IFLA_DSA_CONDUIT: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; +pub const IFLA_DSA_MASTER: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; +pub const __IFLA_DSA_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_DSA_MAX; +pub const IFLA_OVPN_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_OVPN_UNSPEC; +pub const IFLA_OVPN_MODE: _bindgen_ty_55 = _bindgen_ty_55::IFLA_OVPN_MODE; +pub const __IFLA_OVPN_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_OVPN_MAX; +pub const IFA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFA_UNSPEC; +pub const IFA_ADDRESS: _bindgen_ty_56 = _bindgen_ty_56::IFA_ADDRESS; +pub const IFA_LOCAL: _bindgen_ty_56 = _bindgen_ty_56::IFA_LOCAL; +pub const IFA_LABEL: _bindgen_ty_56 = _bindgen_ty_56::IFA_LABEL; +pub const IFA_BROADCAST: _bindgen_ty_56 = _bindgen_ty_56::IFA_BROADCAST; +pub const IFA_ANYCAST: _bindgen_ty_56 = _bindgen_ty_56::IFA_ANYCAST; +pub const IFA_CACHEINFO: _bindgen_ty_56 = _bindgen_ty_56::IFA_CACHEINFO; +pub const IFA_MULTICAST: _bindgen_ty_56 = _bindgen_ty_56::IFA_MULTICAST; +pub const IFA_FLAGS: _bindgen_ty_56 = _bindgen_ty_56::IFA_FLAGS; +pub const IFA_RT_PRIORITY: _bindgen_ty_56 = _bindgen_ty_56::IFA_RT_PRIORITY; +pub const IFA_TARGET_NETNSID: _bindgen_ty_56 = _bindgen_ty_56::IFA_TARGET_NETNSID; +pub const IFA_PROTO: _bindgen_ty_56 = _bindgen_ty_56::IFA_PROTO; +pub const __IFA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__IFA_MAX; +pub const NDA_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::NDA_UNSPEC; +pub const NDA_DST: _bindgen_ty_57 = _bindgen_ty_57::NDA_DST; +pub const NDA_LLADDR: _bindgen_ty_57 = _bindgen_ty_57::NDA_LLADDR; +pub const NDA_CACHEINFO: _bindgen_ty_57 = _bindgen_ty_57::NDA_CACHEINFO; +pub const NDA_PROBES: _bindgen_ty_57 = _bindgen_ty_57::NDA_PROBES; +pub const NDA_VLAN: _bindgen_ty_57 = _bindgen_ty_57::NDA_VLAN; +pub const NDA_PORT: _bindgen_ty_57 = _bindgen_ty_57::NDA_PORT; +pub const NDA_VNI: _bindgen_ty_57 = _bindgen_ty_57::NDA_VNI; +pub const NDA_IFINDEX: _bindgen_ty_57 = _bindgen_ty_57::NDA_IFINDEX; +pub const NDA_MASTER: _bindgen_ty_57 = _bindgen_ty_57::NDA_MASTER; +pub const NDA_LINK_NETNSID: _bindgen_ty_57 = _bindgen_ty_57::NDA_LINK_NETNSID; +pub const NDA_SRC_VNI: _bindgen_ty_57 = _bindgen_ty_57::NDA_SRC_VNI; +pub const NDA_PROTOCOL: _bindgen_ty_57 = _bindgen_ty_57::NDA_PROTOCOL; +pub const NDA_NH_ID: _bindgen_ty_57 = _bindgen_ty_57::NDA_NH_ID; +pub const NDA_FDB_EXT_ATTRS: _bindgen_ty_57 = _bindgen_ty_57::NDA_FDB_EXT_ATTRS; +pub const NDA_FLAGS_EXT: _bindgen_ty_57 = _bindgen_ty_57::NDA_FLAGS_EXT; +pub const NDA_NDM_STATE_MASK: _bindgen_ty_57 = _bindgen_ty_57::NDA_NDM_STATE_MASK; +pub const NDA_NDM_FLAGS_MASK: _bindgen_ty_57 = _bindgen_ty_57::NDA_NDM_FLAGS_MASK; +pub const __NDA_MAX: _bindgen_ty_57 = _bindgen_ty_57::__NDA_MAX; +pub const NDTPA_UNSPEC: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_UNSPEC; +pub const NDTPA_IFINDEX: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_IFINDEX; +pub const NDTPA_REFCNT: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_REFCNT; +pub const NDTPA_REACHABLE_TIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_REACHABLE_TIME; +pub const NDTPA_BASE_REACHABLE_TIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_BASE_REACHABLE_TIME; +pub const NDTPA_RETRANS_TIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_RETRANS_TIME; +pub const NDTPA_GC_STALETIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_GC_STALETIME; +pub const NDTPA_DELAY_PROBE_TIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_DELAY_PROBE_TIME; +pub const NDTPA_QUEUE_LEN: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_QUEUE_LEN; +pub const NDTPA_APP_PROBES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_APP_PROBES; +pub const NDTPA_UCAST_PROBES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_UCAST_PROBES; +pub const NDTPA_MCAST_PROBES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_MCAST_PROBES; +pub const NDTPA_ANYCAST_DELAY: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_ANYCAST_DELAY; +pub const NDTPA_PROXY_DELAY: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_PROXY_DELAY; +pub const NDTPA_PROXY_QLEN: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_PROXY_QLEN; +pub const NDTPA_LOCKTIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_LOCKTIME; +pub const NDTPA_QUEUE_LENBYTES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_QUEUE_LENBYTES; +pub const NDTPA_MCAST_REPROBES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_MCAST_REPROBES; +pub const NDTPA_PAD: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_PAD; +pub const NDTPA_INTERVAL_PROBE_TIME_MS: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_INTERVAL_PROBE_TIME_MS; +pub const __NDTPA_MAX: _bindgen_ty_58 = _bindgen_ty_58::__NDTPA_MAX; +pub const NDTA_UNSPEC: _bindgen_ty_59 = _bindgen_ty_59::NDTA_UNSPEC; +pub const NDTA_NAME: _bindgen_ty_59 = _bindgen_ty_59::NDTA_NAME; +pub const NDTA_THRESH1: _bindgen_ty_59 = _bindgen_ty_59::NDTA_THRESH1; +pub const NDTA_THRESH2: _bindgen_ty_59 = _bindgen_ty_59::NDTA_THRESH2; +pub const NDTA_THRESH3: _bindgen_ty_59 = _bindgen_ty_59::NDTA_THRESH3; +pub const NDTA_CONFIG: _bindgen_ty_59 = _bindgen_ty_59::NDTA_CONFIG; +pub const NDTA_PARMS: _bindgen_ty_59 = _bindgen_ty_59::NDTA_PARMS; +pub const NDTA_STATS: _bindgen_ty_59 = _bindgen_ty_59::NDTA_STATS; +pub const NDTA_GC_INTERVAL: _bindgen_ty_59 = _bindgen_ty_59::NDTA_GC_INTERVAL; +pub const NDTA_PAD: _bindgen_ty_59 = _bindgen_ty_59::NDTA_PAD; +pub const __NDTA_MAX: _bindgen_ty_59 = _bindgen_ty_59::__NDTA_MAX; +pub const FDB_NOTIFY_BIT: _bindgen_ty_60 = _bindgen_ty_60::FDB_NOTIFY_BIT; +pub const FDB_NOTIFY_INACTIVE_BIT: _bindgen_ty_60 = _bindgen_ty_60::FDB_NOTIFY_INACTIVE_BIT; +pub const NFEA_UNSPEC: _bindgen_ty_61 = _bindgen_ty_61::NFEA_UNSPEC; +pub const NFEA_ACTIVITY_NOTIFY: _bindgen_ty_61 = _bindgen_ty_61::NFEA_ACTIVITY_NOTIFY; +pub const NFEA_DONT_REFRESH: _bindgen_ty_61 = _bindgen_ty_61::NFEA_DONT_REFRESH; +pub const __NFEA_MAX: _bindgen_ty_61 = _bindgen_ty_61::__NFEA_MAX; +pub const RTM_BASE: _bindgen_ty_62 = _bindgen_ty_62::RTM_BASE; +pub const RTM_NEWLINK: _bindgen_ty_62 = _bindgen_ty_62::RTM_BASE; +pub const RTM_DELLINK: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELLINK; +pub const RTM_GETLINK: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETLINK; +pub const RTM_SETLINK: _bindgen_ty_62 = _bindgen_ty_62::RTM_SETLINK; +pub const RTM_NEWADDR: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWADDR; +pub const RTM_DELADDR: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELADDR; +pub const RTM_GETADDR: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETADDR; +pub const RTM_NEWROUTE: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWROUTE; +pub const RTM_DELROUTE: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELROUTE; +pub const RTM_GETROUTE: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETROUTE; +pub const RTM_NEWNEIGH: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNEIGH; +pub const RTM_DELNEIGH: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNEIGH; +pub const RTM_GETNEIGH: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNEIGH; +pub const RTM_NEWRULE: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWRULE; +pub const RTM_DELRULE: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELRULE; +pub const RTM_GETRULE: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETRULE; +pub const RTM_NEWQDISC: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWQDISC; +pub const RTM_DELQDISC: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELQDISC; +pub const RTM_GETQDISC: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETQDISC; +pub const RTM_NEWTCLASS: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWTCLASS; +pub const RTM_DELTCLASS: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELTCLASS; +pub const RTM_GETTCLASS: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETTCLASS; +pub const RTM_NEWTFILTER: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWTFILTER; +pub const RTM_DELTFILTER: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELTFILTER; +pub const RTM_GETTFILTER: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETTFILTER; +pub const RTM_NEWACTION: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWACTION; +pub const RTM_DELACTION: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELACTION; +pub const RTM_GETACTION: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETACTION; +pub const RTM_NEWPREFIX: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWPREFIX; +pub const RTM_NEWMULTICAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWMULTICAST; +pub const RTM_DELMULTICAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELMULTICAST; +pub const RTM_GETMULTICAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETMULTICAST; +pub const RTM_NEWANYCAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWANYCAST; +pub const RTM_DELANYCAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELANYCAST; +pub const RTM_GETANYCAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETANYCAST; +pub const RTM_NEWNEIGHTBL: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNEIGHTBL; +pub const RTM_GETNEIGHTBL: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNEIGHTBL; +pub const RTM_SETNEIGHTBL: _bindgen_ty_62 = _bindgen_ty_62::RTM_SETNEIGHTBL; +pub const RTM_NEWNDUSEROPT: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNDUSEROPT; +pub const RTM_NEWADDRLABEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWADDRLABEL; +pub const RTM_DELADDRLABEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELADDRLABEL; +pub const RTM_GETADDRLABEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETADDRLABEL; +pub const RTM_GETDCB: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETDCB; +pub const RTM_SETDCB: _bindgen_ty_62 = _bindgen_ty_62::RTM_SETDCB; +pub const RTM_NEWNETCONF: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNETCONF; +pub const RTM_DELNETCONF: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNETCONF; +pub const RTM_GETNETCONF: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNETCONF; +pub const RTM_NEWMDB: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWMDB; +pub const RTM_DELMDB: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELMDB; +pub const RTM_GETMDB: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETMDB; +pub const RTM_NEWNSID: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNSID; +pub const RTM_DELNSID: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNSID; +pub const RTM_GETNSID: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNSID; +pub const RTM_NEWSTATS: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWSTATS; +pub const RTM_GETSTATS: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETSTATS; +pub const RTM_SETSTATS: _bindgen_ty_62 = _bindgen_ty_62::RTM_SETSTATS; +pub const RTM_NEWCACHEREPORT: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWCACHEREPORT; +pub const RTM_NEWCHAIN: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWCHAIN; +pub const RTM_DELCHAIN: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELCHAIN; +pub const RTM_GETCHAIN: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETCHAIN; +pub const RTM_NEWNEXTHOP: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNEXTHOP; +pub const RTM_DELNEXTHOP: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNEXTHOP; +pub const RTM_GETNEXTHOP: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNEXTHOP; +pub const RTM_NEWLINKPROP: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWLINKPROP; +pub const RTM_DELLINKPROP: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELLINKPROP; +pub const RTM_GETLINKPROP: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETLINKPROP; +pub const RTM_NEWVLAN: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWVLAN; +pub const RTM_DELVLAN: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELVLAN; +pub const RTM_GETVLAN: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETVLAN; +pub const RTM_NEWNEXTHOPBUCKET: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNEXTHOPBUCKET; +pub const RTM_DELNEXTHOPBUCKET: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNEXTHOPBUCKET; +pub const RTM_GETNEXTHOPBUCKET: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNEXTHOPBUCKET; +pub const RTM_NEWTUNNEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWTUNNEL; +pub const RTM_DELTUNNEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELTUNNEL; +pub const RTM_GETTUNNEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETTUNNEL; +pub const __RTM_MAX: _bindgen_ty_62 = _bindgen_ty_62::__RTM_MAX; +pub const RTN_UNSPEC: _bindgen_ty_63 = _bindgen_ty_63::RTN_UNSPEC; +pub const RTN_UNICAST: _bindgen_ty_63 = _bindgen_ty_63::RTN_UNICAST; +pub const RTN_LOCAL: _bindgen_ty_63 = _bindgen_ty_63::RTN_LOCAL; +pub const RTN_BROADCAST: _bindgen_ty_63 = _bindgen_ty_63::RTN_BROADCAST; +pub const RTN_ANYCAST: _bindgen_ty_63 = _bindgen_ty_63::RTN_ANYCAST; +pub const RTN_MULTICAST: _bindgen_ty_63 = _bindgen_ty_63::RTN_MULTICAST; +pub const RTN_BLACKHOLE: _bindgen_ty_63 = _bindgen_ty_63::RTN_BLACKHOLE; +pub const RTN_UNREACHABLE: _bindgen_ty_63 = _bindgen_ty_63::RTN_UNREACHABLE; +pub const RTN_PROHIBIT: _bindgen_ty_63 = _bindgen_ty_63::RTN_PROHIBIT; +pub const RTN_THROW: _bindgen_ty_63 = _bindgen_ty_63::RTN_THROW; +pub const RTN_NAT: _bindgen_ty_63 = _bindgen_ty_63::RTN_NAT; +pub const RTN_XRESOLVE: _bindgen_ty_63 = _bindgen_ty_63::RTN_XRESOLVE; +pub const __RTN_MAX: _bindgen_ty_63 = _bindgen_ty_63::__RTN_MAX; +pub const RTAX_UNSPEC: _bindgen_ty_64 = _bindgen_ty_64::RTAX_UNSPEC; +pub const RTAX_LOCK: _bindgen_ty_64 = _bindgen_ty_64::RTAX_LOCK; +pub const RTAX_MTU: _bindgen_ty_64 = _bindgen_ty_64::RTAX_MTU; +pub const RTAX_WINDOW: _bindgen_ty_64 = _bindgen_ty_64::RTAX_WINDOW; +pub const RTAX_RTT: _bindgen_ty_64 = _bindgen_ty_64::RTAX_RTT; +pub const RTAX_RTTVAR: _bindgen_ty_64 = _bindgen_ty_64::RTAX_RTTVAR; +pub const RTAX_SSTHRESH: _bindgen_ty_64 = _bindgen_ty_64::RTAX_SSTHRESH; +pub const RTAX_CWND: _bindgen_ty_64 = _bindgen_ty_64::RTAX_CWND; +pub const RTAX_ADVMSS: _bindgen_ty_64 = _bindgen_ty_64::RTAX_ADVMSS; +pub const RTAX_REORDERING: _bindgen_ty_64 = _bindgen_ty_64::RTAX_REORDERING; +pub const RTAX_HOPLIMIT: _bindgen_ty_64 = _bindgen_ty_64::RTAX_HOPLIMIT; +pub const RTAX_INITCWND: _bindgen_ty_64 = _bindgen_ty_64::RTAX_INITCWND; +pub const RTAX_FEATURES: _bindgen_ty_64 = _bindgen_ty_64::RTAX_FEATURES; +pub const RTAX_RTO_MIN: _bindgen_ty_64 = _bindgen_ty_64::RTAX_RTO_MIN; +pub const RTAX_INITRWND: _bindgen_ty_64 = _bindgen_ty_64::RTAX_INITRWND; +pub const RTAX_QUICKACK: _bindgen_ty_64 = _bindgen_ty_64::RTAX_QUICKACK; +pub const RTAX_CC_ALGO: _bindgen_ty_64 = _bindgen_ty_64::RTAX_CC_ALGO; +pub const RTAX_FASTOPEN_NO_COOKIE: _bindgen_ty_64 = _bindgen_ty_64::RTAX_FASTOPEN_NO_COOKIE; +pub const __RTAX_MAX: _bindgen_ty_64 = _bindgen_ty_64::__RTAX_MAX; +pub const PREFIX_UNSPEC: _bindgen_ty_65 = _bindgen_ty_65::PREFIX_UNSPEC; +pub const PREFIX_ADDRESS: _bindgen_ty_65 = _bindgen_ty_65::PREFIX_ADDRESS; +pub const PREFIX_CACHEINFO: _bindgen_ty_65 = _bindgen_ty_65::PREFIX_CACHEINFO; +pub const __PREFIX_MAX: _bindgen_ty_65 = _bindgen_ty_65::__PREFIX_MAX; +pub const TCA_UNSPEC: _bindgen_ty_66 = _bindgen_ty_66::TCA_UNSPEC; +pub const TCA_KIND: _bindgen_ty_66 = _bindgen_ty_66::TCA_KIND; +pub const TCA_OPTIONS: _bindgen_ty_66 = _bindgen_ty_66::TCA_OPTIONS; +pub const TCA_STATS: _bindgen_ty_66 = _bindgen_ty_66::TCA_STATS; +pub const TCA_XSTATS: _bindgen_ty_66 = _bindgen_ty_66::TCA_XSTATS; +pub const TCA_RATE: _bindgen_ty_66 = _bindgen_ty_66::TCA_RATE; +pub const TCA_FCNT: _bindgen_ty_66 = _bindgen_ty_66::TCA_FCNT; +pub const TCA_STATS2: _bindgen_ty_66 = _bindgen_ty_66::TCA_STATS2; +pub const TCA_STAB: _bindgen_ty_66 = _bindgen_ty_66::TCA_STAB; +pub const TCA_PAD: _bindgen_ty_66 = _bindgen_ty_66::TCA_PAD; +pub const TCA_DUMP_INVISIBLE: _bindgen_ty_66 = _bindgen_ty_66::TCA_DUMP_INVISIBLE; +pub const TCA_CHAIN: _bindgen_ty_66 = _bindgen_ty_66::TCA_CHAIN; +pub const TCA_HW_OFFLOAD: _bindgen_ty_66 = _bindgen_ty_66::TCA_HW_OFFLOAD; +pub const TCA_INGRESS_BLOCK: _bindgen_ty_66 = _bindgen_ty_66::TCA_INGRESS_BLOCK; +pub const TCA_EGRESS_BLOCK: _bindgen_ty_66 = _bindgen_ty_66::TCA_EGRESS_BLOCK; +pub const TCA_DUMP_FLAGS: _bindgen_ty_66 = _bindgen_ty_66::TCA_DUMP_FLAGS; +pub const TCA_EXT_WARN_MSG: _bindgen_ty_66 = _bindgen_ty_66::TCA_EXT_WARN_MSG; +pub const __TCA_MAX: _bindgen_ty_66 = _bindgen_ty_66::__TCA_MAX; +pub const NDUSEROPT_UNSPEC: _bindgen_ty_67 = _bindgen_ty_67::NDUSEROPT_UNSPEC; +pub const NDUSEROPT_SRCADDR: _bindgen_ty_67 = _bindgen_ty_67::NDUSEROPT_SRCADDR; +pub const __NDUSEROPT_MAX: _bindgen_ty_67 = _bindgen_ty_67::__NDUSEROPT_MAX; +pub const TCA_ROOT_UNSPEC: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_UNSPEC; +pub const TCA_ROOT_TAB: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_TAB; +pub const TCA_ROOT_FLAGS: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_FLAGS; +pub const TCA_ROOT_COUNT: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_COUNT; +pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_TIME_DELTA; +pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_EXT_WARN_MSG; +pub const __TCA_ROOT_MAX: _bindgen_ty_68 = _bindgen_ty_68::__TCA_ROOT_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nlmsgerr_attrs { +NLMSGERR_ATTR_UNUSED = 0, +NLMSGERR_ATTR_MSG = 1, +NLMSGERR_ATTR_OFFS = 2, +NLMSGERR_ATTR_COOKIE = 3, +NLMSGERR_ATTR_POLICY = 4, +NLMSGERR_ATTR_MISS_TYPE = 5, +NLMSGERR_ATTR_MISS_NEST = 6, +__NLMSGERR_ATTR_MAX = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl_mmap_status { +NL_MMAP_STATUS_UNUSED = 0, +NL_MMAP_STATUS_RESERVED = 1, +NL_MMAP_STATUS_VALID = 2, +NL_MMAP_STATUS_COPY = 3, +NL_MMAP_STATUS_SKIP = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +NETLINK_UNCONNECTED = 0, +NETLINK_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_attribute_type { +NL_ATTR_TYPE_INVALID = 0, +NL_ATTR_TYPE_FLAG = 1, +NL_ATTR_TYPE_U8 = 2, +NL_ATTR_TYPE_U16 = 3, +NL_ATTR_TYPE_U32 = 4, +NL_ATTR_TYPE_U64 = 5, +NL_ATTR_TYPE_S8 = 6, +NL_ATTR_TYPE_S16 = 7, +NL_ATTR_TYPE_S32 = 8, +NL_ATTR_TYPE_S64 = 9, +NL_ATTR_TYPE_BINARY = 10, +NL_ATTR_TYPE_STRING = 11, +NL_ATTR_TYPE_NUL_STRING = 12, +NL_ATTR_TYPE_NESTED = 13, +NL_ATTR_TYPE_NESTED_ARRAY = 14, +NL_ATTR_TYPE_BITFIELD32 = 15, +NL_ATTR_TYPE_SINT = 16, +NL_ATTR_TYPE_UINT = 17, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_policy_type_attr { +NL_POLICY_TYPE_ATTR_UNSPEC = 0, +NL_POLICY_TYPE_ATTR_TYPE = 1, +NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, +NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, +NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, +NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, +NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, +NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, +NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, +NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, +NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, +NL_POLICY_TYPE_ATTR_PAD = 11, +NL_POLICY_TYPE_ATTR_MASK = 12, +__NL_POLICY_TYPE_ATTR_MAX = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_commands { +NL80211_CMD_UNSPEC = 0, +NL80211_CMD_GET_WIPHY = 1, +NL80211_CMD_SET_WIPHY = 2, +NL80211_CMD_NEW_WIPHY = 3, +NL80211_CMD_DEL_WIPHY = 4, +NL80211_CMD_GET_INTERFACE = 5, +NL80211_CMD_SET_INTERFACE = 6, +NL80211_CMD_NEW_INTERFACE = 7, +NL80211_CMD_DEL_INTERFACE = 8, +NL80211_CMD_GET_KEY = 9, +NL80211_CMD_SET_KEY = 10, +NL80211_CMD_NEW_KEY = 11, +NL80211_CMD_DEL_KEY = 12, +NL80211_CMD_GET_BEACON = 13, +NL80211_CMD_SET_BEACON = 14, +NL80211_CMD_START_AP = 15, +NL80211_CMD_STOP_AP = 16, +NL80211_CMD_GET_STATION = 17, +NL80211_CMD_SET_STATION = 18, +NL80211_CMD_NEW_STATION = 19, +NL80211_CMD_DEL_STATION = 20, +NL80211_CMD_GET_MPATH = 21, +NL80211_CMD_SET_MPATH = 22, +NL80211_CMD_NEW_MPATH = 23, +NL80211_CMD_DEL_MPATH = 24, +NL80211_CMD_SET_BSS = 25, +NL80211_CMD_SET_REG = 26, +NL80211_CMD_REQ_SET_REG = 27, +NL80211_CMD_GET_MESH_CONFIG = 28, +NL80211_CMD_SET_MESH_CONFIG = 29, +NL80211_CMD_SET_MGMT_EXTRA_IE = 30, +NL80211_CMD_GET_REG = 31, +NL80211_CMD_GET_SCAN = 32, +NL80211_CMD_TRIGGER_SCAN = 33, +NL80211_CMD_NEW_SCAN_RESULTS = 34, +NL80211_CMD_SCAN_ABORTED = 35, +NL80211_CMD_REG_CHANGE = 36, +NL80211_CMD_AUTHENTICATE = 37, +NL80211_CMD_ASSOCIATE = 38, +NL80211_CMD_DEAUTHENTICATE = 39, +NL80211_CMD_DISASSOCIATE = 40, +NL80211_CMD_MICHAEL_MIC_FAILURE = 41, +NL80211_CMD_REG_BEACON_HINT = 42, +NL80211_CMD_JOIN_IBSS = 43, +NL80211_CMD_LEAVE_IBSS = 44, +NL80211_CMD_TESTMODE = 45, +NL80211_CMD_CONNECT = 46, +NL80211_CMD_ROAM = 47, +NL80211_CMD_DISCONNECT = 48, +NL80211_CMD_SET_WIPHY_NETNS = 49, +NL80211_CMD_GET_SURVEY = 50, +NL80211_CMD_NEW_SURVEY_RESULTS = 51, +NL80211_CMD_SET_PMKSA = 52, +NL80211_CMD_DEL_PMKSA = 53, +NL80211_CMD_FLUSH_PMKSA = 54, +NL80211_CMD_REMAIN_ON_CHANNEL = 55, +NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL = 56, +NL80211_CMD_SET_TX_BITRATE_MASK = 57, +NL80211_CMD_REGISTER_FRAME = 58, +NL80211_CMD_FRAME = 59, +NL80211_CMD_FRAME_TX_STATUS = 60, +NL80211_CMD_SET_POWER_SAVE = 61, +NL80211_CMD_GET_POWER_SAVE = 62, +NL80211_CMD_SET_CQM = 63, +NL80211_CMD_NOTIFY_CQM = 64, +NL80211_CMD_SET_CHANNEL = 65, +NL80211_CMD_SET_WDS_PEER = 66, +NL80211_CMD_FRAME_WAIT_CANCEL = 67, +NL80211_CMD_JOIN_MESH = 68, +NL80211_CMD_LEAVE_MESH = 69, +NL80211_CMD_UNPROT_DEAUTHENTICATE = 70, +NL80211_CMD_UNPROT_DISASSOCIATE = 71, +NL80211_CMD_NEW_PEER_CANDIDATE = 72, +NL80211_CMD_GET_WOWLAN = 73, +NL80211_CMD_SET_WOWLAN = 74, +NL80211_CMD_START_SCHED_SCAN = 75, +NL80211_CMD_STOP_SCHED_SCAN = 76, +NL80211_CMD_SCHED_SCAN_RESULTS = 77, +NL80211_CMD_SCHED_SCAN_STOPPED = 78, +NL80211_CMD_SET_REKEY_OFFLOAD = 79, +NL80211_CMD_PMKSA_CANDIDATE = 80, +NL80211_CMD_TDLS_OPER = 81, +NL80211_CMD_TDLS_MGMT = 82, +NL80211_CMD_UNEXPECTED_FRAME = 83, +NL80211_CMD_PROBE_CLIENT = 84, +NL80211_CMD_REGISTER_BEACONS = 85, +NL80211_CMD_UNEXPECTED_4ADDR_FRAME = 86, +NL80211_CMD_SET_NOACK_MAP = 87, +NL80211_CMD_CH_SWITCH_NOTIFY = 88, +NL80211_CMD_START_P2P_DEVICE = 89, +NL80211_CMD_STOP_P2P_DEVICE = 90, +NL80211_CMD_CONN_FAILED = 91, +NL80211_CMD_SET_MCAST_RATE = 92, +NL80211_CMD_SET_MAC_ACL = 93, +NL80211_CMD_RADAR_DETECT = 94, +NL80211_CMD_GET_PROTOCOL_FEATURES = 95, +NL80211_CMD_UPDATE_FT_IES = 96, +NL80211_CMD_FT_EVENT = 97, +NL80211_CMD_CRIT_PROTOCOL_START = 98, +NL80211_CMD_CRIT_PROTOCOL_STOP = 99, +NL80211_CMD_GET_COALESCE = 100, +NL80211_CMD_SET_COALESCE = 101, +NL80211_CMD_CHANNEL_SWITCH = 102, +NL80211_CMD_VENDOR = 103, +NL80211_CMD_SET_QOS_MAP = 104, +NL80211_CMD_ADD_TX_TS = 105, +NL80211_CMD_DEL_TX_TS = 106, +NL80211_CMD_GET_MPP = 107, +NL80211_CMD_JOIN_OCB = 108, +NL80211_CMD_LEAVE_OCB = 109, +NL80211_CMD_CH_SWITCH_STARTED_NOTIFY = 110, +NL80211_CMD_TDLS_CHANNEL_SWITCH = 111, +NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH = 112, +NL80211_CMD_WIPHY_REG_CHANGE = 113, +NL80211_CMD_ABORT_SCAN = 114, +NL80211_CMD_START_NAN = 115, +NL80211_CMD_STOP_NAN = 116, +NL80211_CMD_ADD_NAN_FUNCTION = 117, +NL80211_CMD_DEL_NAN_FUNCTION = 118, +NL80211_CMD_CHANGE_NAN_CONFIG = 119, +NL80211_CMD_NAN_MATCH = 120, +NL80211_CMD_SET_MULTICAST_TO_UNICAST = 121, +NL80211_CMD_UPDATE_CONNECT_PARAMS = 122, +NL80211_CMD_SET_PMK = 123, +NL80211_CMD_DEL_PMK = 124, +NL80211_CMD_PORT_AUTHORIZED = 125, +NL80211_CMD_RELOAD_REGDB = 126, +NL80211_CMD_EXTERNAL_AUTH = 127, +NL80211_CMD_STA_OPMODE_CHANGED = 128, +NL80211_CMD_CONTROL_PORT_FRAME = 129, +NL80211_CMD_GET_FTM_RESPONDER_STATS = 130, +NL80211_CMD_PEER_MEASUREMENT_START = 131, +NL80211_CMD_PEER_MEASUREMENT_RESULT = 132, +NL80211_CMD_PEER_MEASUREMENT_COMPLETE = 133, +NL80211_CMD_NOTIFY_RADAR = 134, +NL80211_CMD_UPDATE_OWE_INFO = 135, +NL80211_CMD_PROBE_MESH_LINK = 136, +NL80211_CMD_SET_TID_CONFIG = 137, +NL80211_CMD_UNPROT_BEACON = 138, +NL80211_CMD_CONTROL_PORT_FRAME_TX_STATUS = 139, +NL80211_CMD_SET_SAR_SPECS = 140, +NL80211_CMD_OBSS_COLOR_COLLISION = 141, +NL80211_CMD_COLOR_CHANGE_REQUEST = 142, +NL80211_CMD_COLOR_CHANGE_STARTED = 143, +NL80211_CMD_COLOR_CHANGE_ABORTED = 144, +NL80211_CMD_COLOR_CHANGE_COMPLETED = 145, +NL80211_CMD_SET_FILS_AAD = 146, +NL80211_CMD_ASSOC_COMEBACK = 147, +NL80211_CMD_ADD_LINK = 148, +NL80211_CMD_REMOVE_LINK = 149, +NL80211_CMD_ADD_LINK_STA = 150, +NL80211_CMD_MODIFY_LINK_STA = 151, +NL80211_CMD_REMOVE_LINK_STA = 152, +NL80211_CMD_SET_HW_TIMESTAMP = 153, +NL80211_CMD_LINKS_REMOVED = 154, +NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, +NL80211_CMD_ASSOC_MLO_RECONF = 156, +NL80211_CMD_EPCS_CFG = 157, +__NL80211_CMD_AFTER_LAST = 158, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_attrs { +NL80211_ATTR_UNSPEC = 0, +NL80211_ATTR_WIPHY = 1, +NL80211_ATTR_WIPHY_NAME = 2, +NL80211_ATTR_IFINDEX = 3, +NL80211_ATTR_IFNAME = 4, +NL80211_ATTR_IFTYPE = 5, +NL80211_ATTR_MAC = 6, +NL80211_ATTR_KEY_DATA = 7, +NL80211_ATTR_KEY_IDX = 8, +NL80211_ATTR_KEY_CIPHER = 9, +NL80211_ATTR_KEY_SEQ = 10, +NL80211_ATTR_KEY_DEFAULT = 11, +NL80211_ATTR_BEACON_INTERVAL = 12, +NL80211_ATTR_DTIM_PERIOD = 13, +NL80211_ATTR_BEACON_HEAD = 14, +NL80211_ATTR_BEACON_TAIL = 15, +NL80211_ATTR_STA_AID = 16, +NL80211_ATTR_STA_FLAGS = 17, +NL80211_ATTR_STA_LISTEN_INTERVAL = 18, +NL80211_ATTR_STA_SUPPORTED_RATES = 19, +NL80211_ATTR_STA_VLAN = 20, +NL80211_ATTR_STA_INFO = 21, +NL80211_ATTR_WIPHY_BANDS = 22, +NL80211_ATTR_MNTR_FLAGS = 23, +NL80211_ATTR_MESH_ID = 24, +NL80211_ATTR_STA_PLINK_ACTION = 25, +NL80211_ATTR_MPATH_NEXT_HOP = 26, +NL80211_ATTR_MPATH_INFO = 27, +NL80211_ATTR_BSS_CTS_PROT = 28, +NL80211_ATTR_BSS_SHORT_PREAMBLE = 29, +NL80211_ATTR_BSS_SHORT_SLOT_TIME = 30, +NL80211_ATTR_HT_CAPABILITY = 31, +NL80211_ATTR_SUPPORTED_IFTYPES = 32, +NL80211_ATTR_REG_ALPHA2 = 33, +NL80211_ATTR_REG_RULES = 34, +NL80211_ATTR_MESH_CONFIG = 35, +NL80211_ATTR_BSS_BASIC_RATES = 36, +NL80211_ATTR_WIPHY_TXQ_PARAMS = 37, +NL80211_ATTR_WIPHY_FREQ = 38, +NL80211_ATTR_WIPHY_CHANNEL_TYPE = 39, +NL80211_ATTR_KEY_DEFAULT_MGMT = 40, +NL80211_ATTR_MGMT_SUBTYPE = 41, +NL80211_ATTR_IE = 42, +NL80211_ATTR_MAX_NUM_SCAN_SSIDS = 43, +NL80211_ATTR_SCAN_FREQUENCIES = 44, +NL80211_ATTR_SCAN_SSIDS = 45, +NL80211_ATTR_GENERATION = 46, +NL80211_ATTR_BSS = 47, +NL80211_ATTR_REG_INITIATOR = 48, +NL80211_ATTR_REG_TYPE = 49, +NL80211_ATTR_SUPPORTED_COMMANDS = 50, +NL80211_ATTR_FRAME = 51, +NL80211_ATTR_SSID = 52, +NL80211_ATTR_AUTH_TYPE = 53, +NL80211_ATTR_REASON_CODE = 54, +NL80211_ATTR_KEY_TYPE = 55, +NL80211_ATTR_MAX_SCAN_IE_LEN = 56, +NL80211_ATTR_CIPHER_SUITES = 57, +NL80211_ATTR_FREQ_BEFORE = 58, +NL80211_ATTR_FREQ_AFTER = 59, +NL80211_ATTR_FREQ_FIXED = 60, +NL80211_ATTR_WIPHY_RETRY_SHORT = 61, +NL80211_ATTR_WIPHY_RETRY_LONG = 62, +NL80211_ATTR_WIPHY_FRAG_THRESHOLD = 63, +NL80211_ATTR_WIPHY_RTS_THRESHOLD = 64, +NL80211_ATTR_TIMED_OUT = 65, +NL80211_ATTR_USE_MFP = 66, +NL80211_ATTR_STA_FLAGS2 = 67, +NL80211_ATTR_CONTROL_PORT = 68, +NL80211_ATTR_TESTDATA = 69, +NL80211_ATTR_PRIVACY = 70, +NL80211_ATTR_DISCONNECTED_BY_AP = 71, +NL80211_ATTR_STATUS_CODE = 72, +NL80211_ATTR_CIPHER_SUITES_PAIRWISE = 73, +NL80211_ATTR_CIPHER_SUITE_GROUP = 74, +NL80211_ATTR_WPA_VERSIONS = 75, +NL80211_ATTR_AKM_SUITES = 76, +NL80211_ATTR_REQ_IE = 77, +NL80211_ATTR_RESP_IE = 78, +NL80211_ATTR_PREV_BSSID = 79, +NL80211_ATTR_KEY = 80, +NL80211_ATTR_KEYS = 81, +NL80211_ATTR_PID = 82, +NL80211_ATTR_4ADDR = 83, +NL80211_ATTR_SURVEY_INFO = 84, +NL80211_ATTR_PMKID = 85, +NL80211_ATTR_MAX_NUM_PMKIDS = 86, +NL80211_ATTR_DURATION = 87, +NL80211_ATTR_COOKIE = 88, +NL80211_ATTR_WIPHY_COVERAGE_CLASS = 89, +NL80211_ATTR_TX_RATES = 90, +NL80211_ATTR_FRAME_MATCH = 91, +NL80211_ATTR_ACK = 92, +NL80211_ATTR_PS_STATE = 93, +NL80211_ATTR_CQM = 94, +NL80211_ATTR_LOCAL_STATE_CHANGE = 95, +NL80211_ATTR_AP_ISOLATE = 96, +NL80211_ATTR_WIPHY_TX_POWER_SETTING = 97, +NL80211_ATTR_WIPHY_TX_POWER_LEVEL = 98, +NL80211_ATTR_TX_FRAME_TYPES = 99, +NL80211_ATTR_RX_FRAME_TYPES = 100, +NL80211_ATTR_FRAME_TYPE = 101, +NL80211_ATTR_CONTROL_PORT_ETHERTYPE = 102, +NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT = 103, +NL80211_ATTR_SUPPORT_IBSS_RSN = 104, +NL80211_ATTR_WIPHY_ANTENNA_TX = 105, +NL80211_ATTR_WIPHY_ANTENNA_RX = 106, +NL80211_ATTR_MCAST_RATE = 107, +NL80211_ATTR_OFFCHANNEL_TX_OK = 108, +NL80211_ATTR_BSS_HT_OPMODE = 109, +NL80211_ATTR_KEY_DEFAULT_TYPES = 110, +NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION = 111, +NL80211_ATTR_MESH_SETUP = 112, +NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX = 113, +NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX = 114, +NL80211_ATTR_SUPPORT_MESH_AUTH = 115, +NL80211_ATTR_STA_PLINK_STATE = 116, +NL80211_ATTR_WOWLAN_TRIGGERS = 117, +NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED = 118, +NL80211_ATTR_SCHED_SCAN_INTERVAL = 119, +NL80211_ATTR_INTERFACE_COMBINATIONS = 120, +NL80211_ATTR_SOFTWARE_IFTYPES = 121, +NL80211_ATTR_REKEY_DATA = 122, +NL80211_ATTR_MAX_NUM_SCHED_SCAN_SSIDS = 123, +NL80211_ATTR_MAX_SCHED_SCAN_IE_LEN = 124, +NL80211_ATTR_SCAN_SUPP_RATES = 125, +NL80211_ATTR_HIDDEN_SSID = 126, +NL80211_ATTR_IE_PROBE_RESP = 127, +NL80211_ATTR_IE_ASSOC_RESP = 128, +NL80211_ATTR_STA_WME = 129, +NL80211_ATTR_SUPPORT_AP_UAPSD = 130, +NL80211_ATTR_ROAM_SUPPORT = 131, +NL80211_ATTR_SCHED_SCAN_MATCH = 132, +NL80211_ATTR_MAX_MATCH_SETS = 133, +NL80211_ATTR_PMKSA_CANDIDATE = 134, +NL80211_ATTR_TX_NO_CCK_RATE = 135, +NL80211_ATTR_TDLS_ACTION = 136, +NL80211_ATTR_TDLS_DIALOG_TOKEN = 137, +NL80211_ATTR_TDLS_OPERATION = 138, +NL80211_ATTR_TDLS_SUPPORT = 139, +NL80211_ATTR_TDLS_EXTERNAL_SETUP = 140, +NL80211_ATTR_DEVICE_AP_SME = 141, +NL80211_ATTR_DONT_WAIT_FOR_ACK = 142, +NL80211_ATTR_FEATURE_FLAGS = 143, +NL80211_ATTR_PROBE_RESP_OFFLOAD = 144, +NL80211_ATTR_PROBE_RESP = 145, +NL80211_ATTR_DFS_REGION = 146, +NL80211_ATTR_DISABLE_HT = 147, +NL80211_ATTR_HT_CAPABILITY_MASK = 148, +NL80211_ATTR_NOACK_MAP = 149, +NL80211_ATTR_INACTIVITY_TIMEOUT = 150, +NL80211_ATTR_RX_SIGNAL_DBM = 151, +NL80211_ATTR_BG_SCAN_PERIOD = 152, +NL80211_ATTR_WDEV = 153, +NL80211_ATTR_USER_REG_HINT_TYPE = 154, +NL80211_ATTR_CONN_FAILED_REASON = 155, +NL80211_ATTR_AUTH_DATA = 156, +NL80211_ATTR_VHT_CAPABILITY = 157, +NL80211_ATTR_SCAN_FLAGS = 158, +NL80211_ATTR_CHANNEL_WIDTH = 159, +NL80211_ATTR_CENTER_FREQ1 = 160, +NL80211_ATTR_CENTER_FREQ2 = 161, +NL80211_ATTR_P2P_CTWINDOW = 162, +NL80211_ATTR_P2P_OPPPS = 163, +NL80211_ATTR_LOCAL_MESH_POWER_MODE = 164, +NL80211_ATTR_ACL_POLICY = 165, +NL80211_ATTR_MAC_ADDRS = 166, +NL80211_ATTR_MAC_ACL_MAX = 167, +NL80211_ATTR_RADAR_EVENT = 168, +NL80211_ATTR_EXT_CAPA = 169, +NL80211_ATTR_EXT_CAPA_MASK = 170, +NL80211_ATTR_STA_CAPABILITY = 171, +NL80211_ATTR_STA_EXT_CAPABILITY = 172, +NL80211_ATTR_PROTOCOL_FEATURES = 173, +NL80211_ATTR_SPLIT_WIPHY_DUMP = 174, +NL80211_ATTR_DISABLE_VHT = 175, +NL80211_ATTR_VHT_CAPABILITY_MASK = 176, +NL80211_ATTR_MDID = 177, +NL80211_ATTR_IE_RIC = 178, +NL80211_ATTR_CRIT_PROT_ID = 179, +NL80211_ATTR_MAX_CRIT_PROT_DURATION = 180, +NL80211_ATTR_PEER_AID = 181, +NL80211_ATTR_COALESCE_RULE = 182, +NL80211_ATTR_CH_SWITCH_COUNT = 183, +NL80211_ATTR_CH_SWITCH_BLOCK_TX = 184, +NL80211_ATTR_CSA_IES = 185, +NL80211_ATTR_CNTDWN_OFFS_BEACON = 186, +NL80211_ATTR_CNTDWN_OFFS_PRESP = 187, +NL80211_ATTR_RXMGMT_FLAGS = 188, +NL80211_ATTR_STA_SUPPORTED_CHANNELS = 189, +NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES = 190, +NL80211_ATTR_HANDLE_DFS = 191, +NL80211_ATTR_SUPPORT_5_MHZ = 192, +NL80211_ATTR_SUPPORT_10_MHZ = 193, +NL80211_ATTR_OPMODE_NOTIF = 194, +NL80211_ATTR_VENDOR_ID = 195, +NL80211_ATTR_VENDOR_SUBCMD = 196, +NL80211_ATTR_VENDOR_DATA = 197, +NL80211_ATTR_VENDOR_EVENTS = 198, +NL80211_ATTR_QOS_MAP = 199, +NL80211_ATTR_MAC_HINT = 200, +NL80211_ATTR_WIPHY_FREQ_HINT = 201, +NL80211_ATTR_MAX_AP_ASSOC_STA = 202, +NL80211_ATTR_TDLS_PEER_CAPABILITY = 203, +NL80211_ATTR_SOCKET_OWNER = 204, +NL80211_ATTR_CSA_C_OFFSETS_TX = 205, +NL80211_ATTR_MAX_CSA_COUNTERS = 206, +NL80211_ATTR_TDLS_INITIATOR = 207, +NL80211_ATTR_USE_RRM = 208, +NL80211_ATTR_WIPHY_DYN_ACK = 209, +NL80211_ATTR_TSID = 210, +NL80211_ATTR_USER_PRIO = 211, +NL80211_ATTR_ADMITTED_TIME = 212, +NL80211_ATTR_SMPS_MODE = 213, +NL80211_ATTR_OPER_CLASS = 214, +NL80211_ATTR_MAC_MASK = 215, +NL80211_ATTR_WIPHY_SELF_MANAGED_REG = 216, +NL80211_ATTR_EXT_FEATURES = 217, +NL80211_ATTR_SURVEY_RADIO_STATS = 218, +NL80211_ATTR_NETNS_FD = 219, +NL80211_ATTR_SCHED_SCAN_DELAY = 220, +NL80211_ATTR_REG_INDOOR = 221, +NL80211_ATTR_MAX_NUM_SCHED_SCAN_PLANS = 222, +NL80211_ATTR_MAX_SCAN_PLAN_INTERVAL = 223, +NL80211_ATTR_MAX_SCAN_PLAN_ITERATIONS = 224, +NL80211_ATTR_SCHED_SCAN_PLANS = 225, +NL80211_ATTR_PBSS = 226, +NL80211_ATTR_BSS_SELECT = 227, +NL80211_ATTR_STA_SUPPORT_P2P_PS = 228, +NL80211_ATTR_PAD = 229, +NL80211_ATTR_IFTYPE_EXT_CAPA = 230, +NL80211_ATTR_MU_MIMO_GROUP_DATA = 231, +NL80211_ATTR_MU_MIMO_FOLLOW_MAC_ADDR = 232, +NL80211_ATTR_SCAN_START_TIME_TSF = 233, +NL80211_ATTR_SCAN_START_TIME_TSF_BSSID = 234, +NL80211_ATTR_MEASUREMENT_DURATION = 235, +NL80211_ATTR_MEASUREMENT_DURATION_MANDATORY = 236, +NL80211_ATTR_MESH_PEER_AID = 237, +NL80211_ATTR_NAN_MASTER_PREF = 238, +NL80211_ATTR_BANDS = 239, +NL80211_ATTR_NAN_FUNC = 240, +NL80211_ATTR_NAN_MATCH = 241, +NL80211_ATTR_FILS_KEK = 242, +NL80211_ATTR_FILS_NONCES = 243, +NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED = 244, +NL80211_ATTR_BSSID = 245, +NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI = 246, +NL80211_ATTR_SCHED_SCAN_RSSI_ADJUST = 247, +NL80211_ATTR_TIMEOUT_REASON = 248, +NL80211_ATTR_FILS_ERP_USERNAME = 249, +NL80211_ATTR_FILS_ERP_REALM = 250, +NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM = 251, +NL80211_ATTR_FILS_ERP_RRK = 252, +NL80211_ATTR_FILS_CACHE_ID = 253, +NL80211_ATTR_PMK = 254, +NL80211_ATTR_SCHED_SCAN_MULTI = 255, +NL80211_ATTR_SCHED_SCAN_MAX_REQS = 256, +NL80211_ATTR_WANT_1X_4WAY_HS = 257, +NL80211_ATTR_PMKR0_NAME = 258, +NL80211_ATTR_PORT_AUTHORIZED = 259, +NL80211_ATTR_EXTERNAL_AUTH_ACTION = 260, +NL80211_ATTR_EXTERNAL_AUTH_SUPPORT = 261, +NL80211_ATTR_NSS = 262, +NL80211_ATTR_ACK_SIGNAL = 263, +NL80211_ATTR_CONTROL_PORT_OVER_NL80211 = 264, +NL80211_ATTR_TXQ_STATS = 265, +NL80211_ATTR_TXQ_LIMIT = 266, +NL80211_ATTR_TXQ_MEMORY_LIMIT = 267, +NL80211_ATTR_TXQ_QUANTUM = 268, +NL80211_ATTR_HE_CAPABILITY = 269, +NL80211_ATTR_FTM_RESPONDER = 270, +NL80211_ATTR_FTM_RESPONDER_STATS = 271, +NL80211_ATTR_TIMEOUT = 272, +NL80211_ATTR_PEER_MEASUREMENTS = 273, +NL80211_ATTR_AIRTIME_WEIGHT = 274, +NL80211_ATTR_STA_TX_POWER_SETTING = 275, +NL80211_ATTR_STA_TX_POWER = 276, +NL80211_ATTR_SAE_PASSWORD = 277, +NL80211_ATTR_TWT_RESPONDER = 278, +NL80211_ATTR_HE_OBSS_PD = 279, +NL80211_ATTR_WIPHY_EDMG_CHANNELS = 280, +NL80211_ATTR_WIPHY_EDMG_BW_CONFIG = 281, +NL80211_ATTR_VLAN_ID = 282, +NL80211_ATTR_HE_BSS_COLOR = 283, +NL80211_ATTR_IFTYPE_AKM_SUITES = 284, +NL80211_ATTR_TID_CONFIG = 285, +NL80211_ATTR_CONTROL_PORT_NO_PREAUTH = 286, +NL80211_ATTR_PMK_LIFETIME = 287, +NL80211_ATTR_PMK_REAUTH_THRESHOLD = 288, +NL80211_ATTR_RECEIVE_MULTICAST = 289, +NL80211_ATTR_WIPHY_FREQ_OFFSET = 290, +NL80211_ATTR_CENTER_FREQ1_OFFSET = 291, +NL80211_ATTR_SCAN_FREQ_KHZ = 292, +NL80211_ATTR_HE_6GHZ_CAPABILITY = 293, +NL80211_ATTR_FILS_DISCOVERY = 294, +NL80211_ATTR_UNSOL_BCAST_PROBE_RESP = 295, +NL80211_ATTR_S1G_CAPABILITY = 296, +NL80211_ATTR_S1G_CAPABILITY_MASK = 297, +NL80211_ATTR_SAE_PWE = 298, +NL80211_ATTR_RECONNECT_REQUESTED = 299, +NL80211_ATTR_SAR_SPEC = 300, +NL80211_ATTR_DISABLE_HE = 301, +NL80211_ATTR_OBSS_COLOR_BITMAP = 302, +NL80211_ATTR_COLOR_CHANGE_COUNT = 303, +NL80211_ATTR_COLOR_CHANGE_COLOR = 304, +NL80211_ATTR_COLOR_CHANGE_ELEMS = 305, +NL80211_ATTR_MBSSID_CONFIG = 306, +NL80211_ATTR_MBSSID_ELEMS = 307, +NL80211_ATTR_RADAR_BACKGROUND = 308, +NL80211_ATTR_AP_SETTINGS_FLAGS = 309, +NL80211_ATTR_EHT_CAPABILITY = 310, +NL80211_ATTR_DISABLE_EHT = 311, +NL80211_ATTR_MLO_LINKS = 312, +NL80211_ATTR_MLO_LINK_ID = 313, +NL80211_ATTR_MLD_ADDR = 314, +NL80211_ATTR_MLO_SUPPORT = 315, +NL80211_ATTR_MAX_NUM_AKM_SUITES = 316, +NL80211_ATTR_EML_CAPABILITY = 317, +NL80211_ATTR_MLD_CAPA_AND_OPS = 318, +NL80211_ATTR_TX_HW_TIMESTAMP = 319, +NL80211_ATTR_RX_HW_TIMESTAMP = 320, +NL80211_ATTR_TD_BITMAP = 321, +NL80211_ATTR_PUNCT_BITMAP = 322, +NL80211_ATTR_MAX_HW_TIMESTAMP_PEERS = 323, +NL80211_ATTR_HW_TIMESTAMP_ENABLED = 324, +NL80211_ATTR_EMA_RNR_ELEMS = 325, +NL80211_ATTR_MLO_LINK_DISABLED = 326, +NL80211_ATTR_BSS_DUMP_INCLUDE_USE_DATA = 327, +NL80211_ATTR_MLO_TTLM_DLINK = 328, +NL80211_ATTR_MLO_TTLM_ULINK = 329, +NL80211_ATTR_ASSOC_SPP_AMSDU = 330, +NL80211_ATTR_WIPHY_RADIOS = 331, +NL80211_ATTR_WIPHY_INTERFACE_COMBINATIONS = 332, +NL80211_ATTR_VIF_RADIO_MASK = 333, +NL80211_ATTR_SUPPORTED_SELECTORS = 334, +NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, +NL80211_ATTR_EPCS = 336, +NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +__NL80211_ATTR_AFTER_LAST = 338, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_iftype { +NL80211_IFTYPE_UNSPECIFIED = 0, +NL80211_IFTYPE_ADHOC = 1, +NL80211_IFTYPE_STATION = 2, +NL80211_IFTYPE_AP = 3, +NL80211_IFTYPE_AP_VLAN = 4, +NL80211_IFTYPE_WDS = 5, +NL80211_IFTYPE_MONITOR = 6, +NL80211_IFTYPE_MESH_POINT = 7, +NL80211_IFTYPE_P2P_CLIENT = 8, +NL80211_IFTYPE_P2P_GO = 9, +NL80211_IFTYPE_P2P_DEVICE = 10, +NL80211_IFTYPE_OCB = 11, +NL80211_IFTYPE_NAN = 12, +NUM_NL80211_IFTYPES = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_flags { +__NL80211_STA_FLAG_INVALID = 0, +NL80211_STA_FLAG_AUTHORIZED = 1, +NL80211_STA_FLAG_SHORT_PREAMBLE = 2, +NL80211_STA_FLAG_WME = 3, +NL80211_STA_FLAG_MFP = 4, +NL80211_STA_FLAG_AUTHENTICATED = 5, +NL80211_STA_FLAG_TDLS_PEER = 6, +NL80211_STA_FLAG_ASSOCIATED = 7, +NL80211_STA_FLAG_SPP_AMSDU = 8, +__NL80211_STA_FLAG_AFTER_LAST = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_p2p_ps_status { +NL80211_P2P_PS_UNSUPPORTED = 0, +NL80211_P2P_PS_SUPPORTED = 1, +NUM_NL80211_P2P_PS_STATUS = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_he_gi { +NL80211_RATE_INFO_HE_GI_0_8 = 0, +NL80211_RATE_INFO_HE_GI_1_6 = 1, +NL80211_RATE_INFO_HE_GI_3_2 = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_he_ltf { +NL80211_RATE_INFO_HE_1XLTF = 0, +NL80211_RATE_INFO_HE_2XLTF = 1, +NL80211_RATE_INFO_HE_4XLTF = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_he_ru_alloc { +NL80211_RATE_INFO_HE_RU_ALLOC_26 = 0, +NL80211_RATE_INFO_HE_RU_ALLOC_52 = 1, +NL80211_RATE_INFO_HE_RU_ALLOC_106 = 2, +NL80211_RATE_INFO_HE_RU_ALLOC_242 = 3, +NL80211_RATE_INFO_HE_RU_ALLOC_484 = 4, +NL80211_RATE_INFO_HE_RU_ALLOC_996 = 5, +NL80211_RATE_INFO_HE_RU_ALLOC_2x996 = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_gi { +NL80211_RATE_INFO_EHT_GI_0_8 = 0, +NL80211_RATE_INFO_EHT_GI_1_6 = 1, +NL80211_RATE_INFO_EHT_GI_3_2 = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ru_alloc { +NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, +NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, +NL80211_RATE_INFO_EHT_RU_ALLOC_52P26 = 2, +NL80211_RATE_INFO_EHT_RU_ALLOC_106 = 3, +NL80211_RATE_INFO_EHT_RU_ALLOC_106P26 = 4, +NL80211_RATE_INFO_EHT_RU_ALLOC_242 = 5, +NL80211_RATE_INFO_EHT_RU_ALLOC_484 = 6, +NL80211_RATE_INFO_EHT_RU_ALLOC_484P242 = 7, +NL80211_RATE_INFO_EHT_RU_ALLOC_996 = 8, +NL80211_RATE_INFO_EHT_RU_ALLOC_996P484 = 9, +NL80211_RATE_INFO_EHT_RU_ALLOC_996P484P242 = 10, +NL80211_RATE_INFO_EHT_RU_ALLOC_2x996 = 11, +NL80211_RATE_INFO_EHT_RU_ALLOC_2x996P484 = 12, +NL80211_RATE_INFO_EHT_RU_ALLOC_3x996 = 13, +NL80211_RATE_INFO_EHT_RU_ALLOC_3x996P484 = 14, +NL80211_RATE_INFO_EHT_RU_ALLOC_4x996 = 15, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_rate_info { +__NL80211_RATE_INFO_INVALID = 0, +NL80211_RATE_INFO_BITRATE = 1, +NL80211_RATE_INFO_MCS = 2, +NL80211_RATE_INFO_40_MHZ_WIDTH = 3, +NL80211_RATE_INFO_SHORT_GI = 4, +NL80211_RATE_INFO_BITRATE32 = 5, +NL80211_RATE_INFO_VHT_MCS = 6, +NL80211_RATE_INFO_VHT_NSS = 7, +NL80211_RATE_INFO_80_MHZ_WIDTH = 8, +NL80211_RATE_INFO_80P80_MHZ_WIDTH = 9, +NL80211_RATE_INFO_160_MHZ_WIDTH = 10, +NL80211_RATE_INFO_10_MHZ_WIDTH = 11, +NL80211_RATE_INFO_5_MHZ_WIDTH = 12, +NL80211_RATE_INFO_HE_MCS = 13, +NL80211_RATE_INFO_HE_NSS = 14, +NL80211_RATE_INFO_HE_GI = 15, +NL80211_RATE_INFO_HE_DCM = 16, +NL80211_RATE_INFO_HE_RU_ALLOC = 17, +NL80211_RATE_INFO_320_MHZ_WIDTH = 18, +NL80211_RATE_INFO_EHT_MCS = 19, +NL80211_RATE_INFO_EHT_NSS = 20, +NL80211_RATE_INFO_EHT_GI = 21, +NL80211_RATE_INFO_EHT_RU_ALLOC = 22, +NL80211_RATE_INFO_S1G_MCS = 23, +NL80211_RATE_INFO_S1G_NSS = 24, +NL80211_RATE_INFO_1_MHZ_WIDTH = 25, +NL80211_RATE_INFO_2_MHZ_WIDTH = 26, +NL80211_RATE_INFO_4_MHZ_WIDTH = 27, +NL80211_RATE_INFO_8_MHZ_WIDTH = 28, +NL80211_RATE_INFO_16_MHZ_WIDTH = 29, +__NL80211_RATE_INFO_AFTER_LAST = 30, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_bss_param { +__NL80211_STA_BSS_PARAM_INVALID = 0, +NL80211_STA_BSS_PARAM_CTS_PROT = 1, +NL80211_STA_BSS_PARAM_SHORT_PREAMBLE = 2, +NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME = 3, +NL80211_STA_BSS_PARAM_DTIM_PERIOD = 4, +NL80211_STA_BSS_PARAM_BEACON_INTERVAL = 5, +__NL80211_STA_BSS_PARAM_AFTER_LAST = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_info { +__NL80211_STA_INFO_INVALID = 0, +NL80211_STA_INFO_INACTIVE_TIME = 1, +NL80211_STA_INFO_RX_BYTES = 2, +NL80211_STA_INFO_TX_BYTES = 3, +NL80211_STA_INFO_LLID = 4, +NL80211_STA_INFO_PLID = 5, +NL80211_STA_INFO_PLINK_STATE = 6, +NL80211_STA_INFO_SIGNAL = 7, +NL80211_STA_INFO_TX_BITRATE = 8, +NL80211_STA_INFO_RX_PACKETS = 9, +NL80211_STA_INFO_TX_PACKETS = 10, +NL80211_STA_INFO_TX_RETRIES = 11, +NL80211_STA_INFO_TX_FAILED = 12, +NL80211_STA_INFO_SIGNAL_AVG = 13, +NL80211_STA_INFO_RX_BITRATE = 14, +NL80211_STA_INFO_BSS_PARAM = 15, +NL80211_STA_INFO_CONNECTED_TIME = 16, +NL80211_STA_INFO_STA_FLAGS = 17, +NL80211_STA_INFO_BEACON_LOSS = 18, +NL80211_STA_INFO_T_OFFSET = 19, +NL80211_STA_INFO_LOCAL_PM = 20, +NL80211_STA_INFO_PEER_PM = 21, +NL80211_STA_INFO_NONPEER_PM = 22, +NL80211_STA_INFO_RX_BYTES64 = 23, +NL80211_STA_INFO_TX_BYTES64 = 24, +NL80211_STA_INFO_CHAIN_SIGNAL = 25, +NL80211_STA_INFO_CHAIN_SIGNAL_AVG = 26, +NL80211_STA_INFO_EXPECTED_THROUGHPUT = 27, +NL80211_STA_INFO_RX_DROP_MISC = 28, +NL80211_STA_INFO_BEACON_RX = 29, +NL80211_STA_INFO_BEACON_SIGNAL_AVG = 30, +NL80211_STA_INFO_TID_STATS = 31, +NL80211_STA_INFO_RX_DURATION = 32, +NL80211_STA_INFO_PAD = 33, +NL80211_STA_INFO_ACK_SIGNAL = 34, +NL80211_STA_INFO_ACK_SIGNAL_AVG = 35, +NL80211_STA_INFO_RX_MPDUS = 36, +NL80211_STA_INFO_FCS_ERROR_COUNT = 37, +NL80211_STA_INFO_CONNECTED_TO_GATE = 38, +NL80211_STA_INFO_TX_DURATION = 39, +NL80211_STA_INFO_AIRTIME_WEIGHT = 40, +NL80211_STA_INFO_AIRTIME_LINK_METRIC = 41, +NL80211_STA_INFO_ASSOC_AT_BOOTTIME = 42, +NL80211_STA_INFO_CONNECTED_TO_AS = 43, +__NL80211_STA_INFO_AFTER_LAST = 44, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tid_stats { +__NL80211_TID_STATS_INVALID = 0, +NL80211_TID_STATS_RX_MSDU = 1, +NL80211_TID_STATS_TX_MSDU = 2, +NL80211_TID_STATS_TX_MSDU_RETRIES = 3, +NL80211_TID_STATS_TX_MSDU_FAILED = 4, +NL80211_TID_STATS_PAD = 5, +NL80211_TID_STATS_TXQ_STATS = 6, +NUM_NL80211_TID_STATS = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_txq_stats { +__NL80211_TXQ_STATS_INVALID = 0, +NL80211_TXQ_STATS_BACKLOG_BYTES = 1, +NL80211_TXQ_STATS_BACKLOG_PACKETS = 2, +NL80211_TXQ_STATS_FLOWS = 3, +NL80211_TXQ_STATS_DROPS = 4, +NL80211_TXQ_STATS_ECN_MARKS = 5, +NL80211_TXQ_STATS_OVERLIMIT = 6, +NL80211_TXQ_STATS_OVERMEMORY = 7, +NL80211_TXQ_STATS_COLLISIONS = 8, +NL80211_TXQ_STATS_TX_BYTES = 9, +NL80211_TXQ_STATS_TX_PACKETS = 10, +NL80211_TXQ_STATS_MAX_FLOWS = 11, +NUM_NL80211_TXQ_STATS = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mpath_flags { +NL80211_MPATH_FLAG_ACTIVE = 1, +NL80211_MPATH_FLAG_RESOLVING = 2, +NL80211_MPATH_FLAG_SN_VALID = 4, +NL80211_MPATH_FLAG_FIXED = 8, +NL80211_MPATH_FLAG_RESOLVED = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mpath_info { +__NL80211_MPATH_INFO_INVALID = 0, +NL80211_MPATH_INFO_FRAME_QLEN = 1, +NL80211_MPATH_INFO_SN = 2, +NL80211_MPATH_INFO_METRIC = 3, +NL80211_MPATH_INFO_EXPTIME = 4, +NL80211_MPATH_INFO_FLAGS = 5, +NL80211_MPATH_INFO_DISCOVERY_TIMEOUT = 6, +NL80211_MPATH_INFO_DISCOVERY_RETRIES = 7, +NL80211_MPATH_INFO_HOP_COUNT = 8, +NL80211_MPATH_INFO_PATH_CHANGE = 9, +__NL80211_MPATH_INFO_AFTER_LAST = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_band_iftype_attr { +__NL80211_BAND_IFTYPE_ATTR_INVALID = 0, +NL80211_BAND_IFTYPE_ATTR_IFTYPES = 1, +NL80211_BAND_IFTYPE_ATTR_HE_CAP_MAC = 2, +NL80211_BAND_IFTYPE_ATTR_HE_CAP_PHY = 3, +NL80211_BAND_IFTYPE_ATTR_HE_CAP_MCS_SET = 4, +NL80211_BAND_IFTYPE_ATTR_HE_CAP_PPE = 5, +NL80211_BAND_IFTYPE_ATTR_HE_6GHZ_CAPA = 6, +NL80211_BAND_IFTYPE_ATTR_VENDOR_ELEMS = 7, +NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, +NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, +NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, +NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_band_attr { +__NL80211_BAND_ATTR_INVALID = 0, +NL80211_BAND_ATTR_FREQS = 1, +NL80211_BAND_ATTR_RATES = 2, +NL80211_BAND_ATTR_HT_MCS_SET = 3, +NL80211_BAND_ATTR_HT_CAPA = 4, +NL80211_BAND_ATTR_HT_AMPDU_FACTOR = 5, +NL80211_BAND_ATTR_HT_AMPDU_DENSITY = 6, +NL80211_BAND_ATTR_VHT_MCS_SET = 7, +NL80211_BAND_ATTR_VHT_CAPA = 8, +NL80211_BAND_ATTR_IFTYPE_DATA = 9, +NL80211_BAND_ATTR_EDMG_CHANNELS = 10, +NL80211_BAND_ATTR_EDMG_BW_CONFIG = 11, +NL80211_BAND_ATTR_S1G_MCS_NSS_SET = 12, +NL80211_BAND_ATTR_S1G_CAPA = 13, +__NL80211_BAND_ATTR_AFTER_LAST = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wmm_rule { +__NL80211_WMMR_INVALID = 0, +NL80211_WMMR_CW_MIN = 1, +NL80211_WMMR_CW_MAX = 2, +NL80211_WMMR_AIFSN = 3, +NL80211_WMMR_TXOP = 4, +__NL80211_WMMR_LAST = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_frequency_attr { +__NL80211_FREQUENCY_ATTR_INVALID = 0, +NL80211_FREQUENCY_ATTR_FREQ = 1, +NL80211_FREQUENCY_ATTR_DISABLED = 2, +NL80211_FREQUENCY_ATTR_NO_IR = 3, +__NL80211_FREQUENCY_ATTR_NO_IBSS = 4, +NL80211_FREQUENCY_ATTR_RADAR = 5, +NL80211_FREQUENCY_ATTR_MAX_TX_POWER = 6, +NL80211_FREQUENCY_ATTR_DFS_STATE = 7, +NL80211_FREQUENCY_ATTR_DFS_TIME = 8, +NL80211_FREQUENCY_ATTR_NO_HT40_MINUS = 9, +NL80211_FREQUENCY_ATTR_NO_HT40_PLUS = 10, +NL80211_FREQUENCY_ATTR_NO_80MHZ = 11, +NL80211_FREQUENCY_ATTR_NO_160MHZ = 12, +NL80211_FREQUENCY_ATTR_DFS_CAC_TIME = 13, +NL80211_FREQUENCY_ATTR_INDOOR_ONLY = 14, +NL80211_FREQUENCY_ATTR_IR_CONCURRENT = 15, +NL80211_FREQUENCY_ATTR_NO_20MHZ = 16, +NL80211_FREQUENCY_ATTR_NO_10MHZ = 17, +NL80211_FREQUENCY_ATTR_WMM = 18, +NL80211_FREQUENCY_ATTR_NO_HE = 19, +NL80211_FREQUENCY_ATTR_OFFSET = 20, +NL80211_FREQUENCY_ATTR_1MHZ = 21, +NL80211_FREQUENCY_ATTR_2MHZ = 22, +NL80211_FREQUENCY_ATTR_4MHZ = 23, +NL80211_FREQUENCY_ATTR_8MHZ = 24, +NL80211_FREQUENCY_ATTR_16MHZ = 25, +NL80211_FREQUENCY_ATTR_NO_320MHZ = 26, +NL80211_FREQUENCY_ATTR_NO_EHT = 27, +NL80211_FREQUENCY_ATTR_PSD = 28, +NL80211_FREQUENCY_ATTR_DFS_CONCURRENT = 29, +NL80211_FREQUENCY_ATTR_NO_6GHZ_VLP_CLIENT = 30, +NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, +NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, +NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, +NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bitrate_attr { +__NL80211_BITRATE_ATTR_INVALID = 0, +NL80211_BITRATE_ATTR_RATE = 1, +NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE = 2, +__NL80211_BITRATE_ATTR_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_reg_initiator { +NL80211_REGDOM_SET_BY_CORE = 0, +NL80211_REGDOM_SET_BY_USER = 1, +NL80211_REGDOM_SET_BY_DRIVER = 2, +NL80211_REGDOM_SET_BY_COUNTRY_IE = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_reg_type { +NL80211_REGDOM_TYPE_COUNTRY = 0, +NL80211_REGDOM_TYPE_WORLD = 1, +NL80211_REGDOM_TYPE_CUSTOM_WORLD = 2, +NL80211_REGDOM_TYPE_INTERSECTION = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_reg_rule_attr { +__NL80211_REG_RULE_ATTR_INVALID = 0, +NL80211_ATTR_REG_RULE_FLAGS = 1, +NL80211_ATTR_FREQ_RANGE_START = 2, +NL80211_ATTR_FREQ_RANGE_END = 3, +NL80211_ATTR_FREQ_RANGE_MAX_BW = 4, +NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN = 5, +NL80211_ATTR_POWER_RULE_MAX_EIRP = 6, +NL80211_ATTR_DFS_CAC_TIME = 7, +NL80211_ATTR_POWER_RULE_PSD = 8, +__NL80211_REG_RULE_ATTR_AFTER_LAST = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sched_scan_match_attr { +__NL80211_SCHED_SCAN_MATCH_ATTR_INVALID = 0, +NL80211_SCHED_SCAN_MATCH_ATTR_SSID = 1, +NL80211_SCHED_SCAN_MATCH_ATTR_RSSI = 2, +NL80211_SCHED_SCAN_MATCH_ATTR_RELATIVE_RSSI = 3, +NL80211_SCHED_SCAN_MATCH_ATTR_RSSI_ADJUST = 4, +NL80211_SCHED_SCAN_MATCH_ATTR_BSSID = 5, +NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI = 6, +__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_reg_rule_flags { +NL80211_RRF_NO_OFDM = 1, +NL80211_RRF_NO_CCK = 2, +NL80211_RRF_NO_INDOOR = 4, +NL80211_RRF_NO_OUTDOOR = 8, +NL80211_RRF_DFS = 16, +NL80211_RRF_PTP_ONLY = 32, +NL80211_RRF_PTMP_ONLY = 64, +NL80211_RRF_NO_IR = 128, +__NL80211_RRF_NO_IBSS = 256, +NL80211_RRF_AUTO_BW = 2048, +NL80211_RRF_IR_CONCURRENT = 4096, +NL80211_RRF_NO_HT40MINUS = 8192, +NL80211_RRF_NO_HT40PLUS = 16384, +NL80211_RRF_NO_80MHZ = 32768, +NL80211_RRF_NO_160MHZ = 65536, +NL80211_RRF_NO_HE = 131072, +NL80211_RRF_NO_320MHZ = 262144, +NL80211_RRF_NO_EHT = 524288, +NL80211_RRF_PSD = 1048576, +NL80211_RRF_DFS_CONCURRENT = 2097152, +NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, +NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, +NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, +NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_dfs_regions { +NL80211_DFS_UNSET = 0, +NL80211_DFS_FCC = 1, +NL80211_DFS_ETSI = 2, +NL80211_DFS_JP = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_user_reg_hint_type { +NL80211_USER_REG_HINT_USER = 0, +NL80211_USER_REG_HINT_CELL_BASE = 1, +NL80211_USER_REG_HINT_INDOOR = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_survey_info { +__NL80211_SURVEY_INFO_INVALID = 0, +NL80211_SURVEY_INFO_FREQUENCY = 1, +NL80211_SURVEY_INFO_NOISE = 2, +NL80211_SURVEY_INFO_IN_USE = 3, +NL80211_SURVEY_INFO_TIME = 4, +NL80211_SURVEY_INFO_TIME_BUSY = 5, +NL80211_SURVEY_INFO_TIME_EXT_BUSY = 6, +NL80211_SURVEY_INFO_TIME_RX = 7, +NL80211_SURVEY_INFO_TIME_TX = 8, +NL80211_SURVEY_INFO_TIME_SCAN = 9, +NL80211_SURVEY_INFO_PAD = 10, +NL80211_SURVEY_INFO_TIME_BSS_RX = 11, +NL80211_SURVEY_INFO_FREQUENCY_OFFSET = 12, +__NL80211_SURVEY_INFO_AFTER_LAST = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mntr_flags { +__NL80211_MNTR_FLAG_INVALID = 0, +NL80211_MNTR_FLAG_FCSFAIL = 1, +NL80211_MNTR_FLAG_PLCPFAIL = 2, +NL80211_MNTR_FLAG_CONTROL = 3, +NL80211_MNTR_FLAG_OTHER_BSS = 4, +NL80211_MNTR_FLAG_COOK_FRAMES = 5, +NL80211_MNTR_FLAG_ACTIVE = 6, +NL80211_MNTR_FLAG_SKIP_TX = 7, +__NL80211_MNTR_FLAG_AFTER_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mesh_power_mode { +NL80211_MESH_POWER_UNKNOWN = 0, +NL80211_MESH_POWER_ACTIVE = 1, +NL80211_MESH_POWER_LIGHT_SLEEP = 2, +NL80211_MESH_POWER_DEEP_SLEEP = 3, +__NL80211_MESH_POWER_AFTER_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_meshconf_params { +__NL80211_MESHCONF_INVALID = 0, +NL80211_MESHCONF_RETRY_TIMEOUT = 1, +NL80211_MESHCONF_CONFIRM_TIMEOUT = 2, +NL80211_MESHCONF_HOLDING_TIMEOUT = 3, +NL80211_MESHCONF_MAX_PEER_LINKS = 4, +NL80211_MESHCONF_MAX_RETRIES = 5, +NL80211_MESHCONF_TTL = 6, +NL80211_MESHCONF_AUTO_OPEN_PLINKS = 7, +NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES = 8, +NL80211_MESHCONF_PATH_REFRESH_TIME = 9, +NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT = 10, +NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT = 11, +NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL = 12, +NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME = 13, +NL80211_MESHCONF_HWMP_ROOTMODE = 14, +NL80211_MESHCONF_ELEMENT_TTL = 15, +NL80211_MESHCONF_HWMP_RANN_INTERVAL = 16, +NL80211_MESHCONF_GATE_ANNOUNCEMENTS = 17, +NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL = 18, +NL80211_MESHCONF_FORWARDING = 19, +NL80211_MESHCONF_RSSI_THRESHOLD = 20, +NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR = 21, +NL80211_MESHCONF_HT_OPMODE = 22, +NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT = 23, +NL80211_MESHCONF_HWMP_ROOT_INTERVAL = 24, +NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL = 25, +NL80211_MESHCONF_POWER_MODE = 26, +NL80211_MESHCONF_AWAKE_WINDOW = 27, +NL80211_MESHCONF_PLINK_TIMEOUT = 28, +NL80211_MESHCONF_CONNECTED_TO_GATE = 29, +NL80211_MESHCONF_NOLEARN = 30, +NL80211_MESHCONF_CONNECTED_TO_AS = 31, +__NL80211_MESHCONF_ATTR_AFTER_LAST = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mesh_setup_params { +__NL80211_MESH_SETUP_INVALID = 0, +NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL = 1, +NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC = 2, +NL80211_MESH_SETUP_IE = 3, +NL80211_MESH_SETUP_USERSPACE_AUTH = 4, +NL80211_MESH_SETUP_USERSPACE_AMPE = 5, +NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC = 6, +NL80211_MESH_SETUP_USERSPACE_MPM = 7, +NL80211_MESH_SETUP_AUTH_PROTOCOL = 8, +__NL80211_MESH_SETUP_ATTR_AFTER_LAST = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_txq_attr { +__NL80211_TXQ_ATTR_INVALID = 0, +NL80211_TXQ_ATTR_AC = 1, +NL80211_TXQ_ATTR_TXOP = 2, +NL80211_TXQ_ATTR_CWMIN = 3, +NL80211_TXQ_ATTR_CWMAX = 4, +NL80211_TXQ_ATTR_AIFS = 5, +__NL80211_TXQ_ATTR_AFTER_LAST = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ac { +NL80211_AC_VO = 0, +NL80211_AC_VI = 1, +NL80211_AC_BE = 2, +NL80211_AC_BK = 3, +NL80211_NUM_ACS = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_channel_type { +NL80211_CHAN_NO_HT = 0, +NL80211_CHAN_HT20 = 1, +NL80211_CHAN_HT40MINUS = 2, +NL80211_CHAN_HT40PLUS = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_key_mode { +NL80211_KEY_RX_TX = 0, +NL80211_KEY_NO_TX = 1, +NL80211_KEY_SET_TX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_chan_width { +NL80211_CHAN_WIDTH_20_NOHT = 0, +NL80211_CHAN_WIDTH_20 = 1, +NL80211_CHAN_WIDTH_40 = 2, +NL80211_CHAN_WIDTH_80 = 3, +NL80211_CHAN_WIDTH_80P80 = 4, +NL80211_CHAN_WIDTH_160 = 5, +NL80211_CHAN_WIDTH_5 = 6, +NL80211_CHAN_WIDTH_10 = 7, +NL80211_CHAN_WIDTH_1 = 8, +NL80211_CHAN_WIDTH_2 = 9, +NL80211_CHAN_WIDTH_4 = 10, +NL80211_CHAN_WIDTH_8 = 11, +NL80211_CHAN_WIDTH_16 = 12, +NL80211_CHAN_WIDTH_320 = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_scan_width { +NL80211_BSS_CHAN_WIDTH_20 = 0, +NL80211_BSS_CHAN_WIDTH_10 = 1, +NL80211_BSS_CHAN_WIDTH_5 = 2, +NL80211_BSS_CHAN_WIDTH_1 = 3, +NL80211_BSS_CHAN_WIDTH_2 = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_use_for { +NL80211_BSS_USE_FOR_NORMAL = 1, +NL80211_BSS_USE_FOR_MLD_LINK = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_cannot_use_reasons { +NL80211_BSS_CANNOT_USE_NSTR_NONPRIMARY = 1, +NL80211_BSS_CANNOT_USE_6GHZ_PWR_MISMATCH = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss { +__NL80211_BSS_INVALID = 0, +NL80211_BSS_BSSID = 1, +NL80211_BSS_FREQUENCY = 2, +NL80211_BSS_TSF = 3, +NL80211_BSS_BEACON_INTERVAL = 4, +NL80211_BSS_CAPABILITY = 5, +NL80211_BSS_INFORMATION_ELEMENTS = 6, +NL80211_BSS_SIGNAL_MBM = 7, +NL80211_BSS_SIGNAL_UNSPEC = 8, +NL80211_BSS_STATUS = 9, +NL80211_BSS_SEEN_MS_AGO = 10, +NL80211_BSS_BEACON_IES = 11, +NL80211_BSS_CHAN_WIDTH = 12, +NL80211_BSS_BEACON_TSF = 13, +NL80211_BSS_PRESP_DATA = 14, +NL80211_BSS_LAST_SEEN_BOOTTIME = 15, +NL80211_BSS_PAD = 16, +NL80211_BSS_PARENT_TSF = 17, +NL80211_BSS_PARENT_BSSID = 18, +NL80211_BSS_CHAIN_SIGNAL = 19, +NL80211_BSS_FREQUENCY_OFFSET = 20, +NL80211_BSS_MLO_LINK_ID = 21, +NL80211_BSS_MLD_ADDR = 22, +NL80211_BSS_USE_FOR = 23, +NL80211_BSS_CANNOT_USE_REASONS = 24, +__NL80211_BSS_AFTER_LAST = 25, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_status { +NL80211_BSS_STATUS_AUTHENTICATED = 0, +NL80211_BSS_STATUS_ASSOCIATED = 1, +NL80211_BSS_STATUS_IBSS_JOINED = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_auth_type { +NL80211_AUTHTYPE_OPEN_SYSTEM = 0, +NL80211_AUTHTYPE_SHARED_KEY = 1, +NL80211_AUTHTYPE_FT = 2, +NL80211_AUTHTYPE_NETWORK_EAP = 3, +NL80211_AUTHTYPE_SAE = 4, +NL80211_AUTHTYPE_FILS_SK = 5, +NL80211_AUTHTYPE_FILS_SK_PFS = 6, +NL80211_AUTHTYPE_FILS_PK = 7, +__NL80211_AUTHTYPE_NUM = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_key_type { +NL80211_KEYTYPE_GROUP = 0, +NL80211_KEYTYPE_PAIRWISE = 1, +NL80211_KEYTYPE_PEERKEY = 2, +NUM_NL80211_KEYTYPES = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mfp { +NL80211_MFP_NO = 0, +NL80211_MFP_REQUIRED = 1, +NL80211_MFP_OPTIONAL = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wpa_versions { +NL80211_WPA_VERSION_1 = 1, +NL80211_WPA_VERSION_2 = 2, +NL80211_WPA_VERSION_3 = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_key_default_types { +__NL80211_KEY_DEFAULT_TYPE_INVALID = 0, +NL80211_KEY_DEFAULT_TYPE_UNICAST = 1, +NL80211_KEY_DEFAULT_TYPE_MULTICAST = 2, +NUM_NL80211_KEY_DEFAULT_TYPES = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_key_attributes { +__NL80211_KEY_INVALID = 0, +NL80211_KEY_DATA = 1, +NL80211_KEY_IDX = 2, +NL80211_KEY_CIPHER = 3, +NL80211_KEY_SEQ = 4, +NL80211_KEY_DEFAULT = 5, +NL80211_KEY_DEFAULT_MGMT = 6, +NL80211_KEY_TYPE = 7, +NL80211_KEY_DEFAULT_TYPES = 8, +NL80211_KEY_MODE = 9, +NL80211_KEY_DEFAULT_BEACON = 10, +__NL80211_KEY_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tx_rate_attributes { +__NL80211_TXRATE_INVALID = 0, +NL80211_TXRATE_LEGACY = 1, +NL80211_TXRATE_HT = 2, +NL80211_TXRATE_VHT = 3, +NL80211_TXRATE_GI = 4, +NL80211_TXRATE_HE = 5, +NL80211_TXRATE_HE_GI = 6, +NL80211_TXRATE_HE_LTF = 7, +__NL80211_TXRATE_AFTER_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_txrate_gi { +NL80211_TXRATE_DEFAULT_GI = 0, +NL80211_TXRATE_FORCE_SGI = 1, +NL80211_TXRATE_FORCE_LGI = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_band { +NL80211_BAND_2GHZ = 0, +NL80211_BAND_5GHZ = 1, +NL80211_BAND_60GHZ = 2, +NL80211_BAND_6GHZ = 3, +NL80211_BAND_S1GHZ = 4, +NL80211_BAND_LC = 5, +NUM_NL80211_BANDS = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ps_state { +NL80211_PS_DISABLED = 0, +NL80211_PS_ENABLED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_attr_cqm { +__NL80211_ATTR_CQM_INVALID = 0, +NL80211_ATTR_CQM_RSSI_THOLD = 1, +NL80211_ATTR_CQM_RSSI_HYST = 2, +NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT = 3, +NL80211_ATTR_CQM_PKT_LOSS_EVENT = 4, +NL80211_ATTR_CQM_TXE_RATE = 5, +NL80211_ATTR_CQM_TXE_PKTS = 6, +NL80211_ATTR_CQM_TXE_INTVL = 7, +NL80211_ATTR_CQM_BEACON_LOSS_EVENT = 8, +NL80211_ATTR_CQM_RSSI_LEVEL = 9, +__NL80211_ATTR_CQM_AFTER_LAST = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_cqm_rssi_threshold_event { +NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW = 0, +NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH = 1, +NL80211_CQM_RSSI_BEACON_LOSS_EVENT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tx_power_setting { +NL80211_TX_POWER_AUTOMATIC = 0, +NL80211_TX_POWER_LIMITED = 1, +NL80211_TX_POWER_FIXED = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tid_config { +NL80211_TID_CONFIG_ENABLE = 0, +NL80211_TID_CONFIG_DISABLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tx_rate_setting { +NL80211_TX_RATE_AUTOMATIC = 0, +NL80211_TX_RATE_LIMITED = 1, +NL80211_TX_RATE_FIXED = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tid_config_attr { +__NL80211_TID_CONFIG_ATTR_INVALID = 0, +NL80211_TID_CONFIG_ATTR_PAD = 1, +NL80211_TID_CONFIG_ATTR_VIF_SUPP = 2, +NL80211_TID_CONFIG_ATTR_PEER_SUPP = 3, +NL80211_TID_CONFIG_ATTR_OVERRIDE = 4, +NL80211_TID_CONFIG_ATTR_TIDS = 5, +NL80211_TID_CONFIG_ATTR_NOACK = 6, +NL80211_TID_CONFIG_ATTR_RETRY_SHORT = 7, +NL80211_TID_CONFIG_ATTR_RETRY_LONG = 8, +NL80211_TID_CONFIG_ATTR_AMPDU_CTRL = 9, +NL80211_TID_CONFIG_ATTR_RTSCTS_CTRL = 10, +NL80211_TID_CONFIG_ATTR_AMSDU_CTRL = 11, +NL80211_TID_CONFIG_ATTR_TX_RATE_TYPE = 12, +NL80211_TID_CONFIG_ATTR_TX_RATE = 13, +__NL80211_TID_CONFIG_ATTR_AFTER_LAST = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_packet_pattern_attr { +__NL80211_PKTPAT_INVALID = 0, +NL80211_PKTPAT_MASK = 1, +NL80211_PKTPAT_PATTERN = 2, +NL80211_PKTPAT_OFFSET = 3, +NUM_NL80211_PKTPAT = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wowlan_triggers { +__NL80211_WOWLAN_TRIG_INVALID = 0, +NL80211_WOWLAN_TRIG_ANY = 1, +NL80211_WOWLAN_TRIG_DISCONNECT = 2, +NL80211_WOWLAN_TRIG_MAGIC_PKT = 3, +NL80211_WOWLAN_TRIG_PKT_PATTERN = 4, +NL80211_WOWLAN_TRIG_GTK_REKEY_SUPPORTED = 5, +NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE = 6, +NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST = 7, +NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE = 8, +NL80211_WOWLAN_TRIG_RFKILL_RELEASE = 9, +NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211 = 10, +NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN = 11, +NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023 = 12, +NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN = 13, +NL80211_WOWLAN_TRIG_TCP_CONNECTION = 14, +NL80211_WOWLAN_TRIG_WAKEUP_TCP_MATCH = 15, +NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST = 16, +NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS = 17, +NL80211_WOWLAN_TRIG_NET_DETECT = 18, +NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS = 19, +NL80211_WOWLAN_TRIG_UNPROTECTED_DEAUTH_DISASSOC = 20, +NUM_NL80211_WOWLAN_TRIG = 21, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wowlan_tcp_attrs { +__NL80211_WOWLAN_TCP_INVALID = 0, +NL80211_WOWLAN_TCP_SRC_IPV4 = 1, +NL80211_WOWLAN_TCP_DST_IPV4 = 2, +NL80211_WOWLAN_TCP_DST_MAC = 3, +NL80211_WOWLAN_TCP_SRC_PORT = 4, +NL80211_WOWLAN_TCP_DST_PORT = 5, +NL80211_WOWLAN_TCP_DATA_PAYLOAD = 6, +NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ = 7, +NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN = 8, +NL80211_WOWLAN_TCP_DATA_INTERVAL = 9, +NL80211_WOWLAN_TCP_WAKE_PAYLOAD = 10, +NL80211_WOWLAN_TCP_WAKE_MASK = 11, +NUM_NL80211_WOWLAN_TCP = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_attr_coalesce_rule { +__NL80211_COALESCE_RULE_INVALID = 0, +NL80211_ATTR_COALESCE_RULE_DELAY = 1, +NL80211_ATTR_COALESCE_RULE_CONDITION = 2, +NL80211_ATTR_COALESCE_RULE_PKT_PATTERN = 3, +NUM_NL80211_ATTR_COALESCE_RULE = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_coalesce_condition { +NL80211_COALESCE_CONDITION_MATCH = 0, +NL80211_COALESCE_CONDITION_NO_MATCH = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_iface_limit_attrs { +NL80211_IFACE_LIMIT_UNSPEC = 0, +NL80211_IFACE_LIMIT_MAX = 1, +NL80211_IFACE_LIMIT_TYPES = 2, +NUM_NL80211_IFACE_LIMIT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_if_combination_attrs { +NL80211_IFACE_COMB_UNSPEC = 0, +NL80211_IFACE_COMB_LIMITS = 1, +NL80211_IFACE_COMB_MAXNUM = 2, +NL80211_IFACE_COMB_STA_AP_BI_MATCH = 3, +NL80211_IFACE_COMB_NUM_CHANNELS = 4, +NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS = 5, +NL80211_IFACE_COMB_RADAR_DETECT_REGIONS = 6, +NL80211_IFACE_COMB_BI_MIN_GCD = 7, +NUM_NL80211_IFACE_COMB = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_plink_state { +NL80211_PLINK_LISTEN = 0, +NL80211_PLINK_OPN_SNT = 1, +NL80211_PLINK_OPN_RCVD = 2, +NL80211_PLINK_CNF_RCVD = 3, +NL80211_PLINK_ESTAB = 4, +NL80211_PLINK_HOLDING = 5, +NL80211_PLINK_BLOCKED = 6, +NUM_NL80211_PLINK_STATES = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_plink_action { +NL80211_PLINK_ACTION_NO_ACTION = 0, +NL80211_PLINK_ACTION_OPEN = 1, +NL80211_PLINK_ACTION_BLOCK = 2, +NUM_NL80211_PLINK_ACTIONS = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_rekey_data { +__NL80211_REKEY_DATA_INVALID = 0, +NL80211_REKEY_DATA_KEK = 1, +NL80211_REKEY_DATA_KCK = 2, +NL80211_REKEY_DATA_REPLAY_CTR = 3, +NL80211_REKEY_DATA_AKM = 4, +NUM_NL80211_REKEY_DATA = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_hidden_ssid { +NL80211_HIDDEN_SSID_NOT_IN_USE = 0, +NL80211_HIDDEN_SSID_ZERO_LEN = 1, +NL80211_HIDDEN_SSID_ZERO_CONTENTS = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_wme_attr { +__NL80211_STA_WME_INVALID = 0, +NL80211_STA_WME_UAPSD_QUEUES = 1, +NL80211_STA_WME_MAX_SP = 2, +__NL80211_STA_WME_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_pmksa_candidate_attr { +__NL80211_PMKSA_CANDIDATE_INVALID = 0, +NL80211_PMKSA_CANDIDATE_INDEX = 1, +NL80211_PMKSA_CANDIDATE_BSSID = 2, +NL80211_PMKSA_CANDIDATE_PREAUTH = 3, +NUM_NL80211_PMKSA_CANDIDATE = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tdls_operation { +NL80211_TDLS_DISCOVERY_REQ = 0, +NL80211_TDLS_SETUP = 1, +NL80211_TDLS_TEARDOWN = 2, +NL80211_TDLS_ENABLE_LINK = 3, +NL80211_TDLS_DISABLE_LINK = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ap_sme_features { +NL80211_AP_SME_SA_QUERY_OFFLOAD = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_feature_flags { +NL80211_FEATURE_SK_TX_STATUS = 1, +NL80211_FEATURE_HT_IBSS = 2, +NL80211_FEATURE_INACTIVITY_TIMER = 4, +NL80211_FEATURE_CELL_BASE_REG_HINTS = 8, +NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL = 16, +NL80211_FEATURE_SAE = 32, +NL80211_FEATURE_LOW_PRIORITY_SCAN = 64, +NL80211_FEATURE_SCAN_FLUSH = 128, +NL80211_FEATURE_AP_SCAN = 256, +NL80211_FEATURE_VIF_TXPOWER = 512, +NL80211_FEATURE_NEED_OBSS_SCAN = 1024, +NL80211_FEATURE_P2P_GO_CTWIN = 2048, +NL80211_FEATURE_P2P_GO_OPPPS = 4096, +NL80211_FEATURE_ADVERTISE_CHAN_LIMITS = 16384, +NL80211_FEATURE_FULL_AP_CLIENT_STATE = 32768, +NL80211_FEATURE_USERSPACE_MPM = 65536, +NL80211_FEATURE_ACTIVE_MONITOR = 131072, +NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE = 262144, +NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES = 524288, +NL80211_FEATURE_WFA_TPC_IE_IN_PROBES = 1048576, +NL80211_FEATURE_QUIET = 2097152, +NL80211_FEATURE_TX_POWER_INSERTION = 4194304, +NL80211_FEATURE_ACKTO_ESTIMATION = 8388608, +NL80211_FEATURE_STATIC_SMPS = 16777216, +NL80211_FEATURE_DYNAMIC_SMPS = 33554432, +NL80211_FEATURE_SUPPORTS_WMM_ADMISSION = 67108864, +NL80211_FEATURE_MAC_ON_CREATE = 134217728, +NL80211_FEATURE_TDLS_CHANNEL_SWITCH = 268435456, +NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR = 536870912, +NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR = 1073741824, +NL80211_FEATURE_ND_RANDOM_MAC_ADDR = 2147483648, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ext_feature_index { +NL80211_EXT_FEATURE_VHT_IBSS = 0, +NL80211_EXT_FEATURE_RRM = 1, +NL80211_EXT_FEATURE_MU_MIMO_AIR_SNIFFER = 2, +NL80211_EXT_FEATURE_SCAN_START_TIME = 3, +NL80211_EXT_FEATURE_BSS_PARENT_TSF = 4, +NL80211_EXT_FEATURE_SET_SCAN_DWELL = 5, +NL80211_EXT_FEATURE_BEACON_RATE_LEGACY = 6, +NL80211_EXT_FEATURE_BEACON_RATE_HT = 7, +NL80211_EXT_FEATURE_BEACON_RATE_VHT = 8, +NL80211_EXT_FEATURE_FILS_STA = 9, +NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA = 10, +NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED = 11, +NL80211_EXT_FEATURE_SCHED_SCAN_RELATIVE_RSSI = 12, +NL80211_EXT_FEATURE_CQM_RSSI_LIST = 13, +NL80211_EXT_FEATURE_FILS_SK_OFFLOAD = 14, +NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_PSK = 15, +NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X = 16, +NL80211_EXT_FEATURE_FILS_MAX_CHANNEL_TIME = 17, +NL80211_EXT_FEATURE_ACCEPT_BCAST_PROBE_RESP = 18, +NL80211_EXT_FEATURE_OCE_PROBE_REQ_HIGH_TX_RATE = 19, +NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION = 20, +NL80211_EXT_FEATURE_MFP_OPTIONAL = 21, +NL80211_EXT_FEATURE_LOW_SPAN_SCAN = 22, +NL80211_EXT_FEATURE_LOW_POWER_SCAN = 23, +NL80211_EXT_FEATURE_HIGH_ACCURACY_SCAN = 24, +NL80211_EXT_FEATURE_DFS_OFFLOAD = 25, +NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211 = 26, +NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT = 27, +NL80211_EXT_FEATURE_TXQS = 28, +NL80211_EXT_FEATURE_SCAN_RANDOM_SN = 29, +NL80211_EXT_FEATURE_SCAN_MIN_PREQ_CONTENT = 30, +NL80211_EXT_FEATURE_CAN_REPLACE_PTK0 = 31, +NL80211_EXT_FEATURE_ENABLE_FTM_RESPONDER = 32, +NL80211_EXT_FEATURE_AIRTIME_FAIRNESS = 33, +NL80211_EXT_FEATURE_AP_PMKSA_CACHING = 34, +NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD = 35, +NL80211_EXT_FEATURE_EXT_KEY_ID = 36, +NL80211_EXT_FEATURE_STA_TX_PWR = 37, +NL80211_EXT_FEATURE_SAE_OFFLOAD = 38, +NL80211_EXT_FEATURE_VLAN_OFFLOAD = 39, +NL80211_EXT_FEATURE_AQL = 40, +NL80211_EXT_FEATURE_BEACON_PROTECTION = 41, +NL80211_EXT_FEATURE_CONTROL_PORT_NO_PREAUTH = 42, +NL80211_EXT_FEATURE_PROTECTED_TWT = 43, +NL80211_EXT_FEATURE_DEL_IBSS_STA = 44, +NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS = 45, +NL80211_EXT_FEATURE_BEACON_PROTECTION_CLIENT = 46, +NL80211_EXT_FEATURE_SCAN_FREQ_KHZ = 47, +NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211_TX_STATUS = 48, +NL80211_EXT_FEATURE_OPERATING_CHANNEL_VALIDATION = 49, +NL80211_EXT_FEATURE_4WAY_HANDSHAKE_AP_PSK = 50, +NL80211_EXT_FEATURE_SAE_OFFLOAD_AP = 51, +NL80211_EXT_FEATURE_FILS_DISCOVERY = 52, +NL80211_EXT_FEATURE_UNSOL_BCAST_PROBE_RESP = 53, +NL80211_EXT_FEATURE_BEACON_RATE_HE = 54, +NL80211_EXT_FEATURE_SECURE_LTF = 55, +NL80211_EXT_FEATURE_SECURE_RTT = 56, +NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE = 57, +NL80211_EXT_FEATURE_BSS_COLOR = 58, +NL80211_EXT_FEATURE_FILS_CRYPTO_OFFLOAD = 59, +NL80211_EXT_FEATURE_RADAR_BACKGROUND = 60, +NL80211_EXT_FEATURE_POWERED_ADDR_CHANGE = 61, +NL80211_EXT_FEATURE_PUNCT = 62, +NL80211_EXT_FEATURE_SECURE_NAN = 63, +NL80211_EXT_FEATURE_AUTH_AND_DEAUTH_RANDOM_TA = 64, +NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, +NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, +NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, +NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, +NUM_NL80211_EXT_FEATURES = 69, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_probe_resp_offload_support_attr { +NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS = 1, +NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2 = 2, +NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P = 4, +NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_connect_failed_reason { +NL80211_CONN_FAIL_MAX_CLIENTS = 0, +NL80211_CONN_FAIL_BLOCKED_CLIENT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_timeout_reason { +NL80211_TIMEOUT_UNSPECIFIED = 0, +NL80211_TIMEOUT_SCAN = 1, +NL80211_TIMEOUT_AUTH = 2, +NL80211_TIMEOUT_ASSOC = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_scan_flags { +NL80211_SCAN_FLAG_LOW_PRIORITY = 1, +NL80211_SCAN_FLAG_FLUSH = 2, +NL80211_SCAN_FLAG_AP = 4, +NL80211_SCAN_FLAG_RANDOM_ADDR = 8, +NL80211_SCAN_FLAG_FILS_MAX_CHANNEL_TIME = 16, +NL80211_SCAN_FLAG_ACCEPT_BCAST_PROBE_RESP = 32, +NL80211_SCAN_FLAG_OCE_PROBE_REQ_HIGH_TX_RATE = 64, +NL80211_SCAN_FLAG_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION = 128, +NL80211_SCAN_FLAG_LOW_SPAN = 256, +NL80211_SCAN_FLAG_LOW_POWER = 512, +NL80211_SCAN_FLAG_HIGH_ACCURACY = 1024, +NL80211_SCAN_FLAG_RANDOM_SN = 2048, +NL80211_SCAN_FLAG_MIN_PREQ_CONTENT = 4096, +NL80211_SCAN_FLAG_FREQ_KHZ = 8192, +NL80211_SCAN_FLAG_COLOCATED_6GHZ = 16384, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_acl_policy { +NL80211_ACL_POLICY_ACCEPT_UNLESS_LISTED = 0, +NL80211_ACL_POLICY_DENY_UNLESS_LISTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_smps_mode { +NL80211_SMPS_OFF = 0, +NL80211_SMPS_STATIC = 1, +NL80211_SMPS_DYNAMIC = 2, +__NL80211_SMPS_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_radar_event { +NL80211_RADAR_DETECTED = 0, +NL80211_RADAR_CAC_FINISHED = 1, +NL80211_RADAR_CAC_ABORTED = 2, +NL80211_RADAR_NOP_FINISHED = 3, +NL80211_RADAR_PRE_CAC_EXPIRED = 4, +NL80211_RADAR_CAC_STARTED = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_dfs_state { +NL80211_DFS_USABLE = 0, +NL80211_DFS_UNAVAILABLE = 1, +NL80211_DFS_AVAILABLE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_protocol_features { +NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_crit_proto_id { +NL80211_CRIT_PROTO_UNSPEC = 0, +NL80211_CRIT_PROTO_DHCP = 1, +NL80211_CRIT_PROTO_EAPOL = 2, +NL80211_CRIT_PROTO_APIPA = 3, +NUM_NL80211_CRIT_PROTO = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_rxmgmt_flags { +NL80211_RXMGMT_FLAG_ANSWERED = 1, +NL80211_RXMGMT_FLAG_EXTERNAL_AUTH = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tdls_peer_capability { +NL80211_TDLS_PEER_HT = 1, +NL80211_TDLS_PEER_VHT = 2, +NL80211_TDLS_PEER_WMM = 4, +NL80211_TDLS_PEER_HE = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sched_scan_plan { +__NL80211_SCHED_SCAN_PLAN_INVALID = 0, +NL80211_SCHED_SCAN_PLAN_INTERVAL = 1, +NL80211_SCHED_SCAN_PLAN_ITERATIONS = 2, +__NL80211_SCHED_SCAN_PLAN_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_select_attr { +__NL80211_BSS_SELECT_ATTR_INVALID = 0, +NL80211_BSS_SELECT_ATTR_RSSI = 1, +NL80211_BSS_SELECT_ATTR_BAND_PREF = 2, +NL80211_BSS_SELECT_ATTR_RSSI_ADJUST = 3, +__NL80211_BSS_SELECT_ATTR_AFTER_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_function_type { +NL80211_NAN_FUNC_PUBLISH = 0, +NL80211_NAN_FUNC_SUBSCRIBE = 1, +NL80211_NAN_FUNC_FOLLOW_UP = 2, +__NL80211_NAN_FUNC_TYPE_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_publish_type { +NL80211_NAN_SOLICITED_PUBLISH = 1, +NL80211_NAN_UNSOLICITED_PUBLISH = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_func_term_reason { +NL80211_NAN_FUNC_TERM_REASON_USER_REQUEST = 0, +NL80211_NAN_FUNC_TERM_REASON_TTL_EXPIRED = 1, +NL80211_NAN_FUNC_TERM_REASON_ERROR = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_func_attributes { +__NL80211_NAN_FUNC_INVALID = 0, +NL80211_NAN_FUNC_TYPE = 1, +NL80211_NAN_FUNC_SERVICE_ID = 2, +NL80211_NAN_FUNC_PUBLISH_TYPE = 3, +NL80211_NAN_FUNC_PUBLISH_BCAST = 4, +NL80211_NAN_FUNC_SUBSCRIBE_ACTIVE = 5, +NL80211_NAN_FUNC_FOLLOW_UP_ID = 6, +NL80211_NAN_FUNC_FOLLOW_UP_REQ_ID = 7, +NL80211_NAN_FUNC_FOLLOW_UP_DEST = 8, +NL80211_NAN_FUNC_CLOSE_RANGE = 9, +NL80211_NAN_FUNC_TTL = 10, +NL80211_NAN_FUNC_SERVICE_INFO = 11, +NL80211_NAN_FUNC_SRF = 12, +NL80211_NAN_FUNC_RX_MATCH_FILTER = 13, +NL80211_NAN_FUNC_TX_MATCH_FILTER = 14, +NL80211_NAN_FUNC_INSTANCE_ID = 15, +NL80211_NAN_FUNC_TERM_REASON = 16, +NUM_NL80211_NAN_FUNC_ATTR = 17, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_srf_attributes { +__NL80211_NAN_SRF_INVALID = 0, +NL80211_NAN_SRF_INCLUDE = 1, +NL80211_NAN_SRF_BF = 2, +NL80211_NAN_SRF_BF_IDX = 3, +NL80211_NAN_SRF_MAC_ADDRS = 4, +NUM_NL80211_NAN_SRF_ATTR = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_match_attributes { +__NL80211_NAN_MATCH_INVALID = 0, +NL80211_NAN_MATCH_FUNC_LOCAL = 1, +NL80211_NAN_MATCH_FUNC_PEER = 2, +NUM_NL80211_NAN_MATCH_ATTR = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_external_auth_action { +NL80211_EXTERNAL_AUTH_START = 0, +NL80211_EXTERNAL_AUTH_ABORT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ftm_responder_attributes { +__NL80211_FTM_RESP_ATTR_INVALID = 0, +NL80211_FTM_RESP_ATTR_ENABLED = 1, +NL80211_FTM_RESP_ATTR_LCI = 2, +NL80211_FTM_RESP_ATTR_CIVICLOC = 3, +__NL80211_FTM_RESP_ATTR_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ftm_responder_stats { +__NL80211_FTM_STATS_INVALID = 0, +NL80211_FTM_STATS_SUCCESS_NUM = 1, +NL80211_FTM_STATS_PARTIAL_NUM = 2, +NL80211_FTM_STATS_FAILED_NUM = 3, +NL80211_FTM_STATS_ASAP_NUM = 4, +NL80211_FTM_STATS_NON_ASAP_NUM = 5, +NL80211_FTM_STATS_TOTAL_DURATION_MSEC = 6, +NL80211_FTM_STATS_UNKNOWN_TRIGGERS_NUM = 7, +NL80211_FTM_STATS_RESCHEDULE_REQUESTS_NUM = 8, +NL80211_FTM_STATS_OUT_OF_WINDOW_TRIGGERS_NUM = 9, +NL80211_FTM_STATS_PAD = 10, +__NL80211_FTM_STATS_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_preamble { +NL80211_PREAMBLE_LEGACY = 0, +NL80211_PREAMBLE_HT = 1, +NL80211_PREAMBLE_VHT = 2, +NL80211_PREAMBLE_DMG = 3, +NL80211_PREAMBLE_HE = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_type { +NL80211_PMSR_TYPE_INVALID = 0, +NL80211_PMSR_TYPE_FTM = 1, +NUM_NL80211_PMSR_TYPES = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_status { +NL80211_PMSR_STATUS_SUCCESS = 0, +NL80211_PMSR_STATUS_REFUSED = 1, +NL80211_PMSR_STATUS_TIMEOUT = 2, +NL80211_PMSR_STATUS_FAILURE = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_req { +__NL80211_PMSR_REQ_ATTR_INVALID = 0, +NL80211_PMSR_REQ_ATTR_DATA = 1, +NL80211_PMSR_REQ_ATTR_GET_AP_TSF = 2, +NUM_NL80211_PMSR_REQ_ATTRS = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_resp { +__NL80211_PMSR_RESP_ATTR_INVALID = 0, +NL80211_PMSR_RESP_ATTR_DATA = 1, +NL80211_PMSR_RESP_ATTR_STATUS = 2, +NL80211_PMSR_RESP_ATTR_HOST_TIME = 3, +NL80211_PMSR_RESP_ATTR_AP_TSF = 4, +NL80211_PMSR_RESP_ATTR_FINAL = 5, +NL80211_PMSR_RESP_ATTR_PAD = 6, +NUM_NL80211_PMSR_RESP_ATTRS = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_peer_attrs { +__NL80211_PMSR_PEER_ATTR_INVALID = 0, +NL80211_PMSR_PEER_ATTR_ADDR = 1, +NL80211_PMSR_PEER_ATTR_CHAN = 2, +NL80211_PMSR_PEER_ATTR_REQ = 3, +NL80211_PMSR_PEER_ATTR_RESP = 4, +NUM_NL80211_PMSR_PEER_ATTRS = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_attrs { +__NL80211_PMSR_ATTR_INVALID = 0, +NL80211_PMSR_ATTR_MAX_PEERS = 1, +NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, +NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, +NL80211_PMSR_ATTR_TYPE_CAPA = 4, +NL80211_PMSR_ATTR_PEERS = 5, +NUM_NL80211_PMSR_ATTR = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_capa { +__NL80211_PMSR_FTM_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_CAPA_ATTR_ASAP = 1, +NL80211_PMSR_FTM_CAPA_ATTR_NON_ASAP = 2, +NL80211_PMSR_FTM_CAPA_ATTR_REQ_LCI = 3, +NL80211_PMSR_FTM_CAPA_ATTR_REQ_CIVICLOC = 4, +NL80211_PMSR_FTM_CAPA_ATTR_PREAMBLES = 5, +NL80211_PMSR_FTM_CAPA_ATTR_BANDWIDTHS = 6, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, +NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, +NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req { +__NL80211_PMSR_FTM_REQ_ATTR_INVALID = 0, +NL80211_PMSR_FTM_REQ_ATTR_ASAP = 1, +NL80211_PMSR_FTM_REQ_ATTR_PREAMBLE = 2, +NL80211_PMSR_FTM_REQ_ATTR_NUM_BURSTS_EXP = 3, +NL80211_PMSR_FTM_REQ_ATTR_BURST_PERIOD = 4, +NL80211_PMSR_FTM_REQ_ATTR_BURST_DURATION = 5, +NL80211_PMSR_FTM_REQ_ATTR_FTMS_PER_BURST = 6, +NL80211_PMSR_FTM_REQ_ATTR_NUM_FTMR_RETRIES = 7, +NL80211_PMSR_FTM_REQ_ATTR_REQUEST_LCI = 8, +NL80211_PMSR_FTM_REQ_ATTR_REQUEST_CIVICLOC = 9, +NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, +NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, +NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, +NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_failure_reasons { +NL80211_PMSR_FTM_FAILURE_UNSPECIFIED = 0, +NL80211_PMSR_FTM_FAILURE_NO_RESPONSE = 1, +NL80211_PMSR_FTM_FAILURE_REJECTED = 2, +NL80211_PMSR_FTM_FAILURE_WRONG_CHANNEL = 3, +NL80211_PMSR_FTM_FAILURE_PEER_NOT_CAPABLE = 4, +NL80211_PMSR_FTM_FAILURE_INVALID_TIMESTAMP = 5, +NL80211_PMSR_FTM_FAILURE_PEER_BUSY = 6, +NL80211_PMSR_FTM_FAILURE_BAD_CHANGED_PARAMS = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_resp { +__NL80211_PMSR_FTM_RESP_ATTR_INVALID = 0, +NL80211_PMSR_FTM_RESP_ATTR_FAIL_REASON = 1, +NL80211_PMSR_FTM_RESP_ATTR_BURST_INDEX = 2, +NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_ATTEMPTS = 3, +NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_SUCCESSES = 4, +NL80211_PMSR_FTM_RESP_ATTR_BUSY_RETRY_TIME = 5, +NL80211_PMSR_FTM_RESP_ATTR_NUM_BURSTS_EXP = 6, +NL80211_PMSR_FTM_RESP_ATTR_BURST_DURATION = 7, +NL80211_PMSR_FTM_RESP_ATTR_FTMS_PER_BURST = 8, +NL80211_PMSR_FTM_RESP_ATTR_RSSI_AVG = 9, +NL80211_PMSR_FTM_RESP_ATTR_RSSI_SPREAD = 10, +NL80211_PMSR_FTM_RESP_ATTR_TX_RATE = 11, +NL80211_PMSR_FTM_RESP_ATTR_RX_RATE = 12, +NL80211_PMSR_FTM_RESP_ATTR_RTT_AVG = 13, +NL80211_PMSR_FTM_RESP_ATTR_RTT_VARIANCE = 14, +NL80211_PMSR_FTM_RESP_ATTR_RTT_SPREAD = 15, +NL80211_PMSR_FTM_RESP_ATTR_DIST_AVG = 16, +NL80211_PMSR_FTM_RESP_ATTR_DIST_VARIANCE = 17, +NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, +NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, +NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, +NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_obss_pd_attributes { +__NL80211_HE_OBSS_PD_ATTR_INVALID = 0, +NL80211_HE_OBSS_PD_ATTR_MIN_OFFSET = 1, +NL80211_HE_OBSS_PD_ATTR_MAX_OFFSET = 2, +NL80211_HE_OBSS_PD_ATTR_NON_SRG_MAX_OFFSET = 3, +NL80211_HE_OBSS_PD_ATTR_BSS_COLOR_BITMAP = 4, +NL80211_HE_OBSS_PD_ATTR_PARTIAL_BSSID_BITMAP = 5, +NL80211_HE_OBSS_PD_ATTR_SR_CTRL = 6, +__NL80211_HE_OBSS_PD_ATTR_LAST = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_color_attributes { +__NL80211_HE_BSS_COLOR_ATTR_INVALID = 0, +NL80211_HE_BSS_COLOR_ATTR_COLOR = 1, +NL80211_HE_BSS_COLOR_ATTR_DISABLED = 2, +NL80211_HE_BSS_COLOR_ATTR_PARTIAL = 3, +__NL80211_HE_BSS_COLOR_ATTR_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_iftype_akm_attributes { +__NL80211_IFTYPE_AKM_ATTR_INVALID = 0, +NL80211_IFTYPE_AKM_ATTR_IFTYPES = 1, +NL80211_IFTYPE_AKM_ATTR_SUITES = 2, +__NL80211_IFTYPE_AKM_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_fils_discovery_attributes { +__NL80211_FILS_DISCOVERY_ATTR_INVALID = 0, +NL80211_FILS_DISCOVERY_ATTR_INT_MIN = 1, +NL80211_FILS_DISCOVERY_ATTR_INT_MAX = 2, +NL80211_FILS_DISCOVERY_ATTR_TMPL = 3, +__NL80211_FILS_DISCOVERY_ATTR_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_unsol_bcast_probe_resp_attributes { +__NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INVALID = 0, +NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INT = 1, +NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_TMPL = 2, +__NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sae_pwe_mechanism { +NL80211_SAE_PWE_UNSPECIFIED = 0, +NL80211_SAE_PWE_HUNT_AND_PECK = 1, +NL80211_SAE_PWE_HASH_TO_ELEMENT = 2, +NL80211_SAE_PWE_BOTH = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sar_type { +NL80211_SAR_TYPE_POWER = 0, +NUM_NL80211_SAR_TYPE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sar_attrs { +__NL80211_SAR_ATTR_INVALID = 0, +NL80211_SAR_ATTR_TYPE = 1, +NL80211_SAR_ATTR_SPECS = 2, +__NL80211_SAR_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sar_specs_attrs { +__NL80211_SAR_ATTR_SPECS_INVALID = 0, +NL80211_SAR_ATTR_SPECS_POWER = 1, +NL80211_SAR_ATTR_SPECS_RANGE_INDEX = 2, +NL80211_SAR_ATTR_SPECS_START_FREQ = 3, +NL80211_SAR_ATTR_SPECS_END_FREQ = 4, +__NL80211_SAR_ATTR_SPECS_LAST = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mbssid_config_attributes { +__NL80211_MBSSID_CONFIG_ATTR_INVALID = 0, +NL80211_MBSSID_CONFIG_ATTR_MAX_INTERFACES = 1, +NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 2, +NL80211_MBSSID_CONFIG_ATTR_INDEX = 3, +NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 4, +NL80211_MBSSID_CONFIG_ATTR_EMA = 5, +NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID = 6, +__NL80211_MBSSID_CONFIG_ATTR_LAST = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ap_settings_flags { +NL80211_AP_SETTINGS_EXTERNAL_AUTH_SUPPORT = 1, +NL80211_AP_SETTINGS_SA_QUERY_OFFLOAD_SUPPORT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wiphy_radio_attrs { +__NL80211_WIPHY_RADIO_ATTR_INVALID = 0, +NL80211_WIPHY_RADIO_ATTR_INDEX = 1, +NL80211_WIPHY_RADIO_ATTR_FREQ_RANGE = 2, +NL80211_WIPHY_RADIO_ATTR_INTERFACE_COMBINATION = 3, +NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK = 4, +__NL80211_WIPHY_RADIO_ATTR_LAST = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wiphy_radio_freq_range { +__NL80211_WIPHY_RADIO_FREQ_ATTR_INVALID = 0, +NL80211_WIPHY_RADIO_FREQ_ATTR_START = 1, +NL80211_WIPHY_RADIO_FREQ_ATTR_END = 2, +__NL80211_WIPHY_RADIO_FREQ_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IFLA_UNSPEC = 0, +IFLA_ADDRESS = 1, +IFLA_BROADCAST = 2, +IFLA_IFNAME = 3, +IFLA_MTU = 4, +IFLA_LINK = 5, +IFLA_QDISC = 6, +IFLA_STATS = 7, +IFLA_COST = 8, +IFLA_PRIORITY = 9, +IFLA_MASTER = 10, +IFLA_WIRELESS = 11, +IFLA_PROTINFO = 12, +IFLA_TXQLEN = 13, +IFLA_MAP = 14, +IFLA_WEIGHT = 15, +IFLA_OPERSTATE = 16, +IFLA_LINKMODE = 17, +IFLA_LINKINFO = 18, +IFLA_NET_NS_PID = 19, +IFLA_IFALIAS = 20, +IFLA_NUM_VF = 21, +IFLA_VFINFO_LIST = 22, +IFLA_STATS64 = 23, +IFLA_VF_PORTS = 24, +IFLA_PORT_SELF = 25, +IFLA_AF_SPEC = 26, +IFLA_GROUP = 27, +IFLA_NET_NS_FD = 28, +IFLA_EXT_MASK = 29, +IFLA_PROMISCUITY = 30, +IFLA_NUM_TX_QUEUES = 31, +IFLA_NUM_RX_QUEUES = 32, +IFLA_CARRIER = 33, +IFLA_PHYS_PORT_ID = 34, +IFLA_CARRIER_CHANGES = 35, +IFLA_PHYS_SWITCH_ID = 36, +IFLA_LINK_NETNSID = 37, +IFLA_PHYS_PORT_NAME = 38, +IFLA_PROTO_DOWN = 39, +IFLA_GSO_MAX_SEGS = 40, +IFLA_GSO_MAX_SIZE = 41, +IFLA_PAD = 42, +IFLA_XDP = 43, +IFLA_EVENT = 44, +IFLA_NEW_NETNSID = 45, +IFLA_IF_NETNSID = 46, +IFLA_CARRIER_UP_COUNT = 47, +IFLA_CARRIER_DOWN_COUNT = 48, +IFLA_NEW_IFINDEX = 49, +IFLA_MIN_MTU = 50, +IFLA_MAX_MTU = 51, +IFLA_PROP_LIST = 52, +IFLA_ALT_IFNAME = 53, +IFLA_PERM_ADDRESS = 54, +IFLA_PROTO_DOWN_REASON = 55, +IFLA_PARENT_DEV_NAME = 56, +IFLA_PARENT_DEV_BUS_NAME = 57, +IFLA_GRO_MAX_SIZE = 58, +IFLA_TSO_MAX_SIZE = 59, +IFLA_TSO_MAX_SEGS = 60, +IFLA_ALLMULTI = 61, +IFLA_DEVLINK_PORT = 62, +IFLA_GSO_IPV4_MAX_SIZE = 63, +IFLA_GRO_IPV4_MAX_SIZE = 64, +IFLA_DPLL_PIN = 65, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +IFLA_NETNS_IMMUTABLE = 67, +__IFLA_MAX = 68, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +IFLA_PROTO_DOWN_REASON_UNSPEC = 0, +IFLA_PROTO_DOWN_REASON_MASK = 1, +IFLA_PROTO_DOWN_REASON_VALUE = 2, +__IFLA_PROTO_DOWN_REASON_CNT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IFLA_INET_UNSPEC = 0, +IFLA_INET_CONF = 1, +__IFLA_INET_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_5 { +IFLA_INET6_UNSPEC = 0, +IFLA_INET6_FLAGS = 1, +IFLA_INET6_CONF = 2, +IFLA_INET6_STATS = 3, +IFLA_INET6_MCAST = 4, +IFLA_INET6_CACHEINFO = 5, +IFLA_INET6_ICMP6STATS = 6, +IFLA_INET6_TOKEN = 7, +IFLA_INET6_ADDR_GEN_MODE = 8, +IFLA_INET6_RA_MTU = 9, +__IFLA_INET6_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum in6_addr_gen_mode { +IN6_ADDR_GEN_MODE_EUI64 = 0, +IN6_ADDR_GEN_MODE_NONE = 1, +IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, +IN6_ADDR_GEN_MODE_RANDOM = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_6 { +IFLA_BR_UNSPEC = 0, +IFLA_BR_FORWARD_DELAY = 1, +IFLA_BR_HELLO_TIME = 2, +IFLA_BR_MAX_AGE = 3, +IFLA_BR_AGEING_TIME = 4, +IFLA_BR_STP_STATE = 5, +IFLA_BR_PRIORITY = 6, +IFLA_BR_VLAN_FILTERING = 7, +IFLA_BR_VLAN_PROTOCOL = 8, +IFLA_BR_GROUP_FWD_MASK = 9, +IFLA_BR_ROOT_ID = 10, +IFLA_BR_BRIDGE_ID = 11, +IFLA_BR_ROOT_PORT = 12, +IFLA_BR_ROOT_PATH_COST = 13, +IFLA_BR_TOPOLOGY_CHANGE = 14, +IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, +IFLA_BR_HELLO_TIMER = 16, +IFLA_BR_TCN_TIMER = 17, +IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, +IFLA_BR_GC_TIMER = 19, +IFLA_BR_GROUP_ADDR = 20, +IFLA_BR_FDB_FLUSH = 21, +IFLA_BR_MCAST_ROUTER = 22, +IFLA_BR_MCAST_SNOOPING = 23, +IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, +IFLA_BR_MCAST_QUERIER = 25, +IFLA_BR_MCAST_HASH_ELASTICITY = 26, +IFLA_BR_MCAST_HASH_MAX = 27, +IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, +IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, +IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, +IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, +IFLA_BR_MCAST_QUERIER_INTVL = 32, +IFLA_BR_MCAST_QUERY_INTVL = 33, +IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, +IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, +IFLA_BR_NF_CALL_IPTABLES = 36, +IFLA_BR_NF_CALL_IP6TABLES = 37, +IFLA_BR_NF_CALL_ARPTABLES = 38, +IFLA_BR_VLAN_DEFAULT_PVID = 39, +IFLA_BR_PAD = 40, +IFLA_BR_VLAN_STATS_ENABLED = 41, +IFLA_BR_MCAST_STATS_ENABLED = 42, +IFLA_BR_MCAST_IGMP_VERSION = 43, +IFLA_BR_MCAST_MLD_VERSION = 44, +IFLA_BR_VLAN_STATS_PER_PORT = 45, +IFLA_BR_MULTI_BOOLOPT = 46, +IFLA_BR_MCAST_QUERIER_STATE = 47, +IFLA_BR_FDB_N_LEARNED = 48, +IFLA_BR_FDB_MAX_LEARNED = 49, +__IFLA_BR_MAX = 50, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_7 { +BRIDGE_MODE_UNSPEC = 0, +BRIDGE_MODE_HAIRPIN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_8 { +IFLA_BRPORT_UNSPEC = 0, +IFLA_BRPORT_STATE = 1, +IFLA_BRPORT_PRIORITY = 2, +IFLA_BRPORT_COST = 3, +IFLA_BRPORT_MODE = 4, +IFLA_BRPORT_GUARD = 5, +IFLA_BRPORT_PROTECT = 6, +IFLA_BRPORT_FAST_LEAVE = 7, +IFLA_BRPORT_LEARNING = 8, +IFLA_BRPORT_UNICAST_FLOOD = 9, +IFLA_BRPORT_PROXYARP = 10, +IFLA_BRPORT_LEARNING_SYNC = 11, +IFLA_BRPORT_PROXYARP_WIFI = 12, +IFLA_BRPORT_ROOT_ID = 13, +IFLA_BRPORT_BRIDGE_ID = 14, +IFLA_BRPORT_DESIGNATED_PORT = 15, +IFLA_BRPORT_DESIGNATED_COST = 16, +IFLA_BRPORT_ID = 17, +IFLA_BRPORT_NO = 18, +IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, +IFLA_BRPORT_CONFIG_PENDING = 20, +IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, +IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, +IFLA_BRPORT_HOLD_TIMER = 23, +IFLA_BRPORT_FLUSH = 24, +IFLA_BRPORT_MULTICAST_ROUTER = 25, +IFLA_BRPORT_PAD = 26, +IFLA_BRPORT_MCAST_FLOOD = 27, +IFLA_BRPORT_MCAST_TO_UCAST = 28, +IFLA_BRPORT_VLAN_TUNNEL = 29, +IFLA_BRPORT_BCAST_FLOOD = 30, +IFLA_BRPORT_GROUP_FWD_MASK = 31, +IFLA_BRPORT_NEIGH_SUPPRESS = 32, +IFLA_BRPORT_ISOLATED = 33, +IFLA_BRPORT_BACKUP_PORT = 34, +IFLA_BRPORT_MRP_RING_OPEN = 35, +IFLA_BRPORT_MRP_IN_OPEN = 36, +IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, +IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, +IFLA_BRPORT_LOCKED = 39, +IFLA_BRPORT_MAB = 40, +IFLA_BRPORT_MCAST_N_GROUPS = 41, +IFLA_BRPORT_MCAST_MAX_GROUPS = 42, +IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, +IFLA_BRPORT_BACKUP_NHID = 44, +__IFLA_BRPORT_MAX = 45, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_9 { +IFLA_INFO_UNSPEC = 0, +IFLA_INFO_KIND = 1, +IFLA_INFO_DATA = 2, +IFLA_INFO_XSTATS = 3, +IFLA_INFO_SLAVE_KIND = 4, +IFLA_INFO_SLAVE_DATA = 5, +__IFLA_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_10 { +IFLA_VLAN_UNSPEC = 0, +IFLA_VLAN_ID = 1, +IFLA_VLAN_FLAGS = 2, +IFLA_VLAN_EGRESS_QOS = 3, +IFLA_VLAN_INGRESS_QOS = 4, +IFLA_VLAN_PROTOCOL = 5, +__IFLA_VLAN_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_11 { +IFLA_VLAN_QOS_UNSPEC = 0, +IFLA_VLAN_QOS_MAPPING = 1, +__IFLA_VLAN_QOS_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_12 { +IFLA_MACVLAN_UNSPEC = 0, +IFLA_MACVLAN_MODE = 1, +IFLA_MACVLAN_FLAGS = 2, +IFLA_MACVLAN_MACADDR_MODE = 3, +IFLA_MACVLAN_MACADDR = 4, +IFLA_MACVLAN_MACADDR_DATA = 5, +IFLA_MACVLAN_MACADDR_COUNT = 6, +IFLA_MACVLAN_BC_QUEUE_LEN = 7, +IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, +IFLA_MACVLAN_BC_CUTOFF = 9, +__IFLA_MACVLAN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_mode { +MACVLAN_MODE_PRIVATE = 1, +MACVLAN_MODE_VEPA = 2, +MACVLAN_MODE_BRIDGE = 4, +MACVLAN_MODE_PASSTHRU = 8, +MACVLAN_MODE_SOURCE = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_macaddr_mode { +MACVLAN_MACADDR_ADD = 0, +MACVLAN_MACADDR_DEL = 1, +MACVLAN_MACADDR_FLUSH = 2, +MACVLAN_MACADDR_SET = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_13 { +IFLA_VRF_UNSPEC = 0, +IFLA_VRF_TABLE = 1, +__IFLA_VRF_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_14 { +IFLA_VRF_PORT_UNSPEC = 0, +IFLA_VRF_PORT_TABLE = 1, +__IFLA_VRF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_15 { +IFLA_MACSEC_UNSPEC = 0, +IFLA_MACSEC_SCI = 1, +IFLA_MACSEC_PORT = 2, +IFLA_MACSEC_ICV_LEN = 3, +IFLA_MACSEC_CIPHER_SUITE = 4, +IFLA_MACSEC_WINDOW = 5, +IFLA_MACSEC_ENCODING_SA = 6, +IFLA_MACSEC_ENCRYPT = 7, +IFLA_MACSEC_PROTECT = 8, +IFLA_MACSEC_INC_SCI = 9, +IFLA_MACSEC_ES = 10, +IFLA_MACSEC_SCB = 11, +IFLA_MACSEC_REPLAY_PROTECT = 12, +IFLA_MACSEC_VALIDATION = 13, +IFLA_MACSEC_PAD = 14, +IFLA_MACSEC_OFFLOAD = 15, +__IFLA_MACSEC_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_16 { +IFLA_XFRM_UNSPEC = 0, +IFLA_XFRM_LINK = 1, +IFLA_XFRM_IF_ID = 2, +IFLA_XFRM_COLLECT_METADATA = 3, +__IFLA_XFRM_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_validation_type { +MACSEC_VALIDATE_DISABLED = 0, +MACSEC_VALIDATE_CHECK = 1, +MACSEC_VALIDATE_STRICT = 2, +__MACSEC_VALIDATE_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_offload { +MACSEC_OFFLOAD_OFF = 0, +MACSEC_OFFLOAD_PHY = 1, +MACSEC_OFFLOAD_MAC = 2, +__MACSEC_OFFLOAD_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_17 { +IFLA_IPVLAN_UNSPEC = 0, +IFLA_IPVLAN_MODE = 1, +IFLA_IPVLAN_FLAGS = 2, +__IFLA_IPVLAN_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ipvlan_mode { +IPVLAN_MODE_L2 = 0, +IPVLAN_MODE_L3 = 1, +IPVLAN_MODE_L3S = 2, +IPVLAN_MODE_MAX = 3, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_action { +NETKIT_NEXT = -1, +NETKIT_PASS = 0, +NETKIT_DROP = 2, +NETKIT_REDIRECT = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_mode { +NETKIT_L2 = 0, +NETKIT_L3 = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_18 { +IFLA_NETKIT_UNSPEC = 0, +IFLA_NETKIT_PEER_INFO = 1, +IFLA_NETKIT_PRIMARY = 2, +IFLA_NETKIT_POLICY = 3, +IFLA_NETKIT_PEER_POLICY = 4, +IFLA_NETKIT_MODE = 5, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +IFLA_NETKIT_HEADROOM = 8, +IFLA_NETKIT_TAILROOM = 9, +__IFLA_NETKIT_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_19 { +VNIFILTER_ENTRY_STATS_UNSPEC = 0, +VNIFILTER_ENTRY_STATS_RX_BYTES = 1, +VNIFILTER_ENTRY_STATS_RX_PKTS = 2, +VNIFILTER_ENTRY_STATS_RX_DROPS = 3, +VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, +VNIFILTER_ENTRY_STATS_TX_BYTES = 5, +VNIFILTER_ENTRY_STATS_TX_PKTS = 6, +VNIFILTER_ENTRY_STATS_TX_DROPS = 7, +VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, +VNIFILTER_ENTRY_STATS_PAD = 9, +__VNIFILTER_ENTRY_STATS_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_20 { +VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY_START = 1, +VXLAN_VNIFILTER_ENTRY_END = 2, +VXLAN_VNIFILTER_ENTRY_GROUP = 3, +VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, +VXLAN_VNIFILTER_ENTRY_STATS = 5, +__VXLAN_VNIFILTER_ENTRY_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_21 { +VXLAN_VNIFILTER_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY = 1, +__VXLAN_VNIFILTER_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_22 { +IFLA_VXLAN_UNSPEC = 0, +IFLA_VXLAN_ID = 1, +IFLA_VXLAN_GROUP = 2, +IFLA_VXLAN_LINK = 3, +IFLA_VXLAN_LOCAL = 4, +IFLA_VXLAN_TTL = 5, +IFLA_VXLAN_TOS = 6, +IFLA_VXLAN_LEARNING = 7, +IFLA_VXLAN_AGEING = 8, +IFLA_VXLAN_LIMIT = 9, +IFLA_VXLAN_PORT_RANGE = 10, +IFLA_VXLAN_PROXY = 11, +IFLA_VXLAN_RSC = 12, +IFLA_VXLAN_L2MISS = 13, +IFLA_VXLAN_L3MISS = 14, +IFLA_VXLAN_PORT = 15, +IFLA_VXLAN_GROUP6 = 16, +IFLA_VXLAN_LOCAL6 = 17, +IFLA_VXLAN_UDP_CSUM = 18, +IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, +IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, +IFLA_VXLAN_REMCSUM_TX = 21, +IFLA_VXLAN_REMCSUM_RX = 22, +IFLA_VXLAN_GBP = 23, +IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, +IFLA_VXLAN_COLLECT_METADATA = 25, +IFLA_VXLAN_LABEL = 26, +IFLA_VXLAN_GPE = 27, +IFLA_VXLAN_TTL_INHERIT = 28, +IFLA_VXLAN_DF = 29, +IFLA_VXLAN_VNIFILTER = 30, +IFLA_VXLAN_LOCALBYPASS = 31, +IFLA_VXLAN_LABEL_POLICY = 32, +IFLA_VXLAN_RESERVED_BITS = 33, +__IFLA_VXLAN_MAX = 34, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_df { +VXLAN_DF_UNSET = 0, +VXLAN_DF_SET = 1, +VXLAN_DF_INHERIT = 2, +__VXLAN_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_label_policy { +VXLAN_LABEL_FIXED = 0, +VXLAN_LABEL_INHERIT = 1, +__VXLAN_LABEL_END = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_23 { +IFLA_GENEVE_UNSPEC = 0, +IFLA_GENEVE_ID = 1, +IFLA_GENEVE_REMOTE = 2, +IFLA_GENEVE_TTL = 3, +IFLA_GENEVE_TOS = 4, +IFLA_GENEVE_PORT = 5, +IFLA_GENEVE_COLLECT_METADATA = 6, +IFLA_GENEVE_REMOTE6 = 7, +IFLA_GENEVE_UDP_CSUM = 8, +IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, +IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, +IFLA_GENEVE_LABEL = 11, +IFLA_GENEVE_TTL_INHERIT = 12, +IFLA_GENEVE_DF = 13, +IFLA_GENEVE_INNER_PROTO_INHERIT = 14, +IFLA_GENEVE_PORT_RANGE = 15, +__IFLA_GENEVE_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_geneve_df { +GENEVE_DF_UNSET = 0, +GENEVE_DF_SET = 1, +GENEVE_DF_INHERIT = 2, +__GENEVE_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_24 { +IFLA_BAREUDP_UNSPEC = 0, +IFLA_BAREUDP_PORT = 1, +IFLA_BAREUDP_ETHERTYPE = 2, +IFLA_BAREUDP_SRCPORT_MIN = 3, +IFLA_BAREUDP_MULTIPROTO_MODE = 4, +__IFLA_BAREUDP_MAX = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_25 { +IFLA_PPP_UNSPEC = 0, +IFLA_PPP_DEV_FD = 1, +__IFLA_PPP_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_gtp_role { +GTP_ROLE_GGSN = 0, +GTP_ROLE_SGSN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_26 { +IFLA_GTP_UNSPEC = 0, +IFLA_GTP_FD0 = 1, +IFLA_GTP_FD1 = 2, +IFLA_GTP_PDP_HASHSIZE = 3, +IFLA_GTP_ROLE = 4, +IFLA_GTP_CREATE_SOCKETS = 5, +IFLA_GTP_RESTART_COUNT = 6, +IFLA_GTP_LOCAL = 7, +IFLA_GTP_LOCAL6 = 8, +__IFLA_GTP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_27 { +IFLA_BOND_UNSPEC = 0, +IFLA_BOND_MODE = 1, +IFLA_BOND_ACTIVE_SLAVE = 2, +IFLA_BOND_MIIMON = 3, +IFLA_BOND_UPDELAY = 4, +IFLA_BOND_DOWNDELAY = 5, +IFLA_BOND_USE_CARRIER = 6, +IFLA_BOND_ARP_INTERVAL = 7, +IFLA_BOND_ARP_IP_TARGET = 8, +IFLA_BOND_ARP_VALIDATE = 9, +IFLA_BOND_ARP_ALL_TARGETS = 10, +IFLA_BOND_PRIMARY = 11, +IFLA_BOND_PRIMARY_RESELECT = 12, +IFLA_BOND_FAIL_OVER_MAC = 13, +IFLA_BOND_XMIT_HASH_POLICY = 14, +IFLA_BOND_RESEND_IGMP = 15, +IFLA_BOND_NUM_PEER_NOTIF = 16, +IFLA_BOND_ALL_SLAVES_ACTIVE = 17, +IFLA_BOND_MIN_LINKS = 18, +IFLA_BOND_LP_INTERVAL = 19, +IFLA_BOND_PACKETS_PER_SLAVE = 20, +IFLA_BOND_AD_LACP_RATE = 21, +IFLA_BOND_AD_SELECT = 22, +IFLA_BOND_AD_INFO = 23, +IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, +IFLA_BOND_AD_USER_PORT_KEY = 25, +IFLA_BOND_AD_ACTOR_SYSTEM = 26, +IFLA_BOND_TLB_DYNAMIC_LB = 27, +IFLA_BOND_PEER_NOTIF_DELAY = 28, +IFLA_BOND_AD_LACP_ACTIVE = 29, +IFLA_BOND_MISSED_MAX = 30, +IFLA_BOND_NS_IP6_TARGET = 31, +IFLA_BOND_COUPLED_CONTROL = 32, +__IFLA_BOND_MAX = 33, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_28 { +IFLA_BOND_AD_INFO_UNSPEC = 0, +IFLA_BOND_AD_INFO_AGGREGATOR = 1, +IFLA_BOND_AD_INFO_NUM_PORTS = 2, +IFLA_BOND_AD_INFO_ACTOR_KEY = 3, +IFLA_BOND_AD_INFO_PARTNER_KEY = 4, +IFLA_BOND_AD_INFO_PARTNER_MAC = 5, +__IFLA_BOND_AD_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_29 { +IFLA_BOND_SLAVE_UNSPEC = 0, +IFLA_BOND_SLAVE_STATE = 1, +IFLA_BOND_SLAVE_MII_STATUS = 2, +IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, +IFLA_BOND_SLAVE_PERM_HWADDR = 4, +IFLA_BOND_SLAVE_QUEUE_ID = 5, +IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, +IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, +IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, +IFLA_BOND_SLAVE_PRIO = 9, +__IFLA_BOND_SLAVE_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_30 { +IFLA_VF_INFO_UNSPEC = 0, +IFLA_VF_INFO = 1, +__IFLA_VF_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_31 { +IFLA_VF_UNSPEC = 0, +IFLA_VF_MAC = 1, +IFLA_VF_VLAN = 2, +IFLA_VF_TX_RATE = 3, +IFLA_VF_SPOOFCHK = 4, +IFLA_VF_LINK_STATE = 5, +IFLA_VF_RATE = 6, +IFLA_VF_RSS_QUERY_EN = 7, +IFLA_VF_STATS = 8, +IFLA_VF_TRUST = 9, +IFLA_VF_IB_NODE_GUID = 10, +IFLA_VF_IB_PORT_GUID = 11, +IFLA_VF_VLAN_LIST = 12, +IFLA_VF_BROADCAST = 13, +__IFLA_VF_MAX = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_32 { +IFLA_VF_VLAN_INFO_UNSPEC = 0, +IFLA_VF_VLAN_INFO = 1, +__IFLA_VF_VLAN_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_33 { +IFLA_VF_LINK_STATE_AUTO = 0, +IFLA_VF_LINK_STATE_ENABLE = 1, +IFLA_VF_LINK_STATE_DISABLE = 2, +__IFLA_VF_LINK_STATE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_34 { +IFLA_VF_STATS_RX_PACKETS = 0, +IFLA_VF_STATS_TX_PACKETS = 1, +IFLA_VF_STATS_RX_BYTES = 2, +IFLA_VF_STATS_TX_BYTES = 3, +IFLA_VF_STATS_BROADCAST = 4, +IFLA_VF_STATS_MULTICAST = 5, +IFLA_VF_STATS_PAD = 6, +IFLA_VF_STATS_RX_DROPPED = 7, +IFLA_VF_STATS_TX_DROPPED = 8, +__IFLA_VF_STATS_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_35 { +IFLA_VF_PORT_UNSPEC = 0, +IFLA_VF_PORT = 1, +__IFLA_VF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_36 { +IFLA_PORT_UNSPEC = 0, +IFLA_PORT_VF = 1, +IFLA_PORT_PROFILE = 2, +IFLA_PORT_VSI_TYPE = 3, +IFLA_PORT_INSTANCE_UUID = 4, +IFLA_PORT_HOST_UUID = 5, +IFLA_PORT_REQUEST = 6, +IFLA_PORT_RESPONSE = 7, +__IFLA_PORT_MAX = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_37 { +PORT_REQUEST_PREASSOCIATE = 0, +PORT_REQUEST_PREASSOCIATE_RR = 1, +PORT_REQUEST_ASSOCIATE = 2, +PORT_REQUEST_DISASSOCIATE = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_38 { +PORT_VDP_RESPONSE_SUCCESS = 0, +PORT_VDP_RESPONSE_INVALID_FORMAT = 1, +PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, +PORT_VDP_RESPONSE_UNUSED_VTID = 3, +PORT_VDP_RESPONSE_VTID_VIOLATION = 4, +PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, +PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, +PORT_PROFILE_RESPONSE_SUCCESS = 256, +PORT_PROFILE_RESPONSE_INPROGRESS = 257, +PORT_PROFILE_RESPONSE_INVALID = 258, +PORT_PROFILE_RESPONSE_BADSTATE = 259, +PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, +PORT_PROFILE_RESPONSE_ERROR = 261, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_39 { +IFLA_IPOIB_UNSPEC = 0, +IFLA_IPOIB_PKEY = 1, +IFLA_IPOIB_MODE = 2, +IFLA_IPOIB_UMCAST = 3, +__IFLA_IPOIB_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_40 { +IPOIB_MODE_DATAGRAM = 0, +IPOIB_MODE_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_41 { +HSR_PROTOCOL_HSR = 0, +HSR_PROTOCOL_PRP = 1, +HSR_PROTOCOL_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_42 { +IFLA_HSR_UNSPEC = 0, +IFLA_HSR_SLAVE1 = 1, +IFLA_HSR_SLAVE2 = 2, +IFLA_HSR_MULTICAST_SPEC = 3, +IFLA_HSR_SUPERVISION_ADDR = 4, +IFLA_HSR_SEQ_NR = 5, +IFLA_HSR_VERSION = 6, +IFLA_HSR_PROTOCOL = 7, +IFLA_HSR_INTERLINK = 8, +__IFLA_HSR_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_43 { +IFLA_STATS_UNSPEC = 0, +IFLA_STATS_LINK_64 = 1, +IFLA_STATS_LINK_XSTATS = 2, +IFLA_STATS_LINK_XSTATS_SLAVE = 3, +IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, +IFLA_STATS_AF_SPEC = 5, +__IFLA_STATS_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_44 { +IFLA_STATS_GETSET_UNSPEC = 0, +IFLA_STATS_GET_FILTERS = 1, +IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, +__IFLA_STATS_GETSET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_45 { +LINK_XSTATS_TYPE_UNSPEC = 0, +LINK_XSTATS_TYPE_BRIDGE = 1, +LINK_XSTATS_TYPE_BOND = 2, +__LINK_XSTATS_TYPE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_46 { +IFLA_OFFLOAD_XSTATS_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, +IFLA_OFFLOAD_XSTATS_L3_STATS = 3, +__IFLA_OFFLOAD_XSTATS_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_47 { +IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, +__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_48 { +XDP_ATTACHED_NONE = 0, +XDP_ATTACHED_DRV = 1, +XDP_ATTACHED_SKB = 2, +XDP_ATTACHED_HW = 3, +XDP_ATTACHED_MULTI = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_49 { +IFLA_XDP_UNSPEC = 0, +IFLA_XDP_FD = 1, +IFLA_XDP_ATTACHED = 2, +IFLA_XDP_FLAGS = 3, +IFLA_XDP_PROG_ID = 4, +IFLA_XDP_DRV_PROG_ID = 5, +IFLA_XDP_SKB_PROG_ID = 6, +IFLA_XDP_HW_PROG_ID = 7, +IFLA_XDP_EXPECTED_FD = 8, +__IFLA_XDP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_50 { +IFLA_EVENT_NONE = 0, +IFLA_EVENT_REBOOT = 1, +IFLA_EVENT_FEATURES = 2, +IFLA_EVENT_BONDING_FAILOVER = 3, +IFLA_EVENT_NOTIFY_PEERS = 4, +IFLA_EVENT_IGMP_RESEND = 5, +IFLA_EVENT_BONDING_OPTIONS = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_51 { +IFLA_TUN_UNSPEC = 0, +IFLA_TUN_OWNER = 1, +IFLA_TUN_GROUP = 2, +IFLA_TUN_TYPE = 3, +IFLA_TUN_PI = 4, +IFLA_TUN_VNET_HDR = 5, +IFLA_TUN_PERSIST = 6, +IFLA_TUN_MULTI_QUEUE = 7, +IFLA_TUN_NUM_QUEUES = 8, +IFLA_TUN_NUM_DISABLED_QUEUES = 9, +__IFLA_TUN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_52 { +IFLA_RMNET_UNSPEC = 0, +IFLA_RMNET_MUX_ID = 1, +IFLA_RMNET_FLAGS = 2, +__IFLA_RMNET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_53 { +IFLA_MCTP_UNSPEC = 0, +IFLA_MCTP_NET = 1, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_54 { +IFLA_DSA_UNSPEC = 0, +IFLA_DSA_CONDUIT = 1, +__IFLA_DSA_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ovpn_mode { +OVPN_MODE_P2P = 0, +OVPN_MODE_MP = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_55 { +IFLA_OVPN_UNSPEC = 0, +IFLA_OVPN_MODE = 1, +__IFLA_OVPN_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_56 { +IFA_UNSPEC = 0, +IFA_ADDRESS = 1, +IFA_LOCAL = 2, +IFA_LABEL = 3, +IFA_BROADCAST = 4, +IFA_ANYCAST = 5, +IFA_CACHEINFO = 6, +IFA_MULTICAST = 7, +IFA_FLAGS = 8, +IFA_RT_PRIORITY = 9, +IFA_TARGET_NETNSID = 10, +IFA_PROTO = 11, +__IFA_MAX = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_57 { +NDA_UNSPEC = 0, +NDA_DST = 1, +NDA_LLADDR = 2, +NDA_CACHEINFO = 3, +NDA_PROBES = 4, +NDA_VLAN = 5, +NDA_PORT = 6, +NDA_VNI = 7, +NDA_IFINDEX = 8, +NDA_MASTER = 9, +NDA_LINK_NETNSID = 10, +NDA_SRC_VNI = 11, +NDA_PROTOCOL = 12, +NDA_NH_ID = 13, +NDA_FDB_EXT_ATTRS = 14, +NDA_FLAGS_EXT = 15, +NDA_NDM_STATE_MASK = 16, +NDA_NDM_FLAGS_MASK = 17, +__NDA_MAX = 18, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_58 { +NDTPA_UNSPEC = 0, +NDTPA_IFINDEX = 1, +NDTPA_REFCNT = 2, +NDTPA_REACHABLE_TIME = 3, +NDTPA_BASE_REACHABLE_TIME = 4, +NDTPA_RETRANS_TIME = 5, +NDTPA_GC_STALETIME = 6, +NDTPA_DELAY_PROBE_TIME = 7, +NDTPA_QUEUE_LEN = 8, +NDTPA_APP_PROBES = 9, +NDTPA_UCAST_PROBES = 10, +NDTPA_MCAST_PROBES = 11, +NDTPA_ANYCAST_DELAY = 12, +NDTPA_PROXY_DELAY = 13, +NDTPA_PROXY_QLEN = 14, +NDTPA_LOCKTIME = 15, +NDTPA_QUEUE_LENBYTES = 16, +NDTPA_MCAST_REPROBES = 17, +NDTPA_PAD = 18, +NDTPA_INTERVAL_PROBE_TIME_MS = 19, +__NDTPA_MAX = 20, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_59 { +NDTA_UNSPEC = 0, +NDTA_NAME = 1, +NDTA_THRESH1 = 2, +NDTA_THRESH2 = 3, +NDTA_THRESH3 = 4, +NDTA_CONFIG = 5, +NDTA_PARMS = 6, +NDTA_STATS = 7, +NDTA_GC_INTERVAL = 8, +NDTA_PAD = 9, +__NDTA_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_60 { +FDB_NOTIFY_BIT = 1, +FDB_NOTIFY_INACTIVE_BIT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_61 { +NFEA_UNSPEC = 0, +NFEA_ACTIVITY_NOTIFY = 1, +NFEA_DONT_REFRESH = 2, +__NFEA_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_62 { +RTM_BASE = 16, +RTM_DELLINK = 17, +RTM_GETLINK = 18, +RTM_SETLINK = 19, +RTM_NEWADDR = 20, +RTM_DELADDR = 21, +RTM_GETADDR = 22, +RTM_NEWROUTE = 24, +RTM_DELROUTE = 25, +RTM_GETROUTE = 26, +RTM_NEWNEIGH = 28, +RTM_DELNEIGH = 29, +RTM_GETNEIGH = 30, +RTM_NEWRULE = 32, +RTM_DELRULE = 33, +RTM_GETRULE = 34, +RTM_NEWQDISC = 36, +RTM_DELQDISC = 37, +RTM_GETQDISC = 38, +RTM_NEWTCLASS = 40, +RTM_DELTCLASS = 41, +RTM_GETTCLASS = 42, +RTM_NEWTFILTER = 44, +RTM_DELTFILTER = 45, +RTM_GETTFILTER = 46, +RTM_NEWACTION = 48, +RTM_DELACTION = 49, +RTM_GETACTION = 50, +RTM_NEWPREFIX = 52, +RTM_NEWMULTICAST = 56, +RTM_DELMULTICAST = 57, +RTM_GETMULTICAST = 58, +RTM_NEWANYCAST = 60, +RTM_DELANYCAST = 61, +RTM_GETANYCAST = 62, +RTM_NEWNEIGHTBL = 64, +RTM_GETNEIGHTBL = 66, +RTM_SETNEIGHTBL = 67, +RTM_NEWNDUSEROPT = 68, +RTM_NEWADDRLABEL = 72, +RTM_DELADDRLABEL = 73, +RTM_GETADDRLABEL = 74, +RTM_GETDCB = 78, +RTM_SETDCB = 79, +RTM_NEWNETCONF = 80, +RTM_DELNETCONF = 81, +RTM_GETNETCONF = 82, +RTM_NEWMDB = 84, +RTM_DELMDB = 85, +RTM_GETMDB = 86, +RTM_NEWNSID = 88, +RTM_DELNSID = 89, +RTM_GETNSID = 90, +RTM_NEWSTATS = 92, +RTM_GETSTATS = 94, +RTM_SETSTATS = 95, +RTM_NEWCACHEREPORT = 96, +RTM_NEWCHAIN = 100, +RTM_DELCHAIN = 101, +RTM_GETCHAIN = 102, +RTM_NEWNEXTHOP = 104, +RTM_DELNEXTHOP = 105, +RTM_GETNEXTHOP = 106, +RTM_NEWLINKPROP = 108, +RTM_DELLINKPROP = 109, +RTM_GETLINKPROP = 110, +RTM_NEWVLAN = 112, +RTM_DELVLAN = 113, +RTM_GETVLAN = 114, +RTM_NEWNEXTHOPBUCKET = 116, +RTM_DELNEXTHOPBUCKET = 117, +RTM_GETNEXTHOPBUCKET = 118, +RTM_NEWTUNNEL = 120, +RTM_DELTUNNEL = 121, +RTM_GETTUNNEL = 122, +__RTM_MAX = 123, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_63 { +RTN_UNSPEC = 0, +RTN_UNICAST = 1, +RTN_LOCAL = 2, +RTN_BROADCAST = 3, +RTN_ANYCAST = 4, +RTN_MULTICAST = 5, +RTN_BLACKHOLE = 6, +RTN_UNREACHABLE = 7, +RTN_PROHIBIT = 8, +RTN_THROW = 9, +RTN_NAT = 10, +RTN_XRESOLVE = 11, +__RTN_MAX = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum rt_scope_t { +RT_SCOPE_UNIVERSE = 0, +RT_SCOPE_SITE = 200, +RT_SCOPE_LINK = 253, +RT_SCOPE_HOST = 254, +RT_SCOPE_NOWHERE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum rt_class_t { +RT_TABLE_UNSPEC = 0, +RT_TABLE_COMPAT = 252, +RT_TABLE_DEFAULT = 253, +RT_TABLE_MAIN = 254, +RT_TABLE_LOCAL = 255, +RT_TABLE_MAX = 4294967295, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum rtattr_type_t { +RTA_UNSPEC = 0, +RTA_DST = 1, +RTA_SRC = 2, +RTA_IIF = 3, +RTA_OIF = 4, +RTA_GATEWAY = 5, +RTA_PRIORITY = 6, +RTA_PREFSRC = 7, +RTA_METRICS = 8, +RTA_MULTIPATH = 9, +RTA_PROTOINFO = 10, +RTA_FLOW = 11, +RTA_CACHEINFO = 12, +RTA_SESSION = 13, +RTA_MP_ALGO = 14, +RTA_TABLE = 15, +RTA_MARK = 16, +RTA_MFC_STATS = 17, +RTA_VIA = 18, +RTA_NEWDST = 19, +RTA_PREF = 20, +RTA_ENCAP_TYPE = 21, +RTA_ENCAP = 22, +RTA_EXPIRES = 23, +RTA_PAD = 24, +RTA_UID = 25, +RTA_TTL_PROPAGATE = 26, +RTA_IP_PROTO = 27, +RTA_SPORT = 28, +RTA_DPORT = 29, +RTA_NH_ID = 30, +RTA_FLOWLABEL = 31, +__RTA_MAX = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_64 { +RTAX_UNSPEC = 0, +RTAX_LOCK = 1, +RTAX_MTU = 2, +RTAX_WINDOW = 3, +RTAX_RTT = 4, +RTAX_RTTVAR = 5, +RTAX_SSTHRESH = 6, +RTAX_CWND = 7, +RTAX_ADVMSS = 8, +RTAX_REORDERING = 9, +RTAX_HOPLIMIT = 10, +RTAX_INITCWND = 11, +RTAX_FEATURES = 12, +RTAX_RTO_MIN = 13, +RTAX_INITRWND = 14, +RTAX_QUICKACK = 15, +RTAX_CC_ALGO = 16, +RTAX_FASTOPEN_NO_COOKIE = 17, +__RTAX_MAX = 18, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_65 { +PREFIX_UNSPEC = 0, +PREFIX_ADDRESS = 1, +PREFIX_CACHEINFO = 2, +__PREFIX_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_66 { +TCA_UNSPEC = 0, +TCA_KIND = 1, +TCA_OPTIONS = 2, +TCA_STATS = 3, +TCA_XSTATS = 4, +TCA_RATE = 5, +TCA_FCNT = 6, +TCA_STATS2 = 7, +TCA_STAB = 8, +TCA_PAD = 9, +TCA_DUMP_INVISIBLE = 10, +TCA_CHAIN = 11, +TCA_HW_OFFLOAD = 12, +TCA_INGRESS_BLOCK = 13, +TCA_EGRESS_BLOCK = 14, +TCA_DUMP_FLAGS = 15, +TCA_EXT_WARN_MSG = 16, +__TCA_MAX = 17, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_67 { +NDUSEROPT_UNSPEC = 0, +NDUSEROPT_SRCADDR = 1, +__NDUSEROPT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum rtnetlink_groups { +RTNLGRP_NONE = 0, +RTNLGRP_LINK = 1, +RTNLGRP_NOTIFY = 2, +RTNLGRP_NEIGH = 3, +RTNLGRP_TC = 4, +RTNLGRP_IPV4_IFADDR = 5, +RTNLGRP_IPV4_MROUTE = 6, +RTNLGRP_IPV4_ROUTE = 7, +RTNLGRP_IPV4_RULE = 8, +RTNLGRP_IPV6_IFADDR = 9, +RTNLGRP_IPV6_MROUTE = 10, +RTNLGRP_IPV6_ROUTE = 11, +RTNLGRP_IPV6_IFINFO = 12, +RTNLGRP_DECnet_IFADDR = 13, +RTNLGRP_NOP2 = 14, +RTNLGRP_DECnet_ROUTE = 15, +RTNLGRP_DECnet_RULE = 16, +RTNLGRP_NOP4 = 17, +RTNLGRP_IPV6_PREFIX = 18, +RTNLGRP_IPV6_RULE = 19, +RTNLGRP_ND_USEROPT = 20, +RTNLGRP_PHONET_IFADDR = 21, +RTNLGRP_PHONET_ROUTE = 22, +RTNLGRP_DCB = 23, +RTNLGRP_IPV4_NETCONF = 24, +RTNLGRP_IPV6_NETCONF = 25, +RTNLGRP_MDB = 26, +RTNLGRP_MPLS_ROUTE = 27, +RTNLGRP_NSID = 28, +RTNLGRP_MPLS_NETCONF = 29, +RTNLGRP_IPV4_MROUTE_R = 30, +RTNLGRP_IPV6_MROUTE_R = 31, +RTNLGRP_NEXTHOP = 32, +RTNLGRP_BRVLAN = 33, +RTNLGRP_MCTP_IFADDR = 34, +RTNLGRP_TUNNEL = 35, +RTNLGRP_STATS = 36, +RTNLGRP_IPV4_MCADDR = 37, +RTNLGRP_IPV6_MCADDR = 38, +RTNLGRP_IPV6_ACADDR = 39, +__RTNLGRP_MAX = 40, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_68 { +TCA_ROOT_UNSPEC = 0, +TCA_ROOT_TAB = 1, +TCA_ROOT_FLAGS = 2, +TCA_ROOT_COUNT = 3, +TCA_ROOT_TIME_DELTA = 4, +TCA_ROOT_EXT_WARN_MSG = 5, +__TCA_ROOT_MAX = 6, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __kernel_sockaddr_storage__bindgen_ty_1 { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, +pub __align: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __vector128__bindgen_ty_1 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1, +pub u: [__u32; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union rta_session__bindgen_ty_1 { +pub ports: rta_session__bindgen_ty_1__bindgen_ty_1, +pub icmpt: rta_session__bindgen_ty_1__bindgen_ty_2, +pub spi: __u32, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl nlmsgerr_attrs { +pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; +} +impl netlink_policy_type_attr { +pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; +} +impl nl80211_commands { +pub const NL80211_CMD_NEW_BEACON: nl80211_commands = nl80211_commands::NL80211_CMD_START_AP; +} +impl nl80211_commands { +pub const NL80211_CMD_DEL_BEACON: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_AP; +} +impl nl80211_commands { +pub const NL80211_CMD_REGISTER_ACTION: nl80211_commands = nl80211_commands::NL80211_CMD_REGISTER_FRAME; +} +impl nl80211_commands { +pub const NL80211_CMD_ACTION: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME; +} +impl nl80211_commands { +pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; +} +impl nl80211_commands { +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +} +impl nl80211_attrs { +pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; +} +impl nl80211_attrs { +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS; +} +impl nl80211_iftype { +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +} +impl nl80211_sta_flags { +pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; +} +impl nl80211_rate_info { +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +} +impl nl80211_sta_bss_param { +pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; +} +impl nl80211_sta_info { +pub const NL80211_STA_INFO_MAX: nl80211_sta_info = nl80211_sta_info::NL80211_STA_INFO_CONNECTED_TO_AS; +} +impl nl80211_tid_stats { +pub const NL80211_TID_STATS_MAX: nl80211_tid_stats = nl80211_tid_stats::NL80211_TID_STATS_TXQ_STATS; +} +impl nl80211_txq_stats { +pub const NL80211_TXQ_STATS_MAX: nl80211_txq_stats = nl80211_txq_stats::NL80211_TXQ_STATS_MAX_FLOWS; +} +impl nl80211_mpath_info { +pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; +} +impl nl80211_band_iftype_attr { +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +} +impl nl80211_band_attr { +pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; +} +impl nl80211_wmm_rule { +pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; +} +impl nl80211_frequency_attr { +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +} +impl nl80211_bitrate_attr { +pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; +} +impl nl80211_reg_rule_attr { +pub const NL80211_REG_RULE_ATTR_MAX: nl80211_reg_rule_attr = nl80211_reg_rule_attr::NL80211_ATTR_POWER_RULE_PSD; +} +impl nl80211_sched_scan_match_attr { +pub const NL80211_SCHED_SCAN_MATCH_ATTR_MAX: nl80211_sched_scan_match_attr = nl80211_sched_scan_match_attr::NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI; +} +impl nl80211_survey_info { +pub const NL80211_SURVEY_INFO_MAX: nl80211_survey_info = nl80211_survey_info::NL80211_SURVEY_INFO_FREQUENCY_OFFSET; +} +impl nl80211_mntr_flags { +pub const NL80211_MNTR_FLAG_MAX: nl80211_mntr_flags = nl80211_mntr_flags::NL80211_MNTR_FLAG_SKIP_TX; +} +impl nl80211_mesh_power_mode { +pub const NL80211_MESH_POWER_MAX: nl80211_mesh_power_mode = nl80211_mesh_power_mode::NL80211_MESH_POWER_DEEP_SLEEP; +} +impl nl80211_meshconf_params { +pub const NL80211_MESHCONF_ATTR_MAX: nl80211_meshconf_params = nl80211_meshconf_params::NL80211_MESHCONF_CONNECTED_TO_AS; +} +impl nl80211_mesh_setup_params { +pub const NL80211_MESH_SETUP_ATTR_MAX: nl80211_mesh_setup_params = nl80211_mesh_setup_params::NL80211_MESH_SETUP_AUTH_PROTOCOL; +} +impl nl80211_txq_attr { +pub const NL80211_TXQ_ATTR_MAX: nl80211_txq_attr = nl80211_txq_attr::NL80211_TXQ_ATTR_AIFS; +} +impl nl80211_bss { +pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; +} +impl nl80211_auth_type { +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +} +impl nl80211_auth_type { +pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; +} +impl nl80211_key_attributes { +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +} +impl nl80211_tx_rate_attributes { +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +} +impl nl80211_attr_cqm { +pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; +} +impl nl80211_tid_config_attr { +pub const NL80211_TID_CONFIG_ATTR_MAX: nl80211_tid_config_attr = nl80211_tid_config_attr::NL80211_TID_CONFIG_ATTR_TX_RATE; +} +impl nl80211_packet_pattern_attr { +pub const MAX_NL80211_PKTPAT: nl80211_packet_pattern_attr = nl80211_packet_pattern_attr::NL80211_PKTPAT_OFFSET; +} +impl nl80211_wowlan_triggers { +pub const MAX_NL80211_WOWLAN_TRIG: nl80211_wowlan_triggers = nl80211_wowlan_triggers::NL80211_WOWLAN_TRIG_UNPROTECTED_DEAUTH_DISASSOC; +} +impl nl80211_wowlan_tcp_attrs { +pub const MAX_NL80211_WOWLAN_TCP: nl80211_wowlan_tcp_attrs = nl80211_wowlan_tcp_attrs::NL80211_WOWLAN_TCP_WAKE_MASK; +} +impl nl80211_attr_coalesce_rule { +pub const NL80211_ATTR_COALESCE_RULE_MAX: nl80211_attr_coalesce_rule = nl80211_attr_coalesce_rule::NL80211_ATTR_COALESCE_RULE_PKT_PATTERN; +} +impl nl80211_iface_limit_attrs { +pub const MAX_NL80211_IFACE_LIMIT: nl80211_iface_limit_attrs = nl80211_iface_limit_attrs::NL80211_IFACE_LIMIT_TYPES; +} +impl nl80211_if_combination_attrs { +pub const MAX_NL80211_IFACE_COMB: nl80211_if_combination_attrs = nl80211_if_combination_attrs::NL80211_IFACE_COMB_BI_MIN_GCD; +} +impl nl80211_plink_state { +pub const MAX_NL80211_PLINK_STATES: nl80211_plink_state = nl80211_plink_state::NL80211_PLINK_BLOCKED; +} +impl nl80211_rekey_data { +pub const MAX_NL80211_REKEY_DATA: nl80211_rekey_data = nl80211_rekey_data::NL80211_REKEY_DATA_AKM; +} +impl nl80211_sta_wme_attr { +pub const NL80211_STA_WME_MAX: nl80211_sta_wme_attr = nl80211_sta_wme_attr::NL80211_STA_WME_MAX_SP; +} +impl nl80211_pmksa_candidate_attr { +pub const MAX_NL80211_PMKSA_CANDIDATE: nl80211_pmksa_candidate_attr = nl80211_pmksa_candidate_attr::NL80211_PMKSA_CANDIDATE_PREAUTH; +} +impl nl80211_ext_feature_index { +pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; +} +impl nl80211_ext_feature_index { +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +} +impl nl80211_smps_mode { +pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; +} +impl nl80211_sched_scan_plan { +pub const NL80211_SCHED_SCAN_PLAN_MAX: nl80211_sched_scan_plan = nl80211_sched_scan_plan::NL80211_SCHED_SCAN_PLAN_ITERATIONS; +} +impl nl80211_bss_select_attr { +pub const NL80211_BSS_SELECT_ATTR_MAX: nl80211_bss_select_attr = nl80211_bss_select_attr::NL80211_BSS_SELECT_ATTR_RSSI_ADJUST; +} +impl nl80211_nan_function_type { +pub const NL80211_NAN_FUNC_MAX_TYPE: nl80211_nan_function_type = nl80211_nan_function_type::NL80211_NAN_FUNC_FOLLOW_UP; +} +impl nl80211_nan_func_attributes { +pub const NL80211_NAN_FUNC_ATTR_MAX: nl80211_nan_func_attributes = nl80211_nan_func_attributes::NL80211_NAN_FUNC_TERM_REASON; +} +impl nl80211_nan_srf_attributes { +pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf_attributes::NL80211_NAN_SRF_MAC_ADDRS; +} +impl nl80211_nan_match_attributes { +pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; +} +impl nl80211_ftm_responder_attributes { +pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; +} +impl nl80211_ftm_responder_stats { +pub const NL80211_FTM_STATS_MAX: nl80211_ftm_responder_stats = nl80211_ftm_responder_stats::NL80211_FTM_STATS_PAD; +} +impl nl80211_peer_measurement_type { +pub const NL80211_PMSR_TYPE_MAX: nl80211_peer_measurement_type = nl80211_peer_measurement_type::NL80211_PMSR_TYPE_FTM; +} +impl nl80211_peer_measurement_req { +pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer_measurement_req::NL80211_PMSR_REQ_ATTR_GET_AP_TSF; +} +impl nl80211_peer_measurement_resp { +pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; +} +impl nl80211_peer_measurement_peer_attrs { +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +} +impl nl80211_peer_measurement_attrs { +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +} +impl nl80211_peer_measurement_ftm_capa { +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +} +impl nl80211_peer_measurement_ftm_req { +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +} +impl nl80211_peer_measurement_ftm_resp { +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +} +impl nl80211_obss_pd_attributes { +pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; +} +impl nl80211_bss_color_attributes { +pub const NL80211_HE_BSS_COLOR_ATTR_MAX: nl80211_bss_color_attributes = nl80211_bss_color_attributes::NL80211_HE_BSS_COLOR_ATTR_PARTIAL; +} +impl nl80211_iftype_akm_attributes { +pub const NL80211_IFTYPE_AKM_ATTR_MAX: nl80211_iftype_akm_attributes = nl80211_iftype_akm_attributes::NL80211_IFTYPE_AKM_ATTR_SUITES; +} +impl nl80211_fils_discovery_attributes { +pub const NL80211_FILS_DISCOVERY_ATTR_MAX: nl80211_fils_discovery_attributes = nl80211_fils_discovery_attributes::NL80211_FILS_DISCOVERY_ATTR_TMPL; +} +impl nl80211_unsol_bcast_probe_resp_attributes { +pub const NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_MAX: nl80211_unsol_bcast_probe_resp_attributes = nl80211_unsol_bcast_probe_resp_attributes::NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_TMPL; +} +impl nl80211_sar_attrs { +pub const NL80211_SAR_ATTR_MAX: nl80211_sar_attrs = nl80211_sar_attrs::NL80211_SAR_ATTR_SPECS; +} +impl nl80211_sar_specs_attrs { +pub const NL80211_SAR_ATTR_SPECS_MAX: nl80211_sar_specs_attrs = nl80211_sar_specs_attrs::NL80211_SAR_ATTR_SPECS_END_FREQ; +} +impl nl80211_mbssid_config_attributes { +pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID; +} +impl nl80211_wiphy_radio_attrs { +pub const NL80211_WIPHY_RADIO_ATTR_MAX: nl80211_wiphy_radio_attrs = nl80211_wiphy_radio_attrs::NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK; +} +impl nl80211_wiphy_radio_freq_range { +pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl80211_wiphy_radio_freq_range::NL80211_WIPHY_RADIO_FREQ_ATTR_END; +} +impl macsec_validation_type { +pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; +} +impl macsec_offload { +pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; +} +impl ifla_vxlan_df { +pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; +} +impl ifla_vxlan_label_policy { +pub const VXLAN_LABEL_MAX: ifla_vxlan_label_policy = ifla_vxlan_label_policy::VXLAN_LABEL_INHERIT; +} +impl ifla_geneve_df { +pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/prctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/prctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..11f617f945160b1150eea0cd8a7df205e7cfa7b5 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/prctl.rs @@ -0,0 +1,291 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type addr_t = crate::ctypes::c_ulong; +pub type saddr_t = crate::ctypes::c_long; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_ulong; +pub type __kernel_ssize_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_ino_t = crate::ctypes::c_uint; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_sigset_t = crate::ctypes::c_ulong; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C, packed(4))] +#[derive(Copy, Clone)] +pub struct __vector128 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __vector128__bindgen_ty_1__bindgen_ty_1 { +pub high: __u64, +pub low: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct prctl_mm_map { +pub start_code: __u64, +pub end_code: __u64, +pub start_data: __u64, +pub end_data: __u64, +pub start_brk: __u64, +pub brk: __u64, +pub start_stack: __u64, +pub arg_start: __u64, +pub arg_end: __u64, +pub env_start: __u64, +pub env_end: __u64, +pub auxv: *mut __u64, +pub auxv_size: __u32, +pub exe_fd: __u32, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const PR_SET_PDEATHSIG: u32 = 1; +pub const PR_GET_PDEATHSIG: u32 = 2; +pub const PR_GET_DUMPABLE: u32 = 3; +pub const PR_SET_DUMPABLE: u32 = 4; +pub const PR_GET_UNALIGN: u32 = 5; +pub const PR_SET_UNALIGN: u32 = 6; +pub const PR_UNALIGN_NOPRINT: u32 = 1; +pub const PR_UNALIGN_SIGBUS: u32 = 2; +pub const PR_GET_KEEPCAPS: u32 = 7; +pub const PR_SET_KEEPCAPS: u32 = 8; +pub const PR_GET_FPEMU: u32 = 9; +pub const PR_SET_FPEMU: u32 = 10; +pub const PR_FPEMU_NOPRINT: u32 = 1; +pub const PR_FPEMU_SIGFPE: u32 = 2; +pub const PR_GET_FPEXC: u32 = 11; +pub const PR_SET_FPEXC: u32 = 12; +pub const PR_FP_EXC_SW_ENABLE: u32 = 128; +pub const PR_FP_EXC_DIV: u32 = 65536; +pub const PR_FP_EXC_OVF: u32 = 131072; +pub const PR_FP_EXC_UND: u32 = 262144; +pub const PR_FP_EXC_RES: u32 = 524288; +pub const PR_FP_EXC_INV: u32 = 1048576; +pub const PR_FP_EXC_DISABLED: u32 = 0; +pub const PR_FP_EXC_NONRECOV: u32 = 1; +pub const PR_FP_EXC_ASYNC: u32 = 2; +pub const PR_FP_EXC_PRECISE: u32 = 3; +pub const PR_GET_TIMING: u32 = 13; +pub const PR_SET_TIMING: u32 = 14; +pub const PR_TIMING_STATISTICAL: u32 = 0; +pub const PR_TIMING_TIMESTAMP: u32 = 1; +pub const PR_SET_NAME: u32 = 15; +pub const PR_GET_NAME: u32 = 16; +pub const PR_GET_ENDIAN: u32 = 19; +pub const PR_SET_ENDIAN: u32 = 20; +pub const PR_ENDIAN_BIG: u32 = 0; +pub const PR_ENDIAN_LITTLE: u32 = 1; +pub const PR_ENDIAN_PPC_LITTLE: u32 = 2; +pub const PR_GET_SECCOMP: u32 = 21; +pub const PR_SET_SECCOMP: u32 = 22; +pub const PR_CAPBSET_READ: u32 = 23; +pub const PR_CAPBSET_DROP: u32 = 24; +pub const PR_GET_TSC: u32 = 25; +pub const PR_SET_TSC: u32 = 26; +pub const PR_TSC_ENABLE: u32 = 1; +pub const PR_TSC_SIGSEGV: u32 = 2; +pub const PR_GET_SECUREBITS: u32 = 27; +pub const PR_SET_SECUREBITS: u32 = 28; +pub const PR_SET_TIMERSLACK: u32 = 29; +pub const PR_GET_TIMERSLACK: u32 = 30; +pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31; +pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32; +pub const PR_MCE_KILL: u32 = 33; +pub const PR_MCE_KILL_CLEAR: u32 = 0; +pub const PR_MCE_KILL_SET: u32 = 1; +pub const PR_MCE_KILL_LATE: u32 = 0; +pub const PR_MCE_KILL_EARLY: u32 = 1; +pub const PR_MCE_KILL_DEFAULT: u32 = 2; +pub const PR_MCE_KILL_GET: u32 = 34; +pub const PR_SET_MM: u32 = 35; +pub const PR_SET_MM_START_CODE: u32 = 1; +pub const PR_SET_MM_END_CODE: u32 = 2; +pub const PR_SET_MM_START_DATA: u32 = 3; +pub const PR_SET_MM_END_DATA: u32 = 4; +pub const PR_SET_MM_START_STACK: u32 = 5; +pub const PR_SET_MM_START_BRK: u32 = 6; +pub const PR_SET_MM_BRK: u32 = 7; +pub const PR_SET_MM_ARG_START: u32 = 8; +pub const PR_SET_MM_ARG_END: u32 = 9; +pub const PR_SET_MM_ENV_START: u32 = 10; +pub const PR_SET_MM_ENV_END: u32 = 11; +pub const PR_SET_MM_AUXV: u32 = 12; +pub const PR_SET_MM_EXE_FILE: u32 = 13; +pub const PR_SET_MM_MAP: u32 = 14; +pub const PR_SET_MM_MAP_SIZE: u32 = 15; +pub const PR_SET_PTRACER: u32 = 1499557217; +pub const PR_SET_CHILD_SUBREAPER: u32 = 36; +pub const PR_GET_CHILD_SUBREAPER: u32 = 37; +pub const PR_SET_NO_NEW_PRIVS: u32 = 38; +pub const PR_GET_NO_NEW_PRIVS: u32 = 39; +pub const PR_GET_TID_ADDRESS: u32 = 40; +pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_GET_THP_DISABLE: u32 = 42; +pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; +pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; +pub const PR_SET_FP_MODE: u32 = 45; +pub const PR_GET_FP_MODE: u32 = 46; +pub const PR_FP_MODE_FR: u32 = 1; +pub const PR_FP_MODE_FRE: u32 = 2; +pub const PR_CAP_AMBIENT: u32 = 47; +pub const PR_CAP_AMBIENT_IS_SET: u32 = 1; +pub const PR_CAP_AMBIENT_RAISE: u32 = 2; +pub const PR_CAP_AMBIENT_LOWER: u32 = 3; +pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4; +pub const PR_SVE_SET_VL: u32 = 50; +pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SVE_GET_VL: u32 = 51; +pub const PR_SVE_VL_LEN_MASK: u32 = 65535; +pub const PR_SVE_VL_INHERIT: u32 = 131072; +pub const PR_GET_SPECULATION_CTRL: u32 = 52; +pub const PR_SET_SPECULATION_CTRL: u32 = 53; +pub const PR_SPEC_STORE_BYPASS: u32 = 0; +pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1; +pub const PR_SPEC_L1D_FLUSH: u32 = 2; +pub const PR_SPEC_NOT_AFFECTED: u32 = 0; +pub const PR_SPEC_PRCTL: u32 = 1; +pub const PR_SPEC_ENABLE: u32 = 2; +pub const PR_SPEC_DISABLE: u32 = 4; +pub const PR_SPEC_FORCE_DISABLE: u32 = 8; +pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16; +pub const PR_PAC_RESET_KEYS: u32 = 54; +pub const PR_PAC_APIAKEY: u32 = 1; +pub const PR_PAC_APIBKEY: u32 = 2; +pub const PR_PAC_APDAKEY: u32 = 4; +pub const PR_PAC_APDBKEY: u32 = 8; +pub const PR_PAC_APGAKEY: u32 = 16; +pub const PR_SET_TAGGED_ADDR_CTRL: u32 = 55; +pub const PR_GET_TAGGED_ADDR_CTRL: u32 = 56; +pub const PR_TAGGED_ADDR_ENABLE: u32 = 1; +pub const PR_MTE_TCF_NONE: u32 = 0; +pub const PR_MTE_TCF_SYNC: u32 = 2; +pub const PR_MTE_TCF_ASYNC: u32 = 4; +pub const PR_MTE_TCF_MASK: u32 = 6; +pub const PR_MTE_TAG_SHIFT: u32 = 3; +pub const PR_MTE_TAG_MASK: u32 = 524280; +pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_PMLEN_SHIFT: u32 = 24; +pub const PR_PMLEN_MASK: u32 = 2130706432; +pub const PR_SET_IO_FLUSHER: u32 = 57; +pub const PR_GET_IO_FLUSHER: u32 = 58; +pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; +pub const PR_SYS_DISPATCH_OFF: u32 = 0; +pub const PR_SYS_DISPATCH_ON: u32 = 1; +pub const SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; +pub const SYSCALL_DISPATCH_FILTER_BLOCK: u32 = 1; +pub const PR_PAC_SET_ENABLED_KEYS: u32 = 60; +pub const PR_PAC_GET_ENABLED_KEYS: u32 = 61; +pub const PR_SCHED_CORE: u32 = 62; +pub const PR_SCHED_CORE_GET: u32 = 0; +pub const PR_SCHED_CORE_CREATE: u32 = 1; +pub const PR_SCHED_CORE_SHARE_TO: u32 = 2; +pub const PR_SCHED_CORE_SHARE_FROM: u32 = 3; +pub const PR_SCHED_CORE_MAX: u32 = 4; +pub const PR_SCHED_CORE_SCOPE_THREAD: u32 = 0; +pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: u32 = 1; +pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: u32 = 2; +pub const PR_SME_SET_VL: u32 = 63; +pub const PR_SME_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SME_GET_VL: u32 = 64; +pub const PR_SME_VL_LEN_MASK: u32 = 65535; +pub const PR_SME_VL_INHERIT: u32 = 131072; +pub const PR_SET_MDWE: u32 = 65; +pub const PR_MDWE_REFUSE_EXEC_GAIN: u32 = 1; +pub const PR_MDWE_NO_INHERIT: u32 = 2; +pub const PR_GET_MDWE: u32 = 66; +pub const PR_SET_VMA: u32 = 1398164801; +pub const PR_SET_VMA_ANON_NAME: u32 = 0; +pub const PR_GET_AUXV: u32 = 1096112214; +pub const PR_SET_MEMORY_MERGE: u32 = 67; +pub const PR_GET_MEMORY_MERGE: u32 = 68; +pub const PR_RISCV_V_SET_CONTROL: u32 = 69; +pub const PR_RISCV_V_GET_CONTROL: u32 = 70; +pub const PR_RISCV_V_VSTATE_CTRL_DEFAULT: u32 = 0; +pub const PR_RISCV_V_VSTATE_CTRL_OFF: u32 = 1; +pub const PR_RISCV_V_VSTATE_CTRL_ON: u32 = 2; +pub const PR_RISCV_V_VSTATE_CTRL_INHERIT: u32 = 16; +pub const PR_RISCV_V_VSTATE_CTRL_CUR_MASK: u32 = 3; +pub const PR_RISCV_V_VSTATE_CTRL_NEXT_MASK: u32 = 12; +pub const PR_RISCV_V_VSTATE_CTRL_MASK: u32 = 31; +pub const PR_RISCV_SET_ICACHE_FLUSH_CTX: u32 = 71; +pub const PR_RISCV_CTX_SW_FENCEI_ON: u32 = 0; +pub const PR_RISCV_CTX_SW_FENCEI_OFF: u32 = 1; +pub const PR_RISCV_SCOPE_PER_PROCESS: u32 = 0; +pub const PR_RISCV_SCOPE_PER_THREAD: u32 = 1; +pub const PR_PPC_GET_DEXCR: u32 = 72; +pub const PR_PPC_SET_DEXCR: u32 = 73; +pub const PR_PPC_DEXCR_SBHE: u32 = 0; +pub const PR_PPC_DEXCR_IBRTPD: u32 = 1; +pub const PR_PPC_DEXCR_SRAPD: u32 = 2; +pub const PR_PPC_DEXCR_NPHIE: u32 = 3; +pub const PR_PPC_DEXCR_CTRL_EDITABLE: u32 = 1; +pub const PR_PPC_DEXCR_CTRL_SET: u32 = 2; +pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; +pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; +pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; +pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; +pub const PR_GET_SHADOW_STACK_STATUS: u32 = 74; +pub const PR_SET_SHADOW_STACK_STATUS: u32 = 75; +pub const PR_SHADOW_STACK_ENABLE: u32 = 1; +pub const PR_SHADOW_STACK_WRITE: u32 = 2; +pub const PR_SHADOW_STACK_PUSH: u32 = 4; +pub const PR_LOCK_SHADOW_STACK_STATUS: u32 = 76; +pub const PR_TIMER_CREATE_RESTORE_IDS: u32 = 77; +pub const PR_TIMER_CREATE_RESTORE_IDS_OFF: u32 = 0; +pub const PR_TIMER_CREATE_RESTORE_IDS_ON: u32 = 1; +pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; +pub const PR_FUTEX_HASH: u32 = 78; +pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; +pub const FH_FLAG_IMMUTABLE: u32 = 1; +pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_FUTEX_HASH_GET_IMMUTABLE: u32 = 3; +#[repr(C)] +#[derive(Copy, Clone)] +pub union __vector128__bindgen_ty_1 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1, +pub u: [__u32; 4usize], +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/ptrace.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/ptrace.rs new file mode 100644 index 0000000000000000000000000000000000000000..6194649f5aed55376e0a2a2a8a4ac13f9a0f8a31 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/ptrace.rs @@ -0,0 +1,1755 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type addr_t = crate::ctypes::c_ulong; +pub type saddr_t = crate::ctypes::c_long; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_ulong; +pub type __kernel_ssize_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_ino_t = crate::ctypes::c_uint; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_sigset_t = crate::ctypes::c_ulong; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] +pub struct __BindgenBitfieldUnit { +storage: Storage, +} +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C, packed(4))] +#[derive(Copy, Clone)] +pub struct __vector128 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __vector128__bindgen_ty_1__bindgen_ty_1 { +pub high: __u64, +pub low: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct audit_status { +pub mask: __u32, +pub enabled: __u32, +pub failure: __u32, +pub pid: __u32, +pub rate_limit: __u32, +pub backlog_limit: __u32, +pub lost: __u32, +pub backlog: __u32, +pub __bindgen_anon_1: audit_status__bindgen_ty_1, +pub backlog_wait_time: __u32, +pub backlog_wait_time_actual: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct audit_features { +pub vers: __u32, +pub mask: __u32, +pub features: __u32, +pub lock: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct audit_tty_status { +pub enabled: __u32, +pub log_passwd: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct audit_rule_data { +pub flags: __u32, +pub action: __u32, +pub field_count: __u32, +pub mask: [__u32; 64usize], +pub fields: [__u32; 64usize], +pub values: [__u32; 64usize], +pub fieldflags: [__u32; 64usize], +pub buflen: __u32, +pub buf: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sock_filter { +pub code: __u16, +pub jt: __u8, +pub jf: __u8, +pub k: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sock_fprog { +pub len: crate::ctypes::c_ushort, +pub filter: *mut sock_filter, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_peeksiginfo_args { +pub off: __u64, +pub flags: __u32, +pub nr: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_metadata { +pub filter_off: __u64, +pub flags: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ptrace_syscall_info { +pub op: __u8, +pub reserved: __u8, +pub flags: __u16, +pub arch: __u32, +pub instruction_pointer: __u64, +pub stack_pointer: __u64, +pub __bindgen_anon_1: ptrace_syscall_info__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_syscall_info__bindgen_ty_1__bindgen_ty_1 { +pub nr: __u64, +pub args: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_syscall_info__bindgen_ty_1__bindgen_ty_2 { +pub rval: __s64, +pub is_error: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_syscall_info__bindgen_ty_1__bindgen_ty_3 { +pub nr: __u64, +pub args: [__u64; 6usize], +pub ret_data: __u32, +pub reserved2: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_rseq_configuration { +pub rseq_abi_pointer: __u64, +pub rseq_abi_size: __u32, +pub signature: __u32, +pub flags: __u32, +pub pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_sud_config { +pub mode: __u64, +pub selector: __u64, +pub offset: __u64, +pub len: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct freg_t__bindgen_ty_1 { +pub hi: __u32, +pub lo: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct s390_fp_regs { +pub fpc: __u32, +pub pad: __u32, +pub fprs: [freg_t; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct psw_t { +pub mask: crate::ctypes::c_ulong, +pub addr: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct s390_regs { +pub psw: psw_t, +pub gprs: [crate::ctypes::c_ulong; 16usize], +pub acrs: [crate::ctypes::c_uint; 16usize], +pub orig_gpr2: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_pt_regs { +pub args: [crate::ctypes::c_ulong; 1usize], +pub psw: psw_t, +pub gprs: [crate::ctypes::c_ulong; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct per_cr_words { +pub cr: [crate::ctypes::c_ulong; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct per_cr_bits { +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>, +pub starting_addr: crate::ctypes::c_ulong, +pub ending_addr: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct per_lowcore_words { +pub perc_atmid: crate::ctypes::c_ushort, +pub address: crate::ctypes::c_ulong, +pub access_id: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct per_lowcore_bits { +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +pub address: crate::ctypes::c_ulong, +pub _bitfield_align_2: [u8; 0], +pub _bitfield_2: __BindgenBitfieldUnit<[u8; 1usize]>, +pub __bindgen_padding_0: [u8; 7usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct per_struct { +pub control_regs: per_struct__bindgen_ty_1, +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +pub starting_addr: crate::ctypes::c_ulong, +pub ending_addr: crate::ctypes::c_ulong, +pub lowcore: per_struct__bindgen_ty_2, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_area { +pub len: crate::ctypes::c_uint, +pub kernel_addr: crate::ctypes::c_ulong, +pub process_addr: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptprot_area { +pub lowaddr: crate::ctypes::c_ulong, +pub hiaddr: crate::ctypes::c_ulong, +pub prot: ptprot_flags, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct user_regs_struct { +pub psw: psw_t, +pub gprs: [crate::ctypes::c_ulong; 16usize], +pub acrs: [crate::ctypes::c_uint; 16usize], +pub orig_gpr2: crate::ctypes::c_ulong, +pub fp_regs: s390_fp_regs, +pub per_info: per_struct, +pub ieee_instruction_pointer: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_data { +pub nr: crate::ctypes::c_int, +pub arch: __u32, +pub instruction_pointer: __u64, +pub args: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif_sizes { +pub seccomp_notif: __u16, +pub seccomp_notif_resp: __u16, +pub seccomp_data: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif { +pub id: __u64, +pub pid: __u32, +pub flags: __u32, +pub data: seccomp_data, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif_resp { +pub id: __u64, +pub val: __s64, +pub error: __s32, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif_addfd { +pub id: __u64, +pub flags: __u32, +pub srcfd: __u32, +pub newfd: __u32, +pub newfd_flags: __u32, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const EM_NONE: u32 = 0; +pub const EM_M32: u32 = 1; +pub const EM_SPARC: u32 = 2; +pub const EM_386: u32 = 3; +pub const EM_68K: u32 = 4; +pub const EM_88K: u32 = 5; +pub const EM_486: u32 = 6; +pub const EM_860: u32 = 7; +pub const EM_MIPS: u32 = 8; +pub const EM_MIPS_RS3_LE: u32 = 10; +pub const EM_MIPS_RS4_BE: u32 = 10; +pub const EM_PARISC: u32 = 15; +pub const EM_SPARC32PLUS: u32 = 18; +pub const EM_PPC: u32 = 20; +pub const EM_PPC64: u32 = 21; +pub const EM_SPU: u32 = 23; +pub const EM_ARM: u32 = 40; +pub const EM_SH: u32 = 42; +pub const EM_SPARCV9: u32 = 43; +pub const EM_H8_300: u32 = 46; +pub const EM_IA_64: u32 = 50; +pub const EM_X86_64: u32 = 62; +pub const EM_S390: u32 = 22; +pub const EM_CRIS: u32 = 76; +pub const EM_M32R: u32 = 88; +pub const EM_MN10300: u32 = 89; +pub const EM_OPENRISC: u32 = 92; +pub const EM_ARCOMPACT: u32 = 93; +pub const EM_XTENSA: u32 = 94; +pub const EM_BLACKFIN: u32 = 106; +pub const EM_UNICORE: u32 = 110; +pub const EM_ALTERA_NIOS2: u32 = 113; +pub const EM_TI_C6000: u32 = 140; +pub const EM_HEXAGON: u32 = 164; +pub const EM_NDS32: u32 = 167; +pub const EM_AARCH64: u32 = 183; +pub const EM_TILEPRO: u32 = 188; +pub const EM_MICROBLAZE: u32 = 189; +pub const EM_TILEGX: u32 = 191; +pub const EM_ARCV2: u32 = 195; +pub const EM_RISCV: u32 = 243; +pub const EM_BPF: u32 = 247; +pub const EM_CSKY: u32 = 252; +pub const EM_LOONGARCH: u32 = 258; +pub const EM_FRV: u32 = 21569; +pub const EM_ALPHA: u32 = 36902; +pub const EM_CYGNUS_M32R: u32 = 36929; +pub const EM_S390_OLD: u32 = 41872; +pub const EM_CYGNUS_MN10300: u32 = 48879; +pub const AUDIT_GET: u32 = 1000; +pub const AUDIT_SET: u32 = 1001; +pub const AUDIT_LIST: u32 = 1002; +pub const AUDIT_ADD: u32 = 1003; +pub const AUDIT_DEL: u32 = 1004; +pub const AUDIT_USER: u32 = 1005; +pub const AUDIT_LOGIN: u32 = 1006; +pub const AUDIT_WATCH_INS: u32 = 1007; +pub const AUDIT_WATCH_REM: u32 = 1008; +pub const AUDIT_WATCH_LIST: u32 = 1009; +pub const AUDIT_SIGNAL_INFO: u32 = 1010; +pub const AUDIT_ADD_RULE: u32 = 1011; +pub const AUDIT_DEL_RULE: u32 = 1012; +pub const AUDIT_LIST_RULES: u32 = 1013; +pub const AUDIT_TRIM: u32 = 1014; +pub const AUDIT_MAKE_EQUIV: u32 = 1015; +pub const AUDIT_TTY_GET: u32 = 1016; +pub const AUDIT_TTY_SET: u32 = 1017; +pub const AUDIT_SET_FEATURE: u32 = 1018; +pub const AUDIT_GET_FEATURE: u32 = 1019; +pub const AUDIT_FIRST_USER_MSG: u32 = 1100; +pub const AUDIT_USER_AVC: u32 = 1107; +pub const AUDIT_USER_TTY: u32 = 1124; +pub const AUDIT_LAST_USER_MSG: u32 = 1199; +pub const AUDIT_FIRST_USER_MSG2: u32 = 2100; +pub const AUDIT_LAST_USER_MSG2: u32 = 2999; +pub const AUDIT_DAEMON_START: u32 = 1200; +pub const AUDIT_DAEMON_END: u32 = 1201; +pub const AUDIT_DAEMON_ABORT: u32 = 1202; +pub const AUDIT_DAEMON_CONFIG: u32 = 1203; +pub const AUDIT_SYSCALL: u32 = 1300; +pub const AUDIT_PATH: u32 = 1302; +pub const AUDIT_IPC: u32 = 1303; +pub const AUDIT_SOCKETCALL: u32 = 1304; +pub const AUDIT_CONFIG_CHANGE: u32 = 1305; +pub const AUDIT_SOCKADDR: u32 = 1306; +pub const AUDIT_CWD: u32 = 1307; +pub const AUDIT_EXECVE: u32 = 1309; +pub const AUDIT_IPC_SET_PERM: u32 = 1311; +pub const AUDIT_MQ_OPEN: u32 = 1312; +pub const AUDIT_MQ_SENDRECV: u32 = 1313; +pub const AUDIT_MQ_NOTIFY: u32 = 1314; +pub const AUDIT_MQ_GETSETATTR: u32 = 1315; +pub const AUDIT_KERNEL_OTHER: u32 = 1316; +pub const AUDIT_FD_PAIR: u32 = 1317; +pub const AUDIT_OBJ_PID: u32 = 1318; +pub const AUDIT_TTY: u32 = 1319; +pub const AUDIT_EOE: u32 = 1320; +pub const AUDIT_BPRM_FCAPS: u32 = 1321; +pub const AUDIT_CAPSET: u32 = 1322; +pub const AUDIT_MMAP: u32 = 1323; +pub const AUDIT_NETFILTER_PKT: u32 = 1324; +pub const AUDIT_NETFILTER_CFG: u32 = 1325; +pub const AUDIT_SECCOMP: u32 = 1326; +pub const AUDIT_PROCTITLE: u32 = 1327; +pub const AUDIT_FEATURE_CHANGE: u32 = 1328; +pub const AUDIT_REPLACE: u32 = 1329; +pub const AUDIT_KERN_MODULE: u32 = 1330; +pub const AUDIT_FANOTIFY: u32 = 1331; +pub const AUDIT_TIME_INJOFFSET: u32 = 1332; +pub const AUDIT_TIME_ADJNTPVAL: u32 = 1333; +pub const AUDIT_BPF: u32 = 1334; +pub const AUDIT_EVENT_LISTENER: u32 = 1335; +pub const AUDIT_URINGOP: u32 = 1336; +pub const AUDIT_OPENAT2: u32 = 1337; +pub const AUDIT_DM_CTRL: u32 = 1338; +pub const AUDIT_DM_EVENT: u32 = 1339; +pub const AUDIT_AVC: u32 = 1400; +pub const AUDIT_SELINUX_ERR: u32 = 1401; +pub const AUDIT_AVC_PATH: u32 = 1402; +pub const AUDIT_MAC_POLICY_LOAD: u32 = 1403; +pub const AUDIT_MAC_STATUS: u32 = 1404; +pub const AUDIT_MAC_CONFIG_CHANGE: u32 = 1405; +pub const AUDIT_MAC_UNLBL_ALLOW: u32 = 1406; +pub const AUDIT_MAC_CIPSOV4_ADD: u32 = 1407; +pub const AUDIT_MAC_CIPSOV4_DEL: u32 = 1408; +pub const AUDIT_MAC_MAP_ADD: u32 = 1409; +pub const AUDIT_MAC_MAP_DEL: u32 = 1410; +pub const AUDIT_MAC_IPSEC_ADDSA: u32 = 1411; +pub const AUDIT_MAC_IPSEC_DELSA: u32 = 1412; +pub const AUDIT_MAC_IPSEC_ADDSPD: u32 = 1413; +pub const AUDIT_MAC_IPSEC_DELSPD: u32 = 1414; +pub const AUDIT_MAC_IPSEC_EVENT: u32 = 1415; +pub const AUDIT_MAC_UNLBL_STCADD: u32 = 1416; +pub const AUDIT_MAC_UNLBL_STCDEL: u32 = 1417; +pub const AUDIT_MAC_CALIPSO_ADD: u32 = 1418; +pub const AUDIT_MAC_CALIPSO_DEL: u32 = 1419; +pub const AUDIT_IPE_ACCESS: u32 = 1420; +pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; +pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; +pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; +pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; +pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; +pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; +pub const AUDIT_ANOM_ABEND: u32 = 1701; +pub const AUDIT_ANOM_LINK: u32 = 1702; +pub const AUDIT_ANOM_CREAT: u32 = 1703; +pub const AUDIT_INTEGRITY_DATA: u32 = 1800; +pub const AUDIT_INTEGRITY_METADATA: u32 = 1801; +pub const AUDIT_INTEGRITY_STATUS: u32 = 1802; +pub const AUDIT_INTEGRITY_HASH: u32 = 1803; +pub const AUDIT_INTEGRITY_PCR: u32 = 1804; +pub const AUDIT_INTEGRITY_RULE: u32 = 1805; +pub const AUDIT_INTEGRITY_EVM_XATTR: u32 = 1806; +pub const AUDIT_INTEGRITY_POLICY_RULE: u32 = 1807; +pub const AUDIT_INTEGRITY_USERSPACE: u32 = 1808; +pub const AUDIT_KERNEL: u32 = 2000; +pub const AUDIT_FILTER_USER: u32 = 0; +pub const AUDIT_FILTER_TASK: u32 = 1; +pub const AUDIT_FILTER_ENTRY: u32 = 2; +pub const AUDIT_FILTER_WATCH: u32 = 3; +pub const AUDIT_FILTER_EXIT: u32 = 4; +pub const AUDIT_FILTER_EXCLUDE: u32 = 5; +pub const AUDIT_FILTER_TYPE: u32 = 5; +pub const AUDIT_FILTER_FS: u32 = 6; +pub const AUDIT_FILTER_URING_EXIT: u32 = 7; +pub const AUDIT_NR_FILTERS: u32 = 8; +pub const AUDIT_FILTER_PREPEND: u32 = 16; +pub const AUDIT_NEVER: u32 = 0; +pub const AUDIT_POSSIBLE: u32 = 1; +pub const AUDIT_ALWAYS: u32 = 2; +pub const AUDIT_MAX_FIELDS: u32 = 64; +pub const AUDIT_MAX_KEY_LEN: u32 = 256; +pub const AUDIT_BITMASK_SIZE: u32 = 64; +pub const AUDIT_SYSCALL_CLASSES: u32 = 16; +pub const AUDIT_CLASS_DIR_WRITE: u32 = 0; +pub const AUDIT_CLASS_DIR_WRITE_32: u32 = 1; +pub const AUDIT_CLASS_CHATTR: u32 = 2; +pub const AUDIT_CLASS_CHATTR_32: u32 = 3; +pub const AUDIT_CLASS_READ: u32 = 4; +pub const AUDIT_CLASS_READ_32: u32 = 5; +pub const AUDIT_CLASS_WRITE: u32 = 6; +pub const AUDIT_CLASS_WRITE_32: u32 = 7; +pub const AUDIT_CLASS_SIGNAL: u32 = 8; +pub const AUDIT_CLASS_SIGNAL_32: u32 = 9; +pub const AUDIT_UNUSED_BITS: u32 = 134216704; +pub const AUDIT_COMPARE_UID_TO_OBJ_UID: u32 = 1; +pub const AUDIT_COMPARE_GID_TO_OBJ_GID: u32 = 2; +pub const AUDIT_COMPARE_EUID_TO_OBJ_UID: u32 = 3; +pub const AUDIT_COMPARE_EGID_TO_OBJ_GID: u32 = 4; +pub const AUDIT_COMPARE_AUID_TO_OBJ_UID: u32 = 5; +pub const AUDIT_COMPARE_SUID_TO_OBJ_UID: u32 = 6; +pub const AUDIT_COMPARE_SGID_TO_OBJ_GID: u32 = 7; +pub const AUDIT_COMPARE_FSUID_TO_OBJ_UID: u32 = 8; +pub const AUDIT_COMPARE_FSGID_TO_OBJ_GID: u32 = 9; +pub const AUDIT_COMPARE_UID_TO_AUID: u32 = 10; +pub const AUDIT_COMPARE_UID_TO_EUID: u32 = 11; +pub const AUDIT_COMPARE_UID_TO_FSUID: u32 = 12; +pub const AUDIT_COMPARE_UID_TO_SUID: u32 = 13; +pub const AUDIT_COMPARE_AUID_TO_FSUID: u32 = 14; +pub const AUDIT_COMPARE_AUID_TO_SUID: u32 = 15; +pub const AUDIT_COMPARE_AUID_TO_EUID: u32 = 16; +pub const AUDIT_COMPARE_EUID_TO_SUID: u32 = 17; +pub const AUDIT_COMPARE_EUID_TO_FSUID: u32 = 18; +pub const AUDIT_COMPARE_SUID_TO_FSUID: u32 = 19; +pub const AUDIT_COMPARE_GID_TO_EGID: u32 = 20; +pub const AUDIT_COMPARE_GID_TO_FSGID: u32 = 21; +pub const AUDIT_COMPARE_GID_TO_SGID: u32 = 22; +pub const AUDIT_COMPARE_EGID_TO_FSGID: u32 = 23; +pub const AUDIT_COMPARE_EGID_TO_SGID: u32 = 24; +pub const AUDIT_COMPARE_SGID_TO_FSGID: u32 = 25; +pub const AUDIT_MAX_FIELD_COMPARE: u32 = 25; +pub const AUDIT_PID: u32 = 0; +pub const AUDIT_UID: u32 = 1; +pub const AUDIT_EUID: u32 = 2; +pub const AUDIT_SUID: u32 = 3; +pub const AUDIT_FSUID: u32 = 4; +pub const AUDIT_GID: u32 = 5; +pub const AUDIT_EGID: u32 = 6; +pub const AUDIT_SGID: u32 = 7; +pub const AUDIT_FSGID: u32 = 8; +pub const AUDIT_LOGINUID: u32 = 9; +pub const AUDIT_PERS: u32 = 10; +pub const AUDIT_ARCH: u32 = 11; +pub const AUDIT_MSGTYPE: u32 = 12; +pub const AUDIT_SUBJ_USER: u32 = 13; +pub const AUDIT_SUBJ_ROLE: u32 = 14; +pub const AUDIT_SUBJ_TYPE: u32 = 15; +pub const AUDIT_SUBJ_SEN: u32 = 16; +pub const AUDIT_SUBJ_CLR: u32 = 17; +pub const AUDIT_PPID: u32 = 18; +pub const AUDIT_OBJ_USER: u32 = 19; +pub const AUDIT_OBJ_ROLE: u32 = 20; +pub const AUDIT_OBJ_TYPE: u32 = 21; +pub const AUDIT_OBJ_LEV_LOW: u32 = 22; +pub const AUDIT_OBJ_LEV_HIGH: u32 = 23; +pub const AUDIT_LOGINUID_SET: u32 = 24; +pub const AUDIT_SESSIONID: u32 = 25; +pub const AUDIT_FSTYPE: u32 = 26; +pub const AUDIT_DEVMAJOR: u32 = 100; +pub const AUDIT_DEVMINOR: u32 = 101; +pub const AUDIT_INODE: u32 = 102; +pub const AUDIT_EXIT: u32 = 103; +pub const AUDIT_SUCCESS: u32 = 104; +pub const AUDIT_WATCH: u32 = 105; +pub const AUDIT_PERM: u32 = 106; +pub const AUDIT_DIR: u32 = 107; +pub const AUDIT_FILETYPE: u32 = 108; +pub const AUDIT_OBJ_UID: u32 = 109; +pub const AUDIT_OBJ_GID: u32 = 110; +pub const AUDIT_FIELD_COMPARE: u32 = 111; +pub const AUDIT_EXE: u32 = 112; +pub const AUDIT_SADDR_FAM: u32 = 113; +pub const AUDIT_ARG0: u32 = 200; +pub const AUDIT_ARG1: u32 = 201; +pub const AUDIT_ARG2: u32 = 202; +pub const AUDIT_ARG3: u32 = 203; +pub const AUDIT_FILTERKEY: u32 = 210; +pub const AUDIT_NEGATE: u32 = 2147483648; +pub const AUDIT_BIT_MASK: u32 = 134217728; +pub const AUDIT_LESS_THAN: u32 = 268435456; +pub const AUDIT_GREATER_THAN: u32 = 536870912; +pub const AUDIT_NOT_EQUAL: u32 = 805306368; +pub const AUDIT_EQUAL: u32 = 1073741824; +pub const AUDIT_BIT_TEST: u32 = 1207959552; +pub const AUDIT_LESS_THAN_OR_EQUAL: u32 = 1342177280; +pub const AUDIT_GREATER_THAN_OR_EQUAL: u32 = 1610612736; +pub const AUDIT_OPERATORS: u32 = 2013265920; +pub const AUDIT_STATUS_ENABLED: u32 = 1; +pub const AUDIT_STATUS_FAILURE: u32 = 2; +pub const AUDIT_STATUS_PID: u32 = 4; +pub const AUDIT_STATUS_RATE_LIMIT: u32 = 8; +pub const AUDIT_STATUS_BACKLOG_LIMIT: u32 = 16; +pub const AUDIT_STATUS_BACKLOG_WAIT_TIME: u32 = 32; +pub const AUDIT_STATUS_LOST: u32 = 64; +pub const AUDIT_STATUS_BACKLOG_WAIT_TIME_ACTUAL: u32 = 128; +pub const AUDIT_FEATURE_BITMAP_BACKLOG_LIMIT: u32 = 1; +pub const AUDIT_FEATURE_BITMAP_BACKLOG_WAIT_TIME: u32 = 2; +pub const AUDIT_FEATURE_BITMAP_EXECUTABLE_PATH: u32 = 4; +pub const AUDIT_FEATURE_BITMAP_EXCLUDE_EXTEND: u32 = 8; +pub const AUDIT_FEATURE_BITMAP_SESSIONID_FILTER: u32 = 16; +pub const AUDIT_FEATURE_BITMAP_LOST_RESET: u32 = 32; +pub const AUDIT_FEATURE_BITMAP_FILTER_FS: u32 = 64; +pub const AUDIT_FEATURE_BITMAP_ALL: u32 = 127; +pub const AUDIT_VERSION_LATEST: u32 = 127; +pub const AUDIT_VERSION_BACKLOG_LIMIT: u32 = 1; +pub const AUDIT_VERSION_BACKLOG_WAIT_TIME: u32 = 2; +pub const AUDIT_FAIL_SILENT: u32 = 0; +pub const AUDIT_FAIL_PRINTK: u32 = 1; +pub const AUDIT_FAIL_PANIC: u32 = 2; +pub const __AUDIT_ARCH_CONVENTION_MASK: u32 = 805306368; +pub const __AUDIT_ARCH_CONVENTION_MIPS64_N32: u32 = 536870912; +pub const __AUDIT_ARCH_64BIT: u32 = 2147483648; +pub const __AUDIT_ARCH_LE: u32 = 1073741824; +pub const AUDIT_ARCH_AARCH64: u32 = 3221225655; +pub const AUDIT_ARCH_ALPHA: u32 = 3221262374; +pub const AUDIT_ARCH_ARCOMPACT: u32 = 1073741917; +pub const AUDIT_ARCH_ARCOMPACTBE: u32 = 93; +pub const AUDIT_ARCH_ARCV2: u32 = 1073742019; +pub const AUDIT_ARCH_ARCV2BE: u32 = 195; +pub const AUDIT_ARCH_ARM: u32 = 1073741864; +pub const AUDIT_ARCH_ARMEB: u32 = 40; +pub const AUDIT_ARCH_C6X: u32 = 1073741964; +pub const AUDIT_ARCH_C6XBE: u32 = 140; +pub const AUDIT_ARCH_CRIS: u32 = 1073741900; +pub const AUDIT_ARCH_CSKY: u32 = 1073742076; +pub const AUDIT_ARCH_FRV: u32 = 21569; +pub const AUDIT_ARCH_H8300: u32 = 46; +pub const AUDIT_ARCH_HEXAGON: u32 = 164; +pub const AUDIT_ARCH_I386: u32 = 1073741827; +pub const AUDIT_ARCH_IA64: u32 = 3221225522; +pub const AUDIT_ARCH_M32R: u32 = 88; +pub const AUDIT_ARCH_M68K: u32 = 4; +pub const AUDIT_ARCH_MICROBLAZE: u32 = 189; +pub const AUDIT_ARCH_MIPS: u32 = 8; +pub const AUDIT_ARCH_MIPSEL: u32 = 1073741832; +pub const AUDIT_ARCH_MIPS64: u32 = 2147483656; +pub const AUDIT_ARCH_MIPS64N32: u32 = 2684354568; +pub const AUDIT_ARCH_MIPSEL64: u32 = 3221225480; +pub const AUDIT_ARCH_MIPSEL64N32: u32 = 3758096392; +pub const AUDIT_ARCH_NDS32: u32 = 1073741991; +pub const AUDIT_ARCH_NDS32BE: u32 = 167; +pub const AUDIT_ARCH_NIOS2: u32 = 1073741937; +pub const AUDIT_ARCH_OPENRISC: u32 = 92; +pub const AUDIT_ARCH_PARISC: u32 = 15; +pub const AUDIT_ARCH_PARISC64: u32 = 2147483663; +pub const AUDIT_ARCH_PPC: u32 = 20; +pub const AUDIT_ARCH_PPC64: u32 = 2147483669; +pub const AUDIT_ARCH_PPC64LE: u32 = 3221225493; +pub const AUDIT_ARCH_RISCV32: u32 = 1073742067; +pub const AUDIT_ARCH_RISCV64: u32 = 3221225715; +pub const AUDIT_ARCH_S390: u32 = 22; +pub const AUDIT_ARCH_S390X: u32 = 2147483670; +pub const AUDIT_ARCH_SH: u32 = 42; +pub const AUDIT_ARCH_SHEL: u32 = 1073741866; +pub const AUDIT_ARCH_SH64: u32 = 2147483690; +pub const AUDIT_ARCH_SHEL64: u32 = 3221225514; +pub const AUDIT_ARCH_SPARC: u32 = 2; +pub const AUDIT_ARCH_SPARC64: u32 = 2147483691; +pub const AUDIT_ARCH_TILEGX: u32 = 3221225663; +pub const AUDIT_ARCH_TILEGX32: u32 = 1073742015; +pub const AUDIT_ARCH_TILEPRO: u32 = 1073742012; +pub const AUDIT_ARCH_UNICORE: u32 = 1073741934; +pub const AUDIT_ARCH_X86_64: u32 = 3221225534; +pub const AUDIT_ARCH_XTENSA: u32 = 94; +pub const AUDIT_ARCH_LOONGARCH32: u32 = 1073742082; +pub const AUDIT_ARCH_LOONGARCH64: u32 = 3221225730; +pub const AUDIT_PERM_EXEC: u32 = 1; +pub const AUDIT_PERM_WRITE: u32 = 2; +pub const AUDIT_PERM_READ: u32 = 4; +pub const AUDIT_PERM_ATTR: u32 = 8; +pub const AUDIT_MESSAGE_TEXT_MAX: u32 = 8560; +pub const AUDIT_FEATURE_VERSION: u32 = 1; +pub const AUDIT_FEATURE_ONLY_UNSET_LOGINUID: u32 = 0; +pub const AUDIT_FEATURE_LOGINUID_IMMUTABLE: u32 = 1; +pub const AUDIT_LAST_FEATURE: u32 = 1; +pub const BPF_LD: u32 = 0; +pub const BPF_LDX: u32 = 1; +pub const BPF_ST: u32 = 2; +pub const BPF_STX: u32 = 3; +pub const BPF_ALU: u32 = 4; +pub const BPF_JMP: u32 = 5; +pub const BPF_RET: u32 = 6; +pub const BPF_MISC: u32 = 7; +pub const BPF_W: u32 = 0; +pub const BPF_H: u32 = 8; +pub const BPF_B: u32 = 16; +pub const BPF_IMM: u32 = 0; +pub const BPF_ABS: u32 = 32; +pub const BPF_IND: u32 = 64; +pub const BPF_MEM: u32 = 96; +pub const BPF_LEN: u32 = 128; +pub const BPF_MSH: u32 = 160; +pub const BPF_ADD: u32 = 0; +pub const BPF_SUB: u32 = 16; +pub const BPF_MUL: u32 = 32; +pub const BPF_DIV: u32 = 48; +pub const BPF_OR: u32 = 64; +pub const BPF_AND: u32 = 80; +pub const BPF_LSH: u32 = 96; +pub const BPF_RSH: u32 = 112; +pub const BPF_NEG: u32 = 128; +pub const BPF_MOD: u32 = 144; +pub const BPF_XOR: u32 = 160; +pub const BPF_JA: u32 = 0; +pub const BPF_JEQ: u32 = 16; +pub const BPF_JGT: u32 = 32; +pub const BPF_JGE: u32 = 48; +pub const BPF_JSET: u32 = 64; +pub const BPF_K: u32 = 0; +pub const BPF_X: u32 = 8; +pub const BPF_MAXINSNS: u32 = 4096; +pub const BPF_MAJOR_VERSION: u32 = 1; +pub const BPF_MINOR_VERSION: u32 = 1; +pub const BPF_A: u32 = 16; +pub const BPF_TAX: u32 = 0; +pub const BPF_TXA: u32 = 128; +pub const BPF_MEMWORDS: u32 = 16; +pub const SKF_AD_OFF: i32 = -4096; +pub const SKF_AD_PROTOCOL: u32 = 0; +pub const SKF_AD_PKTTYPE: u32 = 4; +pub const SKF_AD_IFINDEX: u32 = 8; +pub const SKF_AD_NLATTR: u32 = 12; +pub const SKF_AD_NLATTR_NEST: u32 = 16; +pub const SKF_AD_MARK: u32 = 20; +pub const SKF_AD_QUEUE: u32 = 24; +pub const SKF_AD_HATYPE: u32 = 28; +pub const SKF_AD_RXHASH: u32 = 32; +pub const SKF_AD_CPU: u32 = 36; +pub const SKF_AD_ALU_XOR_X: u32 = 40; +pub const SKF_AD_VLAN_TAG: u32 = 44; +pub const SKF_AD_VLAN_TAG_PRESENT: u32 = 48; +pub const SKF_AD_PAY_OFFSET: u32 = 52; +pub const SKF_AD_RANDOM: u32 = 56; +pub const SKF_AD_VLAN_TPID: u32 = 60; +pub const SKF_AD_MAX: u32 = 64; +pub const SKF_NET_OFF: i32 = -1048576; +pub const SKF_LL_OFF: i32 = -2097152; +pub const BPF_NET_OFF: i32 = -1048576; +pub const BPF_LL_OFF: i32 = -2097152; +pub const PTRACE_TRACEME: u32 = 0; +pub const PTRACE_PEEKTEXT: u32 = 1; +pub const PTRACE_PEEKDATA: u32 = 2; +pub const PTRACE_PEEKUSR: u32 = 3; +pub const PTRACE_POKETEXT: u32 = 4; +pub const PTRACE_POKEDATA: u32 = 5; +pub const PTRACE_POKEUSR: u32 = 6; +pub const PTRACE_CONT: u32 = 7; +pub const PTRACE_KILL: u32 = 8; +pub const PTRACE_SINGLESTEP: u32 = 9; +pub const PTRACE_ATTACH: u32 = 16; +pub const PTRACE_DETACH: u32 = 17; +pub const PTRACE_SYSCALL: u32 = 24; +pub const PTRACE_SETOPTIONS: u32 = 16896; +pub const PTRACE_GETEVENTMSG: u32 = 16897; +pub const PTRACE_GETSIGINFO: u32 = 16898; +pub const PTRACE_SETSIGINFO: u32 = 16899; +pub const PTRACE_GETREGSET: u32 = 16900; +pub const PTRACE_SETREGSET: u32 = 16901; +pub const PTRACE_SEIZE: u32 = 16902; +pub const PTRACE_INTERRUPT: u32 = 16903; +pub const PTRACE_LISTEN: u32 = 16904; +pub const PTRACE_PEEKSIGINFO: u32 = 16905; +pub const PTRACE_GETSIGMASK: u32 = 16906; +pub const PTRACE_SETSIGMASK: u32 = 16907; +pub const PTRACE_SECCOMP_GET_FILTER: u32 = 16908; +pub const PTRACE_SECCOMP_GET_METADATA: u32 = 16909; +pub const PTRACE_GET_SYSCALL_INFO: u32 = 16910; +pub const PTRACE_SET_SYSCALL_INFO: u32 = 16914; +pub const PTRACE_SYSCALL_INFO_NONE: u32 = 0; +pub const PTRACE_SYSCALL_INFO_ENTRY: u32 = 1; +pub const PTRACE_SYSCALL_INFO_EXIT: u32 = 2; +pub const PTRACE_SYSCALL_INFO_SECCOMP: u32 = 3; +pub const PTRACE_GET_RSEQ_CONFIGURATION: u32 = 16911; +pub const PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG: u32 = 16912; +pub const PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG: u32 = 16913; +pub const PTRACE_EVENTMSG_SYSCALL_ENTRY: u32 = 1; +pub const PTRACE_EVENTMSG_SYSCALL_EXIT: u32 = 2; +pub const PTRACE_PEEKSIGINFO_SHARED: u32 = 1; +pub const PTRACE_EVENT_FORK: u32 = 1; +pub const PTRACE_EVENT_VFORK: u32 = 2; +pub const PTRACE_EVENT_CLONE: u32 = 3; +pub const PTRACE_EVENT_EXEC: u32 = 4; +pub const PTRACE_EVENT_VFORK_DONE: u32 = 5; +pub const PTRACE_EVENT_EXIT: u32 = 6; +pub const PTRACE_EVENT_SECCOMP: u32 = 7; +pub const PTRACE_EVENT_STOP: u32 = 128; +pub const PTRACE_O_TRACESYSGOOD: u32 = 1; +pub const PTRACE_O_TRACEFORK: u32 = 2; +pub const PTRACE_O_TRACEVFORK: u32 = 4; +pub const PTRACE_O_TRACECLONE: u32 = 8; +pub const PTRACE_O_TRACEEXEC: u32 = 16; +pub const PTRACE_O_TRACEVFORKDONE: u32 = 32; +pub const PTRACE_O_TRACEEXIT: u32 = 64; +pub const PTRACE_O_TRACESECCOMP: u32 = 128; +pub const PTRACE_O_EXITKILL: u32 = 1048576; +pub const PTRACE_O_SUSPEND_SECCOMP: u32 = 2097152; +pub const PTRACE_O_MASK: u32 = 3145983; +pub const PT_PSWMASK: u32 = 0; +pub const PT_PSWADDR: u32 = 8; +pub const PT_GPR0: u32 = 16; +pub const PT_GPR1: u32 = 24; +pub const PT_GPR2: u32 = 32; +pub const PT_GPR3: u32 = 40; +pub const PT_GPR4: u32 = 48; +pub const PT_GPR5: u32 = 56; +pub const PT_GPR6: u32 = 64; +pub const PT_GPR7: u32 = 72; +pub const PT_GPR8: u32 = 80; +pub const PT_GPR9: u32 = 88; +pub const PT_GPR10: u32 = 96; +pub const PT_GPR11: u32 = 104; +pub const PT_GPR12: u32 = 112; +pub const PT_GPR13: u32 = 120; +pub const PT_GPR14: u32 = 128; +pub const PT_GPR15: u32 = 136; +pub const PT_ACR0: u32 = 144; +pub const PT_ACR1: u32 = 148; +pub const PT_ACR2: u32 = 152; +pub const PT_ACR3: u32 = 156; +pub const PT_ACR4: u32 = 160; +pub const PT_ACR5: u32 = 164; +pub const PT_ACR6: u32 = 168; +pub const PT_ACR7: u32 = 172; +pub const PT_ACR8: u32 = 176; +pub const PT_ACR9: u32 = 180; +pub const PT_ACR10: u32 = 184; +pub const PT_ACR11: u32 = 188; +pub const PT_ACR12: u32 = 192; +pub const PT_ACR13: u32 = 196; +pub const PT_ACR14: u32 = 200; +pub const PT_ACR15: u32 = 204; +pub const PT_ORIGGPR2: u32 = 208; +pub const PT_FPC: u32 = 216; +pub const PT_FPR0: u32 = 224; +pub const PT_FPR1: u32 = 232; +pub const PT_FPR2: u32 = 240; +pub const PT_FPR3: u32 = 248; +pub const PT_FPR4: u32 = 256; +pub const PT_FPR5: u32 = 264; +pub const PT_FPR6: u32 = 272; +pub const PT_FPR7: u32 = 280; +pub const PT_FPR8: u32 = 288; +pub const PT_FPR9: u32 = 296; +pub const PT_FPR10: u32 = 304; +pub const PT_FPR11: u32 = 312; +pub const PT_FPR12: u32 = 320; +pub const PT_FPR13: u32 = 328; +pub const PT_FPR14: u32 = 336; +pub const PT_FPR15: u32 = 344; +pub const PT_CR_9: u32 = 352; +pub const PT_CR_10: u32 = 360; +pub const PT_CR_11: u32 = 368; +pub const PT_IEEE_IP: u32 = 424; +pub const PT_LASTOFF: u32 = 424; +pub const PT_ENDREGS: u32 = 431; +pub const GPR_SIZE: u32 = 8; +pub const CR_SIZE: u32 = 8; +pub const STACK_FRAME_OVERHEAD: u32 = 160; +pub const NUM_GPRS: u32 = 16; +pub const NUM_FPRS: u32 = 16; +pub const NUM_CRS: u32 = 16; +pub const NUM_ACRS: u32 = 16; +pub const NUM_CR_WORDS: u32 = 3; +pub const FPR_SIZE: u32 = 8; +pub const FPC_SIZE: u32 = 4; +pub const FPC_PAD_SIZE: u32 = 4; +pub const ACR_SIZE: u32 = 4; +pub const PTRACE_OLDSETOPTIONS: u32 = 21; +pub const PTRACE_SYSEMU: u32 = 31; +pub const PTRACE_SYSEMU_SINGLESTEP: u32 = 32; +pub const FPC_EXCEPTION_MASK: u32 = 4160749568; +pub const FPC_FLAGS_MASK: u32 = 16252928; +pub const FPC_DXC_MASK: u32 = 65280; +pub const FPC_RM_MASK: u32 = 3; +pub const PER_EM_MASK: u32 = 3892314112; +pub const PTRACE_PEEKUSR_AREA: u32 = 20480; +pub const PTRACE_POKEUSR_AREA: u32 = 20481; +pub const PTRACE_PEEKTEXT_AREA: u32 = 20482; +pub const PTRACE_PEEKDATA_AREA: u32 = 20483; +pub const PTRACE_POKETEXT_AREA: u32 = 20484; +pub const PTRACE_POKEDATA_AREA: u32 = 20485; +pub const PTRACE_GET_LAST_BREAK: u32 = 20486; +pub const PTRACE_PEEK_SYSTEM_CALL: u32 = 20487; +pub const PTRACE_POKE_SYSTEM_CALL: u32 = 20488; +pub const PTRACE_ENABLE_TE: u32 = 20489; +pub const PTRACE_DISABLE_TE: u32 = 20496; +pub const PTRACE_TE_ABORT_RAND: u32 = 20497; +pub const PTRACE_SINGLEBLOCK: u32 = 12; +pub const PTRACE_PROT: u32 = 21; +pub const S390_SYSCALL_SIZE: u32 = 2; +pub const SECCOMP_MODE_DISABLED: u32 = 0; +pub const SECCOMP_MODE_STRICT: u32 = 1; +pub const SECCOMP_MODE_FILTER: u32 = 2; +pub const SECCOMP_SET_MODE_STRICT: u32 = 0; +pub const SECCOMP_SET_MODE_FILTER: u32 = 1; +pub const SECCOMP_GET_ACTION_AVAIL: u32 = 2; +pub const SECCOMP_GET_NOTIF_SIZES: u32 = 3; +pub const SECCOMP_FILTER_FLAG_TSYNC: u32 = 1; +pub const SECCOMP_FILTER_FLAG_LOG: u32 = 2; +pub const SECCOMP_FILTER_FLAG_SPEC_ALLOW: u32 = 4; +pub const SECCOMP_FILTER_FLAG_NEW_LISTENER: u32 = 8; +pub const SECCOMP_FILTER_FLAG_TSYNC_ESRCH: u32 = 16; +pub const SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV: u32 = 32; +pub const SECCOMP_RET_KILL_PROCESS: u32 = 2147483648; +pub const SECCOMP_RET_KILL_THREAD: u32 = 0; +pub const SECCOMP_RET_KILL: u32 = 0; +pub const SECCOMP_RET_TRAP: u32 = 196608; +pub const SECCOMP_RET_ERRNO: u32 = 327680; +pub const SECCOMP_RET_USER_NOTIF: u32 = 2143289344; +pub const SECCOMP_RET_TRACE: u32 = 2146435072; +pub const SECCOMP_RET_LOG: u32 = 2147221504; +pub const SECCOMP_RET_ALLOW: u32 = 2147418112; +pub const SECCOMP_RET_ACTION_FULL: u32 = 4294901760; +pub const SECCOMP_RET_ACTION: u32 = 2147418112; +pub const SECCOMP_RET_DATA: u32 = 65535; +pub const SECCOMP_USER_NOTIF_FLAG_CONTINUE: u32 = 1; +pub const SECCOMP_USER_NOTIF_FD_SYNC_WAKE_UP: u32 = 1; +pub const SECCOMP_ADDFD_FLAG_SETFD: u32 = 1; +pub const SECCOMP_ADDFD_FLAG_SEND: u32 = 2; +pub const SECCOMP_IOC_MAGIC: u8 = 33u8; +pub const Audit_equal: _bindgen_ty_1 = _bindgen_ty_1::Audit_equal; +pub const Audit_not_equal: _bindgen_ty_1 = _bindgen_ty_1::Audit_not_equal; +pub const Audit_bitmask: _bindgen_ty_1 = _bindgen_ty_1::Audit_bitmask; +pub const Audit_bittest: _bindgen_ty_1 = _bindgen_ty_1::Audit_bittest; +pub const Audit_lt: _bindgen_ty_1 = _bindgen_ty_1::Audit_lt; +pub const Audit_gt: _bindgen_ty_1 = _bindgen_ty_1::Audit_gt; +pub const Audit_le: _bindgen_ty_1 = _bindgen_ty_1::Audit_le; +pub const Audit_ge: _bindgen_ty_1 = _bindgen_ty_1::Audit_ge; +pub const Audit_bad: _bindgen_ty_1 = _bindgen_ty_1::Audit_bad; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +Audit_equal = 0, +Audit_not_equal = 1, +Audit_bitmask = 2, +Audit_bittest = 3, +Audit_lt = 4, +Audit_gt = 5, +Audit_le = 6, +Audit_ge = 7, +Audit_bad = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum audit_nlgrps { +AUDIT_NLGRP_NONE = 0, +AUDIT_NLGRP_READLOG = 1, +__AUDIT_NLGRP_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ptprot_flags { +ptprot_set_access_watchpoint = 0, +ptprot_set_write_watchpoint = 1, +ptprot_disable_watchpoint = 2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __vector128__bindgen_ty_1 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1, +pub u: [__u32; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union audit_status__bindgen_ty_1 { +pub version: __u32, +pub feature_bitmap: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ptrace_syscall_info__bindgen_ty_1 { +pub entry: ptrace_syscall_info__bindgen_ty_1__bindgen_ty_1, +pub exit: ptrace_syscall_info__bindgen_ty_1__bindgen_ty_2, +pub seccomp: ptrace_syscall_info__bindgen_ty_1__bindgen_ty_3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union freg_t { +pub f: f32, +pub d: f64, +pub ui: __u64, +pub fp: freg_t__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union per_struct__bindgen_ty_1 { +pub words: per_cr_words, +pub bits: per_cr_bits, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union per_struct__bindgen_ty_2 { +pub words: per_lowcore_words, +pub bits: per_lowcore_bits, +} +impl __BindgenBitfieldUnit { +#[inline] +pub const fn new(storage: Storage) -> Self { +Self { storage } +} +} +impl __BindgenBitfieldUnit +where +Storage: AsRef<[u8]> + AsMut<[u8]>, +{ +#[inline] +fn extract_bit(byte: u8, index: usize) -> bool { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +byte & mask == mask +} +#[inline] +pub fn get_bit(&self, index: usize) -> bool { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = self.storage.as_ref()[byte_index]; +Self::extract_bit(byte, index) +} +#[inline] +pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; +Self::extract_bit(byte, index) +} +#[inline] +fn change_bit(byte: u8, index: usize, val: bool) -> u8 { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +if val { +byte | mask +} else { +byte & !mask +} +} +#[inline] +pub fn set_bit(&mut self, index: usize, val: bool) { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = &mut self.storage.as_mut()[byte_index]; +*byte = Self::change_bit(*byte, index, val); +} +#[inline] +pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; +} +#[inline] +pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if self.get_bit(i + bit_offset) { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +self.set_bit(index + bit_offset, val_bit_is_set); +} +} +#[inline] +pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +} +} +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl per_cr_bits { +#[inline] +pub fn em_branching(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(32usize, 1u8) as u32) } +} +#[inline] +pub fn set_em_branching(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(32usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn em_branching_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 32usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_em_branching_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 32usize, 1u8, val as u64) +} +} +#[inline] +pub fn em_instruction_fetch(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(33usize, 1u8) as u32) } +} +#[inline] +pub fn set_em_instruction_fetch(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(33usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn em_instruction_fetch_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 33usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_em_instruction_fetch_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 33usize, 1u8, val as u64) +} +} +#[inline] +pub fn em_storage_alteration(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(34usize, 1u8) as u32) } +} +#[inline] +pub fn set_em_storage_alteration(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(34usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn em_storage_alteration_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 34usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_em_storage_alteration_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 34usize, 1u8, val as u64) +} +} +#[inline] +pub fn em_gpr_alt_unused(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(35usize, 1u8) as u32) } +} +#[inline] +pub fn set_em_gpr_alt_unused(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(35usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn em_gpr_alt_unused_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 35usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_em_gpr_alt_unused_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 35usize, 1u8, val as u64) +} +} +#[inline] +pub fn em_store_real_address(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(36usize, 1u8) as u32) } +} +#[inline] +pub fn set_em_store_real_address(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(36usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn em_store_real_address_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 36usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_em_store_real_address_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 36usize, 1u8, val as u64) +} +} +#[inline] +pub fn branch_addr_ctl(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(40usize, 1u8) as u32) } +} +#[inline] +pub fn set_branch_addr_ctl(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(40usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn branch_addr_ctl_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 40usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_branch_addr_ctl_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 40usize, 1u8, val as u64) +} +} +#[inline] +pub fn storage_alt_space_ctl(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(42usize, 1u8) as u32) } +} +#[inline] +pub fn set_storage_alt_space_ctl(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(42usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn storage_alt_space_ctl_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 42usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_storage_alt_space_ctl_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 42usize, 1u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(em_branching: crate::ctypes::c_uint, em_instruction_fetch: crate::ctypes::c_uint, em_storage_alteration: crate::ctypes::c_uint, em_gpr_alt_unused: crate::ctypes::c_uint, em_store_real_address: crate::ctypes::c_uint, branch_addr_ctl: crate::ctypes::c_uint, storage_alt_space_ctl: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 8usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default(); +__bindgen_bitfield_unit.set(32usize, 1u8, { +let em_branching: u32 = unsafe { ::core::mem::transmute(em_branching) }; +em_branching as u64 +}); +__bindgen_bitfield_unit.set(33usize, 1u8, { +let em_instruction_fetch: u32 = unsafe { ::core::mem::transmute(em_instruction_fetch) }; +em_instruction_fetch as u64 +}); +__bindgen_bitfield_unit.set(34usize, 1u8, { +let em_storage_alteration: u32 = unsafe { ::core::mem::transmute(em_storage_alteration) }; +em_storage_alteration as u64 +}); +__bindgen_bitfield_unit.set(35usize, 1u8, { +let em_gpr_alt_unused: u32 = unsafe { ::core::mem::transmute(em_gpr_alt_unused) }; +em_gpr_alt_unused as u64 +}); +__bindgen_bitfield_unit.set(36usize, 1u8, { +let em_store_real_address: u32 = unsafe { ::core::mem::transmute(em_store_real_address) }; +em_store_real_address as u64 +}); +__bindgen_bitfield_unit.set(40usize, 1u8, { +let branch_addr_ctl: u32 = unsafe { ::core::mem::transmute(branch_addr_ctl) }; +branch_addr_ctl as u64 +}); +__bindgen_bitfield_unit.set(42usize, 1u8, { +let storage_alt_space_ctl: u32 = unsafe { ::core::mem::transmute(storage_alt_space_ctl) }; +storage_alt_space_ctl as u64 +}); +__bindgen_bitfield_unit +} +} +impl per_lowcore_bits { +#[inline] +pub fn perc_branching(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_perc_branching(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn perc_branching_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_perc_branching_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn perc_instruction_fetch(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +} +#[inline] +pub fn set_perc_instruction_fetch(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn perc_instruction_fetch_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_perc_instruction_fetch_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn perc_storage_alteration(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +} +#[inline] +pub fn set_perc_storage_alteration(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn perc_storage_alteration_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_perc_storage_alteration_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +} +} +#[inline] +pub fn perc_gpr_alt_unused(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +} +#[inline] +pub fn set_perc_gpr_alt_unused(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn perc_gpr_alt_unused_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_perc_gpr_alt_unused_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +} +} +#[inline] +pub fn perc_store_real_address(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +} +#[inline] +pub fn set_perc_store_real_address(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn perc_store_real_address_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_perc_store_real_address_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +} +} +#[inline] +pub fn atmid_psw_bit_31(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) } +} +#[inline] +pub fn set_atmid_psw_bit_31(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(8usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn atmid_psw_bit_31_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_atmid_psw_bit_31_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +} +} +#[inline] +pub fn atmid_validity_bit(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) } +} +#[inline] +pub fn set_atmid_validity_bit(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(9usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn atmid_validity_bit_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_atmid_validity_bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +} +} +#[inline] +pub fn atmid_psw_bit_32(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) } +} +#[inline] +pub fn set_atmid_psw_bit_32(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(10usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn atmid_psw_bit_32_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_atmid_psw_bit_32_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +} +} +#[inline] +pub fn atmid_psw_bit_5(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) } +} +#[inline] +pub fn set_atmid_psw_bit_5(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(11usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn atmid_psw_bit_5_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_atmid_psw_bit_5_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +} +} +#[inline] +pub fn atmid_psw_bit_16(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) } +} +#[inline] +pub fn set_atmid_psw_bit_16(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(12usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn atmid_psw_bit_16_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_atmid_psw_bit_16_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +} +} +#[inline] +pub fn atmid_psw_bit_17(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) } +} +#[inline] +pub fn set_atmid_psw_bit_17(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(13usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn atmid_psw_bit_17_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_atmid_psw_bit_17_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +} +} +#[inline] +pub fn si(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 2u8) as u32) } +} +#[inline] +pub fn set_si(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(14usize, 2u8, val as u64) +} +} +#[inline] +pub unsafe fn si_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 2u8) as u32) } +} +#[inline] +pub unsafe fn set_si_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 2u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1( +perc_branching: crate::ctypes::c_uint, +perc_instruction_fetch: crate::ctypes::c_uint, +perc_storage_alteration: crate::ctypes::c_uint, +perc_gpr_alt_unused: crate::ctypes::c_uint, +perc_store_real_address: crate::ctypes::c_uint, +atmid_psw_bit_31: crate::ctypes::c_uint, +atmid_validity_bit: crate::ctypes::c_uint, +atmid_psw_bit_32: crate::ctypes::c_uint, +atmid_psw_bit_5: crate::ctypes::c_uint, +atmid_psw_bit_16: crate::ctypes::c_uint, +atmid_psw_bit_17: crate::ctypes::c_uint, +si: crate::ctypes::c_uint, +) -> __BindgenBitfieldUnit<[u8; 2usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let perc_branching: u32 = unsafe { ::core::mem::transmute(perc_branching) }; +perc_branching as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let perc_instruction_fetch: u32 = unsafe { ::core::mem::transmute(perc_instruction_fetch) }; +perc_instruction_fetch as u64 +}); +__bindgen_bitfield_unit.set(2usize, 1u8, { +let perc_storage_alteration: u32 = unsafe { ::core::mem::transmute(perc_storage_alteration) }; +perc_storage_alteration as u64 +}); +__bindgen_bitfield_unit.set(3usize, 1u8, { +let perc_gpr_alt_unused: u32 = unsafe { ::core::mem::transmute(perc_gpr_alt_unused) }; +perc_gpr_alt_unused as u64 +}); +__bindgen_bitfield_unit.set(4usize, 1u8, { +let perc_store_real_address: u32 = unsafe { ::core::mem::transmute(perc_store_real_address) }; +perc_store_real_address as u64 +}); +__bindgen_bitfield_unit.set(8usize, 1u8, { +let atmid_psw_bit_31: u32 = unsafe { ::core::mem::transmute(atmid_psw_bit_31) }; +atmid_psw_bit_31 as u64 +}); +__bindgen_bitfield_unit.set(9usize, 1u8, { +let atmid_validity_bit: u32 = unsafe { ::core::mem::transmute(atmid_validity_bit) }; +atmid_validity_bit as u64 +}); +__bindgen_bitfield_unit.set(10usize, 1u8, { +let atmid_psw_bit_32: u32 = unsafe { ::core::mem::transmute(atmid_psw_bit_32) }; +atmid_psw_bit_32 as u64 +}); +__bindgen_bitfield_unit.set(11usize, 1u8, { +let atmid_psw_bit_5: u32 = unsafe { ::core::mem::transmute(atmid_psw_bit_5) }; +atmid_psw_bit_5 as u64 +}); +__bindgen_bitfield_unit.set(12usize, 1u8, { +let atmid_psw_bit_16: u32 = unsafe { ::core::mem::transmute(atmid_psw_bit_16) }; +atmid_psw_bit_16 as u64 +}); +__bindgen_bitfield_unit.set(13usize, 1u8, { +let atmid_psw_bit_17: u32 = unsafe { ::core::mem::transmute(atmid_psw_bit_17) }; +atmid_psw_bit_17 as u64 +}); +__bindgen_bitfield_unit.set(14usize, 2u8, { +let si: u32 = unsafe { ::core::mem::transmute(si) }; +si as u64 +}); +__bindgen_bitfield_unit +} +#[inline] +pub fn access_id(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_2.get(4usize, 4u8) as u32) } +} +#[inline] +pub fn set_access_id(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn access_id_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_2), 4usize, 4u8) as u32) } +} +#[inline] +pub unsafe fn set_access_id_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_2), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_2(access_id: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let access_id: u32 = unsafe { ::core::mem::transmute(access_id) }; +access_id as u64 +}); +__bindgen_bitfield_unit +} +} +impl per_struct { +#[inline] +pub fn single_step(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_single_step(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn single_step_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_single_step_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn instruction_fetch(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +} +#[inline] +pub fn set_instruction_fetch(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn instruction_fetch_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_instruction_fetch_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(single_step: crate::ctypes::c_uint, instruction_fetch: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let single_step: u32 = unsafe { ::core::mem::transmute(single_step) }; +single_step as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let instruction_fetch: u32 = unsafe { ::core::mem::transmute(instruction_fetch) }; +instruction_fetch as u64 +}); +__bindgen_bitfield_unit +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/system.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/system.rs new file mode 100644 index 0000000000000000000000000000000000000000..5742a223cb9c42627c6ff6219d8138a1b9dbc86c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/system.rs @@ -0,0 +1,152 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type addr_t = crate::ctypes::c_ulong; +pub type saddr_t = crate::ctypes::c_long; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_ulong; +pub type __kernel_ssize_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_ino_t = crate::ctypes::c_uint; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_sigset_t = crate::ctypes::c_ulong; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C, packed(4))] +#[derive(Copy, Clone)] +pub struct __vector128 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __vector128__bindgen_ty_1__bindgen_ty_1 { +pub high: __u64, +pub low: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct sysinfo { +pub uptime: __kernel_long_t, +pub loads: [__kernel_ulong_t; 3usize], +pub totalram: __kernel_ulong_t, +pub freeram: __kernel_ulong_t, +pub sharedram: __kernel_ulong_t, +pub bufferram: __kernel_ulong_t, +pub totalswap: __kernel_ulong_t, +pub freeswap: __kernel_ulong_t, +pub procs: __u16, +pub pad: __u16, +pub totalhigh: __kernel_ulong_t, +pub freehigh: __kernel_ulong_t, +pub mem_unit: __u32, +pub _f: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct oldold_utsname { +pub sysname: [crate::ctypes::c_char; 9usize], +pub nodename: [crate::ctypes::c_char; 9usize], +pub release: [crate::ctypes::c_char; 9usize], +pub version: [crate::ctypes::c_char; 9usize], +pub machine: [crate::ctypes::c_char; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct old_utsname { +pub sysname: [crate::ctypes::c_char; 65usize], +pub nodename: [crate::ctypes::c_char; 65usize], +pub release: [crate::ctypes::c_char; 65usize], +pub version: [crate::ctypes::c_char; 65usize], +pub machine: [crate::ctypes::c_char; 65usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct new_utsname { +pub sysname: [crate::ctypes::c_char; 65usize], +pub nodename: [crate::ctypes::c_char; 65usize], +pub release: [crate::ctypes::c_char; 65usize], +pub version: [crate::ctypes::c_char; 65usize], +pub machine: [crate::ctypes::c_char; 65usize], +pub domainname: [crate::ctypes::c_char; 65usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const SI_LOAD_SHIFT: u32 = 16; +pub const __OLD_UTS_LEN: u32 = 8; +pub const __NEW_UTS_LEN: u32 = 64; +#[repr(C)] +#[derive(Copy, Clone)] +pub union __vector128__bindgen_ty_1 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1, +pub u: [__u32; 4usize], +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/xdp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/xdp.rs new file mode 100644 index 0000000000000000000000000000000000000000..9cdb94b47dcc4921f678a2a468b160b5c4870859 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/s390x/xdp.rs @@ -0,0 +1,213 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type addr_t = crate::ctypes::c_ulong; +pub type saddr_t = crate::ctypes::c_long; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_ulong; +pub type __kernel_ssize_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_ino_t = crate::ctypes::c_uint; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_sigset_t = crate::ctypes::c_ulong; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C, packed(4))] +#[derive(Copy, Clone)] +pub struct __vector128 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __vector128__bindgen_ty_1__bindgen_ty_1 { +pub high: __u64, +pub low: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_xdp { +pub sxdp_family: __u16, +pub sxdp_flags: __u16, +pub sxdp_ifindex: __u32, +pub sxdp_queue_id: __u32, +pub sxdp_shared_umem_fd: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_ring_offset { +pub producer: __u64, +pub consumer: __u64, +pub desc: __u64, +pub flags: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_mmap_offsets { +pub rx: xdp_ring_offset, +pub tx: xdp_ring_offset, +pub fr: xdp_ring_offset, +pub cr: xdp_ring_offset, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_umem_reg { +pub addr: __u64, +pub len: __u64, +pub chunk_size: __u32, +pub headroom: __u32, +pub flags: __u32, +pub tx_metadata_len: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_statistics { +pub rx_dropped: __u64, +pub rx_invalid_descs: __u64, +pub tx_invalid_descs: __u64, +pub rx_ring_full: __u64, +pub rx_fill_ring_empty_descs: __u64, +pub tx_ring_empty_descs: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_options { +pub flags: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct xsk_tx_metadata { +pub flags: __u64, +pub __bindgen_anon_1: xsk_tx_metadata__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xsk_tx_metadata__bindgen_ty_1__bindgen_ty_1 { +pub csum_start: __u16, +pub csum_offset: __u16, +pub launch_time: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xsk_tx_metadata__bindgen_ty_1__bindgen_ty_2 { +pub tx_timestamp: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_desc { +pub addr: __u64, +pub len: __u32, +pub options: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_ring_offset_v1 { +pub producer: __u64, +pub consumer: __u64, +pub desc: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_mmap_offsets_v1 { +pub rx: xdp_ring_offset_v1, +pub tx: xdp_ring_offset_v1, +pub fr: xdp_ring_offset_v1, +pub cr: xdp_ring_offset_v1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_umem_reg_v1 { +pub addr: __u64, +pub len: __u64, +pub chunk_size: __u32, +pub headroom: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_statistics_v1 { +pub rx_dropped: __u64, +pub rx_invalid_descs: __u64, +pub tx_invalid_descs: __u64, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const XDP_SHARED_UMEM: u32 = 1; +pub const XDP_COPY: u32 = 2; +pub const XDP_ZEROCOPY: u32 = 4; +pub const XDP_USE_NEED_WAKEUP: u32 = 8; +pub const XDP_USE_SG: u32 = 16; +pub const XDP_UMEM_UNALIGNED_CHUNK_FLAG: u32 = 1; +pub const XDP_UMEM_TX_SW_CSUM: u32 = 2; +pub const XDP_UMEM_TX_METADATA_LEN: u32 = 4; +pub const XDP_RING_NEED_WAKEUP: u32 = 1; +pub const XDP_MMAP_OFFSETS: u32 = 1; +pub const XDP_RX_RING: u32 = 2; +pub const XDP_TX_RING: u32 = 3; +pub const XDP_UMEM_REG: u32 = 4; +pub const XDP_UMEM_FILL_RING: u32 = 5; +pub const XDP_UMEM_COMPLETION_RING: u32 = 6; +pub const XDP_STATISTICS: u32 = 7; +pub const XDP_OPTIONS: u32 = 8; +pub const XDP_OPTIONS_ZEROCOPY: u32 = 1; +pub const XDP_PGOFF_RX_RING: u32 = 0; +pub const XDP_PGOFF_TX_RING: u32 = 2147483648; +pub const XDP_UMEM_PGOFF_FILL_RING: u64 = 4294967296; +pub const XDP_UMEM_PGOFF_COMPLETION_RING: u64 = 6442450944; +pub const XSK_UNALIGNED_BUF_OFFSET_SHIFT: u32 = 48; +pub const XSK_UNALIGNED_BUF_ADDR_MASK: u64 = 281474976710655; +pub const XDP_TXMD_FLAGS_TIMESTAMP: u32 = 1; +pub const XDP_TXMD_FLAGS_CHECKSUM: u32 = 2; +pub const XDP_TXMD_FLAGS_LAUNCH_TIME: u32 = 4; +pub const XDP_PKT_CONTD: u32 = 1; +pub const XDP_TX_METADATA: u32 = 2; +#[repr(C)] +#[derive(Copy, Clone)] +pub union __vector128__bindgen_ty_1 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1, +pub u: [__u32; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union xsk_tx_metadata__bindgen_ty_1 { +pub request: xsk_tx_metadata__bindgen_ty_1__bindgen_ty_1, +pub completion: xsk_tx_metadata__bindgen_ty_1__bindgen_ty_2, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/auxvec.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/auxvec.rs new file mode 100644 index 0000000000000000000000000000000000000000..2aff98a548a1f71951661a9706c30a0cabb645e6 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/auxvec.rs @@ -0,0 +1,35 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_ADI_BLKSZ: u32 = 48; +pub const AT_ADI_NBITS: u32 = 49; +pub const AT_ADI_UEONADI: u32 = 50; +pub const AT_VECTOR_SIZE_ARCH: u32 = 4; +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_PLATFORM: u32 = 15; +pub const AT_HWCAP: u32 = 16; +pub const AT_CLKTCK: u32 = 17; +pub const AT_SECURE: u32 = 23; +pub const AT_BASE_PLATFORM: u32 = 24; +pub const AT_RANDOM: u32 = 25; +pub const AT_HWCAP2: u32 = 26; +pub const AT_RSEQ_FEATURE_SIZE: u32 = 27; +pub const AT_RSEQ_ALIGN: u32 = 28; +pub const AT_HWCAP3: u32 = 29; +pub const AT_HWCAP4: u32 = 30; +pub const AT_EXECFN: u32 = 31; +pub const AT_MINSIGSTKSZ: u32 = 51; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/bootparam.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/bootparam.rs new file mode 100644 index 0000000000000000000000000000000000000000..bff15e373cd12fce9e91f11af9ee8efb9065775b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/bootparam.rs @@ -0,0 +1,3 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + + diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/btrfs.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/btrfs.rs new file mode 100644 index 0000000000000000000000000000000000000000..933a7ab20f50b07a60cc333ef6336a1f5db81a25 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/btrfs.rs @@ -0,0 +1,1895 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_daddr_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_rwf_t = crate::ctypes::c_int; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v1 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub master_key_descriptor: [__u8; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_key { +pub mode: __u32, +pub raw: [__u8; 64usize], +pub size: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v2 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub log2_data_unit_size: __u8, +pub __reserved: [__u8; 3usize], +pub master_key_identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_policy_ex_arg { +pub policy_size: __u64, +pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_key_specifier { +pub type_: __u32, +pub __reserved: __u32, +pub u: fscrypt_key_specifier__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct fscrypt_provisioning_key_payload { +pub type_: __u32, +pub flags: __u32, +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +pub struct fscrypt_add_key_arg { +pub key_spec: fscrypt_key_specifier, +pub raw_size: __u32, +pub key_id: __u32, +pub flags: __u32, +pub __reserved: [__u32; 7usize], +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_remove_key_arg { +pub key_spec: fscrypt_key_specifier, +pub removal_status_flags: __u32, +pub __reserved: [__u32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_key_status_arg { +pub key_spec: fscrypt_key_specifier, +pub __reserved: [__u32; 6usize], +pub status: __u32, +pub status_flags: __u32, +pub user_count: __u32, +pub __out_reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mount_attr { +pub attr_set: __u64, +pub attr_clr: __u64, +pub propagation: __u64, +pub userns_fd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct statmount { +pub size: __u32, +pub mnt_opts: __u32, +pub mask: __u64, +pub sb_dev_major: __u32, +pub sb_dev_minor: __u32, +pub sb_magic: __u64, +pub sb_flags: __u32, +pub fs_type: __u32, +pub mnt_id: __u64, +pub mnt_parent_id: __u64, +pub mnt_id_old: __u32, +pub mnt_parent_id_old: __u32, +pub mnt_attr: __u64, +pub mnt_propagation: __u64, +pub mnt_peer_group: __u64, +pub mnt_master: __u64, +pub propagate_from: __u64, +pub mnt_root: __u32, +pub mnt_point: __u32, +pub mnt_ns_id: __u64, +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub supported_mask: __u64, +pub mnt_uidmap_num: __u32, +pub mnt_uidmap: __u32, +pub mnt_gidmap_num: __u32, +pub mnt_gidmap: __u32, +pub __spare2: [__u64; 43usize], +pub str_: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mnt_id_req { +pub size: __u32, +pub spare: __u32, +pub mnt_id: __u64, +pub param: __u64, +pub mnt_ns_id: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_clone_range { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fstrim_range { +pub start: __u64, +pub len: __u64, +pub minlen: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsuuid2 { +pub len: __u8, +pub uuid: [__u8; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fs_sysfs_path { +pub len: __u8, +pub name: [__u8; 128usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_dedupe_range_info { +pub dest_fd: __s64, +pub dest_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct file_dedupe_range { +pub src_offset: __u64, +pub src_length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct files_stat_struct { +pub nr_files: crate::ctypes::c_ulong, +pub nr_free_files: crate::ctypes::c_ulong, +pub max_files: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct inodes_stat_t { +pub nr_inodes: crate::ctypes::c_long, +pub nr_unused: crate::ctypes::c_long, +pub dummy: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsxattr { +pub fsx_xflags: __u32, +pub fsx_extsize: __u32, +pub fsx_nextents: __u32, +pub fsx_projid: __u32, +pub fsx_cowextsize: __u32, +pub fsx_pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct page_region { +pub start: __u64, +pub end: __u64, +pub categories: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pm_scan_arg { +pub size: __u64, +pub flags: __u64, +pub start: __u64, +pub end: __u64, +pub walk_end: __u64, +pub vec: __u64, +pub vec_len: __u64, +pub max_pages: __u64, +pub category_inverted: __u64, +pub category_mask: __u64, +pub category_anyof_mask: __u64, +pub return_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct procmap_query { +pub size: __u64, +pub query_flags: __u64, +pub query_addr: __u64, +pub vma_start: __u64, +pub vma_end: __u64, +pub vma_flags: __u64, +pub vma_page_size: __u64, +pub vma_offset: __u64, +pub inode: __u64, +pub dev_major: __u32, +pub dev_minor: __u32, +pub vma_name_size: __u32, +pub build_id_size: __u32, +pub vma_name_addr: __u64, +pub build_id_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_vol_args { +pub fd: __s64, +pub name: [crate::ctypes::c_char; 4088usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_limit { +pub flags: __u64, +pub max_rfer: __u64, +pub max_excl: __u64, +pub rsv_rfer: __u64, +pub rsv_excl: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_qgroup_inherit { +pub flags: __u64, +pub num_qgroups: __u64, +pub num_ref_copies: __u64, +pub num_excl_copies: __u64, +pub lim: btrfs_qgroup_limit, +pub qgroups: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_qgroup_limit_args { +pub qgroupid: __u64, +pub lim: btrfs_qgroup_limit, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_vol_args_v2 { +pub fd: __s64, +pub transid: __u64, +pub flags: __u64, +pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1, +pub __bindgen_anon_2: btrfs_ioctl_vol_args_v2__bindgen_ty_2, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1 { +pub size: __u64, +pub qgroup_inherit: *mut btrfs_qgroup_inherit, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_scrub_progress { +pub data_extents_scrubbed: __u64, +pub tree_extents_scrubbed: __u64, +pub data_bytes_scrubbed: __u64, +pub tree_bytes_scrubbed: __u64, +pub read_errors: __u64, +pub csum_errors: __u64, +pub verify_errors: __u64, +pub no_csum: __u64, +pub csum_discards: __u64, +pub super_errors: __u64, +pub malloc_errors: __u64, +pub uncorrectable_errors: __u64, +pub corrected_errors: __u64, +pub last_physical: __u64, +pub unverified_errors: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_scrub_args { +pub devid: __u64, +pub start: __u64, +pub end: __u64, +pub flags: __u64, +pub progress: btrfs_scrub_progress, +pub unused: [__u64; 109usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_dev_replace_start_params { +pub srcdevid: __u64, +pub cont_reading_from_srcdev_mode: __u64, +pub srcdev_name: [__u8; 1025usize], +pub tgtdev_name: [__u8; 1025usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_dev_replace_status_params { +pub replace_state: __u64, +pub progress_1000: __u64, +pub time_started: __u64, +pub time_stopped: __u64, +pub num_write_errors: __u64, +pub num_uncorrectable_read_errors: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_dev_replace_args { +pub cmd: __u64, +pub result: __u64, +pub __bindgen_anon_1: btrfs_ioctl_dev_replace_args__bindgen_ty_1, +pub spare: [__u64; 64usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_dev_info_args { +pub devid: __u64, +pub uuid: [__u8; 16usize], +pub bytes_used: __u64, +pub total_bytes: __u64, +pub fsid: [__u8; 16usize], +pub unused: [__u64; 377usize], +pub path: [__u8; 1024usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_fs_info_args { +pub max_id: __u64, +pub num_devices: __u64, +pub fsid: [__u8; 16usize], +pub nodesize: __u32, +pub sectorsize: __u32, +pub clone_alignment: __u32, +pub csum_type: __u16, +pub csum_size: __u16, +pub flags: __u64, +pub generation: __u64, +pub metadata_uuid: [__u8; 16usize], +pub reserved: [__u8; 944usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_feature_flags { +pub compat_flags: __u64, +pub compat_ro_flags: __u64, +pub incompat_flags: __u64, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct btrfs_balance_args { +pub profiles: __u64, +pub __bindgen_anon_1: btrfs_balance_args__bindgen_ty_1, +pub devid: __u64, +pub pstart: __u64, +pub pend: __u64, +pub vstart: __u64, +pub vend: __u64, +pub target: __u64, +pub flags: __u64, +pub __bindgen_anon_2: btrfs_balance_args__bindgen_ty_2, +pub stripes_min: __u32, +pub stripes_max: __u32, +pub unused: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_balance_args__bindgen_ty_1__bindgen_ty_1 { +pub usage_min: __u32, +pub usage_max: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_balance_args__bindgen_ty_2__bindgen_ty_1 { +pub limit_min: __u32, +pub limit_max: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_balance_progress { +pub expected: __u64, +pub considered: __u64, +pub completed: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_balance_args { +pub flags: __u64, +pub state: __u64, +pub data: btrfs_balance_args, +pub meta: btrfs_balance_args, +pub sys: btrfs_balance_args, +pub stat: btrfs_balance_progress, +pub unused: [__u64; 72usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_ino_lookup_args { +pub treeid: __u64, +pub objectid: __u64, +pub name: [crate::ctypes::c_char; 4080usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_ino_lookup_user_args { +pub dirid: __u64, +pub treeid: __u64, +pub name: [crate::ctypes::c_char; 256usize], +pub path: [crate::ctypes::c_char; 3824usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_search_key { +pub tree_id: __u64, +pub min_objectid: __u64, +pub max_objectid: __u64, +pub min_offset: __u64, +pub max_offset: __u64, +pub min_transid: __u64, +pub max_transid: __u64, +pub min_type: __u32, +pub max_type: __u32, +pub nr_items: __u32, +pub unused: __u32, +pub unused1: __u64, +pub unused2: __u64, +pub unused3: __u64, +pub unused4: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_search_header { +pub transid: __u64, +pub objectid: __u64, +pub offset: __u64, +pub type_: __u32, +pub len: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_search_args { +pub key: btrfs_ioctl_search_key, +pub buf: [crate::ctypes::c_char; 3992usize], +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_search_args_v2 { +pub key: btrfs_ioctl_search_key, +pub buf_size: __u64, +pub buf: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_clone_range_args { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_defrag_range_args { +pub start: __u64, +pub len: __u64, +pub flags: __u64, +pub extent_thresh: __u32, +pub __bindgen_anon_1: btrfs_ioctl_defrag_range_args__bindgen_ty_1, +pub unused: [__u32; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_defrag_range_args__bindgen_ty_1__bindgen_ty_1 { +pub type_: __u8, +pub level: __s8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_same_extent_info { +pub fd: __s64, +pub logical_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_same_args { +pub logical_offset: __u64, +pub length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_space_info { +pub flags: __u64, +pub total_bytes: __u64, +pub used_bytes: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_space_args { +pub space_slots: __u64, +pub total_spaces: __u64, +pub spaces: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_data_container { +pub bytes_left: __u32, +pub bytes_missing: __u32, +pub elem_cnt: __u32, +pub elem_missed: __u32, +pub val: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_ino_path_args { +pub inum: __u64, +pub size: __u64, +pub reserved: [__u64; 4usize], +pub fspath: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_logical_ino_args { +pub logical: __u64, +pub size: __u64, +pub reserved: [__u64; 3usize], +pub flags: __u64, +pub inodes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_dev_stats { +pub devid: __u64, +pub nr_items: __u64, +pub flags: __u64, +pub values: [__u64; 5usize], +pub unused: [__u64; 121usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_quota_ctl_args { +pub cmd: __u64, +pub status: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_quota_rescan_args { +pub flags: __u64, +pub progress: __u64, +pub reserved: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_qgroup_assign_args { +pub assign: __u64, +pub src: __u64, +pub dst: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_qgroup_create_args { +pub create: __u64, +pub qgroupid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_timespec { +pub sec: __u64, +pub nsec: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_received_subvol_args { +pub uuid: [crate::ctypes::c_char; 16usize], +pub stransid: __u64, +pub rtransid: __u64, +pub stime: btrfs_ioctl_timespec, +pub rtime: btrfs_ioctl_timespec, +pub flags: __u64, +pub reserved: [__u64; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_send_args { +pub send_fd: __s64, +pub clone_sources_count: __u64, +pub clone_sources: *mut __u64, +pub parent_root: __u64, +pub flags: __u64, +pub version: __u32, +pub reserved: [__u8; 28usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_subvol_info_args { +pub treeid: __u64, +pub name: [crate::ctypes::c_char; 256usize], +pub parent_id: __u64, +pub dirid: __u64, +pub generation: __u64, +pub flags: __u64, +pub uuid: [__u8; 16usize], +pub parent_uuid: [__u8; 16usize], +pub received_uuid: [__u8; 16usize], +pub ctransid: __u64, +pub otransid: __u64, +pub stransid: __u64, +pub rtransid: __u64, +pub ctime: btrfs_ioctl_timespec, +pub otime: btrfs_ioctl_timespec, +pub stime: btrfs_ioctl_timespec, +pub rtime: btrfs_ioctl_timespec, +pub reserved: [__u64; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_subvol_rootref_args { +pub min_treeid: __u64, +pub rootref: [btrfs_ioctl_get_subvol_rootref_args__bindgen_ty_1; 255usize], +pub num_items: __u8, +pub align: [__u8; 7usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_subvol_rootref_args__bindgen_ty_1 { +pub treeid: __u64, +pub dirid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_encoded_io_args { +pub iov: *const iovec, +pub iovcnt: crate::ctypes::c_ulong, +pub offset: __s64, +pub flags: __u64, +pub len: __u64, +pub unencoded_len: __u64, +pub unencoded_offset: __u64, +pub compression: __u32, +pub encryption: __u32, +pub reserved: [__u8; 64usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_subvol_wait { +pub subvolid: __u64, +pub mode: __u32, +pub count: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_disk_key { +pub objectid: __le64, +pub type_: __u8, +pub offset: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_key { +pub objectid: __u64, +pub type_: __u8, +pub offset: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_header { +pub csum: [__u8; 32usize], +pub fsid: [__u8; 16usize], +pub bytenr: __le64, +pub flags: __le64, +pub chunk_tree_uuid: [__u8; 16usize], +pub generation: __le64, +pub owner: __le64, +pub nritems: __le32, +pub level: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_root_backup { +pub tree_root: __le64, +pub tree_root_gen: __le64, +pub chunk_root: __le64, +pub chunk_root_gen: __le64, +pub extent_root: __le64, +pub extent_root_gen: __le64, +pub fs_root: __le64, +pub fs_root_gen: __le64, +pub dev_root: __le64, +pub dev_root_gen: __le64, +pub csum_root: __le64, +pub csum_root_gen: __le64, +pub total_bytes: __le64, +pub bytes_used: __le64, +pub num_devices: __le64, +pub unused_64: [__le64; 4usize], +pub tree_root_level: __u8, +pub chunk_root_level: __u8, +pub extent_root_level: __u8, +pub fs_root_level: __u8, +pub dev_root_level: __u8, +pub csum_root_level: __u8, +pub unused_8: [__u8; 10usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_item { +pub key: btrfs_disk_key, +pub offset: __le32, +pub size: __le32, +} +#[repr(C, packed)] +pub struct btrfs_leaf { +pub header: btrfs_header, +pub items: __IncompleteArrayField, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_key_ptr { +pub key: btrfs_disk_key, +pub blockptr: __le64, +pub generation: __le64, +} +#[repr(C, packed)] +pub struct btrfs_node { +pub header: btrfs_header, +pub ptrs: __IncompleteArrayField, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_item { +pub devid: __le64, +pub total_bytes: __le64, +pub bytes_used: __le64, +pub io_align: __le32, +pub io_width: __le32, +pub sector_size: __le32, +pub type_: __le64, +pub generation: __le64, +pub start_offset: __le64, +pub dev_group: __le32, +pub seek_speed: __u8, +pub bandwidth: __u8, +pub uuid: [__u8; 16usize], +pub fsid: [__u8; 16usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_stripe { +pub devid: __le64, +pub offset: __le64, +pub dev_uuid: [__u8; 16usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_chunk { +pub length: __le64, +pub owner: __le64, +pub stripe_len: __le64, +pub type_: __le64, +pub io_align: __le32, +pub io_width: __le32, +pub sector_size: __le32, +pub num_stripes: __le16, +pub sub_stripes: __le16, +pub stripe: btrfs_stripe, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_super_block { +pub csum: [__u8; 32usize], +pub fsid: [__u8; 16usize], +pub bytenr: __le64, +pub flags: __le64, +pub magic: __le64, +pub generation: __le64, +pub root: __le64, +pub chunk_root: __le64, +pub log_root: __le64, +pub __unused_log_root_transid: __le64, +pub total_bytes: __le64, +pub bytes_used: __le64, +pub root_dir_objectid: __le64, +pub num_devices: __le64, +pub sectorsize: __le32, +pub nodesize: __le32, +pub __unused_leafsize: __le32, +pub stripesize: __le32, +pub sys_chunk_array_size: __le32, +pub chunk_root_generation: __le64, +pub compat_flags: __le64, +pub compat_ro_flags: __le64, +pub incompat_flags: __le64, +pub csum_type: __le16, +pub root_level: __u8, +pub chunk_root_level: __u8, +pub log_root_level: __u8, +pub dev_item: btrfs_dev_item, +pub label: [crate::ctypes::c_char; 256usize], +pub cache_generation: __le64, +pub uuid_tree_generation: __le64, +pub metadata_uuid: [__u8; 16usize], +pub nr_global_roots: __u64, +pub reserved: [__le64; 27usize], +pub sys_chunk_array: [__u8; 2048usize], +pub super_roots: [btrfs_root_backup; 4usize], +pub padding: [__u8; 565usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_free_space_entry { +pub offset: __le64, +pub bytes: __le64, +pub type_: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_free_space_header { +pub location: btrfs_disk_key, +pub generation: __le64, +pub num_entries: __le64, +pub num_bitmaps: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_raid_stride { +pub devid: __le64, +pub physical: __le64, +} +#[repr(C, packed)] +pub struct btrfs_stripe_extent { +pub __bindgen_anon_1: btrfs_stripe_extent__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_stripe_extent__bindgen_ty_1 { +pub __empty_strides: btrfs_stripe_extent__bindgen_ty_1__bindgen_ty_1, +pub strides: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_stripe_extent__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_item { +pub refs: __le64, +pub generation: __le64, +pub flags: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_item_v0 { +pub refs: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_tree_block_info { +pub key: btrfs_disk_key, +pub level: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_data_ref { +pub root: __le64, +pub objectid: __le64, +pub offset: __le64, +pub count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_shared_data_ref { +pub count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_owner_ref { +pub root_id: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_inline_ref { +pub type_: __u8, +pub offset: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_extent { +pub chunk_tree: __le64, +pub chunk_objectid: __le64, +pub chunk_offset: __le64, +pub length: __le64, +pub chunk_tree_uuid: [__u8; 16usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_inode_ref { +pub index: __le64, +pub name_len: __le16, +} +#[repr(C, packed)] +pub struct btrfs_inode_extref { +pub parent_objectid: __le64, +pub index: __le64, +pub name_len: __le16, +pub name: __IncompleteArrayField<__u8>, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_timespec { +pub sec: __le64, +pub nsec: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_inode_item { +pub generation: __le64, +pub transid: __le64, +pub size: __le64, +pub nbytes: __le64, +pub block_group: __le64, +pub nlink: __le32, +pub uid: __le32, +pub gid: __le32, +pub mode: __le32, +pub rdev: __le64, +pub flags: __le64, +pub sequence: __le64, +pub reserved: [__le64; 4usize], +pub atime: btrfs_timespec, +pub ctime: btrfs_timespec, +pub mtime: btrfs_timespec, +pub otime: btrfs_timespec, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dir_log_item { +pub end: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dir_item { +pub location: btrfs_disk_key, +pub transid: __le64, +pub data_len: __le16, +pub name_len: __le16, +pub type_: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_root_item { +pub inode: btrfs_inode_item, +pub generation: __le64, +pub root_dirid: __le64, +pub bytenr: __le64, +pub byte_limit: __le64, +pub bytes_used: __le64, +pub last_snapshot: __le64, +pub flags: __le64, +pub refs: __le32, +pub drop_progress: btrfs_disk_key, +pub drop_level: __u8, +pub level: __u8, +pub generation_v2: __le64, +pub uuid: [__u8; 16usize], +pub parent_uuid: [__u8; 16usize], +pub received_uuid: [__u8; 16usize], +pub ctransid: __le64, +pub otransid: __le64, +pub stransid: __le64, +pub rtransid: __le64, +pub ctime: btrfs_timespec, +pub otime: btrfs_timespec, +pub stime: btrfs_timespec, +pub rtime: btrfs_timespec, +pub reserved: [__le64; 8usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_root_ref { +pub dirid: __le64, +pub sequence: __le64, +pub name_len: __le16, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct btrfs_disk_balance_args { +pub profiles: __le64, +pub __bindgen_anon_1: btrfs_disk_balance_args__bindgen_ty_1, +pub devid: __le64, +pub pstart: __le64, +pub pend: __le64, +pub vstart: __le64, +pub vend: __le64, +pub target: __le64, +pub flags: __le64, +pub __bindgen_anon_2: btrfs_disk_balance_args__bindgen_ty_2, +pub stripes_min: __le32, +pub stripes_max: __le32, +pub unused: [__le64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_disk_balance_args__bindgen_ty_1__bindgen_ty_1 { +pub usage_min: __le32, +pub usage_max: __le32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_disk_balance_args__bindgen_ty_2__bindgen_ty_1 { +pub limit_min: __le32, +pub limit_max: __le32, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct btrfs_balance_item { +pub flags: __le64, +pub data: btrfs_disk_balance_args, +pub meta: btrfs_disk_balance_args, +pub sys: btrfs_disk_balance_args, +pub unused: [__le64; 4usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_file_extent_item { +pub generation: __le64, +pub ram_bytes: __le64, +pub compression: __u8, +pub encryption: __u8, +pub other_encoding: __le16, +pub type_: __u8, +pub disk_bytenr: __le64, +pub disk_num_bytes: __le64, +pub offset: __le64, +pub num_bytes: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_csum_item { +pub csum: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_stats_item { +pub values: [__le64; 5usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_replace_item { +pub src_devid: __le64, +pub cursor_left: __le64, +pub cursor_right: __le64, +pub cont_reading_from_srcdev_mode: __le64, +pub replace_state: __le64, +pub time_started: __le64, +pub time_stopped: __le64, +pub num_write_errors: __le64, +pub num_uncorrectable_read_errors: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_free_space_info { +pub extent_count: __le32, +pub flags: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_status_item { +pub version: __le64, +pub generation: __le64, +pub flags: __le64, +pub rescan: __le64, +pub enable_gen: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_info_item { +pub generation: __le64, +pub rfer: __le64, +pub rfer_cmpr: __le64, +pub excl: __le64, +pub excl_cmpr: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_limit_item { +pub flags: __le64, +pub max_rfer: __le64, +pub max_excl: __le64, +pub rsv_rfer: __le64, +pub rsv_excl: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_verity_descriptor_item { +pub size: __le64, +pub reserved: [__le64; 2usize], +pub encryption: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iovec { +pub _address: u8, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +pub const _IOC_XSIZEMASK: u32 = 16383; +pub const _IOC_DIRMASK: u32 = 7; +pub const _IOC_NRSHIFT: u32 = 0; +pub const _IOC_TYPESHIFT: u32 = 8; +pub const _IOC_SIZESHIFT: u32 = 16; +pub const _IOC_DIRSHIFT: u32 = 29; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const IOC_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 1073676288; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const NR_OPEN: u32 = 1024; +pub const NGROUPS_MAX: u32 = 65536; +pub const ARG_MAX: u32 = 131072; +pub const LINK_MAX: u32 = 127; +pub const MAX_CANON: u32 = 255; +pub const MAX_INPUT: u32 = 255; +pub const NAME_MAX: u32 = 255; +pub const PATH_MAX: u32 = 4096; +pub const PIPE_BUF: u32 = 4096; +pub const XATTR_NAME_MAX: u32 = 255; +pub const XATTR_SIZE_MAX: u32 = 65536; +pub const XATTR_LIST_MAX: u32 = 65536; +pub const RTSIG_MAX: u32 = 32; +pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; +pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; +pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; +pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; +pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; +pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; +pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; +pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; +pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; +pub const FSCRYPT_POLICY_V1: u32 = 0; +pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; +pub const FSCRYPT_POLICY_V2: u32 = 2; +pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; +pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; +pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; +pub const FSCRYPT_ADD_KEY_FLAG_HW_WRAPPED: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; +pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; +pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; +pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; +pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; +pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FS_POLICY_FLAGS_VALID: u32 = 7; +pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; +pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; +pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; +pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; +pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; +pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; +pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; +pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; +pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FS_MAX_KEY_SIZE: u32 = 64; +pub const MS_RDONLY: u32 = 1; +pub const MS_NOSUID: u32 = 2; +pub const MS_NODEV: u32 = 4; +pub const MS_NOEXEC: u32 = 8; +pub const MS_SYNCHRONOUS: u32 = 16; +pub const MS_REMOUNT: u32 = 32; +pub const MS_MANDLOCK: u32 = 64; +pub const MS_DIRSYNC: u32 = 128; +pub const MS_NOSYMFOLLOW: u32 = 256; +pub const MS_NOATIME: u32 = 1024; +pub const MS_NODIRATIME: u32 = 2048; +pub const MS_BIND: u32 = 4096; +pub const MS_MOVE: u32 = 8192; +pub const MS_REC: u32 = 16384; +pub const MS_VERBOSE: u32 = 32768; +pub const MS_SILENT: u32 = 32768; +pub const MS_POSIXACL: u32 = 65536; +pub const MS_UNBINDABLE: u32 = 131072; +pub const MS_PRIVATE: u32 = 262144; +pub const MS_SLAVE: u32 = 524288; +pub const MS_SHARED: u32 = 1048576; +pub const MS_RELATIME: u32 = 2097152; +pub const MS_KERNMOUNT: u32 = 4194304; +pub const MS_I_VERSION: u32 = 8388608; +pub const MS_STRICTATIME: u32 = 16777216; +pub const MS_LAZYTIME: u32 = 33554432; +pub const MS_SUBMOUNT: u32 = 67108864; +pub const MS_NOREMOTELOCK: u32 = 134217728; +pub const MS_NOSEC: u32 = 268435456; +pub const MS_BORN: u32 = 536870912; +pub const MS_ACTIVE: u32 = 1073741824; +pub const MS_NOUSER: u32 = 2147483648; +pub const MS_RMT_MASK: u32 = 41943121; +pub const MS_MGC_VAL: u32 = 3236757504; +pub const MS_MGC_MSK: u32 = 4294901760; +pub const OPEN_TREE_CLONE: u32 = 1; +pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; +pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; +pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; +pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; +pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; +pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; +pub const MOVE_MOUNT_SET_GROUP: u32 = 256; +pub const MOVE_MOUNT_BENEATH: u32 = 512; +pub const MOVE_MOUNT__MASK: u32 = 887; +pub const FSOPEN_CLOEXEC: u32 = 1; +pub const FSPICK_CLOEXEC: u32 = 1; +pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; +pub const FSPICK_NO_AUTOMOUNT: u32 = 4; +pub const FSPICK_EMPTY_PATH: u32 = 8; +pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const MOUNT_ATTR_RDONLY: u32 = 1; +pub const MOUNT_ATTR_NOSUID: u32 = 2; +pub const MOUNT_ATTR_NODEV: u32 = 4; +pub const MOUNT_ATTR_NOEXEC: u32 = 8; +pub const MOUNT_ATTR__ATIME: u32 = 112; +pub const MOUNT_ATTR_RELATIME: u32 = 0; +pub const MOUNT_ATTR_NOATIME: u32 = 16; +pub const MOUNT_ATTR_STRICTATIME: u32 = 32; +pub const MOUNT_ATTR_NODIRATIME: u32 = 128; +pub const MOUNT_ATTR_IDMAP: u32 = 1048576; +pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; +pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; +pub const MNT_ID_REQ_SIZE_VER0: u32 = 24; +pub const MNT_ID_REQ_SIZE_VER1: u32 = 32; +pub const STATMOUNT_SB_BASIC: u32 = 1; +pub const STATMOUNT_MNT_BASIC: u32 = 2; +pub const STATMOUNT_PROPAGATE_FROM: u32 = 4; +pub const STATMOUNT_MNT_ROOT: u32 = 8; +pub const STATMOUNT_MNT_POINT: u32 = 16; +pub const STATMOUNT_FS_TYPE: u32 = 32; +pub const STATMOUNT_MNT_NS_ID: u32 = 64; +pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; +pub const STATMOUNT_SUPPORTED_MASK: u32 = 4096; +pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; +pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; +pub const LSMT_ROOT: i32 = -1; +pub const LISTMOUNT_REVERSE: u32 = 1; +pub const INR_OPEN_CUR: u32 = 1024; +pub const INR_OPEN_MAX: u32 = 4096; +pub const BLOCK_SIZE_BITS: u32 = 10; +pub const BLOCK_SIZE: u32 = 1024; +pub const IO_INTEGRITY_CHK_GUARD: u32 = 1; +pub const IO_INTEGRITY_CHK_REFTAG: u32 = 2; +pub const IO_INTEGRITY_CHK_APPTAG: u32 = 4; +pub const IO_INTEGRITY_VALID_FLAGS: u32 = 7; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const SEEK_DATA: u32 = 3; +pub const SEEK_HOLE: u32 = 4; +pub const SEEK_MAX: u32 = 4; +pub const RENAME_NOREPLACE: u32 = 1; +pub const RENAME_EXCHANGE: u32 = 2; +pub const RENAME_WHITEOUT: u32 = 4; +pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; +pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; +pub const NR_FILE: u32 = 8192; +pub const FS_XFLAG_REALTIME: u32 = 1; +pub const FS_XFLAG_PREALLOC: u32 = 2; +pub const FS_XFLAG_IMMUTABLE: u32 = 8; +pub const FS_XFLAG_APPEND: u32 = 16; +pub const FS_XFLAG_SYNC: u32 = 32; +pub const FS_XFLAG_NOATIME: u32 = 64; +pub const FS_XFLAG_NODUMP: u32 = 128; +pub const FS_XFLAG_RTINHERIT: u32 = 256; +pub const FS_XFLAG_PROJINHERIT: u32 = 512; +pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; +pub const FS_XFLAG_EXTSIZE: u32 = 2048; +pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; +pub const FS_XFLAG_NODEFRAG: u32 = 8192; +pub const FS_XFLAG_FILESTREAM: u32 = 16384; +pub const FS_XFLAG_DAX: u32 = 32768; +pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_HASATTR: u32 = 2147483648; +pub const BMAP_IOCTL: u32 = 1; +pub const FSLABEL_MAX: u32 = 256; +pub const FS_SECRM_FL: u32 = 1; +pub const FS_UNRM_FL: u32 = 2; +pub const FS_COMPR_FL: u32 = 4; +pub const FS_SYNC_FL: u32 = 8; +pub const FS_IMMUTABLE_FL: u32 = 16; +pub const FS_APPEND_FL: u32 = 32; +pub const FS_NODUMP_FL: u32 = 64; +pub const FS_NOATIME_FL: u32 = 128; +pub const FS_DIRTY_FL: u32 = 256; +pub const FS_COMPRBLK_FL: u32 = 512; +pub const FS_NOCOMP_FL: u32 = 1024; +pub const FS_ENCRYPT_FL: u32 = 2048; +pub const FS_BTREE_FL: u32 = 4096; +pub const FS_INDEX_FL: u32 = 4096; +pub const FS_IMAGIC_FL: u32 = 8192; +pub const FS_JOURNAL_DATA_FL: u32 = 16384; +pub const FS_NOTAIL_FL: u32 = 32768; +pub const FS_DIRSYNC_FL: u32 = 65536; +pub const FS_TOPDIR_FL: u32 = 131072; +pub const FS_HUGE_FILE_FL: u32 = 262144; +pub const FS_EXTENT_FL: u32 = 524288; +pub const FS_VERITY_FL: u32 = 1048576; +pub const FS_EA_INODE_FL: u32 = 2097152; +pub const FS_EOFBLOCKS_FL: u32 = 4194304; +pub const FS_NOCOW_FL: u32 = 8388608; +pub const FS_DAX_FL: u32 = 33554432; +pub const FS_INLINE_DATA_FL: u32 = 268435456; +pub const FS_PROJINHERIT_FL: u32 = 536870912; +pub const FS_CASEFOLD_FL: u32 = 1073741824; +pub const FS_RESERVED_FL: u32 = 2147483648; +pub const FS_FL_USER_VISIBLE: u32 = 253951; +pub const FS_FL_USER_MODIFIABLE: u32 = 229631; +pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; +pub const SYNC_FILE_RANGE_WRITE: u32 = 2; +pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; +pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; +pub const PROCFS_IOCTL_MAGIC: u8 = 102u8; +pub const PAGE_IS_WPALLOWED: u32 = 1; +pub const PAGE_IS_WRITTEN: u32 = 2; +pub const PAGE_IS_FILE: u32 = 4; +pub const PAGE_IS_PRESENT: u32 = 8; +pub const PAGE_IS_SWAPPED: u32 = 16; +pub const PAGE_IS_PFNZERO: u32 = 32; +pub const PAGE_IS_HUGE: u32 = 64; +pub const PAGE_IS_SOFT_DIRTY: u32 = 128; +pub const PAGE_IS_GUARD: u32 = 256; +pub const PM_SCAN_WP_MATCHING: u32 = 1; +pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const BTRFS_IOCTL_MAGIC: u32 = 148; +pub const BTRFS_VOL_NAME_MAX: u32 = 255; +pub const BTRFS_LABEL_SIZE: u32 = 256; +pub const BTRFS_PATH_NAME_MAX: u32 = 4087; +pub const BTRFS_DEVICE_PATH_NAME_MAX: u32 = 1024; +pub const BTRFS_SUBVOL_NAME_MAX: u32 = 4039; +pub const BTRFS_SUBVOL_CREATE_ASYNC: u32 = 1; +pub const BTRFS_SUBVOL_RDONLY: u32 = 2; +pub const BTRFS_SUBVOL_QGROUP_INHERIT: u32 = 4; +pub const BTRFS_DEVICE_SPEC_BY_ID: u32 = 8; +pub const BTRFS_SUBVOL_SPEC_BY_ID: u32 = 16; +pub const BTRFS_VOL_ARG_V2_FLAGS_SUPPORTED: u32 = 30; +pub const BTRFS_FSID_SIZE: u32 = 16; +pub const BTRFS_UUID_SIZE: u32 = 16; +pub const BTRFS_UUID_UNPARSED_SIZE: u32 = 37; +pub const BTRFS_QGROUP_LIMIT_MAX_RFER: u32 = 1; +pub const BTRFS_QGROUP_LIMIT_MAX_EXCL: u32 = 2; +pub const BTRFS_QGROUP_LIMIT_RSV_RFER: u32 = 4; +pub const BTRFS_QGROUP_LIMIT_RSV_EXCL: u32 = 8; +pub const BTRFS_QGROUP_LIMIT_RFER_CMPR: u32 = 16; +pub const BTRFS_QGROUP_LIMIT_EXCL_CMPR: u32 = 32; +pub const BTRFS_QGROUP_INHERIT_SET_LIMITS: u32 = 1; +pub const BTRFS_QGROUP_INHERIT_FLAGS_SUPP: u32 = 1; +pub const BTRFS_DEVICE_REMOVE_ARGS_MASK: u32 = 8; +pub const BTRFS_SUBVOL_CREATE_ARGS_MASK: u32 = 6; +pub const BTRFS_SUBVOL_DELETE_ARGS_MASK: u32 = 16; +pub const BTRFS_SCRUB_READONLY: u32 = 1; +pub const BTRFS_SCRUB_SUPPORTED_FLAGS: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_CONT_READING_FROM_SRCDEV_MODE_ALWAYS: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_CONT_READING_FROM_SRCDEV_MODE_AVOID: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_NEVER_STARTED: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_STARTED: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_FINISHED: u32 = 2; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_CANCELED: u32 = 3; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_SUSPENDED: u32 = 4; +pub const BTRFS_IOCTL_DEV_REPLACE_CMD_START: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_CMD_STATUS: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_CMD_CANCEL: u32 = 2; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_NO_ERROR: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_NOT_STARTED: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_ALREADY_STARTED: u32 = 2; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_SCRUB_INPROGRESS: u32 = 3; +pub const BTRFS_FS_INFO_FLAG_CSUM_INFO: u32 = 1; +pub const BTRFS_FS_INFO_FLAG_GENERATION: u32 = 2; +pub const BTRFS_FS_INFO_FLAG_METADATA_UUID: u32 = 4; +pub const BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE: u32 = 1; +pub const BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE_VALID: u32 = 2; +pub const BTRFS_FEATURE_COMPAT_RO_VERITY: u32 = 4; +pub const BTRFS_FEATURE_COMPAT_RO_BLOCK_GROUP_TREE: u32 = 8; +pub const BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF: u32 = 1; +pub const BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL: u32 = 2; +pub const BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS: u32 = 4; +pub const BTRFS_FEATURE_INCOMPAT_COMPRESS_LZO: u32 = 8; +pub const BTRFS_FEATURE_INCOMPAT_COMPRESS_ZSTD: u32 = 16; +pub const BTRFS_FEATURE_INCOMPAT_BIG_METADATA: u32 = 32; +pub const BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF: u32 = 64; +pub const BTRFS_FEATURE_INCOMPAT_RAID56: u32 = 128; +pub const BTRFS_FEATURE_INCOMPAT_SKINNY_METADATA: u32 = 256; +pub const BTRFS_FEATURE_INCOMPAT_NO_HOLES: u32 = 512; +pub const BTRFS_FEATURE_INCOMPAT_METADATA_UUID: u32 = 1024; +pub const BTRFS_FEATURE_INCOMPAT_RAID1C34: u32 = 2048; +pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; +pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; +pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; +pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; +pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; +pub const BTRFS_BALANCE_DATA: u32 = 1; +pub const BTRFS_BALANCE_SYSTEM: u32 = 2; +pub const BTRFS_BALANCE_METADATA: u32 = 4; +pub const BTRFS_BALANCE_TYPE_MASK: u32 = 7; +pub const BTRFS_BALANCE_FORCE: u32 = 8; +pub const BTRFS_BALANCE_RESUME: u32 = 16; +pub const BTRFS_BALANCE_ARGS_PROFILES: u32 = 1; +pub const BTRFS_BALANCE_ARGS_USAGE: u32 = 2; +pub const BTRFS_BALANCE_ARGS_DEVID: u32 = 4; +pub const BTRFS_BALANCE_ARGS_DRANGE: u32 = 8; +pub const BTRFS_BALANCE_ARGS_VRANGE: u32 = 16; +pub const BTRFS_BALANCE_ARGS_LIMIT: u32 = 32; +pub const BTRFS_BALANCE_ARGS_LIMIT_RANGE: u32 = 64; +pub const BTRFS_BALANCE_ARGS_STRIPES_RANGE: u32 = 128; +pub const BTRFS_BALANCE_ARGS_USAGE_RANGE: u32 = 1024; +pub const BTRFS_BALANCE_ARGS_MASK: u32 = 1279; +pub const BTRFS_BALANCE_ARGS_CONVERT: u32 = 256; +pub const BTRFS_BALANCE_ARGS_SOFT: u32 = 512; +pub const BTRFS_BALANCE_STATE_RUNNING: u32 = 1; +pub const BTRFS_BALANCE_STATE_PAUSE_REQ: u32 = 2; +pub const BTRFS_BALANCE_STATE_CANCEL_REQ: u32 = 4; +pub const BTRFS_INO_LOOKUP_PATH_MAX: u32 = 4080; +pub const BTRFS_INO_LOOKUP_USER_PATH_MAX: u32 = 3824; +pub const BTRFS_DEFRAG_RANGE_COMPRESS: u32 = 1; +pub const BTRFS_DEFRAG_RANGE_START_IO: u32 = 2; +pub const BTRFS_DEFRAG_RANGE_COMPRESS_LEVEL: u32 = 4; +pub const BTRFS_DEFRAG_RANGE_FLAGS_SUPP: u32 = 7; +pub const BTRFS_SAME_DATA_DIFFERS: u32 = 1; +pub const BTRFS_LOGICAL_INO_ARGS_IGNORE_OFFSET: u32 = 1; +pub const BTRFS_DEV_STATS_RESET: u32 = 1; +pub const BTRFS_QUOTA_CTL_ENABLE: u32 = 1; +pub const BTRFS_QUOTA_CTL_DISABLE: u32 = 2; +pub const BTRFS_QUOTA_CTL_RESCAN__NOTUSED: u32 = 3; +pub const BTRFS_QUOTA_CTL_ENABLE_SIMPLE_QUOTA: u32 = 4; +pub const BTRFS_SEND_FLAG_NO_FILE_DATA: u32 = 1; +pub const BTRFS_SEND_FLAG_OMIT_STREAM_HEADER: u32 = 2; +pub const BTRFS_SEND_FLAG_OMIT_END_CMD: u32 = 4; +pub const BTRFS_SEND_FLAG_VERSION: u32 = 8; +pub const BTRFS_SEND_FLAG_COMPRESSED: u32 = 16; +pub const BTRFS_SEND_FLAG_MASK: u32 = 31; +pub const BTRFS_MAX_ROOTREF_BUFFER_NUM: u32 = 255; +pub const BTRFS_ENCODED_IO_COMPRESSION_NONE: u32 = 0; +pub const BTRFS_ENCODED_IO_COMPRESSION_ZLIB: u32 = 1; +pub const BTRFS_ENCODED_IO_COMPRESSION_ZSTD: u32 = 2; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_4K: u32 = 3; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_8K: u32 = 4; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_16K: u32 = 5; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_32K: u32 = 6; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7; +pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8; +pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0; +pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2; +pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3; +pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4; +pub const BTRFS_MAGIC: u64 = 5575266562640200287; +pub const BTRFS_MAX_LEVEL: u32 = 8; +pub const BTRFS_NAME_LEN: u32 = 255; +pub const BTRFS_LINK_MAX: u32 = 65535; +pub const BTRFS_ROOT_TREE_OBJECTID: u32 = 1; +pub const BTRFS_EXTENT_TREE_OBJECTID: u32 = 2; +pub const BTRFS_CHUNK_TREE_OBJECTID: u32 = 3; +pub const BTRFS_DEV_TREE_OBJECTID: u32 = 4; +pub const BTRFS_FS_TREE_OBJECTID: u32 = 5; +pub const BTRFS_ROOT_TREE_DIR_OBJECTID: u32 = 6; +pub const BTRFS_CSUM_TREE_OBJECTID: u32 = 7; +pub const BTRFS_QUOTA_TREE_OBJECTID: u32 = 8; +pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; +pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; +pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; +pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; +pub const BTRFS_BALANCE_OBJECTID: i32 = -4; +pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; +pub const BTRFS_TREE_LOG_OBJECTID: i32 = -6; +pub const BTRFS_TREE_LOG_FIXUP_OBJECTID: i32 = -7; +pub const BTRFS_TREE_RELOC_OBJECTID: i32 = -8; +pub const BTRFS_DATA_RELOC_TREE_OBJECTID: i32 = -9; +pub const BTRFS_EXTENT_CSUM_OBJECTID: i32 = -10; +pub const BTRFS_FREE_SPACE_OBJECTID: i32 = -11; +pub const BTRFS_FREE_INO_OBJECTID: i32 = -12; +pub const BTRFS_MULTIPLE_OBJECTIDS: i32 = -255; +pub const BTRFS_FIRST_FREE_OBJECTID: u32 = 256; +pub const BTRFS_LAST_FREE_OBJECTID: i32 = -256; +pub const BTRFS_FIRST_CHUNK_TREE_OBJECTID: u32 = 256; +pub const BTRFS_DEV_ITEMS_OBJECTID: u32 = 1; +pub const BTRFS_BTREE_INODE_OBJECTID: u32 = 1; +pub const BTRFS_EMPTY_SUBVOL_DIR_OBJECTID: u32 = 2; +pub const BTRFS_DEV_REPLACE_DEVID: u32 = 0; +pub const BTRFS_INODE_ITEM_KEY: u32 = 1; +pub const BTRFS_INODE_REF_KEY: u32 = 12; +pub const BTRFS_INODE_EXTREF_KEY: u32 = 13; +pub const BTRFS_XATTR_ITEM_KEY: u32 = 24; +pub const BTRFS_VERITY_DESC_ITEM_KEY: u32 = 36; +pub const BTRFS_VERITY_MERKLE_ITEM_KEY: u32 = 37; +pub const BTRFS_ORPHAN_ITEM_KEY: u32 = 48; +pub const BTRFS_DIR_LOG_ITEM_KEY: u32 = 60; +pub const BTRFS_DIR_LOG_INDEX_KEY: u32 = 72; +pub const BTRFS_DIR_ITEM_KEY: u32 = 84; +pub const BTRFS_DIR_INDEX_KEY: u32 = 96; +pub const BTRFS_EXTENT_DATA_KEY: u32 = 108; +pub const BTRFS_EXTENT_CSUM_KEY: u32 = 128; +pub const BTRFS_ROOT_ITEM_KEY: u32 = 132; +pub const BTRFS_ROOT_BACKREF_KEY: u32 = 144; +pub const BTRFS_ROOT_REF_KEY: u32 = 156; +pub const BTRFS_EXTENT_ITEM_KEY: u32 = 168; +pub const BTRFS_METADATA_ITEM_KEY: u32 = 169; +pub const BTRFS_EXTENT_OWNER_REF_KEY: u32 = 172; +pub const BTRFS_TREE_BLOCK_REF_KEY: u32 = 176; +pub const BTRFS_EXTENT_DATA_REF_KEY: u32 = 178; +pub const BTRFS_SHARED_BLOCK_REF_KEY: u32 = 182; +pub const BTRFS_SHARED_DATA_REF_KEY: u32 = 184; +pub const BTRFS_BLOCK_GROUP_ITEM_KEY: u32 = 192; +pub const BTRFS_FREE_SPACE_INFO_KEY: u32 = 198; +pub const BTRFS_FREE_SPACE_EXTENT_KEY: u32 = 199; +pub const BTRFS_FREE_SPACE_BITMAP_KEY: u32 = 200; +pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; +pub const BTRFS_DEV_ITEM_KEY: u32 = 216; +pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; +pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; +pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; +pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; +pub const BTRFS_QGROUP_RELATION_KEY: u32 = 246; +pub const BTRFS_BALANCE_ITEM_KEY: u32 = 248; +pub const BTRFS_TEMPORARY_ITEM_KEY: u32 = 248; +pub const BTRFS_DEV_STATS_KEY: u32 = 249; +pub const BTRFS_PERSISTENT_ITEM_KEY: u32 = 249; +pub const BTRFS_DEV_REPLACE_KEY: u32 = 250; +pub const BTRFS_UUID_KEY_SUBVOL: u32 = 251; +pub const BTRFS_UUID_KEY_RECEIVED_SUBVOL: u32 = 252; +pub const BTRFS_STRING_ITEM_KEY: u32 = 253; +pub const BTRFS_MAX_METADATA_BLOCKSIZE: u32 = 65536; +pub const BTRFS_CSUM_SIZE: u32 = 32; +pub const BTRFS_FT_UNKNOWN: u32 = 0; +pub const BTRFS_FT_REG_FILE: u32 = 1; +pub const BTRFS_FT_DIR: u32 = 2; +pub const BTRFS_FT_CHRDEV: u32 = 3; +pub const BTRFS_FT_BLKDEV: u32 = 4; +pub const BTRFS_FT_FIFO: u32 = 5; +pub const BTRFS_FT_SOCK: u32 = 6; +pub const BTRFS_FT_SYMLINK: u32 = 7; +pub const BTRFS_FT_XATTR: u32 = 8; +pub const BTRFS_FT_MAX: u32 = 9; +pub const BTRFS_FT_ENCRYPTED: u32 = 128; +pub const BTRFS_INODE_NODATASUM: u32 = 1; +pub const BTRFS_INODE_NODATACOW: u32 = 2; +pub const BTRFS_INODE_READONLY: u32 = 4; +pub const BTRFS_INODE_NOCOMPRESS: u32 = 8; +pub const BTRFS_INODE_PREALLOC: u32 = 16; +pub const BTRFS_INODE_SYNC: u32 = 32; +pub const BTRFS_INODE_IMMUTABLE: u32 = 64; +pub const BTRFS_INODE_APPEND: u32 = 128; +pub const BTRFS_INODE_NODUMP: u32 = 256; +pub const BTRFS_INODE_NOATIME: u32 = 512; +pub const BTRFS_INODE_DIRSYNC: u32 = 1024; +pub const BTRFS_INODE_COMPRESS: u32 = 2048; +pub const BTRFS_INODE_ROOT_ITEM_INIT: u32 = 2147483648; +pub const BTRFS_INODE_FLAG_MASK: u32 = 2147487743; +pub const BTRFS_INODE_RO_VERITY: u32 = 1; +pub const BTRFS_INODE_RO_FLAG_MASK: u32 = 1; +pub const BTRFS_SYSTEM_CHUNK_ARRAY_SIZE: u32 = 2048; +pub const BTRFS_NUM_BACKUP_ROOTS: u32 = 4; +pub const BTRFS_FREE_SPACE_EXTENT: u32 = 1; +pub const BTRFS_FREE_SPACE_BITMAP: u32 = 2; +pub const BTRFS_HEADER_FLAG_WRITTEN: u32 = 1; +pub const BTRFS_HEADER_FLAG_RELOC: u32 = 2; +pub const BTRFS_SUPER_FLAG_ERROR: u32 = 4; +pub const BTRFS_SUPER_FLAG_SEEDING: u64 = 4294967296; +pub const BTRFS_SUPER_FLAG_METADUMP: u64 = 8589934592; +pub const BTRFS_SUPER_FLAG_METADUMP_V2: u64 = 17179869184; +pub const BTRFS_SUPER_FLAG_CHANGING_FSID: u64 = 34359738368; +pub const BTRFS_SUPER_FLAG_CHANGING_FSID_V2: u64 = 68719476736; +pub const BTRFS_SUPER_FLAG_CHANGING_BG_TREE: u64 = 274877906944; +pub const BTRFS_SUPER_FLAG_CHANGING_DATA_CSUM: u64 = 549755813888; +pub const BTRFS_SUPER_FLAG_CHANGING_META_CSUM: u64 = 1099511627776; +pub const BTRFS_EXTENT_FLAG_DATA: u32 = 1; +pub const BTRFS_EXTENT_FLAG_TREE_BLOCK: u32 = 2; +pub const BTRFS_BLOCK_FLAG_FULL_BACKREF: u32 = 256; +pub const BTRFS_BACKREF_REV_MAX: u32 = 256; +pub const BTRFS_BACKREF_REV_SHIFT: u32 = 56; +pub const BTRFS_OLD_BACKREF_REV: u32 = 0; +pub const BTRFS_MIXED_BACKREF_REV: u32 = 1; +pub const BTRFS_EXTENT_FLAG_SUPER: u64 = 281474976710656; +pub const BTRFS_ROOT_SUBVOL_RDONLY: u32 = 1; +pub const BTRFS_ROOT_SUBVOL_DEAD: u64 = 281474976710656; +pub const BTRFS_DEV_REPLACE_ITEM_CONT_READING_FROM_SRCDEV_MODE_ALWAYS: u32 = 0; +pub const BTRFS_DEV_REPLACE_ITEM_CONT_READING_FROM_SRCDEV_MODE_AVOID: u32 = 1; +pub const BTRFS_BLOCK_GROUP_DATA: u32 = 1; +pub const BTRFS_BLOCK_GROUP_SYSTEM: u32 = 2; +pub const BTRFS_BLOCK_GROUP_METADATA: u32 = 4; +pub const BTRFS_BLOCK_GROUP_RAID0: u32 = 8; +pub const BTRFS_BLOCK_GROUP_RAID1: u32 = 16; +pub const BTRFS_BLOCK_GROUP_DUP: u32 = 32; +pub const BTRFS_BLOCK_GROUP_RAID10: u32 = 64; +pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; +pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; +pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; +pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; +pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; +pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; +pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; +pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; +pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; +pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; +pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; +pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; +pub const BTRFS_QGROUP_STATUS_FLAG_INCONSISTENT: u32 = 4; +pub const BTRFS_QGROUP_STATUS_FLAG_SIMPLE_MODE: u32 = 8; +pub const BTRFS_QGROUP_STATUS_FLAGS_MASK: u32 = 15; +pub const BTRFS_QGROUP_STATUS_VERSION: u32 = 1; +pub const BTRFS_FILE_EXTENT_INLINE: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_FILE_EXTENT_INLINE; +pub const BTRFS_FILE_EXTENT_REG: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_FILE_EXTENT_REG; +pub const BTRFS_FILE_EXTENT_PREALLOC: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_FILE_EXTENT_PREALLOC; +pub const BTRFS_NR_FILE_EXTENT_TYPES: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_NR_FILE_EXTENT_TYPES; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum fsconfig_command { +FSCONFIG_SET_FLAG = 0, +FSCONFIG_SET_STRING = 1, +FSCONFIG_SET_BINARY = 2, +FSCONFIG_SET_PATH = 3, +FSCONFIG_SET_PATH_EMPTY = 4, +FSCONFIG_SET_FD = 5, +FSCONFIG_CMD_CREATE = 6, +FSCONFIG_CMD_RECONFIGURE = 7, +FSCONFIG_CMD_CREATE_EXCL = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum procmap_query_flags { +PROCMAP_QUERY_VMA_READABLE = 1, +PROCMAP_QUERY_VMA_WRITABLE = 2, +PROCMAP_QUERY_VMA_EXECUTABLE = 4, +PROCMAP_QUERY_VMA_SHARED = 8, +PROCMAP_QUERY_COVERING_OR_NEXT_VMA = 16, +PROCMAP_QUERY_FILE_BACKED_VMA = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum btrfs_dev_stat_values { +BTRFS_DEV_STAT_WRITE_ERRS = 0, +BTRFS_DEV_STAT_READ_ERRS = 1, +BTRFS_DEV_STAT_FLUSH_ERRS = 2, +BTRFS_DEV_STAT_CORRUPTION_ERRS = 3, +BTRFS_DEV_STAT_GENERATION_ERRS = 4, +BTRFS_DEV_STAT_VALUES_MAX = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum btrfs_err_code { +BTRFS_ERROR_DEV_RAID1_MIN_NOT_MET = 1, +BTRFS_ERROR_DEV_RAID10_MIN_NOT_MET = 2, +BTRFS_ERROR_DEV_RAID5_MIN_NOT_MET = 3, +BTRFS_ERROR_DEV_RAID6_MIN_NOT_MET = 4, +BTRFS_ERROR_DEV_TGT_REPLACE = 5, +BTRFS_ERROR_DEV_MISSING_NOT_FOUND = 6, +BTRFS_ERROR_DEV_ONLY_WRITABLE = 7, +BTRFS_ERROR_DEV_EXCL_RUN_IN_PROGRESS = 8, +BTRFS_ERROR_DEV_RAID1C3_MIN_NOT_MET = 9, +BTRFS_ERROR_DEV_RAID1C4_MIN_NOT_MET = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum btrfs_csum_type { +BTRFS_CSUM_TYPE_CRC32 = 0, +BTRFS_CSUM_TYPE_XXHASH = 1, +BTRFS_CSUM_TYPE_SHA256 = 2, +BTRFS_CSUM_TYPE_BLAKE2 = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +BTRFS_FILE_EXTENT_INLINE = 0, +BTRFS_FILE_EXTENT_REG = 1, +BTRFS_FILE_EXTENT_PREALLOC = 2, +BTRFS_NR_FILE_EXTENT_TYPES = 3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { +pub version: __u8, +pub v1: fscrypt_policy_v1, +pub v2: fscrypt_policy_v2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_key_specifier__bindgen_ty_1 { +pub __reserved: [__u8; 32usize], +pub descriptor: [__u8; 8usize], +pub identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { +pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, +pub unused: [__u64; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_vol_args_v2__bindgen_ty_2 { +pub name: [crate::ctypes::c_char; 4040usize], +pub devid: __u64, +pub subvolid: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_dev_replace_args__bindgen_ty_1 { +pub start: btrfs_ioctl_dev_replace_start_params, +pub status: btrfs_ioctl_dev_replace_status_params, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_balance_args__bindgen_ty_1 { +pub usage: __u64, +pub __bindgen_anon_1: btrfs_balance_args__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_balance_args__bindgen_ty_2 { +pub limit: __u64, +pub __bindgen_anon_1: btrfs_balance_args__bindgen_ty_2__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_defrag_range_args__bindgen_ty_1 { +pub compress_type: __u32, +pub compress: btrfs_ioctl_defrag_range_args__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_disk_balance_args__bindgen_ty_1 { +pub usage: __le64, +pub __bindgen_anon_1: btrfs_disk_balance_args__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_disk_balance_args__bindgen_ty_2 { +pub limit: __le64, +pub __bindgen_anon_1: btrfs_disk_balance_args__bindgen_ty_2__bindgen_ty_1, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/elf_uapi.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/elf_uapi.rs new file mode 100644 index 0000000000000000000000000000000000000000..cc05d9e185705c2edf128a95318b5dfc9e72b34e --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/elf_uapi.rs @@ -0,0 +1,652 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_daddr_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type Elf32_Addr = __u32; +pub type Elf32_Half = __u16; +pub type Elf32_Off = __u32; +pub type Elf32_Sword = __s32; +pub type Elf32_Word = __u32; +pub type Elf32_Versym = __u16; +pub type Elf64_Addr = __u64; +pub type Elf64_Half = __u16; +pub type Elf64_SHalf = __s16; +pub type Elf64_Off = __u64; +pub type Elf64_Sword = __s32; +pub type Elf64_Word = __u32; +pub type Elf64_Xword = __u64; +pub type Elf64_Sxword = __s64; +pub type Elf64_Versym = __u16; +pub type Elf32_Rel = elf32_rel; +pub type Elf64_Rel = elf64_rel; +pub type Elf32_Rela = elf32_rela; +pub type Elf64_Rela = elf64_rela; +pub type Elf32_Sym = elf32_sym; +pub type Elf64_Sym = elf64_sym; +pub type Elf32_Ehdr = elf32_hdr; +pub type Elf64_Ehdr = elf64_hdr; +pub type Elf32_Phdr = elf32_phdr; +pub type Elf64_Phdr = elf64_phdr; +pub type Elf32_Shdr = elf32_shdr; +pub type Elf64_Shdr = elf64_shdr; +pub type Elf32_Nhdr = elf32_note; +pub type Elf64_Nhdr = elf64_note; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct Elf32_Dyn { +pub d_tag: Elf32_Sword, +pub d_un: Elf32_Dyn__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct Elf64_Dyn { +pub d_tag: Elf64_Sxword, +pub d_un: Elf64_Dyn__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_rel { +pub r_offset: Elf32_Addr, +pub r_info: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_rel { +pub r_offset: Elf64_Addr, +pub r_info: Elf64_Xword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_rela { +pub r_offset: Elf32_Addr, +pub r_info: Elf32_Word, +pub r_addend: Elf32_Sword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_rela { +pub r_offset: Elf64_Addr, +pub r_info: Elf64_Xword, +pub r_addend: Elf64_Sxword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_sym { +pub st_name: Elf32_Word, +pub st_value: Elf32_Addr, +pub st_size: Elf32_Word, +pub st_info: crate::ctypes::c_uchar, +pub st_other: crate::ctypes::c_uchar, +pub st_shndx: Elf32_Half, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_sym { +pub st_name: Elf64_Word, +pub st_info: crate::ctypes::c_uchar, +pub st_other: crate::ctypes::c_uchar, +pub st_shndx: Elf64_Half, +pub st_value: Elf64_Addr, +pub st_size: Elf64_Xword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_hdr { +pub e_ident: [crate::ctypes::c_uchar; 16usize], +pub e_type: Elf32_Half, +pub e_machine: Elf32_Half, +pub e_version: Elf32_Word, +pub e_entry: Elf32_Addr, +pub e_phoff: Elf32_Off, +pub e_shoff: Elf32_Off, +pub e_flags: Elf32_Word, +pub e_ehsize: Elf32_Half, +pub e_phentsize: Elf32_Half, +pub e_phnum: Elf32_Half, +pub e_shentsize: Elf32_Half, +pub e_shnum: Elf32_Half, +pub e_shstrndx: Elf32_Half, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_hdr { +pub e_ident: [crate::ctypes::c_uchar; 16usize], +pub e_type: Elf64_Half, +pub e_machine: Elf64_Half, +pub e_version: Elf64_Word, +pub e_entry: Elf64_Addr, +pub e_phoff: Elf64_Off, +pub e_shoff: Elf64_Off, +pub e_flags: Elf64_Word, +pub e_ehsize: Elf64_Half, +pub e_phentsize: Elf64_Half, +pub e_phnum: Elf64_Half, +pub e_shentsize: Elf64_Half, +pub e_shnum: Elf64_Half, +pub e_shstrndx: Elf64_Half, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_phdr { +pub p_type: Elf32_Word, +pub p_offset: Elf32_Off, +pub p_vaddr: Elf32_Addr, +pub p_paddr: Elf32_Addr, +pub p_filesz: Elf32_Word, +pub p_memsz: Elf32_Word, +pub p_flags: Elf32_Word, +pub p_align: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_phdr { +pub p_type: Elf64_Word, +pub p_flags: Elf64_Word, +pub p_offset: Elf64_Off, +pub p_vaddr: Elf64_Addr, +pub p_paddr: Elf64_Addr, +pub p_filesz: Elf64_Xword, +pub p_memsz: Elf64_Xword, +pub p_align: Elf64_Xword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_shdr { +pub sh_name: Elf32_Word, +pub sh_type: Elf32_Word, +pub sh_flags: Elf32_Word, +pub sh_addr: Elf32_Addr, +pub sh_offset: Elf32_Off, +pub sh_size: Elf32_Word, +pub sh_link: Elf32_Word, +pub sh_info: Elf32_Word, +pub sh_addralign: Elf32_Word, +pub sh_entsize: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_shdr { +pub sh_name: Elf64_Word, +pub sh_type: Elf64_Word, +pub sh_flags: Elf64_Xword, +pub sh_addr: Elf64_Addr, +pub sh_offset: Elf64_Off, +pub sh_size: Elf64_Xword, +pub sh_link: Elf64_Word, +pub sh_info: Elf64_Word, +pub sh_addralign: Elf64_Xword, +pub sh_entsize: Elf64_Xword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_note { +pub n_namesz: Elf32_Word, +pub n_descsz: Elf32_Word, +pub n_type: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_note { +pub n_namesz: Elf64_Word, +pub n_descsz: Elf64_Word, +pub n_type: Elf64_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Elf32_Verdef { +pub vd_version: Elf32_Half, +pub vd_flags: Elf32_Half, +pub vd_ndx: Elf32_Half, +pub vd_cnt: Elf32_Half, +pub vd_hash: Elf32_Word, +pub vd_aux: Elf32_Word, +pub vd_next: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Elf64_Verdef { +pub vd_version: Elf64_Half, +pub vd_flags: Elf64_Half, +pub vd_ndx: Elf64_Half, +pub vd_cnt: Elf64_Half, +pub vd_hash: Elf64_Word, +pub vd_aux: Elf64_Word, +pub vd_next: Elf64_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Elf32_Verdaux { +pub vda_name: Elf32_Word, +pub vda_next: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Elf64_Verdaux { +pub vda_name: Elf64_Word, +pub vda_next: Elf64_Word, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const EM_NONE: u32 = 0; +pub const EM_M32: u32 = 1; +pub const EM_SPARC: u32 = 2; +pub const EM_386: u32 = 3; +pub const EM_68K: u32 = 4; +pub const EM_88K: u32 = 5; +pub const EM_486: u32 = 6; +pub const EM_860: u32 = 7; +pub const EM_MIPS: u32 = 8; +pub const EM_MIPS_RS3_LE: u32 = 10; +pub const EM_MIPS_RS4_BE: u32 = 10; +pub const EM_PARISC: u32 = 15; +pub const EM_SPARC32PLUS: u32 = 18; +pub const EM_PPC: u32 = 20; +pub const EM_PPC64: u32 = 21; +pub const EM_SPU: u32 = 23; +pub const EM_ARM: u32 = 40; +pub const EM_SH: u32 = 42; +pub const EM_SPARCV9: u32 = 43; +pub const EM_H8_300: u32 = 46; +pub const EM_IA_64: u32 = 50; +pub const EM_X86_64: u32 = 62; +pub const EM_S390: u32 = 22; +pub const EM_CRIS: u32 = 76; +pub const EM_M32R: u32 = 88; +pub const EM_MN10300: u32 = 89; +pub const EM_OPENRISC: u32 = 92; +pub const EM_ARCOMPACT: u32 = 93; +pub const EM_XTENSA: u32 = 94; +pub const EM_BLACKFIN: u32 = 106; +pub const EM_UNICORE: u32 = 110; +pub const EM_ALTERA_NIOS2: u32 = 113; +pub const EM_TI_C6000: u32 = 140; +pub const EM_HEXAGON: u32 = 164; +pub const EM_NDS32: u32 = 167; +pub const EM_AARCH64: u32 = 183; +pub const EM_TILEPRO: u32 = 188; +pub const EM_MICROBLAZE: u32 = 189; +pub const EM_TILEGX: u32 = 191; +pub const EM_ARCV2: u32 = 195; +pub const EM_RISCV: u32 = 243; +pub const EM_BPF: u32 = 247; +pub const EM_CSKY: u32 = 252; +pub const EM_LOONGARCH: u32 = 258; +pub const EM_FRV: u32 = 21569; +pub const EM_ALPHA: u32 = 36902; +pub const EM_CYGNUS_M32R: u32 = 36929; +pub const EM_S390_OLD: u32 = 41872; +pub const EM_CYGNUS_MN10300: u32 = 48879; +pub const PT_NULL: u32 = 0; +pub const PT_LOAD: u32 = 1; +pub const PT_DYNAMIC: u32 = 2; +pub const PT_INTERP: u32 = 3; +pub const PT_NOTE: u32 = 4; +pub const PT_SHLIB: u32 = 5; +pub const PT_PHDR: u32 = 6; +pub const PT_TLS: u32 = 7; +pub const PT_LOOS: u32 = 1610612736; +pub const PT_HIOS: u32 = 1879048191; +pub const PT_LOPROC: u32 = 1879048192; +pub const PT_HIPROC: u32 = 2147483647; +pub const PT_GNU_EH_FRAME: u32 = 1685382480; +pub const PT_GNU_STACK: u32 = 1685382481; +pub const PT_GNU_RELRO: u32 = 1685382482; +pub const PT_GNU_PROPERTY: u32 = 1685382483; +pub const PT_AARCH64_MEMTAG_MTE: u32 = 1879048194; +pub const PN_XNUM: u32 = 65535; +pub const ET_NONE: u32 = 0; +pub const ET_REL: u32 = 1; +pub const ET_EXEC: u32 = 2; +pub const ET_DYN: u32 = 3; +pub const ET_CORE: u32 = 4; +pub const ET_LOPROC: u32 = 65280; +pub const ET_HIPROC: u32 = 65535; +pub const DT_NULL: u32 = 0; +pub const DT_NEEDED: u32 = 1; +pub const DT_PLTRELSZ: u32 = 2; +pub const DT_PLTGOT: u32 = 3; +pub const DT_HASH: u32 = 4; +pub const DT_STRTAB: u32 = 5; +pub const DT_SYMTAB: u32 = 6; +pub const DT_RELA: u32 = 7; +pub const DT_RELASZ: u32 = 8; +pub const DT_RELAENT: u32 = 9; +pub const DT_STRSZ: u32 = 10; +pub const DT_SYMENT: u32 = 11; +pub const DT_INIT: u32 = 12; +pub const DT_FINI: u32 = 13; +pub const DT_SONAME: u32 = 14; +pub const DT_RPATH: u32 = 15; +pub const DT_SYMBOLIC: u32 = 16; +pub const DT_REL: u32 = 17; +pub const DT_RELSZ: u32 = 18; +pub const DT_RELENT: u32 = 19; +pub const DT_PLTREL: u32 = 20; +pub const DT_DEBUG: u32 = 21; +pub const DT_TEXTREL: u32 = 22; +pub const DT_JMPREL: u32 = 23; +pub const DT_ENCODING: u32 = 32; +pub const OLD_DT_LOOS: u32 = 1610612736; +pub const DT_LOOS: u32 = 1610612749; +pub const DT_HIOS: u32 = 1879044096; +pub const DT_VALRNGLO: u32 = 1879047424; +pub const DT_VALRNGHI: u32 = 1879047679; +pub const DT_ADDRRNGLO: u32 = 1879047680; +pub const DT_GNU_HASH: u32 = 1879047925; +pub const DT_ADDRRNGHI: u32 = 1879047935; +pub const DT_VERSYM: u32 = 1879048176; +pub const DT_RELACOUNT: u32 = 1879048185; +pub const DT_RELCOUNT: u32 = 1879048186; +pub const DT_FLAGS_1: u32 = 1879048187; +pub const DT_VERDEF: u32 = 1879048188; +pub const DT_VERDEFNUM: u32 = 1879048189; +pub const DT_VERNEED: u32 = 1879048190; +pub const DT_VERNEEDNUM: u32 = 1879048191; +pub const OLD_DT_HIOS: u32 = 1879048191; +pub const DT_LOPROC: u32 = 1879048192; +pub const DT_HIPROC: u32 = 2147483647; +pub const STB_LOCAL: u32 = 0; +pub const STB_GLOBAL: u32 = 1; +pub const STB_WEAK: u32 = 2; +pub const STN_UNDEF: u32 = 0; +pub const STT_NOTYPE: u32 = 0; +pub const STT_OBJECT: u32 = 1; +pub const STT_FUNC: u32 = 2; +pub const STT_SECTION: u32 = 3; +pub const STT_FILE: u32 = 4; +pub const STT_COMMON: u32 = 5; +pub const STT_TLS: u32 = 6; +pub const VER_FLG_BASE: u32 = 1; +pub const VER_FLG_WEAK: u32 = 2; +pub const EI_NIDENT: u32 = 16; +pub const PF_R: u32 = 4; +pub const PF_W: u32 = 2; +pub const PF_X: u32 = 1; +pub const SHT_NULL: u32 = 0; +pub const SHT_PROGBITS: u32 = 1; +pub const SHT_SYMTAB: u32 = 2; +pub const SHT_STRTAB: u32 = 3; +pub const SHT_RELA: u32 = 4; +pub const SHT_HASH: u32 = 5; +pub const SHT_DYNAMIC: u32 = 6; +pub const SHT_NOTE: u32 = 7; +pub const SHT_NOBITS: u32 = 8; +pub const SHT_REL: u32 = 9; +pub const SHT_SHLIB: u32 = 10; +pub const SHT_DYNSYM: u32 = 11; +pub const SHT_NUM: u32 = 12; +pub const SHT_LOPROC: u32 = 1879048192; +pub const SHT_HIPROC: u32 = 2147483647; +pub const SHT_LOUSER: u32 = 2147483648; +pub const SHT_HIUSER: u32 = 4294967295; +pub const SHF_WRITE: u32 = 1; +pub const SHF_ALLOC: u32 = 2; +pub const SHF_EXECINSTR: u32 = 4; +pub const SHF_MERGE: u32 = 16; +pub const SHF_STRINGS: u32 = 32; +pub const SHF_INFO_LINK: u32 = 64; +pub const SHF_LINK_ORDER: u32 = 128; +pub const SHF_OS_NONCONFORMING: u32 = 256; +pub const SHF_GROUP: u32 = 512; +pub const SHF_TLS: u32 = 1024; +pub const SHF_RELA_LIVEPATCH: u32 = 1048576; +pub const SHF_RO_AFTER_INIT: u32 = 2097152; +pub const SHF_ORDERED: u32 = 67108864; +pub const SHF_EXCLUDE: u32 = 134217728; +pub const SHF_MASKOS: u32 = 267386880; +pub const SHF_MASKPROC: u32 = 4026531840; +pub const SHN_UNDEF: u32 = 0; +pub const SHN_LORESERVE: u32 = 65280; +pub const SHN_LOPROC: u32 = 65280; +pub const SHN_HIPROC: u32 = 65311; +pub const SHN_LIVEPATCH: u32 = 65312; +pub const SHN_ABS: u32 = 65521; +pub const SHN_COMMON: u32 = 65522; +pub const SHN_HIRESERVE: u32 = 65535; +pub const EI_MAG0: u32 = 0; +pub const EI_MAG1: u32 = 1; +pub const EI_MAG2: u32 = 2; +pub const EI_MAG3: u32 = 3; +pub const EI_CLASS: u32 = 4; +pub const EI_DATA: u32 = 5; +pub const EI_VERSION: u32 = 6; +pub const EI_OSABI: u32 = 7; +pub const EI_PAD: u32 = 8; +pub const ELFMAG0: u32 = 127; +pub const ELFMAG1: u8 = 69u8; +pub const ELFMAG2: u8 = 76u8; +pub const ELFMAG3: u8 = 70u8; +pub const ELFMAG: &[u8; 5] = b"\x7FELF\0"; +pub const SELFMAG: u32 = 4; +pub const ELFCLASSNONE: u32 = 0; +pub const ELFCLASS32: u32 = 1; +pub const ELFCLASS64: u32 = 2; +pub const ELFCLASSNUM: u32 = 3; +pub const ELFDATANONE: u32 = 0; +pub const ELFDATA2LSB: u32 = 1; +pub const ELFDATA2MSB: u32 = 2; +pub const EV_NONE: u32 = 0; +pub const EV_CURRENT: u32 = 1; +pub const EV_NUM: u32 = 2; +pub const ELFOSABI_NONE: u32 = 0; +pub const ELFOSABI_LINUX: u32 = 3; +pub const ELF_OSABI: u32 = 0; +pub const NN_GNU_PROPERTY_TYPE_0: &[u8; 4] = b"GNU\0"; +pub const NT_GNU_PROPERTY_TYPE_0: u32 = 5; +pub const NN_PRSTATUS: &[u8; 5] = b"CORE\0"; +pub const NT_PRSTATUS: u32 = 1; +pub const NN_PRFPREG: &[u8; 5] = b"CORE\0"; +pub const NT_PRFPREG: u32 = 2; +pub const NN_PRPSINFO: &[u8; 5] = b"CORE\0"; +pub const NT_PRPSINFO: u32 = 3; +pub const NN_TASKSTRUCT: &[u8; 5] = b"CORE\0"; +pub const NT_TASKSTRUCT: u32 = 4; +pub const NN_AUXV: &[u8; 5] = b"CORE\0"; +pub const NT_AUXV: u32 = 6; +pub const NN_SIGINFO: &[u8; 5] = b"CORE\0"; +pub const NT_SIGINFO: u32 = 1397311305; +pub const NN_FILE: &[u8; 5] = b"CORE\0"; +pub const NT_FILE: u32 = 1179208773; +pub const NN_PRXFPREG: &[u8; 6] = b"LINUX\0"; +pub const NT_PRXFPREG: u32 = 1189489535; +pub const NN_PPC_VMX: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_VMX: u32 = 256; +pub const NN_PPC_SPE: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_SPE: u32 = 257; +pub const NN_PPC_VSX: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_VSX: u32 = 258; +pub const NN_PPC_TAR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TAR: u32 = 259; +pub const NN_PPC_PPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_PPR: u32 = 260; +pub const NN_PPC_DSCR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_DSCR: u32 = 261; +pub const NN_PPC_EBB: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_EBB: u32 = 262; +pub const NN_PPC_PMU: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_PMU: u32 = 263; +pub const NN_PPC_TM_CGPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CGPR: u32 = 264; +pub const NN_PPC_TM_CFPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CFPR: u32 = 265; +pub const NN_PPC_TM_CVMX: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CVMX: u32 = 266; +pub const NN_PPC_TM_CVSX: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CVSX: u32 = 267; +pub const NN_PPC_TM_SPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_SPR: u32 = 268; +pub const NN_PPC_TM_CTAR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CTAR: u32 = 269; +pub const NN_PPC_TM_CPPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CPPR: u32 = 270; +pub const NN_PPC_TM_CDSCR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CDSCR: u32 = 271; +pub const NN_PPC_PKEY: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_PKEY: u32 = 272; +pub const NN_PPC_DEXCR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_DEXCR: u32 = 273; +pub const NN_PPC_HASHKEYR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_HASHKEYR: u32 = 274; +pub const NN_386_TLS: &[u8; 6] = b"LINUX\0"; +pub const NT_386_TLS: u32 = 512; +pub const NN_386_IOPERM: &[u8; 6] = b"LINUX\0"; +pub const NT_386_IOPERM: u32 = 513; +pub const NN_X86_XSTATE: &[u8; 6] = b"LINUX\0"; +pub const NT_X86_XSTATE: u32 = 514; +pub const NN_X86_SHSTK: &[u8; 6] = b"LINUX\0"; +pub const NT_X86_SHSTK: u32 = 516; +pub const NN_X86_XSAVE_LAYOUT: &[u8; 6] = b"LINUX\0"; +pub const NT_X86_XSAVE_LAYOUT: u32 = 517; +pub const NN_S390_HIGH_GPRS: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_HIGH_GPRS: u32 = 768; +pub const NN_S390_TIMER: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_TIMER: u32 = 769; +pub const NN_S390_TODCMP: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_TODCMP: u32 = 770; +pub const NN_S390_TODPREG: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_TODPREG: u32 = 771; +pub const NN_S390_CTRS: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_CTRS: u32 = 772; +pub const NN_S390_PREFIX: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_PREFIX: u32 = 773; +pub const NN_S390_LAST_BREAK: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_LAST_BREAK: u32 = 774; +pub const NN_S390_SYSTEM_CALL: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_SYSTEM_CALL: u32 = 775; +pub const NN_S390_TDB: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_TDB: u32 = 776; +pub const NN_S390_VXRS_LOW: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_VXRS_LOW: u32 = 777; +pub const NN_S390_VXRS_HIGH: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_VXRS_HIGH: u32 = 778; +pub const NN_S390_GS_CB: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_GS_CB: u32 = 779; +pub const NN_S390_GS_BC: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_GS_BC: u32 = 780; +pub const NN_S390_RI_CB: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_RI_CB: u32 = 781; +pub const NN_S390_PV_CPU_DATA: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_PV_CPU_DATA: u32 = 782; +pub const NN_ARM_VFP: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_VFP: u32 = 1024; +pub const NN_ARM_TLS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_TLS: u32 = 1025; +pub const NN_ARM_HW_BREAK: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_HW_BREAK: u32 = 1026; +pub const NN_ARM_HW_WATCH: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_HW_WATCH: u32 = 1027; +pub const NN_ARM_SYSTEM_CALL: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_SYSTEM_CALL: u32 = 1028; +pub const NN_ARM_SVE: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_SVE: u32 = 1029; +pub const NN_ARM_PAC_MASK: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_PAC_MASK: u32 = 1030; +pub const NN_ARM_PACA_KEYS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_PACA_KEYS: u32 = 1031; +pub const NN_ARM_PACG_KEYS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_PACG_KEYS: u32 = 1032; +pub const NN_ARM_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_TAGGED_ADDR_CTRL: u32 = 1033; +pub const NN_ARM_PAC_ENABLED_KEYS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_PAC_ENABLED_KEYS: u32 = 1034; +pub const NN_ARM_SSVE: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_SSVE: u32 = 1035; +pub const NN_ARM_ZA: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_ZA: u32 = 1036; +pub const NN_ARM_ZT: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_ZT: u32 = 1037; +pub const NN_ARM_FPMR: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_FPMR: u32 = 1038; +pub const NN_ARM_POE: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_POE: u32 = 1039; +pub const NN_ARM_GCS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_GCS: u32 = 1040; +pub const NN_ARC_V2: &[u8; 6] = b"LINUX\0"; +pub const NT_ARC_V2: u32 = 1536; +pub const NN_VMCOREDD: &[u8; 6] = b"LINUX\0"; +pub const NT_VMCOREDD: u32 = 1792; +pub const NN_MIPS_DSP: &[u8; 6] = b"LINUX\0"; +pub const NT_MIPS_DSP: u32 = 2048; +pub const NN_MIPS_FP_MODE: &[u8; 6] = b"LINUX\0"; +pub const NT_MIPS_FP_MODE: u32 = 2049; +pub const NN_MIPS_MSA: &[u8; 6] = b"LINUX\0"; +pub const NT_MIPS_MSA: u32 = 2050; +pub const NN_RISCV_CSR: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_CSR: u32 = 2304; +pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_VECTOR: u32 = 2305; +pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_CPUCFG: u32 = 2560; +pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_CSR: u32 = 2561; +pub const NN_LOONGARCH_LSX: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_LSX: u32 = 2562; +pub const NN_LOONGARCH_LASX: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_LASX: u32 = 2563; +pub const NN_LOONGARCH_LBT: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_LBT: u32 = 2564; +pub const NN_LOONGARCH_HW_BREAK: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_HW_BREAK: u32 = 2565; +pub const NN_LOONGARCH_HW_WATCH: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_HW_WATCH: u32 = 2566; +pub const GNU_PROPERTY_AARCH64_FEATURE_1_AND: u32 = 3221225472; +pub const GNU_PROPERTY_AARCH64_FEATURE_1_BTI: u32 = 1; +#[repr(C)] +#[derive(Copy, Clone)] +pub union Elf32_Dyn__bindgen_ty_1 { +pub d_val: Elf32_Sword, +pub d_ptr: Elf32_Addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union Elf64_Dyn__bindgen_ty_1 { +pub d_val: Elf64_Xword, +pub d_ptr: Elf64_Addr, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/errno.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/errno.rs new file mode 100644 index 0000000000000000000000000000000000000000..743e86bb93e154e5fee89a2dd7b7f833ffe23ec8 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/errno.rs @@ -0,0 +1,137 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EWOULDBLOCK: u32 = 11; +pub const EINPROGRESS: u32 = 36; +pub const EALREADY: u32 = 37; +pub const ENOTSOCK: u32 = 38; +pub const EDESTADDRREQ: u32 = 39; +pub const EMSGSIZE: u32 = 40; +pub const EPROTOTYPE: u32 = 41; +pub const ENOPROTOOPT: u32 = 42; +pub const EPROTONOSUPPORT: u32 = 43; +pub const ESOCKTNOSUPPORT: u32 = 44; +pub const EOPNOTSUPP: u32 = 45; +pub const EPFNOSUPPORT: u32 = 46; +pub const EAFNOSUPPORT: u32 = 47; +pub const EADDRINUSE: u32 = 48; +pub const EADDRNOTAVAIL: u32 = 49; +pub const ENETDOWN: u32 = 50; +pub const ENETUNREACH: u32 = 51; +pub const ENETRESET: u32 = 52; +pub const ECONNABORTED: u32 = 53; +pub const ECONNRESET: u32 = 54; +pub const ENOBUFS: u32 = 55; +pub const EISCONN: u32 = 56; +pub const ENOTCONN: u32 = 57; +pub const ESHUTDOWN: u32 = 58; +pub const ETOOMANYREFS: u32 = 59; +pub const ETIMEDOUT: u32 = 60; +pub const ECONNREFUSED: u32 = 61; +pub const ELOOP: u32 = 62; +pub const ENAMETOOLONG: u32 = 63; +pub const EHOSTDOWN: u32 = 64; +pub const EHOSTUNREACH: u32 = 65; +pub const ENOTEMPTY: u32 = 66; +pub const EPROCLIM: u32 = 67; +pub const EUSERS: u32 = 68; +pub const EDQUOT: u32 = 69; +pub const ESTALE: u32 = 70; +pub const EREMOTE: u32 = 71; +pub const ENOSTR: u32 = 72; +pub const ETIME: u32 = 73; +pub const ENOSR: u32 = 74; +pub const ENOMSG: u32 = 75; +pub const EBADMSG: u32 = 76; +pub const EIDRM: u32 = 77; +pub const EDEADLK: u32 = 78; +pub const ENOLCK: u32 = 79; +pub const ENONET: u32 = 80; +pub const ERREMOTE: u32 = 81; +pub const ENOLINK: u32 = 82; +pub const EADV: u32 = 83; +pub const ESRMNT: u32 = 84; +pub const ECOMM: u32 = 85; +pub const EPROTO: u32 = 86; +pub const EMULTIHOP: u32 = 87; +pub const EDOTDOT: u32 = 88; +pub const EREMCHG: u32 = 89; +pub const ENOSYS: u32 = 90; +pub const ESTRPIPE: u32 = 91; +pub const EOVERFLOW: u32 = 92; +pub const EBADFD: u32 = 93; +pub const ECHRNG: u32 = 94; +pub const EL2NSYNC: u32 = 95; +pub const EL3HLT: u32 = 96; +pub const EL3RST: u32 = 97; +pub const ELNRNG: u32 = 98; +pub const EUNATCH: u32 = 99; +pub const ENOCSI: u32 = 100; +pub const EL2HLT: u32 = 101; +pub const EBADE: u32 = 102; +pub const EBADR: u32 = 103; +pub const EXFULL: u32 = 104; +pub const ENOANO: u32 = 105; +pub const EBADRQC: u32 = 106; +pub const EBADSLT: u32 = 107; +pub const EDEADLOCK: u32 = 108; +pub const EBFONT: u32 = 109; +pub const ELIBEXEC: u32 = 110; +pub const ENODATA: u32 = 111; +pub const ELIBBAD: u32 = 112; +pub const ENOPKG: u32 = 113; +pub const ELIBACC: u32 = 114; +pub const ENOTUNIQ: u32 = 115; +pub const ERESTART: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EILSEQ: u32 = 122; +pub const ELIBMAX: u32 = 123; +pub const ELIBSCN: u32 = 124; +pub const ENOMEDIUM: u32 = 125; +pub const EMEDIUMTYPE: u32 = 126; +pub const ECANCELED: u32 = 127; +pub const ENOKEY: u32 = 128; +pub const EKEYEXPIRED: u32 = 129; +pub const EKEYREVOKED: u32 = 130; +pub const EKEYREJECTED: u32 = 131; +pub const EOWNERDEAD: u32 = 132; +pub const ENOTRECOVERABLE: u32 = 133; +pub const ERFKILL: u32 = 134; +pub const EHWPOISON: u32 = 135; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/general.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/general.rs new file mode 100644 index 0000000000000000000000000000000000000000..b65fa91abb0a988dbe3902dd7838035945859144 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/general.rs @@ -0,0 +1,3362 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_sighandler_t = ::core::option::Option; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_daddr_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type cap_user_header_t = *mut __user_cap_header_struct; +pub type cap_user_data_t = *mut __user_cap_data_struct; +pub type __kernel_rwf_t = crate::ctypes::c_int; +pub type old_sigset_t = crate::ctypes::c_ulong; +pub type __signalfn_t = ::core::option::Option; +pub type __sighandler_t = __signalfn_t; +pub type __restorefn_t = ::core::option::Option; +pub type __sigrestore_t = __restorefn_t; +pub type stack_t = sigaltstack; +pub type sigval_t = sigval; +pub type siginfo_t = siginfo; +pub type sigevent_t = sigevent; +pub type cc_t = crate::ctypes::c_uchar; +pub type speed_t = crate::ctypes::c_uint; +pub type tcflag_t = crate::ctypes::c_ulong; +pub type __fsword_t = __u32; +#[repr(C)] +#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] +pub struct __BindgenBitfieldUnit { +storage: Storage, +} +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_fd_set { +pub fds_bits: [crate::ctypes::c_ulong; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_fsid_t { +pub val: [crate::ctypes::c_int; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __user_cap_header_struct { +pub version: __u32, +pub pid: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __user_cap_data_struct { +pub effective: __u32, +pub permitted: __u32, +pub inheritable: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vfs_cap_data { +pub magic_etc: __le32, +pub data: [vfs_cap_data__bindgen_ty_1; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vfs_cap_data__bindgen_ty_1 { +pub permitted: __le32, +pub inheritable: __le32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vfs_ns_cap_data { +pub magic_etc: __le32, +pub data: [vfs_ns_cap_data__bindgen_ty_1; 2usize], +pub rootid: __le32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vfs_ns_cap_data__bindgen_ty_1 { +pub permitted: __le32, +pub inheritable: __le32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct f_owner_ex { +pub type_: crate::ctypes::c_int, +pub pid: __kernel_pid_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct flock { +pub l_type: crate::ctypes::c_short, +pub l_whence: crate::ctypes::c_short, +pub l_start: __kernel_off_t, +pub l_len: __kernel_off_t, +pub l_pid: __kernel_pid_t, +pub __unused: crate::ctypes::c_short, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct flock64 { +pub l_type: crate::ctypes::c_short, +pub l_whence: crate::ctypes::c_short, +pub l_start: __kernel_loff_t, +pub l_len: __kernel_loff_t, +pub l_pid: __kernel_pid_t, +pub __unused: crate::ctypes::c_short, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct open_how { +pub flags: __u64, +pub mode: __u64, +pub resolve: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct epoll_event { +pub events: __poll_t, +pub data: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct epoll_params { +pub busy_poll_usecs: __u32, +pub busy_poll_budget: __u16, +pub prefer_busy_poll: __u8, +pub __pad: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v1 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub master_key_descriptor: [__u8; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_key { +pub mode: __u32, +pub raw: [__u8; 64usize], +pub size: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v2 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub log2_data_unit_size: __u8, +pub __reserved: [__u8; 3usize], +pub master_key_identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_policy_ex_arg { +pub policy_size: __u64, +pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_key_specifier { +pub type_: __u32, +pub __reserved: __u32, +pub u: fscrypt_key_specifier__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct fscrypt_provisioning_key_payload { +pub type_: __u32, +pub flags: __u32, +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +pub struct fscrypt_add_key_arg { +pub key_spec: fscrypt_key_specifier, +pub raw_size: __u32, +pub key_id: __u32, +pub flags: __u32, +pub __reserved: [__u32; 7usize], +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_remove_key_arg { +pub key_spec: fscrypt_key_specifier, +pub removal_status_flags: __u32, +pub __reserved: [__u32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_key_status_arg { +pub key_spec: fscrypt_key_specifier, +pub __reserved: [__u32; 6usize], +pub status: __u32, +pub status_flags: __u32, +pub user_count: __u32, +pub __out_reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mount_attr { +pub attr_set: __u64, +pub attr_clr: __u64, +pub propagation: __u64, +pub userns_fd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct statmount { +pub size: __u32, +pub mnt_opts: __u32, +pub mask: __u64, +pub sb_dev_major: __u32, +pub sb_dev_minor: __u32, +pub sb_magic: __u64, +pub sb_flags: __u32, +pub fs_type: __u32, +pub mnt_id: __u64, +pub mnt_parent_id: __u64, +pub mnt_id_old: __u32, +pub mnt_parent_id_old: __u32, +pub mnt_attr: __u64, +pub mnt_propagation: __u64, +pub mnt_peer_group: __u64, +pub mnt_master: __u64, +pub propagate_from: __u64, +pub mnt_root: __u32, +pub mnt_point: __u32, +pub mnt_ns_id: __u64, +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub supported_mask: __u64, +pub mnt_uidmap_num: __u32, +pub mnt_uidmap: __u32, +pub mnt_gidmap_num: __u32, +pub mnt_gidmap: __u32, +pub __spare2: [__u64; 43usize], +pub str_: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mnt_id_req { +pub size: __u32, +pub spare: __u32, +pub mnt_id: __u64, +pub param: __u64, +pub mnt_ns_id: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_clone_range { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fstrim_range { +pub start: __u64, +pub len: __u64, +pub minlen: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsuuid2 { +pub len: __u8, +pub uuid: [__u8; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fs_sysfs_path { +pub len: __u8, +pub name: [__u8; 128usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_dedupe_range_info { +pub dest_fd: __s64, +pub dest_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct file_dedupe_range { +pub src_offset: __u64, +pub src_length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct files_stat_struct { +pub nr_files: crate::ctypes::c_ulong, +pub nr_free_files: crate::ctypes::c_ulong, +pub max_files: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct inodes_stat_t { +pub nr_inodes: crate::ctypes::c_long, +pub nr_unused: crate::ctypes::c_long, +pub dummy: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsxattr { +pub fsx_xflags: __u32, +pub fsx_extsize: __u32, +pub fsx_nextents: __u32, +pub fsx_projid: __u32, +pub fsx_cowextsize: __u32, +pub fsx_pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct page_region { +pub start: __u64, +pub end: __u64, +pub categories: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pm_scan_arg { +pub size: __u64, +pub flags: __u64, +pub start: __u64, +pub end: __u64, +pub walk_end: __u64, +pub vec: __u64, +pub vec_len: __u64, +pub max_pages: __u64, +pub category_inverted: __u64, +pub category_mask: __u64, +pub category_anyof_mask: __u64, +pub return_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct procmap_query { +pub size: __u64, +pub query_flags: __u64, +pub query_addr: __u64, +pub vma_start: __u64, +pub vma_end: __u64, +pub vma_flags: __u64, +pub vma_page_size: __u64, +pub vma_offset: __u64, +pub inode: __u64, +pub dev_major: __u32, +pub dev_minor: __u32, +pub vma_name_size: __u32, +pub build_id_size: __u32, +pub vma_name_addr: __u64, +pub build_id_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct futex_waitv { +pub val: __u64, +pub uaddr: __u64, +pub flags: __u32, +pub __reserved: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct robust_list { +pub next: *mut robust_list, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct robust_list_head { +pub list: robust_list, +pub futex_offset: crate::ctypes::c_long, +pub list_op_pending: *mut robust_list, +} +#[repr(C)] +#[derive(Debug)] +pub struct inotify_event { +pub wd: __s32, +pub mask: __u32, +pub cookie: __u32, +pub len: __u32, +pub name: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cachestat_range { +pub off: __u64, +pub len: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cachestat { +pub nr_cache: __u64, +pub nr_dirty: __u64, +pub nr_writeback: __u64, +pub nr_evicted: __u64, +pub nr_recently_evicted: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pollfd { +pub fd: crate::ctypes::c_int, +pub events: crate::ctypes::c_short, +pub revents: crate::ctypes::c_short, +} +#[repr(C)] +#[derive(Debug)] +pub struct rand_pool_info { +pub entropy_count: crate::ctypes::c_int, +pub buf_size: crate::ctypes::c_int, +pub buf: __IncompleteArrayField<__u32>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vgetrandom_opaque_params { +pub size_of_opaque_state: __u32, +pub mmap_prot: __u32, +pub mmap_flags: __u32, +pub reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_timespec { +pub tv_sec: __kernel_time64_t, +pub tv_nsec: crate::ctypes::c_longlong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_itimerspec { +pub it_interval: __kernel_timespec, +pub it_value: __kernel_timespec, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_long_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timespec { +pub tv_sec: __kernel_old_time_t, +pub tv_nsec: crate::ctypes::c_long, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_itimerval { +pub it_interval: __kernel_old_timeval, +pub it_value: __kernel_old_timeval, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sock_timeval { +pub tv_sec: __s64, +pub tv_usec: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rusage { +pub ru_utime: __kernel_old_timeval, +pub ru_stime: __kernel_old_timeval, +pub ru_maxrss: __kernel_long_t, +pub ru_ixrss: __kernel_long_t, +pub ru_idrss: __kernel_long_t, +pub ru_isrss: __kernel_long_t, +pub ru_minflt: __kernel_long_t, +pub ru_majflt: __kernel_long_t, +pub ru_nswap: __kernel_long_t, +pub ru_inblock: __kernel_long_t, +pub ru_oublock: __kernel_long_t, +pub ru_msgsnd: __kernel_long_t, +pub ru_msgrcv: __kernel_long_t, +pub ru_nsignals: __kernel_long_t, +pub ru_nvcsw: __kernel_long_t, +pub ru_nivcsw: __kernel_long_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rlimit { +pub rlim_cur: __kernel_ulong_t, +pub rlim_max: __kernel_ulong_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rlimit64 { +pub rlim_cur: __u64, +pub rlim_max: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct clone_args { +pub flags: __u64, +pub pidfd: __u64, +pub child_tid: __u64, +pub parent_tid: __u64, +pub exit_signal: __u64, +pub stack: __u64, +pub stack_size: __u64, +pub tls: __u64, +pub set_tid: __u64, +pub set_tid_size: __u64, +pub cgroup: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigset_t { +pub sig: [crate::ctypes::c_ulong; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigstack { +pub the_stack: *mut crate::ctypes::c_char, +pub cur_status: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigaction { +pub sa_handler: __sighandler_t, +pub sa_flags: crate::ctypes::c_ulong, +pub sa_restorer: __sigrestore_t, +pub sa_mask: sigset_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct old_sigaction { +pub sa_handler: __sighandler_t, +pub sa_mask: old_sigset_t, +pub sa_flags: crate::ctypes::c_ulong, +pub sa_restorer: ::core::option::Option, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigaltstack { +pub ss_sp: *mut crate::ctypes::c_void, +pub ss_flags: crate::ctypes::c_int, +pub ss_size: __kernel_size_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_1 { +pub _pid: __kernel_pid_t, +pub _uid: __kernel_uid32_t, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __sifields__bindgen_ty_2 { +pub _tid: __kernel_timer_t, +pub _overrun: crate::ctypes::c_int, +pub _sigval: sigval_t, +pub _sys_private: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __sifields__bindgen_ty_3 { +pub _pid: __kernel_pid_t, +pub _uid: __kernel_uid32_t, +pub _sigval: sigval_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_4 { +pub _pid: __kernel_pid_t, +pub _uid: __kernel_uid32_t, +pub _status: crate::ctypes::c_int, +pub _utime: __kernel_clock_t, +pub _stime: __kernel_clock_t, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __sifields__bindgen_ty_5 { +pub _addr: *mut crate::ctypes::c_void, +pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { +pub _dummy_bnd: [crate::ctypes::c_char; 4usize], +pub _lower: *mut crate::ctypes::c_void, +pub _upper: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { +pub _dummy_pkey: [crate::ctypes::c_char; 4usize], +pub _pkey: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { +pub _data: crate::ctypes::c_ulong, +pub _type: __u32, +pub _flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_6 { +pub _band: crate::ctypes::c_long, +pub _fd: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_7 { +pub _call_addr: *mut crate::ctypes::c_void, +pub _syscall: crate::ctypes::c_int, +pub _arch: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct siginfo { +pub __bindgen_anon_1: siginfo__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { +pub si_signo: crate::ctypes::c_int, +pub si_errno: crate::ctypes::c_int, +pub si_code: crate::ctypes::c_int, +pub _sifields: __sifields, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sigevent { +pub sigev_value: sigval_t, +pub sigev_signo: crate::ctypes::c_int, +pub sigev_notify: crate::ctypes::c_int, +pub _sigev_un: sigevent__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { +pub _function: ::core::option::Option, +pub _attribute: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statx_timestamp { +pub tv_sec: __s64, +pub tv_nsec: __u32, +pub __reserved: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statx { +pub stx_mask: __u32, +pub stx_blksize: __u32, +pub stx_attributes: __u64, +pub stx_nlink: __u32, +pub stx_uid: __u32, +pub stx_gid: __u32, +pub stx_mode: __u16, +pub __spare0: [__u16; 1usize], +pub stx_ino: __u64, +pub stx_size: __u64, +pub stx_blocks: __u64, +pub stx_attributes_mask: __u64, +pub stx_atime: statx_timestamp, +pub stx_btime: statx_timestamp, +pub stx_ctime: statx_timestamp, +pub stx_mtime: statx_timestamp, +pub stx_rdev_major: __u32, +pub stx_rdev_minor: __u32, +pub stx_dev_major: __u32, +pub stx_dev_minor: __u32, +pub stx_mnt_id: __u64, +pub stx_dio_mem_align: __u32, +pub stx_dio_offset_align: __u32, +pub stx_subvol: __u64, +pub stx_atomic_write_unit_min: __u32, +pub stx_atomic_write_unit_max: __u32, +pub stx_atomic_write_segments_max: __u32, +pub stx_dio_read_offset_align: __u32, +pub stx_atomic_write_unit_max_opt: __u32, +pub __spare2: [__u32; 1usize], +pub __spare3: [__u64; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct termios { +pub c_iflag: tcflag_t, +pub c_oflag: tcflag_t, +pub c_cflag: tcflag_t, +pub c_lflag: tcflag_t, +pub c_line: cc_t, +pub c_cc: [cc_t; 17usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct termios2 { +pub c_iflag: tcflag_t, +pub c_oflag: tcflag_t, +pub c_cflag: tcflag_t, +pub c_lflag: tcflag_t, +pub c_line: cc_t, +pub c_cc: [cc_t; 19usize], +pub c_ispeed: speed_t, +pub c_ospeed: speed_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ktermios { +pub c_iflag: tcflag_t, +pub c_oflag: tcflag_t, +pub c_cflag: tcflag_t, +pub c_lflag: tcflag_t, +pub c_line: cc_t, +pub c_cc: [cc_t; 19usize], +pub c_ispeed: speed_t, +pub c_ospeed: speed_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct winsize { +pub ws_row: crate::ctypes::c_ushort, +pub ws_col: crate::ctypes::c_ushort, +pub ws_xpixel: crate::ctypes::c_ushort, +pub ws_ypixel: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct termio { +pub c_iflag: crate::ctypes::c_ushort, +pub c_oflag: crate::ctypes::c_ushort, +pub c_cflag: crate::ctypes::c_ushort, +pub c_lflag: crate::ctypes::c_ushort, +pub c_line: crate::ctypes::c_uchar, +pub c_cc: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timespec { +pub tv_sec: __kernel_old_time_t, +pub tv_nsec: crate::ctypes::c_long, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timeval { +pub tv_sec: __kernel_old_time_t, +pub tv_usec: __kernel_suseconds_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct itimerspec { +pub it_interval: timespec, +pub it_value: timespec, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct itimerval { +pub it_interval: timeval, +pub it_value: timeval, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timezone { +pub tz_minuteswest: crate::ctypes::c_int, +pub tz_dsttime: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iovec { +pub iov_base: *mut crate::ctypes::c_void, +pub iov_len: __kernel_size_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dmabuf_cmsg { +pub frag_offset: __u64, +pub frag_size: __u32, +pub frag_token: __u32, +pub dmabuf_id: __u32, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dmabuf_token { +pub token_start: __u32, +pub token_count: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xattr_args { +pub value: __u64, +pub size: __u32, +pub flags: __u32, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct uffd_msg { +pub event: __u8, +pub reserved1: __u8, +pub reserved2: __u16, +pub reserved3: __u32, +pub arg: uffd_msg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { +pub flags: __u64, +pub address: __u64, +pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { +pub ufd: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { +pub from: __u64, +pub to: __u64, +pub len: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { +pub start: __u64, +pub end: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { +pub reserved1: __u64, +pub reserved2: __u64, +pub reserved3: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_api { +pub api: __u64, +pub features: __u64, +pub ioctls: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_range { +pub start: __u64, +pub len: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_register { +pub range: uffdio_range, +pub mode: __u64, +pub ioctls: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_copy { +pub dst: __u64, +pub src: __u64, +pub len: __u64, +pub mode: __u64, +pub copy: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_zeropage { +pub range: uffdio_range, +pub mode: __u64, +pub zeropage: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_writeprotect { +pub range: uffdio_range, +pub mode: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_continue { +pub range: uffdio_range, +pub mode: __u64, +pub mapped: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_poison { +pub range: uffdio_range, +pub mode: __u64, +pub updated: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_move { +pub dst: __u64, +pub src: __u64, +pub len: __u64, +pub mode: __u64, +pub move_: __s64, +} +#[repr(C)] +#[derive(Debug)] +pub struct linux_dirent64 { +pub d_ino: crate::ctypes::c_ulonglong, +pub d_off: crate::ctypes::c_longlong, +pub d_reclen: __u16, +pub d_type: __u8, +pub d_name: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stat { +pub st_dev: crate::ctypes::c_ushort, +pub st_ino: __kernel_ino_t, +pub st_mode: __kernel_mode_t, +pub st_nlink: crate::ctypes::c_short, +pub st_uid: crate::ctypes::c_ushort, +pub st_gid: crate::ctypes::c_ushort, +pub st_rdev: crate::ctypes::c_ushort, +pub st_size: crate::ctypes::c_long, +pub st_atime: crate::ctypes::c_long, +pub st_atime_nsec: crate::ctypes::c_ulong, +pub st_mtime: crate::ctypes::c_long, +pub st_mtime_nsec: crate::ctypes::c_ulong, +pub st_ctime: crate::ctypes::c_long, +pub st_ctime_nsec: crate::ctypes::c_ulong, +pub st_blksize: crate::ctypes::c_long, +pub st_blocks: crate::ctypes::c_long, +pub __unused4: [crate::ctypes::c_ulong; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stat64 { +pub st_dev: crate::ctypes::c_ulonglong, +pub st_ino: crate::ctypes::c_ulonglong, +pub st_mode: crate::ctypes::c_uint, +pub st_nlink: crate::ctypes::c_uint, +pub st_uid: crate::ctypes::c_uint, +pub st_gid: crate::ctypes::c_uint, +pub st_rdev: crate::ctypes::c_ulonglong, +pub __pad3: [crate::ctypes::c_uchar; 8usize], +pub st_size: crate::ctypes::c_longlong, +pub st_blksize: crate::ctypes::c_uint, +pub __pad4: [crate::ctypes::c_uchar; 8usize], +pub st_blocks: crate::ctypes::c_uint, +pub st_atime: crate::ctypes::c_uint, +pub st_atime_nsec: crate::ctypes::c_uint, +pub st_mtime: crate::ctypes::c_uint, +pub st_mtime_nsec: crate::ctypes::c_uint, +pub st_ctime: crate::ctypes::c_uint, +pub st_ctime_nsec: crate::ctypes::c_uint, +pub __unused4: crate::ctypes::c_uint, +pub __unused5: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statfs { +pub f_type: __u32, +pub f_bsize: __u32, +pub f_blocks: __u32, +pub f_bfree: __u32, +pub f_bavail: __u32, +pub f_files: __u32, +pub f_ffree: __u32, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: __u32, +pub f_frsize: __u32, +pub f_flags: __u32, +pub f_spare: [__u32; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statfs64 { +pub f_type: __u32, +pub f_bsize: __u32, +pub f_blocks: __u64, +pub f_bfree: __u64, +pub f_bavail: __u64, +pub f_files: __u64, +pub f_ffree: __u64, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: __u32, +pub f_frsize: __u32, +pub f_flags: __u32, +pub f_spare: [__u32; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct compat_statfs64 { +pub f_type: __u32, +pub f_bsize: __u32, +pub f_blocks: __u64, +pub f_bfree: __u64, +pub f_bavail: __u64, +pub f_files: __u64, +pub f_ffree: __u64, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: __u32, +pub f_frsize: __u32, +pub f_flags: __u32, +pub f_spare: [__u32; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_desc { +pub entry_number: crate::ctypes::c_uint, +pub base_addr: crate::ctypes::c_uint, +pub limit: crate::ctypes::c_uint, +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, +pub __bindgen_padding_0: [u8; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct kernel_sigset_t { +pub sig: [crate::ctypes::c_ulong; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct kernel_sigaction { +pub sa_handler_kernel: __kernel_sighandler_t, +pub sa_flags: crate::ctypes::c_ulong, +pub sa_mask: kernel_sigset_t, +} +pub const LINUX_VERSION_CODE: u32 = 397312; +pub const LINUX_VERSION_MAJOR: u32 = 6; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 16; +pub const LINUX_VERSION_SUBLEVEL: u32 = 0; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const __FD_SETSIZE: u32 = 1024; +pub const _LINUX_CAPABILITY_VERSION_1: u32 = 429392688; +pub const _LINUX_CAPABILITY_U32S_1: u32 = 1; +pub const _LINUX_CAPABILITY_VERSION_2: u32 = 537333798; +pub const _LINUX_CAPABILITY_U32S_2: u32 = 2; +pub const _LINUX_CAPABILITY_VERSION_3: u32 = 537396514; +pub const _LINUX_CAPABILITY_U32S_3: u32 = 2; +pub const VFS_CAP_REVISION_MASK: u32 = 4278190080; +pub const VFS_CAP_REVISION_SHIFT: u32 = 24; +pub const VFS_CAP_FLAGS_MASK: i64 = -4278190081; +pub const VFS_CAP_FLAGS_EFFECTIVE: u32 = 1; +pub const VFS_CAP_REVISION_1: u32 = 16777216; +pub const VFS_CAP_U32_1: u32 = 1; +pub const VFS_CAP_REVISION_2: u32 = 33554432; +pub const VFS_CAP_U32_2: u32 = 2; +pub const VFS_CAP_REVISION_3: u32 = 50331648; +pub const VFS_CAP_U32_3: u32 = 2; +pub const VFS_CAP_U32: u32 = 2; +pub const VFS_CAP_REVISION: u32 = 50331648; +pub const _LINUX_CAPABILITY_VERSION: u32 = 429392688; +pub const _LINUX_CAPABILITY_U32S: u32 = 1; +pub const CAP_CHOWN: u32 = 0; +pub const CAP_DAC_OVERRIDE: u32 = 1; +pub const CAP_DAC_READ_SEARCH: u32 = 2; +pub const CAP_FOWNER: u32 = 3; +pub const CAP_FSETID: u32 = 4; +pub const CAP_KILL: u32 = 5; +pub const CAP_SETGID: u32 = 6; +pub const CAP_SETUID: u32 = 7; +pub const CAP_SETPCAP: u32 = 8; +pub const CAP_LINUX_IMMUTABLE: u32 = 9; +pub const CAP_NET_BIND_SERVICE: u32 = 10; +pub const CAP_NET_BROADCAST: u32 = 11; +pub const CAP_NET_ADMIN: u32 = 12; +pub const CAP_NET_RAW: u32 = 13; +pub const CAP_IPC_LOCK: u32 = 14; +pub const CAP_IPC_OWNER: u32 = 15; +pub const CAP_SYS_MODULE: u32 = 16; +pub const CAP_SYS_RAWIO: u32 = 17; +pub const CAP_SYS_CHROOT: u32 = 18; +pub const CAP_SYS_PTRACE: u32 = 19; +pub const CAP_SYS_PACCT: u32 = 20; +pub const CAP_SYS_ADMIN: u32 = 21; +pub const CAP_SYS_BOOT: u32 = 22; +pub const CAP_SYS_NICE: u32 = 23; +pub const CAP_SYS_RESOURCE: u32 = 24; +pub const CAP_SYS_TIME: u32 = 25; +pub const CAP_SYS_TTY_CONFIG: u32 = 26; +pub const CAP_MKNOD: u32 = 27; +pub const CAP_LEASE: u32 = 28; +pub const CAP_AUDIT_WRITE: u32 = 29; +pub const CAP_AUDIT_CONTROL: u32 = 30; +pub const CAP_SETFCAP: u32 = 31; +pub const CAP_MAC_OVERRIDE: u32 = 32; +pub const CAP_MAC_ADMIN: u32 = 33; +pub const CAP_SYSLOG: u32 = 34; +pub const CAP_WAKE_ALARM: u32 = 35; +pub const CAP_BLOCK_SUSPEND: u32 = 36; +pub const CAP_AUDIT_READ: u32 = 37; +pub const CAP_PERFMON: u32 = 38; +pub const CAP_BPF: u32 = 39; +pub const CAP_CHECKPOINT_RESTORE: u32 = 40; +pub const CAP_LAST_CAP: u32 = 40; +pub const O_APPEND: u32 = 8; +pub const FASYNC: u32 = 64; +pub const O_CREAT: u32 = 512; +pub const O_TRUNC: u32 = 1024; +pub const O_EXCL: u32 = 2048; +pub const O_DSYNC: u32 = 8192; +pub const O_NONBLOCK: u32 = 16384; +pub const O_NDELAY: u32 = 16388; +pub const O_NOCTTY: u32 = 32768; +pub const O_LARGEFILE: u32 = 262144; +pub const O_DIRECT: u32 = 1048576; +pub const O_NOATIME: u32 = 2097152; +pub const O_CLOEXEC: u32 = 4194304; +pub const __O_SYNC: u32 = 8388608; +pub const O_SYNC: u32 = 8396800; +pub const O_PATH: u32 = 16777216; +pub const __O_TMPFILE: u32 = 33554432; +pub const F_GETOWN: u32 = 5; +pub const F_SETOWN: u32 = 6; +pub const F_GETLK: u32 = 7; +pub const F_SETLK: u32 = 8; +pub const F_SETLKW: u32 = 9; +pub const F_RDLCK: u32 = 1; +pub const F_WRLCK: u32 = 2; +pub const F_UNLCK: u32 = 3; +pub const O_ACCMODE: u32 = 3; +pub const O_RDONLY: u32 = 0; +pub const O_WRONLY: u32 = 1; +pub const O_RDWR: u32 = 2; +pub const O_DIRECTORY: u32 = 65536; +pub const O_NOFOLLOW: u32 = 131072; +pub const O_TMPFILE: u32 = 33619968; +pub const F_DUPFD: u32 = 0; +pub const F_GETFD: u32 = 1; +pub const F_SETFD: u32 = 2; +pub const F_GETFL: u32 = 3; +pub const F_SETFL: u32 = 4; +pub const F_SETSIG: u32 = 10; +pub const F_GETSIG: u32 = 11; +pub const F_GETLK64: u32 = 12; +pub const F_SETLK64: u32 = 13; +pub const F_SETLKW64: u32 = 14; +pub const F_SETOWN_EX: u32 = 15; +pub const F_GETOWN_EX: u32 = 16; +pub const F_GETOWNER_UIDS: u32 = 17; +pub const F_OFD_GETLK: u32 = 36; +pub const F_OFD_SETLK: u32 = 37; +pub const F_OFD_SETLKW: u32 = 38; +pub const F_OWNER_TID: u32 = 0; +pub const F_OWNER_PID: u32 = 1; +pub const F_OWNER_PGRP: u32 = 2; +pub const FD_CLOEXEC: u32 = 1; +pub const F_EXLCK: u32 = 4; +pub const F_SHLCK: u32 = 8; +pub const LOCK_SH: u32 = 1; +pub const LOCK_EX: u32 = 2; +pub const LOCK_NB: u32 = 4; +pub const LOCK_UN: u32 = 8; +pub const LOCK_MAND: u32 = 32; +pub const LOCK_READ: u32 = 64; +pub const LOCK_WRITE: u32 = 128; +pub const LOCK_RW: u32 = 192; +pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; +pub const RESOLVE_NO_XDEV: u32 = 1; +pub const RESOLVE_NO_MAGICLINKS: u32 = 2; +pub const RESOLVE_NO_SYMLINKS: u32 = 4; +pub const RESOLVE_BENEATH: u32 = 8; +pub const RESOLVE_IN_ROOT: u32 = 16; +pub const RESOLVE_CACHED: u32 = 32; +pub const F_SETLEASE: u32 = 1024; +pub const F_GETLEASE: u32 = 1025; +pub const F_NOTIFY: u32 = 1026; +pub const F_DUPFD_QUERY: u32 = 1027; +pub const F_CREATED_QUERY: u32 = 1028; +pub const F_CANCELLK: u32 = 1029; +pub const F_DUPFD_CLOEXEC: u32 = 1030; +pub const F_SETPIPE_SZ: u32 = 1031; +pub const F_GETPIPE_SZ: u32 = 1032; +pub const F_ADD_SEALS: u32 = 1033; +pub const F_GET_SEALS: u32 = 1034; +pub const F_SEAL_SEAL: u32 = 1; +pub const F_SEAL_SHRINK: u32 = 2; +pub const F_SEAL_GROW: u32 = 4; +pub const F_SEAL_WRITE: u32 = 8; +pub const F_SEAL_FUTURE_WRITE: u32 = 16; +pub const F_SEAL_EXEC: u32 = 32; +pub const F_GET_RW_HINT: u32 = 1035; +pub const F_SET_RW_HINT: u32 = 1036; +pub const F_GET_FILE_RW_HINT: u32 = 1037; +pub const F_SET_FILE_RW_HINT: u32 = 1038; +pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; +pub const RWH_WRITE_LIFE_NONE: u32 = 1; +pub const RWH_WRITE_LIFE_SHORT: u32 = 2; +pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; +pub const RWH_WRITE_LIFE_LONG: u32 = 4; +pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; +pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const DN_ACCESS: u32 = 1; +pub const DN_MODIFY: u32 = 2; +pub const DN_CREATE: u32 = 4; +pub const DN_DELETE: u32 = 8; +pub const DN_RENAME: u32 = 16; +pub const DN_ATTRIB: u32 = 32; +pub const DN_MULTISHOT: u32 = 2147483648; +pub const AT_FDCWD: i32 = -100; +pub const AT_SYMLINK_NOFOLLOW: u32 = 256; +pub const AT_SYMLINK_FOLLOW: u32 = 1024; +pub const AT_NO_AUTOMOUNT: u32 = 2048; +pub const AT_EMPTY_PATH: u32 = 4096; +pub const AT_STATX_SYNC_TYPE: u32 = 24576; +pub const AT_STATX_SYNC_AS_STAT: u32 = 0; +pub const AT_STATX_FORCE_SYNC: u32 = 8192; +pub const AT_STATX_DONT_SYNC: u32 = 16384; +pub const AT_RECURSIVE: u32 = 32768; +pub const AT_RENAME_NOREPLACE: u32 = 1; +pub const AT_RENAME_EXCHANGE: u32 = 2; +pub const AT_RENAME_WHITEOUT: u32 = 4; +pub const AT_EACCESS: u32 = 512; +pub const AT_REMOVEDIR: u32 = 512; +pub const AT_HANDLE_FID: u32 = 512; +pub const AT_HANDLE_MNT_ID_UNIQUE: u32 = 1; +pub const AT_HANDLE_CONNECTABLE: u32 = 2; +pub const AT_EXECVE_CHECK: u32 = 65536; +pub const EPOLL_CLOEXEC: u32 = 4194304; +pub const EPOLL_CTL_ADD: u32 = 1; +pub const EPOLL_CTL_DEL: u32 = 2; +pub const EPOLL_CTL_MOD: u32 = 3; +pub const EPOLL_IOC_TYPE: u32 = 138; +pub const POSIX_FADV_NORMAL: u32 = 0; +pub const POSIX_FADV_RANDOM: u32 = 1; +pub const POSIX_FADV_SEQUENTIAL: u32 = 2; +pub const POSIX_FADV_WILLNEED: u32 = 3; +pub const POSIX_FADV_DONTNEED: u32 = 4; +pub const POSIX_FADV_NOREUSE: u32 = 5; +pub const FALLOC_FL_ALLOCATE_RANGE: u32 = 0; +pub const FALLOC_FL_KEEP_SIZE: u32 = 1; +pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; +pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; +pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; +pub const FALLOC_FL_ZERO_RANGE: u32 = 16; +pub const FALLOC_FL_INSERT_RANGE: u32 = 32; +pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; +pub const NR_OPEN: u32 = 1024; +pub const NGROUPS_MAX: u32 = 65536; +pub const ARG_MAX: u32 = 131072; +pub const LINK_MAX: u32 = 127; +pub const MAX_CANON: u32 = 255; +pub const MAX_INPUT: u32 = 255; +pub const NAME_MAX: u32 = 255; +pub const PATH_MAX: u32 = 4096; +pub const PIPE_BUF: u32 = 4096; +pub const XATTR_NAME_MAX: u32 = 255; +pub const XATTR_SIZE_MAX: u32 = 65536; +pub const XATTR_LIST_MAX: u32 = 65536; +pub const RTSIG_MAX: u32 = 32; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +pub const _IOC_XSIZEMASK: u32 = 16383; +pub const _IOC_DIRMASK: u32 = 7; +pub const _IOC_NRSHIFT: u32 = 0; +pub const _IOC_TYPESHIFT: u32 = 8; +pub const _IOC_SIZESHIFT: u32 = 16; +pub const _IOC_DIRSHIFT: u32 = 29; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const IOC_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 1073676288; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; +pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; +pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; +pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; +pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; +pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; +pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; +pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; +pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; +pub const FSCRYPT_POLICY_V1: u32 = 0; +pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; +pub const FSCRYPT_POLICY_V2: u32 = 2; +pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; +pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; +pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; +pub const FSCRYPT_ADD_KEY_FLAG_HW_WRAPPED: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; +pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; +pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; +pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; +pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; +pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FS_POLICY_FLAGS_VALID: u32 = 7; +pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; +pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; +pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; +pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; +pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; +pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; +pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; +pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; +pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FS_MAX_KEY_SIZE: u32 = 64; +pub const MS_RDONLY: u32 = 1; +pub const MS_NOSUID: u32 = 2; +pub const MS_NODEV: u32 = 4; +pub const MS_NOEXEC: u32 = 8; +pub const MS_SYNCHRONOUS: u32 = 16; +pub const MS_REMOUNT: u32 = 32; +pub const MS_MANDLOCK: u32 = 64; +pub const MS_DIRSYNC: u32 = 128; +pub const MS_NOSYMFOLLOW: u32 = 256; +pub const MS_NOATIME: u32 = 1024; +pub const MS_NODIRATIME: u32 = 2048; +pub const MS_BIND: u32 = 4096; +pub const MS_MOVE: u32 = 8192; +pub const MS_REC: u32 = 16384; +pub const MS_VERBOSE: u32 = 32768; +pub const MS_SILENT: u32 = 32768; +pub const MS_POSIXACL: u32 = 65536; +pub const MS_UNBINDABLE: u32 = 131072; +pub const MS_PRIVATE: u32 = 262144; +pub const MS_SLAVE: u32 = 524288; +pub const MS_SHARED: u32 = 1048576; +pub const MS_RELATIME: u32 = 2097152; +pub const MS_KERNMOUNT: u32 = 4194304; +pub const MS_I_VERSION: u32 = 8388608; +pub const MS_STRICTATIME: u32 = 16777216; +pub const MS_LAZYTIME: u32 = 33554432; +pub const MS_SUBMOUNT: u32 = 67108864; +pub const MS_NOREMOTELOCK: u32 = 134217728; +pub const MS_NOSEC: u32 = 268435456; +pub const MS_BORN: u32 = 536870912; +pub const MS_ACTIVE: u32 = 1073741824; +pub const MS_NOUSER: u32 = 2147483648; +pub const MS_RMT_MASK: u32 = 41943121; +pub const MS_MGC_VAL: u32 = 3236757504; +pub const MS_MGC_MSK: u32 = 4294901760; +pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_CLOEXEC: u32 = 4194304; +pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; +pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; +pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; +pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; +pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; +pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; +pub const MOVE_MOUNT_SET_GROUP: u32 = 256; +pub const MOVE_MOUNT_BENEATH: u32 = 512; +pub const MOVE_MOUNT__MASK: u32 = 887; +pub const FSOPEN_CLOEXEC: u32 = 1; +pub const FSPICK_CLOEXEC: u32 = 1; +pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; +pub const FSPICK_NO_AUTOMOUNT: u32 = 4; +pub const FSPICK_EMPTY_PATH: u32 = 8; +pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const MOUNT_ATTR_RDONLY: u32 = 1; +pub const MOUNT_ATTR_NOSUID: u32 = 2; +pub const MOUNT_ATTR_NODEV: u32 = 4; +pub const MOUNT_ATTR_NOEXEC: u32 = 8; +pub const MOUNT_ATTR__ATIME: u32 = 112; +pub const MOUNT_ATTR_RELATIME: u32 = 0; +pub const MOUNT_ATTR_NOATIME: u32 = 16; +pub const MOUNT_ATTR_STRICTATIME: u32 = 32; +pub const MOUNT_ATTR_NODIRATIME: u32 = 128; +pub const MOUNT_ATTR_IDMAP: u32 = 1048576; +pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; +pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; +pub const MNT_ID_REQ_SIZE_VER0: u32 = 24; +pub const MNT_ID_REQ_SIZE_VER1: u32 = 32; +pub const STATMOUNT_SB_BASIC: u32 = 1; +pub const STATMOUNT_MNT_BASIC: u32 = 2; +pub const STATMOUNT_PROPAGATE_FROM: u32 = 4; +pub const STATMOUNT_MNT_ROOT: u32 = 8; +pub const STATMOUNT_MNT_POINT: u32 = 16; +pub const STATMOUNT_FS_TYPE: u32 = 32; +pub const STATMOUNT_MNT_NS_ID: u32 = 64; +pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; +pub const STATMOUNT_SUPPORTED_MASK: u32 = 4096; +pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; +pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; +pub const LSMT_ROOT: i32 = -1; +pub const LISTMOUNT_REVERSE: u32 = 1; +pub const INR_OPEN_CUR: u32 = 1024; +pub const INR_OPEN_MAX: u32 = 4096; +pub const BLOCK_SIZE_BITS: u32 = 10; +pub const BLOCK_SIZE: u32 = 1024; +pub const IO_INTEGRITY_CHK_GUARD: u32 = 1; +pub const IO_INTEGRITY_CHK_REFTAG: u32 = 2; +pub const IO_INTEGRITY_CHK_APPTAG: u32 = 4; +pub const IO_INTEGRITY_VALID_FLAGS: u32 = 7; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const SEEK_DATA: u32 = 3; +pub const SEEK_HOLE: u32 = 4; +pub const SEEK_MAX: u32 = 4; +pub const RENAME_NOREPLACE: u32 = 1; +pub const RENAME_EXCHANGE: u32 = 2; +pub const RENAME_WHITEOUT: u32 = 4; +pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; +pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; +pub const NR_FILE: u32 = 8192; +pub const FS_XFLAG_REALTIME: u32 = 1; +pub const FS_XFLAG_PREALLOC: u32 = 2; +pub const FS_XFLAG_IMMUTABLE: u32 = 8; +pub const FS_XFLAG_APPEND: u32 = 16; +pub const FS_XFLAG_SYNC: u32 = 32; +pub const FS_XFLAG_NOATIME: u32 = 64; +pub const FS_XFLAG_NODUMP: u32 = 128; +pub const FS_XFLAG_RTINHERIT: u32 = 256; +pub const FS_XFLAG_PROJINHERIT: u32 = 512; +pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; +pub const FS_XFLAG_EXTSIZE: u32 = 2048; +pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; +pub const FS_XFLAG_NODEFRAG: u32 = 8192; +pub const FS_XFLAG_FILESTREAM: u32 = 16384; +pub const FS_XFLAG_DAX: u32 = 32768; +pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_HASATTR: u32 = 2147483648; +pub const BMAP_IOCTL: u32 = 1; +pub const FSLABEL_MAX: u32 = 256; +pub const FS_SECRM_FL: u32 = 1; +pub const FS_UNRM_FL: u32 = 2; +pub const FS_COMPR_FL: u32 = 4; +pub const FS_SYNC_FL: u32 = 8; +pub const FS_IMMUTABLE_FL: u32 = 16; +pub const FS_APPEND_FL: u32 = 32; +pub const FS_NODUMP_FL: u32 = 64; +pub const FS_NOATIME_FL: u32 = 128; +pub const FS_DIRTY_FL: u32 = 256; +pub const FS_COMPRBLK_FL: u32 = 512; +pub const FS_NOCOMP_FL: u32 = 1024; +pub const FS_ENCRYPT_FL: u32 = 2048; +pub const FS_BTREE_FL: u32 = 4096; +pub const FS_INDEX_FL: u32 = 4096; +pub const FS_IMAGIC_FL: u32 = 8192; +pub const FS_JOURNAL_DATA_FL: u32 = 16384; +pub const FS_NOTAIL_FL: u32 = 32768; +pub const FS_DIRSYNC_FL: u32 = 65536; +pub const FS_TOPDIR_FL: u32 = 131072; +pub const FS_HUGE_FILE_FL: u32 = 262144; +pub const FS_EXTENT_FL: u32 = 524288; +pub const FS_VERITY_FL: u32 = 1048576; +pub const FS_EA_INODE_FL: u32 = 2097152; +pub const FS_EOFBLOCKS_FL: u32 = 4194304; +pub const FS_NOCOW_FL: u32 = 8388608; +pub const FS_DAX_FL: u32 = 33554432; +pub const FS_INLINE_DATA_FL: u32 = 268435456; +pub const FS_PROJINHERIT_FL: u32 = 536870912; +pub const FS_CASEFOLD_FL: u32 = 1073741824; +pub const FS_RESERVED_FL: u32 = 2147483648; +pub const FS_FL_USER_VISIBLE: u32 = 253951; +pub const FS_FL_USER_MODIFIABLE: u32 = 229631; +pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; +pub const SYNC_FILE_RANGE_WRITE: u32 = 2; +pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; +pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; +pub const PROCFS_IOCTL_MAGIC: u8 = 102u8; +pub const PAGE_IS_WPALLOWED: u32 = 1; +pub const PAGE_IS_WRITTEN: u32 = 2; +pub const PAGE_IS_FILE: u32 = 4; +pub const PAGE_IS_PRESENT: u32 = 8; +pub const PAGE_IS_SWAPPED: u32 = 16; +pub const PAGE_IS_PFNZERO: u32 = 32; +pub const PAGE_IS_HUGE: u32 = 64; +pub const PAGE_IS_SOFT_DIRTY: u32 = 128; +pub const PAGE_IS_GUARD: u32 = 256; +pub const PM_SCAN_WP_MATCHING: u32 = 1; +pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FUTEX_WAIT: u32 = 0; +pub const FUTEX_WAKE: u32 = 1; +pub const FUTEX_FD: u32 = 2; +pub const FUTEX_REQUEUE: u32 = 3; +pub const FUTEX_CMP_REQUEUE: u32 = 4; +pub const FUTEX_WAKE_OP: u32 = 5; +pub const FUTEX_LOCK_PI: u32 = 6; +pub const FUTEX_UNLOCK_PI: u32 = 7; +pub const FUTEX_TRYLOCK_PI: u32 = 8; +pub const FUTEX_WAIT_BITSET: u32 = 9; +pub const FUTEX_WAKE_BITSET: u32 = 10; +pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; +pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; +pub const FUTEX_LOCK_PI2: u32 = 13; +pub const FUTEX_PRIVATE_FLAG: u32 = 128; +pub const FUTEX_CLOCK_REALTIME: u32 = 256; +pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_WAIT_PRIVATE: u32 = 128; +pub const FUTEX_WAKE_PRIVATE: u32 = 129; +pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; +pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; +pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; +pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; +pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; +pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; +pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; +pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; +pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; +pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; +pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX2_SIZE_U8: u32 = 0; +pub const FUTEX2_SIZE_U16: u32 = 1; +pub const FUTEX2_SIZE_U32: u32 = 2; +pub const FUTEX2_SIZE_U64: u32 = 3; +pub const FUTEX2_NUMA: u32 = 4; +pub const FUTEX2_MPOL: u32 = 8; +pub const FUTEX2_PRIVATE: u32 = 128; +pub const FUTEX2_SIZE_MASK: u32 = 3; +pub const FUTEX_32: u32 = 2; +pub const FUTEX_NO_NODE: i32 = -1; +pub const FUTEX_WAITV_MAX: u32 = 128; +pub const FUTEX_WAITERS: u32 = 2147483648; +pub const FUTEX_OWNER_DIED: u32 = 1073741824; +pub const FUTEX_TID_MASK: u32 = 1073741823; +pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; +pub const FUTEX_OP_SET: u32 = 0; +pub const FUTEX_OP_ADD: u32 = 1; +pub const FUTEX_OP_OR: u32 = 2; +pub const FUTEX_OP_ANDN: u32 = 3; +pub const FUTEX_OP_XOR: u32 = 4; +pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; +pub const FUTEX_OP_CMP_EQ: u32 = 0; +pub const FUTEX_OP_CMP_NE: u32 = 1; +pub const FUTEX_OP_CMP_LT: u32 = 2; +pub const FUTEX_OP_CMP_LE: u32 = 3; +pub const FUTEX_OP_CMP_GT: u32 = 4; +pub const FUTEX_OP_CMP_GE: u32 = 5; +pub const IN_ACCESS: u32 = 1; +pub const IN_MODIFY: u32 = 2; +pub const IN_ATTRIB: u32 = 4; +pub const IN_CLOSE_WRITE: u32 = 8; +pub const IN_CLOSE_NOWRITE: u32 = 16; +pub const IN_OPEN: u32 = 32; +pub const IN_MOVED_FROM: u32 = 64; +pub const IN_MOVED_TO: u32 = 128; +pub const IN_CREATE: u32 = 256; +pub const IN_DELETE: u32 = 512; +pub const IN_DELETE_SELF: u32 = 1024; +pub const IN_MOVE_SELF: u32 = 2048; +pub const IN_UNMOUNT: u32 = 8192; +pub const IN_Q_OVERFLOW: u32 = 16384; +pub const IN_IGNORED: u32 = 32768; +pub const IN_CLOSE: u32 = 24; +pub const IN_MOVE: u32 = 192; +pub const IN_ONLYDIR: u32 = 16777216; +pub const IN_DONT_FOLLOW: u32 = 33554432; +pub const IN_EXCL_UNLINK: u32 = 67108864; +pub const IN_MASK_CREATE: u32 = 268435456; +pub const IN_MASK_ADD: u32 = 536870912; +pub const IN_ISDIR: u32 = 1073741824; +pub const IN_ONESHOT: u32 = 2147483648; +pub const IN_ALL_EVENTS: u32 = 4095; +pub const IN_CLOEXEC: u32 = 4194304; +pub const IN_NONBLOCK: u32 = 16384; +pub const ADFS_SUPER_MAGIC: u32 = 44533; +pub const AFFS_SUPER_MAGIC: u32 = 44543; +pub const AFS_SUPER_MAGIC: u32 = 1397113167; +pub const AUTOFS_SUPER_MAGIC: u32 = 391; +pub const CEPH_SUPER_MAGIC: u32 = 12805120; +pub const CODA_SUPER_MAGIC: u32 = 1937076805; +pub const CRAMFS_MAGIC: u32 = 684539205; +pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; +pub const DEBUGFS_MAGIC: u32 = 1684170528; +pub const SECURITYFS_MAGIC: u32 = 1935894131; +pub const SELINUX_MAGIC: u32 = 4185718668; +pub const SMACK_MAGIC: u32 = 1128357203; +pub const RAMFS_MAGIC: u32 = 2240043254; +pub const TMPFS_MAGIC: u32 = 16914836; +pub const HUGETLBFS_MAGIC: u32 = 2508478710; +pub const SQUASHFS_MAGIC: u32 = 1936814952; +pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; +pub const EFS_SUPER_MAGIC: u32 = 4278867; +pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; +pub const EXT2_SUPER_MAGIC: u32 = 61267; +pub const EXT3_SUPER_MAGIC: u32 = 61267; +pub const XENFS_SUPER_MAGIC: u32 = 2881100148; +pub const EXT4_SUPER_MAGIC: u32 = 61267; +pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; +pub const NILFS_SUPER_MAGIC: u32 = 13364; +pub const F2FS_SUPER_MAGIC: u32 = 4076150800; +pub const HPFS_SUPER_MAGIC: u32 = 4187351113; +pub const ISOFS_SUPER_MAGIC: u32 = 38496; +pub const JFFS2_SUPER_MAGIC: u32 = 29366; +pub const XFS_SUPER_MAGIC: u32 = 1481003842; +pub const PSTOREFS_MAGIC: u32 = 1634035564; +pub const EFIVARFS_MAGIC: u32 = 3730735588; +pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; +pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; +pub const FUSE_SUPER_MAGIC: u32 = 1702057286; +pub const BCACHEFS_SUPER_MAGIC: u32 = 3393526350; +pub const MINIX_SUPER_MAGIC: u32 = 4991; +pub const MINIX_SUPER_MAGIC2: u32 = 5007; +pub const MINIX2_SUPER_MAGIC: u32 = 9320; +pub const MINIX2_SUPER_MAGIC2: u32 = 9336; +pub const MINIX3_SUPER_MAGIC: u32 = 19802; +pub const MSDOS_SUPER_MAGIC: u32 = 19780; +pub const EXFAT_SUPER_MAGIC: u32 = 538032816; +pub const NCP_SUPER_MAGIC: u32 = 22092; +pub const NFS_SUPER_MAGIC: u32 = 26985; +pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; +pub const OPENPROM_SUPER_MAGIC: u32 = 40865; +pub const QNX4_SUPER_MAGIC: u32 = 47; +pub const QNX6_SUPER_MAGIC: u32 = 1746473250; +pub const AFS_FS_MAGIC: u32 = 1799439955; +pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; +pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9] = b"ReIsErFs\0"; +pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr2Fs\0"; +pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr3Fs\0"; +pub const SMB_SUPER_MAGIC: u32 = 20859; +pub const CIFS_SUPER_MAGIC: u32 = 4283649346; +pub const SMB2_SUPER_MAGIC: u32 = 4266872130; +pub const CGROUP_SUPER_MAGIC: u32 = 2613483; +pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; +pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; +pub const STACK_END_MAGIC: u32 = 1470918301; +pub const TRACEFS_MAGIC: u32 = 1953653091; +pub const V9FS_MAGIC: u32 = 16914839; +pub const BDEVFS_MAGIC: u32 = 1650746742; +pub const DAXFS_MAGIC: u32 = 1684300152; +pub const BINFMTFS_MAGIC: u32 = 1112100429; +pub const DEVPTS_SUPER_MAGIC: u32 = 7377; +pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; +pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; +pub const PIPEFS_MAGIC: u32 = 1346981957; +pub const PROC_SUPER_MAGIC: u32 = 40864; +pub const SOCKFS_MAGIC: u32 = 1397703499; +pub const SYSFS_MAGIC: u32 = 1650812274; +pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; +pub const MTD_INODE_FS_MAGIC: u32 = 288389204; +pub const ANON_INODE_FS_MAGIC: u32 = 151263540; +pub const BTRFS_TEST_MAGIC: u32 = 1936880249; +pub const NSFS_MAGIC: u32 = 1853056627; +pub const BPF_FS_MAGIC: u32 = 3405662737; +pub const AAFS_MAGIC: u32 = 1513908720; +pub const ZONEFS_MAGIC: u32 = 1515144787; +pub const UDF_SUPER_MAGIC: u32 = 352400198; +pub const DMA_BUF_MAGIC: u32 = 1145913666; +pub const DEVMEM_MAGIC: u32 = 1162691661; +pub const SECRETMEM_MAGIC: u32 = 1397048141; +pub const PID_FS_MAGIC: u32 = 1346978886; +pub const PROT_READ: u32 = 1; +pub const PROT_WRITE: u32 = 2; +pub const PROT_EXEC: u32 = 4; +pub const PROT_SEM: u32 = 8; +pub const PROT_NONE: u32 = 0; +pub const PROT_GROWSDOWN: u32 = 16777216; +pub const PROT_GROWSUP: u32 = 33554432; +pub const MAP_TYPE: u32 = 15; +pub const MAP_FIXED: u32 = 16; +pub const MAP_ANONYMOUS: u32 = 32; +pub const MAP_POPULATE: u32 = 32768; +pub const MAP_NONBLOCK: u32 = 65536; +pub const MAP_STACK: u32 = 131072; +pub const MAP_HUGETLB: u32 = 262144; +pub const MAP_SYNC: u32 = 524288; +pub const MAP_FIXED_NOREPLACE: u32 = 1048576; +pub const MAP_UNINITIALIZED: u32 = 67108864; +pub const MLOCK_ONFAULT: u32 = 1; +pub const MS_ASYNC: u32 = 1; +pub const MS_INVALIDATE: u32 = 2; +pub const MS_SYNC: u32 = 4; +pub const MADV_NORMAL: u32 = 0; +pub const MADV_RANDOM: u32 = 1; +pub const MADV_SEQUENTIAL: u32 = 2; +pub const MADV_WILLNEED: u32 = 3; +pub const MADV_DONTNEED: u32 = 4; +pub const MADV_FREE: u32 = 8; +pub const MADV_REMOVE: u32 = 9; +pub const MADV_DONTFORK: u32 = 10; +pub const MADV_DOFORK: u32 = 11; +pub const MADV_HWPOISON: u32 = 100; +pub const MADV_SOFT_OFFLINE: u32 = 101; +pub const MADV_MERGEABLE: u32 = 12; +pub const MADV_UNMERGEABLE: u32 = 13; +pub const MADV_HUGEPAGE: u32 = 14; +pub const MADV_NOHUGEPAGE: u32 = 15; +pub const MADV_DONTDUMP: u32 = 16; +pub const MADV_DODUMP: u32 = 17; +pub const MADV_WIPEONFORK: u32 = 18; +pub const MADV_KEEPONFORK: u32 = 19; +pub const MADV_COLD: u32 = 20; +pub const MADV_PAGEOUT: u32 = 21; +pub const MADV_POPULATE_READ: u32 = 22; +pub const MADV_POPULATE_WRITE: u32 = 23; +pub const MADV_DONTNEED_LOCKED: u32 = 24; +pub const MADV_COLLAPSE: u32 = 25; +pub const MADV_GUARD_INSTALL: u32 = 102; +pub const MADV_GUARD_REMOVE: u32 = 103; +pub const MAP_FILE: u32 = 0; +pub const PKEY_UNRESTRICTED: u32 = 0; +pub const PKEY_DISABLE_ACCESS: u32 = 1; +pub const PKEY_DISABLE_WRITE: u32 = 2; +pub const PKEY_ACCESS_MASK: u32 = 3; +pub const PROT_ADI: u32 = 16; +pub const MAP_RENAME: u32 = 32; +pub const MAP_NORESERVE: u32 = 64; +pub const MAP_INHERIT: u32 = 128; +pub const MAP_LOCKED: u32 = 256; +pub const _MAP_NEW: u32 = 2147483648; +pub const MAP_GROWSDOWN: u32 = 512; +pub const MAP_DENYWRITE: u32 = 2048; +pub const MAP_EXECUTABLE: u32 = 4096; +pub const MCL_CURRENT: u32 = 8192; +pub const MCL_FUTURE: u32 = 16384; +pub const MCL_ONFAULT: u32 = 32768; +pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; +pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; +pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; +pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; +pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; +pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; +pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; +pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; +pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; +pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; +pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; +pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; +pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; +pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; +pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; +pub const MREMAP_MAYMOVE: u32 = 1; +pub const MREMAP_FIXED: u32 = 2; +pub const MREMAP_DONTUNMAP: u32 = 4; +pub const OVERCOMMIT_GUESS: u32 = 0; +pub const OVERCOMMIT_ALWAYS: u32 = 1; +pub const OVERCOMMIT_NEVER: u32 = 2; +pub const MAP_SHARED: u32 = 1; +pub const MAP_PRIVATE: u32 = 2; +pub const MAP_SHARED_VALIDATE: u32 = 3; +pub const MAP_DROPPABLE: u32 = 8; +pub const MAP_HUGE_SHIFT: u32 = 26; +pub const MAP_HUGE_MASK: u32 = 63; +pub const MAP_HUGE_16KB: u32 = 939524096; +pub const MAP_HUGE_64KB: u32 = 1073741824; +pub const MAP_HUGE_512KB: u32 = 1275068416; +pub const MAP_HUGE_1MB: u32 = 1342177280; +pub const MAP_HUGE_2MB: u32 = 1409286144; +pub const MAP_HUGE_8MB: u32 = 1543503872; +pub const MAP_HUGE_16MB: u32 = 1610612736; +pub const MAP_HUGE_32MB: u32 = 1677721600; +pub const MAP_HUGE_256MB: u32 = 1879048192; +pub const MAP_HUGE_512MB: u32 = 1946157056; +pub const MAP_HUGE_1GB: u32 = 2013265920; +pub const MAP_HUGE_2GB: u32 = 2080374784; +pub const MAP_HUGE_16GB: u32 = 2281701376; +pub const POLLWRBAND: u32 = 256; +pub const POLLMSG: u32 = 512; +pub const POLLREMOVE: u32 = 1024; +pub const POLLRDHUP: u32 = 2048; +pub const POLLIN: u32 = 1; +pub const POLLPRI: u32 = 2; +pub const POLLOUT: u32 = 4; +pub const POLLERR: u32 = 8; +pub const POLLHUP: u32 = 16; +pub const POLLNVAL: u32 = 32; +pub const POLLRDNORM: u32 = 64; +pub const POLLRDBAND: u32 = 128; +pub const GRND_NONBLOCK: u32 = 1; +pub const GRND_RANDOM: u32 = 2; +pub const GRND_INSECURE: u32 = 4; +pub const LINUX_REBOOT_MAGIC1: u32 = 4276215469; +pub const LINUX_REBOOT_MAGIC2: u32 = 672274793; +pub const LINUX_REBOOT_MAGIC2A: u32 = 85072278; +pub const LINUX_REBOOT_MAGIC2B: u32 = 369367448; +pub const LINUX_REBOOT_MAGIC2C: u32 = 537993216; +pub const LINUX_REBOOT_CMD_RESTART: u32 = 19088743; +pub const LINUX_REBOOT_CMD_HALT: u32 = 3454992675; +pub const LINUX_REBOOT_CMD_CAD_ON: u32 = 2309737967; +pub const LINUX_REBOOT_CMD_CAD_OFF: u32 = 0; +pub const LINUX_REBOOT_CMD_POWER_OFF: u32 = 1126301404; +pub const LINUX_REBOOT_CMD_RESTART2: u32 = 2712847316; +pub const LINUX_REBOOT_CMD_SW_SUSPEND: u32 = 3489725666; +pub const LINUX_REBOOT_CMD_KEXEC: u32 = 1163412803; +pub const RUSAGE_SELF: u32 = 0; +pub const RUSAGE_CHILDREN: i32 = -1; +pub const RUSAGE_BOTH: i32 = -2; +pub const RUSAGE_THREAD: u32 = 1; +pub const RLIM64_INFINITY: i32 = -1; +pub const PRIO_MIN: i32 = -20; +pub const PRIO_MAX: u32 = 20; +pub const PRIO_PROCESS: u32 = 0; +pub const PRIO_PGRP: u32 = 1; +pub const PRIO_USER: u32 = 2; +pub const _STK_LIM: u32 = 8388608; +pub const MLOCK_LIMIT: u32 = 8388608; +pub const RLIMIT_NOFILE: u32 = 6; +pub const RLIMIT_NPROC: u32 = 7; +pub const RLIM_INFINITY: u32 = 2147483647; +pub const RLIMIT_CPU: u32 = 0; +pub const RLIMIT_FSIZE: u32 = 1; +pub const RLIMIT_DATA: u32 = 2; +pub const RLIMIT_STACK: u32 = 3; +pub const RLIMIT_CORE: u32 = 4; +pub const RLIMIT_RSS: u32 = 5; +pub const RLIMIT_MEMLOCK: u32 = 8; +pub const RLIMIT_AS: u32 = 9; +pub const RLIMIT_LOCKS: u32 = 10; +pub const RLIMIT_SIGPENDING: u32 = 11; +pub const RLIMIT_MSGQUEUE: u32 = 12; +pub const RLIMIT_NICE: u32 = 13; +pub const RLIMIT_RTPRIO: u32 = 14; +pub const RLIMIT_RTTIME: u32 = 15; +pub const RLIM_NLIMITS: u32 = 16; +pub const CSIGNAL: u32 = 255; +pub const CLONE_VM: u32 = 256; +pub const CLONE_FS: u32 = 512; +pub const CLONE_FILES: u32 = 1024; +pub const CLONE_SIGHAND: u32 = 2048; +pub const CLONE_PIDFD: u32 = 4096; +pub const CLONE_PTRACE: u32 = 8192; +pub const CLONE_VFORK: u32 = 16384; +pub const CLONE_PARENT: u32 = 32768; +pub const CLONE_THREAD: u32 = 65536; +pub const CLONE_NEWNS: u32 = 131072; +pub const CLONE_SYSVSEM: u32 = 262144; +pub const CLONE_SETTLS: u32 = 524288; +pub const CLONE_PARENT_SETTID: u32 = 1048576; +pub const CLONE_CHILD_CLEARTID: u32 = 2097152; +pub const CLONE_DETACHED: u32 = 4194304; +pub const CLONE_UNTRACED: u32 = 8388608; +pub const CLONE_CHILD_SETTID: u32 = 16777216; +pub const CLONE_NEWCGROUP: u32 = 33554432; +pub const CLONE_NEWUTS: u32 = 67108864; +pub const CLONE_NEWIPC: u32 = 134217728; +pub const CLONE_NEWUSER: u32 = 268435456; +pub const CLONE_NEWPID: u32 = 536870912; +pub const CLONE_NEWNET: u32 = 1073741824; +pub const CLONE_IO: u32 = 2147483648; +pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; +pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_NEWTIME: u32 = 128; +pub const CLONE_ARGS_SIZE_VER0: u32 = 64; +pub const CLONE_ARGS_SIZE_VER1: u32 = 80; +pub const CLONE_ARGS_SIZE_VER2: u32 = 88; +pub const SCHED_NORMAL: u32 = 0; +pub const SCHED_FIFO: u32 = 1; +pub const SCHED_RR: u32 = 2; +pub const SCHED_BATCH: u32 = 3; +pub const SCHED_IDLE: u32 = 5; +pub const SCHED_DEADLINE: u32 = 6; +pub const SCHED_EXT: u32 = 7; +pub const SCHED_RESET_ON_FORK: u32 = 1073741824; +pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; +pub const SCHED_FLAG_RECLAIM: u32 = 2; +pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; +pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; +pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; +pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; +pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; +pub const SCHED_FLAG_KEEP_ALL: u32 = 24; +pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; +pub const SCHED_FLAG_ALL: u32 = 127; +pub const SIGHUP: u32 = 1; +pub const SIGINT: u32 = 2; +pub const SIGQUIT: u32 = 3; +pub const SIGILL: u32 = 4; +pub const SUBSIG_STACK: u32 = 0; +pub const SUBSIG_ILLINST: u32 = 2; +pub const SUBSIG_PRIVINST: u32 = 3; +pub const SIGTRAP: u32 = 5; +pub const SIGABRT: u32 = 6; +pub const SIGIOT: u32 = 6; +pub const SIGEMT: u32 = 7; +pub const SUBSIG_TAG: u32 = 10; +pub const SIGFPE: u32 = 8; +pub const SUBSIG_FPDISABLED: u32 = 1024; +pub const SUBSIG_FPERROR: u32 = 1028; +pub const SUBSIG_FPINTOVFL: u32 = 1; +pub const SUBSIG_FPSTSIG: u32 = 2; +pub const SUBSIG_IDIVZERO: u32 = 20; +pub const SUBSIG_FPINEXACT: u32 = 196; +pub const SUBSIG_FPDIVZERO: u32 = 200; +pub const SUBSIG_FPUNFLOW: u32 = 204; +pub const SUBSIG_FPOPERROR: u32 = 208; +pub const SUBSIG_FPOVFLOW: u32 = 212; +pub const SIGKILL: u32 = 9; +pub const SIGBUS: u32 = 10; +pub const SUBSIG_BUSTIMEOUT: u32 = 1; +pub const SUBSIG_ALIGNMENT: u32 = 2; +pub const SUBSIG_MISCERROR: u32 = 5; +pub const SIGSEGV: u32 = 11; +pub const SUBSIG_NOMAPPING: u32 = 3; +pub const SUBSIG_PROTECTION: u32 = 4; +pub const SUBSIG_SEGERROR: u32 = 5; +pub const SIGSYS: u32 = 12; +pub const SIGPIPE: u32 = 13; +pub const SIGALRM: u32 = 14; +pub const SIGTERM: u32 = 15; +pub const SIGURG: u32 = 16; +pub const SIGSTOP: u32 = 17; +pub const SIGTSTP: u32 = 18; +pub const SIGCONT: u32 = 19; +pub const SIGCHLD: u32 = 20; +pub const SIGTTIN: u32 = 21; +pub const SIGTTOU: u32 = 22; +pub const SIGIO: u32 = 23; +pub const SIGPOLL: u32 = 23; +pub const SIGXCPU: u32 = 24; +pub const SIGXFSZ: u32 = 25; +pub const SIGVTALRM: u32 = 26; +pub const SIGPROF: u32 = 27; +pub const SIGWINCH: u32 = 28; +pub const SIGLOST: u32 = 29; +pub const SIGPWR: u32 = 29; +pub const SIGUSR1: u32 = 30; +pub const SIGUSR2: u32 = 31; +pub const __OLD_NSIG: u32 = 32; +pub const __NEW_NSIG: u32 = 64; +pub const _NSIG_BPW: u32 = 32; +pub const _NSIG_WORDS: u32 = 2; +pub const SIGRTMIN: u32 = 32; +pub const SIGRTMAX: u32 = 64; +pub const _NSIG: u32 = 64; +pub const _SV_SSTACK: u32 = 1; +pub const _SV_INTR: u32 = 2; +pub const _SV_RESET: u32 = 4; +pub const _SV_IGNCHILD: u32 = 8; +pub const SA_NOCLDSTOP: u32 = 8; +pub const SA_STACK: u32 = 1; +pub const SA_ONSTACK: u32 = 1; +pub const SA_RESTART: u32 = 2; +pub const SA_RESETHAND: u32 = 4; +pub const SA_NODEFER: u32 = 32; +pub const SA_NOCLDWAIT: u32 = 256; +pub const SA_SIGINFO: u32 = 512; +pub const SIG_BLOCK: u32 = 1; +pub const SIG_UNBLOCK: u32 = 2; +pub const SIG_SETMASK: u32 = 4; +pub const MINSIGSTKSZ: u32 = 4096; +pub const SIGSTKSZ: u32 = 16384; +pub const SA_UNSUPPORTED: u32 = 1024; +pub const SA_EXPOSE_TAGBITS: u32 = 2048; +pub const SA_NOMASK: u32 = 32; +pub const SA_ONESHOT: u32 = 4; +pub const SI_MAX_SIZE: u32 = 128; +pub const SI_USER: u32 = 0; +pub const SI_KERNEL: u32 = 128; +pub const SI_QUEUE: i32 = -1; +pub const SI_TIMER: i32 = -2; +pub const SI_MESGQ: i32 = -3; +pub const SI_ASYNCIO: i32 = -4; +pub const SI_SIGIO: i32 = -5; +pub const SI_TKILL: i32 = -6; +pub const SI_DETHREAD: i32 = -7; +pub const SI_ASYNCNL: i32 = -60; +pub const ILL_ILLOPC: u32 = 1; +pub const ILL_ILLOPN: u32 = 2; +pub const ILL_ILLADR: u32 = 3; +pub const ILL_ILLTRP: u32 = 4; +pub const ILL_PRVOPC: u32 = 5; +pub const ILL_PRVREG: u32 = 6; +pub const ILL_COPROC: u32 = 7; +pub const ILL_BADSTK: u32 = 8; +pub const ILL_BADIADDR: u32 = 9; +pub const __ILL_BREAK: u32 = 10; +pub const __ILL_BNDMOD: u32 = 11; +pub const NSIGILL: u32 = 11; +pub const FPE_INTDIV: u32 = 1; +pub const FPE_INTOVF: u32 = 2; +pub const FPE_FLTDIV: u32 = 3; +pub const FPE_FLTOVF: u32 = 4; +pub const FPE_FLTUND: u32 = 5; +pub const FPE_FLTRES: u32 = 6; +pub const FPE_FLTINV: u32 = 7; +pub const FPE_FLTSUB: u32 = 8; +pub const __FPE_DECOVF: u32 = 9; +pub const __FPE_DECDIV: u32 = 10; +pub const __FPE_DECERR: u32 = 11; +pub const __FPE_INVASC: u32 = 12; +pub const __FPE_INVDEC: u32 = 13; +pub const FPE_FLTUNK: u32 = 14; +pub const FPE_CONDTRAP: u32 = 15; +pub const NSIGFPE: u32 = 15; +pub const SEGV_MAPERR: u32 = 1; +pub const SEGV_ACCERR: u32 = 2; +pub const SEGV_BNDERR: u32 = 3; +pub const SEGV_PKUERR: u32 = 4; +pub const SEGV_ACCADI: u32 = 5; +pub const SEGV_ADIDERR: u32 = 6; +pub const SEGV_ADIPERR: u32 = 7; +pub const SEGV_MTEAERR: u32 = 8; +pub const SEGV_MTESERR: u32 = 9; +pub const SEGV_CPERR: u32 = 10; +pub const NSIGSEGV: u32 = 10; +pub const BUS_ADRALN: u32 = 1; +pub const BUS_ADRERR: u32 = 2; +pub const BUS_OBJERR: u32 = 3; +pub const BUS_MCEERR_AR: u32 = 4; +pub const BUS_MCEERR_AO: u32 = 5; +pub const NSIGBUS: u32 = 5; +pub const TRAP_BRKPT: u32 = 1; +pub const TRAP_TRACE: u32 = 2; +pub const TRAP_BRANCH: u32 = 3; +pub const TRAP_HWBKPT: u32 = 4; +pub const TRAP_UNK: u32 = 5; +pub const TRAP_PERF: u32 = 6; +pub const NSIGTRAP: u32 = 6; +pub const TRAP_PERF_FLAG_ASYNC: u32 = 1; +pub const CLD_EXITED: u32 = 1; +pub const CLD_KILLED: u32 = 2; +pub const CLD_DUMPED: u32 = 3; +pub const CLD_TRAPPED: u32 = 4; +pub const CLD_STOPPED: u32 = 5; +pub const CLD_CONTINUED: u32 = 6; +pub const NSIGCHLD: u32 = 6; +pub const POLL_IN: u32 = 1; +pub const POLL_OUT: u32 = 2; +pub const POLL_MSG: u32 = 3; +pub const POLL_ERR: u32 = 4; +pub const POLL_PRI: u32 = 5; +pub const POLL_HUP: u32 = 6; +pub const NSIGPOLL: u32 = 6; +pub const SYS_SECCOMP: u32 = 1; +pub const SYS_USER_DISPATCH: u32 = 2; +pub const NSIGSYS: u32 = 2; +pub const EMT_TAGOVF: u32 = 1; +pub const NSIGEMT: u32 = 1; +pub const SIGEV_SIGNAL: u32 = 0; +pub const SIGEV_NONE: u32 = 1; +pub const SIGEV_THREAD: u32 = 2; +pub const SIGEV_THREAD_ID: u32 = 4; +pub const SIGEV_MAX_SIZE: u32 = 64; +pub const SI_NOINFO: u32 = 32767; +pub const SS_ONSTACK: u32 = 1; +pub const SS_DISABLE: u32 = 2; +pub const SS_AUTODISARM: u32 = 2147483648; +pub const SS_FLAG_BITS: u32 = 2147483648; +pub const S_IFMT: u32 = 61440; +pub const S_IFSOCK: u32 = 49152; +pub const S_IFLNK: u32 = 40960; +pub const S_IFREG: u32 = 32768; +pub const S_IFBLK: u32 = 24576; +pub const S_IFDIR: u32 = 16384; +pub const S_IFCHR: u32 = 8192; +pub const S_IFIFO: u32 = 4096; +pub const S_ISUID: u32 = 2048; +pub const S_ISGID: u32 = 1024; +pub const S_ISVTX: u32 = 512; +pub const S_IRWXU: u32 = 448; +pub const S_IRUSR: u32 = 256; +pub const S_IWUSR: u32 = 128; +pub const S_IXUSR: u32 = 64; +pub const S_IRWXG: u32 = 56; +pub const S_IRGRP: u32 = 32; +pub const S_IWGRP: u32 = 16; +pub const S_IXGRP: u32 = 8; +pub const S_IRWXO: u32 = 7; +pub const S_IROTH: u32 = 4; +pub const S_IWOTH: u32 = 2; +pub const S_IXOTH: u32 = 1; +pub const STATX_TYPE: u32 = 1; +pub const STATX_MODE: u32 = 2; +pub const STATX_NLINK: u32 = 4; +pub const STATX_UID: u32 = 8; +pub const STATX_GID: u32 = 16; +pub const STATX_ATIME: u32 = 32; +pub const STATX_MTIME: u32 = 64; +pub const STATX_CTIME: u32 = 128; +pub const STATX_INO: u32 = 256; +pub const STATX_SIZE: u32 = 512; +pub const STATX_BLOCKS: u32 = 1024; +pub const STATX_BASIC_STATS: u32 = 2047; +pub const STATX_BTIME: u32 = 2048; +pub const STATX_MNT_ID: u32 = 4096; +pub const STATX_DIOALIGN: u32 = 8192; +pub const STATX_MNT_ID_UNIQUE: u32 = 16384; +pub const STATX_SUBVOL: u32 = 32768; +pub const STATX_WRITE_ATOMIC: u32 = 65536; +pub const STATX_DIO_READ_ALIGN: u32 = 131072; +pub const STATX__RESERVED: u32 = 2147483648; +pub const STATX_ALL: u32 = 4095; +pub const STATX_ATTR_COMPRESSED: u32 = 4; +pub const STATX_ATTR_IMMUTABLE: u32 = 16; +pub const STATX_ATTR_APPEND: u32 = 32; +pub const STATX_ATTR_NODUMP: u32 = 64; +pub const STATX_ATTR_ENCRYPTED: u32 = 2048; +pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; +pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; +pub const STATX_ATTR_VERITY: u32 = 1048576; +pub const STATX_ATTR_DAX: u32 = 2097152; +pub const STATX_ATTR_WRITE_ATOMIC: u32 = 4194304; +pub const TIOCPKT_DATA: u32 = 0; +pub const TIOCPKT_FLUSHREAD: u32 = 1; +pub const TIOCPKT_FLUSHWRITE: u32 = 2; +pub const TIOCPKT_STOP: u32 = 4; +pub const TIOCPKT_START: u32 = 8; +pub const TIOCPKT_NOSTOP: u32 = 16; +pub const TIOCPKT_DOSTOP: u32 = 32; +pub const TIOCPKT_IOCTL: u32 = 64; +pub const IGNBRK: u32 = 1; +pub const BRKINT: u32 = 2; +pub const IGNPAR: u32 = 4; +pub const PARMRK: u32 = 8; +pub const INPCK: u32 = 16; +pub const ISTRIP: u32 = 32; +pub const INLCR: u32 = 64; +pub const IGNCR: u32 = 128; +pub const ICRNL: u32 = 256; +pub const IXANY: u32 = 2048; +pub const OPOST: u32 = 1; +pub const OCRNL: u32 = 8; +pub const ONOCR: u32 = 16; +pub const ONLRET: u32 = 32; +pub const OFILL: u32 = 64; +pub const OFDEL: u32 = 128; +pub const B0: u32 = 0; +pub const B50: u32 = 1; +pub const B75: u32 = 2; +pub const B110: u32 = 3; +pub const B134: u32 = 4; +pub const B150: u32 = 5; +pub const B200: u32 = 6; +pub const B300: u32 = 7; +pub const B600: u32 = 8; +pub const B1200: u32 = 9; +pub const B1800: u32 = 10; +pub const B2400: u32 = 11; +pub const B4800: u32 = 12; +pub const B9600: u32 = 13; +pub const B19200: u32 = 14; +pub const B38400: u32 = 15; +pub const EXTA: u32 = 14; +pub const EXTB: u32 = 15; +pub const ADDRB: u32 = 536870912; +pub const CMSPAR: u32 = 1073741824; +pub const CRTSCTS: u32 = 2147483648; +pub const IBSHIFT: u32 = 16; +pub const TCOOFF: u32 = 0; +pub const TCOON: u32 = 1; +pub const TCIOFF: u32 = 2; +pub const TCION: u32 = 3; +pub const TCIFLUSH: u32 = 0; +pub const TCOFLUSH: u32 = 1; +pub const TCIOFLUSH: u32 = 2; +pub const NCCS: u32 = 17; +pub const VINTR: u32 = 0; +pub const VQUIT: u32 = 1; +pub const VERASE: u32 = 2; +pub const VKILL: u32 = 3; +pub const VEOF: u32 = 4; +pub const VEOL: u32 = 5; +pub const VEOL2: u32 = 6; +pub const VSWTC: u32 = 7; +pub const VSTART: u32 = 8; +pub const VSTOP: u32 = 9; +pub const VSUSP: u32 = 10; +pub const VDSUSP: u32 = 11; +pub const VREPRINT: u32 = 12; +pub const VDISCARD: u32 = 13; +pub const VWERASE: u32 = 14; +pub const VLNEXT: u32 = 15; +pub const VMIN: u32 = 4; +pub const VTIME: u32 = 5; +pub const IUCLC: u32 = 512; +pub const IXON: u32 = 1024; +pub const IXOFF: u32 = 4096; +pub const IMAXBEL: u32 = 8192; +pub const IUTF8: u32 = 16384; +pub const OLCUC: u32 = 2; +pub const ONLCR: u32 = 4; +pub const NLDLY: u32 = 256; +pub const NL0: u32 = 0; +pub const NL1: u32 = 256; +pub const CRDLY: u32 = 1536; +pub const CR0: u32 = 0; +pub const CR1: u32 = 512; +pub const CR2: u32 = 1024; +pub const CR3: u32 = 1536; +pub const TABDLY: u32 = 6144; +pub const TAB0: u32 = 0; +pub const TAB1: u32 = 2048; +pub const TAB2: u32 = 4096; +pub const TAB3: u32 = 6144; +pub const XTABS: u32 = 6144; +pub const BSDLY: u32 = 8192; +pub const BS0: u32 = 0; +pub const BS1: u32 = 8192; +pub const VTDLY: u32 = 16384; +pub const VT0: u32 = 0; +pub const VT1: u32 = 16384; +pub const FFDLY: u32 = 32768; +pub const FF0: u32 = 0; +pub const FF1: u32 = 32768; +pub const PAGEOUT: u32 = 65536; +pub const WRAP: u32 = 131072; +pub const CBAUD: u32 = 4111; +pub const CSIZE: u32 = 48; +pub const CS5: u32 = 0; +pub const CS6: u32 = 16; +pub const CS7: u32 = 32; +pub const CS8: u32 = 48; +pub const CSTOPB: u32 = 64; +pub const CREAD: u32 = 128; +pub const PARENB: u32 = 256; +pub const PARODD: u32 = 512; +pub const HUPCL: u32 = 1024; +pub const CLOCAL: u32 = 2048; +pub const CBAUDEX: u32 = 4096; +pub const BOTHER: u32 = 4096; +pub const B57600: u32 = 4097; +pub const B115200: u32 = 4098; +pub const B230400: u32 = 4099; +pub const B460800: u32 = 4100; +pub const B76800: u32 = 4101; +pub const B153600: u32 = 4102; +pub const B307200: u32 = 4103; +pub const B614400: u32 = 4104; +pub const B921600: u32 = 4105; +pub const B500000: u32 = 4106; +pub const B576000: u32 = 4107; +pub const B1000000: u32 = 4108; +pub const B1152000: u32 = 4109; +pub const B1500000: u32 = 4110; +pub const B2000000: u32 = 4111; +pub const CIBAUD: u32 = 269418496; +pub const ISIG: u32 = 1; +pub const ICANON: u32 = 2; +pub const XCASE: u32 = 4; +pub const ECHO: u32 = 8; +pub const ECHOE: u32 = 16; +pub const ECHOK: u32 = 32; +pub const ECHONL: u32 = 64; +pub const NOFLSH: u32 = 128; +pub const TOSTOP: u32 = 256; +pub const ECHOCTL: u32 = 512; +pub const ECHOPRT: u32 = 1024; +pub const ECHOKE: u32 = 2048; +pub const DEFECHO: u32 = 4096; +pub const FLUSHO: u32 = 8192; +pub const PENDIN: u32 = 16384; +pub const IEXTEN: u32 = 32768; +pub const EXTPROC: u32 = 65536; +pub const TIOCM_LE: u32 = 1; +pub const TIOCM_DTR: u32 = 2; +pub const TIOCM_RTS: u32 = 4; +pub const TIOCM_ST: u32 = 8; +pub const TIOCM_SR: u32 = 16; +pub const TIOCM_CTS: u32 = 32; +pub const TIOCM_CAR: u32 = 64; +pub const TIOCM_RNG: u32 = 128; +pub const TIOCM_DSR: u32 = 256; +pub const TIOCM_CD: u32 = 64; +pub const TIOCM_RI: u32 = 128; +pub const TIOCM_OUT1: u32 = 8192; +pub const TIOCM_OUT2: u32 = 16384; +pub const TIOCM_LOOP: u32 = 32768; +pub const TIOCSER_TEMT: u32 = 1; +pub const TCSANOW: u32 = 0; +pub const TCSADRAIN: u32 = 1; +pub const TCSAFLUSH: u32 = 2; +pub const NCC: u32 = 8; +pub const ITIMER_REAL: u32 = 0; +pub const ITIMER_VIRTUAL: u32 = 1; +pub const ITIMER_PROF: u32 = 2; +pub const CLOCK_REALTIME: u32 = 0; +pub const CLOCK_MONOTONIC: u32 = 1; +pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; +pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; +pub const CLOCK_MONOTONIC_RAW: u32 = 4; +pub const CLOCK_REALTIME_COARSE: u32 = 5; +pub const CLOCK_MONOTONIC_COARSE: u32 = 6; +pub const CLOCK_BOOTTIME: u32 = 7; +pub const CLOCK_REALTIME_ALARM: u32 = 8; +pub const CLOCK_BOOTTIME_ALARM: u32 = 9; +pub const CLOCK_SGI_CYCLE: u32 = 10; +pub const CLOCK_TAI: u32 = 11; +pub const MAX_CLOCKS: u32 = 16; +pub const CLOCKS_MASK: u32 = 1; +pub const CLOCKS_MONO: u32 = 1; +pub const TIMER_ABSTIME: u32 = 1; +pub const UIO_FASTIOV: u32 = 8; +pub const UIO_MAXIOV: u32 = 1024; +pub const __NR_restart_syscall: u32 = 0; +pub const __NR_exit: u32 = 1; +pub const __NR_fork: u32 = 2; +pub const __NR_read: u32 = 3; +pub const __NR_write: u32 = 4; +pub const __NR_open: u32 = 5; +pub const __NR_close: u32 = 6; +pub const __NR_wait4: u32 = 7; +pub const __NR_creat: u32 = 8; +pub const __NR_link: u32 = 9; +pub const __NR_unlink: u32 = 10; +pub const __NR_execv: u32 = 11; +pub const __NR_chdir: u32 = 12; +pub const __NR_chown: u32 = 13; +pub const __NR_mknod: u32 = 14; +pub const __NR_chmod: u32 = 15; +pub const __NR_lchown: u32 = 16; +pub const __NR_brk: u32 = 17; +pub const __NR_perfctr: u32 = 18; +pub const __NR_lseek: u32 = 19; +pub const __NR_getpid: u32 = 20; +pub const __NR_capget: u32 = 21; +pub const __NR_capset: u32 = 22; +pub const __NR_setuid: u32 = 23; +pub const __NR_getuid: u32 = 24; +pub const __NR_vmsplice: u32 = 25; +pub const __NR_ptrace: u32 = 26; +pub const __NR_alarm: u32 = 27; +pub const __NR_sigaltstack: u32 = 28; +pub const __NR_pause: u32 = 29; +pub const __NR_utime: u32 = 30; +pub const __NR_lchown32: u32 = 31; +pub const __NR_fchown32: u32 = 32; +pub const __NR_access: u32 = 33; +pub const __NR_nice: u32 = 34; +pub const __NR_chown32: u32 = 35; +pub const __NR_sync: u32 = 36; +pub const __NR_kill: u32 = 37; +pub const __NR_stat: u32 = 38; +pub const __NR_sendfile: u32 = 39; +pub const __NR_lstat: u32 = 40; +pub const __NR_dup: u32 = 41; +pub const __NR_pipe: u32 = 42; +pub const __NR_times: u32 = 43; +pub const __NR_getuid32: u32 = 44; +pub const __NR_umount2: u32 = 45; +pub const __NR_setgid: u32 = 46; +pub const __NR_getgid: u32 = 47; +pub const __NR_signal: u32 = 48; +pub const __NR_geteuid: u32 = 49; +pub const __NR_getegid: u32 = 50; +pub const __NR_acct: u32 = 51; +pub const __NR_getgid32: u32 = 53; +pub const __NR_ioctl: u32 = 54; +pub const __NR_reboot: u32 = 55; +pub const __NR_mmap2: u32 = 56; +pub const __NR_symlink: u32 = 57; +pub const __NR_readlink: u32 = 58; +pub const __NR_execve: u32 = 59; +pub const __NR_umask: u32 = 60; +pub const __NR_chroot: u32 = 61; +pub const __NR_fstat: u32 = 62; +pub const __NR_fstat64: u32 = 63; +pub const __NR_getpagesize: u32 = 64; +pub const __NR_msync: u32 = 65; +pub const __NR_vfork: u32 = 66; +pub const __NR_pread64: u32 = 67; +pub const __NR_pwrite64: u32 = 68; +pub const __NR_geteuid32: u32 = 69; +pub const __NR_getegid32: u32 = 70; +pub const __NR_mmap: u32 = 71; +pub const __NR_setreuid32: u32 = 72; +pub const __NR_munmap: u32 = 73; +pub const __NR_mprotect: u32 = 74; +pub const __NR_madvise: u32 = 75; +pub const __NR_vhangup: u32 = 76; +pub const __NR_truncate64: u32 = 77; +pub const __NR_mincore: u32 = 78; +pub const __NR_getgroups: u32 = 79; +pub const __NR_setgroups: u32 = 80; +pub const __NR_getpgrp: u32 = 81; +pub const __NR_setgroups32: u32 = 82; +pub const __NR_setitimer: u32 = 83; +pub const __NR_ftruncate64: u32 = 84; +pub const __NR_swapon: u32 = 85; +pub const __NR_getitimer: u32 = 86; +pub const __NR_setuid32: u32 = 87; +pub const __NR_sethostname: u32 = 88; +pub const __NR_setgid32: u32 = 89; +pub const __NR_dup2: u32 = 90; +pub const __NR_setfsuid32: u32 = 91; +pub const __NR_fcntl: u32 = 92; +pub const __NR_select: u32 = 93; +pub const __NR_setfsgid32: u32 = 94; +pub const __NR_fsync: u32 = 95; +pub const __NR_setpriority: u32 = 96; +pub const __NR_socket: u32 = 97; +pub const __NR_connect: u32 = 98; +pub const __NR_accept: u32 = 99; +pub const __NR_getpriority: u32 = 100; +pub const __NR_rt_sigreturn: u32 = 101; +pub const __NR_rt_sigaction: u32 = 102; +pub const __NR_rt_sigprocmask: u32 = 103; +pub const __NR_rt_sigpending: u32 = 104; +pub const __NR_rt_sigtimedwait: u32 = 105; +pub const __NR_rt_sigqueueinfo: u32 = 106; +pub const __NR_rt_sigsuspend: u32 = 107; +pub const __NR_setresuid32: u32 = 108; +pub const __NR_getresuid32: u32 = 109; +pub const __NR_setresgid32: u32 = 110; +pub const __NR_getresgid32: u32 = 111; +pub const __NR_setregid32: u32 = 112; +pub const __NR_recvmsg: u32 = 113; +pub const __NR_sendmsg: u32 = 114; +pub const __NR_getgroups32: u32 = 115; +pub const __NR_gettimeofday: u32 = 116; +pub const __NR_getrusage: u32 = 117; +pub const __NR_getsockopt: u32 = 118; +pub const __NR_getcwd: u32 = 119; +pub const __NR_readv: u32 = 120; +pub const __NR_writev: u32 = 121; +pub const __NR_settimeofday: u32 = 122; +pub const __NR_fchown: u32 = 123; +pub const __NR_fchmod: u32 = 124; +pub const __NR_recvfrom: u32 = 125; +pub const __NR_setreuid: u32 = 126; +pub const __NR_setregid: u32 = 127; +pub const __NR_rename: u32 = 128; +pub const __NR_truncate: u32 = 129; +pub const __NR_ftruncate: u32 = 130; +pub const __NR_flock: u32 = 131; +pub const __NR_lstat64: u32 = 132; +pub const __NR_sendto: u32 = 133; +pub const __NR_shutdown: u32 = 134; +pub const __NR_socketpair: u32 = 135; +pub const __NR_mkdir: u32 = 136; +pub const __NR_rmdir: u32 = 137; +pub const __NR_utimes: u32 = 138; +pub const __NR_stat64: u32 = 139; +pub const __NR_sendfile64: u32 = 140; +pub const __NR_getpeername: u32 = 141; +pub const __NR_futex: u32 = 142; +pub const __NR_gettid: u32 = 143; +pub const __NR_getrlimit: u32 = 144; +pub const __NR_setrlimit: u32 = 145; +pub const __NR_pivot_root: u32 = 146; +pub const __NR_prctl: u32 = 147; +pub const __NR_pciconfig_read: u32 = 148; +pub const __NR_pciconfig_write: u32 = 149; +pub const __NR_getsockname: u32 = 150; +pub const __NR_inotify_init: u32 = 151; +pub const __NR_inotify_add_watch: u32 = 152; +pub const __NR_poll: u32 = 153; +pub const __NR_getdents64: u32 = 154; +pub const __NR_fcntl64: u32 = 155; +pub const __NR_inotify_rm_watch: u32 = 156; +pub const __NR_statfs: u32 = 157; +pub const __NR_fstatfs: u32 = 158; +pub const __NR_umount: u32 = 159; +pub const __NR_sched_set_affinity: u32 = 160; +pub const __NR_sched_get_affinity: u32 = 161; +pub const __NR_getdomainname: u32 = 162; +pub const __NR_setdomainname: u32 = 163; +pub const __NR_quotactl: u32 = 165; +pub const __NR_set_tid_address: u32 = 166; +pub const __NR_mount: u32 = 167; +pub const __NR_ustat: u32 = 168; +pub const __NR_setxattr: u32 = 169; +pub const __NR_lsetxattr: u32 = 170; +pub const __NR_fsetxattr: u32 = 171; +pub const __NR_getxattr: u32 = 172; +pub const __NR_lgetxattr: u32 = 173; +pub const __NR_getdents: u32 = 174; +pub const __NR_setsid: u32 = 175; +pub const __NR_fchdir: u32 = 176; +pub const __NR_fgetxattr: u32 = 177; +pub const __NR_listxattr: u32 = 178; +pub const __NR_llistxattr: u32 = 179; +pub const __NR_flistxattr: u32 = 180; +pub const __NR_removexattr: u32 = 181; +pub const __NR_lremovexattr: u32 = 182; +pub const __NR_sigpending: u32 = 183; +pub const __NR_query_module: u32 = 184; +pub const __NR_setpgid: u32 = 185; +pub const __NR_fremovexattr: u32 = 186; +pub const __NR_tkill: u32 = 187; +pub const __NR_exit_group: u32 = 188; +pub const __NR_uname: u32 = 189; +pub const __NR_init_module: u32 = 190; +pub const __NR_personality: u32 = 191; +pub const __NR_remap_file_pages: u32 = 192; +pub const __NR_epoll_create: u32 = 193; +pub const __NR_epoll_ctl: u32 = 194; +pub const __NR_epoll_wait: u32 = 195; +pub const __NR_ioprio_set: u32 = 196; +pub const __NR_getppid: u32 = 197; +pub const __NR_sigaction: u32 = 198; +pub const __NR_sgetmask: u32 = 199; +pub const __NR_ssetmask: u32 = 200; +pub const __NR_sigsuspend: u32 = 201; +pub const __NR_oldlstat: u32 = 202; +pub const __NR_uselib: u32 = 203; +pub const __NR_readdir: u32 = 204; +pub const __NR_readahead: u32 = 205; +pub const __NR_socketcall: u32 = 206; +pub const __NR_syslog: u32 = 207; +pub const __NR_lookup_dcookie: u32 = 208; +pub const __NR_fadvise64: u32 = 209; +pub const __NR_fadvise64_64: u32 = 210; +pub const __NR_tgkill: u32 = 211; +pub const __NR_waitpid: u32 = 212; +pub const __NR_swapoff: u32 = 213; +pub const __NR_sysinfo: u32 = 214; +pub const __NR_ipc: u32 = 215; +pub const __NR_sigreturn: u32 = 216; +pub const __NR_clone: u32 = 217; +pub const __NR_ioprio_get: u32 = 218; +pub const __NR_adjtimex: u32 = 219; +pub const __NR_sigprocmask: u32 = 220; +pub const __NR_create_module: u32 = 221; +pub const __NR_delete_module: u32 = 222; +pub const __NR_get_kernel_syms: u32 = 223; +pub const __NR_getpgid: u32 = 224; +pub const __NR_bdflush: u32 = 225; +pub const __NR_sysfs: u32 = 226; +pub const __NR_afs_syscall: u32 = 227; +pub const __NR_setfsuid: u32 = 228; +pub const __NR_setfsgid: u32 = 229; +pub const __NR__newselect: u32 = 230; +pub const __NR_time: u32 = 231; +pub const __NR_splice: u32 = 232; +pub const __NR_stime: u32 = 233; +pub const __NR_statfs64: u32 = 234; +pub const __NR_fstatfs64: u32 = 235; +pub const __NR__llseek: u32 = 236; +pub const __NR_mlock: u32 = 237; +pub const __NR_munlock: u32 = 238; +pub const __NR_mlockall: u32 = 239; +pub const __NR_munlockall: u32 = 240; +pub const __NR_sched_setparam: u32 = 241; +pub const __NR_sched_getparam: u32 = 242; +pub const __NR_sched_setscheduler: u32 = 243; +pub const __NR_sched_getscheduler: u32 = 244; +pub const __NR_sched_yield: u32 = 245; +pub const __NR_sched_get_priority_max: u32 = 246; +pub const __NR_sched_get_priority_min: u32 = 247; +pub const __NR_sched_rr_get_interval: u32 = 248; +pub const __NR_nanosleep: u32 = 249; +pub const __NR_mremap: u32 = 250; +pub const __NR__sysctl: u32 = 251; +pub const __NR_getsid: u32 = 252; +pub const __NR_fdatasync: u32 = 253; +pub const __NR_nfsservctl: u32 = 254; +pub const __NR_sync_file_range: u32 = 255; +pub const __NR_clock_settime: u32 = 256; +pub const __NR_clock_gettime: u32 = 257; +pub const __NR_clock_getres: u32 = 258; +pub const __NR_clock_nanosleep: u32 = 259; +pub const __NR_sched_getaffinity: u32 = 260; +pub const __NR_sched_setaffinity: u32 = 261; +pub const __NR_timer_settime: u32 = 262; +pub const __NR_timer_gettime: u32 = 263; +pub const __NR_timer_getoverrun: u32 = 264; +pub const __NR_timer_delete: u32 = 265; +pub const __NR_timer_create: u32 = 266; +pub const __NR_vserver: u32 = 267; +pub const __NR_io_setup: u32 = 268; +pub const __NR_io_destroy: u32 = 269; +pub const __NR_io_submit: u32 = 270; +pub const __NR_io_cancel: u32 = 271; +pub const __NR_io_getevents: u32 = 272; +pub const __NR_mq_open: u32 = 273; +pub const __NR_mq_unlink: u32 = 274; +pub const __NR_mq_timedsend: u32 = 275; +pub const __NR_mq_timedreceive: u32 = 276; +pub const __NR_mq_notify: u32 = 277; +pub const __NR_mq_getsetattr: u32 = 278; +pub const __NR_waitid: u32 = 279; +pub const __NR_tee: u32 = 280; +pub const __NR_add_key: u32 = 281; +pub const __NR_request_key: u32 = 282; +pub const __NR_keyctl: u32 = 283; +pub const __NR_openat: u32 = 284; +pub const __NR_mkdirat: u32 = 285; +pub const __NR_mknodat: u32 = 286; +pub const __NR_fchownat: u32 = 287; +pub const __NR_futimesat: u32 = 288; +pub const __NR_fstatat64: u32 = 289; +pub const __NR_unlinkat: u32 = 290; +pub const __NR_renameat: u32 = 291; +pub const __NR_linkat: u32 = 292; +pub const __NR_symlinkat: u32 = 293; +pub const __NR_readlinkat: u32 = 294; +pub const __NR_fchmodat: u32 = 295; +pub const __NR_faccessat: u32 = 296; +pub const __NR_pselect6: u32 = 297; +pub const __NR_ppoll: u32 = 298; +pub const __NR_unshare: u32 = 299; +pub const __NR_set_robust_list: u32 = 300; +pub const __NR_get_robust_list: u32 = 301; +pub const __NR_migrate_pages: u32 = 302; +pub const __NR_mbind: u32 = 303; +pub const __NR_get_mempolicy: u32 = 304; +pub const __NR_set_mempolicy: u32 = 305; +pub const __NR_kexec_load: u32 = 306; +pub const __NR_move_pages: u32 = 307; +pub const __NR_getcpu: u32 = 308; +pub const __NR_epoll_pwait: u32 = 309; +pub const __NR_utimensat: u32 = 310; +pub const __NR_signalfd: u32 = 311; +pub const __NR_timerfd_create: u32 = 312; +pub const __NR_eventfd: u32 = 313; +pub const __NR_fallocate: u32 = 314; +pub const __NR_timerfd_settime: u32 = 315; +pub const __NR_timerfd_gettime: u32 = 316; +pub const __NR_signalfd4: u32 = 317; +pub const __NR_eventfd2: u32 = 318; +pub const __NR_epoll_create1: u32 = 319; +pub const __NR_dup3: u32 = 320; +pub const __NR_pipe2: u32 = 321; +pub const __NR_inotify_init1: u32 = 322; +pub const __NR_accept4: u32 = 323; +pub const __NR_preadv: u32 = 324; +pub const __NR_pwritev: u32 = 325; +pub const __NR_rt_tgsigqueueinfo: u32 = 326; +pub const __NR_perf_event_open: u32 = 327; +pub const __NR_recvmmsg: u32 = 328; +pub const __NR_fanotify_init: u32 = 329; +pub const __NR_fanotify_mark: u32 = 330; +pub const __NR_prlimit64: u32 = 331; +pub const __NR_name_to_handle_at: u32 = 332; +pub const __NR_open_by_handle_at: u32 = 333; +pub const __NR_clock_adjtime: u32 = 334; +pub const __NR_syncfs: u32 = 335; +pub const __NR_sendmmsg: u32 = 336; +pub const __NR_setns: u32 = 337; +pub const __NR_process_vm_readv: u32 = 338; +pub const __NR_process_vm_writev: u32 = 339; +pub const __NR_kern_features: u32 = 340; +pub const __NR_kcmp: u32 = 341; +pub const __NR_finit_module: u32 = 342; +pub const __NR_sched_setattr: u32 = 343; +pub const __NR_sched_getattr: u32 = 344; +pub const __NR_renameat2: u32 = 345; +pub const __NR_seccomp: u32 = 346; +pub const __NR_getrandom: u32 = 347; +pub const __NR_memfd_create: u32 = 348; +pub const __NR_bpf: u32 = 349; +pub const __NR_execveat: u32 = 350; +pub const __NR_membarrier: u32 = 351; +pub const __NR_userfaultfd: u32 = 352; +pub const __NR_bind: u32 = 353; +pub const __NR_listen: u32 = 354; +pub const __NR_setsockopt: u32 = 355; +pub const __NR_mlock2: u32 = 356; +pub const __NR_copy_file_range: u32 = 357; +pub const __NR_preadv2: u32 = 358; +pub const __NR_pwritev2: u32 = 359; +pub const __NR_statx: u32 = 360; +pub const __NR_io_pgetevents: u32 = 361; +pub const __NR_pkey_mprotect: u32 = 362; +pub const __NR_pkey_alloc: u32 = 363; +pub const __NR_pkey_free: u32 = 364; +pub const __NR_rseq: u32 = 365; +pub const __NR_semget: u32 = 393; +pub const __NR_semctl: u32 = 394; +pub const __NR_shmget: u32 = 395; +pub const __NR_shmctl: u32 = 396; +pub const __NR_shmat: u32 = 397; +pub const __NR_shmdt: u32 = 398; +pub const __NR_msgget: u32 = 399; +pub const __NR_msgsnd: u32 = 400; +pub const __NR_msgrcv: u32 = 401; +pub const __NR_msgctl: u32 = 402; +pub const __NR_clock_gettime64: u32 = 403; +pub const __NR_clock_settime64: u32 = 404; +pub const __NR_clock_adjtime64: u32 = 405; +pub const __NR_clock_getres_time64: u32 = 406; +pub const __NR_clock_nanosleep_time64: u32 = 407; +pub const __NR_timer_gettime64: u32 = 408; +pub const __NR_timer_settime64: u32 = 409; +pub const __NR_timerfd_gettime64: u32 = 410; +pub const __NR_timerfd_settime64: u32 = 411; +pub const __NR_utimensat_time64: u32 = 412; +pub const __NR_pselect6_time64: u32 = 413; +pub const __NR_ppoll_time64: u32 = 414; +pub const __NR_io_pgetevents_time64: u32 = 416; +pub const __NR_recvmmsg_time64: u32 = 417; +pub const __NR_mq_timedsend_time64: u32 = 418; +pub const __NR_mq_timedreceive_time64: u32 = 419; +pub const __NR_semtimedop_time64: u32 = 420; +pub const __NR_rt_sigtimedwait_time64: u32 = 421; +pub const __NR_futex_time64: u32 = 422; +pub const __NR_sched_rr_get_interval_time64: u32 = 423; +pub const __NR_pidfd_send_signal: u32 = 424; +pub const __NR_io_uring_setup: u32 = 425; +pub const __NR_io_uring_enter: u32 = 426; +pub const __NR_io_uring_register: u32 = 427; +pub const __NR_open_tree: u32 = 428; +pub const __NR_move_mount: u32 = 429; +pub const __NR_fsopen: u32 = 430; +pub const __NR_fsconfig: u32 = 431; +pub const __NR_fsmount: u32 = 432; +pub const __NR_fspick: u32 = 433; +pub const __NR_pidfd_open: u32 = 434; +pub const __NR_close_range: u32 = 436; +pub const __NR_openat2: u32 = 437; +pub const __NR_pidfd_getfd: u32 = 438; +pub const __NR_faccessat2: u32 = 439; +pub const __NR_process_madvise: u32 = 440; +pub const __NR_epoll_pwait2: u32 = 441; +pub const __NR_mount_setattr: u32 = 442; +pub const __NR_quotactl_fd: u32 = 443; +pub const __NR_landlock_create_ruleset: u32 = 444; +pub const __NR_landlock_add_rule: u32 = 445; +pub const __NR_landlock_restrict_self: u32 = 446; +pub const __NR_process_mrelease: u32 = 448; +pub const __NR_futex_waitv: u32 = 449; +pub const __NR_set_mempolicy_home_node: u32 = 450; +pub const __NR_cachestat: u32 = 451; +pub const __NR_fchmodat2: u32 = 452; +pub const __NR_map_shadow_stack: u32 = 453; +pub const __NR_futex_wake: u32 = 454; +pub const __NR_futex_wait: u32 = 455; +pub const __NR_futex_requeue: u32 = 456; +pub const __NR_statmount: u32 = 457; +pub const __NR_listmount: u32 = 458; +pub const __NR_lsm_get_self_attr: u32 = 459; +pub const __NR_lsm_set_self_attr: u32 = 460; +pub const __NR_lsm_list_modules: u32 = 461; +pub const __NR_mseal: u32 = 462; +pub const __NR_setxattrat: u32 = 463; +pub const __NR_getxattrat: u32 = 464; +pub const __NR_listxattrat: u32 = 465; +pub const __NR_removexattrat: u32 = 466; +pub const __NR_open_tree_attr: u32 = 467; +pub const KERN_FEATURE_MIXED_MODE_STACK: u32 = 1; +pub const WNOHANG: u32 = 1; +pub const WUNTRACED: u32 = 2; +pub const WSTOPPED: u32 = 2; +pub const WEXITED: u32 = 4; +pub const WCONTINUED: u32 = 8; +pub const WNOWAIT: u32 = 16777216; +pub const __WNOTHREAD: u32 = 536870912; +pub const __WALL: u32 = 1073741824; +pub const __WCLONE: u32 = 2147483648; +pub const P_ALL: u32 = 0; +pub const P_PID: u32 = 1; +pub const P_PGID: u32 = 2; +pub const P_PIDFD: u32 = 3; +pub const XATTR_CREATE: u32 = 1; +pub const XATTR_REPLACE: u32 = 2; +pub const XATTR_OS2_PREFIX: &[u8; 5] = b"os2.\0"; +pub const XATTR_MAC_OSX_PREFIX: &[u8; 5] = b"osx.\0"; +pub const XATTR_BTRFS_PREFIX: &[u8; 7] = b"btrfs.\0"; +pub const XATTR_HURD_PREFIX: &[u8; 5] = b"gnu.\0"; +pub const XATTR_SECURITY_PREFIX: &[u8; 10] = b"security.\0"; +pub const XATTR_SYSTEM_PREFIX: &[u8; 8] = b"system.\0"; +pub const XATTR_TRUSTED_PREFIX: &[u8; 9] = b"trusted.\0"; +pub const XATTR_USER_PREFIX: &[u8; 6] = b"user.\0"; +pub const XATTR_EVM_SUFFIX: &[u8; 4] = b"evm\0"; +pub const XATTR_NAME_EVM: &[u8; 13] = b"security.evm\0"; +pub const XATTR_IMA_SUFFIX: &[u8; 4] = b"ima\0"; +pub const XATTR_NAME_IMA: &[u8; 13] = b"security.ima\0"; +pub const XATTR_SELINUX_SUFFIX: &[u8; 8] = b"selinux\0"; +pub const XATTR_NAME_SELINUX: &[u8; 17] = b"security.selinux\0"; +pub const XATTR_SMACK_SUFFIX: &[u8; 8] = b"SMACK64\0"; +pub const XATTR_SMACK_IPIN: &[u8; 12] = b"SMACK64IPIN\0"; +pub const XATTR_SMACK_IPOUT: &[u8; 13] = b"SMACK64IPOUT\0"; +pub const XATTR_SMACK_EXEC: &[u8; 12] = b"SMACK64EXEC\0"; +pub const XATTR_SMACK_TRANSMUTE: &[u8; 17] = b"SMACK64TRANSMUTE\0"; +pub const XATTR_SMACK_MMAP: &[u8; 12] = b"SMACK64MMAP\0"; +pub const XATTR_NAME_SMACK: &[u8; 17] = b"security.SMACK64\0"; +pub const XATTR_NAME_SMACKIPIN: &[u8; 21] = b"security.SMACK64IPIN\0"; +pub const XATTR_NAME_SMACKIPOUT: &[u8; 22] = b"security.SMACK64IPOUT\0"; +pub const XATTR_NAME_SMACKEXEC: &[u8; 21] = b"security.SMACK64EXEC\0"; +pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26] = b"security.SMACK64TRANSMUTE\0"; +pub const XATTR_NAME_SMACKMMAP: &[u8; 21] = b"security.SMACK64MMAP\0"; +pub const XATTR_APPARMOR_SUFFIX: &[u8; 9] = b"apparmor\0"; +pub const XATTR_NAME_APPARMOR: &[u8; 18] = b"security.apparmor\0"; +pub const XATTR_CAPS_SUFFIX: &[u8; 11] = b"capability\0"; +pub const XATTR_NAME_CAPS: &[u8; 20] = b"security.capability\0"; +pub const XATTR_BPF_LSM_SUFFIX: &[u8; 5] = b"bpf.\0"; +pub const XATTR_NAME_BPF_LSM: &[u8; 14] = b"security.bpf.\0"; +pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17] = b"posix_acl_access\0"; +pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24] = b"system.posix_acl_access\0"; +pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18] = b"posix_acl_default\0"; +pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25] = b"system.posix_acl_default\0"; +pub const MFD_CLOEXEC: u32 = 1; +pub const MFD_ALLOW_SEALING: u32 = 2; +pub const MFD_HUGETLB: u32 = 4; +pub const MFD_NOEXEC_SEAL: u32 = 8; +pub const MFD_EXEC: u32 = 16; +pub const MFD_HUGE_SHIFT: u32 = 26; +pub const MFD_HUGE_MASK: u32 = 63; +pub const MFD_HUGE_64KB: u32 = 1073741824; +pub const MFD_HUGE_512KB: u32 = 1275068416; +pub const MFD_HUGE_1MB: u32 = 1342177280; +pub const MFD_HUGE_2MB: u32 = 1409286144; +pub const MFD_HUGE_8MB: u32 = 1543503872; +pub const MFD_HUGE_16MB: u32 = 1610612736; +pub const MFD_HUGE_32MB: u32 = 1677721600; +pub const MFD_HUGE_256MB: u32 = 1879048192; +pub const MFD_HUGE_512MB: u32 = 1946157056; +pub const MFD_HUGE_1GB: u32 = 2013265920; +pub const MFD_HUGE_2GB: u32 = 2080374784; +pub const MFD_HUGE_16GB: u32 = 2281701376; +pub const TFD_TIMER_ABSTIME: u32 = 1; +pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; +pub const TFD_CLOEXEC: u32 = 4194304; +pub const TFD_NONBLOCK: u32 = 16384; +pub const USERFAULTFD_IOC: u32 = 170; +pub const _UFFDIO_REGISTER: u32 = 0; +pub const _UFFDIO_UNREGISTER: u32 = 1; +pub const _UFFDIO_WAKE: u32 = 2; +pub const _UFFDIO_COPY: u32 = 3; +pub const _UFFDIO_ZEROPAGE: u32 = 4; +pub const _UFFDIO_MOVE: u32 = 5; +pub const _UFFDIO_WRITEPROTECT: u32 = 6; +pub const _UFFDIO_CONTINUE: u32 = 7; +pub const _UFFDIO_POISON: u32 = 8; +pub const _UFFDIO_API: u32 = 63; +pub const UFFDIO: u32 = 170; +pub const UFFD_EVENT_PAGEFAULT: u32 = 18; +pub const UFFD_EVENT_FORK: u32 = 19; +pub const UFFD_EVENT_REMAP: u32 = 20; +pub const UFFD_EVENT_REMOVE: u32 = 21; +pub const UFFD_EVENT_UNMAP: u32 = 22; +pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; +pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; +pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; +pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; +pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; +pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; +pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; +pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; +pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; +pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; +pub const UFFD_FEATURE_SIGBUS: u32 = 128; +pub const UFFD_FEATURE_THREAD_ID: u32 = 256; +pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; +pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; +pub const UFFD_FEATURE_EXACT_ADDRESS: u32 = 2048; +pub const UFFD_FEATURE_WP_HUGETLBFS_SHMEM: u32 = 4096; +pub const UFFD_FEATURE_WP_UNPOPULATED: u32 = 8192; +pub const UFFD_FEATURE_POISON: u32 = 16384; +pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; +pub const UFFD_FEATURE_MOVE: u32 = 65536; +pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const DT_UNKNOWN: u32 = 0; +pub const DT_FIFO: u32 = 1; +pub const DT_CHR: u32 = 2; +pub const DT_DIR: u32 = 4; +pub const DT_BLK: u32 = 6; +pub const DT_REG: u32 = 8; +pub const DT_LNK: u32 = 10; +pub const DT_SOCK: u32 = 12; +pub const STAT_HAVE_NSEC: u32 = 1; +pub const F_OK: u32 = 0; +pub const R_OK: u32 = 4; +pub const W_OK: u32 = 2; +pub const X_OK: u32 = 1; +pub const UTIME_NOW: u32 = 1073741823; +pub const UTIME_OMIT: u32 = 1073741822; +pub const MNT_FORCE: u32 = 1; +pub const MNT_DETACH: u32 = 2; +pub const MNT_EXPIRE: u32 = 4; +pub const UMOUNT_NOFOLLOW: u32 = 8; +pub const UMOUNT_UNUSED: u32 = 2147483648; +pub const STDIN_FILENO: u32 = 0; +pub const STDOUT_FILENO: u32 = 1; +pub const STDERR_FILENO: u32 = 2; +pub const RWF_HIPRI: u32 = 1; +pub const RWF_DSYNC: u32 = 2; +pub const RWF_SYNC: u32 = 4; +pub const RWF_NOWAIT: u32 = 8; +pub const RWF_APPEND: u32 = 16; +pub const EFD_SEMAPHORE: u32 = 1; +pub const EFD_CLOEXEC: u32 = 4194304; +pub const EFD_NONBLOCK: u32 = 16384; +pub const EPOLLIN: u32 = 1; +pub const EPOLLPRI: u32 = 2; +pub const EPOLLOUT: u32 = 4; +pub const EPOLLERR: u32 = 8; +pub const EPOLLHUP: u32 = 16; +pub const EPOLLNVAL: u32 = 32; +pub const EPOLLRDNORM: u32 = 64; +pub const EPOLLRDBAND: u32 = 128; +pub const EPOLLWRNORM: u32 = 256; +pub const EPOLLWRBAND: u32 = 512; +pub const EPOLLMSG: u32 = 1024; +pub const EPOLLRDHUP: u32 = 8192; +pub const EPOLLEXCLUSIVE: u32 = 268435456; +pub const EPOLLWAKEUP: u32 = 536870912; +pub const EPOLLONESHOT: u32 = 1073741824; +pub const EPOLLET: u32 = 2147483648; +pub const TFD_SHARED_FCNTL_FLAGS: u32 = 4210688; +pub const TFD_CREATE_FLAGS: u32 = 4210688; +pub const TFD_SETTIME_FLAGS: u32 = 1; +pub const UFFD_API: u32 = 170; +pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; +pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; +pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; +pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; +pub const UFFDIO_COPY_MODE_WP: u32 = 2; +pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; +pub const SPLICE_F_MOVE: u32 = 1; +pub const SPLICE_F_NONBLOCK: u32 = 2; +pub const SPLICE_F_MORE: u32 = 4; +pub const SPLICE_F_GIFT: u32 = 8; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum fsconfig_command { +FSCONFIG_SET_FLAG = 0, +FSCONFIG_SET_STRING = 1, +FSCONFIG_SET_BINARY = 2, +FSCONFIG_SET_PATH = 3, +FSCONFIG_SET_PATH_EMPTY = 4, +FSCONFIG_SET_FD = 5, +FSCONFIG_CMD_CREATE = 6, +FSCONFIG_CMD_RECONFIGURE = 7, +FSCONFIG_CMD_CREATE_EXCL = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum procmap_query_flags { +PROCMAP_QUERY_VMA_READABLE = 1, +PROCMAP_QUERY_VMA_WRITABLE = 2, +PROCMAP_QUERY_VMA_EXECUTABLE = 4, +PROCMAP_QUERY_VMA_SHARED = 8, +PROCMAP_QUERY_COVERING_OR_NEXT_VMA = 16, +PROCMAP_QUERY_FILE_BACKED_VMA = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum membarrier_cmd { +MEMBARRIER_CMD_QUERY = 0, +MEMBARRIER_CMD_GLOBAL = 1, +MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, +MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, +MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, +MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, +MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, +MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, +MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, +MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, +MEMBARRIER_CMD_GET_REGISTRATIONS = 512, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum membarrier_cmd_flag { +MEMBARRIER_CMD_FLAG_CPU = 1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { +pub version: __u8, +pub v1: fscrypt_policy_v1, +pub v2: fscrypt_policy_v2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_key_specifier__bindgen_ty_1 { +pub __reserved: [__u8; 32usize], +pub descriptor: [__u8; 8usize], +pub identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union sigval { +pub sival_int: crate::ctypes::c_int, +pub sival_ptr: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __sifields { +pub _kill: __sifields__bindgen_ty_1, +pub _timer: __sifields__bindgen_ty_2, +pub _rt: __sifields__bindgen_ty_3, +pub _sigchld: __sifields__bindgen_ty_4, +pub _sigfault: __sifields__bindgen_ty_5, +pub _sigpoll: __sifields__bindgen_ty_6, +pub _sigsys: __sifields__bindgen_ty_7, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __sifields__bindgen_ty_5__bindgen_ty_1 { +pub _trapno: crate::ctypes::c_int, +pub _addr_lsb: crate::ctypes::c_short, +pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, +pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, +pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union siginfo__bindgen_ty_1 { +pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, +pub _si_pad: [crate::ctypes::c_int; 32usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union sigevent__bindgen_ty_1 { +pub _pad: [crate::ctypes::c_int; 13usize], +pub _tid: crate::ctypes::c_int, +pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union uffd_msg__bindgen_ty_1 { +pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, +pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, +pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, +pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, +pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { +pub ptid: __u32, +} +impl __BindgenBitfieldUnit { +#[inline] +pub const fn new(storage: Storage) -> Self { +Self { storage } +} +} +impl __BindgenBitfieldUnit +where +Storage: AsRef<[u8]> + AsMut<[u8]>, +{ +#[inline] +fn extract_bit(byte: u8, index: usize) -> bool { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +byte & mask == mask +} +#[inline] +pub fn get_bit(&self, index: usize) -> bool { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = self.storage.as_ref()[byte_index]; +Self::extract_bit(byte, index) +} +#[inline] +pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; +Self::extract_bit(byte, index) +} +#[inline] +fn change_bit(byte: u8, index: usize, val: bool) -> u8 { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +if val { +byte | mask +} else { +byte & !mask +} +} +#[inline] +pub fn set_bit(&mut self, index: usize, val: bool) { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = &mut self.storage.as_mut()[byte_index]; +*byte = Self::change_bit(*byte, index, val); +} +#[inline] +pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; +} +#[inline] +pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if self.get_bit(i + bit_offset) { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +self.set_bit(index + bit_offset, val_bit_is_set); +} +} +#[inline] +pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +} +} +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl membarrier_cmd { +pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; +} +impl user_desc { +#[inline] +pub fn seg_32bit(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn contents(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +} +#[inline] +pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 2u8, val as u64) +} +} +#[inline] +pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +} +#[inline] +pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +} +} +#[inline] +pub fn read_exec_only(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +} +#[inline] +pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +} +} +#[inline] +pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +} +#[inline] +pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +} +} +#[inline] +pub fn seg_not_present(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +} +#[inline] +pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(5usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +} +} +#[inline] +pub fn useable(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +} +#[inline] +pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(6usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; +seg_32bit as u64 +}); +__bindgen_bitfield_unit.set(1usize, 2u8, { +let contents: u32 = unsafe { ::core::mem::transmute(contents) }; +contents as u64 +}); +__bindgen_bitfield_unit.set(3usize, 1u8, { +let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; +read_exec_only as u64 +}); +__bindgen_bitfield_unit.set(4usize, 1u8, { +let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; +limit_in_pages as u64 +}); +__bindgen_bitfield_unit.set(5usize, 1u8, { +let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; +seg_not_present as u64 +}); +__bindgen_bitfield_unit.set(6usize, 1u8, { +let useable: u32 = unsafe { ::core::mem::transmute(useable) }; +useable as u64 +}); +__bindgen_bitfield_unit +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/if_arp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/if_arp.rs new file mode 100644 index 0000000000000000000000000000000000000000..ca73ea07d48dfcf47883e88834b70cd38461d281 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/if_arp.rs @@ -0,0 +1,3005 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_daddr_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_sa_family_t = crate::ctypes::c_ushort; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __kernel_sockaddr_storage { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { +pub ss_family: __kernel_sa_family_t, +pub __data: [crate::ctypes::c_char; 126usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sockaddr { +pub __storage: __kernel_sockaddr_storage, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sync_serial_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct te1_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +pub slot_map: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct raw_hdlc_proto { +pub encoding: crate::ctypes::c_ushort, +pub parity: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto { +pub t391: crate::ctypes::c_uint, +pub t392: crate::ctypes::c_uint, +pub n391: crate::ctypes::c_uint, +pub n392: crate::ctypes::c_uint, +pub n393: crate::ctypes::c_uint, +pub lmi: crate::ctypes::c_ushort, +pub dce: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc { +pub dlci: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc_info { +pub dlci: crate::ctypes::c_uint, +pub master: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cisco_proto { +pub interval: crate::ctypes::c_uint, +pub timeout: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct x25_hdlc_proto { +pub dce: crate::ctypes::c_ushort, +pub modulo: crate::ctypes::c_uint, +pub window: crate::ctypes::c_uint, +pub t1: crate::ctypes::c_uint, +pub t2: crate::ctypes::c_uint, +pub n2: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifmap { +pub mem_start: crate::ctypes::c_ulong, +pub mem_end: crate::ctypes::c_ulong, +pub base_addr: crate::ctypes::c_ushort, +pub irq: crate::ctypes::c_uchar, +pub dma: crate::ctypes::c_uchar, +pub port: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct if_settings { +pub type_: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +pub ifs_ifsu: if_settings__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifreq { +pub ifr_ifrn: ifreq__bindgen_ty_1, +pub ifr_ifru: ifreq__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifconf { +pub ifc_len: crate::ctypes::c_int, +pub ifc_ifcu: ifconf__bindgen_ty_1, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct ethhdr { +pub h_dest: [crate::ctypes::c_uchar; 6usize], +pub h_source: [crate::ctypes::c_uchar; 6usize], +pub h_proto: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_pkt { +pub spkt_family: crate::ctypes::c_ushort, +pub spkt_device: [crate::ctypes::c_uchar; 14usize], +pub spkt_protocol: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_ll { +pub sll_family: crate::ctypes::c_ushort, +pub sll_protocol: __be16, +pub sll_ifindex: crate::ctypes::c_int, +pub sll_hatype: crate::ctypes::c_ushort, +pub sll_pkttype: crate::ctypes::c_uchar, +pub sll_halen: crate::ctypes::c_uchar, +pub sll_addr: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats_v3 { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +pub tp_freeze_q_cnt: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_rollover_stats { +pub tp_all: __u64, +pub tp_huge: __u64, +pub tp_failed: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_auxdata { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr { +pub tp_status: crate::ctypes::c_ulong, +pub tp_len: crate::ctypes::c_uint, +pub tp_snaplen: crate::ctypes::c_uint, +pub tp_mac: crate::ctypes::c_ushort, +pub tp_net: crate::ctypes::c_ushort, +pub tp_sec: crate::ctypes::c_uint, +pub tp_usec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket2_hdr { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +pub tp_padding: [__u8; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr_variant1 { +pub tp_rxhash: __u32, +pub tp_vlan_tci: __u32, +pub tp_vlan_tpid: __u16, +pub tp_padding: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket3_hdr { +pub tp_next_offset: __u32, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_snaplen: __u32, +pub tp_len: __u32, +pub tp_status: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub __bindgen_anon_1: tpacket3_hdr__bindgen_ty_1, +pub tp_padding: [__u8; 8usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_bd_ts { +pub ts_sec: crate::ctypes::c_uint, +pub __bindgen_anon_1: tpacket_bd_ts__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_hdr_v1 { +pub block_status: __u32, +pub num_pkts: __u32, +pub offset_to_first_pkt: __u32, +pub blk_len: __u32, +pub seq_num: __u64, +pub ts_first_pkt: tpacket_bd_ts, +pub ts_last_pkt: tpacket_bd_ts, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_block_desc { +pub version: __u32, +pub offset_to_priv: __u32, +pub hdr: tpacket_bd_header_u, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req3 { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +pub tp_retire_blk_tov: crate::ctypes::c_uint, +pub tp_sizeof_priv: crate::ctypes::c_uint, +pub tp_feature_req_word: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct packet_mreq { +pub mr_ifindex: crate::ctypes::c_int, +pub mr_type: crate::ctypes::c_ushort, +pub mr_alen: crate::ctypes::c_ushort, +pub mr_address: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fanout_args { +pub type_flags: __u16, +pub id: __u16, +pub max_num_members: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_nl { +pub nl_family: __kernel_sa_family_t, +pub nl_pad: crate::ctypes::c_ushort, +pub nl_pid: __u32, +pub nl_groups: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsghdr { +pub nlmsg_len: __u32, +pub nlmsg_type: __u16, +pub nlmsg_flags: __u16, +pub nlmsg_seq: __u32, +pub nlmsg_pid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsgerr { +pub error: crate::ctypes::c_int, +pub msg: nlmsghdr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_pktinfo { +pub group: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_req { +pub nm_block_size: crate::ctypes::c_uint, +pub nm_block_nr: crate::ctypes::c_uint, +pub nm_frame_size: crate::ctypes::c_uint, +pub nm_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_hdr { +pub nm_status: crate::ctypes::c_uint, +pub nm_len: crate::ctypes::c_uint, +pub nm_group: __u32, +pub nm_pid: __u32, +pub nm_uid: __u32, +pub nm_gid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlattr { +pub nla_len: __u16, +pub nla_type: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nla_bitfield32 { +pub value: __u32, +pub selector: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats { +pub rx_packets: __u32, +pub tx_packets: __u32, +pub rx_bytes: __u32, +pub tx_bytes: __u32, +pub rx_errors: __u32, +pub tx_errors: __u32, +pub rx_dropped: __u32, +pub tx_dropped: __u32, +pub multicast: __u32, +pub collisions: __u32, +pub rx_length_errors: __u32, +pub rx_over_errors: __u32, +pub rx_crc_errors: __u32, +pub rx_frame_errors: __u32, +pub rx_fifo_errors: __u32, +pub rx_missed_errors: __u32, +pub tx_aborted_errors: __u32, +pub tx_carrier_errors: __u32, +pub tx_fifo_errors: __u32, +pub tx_heartbeat_errors: __u32, +pub tx_window_errors: __u32, +pub rx_compressed: __u32, +pub tx_compressed: __u32, +pub rx_nohandler: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +pub collisions: __u64, +pub rx_length_errors: __u64, +pub rx_over_errors: __u64, +pub rx_crc_errors: __u64, +pub rx_frame_errors: __u64, +pub rx_fifo_errors: __u64, +pub rx_missed_errors: __u64, +pub tx_aborted_errors: __u64, +pub tx_carrier_errors: __u64, +pub tx_fifo_errors: __u64, +pub tx_heartbeat_errors: __u64, +pub tx_window_errors: __u64, +pub rx_compressed: __u64, +pub tx_compressed: __u64, +pub rx_nohandler: __u64, +pub rx_otherhost_dropped: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_hw_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_ifmap { +pub mem_start: __u64, +pub mem_end: __u64, +pub base_addr: __u64, +pub irq: __u16, +pub dma: __u8, +pub port: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_bridge_id { +pub prio: [__u8; 2usize], +pub addr: [__u8; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_cacheinfo { +pub max_reasm_len: __u32, +pub tstamp: __u32, +pub reachable_time: __u32, +pub retrans_time: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_qos_mapping { +pub from: __u32, +pub to: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tunnel_msg { +pub family: __u8, +pub flags: __u8, +pub reserved2: __u16, +pub ifindex: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vxlan_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_geneve_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_mac { +pub vf: __u32, +pub mac: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_broadcast { +pub broadcast: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan_info { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +pub vlan_proto: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_tx_rate { +pub vf: __u32, +pub rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rate { +pub vf: __u32, +pub min_tx_rate: __u32, +pub max_tx_rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_spoofchk { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_guid { +pub vf: __u32, +pub guid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_link_state { +pub vf: __u32, +pub link_state: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rss_query_en { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_trust { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_port_vsi { +pub vsi_mgr_id: __u8, +pub vsi_type_id: [__u8; 3usize], +pub vsi_type_version: __u8, +pub pad: [__u8; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct if_stats_msg { +pub family: __u8, +pub pad1: __u8, +pub pad2: __u16, +pub ifindex: __u32, +pub filter_mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_rmnet_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct arpreq { +pub arp_pa: sockaddr, +pub arp_ha: sockaddr, +pub arp_flags: crate::ctypes::c_int, +pub arp_netmask: sockaddr, +pub arp_dev: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct arpreq_old { +pub arp_pa: sockaddr, +pub arp_ha: sockaddr, +pub arp_flags: crate::ctypes::c_int, +pub arp_netmask: sockaddr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct arphdr { +pub ar_hrd: __be16, +pub ar_pro: __be16, +pub ar_hln: crate::ctypes::c_uchar, +pub ar_pln: crate::ctypes::c_uchar, +pub ar_op: __be16, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _K_SS_MAXSIZE: u32 = 128; +pub const SOCK_SNDBUF_LOCK: u32 = 1; +pub const SOCK_RCVBUF_LOCK: u32 = 2; +pub const SOCK_BUF_LOCK_MASK: u32 = 3; +pub const SOCK_TXREHASH_DEFAULT: u32 = 255; +pub const SOCK_TXREHASH_DISABLED: u32 = 0; +pub const SOCK_TXREHASH_ENABLED: u32 = 1; +pub const IFNAMSIZ: u32 = 16; +pub const IFALIASZ: u32 = 256; +pub const ALTIFNAMSIZ: u32 = 128; +pub const GENERIC_HDLC_VERSION: u32 = 4; +pub const CLOCK_DEFAULT: u32 = 0; +pub const CLOCK_EXT: u32 = 1; +pub const CLOCK_INT: u32 = 2; +pub const CLOCK_TXINT: u32 = 3; +pub const CLOCK_TXFROMRX: u32 = 4; +pub const ENCODING_DEFAULT: u32 = 0; +pub const ENCODING_NRZ: u32 = 1; +pub const ENCODING_NRZI: u32 = 2; +pub const ENCODING_FM_MARK: u32 = 3; +pub const ENCODING_FM_SPACE: u32 = 4; +pub const ENCODING_MANCHESTER: u32 = 5; +pub const PARITY_DEFAULT: u32 = 0; +pub const PARITY_NONE: u32 = 1; +pub const PARITY_CRC16_PR0: u32 = 2; +pub const PARITY_CRC16_PR1: u32 = 3; +pub const PARITY_CRC16_PR0_CCITT: u32 = 4; +pub const PARITY_CRC16_PR1_CCITT: u32 = 5; +pub const PARITY_CRC32_PR0_CCITT: u32 = 6; +pub const PARITY_CRC32_PR1_CCITT: u32 = 7; +pub const LMI_DEFAULT: u32 = 0; +pub const LMI_NONE: u32 = 1; +pub const LMI_ANSI: u32 = 2; +pub const LMI_CCITT: u32 = 3; +pub const LMI_CISCO: u32 = 4; +pub const IF_GET_IFACE: u32 = 1; +pub const IF_GET_PROTO: u32 = 2; +pub const IF_IFACE_V35: u32 = 4096; +pub const IF_IFACE_V24: u32 = 4097; +pub const IF_IFACE_X21: u32 = 4098; +pub const IF_IFACE_T1: u32 = 4099; +pub const IF_IFACE_E1: u32 = 4100; +pub const IF_IFACE_SYNC_SERIAL: u32 = 4101; +pub const IF_IFACE_X21D: u32 = 4102; +pub const IF_PROTO_HDLC: u32 = 8192; +pub const IF_PROTO_PPP: u32 = 8193; +pub const IF_PROTO_CISCO: u32 = 8194; +pub const IF_PROTO_FR: u32 = 8195; +pub const IF_PROTO_FR_ADD_PVC: u32 = 8196; +pub const IF_PROTO_FR_DEL_PVC: u32 = 8197; +pub const IF_PROTO_X25: u32 = 8198; +pub const IF_PROTO_HDLC_ETH: u32 = 8199; +pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200; +pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201; +pub const IF_PROTO_FR_PVC: u32 = 8202; +pub const IF_PROTO_FR_ETH_PVC: u32 = 8203; +pub const IF_PROTO_RAW: u32 = 8204; +pub const IFHWADDRLEN: u32 = 6; +pub const ETH_ALEN: u32 = 6; +pub const ETH_TLEN: u32 = 2; +pub const ETH_HLEN: u32 = 14; +pub const ETH_ZLEN: u32 = 60; +pub const ETH_DATA_LEN: u32 = 1500; +pub const ETH_FRAME_LEN: u32 = 1514; +pub const ETH_FCS_LEN: u32 = 4; +pub const ETH_MIN_MTU: u32 = 68; +pub const ETH_MAX_MTU: u32 = 65535; +pub const ETH_P_LOOP: u32 = 96; +pub const ETH_P_PUP: u32 = 512; +pub const ETH_P_PUPAT: u32 = 513; +pub const ETH_P_TSN: u32 = 8944; +pub const ETH_P_ERSPAN2: u32 = 8939; +pub const ETH_P_IP: u32 = 2048; +pub const ETH_P_X25: u32 = 2053; +pub const ETH_P_ARP: u32 = 2054; +pub const ETH_P_BPQ: u32 = 2303; +pub const ETH_P_IEEEPUP: u32 = 2560; +pub const ETH_P_IEEEPUPAT: u32 = 2561; +pub const ETH_P_BATMAN: u32 = 17157; +pub const ETH_P_DEC: u32 = 24576; +pub const ETH_P_DNA_DL: u32 = 24577; +pub const ETH_P_DNA_RC: u32 = 24578; +pub const ETH_P_DNA_RT: u32 = 24579; +pub const ETH_P_LAT: u32 = 24580; +pub const ETH_P_DIAG: u32 = 24581; +pub const ETH_P_CUST: u32 = 24582; +pub const ETH_P_SCA: u32 = 24583; +pub const ETH_P_TEB: u32 = 25944; +pub const ETH_P_RARP: u32 = 32821; +pub const ETH_P_ATALK: u32 = 32923; +pub const ETH_P_AARP: u32 = 33011; +pub const ETH_P_8021Q: u32 = 33024; +pub const ETH_P_ERSPAN: u32 = 35006; +pub const ETH_P_IPX: u32 = 33079; +pub const ETH_P_IPV6: u32 = 34525; +pub const ETH_P_PAUSE: u32 = 34824; +pub const ETH_P_SLOW: u32 = 34825; +pub const ETH_P_WCCP: u32 = 34878; +pub const ETH_P_MPLS_UC: u32 = 34887; +pub const ETH_P_MPLS_MC: u32 = 34888; +pub const ETH_P_ATMMPOA: u32 = 34892; +pub const ETH_P_PPP_DISC: u32 = 34915; +pub const ETH_P_PPP_SES: u32 = 34916; +pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_ATMFATE: u32 = 34948; +pub const ETH_P_PAE: u32 = 34958; +pub const ETH_P_PROFINET: u32 = 34962; +pub const ETH_P_REALTEK: u32 = 34969; +pub const ETH_P_AOE: u32 = 34978; +pub const ETH_P_ETHERCAT: u32 = 34980; +pub const ETH_P_8021AD: u32 = 34984; +pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_PREAUTH: u32 = 35015; +pub const ETH_P_TIPC: u32 = 35018; +pub const ETH_P_LLDP: u32 = 35020; +pub const ETH_P_MRP: u32 = 35043; +pub const ETH_P_MACSEC: u32 = 35045; +pub const ETH_P_8021AH: u32 = 35047; +pub const ETH_P_MVRP: u32 = 35061; +pub const ETH_P_1588: u32 = 35063; +pub const ETH_P_NCSI: u32 = 35064; +pub const ETH_P_PRP: u32 = 35067; +pub const ETH_P_CFM: u32 = 35074; +pub const ETH_P_FCOE: u32 = 35078; +pub const ETH_P_IBOE: u32 = 35093; +pub const ETH_P_TDLS: u32 = 35085; +pub const ETH_P_FIP: u32 = 35092; +pub const ETH_P_80221: u32 = 35095; +pub const ETH_P_HSR: u32 = 35119; +pub const ETH_P_NSH: u32 = 35151; +pub const ETH_P_LOOPBACK: u32 = 36864; +pub const ETH_P_QINQ1: u32 = 37120; +pub const ETH_P_QINQ2: u32 = 37376; +pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_EDSA: u32 = 56026; +pub const ETH_P_DSA_8021Q: u32 = 56027; +pub const ETH_P_DSA_A5PSW: u32 = 57345; +pub const ETH_P_IFE: u32 = 60734; +pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_802_3_MIN: u32 = 1536; +pub const ETH_P_802_3: u32 = 1; +pub const ETH_P_AX25: u32 = 2; +pub const ETH_P_ALL: u32 = 3; +pub const ETH_P_802_2: u32 = 4; +pub const ETH_P_SNAP: u32 = 5; +pub const ETH_P_DDCMP: u32 = 6; +pub const ETH_P_WAN_PPP: u32 = 7; +pub const ETH_P_PPP_MP: u32 = 8; +pub const ETH_P_LOCALTALK: u32 = 9; +pub const ETH_P_CAN: u32 = 12; +pub const ETH_P_CANFD: u32 = 13; +pub const ETH_P_CANXL: u32 = 14; +pub const ETH_P_PPPTALK: u32 = 16; +pub const ETH_P_TR_802_2: u32 = 17; +pub const ETH_P_MOBITEX: u32 = 21; +pub const ETH_P_CONTROL: u32 = 22; +pub const ETH_P_IRDA: u32 = 23; +pub const ETH_P_ECONET: u32 = 24; +pub const ETH_P_HDLC: u32 = 25; +pub const ETH_P_ARCNET: u32 = 26; +pub const ETH_P_DSA: u32 = 27; +pub const ETH_P_TRAILER: u32 = 28; +pub const ETH_P_PHONET: u32 = 245; +pub const ETH_P_IEEE802154: u32 = 246; +pub const ETH_P_CAIF: u32 = 247; +pub const ETH_P_XDSA: u32 = 248; +pub const ETH_P_MAP: u32 = 249; +pub const ETH_P_MCTP: u32 = 250; +pub const __BIG_ENDIAN: u32 = 4321; +pub const ASI_NULL1: u32 = 0; +pub const ASI_NULL2: u32 = 1; +pub const ASI_CONTROL: u32 = 2; +pub const ASI_SEGMAP: u32 = 3; +pub const ASI_PTE: u32 = 4; +pub const ASI_HWFLUSHSEG: u32 = 5; +pub const ASI_HWFLUSHPAGE: u32 = 6; +pub const ASI_REGMAP: u32 = 6; +pub const ASI_HWFLUSHCONTEXT: u32 = 7; +pub const ASI_USERTXT: u32 = 8; +pub const ASI_KERNELTXT: u32 = 9; +pub const ASI_USERDATA: u32 = 10; +pub const ASI_KERNELDATA: u32 = 11; +pub const ASI_FLUSHSEG: u32 = 12; +pub const ASI_FLUSHPG: u32 = 13; +pub const ASI_FLUSHCTX: u32 = 14; +pub const ASI_M_RES00: u32 = 0; +pub const ASI_M_UNA01: u32 = 1; +pub const ASI_M_MXCC: u32 = 2; +pub const ASI_M_FLUSH_PROBE: u32 = 3; +pub const ASI_M_MMUREGS: u32 = 4; +pub const ASI_M_TLBDIAG: u32 = 5; +pub const ASI_M_DIAGS: u32 = 6; +pub const ASI_M_IODIAG: u32 = 7; +pub const ASI_M_USERTXT: u32 = 8; +pub const ASI_M_KERNELTXT: u32 = 9; +pub const ASI_M_USERDATA: u32 = 10; +pub const ASI_M_KERNELDATA: u32 = 11; +pub const ASI_M_TXTC_TAG: u32 = 12; +pub const ASI_M_TXTC_DATA: u32 = 13; +pub const ASI_M_DATAC_TAG: u32 = 14; +pub const ASI_M_DATAC_DATA: u32 = 15; +pub const ASI_M_FLUSH_PAGE: u32 = 16; +pub const ASI_M_FLUSH_SEG: u32 = 17; +pub const ASI_M_FLUSH_REGION: u32 = 18; +pub const ASI_M_FLUSH_CTX: u32 = 19; +pub const ASI_M_FLUSH_USER: u32 = 20; +pub const ASI_M_BCOPY: u32 = 23; +pub const ASI_M_IFLUSH_PAGE: u32 = 24; +pub const ASI_M_IFLUSH_SEG: u32 = 25; +pub const ASI_M_IFLUSH_REGION: u32 = 26; +pub const ASI_M_IFLUSH_CTX: u32 = 27; +pub const ASI_M_IFLUSH_USER: u32 = 28; +pub const ASI_M_BFILL: u32 = 31; +pub const ASI_M_BYPASS: u32 = 32; +pub const ASI_M_FBMEM: u32 = 41; +pub const ASI_M_VMEUS: u32 = 42; +pub const ASI_M_VMEPS: u32 = 43; +pub const ASI_M_VMEUT: u32 = 44; +pub const ASI_M_VMEPT: u32 = 45; +pub const ASI_M_SBUS: u32 = 46; +pub const ASI_M_CTL: u32 = 47; +pub const ASI_M_FLUSH_IWHOLE: u32 = 49; +pub const ASI_M_IC_FLCLEAR: u32 = 54; +pub const ASI_M_DC_FLCLEAR: u32 = 55; +pub const ASI_M_DCDR: u32 = 57; +pub const ASI_M_VIKING_TMP1: u32 = 64; +pub const ASI_M_ACTION: u32 = 76; +pub const ASI_LEON_NOCACHE: u32 = 1; +pub const ASI_LEON_DCACHE_MISS: u32 = 1; +pub const ASI_LEON_CACHEREGS: u32 = 2; +pub const ASI_LEON_IFLUSH: u32 = 16; +pub const ASI_LEON_DFLUSH: u32 = 17; +pub const ASI_LEON_MMUFLUSH: u32 = 24; +pub const ASI_LEON_MMUREGS: u32 = 25; +pub const ASI_LEON_BYPASS: u32 = 28; +pub const ASI_LEON_FLUSH_PAGE: u32 = 16; +pub const ASI_N: u32 = 4; +pub const ASI_NL: u32 = 12; +pub const ASI_AIUP: u32 = 16; +pub const ASI_AIUS: u32 = 17; +pub const ASI_AIUPL: u32 = 24; +pub const ASI_AIUSL: u32 = 25; +pub const ASI_P: u32 = 128; +pub const ASI_S: u32 = 129; +pub const ASI_PNF: u32 = 130; +pub const ASI_SNF: u32 = 131; +pub const ASI_PL: u32 = 136; +pub const ASI_SL: u32 = 137; +pub const ASI_PNFL: u32 = 138; +pub const ASI_SNFL: u32 = 139; +pub const ASI_MCD_PRIV_PRIMARY: u32 = 2; +pub const ASI_MCD_REAL: u32 = 5; +pub const ASI_PHYS_USE_EC: u32 = 20; +pub const ASI_PHYS_BYPASS_EC_E: u32 = 21; +pub const ASI_BLK_AIUP_4V: u32 = 22; +pub const ASI_BLK_AIUS_4V: u32 = 23; +pub const ASI_PHYS_USE_EC_L: u32 = 28; +pub const ASI_PHYS_BYPASS_EC_E_L: u32 = 29; +pub const ASI_BLK_AIUP_L_4V: u32 = 30; +pub const ASI_BLK_AIUS_L_4V: u32 = 31; +pub const ASI_SCRATCHPAD: u32 = 32; +pub const ASI_MMU: u32 = 33; +pub const ASI_BLK_INIT_QUAD_LDD_AIUS: u32 = 35; +pub const ASI_NUCLEUS_QUAD_LDD: u32 = 36; +pub const ASI_QUEUE: u32 = 37; +pub const ASI_QUAD_LDD_PHYS_4V: u32 = 38; +pub const ASI_NUCLEUS_QUAD_LDD_L: u32 = 44; +pub const ASI_QUAD_LDD_PHYS_L_4V: u32 = 46; +pub const ASI_PCACHE_DATA_STATUS: u32 = 48; +pub const ASI_PCACHE_DATA: u32 = 49; +pub const ASI_PCACHE_TAG: u32 = 50; +pub const ASI_PCACHE_SNOOP_TAG: u32 = 51; +pub const ASI_QUAD_LDD_PHYS: u32 = 52; +pub const ASI_WCACHE_VALID_BITS: u32 = 56; +pub const ASI_WCACHE_DATA: u32 = 57; +pub const ASI_WCACHE_TAG: u32 = 58; +pub const ASI_WCACHE_SNOOP_TAG: u32 = 59; +pub const ASI_QUAD_LDD_PHYS_L: u32 = 60; +pub const ASI_SRAM_FAST_INIT: u32 = 64; +pub const ASI_CORE_AVAILABLE: u32 = 65; +pub const ASI_CORE_ENABLE_STAT: u32 = 65; +pub const ASI_CORE_ENABLE: u32 = 65; +pub const ASI_XIR_STEERING: u32 = 65; +pub const ASI_CORE_RUNNING_RW: u32 = 65; +pub const ASI_CORE_RUNNING_W1S: u32 = 65; +pub const ASI_CORE_RUNNING_W1C: u32 = 65; +pub const ASI_CORE_RUNNING_STAT: u32 = 65; +pub const ASI_CMT_ERROR_STEERING: u32 = 65; +pub const ASI_DCACHE_INVALIDATE: u32 = 66; +pub const ASI_DCACHE_UTAG: u32 = 67; +pub const ASI_DCACHE_SNOOP_TAG: u32 = 68; +pub const ASI_LSU_CONTROL: u32 = 69; +pub const ASI_DCU_CONTROL_REG: u32 = 69; +pub const ASI_DCACHE_DATA: u32 = 70; +pub const ASI_DCACHE_TAG: u32 = 71; +pub const ASI_INTR_DISPATCH_STAT: u32 = 72; +pub const ASI_INTR_RECEIVE: u32 = 73; +pub const ASI_UPA_CONFIG: u32 = 74; +pub const ASI_JBUS_CONFIG: u32 = 74; +pub const ASI_SAFARI_CONFIG: u32 = 74; +pub const ASI_SAFARI_ADDRESS: u32 = 74; +pub const ASI_ESTATE_ERROR_EN: u32 = 75; +pub const ASI_AFSR: u32 = 76; +pub const ASI_AFAR: u32 = 77; +pub const ASI_EC_TAG_DATA: u32 = 78; +pub const ASI_IMMU: u32 = 80; +pub const ASI_IMMU_TSB_8KB_PTR: u32 = 81; +pub const ASI_IMMU_TSB_64KB_PTR: u32 = 82; +pub const ASI_ITLB_DATA_IN: u32 = 84; +pub const ASI_ITLB_DATA_ACCESS: u32 = 85; +pub const ASI_ITLB_TAG_READ: u32 = 86; +pub const ASI_IMMU_DEMAP: u32 = 87; +pub const ASI_DMMU: u32 = 88; +pub const ASI_DMMU_TSB_8KB_PTR: u32 = 89; +pub const ASI_DMMU_TSB_64KB_PTR: u32 = 90; +pub const ASI_DMMU_TSB_DIRECT_PTR: u32 = 91; +pub const ASI_DTLB_DATA_IN: u32 = 92; +pub const ASI_DTLB_DATA_ACCESS: u32 = 93; +pub const ASI_DTLB_TAG_READ: u32 = 94; +pub const ASI_DMMU_DEMAP: u32 = 95; +pub const ASI_IIU_INST_TRAP: u32 = 96; +pub const ASI_INTR_ID: u32 = 99; +pub const ASI_CORE_ID: u32 = 99; +pub const ASI_CESR_ID: u32 = 99; +pub const ASI_IC_INSTR: u32 = 102; +pub const ASI_IC_TAG: u32 = 103; +pub const ASI_IC_STAG: u32 = 104; +pub const ASI_IC_PRE_DECODE: u32 = 110; +pub const ASI_IC_NEXT_FIELD: u32 = 111; +pub const ASI_BRPRED_ARRAY: u32 = 111; +pub const ASI_BLK_AIUP: u32 = 112; +pub const ASI_BLK_AIUS: u32 = 113; +pub const ASI_MCU_CTRL_REG: u32 = 114; +pub const ASI_EC_DATA: u32 = 116; +pub const ASI_EC_CTRL: u32 = 117; +pub const ASI_EC_W: u32 = 118; +pub const ASI_UDB_ERROR_W: u32 = 119; +pub const ASI_UDB_CONTROL_W: u32 = 119; +pub const ASI_INTR_W: u32 = 119; +pub const ASI_INTR_DATAN_W: u32 = 119; +pub const ASI_INTR_DISPATCH_W: u32 = 119; +pub const ASI_BLK_AIUPL: u32 = 120; +pub const ASI_BLK_AIUSL: u32 = 121; +pub const ASI_EC_R: u32 = 126; +pub const ASI_UDBH_ERROR_R: u32 = 127; +pub const ASI_UDBL_ERROR_R: u32 = 127; +pub const ASI_UDBH_CONTROL_R: u32 = 127; +pub const ASI_UDBL_CONTROL_R: u32 = 127; +pub const ASI_INTR_R: u32 = 127; +pub const ASI_INTR_DATAN_R: u32 = 127; +pub const ASI_MCD_PRIMARY: u32 = 144; +pub const ASI_MCD_ST_BLKINIT_PRIMARY: u32 = 146; +pub const ASI_PIC: u32 = 176; +pub const ASI_PST8_P: u32 = 192; +pub const ASI_PST8_S: u32 = 193; +pub const ASI_PST16_P: u32 = 194; +pub const ASI_PST16_S: u32 = 195; +pub const ASI_PST32_P: u32 = 196; +pub const ASI_PST32_S: u32 = 197; +pub const ASI_PST8_PL: u32 = 200; +pub const ASI_PST8_SL: u32 = 201; +pub const ASI_PST16_PL: u32 = 202; +pub const ASI_PST16_SL: u32 = 203; +pub const ASI_PST32_PL: u32 = 204; +pub const ASI_PST32_SL: u32 = 205; +pub const ASI_FL8_P: u32 = 208; +pub const ASI_FL8_S: u32 = 209; +pub const ASI_FL16_P: u32 = 210; +pub const ASI_FL16_S: u32 = 211; +pub const ASI_FL8_PL: u32 = 216; +pub const ASI_FL8_SL: u32 = 217; +pub const ASI_FL16_PL: u32 = 218; +pub const ASI_FL16_SL: u32 = 219; +pub const ASI_BLK_COMMIT_P: u32 = 224; +pub const ASI_BLK_COMMIT_S: u32 = 225; +pub const ASI_BLK_INIT_QUAD_LDD_P: u32 = 226; +pub const ASI_BLK_INIT_QUAD_LDD_S: u32 = 227; +pub const ASI_BLK_P: u32 = 240; +pub const ASI_BLK_S: u32 = 241; +pub const ASI_ST_BLKINIT_MRU_P: u32 = 242; +pub const ASI_ST_BLKINIT_MRU_S: u32 = 243; +pub const ASI_BLK_PL: u32 = 248; +pub const ASI_BLK_SL: u32 = 249; +pub const ASI_ST_BLKINIT_MRU_PL: u32 = 250; +pub const ASI_ST_BLKINIT_MRU_SL: u32 = 251; +pub const PACKET_HOST: u32 = 0; +pub const PACKET_BROADCAST: u32 = 1; +pub const PACKET_MULTICAST: u32 = 2; +pub const PACKET_OTHERHOST: u32 = 3; +pub const PACKET_OUTGOING: u32 = 4; +pub const PACKET_LOOPBACK: u32 = 5; +pub const PACKET_USER: u32 = 6; +pub const PACKET_KERNEL: u32 = 7; +pub const PACKET_FASTROUTE: u32 = 6; +pub const PACKET_ADD_MEMBERSHIP: u32 = 1; +pub const PACKET_DROP_MEMBERSHIP: u32 = 2; +pub const PACKET_RECV_OUTPUT: u32 = 3; +pub const PACKET_RX_RING: u32 = 5; +pub const PACKET_STATISTICS: u32 = 6; +pub const PACKET_COPY_THRESH: u32 = 7; +pub const PACKET_AUXDATA: u32 = 8; +pub const PACKET_ORIGDEV: u32 = 9; +pub const PACKET_VERSION: u32 = 10; +pub const PACKET_HDRLEN: u32 = 11; +pub const PACKET_RESERVE: u32 = 12; +pub const PACKET_TX_RING: u32 = 13; +pub const PACKET_LOSS: u32 = 14; +pub const PACKET_VNET_HDR: u32 = 15; +pub const PACKET_TX_TIMESTAMP: u32 = 16; +pub const PACKET_TIMESTAMP: u32 = 17; +pub const PACKET_FANOUT: u32 = 18; +pub const PACKET_TX_HAS_OFF: u32 = 19; +pub const PACKET_QDISC_BYPASS: u32 = 20; +pub const PACKET_ROLLOVER_STATS: u32 = 21; +pub const PACKET_FANOUT_DATA: u32 = 22; +pub const PACKET_IGNORE_OUTGOING: u32 = 23; +pub const PACKET_VNET_HDR_SZ: u32 = 24; +pub const PACKET_FANOUT_HASH: u32 = 0; +pub const PACKET_FANOUT_LB: u32 = 1; +pub const PACKET_FANOUT_CPU: u32 = 2; +pub const PACKET_FANOUT_ROLLOVER: u32 = 3; +pub const PACKET_FANOUT_RND: u32 = 4; +pub const PACKET_FANOUT_QM: u32 = 5; +pub const PACKET_FANOUT_CBPF: u32 = 6; +pub const PACKET_FANOUT_EBPF: u32 = 7; +pub const PACKET_FANOUT_FLAG_ROLLOVER: u32 = 4096; +pub const PACKET_FANOUT_FLAG_UNIQUEID: u32 = 8192; +pub const PACKET_FANOUT_FLAG_IGNORE_OUTGOING: u32 = 16384; +pub const PACKET_FANOUT_FLAG_DEFRAG: u32 = 32768; +pub const TP_STATUS_KERNEL: u32 = 0; +pub const TP_STATUS_USER: u32 = 1; +pub const TP_STATUS_COPY: u32 = 2; +pub const TP_STATUS_LOSING: u32 = 4; +pub const TP_STATUS_CSUMNOTREADY: u32 = 8; +pub const TP_STATUS_VLAN_VALID: u32 = 16; +pub const TP_STATUS_BLK_TMO: u32 = 32; +pub const TP_STATUS_VLAN_TPID_VALID: u32 = 64; +pub const TP_STATUS_CSUM_VALID: u32 = 128; +pub const TP_STATUS_GSO_TCP: u32 = 256; +pub const TP_STATUS_AVAILABLE: u32 = 0; +pub const TP_STATUS_SEND_REQUEST: u32 = 1; +pub const TP_STATUS_SENDING: u32 = 2; +pub const TP_STATUS_WRONG_FORMAT: u32 = 4; +pub const TP_STATUS_TS_SOFTWARE: u32 = 536870912; +pub const TP_STATUS_TS_SYS_HARDWARE: u32 = 1073741824; +pub const TP_STATUS_TS_RAW_HARDWARE: u32 = 2147483648; +pub const TP_FT_REQ_FILL_RXHASH: u32 = 1; +pub const TPACKET_ALIGNMENT: u32 = 16; +pub const PACKET_MR_MULTICAST: u32 = 0; +pub const PACKET_MR_PROMISC: u32 = 1; +pub const PACKET_MR_ALLMULTI: u32 = 2; +pub const PACKET_MR_UNICAST: u32 = 3; +pub const NETLINK_ROUTE: u32 = 0; +pub const NETLINK_UNUSED: u32 = 1; +pub const NETLINK_USERSOCK: u32 = 2; +pub const NETLINK_FIREWALL: u32 = 3; +pub const NETLINK_SOCK_DIAG: u32 = 4; +pub const NETLINK_NFLOG: u32 = 5; +pub const NETLINK_XFRM: u32 = 6; +pub const NETLINK_SELINUX: u32 = 7; +pub const NETLINK_ISCSI: u32 = 8; +pub const NETLINK_AUDIT: u32 = 9; +pub const NETLINK_FIB_LOOKUP: u32 = 10; +pub const NETLINK_CONNECTOR: u32 = 11; +pub const NETLINK_NETFILTER: u32 = 12; +pub const NETLINK_IP6_FW: u32 = 13; +pub const NETLINK_DNRTMSG: u32 = 14; +pub const NETLINK_KOBJECT_UEVENT: u32 = 15; +pub const NETLINK_GENERIC: u32 = 16; +pub const NETLINK_SCSITRANSPORT: u32 = 18; +pub const NETLINK_ECRYPTFS: u32 = 19; +pub const NETLINK_RDMA: u32 = 20; +pub const NETLINK_CRYPTO: u32 = 21; +pub const NETLINK_SMC: u32 = 22; +pub const NETLINK_INET_DIAG: u32 = 4; +pub const MAX_LINKS: u32 = 32; +pub const NLM_F_REQUEST: u32 = 1; +pub const NLM_F_MULTI: u32 = 2; +pub const NLM_F_ACK: u32 = 4; +pub const NLM_F_ECHO: u32 = 8; +pub const NLM_F_DUMP_INTR: u32 = 16; +pub const NLM_F_DUMP_FILTERED: u32 = 32; +pub const NLM_F_ROOT: u32 = 256; +pub const NLM_F_MATCH: u32 = 512; +pub const NLM_F_ATOMIC: u32 = 1024; +pub const NLM_F_DUMP: u32 = 768; +pub const NLM_F_REPLACE: u32 = 256; +pub const NLM_F_EXCL: u32 = 512; +pub const NLM_F_CREATE: u32 = 1024; +pub const NLM_F_APPEND: u32 = 2048; +pub const NLM_F_NONREC: u32 = 256; +pub const NLM_F_BULK: u32 = 512; +pub const NLM_F_CAPPED: u32 = 256; +pub const NLM_F_ACK_TLVS: u32 = 512; +pub const NLMSG_ALIGNTO: u32 = 4; +pub const NLMSG_NOOP: u32 = 1; +pub const NLMSG_ERROR: u32 = 2; +pub const NLMSG_DONE: u32 = 3; +pub const NLMSG_OVERRUN: u32 = 4; +pub const NLMSG_MIN_TYPE: u32 = 16; +pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; +pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; +pub const NETLINK_PKTINFO: u32 = 3; +pub const NETLINK_BROADCAST_ERROR: u32 = 4; +pub const NETLINK_NO_ENOBUFS: u32 = 5; +pub const NETLINK_RX_RING: u32 = 6; +pub const NETLINK_TX_RING: u32 = 7; +pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; +pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; +pub const NETLINK_CAP_ACK: u32 = 10; +pub const NETLINK_EXT_ACK: u32 = 11; +pub const NETLINK_GET_STRICT_CHK: u32 = 12; +pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; +pub const NET_MAJOR: u32 = 36; +pub const NLA_F_NESTED: u32 = 32768; +pub const NLA_F_NET_BYTEORDER: u32 = 16384; +pub const NLA_TYPE_MASK: i32 = -49153; +pub const NLA_ALIGNTO: u32 = 4; +pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; +pub const MACVLAN_FLAG_NODST: u32 = 2; +pub const IPVLAN_F_PRIVATE: u32 = 1; +pub const IPVLAN_F_VEPA: u32 = 2; +pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; +pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; +pub const MAX_VLAN_LIST_LEN: u32 = 1; +pub const PORT_PROFILE_MAX: u32 = 40; +pub const PORT_UUID_MAX: u32 = 16; +pub const PORT_SELF_VF: i32 = -1; +pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; +pub const XDP_FLAGS_SKB_MODE: u32 = 2; +pub const XDP_FLAGS_DRV_MODE: u32 = 4; +pub const XDP_FLAGS_HW_MODE: u32 = 8; +pub const XDP_FLAGS_REPLACE: u32 = 16; +pub const XDP_FLAGS_MODES: u32 = 14; +pub const XDP_FLAGS_MASK: u32 = 31; +pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; +pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; +pub const MAX_ADDR_LEN: u32 = 32; +pub const INIT_NETDEV_GROUP: u32 = 0; +pub const NET_NAME_UNKNOWN: u32 = 0; +pub const NET_NAME_ENUM: u32 = 1; +pub const NET_NAME_PREDICTABLE: u32 = 2; +pub const NET_NAME_USER: u32 = 3; +pub const NET_NAME_RENAMED: u32 = 4; +pub const NET_ADDR_PERM: u32 = 0; +pub const NET_ADDR_RANDOM: u32 = 1; +pub const NET_ADDR_STOLEN: u32 = 2; +pub const NET_ADDR_SET: u32 = 3; +pub const ARPHRD_NETROM: u32 = 0; +pub const ARPHRD_ETHER: u32 = 1; +pub const ARPHRD_EETHER: u32 = 2; +pub const ARPHRD_AX25: u32 = 3; +pub const ARPHRD_PRONET: u32 = 4; +pub const ARPHRD_CHAOS: u32 = 5; +pub const ARPHRD_IEEE802: u32 = 6; +pub const ARPHRD_ARCNET: u32 = 7; +pub const ARPHRD_APPLETLK: u32 = 8; +pub const ARPHRD_DLCI: u32 = 15; +pub const ARPHRD_ATM: u32 = 19; +pub const ARPHRD_METRICOM: u32 = 23; +pub const ARPHRD_IEEE1394: u32 = 24; +pub const ARPHRD_EUI64: u32 = 27; +pub const ARPHRD_INFINIBAND: u32 = 32; +pub const ARPHRD_SLIP: u32 = 256; +pub const ARPHRD_CSLIP: u32 = 257; +pub const ARPHRD_SLIP6: u32 = 258; +pub const ARPHRD_CSLIP6: u32 = 259; +pub const ARPHRD_RSRVD: u32 = 260; +pub const ARPHRD_ADAPT: u32 = 264; +pub const ARPHRD_ROSE: u32 = 270; +pub const ARPHRD_X25: u32 = 271; +pub const ARPHRD_HWX25: u32 = 272; +pub const ARPHRD_CAN: u32 = 280; +pub const ARPHRD_MCTP: u32 = 290; +pub const ARPHRD_PPP: u32 = 512; +pub const ARPHRD_CISCO: u32 = 513; +pub const ARPHRD_HDLC: u32 = 513; +pub const ARPHRD_LAPB: u32 = 516; +pub const ARPHRD_DDCMP: u32 = 517; +pub const ARPHRD_RAWHDLC: u32 = 518; +pub const ARPHRD_RAWIP: u32 = 519; +pub const ARPHRD_TUNNEL: u32 = 768; +pub const ARPHRD_TUNNEL6: u32 = 769; +pub const ARPHRD_FRAD: u32 = 770; +pub const ARPHRD_SKIP: u32 = 771; +pub const ARPHRD_LOOPBACK: u32 = 772; +pub const ARPHRD_LOCALTLK: u32 = 773; +pub const ARPHRD_FDDI: u32 = 774; +pub const ARPHRD_BIF: u32 = 775; +pub const ARPHRD_SIT: u32 = 776; +pub const ARPHRD_IPDDP: u32 = 777; +pub const ARPHRD_IPGRE: u32 = 778; +pub const ARPHRD_PIMREG: u32 = 779; +pub const ARPHRD_HIPPI: u32 = 780; +pub const ARPHRD_ASH: u32 = 781; +pub const ARPHRD_ECONET: u32 = 782; +pub const ARPHRD_IRDA: u32 = 783; +pub const ARPHRD_FCPP: u32 = 784; +pub const ARPHRD_FCAL: u32 = 785; +pub const ARPHRD_FCPL: u32 = 786; +pub const ARPHRD_FCFABRIC: u32 = 787; +pub const ARPHRD_IEEE802_TR: u32 = 800; +pub const ARPHRD_IEEE80211: u32 = 801; +pub const ARPHRD_IEEE80211_PRISM: u32 = 802; +pub const ARPHRD_IEEE80211_RADIOTAP: u32 = 803; +pub const ARPHRD_IEEE802154: u32 = 804; +pub const ARPHRD_IEEE802154_MONITOR: u32 = 805; +pub const ARPHRD_PHONET: u32 = 820; +pub const ARPHRD_PHONET_PIPE: u32 = 821; +pub const ARPHRD_CAIF: u32 = 822; +pub const ARPHRD_IP6GRE: u32 = 823; +pub const ARPHRD_NETLINK: u32 = 824; +pub const ARPHRD_6LOWPAN: u32 = 825; +pub const ARPHRD_VSOCKMON: u32 = 826; +pub const ARPHRD_VOID: u32 = 65535; +pub const ARPHRD_NONE: u32 = 65534; +pub const ARPOP_REQUEST: u32 = 1; +pub const ARPOP_REPLY: u32 = 2; +pub const ARPOP_RREQUEST: u32 = 3; +pub const ARPOP_RREPLY: u32 = 4; +pub const ARPOP_InREQUEST: u32 = 8; +pub const ARPOP_InREPLY: u32 = 9; +pub const ARPOP_NAK: u32 = 10; +pub const ATF_COM: u32 = 2; +pub const ATF_PERM: u32 = 4; +pub const ATF_PUBL: u32 = 8; +pub const ATF_USETRAILERS: u32 = 16; +pub const ATF_NETMASK: u32 = 32; +pub const ATF_DONTPUB: u32 = 64; +pub const IF_OPER_UNKNOWN: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_UNKNOWN; +pub const IF_OPER_NOTPRESENT: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_NOTPRESENT; +pub const IF_OPER_DOWN: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_DOWN; +pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_LOWERLAYERDOWN; +pub const IF_OPER_TESTING: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_TESTING; +pub const IF_OPER_DORMANT: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_DORMANT; +pub const IF_OPER_UP: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_UP; +pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_2 = _bindgen_ty_2::IF_LINK_MODE_DEFAULT; +pub const IF_LINK_MODE_DORMANT: _bindgen_ty_2 = _bindgen_ty_2::IF_LINK_MODE_DORMANT; +pub const IF_LINK_MODE_TESTING: _bindgen_ty_2 = _bindgen_ty_2::IF_LINK_MODE_TESTING; +pub const NETLINK_UNCONNECTED: _bindgen_ty_3 = _bindgen_ty_3::NETLINK_UNCONNECTED; +pub const NETLINK_CONNECTED: _bindgen_ty_3 = _bindgen_ty_3::NETLINK_CONNECTED; +pub const IFLA_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_UNSPEC; +pub const IFLA_ADDRESS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_ADDRESS; +pub const IFLA_BROADCAST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_BROADCAST; +pub const IFLA_IFNAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IFNAME; +pub const IFLA_MTU: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MTU; +pub const IFLA_LINK: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINK; +pub const IFLA_QDISC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_QDISC; +pub const IFLA_STATS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_STATS; +pub const IFLA_COST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_COST; +pub const IFLA_PRIORITY: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PRIORITY; +pub const IFLA_MASTER: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MASTER; +pub const IFLA_WIRELESS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_WIRELESS; +pub const IFLA_PROTINFO: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROTINFO; +pub const IFLA_TXQLEN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TXQLEN; +pub const IFLA_MAP: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAP; +pub const IFLA_WEIGHT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_WEIGHT; +pub const IFLA_OPERSTATE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_OPERSTATE; +pub const IFLA_LINKMODE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINKMODE; +pub const IFLA_LINKINFO: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINKINFO; +pub const IFLA_NET_NS_PID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NET_NS_PID; +pub const IFLA_IFALIAS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IFALIAS; +pub const IFLA_NUM_VF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NUM_VF; +pub const IFLA_VFINFO_LIST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_VFINFO_LIST; +pub const IFLA_STATS64: _bindgen_ty_4 = _bindgen_ty_4::IFLA_STATS64; +pub const IFLA_VF_PORTS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_VF_PORTS; +pub const IFLA_PORT_SELF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PORT_SELF; +pub const IFLA_AF_SPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_AF_SPEC; +pub const IFLA_GROUP: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GROUP; +pub const IFLA_NET_NS_FD: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NET_NS_FD; +pub const IFLA_EXT_MASK: _bindgen_ty_4 = _bindgen_ty_4::IFLA_EXT_MASK; +pub const IFLA_PROMISCUITY: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROMISCUITY; +pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NUM_TX_QUEUES; +pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NUM_RX_QUEUES; +pub const IFLA_CARRIER: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER; +pub const IFLA_PHYS_PORT_ID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PHYS_PORT_ID; +pub const IFLA_CARRIER_CHANGES: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER_CHANGES; +pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PHYS_SWITCH_ID; +pub const IFLA_LINK_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINK_NETNSID; +pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PHYS_PORT_NAME; +pub const IFLA_PROTO_DOWN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROTO_DOWN; +pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_MAX_SEGS; +pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_MAX_SIZE; +pub const IFLA_PAD: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PAD; +pub const IFLA_XDP: _bindgen_ty_4 = _bindgen_ty_4::IFLA_XDP; +pub const IFLA_EVENT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_EVENT; +pub const IFLA_NEW_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NEW_NETNSID; +pub const IFLA_IF_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IF_NETNSID; +pub const IFLA_TARGET_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IF_NETNSID; +pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER_UP_COUNT; +pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER_DOWN_COUNT; +pub const IFLA_NEW_IFINDEX: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NEW_IFINDEX; +pub const IFLA_MIN_MTU: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MIN_MTU; +pub const IFLA_MAX_MTU: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_MTU; +pub const IFLA_PROP_LIST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROP_LIST; +pub const IFLA_ALT_IFNAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_ALT_IFNAME; +pub const IFLA_PERM_ADDRESS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PERM_ADDRESS; +pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROTO_DOWN_REASON; +pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PARENT_DEV_NAME; +pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PARENT_DEV_BUS_NAME; +pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_MAX_SIZE; +pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TSO_MAX_SIZE; +pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TSO_MAX_SEGS; +pub const IFLA_ALLMULTI: _bindgen_ty_4 = _bindgen_ty_4::IFLA_ALLMULTI; +pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT; +pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE; +pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE; +pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON; +pub const IFLA_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX; +pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC; +pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_MASK; +pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_VALUE; +pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_PROTO_DOWN_REASON_CNT; +pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_VALUE; +pub const IFLA_INET_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_INET_UNSPEC; +pub const IFLA_INET_CONF: _bindgen_ty_6 = _bindgen_ty_6::IFLA_INET_CONF; +pub const __IFLA_INET_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_INET_MAX; +pub const IFLA_INET6_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_UNSPEC; +pub const IFLA_INET6_FLAGS: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_FLAGS; +pub const IFLA_INET6_CONF: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_CONF; +pub const IFLA_INET6_STATS: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_STATS; +pub const IFLA_INET6_MCAST: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_MCAST; +pub const IFLA_INET6_CACHEINFO: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_CACHEINFO; +pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_ICMP6STATS; +pub const IFLA_INET6_TOKEN: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_TOKEN; +pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_ADDR_GEN_MODE; +pub const IFLA_INET6_RA_MTU: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_RA_MTU; +pub const __IFLA_INET6_MAX: _bindgen_ty_7 = _bindgen_ty_7::__IFLA_INET6_MAX; +pub const IFLA_BR_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_UNSPEC; +pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FORWARD_DELAY; +pub const IFLA_BR_HELLO_TIME: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_HELLO_TIME; +pub const IFLA_BR_MAX_AGE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MAX_AGE; +pub const IFLA_BR_AGEING_TIME: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_AGEING_TIME; +pub const IFLA_BR_STP_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_STATE; +pub const IFLA_BR_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_PRIORITY; +pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_FILTERING; +pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_PROTOCOL; +pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_GROUP_FWD_MASK; +pub const IFLA_BR_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_ROOT_ID; +pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_BRIDGE_ID; +pub const IFLA_BR_ROOT_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_ROOT_PORT; +pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_ROOT_PATH_COST; +pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TOPOLOGY_CHANGE; +pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; +pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_HELLO_TIMER; +pub const IFLA_BR_TCN_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TCN_TIMER; +pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TOPOLOGY_CHANGE_TIMER; +pub const IFLA_BR_GC_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_GC_TIMER; +pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_GROUP_ADDR; +pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_FLUSH; +pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_ROUTER; +pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_SNOOPING; +pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERY_USE_IFADDR; +pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER; +pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_HASH_ELASTICITY; +pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_HASH_MAX; +pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_LAST_MEMBER_CNT; +pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_STARTUP_QUERY_CNT; +pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_LAST_MEMBER_INTVL; +pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_MEMBERSHIP_INTVL; +pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_INTVL; +pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERY_INTVL; +pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; +pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; +pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_NF_CALL_IPTABLES; +pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_NF_CALL_IP6TABLES; +pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_NF_CALL_ARPTABLES; +pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_DEFAULT_PVID; +pub const IFLA_BR_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_PAD; +pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_STATS_ENABLED; +pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_STATS_ENABLED; +pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_IGMP_VERSION; +pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_MLD_VERSION; +pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_STATS_PER_PORT; +pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BOOLOPT; +pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; +pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; +pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; +pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; +pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; +pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_UNSPEC; +pub const IFLA_BRPORT_STATE: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_STATE; +pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PRIORITY; +pub const IFLA_BRPORT_COST: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_COST; +pub const IFLA_BRPORT_MODE: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MODE; +pub const IFLA_BRPORT_GUARD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_GUARD; +pub const IFLA_BRPORT_PROTECT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PROTECT; +pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_FAST_LEAVE; +pub const IFLA_BRPORT_LEARNING: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_LEARNING; +pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_UNICAST_FLOOD; +pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PROXYARP; +pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_LEARNING_SYNC; +pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PROXYARP_WIFI; +pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_ROOT_ID; +pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BRIDGE_ID; +pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_DESIGNATED_PORT; +pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_DESIGNATED_COST; +pub const IFLA_BRPORT_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_ID; +pub const IFLA_BRPORT_NO: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NO; +pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; +pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_CONFIG_PENDING; +pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MESSAGE_AGE_TIMER; +pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_FORWARD_DELAY_TIMER; +pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_HOLD_TIMER; +pub const IFLA_BRPORT_FLUSH: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_FLUSH; +pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MULTICAST_ROUTER; +pub const IFLA_BRPORT_PAD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PAD; +pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_FLOOD; +pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_TO_UCAST; +pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_VLAN_TUNNEL; +pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BCAST_FLOOD; +pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_GROUP_FWD_MASK; +pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_SUPPRESS; +pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_ISOLATED; +pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_PORT; +pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MRP_RING_OPEN; +pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MRP_IN_OPEN; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; +pub const IFLA_BRPORT_LOCKED: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_LOCKED; +pub const IFLA_BRPORT_MAB: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MAB; +pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_N_GROUPS; +pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; +pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; +pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; +pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; +pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; +pub const IFLA_INFO_DATA: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_DATA; +pub const IFLA_INFO_XSTATS: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_XSTATS; +pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_SLAVE_KIND; +pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_SLAVE_DATA; +pub const __IFLA_INFO_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_INFO_MAX; +pub const IFLA_VLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_UNSPEC; +pub const IFLA_VLAN_ID: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_ID; +pub const IFLA_VLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_FLAGS; +pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_EGRESS_QOS; +pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_INGRESS_QOS; +pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_PROTOCOL; +pub const __IFLA_VLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_VLAN_MAX; +pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VLAN_QOS_UNSPEC; +pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VLAN_QOS_MAPPING; +pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VLAN_QOS_MAX; +pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_UNSPEC; +pub const IFLA_MACVLAN_MODE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MODE; +pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_FLAGS; +pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR_MODE; +pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR; +pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR_DATA; +pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR_COUNT; +pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_BC_QUEUE_LEN; +pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_BC_QUEUE_LEN_USED; +pub const IFLA_MACVLAN_BC_CUTOFF: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_BC_CUTOFF; +pub const __IFLA_MACVLAN_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_MACVLAN_MAX; +pub const IFLA_VRF_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_VRF_UNSPEC; +pub const IFLA_VRF_TABLE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_VRF_TABLE; +pub const __IFLA_VRF_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_VRF_MAX; +pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_VRF_PORT_UNSPEC; +pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_16 = _bindgen_ty_16::IFLA_VRF_PORT_TABLE; +pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_VRF_PORT_MAX; +pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_UNSPEC; +pub const IFLA_MACSEC_SCI: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_SCI; +pub const IFLA_MACSEC_PORT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_PORT; +pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ICV_LEN; +pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_CIPHER_SUITE; +pub const IFLA_MACSEC_WINDOW: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_WINDOW; +pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ENCODING_SA; +pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ENCRYPT; +pub const IFLA_MACSEC_PROTECT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_PROTECT; +pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_INC_SCI; +pub const IFLA_MACSEC_ES: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ES; +pub const IFLA_MACSEC_SCB: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_SCB; +pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_REPLAY_PROTECT; +pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_VALIDATION; +pub const IFLA_MACSEC_PAD: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_PAD; +pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_OFFLOAD; +pub const __IFLA_MACSEC_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_MACSEC_MAX; +pub const IFLA_XFRM_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_UNSPEC; +pub const IFLA_XFRM_LINK: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_LINK; +pub const IFLA_XFRM_IF_ID: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_IF_ID; +pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_COLLECT_METADATA; +pub const __IFLA_XFRM_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_XFRM_MAX; +pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::IFLA_IPVLAN_UNSPEC; +pub const IFLA_IPVLAN_MODE: _bindgen_ty_19 = _bindgen_ty_19::IFLA_IPVLAN_MODE; +pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_19 = _bindgen_ty_19::IFLA_IPVLAN_FLAGS; +pub const __IFLA_IPVLAN_MAX: _bindgen_ty_19 = _bindgen_ty_19::__IFLA_IPVLAN_MAX; +pub const IFLA_NETKIT_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_UNSPEC; +pub const IFLA_NETKIT_PEER_INFO: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_INFO; +pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PRIMARY; +pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY; +pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY; +pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB; +pub const IFLA_NETKIT_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; +pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX; +pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC; +pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_BYTES; +pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_PKTS; +pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_DROPS; +pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_BYTES; +pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_PKTS; +pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_DROPS; +pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_PAD; +pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_21 = _bindgen_ty_21::__VNIFILTER_ENTRY_STATS_MAX; +pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_START; +pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_END; +pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_GROUP; +pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_GROUP6; +pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_STATS; +pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_22 = _bindgen_ty_22::__VXLAN_VNIFILTER_ENTRY_MAX; +pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::VXLAN_VNIFILTER_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_23 = _bindgen_ty_23::VXLAN_VNIFILTER_ENTRY; +pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_23 = _bindgen_ty_23::__VXLAN_VNIFILTER_MAX; +pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UNSPEC; +pub const IFLA_VXLAN_ID: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_ID; +pub const IFLA_VXLAN_GROUP: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GROUP; +pub const IFLA_VXLAN_LINK: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LINK; +pub const IFLA_VXLAN_LOCAL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LOCAL; +pub const IFLA_VXLAN_TTL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_TTL; +pub const IFLA_VXLAN_TOS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_TOS; +pub const IFLA_VXLAN_LEARNING: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LEARNING; +pub const IFLA_VXLAN_AGEING: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_AGEING; +pub const IFLA_VXLAN_LIMIT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LIMIT; +pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_PORT_RANGE; +pub const IFLA_VXLAN_PROXY: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_PROXY; +pub const IFLA_VXLAN_RSC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_RSC; +pub const IFLA_VXLAN_L2MISS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_L2MISS; +pub const IFLA_VXLAN_L3MISS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_L3MISS; +pub const IFLA_VXLAN_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_PORT; +pub const IFLA_VXLAN_GROUP6: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GROUP6; +pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LOCAL6; +pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UDP_CSUM; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; +pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_REMCSUM_TX; +pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_REMCSUM_RX; +pub const IFLA_VXLAN_GBP: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GBP; +pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_REMCSUM_NOPARTIAL; +pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_COLLECT_METADATA; +pub const IFLA_VXLAN_LABEL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LABEL; +pub const IFLA_VXLAN_GPE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GPE; +pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_TTL_INHERIT; +pub const IFLA_VXLAN_DF: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_DF; +pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_VNIFILTER; +pub const IFLA_VXLAN_LOCALBYPASS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LOCALBYPASS; +pub const IFLA_VXLAN_LABEL_POLICY: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LABEL_POLICY; +pub const IFLA_VXLAN_RESERVED_BITS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_RESERVED_BITS; +pub const __IFLA_VXLAN_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_VXLAN_MAX; +pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UNSPEC; +pub const IFLA_GENEVE_ID: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ID; +pub const IFLA_GENEVE_REMOTE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_REMOTE; +pub const IFLA_GENEVE_TTL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_TTL; +pub const IFLA_GENEVE_TOS: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_TOS; +pub const IFLA_GENEVE_PORT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT; +pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_COLLECT_METADATA; +pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_REMOTE6; +pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UDP_CSUM; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; +pub const IFLA_GENEVE_LABEL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LABEL; +pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_TTL_INHERIT; +pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; +pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; +pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; +pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; +pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; +pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_ETHERTYPE; +pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_SRCPORT_MIN; +pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_MULTIPROTO_MODE; +pub const __IFLA_BAREUDP_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_BAREUDP_MAX; +pub const IFLA_PPP_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_PPP_UNSPEC; +pub const IFLA_PPP_DEV_FD: _bindgen_ty_27 = _bindgen_ty_27::IFLA_PPP_DEV_FD; +pub const __IFLA_PPP_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_PPP_MAX; +pub const IFLA_GTP_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_UNSPEC; +pub const IFLA_GTP_FD0: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_FD0; +pub const IFLA_GTP_FD1: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_FD1; +pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_PDP_HASHSIZE; +pub const IFLA_GTP_ROLE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_ROLE; +pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_CREATE_SOCKETS; +pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_RESTART_COUNT; +pub const IFLA_GTP_LOCAL: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_LOCAL; +pub const IFLA_GTP_LOCAL6: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_LOCAL6; +pub const __IFLA_GTP_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_GTP_MAX; +pub const IFLA_BOND_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_UNSPEC; +pub const IFLA_BOND_MODE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MODE; +pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ACTIVE_SLAVE; +pub const IFLA_BOND_MIIMON: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MIIMON; +pub const IFLA_BOND_UPDELAY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_UPDELAY; +pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_DOWNDELAY; +pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_USE_CARRIER; +pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_INTERVAL; +pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_IP_TARGET; +pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_VALIDATE; +pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_ALL_TARGETS; +pub const IFLA_BOND_PRIMARY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PRIMARY; +pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PRIMARY_RESELECT; +pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_FAIL_OVER_MAC; +pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_XMIT_HASH_POLICY; +pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_RESEND_IGMP; +pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_NUM_PEER_NOTIF; +pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ALL_SLAVES_ACTIVE; +pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MIN_LINKS; +pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LP_INTERVAL; +pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PACKETS_PER_SLAVE; +pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_LACP_RATE; +pub const IFLA_BOND_AD_SELECT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_SELECT; +pub const IFLA_BOND_AD_INFO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_INFO; +pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_ACTOR_SYS_PRIO; +pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_USER_PORT_KEY; +pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_ACTOR_SYSTEM; +pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_TLB_DYNAMIC_LB; +pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PEER_NOTIF_DELAY; +pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_LACP_ACTIVE; +pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSED_MAX; +pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_NS_IP6_TARGET; +pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_COUPLED_CONTROL; +pub const __IFLA_BOND_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_MAX; +pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_UNSPEC; +pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_AGGREGATOR; +pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_NUM_PORTS; +pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_ACTOR_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_PARTNER_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_PARTNER_MAC; +pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_BOND_AD_INFO_MAX; +pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_UNSPEC; +pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_STATE; +pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_MII_STATUS; +pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; +pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PERM_HWADDR; +pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_QUEUE_ID; +pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; +pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; +pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; +pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; +pub const __IFLA_VF_INFO_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_INFO_MAX; +pub const IFLA_VF_UNSPEC: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_UNSPEC; +pub const IFLA_VF_MAC: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_MAC; +pub const IFLA_VF_VLAN: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_VLAN; +pub const IFLA_VF_TX_RATE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_TX_RATE; +pub const IFLA_VF_SPOOFCHK: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_SPOOFCHK; +pub const IFLA_VF_LINK_STATE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_LINK_STATE; +pub const IFLA_VF_RATE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_RATE; +pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_RSS_QUERY_EN; +pub const IFLA_VF_STATS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS; +pub const IFLA_VF_TRUST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_TRUST; +pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_IB_NODE_GUID; +pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_IB_PORT_GUID; +pub const IFLA_VF_VLAN_LIST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_VLAN_LIST; +pub const IFLA_VF_BROADCAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_BROADCAST; +pub const __IFLA_VF_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_MAX; +pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_VLAN_INFO_UNSPEC; +pub const IFLA_VF_VLAN_INFO: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_VLAN_INFO; +pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_VLAN_INFO_MAX; +pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_LINK_STATE_AUTO; +pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_LINK_STATE_ENABLE; +pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_LINK_STATE_DISABLE; +pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_VF_LINK_STATE_MAX; +pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_RX_PACKETS; +pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_TX_PACKETS; +pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_RX_BYTES; +pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_TX_BYTES; +pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_BROADCAST; +pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_MULTICAST; +pub const IFLA_VF_STATS_PAD: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_PAD; +pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_RX_DROPPED; +pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_TX_DROPPED; +pub const __IFLA_VF_STATS_MAX: _bindgen_ty_36 = _bindgen_ty_36::__IFLA_VF_STATS_MAX; +pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_37 = _bindgen_ty_37::IFLA_VF_PORT_UNSPEC; +pub const IFLA_VF_PORT: _bindgen_ty_37 = _bindgen_ty_37::IFLA_VF_PORT; +pub const __IFLA_VF_PORT_MAX: _bindgen_ty_37 = _bindgen_ty_37::__IFLA_VF_PORT_MAX; +pub const IFLA_PORT_UNSPEC: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_UNSPEC; +pub const IFLA_PORT_VF: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_VF; +pub const IFLA_PORT_PROFILE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_PROFILE; +pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_VSI_TYPE; +pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_INSTANCE_UUID; +pub const IFLA_PORT_HOST_UUID: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_HOST_UUID; +pub const IFLA_PORT_REQUEST: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_REQUEST; +pub const IFLA_PORT_RESPONSE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_RESPONSE; +pub const __IFLA_PORT_MAX: _bindgen_ty_38 = _bindgen_ty_38::__IFLA_PORT_MAX; +pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_PREASSOCIATE; +pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_PREASSOCIATE_RR; +pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_ASSOCIATE; +pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_DISASSOCIATE; +pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_SUCCESS; +pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_INVALID_FORMAT; +pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_UNUSED_VTID; +pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_VTID_VIOLATION; +pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; +pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_OUT_OF_SYNC; +pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_SUCCESS; +pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_INPROGRESS; +pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_INVALID; +pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_BADSTATE; +pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_ERROR; +pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_UNSPEC; +pub const IFLA_IPOIB_PKEY: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_PKEY; +pub const IFLA_IPOIB_MODE: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_MODE; +pub const IFLA_IPOIB_UMCAST: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_UMCAST; +pub const __IFLA_IPOIB_MAX: _bindgen_ty_41 = _bindgen_ty_41::__IFLA_IPOIB_MAX; +pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_42 = _bindgen_ty_42::IPOIB_MODE_DATAGRAM; +pub const IPOIB_MODE_CONNECTED: _bindgen_ty_42 = _bindgen_ty_42::IPOIB_MODE_CONNECTED; +pub const HSR_PROTOCOL_HSR: _bindgen_ty_43 = _bindgen_ty_43::HSR_PROTOCOL_HSR; +pub const HSR_PROTOCOL_PRP: _bindgen_ty_43 = _bindgen_ty_43::HSR_PROTOCOL_PRP; +pub const HSR_PROTOCOL_MAX: _bindgen_ty_43 = _bindgen_ty_43::HSR_PROTOCOL_MAX; +pub const IFLA_HSR_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_UNSPEC; +pub const IFLA_HSR_SLAVE1: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SLAVE1; +pub const IFLA_HSR_SLAVE2: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SLAVE2; +pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_MULTICAST_SPEC; +pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SUPERVISION_ADDR; +pub const IFLA_HSR_SEQ_NR: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SEQ_NR; +pub const IFLA_HSR_VERSION: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_VERSION; +pub const IFLA_HSR_PROTOCOL: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_PROTOCOL; +pub const IFLA_HSR_INTERLINK: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_INTERLINK; +pub const __IFLA_HSR_MAX: _bindgen_ty_44 = _bindgen_ty_44::__IFLA_HSR_MAX; +pub const IFLA_STATS_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_UNSPEC; +pub const IFLA_STATS_LINK_64: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_64; +pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_XSTATS; +pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_XSTATS_SLAVE; +pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_OFFLOAD_XSTATS; +pub const IFLA_STATS_AF_SPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_AF_SPEC; +pub const __IFLA_STATS_MAX: _bindgen_ty_45 = _bindgen_ty_45::__IFLA_STATS_MAX; +pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_STATS_GETSET_UNSPEC; +pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_46 = _bindgen_ty_46::IFLA_STATS_GET_FILTERS; +pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_46 = _bindgen_ty_46::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_STATS_GETSET_MAX; +pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_47 = _bindgen_ty_47::LINK_XSTATS_TYPE_UNSPEC; +pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_47 = _bindgen_ty_47::LINK_XSTATS_TYPE_BRIDGE; +pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_47 = _bindgen_ty_47::LINK_XSTATS_TYPE_BOND; +pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_47 = _bindgen_ty_47::__LINK_XSTATS_TYPE_MAX; +pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_CPU_HIT; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_HW_S_INFO; +pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_48 = _bindgen_ty_48::__IFLA_OFFLOAD_XSTATS_MAX; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_49 = _bindgen_ty_49::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_49 = _bindgen_ty_49::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_49 = _bindgen_ty_49::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; +pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_49 = _bindgen_ty_49::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; +pub const XDP_ATTACHED_NONE: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_NONE; +pub const XDP_ATTACHED_DRV: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_DRV; +pub const XDP_ATTACHED_SKB: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_SKB; +pub const XDP_ATTACHED_HW: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_HW; +pub const XDP_ATTACHED_MULTI: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_MULTI; +pub const IFLA_XDP_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_UNSPEC; +pub const IFLA_XDP_FD: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_FD; +pub const IFLA_XDP_ATTACHED: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_ATTACHED; +pub const IFLA_XDP_FLAGS: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_FLAGS; +pub const IFLA_XDP_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_PROG_ID; +pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_DRV_PROG_ID; +pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_SKB_PROG_ID; +pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_HW_PROG_ID; +pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_EXPECTED_FD; +pub const __IFLA_XDP_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_XDP_MAX; +pub const IFLA_EVENT_NONE: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_NONE; +pub const IFLA_EVENT_REBOOT: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_REBOOT; +pub const IFLA_EVENT_FEATURES: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_FEATURES; +pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_BONDING_FAILOVER; +pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_NOTIFY_PEERS; +pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_IGMP_RESEND; +pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_BONDING_OPTIONS; +pub const IFLA_TUN_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_UNSPEC; +pub const IFLA_TUN_OWNER: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_OWNER; +pub const IFLA_TUN_GROUP: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_GROUP; +pub const IFLA_TUN_TYPE: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_TYPE; +pub const IFLA_TUN_PI: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_PI; +pub const IFLA_TUN_VNET_HDR: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_VNET_HDR; +pub const IFLA_TUN_PERSIST: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_PERSIST; +pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_MULTI_QUEUE; +pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_NUM_QUEUES; +pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_NUM_DISABLED_QUEUES; +pub const __IFLA_TUN_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_TUN_MAX; +pub const IFLA_RMNET_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_UNSPEC; +pub const IFLA_RMNET_MUX_ID: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_MUX_ID; +pub const IFLA_RMNET_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_FLAGS; +pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX; +pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC; +pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING; +pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX; +pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC; +pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; +pub const IFLA_DSA_MASTER: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; +pub const __IFLA_DSA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__IFLA_DSA_MAX; +pub const IFLA_OVPN_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::IFLA_OVPN_UNSPEC; +pub const IFLA_OVPN_MODE: _bindgen_ty_57 = _bindgen_ty_57::IFLA_OVPN_MODE; +pub const __IFLA_OVPN_MAX: _bindgen_ty_57 = _bindgen_ty_57::__IFLA_OVPN_MAX; +pub const IF_PORT_UNKNOWN: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_UNKNOWN; +pub const IF_PORT_10BASE2: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_10BASE2; +pub const IF_PORT_10BASET: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_10BASET; +pub const IF_PORT_AUI: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_AUI; +pub const IF_PORT_100BASET: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_100BASET; +pub const IF_PORT_100BASETX: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_100BASETX; +pub const IF_PORT_100BASEFX: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_100BASEFX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum net_device_flags { +IFF_UP = 1, +IFF_BROADCAST = 2, +IFF_DEBUG = 4, +IFF_LOOPBACK = 8, +IFF_POINTOPOINT = 16, +IFF_NOTRAILERS = 32, +IFF_RUNNING = 64, +IFF_NOARP = 128, +IFF_PROMISC = 256, +IFF_ALLMULTI = 512, +IFF_MASTER = 1024, +IFF_SLAVE = 2048, +IFF_MULTICAST = 4096, +IFF_PORTSEL = 8192, +IFF_AUTOMEDIA = 16384, +IFF_DYNAMIC = 32768, +IFF_LOWER_UP = 65536, +IFF_DORMANT = 131072, +IFF_ECHO = 262144, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +IF_OPER_UNKNOWN = 0, +IF_OPER_NOTPRESENT = 1, +IF_OPER_DOWN = 2, +IF_OPER_LOWERLAYERDOWN = 3, +IF_OPER_TESTING = 4, +IF_OPER_DORMANT = 5, +IF_OPER_UP = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IF_LINK_MODE_DEFAULT = 0, +IF_LINK_MODE_DORMANT = 1, +IF_LINK_MODE_TESTING = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tpacket_versions { +TPACKET_V1 = 0, +TPACKET_V2 = 1, +TPACKET_V3 = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nlmsgerr_attrs { +NLMSGERR_ATTR_UNUSED = 0, +NLMSGERR_ATTR_MSG = 1, +NLMSGERR_ATTR_OFFS = 2, +NLMSGERR_ATTR_COOKIE = 3, +NLMSGERR_ATTR_POLICY = 4, +NLMSGERR_ATTR_MISS_TYPE = 5, +NLMSGERR_ATTR_MISS_NEST = 6, +__NLMSGERR_ATTR_MAX = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl_mmap_status { +NL_MMAP_STATUS_UNUSED = 0, +NL_MMAP_STATUS_RESERVED = 1, +NL_MMAP_STATUS_VALID = 2, +NL_MMAP_STATUS_COPY = 3, +NL_MMAP_STATUS_SKIP = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +NETLINK_UNCONNECTED = 0, +NETLINK_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_attribute_type { +NL_ATTR_TYPE_INVALID = 0, +NL_ATTR_TYPE_FLAG = 1, +NL_ATTR_TYPE_U8 = 2, +NL_ATTR_TYPE_U16 = 3, +NL_ATTR_TYPE_U32 = 4, +NL_ATTR_TYPE_U64 = 5, +NL_ATTR_TYPE_S8 = 6, +NL_ATTR_TYPE_S16 = 7, +NL_ATTR_TYPE_S32 = 8, +NL_ATTR_TYPE_S64 = 9, +NL_ATTR_TYPE_BINARY = 10, +NL_ATTR_TYPE_STRING = 11, +NL_ATTR_TYPE_NUL_STRING = 12, +NL_ATTR_TYPE_NESTED = 13, +NL_ATTR_TYPE_NESTED_ARRAY = 14, +NL_ATTR_TYPE_BITFIELD32 = 15, +NL_ATTR_TYPE_SINT = 16, +NL_ATTR_TYPE_UINT = 17, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_policy_type_attr { +NL_POLICY_TYPE_ATTR_UNSPEC = 0, +NL_POLICY_TYPE_ATTR_TYPE = 1, +NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, +NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, +NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, +NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, +NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, +NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, +NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, +NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, +NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, +NL_POLICY_TYPE_ATTR_PAD = 11, +NL_POLICY_TYPE_ATTR_MASK = 12, +__NL_POLICY_TYPE_ATTR_MAX = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IFLA_UNSPEC = 0, +IFLA_ADDRESS = 1, +IFLA_BROADCAST = 2, +IFLA_IFNAME = 3, +IFLA_MTU = 4, +IFLA_LINK = 5, +IFLA_QDISC = 6, +IFLA_STATS = 7, +IFLA_COST = 8, +IFLA_PRIORITY = 9, +IFLA_MASTER = 10, +IFLA_WIRELESS = 11, +IFLA_PROTINFO = 12, +IFLA_TXQLEN = 13, +IFLA_MAP = 14, +IFLA_WEIGHT = 15, +IFLA_OPERSTATE = 16, +IFLA_LINKMODE = 17, +IFLA_LINKINFO = 18, +IFLA_NET_NS_PID = 19, +IFLA_IFALIAS = 20, +IFLA_NUM_VF = 21, +IFLA_VFINFO_LIST = 22, +IFLA_STATS64 = 23, +IFLA_VF_PORTS = 24, +IFLA_PORT_SELF = 25, +IFLA_AF_SPEC = 26, +IFLA_GROUP = 27, +IFLA_NET_NS_FD = 28, +IFLA_EXT_MASK = 29, +IFLA_PROMISCUITY = 30, +IFLA_NUM_TX_QUEUES = 31, +IFLA_NUM_RX_QUEUES = 32, +IFLA_CARRIER = 33, +IFLA_PHYS_PORT_ID = 34, +IFLA_CARRIER_CHANGES = 35, +IFLA_PHYS_SWITCH_ID = 36, +IFLA_LINK_NETNSID = 37, +IFLA_PHYS_PORT_NAME = 38, +IFLA_PROTO_DOWN = 39, +IFLA_GSO_MAX_SEGS = 40, +IFLA_GSO_MAX_SIZE = 41, +IFLA_PAD = 42, +IFLA_XDP = 43, +IFLA_EVENT = 44, +IFLA_NEW_NETNSID = 45, +IFLA_IF_NETNSID = 46, +IFLA_CARRIER_UP_COUNT = 47, +IFLA_CARRIER_DOWN_COUNT = 48, +IFLA_NEW_IFINDEX = 49, +IFLA_MIN_MTU = 50, +IFLA_MAX_MTU = 51, +IFLA_PROP_LIST = 52, +IFLA_ALT_IFNAME = 53, +IFLA_PERM_ADDRESS = 54, +IFLA_PROTO_DOWN_REASON = 55, +IFLA_PARENT_DEV_NAME = 56, +IFLA_PARENT_DEV_BUS_NAME = 57, +IFLA_GRO_MAX_SIZE = 58, +IFLA_TSO_MAX_SIZE = 59, +IFLA_TSO_MAX_SEGS = 60, +IFLA_ALLMULTI = 61, +IFLA_DEVLINK_PORT = 62, +IFLA_GSO_IPV4_MAX_SIZE = 63, +IFLA_GRO_IPV4_MAX_SIZE = 64, +IFLA_DPLL_PIN = 65, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +IFLA_NETNS_IMMUTABLE = 67, +__IFLA_MAX = 68, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_5 { +IFLA_PROTO_DOWN_REASON_UNSPEC = 0, +IFLA_PROTO_DOWN_REASON_MASK = 1, +IFLA_PROTO_DOWN_REASON_VALUE = 2, +__IFLA_PROTO_DOWN_REASON_CNT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_6 { +IFLA_INET_UNSPEC = 0, +IFLA_INET_CONF = 1, +__IFLA_INET_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_7 { +IFLA_INET6_UNSPEC = 0, +IFLA_INET6_FLAGS = 1, +IFLA_INET6_CONF = 2, +IFLA_INET6_STATS = 3, +IFLA_INET6_MCAST = 4, +IFLA_INET6_CACHEINFO = 5, +IFLA_INET6_ICMP6STATS = 6, +IFLA_INET6_TOKEN = 7, +IFLA_INET6_ADDR_GEN_MODE = 8, +IFLA_INET6_RA_MTU = 9, +__IFLA_INET6_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum in6_addr_gen_mode { +IN6_ADDR_GEN_MODE_EUI64 = 0, +IN6_ADDR_GEN_MODE_NONE = 1, +IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, +IN6_ADDR_GEN_MODE_RANDOM = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_8 { +IFLA_BR_UNSPEC = 0, +IFLA_BR_FORWARD_DELAY = 1, +IFLA_BR_HELLO_TIME = 2, +IFLA_BR_MAX_AGE = 3, +IFLA_BR_AGEING_TIME = 4, +IFLA_BR_STP_STATE = 5, +IFLA_BR_PRIORITY = 6, +IFLA_BR_VLAN_FILTERING = 7, +IFLA_BR_VLAN_PROTOCOL = 8, +IFLA_BR_GROUP_FWD_MASK = 9, +IFLA_BR_ROOT_ID = 10, +IFLA_BR_BRIDGE_ID = 11, +IFLA_BR_ROOT_PORT = 12, +IFLA_BR_ROOT_PATH_COST = 13, +IFLA_BR_TOPOLOGY_CHANGE = 14, +IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, +IFLA_BR_HELLO_TIMER = 16, +IFLA_BR_TCN_TIMER = 17, +IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, +IFLA_BR_GC_TIMER = 19, +IFLA_BR_GROUP_ADDR = 20, +IFLA_BR_FDB_FLUSH = 21, +IFLA_BR_MCAST_ROUTER = 22, +IFLA_BR_MCAST_SNOOPING = 23, +IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, +IFLA_BR_MCAST_QUERIER = 25, +IFLA_BR_MCAST_HASH_ELASTICITY = 26, +IFLA_BR_MCAST_HASH_MAX = 27, +IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, +IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, +IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, +IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, +IFLA_BR_MCAST_QUERIER_INTVL = 32, +IFLA_BR_MCAST_QUERY_INTVL = 33, +IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, +IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, +IFLA_BR_NF_CALL_IPTABLES = 36, +IFLA_BR_NF_CALL_IP6TABLES = 37, +IFLA_BR_NF_CALL_ARPTABLES = 38, +IFLA_BR_VLAN_DEFAULT_PVID = 39, +IFLA_BR_PAD = 40, +IFLA_BR_VLAN_STATS_ENABLED = 41, +IFLA_BR_MCAST_STATS_ENABLED = 42, +IFLA_BR_MCAST_IGMP_VERSION = 43, +IFLA_BR_MCAST_MLD_VERSION = 44, +IFLA_BR_VLAN_STATS_PER_PORT = 45, +IFLA_BR_MULTI_BOOLOPT = 46, +IFLA_BR_MCAST_QUERIER_STATE = 47, +IFLA_BR_FDB_N_LEARNED = 48, +IFLA_BR_FDB_MAX_LEARNED = 49, +__IFLA_BR_MAX = 50, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_9 { +BRIDGE_MODE_UNSPEC = 0, +BRIDGE_MODE_HAIRPIN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_10 { +IFLA_BRPORT_UNSPEC = 0, +IFLA_BRPORT_STATE = 1, +IFLA_BRPORT_PRIORITY = 2, +IFLA_BRPORT_COST = 3, +IFLA_BRPORT_MODE = 4, +IFLA_BRPORT_GUARD = 5, +IFLA_BRPORT_PROTECT = 6, +IFLA_BRPORT_FAST_LEAVE = 7, +IFLA_BRPORT_LEARNING = 8, +IFLA_BRPORT_UNICAST_FLOOD = 9, +IFLA_BRPORT_PROXYARP = 10, +IFLA_BRPORT_LEARNING_SYNC = 11, +IFLA_BRPORT_PROXYARP_WIFI = 12, +IFLA_BRPORT_ROOT_ID = 13, +IFLA_BRPORT_BRIDGE_ID = 14, +IFLA_BRPORT_DESIGNATED_PORT = 15, +IFLA_BRPORT_DESIGNATED_COST = 16, +IFLA_BRPORT_ID = 17, +IFLA_BRPORT_NO = 18, +IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, +IFLA_BRPORT_CONFIG_PENDING = 20, +IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, +IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, +IFLA_BRPORT_HOLD_TIMER = 23, +IFLA_BRPORT_FLUSH = 24, +IFLA_BRPORT_MULTICAST_ROUTER = 25, +IFLA_BRPORT_PAD = 26, +IFLA_BRPORT_MCAST_FLOOD = 27, +IFLA_BRPORT_MCAST_TO_UCAST = 28, +IFLA_BRPORT_VLAN_TUNNEL = 29, +IFLA_BRPORT_BCAST_FLOOD = 30, +IFLA_BRPORT_GROUP_FWD_MASK = 31, +IFLA_BRPORT_NEIGH_SUPPRESS = 32, +IFLA_BRPORT_ISOLATED = 33, +IFLA_BRPORT_BACKUP_PORT = 34, +IFLA_BRPORT_MRP_RING_OPEN = 35, +IFLA_BRPORT_MRP_IN_OPEN = 36, +IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, +IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, +IFLA_BRPORT_LOCKED = 39, +IFLA_BRPORT_MAB = 40, +IFLA_BRPORT_MCAST_N_GROUPS = 41, +IFLA_BRPORT_MCAST_MAX_GROUPS = 42, +IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, +IFLA_BRPORT_BACKUP_NHID = 44, +__IFLA_BRPORT_MAX = 45, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_11 { +IFLA_INFO_UNSPEC = 0, +IFLA_INFO_KIND = 1, +IFLA_INFO_DATA = 2, +IFLA_INFO_XSTATS = 3, +IFLA_INFO_SLAVE_KIND = 4, +IFLA_INFO_SLAVE_DATA = 5, +__IFLA_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_12 { +IFLA_VLAN_UNSPEC = 0, +IFLA_VLAN_ID = 1, +IFLA_VLAN_FLAGS = 2, +IFLA_VLAN_EGRESS_QOS = 3, +IFLA_VLAN_INGRESS_QOS = 4, +IFLA_VLAN_PROTOCOL = 5, +__IFLA_VLAN_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_13 { +IFLA_VLAN_QOS_UNSPEC = 0, +IFLA_VLAN_QOS_MAPPING = 1, +__IFLA_VLAN_QOS_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_14 { +IFLA_MACVLAN_UNSPEC = 0, +IFLA_MACVLAN_MODE = 1, +IFLA_MACVLAN_FLAGS = 2, +IFLA_MACVLAN_MACADDR_MODE = 3, +IFLA_MACVLAN_MACADDR = 4, +IFLA_MACVLAN_MACADDR_DATA = 5, +IFLA_MACVLAN_MACADDR_COUNT = 6, +IFLA_MACVLAN_BC_QUEUE_LEN = 7, +IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, +IFLA_MACVLAN_BC_CUTOFF = 9, +__IFLA_MACVLAN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_mode { +MACVLAN_MODE_PRIVATE = 1, +MACVLAN_MODE_VEPA = 2, +MACVLAN_MODE_BRIDGE = 4, +MACVLAN_MODE_PASSTHRU = 8, +MACVLAN_MODE_SOURCE = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_macaddr_mode { +MACVLAN_MACADDR_ADD = 0, +MACVLAN_MACADDR_DEL = 1, +MACVLAN_MACADDR_FLUSH = 2, +MACVLAN_MACADDR_SET = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_15 { +IFLA_VRF_UNSPEC = 0, +IFLA_VRF_TABLE = 1, +__IFLA_VRF_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_16 { +IFLA_VRF_PORT_UNSPEC = 0, +IFLA_VRF_PORT_TABLE = 1, +__IFLA_VRF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_17 { +IFLA_MACSEC_UNSPEC = 0, +IFLA_MACSEC_SCI = 1, +IFLA_MACSEC_PORT = 2, +IFLA_MACSEC_ICV_LEN = 3, +IFLA_MACSEC_CIPHER_SUITE = 4, +IFLA_MACSEC_WINDOW = 5, +IFLA_MACSEC_ENCODING_SA = 6, +IFLA_MACSEC_ENCRYPT = 7, +IFLA_MACSEC_PROTECT = 8, +IFLA_MACSEC_INC_SCI = 9, +IFLA_MACSEC_ES = 10, +IFLA_MACSEC_SCB = 11, +IFLA_MACSEC_REPLAY_PROTECT = 12, +IFLA_MACSEC_VALIDATION = 13, +IFLA_MACSEC_PAD = 14, +IFLA_MACSEC_OFFLOAD = 15, +__IFLA_MACSEC_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_18 { +IFLA_XFRM_UNSPEC = 0, +IFLA_XFRM_LINK = 1, +IFLA_XFRM_IF_ID = 2, +IFLA_XFRM_COLLECT_METADATA = 3, +__IFLA_XFRM_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_validation_type { +MACSEC_VALIDATE_DISABLED = 0, +MACSEC_VALIDATE_CHECK = 1, +MACSEC_VALIDATE_STRICT = 2, +__MACSEC_VALIDATE_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_offload { +MACSEC_OFFLOAD_OFF = 0, +MACSEC_OFFLOAD_PHY = 1, +MACSEC_OFFLOAD_MAC = 2, +__MACSEC_OFFLOAD_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_19 { +IFLA_IPVLAN_UNSPEC = 0, +IFLA_IPVLAN_MODE = 1, +IFLA_IPVLAN_FLAGS = 2, +__IFLA_IPVLAN_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ipvlan_mode { +IPVLAN_MODE_L2 = 0, +IPVLAN_MODE_L3 = 1, +IPVLAN_MODE_L3S = 2, +IPVLAN_MODE_MAX = 3, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_action { +NETKIT_NEXT = -1, +NETKIT_PASS = 0, +NETKIT_DROP = 2, +NETKIT_REDIRECT = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_mode { +NETKIT_L2 = 0, +NETKIT_L3 = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_20 { +IFLA_NETKIT_UNSPEC = 0, +IFLA_NETKIT_PEER_INFO = 1, +IFLA_NETKIT_PRIMARY = 2, +IFLA_NETKIT_POLICY = 3, +IFLA_NETKIT_PEER_POLICY = 4, +IFLA_NETKIT_MODE = 5, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +IFLA_NETKIT_HEADROOM = 8, +IFLA_NETKIT_TAILROOM = 9, +__IFLA_NETKIT_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_21 { +VNIFILTER_ENTRY_STATS_UNSPEC = 0, +VNIFILTER_ENTRY_STATS_RX_BYTES = 1, +VNIFILTER_ENTRY_STATS_RX_PKTS = 2, +VNIFILTER_ENTRY_STATS_RX_DROPS = 3, +VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, +VNIFILTER_ENTRY_STATS_TX_BYTES = 5, +VNIFILTER_ENTRY_STATS_TX_PKTS = 6, +VNIFILTER_ENTRY_STATS_TX_DROPS = 7, +VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, +VNIFILTER_ENTRY_STATS_PAD = 9, +__VNIFILTER_ENTRY_STATS_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_22 { +VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY_START = 1, +VXLAN_VNIFILTER_ENTRY_END = 2, +VXLAN_VNIFILTER_ENTRY_GROUP = 3, +VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, +VXLAN_VNIFILTER_ENTRY_STATS = 5, +__VXLAN_VNIFILTER_ENTRY_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_23 { +VXLAN_VNIFILTER_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY = 1, +__VXLAN_VNIFILTER_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_24 { +IFLA_VXLAN_UNSPEC = 0, +IFLA_VXLAN_ID = 1, +IFLA_VXLAN_GROUP = 2, +IFLA_VXLAN_LINK = 3, +IFLA_VXLAN_LOCAL = 4, +IFLA_VXLAN_TTL = 5, +IFLA_VXLAN_TOS = 6, +IFLA_VXLAN_LEARNING = 7, +IFLA_VXLAN_AGEING = 8, +IFLA_VXLAN_LIMIT = 9, +IFLA_VXLAN_PORT_RANGE = 10, +IFLA_VXLAN_PROXY = 11, +IFLA_VXLAN_RSC = 12, +IFLA_VXLAN_L2MISS = 13, +IFLA_VXLAN_L3MISS = 14, +IFLA_VXLAN_PORT = 15, +IFLA_VXLAN_GROUP6 = 16, +IFLA_VXLAN_LOCAL6 = 17, +IFLA_VXLAN_UDP_CSUM = 18, +IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, +IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, +IFLA_VXLAN_REMCSUM_TX = 21, +IFLA_VXLAN_REMCSUM_RX = 22, +IFLA_VXLAN_GBP = 23, +IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, +IFLA_VXLAN_COLLECT_METADATA = 25, +IFLA_VXLAN_LABEL = 26, +IFLA_VXLAN_GPE = 27, +IFLA_VXLAN_TTL_INHERIT = 28, +IFLA_VXLAN_DF = 29, +IFLA_VXLAN_VNIFILTER = 30, +IFLA_VXLAN_LOCALBYPASS = 31, +IFLA_VXLAN_LABEL_POLICY = 32, +IFLA_VXLAN_RESERVED_BITS = 33, +__IFLA_VXLAN_MAX = 34, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_df { +VXLAN_DF_UNSET = 0, +VXLAN_DF_SET = 1, +VXLAN_DF_INHERIT = 2, +__VXLAN_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_label_policy { +VXLAN_LABEL_FIXED = 0, +VXLAN_LABEL_INHERIT = 1, +__VXLAN_LABEL_END = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_25 { +IFLA_GENEVE_UNSPEC = 0, +IFLA_GENEVE_ID = 1, +IFLA_GENEVE_REMOTE = 2, +IFLA_GENEVE_TTL = 3, +IFLA_GENEVE_TOS = 4, +IFLA_GENEVE_PORT = 5, +IFLA_GENEVE_COLLECT_METADATA = 6, +IFLA_GENEVE_REMOTE6 = 7, +IFLA_GENEVE_UDP_CSUM = 8, +IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, +IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, +IFLA_GENEVE_LABEL = 11, +IFLA_GENEVE_TTL_INHERIT = 12, +IFLA_GENEVE_DF = 13, +IFLA_GENEVE_INNER_PROTO_INHERIT = 14, +IFLA_GENEVE_PORT_RANGE = 15, +__IFLA_GENEVE_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_geneve_df { +GENEVE_DF_UNSET = 0, +GENEVE_DF_SET = 1, +GENEVE_DF_INHERIT = 2, +__GENEVE_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_26 { +IFLA_BAREUDP_UNSPEC = 0, +IFLA_BAREUDP_PORT = 1, +IFLA_BAREUDP_ETHERTYPE = 2, +IFLA_BAREUDP_SRCPORT_MIN = 3, +IFLA_BAREUDP_MULTIPROTO_MODE = 4, +__IFLA_BAREUDP_MAX = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_27 { +IFLA_PPP_UNSPEC = 0, +IFLA_PPP_DEV_FD = 1, +__IFLA_PPP_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_gtp_role { +GTP_ROLE_GGSN = 0, +GTP_ROLE_SGSN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_28 { +IFLA_GTP_UNSPEC = 0, +IFLA_GTP_FD0 = 1, +IFLA_GTP_FD1 = 2, +IFLA_GTP_PDP_HASHSIZE = 3, +IFLA_GTP_ROLE = 4, +IFLA_GTP_CREATE_SOCKETS = 5, +IFLA_GTP_RESTART_COUNT = 6, +IFLA_GTP_LOCAL = 7, +IFLA_GTP_LOCAL6 = 8, +__IFLA_GTP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_29 { +IFLA_BOND_UNSPEC = 0, +IFLA_BOND_MODE = 1, +IFLA_BOND_ACTIVE_SLAVE = 2, +IFLA_BOND_MIIMON = 3, +IFLA_BOND_UPDELAY = 4, +IFLA_BOND_DOWNDELAY = 5, +IFLA_BOND_USE_CARRIER = 6, +IFLA_BOND_ARP_INTERVAL = 7, +IFLA_BOND_ARP_IP_TARGET = 8, +IFLA_BOND_ARP_VALIDATE = 9, +IFLA_BOND_ARP_ALL_TARGETS = 10, +IFLA_BOND_PRIMARY = 11, +IFLA_BOND_PRIMARY_RESELECT = 12, +IFLA_BOND_FAIL_OVER_MAC = 13, +IFLA_BOND_XMIT_HASH_POLICY = 14, +IFLA_BOND_RESEND_IGMP = 15, +IFLA_BOND_NUM_PEER_NOTIF = 16, +IFLA_BOND_ALL_SLAVES_ACTIVE = 17, +IFLA_BOND_MIN_LINKS = 18, +IFLA_BOND_LP_INTERVAL = 19, +IFLA_BOND_PACKETS_PER_SLAVE = 20, +IFLA_BOND_AD_LACP_RATE = 21, +IFLA_BOND_AD_SELECT = 22, +IFLA_BOND_AD_INFO = 23, +IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, +IFLA_BOND_AD_USER_PORT_KEY = 25, +IFLA_BOND_AD_ACTOR_SYSTEM = 26, +IFLA_BOND_TLB_DYNAMIC_LB = 27, +IFLA_BOND_PEER_NOTIF_DELAY = 28, +IFLA_BOND_AD_LACP_ACTIVE = 29, +IFLA_BOND_MISSED_MAX = 30, +IFLA_BOND_NS_IP6_TARGET = 31, +IFLA_BOND_COUPLED_CONTROL = 32, +__IFLA_BOND_MAX = 33, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_30 { +IFLA_BOND_AD_INFO_UNSPEC = 0, +IFLA_BOND_AD_INFO_AGGREGATOR = 1, +IFLA_BOND_AD_INFO_NUM_PORTS = 2, +IFLA_BOND_AD_INFO_ACTOR_KEY = 3, +IFLA_BOND_AD_INFO_PARTNER_KEY = 4, +IFLA_BOND_AD_INFO_PARTNER_MAC = 5, +__IFLA_BOND_AD_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_31 { +IFLA_BOND_SLAVE_UNSPEC = 0, +IFLA_BOND_SLAVE_STATE = 1, +IFLA_BOND_SLAVE_MII_STATUS = 2, +IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, +IFLA_BOND_SLAVE_PERM_HWADDR = 4, +IFLA_BOND_SLAVE_QUEUE_ID = 5, +IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, +IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, +IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, +IFLA_BOND_SLAVE_PRIO = 9, +__IFLA_BOND_SLAVE_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_32 { +IFLA_VF_INFO_UNSPEC = 0, +IFLA_VF_INFO = 1, +__IFLA_VF_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_33 { +IFLA_VF_UNSPEC = 0, +IFLA_VF_MAC = 1, +IFLA_VF_VLAN = 2, +IFLA_VF_TX_RATE = 3, +IFLA_VF_SPOOFCHK = 4, +IFLA_VF_LINK_STATE = 5, +IFLA_VF_RATE = 6, +IFLA_VF_RSS_QUERY_EN = 7, +IFLA_VF_STATS = 8, +IFLA_VF_TRUST = 9, +IFLA_VF_IB_NODE_GUID = 10, +IFLA_VF_IB_PORT_GUID = 11, +IFLA_VF_VLAN_LIST = 12, +IFLA_VF_BROADCAST = 13, +__IFLA_VF_MAX = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_34 { +IFLA_VF_VLAN_INFO_UNSPEC = 0, +IFLA_VF_VLAN_INFO = 1, +__IFLA_VF_VLAN_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_35 { +IFLA_VF_LINK_STATE_AUTO = 0, +IFLA_VF_LINK_STATE_ENABLE = 1, +IFLA_VF_LINK_STATE_DISABLE = 2, +__IFLA_VF_LINK_STATE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_36 { +IFLA_VF_STATS_RX_PACKETS = 0, +IFLA_VF_STATS_TX_PACKETS = 1, +IFLA_VF_STATS_RX_BYTES = 2, +IFLA_VF_STATS_TX_BYTES = 3, +IFLA_VF_STATS_BROADCAST = 4, +IFLA_VF_STATS_MULTICAST = 5, +IFLA_VF_STATS_PAD = 6, +IFLA_VF_STATS_RX_DROPPED = 7, +IFLA_VF_STATS_TX_DROPPED = 8, +__IFLA_VF_STATS_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_37 { +IFLA_VF_PORT_UNSPEC = 0, +IFLA_VF_PORT = 1, +__IFLA_VF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_38 { +IFLA_PORT_UNSPEC = 0, +IFLA_PORT_VF = 1, +IFLA_PORT_PROFILE = 2, +IFLA_PORT_VSI_TYPE = 3, +IFLA_PORT_INSTANCE_UUID = 4, +IFLA_PORT_HOST_UUID = 5, +IFLA_PORT_REQUEST = 6, +IFLA_PORT_RESPONSE = 7, +__IFLA_PORT_MAX = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_39 { +PORT_REQUEST_PREASSOCIATE = 0, +PORT_REQUEST_PREASSOCIATE_RR = 1, +PORT_REQUEST_ASSOCIATE = 2, +PORT_REQUEST_DISASSOCIATE = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_40 { +PORT_VDP_RESPONSE_SUCCESS = 0, +PORT_VDP_RESPONSE_INVALID_FORMAT = 1, +PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, +PORT_VDP_RESPONSE_UNUSED_VTID = 3, +PORT_VDP_RESPONSE_VTID_VIOLATION = 4, +PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, +PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, +PORT_PROFILE_RESPONSE_SUCCESS = 256, +PORT_PROFILE_RESPONSE_INPROGRESS = 257, +PORT_PROFILE_RESPONSE_INVALID = 258, +PORT_PROFILE_RESPONSE_BADSTATE = 259, +PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, +PORT_PROFILE_RESPONSE_ERROR = 261, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_41 { +IFLA_IPOIB_UNSPEC = 0, +IFLA_IPOIB_PKEY = 1, +IFLA_IPOIB_MODE = 2, +IFLA_IPOIB_UMCAST = 3, +__IFLA_IPOIB_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_42 { +IPOIB_MODE_DATAGRAM = 0, +IPOIB_MODE_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_43 { +HSR_PROTOCOL_HSR = 0, +HSR_PROTOCOL_PRP = 1, +HSR_PROTOCOL_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_44 { +IFLA_HSR_UNSPEC = 0, +IFLA_HSR_SLAVE1 = 1, +IFLA_HSR_SLAVE2 = 2, +IFLA_HSR_MULTICAST_SPEC = 3, +IFLA_HSR_SUPERVISION_ADDR = 4, +IFLA_HSR_SEQ_NR = 5, +IFLA_HSR_VERSION = 6, +IFLA_HSR_PROTOCOL = 7, +IFLA_HSR_INTERLINK = 8, +__IFLA_HSR_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_45 { +IFLA_STATS_UNSPEC = 0, +IFLA_STATS_LINK_64 = 1, +IFLA_STATS_LINK_XSTATS = 2, +IFLA_STATS_LINK_XSTATS_SLAVE = 3, +IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, +IFLA_STATS_AF_SPEC = 5, +__IFLA_STATS_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_46 { +IFLA_STATS_GETSET_UNSPEC = 0, +IFLA_STATS_GET_FILTERS = 1, +IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, +__IFLA_STATS_GETSET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_47 { +LINK_XSTATS_TYPE_UNSPEC = 0, +LINK_XSTATS_TYPE_BRIDGE = 1, +LINK_XSTATS_TYPE_BOND = 2, +__LINK_XSTATS_TYPE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_48 { +IFLA_OFFLOAD_XSTATS_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, +IFLA_OFFLOAD_XSTATS_L3_STATS = 3, +__IFLA_OFFLOAD_XSTATS_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_49 { +IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, +__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_50 { +XDP_ATTACHED_NONE = 0, +XDP_ATTACHED_DRV = 1, +XDP_ATTACHED_SKB = 2, +XDP_ATTACHED_HW = 3, +XDP_ATTACHED_MULTI = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_51 { +IFLA_XDP_UNSPEC = 0, +IFLA_XDP_FD = 1, +IFLA_XDP_ATTACHED = 2, +IFLA_XDP_FLAGS = 3, +IFLA_XDP_PROG_ID = 4, +IFLA_XDP_DRV_PROG_ID = 5, +IFLA_XDP_SKB_PROG_ID = 6, +IFLA_XDP_HW_PROG_ID = 7, +IFLA_XDP_EXPECTED_FD = 8, +__IFLA_XDP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_52 { +IFLA_EVENT_NONE = 0, +IFLA_EVENT_REBOOT = 1, +IFLA_EVENT_FEATURES = 2, +IFLA_EVENT_BONDING_FAILOVER = 3, +IFLA_EVENT_NOTIFY_PEERS = 4, +IFLA_EVENT_IGMP_RESEND = 5, +IFLA_EVENT_BONDING_OPTIONS = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_53 { +IFLA_TUN_UNSPEC = 0, +IFLA_TUN_OWNER = 1, +IFLA_TUN_GROUP = 2, +IFLA_TUN_TYPE = 3, +IFLA_TUN_PI = 4, +IFLA_TUN_VNET_HDR = 5, +IFLA_TUN_PERSIST = 6, +IFLA_TUN_MULTI_QUEUE = 7, +IFLA_TUN_NUM_QUEUES = 8, +IFLA_TUN_NUM_DISABLED_QUEUES = 9, +__IFLA_TUN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_54 { +IFLA_RMNET_UNSPEC = 0, +IFLA_RMNET_MUX_ID = 1, +IFLA_RMNET_FLAGS = 2, +__IFLA_RMNET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_55 { +IFLA_MCTP_UNSPEC = 0, +IFLA_MCTP_NET = 1, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_56 { +IFLA_DSA_UNSPEC = 0, +IFLA_DSA_CONDUIT = 1, +__IFLA_DSA_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ovpn_mode { +OVPN_MODE_P2P = 0, +OVPN_MODE_MP = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_57 { +IFLA_OVPN_UNSPEC = 0, +IFLA_OVPN_MODE = 1, +__IFLA_OVPN_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_58 { +IF_PORT_UNKNOWN = 0, +IF_PORT_10BASE2 = 1, +IF_PORT_10BASET = 2, +IF_PORT_AUI = 3, +IF_PORT_100BASET = 4, +IF_PORT_100BASETX = 5, +IF_PORT_100BASEFX = 6, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __kernel_sockaddr_storage__bindgen_ty_1 { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, +pub __align: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union if_settings__bindgen_ty_1 { +pub raw_hdlc: *mut raw_hdlc_proto, +pub cisco: *mut cisco_proto, +pub fr: *mut fr_proto, +pub fr_pvc: *mut fr_proto_pvc, +pub fr_pvc_info: *mut fr_proto_pvc_info, +pub x25: *mut x25_hdlc_proto, +pub sync: *mut sync_serial_settings, +pub te1: *mut te1_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_1 { +pub ifrn_name: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_2 { +pub ifru_addr: sockaddr, +pub ifru_dstaddr: sockaddr, +pub ifru_broadaddr: sockaddr, +pub ifru_netmask: sockaddr, +pub ifru_hwaddr: sockaddr, +pub ifru_flags: crate::ctypes::c_short, +pub ifru_ivalue: crate::ctypes::c_int, +pub ifru_mtu: crate::ctypes::c_int, +pub ifru_map: ifmap, +pub ifru_slave: [crate::ctypes::c_char; 16usize], +pub ifru_newname: [crate::ctypes::c_char; 16usize], +pub ifru_data: *mut crate::ctypes::c_void, +pub ifru_settings: if_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifconf__bindgen_ty_1 { +pub ifcu_buf: *mut crate::ctypes::c_char, +pub ifcu_req: *mut ifreq, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_stats_u { +pub stats1: tpacket_stats, +pub stats3: tpacket_stats_v3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket3_hdr__bindgen_ty_1 { +pub hv1: tpacket_hdr_variant1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_ts__bindgen_ty_1 { +pub ts_usec: crate::ctypes::c_uint, +pub ts_nsec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_header_u { +pub bh1: tpacket_hdr_v1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_req_u { +pub req: tpacket_req, +pub req3: tpacket_req3, +} +impl nlmsgerr_attrs { +pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; +} +impl netlink_policy_type_attr { +pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; +} +impl macsec_validation_type { +pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; +} +impl macsec_offload { +pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; +} +impl ifla_vxlan_df { +pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; +} +impl ifla_vxlan_label_policy { +pub const VXLAN_LABEL_MAX: ifla_vxlan_label_policy = ifla_vxlan_label_policy::VXLAN_LABEL_INHERIT; +} +impl ifla_geneve_df { +pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/if_ether.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/if_ether.rs new file mode 100644 index 0000000000000000000000000000000000000000..1eb9a7a19c5fdac6fcfdc266862c8a03a95f7b7c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/if_ether.rs @@ -0,0 +1,168 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_daddr_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct ethhdr { +pub h_dest: [crate::ctypes::c_uchar; 6usize], +pub h_source: [crate::ctypes::c_uchar; 6usize], +pub h_proto: __be16, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const ETH_ALEN: u32 = 6; +pub const ETH_TLEN: u32 = 2; +pub const ETH_HLEN: u32 = 14; +pub const ETH_ZLEN: u32 = 60; +pub const ETH_DATA_LEN: u32 = 1500; +pub const ETH_FRAME_LEN: u32 = 1514; +pub const ETH_FCS_LEN: u32 = 4; +pub const ETH_MIN_MTU: u32 = 68; +pub const ETH_MAX_MTU: u32 = 65535; +pub const ETH_P_LOOP: u32 = 96; +pub const ETH_P_PUP: u32 = 512; +pub const ETH_P_PUPAT: u32 = 513; +pub const ETH_P_TSN: u32 = 8944; +pub const ETH_P_ERSPAN2: u32 = 8939; +pub const ETH_P_IP: u32 = 2048; +pub const ETH_P_X25: u32 = 2053; +pub const ETH_P_ARP: u32 = 2054; +pub const ETH_P_BPQ: u32 = 2303; +pub const ETH_P_IEEEPUP: u32 = 2560; +pub const ETH_P_IEEEPUPAT: u32 = 2561; +pub const ETH_P_BATMAN: u32 = 17157; +pub const ETH_P_DEC: u32 = 24576; +pub const ETH_P_DNA_DL: u32 = 24577; +pub const ETH_P_DNA_RC: u32 = 24578; +pub const ETH_P_DNA_RT: u32 = 24579; +pub const ETH_P_LAT: u32 = 24580; +pub const ETH_P_DIAG: u32 = 24581; +pub const ETH_P_CUST: u32 = 24582; +pub const ETH_P_SCA: u32 = 24583; +pub const ETH_P_TEB: u32 = 25944; +pub const ETH_P_RARP: u32 = 32821; +pub const ETH_P_ATALK: u32 = 32923; +pub const ETH_P_AARP: u32 = 33011; +pub const ETH_P_8021Q: u32 = 33024; +pub const ETH_P_ERSPAN: u32 = 35006; +pub const ETH_P_IPX: u32 = 33079; +pub const ETH_P_IPV6: u32 = 34525; +pub const ETH_P_PAUSE: u32 = 34824; +pub const ETH_P_SLOW: u32 = 34825; +pub const ETH_P_WCCP: u32 = 34878; +pub const ETH_P_MPLS_UC: u32 = 34887; +pub const ETH_P_MPLS_MC: u32 = 34888; +pub const ETH_P_ATMMPOA: u32 = 34892; +pub const ETH_P_PPP_DISC: u32 = 34915; +pub const ETH_P_PPP_SES: u32 = 34916; +pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_ATMFATE: u32 = 34948; +pub const ETH_P_PAE: u32 = 34958; +pub const ETH_P_PROFINET: u32 = 34962; +pub const ETH_P_REALTEK: u32 = 34969; +pub const ETH_P_AOE: u32 = 34978; +pub const ETH_P_ETHERCAT: u32 = 34980; +pub const ETH_P_8021AD: u32 = 34984; +pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_PREAUTH: u32 = 35015; +pub const ETH_P_TIPC: u32 = 35018; +pub const ETH_P_LLDP: u32 = 35020; +pub const ETH_P_MRP: u32 = 35043; +pub const ETH_P_MACSEC: u32 = 35045; +pub const ETH_P_8021AH: u32 = 35047; +pub const ETH_P_MVRP: u32 = 35061; +pub const ETH_P_1588: u32 = 35063; +pub const ETH_P_NCSI: u32 = 35064; +pub const ETH_P_PRP: u32 = 35067; +pub const ETH_P_CFM: u32 = 35074; +pub const ETH_P_FCOE: u32 = 35078; +pub const ETH_P_IBOE: u32 = 35093; +pub const ETH_P_TDLS: u32 = 35085; +pub const ETH_P_FIP: u32 = 35092; +pub const ETH_P_80221: u32 = 35095; +pub const ETH_P_HSR: u32 = 35119; +pub const ETH_P_NSH: u32 = 35151; +pub const ETH_P_LOOPBACK: u32 = 36864; +pub const ETH_P_QINQ1: u32 = 37120; +pub const ETH_P_QINQ2: u32 = 37376; +pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_EDSA: u32 = 56026; +pub const ETH_P_DSA_8021Q: u32 = 56027; +pub const ETH_P_DSA_A5PSW: u32 = 57345; +pub const ETH_P_IFE: u32 = 60734; +pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_802_3_MIN: u32 = 1536; +pub const ETH_P_802_3: u32 = 1; +pub const ETH_P_AX25: u32 = 2; +pub const ETH_P_ALL: u32 = 3; +pub const ETH_P_802_2: u32 = 4; +pub const ETH_P_SNAP: u32 = 5; +pub const ETH_P_DDCMP: u32 = 6; +pub const ETH_P_WAN_PPP: u32 = 7; +pub const ETH_P_PPP_MP: u32 = 8; +pub const ETH_P_LOCALTALK: u32 = 9; +pub const ETH_P_CAN: u32 = 12; +pub const ETH_P_CANFD: u32 = 13; +pub const ETH_P_CANXL: u32 = 14; +pub const ETH_P_PPPTALK: u32 = 16; +pub const ETH_P_TR_802_2: u32 = 17; +pub const ETH_P_MOBITEX: u32 = 21; +pub const ETH_P_CONTROL: u32 = 22; +pub const ETH_P_IRDA: u32 = 23; +pub const ETH_P_ECONET: u32 = 24; +pub const ETH_P_HDLC: u32 = 25; +pub const ETH_P_ARCNET: u32 = 26; +pub const ETH_P_DSA: u32 = 27; +pub const ETH_P_TRAILER: u32 = 28; +pub const ETH_P_PHONET: u32 = 245; +pub const ETH_P_IEEE802154: u32 = 246; +pub const ETH_P_CAIF: u32 = 247; +pub const ETH_P_XDSA: u32 = 248; +pub const ETH_P_MAP: u32 = 249; +pub const ETH_P_MCTP: u32 = 250; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/if_packet.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/if_packet.rs new file mode 100644 index 0000000000000000000000000000000000000000..c84c62f2b3644f9c37b48d8ff9a4f74b77cd869d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/if_packet.rs @@ -0,0 +1,525 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_daddr_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_pkt { +pub spkt_family: crate::ctypes::c_ushort, +pub spkt_device: [crate::ctypes::c_uchar; 14usize], +pub spkt_protocol: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_ll { +pub sll_family: crate::ctypes::c_ushort, +pub sll_protocol: __be16, +pub sll_ifindex: crate::ctypes::c_int, +pub sll_hatype: crate::ctypes::c_ushort, +pub sll_pkttype: crate::ctypes::c_uchar, +pub sll_halen: crate::ctypes::c_uchar, +pub sll_addr: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats_v3 { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +pub tp_freeze_q_cnt: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_rollover_stats { +pub tp_all: __u64, +pub tp_huge: __u64, +pub tp_failed: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_auxdata { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr { +pub tp_status: crate::ctypes::c_ulong, +pub tp_len: crate::ctypes::c_uint, +pub tp_snaplen: crate::ctypes::c_uint, +pub tp_mac: crate::ctypes::c_ushort, +pub tp_net: crate::ctypes::c_ushort, +pub tp_sec: crate::ctypes::c_uint, +pub tp_usec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket2_hdr { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +pub tp_padding: [__u8; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr_variant1 { +pub tp_rxhash: __u32, +pub tp_vlan_tci: __u32, +pub tp_vlan_tpid: __u16, +pub tp_padding: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket3_hdr { +pub tp_next_offset: __u32, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_snaplen: __u32, +pub tp_len: __u32, +pub tp_status: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub __bindgen_anon_1: tpacket3_hdr__bindgen_ty_1, +pub tp_padding: [__u8; 8usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_bd_ts { +pub ts_sec: crate::ctypes::c_uint, +pub __bindgen_anon_1: tpacket_bd_ts__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_hdr_v1 { +pub block_status: __u32, +pub num_pkts: __u32, +pub offset_to_first_pkt: __u32, +pub blk_len: __u32, +pub seq_num: __u64, +pub ts_first_pkt: tpacket_bd_ts, +pub ts_last_pkt: tpacket_bd_ts, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_block_desc { +pub version: __u32, +pub offset_to_priv: __u32, +pub hdr: tpacket_bd_header_u, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req3 { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +pub tp_retire_blk_tov: crate::ctypes::c_uint, +pub tp_sizeof_priv: crate::ctypes::c_uint, +pub tp_feature_req_word: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct packet_mreq { +pub mr_ifindex: crate::ctypes::c_int, +pub mr_type: crate::ctypes::c_ushort, +pub mr_alen: crate::ctypes::c_ushort, +pub mr_address: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fanout_args { +pub type_flags: __u16, +pub id: __u16, +pub max_num_members: __u32, +} +pub const __BIG_ENDIAN: u32 = 4321; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const ASI_NULL1: u32 = 0; +pub const ASI_NULL2: u32 = 1; +pub const ASI_CONTROL: u32 = 2; +pub const ASI_SEGMAP: u32 = 3; +pub const ASI_PTE: u32 = 4; +pub const ASI_HWFLUSHSEG: u32 = 5; +pub const ASI_HWFLUSHPAGE: u32 = 6; +pub const ASI_REGMAP: u32 = 6; +pub const ASI_HWFLUSHCONTEXT: u32 = 7; +pub const ASI_USERTXT: u32 = 8; +pub const ASI_KERNELTXT: u32 = 9; +pub const ASI_USERDATA: u32 = 10; +pub const ASI_KERNELDATA: u32 = 11; +pub const ASI_FLUSHSEG: u32 = 12; +pub const ASI_FLUSHPG: u32 = 13; +pub const ASI_FLUSHCTX: u32 = 14; +pub const ASI_M_RES00: u32 = 0; +pub const ASI_M_UNA01: u32 = 1; +pub const ASI_M_MXCC: u32 = 2; +pub const ASI_M_FLUSH_PROBE: u32 = 3; +pub const ASI_M_MMUREGS: u32 = 4; +pub const ASI_M_TLBDIAG: u32 = 5; +pub const ASI_M_DIAGS: u32 = 6; +pub const ASI_M_IODIAG: u32 = 7; +pub const ASI_M_USERTXT: u32 = 8; +pub const ASI_M_KERNELTXT: u32 = 9; +pub const ASI_M_USERDATA: u32 = 10; +pub const ASI_M_KERNELDATA: u32 = 11; +pub const ASI_M_TXTC_TAG: u32 = 12; +pub const ASI_M_TXTC_DATA: u32 = 13; +pub const ASI_M_DATAC_TAG: u32 = 14; +pub const ASI_M_DATAC_DATA: u32 = 15; +pub const ASI_M_FLUSH_PAGE: u32 = 16; +pub const ASI_M_FLUSH_SEG: u32 = 17; +pub const ASI_M_FLUSH_REGION: u32 = 18; +pub const ASI_M_FLUSH_CTX: u32 = 19; +pub const ASI_M_FLUSH_USER: u32 = 20; +pub const ASI_M_BCOPY: u32 = 23; +pub const ASI_M_IFLUSH_PAGE: u32 = 24; +pub const ASI_M_IFLUSH_SEG: u32 = 25; +pub const ASI_M_IFLUSH_REGION: u32 = 26; +pub const ASI_M_IFLUSH_CTX: u32 = 27; +pub const ASI_M_IFLUSH_USER: u32 = 28; +pub const ASI_M_BFILL: u32 = 31; +pub const ASI_M_BYPASS: u32 = 32; +pub const ASI_M_FBMEM: u32 = 41; +pub const ASI_M_VMEUS: u32 = 42; +pub const ASI_M_VMEPS: u32 = 43; +pub const ASI_M_VMEUT: u32 = 44; +pub const ASI_M_VMEPT: u32 = 45; +pub const ASI_M_SBUS: u32 = 46; +pub const ASI_M_CTL: u32 = 47; +pub const ASI_M_FLUSH_IWHOLE: u32 = 49; +pub const ASI_M_IC_FLCLEAR: u32 = 54; +pub const ASI_M_DC_FLCLEAR: u32 = 55; +pub const ASI_M_DCDR: u32 = 57; +pub const ASI_M_VIKING_TMP1: u32 = 64; +pub const ASI_M_ACTION: u32 = 76; +pub const ASI_LEON_NOCACHE: u32 = 1; +pub const ASI_LEON_DCACHE_MISS: u32 = 1; +pub const ASI_LEON_CACHEREGS: u32 = 2; +pub const ASI_LEON_IFLUSH: u32 = 16; +pub const ASI_LEON_DFLUSH: u32 = 17; +pub const ASI_LEON_MMUFLUSH: u32 = 24; +pub const ASI_LEON_MMUREGS: u32 = 25; +pub const ASI_LEON_BYPASS: u32 = 28; +pub const ASI_LEON_FLUSH_PAGE: u32 = 16; +pub const ASI_N: u32 = 4; +pub const ASI_NL: u32 = 12; +pub const ASI_AIUP: u32 = 16; +pub const ASI_AIUS: u32 = 17; +pub const ASI_AIUPL: u32 = 24; +pub const ASI_AIUSL: u32 = 25; +pub const ASI_P: u32 = 128; +pub const ASI_S: u32 = 129; +pub const ASI_PNF: u32 = 130; +pub const ASI_SNF: u32 = 131; +pub const ASI_PL: u32 = 136; +pub const ASI_SL: u32 = 137; +pub const ASI_PNFL: u32 = 138; +pub const ASI_SNFL: u32 = 139; +pub const ASI_MCD_PRIV_PRIMARY: u32 = 2; +pub const ASI_MCD_REAL: u32 = 5; +pub const ASI_PHYS_USE_EC: u32 = 20; +pub const ASI_PHYS_BYPASS_EC_E: u32 = 21; +pub const ASI_BLK_AIUP_4V: u32 = 22; +pub const ASI_BLK_AIUS_4V: u32 = 23; +pub const ASI_PHYS_USE_EC_L: u32 = 28; +pub const ASI_PHYS_BYPASS_EC_E_L: u32 = 29; +pub const ASI_BLK_AIUP_L_4V: u32 = 30; +pub const ASI_BLK_AIUS_L_4V: u32 = 31; +pub const ASI_SCRATCHPAD: u32 = 32; +pub const ASI_MMU: u32 = 33; +pub const ASI_BLK_INIT_QUAD_LDD_AIUS: u32 = 35; +pub const ASI_NUCLEUS_QUAD_LDD: u32 = 36; +pub const ASI_QUEUE: u32 = 37; +pub const ASI_QUAD_LDD_PHYS_4V: u32 = 38; +pub const ASI_NUCLEUS_QUAD_LDD_L: u32 = 44; +pub const ASI_QUAD_LDD_PHYS_L_4V: u32 = 46; +pub const ASI_PCACHE_DATA_STATUS: u32 = 48; +pub const ASI_PCACHE_DATA: u32 = 49; +pub const ASI_PCACHE_TAG: u32 = 50; +pub const ASI_PCACHE_SNOOP_TAG: u32 = 51; +pub const ASI_QUAD_LDD_PHYS: u32 = 52; +pub const ASI_WCACHE_VALID_BITS: u32 = 56; +pub const ASI_WCACHE_DATA: u32 = 57; +pub const ASI_WCACHE_TAG: u32 = 58; +pub const ASI_WCACHE_SNOOP_TAG: u32 = 59; +pub const ASI_QUAD_LDD_PHYS_L: u32 = 60; +pub const ASI_SRAM_FAST_INIT: u32 = 64; +pub const ASI_CORE_AVAILABLE: u32 = 65; +pub const ASI_CORE_ENABLE_STAT: u32 = 65; +pub const ASI_CORE_ENABLE: u32 = 65; +pub const ASI_XIR_STEERING: u32 = 65; +pub const ASI_CORE_RUNNING_RW: u32 = 65; +pub const ASI_CORE_RUNNING_W1S: u32 = 65; +pub const ASI_CORE_RUNNING_W1C: u32 = 65; +pub const ASI_CORE_RUNNING_STAT: u32 = 65; +pub const ASI_CMT_ERROR_STEERING: u32 = 65; +pub const ASI_DCACHE_INVALIDATE: u32 = 66; +pub const ASI_DCACHE_UTAG: u32 = 67; +pub const ASI_DCACHE_SNOOP_TAG: u32 = 68; +pub const ASI_LSU_CONTROL: u32 = 69; +pub const ASI_DCU_CONTROL_REG: u32 = 69; +pub const ASI_DCACHE_DATA: u32 = 70; +pub const ASI_DCACHE_TAG: u32 = 71; +pub const ASI_INTR_DISPATCH_STAT: u32 = 72; +pub const ASI_INTR_RECEIVE: u32 = 73; +pub const ASI_UPA_CONFIG: u32 = 74; +pub const ASI_JBUS_CONFIG: u32 = 74; +pub const ASI_SAFARI_CONFIG: u32 = 74; +pub const ASI_SAFARI_ADDRESS: u32 = 74; +pub const ASI_ESTATE_ERROR_EN: u32 = 75; +pub const ASI_AFSR: u32 = 76; +pub const ASI_AFAR: u32 = 77; +pub const ASI_EC_TAG_DATA: u32 = 78; +pub const ASI_IMMU: u32 = 80; +pub const ASI_IMMU_TSB_8KB_PTR: u32 = 81; +pub const ASI_IMMU_TSB_64KB_PTR: u32 = 82; +pub const ASI_ITLB_DATA_IN: u32 = 84; +pub const ASI_ITLB_DATA_ACCESS: u32 = 85; +pub const ASI_ITLB_TAG_READ: u32 = 86; +pub const ASI_IMMU_DEMAP: u32 = 87; +pub const ASI_DMMU: u32 = 88; +pub const ASI_DMMU_TSB_8KB_PTR: u32 = 89; +pub const ASI_DMMU_TSB_64KB_PTR: u32 = 90; +pub const ASI_DMMU_TSB_DIRECT_PTR: u32 = 91; +pub const ASI_DTLB_DATA_IN: u32 = 92; +pub const ASI_DTLB_DATA_ACCESS: u32 = 93; +pub const ASI_DTLB_TAG_READ: u32 = 94; +pub const ASI_DMMU_DEMAP: u32 = 95; +pub const ASI_IIU_INST_TRAP: u32 = 96; +pub const ASI_INTR_ID: u32 = 99; +pub const ASI_CORE_ID: u32 = 99; +pub const ASI_CESR_ID: u32 = 99; +pub const ASI_IC_INSTR: u32 = 102; +pub const ASI_IC_TAG: u32 = 103; +pub const ASI_IC_STAG: u32 = 104; +pub const ASI_IC_PRE_DECODE: u32 = 110; +pub const ASI_IC_NEXT_FIELD: u32 = 111; +pub const ASI_BRPRED_ARRAY: u32 = 111; +pub const ASI_BLK_AIUP: u32 = 112; +pub const ASI_BLK_AIUS: u32 = 113; +pub const ASI_MCU_CTRL_REG: u32 = 114; +pub const ASI_EC_DATA: u32 = 116; +pub const ASI_EC_CTRL: u32 = 117; +pub const ASI_EC_W: u32 = 118; +pub const ASI_UDB_ERROR_W: u32 = 119; +pub const ASI_UDB_CONTROL_W: u32 = 119; +pub const ASI_INTR_W: u32 = 119; +pub const ASI_INTR_DATAN_W: u32 = 119; +pub const ASI_INTR_DISPATCH_W: u32 = 119; +pub const ASI_BLK_AIUPL: u32 = 120; +pub const ASI_BLK_AIUSL: u32 = 121; +pub const ASI_EC_R: u32 = 126; +pub const ASI_UDBH_ERROR_R: u32 = 127; +pub const ASI_UDBL_ERROR_R: u32 = 127; +pub const ASI_UDBH_CONTROL_R: u32 = 127; +pub const ASI_UDBL_CONTROL_R: u32 = 127; +pub const ASI_INTR_R: u32 = 127; +pub const ASI_INTR_DATAN_R: u32 = 127; +pub const ASI_MCD_PRIMARY: u32 = 144; +pub const ASI_MCD_ST_BLKINIT_PRIMARY: u32 = 146; +pub const ASI_PIC: u32 = 176; +pub const ASI_PST8_P: u32 = 192; +pub const ASI_PST8_S: u32 = 193; +pub const ASI_PST16_P: u32 = 194; +pub const ASI_PST16_S: u32 = 195; +pub const ASI_PST32_P: u32 = 196; +pub const ASI_PST32_S: u32 = 197; +pub const ASI_PST8_PL: u32 = 200; +pub const ASI_PST8_SL: u32 = 201; +pub const ASI_PST16_PL: u32 = 202; +pub const ASI_PST16_SL: u32 = 203; +pub const ASI_PST32_PL: u32 = 204; +pub const ASI_PST32_SL: u32 = 205; +pub const ASI_FL8_P: u32 = 208; +pub const ASI_FL8_S: u32 = 209; +pub const ASI_FL16_P: u32 = 210; +pub const ASI_FL16_S: u32 = 211; +pub const ASI_FL8_PL: u32 = 216; +pub const ASI_FL8_SL: u32 = 217; +pub const ASI_FL16_PL: u32 = 218; +pub const ASI_FL16_SL: u32 = 219; +pub const ASI_BLK_COMMIT_P: u32 = 224; +pub const ASI_BLK_COMMIT_S: u32 = 225; +pub const ASI_BLK_INIT_QUAD_LDD_P: u32 = 226; +pub const ASI_BLK_INIT_QUAD_LDD_S: u32 = 227; +pub const ASI_BLK_P: u32 = 240; +pub const ASI_BLK_S: u32 = 241; +pub const ASI_ST_BLKINIT_MRU_P: u32 = 242; +pub const ASI_ST_BLKINIT_MRU_S: u32 = 243; +pub const ASI_BLK_PL: u32 = 248; +pub const ASI_BLK_SL: u32 = 249; +pub const ASI_ST_BLKINIT_MRU_PL: u32 = 250; +pub const ASI_ST_BLKINIT_MRU_SL: u32 = 251; +pub const PACKET_HOST: u32 = 0; +pub const PACKET_BROADCAST: u32 = 1; +pub const PACKET_MULTICAST: u32 = 2; +pub const PACKET_OTHERHOST: u32 = 3; +pub const PACKET_OUTGOING: u32 = 4; +pub const PACKET_LOOPBACK: u32 = 5; +pub const PACKET_USER: u32 = 6; +pub const PACKET_KERNEL: u32 = 7; +pub const PACKET_FASTROUTE: u32 = 6; +pub const PACKET_ADD_MEMBERSHIP: u32 = 1; +pub const PACKET_DROP_MEMBERSHIP: u32 = 2; +pub const PACKET_RECV_OUTPUT: u32 = 3; +pub const PACKET_RX_RING: u32 = 5; +pub const PACKET_STATISTICS: u32 = 6; +pub const PACKET_COPY_THRESH: u32 = 7; +pub const PACKET_AUXDATA: u32 = 8; +pub const PACKET_ORIGDEV: u32 = 9; +pub const PACKET_VERSION: u32 = 10; +pub const PACKET_HDRLEN: u32 = 11; +pub const PACKET_RESERVE: u32 = 12; +pub const PACKET_TX_RING: u32 = 13; +pub const PACKET_LOSS: u32 = 14; +pub const PACKET_VNET_HDR: u32 = 15; +pub const PACKET_TX_TIMESTAMP: u32 = 16; +pub const PACKET_TIMESTAMP: u32 = 17; +pub const PACKET_FANOUT: u32 = 18; +pub const PACKET_TX_HAS_OFF: u32 = 19; +pub const PACKET_QDISC_BYPASS: u32 = 20; +pub const PACKET_ROLLOVER_STATS: u32 = 21; +pub const PACKET_FANOUT_DATA: u32 = 22; +pub const PACKET_IGNORE_OUTGOING: u32 = 23; +pub const PACKET_VNET_HDR_SZ: u32 = 24; +pub const PACKET_FANOUT_HASH: u32 = 0; +pub const PACKET_FANOUT_LB: u32 = 1; +pub const PACKET_FANOUT_CPU: u32 = 2; +pub const PACKET_FANOUT_ROLLOVER: u32 = 3; +pub const PACKET_FANOUT_RND: u32 = 4; +pub const PACKET_FANOUT_QM: u32 = 5; +pub const PACKET_FANOUT_CBPF: u32 = 6; +pub const PACKET_FANOUT_EBPF: u32 = 7; +pub const PACKET_FANOUT_FLAG_ROLLOVER: u32 = 4096; +pub const PACKET_FANOUT_FLAG_UNIQUEID: u32 = 8192; +pub const PACKET_FANOUT_FLAG_IGNORE_OUTGOING: u32 = 16384; +pub const PACKET_FANOUT_FLAG_DEFRAG: u32 = 32768; +pub const TP_STATUS_KERNEL: u32 = 0; +pub const TP_STATUS_USER: u32 = 1; +pub const TP_STATUS_COPY: u32 = 2; +pub const TP_STATUS_LOSING: u32 = 4; +pub const TP_STATUS_CSUMNOTREADY: u32 = 8; +pub const TP_STATUS_VLAN_VALID: u32 = 16; +pub const TP_STATUS_BLK_TMO: u32 = 32; +pub const TP_STATUS_VLAN_TPID_VALID: u32 = 64; +pub const TP_STATUS_CSUM_VALID: u32 = 128; +pub const TP_STATUS_GSO_TCP: u32 = 256; +pub const TP_STATUS_AVAILABLE: u32 = 0; +pub const TP_STATUS_SEND_REQUEST: u32 = 1; +pub const TP_STATUS_SENDING: u32 = 2; +pub const TP_STATUS_WRONG_FORMAT: u32 = 4; +pub const TP_STATUS_TS_SOFTWARE: u32 = 536870912; +pub const TP_STATUS_TS_SYS_HARDWARE: u32 = 1073741824; +pub const TP_STATUS_TS_RAW_HARDWARE: u32 = 2147483648; +pub const TP_FT_REQ_FILL_RXHASH: u32 = 1; +pub const TPACKET_ALIGNMENT: u32 = 16; +pub const PACKET_MR_MULTICAST: u32 = 0; +pub const PACKET_MR_PROMISC: u32 = 1; +pub const PACKET_MR_ALLMULTI: u32 = 2; +pub const PACKET_MR_UNICAST: u32 = 3; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tpacket_versions { +TPACKET_V1 = 0, +TPACKET_V2 = 1, +TPACKET_V3 = 2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_stats_u { +pub stats1: tpacket_stats, +pub stats3: tpacket_stats_v3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket3_hdr__bindgen_ty_1 { +pub hv1: tpacket_hdr_variant1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_ts__bindgen_ty_1 { +pub ts_usec: crate::ctypes::c_uint, +pub ts_nsec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_header_u { +pub bh1: tpacket_hdr_v1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_req_u { +pub req: tpacket_req, +pub req3: tpacket_req3, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/image.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/image.rs new file mode 100644 index 0000000000000000000000000000000000000000..bff15e373cd12fce9e91f11af9ee8efb9065775b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/image.rs @@ -0,0 +1,3 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + + diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/io_uring.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/io_uring.rs new file mode 100644 index 0000000000000000000000000000000000000000..d5f0f5183897ea92be09dae72ac71df0cb857d7e --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/io_uring.rs @@ -0,0 +1,1439 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_daddr_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_rwf_t = crate::ctypes::c_int; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +pub struct __BindgenUnionField(::core::marker::PhantomData); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v1 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub master_key_descriptor: [__u8; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_key { +pub mode: __u32, +pub raw: [__u8; 64usize], +pub size: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v2 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub log2_data_unit_size: __u8, +pub __reserved: [__u8; 3usize], +pub master_key_identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_policy_ex_arg { +pub policy_size: __u64, +pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_key_specifier { +pub type_: __u32, +pub __reserved: __u32, +pub u: fscrypt_key_specifier__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct fscrypt_provisioning_key_payload { +pub type_: __u32, +pub flags: __u32, +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +pub struct fscrypt_add_key_arg { +pub key_spec: fscrypt_key_specifier, +pub raw_size: __u32, +pub key_id: __u32, +pub flags: __u32, +pub __reserved: [__u32; 7usize], +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_remove_key_arg { +pub key_spec: fscrypt_key_specifier, +pub removal_status_flags: __u32, +pub __reserved: [__u32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_key_status_arg { +pub key_spec: fscrypt_key_specifier, +pub __reserved: [__u32; 6usize], +pub status: __u32, +pub status_flags: __u32, +pub user_count: __u32, +pub __out_reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mount_attr { +pub attr_set: __u64, +pub attr_clr: __u64, +pub propagation: __u64, +pub userns_fd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct statmount { +pub size: __u32, +pub mnt_opts: __u32, +pub mask: __u64, +pub sb_dev_major: __u32, +pub sb_dev_minor: __u32, +pub sb_magic: __u64, +pub sb_flags: __u32, +pub fs_type: __u32, +pub mnt_id: __u64, +pub mnt_parent_id: __u64, +pub mnt_id_old: __u32, +pub mnt_parent_id_old: __u32, +pub mnt_attr: __u64, +pub mnt_propagation: __u64, +pub mnt_peer_group: __u64, +pub mnt_master: __u64, +pub propagate_from: __u64, +pub mnt_root: __u32, +pub mnt_point: __u32, +pub mnt_ns_id: __u64, +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub supported_mask: __u64, +pub mnt_uidmap_num: __u32, +pub mnt_uidmap: __u32, +pub mnt_gidmap_num: __u32, +pub mnt_gidmap: __u32, +pub __spare2: [__u64; 43usize], +pub str_: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mnt_id_req { +pub size: __u32, +pub spare: __u32, +pub mnt_id: __u64, +pub param: __u64, +pub mnt_ns_id: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_clone_range { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fstrim_range { +pub start: __u64, +pub len: __u64, +pub minlen: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsuuid2 { +pub len: __u8, +pub uuid: [__u8; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fs_sysfs_path { +pub len: __u8, +pub name: [__u8; 128usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_dedupe_range_info { +pub dest_fd: __s64, +pub dest_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct file_dedupe_range { +pub src_offset: __u64, +pub src_length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct files_stat_struct { +pub nr_files: crate::ctypes::c_ulong, +pub nr_free_files: crate::ctypes::c_ulong, +pub max_files: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct inodes_stat_t { +pub nr_inodes: crate::ctypes::c_long, +pub nr_unused: crate::ctypes::c_long, +pub dummy: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsxattr { +pub fsx_xflags: __u32, +pub fsx_extsize: __u32, +pub fsx_nextents: __u32, +pub fsx_projid: __u32, +pub fsx_cowextsize: __u32, +pub fsx_pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct page_region { +pub start: __u64, +pub end: __u64, +pub categories: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pm_scan_arg { +pub size: __u64, +pub flags: __u64, +pub start: __u64, +pub end: __u64, +pub walk_end: __u64, +pub vec: __u64, +pub vec_len: __u64, +pub max_pages: __u64, +pub category_inverted: __u64, +pub category_mask: __u64, +pub category_anyof_mask: __u64, +pub return_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct procmap_query { +pub size: __u64, +pub query_flags: __u64, +pub query_addr: __u64, +pub vma_start: __u64, +pub vma_end: __u64, +pub vma_flags: __u64, +pub vma_page_size: __u64, +pub vma_offset: __u64, +pub inode: __u64, +pub dev_major: __u32, +pub dev_minor: __u32, +pub vma_name_size: __u32, +pub build_id_size: __u32, +pub vma_name_addr: __u64, +pub build_id_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_timespec { +pub tv_sec: __kernel_time64_t, +pub tv_nsec: crate::ctypes::c_longlong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_itimerspec { +pub it_interval: __kernel_timespec, +pub it_value: __kernel_timespec, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_long_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timespec { +pub tv_sec: __kernel_old_time_t, +pub tv_nsec: crate::ctypes::c_long, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_itimerval { +pub it_interval: __kernel_old_timeval, +pub it_value: __kernel_old_timeval, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sock_timeval { +pub tv_sec: __s64, +pub tv_usec: __s64, +} +#[repr(C)] +pub struct io_uring_sqe { +pub opcode: __u8, +pub flags: __u8, +pub ioprio: __u16, +pub fd: __s32, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, +pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, +pub len: __u32, +pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, +pub user_data: __u64, +pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, +pub personality: __u16, +pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, +pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { +pub cmd_op: __u32, +pub __pad1: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_2__bindgen_ty_1 { +pub level: __u32, +pub optname: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { +pub addr_len: __u16, +pub __pad3: [__u16; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_2 { +pub write_stream: __u8, +pub __pad4: [__u8; 3usize], +} +#[repr(C)] +pub struct io_uring_sqe__bindgen_ty_6 { +pub __bindgen_anon_1: __BindgenUnionField, +pub __bindgen_anon_2: __BindgenUnionField, +pub optval: __BindgenUnionField<__u64>, +pub cmd: __BindgenUnionField<[__u8; 0usize]>, +pub bindgen_union_field: [u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { +pub addr3: __u64, +pub __pad2: [__u64; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_2 { +pub attr_ptr: __u64, +pub attr_type_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_attr_pi { +pub flags: __u16, +pub app_tag: __u16, +pub len: __u32, +pub addr: __u64, +pub seed: __u64, +pub rsvd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct io_uring_cqe { +pub user_data: __u64, +pub res: __s32, +pub flags: __u32, +pub big_cqe: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_sqring_offsets { +pub head: __u32, +pub tail: __u32, +pub ring_mask: __u32, +pub ring_entries: __u32, +pub flags: __u32, +pub dropped: __u32, +pub array: __u32, +pub resv1: __u32, +pub user_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_cqring_offsets { +pub head: __u32, +pub tail: __u32, +pub ring_mask: __u32, +pub ring_entries: __u32, +pub overflow: __u32, +pub cqes: __u32, +pub flags: __u32, +pub resv1: __u32, +pub user_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_params { +pub sq_entries: __u32, +pub cq_entries: __u32, +pub flags: __u32, +pub sq_thread_cpu: __u32, +pub sq_thread_idle: __u32, +pub features: __u32, +pub wq_fd: __u32, +pub resv: [__u32; 3usize], +pub sq_off: io_sqring_offsets, +pub cq_off: io_cqring_offsets, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_files_update { +pub offset: __u32, +pub resv: __u32, +pub fds: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_region_desc { +pub user_addr: __u64, +pub size: __u64, +pub flags: __u32, +pub id: __u32, +pub mmap_offset: __u64, +pub __resv: [__u64; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_mem_region_reg { +pub region_uptr: __u64, +pub flags: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_rsrc_register { +pub nr: __u32, +pub flags: __u32, +pub resv2: __u64, +pub data: __u64, +pub tags: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_rsrc_update { +pub offset: __u32, +pub resv: __u32, +pub data: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_rsrc_update2 { +pub offset: __u32, +pub resv: __u32, +pub data: __u64, +pub tags: __u64, +pub nr: __u32, +pub resv2: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_probe_op { +pub op: __u8, +pub resv: __u8, +pub flags: __u16, +pub resv2: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct io_uring_probe { +pub last_op: __u8, +pub ops_len: __u8, +pub resv: __u16, +pub resv2: [__u32; 3usize], +pub ops: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct io_uring_restriction { +pub opcode: __u16, +pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, +pub resv: __u8, +pub resv2: [__u32; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_clock_register { +pub clockid: __u32, +pub __resv: [__u32; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_clone_buffers { +pub src_fd: __u32, +pub flags: __u32, +pub src_off: __u32, +pub dst_off: __u32, +pub nr: __u32, +pub pad: [__u32; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf { +pub addr: __u64, +pub len: __u32, +pub bid: __u16, +pub resv: __u16, +} +#[repr(C)] +pub struct io_uring_buf_ring { +pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_buf_ring__bindgen_ty_1 { +pub __bindgen_anon_1: __BindgenUnionField, +pub __bindgen_anon_2: __BindgenUnionField, +pub bindgen_union_field: [u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { +pub resv1: __u64, +pub resv2: __u32, +pub resv3: __u16, +pub tail: __u16, +} +#[repr(C)] +#[derive(Debug)] +pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { +pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, +pub bufs: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_reg { +pub ring_addr: __u64, +pub ring_entries: __u32, +pub bgid: __u16, +pub flags: __u16, +pub resv: [__u64; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_status { +pub buf_group: __u32, +pub head: __u32, +pub resv: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_napi { +pub busy_poll_to: __u32, +pub prefer_busy_poll: __u8, +pub opcode: __u8, +pub pad: [__u8; 2usize], +pub op_param: __u32, +pub resv: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_reg_wait { +pub ts: __kernel_timespec, +pub min_wait_usec: __u32, +pub flags: __u32, +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub pad: [__u32; 3usize], +pub pad2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_getevents_arg { +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub min_wait_usec: __u32, +pub ts: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sync_cancel_reg { +pub addr: __u64, +pub fd: __s32, +pub flags: __u32, +pub timeout: __kernel_timespec, +pub opcode: __u8, +pub pad: [__u8; 7usize], +pub pad2: [__u64; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_file_index_range { +pub off: __u32, +pub len: __u32, +pub resv: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_recvmsg_out { +pub namelen: __u32, +pub controllen: __u32, +pub payloadlen: __u32, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 3usize], +} +pub const NR_OPEN: u32 = 1024; +pub const NGROUPS_MAX: u32 = 65536; +pub const ARG_MAX: u32 = 131072; +pub const LINK_MAX: u32 = 127; +pub const MAX_CANON: u32 = 255; +pub const MAX_INPUT: u32 = 255; +pub const NAME_MAX: u32 = 255; +pub const PATH_MAX: u32 = 4096; +pub const PIPE_BUF: u32 = 4096; +pub const XATTR_NAME_MAX: u32 = 255; +pub const XATTR_SIZE_MAX: u32 = 65536; +pub const XATTR_LIST_MAX: u32 = 65536; +pub const RTSIG_MAX: u32 = 32; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +pub const _IOC_XSIZEMASK: u32 = 16383; +pub const _IOC_DIRMASK: u32 = 7; +pub const _IOC_NRSHIFT: u32 = 0; +pub const _IOC_TYPESHIFT: u32 = 8; +pub const _IOC_SIZESHIFT: u32 = 16; +pub const _IOC_DIRSHIFT: u32 = 29; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const IOC_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 1073676288; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; +pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; +pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; +pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; +pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; +pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; +pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; +pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; +pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; +pub const FSCRYPT_POLICY_V1: u32 = 0; +pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; +pub const FSCRYPT_POLICY_V2: u32 = 2; +pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; +pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; +pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; +pub const FSCRYPT_ADD_KEY_FLAG_HW_WRAPPED: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; +pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; +pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; +pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; +pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; +pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FS_POLICY_FLAGS_VALID: u32 = 7; +pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; +pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; +pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; +pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; +pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; +pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; +pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; +pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; +pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FS_MAX_KEY_SIZE: u32 = 64; +pub const MS_RDONLY: u32 = 1; +pub const MS_NOSUID: u32 = 2; +pub const MS_NODEV: u32 = 4; +pub const MS_NOEXEC: u32 = 8; +pub const MS_SYNCHRONOUS: u32 = 16; +pub const MS_REMOUNT: u32 = 32; +pub const MS_MANDLOCK: u32 = 64; +pub const MS_DIRSYNC: u32 = 128; +pub const MS_NOSYMFOLLOW: u32 = 256; +pub const MS_NOATIME: u32 = 1024; +pub const MS_NODIRATIME: u32 = 2048; +pub const MS_BIND: u32 = 4096; +pub const MS_MOVE: u32 = 8192; +pub const MS_REC: u32 = 16384; +pub const MS_VERBOSE: u32 = 32768; +pub const MS_SILENT: u32 = 32768; +pub const MS_POSIXACL: u32 = 65536; +pub const MS_UNBINDABLE: u32 = 131072; +pub const MS_PRIVATE: u32 = 262144; +pub const MS_SLAVE: u32 = 524288; +pub const MS_SHARED: u32 = 1048576; +pub const MS_RELATIME: u32 = 2097152; +pub const MS_KERNMOUNT: u32 = 4194304; +pub const MS_I_VERSION: u32 = 8388608; +pub const MS_STRICTATIME: u32 = 16777216; +pub const MS_LAZYTIME: u32 = 33554432; +pub const MS_SUBMOUNT: u32 = 67108864; +pub const MS_NOREMOTELOCK: u32 = 134217728; +pub const MS_NOSEC: u32 = 268435456; +pub const MS_BORN: u32 = 536870912; +pub const MS_ACTIVE: u32 = 1073741824; +pub const MS_NOUSER: u32 = 2147483648; +pub const MS_RMT_MASK: u32 = 41943121; +pub const MS_MGC_VAL: u32 = 3236757504; +pub const MS_MGC_MSK: u32 = 4294901760; +pub const OPEN_TREE_CLONE: u32 = 1; +pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; +pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; +pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; +pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; +pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; +pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; +pub const MOVE_MOUNT_SET_GROUP: u32 = 256; +pub const MOVE_MOUNT_BENEATH: u32 = 512; +pub const MOVE_MOUNT__MASK: u32 = 887; +pub const FSOPEN_CLOEXEC: u32 = 1; +pub const FSPICK_CLOEXEC: u32 = 1; +pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; +pub const FSPICK_NO_AUTOMOUNT: u32 = 4; +pub const FSPICK_EMPTY_PATH: u32 = 8; +pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const MOUNT_ATTR_RDONLY: u32 = 1; +pub const MOUNT_ATTR_NOSUID: u32 = 2; +pub const MOUNT_ATTR_NODEV: u32 = 4; +pub const MOUNT_ATTR_NOEXEC: u32 = 8; +pub const MOUNT_ATTR__ATIME: u32 = 112; +pub const MOUNT_ATTR_RELATIME: u32 = 0; +pub const MOUNT_ATTR_NOATIME: u32 = 16; +pub const MOUNT_ATTR_STRICTATIME: u32 = 32; +pub const MOUNT_ATTR_NODIRATIME: u32 = 128; +pub const MOUNT_ATTR_IDMAP: u32 = 1048576; +pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; +pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; +pub const MNT_ID_REQ_SIZE_VER0: u32 = 24; +pub const MNT_ID_REQ_SIZE_VER1: u32 = 32; +pub const STATMOUNT_SB_BASIC: u32 = 1; +pub const STATMOUNT_MNT_BASIC: u32 = 2; +pub const STATMOUNT_PROPAGATE_FROM: u32 = 4; +pub const STATMOUNT_MNT_ROOT: u32 = 8; +pub const STATMOUNT_MNT_POINT: u32 = 16; +pub const STATMOUNT_FS_TYPE: u32 = 32; +pub const STATMOUNT_MNT_NS_ID: u32 = 64; +pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; +pub const STATMOUNT_SUPPORTED_MASK: u32 = 4096; +pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; +pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; +pub const LSMT_ROOT: i32 = -1; +pub const LISTMOUNT_REVERSE: u32 = 1; +pub const INR_OPEN_CUR: u32 = 1024; +pub const INR_OPEN_MAX: u32 = 4096; +pub const BLOCK_SIZE_BITS: u32 = 10; +pub const BLOCK_SIZE: u32 = 1024; +pub const IO_INTEGRITY_CHK_GUARD: u32 = 1; +pub const IO_INTEGRITY_CHK_REFTAG: u32 = 2; +pub const IO_INTEGRITY_CHK_APPTAG: u32 = 4; +pub const IO_INTEGRITY_VALID_FLAGS: u32 = 7; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const SEEK_DATA: u32 = 3; +pub const SEEK_HOLE: u32 = 4; +pub const SEEK_MAX: u32 = 4; +pub const RENAME_NOREPLACE: u32 = 1; +pub const RENAME_EXCHANGE: u32 = 2; +pub const RENAME_WHITEOUT: u32 = 4; +pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; +pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; +pub const NR_FILE: u32 = 8192; +pub const FS_XFLAG_REALTIME: u32 = 1; +pub const FS_XFLAG_PREALLOC: u32 = 2; +pub const FS_XFLAG_IMMUTABLE: u32 = 8; +pub const FS_XFLAG_APPEND: u32 = 16; +pub const FS_XFLAG_SYNC: u32 = 32; +pub const FS_XFLAG_NOATIME: u32 = 64; +pub const FS_XFLAG_NODUMP: u32 = 128; +pub const FS_XFLAG_RTINHERIT: u32 = 256; +pub const FS_XFLAG_PROJINHERIT: u32 = 512; +pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; +pub const FS_XFLAG_EXTSIZE: u32 = 2048; +pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; +pub const FS_XFLAG_NODEFRAG: u32 = 8192; +pub const FS_XFLAG_FILESTREAM: u32 = 16384; +pub const FS_XFLAG_DAX: u32 = 32768; +pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_HASATTR: u32 = 2147483648; +pub const BMAP_IOCTL: u32 = 1; +pub const FSLABEL_MAX: u32 = 256; +pub const FS_SECRM_FL: u32 = 1; +pub const FS_UNRM_FL: u32 = 2; +pub const FS_COMPR_FL: u32 = 4; +pub const FS_SYNC_FL: u32 = 8; +pub const FS_IMMUTABLE_FL: u32 = 16; +pub const FS_APPEND_FL: u32 = 32; +pub const FS_NODUMP_FL: u32 = 64; +pub const FS_NOATIME_FL: u32 = 128; +pub const FS_DIRTY_FL: u32 = 256; +pub const FS_COMPRBLK_FL: u32 = 512; +pub const FS_NOCOMP_FL: u32 = 1024; +pub const FS_ENCRYPT_FL: u32 = 2048; +pub const FS_BTREE_FL: u32 = 4096; +pub const FS_INDEX_FL: u32 = 4096; +pub const FS_IMAGIC_FL: u32 = 8192; +pub const FS_JOURNAL_DATA_FL: u32 = 16384; +pub const FS_NOTAIL_FL: u32 = 32768; +pub const FS_DIRSYNC_FL: u32 = 65536; +pub const FS_TOPDIR_FL: u32 = 131072; +pub const FS_HUGE_FILE_FL: u32 = 262144; +pub const FS_EXTENT_FL: u32 = 524288; +pub const FS_VERITY_FL: u32 = 1048576; +pub const FS_EA_INODE_FL: u32 = 2097152; +pub const FS_EOFBLOCKS_FL: u32 = 4194304; +pub const FS_NOCOW_FL: u32 = 8388608; +pub const FS_DAX_FL: u32 = 33554432; +pub const FS_INLINE_DATA_FL: u32 = 268435456; +pub const FS_PROJINHERIT_FL: u32 = 536870912; +pub const FS_CASEFOLD_FL: u32 = 1073741824; +pub const FS_RESERVED_FL: u32 = 2147483648; +pub const FS_FL_USER_VISIBLE: u32 = 253951; +pub const FS_FL_USER_MODIFIABLE: u32 = 229631; +pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; +pub const SYNC_FILE_RANGE_WRITE: u32 = 2; +pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; +pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; +pub const PROCFS_IOCTL_MAGIC: u8 = 102u8; +pub const PAGE_IS_WPALLOWED: u32 = 1; +pub const PAGE_IS_WRITTEN: u32 = 2; +pub const PAGE_IS_FILE: u32 = 4; +pub const PAGE_IS_PRESENT: u32 = 8; +pub const PAGE_IS_SWAPPED: u32 = 16; +pub const PAGE_IS_PFNZERO: u32 = 32; +pub const PAGE_IS_HUGE: u32 = 64; +pub const PAGE_IS_SOFT_DIRTY: u32 = 128; +pub const PAGE_IS_GUARD: u32 = 256; +pub const PM_SCAN_WP_MATCHING: u32 = 1; +pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; +pub const IORING_FILE_INDEX_ALLOC: i32 = -1; +pub const IORING_SETUP_IOPOLL: u32 = 1; +pub const IORING_SETUP_SQPOLL: u32 = 2; +pub const IORING_SETUP_SQ_AFF: u32 = 4; +pub const IORING_SETUP_CQSIZE: u32 = 8; +pub const IORING_SETUP_CLAMP: u32 = 16; +pub const IORING_SETUP_ATTACH_WQ: u32 = 32; +pub const IORING_SETUP_R_DISABLED: u32 = 64; +pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; +pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; +pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; +pub const IORING_SETUP_SQE128: u32 = 1024; +pub const IORING_SETUP_CQE32: u32 = 2048; +pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; +pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; +pub const IORING_SETUP_NO_MMAP: u32 = 16384; +pub const IORING_SETUP_REGISTERED_FD_ONLY: u32 = 32768; +pub const IORING_SETUP_NO_SQARRAY: u32 = 65536; +pub const IORING_SETUP_HYBRID_IOPOLL: u32 = 131072; +pub const IORING_URING_CMD_FIXED: u32 = 1; +pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_FSYNC_DATASYNC: u32 = 1; +pub const IORING_TIMEOUT_ABS: u32 = 1; +pub const IORING_TIMEOUT_UPDATE: u32 = 2; +pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; +pub const IORING_TIMEOUT_REALTIME: u32 = 8; +pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; +pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; +pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; +pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; +pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; +pub const IORING_POLL_ADD_MULTI: u32 = 1; +pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; +pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; +pub const IORING_POLL_ADD_LEVEL: u32 = 8; +pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; +pub const IORING_ASYNC_CANCEL_FD: u32 = 2; +pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; +pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; +pub const IORING_ASYNC_CANCEL_USERDATA: u32 = 16; +pub const IORING_ASYNC_CANCEL_OP: u32 = 32; +pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; +pub const IORING_RECV_MULTISHOT: u32 = 2; +pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; +pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; +pub const IORING_RECVSEND_BUNDLE: u32 = 16; +pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; +pub const IORING_ACCEPT_MULTISHOT: u32 = 1; +pub const IORING_ACCEPT_DONTWAIT: u32 = 2; +pub const IORING_ACCEPT_POLL_FIRST: u32 = 4; +pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; +pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; +pub const IORING_FIXED_FD_NO_CLOEXEC: u32 = 1; +pub const IORING_NOP_INJECT_RESULT: u32 = 1; +pub const IORING_NOP_FILE: u32 = 2; +pub const IORING_NOP_FIXED_FILE: u32 = 4; +pub const IORING_NOP_FIXED_BUFFER: u32 = 8; +pub const IORING_CQE_F_BUFFER: u32 = 1; +pub const IORING_CQE_F_MORE: u32 = 2; +pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; +pub const IORING_CQE_F_NOTIF: u32 = 8; +pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; +pub const IORING_OFF_SQ_RING: u32 = 0; +pub const IORING_OFF_CQ_RING: u32 = 134217728; +pub const IORING_OFF_SQES: u32 = 268435456; +pub const IORING_OFF_PBUF_RING: u32 = 2147483648; +pub const IORING_OFF_PBUF_SHIFT: u32 = 16; +pub const IORING_OFF_MMAP_MASK: u32 = 4160749568; +pub const IORING_SQ_NEED_WAKEUP: u32 = 1; +pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; +pub const IORING_SQ_TASKRUN: u32 = 4; +pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; +pub const IORING_ENTER_GETEVENTS: u32 = 1; +pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; +pub const IORING_ENTER_SQ_WAIT: u32 = 4; +pub const IORING_ENTER_EXT_ARG: u32 = 8; +pub const IORING_ENTER_REGISTERED_RING: u32 = 16; +pub const IORING_ENTER_ABS_TIMER: u32 = 32; +pub const IORING_ENTER_EXT_ARG_REG: u32 = 64; +pub const IORING_ENTER_NO_IOWAIT: u32 = 128; +pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; +pub const IORING_FEAT_NODROP: u32 = 2; +pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; +pub const IORING_FEAT_RW_CUR_POS: u32 = 8; +pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; +pub const IORING_FEAT_FAST_POLL: u32 = 32; +pub const IORING_FEAT_POLL_32BITS: u32 = 64; +pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; +pub const IORING_FEAT_EXT_ARG: u32 = 256; +pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; +pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; +pub const IORING_FEAT_CQE_SKIP: u32 = 2048; +pub const IORING_FEAT_LINKED_FILE: u32 = 4096; +pub const IORING_FEAT_REG_REG_RING: u32 = 8192; +pub const IORING_FEAT_RECVSEND_BUNDLE: u32 = 16384; +pub const IORING_FEAT_MIN_TIMEOUT: u32 = 32768; +pub const IORING_FEAT_RW_ATTR: u32 = 65536; +pub const IORING_FEAT_NO_IOWAIT: u32 = 131072; +pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; +pub const IORING_REGISTER_FILES_SKIP: i32 = -2; +pub const IO_URING_OP_SUPPORTED: u32 = 1; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; +pub const IORING_MEM_REGION_TYPE_USER: _bindgen_ty_1 = _bindgen_ty_1::IORING_MEM_REGION_TYPE_USER; +pub const IORING_MEM_REGION_REG_WAIT_ARG: _bindgen_ty_2 = _bindgen_ty_2::IORING_MEM_REGION_REG_WAIT_ARG; +pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_REGISTER_DST_REPLACE: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_DST_REPLACE; +pub const IORING_REG_WAIT_TS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REG_WAIT_TS; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum fsconfig_command { +FSCONFIG_SET_FLAG = 0, +FSCONFIG_SET_STRING = 1, +FSCONFIG_SET_BINARY = 2, +FSCONFIG_SET_PATH = 3, +FSCONFIG_SET_PATH_EMPTY = 4, +FSCONFIG_SET_FD = 5, +FSCONFIG_CMD_CREATE = 6, +FSCONFIG_CMD_RECONFIGURE = 7, +FSCONFIG_CMD_CREATE_EXCL = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum procmap_query_flags { +PROCMAP_QUERY_VMA_READABLE = 1, +PROCMAP_QUERY_VMA_WRITABLE = 2, +PROCMAP_QUERY_VMA_EXECUTABLE = 4, +PROCMAP_QUERY_VMA_SHARED = 8, +PROCMAP_QUERY_COVERING_OR_NEXT_VMA = 16, +PROCMAP_QUERY_FILE_BACKED_VMA = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_sqe_flags_bit { +IOSQE_FIXED_FILE_BIT = 0, +IOSQE_IO_DRAIN_BIT = 1, +IOSQE_IO_LINK_BIT = 2, +IOSQE_IO_HARDLINK_BIT = 3, +IOSQE_ASYNC_BIT = 4, +IOSQE_BUFFER_SELECT_BIT = 5, +IOSQE_CQE_SKIP_SUCCESS_BIT = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_op { +IORING_OP_NOP = 0, +IORING_OP_READV = 1, +IORING_OP_WRITEV = 2, +IORING_OP_FSYNC = 3, +IORING_OP_READ_FIXED = 4, +IORING_OP_WRITE_FIXED = 5, +IORING_OP_POLL_ADD = 6, +IORING_OP_POLL_REMOVE = 7, +IORING_OP_SYNC_FILE_RANGE = 8, +IORING_OP_SENDMSG = 9, +IORING_OP_RECVMSG = 10, +IORING_OP_TIMEOUT = 11, +IORING_OP_TIMEOUT_REMOVE = 12, +IORING_OP_ACCEPT = 13, +IORING_OP_ASYNC_CANCEL = 14, +IORING_OP_LINK_TIMEOUT = 15, +IORING_OP_CONNECT = 16, +IORING_OP_FALLOCATE = 17, +IORING_OP_OPENAT = 18, +IORING_OP_CLOSE = 19, +IORING_OP_FILES_UPDATE = 20, +IORING_OP_STATX = 21, +IORING_OP_READ = 22, +IORING_OP_WRITE = 23, +IORING_OP_FADVISE = 24, +IORING_OP_MADVISE = 25, +IORING_OP_SEND = 26, +IORING_OP_RECV = 27, +IORING_OP_OPENAT2 = 28, +IORING_OP_EPOLL_CTL = 29, +IORING_OP_SPLICE = 30, +IORING_OP_PROVIDE_BUFFERS = 31, +IORING_OP_REMOVE_BUFFERS = 32, +IORING_OP_TEE = 33, +IORING_OP_SHUTDOWN = 34, +IORING_OP_RENAMEAT = 35, +IORING_OP_UNLINKAT = 36, +IORING_OP_MKDIRAT = 37, +IORING_OP_SYMLINKAT = 38, +IORING_OP_LINKAT = 39, +IORING_OP_MSG_RING = 40, +IORING_OP_FSETXATTR = 41, +IORING_OP_SETXATTR = 42, +IORING_OP_FGETXATTR = 43, +IORING_OP_GETXATTR = 44, +IORING_OP_SOCKET = 45, +IORING_OP_URING_CMD = 46, +IORING_OP_SEND_ZC = 47, +IORING_OP_SENDMSG_ZC = 48, +IORING_OP_READ_MULTISHOT = 49, +IORING_OP_WAITID = 50, +IORING_OP_FUTEX_WAIT = 51, +IORING_OP_FUTEX_WAKE = 52, +IORING_OP_FUTEX_WAITV = 53, +IORING_OP_FIXED_FD_INSTALL = 54, +IORING_OP_FTRUNCATE = 55, +IORING_OP_BIND = 56, +IORING_OP_LISTEN = 57, +IORING_OP_RECV_ZC = 58, +IORING_OP_EPOLL_WAIT = 59, +IORING_OP_READV_FIXED = 60, +IORING_OP_WRITEV_FIXED = 61, +IORING_OP_PIPE = 62, +IORING_OP_LAST = 63, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_msg_ring_flags { +IORING_MSG_DATA = 0, +IORING_MSG_SEND_FD = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_register_op { +IORING_REGISTER_BUFFERS = 0, +IORING_UNREGISTER_BUFFERS = 1, +IORING_REGISTER_FILES = 2, +IORING_UNREGISTER_FILES = 3, +IORING_REGISTER_EVENTFD = 4, +IORING_UNREGISTER_EVENTFD = 5, +IORING_REGISTER_FILES_UPDATE = 6, +IORING_REGISTER_EVENTFD_ASYNC = 7, +IORING_REGISTER_PROBE = 8, +IORING_REGISTER_PERSONALITY = 9, +IORING_UNREGISTER_PERSONALITY = 10, +IORING_REGISTER_RESTRICTIONS = 11, +IORING_REGISTER_ENABLE_RINGS = 12, +IORING_REGISTER_FILES2 = 13, +IORING_REGISTER_FILES_UPDATE2 = 14, +IORING_REGISTER_BUFFERS2 = 15, +IORING_REGISTER_BUFFERS_UPDATE = 16, +IORING_REGISTER_IOWQ_AFF = 17, +IORING_UNREGISTER_IOWQ_AFF = 18, +IORING_REGISTER_IOWQ_MAX_WORKERS = 19, +IORING_REGISTER_RING_FDS = 20, +IORING_UNREGISTER_RING_FDS = 21, +IORING_REGISTER_PBUF_RING = 22, +IORING_UNREGISTER_PBUF_RING = 23, +IORING_REGISTER_SYNC_CANCEL = 24, +IORING_REGISTER_FILE_ALLOC_RANGE = 25, +IORING_REGISTER_PBUF_STATUS = 26, +IORING_REGISTER_NAPI = 27, +IORING_UNREGISTER_NAPI = 28, +IORING_REGISTER_CLOCK = 29, +IORING_REGISTER_CLONE_BUFFERS = 30, +IORING_REGISTER_SEND_MSG_RING = 31, +IORING_REGISTER_ZCRX_IFQ = 32, +IORING_REGISTER_RESIZE_RINGS = 33, +IORING_REGISTER_MEM_REGION = 34, +IORING_REGISTER_LAST = 35, +IORING_REGISTER_USE_REGISTERED_RING = 2147483648, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_wq_type { +IO_WQ_BOUND = 0, +IO_WQ_UNBOUND = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +IORING_MEM_REGION_TYPE_USER = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IORING_MEM_REGION_REG_WAIT_ARG = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +IORING_REGISTER_SRC_REGISTERED = 1, +IORING_REGISTER_DST_REPLACE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_register_pbuf_ring_flags { +IOU_PBUF_RING_MMAP = 1, +IOU_PBUF_RING_INC = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_op { +IO_URING_NAPI_REGISTER_OP = 0, +IO_URING_NAPI_STATIC_ADD_ID = 1, +IO_URING_NAPI_STATIC_DEL_ID = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_tracking_strategy { +IO_URING_NAPI_TRACKING_DYNAMIC = 0, +IO_URING_NAPI_TRACKING_STATIC = 1, +IO_URING_NAPI_TRACKING_INACTIVE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_register_restriction_op { +IORING_RESTRICTION_REGISTER_OP = 0, +IORING_RESTRICTION_SQE_OP = 1, +IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, +IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, +IORING_RESTRICTION_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IORING_REG_WAIT_TS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_socket_op { +SOCKET_URING_OP_SIOCINQ = 0, +SOCKET_URING_OP_SIOCOUTQ = 1, +SOCKET_URING_OP_GETSOCKOPT = 2, +SOCKET_URING_OP_SETSOCKOPT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { +pub version: __u8, +pub v1: fscrypt_policy_v1, +pub v2: fscrypt_policy_v2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_key_specifier__bindgen_ty_1 { +pub __reserved: [__u8; 32usize], +pub descriptor: [__u8; 8usize], +pub identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_1 { +pub off: __u64, +pub addr2: __u64, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_2 { +pub addr: __u64, +pub splice_off_in: __u64, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_2__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_3 { +pub rw_flags: __kernel_rwf_t, +pub fsync_flags: __u32, +pub poll_events: __u16, +pub poll32_events: __u32, +pub sync_range_flags: __u32, +pub msg_flags: __u32, +pub timeout_flags: __u32, +pub accept_flags: __u32, +pub cancel_flags: __u32, +pub open_flags: __u32, +pub statx_flags: __u32, +pub fadvise_advice: __u32, +pub splice_flags: __u32, +pub rename_flags: __u32, +pub unlink_flags: __u32, +pub hardlink_flags: __u32, +pub xattr_flags: __u32, +pub msg_ring_flags: __u32, +pub uring_cmd_flags: __u32, +pub waitid_flags: __u32, +pub futex_flags: __u32, +pub install_fd_flags: __u32, +pub nop_flags: __u32, +pub pipe_flags: __u32, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_4 { +pub buf_index: __u16, +pub buf_group: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_5 { +pub splice_fd_in: __s32, +pub file_index: __u32, +pub zcrx_ifq_idx: __u32, +pub optlen: __u32, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, +pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_5__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_restriction__bindgen_ty_1 { +pub register_op: __u8, +pub sqe_op: __u8, +pub sqe_flags: __u8, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl __BindgenUnionField { +#[inline] +pub const fn new() -> Self { +__BindgenUnionField(::core::marker::PhantomData) +} +#[inline] +pub unsafe fn as_ref(&self) -> &T { +::core::mem::transmute(self) +} +#[inline] +pub unsafe fn as_mut(&mut self) -> &mut T { +::core::mem::transmute(self) +} +} +impl ::core::default::Default for __BindgenUnionField { +#[inline] +fn default() -> Self { +Self::new() +} +} +impl ::core::clone::Clone for __BindgenUnionField { +#[inline] +fn clone(&self) -> Self { +*self +} +} +impl ::core::marker::Copy for __BindgenUnionField {} +impl ::core::fmt::Debug for __BindgenUnionField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__BindgenUnionField") +} +} +impl ::core::hash::Hash for __BindgenUnionField { +fn hash(&self, _state: &mut H) {} +} +impl ::core::cmp::PartialEq for __BindgenUnionField { +fn eq(&self, _other: &__BindgenUnionField) -> bool { +true +} +} +impl ::core::cmp::Eq for __BindgenUnionField {} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/ioctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/ioctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..bff15e373cd12fce9e91f11af9ee8efb9065775b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/ioctl.rs @@ -0,0 +1,3 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + + diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/landlock.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/landlock.rs new file mode 100644 index 0000000000000000000000000000000000000000..fcede13428effb1a38b91496f78ce09a735ff555 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/landlock.rs @@ -0,0 +1,102 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_daddr_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct landlock_ruleset_attr { +pub handled_access_fs: __u64, +pub handled_access_net: __u64, +pub scoped: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct landlock_path_beneath_attr { +pub allowed_access: __u64, +pub parent_fd: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct landlock_net_port_attr { +pub allowed_access: __u64, +pub port: __u64, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; +pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; +pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; +pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; +pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; +pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; +pub const LANDLOCK_ACCESS_FS_READ_DIR: u32 = 8; +pub const LANDLOCK_ACCESS_FS_REMOVE_DIR: u32 = 16; +pub const LANDLOCK_ACCESS_FS_REMOVE_FILE: u32 = 32; +pub const LANDLOCK_ACCESS_FS_MAKE_CHAR: u32 = 64; +pub const LANDLOCK_ACCESS_FS_MAKE_DIR: u32 = 128; +pub const LANDLOCK_ACCESS_FS_MAKE_REG: u32 = 256; +pub const LANDLOCK_ACCESS_FS_MAKE_SOCK: u32 = 512; +pub const LANDLOCK_ACCESS_FS_MAKE_FIFO: u32 = 1024; +pub const LANDLOCK_ACCESS_FS_MAKE_BLOCK: u32 = 2048; +pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; +pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; +pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; +pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; +pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; +pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum landlock_rule_type { +LANDLOCK_RULE_PATH_BENEATH = 1, +LANDLOCK_RULE_NET_PORT = 2, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/loop_device.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/loop_device.rs new file mode 100644 index 0000000000000000000000000000000000000000..e08def3b89c622e0b28962092af0df75235aa6f0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/loop_device.rs @@ -0,0 +1,132 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_daddr_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct loop_info { +pub lo_number: crate::ctypes::c_int, +pub lo_device: __kernel_old_dev_t, +pub lo_inode: crate::ctypes::c_ulong, +pub lo_rdevice: __kernel_old_dev_t, +pub lo_offset: crate::ctypes::c_int, +pub lo_encrypt_type: crate::ctypes::c_int, +pub lo_encrypt_key_size: crate::ctypes::c_int, +pub lo_flags: crate::ctypes::c_int, +pub lo_name: [crate::ctypes::c_char; 64usize], +pub lo_encrypt_key: [crate::ctypes::c_uchar; 32usize], +pub lo_init: [crate::ctypes::c_ulong; 2usize], +pub reserved: [crate::ctypes::c_char; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct loop_info64 { +pub lo_device: __u64, +pub lo_inode: __u64, +pub lo_rdevice: __u64, +pub lo_offset: __u64, +pub lo_sizelimit: __u64, +pub lo_number: __u32, +pub lo_encrypt_type: __u32, +pub lo_encrypt_key_size: __u32, +pub lo_flags: __u32, +pub lo_file_name: [__u8; 64usize], +pub lo_crypt_name: [__u8; 64usize], +pub lo_encrypt_key: [__u8; 32usize], +pub lo_init: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct loop_config { +pub fd: __u32, +pub block_size: __u32, +pub info: loop_info64, +pub __reserved: [__u64; 8usize], +} +pub const LO_NAME_SIZE: u32 = 64; +pub const LO_KEY_SIZE: u32 = 32; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const LO_CRYPT_NONE: u32 = 0; +pub const LO_CRYPT_XOR: u32 = 1; +pub const LO_CRYPT_DES: u32 = 2; +pub const LO_CRYPT_FISH2: u32 = 3; +pub const LO_CRYPT_BLOW: u32 = 4; +pub const LO_CRYPT_CAST128: u32 = 5; +pub const LO_CRYPT_IDEA: u32 = 6; +pub const LO_CRYPT_DUMMY: u32 = 9; +pub const LO_CRYPT_SKIPJACK: u32 = 10; +pub const LO_CRYPT_CRYPTOAPI: u32 = 18; +pub const MAX_LO_CRYPT: u32 = 20; +pub const LOOP_SET_FD: u32 = 19456; +pub const LOOP_CLR_FD: u32 = 19457; +pub const LOOP_SET_STATUS: u32 = 19458; +pub const LOOP_GET_STATUS: u32 = 19459; +pub const LOOP_SET_STATUS64: u32 = 19460; +pub const LOOP_GET_STATUS64: u32 = 19461; +pub const LOOP_CHANGE_FD: u32 = 19462; +pub const LOOP_SET_CAPACITY: u32 = 19463; +pub const LOOP_SET_DIRECT_IO: u32 = 19464; +pub const LOOP_SET_BLOCK_SIZE: u32 = 19465; +pub const LOOP_CONFIGURE: u32 = 19466; +pub const LOOP_CTL_ADD: u32 = 19584; +pub const LOOP_CTL_REMOVE: u32 = 19585; +pub const LOOP_CTL_GET_FREE: u32 = 19586; +pub const LO_FLAGS_READ_ONLY: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_READ_ONLY; +pub const LO_FLAGS_AUTOCLEAR: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_AUTOCLEAR; +pub const LO_FLAGS_PARTSCAN: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_PARTSCAN; +pub const LO_FLAGS_DIRECT_IO: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_DIRECT_IO; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +LO_FLAGS_READ_ONLY = 1, +LO_FLAGS_AUTOCLEAR = 4, +LO_FLAGS_PARTSCAN = 8, +LO_FLAGS_DIRECT_IO = 16, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/mempolicy.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/mempolicy.rs new file mode 100644 index 0000000000000000000000000000000000000000..b25b97d13606828b48fd2b66a72f05b8ac145533 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/mempolicy.rs @@ -0,0 +1,177 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EWOULDBLOCK: u32 = 11; +pub const EINPROGRESS: u32 = 36; +pub const EALREADY: u32 = 37; +pub const ENOTSOCK: u32 = 38; +pub const EDESTADDRREQ: u32 = 39; +pub const EMSGSIZE: u32 = 40; +pub const EPROTOTYPE: u32 = 41; +pub const ENOPROTOOPT: u32 = 42; +pub const EPROTONOSUPPORT: u32 = 43; +pub const ESOCKTNOSUPPORT: u32 = 44; +pub const EOPNOTSUPP: u32 = 45; +pub const EPFNOSUPPORT: u32 = 46; +pub const EAFNOSUPPORT: u32 = 47; +pub const EADDRINUSE: u32 = 48; +pub const EADDRNOTAVAIL: u32 = 49; +pub const ENETDOWN: u32 = 50; +pub const ENETUNREACH: u32 = 51; +pub const ENETRESET: u32 = 52; +pub const ECONNABORTED: u32 = 53; +pub const ECONNRESET: u32 = 54; +pub const ENOBUFS: u32 = 55; +pub const EISCONN: u32 = 56; +pub const ENOTCONN: u32 = 57; +pub const ESHUTDOWN: u32 = 58; +pub const ETOOMANYREFS: u32 = 59; +pub const ETIMEDOUT: u32 = 60; +pub const ECONNREFUSED: u32 = 61; +pub const ELOOP: u32 = 62; +pub const ENAMETOOLONG: u32 = 63; +pub const EHOSTDOWN: u32 = 64; +pub const EHOSTUNREACH: u32 = 65; +pub const ENOTEMPTY: u32 = 66; +pub const EPROCLIM: u32 = 67; +pub const EUSERS: u32 = 68; +pub const EDQUOT: u32 = 69; +pub const ESTALE: u32 = 70; +pub const EREMOTE: u32 = 71; +pub const ENOSTR: u32 = 72; +pub const ETIME: u32 = 73; +pub const ENOSR: u32 = 74; +pub const ENOMSG: u32 = 75; +pub const EBADMSG: u32 = 76; +pub const EIDRM: u32 = 77; +pub const EDEADLK: u32 = 78; +pub const ENOLCK: u32 = 79; +pub const ENONET: u32 = 80; +pub const ERREMOTE: u32 = 81; +pub const ENOLINK: u32 = 82; +pub const EADV: u32 = 83; +pub const ESRMNT: u32 = 84; +pub const ECOMM: u32 = 85; +pub const EPROTO: u32 = 86; +pub const EMULTIHOP: u32 = 87; +pub const EDOTDOT: u32 = 88; +pub const EREMCHG: u32 = 89; +pub const ENOSYS: u32 = 90; +pub const ESTRPIPE: u32 = 91; +pub const EOVERFLOW: u32 = 92; +pub const EBADFD: u32 = 93; +pub const ECHRNG: u32 = 94; +pub const EL2NSYNC: u32 = 95; +pub const EL3HLT: u32 = 96; +pub const EL3RST: u32 = 97; +pub const ELNRNG: u32 = 98; +pub const EUNATCH: u32 = 99; +pub const ENOCSI: u32 = 100; +pub const EL2HLT: u32 = 101; +pub const EBADE: u32 = 102; +pub const EBADR: u32 = 103; +pub const EXFULL: u32 = 104; +pub const ENOANO: u32 = 105; +pub const EBADRQC: u32 = 106; +pub const EBADSLT: u32 = 107; +pub const EDEADLOCK: u32 = 108; +pub const EBFONT: u32 = 109; +pub const ELIBEXEC: u32 = 110; +pub const ENODATA: u32 = 111; +pub const ELIBBAD: u32 = 112; +pub const ENOPKG: u32 = 113; +pub const ELIBACC: u32 = 114; +pub const ENOTUNIQ: u32 = 115; +pub const ERESTART: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EILSEQ: u32 = 122; +pub const ELIBMAX: u32 = 123; +pub const ELIBSCN: u32 = 124; +pub const ENOMEDIUM: u32 = 125; +pub const EMEDIUMTYPE: u32 = 126; +pub const ECANCELED: u32 = 127; +pub const ENOKEY: u32 = 128; +pub const EKEYEXPIRED: u32 = 129; +pub const EKEYREVOKED: u32 = 130; +pub const EKEYREJECTED: u32 = 131; +pub const EOWNERDEAD: u32 = 132; +pub const ENOTRECOVERABLE: u32 = 133; +pub const ERFKILL: u32 = 134; +pub const EHWPOISON: u32 = 135; +pub const MPOL_F_STATIC_NODES: u32 = 32768; +pub const MPOL_F_RELATIVE_NODES: u32 = 16384; +pub const MPOL_F_NUMA_BALANCING: u32 = 8192; +pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_F_NODE: u32 = 1; +pub const MPOL_F_ADDR: u32 = 2; +pub const MPOL_F_MEMS_ALLOWED: u32 = 4; +pub const MPOL_MF_STRICT: u32 = 1; +pub const MPOL_MF_MOVE: u32 = 2; +pub const MPOL_MF_MOVE_ALL: u32 = 4; +pub const MPOL_MF_LAZY: u32 = 8; +pub const MPOL_MF_INTERNAL: u32 = 16; +pub const MPOL_MF_VALID: u32 = 7; +pub const MPOL_F_SHARED: u32 = 1; +pub const MPOL_F_MOF: u32 = 8; +pub const MPOL_F_MORON: u32 = 16; +pub const RECLAIM_ZONE: u32 = 1; +pub const RECLAIM_WRITE: u32 = 2; +pub const RECLAIM_UNMAP: u32 = 4; +pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; +pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; +pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; +pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; +pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; +pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; +pub const MPOL_WEIGHTED_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_WEIGHTED_INTERLEAVE; +pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +MPOL_DEFAULT = 0, +MPOL_PREFERRED = 1, +MPOL_BIND = 2, +MPOL_INTERLEAVE = 3, +MPOL_LOCAL = 4, +MPOL_PREFERRED_MANY = 5, +MPOL_WEIGHTED_INTERLEAVE = 6, +MPOL_MAX = 7, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/net.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/net.rs new file mode 100644 index 0000000000000000000000000000000000000000..00a55af1aa3b3b652d219e278cfef8ab0ebf960c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/net.rs @@ -0,0 +1,3699 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_daddr_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_sa_family_t = crate::ctypes::c_ushort; +pub type socklen_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] +pub struct __BindgenBitfieldUnit { +storage: Storage, +} +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +pub struct __BindgenUnionField(::core::marker::PhantomData); +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __kernel_sockaddr_storage { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { +pub ss_family: __kernel_sa_family_t, +pub __data: [crate::ctypes::c_char; 126usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct in_addr { +pub s_addr: __be32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_mreq { +pub imr_multiaddr: in_addr, +pub imr_interface: in_addr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_mreqn { +pub imr_multiaddr: in_addr, +pub imr_address: in_addr, +pub imr_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_mreq_source { +pub imr_multiaddr: __be32, +pub imr_interface: __be32, +pub imr_sourceaddr: __be32, +} +#[repr(C)] +pub struct ip_msfilter { +pub imsf_multiaddr: __be32, +pub imsf_interface: __be32, +pub imsf_fmode: __u32, +pub imsf_numsrc: __u32, +pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, +} +#[repr(C)] +pub struct ip_msfilter__bindgen_ty_1 { +pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, +pub __bindgen_anon_1: __BindgenUnionField, +pub bindgen_union_field: u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { +pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, +pub imsf_slist_flex: __IncompleteArrayField<__be32>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct group_req { +pub gr_interface: __u32, +pub gr_group: __kernel_sockaddr_storage, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct group_source_req { +pub gsr_interface: __u32, +pub gsr_group: __kernel_sockaddr_storage, +pub gsr_source: __kernel_sockaddr_storage, +} +#[repr(C)] +pub struct group_filter { +pub __bindgen_anon_1: group_filter__bindgen_ty_1, +} +#[repr(C)] +pub struct group_filter__bindgen_ty_1 { +pub __bindgen_anon_1: __BindgenUnionField, +pub __bindgen_anon_2: __BindgenUnionField, +pub bindgen_union_field: [u32; 67usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { +pub gf_interface_aux: __u32, +pub gf_group_aux: __kernel_sockaddr_storage, +pub gf_fmode_aux: __u32, +pub gf_numsrc_aux: __u32, +pub gf_slist: [__kernel_sockaddr_storage; 1usize], +} +#[repr(C)] +pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { +pub gf_interface: __u32, +pub gf_group: __kernel_sockaddr_storage, +pub gf_fmode: __u32, +pub gf_numsrc: __u32, +pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct in_pktinfo { +pub ipi_ifindex: crate::ctypes::c_int, +pub ipi_spec_dst: in_addr, +pub ipi_addr: in_addr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_in { +pub sin_family: __kernel_sa_family_t, +pub sin_port: __be16, +pub sin_addr: in_addr, +pub __pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct iphdr { +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, +pub tos: __u8, +pub tot_len: __be16, +pub id: __be16, +pub frag_off: __be16, +pub ttl: __u8, +pub protocol: __u8, +pub check: __sum16, +pub __bindgen_anon_1: iphdr__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { +pub saddr: __be32, +pub daddr: __be32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { +pub saddr: __be32, +pub daddr: __be32, +} +#[repr(C)] +#[derive(Debug)] +pub struct ip_auth_hdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +pub reserved: __be16, +pub spi: __be32, +pub seq_no: __be32, +pub auth_data: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug)] +pub struct ip_esp_hdr { +pub spi: __be32, +pub seq_no: __be32, +pub enc_data: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_comp_hdr { +pub nexthdr: __u8, +pub flags: __u8, +pub cpi: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_beet_phdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +pub padlen: __u8, +pub reserved: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_iptfs_hdr { +pub subtype: __u8, +pub flags: __u8, +pub block_offset: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_iptfs_cc_hdr { +pub subtype: __u8, +pub flags: __u8, +pub block_offset: __be16, +pub loss_rate: __be32, +pub rtt_adelay_xdelay: __be64, +pub tval: __be32, +pub techo: __be32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_addr { +pub in6_u: in6_addr__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sockaddr_in6 { +pub sin6_family: crate::ctypes::c_ushort, +pub sin6_port: __be16, +pub sin6_flowinfo: __be32, +pub sin6_addr: in6_addr, +pub sin6_scope_id: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6_mreq { +pub ipv6mr_multiaddr: in6_addr, +pub ipv6mr_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_flowlabel_req { +pub flr_dst: in6_addr, +pub flr_label: __be32, +pub flr_action: __u8, +pub flr_share: __u8, +pub flr_flags: __u16, +pub flr_expires: __u16, +pub flr_linger: __u16, +pub __flr_pad: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_pktinfo { +pub ipi6_addr: in6_addr, +pub ipi6_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ip6_mtuinfo { +pub ip6m_addr: sockaddr_in6, +pub ip6m_mtu: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_ifreq { +pub ifr6_addr: in6_addr, +pub ifr6_prefixlen: __u32, +pub ifr6_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ipv6_rt_hdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +pub type_: __u8, +pub segments_left: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct ipv6_opt_hdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +} +#[repr(C)] +pub struct rt0_hdr { +pub rt_hdr: ipv6_rt_hdr, +pub reserved: __u32, +pub addr: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct rt2_hdr { +pub rt_hdr: ipv6_rt_hdr, +pub reserved: __u32, +pub addr: in6_addr, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct ipv6_destopt_hao { +pub type_: __u8, +pub length: __u8, +pub addr: in6_addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6hdr { +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, +pub flow_lbl: [__u8; 3usize], +pub payload_len: __be16, +pub nexthdr: __u8, +pub hop_limit: __u8, +pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { +pub saddr: in6_addr, +pub daddr: in6_addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { +pub saddr: in6_addr, +pub daddr: in6_addr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcphdr { +pub source: __be16, +pub dest: __be16, +pub seq: __be32, +pub ack_seq: __be32, +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +pub window: __be16, +pub check: __sum16, +pub urg_ptr: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_repair_opt { +pub opt_code: __u32, +pub opt_val: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_repair_window { +pub snd_wl1: __u32, +pub snd_wnd: __u32, +pub max_window: __u32, +pub rcv_wnd: __u32, +pub rcv_wup: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_info { +pub tcpi_state: __u8, +pub tcpi_ca_state: __u8, +pub tcpi_retransmits: __u8, +pub tcpi_probes: __u8, +pub tcpi_backoff: __u8, +pub tcpi_options: __u8, +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +pub tcpi_rto: __u32, +pub tcpi_ato: __u32, +pub tcpi_snd_mss: __u32, +pub tcpi_rcv_mss: __u32, +pub tcpi_unacked: __u32, +pub tcpi_sacked: __u32, +pub tcpi_lost: __u32, +pub tcpi_retrans: __u32, +pub tcpi_fackets: __u32, +pub tcpi_last_data_sent: __u32, +pub tcpi_last_ack_sent: __u32, +pub tcpi_last_data_recv: __u32, +pub tcpi_last_ack_recv: __u32, +pub tcpi_pmtu: __u32, +pub tcpi_rcv_ssthresh: __u32, +pub tcpi_rtt: __u32, +pub tcpi_rttvar: __u32, +pub tcpi_snd_ssthresh: __u32, +pub tcpi_snd_cwnd: __u32, +pub tcpi_advmss: __u32, +pub tcpi_reordering: __u32, +pub tcpi_rcv_rtt: __u32, +pub tcpi_rcv_space: __u32, +pub tcpi_total_retrans: __u32, +pub tcpi_pacing_rate: __u64, +pub tcpi_max_pacing_rate: __u64, +pub tcpi_bytes_acked: __u64, +pub tcpi_bytes_received: __u64, +pub tcpi_segs_out: __u32, +pub tcpi_segs_in: __u32, +pub tcpi_notsent_bytes: __u32, +pub tcpi_min_rtt: __u32, +pub tcpi_data_segs_in: __u32, +pub tcpi_data_segs_out: __u32, +pub tcpi_delivery_rate: __u64, +pub tcpi_busy_time: __u64, +pub tcpi_rwnd_limited: __u64, +pub tcpi_sndbuf_limited: __u64, +pub tcpi_delivered: __u32, +pub tcpi_delivered_ce: __u32, +pub tcpi_bytes_sent: __u64, +pub tcpi_bytes_retrans: __u64, +pub tcpi_dsack_dups: __u32, +pub tcpi_reord_seen: __u32, +pub tcpi_rcv_ooopack: __u32, +pub tcpi_snd_wnd: __u32, +pub tcpi_rcv_wnd: __u32, +pub tcpi_rehash: __u32, +pub tcpi_total_rto: __u16, +pub tcpi_total_rto_recoveries: __u16, +pub tcpi_total_rto_time: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tcp_md5sig { +pub tcpm_addr: __kernel_sockaddr_storage, +pub tcpm_flags: __u8, +pub tcpm_prefixlen: __u8, +pub tcpm_keylen: __u16, +pub tcpm_ifindex: crate::ctypes::c_int, +pub tcpm_key: [__u8; 80usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_diag_md5sig { +pub tcpm_family: __u8, +pub tcpm_prefixlen: __u8, +pub tcpm_keylen: __u16, +pub tcpm_addr: [__be32; 4usize], +pub tcpm_key: [__u8; 80usize], +} +#[repr(C)] +#[repr(align(8))] +#[derive(Copy, Clone)] +pub struct tcp_ao_add { +pub addr: __kernel_sockaddr_storage, +pub alg_name: [crate::ctypes::c_char; 64usize], +pub ifindex: __s32, +pub _bitfield_align_1: [u32; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +pub reserved2: __u16, +pub prefix: __u8, +pub sndid: __u8, +pub rcvid: __u8, +pub maclen: __u8, +pub keyflags: __u8, +pub keylen: __u8, +pub key: [__u8; 80usize], +} +#[repr(C)] +#[repr(align(8))] +#[derive(Copy, Clone)] +pub struct tcp_ao_del { +pub addr: __kernel_sockaddr_storage, +pub ifindex: __s32, +pub _bitfield_align_1: [u32; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +pub reserved2: __u16, +pub prefix: __u8, +pub sndid: __u8, +pub rcvid: __u8, +pub current_key: __u8, +pub rnext: __u8, +pub keyflags: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_ao_info_opt { +pub _bitfield_align_1: [u32; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +pub reserved2: __u16, +pub current_key: __u8, +pub rnext: __u8, +pub pkt_good: __u64, +pub pkt_bad: __u64, +pub pkt_key_not_found: __u64, +pub pkt_ao_required: __u64, +pub pkt_dropped_icmp: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tcp_ao_getsockopt { +pub addr: __kernel_sockaddr_storage, +pub alg_name: [crate::ctypes::c_char; 64usize], +pub key: [__u8; 80usize], +pub nkeys: __u32, +pub _bitfield_align_1: [u16; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +pub sndid: __u8, +pub rcvid: __u8, +pub prefix: __u8, +pub maclen: __u8, +pub keyflags: __u8, +pub keylen: __u8, +pub ifindex: __s32, +pub pkt_good: __u64, +pub pkt_bad: __u64, +} +#[repr(C)] +#[repr(align(8))] +#[derive(Debug, Copy, Clone)] +pub struct tcp_ao_repair { +pub snt_isn: __be32, +pub rcv_isn: __be32, +pub snd_sne: __u32, +pub rcv_sne: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_zerocopy_receive { +pub address: __u64, +pub length: __u32, +pub recv_skip_hint: __u32, +pub inq: __u32, +pub err: __s32, +pub copybuf_address: __u64, +pub copybuf_len: __s32, +pub flags: __u32, +pub msg_control: __u64, +pub msg_controllen: __u64, +pub msg_flags: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_un { +pub sun_family: __kernel_sa_family_t, +pub sun_path: [crate::ctypes::c_char; 108usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sockaddr { +pub __storage: __kernel_sockaddr_storage, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sync_serial_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct te1_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +pub slot_map: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct raw_hdlc_proto { +pub encoding: crate::ctypes::c_ushort, +pub parity: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto { +pub t391: crate::ctypes::c_uint, +pub t392: crate::ctypes::c_uint, +pub n391: crate::ctypes::c_uint, +pub n392: crate::ctypes::c_uint, +pub n393: crate::ctypes::c_uint, +pub lmi: crate::ctypes::c_ushort, +pub dce: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc { +pub dlci: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc_info { +pub dlci: crate::ctypes::c_uint, +pub master: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cisco_proto { +pub interval: crate::ctypes::c_uint, +pub timeout: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct x25_hdlc_proto { +pub dce: crate::ctypes::c_ushort, +pub modulo: crate::ctypes::c_uint, +pub window: crate::ctypes::c_uint, +pub t1: crate::ctypes::c_uint, +pub t2: crate::ctypes::c_uint, +pub n2: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifmap { +pub mem_start: crate::ctypes::c_ulong, +pub mem_end: crate::ctypes::c_ulong, +pub base_addr: crate::ctypes::c_ushort, +pub irq: crate::ctypes::c_uchar, +pub dma: crate::ctypes::c_uchar, +pub port: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct if_settings { +pub type_: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +pub ifs_ifsu: if_settings__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifreq { +pub ifr_ifrn: ifreq__bindgen_ty_1, +pub ifr_ifru: ifreq__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifconf { +pub ifc_len: crate::ctypes::c_int, +pub ifc_ifcu: ifconf__bindgen_ty_1, +} +#[repr(C)] +pub struct xt_entry_match { +pub u: xt_entry_match__bindgen_ty_1, +pub data: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 { +pub match_size: __u16, +pub name: [crate::ctypes::c_char; 29usize], +pub revision: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 { +pub match_size: __u16, +pub match_: *mut xt_match, +} +#[repr(C)] +pub struct xt_entry_target { +pub u: xt_entry_target__bindgen_ty_1, +pub data: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 { +pub target_size: __u16, +pub name: [crate::ctypes::c_char; 29usize], +pub revision: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 { +pub target_size: __u16, +pub target: *mut xt_target, +} +#[repr(C)] +pub struct xt_standard_target { +pub target: xt_entry_target, +pub verdict: crate::ctypes::c_int, +} +#[repr(C)] +pub struct xt_error_target { +pub target: xt_entry_target, +pub errorname: [crate::ctypes::c_char; 30usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_get_revision { +pub name: [crate::ctypes::c_char; 29usize], +pub revision: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _xt_align { +pub u8_: __u8, +pub u16_: __u16, +pub u32_: __u32, +pub u64_: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_counters { +pub pcnt: __u64, +pub bcnt: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct xt_counters_info { +pub name: [crate::ctypes::c_char; 32usize], +pub num_counters: crate::ctypes::c_uint, +pub counters: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_tcp { +pub spts: [__u16; 2usize], +pub dpts: [__u16; 2usize], +pub option: __u8, +pub flg_mask: __u8, +pub flg_cmp: __u8, +pub invflags: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_udp { +pub spts: [__u16; 2usize], +pub dpts: [__u16; 2usize], +pub invflags: __u8, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ip6t_ip6 { +pub src: in6_addr, +pub dst: in6_addr, +pub smsk: in6_addr, +pub dmsk: in6_addr, +pub iniface: [crate::ctypes::c_char; 16usize], +pub outiface: [crate::ctypes::c_char; 16usize], +pub iniface_mask: [crate::ctypes::c_uchar; 16usize], +pub outiface_mask: [crate::ctypes::c_uchar; 16usize], +pub proto: __u16, +pub tos: __u8, +pub flags: __u8, +pub invflags: __u8, +} +#[repr(C)] +pub struct ip6t_entry { +pub ipv6: ip6t_ip6, +pub nfcache: crate::ctypes::c_uint, +pub target_offset: __u16, +pub next_offset: __u16, +pub comefrom: crate::ctypes::c_uint, +pub counters: xt_counters, +pub elems: __IncompleteArrayField, +} +#[repr(C)] +pub struct ip6t_standard { +pub entry: ip6t_entry, +pub target: xt_standard_target, +} +#[repr(C)] +pub struct ip6t_error { +pub entry: ip6t_entry, +pub target: xt_error_target, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip6t_icmp { +pub type_: __u8, +pub code: [__u8; 2usize], +pub invflags: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip6t_getinfo { +pub name: [crate::ctypes::c_char; 32usize], +pub valid_hooks: crate::ctypes::c_uint, +pub hook_entry: [crate::ctypes::c_uint; 5usize], +pub underflow: [crate::ctypes::c_uint; 5usize], +pub num_entries: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +} +#[repr(C)] +pub struct ip6t_replace { +pub name: [crate::ctypes::c_char; 32usize], +pub valid_hooks: crate::ctypes::c_uint, +pub num_entries: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +pub hook_entry: [crate::ctypes::c_uint; 5usize], +pub underflow: [crate::ctypes::c_uint; 5usize], +pub num_counters: crate::ctypes::c_uint, +pub counters: *mut xt_counters, +pub entries: __IncompleteArrayField, +} +#[repr(C)] +pub struct ip6t_get_entries { +pub name: [crate::ctypes::c_char; 32usize], +pub size: crate::ctypes::c_uint, +pub entrytable: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct so_timestamping { +pub flags: crate::ctypes::c_int, +pub bind_phc: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hwtstamp_config { +pub flags: crate::ctypes::c_int, +pub tx_type: crate::ctypes::c_int, +pub rx_filter: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct scm_ts_pktinfo { +pub if_index: __u32, +pub pkt_length: __u32, +pub reserved: [__u32; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sock_txtime { +pub clockid: __kernel_clockid_t, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct linger { +pub l_onoff: crate::ctypes::c_int, +pub l_linger: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct msghdr { +pub msg_name: *mut crate::ctypes::c_void, +pub msg_namelen: crate::ctypes::c_int, +pub msg_iov: *mut iovec, +pub msg_iovlen: usize, +pub msg_control: *mut crate::ctypes::c_void, +pub msg_controllen: usize, +pub msg_flags: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cmsghdr { +pub cmsg_len: usize, +pub cmsg_level: crate::ctypes::c_int, +pub cmsg_type: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ucred { +pub pid: __u32, +pub uid: __u32, +pub gid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mmsghdr { +pub msg_hdr: msghdr, +pub msg_len: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_match { +pub _address: u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_target { +pub _address: u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iovec { +pub _address: u8, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _K_SS_MAXSIZE: u32 = 128; +pub const SOCK_SNDBUF_LOCK: u32 = 1; +pub const SOCK_RCVBUF_LOCK: u32 = 2; +pub const SOCK_BUF_LOCK_MASK: u32 = 3; +pub const SOCK_TXREHASH_DEFAULT: u32 = 255; +pub const SOCK_TXREHASH_DISABLED: u32 = 0; +pub const SOCK_TXREHASH_ENABLED: u32 = 1; +pub const IP_TOS: u32 = 1; +pub const IP_TTL: u32 = 2; +pub const IP_HDRINCL: u32 = 3; +pub const IP_OPTIONS: u32 = 4; +pub const IP_ROUTER_ALERT: u32 = 5; +pub const IP_RECVOPTS: u32 = 6; +pub const IP_RETOPTS: u32 = 7; +pub const IP_PKTINFO: u32 = 8; +pub const IP_PKTOPTIONS: u32 = 9; +pub const IP_MTU_DISCOVER: u32 = 10; +pub const IP_RECVERR: u32 = 11; +pub const IP_RECVTTL: u32 = 12; +pub const IP_RECVTOS: u32 = 13; +pub const IP_MTU: u32 = 14; +pub const IP_FREEBIND: u32 = 15; +pub const IP_IPSEC_POLICY: u32 = 16; +pub const IP_XFRM_POLICY: u32 = 17; +pub const IP_PASSSEC: u32 = 18; +pub const IP_TRANSPARENT: u32 = 19; +pub const IP_RECVRETOPTS: u32 = 7; +pub const IP_ORIGDSTADDR: u32 = 20; +pub const IP_RECVORIGDSTADDR: u32 = 20; +pub const IP_MINTTL: u32 = 21; +pub const IP_NODEFRAG: u32 = 22; +pub const IP_CHECKSUM: u32 = 23; +pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; +pub const IP_RECVFRAGSIZE: u32 = 25; +pub const IP_RECVERR_RFC4884: u32 = 26; +pub const IP_PMTUDISC_DONT: u32 = 0; +pub const IP_PMTUDISC_WANT: u32 = 1; +pub const IP_PMTUDISC_DO: u32 = 2; +pub const IP_PMTUDISC_PROBE: u32 = 3; +pub const IP_PMTUDISC_INTERFACE: u32 = 4; +pub const IP_PMTUDISC_OMIT: u32 = 5; +pub const IP_MULTICAST_IF: u32 = 32; +pub const IP_MULTICAST_TTL: u32 = 33; +pub const IP_MULTICAST_LOOP: u32 = 34; +pub const IP_ADD_MEMBERSHIP: u32 = 35; +pub const IP_DROP_MEMBERSHIP: u32 = 36; +pub const IP_UNBLOCK_SOURCE: u32 = 37; +pub const IP_BLOCK_SOURCE: u32 = 38; +pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; +pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; +pub const IP_MSFILTER: u32 = 41; +pub const MCAST_JOIN_GROUP: u32 = 42; +pub const MCAST_BLOCK_SOURCE: u32 = 43; +pub const MCAST_UNBLOCK_SOURCE: u32 = 44; +pub const MCAST_LEAVE_GROUP: u32 = 45; +pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; +pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; +pub const MCAST_MSFILTER: u32 = 48; +pub const IP_MULTICAST_ALL: u32 = 49; +pub const IP_UNICAST_IF: u32 = 50; +pub const IP_LOCAL_PORT_RANGE: u32 = 51; +pub const IP_PROTOCOL: u32 = 52; +pub const MCAST_EXCLUDE: u32 = 0; +pub const MCAST_INCLUDE: u32 = 1; +pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; +pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; +pub const __SOCK_SIZE__: u32 = 16; +pub const IN_CLASSA_NET: u32 = 4278190080; +pub const IN_CLASSA_NSHIFT: u32 = 24; +pub const IN_CLASSA_HOST: u32 = 16777215; +pub const IN_CLASSA_MAX: u32 = 128; +pub const IN_CLASSB_NET: u32 = 4294901760; +pub const IN_CLASSB_NSHIFT: u32 = 16; +pub const IN_CLASSB_HOST: u32 = 65535; +pub const IN_CLASSB_MAX: u32 = 65536; +pub const IN_CLASSC_NET: u32 = 4294967040; +pub const IN_CLASSC_NSHIFT: u32 = 8; +pub const IN_CLASSC_HOST: u32 = 255; +pub const IN_MULTICAST_NET: u32 = 3758096384; +pub const IN_CLASSE_NET: u32 = 4294967295; +pub const IN_CLASSE_NSHIFT: u32 = 0; +pub const IN_LOOPBACKNET: u32 = 127; +pub const INADDR_LOOPBACK: u32 = 2130706433; +pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; +pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; +pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; +pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; +pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; +pub const __BIG_ENDIAN: u32 = 4321; +pub const ASI_NULL1: u32 = 0; +pub const ASI_NULL2: u32 = 1; +pub const ASI_CONTROL: u32 = 2; +pub const ASI_SEGMAP: u32 = 3; +pub const ASI_PTE: u32 = 4; +pub const ASI_HWFLUSHSEG: u32 = 5; +pub const ASI_HWFLUSHPAGE: u32 = 6; +pub const ASI_REGMAP: u32 = 6; +pub const ASI_HWFLUSHCONTEXT: u32 = 7; +pub const ASI_USERTXT: u32 = 8; +pub const ASI_KERNELTXT: u32 = 9; +pub const ASI_USERDATA: u32 = 10; +pub const ASI_KERNELDATA: u32 = 11; +pub const ASI_FLUSHSEG: u32 = 12; +pub const ASI_FLUSHPG: u32 = 13; +pub const ASI_FLUSHCTX: u32 = 14; +pub const ASI_M_RES00: u32 = 0; +pub const ASI_M_UNA01: u32 = 1; +pub const ASI_M_MXCC: u32 = 2; +pub const ASI_M_FLUSH_PROBE: u32 = 3; +pub const ASI_M_MMUREGS: u32 = 4; +pub const ASI_M_TLBDIAG: u32 = 5; +pub const ASI_M_DIAGS: u32 = 6; +pub const ASI_M_IODIAG: u32 = 7; +pub const ASI_M_USERTXT: u32 = 8; +pub const ASI_M_KERNELTXT: u32 = 9; +pub const ASI_M_USERDATA: u32 = 10; +pub const ASI_M_KERNELDATA: u32 = 11; +pub const ASI_M_TXTC_TAG: u32 = 12; +pub const ASI_M_TXTC_DATA: u32 = 13; +pub const ASI_M_DATAC_TAG: u32 = 14; +pub const ASI_M_DATAC_DATA: u32 = 15; +pub const ASI_M_FLUSH_PAGE: u32 = 16; +pub const ASI_M_FLUSH_SEG: u32 = 17; +pub const ASI_M_FLUSH_REGION: u32 = 18; +pub const ASI_M_FLUSH_CTX: u32 = 19; +pub const ASI_M_FLUSH_USER: u32 = 20; +pub const ASI_M_BCOPY: u32 = 23; +pub const ASI_M_IFLUSH_PAGE: u32 = 24; +pub const ASI_M_IFLUSH_SEG: u32 = 25; +pub const ASI_M_IFLUSH_REGION: u32 = 26; +pub const ASI_M_IFLUSH_CTX: u32 = 27; +pub const ASI_M_IFLUSH_USER: u32 = 28; +pub const ASI_M_BFILL: u32 = 31; +pub const ASI_M_BYPASS: u32 = 32; +pub const ASI_M_FBMEM: u32 = 41; +pub const ASI_M_VMEUS: u32 = 42; +pub const ASI_M_VMEPS: u32 = 43; +pub const ASI_M_VMEUT: u32 = 44; +pub const ASI_M_VMEPT: u32 = 45; +pub const ASI_M_SBUS: u32 = 46; +pub const ASI_M_CTL: u32 = 47; +pub const ASI_M_FLUSH_IWHOLE: u32 = 49; +pub const ASI_M_IC_FLCLEAR: u32 = 54; +pub const ASI_M_DC_FLCLEAR: u32 = 55; +pub const ASI_M_DCDR: u32 = 57; +pub const ASI_M_VIKING_TMP1: u32 = 64; +pub const ASI_M_ACTION: u32 = 76; +pub const ASI_LEON_NOCACHE: u32 = 1; +pub const ASI_LEON_DCACHE_MISS: u32 = 1; +pub const ASI_LEON_CACHEREGS: u32 = 2; +pub const ASI_LEON_IFLUSH: u32 = 16; +pub const ASI_LEON_DFLUSH: u32 = 17; +pub const ASI_LEON_MMUFLUSH: u32 = 24; +pub const ASI_LEON_MMUREGS: u32 = 25; +pub const ASI_LEON_BYPASS: u32 = 28; +pub const ASI_LEON_FLUSH_PAGE: u32 = 16; +pub const ASI_N: u32 = 4; +pub const ASI_NL: u32 = 12; +pub const ASI_AIUP: u32 = 16; +pub const ASI_AIUS: u32 = 17; +pub const ASI_AIUPL: u32 = 24; +pub const ASI_AIUSL: u32 = 25; +pub const ASI_P: u32 = 128; +pub const ASI_S: u32 = 129; +pub const ASI_PNF: u32 = 130; +pub const ASI_SNF: u32 = 131; +pub const ASI_PL: u32 = 136; +pub const ASI_SL: u32 = 137; +pub const ASI_PNFL: u32 = 138; +pub const ASI_SNFL: u32 = 139; +pub const ASI_MCD_PRIV_PRIMARY: u32 = 2; +pub const ASI_MCD_REAL: u32 = 5; +pub const ASI_PHYS_USE_EC: u32 = 20; +pub const ASI_PHYS_BYPASS_EC_E: u32 = 21; +pub const ASI_BLK_AIUP_4V: u32 = 22; +pub const ASI_BLK_AIUS_4V: u32 = 23; +pub const ASI_PHYS_USE_EC_L: u32 = 28; +pub const ASI_PHYS_BYPASS_EC_E_L: u32 = 29; +pub const ASI_BLK_AIUP_L_4V: u32 = 30; +pub const ASI_BLK_AIUS_L_4V: u32 = 31; +pub const ASI_SCRATCHPAD: u32 = 32; +pub const ASI_MMU: u32 = 33; +pub const ASI_BLK_INIT_QUAD_LDD_AIUS: u32 = 35; +pub const ASI_NUCLEUS_QUAD_LDD: u32 = 36; +pub const ASI_QUEUE: u32 = 37; +pub const ASI_QUAD_LDD_PHYS_4V: u32 = 38; +pub const ASI_NUCLEUS_QUAD_LDD_L: u32 = 44; +pub const ASI_QUAD_LDD_PHYS_L_4V: u32 = 46; +pub const ASI_PCACHE_DATA_STATUS: u32 = 48; +pub const ASI_PCACHE_DATA: u32 = 49; +pub const ASI_PCACHE_TAG: u32 = 50; +pub const ASI_PCACHE_SNOOP_TAG: u32 = 51; +pub const ASI_QUAD_LDD_PHYS: u32 = 52; +pub const ASI_WCACHE_VALID_BITS: u32 = 56; +pub const ASI_WCACHE_DATA: u32 = 57; +pub const ASI_WCACHE_TAG: u32 = 58; +pub const ASI_WCACHE_SNOOP_TAG: u32 = 59; +pub const ASI_QUAD_LDD_PHYS_L: u32 = 60; +pub const ASI_SRAM_FAST_INIT: u32 = 64; +pub const ASI_CORE_AVAILABLE: u32 = 65; +pub const ASI_CORE_ENABLE_STAT: u32 = 65; +pub const ASI_CORE_ENABLE: u32 = 65; +pub const ASI_XIR_STEERING: u32 = 65; +pub const ASI_CORE_RUNNING_RW: u32 = 65; +pub const ASI_CORE_RUNNING_W1S: u32 = 65; +pub const ASI_CORE_RUNNING_W1C: u32 = 65; +pub const ASI_CORE_RUNNING_STAT: u32 = 65; +pub const ASI_CMT_ERROR_STEERING: u32 = 65; +pub const ASI_DCACHE_INVALIDATE: u32 = 66; +pub const ASI_DCACHE_UTAG: u32 = 67; +pub const ASI_DCACHE_SNOOP_TAG: u32 = 68; +pub const ASI_LSU_CONTROL: u32 = 69; +pub const ASI_DCU_CONTROL_REG: u32 = 69; +pub const ASI_DCACHE_DATA: u32 = 70; +pub const ASI_DCACHE_TAG: u32 = 71; +pub const ASI_INTR_DISPATCH_STAT: u32 = 72; +pub const ASI_INTR_RECEIVE: u32 = 73; +pub const ASI_UPA_CONFIG: u32 = 74; +pub const ASI_JBUS_CONFIG: u32 = 74; +pub const ASI_SAFARI_CONFIG: u32 = 74; +pub const ASI_SAFARI_ADDRESS: u32 = 74; +pub const ASI_ESTATE_ERROR_EN: u32 = 75; +pub const ASI_AFSR: u32 = 76; +pub const ASI_AFAR: u32 = 77; +pub const ASI_EC_TAG_DATA: u32 = 78; +pub const ASI_IMMU: u32 = 80; +pub const ASI_IMMU_TSB_8KB_PTR: u32 = 81; +pub const ASI_IMMU_TSB_64KB_PTR: u32 = 82; +pub const ASI_ITLB_DATA_IN: u32 = 84; +pub const ASI_ITLB_DATA_ACCESS: u32 = 85; +pub const ASI_ITLB_TAG_READ: u32 = 86; +pub const ASI_IMMU_DEMAP: u32 = 87; +pub const ASI_DMMU: u32 = 88; +pub const ASI_DMMU_TSB_8KB_PTR: u32 = 89; +pub const ASI_DMMU_TSB_64KB_PTR: u32 = 90; +pub const ASI_DMMU_TSB_DIRECT_PTR: u32 = 91; +pub const ASI_DTLB_DATA_IN: u32 = 92; +pub const ASI_DTLB_DATA_ACCESS: u32 = 93; +pub const ASI_DTLB_TAG_READ: u32 = 94; +pub const ASI_DMMU_DEMAP: u32 = 95; +pub const ASI_IIU_INST_TRAP: u32 = 96; +pub const ASI_INTR_ID: u32 = 99; +pub const ASI_CORE_ID: u32 = 99; +pub const ASI_CESR_ID: u32 = 99; +pub const ASI_IC_INSTR: u32 = 102; +pub const ASI_IC_TAG: u32 = 103; +pub const ASI_IC_STAG: u32 = 104; +pub const ASI_IC_PRE_DECODE: u32 = 110; +pub const ASI_IC_NEXT_FIELD: u32 = 111; +pub const ASI_BRPRED_ARRAY: u32 = 111; +pub const ASI_BLK_AIUP: u32 = 112; +pub const ASI_BLK_AIUS: u32 = 113; +pub const ASI_MCU_CTRL_REG: u32 = 114; +pub const ASI_EC_DATA: u32 = 116; +pub const ASI_EC_CTRL: u32 = 117; +pub const ASI_EC_W: u32 = 118; +pub const ASI_UDB_ERROR_W: u32 = 119; +pub const ASI_UDB_CONTROL_W: u32 = 119; +pub const ASI_INTR_W: u32 = 119; +pub const ASI_INTR_DATAN_W: u32 = 119; +pub const ASI_INTR_DISPATCH_W: u32 = 119; +pub const ASI_BLK_AIUPL: u32 = 120; +pub const ASI_BLK_AIUSL: u32 = 121; +pub const ASI_EC_R: u32 = 126; +pub const ASI_UDBH_ERROR_R: u32 = 127; +pub const ASI_UDBL_ERROR_R: u32 = 127; +pub const ASI_UDBH_CONTROL_R: u32 = 127; +pub const ASI_UDBL_CONTROL_R: u32 = 127; +pub const ASI_INTR_R: u32 = 127; +pub const ASI_INTR_DATAN_R: u32 = 127; +pub const ASI_MCD_PRIMARY: u32 = 144; +pub const ASI_MCD_ST_BLKINIT_PRIMARY: u32 = 146; +pub const ASI_PIC: u32 = 176; +pub const ASI_PST8_P: u32 = 192; +pub const ASI_PST8_S: u32 = 193; +pub const ASI_PST16_P: u32 = 194; +pub const ASI_PST16_S: u32 = 195; +pub const ASI_PST32_P: u32 = 196; +pub const ASI_PST32_S: u32 = 197; +pub const ASI_PST8_PL: u32 = 200; +pub const ASI_PST8_SL: u32 = 201; +pub const ASI_PST16_PL: u32 = 202; +pub const ASI_PST16_SL: u32 = 203; +pub const ASI_PST32_PL: u32 = 204; +pub const ASI_PST32_SL: u32 = 205; +pub const ASI_FL8_P: u32 = 208; +pub const ASI_FL8_S: u32 = 209; +pub const ASI_FL16_P: u32 = 210; +pub const ASI_FL16_S: u32 = 211; +pub const ASI_FL8_PL: u32 = 216; +pub const ASI_FL8_SL: u32 = 217; +pub const ASI_FL16_PL: u32 = 218; +pub const ASI_FL16_SL: u32 = 219; +pub const ASI_BLK_COMMIT_P: u32 = 224; +pub const ASI_BLK_COMMIT_S: u32 = 225; +pub const ASI_BLK_INIT_QUAD_LDD_P: u32 = 226; +pub const ASI_BLK_INIT_QUAD_LDD_S: u32 = 227; +pub const ASI_BLK_P: u32 = 240; +pub const ASI_BLK_S: u32 = 241; +pub const ASI_ST_BLKINIT_MRU_P: u32 = 242; +pub const ASI_ST_BLKINIT_MRU_S: u32 = 243; +pub const ASI_BLK_PL: u32 = 248; +pub const ASI_BLK_SL: u32 = 249; +pub const ASI_ST_BLKINIT_MRU_PL: u32 = 250; +pub const ASI_ST_BLKINIT_MRU_SL: u32 = 251; +pub const IPTOS_TOS_MASK: u32 = 30; +pub const IPTOS_LOWDELAY: u32 = 16; +pub const IPTOS_THROUGHPUT: u32 = 8; +pub const IPTOS_RELIABILITY: u32 = 4; +pub const IPTOS_MINCOST: u32 = 2; +pub const IPTOS_PREC_MASK: u32 = 224; +pub const IPTOS_PREC_NETCONTROL: u32 = 224; +pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; +pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; +pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; +pub const IPTOS_PREC_FLASH: u32 = 96; +pub const IPTOS_PREC_IMMEDIATE: u32 = 64; +pub const IPTOS_PREC_PRIORITY: u32 = 32; +pub const IPTOS_PREC_ROUTINE: u32 = 0; +pub const IPOPT_COPY: u32 = 128; +pub const IPOPT_CLASS_MASK: u32 = 96; +pub const IPOPT_NUMBER_MASK: u32 = 31; +pub const IPOPT_CONTROL: u32 = 0; +pub const IPOPT_RESERVED1: u32 = 32; +pub const IPOPT_MEASUREMENT: u32 = 64; +pub const IPOPT_RESERVED2: u32 = 96; +pub const IPOPT_END: u32 = 0; +pub const IPOPT_NOOP: u32 = 1; +pub const IPOPT_SEC: u32 = 130; +pub const IPOPT_LSRR: u32 = 131; +pub const IPOPT_TIMESTAMP: u32 = 68; +pub const IPOPT_CIPSO: u32 = 134; +pub const IPOPT_RR: u32 = 7; +pub const IPOPT_SID: u32 = 136; +pub const IPOPT_SSRR: u32 = 137; +pub const IPOPT_RA: u32 = 148; +pub const IPVERSION: u32 = 4; +pub const MAXTTL: u32 = 255; +pub const IPDEFTTL: u32 = 64; +pub const IPOPT_OPTVAL: u32 = 0; +pub const IPOPT_OLEN: u32 = 1; +pub const IPOPT_OFFSET: u32 = 2; +pub const IPOPT_MINOFF: u32 = 4; +pub const MAX_IPOPTLEN: u32 = 40; +pub const IPOPT_NOP: u32 = 1; +pub const IPOPT_EOL: u32 = 0; +pub const IPOPT_TS: u32 = 68; +pub const IPOPT_TS_TSONLY: u32 = 0; +pub const IPOPT_TS_TSANDADDR: u32 = 1; +pub const IPOPT_TS_PRESPEC: u32 = 3; +pub const IPV4_BEET_PHMAXLEN: u32 = 8; +pub const IPV6_FL_A_GET: u32 = 0; +pub const IPV6_FL_A_PUT: u32 = 1; +pub const IPV6_FL_A_RENEW: u32 = 2; +pub const IPV6_FL_F_CREATE: u32 = 1; +pub const IPV6_FL_F_EXCL: u32 = 2; +pub const IPV6_FL_F_REFLECT: u32 = 4; +pub const IPV6_FL_F_REMOTE: u32 = 8; +pub const IPV6_FL_S_NONE: u32 = 0; +pub const IPV6_FL_S_EXCL: u32 = 1; +pub const IPV6_FL_S_PROCESS: u32 = 2; +pub const IPV6_FL_S_USER: u32 = 3; +pub const IPV6_FL_S_ANY: u32 = 255; +pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; +pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; +pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; +pub const IPV6_PRIORITY_FILLER: u32 = 256; +pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; +pub const IPV6_PRIORITY_RESERVED1: u32 = 768; +pub const IPV6_PRIORITY_BULK: u32 = 1024; +pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; +pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; +pub const IPV6_PRIORITY_CONTROL: u32 = 1792; +pub const IPV6_PRIORITY_8: u32 = 2048; +pub const IPV6_PRIORITY_9: u32 = 2304; +pub const IPV6_PRIORITY_10: u32 = 2560; +pub const IPV6_PRIORITY_11: u32 = 2816; +pub const IPV6_PRIORITY_12: u32 = 3072; +pub const IPV6_PRIORITY_13: u32 = 3328; +pub const IPV6_PRIORITY_14: u32 = 3584; +pub const IPV6_PRIORITY_15: u32 = 3840; +pub const IPPROTO_HOPOPTS: u32 = 0; +pub const IPPROTO_ROUTING: u32 = 43; +pub const IPPROTO_FRAGMENT: u32 = 44; +pub const IPPROTO_ICMPV6: u32 = 58; +pub const IPPROTO_NONE: u32 = 59; +pub const IPPROTO_DSTOPTS: u32 = 60; +pub const IPPROTO_MH: u32 = 135; +pub const IPV6_TLV_PAD1: u32 = 0; +pub const IPV6_TLV_PADN: u32 = 1; +pub const IPV6_TLV_ROUTERALERT: u32 = 5; +pub const IPV6_TLV_CALIPSO: u32 = 7; +pub const IPV6_TLV_IOAM: u32 = 49; +pub const IPV6_TLV_JUMBO: u32 = 194; +pub const IPV6_TLV_HAO: u32 = 201; +pub const IPV6_ADDRFORM: u32 = 1; +pub const IPV6_2292PKTINFO: u32 = 2; +pub const IPV6_2292HOPOPTS: u32 = 3; +pub const IPV6_2292DSTOPTS: u32 = 4; +pub const IPV6_2292RTHDR: u32 = 5; +pub const IPV6_2292PKTOPTIONS: u32 = 6; +pub const IPV6_CHECKSUM: u32 = 7; +pub const IPV6_2292HOPLIMIT: u32 = 8; +pub const IPV6_NEXTHOP: u32 = 9; +pub const IPV6_AUTHHDR: u32 = 10; +pub const IPV6_FLOWINFO: u32 = 11; +pub const IPV6_UNICAST_HOPS: u32 = 16; +pub const IPV6_MULTICAST_IF: u32 = 17; +pub const IPV6_MULTICAST_HOPS: u32 = 18; +pub const IPV6_MULTICAST_LOOP: u32 = 19; +pub const IPV6_ADD_MEMBERSHIP: u32 = 20; +pub const IPV6_DROP_MEMBERSHIP: u32 = 21; +pub const IPV6_ROUTER_ALERT: u32 = 22; +pub const IPV6_MTU_DISCOVER: u32 = 23; +pub const IPV6_MTU: u32 = 24; +pub const IPV6_RECVERR: u32 = 25; +pub const IPV6_V6ONLY: u32 = 26; +pub const IPV6_JOIN_ANYCAST: u32 = 27; +pub const IPV6_LEAVE_ANYCAST: u32 = 28; +pub const IPV6_MULTICAST_ALL: u32 = 29; +pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; +pub const IPV6_RECVERR_RFC4884: u32 = 31; +pub const IPV6_PMTUDISC_DONT: u32 = 0; +pub const IPV6_PMTUDISC_WANT: u32 = 1; +pub const IPV6_PMTUDISC_DO: u32 = 2; +pub const IPV6_PMTUDISC_PROBE: u32 = 3; +pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; +pub const IPV6_PMTUDISC_OMIT: u32 = 5; +pub const IPV6_FLOWLABEL_MGR: u32 = 32; +pub const IPV6_FLOWINFO_SEND: u32 = 33; +pub const IPV6_IPSEC_POLICY: u32 = 34; +pub const IPV6_XFRM_POLICY: u32 = 35; +pub const IPV6_HDRINCL: u32 = 36; +pub const IPV6_RECVPKTINFO: u32 = 49; +pub const IPV6_PKTINFO: u32 = 50; +pub const IPV6_RECVHOPLIMIT: u32 = 51; +pub const IPV6_HOPLIMIT: u32 = 52; +pub const IPV6_RECVHOPOPTS: u32 = 53; +pub const IPV6_HOPOPTS: u32 = 54; +pub const IPV6_RTHDRDSTOPTS: u32 = 55; +pub const IPV6_RECVRTHDR: u32 = 56; +pub const IPV6_RTHDR: u32 = 57; +pub const IPV6_RECVDSTOPTS: u32 = 58; +pub const IPV6_DSTOPTS: u32 = 59; +pub const IPV6_RECVPATHMTU: u32 = 60; +pub const IPV6_PATHMTU: u32 = 61; +pub const IPV6_DONTFRAG: u32 = 62; +pub const IPV6_RECVTCLASS: u32 = 66; +pub const IPV6_TCLASS: u32 = 67; +pub const IPV6_AUTOFLOWLABEL: u32 = 70; +pub const IPV6_ADDR_PREFERENCES: u32 = 72; +pub const IPV6_PREFER_SRC_TMP: u32 = 1; +pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; +pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; +pub const IPV6_PREFER_SRC_COA: u32 = 4; +pub const IPV6_PREFER_SRC_HOME: u32 = 1024; +pub const IPV6_PREFER_SRC_CGA: u32 = 8; +pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; +pub const IPV6_MINHOPCOUNT: u32 = 73; +pub const IPV6_ORIGDSTADDR: u32 = 74; +pub const IPV6_RECVORIGDSTADDR: u32 = 74; +pub const IPV6_TRANSPARENT: u32 = 75; +pub const IPV6_UNICAST_IF: u32 = 76; +pub const IPV6_RECVFRAGSIZE: u32 = 77; +pub const IPV6_FREEBIND: u32 = 78; +pub const IPV6_MIN_MTU: u32 = 1280; +pub const IPV6_SRCRT_STRICT: u32 = 1; +pub const IPV6_SRCRT_TYPE_0: u32 = 0; +pub const IPV6_SRCRT_TYPE_2: u32 = 2; +pub const IPV6_SRCRT_TYPE_3: u32 = 3; +pub const IPV6_SRCRT_TYPE_4: u32 = 4; +pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; +pub const SIOCGSTAMP_OLD: u32 = 35078; +pub const SIOCGSTAMPNS_OLD: u32 = 35079; +pub const SOL_SOCKET: u32 = 65535; +pub const SO_DEBUG: u32 = 1; +pub const SO_PASSCRED: u32 = 2; +pub const SO_REUSEADDR: u32 = 4; +pub const SO_KEEPALIVE: u32 = 8; +pub const SO_DONTROUTE: u32 = 16; +pub const SO_BROADCAST: u32 = 32; +pub const SO_PEERCRED: u32 = 64; +pub const SO_LINGER: u32 = 128; +pub const SO_OOBINLINE: u32 = 256; +pub const SO_REUSEPORT: u32 = 512; +pub const SO_BSDCOMPAT: u32 = 1024; +pub const SO_RCVLOWAT: u32 = 2048; +pub const SO_SNDLOWAT: u32 = 4096; +pub const SO_RCVTIMEO_OLD: u32 = 8192; +pub const SO_SNDTIMEO_OLD: u32 = 16384; +pub const SO_ACCEPTCONN: u32 = 32768; +pub const SO_SNDBUF: u32 = 4097; +pub const SO_RCVBUF: u32 = 4098; +pub const SO_SNDBUFFORCE: u32 = 4106; +pub const SO_RCVBUFFORCE: u32 = 4107; +pub const SO_ERROR: u32 = 4103; +pub const SO_TYPE: u32 = 4104; +pub const SO_PROTOCOL: u32 = 4136; +pub const SO_DOMAIN: u32 = 4137; +pub const SO_NO_CHECK: u32 = 11; +pub const SO_PRIORITY: u32 = 12; +pub const SO_BINDTODEVICE: u32 = 13; +pub const SO_ATTACH_FILTER: u32 = 26; +pub const SO_DETACH_FILTER: u32 = 27; +pub const SO_GET_FILTER: u32 = 26; +pub const SO_PEERNAME: u32 = 28; +pub const SO_PEERSEC: u32 = 30; +pub const SO_PASSSEC: u32 = 31; +pub const SO_MARK: u32 = 34; +pub const SO_RXQ_OVFL: u32 = 36; +pub const SO_WIFI_STATUS: u32 = 37; +pub const SCM_WIFI_STATUS: u32 = 37; +pub const SO_PEEK_OFF: u32 = 38; +pub const SO_NOFCS: u32 = 39; +pub const SO_LOCK_FILTER: u32 = 40; +pub const SO_SELECT_ERR_QUEUE: u32 = 41; +pub const SO_BUSY_POLL: u32 = 48; +pub const SO_MAX_PACING_RATE: u32 = 49; +pub const SO_BPF_EXTENSIONS: u32 = 50; +pub const SO_INCOMING_CPU: u32 = 51; +pub const SO_ATTACH_BPF: u32 = 52; +pub const SO_DETACH_BPF: u32 = 27; +pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 53; +pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 54; +pub const SO_CNX_ADVICE: u32 = 55; +pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 56; +pub const SO_MEMINFO: u32 = 57; +pub const SO_INCOMING_NAPI_ID: u32 = 58; +pub const SO_COOKIE: u32 = 59; +pub const SCM_TIMESTAMPING_PKTINFO: u32 = 60; +pub const SO_PEERGROUPS: u32 = 61; +pub const SO_ZEROCOPY: u32 = 62; +pub const SO_TXTIME: u32 = 63; +pub const SCM_TXTIME: u32 = 63; +pub const SO_BINDTOIFINDEX: u32 = 65; +pub const SO_SECURITY_AUTHENTICATION: u32 = 20481; +pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 20482; +pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 20484; +pub const SO_TIMESTAMP_OLD: u32 = 29; +pub const SO_TIMESTAMPNS_OLD: u32 = 33; +pub const SO_TIMESTAMPING_OLD: u32 = 35; +pub const SO_TIMESTAMP_NEW: u32 = 70; +pub const SO_TIMESTAMPNS_NEW: u32 = 66; +pub const SO_TIMESTAMPING_NEW: u32 = 67; +pub const SO_RCVTIMEO_NEW: u32 = 68; +pub const SO_SNDTIMEO_NEW: u32 = 69; +pub const SO_DETACH_REUSEPORT_BPF: u32 = 71; +pub const SO_PREFER_BUSY_POLL: u32 = 72; +pub const SO_BUSY_POLL_BUDGET: u32 = 73; +pub const SO_NETNS_COOKIE: u32 = 80; +pub const SO_BUF_LOCK: u32 = 81; +pub const SO_RESERVE_MEM: u32 = 82; +pub const SO_TXREHASH: u32 = 83; +pub const SO_RCVMARK: u32 = 84; +pub const SO_PASSPIDFD: u32 = 85; +pub const SO_PEERPIDFD: u32 = 86; +pub const SO_DEVMEM_LINEAR: u32 = 87; +pub const SCM_DEVMEM_LINEAR: u32 = 87; +pub const SO_DEVMEM_DMABUF: u32 = 88; +pub const SCM_DEVMEM_DMABUF: u32 = 88; +pub const SO_DEVMEM_DONTNEED: u32 = 89; +pub const SCM_TS_OPT_ID: u32 = 90; +pub const SO_RCVPRIORITY: u32 = 91; +pub const SO_PASSRIGHTS: u32 = 92; +pub const SYS_SOCKET: u32 = 1; +pub const SYS_BIND: u32 = 2; +pub const SYS_CONNECT: u32 = 3; +pub const SYS_LISTEN: u32 = 4; +pub const SYS_ACCEPT: u32 = 5; +pub const SYS_GETSOCKNAME: u32 = 6; +pub const SYS_GETPEERNAME: u32 = 7; +pub const SYS_SOCKETPAIR: u32 = 8; +pub const SYS_SEND: u32 = 9; +pub const SYS_RECV: u32 = 10; +pub const SYS_SENDTO: u32 = 11; +pub const SYS_RECVFROM: u32 = 12; +pub const SYS_SHUTDOWN: u32 = 13; +pub const SYS_SETSOCKOPT: u32 = 14; +pub const SYS_GETSOCKOPT: u32 = 15; +pub const SYS_SENDMSG: u32 = 16; +pub const SYS_RECVMSG: u32 = 17; +pub const SYS_ACCEPT4: u32 = 18; +pub const SYS_RECVMMSG: u32 = 19; +pub const SYS_SENDMMSG: u32 = 20; +pub const __SO_ACCEPTCON: u32 = 65536; +pub const TCP_MSS_DEFAULT: u32 = 536; +pub const TCP_MSS_DESIRED: u32 = 1220; +pub const TCP_NODELAY: u32 = 1; +pub const TCP_MAXSEG: u32 = 2; +pub const TCP_CORK: u32 = 3; +pub const TCP_KEEPIDLE: u32 = 4; +pub const TCP_KEEPINTVL: u32 = 5; +pub const TCP_KEEPCNT: u32 = 6; +pub const TCP_SYNCNT: u32 = 7; +pub const TCP_LINGER2: u32 = 8; +pub const TCP_DEFER_ACCEPT: u32 = 9; +pub const TCP_WINDOW_CLAMP: u32 = 10; +pub const TCP_INFO: u32 = 11; +pub const TCP_QUICKACK: u32 = 12; +pub const TCP_CONGESTION: u32 = 13; +pub const TCP_MD5SIG: u32 = 14; +pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; +pub const TCP_THIN_DUPACK: u32 = 17; +pub const TCP_USER_TIMEOUT: u32 = 18; +pub const TCP_REPAIR: u32 = 19; +pub const TCP_REPAIR_QUEUE: u32 = 20; +pub const TCP_QUEUE_SEQ: u32 = 21; +pub const TCP_REPAIR_OPTIONS: u32 = 22; +pub const TCP_FASTOPEN: u32 = 23; +pub const TCP_TIMESTAMP: u32 = 24; +pub const TCP_NOTSENT_LOWAT: u32 = 25; +pub const TCP_CC_INFO: u32 = 26; +pub const TCP_SAVE_SYN: u32 = 27; +pub const TCP_SAVED_SYN: u32 = 28; +pub const TCP_REPAIR_WINDOW: u32 = 29; +pub const TCP_FASTOPEN_CONNECT: u32 = 30; +pub const TCP_ULP: u32 = 31; +pub const TCP_MD5SIG_EXT: u32 = 32; +pub const TCP_FASTOPEN_KEY: u32 = 33; +pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; +pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; +pub const TCP_INQ: u32 = 36; +pub const TCP_CM_INQ: u32 = 36; +pub const TCP_TX_DELAY: u32 = 37; +pub const TCP_AO_ADD_KEY: u32 = 38; +pub const TCP_AO_DEL_KEY: u32 = 39; +pub const TCP_AO_INFO: u32 = 40; +pub const TCP_AO_GET_KEYS: u32 = 41; +pub const TCP_AO_REPAIR: u32 = 42; +pub const TCP_IS_MPTCP: u32 = 43; +pub const TCP_RTO_MAX_MS: u32 = 44; +pub const TCP_RTO_MIN_US: u32 = 45; +pub const TCP_DELACK_MAX_US: u32 = 46; +pub const TCP_REPAIR_ON: u32 = 1; +pub const TCP_REPAIR_OFF: u32 = 0; +pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; +pub const TCPI_OPT_TIMESTAMPS: u32 = 1; +pub const TCPI_OPT_SACK: u32 = 2; +pub const TCPI_OPT_WSCALE: u32 = 4; +pub const TCPI_OPT_ECN: u32 = 8; +pub const TCPI_OPT_ECN_SEEN: u32 = 16; +pub const TCPI_OPT_SYN_DATA: u32 = 32; +pub const TCPI_OPT_USEC_TS: u32 = 64; +pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; +pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; +pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; +pub const TCP_AO_MAXKEYLEN: u32 = 80; +pub const TCP_AO_KEYF_IFINDEX: u32 = 1; +pub const TCP_AO_KEYF_EXCLUDE_OPT: u32 = 2; +pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; +pub const UNIX_PATH_MAX: u32 = 108; +pub const IFNAMSIZ: u32 = 16; +pub const IFALIASZ: u32 = 256; +pub const ALTIFNAMSIZ: u32 = 128; +pub const GENERIC_HDLC_VERSION: u32 = 4; +pub const CLOCK_DEFAULT: u32 = 0; +pub const CLOCK_EXT: u32 = 1; +pub const CLOCK_INT: u32 = 2; +pub const CLOCK_TXINT: u32 = 3; +pub const CLOCK_TXFROMRX: u32 = 4; +pub const ENCODING_DEFAULT: u32 = 0; +pub const ENCODING_NRZ: u32 = 1; +pub const ENCODING_NRZI: u32 = 2; +pub const ENCODING_FM_MARK: u32 = 3; +pub const ENCODING_FM_SPACE: u32 = 4; +pub const ENCODING_MANCHESTER: u32 = 5; +pub const PARITY_DEFAULT: u32 = 0; +pub const PARITY_NONE: u32 = 1; +pub const PARITY_CRC16_PR0: u32 = 2; +pub const PARITY_CRC16_PR1: u32 = 3; +pub const PARITY_CRC16_PR0_CCITT: u32 = 4; +pub const PARITY_CRC16_PR1_CCITT: u32 = 5; +pub const PARITY_CRC32_PR0_CCITT: u32 = 6; +pub const PARITY_CRC32_PR1_CCITT: u32 = 7; +pub const LMI_DEFAULT: u32 = 0; +pub const LMI_NONE: u32 = 1; +pub const LMI_ANSI: u32 = 2; +pub const LMI_CCITT: u32 = 3; +pub const LMI_CISCO: u32 = 4; +pub const IF_GET_IFACE: u32 = 1; +pub const IF_GET_PROTO: u32 = 2; +pub const IF_IFACE_V35: u32 = 4096; +pub const IF_IFACE_V24: u32 = 4097; +pub const IF_IFACE_X21: u32 = 4098; +pub const IF_IFACE_T1: u32 = 4099; +pub const IF_IFACE_E1: u32 = 4100; +pub const IF_IFACE_SYNC_SERIAL: u32 = 4101; +pub const IF_IFACE_X21D: u32 = 4102; +pub const IF_PROTO_HDLC: u32 = 8192; +pub const IF_PROTO_PPP: u32 = 8193; +pub const IF_PROTO_CISCO: u32 = 8194; +pub const IF_PROTO_FR: u32 = 8195; +pub const IF_PROTO_FR_ADD_PVC: u32 = 8196; +pub const IF_PROTO_FR_DEL_PVC: u32 = 8197; +pub const IF_PROTO_X25: u32 = 8198; +pub const IF_PROTO_HDLC_ETH: u32 = 8199; +pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200; +pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201; +pub const IF_PROTO_FR_PVC: u32 = 8202; +pub const IF_PROTO_FR_ETH_PVC: u32 = 8203; +pub const IF_PROTO_RAW: u32 = 8204; +pub const IFHWADDRLEN: u32 = 6; +pub const NF_DROP: u32 = 0; +pub const NF_ACCEPT: u32 = 1; +pub const NF_STOLEN: u32 = 2; +pub const NF_QUEUE: u32 = 3; +pub const NF_REPEAT: u32 = 4; +pub const NF_STOP: u32 = 5; +pub const NF_MAX_VERDICT: u32 = 5; +pub const NF_VERDICT_MASK: u32 = 255; +pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768; +pub const NF_VERDICT_QMASK: u32 = 4294901760; +pub const NF_VERDICT_QBITS: u32 = 16; +pub const NF_VERDICT_BITS: u32 = 16; +pub const NF_IP6_PRE_ROUTING: u32 = 0; +pub const NF_IP6_LOCAL_IN: u32 = 1; +pub const NF_IP6_FORWARD: u32 = 2; +pub const NF_IP6_LOCAL_OUT: u32 = 3; +pub const NF_IP6_POST_ROUTING: u32 = 4; +pub const NF_IP6_NUMHOOKS: u32 = 5; +pub const XT_FUNCTION_MAXNAMELEN: u32 = 30; +pub const XT_EXTENSION_MAXNAMELEN: u32 = 29; +pub const XT_TABLE_MAXNAMELEN: u32 = 32; +pub const XT_CONTINUE: u32 = 4294967295; +pub const XT_RETURN: i32 = -5; +pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0"; +pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0"; +pub const XT_INV_PROTO: u32 = 64; +pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30; +pub const IP6T_TABLE_MAXNAMELEN: u32 = 32; +pub const IP6T_CONTINUE: u32 = 4294967295; +pub const IP6T_RETURN: i32 = -5; +pub const XT_TCP_INV_SRCPT: u32 = 1; +pub const XT_TCP_INV_DSTPT: u32 = 2; +pub const XT_TCP_INV_FLAGS: u32 = 4; +pub const XT_TCP_INV_OPTION: u32 = 8; +pub const XT_TCP_INV_MASK: u32 = 15; +pub const XT_UDP_INV_SRCPT: u32 = 1; +pub const XT_UDP_INV_DSTPT: u32 = 2; +pub const XT_UDP_INV_MASK: u32 = 3; +pub const IP6T_TCP_INV_SRCPT: u32 = 1; +pub const IP6T_TCP_INV_DSTPT: u32 = 2; +pub const IP6T_TCP_INV_FLAGS: u32 = 4; +pub const IP6T_TCP_INV_OPTION: u32 = 8; +pub const IP6T_TCP_INV_MASK: u32 = 15; +pub const IP6T_UDP_INV_SRCPT: u32 = 1; +pub const IP6T_UDP_INV_DSTPT: u32 = 2; +pub const IP6T_UDP_INV_MASK: u32 = 3; +pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0"; +pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0"; +pub const IP6T_F_PROTO: u32 = 1; +pub const IP6T_F_TOS: u32 = 2; +pub const IP6T_F_GOTO: u32 = 4; +pub const IP6T_F_MASK: u32 = 7; +pub const IP6T_INV_VIA_IN: u32 = 1; +pub const IP6T_INV_VIA_OUT: u32 = 2; +pub const IP6T_INV_TOS: u32 = 4; +pub const IP6T_INV_SRCIP: u32 = 8; +pub const IP6T_INV_DSTIP: u32 = 16; +pub const IP6T_INV_FRAG: u32 = 32; +pub const IP6T_INV_PROTO: u32 = 64; +pub const IP6T_INV_MASK: u32 = 127; +pub const IP6T_BASE_CTL: u32 = 64; +pub const IP6T_SO_SET_REPLACE: u32 = 64; +pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65; +pub const IP6T_SO_SET_MAX: u32 = 65; +pub const IP6T_SO_GET_INFO: u32 = 64; +pub const IP6T_SO_GET_ENTRIES: u32 = 65; +pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68; +pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69; +pub const IP6T_SO_GET_MAX: u32 = 69; +pub const IP6T_SO_ORIGINAL_DST: u32 = 80; +pub const IP6T_ICMP_INV: u32 = 1; +pub const NF_IP_PRE_ROUTING: u32 = 0; +pub const NF_IP_LOCAL_IN: u32 = 1; +pub const NF_IP_FORWARD: u32 = 2; +pub const NF_IP_LOCAL_OUT: u32 = 3; +pub const NF_IP_POST_ROUTING: u32 = 4; +pub const NF_IP_NUMHOOKS: u32 = 5; +pub const SO_ORIGINAL_DST: u32 = 80; +pub const SHUT_RD: u32 = 0; +pub const SHUT_WR: u32 = 1; +pub const SHUT_RDWR: u32 = 2; +pub const SOCK_STREAM: u32 = 1; +pub const SOCK_DGRAM: u32 = 2; +pub const SOCK_RAW: u32 = 3; +pub const SOCK_RDM: u32 = 4; +pub const SOCK_SEQPACKET: u32 = 5; +pub const MSG_DONTWAIT: u32 = 64; +pub const AF_UNSPEC: u32 = 0; +pub const AF_UNIX: u32 = 1; +pub const AF_INET: u32 = 2; +pub const AF_AX25: u32 = 3; +pub const AF_IPX: u32 = 4; +pub const AF_APPLETALK: u32 = 5; +pub const AF_NETROM: u32 = 6; +pub const AF_BRIDGE: u32 = 7; +pub const AF_ATMPVC: u32 = 8; +pub const AF_X25: u32 = 9; +pub const AF_INET6: u32 = 10; +pub const AF_ROSE: u32 = 11; +pub const AF_DECnet: u32 = 12; +pub const AF_NETBEUI: u32 = 13; +pub const AF_SECURITY: u32 = 14; +pub const AF_KEY: u32 = 15; +pub const AF_NETLINK: u32 = 16; +pub const AF_PACKET: u32 = 17; +pub const AF_ASH: u32 = 18; +pub const AF_ECONET: u32 = 19; +pub const AF_ATMSVC: u32 = 20; +pub const AF_RDS: u32 = 21; +pub const AF_SNA: u32 = 22; +pub const AF_IRDA: u32 = 23; +pub const AF_PPPOX: u32 = 24; +pub const AF_WANPIPE: u32 = 25; +pub const AF_LLC: u32 = 26; +pub const AF_CAN: u32 = 29; +pub const AF_TIPC: u32 = 30; +pub const AF_BLUETOOTH: u32 = 31; +pub const AF_IUCV: u32 = 32; +pub const AF_RXRPC: u32 = 33; +pub const AF_ISDN: u32 = 34; +pub const AF_PHONET: u32 = 35; +pub const AF_IEEE802154: u32 = 36; +pub const AF_CAIF: u32 = 37; +pub const AF_ALG: u32 = 38; +pub const AF_NFC: u32 = 39; +pub const AF_VSOCK: u32 = 40; +pub const AF_KCM: u32 = 41; +pub const AF_QIPCRTR: u32 = 42; +pub const AF_SMC: u32 = 43; +pub const AF_XDP: u32 = 44; +pub const AF_MCTP: u32 = 45; +pub const AF_MAX: u32 = 46; +pub const MSG_OOB: u32 = 1; +pub const MSG_PEEK: u32 = 2; +pub const MSG_DONTROUTE: u32 = 4; +pub const MSG_CTRUNC: u32 = 8; +pub const MSG_PROBE: u32 = 16; +pub const MSG_TRUNC: u32 = 32; +pub const MSG_EOR: u32 = 128; +pub const MSG_WAITALL: u32 = 256; +pub const MSG_FIN: u32 = 512; +pub const MSG_SYN: u32 = 1024; +pub const MSG_CONFIRM: u32 = 2048; +pub const MSG_RST: u32 = 4096; +pub const MSG_ERRQUEUE: u32 = 8192; +pub const MSG_NOSIGNAL: u32 = 16384; +pub const MSG_MORE: u32 = 32768; +pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; +pub const SCM_RIGHTS: u32 = 1; +pub const SCM_CREDENTIALS: u32 = 2; +pub const SCM_SECURITY: u32 = 3; +pub const SOL_IP: u32 = 0; +pub const SOL_TCP: u32 = 6; +pub const SOL_UDP: u32 = 17; +pub const SOL_IPV6: u32 = 41; +pub const SOL_ICMPV6: u32 = 58; +pub const SOL_SCTP: u32 = 132; +pub const SOL_UDPLITE: u32 = 136; +pub const SOL_RAW: u32 = 255; +pub const SOL_IPX: u32 = 256; +pub const SOL_AX25: u32 = 257; +pub const SOL_ATALK: u32 = 258; +pub const SOL_NETROM: u32 = 259; +pub const SOL_ROSE: u32 = 260; +pub const SOL_DECNET: u32 = 261; +pub const SOL_X25: u32 = 262; +pub const SOL_PACKET: u32 = 263; +pub const SOL_ATM: u32 = 264; +pub const SOL_AAL: u32 = 265; +pub const SOL_IRDA: u32 = 266; +pub const SOL_NETBEUI: u32 = 267; +pub const SOL_LLC: u32 = 268; +pub const SOL_DCCP: u32 = 269; +pub const SOL_NETLINK: u32 = 270; +pub const SOL_TIPC: u32 = 271; +pub const SOL_RXRPC: u32 = 272; +pub const SOL_PPPOL2TP: u32 = 273; +pub const SOL_BLUETOOTH: u32 = 274; +pub const SOL_PNPIPE: u32 = 275; +pub const SOL_RDS: u32 = 276; +pub const SOL_IUCV: u32 = 277; +pub const SOL_CAIF: u32 = 278; +pub const SOL_ALG: u32 = 279; +pub const SOL_NFC: u32 = 280; +pub const SOL_KCM: u32 = 281; +pub const SOL_TLS: u32 = 282; +pub const SOL_XDP: u32 = 283; +pub const SOL_MPTCP: u32 = 284; +pub const SOL_MCTP: u32 = 285; +pub const SOL_SMC: u32 = 286; +pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; +pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; +pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; +pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; +pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; +pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; +pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; +pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; +pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; +pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; +pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; +pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; +pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; +pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; +pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; +pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; +pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; +pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; +pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; +pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; +pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; +pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; +pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; +pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; +pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; +pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; +pub const IPPROTO_AGGFRAG: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AGGFRAG; +pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; +pub const IPPROTO_SMC: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SMC; +pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; +pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; +pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; +pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; +pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; +pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; +pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; +pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; +pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; +pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; +pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; +pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; +pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; +pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; +pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; +pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; +pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; +pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; +pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; +pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; +pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; +pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; +pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; +pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; +pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; +pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; +pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; +pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; +pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; +pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; +pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; +pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; +pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; +pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; +pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; +pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; +pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; +pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; +pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; +pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; +pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; +pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; +pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; +pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; +pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; +pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; +pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; +pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; +pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; +pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; +pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; +pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; +pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; +pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; +pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; +pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; +pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; +pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; +pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; +pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; +pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; +pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; +pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; +pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; +pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; +pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; +pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; +pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; +pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; +pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; +pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; +pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; +pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; +pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; +pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; +pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; +pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; +pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; +pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; +pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; +pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; +pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; +pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; +pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; +pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; +pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; +pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; +pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; +pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; +pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; +pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; +pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; +pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; +pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; +pub const DEVCONF_ACCEPT_RA_MIN_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_LFT; +pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; +pub const TCP_FLAG_AE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_AE; +pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; +pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; +pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; +pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; +pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; +pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; +pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; +pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; +pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; +pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; +pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; +pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; +pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; +pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; +pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; +pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; +pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; +pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; +pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; +pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; +pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; +pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; +pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; +pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; +pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; +pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; +pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; +pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; +pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; +pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; +pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; +pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; +pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; +pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; +pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; +pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; +pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; +pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; +pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; +pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; +pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; +pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; +pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN; +pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT; +pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN; +pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN; +pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING; +pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT; +pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP; +pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT; +pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT; +pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING; +pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC; +pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET; +pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4; +pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP; +pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV; +pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE; +pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6; +pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET; +pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO; +pub const SOF_TIMESTAMPING_TX_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_HARDWARE; +pub const SOF_TIMESTAMPING_TX_SOFTWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_SOFTWARE; +pub const SOF_TIMESTAMPING_RX_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_RX_HARDWARE; +pub const SOF_TIMESTAMPING_RX_SOFTWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_RX_SOFTWARE; +pub const SOF_TIMESTAMPING_SOFTWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_SOFTWARE; +pub const SOF_TIMESTAMPING_SYS_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_SYS_HARDWARE; +pub const SOF_TIMESTAMPING_RAW_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_RAW_HARDWARE; +pub const SOF_TIMESTAMPING_OPT_ID: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_ID; +pub const SOF_TIMESTAMPING_TX_SCHED: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_SCHED; +pub const SOF_TIMESTAMPING_TX_ACK: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_ACK; +pub const SOF_TIMESTAMPING_OPT_CMSG: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_CMSG; +pub const SOF_TIMESTAMPING_OPT_TSONLY: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_TSONLY; +pub const SOF_TIMESTAMPING_OPT_STATS: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_STATS; +pub const SOF_TIMESTAMPING_OPT_PKTINFO: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_PKTINFO; +pub const SOF_TIMESTAMPING_OPT_TX_SWHW: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_TX_SWHW; +pub const SOF_TIMESTAMPING_BIND_PHC: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_BIND_PHC; +pub const SOF_TIMESTAMPING_OPT_ID_TCP: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_ID_TCP; +pub const SOF_TIMESTAMPING_OPT_RX_FILTER: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_RX_FILTER; +pub const SOF_TIMESTAMPING_TX_COMPLETION: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_COMPLETION; +pub const SOF_TIMESTAMPING_LAST: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_COMPLETION; +pub const SOF_TIMESTAMPING_MASK: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_MASK; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +IPPROTO_IP = 0, +IPPROTO_ICMP = 1, +IPPROTO_IGMP = 2, +IPPROTO_IPIP = 4, +IPPROTO_TCP = 6, +IPPROTO_EGP = 8, +IPPROTO_PUP = 12, +IPPROTO_UDP = 17, +IPPROTO_IDP = 22, +IPPROTO_TP = 29, +IPPROTO_DCCP = 33, +IPPROTO_IPV6 = 41, +IPPROTO_RSVP = 46, +IPPROTO_GRE = 47, +IPPROTO_ESP = 50, +IPPROTO_AH = 51, +IPPROTO_MTP = 92, +IPPROTO_BEETPH = 94, +IPPROTO_ENCAP = 98, +IPPROTO_PIM = 103, +IPPROTO_COMP = 108, +IPPROTO_L2TP = 115, +IPPROTO_SCTP = 132, +IPPROTO_UDPLITE = 136, +IPPROTO_MPLS = 137, +IPPROTO_ETHERNET = 143, +IPPROTO_AGGFRAG = 144, +IPPROTO_RAW = 255, +IPPROTO_SMC = 256, +IPPROTO_MPTCP = 262, +IPPROTO_MAX = 263, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IPV4_DEVCONF_FORWARDING = 1, +IPV4_DEVCONF_MC_FORWARDING = 2, +IPV4_DEVCONF_PROXY_ARP = 3, +IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, +IPV4_DEVCONF_SECURE_REDIRECTS = 5, +IPV4_DEVCONF_SEND_REDIRECTS = 6, +IPV4_DEVCONF_SHARED_MEDIA = 7, +IPV4_DEVCONF_RP_FILTER = 8, +IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, +IPV4_DEVCONF_BOOTP_RELAY = 10, +IPV4_DEVCONF_LOG_MARTIANS = 11, +IPV4_DEVCONF_TAG = 12, +IPV4_DEVCONF_ARPFILTER = 13, +IPV4_DEVCONF_MEDIUM_ID = 14, +IPV4_DEVCONF_NOXFRM = 15, +IPV4_DEVCONF_NOPOLICY = 16, +IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, +IPV4_DEVCONF_ARP_ANNOUNCE = 18, +IPV4_DEVCONF_ARP_IGNORE = 19, +IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, +IPV4_DEVCONF_ARP_ACCEPT = 21, +IPV4_DEVCONF_ARP_NOTIFY = 22, +IPV4_DEVCONF_ACCEPT_LOCAL = 23, +IPV4_DEVCONF_SRC_VMARK = 24, +IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, +IPV4_DEVCONF_ROUTE_LOCALNET = 26, +IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, +IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, +IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, +IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, +IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, +IPV4_DEVCONF_BC_FORWARDING = 32, +IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, +__IPV4_DEVCONF_MAX = 34, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +DEVCONF_FORWARDING = 0, +DEVCONF_HOPLIMIT = 1, +DEVCONF_MTU6 = 2, +DEVCONF_ACCEPT_RA = 3, +DEVCONF_ACCEPT_REDIRECTS = 4, +DEVCONF_AUTOCONF = 5, +DEVCONF_DAD_TRANSMITS = 6, +DEVCONF_RTR_SOLICITS = 7, +DEVCONF_RTR_SOLICIT_INTERVAL = 8, +DEVCONF_RTR_SOLICIT_DELAY = 9, +DEVCONF_USE_TEMPADDR = 10, +DEVCONF_TEMP_VALID_LFT = 11, +DEVCONF_TEMP_PREFERED_LFT = 12, +DEVCONF_REGEN_MAX_RETRY = 13, +DEVCONF_MAX_DESYNC_FACTOR = 14, +DEVCONF_MAX_ADDRESSES = 15, +DEVCONF_FORCE_MLD_VERSION = 16, +DEVCONF_ACCEPT_RA_DEFRTR = 17, +DEVCONF_ACCEPT_RA_PINFO = 18, +DEVCONF_ACCEPT_RA_RTR_PREF = 19, +DEVCONF_RTR_PROBE_INTERVAL = 20, +DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, +DEVCONF_PROXY_NDP = 22, +DEVCONF_OPTIMISTIC_DAD = 23, +DEVCONF_ACCEPT_SOURCE_ROUTE = 24, +DEVCONF_MC_FORWARDING = 25, +DEVCONF_DISABLE_IPV6 = 26, +DEVCONF_ACCEPT_DAD = 27, +DEVCONF_FORCE_TLLAO = 28, +DEVCONF_NDISC_NOTIFY = 29, +DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, +DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, +DEVCONF_SUPPRESS_FRAG_NDISC = 32, +DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, +DEVCONF_USE_OPTIMISTIC = 34, +DEVCONF_ACCEPT_RA_MTU = 35, +DEVCONF_STABLE_SECRET = 36, +DEVCONF_USE_OIF_ADDRS_ONLY = 37, +DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, +DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, +DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, +DEVCONF_DROP_UNSOLICITED_NA = 41, +DEVCONF_KEEP_ADDR_ON_DOWN = 42, +DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, +DEVCONF_SEG6_ENABLED = 44, +DEVCONF_SEG6_REQUIRE_HMAC = 45, +DEVCONF_ENHANCED_DAD = 46, +DEVCONF_ADDR_GEN_MODE = 47, +DEVCONF_DISABLE_POLICY = 48, +DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, +DEVCONF_NDISC_TCLASS = 50, +DEVCONF_RPL_SEG_ENABLED = 51, +DEVCONF_RA_DEFRTR_METRIC = 52, +DEVCONF_IOAM6_ENABLED = 53, +DEVCONF_IOAM6_ID = 54, +DEVCONF_IOAM6_ID_WIDE = 55, +DEVCONF_NDISC_EVICT_NOCARRIER = 56, +DEVCONF_ACCEPT_UNTRACKED_NA = 57, +DEVCONF_ACCEPT_RA_MIN_LFT = 58, +DEVCONF_MAX = 59, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum socket_state { +SS_FREE = 0, +SS_UNCONNECTED = 1, +SS_CONNECTING = 2, +SS_CONNECTED = 3, +SS_DISCONNECTING = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +TCP_FLAG_AE = 16777216, +TCP_FLAG_CWR = 8388608, +TCP_FLAG_ECE = 4194304, +TCP_FLAG_URG = 2097152, +TCP_FLAG_ACK = 1048576, +TCP_FLAG_PSH = 524288, +TCP_FLAG_RST = 262144, +TCP_FLAG_SYN = 131072, +TCP_FLAG_FIN = 65536, +TCP_RESERVED_BITS = 234881024, +TCP_DATA_OFFSET = 4026531840, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_5 { +TCP_NO_QUEUE = 0, +TCP_RECV_QUEUE = 1, +TCP_SEND_QUEUE = 2, +TCP_QUEUES_NR = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tcp_fastopen_client_fail { +TFO_STATUS_UNSPEC = 0, +TFO_COOKIE_UNAVAILABLE = 1, +TFO_DATA_NOT_ACKED = 2, +TFO_SYN_RETRANSMITTED = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tcp_ca_state { +TCP_CA_Open = 0, +TCP_CA_Disorder = 1, +TCP_CA_CWR = 2, +TCP_CA_Recovery = 3, +TCP_CA_Loss = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_6 { +TCP_NLA_PAD = 0, +TCP_NLA_BUSY = 1, +TCP_NLA_RWND_LIMITED = 2, +TCP_NLA_SNDBUF_LIMITED = 3, +TCP_NLA_DATA_SEGS_OUT = 4, +TCP_NLA_TOTAL_RETRANS = 5, +TCP_NLA_PACING_RATE = 6, +TCP_NLA_DELIVERY_RATE = 7, +TCP_NLA_SND_CWND = 8, +TCP_NLA_REORDERING = 9, +TCP_NLA_MIN_RTT = 10, +TCP_NLA_RECUR_RETRANS = 11, +TCP_NLA_DELIVERY_RATE_APP_LMT = 12, +TCP_NLA_SNDQ_SIZE = 13, +TCP_NLA_CA_STATE = 14, +TCP_NLA_SND_SSTHRESH = 15, +TCP_NLA_DELIVERED = 16, +TCP_NLA_DELIVERED_CE = 17, +TCP_NLA_BYTES_SENT = 18, +TCP_NLA_BYTES_RETRANS = 19, +TCP_NLA_DSACK_DUPS = 20, +TCP_NLA_REORD_SEEN = 21, +TCP_NLA_SRTT = 22, +TCP_NLA_TIMEOUT_REHASH = 23, +TCP_NLA_BYTES_NOTSENT = 24, +TCP_NLA_EDT = 25, +TCP_NLA_TTL = 26, +TCP_NLA_REHASH = 27, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum net_device_flags { +IFF_UP = 1, +IFF_BROADCAST = 2, +IFF_DEBUG = 4, +IFF_LOOPBACK = 8, +IFF_POINTOPOINT = 16, +IFF_NOTRAILERS = 32, +IFF_RUNNING = 64, +IFF_NOARP = 128, +IFF_PROMISC = 256, +IFF_ALLMULTI = 512, +IFF_MASTER = 1024, +IFF_SLAVE = 2048, +IFF_MULTICAST = 4096, +IFF_PORTSEL = 8192, +IFF_AUTOMEDIA = 16384, +IFF_DYNAMIC = 32768, +IFF_LOWER_UP = 65536, +IFF_DORMANT = 131072, +IFF_ECHO = 262144, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_7 { +IF_OPER_UNKNOWN = 0, +IF_OPER_NOTPRESENT = 1, +IF_OPER_DOWN = 2, +IF_OPER_LOWERLAYERDOWN = 3, +IF_OPER_TESTING = 4, +IF_OPER_DORMANT = 5, +IF_OPER_UP = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_8 { +IF_LINK_MODE_DEFAULT = 0, +IF_LINK_MODE_DORMANT = 1, +IF_LINK_MODE_TESTING = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_inet_hooks { +NF_INET_PRE_ROUTING = 0, +NF_INET_LOCAL_IN = 1, +NF_INET_FORWARD = 2, +NF_INET_LOCAL_OUT = 3, +NF_INET_POST_ROUTING = 4, +NF_INET_NUMHOOKS = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_dev_hooks { +NF_NETDEV_INGRESS = 0, +NF_NETDEV_EGRESS = 1, +NF_NETDEV_NUMHOOKS = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_9 { +NFPROTO_UNSPEC = 0, +NFPROTO_INET = 1, +NFPROTO_IPV4 = 2, +NFPROTO_ARP = 3, +NFPROTO_NETDEV = 5, +NFPROTO_BRIDGE = 7, +NFPROTO_IPV6 = 10, +NFPROTO_DECNET = 12, +NFPROTO_NUMPROTO = 13, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_ip6_hook_priorities { +NF_IP6_PRI_FIRST = -2147483648, +NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450, +NF_IP6_PRI_CONNTRACK_DEFRAG = -400, +NF_IP6_PRI_RAW = -300, +NF_IP6_PRI_SELINUX_FIRST = -225, +NF_IP6_PRI_CONNTRACK = -200, +NF_IP6_PRI_MANGLE = -150, +NF_IP6_PRI_NAT_DST = -100, +NF_IP6_PRI_FILTER = 0, +NF_IP6_PRI_SECURITY = 50, +NF_IP6_PRI_NAT_SRC = 100, +NF_IP6_PRI_SELINUX_LAST = 225, +NF_IP6_PRI_CONNTRACK_HELPER = 300, +NF_IP6_PRI_LAST = 2147483647, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_ip_hook_priorities { +NF_IP_PRI_FIRST = -2147483648, +NF_IP_PRI_RAW_BEFORE_DEFRAG = -450, +NF_IP_PRI_CONNTRACK_DEFRAG = -400, +NF_IP_PRI_RAW = -300, +NF_IP_PRI_SELINUX_FIRST = -225, +NF_IP_PRI_CONNTRACK = -200, +NF_IP_PRI_MANGLE = -150, +NF_IP_PRI_NAT_DST = -100, +NF_IP_PRI_FILTER = 0, +NF_IP_PRI_SECURITY = 50, +NF_IP_PRI_NAT_SRC = 100, +NF_IP_PRI_SELINUX_LAST = 225, +NF_IP_PRI_CONNTRACK_HELPER = 300, +NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_provider_qualifier { +HWTSTAMP_PROVIDER_QUALIFIER_PRECISE = 0, +HWTSTAMP_PROVIDER_QUALIFIER_APPROX = 1, +HWTSTAMP_PROVIDER_QUALIFIER_CNT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_10 { +SOF_TIMESTAMPING_TX_HARDWARE = 1, +SOF_TIMESTAMPING_TX_SOFTWARE = 2, +SOF_TIMESTAMPING_RX_HARDWARE = 4, +SOF_TIMESTAMPING_RX_SOFTWARE = 8, +SOF_TIMESTAMPING_SOFTWARE = 16, +SOF_TIMESTAMPING_SYS_HARDWARE = 32, +SOF_TIMESTAMPING_RAW_HARDWARE = 64, +SOF_TIMESTAMPING_OPT_ID = 128, +SOF_TIMESTAMPING_TX_SCHED = 256, +SOF_TIMESTAMPING_TX_ACK = 512, +SOF_TIMESTAMPING_OPT_CMSG = 1024, +SOF_TIMESTAMPING_OPT_TSONLY = 2048, +SOF_TIMESTAMPING_OPT_STATS = 4096, +SOF_TIMESTAMPING_OPT_PKTINFO = 8192, +SOF_TIMESTAMPING_OPT_TX_SWHW = 16384, +SOF_TIMESTAMPING_BIND_PHC = 32768, +SOF_TIMESTAMPING_OPT_ID_TCP = 65536, +SOF_TIMESTAMPING_OPT_RX_FILTER = 131072, +SOF_TIMESTAMPING_TX_COMPLETION = 262144, +SOF_TIMESTAMPING_MASK = 524287, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_flags { +HWTSTAMP_FLAG_BONDED_PHC_INDEX = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_tx_types { +HWTSTAMP_TX_OFF = 0, +HWTSTAMP_TX_ON = 1, +HWTSTAMP_TX_ONESTEP_SYNC = 2, +HWTSTAMP_TX_ONESTEP_P2P = 3, +__HWTSTAMP_TX_CNT = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_rx_filters { +HWTSTAMP_FILTER_NONE = 0, +HWTSTAMP_FILTER_ALL = 1, +HWTSTAMP_FILTER_SOME = 2, +HWTSTAMP_FILTER_PTP_V1_L4_EVENT = 3, +HWTSTAMP_FILTER_PTP_V1_L4_SYNC = 4, +HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ = 5, +HWTSTAMP_FILTER_PTP_V2_L4_EVENT = 6, +HWTSTAMP_FILTER_PTP_V2_L4_SYNC = 7, +HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ = 8, +HWTSTAMP_FILTER_PTP_V2_L2_EVENT = 9, +HWTSTAMP_FILTER_PTP_V2_L2_SYNC = 10, +HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ = 11, +HWTSTAMP_FILTER_PTP_V2_EVENT = 12, +HWTSTAMP_FILTER_PTP_V2_SYNC = 13, +HWTSTAMP_FILTER_PTP_V2_DELAY_REQ = 14, +HWTSTAMP_FILTER_NTP_ALL = 15, +__HWTSTAMP_FILTER_CNT = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum txtime_flags { +SOF_TXTIME_DEADLINE_MODE = 1, +SOF_TXTIME_REPORT_ERRORS = 2, +SOF_TXTIME_FLAGS_MASK = 3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __kernel_sockaddr_storage__bindgen_ty_1 { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, +pub __align: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union iphdr__bindgen_ty_1 { +pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, +pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union in6_addr__bindgen_ty_1 { +pub u6_addr8: [__u8; 16usize], +pub u6_addr16: [__be16; 8usize], +pub u6_addr32: [__be32; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ipv6hdr__bindgen_ty_1 { +pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, +pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tcp_word_hdr { +pub hdr: tcphdr, +pub words: [__be32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union if_settings__bindgen_ty_1 { +pub raw_hdlc: *mut raw_hdlc_proto, +pub cisco: *mut cisco_proto, +pub fr: *mut fr_proto, +pub fr_pvc: *mut fr_proto_pvc, +pub fr_pvc_info: *mut fr_proto_pvc_info, +pub x25: *mut x25_hdlc_proto, +pub sync: *mut sync_serial_settings, +pub te1: *mut te1_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_1 { +pub ifrn_name: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_2 { +pub ifru_addr: sockaddr, +pub ifru_dstaddr: sockaddr, +pub ifru_broadaddr: sockaddr, +pub ifru_netmask: sockaddr, +pub ifru_hwaddr: sockaddr, +pub ifru_flags: crate::ctypes::c_short, +pub ifru_ivalue: crate::ctypes::c_int, +pub ifru_mtu: crate::ctypes::c_int, +pub ifru_map: ifmap, +pub ifru_slave: [crate::ctypes::c_char; 16usize], +pub ifru_newname: [crate::ctypes::c_char; 16usize], +pub ifru_data: *mut crate::ctypes::c_void, +pub ifru_settings: if_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifconf__bindgen_ty_1 { +pub ifcu_buf: *mut crate::ctypes::c_char, +pub ifcu_req: *mut ifreq, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union nf_inet_addr { +pub all: [__u32; 4usize], +pub ip: __be32, +pub ip6: [__be32; 4usize], +pub in_: in_addr, +pub in6: in6_addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union xt_entry_match__bindgen_ty_1 { +pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1, +pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2, +pub match_size: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union xt_entry_target__bindgen_ty_1 { +pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1, +pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2, +pub target_size: __u16, +} +impl __BindgenBitfieldUnit { +#[inline] +pub const fn new(storage: Storage) -> Self { +Self { storage } +} +} +impl __BindgenBitfieldUnit +where +Storage: AsRef<[u8]> + AsMut<[u8]>, +{ +#[inline] +fn extract_bit(byte: u8, index: usize) -> bool { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +byte & mask == mask +} +#[inline] +pub fn get_bit(&self, index: usize) -> bool { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = self.storage.as_ref()[byte_index]; +Self::extract_bit(byte, index) +} +#[inline] +pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; +Self::extract_bit(byte, index) +} +#[inline] +fn change_bit(byte: u8, index: usize, val: bool) -> u8 { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +if val { +byte | mask +} else { +byte & !mask +} +} +#[inline] +pub fn set_bit(&mut self, index: usize, val: bool) { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = &mut self.storage.as_mut()[byte_index]; +*byte = Self::change_bit(*byte, index, val); +} +#[inline] +pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; +} +#[inline] +pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if self.get_bit(i + bit_offset) { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +self.set_bit(index + bit_offset, val_bit_is_set); +} +} +#[inline] +pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +} +} +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl __BindgenUnionField { +#[inline] +pub const fn new() -> Self { +__BindgenUnionField(::core::marker::PhantomData) +} +#[inline] +pub unsafe fn as_ref(&self) -> &T { +::core::mem::transmute(self) +} +#[inline] +pub unsafe fn as_mut(&mut self) -> &mut T { +::core::mem::transmute(self) +} +} +impl ::core::default::Default for __BindgenUnionField { +#[inline] +fn default() -> Self { +Self::new() +} +} +impl ::core::clone::Clone for __BindgenUnionField { +#[inline] +fn clone(&self) -> Self { +*self +} +} +impl ::core::marker::Copy for __BindgenUnionField {} +impl ::core::fmt::Debug for __BindgenUnionField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__BindgenUnionField") +} +} +impl ::core::hash::Hash for __BindgenUnionField { +fn hash(&self, _state: &mut H) {} +} +impl ::core::cmp::PartialEq for __BindgenUnionField { +fn eq(&self, _other: &__BindgenUnionField) -> bool { +true +} +} +impl ::core::cmp::Eq for __BindgenUnionField {} +impl iphdr { +#[inline] +pub fn version(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +} +#[inline] +pub fn set_version(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn version_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +} +} +#[inline] +pub fn ihl(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +} +#[inline] +pub fn set_ihl(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn ihl_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(version: __u8, ihl: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 4u8, { +let version: u8 = unsafe { ::core::mem::transmute(version) }; +version as u64 +}); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; +ihl as u64 +}); +__bindgen_bitfield_unit +} +} +impl ipv6hdr { +#[inline] +pub fn version(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +} +#[inline] +pub fn set_version(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn version_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +} +} +#[inline] +pub fn priority(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +} +#[inline] +pub fn set_priority(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn priority_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(version: __u8, priority: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 4u8, { +let version: u8 = unsafe { ::core::mem::transmute(version) }; +version as u64 +}); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let priority: u8 = unsafe { ::core::mem::transmute(priority) }; +priority as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcphdr { +#[inline] +pub fn doff(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } +} +#[inline] +pub fn set_doff(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn doff_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u16) } +} +#[inline] +pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +} +} +#[inline] +pub fn res1(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 3u8) as u16) } +} +#[inline] +pub fn set_res1(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 3u8, val as u64) +} +} +#[inline] +pub unsafe fn res1_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 3u8) as u16) } +} +#[inline] +pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 3u8, val as u64) +} +} +#[inline] +pub fn ae(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u16) } +} +#[inline] +pub fn set_ae(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(7usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ae_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 7usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 7usize, 1u8, val as u64) +} +} +#[inline] +pub fn cwr(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +} +#[inline] +pub fn set_cwr(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(8usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn cwr_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +} +} +#[inline] +pub fn ece(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +} +#[inline] +pub fn set_ece(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(9usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ece_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +} +} +#[inline] +pub fn urg(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +} +#[inline] +pub fn set_urg(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(10usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn urg_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +} +} +#[inline] +pub fn ack(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +} +#[inline] +pub fn set_ack(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(11usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ack_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +} +} +#[inline] +pub fn psh(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +} +#[inline] +pub fn set_psh(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(12usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn psh_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +} +} +#[inline] +pub fn rst(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +} +#[inline] +pub fn set_rst(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(13usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn rst_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +} +} +#[inline] +pub fn syn(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +} +#[inline] +pub fn set_syn(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(14usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn syn_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +} +} +#[inline] +pub fn fin(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +} +#[inline] +pub fn set_fin(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(15usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn fin_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(doff: __u16, res1: __u16, ae: __u16, cwr: __u16, ece: __u16, urg: __u16, ack: __u16, psh: __u16, rst: __u16, syn: __u16, fin: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 4u8, { +let doff: u16 = unsafe { ::core::mem::transmute(doff) }; +doff as u64 +}); +__bindgen_bitfield_unit.set(4usize, 3u8, { +let res1: u16 = unsafe { ::core::mem::transmute(res1) }; +res1 as u64 +}); +__bindgen_bitfield_unit.set(7usize, 1u8, { +let ae: u16 = unsafe { ::core::mem::transmute(ae) }; +ae as u64 +}); +__bindgen_bitfield_unit.set(8usize, 1u8, { +let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; +cwr as u64 +}); +__bindgen_bitfield_unit.set(9usize, 1u8, { +let ece: u16 = unsafe { ::core::mem::transmute(ece) }; +ece as u64 +}); +__bindgen_bitfield_unit.set(10usize, 1u8, { +let urg: u16 = unsafe { ::core::mem::transmute(urg) }; +urg as u64 +}); +__bindgen_bitfield_unit.set(11usize, 1u8, { +let ack: u16 = unsafe { ::core::mem::transmute(ack) }; +ack as u64 +}); +__bindgen_bitfield_unit.set(12usize, 1u8, { +let psh: u16 = unsafe { ::core::mem::transmute(psh) }; +psh as u64 +}); +__bindgen_bitfield_unit.set(13usize, 1u8, { +let rst: u16 = unsafe { ::core::mem::transmute(rst) }; +rst as u64 +}); +__bindgen_bitfield_unit.set(14usize, 1u8, { +let syn: u16 = unsafe { ::core::mem::transmute(syn) }; +syn as u64 +}); +__bindgen_bitfield_unit.set(15usize, 1u8, { +let fin: u16 = unsafe { ::core::mem::transmute(fin) }; +fin as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_info { +#[inline] +pub fn tcpi_snd_wscale(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +} +#[inline] +pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +} +} +#[inline] +pub fn tcpi_rcv_wscale(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +} +#[inline] +pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +} +#[inline] +pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(8usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +} +} +#[inline] +pub fn tcpi_fastopen_client_fail(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +} +#[inline] +pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(9usize, 2u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 4u8, { +let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; +tcpi_snd_wscale as u64 +}); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; +tcpi_rcv_wscale as u64 +}); +__bindgen_bitfield_unit.set(8usize, 1u8, { +let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; +tcpi_delivery_rate_app_limited as u64 +}); +__bindgen_bitfield_unit.set(9usize, 2u8, { +let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; +tcpi_fastopen_client_fail as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_add { +#[inline] +pub fn set_current(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_current(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_current_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_rnext(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_rnext(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 30u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; +set_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; +set_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 30u8, { +let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_del { +#[inline] +pub fn set_current(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_current(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_current_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_rnext(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_rnext(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn del_async(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +} +#[inline] +pub fn set_del_async(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn del_async_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 29u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; +set_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; +set_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 1u8, { +let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; +del_async as u64 +}); +__bindgen_bitfield_unit.set(3usize, 29u8, { +let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_info_opt { +#[inline] +pub fn set_current(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_current(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_current_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_rnext(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_rnext(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn ao_required(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +} +#[inline] +pub fn set_ao_required(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_counters(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_counters(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +} +} +#[inline] +pub fn accept_icmps(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +} +#[inline] +pub fn set_accept_icmps(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(5usize, 27u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; +set_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; +set_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 1u8, { +let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; +ao_required as u64 +}); +__bindgen_bitfield_unit.set(3usize, 1u8, { +let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; +set_counters as u64 +}); +__bindgen_bitfield_unit.set(4usize, 1u8, { +let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; +accept_icmps as u64 +}); +__bindgen_bitfield_unit.set(5usize, 27u8, { +let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_getsockopt { +#[inline] +pub fn is_current(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +} +#[inline] +pub fn set_is_current(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn is_current_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn is_rnext(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +} +#[inline] +pub fn set_is_rnext(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn get_all(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +} +#[inline] +pub fn set_get_all(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn get_all_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 13u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; +is_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; +is_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 1u8, { +let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; +get_all as u64 +}); +__bindgen_bitfield_unit.set(3usize, 13u8, { +let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl nf_inet_hooks { +pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS; +} +impl nf_ip_hook_priorities { +pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM; +} +impl hwtstamp_flags { +pub const HWTSTAMP_FLAG_LAST: hwtstamp_flags = hwtstamp_flags::HWTSTAMP_FLAG_BONDED_PHC_INDEX; +} +impl hwtstamp_flags { +pub const HWTSTAMP_FLAG_MASK: hwtstamp_flags = hwtstamp_flags::HWTSTAMP_FLAG_BONDED_PHC_INDEX; +} +impl txtime_flags { +pub const SOF_TXTIME_FLAGS_LAST: txtime_flags = txtime_flags::SOF_TXTIME_REPORT_ERRORS; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/netlink.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/netlink.rs new file mode 100644 index 0000000000000000000000000000000000000000..6a565f0fdf8c96baca92dde176beee9f9f0c6b97 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/netlink.rs @@ -0,0 +1,5459 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __kernel_sa_family_t = crate::ctypes::c_ushort; +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_daddr_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __kernel_sockaddr_storage { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { +pub ss_family: __kernel_sa_family_t, +pub __data: [crate::ctypes::c_char; 126usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_nl { +pub nl_family: __kernel_sa_family_t, +pub nl_pad: crate::ctypes::c_ushort, +pub nl_pid: __u32, +pub nl_groups: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsghdr { +pub nlmsg_len: __u32, +pub nlmsg_type: __u16, +pub nlmsg_flags: __u16, +pub nlmsg_seq: __u32, +pub nlmsg_pid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsgerr { +pub error: crate::ctypes::c_int, +pub msg: nlmsghdr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_pktinfo { +pub group: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_req { +pub nm_block_size: crate::ctypes::c_uint, +pub nm_block_nr: crate::ctypes::c_uint, +pub nm_frame_size: crate::ctypes::c_uint, +pub nm_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_hdr { +pub nm_status: crate::ctypes::c_uint, +pub nm_len: crate::ctypes::c_uint, +pub nm_group: __u32, +pub nm_pid: __u32, +pub nm_uid: __u32, +pub nm_gid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlattr { +pub nla_len: __u16, +pub nla_type: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nla_bitfield32 { +pub value: __u32, +pub selector: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_sta_flag_update { +pub mask: __u32, +pub set: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_vht { +pub mcs: [__u16; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_he { +pub mcs: [__u16; 8usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_pattern_support { +pub max_patterns: __u32, +pub min_pattern_len: __u32, +pub max_pattern_len: __u32, +pub max_pkt_offset: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_wowlan_tcp_data_seq { +pub start: __u32, +pub offset: __u32, +pub len: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct nl80211_wowlan_tcp_data_token { +pub offset: __u32, +pub len: __u32, +pub token_stream: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_wowlan_tcp_data_token_feature { +pub min_len: __u32, +pub max_len: __u32, +pub bufsize: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_coalesce_rule_support { +pub max_rules: __u32, +pub pat: nl80211_pattern_support, +pub max_delay: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_vendor_cmd_info { +pub vendor_id: __u32, +pub subcmd: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_bss_select_rssi_adjust { +pub band: __u8, +pub delta: __s8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats { +pub rx_packets: __u32, +pub tx_packets: __u32, +pub rx_bytes: __u32, +pub tx_bytes: __u32, +pub rx_errors: __u32, +pub tx_errors: __u32, +pub rx_dropped: __u32, +pub tx_dropped: __u32, +pub multicast: __u32, +pub collisions: __u32, +pub rx_length_errors: __u32, +pub rx_over_errors: __u32, +pub rx_crc_errors: __u32, +pub rx_frame_errors: __u32, +pub rx_fifo_errors: __u32, +pub rx_missed_errors: __u32, +pub tx_aborted_errors: __u32, +pub tx_carrier_errors: __u32, +pub tx_fifo_errors: __u32, +pub tx_heartbeat_errors: __u32, +pub tx_window_errors: __u32, +pub rx_compressed: __u32, +pub tx_compressed: __u32, +pub rx_nohandler: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +pub collisions: __u64, +pub rx_length_errors: __u64, +pub rx_over_errors: __u64, +pub rx_crc_errors: __u64, +pub rx_frame_errors: __u64, +pub rx_fifo_errors: __u64, +pub rx_missed_errors: __u64, +pub tx_aborted_errors: __u64, +pub tx_carrier_errors: __u64, +pub tx_fifo_errors: __u64, +pub tx_heartbeat_errors: __u64, +pub tx_window_errors: __u64, +pub rx_compressed: __u64, +pub tx_compressed: __u64, +pub rx_nohandler: __u64, +pub rx_otherhost_dropped: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_hw_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_ifmap { +pub mem_start: __u64, +pub mem_end: __u64, +pub base_addr: __u64, +pub irq: __u16, +pub dma: __u8, +pub port: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_bridge_id { +pub prio: [__u8; 2usize], +pub addr: [__u8; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_cacheinfo { +pub max_reasm_len: __u32, +pub tstamp: __u32, +pub reachable_time: __u32, +pub retrans_time: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_qos_mapping { +pub from: __u32, +pub to: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tunnel_msg { +pub family: __u8, +pub flags: __u8, +pub reserved2: __u16, +pub ifindex: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vxlan_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_geneve_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_mac { +pub vf: __u32, +pub mac: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_broadcast { +pub broadcast: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan_info { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +pub vlan_proto: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_tx_rate { +pub vf: __u32, +pub rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rate { +pub vf: __u32, +pub min_tx_rate: __u32, +pub max_tx_rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_spoofchk { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_guid { +pub vf: __u32, +pub guid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_link_state { +pub vf: __u32, +pub link_state: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rss_query_en { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_trust { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_port_vsi { +pub vsi_mgr_id: __u8, +pub vsi_type_id: [__u8; 3usize], +pub vsi_type_version: __u8, +pub pad: [__u8; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct if_stats_msg { +pub family: __u8, +pub pad1: __u8, +pub pad2: __u16, +pub ifindex: __u32, +pub filter_mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_rmnet_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifaddrmsg { +pub ifa_family: __u8, +pub ifa_prefixlen: __u8, +pub ifa_flags: __u8, +pub ifa_scope: __u8, +pub ifa_index: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifa_cacheinfo { +pub ifa_prefered: __u32, +pub ifa_valid: __u32, +pub cstamp: __u32, +pub tstamp: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ndmsg { +pub ndm_family: __u8, +pub ndm_pad1: __u8, +pub ndm_pad2: __u16, +pub ndm_ifindex: __s32, +pub ndm_state: __u16, +pub ndm_flags: __u8, +pub ndm_type: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nda_cacheinfo { +pub ndm_confirmed: __u32, +pub ndm_used: __u32, +pub ndm_updated: __u32, +pub ndm_refcnt: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ndt_stats { +pub ndts_allocs: __u64, +pub ndts_destroys: __u64, +pub ndts_hash_grows: __u64, +pub ndts_res_failed: __u64, +pub ndts_lookups: __u64, +pub ndts_hits: __u64, +pub ndts_rcv_probes_mcast: __u64, +pub ndts_rcv_probes_ucast: __u64, +pub ndts_periodic_gc_runs: __u64, +pub ndts_forced_gc_runs: __u64, +pub ndts_table_fulls: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ndtmsg { +pub ndtm_family: __u8, +pub ndtm_pad1: __u8, +pub ndtm_pad2: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ndt_config { +pub ndtc_key_len: __u16, +pub ndtc_entry_size: __u16, +pub ndtc_entries: __u32, +pub ndtc_last_flush: __u32, +pub ndtc_last_rand: __u32, +pub ndtc_hash_rnd: __u32, +pub ndtc_hash_mask: __u32, +pub ndtc_hash_chain_gc: __u32, +pub ndtc_proxy_qlen: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtattr { +pub rta_len: crate::ctypes::c_ushort, +pub rta_type: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtmsg { +pub rtm_family: crate::ctypes::c_uchar, +pub rtm_dst_len: crate::ctypes::c_uchar, +pub rtm_src_len: crate::ctypes::c_uchar, +pub rtm_tos: crate::ctypes::c_uchar, +pub rtm_table: crate::ctypes::c_uchar, +pub rtm_protocol: crate::ctypes::c_uchar, +pub rtm_scope: crate::ctypes::c_uchar, +pub rtm_type: crate::ctypes::c_uchar, +pub rtm_flags: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnexthop { +pub rtnh_len: crate::ctypes::c_ushort, +pub rtnh_flags: crate::ctypes::c_uchar, +pub rtnh_hops: crate::ctypes::c_uchar, +pub rtnh_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug)] +pub struct rtvia { +pub rtvia_family: __kernel_sa_family_t, +pub rtvia_addr: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rta_cacheinfo { +pub rta_clntref: __u32, +pub rta_lastuse: __u32, +pub rta_expires: __s32, +pub rta_error: __u32, +pub rta_used: __u32, +pub rta_id: __u32, +pub rta_ts: __u32, +pub rta_tsage: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct rta_session { +pub proto: __u8, +pub pad1: __u8, +pub pad2: __u16, +pub u: rta_session__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rta_session__bindgen_ty_1__bindgen_ty_1 { +pub sport: __u16, +pub dport: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rta_session__bindgen_ty_1__bindgen_ty_2 { +pub type_: __u8, +pub code: __u8, +pub ident: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rta_mfc_stats { +pub mfcs_packets: __u64, +pub mfcs_bytes: __u64, +pub mfcs_wrong_if: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtgenmsg { +pub rtgen_family: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifinfomsg { +pub ifi_family: crate::ctypes::c_uchar, +pub __ifi_pad: crate::ctypes::c_uchar, +pub ifi_type: crate::ctypes::c_ushort, +pub ifi_index: crate::ctypes::c_int, +pub ifi_flags: crate::ctypes::c_uint, +pub ifi_change: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct prefixmsg { +pub prefix_family: crate::ctypes::c_uchar, +pub prefix_pad1: crate::ctypes::c_uchar, +pub prefix_pad2: crate::ctypes::c_ushort, +pub prefix_ifindex: crate::ctypes::c_int, +pub prefix_type: crate::ctypes::c_uchar, +pub prefix_len: crate::ctypes::c_uchar, +pub prefix_flags: crate::ctypes::c_uchar, +pub prefix_pad3: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct prefix_cacheinfo { +pub preferred_time: __u32, +pub valid_time: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcmsg { +pub tcm_family: crate::ctypes::c_uchar, +pub tcm__pad1: crate::ctypes::c_uchar, +pub tcm__pad2: crate::ctypes::c_ushort, +pub tcm_ifindex: crate::ctypes::c_int, +pub tcm_handle: __u32, +pub tcm_parent: __u32, +pub tcm_info: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nduseroptmsg { +pub nduseropt_family: crate::ctypes::c_uchar, +pub nduseropt_pad1: crate::ctypes::c_uchar, +pub nduseropt_opts_len: crate::ctypes::c_ushort, +pub nduseropt_ifindex: crate::ctypes::c_int, +pub nduseropt_icmp_type: __u8, +pub nduseropt_icmp_code: __u8, +pub nduseropt_pad2: crate::ctypes::c_ushort, +pub nduseropt_pad3: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcamsg { +pub tca_family: crate::ctypes::c_uchar, +pub tca__pad1: crate::ctypes::c_uchar, +pub tca__pad2: crate::ctypes::c_ushort, +} +pub const _K_SS_MAXSIZE: u32 = 128; +pub const SOCK_SNDBUF_LOCK: u32 = 1; +pub const SOCK_RCVBUF_LOCK: u32 = 2; +pub const SOCK_BUF_LOCK_MASK: u32 = 3; +pub const SOCK_TXREHASH_DEFAULT: u32 = 255; +pub const SOCK_TXREHASH_DISABLED: u32 = 0; +pub const SOCK_TXREHASH_ENABLED: u32 = 1; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const NETLINK_ROUTE: u32 = 0; +pub const NETLINK_UNUSED: u32 = 1; +pub const NETLINK_USERSOCK: u32 = 2; +pub const NETLINK_FIREWALL: u32 = 3; +pub const NETLINK_SOCK_DIAG: u32 = 4; +pub const NETLINK_NFLOG: u32 = 5; +pub const NETLINK_XFRM: u32 = 6; +pub const NETLINK_SELINUX: u32 = 7; +pub const NETLINK_ISCSI: u32 = 8; +pub const NETLINK_AUDIT: u32 = 9; +pub const NETLINK_FIB_LOOKUP: u32 = 10; +pub const NETLINK_CONNECTOR: u32 = 11; +pub const NETLINK_NETFILTER: u32 = 12; +pub const NETLINK_IP6_FW: u32 = 13; +pub const NETLINK_DNRTMSG: u32 = 14; +pub const NETLINK_KOBJECT_UEVENT: u32 = 15; +pub const NETLINK_GENERIC: u32 = 16; +pub const NETLINK_SCSITRANSPORT: u32 = 18; +pub const NETLINK_ECRYPTFS: u32 = 19; +pub const NETLINK_RDMA: u32 = 20; +pub const NETLINK_CRYPTO: u32 = 21; +pub const NETLINK_SMC: u32 = 22; +pub const NETLINK_INET_DIAG: u32 = 4; +pub const MAX_LINKS: u32 = 32; +pub const NLM_F_REQUEST: u32 = 1; +pub const NLM_F_MULTI: u32 = 2; +pub const NLM_F_ACK: u32 = 4; +pub const NLM_F_ECHO: u32 = 8; +pub const NLM_F_DUMP_INTR: u32 = 16; +pub const NLM_F_DUMP_FILTERED: u32 = 32; +pub const NLM_F_ROOT: u32 = 256; +pub const NLM_F_MATCH: u32 = 512; +pub const NLM_F_ATOMIC: u32 = 1024; +pub const NLM_F_DUMP: u32 = 768; +pub const NLM_F_REPLACE: u32 = 256; +pub const NLM_F_EXCL: u32 = 512; +pub const NLM_F_CREATE: u32 = 1024; +pub const NLM_F_APPEND: u32 = 2048; +pub const NLM_F_NONREC: u32 = 256; +pub const NLM_F_BULK: u32 = 512; +pub const NLM_F_CAPPED: u32 = 256; +pub const NLM_F_ACK_TLVS: u32 = 512; +pub const NLMSG_ALIGNTO: u32 = 4; +pub const NLMSG_NOOP: u32 = 1; +pub const NLMSG_ERROR: u32 = 2; +pub const NLMSG_DONE: u32 = 3; +pub const NLMSG_OVERRUN: u32 = 4; +pub const NLMSG_MIN_TYPE: u32 = 16; +pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; +pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; +pub const NETLINK_PKTINFO: u32 = 3; +pub const NETLINK_BROADCAST_ERROR: u32 = 4; +pub const NETLINK_NO_ENOBUFS: u32 = 5; +pub const NETLINK_RX_RING: u32 = 6; +pub const NETLINK_TX_RING: u32 = 7; +pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; +pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; +pub const NETLINK_CAP_ACK: u32 = 10; +pub const NETLINK_EXT_ACK: u32 = 11; +pub const NETLINK_GET_STRICT_CHK: u32 = 12; +pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; +pub const NET_MAJOR: u32 = 36; +pub const NLA_F_NESTED: u32 = 32768; +pub const NLA_F_NET_BYTEORDER: u32 = 16384; +pub const NLA_TYPE_MASK: i32 = -49153; +pub const NLA_ALIGNTO: u32 = 4; +pub const NL80211_GENL_NAME: &[u8; 8] = b"nl80211\0"; +pub const NL80211_MULTICAST_GROUP_CONFIG: &[u8; 7] = b"config\0"; +pub const NL80211_MULTICAST_GROUP_SCAN: &[u8; 5] = b"scan\0"; +pub const NL80211_MULTICAST_GROUP_REG: &[u8; 11] = b"regulatory\0"; +pub const NL80211_MULTICAST_GROUP_MLME: &[u8; 5] = b"mlme\0"; +pub const NL80211_MULTICAST_GROUP_VENDOR: &[u8; 7] = b"vendor\0"; +pub const NL80211_MULTICAST_GROUP_NAN: &[u8; 4] = b"nan\0"; +pub const NL80211_MULTICAST_GROUP_TESTMODE: &[u8; 9] = b"testmode\0"; +pub const NL80211_EDMG_BW_CONFIG_MIN: u32 = 4; +pub const NL80211_EDMG_BW_CONFIG_MAX: u32 = 15; +pub const NL80211_EDMG_CHANNELS_MIN: u32 = 1; +pub const NL80211_EDMG_CHANNELS_MAX: u32 = 60; +pub const NL80211_WIPHY_NAME_MAXLEN: u32 = 64; +pub const NL80211_MAX_SUPP_RATES: u32 = 32; +pub const NL80211_MAX_SUPP_SELECTORS: u32 = 128; +pub const NL80211_MAX_SUPP_HT_RATES: u32 = 77; +pub const NL80211_MAX_SUPP_REG_RULES: u32 = 128; +pub const NL80211_TKIP_DATA_OFFSET_ENCR_KEY: u32 = 0; +pub const NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY: u32 = 16; +pub const NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY: u32 = 24; +pub const NL80211_HT_CAPABILITY_LEN: u32 = 26; +pub const NL80211_VHT_CAPABILITY_LEN: u32 = 12; +pub const NL80211_HE_MIN_CAPABILITY_LEN: u32 = 16; +pub const NL80211_HE_MAX_CAPABILITY_LEN: u32 = 54; +pub const NL80211_MAX_NR_CIPHER_SUITES: u32 = 5; +pub const NL80211_MAX_NR_AKM_SUITES: u32 = 2; +pub const NL80211_EHT_MIN_CAPABILITY_LEN: u32 = 13; +pub const NL80211_EHT_MAX_CAPABILITY_LEN: u32 = 51; +pub const NL80211_MIN_REMAIN_ON_CHANNEL_TIME: u32 = 10; +pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; +pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; +pub const NL80211_VHT_NSS_MAX: u32 = 8; +pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_KCK_LEN: u32 = 16; +pub const NL80211_KEK_LEN: u32 = 16; +pub const NL80211_KCK_EXT_LEN: u32 = 24; +pub const NL80211_KEK_EXT_LEN: u32 = 32; +pub const NL80211_KCK_EXT_LEN_32: u32 = 32; +pub const NL80211_REPLAY_CTR_LEN: u32 = 8; +pub const NL80211_CRIT_PROTO_MAX_DURATION: u32 = 5000; +pub const NL80211_VENDOR_ID_IS_LINUX: u32 = 2147483648; +pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; +pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; +pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; +pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; +pub const MACVLAN_FLAG_NODST: u32 = 2; +pub const IPVLAN_F_PRIVATE: u32 = 1; +pub const IPVLAN_F_VEPA: u32 = 2; +pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; +pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; +pub const MAX_VLAN_LIST_LEN: u32 = 1; +pub const PORT_PROFILE_MAX: u32 = 40; +pub const PORT_UUID_MAX: u32 = 16; +pub const PORT_SELF_VF: i32 = -1; +pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; +pub const XDP_FLAGS_SKB_MODE: u32 = 2; +pub const XDP_FLAGS_DRV_MODE: u32 = 4; +pub const XDP_FLAGS_HW_MODE: u32 = 8; +pub const XDP_FLAGS_REPLACE: u32 = 16; +pub const XDP_FLAGS_MODES: u32 = 14; +pub const XDP_FLAGS_MASK: u32 = 31; +pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; +pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; +pub const IFA_F_SECONDARY: u32 = 1; +pub const IFA_F_TEMPORARY: u32 = 1; +pub const IFA_F_NODAD: u32 = 2; +pub const IFA_F_OPTIMISTIC: u32 = 4; +pub const IFA_F_DADFAILED: u32 = 8; +pub const IFA_F_HOMEADDRESS: u32 = 16; +pub const IFA_F_DEPRECATED: u32 = 32; +pub const IFA_F_TENTATIVE: u32 = 64; +pub const IFA_F_PERMANENT: u32 = 128; +pub const IFA_F_MANAGETEMPADDR: u32 = 256; +pub const IFA_F_NOPREFIXROUTE: u32 = 512; +pub const IFA_F_MCAUTOJOIN: u32 = 1024; +pub const IFA_F_STABLE_PRIVACY: u32 = 2048; +pub const IFAPROT_UNSPEC: u32 = 0; +pub const IFAPROT_KERNEL_LO: u32 = 1; +pub const IFAPROT_KERNEL_RA: u32 = 2; +pub const IFAPROT_KERNEL_LL: u32 = 3; +pub const NTF_USE: u32 = 1; +pub const NTF_SELF: u32 = 2; +pub const NTF_MASTER: u32 = 4; +pub const NTF_PROXY: u32 = 8; +pub const NTF_EXT_LEARNED: u32 = 16; +pub const NTF_OFFLOADED: u32 = 32; +pub const NTF_STICKY: u32 = 64; +pub const NTF_ROUTER: u32 = 128; +pub const NTF_EXT_MANAGED: u32 = 1; +pub const NTF_EXT_LOCKED: u32 = 2; +pub const NUD_INCOMPLETE: u32 = 1; +pub const NUD_REACHABLE: u32 = 2; +pub const NUD_STALE: u32 = 4; +pub const NUD_DELAY: u32 = 8; +pub const NUD_PROBE: u32 = 16; +pub const NUD_FAILED: u32 = 32; +pub const NUD_NOARP: u32 = 64; +pub const NUD_PERMANENT: u32 = 128; +pub const NUD_NONE: u32 = 0; +pub const RTNL_FAMILY_IPMR: u32 = 128; +pub const RTNL_FAMILY_IP6MR: u32 = 129; +pub const RTNL_FAMILY_MAX: u32 = 129; +pub const RTA_ALIGNTO: u32 = 4; +pub const RTPROT_UNSPEC: u32 = 0; +pub const RTPROT_REDIRECT: u32 = 1; +pub const RTPROT_KERNEL: u32 = 2; +pub const RTPROT_BOOT: u32 = 3; +pub const RTPROT_STATIC: u32 = 4; +pub const RTPROT_GATED: u32 = 8; +pub const RTPROT_RA: u32 = 9; +pub const RTPROT_MRT: u32 = 10; +pub const RTPROT_ZEBRA: u32 = 11; +pub const RTPROT_BIRD: u32 = 12; +pub const RTPROT_DNROUTED: u32 = 13; +pub const RTPROT_XORP: u32 = 14; +pub const RTPROT_NTK: u32 = 15; +pub const RTPROT_DHCP: u32 = 16; +pub const RTPROT_MROUTED: u32 = 17; +pub const RTPROT_KEEPALIVED: u32 = 18; +pub const RTPROT_BABEL: u32 = 42; +pub const RTPROT_OVN: u32 = 84; +pub const RTPROT_OPENR: u32 = 99; +pub const RTPROT_BGP: u32 = 186; +pub const RTPROT_ISIS: u32 = 187; +pub const RTPROT_OSPF: u32 = 188; +pub const RTPROT_RIP: u32 = 189; +pub const RTPROT_EIGRP: u32 = 192; +pub const RTM_F_NOTIFY: u32 = 256; +pub const RTM_F_CLONED: u32 = 512; +pub const RTM_F_EQUALIZE: u32 = 1024; +pub const RTM_F_PREFIX: u32 = 2048; +pub const RTM_F_LOOKUP_TABLE: u32 = 4096; +pub const RTM_F_FIB_MATCH: u32 = 8192; +pub const RTM_F_OFFLOAD: u32 = 16384; +pub const RTM_F_TRAP: u32 = 32768; +pub const RTM_F_OFFLOAD_FAILED: u32 = 536870912; +pub const RTNH_F_DEAD: u32 = 1; +pub const RTNH_F_PERVASIVE: u32 = 2; +pub const RTNH_F_ONLINK: u32 = 4; +pub const RTNH_F_OFFLOAD: u32 = 8; +pub const RTNH_F_LINKDOWN: u32 = 16; +pub const RTNH_F_UNRESOLVED: u32 = 32; +pub const RTNH_F_TRAP: u32 = 64; +pub const RTNH_COMPARE_MASK: u32 = 89; +pub const RTNH_ALIGNTO: u32 = 4; +pub const RTNETLINK_HAVE_PEERINFO: u32 = 1; +pub const RTAX_FEATURE_ECN: u32 = 1; +pub const RTAX_FEATURE_SACK: u32 = 2; +pub const RTAX_FEATURE_TIMESTAMP: u32 = 4; +pub const RTAX_FEATURE_ALLFRAG: u32 = 8; +pub const RTAX_FEATURE_TCP_USEC_TS: u32 = 16; +pub const RTAX_FEATURE_MASK: u32 = 31; +pub const TCM_IFINDEX_MAGIC_BLOCK: u32 = 4294967295; +pub const TCA_DUMP_FLAGS_TERSE: u32 = 1; +pub const RTMGRP_LINK: u32 = 1; +pub const RTMGRP_NOTIFY: u32 = 2; +pub const RTMGRP_NEIGH: u32 = 4; +pub const RTMGRP_TC: u32 = 8; +pub const RTMGRP_IPV4_IFADDR: u32 = 16; +pub const RTMGRP_IPV4_MROUTE: u32 = 32; +pub const RTMGRP_IPV4_ROUTE: u32 = 64; +pub const RTMGRP_IPV4_RULE: u32 = 128; +pub const RTMGRP_IPV6_IFADDR: u32 = 256; +pub const RTMGRP_IPV6_MROUTE: u32 = 512; +pub const RTMGRP_IPV6_ROUTE: u32 = 1024; +pub const RTMGRP_IPV6_IFINFO: u32 = 2048; +pub const RTMGRP_DECnet_IFADDR: u32 = 4096; +pub const RTMGRP_DECnet_ROUTE: u32 = 16384; +pub const RTMGRP_IPV6_PREFIX: u32 = 131072; +pub const TCA_FLAG_LARGE_DUMP_ON: u32 = 1; +pub const TCA_ACT_FLAG_LARGE_DUMP_ON: u32 = 1; +pub const TCA_ACT_FLAG_TERSE_DUMP: u32 = 2; +pub const RTEXT_FILTER_VF: u32 = 1; +pub const RTEXT_FILTER_BRVLAN: u32 = 2; +pub const RTEXT_FILTER_BRVLAN_COMPRESSED: u32 = 4; +pub const RTEXT_FILTER_SKIP_STATS: u32 = 8; +pub const RTEXT_FILTER_MRP: u32 = 16; +pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; +pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; +pub const RTEXT_FILTER_MST: u32 = 128; +pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED; +pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED; +pub const IFLA_UNSPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_UNSPEC; +pub const IFLA_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ADDRESS; +pub const IFLA_BROADCAST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_BROADCAST; +pub const IFLA_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFNAME; +pub const IFLA_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MTU; +pub const IFLA_LINK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK; +pub const IFLA_QDISC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_QDISC; +pub const IFLA_STATS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS; +pub const IFLA_COST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_COST; +pub const IFLA_PRIORITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PRIORITY; +pub const IFLA_MASTER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MASTER; +pub const IFLA_WIRELESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WIRELESS; +pub const IFLA_PROTINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTINFO; +pub const IFLA_TXQLEN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TXQLEN; +pub const IFLA_MAP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAP; +pub const IFLA_WEIGHT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WEIGHT; +pub const IFLA_OPERSTATE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_OPERSTATE; +pub const IFLA_LINKMODE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKMODE; +pub const IFLA_LINKINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKINFO; +pub const IFLA_NET_NS_PID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_PID; +pub const IFLA_IFALIAS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFALIAS; +pub const IFLA_NUM_VF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_VF; +pub const IFLA_VFINFO_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VFINFO_LIST; +pub const IFLA_STATS64: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS64; +pub const IFLA_VF_PORTS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VF_PORTS; +pub const IFLA_PORT_SELF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PORT_SELF; +pub const IFLA_AF_SPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_AF_SPEC; +pub const IFLA_GROUP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GROUP; +pub const IFLA_NET_NS_FD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_FD; +pub const IFLA_EXT_MASK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EXT_MASK; +pub const IFLA_PROMISCUITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROMISCUITY; +pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_TX_QUEUES; +pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_RX_QUEUES; +pub const IFLA_CARRIER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER; +pub const IFLA_PHYS_PORT_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_ID; +pub const IFLA_CARRIER_CHANGES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_CHANGES; +pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_SWITCH_ID; +pub const IFLA_LINK_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK_NETNSID; +pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_NAME; +pub const IFLA_PROTO_DOWN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN; +pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SEGS; +pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SIZE; +pub const IFLA_PAD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PAD; +pub const IFLA_XDP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_XDP; +pub const IFLA_EVENT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EVENT; +pub const IFLA_NEW_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_NETNSID; +pub const IFLA_IF_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; +pub const IFLA_TARGET_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; +pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_UP_COUNT; +pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_DOWN_COUNT; +pub const IFLA_NEW_IFINDEX: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_IFINDEX; +pub const IFLA_MIN_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MIN_MTU; +pub const IFLA_MAX_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_MTU; +pub const IFLA_PROP_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROP_LIST; +pub const IFLA_ALT_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALT_IFNAME; +pub const IFLA_PERM_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PERM_ADDRESS; +pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN_REASON; +pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_NAME; +pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_BUS_NAME; +pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_MAX_SIZE; +pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SIZE; +pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SEGS; +pub const IFLA_ALLMULTI: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALLMULTI; +pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; +pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; +pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; +pub const IFLA_DPLL_PIN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_PACING_OFFLOAD_HORIZON; +pub const IFLA_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; +pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; +pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; +pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; +pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_3 = _bindgen_ty_3::__IFLA_PROTO_DOWN_REASON_CNT; +pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; +pub const IFLA_INET_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_UNSPEC; +pub const IFLA_INET_CONF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_CONF; +pub const __IFLA_INET_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_INET_MAX; +pub const IFLA_INET6_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_UNSPEC; +pub const IFLA_INET6_FLAGS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_FLAGS; +pub const IFLA_INET6_CONF: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CONF; +pub const IFLA_INET6_STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_STATS; +pub const IFLA_INET6_MCAST: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_MCAST; +pub const IFLA_INET6_CACHEINFO: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CACHEINFO; +pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ICMP6STATS; +pub const IFLA_INET6_TOKEN: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_TOKEN; +pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ADDR_GEN_MODE; +pub const IFLA_INET6_RA_MTU: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_RA_MTU; +pub const __IFLA_INET6_MAX: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_INET6_MAX; +pub const IFLA_BR_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_UNSPEC; +pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FORWARD_DELAY; +pub const IFLA_BR_HELLO_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIME; +pub const IFLA_BR_MAX_AGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MAX_AGE; +pub const IFLA_BR_AGEING_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_AGEING_TIME; +pub const IFLA_BR_STP_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_STATE; +pub const IFLA_BR_PRIORITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PRIORITY; +pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_FILTERING; +pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_PROTOCOL; +pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_FWD_MASK; +pub const IFLA_BR_ROOT_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_ID; +pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_BRIDGE_ID; +pub const IFLA_BR_ROOT_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PORT; +pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PATH_COST; +pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE; +pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; +pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIMER; +pub const IFLA_BR_TCN_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TCN_TIMER; +pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_TIMER; +pub const IFLA_BR_GC_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GC_TIMER; +pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_ADDR; +pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_FLUSH; +pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_ROUTER; +pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_SNOOPING; +pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_USE_IFADDR; +pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER; +pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_ELASTICITY; +pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_MAX; +pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_CNT; +pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_CNT; +pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_INTVL; +pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MEMBERSHIP_INTVL; +pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_INTVL; +pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_INTVL; +pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; +pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; +pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IPTABLES; +pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IP6TABLES; +pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_ARPTABLES; +pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_DEFAULT_PVID; +pub const IFLA_BR_PAD: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PAD; +pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_ENABLED; +pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STATS_ENABLED; +pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_IGMP_VERSION; +pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MLD_VERSION; +pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_PER_PORT; +pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BOOLOPT; +pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; +pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; +pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; +pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; +pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; +pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNSPEC; +pub const IFLA_BRPORT_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_STATE; +pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PRIORITY; +pub const IFLA_BRPORT_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_COST; +pub const IFLA_BRPORT_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MODE; +pub const IFLA_BRPORT_GUARD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GUARD; +pub const IFLA_BRPORT_PROTECT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROTECT; +pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FAST_LEAVE; +pub const IFLA_BRPORT_LEARNING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING; +pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNICAST_FLOOD; +pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP; +pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING_SYNC; +pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP_WIFI; +pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ROOT_ID; +pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BRIDGE_ID; +pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_PORT; +pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_COST; +pub const IFLA_BRPORT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ID; +pub const IFLA_BRPORT_NO: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NO; +pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; +pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_CONFIG_PENDING; +pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MESSAGE_AGE_TIMER; +pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FORWARD_DELAY_TIMER; +pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_HOLD_TIMER; +pub const IFLA_BRPORT_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FLUSH; +pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MULTICAST_ROUTER; +pub const IFLA_BRPORT_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PAD; +pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_FLOOD; +pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_TO_UCAST; +pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_VLAN_TUNNEL; +pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BCAST_FLOOD; +pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GROUP_FWD_MASK; +pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_SUPPRESS; +pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ISOLATED; +pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_PORT; +pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_RING_OPEN; +pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_IN_OPEN; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; +pub const IFLA_BRPORT_LOCKED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LOCKED; +pub const IFLA_BRPORT_MAB: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MAB; +pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_N_GROUPS; +pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; +pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; +pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; +pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; +pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; +pub const IFLA_INFO_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_DATA; +pub const IFLA_INFO_XSTATS: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_XSTATS; +pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_KIND; +pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_DATA; +pub const __IFLA_INFO_MAX: _bindgen_ty_9 = _bindgen_ty_9::__IFLA_INFO_MAX; +pub const IFLA_VLAN_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_UNSPEC; +pub const IFLA_VLAN_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_ID; +pub const IFLA_VLAN_FLAGS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_FLAGS; +pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_EGRESS_QOS; +pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_INGRESS_QOS; +pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_PROTOCOL; +pub const __IFLA_VLAN_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_VLAN_MAX; +pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_UNSPEC; +pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_MAPPING; +pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_VLAN_QOS_MAX; +pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_UNSPEC; +pub const IFLA_MACVLAN_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MODE; +pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_FLAGS; +pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_MODE; +pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR; +pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_DATA; +pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_COUNT; +pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN; +pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN_USED; +pub const IFLA_MACVLAN_BC_CUTOFF: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_CUTOFF; +pub const __IFLA_MACVLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_MACVLAN_MAX; +pub const IFLA_VRF_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_UNSPEC; +pub const IFLA_VRF_TABLE: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_TABLE; +pub const __IFLA_VRF_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VRF_MAX; +pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_UNSPEC; +pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_TABLE; +pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_VRF_PORT_MAX; +pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_UNSPEC; +pub const IFLA_MACSEC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCI; +pub const IFLA_MACSEC_PORT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PORT; +pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ICV_LEN; +pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_CIPHER_SUITE; +pub const IFLA_MACSEC_WINDOW: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_WINDOW; +pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCODING_SA; +pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCRYPT; +pub const IFLA_MACSEC_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PROTECT; +pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_INC_SCI; +pub const IFLA_MACSEC_ES: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ES; +pub const IFLA_MACSEC_SCB: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCB; +pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_REPLAY_PROTECT; +pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_VALIDATION; +pub const IFLA_MACSEC_PAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PAD; +pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_OFFLOAD; +pub const __IFLA_MACSEC_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_MACSEC_MAX; +pub const IFLA_XFRM_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_UNSPEC; +pub const IFLA_XFRM_LINK: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_LINK; +pub const IFLA_XFRM_IF_ID: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_IF_ID; +pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_COLLECT_METADATA; +pub const __IFLA_XFRM_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_XFRM_MAX; +pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_UNSPEC; +pub const IFLA_IPVLAN_MODE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_MODE; +pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_FLAGS; +pub const __IFLA_IPVLAN_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_IPVLAN_MAX; +pub const IFLA_NETKIT_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_UNSPEC; +pub const IFLA_NETKIT_PEER_INFO: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_INFO; +pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PRIMARY; +pub const IFLA_NETKIT_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_POLICY; +pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_POLICY; +pub const IFLA_NETKIT_MODE: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_SCRUB; +pub const IFLA_NETKIT_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; +pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const __IFLA_NETKIT_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_NETKIT_MAX; +pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_UNSPEC; +pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_BYTES; +pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_PKTS; +pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_DROPS; +pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_TX_BYTES; +pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_TX_PKTS; +pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_TX_DROPS; +pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_TX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_PAD; +pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_19 = _bindgen_ty_19::__VNIFILTER_ENTRY_STATS_MAX; +pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_START; +pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_END; +pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_GROUP; +pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_GROUP6; +pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_STATS; +pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_20 = _bindgen_ty_20::__VXLAN_VNIFILTER_ENTRY_MAX; +pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VXLAN_VNIFILTER_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_21 = _bindgen_ty_21::VXLAN_VNIFILTER_ENTRY; +pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_21 = _bindgen_ty_21::__VXLAN_VNIFILTER_MAX; +pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_UNSPEC; +pub const IFLA_VXLAN_ID: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_ID; +pub const IFLA_VXLAN_GROUP: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_GROUP; +pub const IFLA_VXLAN_LINK: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LINK; +pub const IFLA_VXLAN_LOCAL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LOCAL; +pub const IFLA_VXLAN_TTL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_TTL; +pub const IFLA_VXLAN_TOS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_TOS; +pub const IFLA_VXLAN_LEARNING: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LEARNING; +pub const IFLA_VXLAN_AGEING: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_AGEING; +pub const IFLA_VXLAN_LIMIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LIMIT; +pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_PORT_RANGE; +pub const IFLA_VXLAN_PROXY: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_PROXY; +pub const IFLA_VXLAN_RSC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_RSC; +pub const IFLA_VXLAN_L2MISS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_L2MISS; +pub const IFLA_VXLAN_L3MISS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_L3MISS; +pub const IFLA_VXLAN_PORT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_PORT; +pub const IFLA_VXLAN_GROUP6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_GROUP6; +pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LOCAL6; +pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_UDP_CSUM; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; +pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_REMCSUM_TX; +pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_REMCSUM_RX; +pub const IFLA_VXLAN_GBP: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_GBP; +pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_REMCSUM_NOPARTIAL; +pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_COLLECT_METADATA; +pub const IFLA_VXLAN_LABEL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LABEL; +pub const IFLA_VXLAN_GPE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_GPE; +pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_TTL_INHERIT; +pub const IFLA_VXLAN_DF: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_DF; +pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_VNIFILTER; +pub const IFLA_VXLAN_LOCALBYPASS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LOCALBYPASS; +pub const IFLA_VXLAN_LABEL_POLICY: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LABEL_POLICY; +pub const IFLA_VXLAN_RESERVED_BITS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_RESERVED_BITS; +pub const __IFLA_VXLAN_MAX: _bindgen_ty_22 = _bindgen_ty_22::__IFLA_VXLAN_MAX; +pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_UNSPEC; +pub const IFLA_GENEVE_ID: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ID; +pub const IFLA_GENEVE_REMOTE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_REMOTE; +pub const IFLA_GENEVE_TTL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_TTL; +pub const IFLA_GENEVE_TOS: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_TOS; +pub const IFLA_GENEVE_PORT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT; +pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_COLLECT_METADATA; +pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_REMOTE6; +pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_UDP_CSUM; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; +pub const IFLA_GENEVE_LABEL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LABEL; +pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_TTL_INHERIT; +pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; +pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; +pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; +pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; +pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; +pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_ETHERTYPE; +pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_SRCPORT_MIN; +pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_MULTIPROTO_MODE; +pub const __IFLA_BAREUDP_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_BAREUDP_MAX; +pub const IFLA_PPP_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_PPP_UNSPEC; +pub const IFLA_PPP_DEV_FD: _bindgen_ty_25 = _bindgen_ty_25::IFLA_PPP_DEV_FD; +pub const __IFLA_PPP_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_PPP_MAX; +pub const IFLA_GTP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_UNSPEC; +pub const IFLA_GTP_FD0: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_FD0; +pub const IFLA_GTP_FD1: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_FD1; +pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_PDP_HASHSIZE; +pub const IFLA_GTP_ROLE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_ROLE; +pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_CREATE_SOCKETS; +pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_RESTART_COUNT; +pub const IFLA_GTP_LOCAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_LOCAL; +pub const IFLA_GTP_LOCAL6: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_LOCAL6; +pub const __IFLA_GTP_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_GTP_MAX; +pub const IFLA_BOND_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_UNSPEC; +pub const IFLA_BOND_MODE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MODE; +pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ACTIVE_SLAVE; +pub const IFLA_BOND_MIIMON: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MIIMON; +pub const IFLA_BOND_UPDELAY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_UPDELAY; +pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_DOWNDELAY; +pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_USE_CARRIER; +pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ARP_INTERVAL; +pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ARP_IP_TARGET; +pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ARP_VALIDATE; +pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ARP_ALL_TARGETS; +pub const IFLA_BOND_PRIMARY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_PRIMARY; +pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_PRIMARY_RESELECT; +pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_FAIL_OVER_MAC; +pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_XMIT_HASH_POLICY; +pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_RESEND_IGMP; +pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NUM_PEER_NOTIF; +pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ALL_SLAVES_ACTIVE; +pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MIN_LINKS; +pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LP_INTERVAL; +pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_PACKETS_PER_SLAVE; +pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_LACP_RATE; +pub const IFLA_BOND_AD_SELECT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_SELECT; +pub const IFLA_BOND_AD_INFO: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO; +pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_ACTOR_SYS_PRIO; +pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_USER_PORT_KEY; +pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_ACTOR_SYSTEM; +pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_TLB_DYNAMIC_LB; +pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_PEER_NOTIF_DELAY; +pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_LACP_ACTIVE; +pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSED_MAX; +pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; +pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; +pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; +pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; +pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; +pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_NUM_PORTS; +pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_ACTOR_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_PARTNER_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_PARTNER_MAC; +pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_BOND_AD_INFO_MAX; +pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_UNSPEC; +pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_STATE; +pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_MII_STATUS; +pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; +pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PERM_HWADDR; +pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_QUEUE_ID; +pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; +pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; +pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; +pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; +pub const __IFLA_VF_INFO_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_VF_INFO_MAX; +pub const IFLA_VF_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_UNSPEC; +pub const IFLA_VF_MAC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_MAC; +pub const IFLA_VF_VLAN: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN; +pub const IFLA_VF_TX_RATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_TX_RATE; +pub const IFLA_VF_SPOOFCHK: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_SPOOFCHK; +pub const IFLA_VF_LINK_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_LINK_STATE; +pub const IFLA_VF_RATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_RATE; +pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_RSS_QUERY_EN; +pub const IFLA_VF_STATS: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_STATS; +pub const IFLA_VF_TRUST: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_TRUST; +pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_IB_NODE_GUID; +pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_IB_PORT_GUID; +pub const IFLA_VF_VLAN_LIST: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_LIST; +pub const IFLA_VF_BROADCAST: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_BROADCAST; +pub const __IFLA_VF_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_VF_MAX; +pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_VLAN_INFO_UNSPEC; +pub const IFLA_VF_VLAN_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_VLAN_INFO; +pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_VLAN_INFO_MAX; +pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_LINK_STATE_AUTO; +pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_LINK_STATE_ENABLE; +pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_LINK_STATE_DISABLE; +pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_LINK_STATE_MAX; +pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_RX_PACKETS; +pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_TX_PACKETS; +pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_RX_BYTES; +pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_TX_BYTES; +pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_BROADCAST; +pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_MULTICAST; +pub const IFLA_VF_STATS_PAD: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_PAD; +pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_RX_DROPPED; +pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_TX_DROPPED; +pub const __IFLA_VF_STATS_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_STATS_MAX; +pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_PORT_UNSPEC; +pub const IFLA_VF_PORT: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_PORT; +pub const __IFLA_VF_PORT_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_VF_PORT_MAX; +pub const IFLA_PORT_UNSPEC: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_UNSPEC; +pub const IFLA_PORT_VF: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_VF; +pub const IFLA_PORT_PROFILE: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_PROFILE; +pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_VSI_TYPE; +pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_INSTANCE_UUID; +pub const IFLA_PORT_HOST_UUID: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_HOST_UUID; +pub const IFLA_PORT_REQUEST: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_REQUEST; +pub const IFLA_PORT_RESPONSE: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_RESPONSE; +pub const __IFLA_PORT_MAX: _bindgen_ty_36 = _bindgen_ty_36::__IFLA_PORT_MAX; +pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_REQUEST_PREASSOCIATE; +pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_37 = _bindgen_ty_37::PORT_REQUEST_PREASSOCIATE_RR; +pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_REQUEST_ASSOCIATE; +pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_REQUEST_DISASSOCIATE; +pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_SUCCESS; +pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_INVALID_FORMAT; +pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_UNUSED_VTID; +pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_VTID_VIOLATION; +pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; +pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_OUT_OF_SYNC; +pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_SUCCESS; +pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_INPROGRESS; +pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_INVALID; +pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_BADSTATE; +pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_ERROR; +pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_39 = _bindgen_ty_39::IFLA_IPOIB_UNSPEC; +pub const IFLA_IPOIB_PKEY: _bindgen_ty_39 = _bindgen_ty_39::IFLA_IPOIB_PKEY; +pub const IFLA_IPOIB_MODE: _bindgen_ty_39 = _bindgen_ty_39::IFLA_IPOIB_MODE; +pub const IFLA_IPOIB_UMCAST: _bindgen_ty_39 = _bindgen_ty_39::IFLA_IPOIB_UMCAST; +pub const __IFLA_IPOIB_MAX: _bindgen_ty_39 = _bindgen_ty_39::__IFLA_IPOIB_MAX; +pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_40 = _bindgen_ty_40::IPOIB_MODE_DATAGRAM; +pub const IPOIB_MODE_CONNECTED: _bindgen_ty_40 = _bindgen_ty_40::IPOIB_MODE_CONNECTED; +pub const HSR_PROTOCOL_HSR: _bindgen_ty_41 = _bindgen_ty_41::HSR_PROTOCOL_HSR; +pub const HSR_PROTOCOL_PRP: _bindgen_ty_41 = _bindgen_ty_41::HSR_PROTOCOL_PRP; +pub const HSR_PROTOCOL_MAX: _bindgen_ty_41 = _bindgen_ty_41::HSR_PROTOCOL_MAX; +pub const IFLA_HSR_UNSPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_UNSPEC; +pub const IFLA_HSR_SLAVE1: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_SLAVE1; +pub const IFLA_HSR_SLAVE2: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_SLAVE2; +pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_MULTICAST_SPEC; +pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_SUPERVISION_ADDR; +pub const IFLA_HSR_SEQ_NR: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_SEQ_NR; +pub const IFLA_HSR_VERSION: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_VERSION; +pub const IFLA_HSR_PROTOCOL: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_PROTOCOL; +pub const IFLA_HSR_INTERLINK: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_INTERLINK; +pub const __IFLA_HSR_MAX: _bindgen_ty_42 = _bindgen_ty_42::__IFLA_HSR_MAX; +pub const IFLA_STATS_UNSPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_UNSPEC; +pub const IFLA_STATS_LINK_64: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_LINK_64; +pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_LINK_XSTATS; +pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_LINK_XSTATS_SLAVE; +pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_LINK_OFFLOAD_XSTATS; +pub const IFLA_STATS_AF_SPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_AF_SPEC; +pub const __IFLA_STATS_MAX: _bindgen_ty_43 = _bindgen_ty_43::__IFLA_STATS_MAX; +pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::IFLA_STATS_GETSET_UNSPEC; +pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_44 = _bindgen_ty_44::IFLA_STATS_GET_FILTERS; +pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_44 = _bindgen_ty_44::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_44 = _bindgen_ty_44::__IFLA_STATS_GETSET_MAX; +pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::LINK_XSTATS_TYPE_UNSPEC; +pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_45 = _bindgen_ty_45::LINK_XSTATS_TYPE_BRIDGE; +pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_45 = _bindgen_ty_45::LINK_XSTATS_TYPE_BOND; +pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_45 = _bindgen_ty_45::__LINK_XSTATS_TYPE_MAX; +pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_CPU_HIT; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO; +pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_OFFLOAD_XSTATS_MAX; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_47 = _bindgen_ty_47::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_47 = _bindgen_ty_47::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_47 = _bindgen_ty_47::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; +pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_47 = _bindgen_ty_47::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; +pub const XDP_ATTACHED_NONE: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_NONE; +pub const XDP_ATTACHED_DRV: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_DRV; +pub const XDP_ATTACHED_SKB: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_SKB; +pub const XDP_ATTACHED_HW: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_HW; +pub const XDP_ATTACHED_MULTI: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_MULTI; +pub const IFLA_XDP_UNSPEC: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_UNSPEC; +pub const IFLA_XDP_FD: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_FD; +pub const IFLA_XDP_ATTACHED: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_ATTACHED; +pub const IFLA_XDP_FLAGS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_FLAGS; +pub const IFLA_XDP_PROG_ID: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_PROG_ID; +pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_DRV_PROG_ID; +pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_SKB_PROG_ID; +pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_HW_PROG_ID; +pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_EXPECTED_FD; +pub const __IFLA_XDP_MAX: _bindgen_ty_49 = _bindgen_ty_49::__IFLA_XDP_MAX; +pub const IFLA_EVENT_NONE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_NONE; +pub const IFLA_EVENT_REBOOT: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_REBOOT; +pub const IFLA_EVENT_FEATURES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_FEATURES; +pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_BONDING_FAILOVER; +pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_NOTIFY_PEERS; +pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_IGMP_RESEND; +pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_BONDING_OPTIONS; +pub const IFLA_TUN_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_UNSPEC; +pub const IFLA_TUN_OWNER: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_OWNER; +pub const IFLA_TUN_GROUP: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_GROUP; +pub const IFLA_TUN_TYPE: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_TYPE; +pub const IFLA_TUN_PI: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_PI; +pub const IFLA_TUN_VNET_HDR: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_VNET_HDR; +pub const IFLA_TUN_PERSIST: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_PERSIST; +pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_MULTI_QUEUE; +pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_NUM_QUEUES; +pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_NUM_DISABLED_QUEUES; +pub const __IFLA_TUN_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_TUN_MAX; +pub const IFLA_RMNET_UNSPEC: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_UNSPEC; +pub const IFLA_RMNET_MUX_ID: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_MUX_ID; +pub const IFLA_RMNET_FLAGS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_FLAGS; +pub const __IFLA_RMNET_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_RMNET_MAX; +pub const IFLA_MCTP_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_UNSPEC; +pub const IFLA_MCTP_NET: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_PHYS_BINDING; +pub const __IFLA_MCTP_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_MCTP_MAX; +pub const IFLA_DSA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_UNSPEC; +pub const IFLA_DSA_CONDUIT: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; +pub const IFLA_DSA_MASTER: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; +pub const __IFLA_DSA_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_DSA_MAX; +pub const IFLA_OVPN_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_OVPN_UNSPEC; +pub const IFLA_OVPN_MODE: _bindgen_ty_55 = _bindgen_ty_55::IFLA_OVPN_MODE; +pub const __IFLA_OVPN_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_OVPN_MAX; +pub const IFA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFA_UNSPEC; +pub const IFA_ADDRESS: _bindgen_ty_56 = _bindgen_ty_56::IFA_ADDRESS; +pub const IFA_LOCAL: _bindgen_ty_56 = _bindgen_ty_56::IFA_LOCAL; +pub const IFA_LABEL: _bindgen_ty_56 = _bindgen_ty_56::IFA_LABEL; +pub const IFA_BROADCAST: _bindgen_ty_56 = _bindgen_ty_56::IFA_BROADCAST; +pub const IFA_ANYCAST: _bindgen_ty_56 = _bindgen_ty_56::IFA_ANYCAST; +pub const IFA_CACHEINFO: _bindgen_ty_56 = _bindgen_ty_56::IFA_CACHEINFO; +pub const IFA_MULTICAST: _bindgen_ty_56 = _bindgen_ty_56::IFA_MULTICAST; +pub const IFA_FLAGS: _bindgen_ty_56 = _bindgen_ty_56::IFA_FLAGS; +pub const IFA_RT_PRIORITY: _bindgen_ty_56 = _bindgen_ty_56::IFA_RT_PRIORITY; +pub const IFA_TARGET_NETNSID: _bindgen_ty_56 = _bindgen_ty_56::IFA_TARGET_NETNSID; +pub const IFA_PROTO: _bindgen_ty_56 = _bindgen_ty_56::IFA_PROTO; +pub const __IFA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__IFA_MAX; +pub const NDA_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::NDA_UNSPEC; +pub const NDA_DST: _bindgen_ty_57 = _bindgen_ty_57::NDA_DST; +pub const NDA_LLADDR: _bindgen_ty_57 = _bindgen_ty_57::NDA_LLADDR; +pub const NDA_CACHEINFO: _bindgen_ty_57 = _bindgen_ty_57::NDA_CACHEINFO; +pub const NDA_PROBES: _bindgen_ty_57 = _bindgen_ty_57::NDA_PROBES; +pub const NDA_VLAN: _bindgen_ty_57 = _bindgen_ty_57::NDA_VLAN; +pub const NDA_PORT: _bindgen_ty_57 = _bindgen_ty_57::NDA_PORT; +pub const NDA_VNI: _bindgen_ty_57 = _bindgen_ty_57::NDA_VNI; +pub const NDA_IFINDEX: _bindgen_ty_57 = _bindgen_ty_57::NDA_IFINDEX; +pub const NDA_MASTER: _bindgen_ty_57 = _bindgen_ty_57::NDA_MASTER; +pub const NDA_LINK_NETNSID: _bindgen_ty_57 = _bindgen_ty_57::NDA_LINK_NETNSID; +pub const NDA_SRC_VNI: _bindgen_ty_57 = _bindgen_ty_57::NDA_SRC_VNI; +pub const NDA_PROTOCOL: _bindgen_ty_57 = _bindgen_ty_57::NDA_PROTOCOL; +pub const NDA_NH_ID: _bindgen_ty_57 = _bindgen_ty_57::NDA_NH_ID; +pub const NDA_FDB_EXT_ATTRS: _bindgen_ty_57 = _bindgen_ty_57::NDA_FDB_EXT_ATTRS; +pub const NDA_FLAGS_EXT: _bindgen_ty_57 = _bindgen_ty_57::NDA_FLAGS_EXT; +pub const NDA_NDM_STATE_MASK: _bindgen_ty_57 = _bindgen_ty_57::NDA_NDM_STATE_MASK; +pub const NDA_NDM_FLAGS_MASK: _bindgen_ty_57 = _bindgen_ty_57::NDA_NDM_FLAGS_MASK; +pub const __NDA_MAX: _bindgen_ty_57 = _bindgen_ty_57::__NDA_MAX; +pub const NDTPA_UNSPEC: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_UNSPEC; +pub const NDTPA_IFINDEX: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_IFINDEX; +pub const NDTPA_REFCNT: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_REFCNT; +pub const NDTPA_REACHABLE_TIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_REACHABLE_TIME; +pub const NDTPA_BASE_REACHABLE_TIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_BASE_REACHABLE_TIME; +pub const NDTPA_RETRANS_TIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_RETRANS_TIME; +pub const NDTPA_GC_STALETIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_GC_STALETIME; +pub const NDTPA_DELAY_PROBE_TIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_DELAY_PROBE_TIME; +pub const NDTPA_QUEUE_LEN: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_QUEUE_LEN; +pub const NDTPA_APP_PROBES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_APP_PROBES; +pub const NDTPA_UCAST_PROBES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_UCAST_PROBES; +pub const NDTPA_MCAST_PROBES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_MCAST_PROBES; +pub const NDTPA_ANYCAST_DELAY: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_ANYCAST_DELAY; +pub const NDTPA_PROXY_DELAY: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_PROXY_DELAY; +pub const NDTPA_PROXY_QLEN: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_PROXY_QLEN; +pub const NDTPA_LOCKTIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_LOCKTIME; +pub const NDTPA_QUEUE_LENBYTES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_QUEUE_LENBYTES; +pub const NDTPA_MCAST_REPROBES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_MCAST_REPROBES; +pub const NDTPA_PAD: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_PAD; +pub const NDTPA_INTERVAL_PROBE_TIME_MS: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_INTERVAL_PROBE_TIME_MS; +pub const __NDTPA_MAX: _bindgen_ty_58 = _bindgen_ty_58::__NDTPA_MAX; +pub const NDTA_UNSPEC: _bindgen_ty_59 = _bindgen_ty_59::NDTA_UNSPEC; +pub const NDTA_NAME: _bindgen_ty_59 = _bindgen_ty_59::NDTA_NAME; +pub const NDTA_THRESH1: _bindgen_ty_59 = _bindgen_ty_59::NDTA_THRESH1; +pub const NDTA_THRESH2: _bindgen_ty_59 = _bindgen_ty_59::NDTA_THRESH2; +pub const NDTA_THRESH3: _bindgen_ty_59 = _bindgen_ty_59::NDTA_THRESH3; +pub const NDTA_CONFIG: _bindgen_ty_59 = _bindgen_ty_59::NDTA_CONFIG; +pub const NDTA_PARMS: _bindgen_ty_59 = _bindgen_ty_59::NDTA_PARMS; +pub const NDTA_STATS: _bindgen_ty_59 = _bindgen_ty_59::NDTA_STATS; +pub const NDTA_GC_INTERVAL: _bindgen_ty_59 = _bindgen_ty_59::NDTA_GC_INTERVAL; +pub const NDTA_PAD: _bindgen_ty_59 = _bindgen_ty_59::NDTA_PAD; +pub const __NDTA_MAX: _bindgen_ty_59 = _bindgen_ty_59::__NDTA_MAX; +pub const FDB_NOTIFY_BIT: _bindgen_ty_60 = _bindgen_ty_60::FDB_NOTIFY_BIT; +pub const FDB_NOTIFY_INACTIVE_BIT: _bindgen_ty_60 = _bindgen_ty_60::FDB_NOTIFY_INACTIVE_BIT; +pub const NFEA_UNSPEC: _bindgen_ty_61 = _bindgen_ty_61::NFEA_UNSPEC; +pub const NFEA_ACTIVITY_NOTIFY: _bindgen_ty_61 = _bindgen_ty_61::NFEA_ACTIVITY_NOTIFY; +pub const NFEA_DONT_REFRESH: _bindgen_ty_61 = _bindgen_ty_61::NFEA_DONT_REFRESH; +pub const __NFEA_MAX: _bindgen_ty_61 = _bindgen_ty_61::__NFEA_MAX; +pub const RTM_BASE: _bindgen_ty_62 = _bindgen_ty_62::RTM_BASE; +pub const RTM_NEWLINK: _bindgen_ty_62 = _bindgen_ty_62::RTM_BASE; +pub const RTM_DELLINK: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELLINK; +pub const RTM_GETLINK: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETLINK; +pub const RTM_SETLINK: _bindgen_ty_62 = _bindgen_ty_62::RTM_SETLINK; +pub const RTM_NEWADDR: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWADDR; +pub const RTM_DELADDR: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELADDR; +pub const RTM_GETADDR: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETADDR; +pub const RTM_NEWROUTE: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWROUTE; +pub const RTM_DELROUTE: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELROUTE; +pub const RTM_GETROUTE: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETROUTE; +pub const RTM_NEWNEIGH: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNEIGH; +pub const RTM_DELNEIGH: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNEIGH; +pub const RTM_GETNEIGH: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNEIGH; +pub const RTM_NEWRULE: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWRULE; +pub const RTM_DELRULE: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELRULE; +pub const RTM_GETRULE: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETRULE; +pub const RTM_NEWQDISC: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWQDISC; +pub const RTM_DELQDISC: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELQDISC; +pub const RTM_GETQDISC: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETQDISC; +pub const RTM_NEWTCLASS: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWTCLASS; +pub const RTM_DELTCLASS: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELTCLASS; +pub const RTM_GETTCLASS: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETTCLASS; +pub const RTM_NEWTFILTER: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWTFILTER; +pub const RTM_DELTFILTER: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELTFILTER; +pub const RTM_GETTFILTER: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETTFILTER; +pub const RTM_NEWACTION: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWACTION; +pub const RTM_DELACTION: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELACTION; +pub const RTM_GETACTION: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETACTION; +pub const RTM_NEWPREFIX: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWPREFIX; +pub const RTM_NEWMULTICAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWMULTICAST; +pub const RTM_DELMULTICAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELMULTICAST; +pub const RTM_GETMULTICAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETMULTICAST; +pub const RTM_NEWANYCAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWANYCAST; +pub const RTM_DELANYCAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELANYCAST; +pub const RTM_GETANYCAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETANYCAST; +pub const RTM_NEWNEIGHTBL: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNEIGHTBL; +pub const RTM_GETNEIGHTBL: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNEIGHTBL; +pub const RTM_SETNEIGHTBL: _bindgen_ty_62 = _bindgen_ty_62::RTM_SETNEIGHTBL; +pub const RTM_NEWNDUSEROPT: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNDUSEROPT; +pub const RTM_NEWADDRLABEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWADDRLABEL; +pub const RTM_DELADDRLABEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELADDRLABEL; +pub const RTM_GETADDRLABEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETADDRLABEL; +pub const RTM_GETDCB: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETDCB; +pub const RTM_SETDCB: _bindgen_ty_62 = _bindgen_ty_62::RTM_SETDCB; +pub const RTM_NEWNETCONF: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNETCONF; +pub const RTM_DELNETCONF: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNETCONF; +pub const RTM_GETNETCONF: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNETCONF; +pub const RTM_NEWMDB: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWMDB; +pub const RTM_DELMDB: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELMDB; +pub const RTM_GETMDB: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETMDB; +pub const RTM_NEWNSID: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNSID; +pub const RTM_DELNSID: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNSID; +pub const RTM_GETNSID: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNSID; +pub const RTM_NEWSTATS: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWSTATS; +pub const RTM_GETSTATS: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETSTATS; +pub const RTM_SETSTATS: _bindgen_ty_62 = _bindgen_ty_62::RTM_SETSTATS; +pub const RTM_NEWCACHEREPORT: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWCACHEREPORT; +pub const RTM_NEWCHAIN: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWCHAIN; +pub const RTM_DELCHAIN: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELCHAIN; +pub const RTM_GETCHAIN: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETCHAIN; +pub const RTM_NEWNEXTHOP: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNEXTHOP; +pub const RTM_DELNEXTHOP: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNEXTHOP; +pub const RTM_GETNEXTHOP: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNEXTHOP; +pub const RTM_NEWLINKPROP: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWLINKPROP; +pub const RTM_DELLINKPROP: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELLINKPROP; +pub const RTM_GETLINKPROP: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETLINKPROP; +pub const RTM_NEWVLAN: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWVLAN; +pub const RTM_DELVLAN: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELVLAN; +pub const RTM_GETVLAN: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETVLAN; +pub const RTM_NEWNEXTHOPBUCKET: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNEXTHOPBUCKET; +pub const RTM_DELNEXTHOPBUCKET: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNEXTHOPBUCKET; +pub const RTM_GETNEXTHOPBUCKET: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNEXTHOPBUCKET; +pub const RTM_NEWTUNNEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWTUNNEL; +pub const RTM_DELTUNNEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELTUNNEL; +pub const RTM_GETTUNNEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETTUNNEL; +pub const __RTM_MAX: _bindgen_ty_62 = _bindgen_ty_62::__RTM_MAX; +pub const RTN_UNSPEC: _bindgen_ty_63 = _bindgen_ty_63::RTN_UNSPEC; +pub const RTN_UNICAST: _bindgen_ty_63 = _bindgen_ty_63::RTN_UNICAST; +pub const RTN_LOCAL: _bindgen_ty_63 = _bindgen_ty_63::RTN_LOCAL; +pub const RTN_BROADCAST: _bindgen_ty_63 = _bindgen_ty_63::RTN_BROADCAST; +pub const RTN_ANYCAST: _bindgen_ty_63 = _bindgen_ty_63::RTN_ANYCAST; +pub const RTN_MULTICAST: _bindgen_ty_63 = _bindgen_ty_63::RTN_MULTICAST; +pub const RTN_BLACKHOLE: _bindgen_ty_63 = _bindgen_ty_63::RTN_BLACKHOLE; +pub const RTN_UNREACHABLE: _bindgen_ty_63 = _bindgen_ty_63::RTN_UNREACHABLE; +pub const RTN_PROHIBIT: _bindgen_ty_63 = _bindgen_ty_63::RTN_PROHIBIT; +pub const RTN_THROW: _bindgen_ty_63 = _bindgen_ty_63::RTN_THROW; +pub const RTN_NAT: _bindgen_ty_63 = _bindgen_ty_63::RTN_NAT; +pub const RTN_XRESOLVE: _bindgen_ty_63 = _bindgen_ty_63::RTN_XRESOLVE; +pub const __RTN_MAX: _bindgen_ty_63 = _bindgen_ty_63::__RTN_MAX; +pub const RTAX_UNSPEC: _bindgen_ty_64 = _bindgen_ty_64::RTAX_UNSPEC; +pub const RTAX_LOCK: _bindgen_ty_64 = _bindgen_ty_64::RTAX_LOCK; +pub const RTAX_MTU: _bindgen_ty_64 = _bindgen_ty_64::RTAX_MTU; +pub const RTAX_WINDOW: _bindgen_ty_64 = _bindgen_ty_64::RTAX_WINDOW; +pub const RTAX_RTT: _bindgen_ty_64 = _bindgen_ty_64::RTAX_RTT; +pub const RTAX_RTTVAR: _bindgen_ty_64 = _bindgen_ty_64::RTAX_RTTVAR; +pub const RTAX_SSTHRESH: _bindgen_ty_64 = _bindgen_ty_64::RTAX_SSTHRESH; +pub const RTAX_CWND: _bindgen_ty_64 = _bindgen_ty_64::RTAX_CWND; +pub const RTAX_ADVMSS: _bindgen_ty_64 = _bindgen_ty_64::RTAX_ADVMSS; +pub const RTAX_REORDERING: _bindgen_ty_64 = _bindgen_ty_64::RTAX_REORDERING; +pub const RTAX_HOPLIMIT: _bindgen_ty_64 = _bindgen_ty_64::RTAX_HOPLIMIT; +pub const RTAX_INITCWND: _bindgen_ty_64 = _bindgen_ty_64::RTAX_INITCWND; +pub const RTAX_FEATURES: _bindgen_ty_64 = _bindgen_ty_64::RTAX_FEATURES; +pub const RTAX_RTO_MIN: _bindgen_ty_64 = _bindgen_ty_64::RTAX_RTO_MIN; +pub const RTAX_INITRWND: _bindgen_ty_64 = _bindgen_ty_64::RTAX_INITRWND; +pub const RTAX_QUICKACK: _bindgen_ty_64 = _bindgen_ty_64::RTAX_QUICKACK; +pub const RTAX_CC_ALGO: _bindgen_ty_64 = _bindgen_ty_64::RTAX_CC_ALGO; +pub const RTAX_FASTOPEN_NO_COOKIE: _bindgen_ty_64 = _bindgen_ty_64::RTAX_FASTOPEN_NO_COOKIE; +pub const __RTAX_MAX: _bindgen_ty_64 = _bindgen_ty_64::__RTAX_MAX; +pub const PREFIX_UNSPEC: _bindgen_ty_65 = _bindgen_ty_65::PREFIX_UNSPEC; +pub const PREFIX_ADDRESS: _bindgen_ty_65 = _bindgen_ty_65::PREFIX_ADDRESS; +pub const PREFIX_CACHEINFO: _bindgen_ty_65 = _bindgen_ty_65::PREFIX_CACHEINFO; +pub const __PREFIX_MAX: _bindgen_ty_65 = _bindgen_ty_65::__PREFIX_MAX; +pub const TCA_UNSPEC: _bindgen_ty_66 = _bindgen_ty_66::TCA_UNSPEC; +pub const TCA_KIND: _bindgen_ty_66 = _bindgen_ty_66::TCA_KIND; +pub const TCA_OPTIONS: _bindgen_ty_66 = _bindgen_ty_66::TCA_OPTIONS; +pub const TCA_STATS: _bindgen_ty_66 = _bindgen_ty_66::TCA_STATS; +pub const TCA_XSTATS: _bindgen_ty_66 = _bindgen_ty_66::TCA_XSTATS; +pub const TCA_RATE: _bindgen_ty_66 = _bindgen_ty_66::TCA_RATE; +pub const TCA_FCNT: _bindgen_ty_66 = _bindgen_ty_66::TCA_FCNT; +pub const TCA_STATS2: _bindgen_ty_66 = _bindgen_ty_66::TCA_STATS2; +pub const TCA_STAB: _bindgen_ty_66 = _bindgen_ty_66::TCA_STAB; +pub const TCA_PAD: _bindgen_ty_66 = _bindgen_ty_66::TCA_PAD; +pub const TCA_DUMP_INVISIBLE: _bindgen_ty_66 = _bindgen_ty_66::TCA_DUMP_INVISIBLE; +pub const TCA_CHAIN: _bindgen_ty_66 = _bindgen_ty_66::TCA_CHAIN; +pub const TCA_HW_OFFLOAD: _bindgen_ty_66 = _bindgen_ty_66::TCA_HW_OFFLOAD; +pub const TCA_INGRESS_BLOCK: _bindgen_ty_66 = _bindgen_ty_66::TCA_INGRESS_BLOCK; +pub const TCA_EGRESS_BLOCK: _bindgen_ty_66 = _bindgen_ty_66::TCA_EGRESS_BLOCK; +pub const TCA_DUMP_FLAGS: _bindgen_ty_66 = _bindgen_ty_66::TCA_DUMP_FLAGS; +pub const TCA_EXT_WARN_MSG: _bindgen_ty_66 = _bindgen_ty_66::TCA_EXT_WARN_MSG; +pub const __TCA_MAX: _bindgen_ty_66 = _bindgen_ty_66::__TCA_MAX; +pub const NDUSEROPT_UNSPEC: _bindgen_ty_67 = _bindgen_ty_67::NDUSEROPT_UNSPEC; +pub const NDUSEROPT_SRCADDR: _bindgen_ty_67 = _bindgen_ty_67::NDUSEROPT_SRCADDR; +pub const __NDUSEROPT_MAX: _bindgen_ty_67 = _bindgen_ty_67::__NDUSEROPT_MAX; +pub const TCA_ROOT_UNSPEC: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_UNSPEC; +pub const TCA_ROOT_TAB: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_TAB; +pub const TCA_ROOT_FLAGS: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_FLAGS; +pub const TCA_ROOT_COUNT: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_COUNT; +pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_TIME_DELTA; +pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_EXT_WARN_MSG; +pub const __TCA_ROOT_MAX: _bindgen_ty_68 = _bindgen_ty_68::__TCA_ROOT_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nlmsgerr_attrs { +NLMSGERR_ATTR_UNUSED = 0, +NLMSGERR_ATTR_MSG = 1, +NLMSGERR_ATTR_OFFS = 2, +NLMSGERR_ATTR_COOKIE = 3, +NLMSGERR_ATTR_POLICY = 4, +NLMSGERR_ATTR_MISS_TYPE = 5, +NLMSGERR_ATTR_MISS_NEST = 6, +__NLMSGERR_ATTR_MAX = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl_mmap_status { +NL_MMAP_STATUS_UNUSED = 0, +NL_MMAP_STATUS_RESERVED = 1, +NL_MMAP_STATUS_VALID = 2, +NL_MMAP_STATUS_COPY = 3, +NL_MMAP_STATUS_SKIP = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +NETLINK_UNCONNECTED = 0, +NETLINK_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_attribute_type { +NL_ATTR_TYPE_INVALID = 0, +NL_ATTR_TYPE_FLAG = 1, +NL_ATTR_TYPE_U8 = 2, +NL_ATTR_TYPE_U16 = 3, +NL_ATTR_TYPE_U32 = 4, +NL_ATTR_TYPE_U64 = 5, +NL_ATTR_TYPE_S8 = 6, +NL_ATTR_TYPE_S16 = 7, +NL_ATTR_TYPE_S32 = 8, +NL_ATTR_TYPE_S64 = 9, +NL_ATTR_TYPE_BINARY = 10, +NL_ATTR_TYPE_STRING = 11, +NL_ATTR_TYPE_NUL_STRING = 12, +NL_ATTR_TYPE_NESTED = 13, +NL_ATTR_TYPE_NESTED_ARRAY = 14, +NL_ATTR_TYPE_BITFIELD32 = 15, +NL_ATTR_TYPE_SINT = 16, +NL_ATTR_TYPE_UINT = 17, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_policy_type_attr { +NL_POLICY_TYPE_ATTR_UNSPEC = 0, +NL_POLICY_TYPE_ATTR_TYPE = 1, +NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, +NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, +NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, +NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, +NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, +NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, +NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, +NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, +NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, +NL_POLICY_TYPE_ATTR_PAD = 11, +NL_POLICY_TYPE_ATTR_MASK = 12, +__NL_POLICY_TYPE_ATTR_MAX = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_commands { +NL80211_CMD_UNSPEC = 0, +NL80211_CMD_GET_WIPHY = 1, +NL80211_CMD_SET_WIPHY = 2, +NL80211_CMD_NEW_WIPHY = 3, +NL80211_CMD_DEL_WIPHY = 4, +NL80211_CMD_GET_INTERFACE = 5, +NL80211_CMD_SET_INTERFACE = 6, +NL80211_CMD_NEW_INTERFACE = 7, +NL80211_CMD_DEL_INTERFACE = 8, +NL80211_CMD_GET_KEY = 9, +NL80211_CMD_SET_KEY = 10, +NL80211_CMD_NEW_KEY = 11, +NL80211_CMD_DEL_KEY = 12, +NL80211_CMD_GET_BEACON = 13, +NL80211_CMD_SET_BEACON = 14, +NL80211_CMD_START_AP = 15, +NL80211_CMD_STOP_AP = 16, +NL80211_CMD_GET_STATION = 17, +NL80211_CMD_SET_STATION = 18, +NL80211_CMD_NEW_STATION = 19, +NL80211_CMD_DEL_STATION = 20, +NL80211_CMD_GET_MPATH = 21, +NL80211_CMD_SET_MPATH = 22, +NL80211_CMD_NEW_MPATH = 23, +NL80211_CMD_DEL_MPATH = 24, +NL80211_CMD_SET_BSS = 25, +NL80211_CMD_SET_REG = 26, +NL80211_CMD_REQ_SET_REG = 27, +NL80211_CMD_GET_MESH_CONFIG = 28, +NL80211_CMD_SET_MESH_CONFIG = 29, +NL80211_CMD_SET_MGMT_EXTRA_IE = 30, +NL80211_CMD_GET_REG = 31, +NL80211_CMD_GET_SCAN = 32, +NL80211_CMD_TRIGGER_SCAN = 33, +NL80211_CMD_NEW_SCAN_RESULTS = 34, +NL80211_CMD_SCAN_ABORTED = 35, +NL80211_CMD_REG_CHANGE = 36, +NL80211_CMD_AUTHENTICATE = 37, +NL80211_CMD_ASSOCIATE = 38, +NL80211_CMD_DEAUTHENTICATE = 39, +NL80211_CMD_DISASSOCIATE = 40, +NL80211_CMD_MICHAEL_MIC_FAILURE = 41, +NL80211_CMD_REG_BEACON_HINT = 42, +NL80211_CMD_JOIN_IBSS = 43, +NL80211_CMD_LEAVE_IBSS = 44, +NL80211_CMD_TESTMODE = 45, +NL80211_CMD_CONNECT = 46, +NL80211_CMD_ROAM = 47, +NL80211_CMD_DISCONNECT = 48, +NL80211_CMD_SET_WIPHY_NETNS = 49, +NL80211_CMD_GET_SURVEY = 50, +NL80211_CMD_NEW_SURVEY_RESULTS = 51, +NL80211_CMD_SET_PMKSA = 52, +NL80211_CMD_DEL_PMKSA = 53, +NL80211_CMD_FLUSH_PMKSA = 54, +NL80211_CMD_REMAIN_ON_CHANNEL = 55, +NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL = 56, +NL80211_CMD_SET_TX_BITRATE_MASK = 57, +NL80211_CMD_REGISTER_FRAME = 58, +NL80211_CMD_FRAME = 59, +NL80211_CMD_FRAME_TX_STATUS = 60, +NL80211_CMD_SET_POWER_SAVE = 61, +NL80211_CMD_GET_POWER_SAVE = 62, +NL80211_CMD_SET_CQM = 63, +NL80211_CMD_NOTIFY_CQM = 64, +NL80211_CMD_SET_CHANNEL = 65, +NL80211_CMD_SET_WDS_PEER = 66, +NL80211_CMD_FRAME_WAIT_CANCEL = 67, +NL80211_CMD_JOIN_MESH = 68, +NL80211_CMD_LEAVE_MESH = 69, +NL80211_CMD_UNPROT_DEAUTHENTICATE = 70, +NL80211_CMD_UNPROT_DISASSOCIATE = 71, +NL80211_CMD_NEW_PEER_CANDIDATE = 72, +NL80211_CMD_GET_WOWLAN = 73, +NL80211_CMD_SET_WOWLAN = 74, +NL80211_CMD_START_SCHED_SCAN = 75, +NL80211_CMD_STOP_SCHED_SCAN = 76, +NL80211_CMD_SCHED_SCAN_RESULTS = 77, +NL80211_CMD_SCHED_SCAN_STOPPED = 78, +NL80211_CMD_SET_REKEY_OFFLOAD = 79, +NL80211_CMD_PMKSA_CANDIDATE = 80, +NL80211_CMD_TDLS_OPER = 81, +NL80211_CMD_TDLS_MGMT = 82, +NL80211_CMD_UNEXPECTED_FRAME = 83, +NL80211_CMD_PROBE_CLIENT = 84, +NL80211_CMD_REGISTER_BEACONS = 85, +NL80211_CMD_UNEXPECTED_4ADDR_FRAME = 86, +NL80211_CMD_SET_NOACK_MAP = 87, +NL80211_CMD_CH_SWITCH_NOTIFY = 88, +NL80211_CMD_START_P2P_DEVICE = 89, +NL80211_CMD_STOP_P2P_DEVICE = 90, +NL80211_CMD_CONN_FAILED = 91, +NL80211_CMD_SET_MCAST_RATE = 92, +NL80211_CMD_SET_MAC_ACL = 93, +NL80211_CMD_RADAR_DETECT = 94, +NL80211_CMD_GET_PROTOCOL_FEATURES = 95, +NL80211_CMD_UPDATE_FT_IES = 96, +NL80211_CMD_FT_EVENT = 97, +NL80211_CMD_CRIT_PROTOCOL_START = 98, +NL80211_CMD_CRIT_PROTOCOL_STOP = 99, +NL80211_CMD_GET_COALESCE = 100, +NL80211_CMD_SET_COALESCE = 101, +NL80211_CMD_CHANNEL_SWITCH = 102, +NL80211_CMD_VENDOR = 103, +NL80211_CMD_SET_QOS_MAP = 104, +NL80211_CMD_ADD_TX_TS = 105, +NL80211_CMD_DEL_TX_TS = 106, +NL80211_CMD_GET_MPP = 107, +NL80211_CMD_JOIN_OCB = 108, +NL80211_CMD_LEAVE_OCB = 109, +NL80211_CMD_CH_SWITCH_STARTED_NOTIFY = 110, +NL80211_CMD_TDLS_CHANNEL_SWITCH = 111, +NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH = 112, +NL80211_CMD_WIPHY_REG_CHANGE = 113, +NL80211_CMD_ABORT_SCAN = 114, +NL80211_CMD_START_NAN = 115, +NL80211_CMD_STOP_NAN = 116, +NL80211_CMD_ADD_NAN_FUNCTION = 117, +NL80211_CMD_DEL_NAN_FUNCTION = 118, +NL80211_CMD_CHANGE_NAN_CONFIG = 119, +NL80211_CMD_NAN_MATCH = 120, +NL80211_CMD_SET_MULTICAST_TO_UNICAST = 121, +NL80211_CMD_UPDATE_CONNECT_PARAMS = 122, +NL80211_CMD_SET_PMK = 123, +NL80211_CMD_DEL_PMK = 124, +NL80211_CMD_PORT_AUTHORIZED = 125, +NL80211_CMD_RELOAD_REGDB = 126, +NL80211_CMD_EXTERNAL_AUTH = 127, +NL80211_CMD_STA_OPMODE_CHANGED = 128, +NL80211_CMD_CONTROL_PORT_FRAME = 129, +NL80211_CMD_GET_FTM_RESPONDER_STATS = 130, +NL80211_CMD_PEER_MEASUREMENT_START = 131, +NL80211_CMD_PEER_MEASUREMENT_RESULT = 132, +NL80211_CMD_PEER_MEASUREMENT_COMPLETE = 133, +NL80211_CMD_NOTIFY_RADAR = 134, +NL80211_CMD_UPDATE_OWE_INFO = 135, +NL80211_CMD_PROBE_MESH_LINK = 136, +NL80211_CMD_SET_TID_CONFIG = 137, +NL80211_CMD_UNPROT_BEACON = 138, +NL80211_CMD_CONTROL_PORT_FRAME_TX_STATUS = 139, +NL80211_CMD_SET_SAR_SPECS = 140, +NL80211_CMD_OBSS_COLOR_COLLISION = 141, +NL80211_CMD_COLOR_CHANGE_REQUEST = 142, +NL80211_CMD_COLOR_CHANGE_STARTED = 143, +NL80211_CMD_COLOR_CHANGE_ABORTED = 144, +NL80211_CMD_COLOR_CHANGE_COMPLETED = 145, +NL80211_CMD_SET_FILS_AAD = 146, +NL80211_CMD_ASSOC_COMEBACK = 147, +NL80211_CMD_ADD_LINK = 148, +NL80211_CMD_REMOVE_LINK = 149, +NL80211_CMD_ADD_LINK_STA = 150, +NL80211_CMD_MODIFY_LINK_STA = 151, +NL80211_CMD_REMOVE_LINK_STA = 152, +NL80211_CMD_SET_HW_TIMESTAMP = 153, +NL80211_CMD_LINKS_REMOVED = 154, +NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, +NL80211_CMD_ASSOC_MLO_RECONF = 156, +NL80211_CMD_EPCS_CFG = 157, +__NL80211_CMD_AFTER_LAST = 158, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_attrs { +NL80211_ATTR_UNSPEC = 0, +NL80211_ATTR_WIPHY = 1, +NL80211_ATTR_WIPHY_NAME = 2, +NL80211_ATTR_IFINDEX = 3, +NL80211_ATTR_IFNAME = 4, +NL80211_ATTR_IFTYPE = 5, +NL80211_ATTR_MAC = 6, +NL80211_ATTR_KEY_DATA = 7, +NL80211_ATTR_KEY_IDX = 8, +NL80211_ATTR_KEY_CIPHER = 9, +NL80211_ATTR_KEY_SEQ = 10, +NL80211_ATTR_KEY_DEFAULT = 11, +NL80211_ATTR_BEACON_INTERVAL = 12, +NL80211_ATTR_DTIM_PERIOD = 13, +NL80211_ATTR_BEACON_HEAD = 14, +NL80211_ATTR_BEACON_TAIL = 15, +NL80211_ATTR_STA_AID = 16, +NL80211_ATTR_STA_FLAGS = 17, +NL80211_ATTR_STA_LISTEN_INTERVAL = 18, +NL80211_ATTR_STA_SUPPORTED_RATES = 19, +NL80211_ATTR_STA_VLAN = 20, +NL80211_ATTR_STA_INFO = 21, +NL80211_ATTR_WIPHY_BANDS = 22, +NL80211_ATTR_MNTR_FLAGS = 23, +NL80211_ATTR_MESH_ID = 24, +NL80211_ATTR_STA_PLINK_ACTION = 25, +NL80211_ATTR_MPATH_NEXT_HOP = 26, +NL80211_ATTR_MPATH_INFO = 27, +NL80211_ATTR_BSS_CTS_PROT = 28, +NL80211_ATTR_BSS_SHORT_PREAMBLE = 29, +NL80211_ATTR_BSS_SHORT_SLOT_TIME = 30, +NL80211_ATTR_HT_CAPABILITY = 31, +NL80211_ATTR_SUPPORTED_IFTYPES = 32, +NL80211_ATTR_REG_ALPHA2 = 33, +NL80211_ATTR_REG_RULES = 34, +NL80211_ATTR_MESH_CONFIG = 35, +NL80211_ATTR_BSS_BASIC_RATES = 36, +NL80211_ATTR_WIPHY_TXQ_PARAMS = 37, +NL80211_ATTR_WIPHY_FREQ = 38, +NL80211_ATTR_WIPHY_CHANNEL_TYPE = 39, +NL80211_ATTR_KEY_DEFAULT_MGMT = 40, +NL80211_ATTR_MGMT_SUBTYPE = 41, +NL80211_ATTR_IE = 42, +NL80211_ATTR_MAX_NUM_SCAN_SSIDS = 43, +NL80211_ATTR_SCAN_FREQUENCIES = 44, +NL80211_ATTR_SCAN_SSIDS = 45, +NL80211_ATTR_GENERATION = 46, +NL80211_ATTR_BSS = 47, +NL80211_ATTR_REG_INITIATOR = 48, +NL80211_ATTR_REG_TYPE = 49, +NL80211_ATTR_SUPPORTED_COMMANDS = 50, +NL80211_ATTR_FRAME = 51, +NL80211_ATTR_SSID = 52, +NL80211_ATTR_AUTH_TYPE = 53, +NL80211_ATTR_REASON_CODE = 54, +NL80211_ATTR_KEY_TYPE = 55, +NL80211_ATTR_MAX_SCAN_IE_LEN = 56, +NL80211_ATTR_CIPHER_SUITES = 57, +NL80211_ATTR_FREQ_BEFORE = 58, +NL80211_ATTR_FREQ_AFTER = 59, +NL80211_ATTR_FREQ_FIXED = 60, +NL80211_ATTR_WIPHY_RETRY_SHORT = 61, +NL80211_ATTR_WIPHY_RETRY_LONG = 62, +NL80211_ATTR_WIPHY_FRAG_THRESHOLD = 63, +NL80211_ATTR_WIPHY_RTS_THRESHOLD = 64, +NL80211_ATTR_TIMED_OUT = 65, +NL80211_ATTR_USE_MFP = 66, +NL80211_ATTR_STA_FLAGS2 = 67, +NL80211_ATTR_CONTROL_PORT = 68, +NL80211_ATTR_TESTDATA = 69, +NL80211_ATTR_PRIVACY = 70, +NL80211_ATTR_DISCONNECTED_BY_AP = 71, +NL80211_ATTR_STATUS_CODE = 72, +NL80211_ATTR_CIPHER_SUITES_PAIRWISE = 73, +NL80211_ATTR_CIPHER_SUITE_GROUP = 74, +NL80211_ATTR_WPA_VERSIONS = 75, +NL80211_ATTR_AKM_SUITES = 76, +NL80211_ATTR_REQ_IE = 77, +NL80211_ATTR_RESP_IE = 78, +NL80211_ATTR_PREV_BSSID = 79, +NL80211_ATTR_KEY = 80, +NL80211_ATTR_KEYS = 81, +NL80211_ATTR_PID = 82, +NL80211_ATTR_4ADDR = 83, +NL80211_ATTR_SURVEY_INFO = 84, +NL80211_ATTR_PMKID = 85, +NL80211_ATTR_MAX_NUM_PMKIDS = 86, +NL80211_ATTR_DURATION = 87, +NL80211_ATTR_COOKIE = 88, +NL80211_ATTR_WIPHY_COVERAGE_CLASS = 89, +NL80211_ATTR_TX_RATES = 90, +NL80211_ATTR_FRAME_MATCH = 91, +NL80211_ATTR_ACK = 92, +NL80211_ATTR_PS_STATE = 93, +NL80211_ATTR_CQM = 94, +NL80211_ATTR_LOCAL_STATE_CHANGE = 95, +NL80211_ATTR_AP_ISOLATE = 96, +NL80211_ATTR_WIPHY_TX_POWER_SETTING = 97, +NL80211_ATTR_WIPHY_TX_POWER_LEVEL = 98, +NL80211_ATTR_TX_FRAME_TYPES = 99, +NL80211_ATTR_RX_FRAME_TYPES = 100, +NL80211_ATTR_FRAME_TYPE = 101, +NL80211_ATTR_CONTROL_PORT_ETHERTYPE = 102, +NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT = 103, +NL80211_ATTR_SUPPORT_IBSS_RSN = 104, +NL80211_ATTR_WIPHY_ANTENNA_TX = 105, +NL80211_ATTR_WIPHY_ANTENNA_RX = 106, +NL80211_ATTR_MCAST_RATE = 107, +NL80211_ATTR_OFFCHANNEL_TX_OK = 108, +NL80211_ATTR_BSS_HT_OPMODE = 109, +NL80211_ATTR_KEY_DEFAULT_TYPES = 110, +NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION = 111, +NL80211_ATTR_MESH_SETUP = 112, +NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX = 113, +NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX = 114, +NL80211_ATTR_SUPPORT_MESH_AUTH = 115, +NL80211_ATTR_STA_PLINK_STATE = 116, +NL80211_ATTR_WOWLAN_TRIGGERS = 117, +NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED = 118, +NL80211_ATTR_SCHED_SCAN_INTERVAL = 119, +NL80211_ATTR_INTERFACE_COMBINATIONS = 120, +NL80211_ATTR_SOFTWARE_IFTYPES = 121, +NL80211_ATTR_REKEY_DATA = 122, +NL80211_ATTR_MAX_NUM_SCHED_SCAN_SSIDS = 123, +NL80211_ATTR_MAX_SCHED_SCAN_IE_LEN = 124, +NL80211_ATTR_SCAN_SUPP_RATES = 125, +NL80211_ATTR_HIDDEN_SSID = 126, +NL80211_ATTR_IE_PROBE_RESP = 127, +NL80211_ATTR_IE_ASSOC_RESP = 128, +NL80211_ATTR_STA_WME = 129, +NL80211_ATTR_SUPPORT_AP_UAPSD = 130, +NL80211_ATTR_ROAM_SUPPORT = 131, +NL80211_ATTR_SCHED_SCAN_MATCH = 132, +NL80211_ATTR_MAX_MATCH_SETS = 133, +NL80211_ATTR_PMKSA_CANDIDATE = 134, +NL80211_ATTR_TX_NO_CCK_RATE = 135, +NL80211_ATTR_TDLS_ACTION = 136, +NL80211_ATTR_TDLS_DIALOG_TOKEN = 137, +NL80211_ATTR_TDLS_OPERATION = 138, +NL80211_ATTR_TDLS_SUPPORT = 139, +NL80211_ATTR_TDLS_EXTERNAL_SETUP = 140, +NL80211_ATTR_DEVICE_AP_SME = 141, +NL80211_ATTR_DONT_WAIT_FOR_ACK = 142, +NL80211_ATTR_FEATURE_FLAGS = 143, +NL80211_ATTR_PROBE_RESP_OFFLOAD = 144, +NL80211_ATTR_PROBE_RESP = 145, +NL80211_ATTR_DFS_REGION = 146, +NL80211_ATTR_DISABLE_HT = 147, +NL80211_ATTR_HT_CAPABILITY_MASK = 148, +NL80211_ATTR_NOACK_MAP = 149, +NL80211_ATTR_INACTIVITY_TIMEOUT = 150, +NL80211_ATTR_RX_SIGNAL_DBM = 151, +NL80211_ATTR_BG_SCAN_PERIOD = 152, +NL80211_ATTR_WDEV = 153, +NL80211_ATTR_USER_REG_HINT_TYPE = 154, +NL80211_ATTR_CONN_FAILED_REASON = 155, +NL80211_ATTR_AUTH_DATA = 156, +NL80211_ATTR_VHT_CAPABILITY = 157, +NL80211_ATTR_SCAN_FLAGS = 158, +NL80211_ATTR_CHANNEL_WIDTH = 159, +NL80211_ATTR_CENTER_FREQ1 = 160, +NL80211_ATTR_CENTER_FREQ2 = 161, +NL80211_ATTR_P2P_CTWINDOW = 162, +NL80211_ATTR_P2P_OPPPS = 163, +NL80211_ATTR_LOCAL_MESH_POWER_MODE = 164, +NL80211_ATTR_ACL_POLICY = 165, +NL80211_ATTR_MAC_ADDRS = 166, +NL80211_ATTR_MAC_ACL_MAX = 167, +NL80211_ATTR_RADAR_EVENT = 168, +NL80211_ATTR_EXT_CAPA = 169, +NL80211_ATTR_EXT_CAPA_MASK = 170, +NL80211_ATTR_STA_CAPABILITY = 171, +NL80211_ATTR_STA_EXT_CAPABILITY = 172, +NL80211_ATTR_PROTOCOL_FEATURES = 173, +NL80211_ATTR_SPLIT_WIPHY_DUMP = 174, +NL80211_ATTR_DISABLE_VHT = 175, +NL80211_ATTR_VHT_CAPABILITY_MASK = 176, +NL80211_ATTR_MDID = 177, +NL80211_ATTR_IE_RIC = 178, +NL80211_ATTR_CRIT_PROT_ID = 179, +NL80211_ATTR_MAX_CRIT_PROT_DURATION = 180, +NL80211_ATTR_PEER_AID = 181, +NL80211_ATTR_COALESCE_RULE = 182, +NL80211_ATTR_CH_SWITCH_COUNT = 183, +NL80211_ATTR_CH_SWITCH_BLOCK_TX = 184, +NL80211_ATTR_CSA_IES = 185, +NL80211_ATTR_CNTDWN_OFFS_BEACON = 186, +NL80211_ATTR_CNTDWN_OFFS_PRESP = 187, +NL80211_ATTR_RXMGMT_FLAGS = 188, +NL80211_ATTR_STA_SUPPORTED_CHANNELS = 189, +NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES = 190, +NL80211_ATTR_HANDLE_DFS = 191, +NL80211_ATTR_SUPPORT_5_MHZ = 192, +NL80211_ATTR_SUPPORT_10_MHZ = 193, +NL80211_ATTR_OPMODE_NOTIF = 194, +NL80211_ATTR_VENDOR_ID = 195, +NL80211_ATTR_VENDOR_SUBCMD = 196, +NL80211_ATTR_VENDOR_DATA = 197, +NL80211_ATTR_VENDOR_EVENTS = 198, +NL80211_ATTR_QOS_MAP = 199, +NL80211_ATTR_MAC_HINT = 200, +NL80211_ATTR_WIPHY_FREQ_HINT = 201, +NL80211_ATTR_MAX_AP_ASSOC_STA = 202, +NL80211_ATTR_TDLS_PEER_CAPABILITY = 203, +NL80211_ATTR_SOCKET_OWNER = 204, +NL80211_ATTR_CSA_C_OFFSETS_TX = 205, +NL80211_ATTR_MAX_CSA_COUNTERS = 206, +NL80211_ATTR_TDLS_INITIATOR = 207, +NL80211_ATTR_USE_RRM = 208, +NL80211_ATTR_WIPHY_DYN_ACK = 209, +NL80211_ATTR_TSID = 210, +NL80211_ATTR_USER_PRIO = 211, +NL80211_ATTR_ADMITTED_TIME = 212, +NL80211_ATTR_SMPS_MODE = 213, +NL80211_ATTR_OPER_CLASS = 214, +NL80211_ATTR_MAC_MASK = 215, +NL80211_ATTR_WIPHY_SELF_MANAGED_REG = 216, +NL80211_ATTR_EXT_FEATURES = 217, +NL80211_ATTR_SURVEY_RADIO_STATS = 218, +NL80211_ATTR_NETNS_FD = 219, +NL80211_ATTR_SCHED_SCAN_DELAY = 220, +NL80211_ATTR_REG_INDOOR = 221, +NL80211_ATTR_MAX_NUM_SCHED_SCAN_PLANS = 222, +NL80211_ATTR_MAX_SCAN_PLAN_INTERVAL = 223, +NL80211_ATTR_MAX_SCAN_PLAN_ITERATIONS = 224, +NL80211_ATTR_SCHED_SCAN_PLANS = 225, +NL80211_ATTR_PBSS = 226, +NL80211_ATTR_BSS_SELECT = 227, +NL80211_ATTR_STA_SUPPORT_P2P_PS = 228, +NL80211_ATTR_PAD = 229, +NL80211_ATTR_IFTYPE_EXT_CAPA = 230, +NL80211_ATTR_MU_MIMO_GROUP_DATA = 231, +NL80211_ATTR_MU_MIMO_FOLLOW_MAC_ADDR = 232, +NL80211_ATTR_SCAN_START_TIME_TSF = 233, +NL80211_ATTR_SCAN_START_TIME_TSF_BSSID = 234, +NL80211_ATTR_MEASUREMENT_DURATION = 235, +NL80211_ATTR_MEASUREMENT_DURATION_MANDATORY = 236, +NL80211_ATTR_MESH_PEER_AID = 237, +NL80211_ATTR_NAN_MASTER_PREF = 238, +NL80211_ATTR_BANDS = 239, +NL80211_ATTR_NAN_FUNC = 240, +NL80211_ATTR_NAN_MATCH = 241, +NL80211_ATTR_FILS_KEK = 242, +NL80211_ATTR_FILS_NONCES = 243, +NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED = 244, +NL80211_ATTR_BSSID = 245, +NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI = 246, +NL80211_ATTR_SCHED_SCAN_RSSI_ADJUST = 247, +NL80211_ATTR_TIMEOUT_REASON = 248, +NL80211_ATTR_FILS_ERP_USERNAME = 249, +NL80211_ATTR_FILS_ERP_REALM = 250, +NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM = 251, +NL80211_ATTR_FILS_ERP_RRK = 252, +NL80211_ATTR_FILS_CACHE_ID = 253, +NL80211_ATTR_PMK = 254, +NL80211_ATTR_SCHED_SCAN_MULTI = 255, +NL80211_ATTR_SCHED_SCAN_MAX_REQS = 256, +NL80211_ATTR_WANT_1X_4WAY_HS = 257, +NL80211_ATTR_PMKR0_NAME = 258, +NL80211_ATTR_PORT_AUTHORIZED = 259, +NL80211_ATTR_EXTERNAL_AUTH_ACTION = 260, +NL80211_ATTR_EXTERNAL_AUTH_SUPPORT = 261, +NL80211_ATTR_NSS = 262, +NL80211_ATTR_ACK_SIGNAL = 263, +NL80211_ATTR_CONTROL_PORT_OVER_NL80211 = 264, +NL80211_ATTR_TXQ_STATS = 265, +NL80211_ATTR_TXQ_LIMIT = 266, +NL80211_ATTR_TXQ_MEMORY_LIMIT = 267, +NL80211_ATTR_TXQ_QUANTUM = 268, +NL80211_ATTR_HE_CAPABILITY = 269, +NL80211_ATTR_FTM_RESPONDER = 270, +NL80211_ATTR_FTM_RESPONDER_STATS = 271, +NL80211_ATTR_TIMEOUT = 272, +NL80211_ATTR_PEER_MEASUREMENTS = 273, +NL80211_ATTR_AIRTIME_WEIGHT = 274, +NL80211_ATTR_STA_TX_POWER_SETTING = 275, +NL80211_ATTR_STA_TX_POWER = 276, +NL80211_ATTR_SAE_PASSWORD = 277, +NL80211_ATTR_TWT_RESPONDER = 278, +NL80211_ATTR_HE_OBSS_PD = 279, +NL80211_ATTR_WIPHY_EDMG_CHANNELS = 280, +NL80211_ATTR_WIPHY_EDMG_BW_CONFIG = 281, +NL80211_ATTR_VLAN_ID = 282, +NL80211_ATTR_HE_BSS_COLOR = 283, +NL80211_ATTR_IFTYPE_AKM_SUITES = 284, +NL80211_ATTR_TID_CONFIG = 285, +NL80211_ATTR_CONTROL_PORT_NO_PREAUTH = 286, +NL80211_ATTR_PMK_LIFETIME = 287, +NL80211_ATTR_PMK_REAUTH_THRESHOLD = 288, +NL80211_ATTR_RECEIVE_MULTICAST = 289, +NL80211_ATTR_WIPHY_FREQ_OFFSET = 290, +NL80211_ATTR_CENTER_FREQ1_OFFSET = 291, +NL80211_ATTR_SCAN_FREQ_KHZ = 292, +NL80211_ATTR_HE_6GHZ_CAPABILITY = 293, +NL80211_ATTR_FILS_DISCOVERY = 294, +NL80211_ATTR_UNSOL_BCAST_PROBE_RESP = 295, +NL80211_ATTR_S1G_CAPABILITY = 296, +NL80211_ATTR_S1G_CAPABILITY_MASK = 297, +NL80211_ATTR_SAE_PWE = 298, +NL80211_ATTR_RECONNECT_REQUESTED = 299, +NL80211_ATTR_SAR_SPEC = 300, +NL80211_ATTR_DISABLE_HE = 301, +NL80211_ATTR_OBSS_COLOR_BITMAP = 302, +NL80211_ATTR_COLOR_CHANGE_COUNT = 303, +NL80211_ATTR_COLOR_CHANGE_COLOR = 304, +NL80211_ATTR_COLOR_CHANGE_ELEMS = 305, +NL80211_ATTR_MBSSID_CONFIG = 306, +NL80211_ATTR_MBSSID_ELEMS = 307, +NL80211_ATTR_RADAR_BACKGROUND = 308, +NL80211_ATTR_AP_SETTINGS_FLAGS = 309, +NL80211_ATTR_EHT_CAPABILITY = 310, +NL80211_ATTR_DISABLE_EHT = 311, +NL80211_ATTR_MLO_LINKS = 312, +NL80211_ATTR_MLO_LINK_ID = 313, +NL80211_ATTR_MLD_ADDR = 314, +NL80211_ATTR_MLO_SUPPORT = 315, +NL80211_ATTR_MAX_NUM_AKM_SUITES = 316, +NL80211_ATTR_EML_CAPABILITY = 317, +NL80211_ATTR_MLD_CAPA_AND_OPS = 318, +NL80211_ATTR_TX_HW_TIMESTAMP = 319, +NL80211_ATTR_RX_HW_TIMESTAMP = 320, +NL80211_ATTR_TD_BITMAP = 321, +NL80211_ATTR_PUNCT_BITMAP = 322, +NL80211_ATTR_MAX_HW_TIMESTAMP_PEERS = 323, +NL80211_ATTR_HW_TIMESTAMP_ENABLED = 324, +NL80211_ATTR_EMA_RNR_ELEMS = 325, +NL80211_ATTR_MLO_LINK_DISABLED = 326, +NL80211_ATTR_BSS_DUMP_INCLUDE_USE_DATA = 327, +NL80211_ATTR_MLO_TTLM_DLINK = 328, +NL80211_ATTR_MLO_TTLM_ULINK = 329, +NL80211_ATTR_ASSOC_SPP_AMSDU = 330, +NL80211_ATTR_WIPHY_RADIOS = 331, +NL80211_ATTR_WIPHY_INTERFACE_COMBINATIONS = 332, +NL80211_ATTR_VIF_RADIO_MASK = 333, +NL80211_ATTR_SUPPORTED_SELECTORS = 334, +NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, +NL80211_ATTR_EPCS = 336, +NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +__NL80211_ATTR_AFTER_LAST = 338, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_iftype { +NL80211_IFTYPE_UNSPECIFIED = 0, +NL80211_IFTYPE_ADHOC = 1, +NL80211_IFTYPE_STATION = 2, +NL80211_IFTYPE_AP = 3, +NL80211_IFTYPE_AP_VLAN = 4, +NL80211_IFTYPE_WDS = 5, +NL80211_IFTYPE_MONITOR = 6, +NL80211_IFTYPE_MESH_POINT = 7, +NL80211_IFTYPE_P2P_CLIENT = 8, +NL80211_IFTYPE_P2P_GO = 9, +NL80211_IFTYPE_P2P_DEVICE = 10, +NL80211_IFTYPE_OCB = 11, +NL80211_IFTYPE_NAN = 12, +NUM_NL80211_IFTYPES = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_flags { +__NL80211_STA_FLAG_INVALID = 0, +NL80211_STA_FLAG_AUTHORIZED = 1, +NL80211_STA_FLAG_SHORT_PREAMBLE = 2, +NL80211_STA_FLAG_WME = 3, +NL80211_STA_FLAG_MFP = 4, +NL80211_STA_FLAG_AUTHENTICATED = 5, +NL80211_STA_FLAG_TDLS_PEER = 6, +NL80211_STA_FLAG_ASSOCIATED = 7, +NL80211_STA_FLAG_SPP_AMSDU = 8, +__NL80211_STA_FLAG_AFTER_LAST = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_p2p_ps_status { +NL80211_P2P_PS_UNSUPPORTED = 0, +NL80211_P2P_PS_SUPPORTED = 1, +NUM_NL80211_P2P_PS_STATUS = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_he_gi { +NL80211_RATE_INFO_HE_GI_0_8 = 0, +NL80211_RATE_INFO_HE_GI_1_6 = 1, +NL80211_RATE_INFO_HE_GI_3_2 = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_he_ltf { +NL80211_RATE_INFO_HE_1XLTF = 0, +NL80211_RATE_INFO_HE_2XLTF = 1, +NL80211_RATE_INFO_HE_4XLTF = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_he_ru_alloc { +NL80211_RATE_INFO_HE_RU_ALLOC_26 = 0, +NL80211_RATE_INFO_HE_RU_ALLOC_52 = 1, +NL80211_RATE_INFO_HE_RU_ALLOC_106 = 2, +NL80211_RATE_INFO_HE_RU_ALLOC_242 = 3, +NL80211_RATE_INFO_HE_RU_ALLOC_484 = 4, +NL80211_RATE_INFO_HE_RU_ALLOC_996 = 5, +NL80211_RATE_INFO_HE_RU_ALLOC_2x996 = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_gi { +NL80211_RATE_INFO_EHT_GI_0_8 = 0, +NL80211_RATE_INFO_EHT_GI_1_6 = 1, +NL80211_RATE_INFO_EHT_GI_3_2 = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ru_alloc { +NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, +NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, +NL80211_RATE_INFO_EHT_RU_ALLOC_52P26 = 2, +NL80211_RATE_INFO_EHT_RU_ALLOC_106 = 3, +NL80211_RATE_INFO_EHT_RU_ALLOC_106P26 = 4, +NL80211_RATE_INFO_EHT_RU_ALLOC_242 = 5, +NL80211_RATE_INFO_EHT_RU_ALLOC_484 = 6, +NL80211_RATE_INFO_EHT_RU_ALLOC_484P242 = 7, +NL80211_RATE_INFO_EHT_RU_ALLOC_996 = 8, +NL80211_RATE_INFO_EHT_RU_ALLOC_996P484 = 9, +NL80211_RATE_INFO_EHT_RU_ALLOC_996P484P242 = 10, +NL80211_RATE_INFO_EHT_RU_ALLOC_2x996 = 11, +NL80211_RATE_INFO_EHT_RU_ALLOC_2x996P484 = 12, +NL80211_RATE_INFO_EHT_RU_ALLOC_3x996 = 13, +NL80211_RATE_INFO_EHT_RU_ALLOC_3x996P484 = 14, +NL80211_RATE_INFO_EHT_RU_ALLOC_4x996 = 15, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_rate_info { +__NL80211_RATE_INFO_INVALID = 0, +NL80211_RATE_INFO_BITRATE = 1, +NL80211_RATE_INFO_MCS = 2, +NL80211_RATE_INFO_40_MHZ_WIDTH = 3, +NL80211_RATE_INFO_SHORT_GI = 4, +NL80211_RATE_INFO_BITRATE32 = 5, +NL80211_RATE_INFO_VHT_MCS = 6, +NL80211_RATE_INFO_VHT_NSS = 7, +NL80211_RATE_INFO_80_MHZ_WIDTH = 8, +NL80211_RATE_INFO_80P80_MHZ_WIDTH = 9, +NL80211_RATE_INFO_160_MHZ_WIDTH = 10, +NL80211_RATE_INFO_10_MHZ_WIDTH = 11, +NL80211_RATE_INFO_5_MHZ_WIDTH = 12, +NL80211_RATE_INFO_HE_MCS = 13, +NL80211_RATE_INFO_HE_NSS = 14, +NL80211_RATE_INFO_HE_GI = 15, +NL80211_RATE_INFO_HE_DCM = 16, +NL80211_RATE_INFO_HE_RU_ALLOC = 17, +NL80211_RATE_INFO_320_MHZ_WIDTH = 18, +NL80211_RATE_INFO_EHT_MCS = 19, +NL80211_RATE_INFO_EHT_NSS = 20, +NL80211_RATE_INFO_EHT_GI = 21, +NL80211_RATE_INFO_EHT_RU_ALLOC = 22, +NL80211_RATE_INFO_S1G_MCS = 23, +NL80211_RATE_INFO_S1G_NSS = 24, +NL80211_RATE_INFO_1_MHZ_WIDTH = 25, +NL80211_RATE_INFO_2_MHZ_WIDTH = 26, +NL80211_RATE_INFO_4_MHZ_WIDTH = 27, +NL80211_RATE_INFO_8_MHZ_WIDTH = 28, +NL80211_RATE_INFO_16_MHZ_WIDTH = 29, +__NL80211_RATE_INFO_AFTER_LAST = 30, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_bss_param { +__NL80211_STA_BSS_PARAM_INVALID = 0, +NL80211_STA_BSS_PARAM_CTS_PROT = 1, +NL80211_STA_BSS_PARAM_SHORT_PREAMBLE = 2, +NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME = 3, +NL80211_STA_BSS_PARAM_DTIM_PERIOD = 4, +NL80211_STA_BSS_PARAM_BEACON_INTERVAL = 5, +__NL80211_STA_BSS_PARAM_AFTER_LAST = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_info { +__NL80211_STA_INFO_INVALID = 0, +NL80211_STA_INFO_INACTIVE_TIME = 1, +NL80211_STA_INFO_RX_BYTES = 2, +NL80211_STA_INFO_TX_BYTES = 3, +NL80211_STA_INFO_LLID = 4, +NL80211_STA_INFO_PLID = 5, +NL80211_STA_INFO_PLINK_STATE = 6, +NL80211_STA_INFO_SIGNAL = 7, +NL80211_STA_INFO_TX_BITRATE = 8, +NL80211_STA_INFO_RX_PACKETS = 9, +NL80211_STA_INFO_TX_PACKETS = 10, +NL80211_STA_INFO_TX_RETRIES = 11, +NL80211_STA_INFO_TX_FAILED = 12, +NL80211_STA_INFO_SIGNAL_AVG = 13, +NL80211_STA_INFO_RX_BITRATE = 14, +NL80211_STA_INFO_BSS_PARAM = 15, +NL80211_STA_INFO_CONNECTED_TIME = 16, +NL80211_STA_INFO_STA_FLAGS = 17, +NL80211_STA_INFO_BEACON_LOSS = 18, +NL80211_STA_INFO_T_OFFSET = 19, +NL80211_STA_INFO_LOCAL_PM = 20, +NL80211_STA_INFO_PEER_PM = 21, +NL80211_STA_INFO_NONPEER_PM = 22, +NL80211_STA_INFO_RX_BYTES64 = 23, +NL80211_STA_INFO_TX_BYTES64 = 24, +NL80211_STA_INFO_CHAIN_SIGNAL = 25, +NL80211_STA_INFO_CHAIN_SIGNAL_AVG = 26, +NL80211_STA_INFO_EXPECTED_THROUGHPUT = 27, +NL80211_STA_INFO_RX_DROP_MISC = 28, +NL80211_STA_INFO_BEACON_RX = 29, +NL80211_STA_INFO_BEACON_SIGNAL_AVG = 30, +NL80211_STA_INFO_TID_STATS = 31, +NL80211_STA_INFO_RX_DURATION = 32, +NL80211_STA_INFO_PAD = 33, +NL80211_STA_INFO_ACK_SIGNAL = 34, +NL80211_STA_INFO_ACK_SIGNAL_AVG = 35, +NL80211_STA_INFO_RX_MPDUS = 36, +NL80211_STA_INFO_FCS_ERROR_COUNT = 37, +NL80211_STA_INFO_CONNECTED_TO_GATE = 38, +NL80211_STA_INFO_TX_DURATION = 39, +NL80211_STA_INFO_AIRTIME_WEIGHT = 40, +NL80211_STA_INFO_AIRTIME_LINK_METRIC = 41, +NL80211_STA_INFO_ASSOC_AT_BOOTTIME = 42, +NL80211_STA_INFO_CONNECTED_TO_AS = 43, +__NL80211_STA_INFO_AFTER_LAST = 44, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tid_stats { +__NL80211_TID_STATS_INVALID = 0, +NL80211_TID_STATS_RX_MSDU = 1, +NL80211_TID_STATS_TX_MSDU = 2, +NL80211_TID_STATS_TX_MSDU_RETRIES = 3, +NL80211_TID_STATS_TX_MSDU_FAILED = 4, +NL80211_TID_STATS_PAD = 5, +NL80211_TID_STATS_TXQ_STATS = 6, +NUM_NL80211_TID_STATS = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_txq_stats { +__NL80211_TXQ_STATS_INVALID = 0, +NL80211_TXQ_STATS_BACKLOG_BYTES = 1, +NL80211_TXQ_STATS_BACKLOG_PACKETS = 2, +NL80211_TXQ_STATS_FLOWS = 3, +NL80211_TXQ_STATS_DROPS = 4, +NL80211_TXQ_STATS_ECN_MARKS = 5, +NL80211_TXQ_STATS_OVERLIMIT = 6, +NL80211_TXQ_STATS_OVERMEMORY = 7, +NL80211_TXQ_STATS_COLLISIONS = 8, +NL80211_TXQ_STATS_TX_BYTES = 9, +NL80211_TXQ_STATS_TX_PACKETS = 10, +NL80211_TXQ_STATS_MAX_FLOWS = 11, +NUM_NL80211_TXQ_STATS = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mpath_flags { +NL80211_MPATH_FLAG_ACTIVE = 1, +NL80211_MPATH_FLAG_RESOLVING = 2, +NL80211_MPATH_FLAG_SN_VALID = 4, +NL80211_MPATH_FLAG_FIXED = 8, +NL80211_MPATH_FLAG_RESOLVED = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mpath_info { +__NL80211_MPATH_INFO_INVALID = 0, +NL80211_MPATH_INFO_FRAME_QLEN = 1, +NL80211_MPATH_INFO_SN = 2, +NL80211_MPATH_INFO_METRIC = 3, +NL80211_MPATH_INFO_EXPTIME = 4, +NL80211_MPATH_INFO_FLAGS = 5, +NL80211_MPATH_INFO_DISCOVERY_TIMEOUT = 6, +NL80211_MPATH_INFO_DISCOVERY_RETRIES = 7, +NL80211_MPATH_INFO_HOP_COUNT = 8, +NL80211_MPATH_INFO_PATH_CHANGE = 9, +__NL80211_MPATH_INFO_AFTER_LAST = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_band_iftype_attr { +__NL80211_BAND_IFTYPE_ATTR_INVALID = 0, +NL80211_BAND_IFTYPE_ATTR_IFTYPES = 1, +NL80211_BAND_IFTYPE_ATTR_HE_CAP_MAC = 2, +NL80211_BAND_IFTYPE_ATTR_HE_CAP_PHY = 3, +NL80211_BAND_IFTYPE_ATTR_HE_CAP_MCS_SET = 4, +NL80211_BAND_IFTYPE_ATTR_HE_CAP_PPE = 5, +NL80211_BAND_IFTYPE_ATTR_HE_6GHZ_CAPA = 6, +NL80211_BAND_IFTYPE_ATTR_VENDOR_ELEMS = 7, +NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, +NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, +NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, +NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_band_attr { +__NL80211_BAND_ATTR_INVALID = 0, +NL80211_BAND_ATTR_FREQS = 1, +NL80211_BAND_ATTR_RATES = 2, +NL80211_BAND_ATTR_HT_MCS_SET = 3, +NL80211_BAND_ATTR_HT_CAPA = 4, +NL80211_BAND_ATTR_HT_AMPDU_FACTOR = 5, +NL80211_BAND_ATTR_HT_AMPDU_DENSITY = 6, +NL80211_BAND_ATTR_VHT_MCS_SET = 7, +NL80211_BAND_ATTR_VHT_CAPA = 8, +NL80211_BAND_ATTR_IFTYPE_DATA = 9, +NL80211_BAND_ATTR_EDMG_CHANNELS = 10, +NL80211_BAND_ATTR_EDMG_BW_CONFIG = 11, +NL80211_BAND_ATTR_S1G_MCS_NSS_SET = 12, +NL80211_BAND_ATTR_S1G_CAPA = 13, +__NL80211_BAND_ATTR_AFTER_LAST = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wmm_rule { +__NL80211_WMMR_INVALID = 0, +NL80211_WMMR_CW_MIN = 1, +NL80211_WMMR_CW_MAX = 2, +NL80211_WMMR_AIFSN = 3, +NL80211_WMMR_TXOP = 4, +__NL80211_WMMR_LAST = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_frequency_attr { +__NL80211_FREQUENCY_ATTR_INVALID = 0, +NL80211_FREQUENCY_ATTR_FREQ = 1, +NL80211_FREQUENCY_ATTR_DISABLED = 2, +NL80211_FREQUENCY_ATTR_NO_IR = 3, +__NL80211_FREQUENCY_ATTR_NO_IBSS = 4, +NL80211_FREQUENCY_ATTR_RADAR = 5, +NL80211_FREQUENCY_ATTR_MAX_TX_POWER = 6, +NL80211_FREQUENCY_ATTR_DFS_STATE = 7, +NL80211_FREQUENCY_ATTR_DFS_TIME = 8, +NL80211_FREQUENCY_ATTR_NO_HT40_MINUS = 9, +NL80211_FREQUENCY_ATTR_NO_HT40_PLUS = 10, +NL80211_FREQUENCY_ATTR_NO_80MHZ = 11, +NL80211_FREQUENCY_ATTR_NO_160MHZ = 12, +NL80211_FREQUENCY_ATTR_DFS_CAC_TIME = 13, +NL80211_FREQUENCY_ATTR_INDOOR_ONLY = 14, +NL80211_FREQUENCY_ATTR_IR_CONCURRENT = 15, +NL80211_FREQUENCY_ATTR_NO_20MHZ = 16, +NL80211_FREQUENCY_ATTR_NO_10MHZ = 17, +NL80211_FREQUENCY_ATTR_WMM = 18, +NL80211_FREQUENCY_ATTR_NO_HE = 19, +NL80211_FREQUENCY_ATTR_OFFSET = 20, +NL80211_FREQUENCY_ATTR_1MHZ = 21, +NL80211_FREQUENCY_ATTR_2MHZ = 22, +NL80211_FREQUENCY_ATTR_4MHZ = 23, +NL80211_FREQUENCY_ATTR_8MHZ = 24, +NL80211_FREQUENCY_ATTR_16MHZ = 25, +NL80211_FREQUENCY_ATTR_NO_320MHZ = 26, +NL80211_FREQUENCY_ATTR_NO_EHT = 27, +NL80211_FREQUENCY_ATTR_PSD = 28, +NL80211_FREQUENCY_ATTR_DFS_CONCURRENT = 29, +NL80211_FREQUENCY_ATTR_NO_6GHZ_VLP_CLIENT = 30, +NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, +NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, +NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, +NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bitrate_attr { +__NL80211_BITRATE_ATTR_INVALID = 0, +NL80211_BITRATE_ATTR_RATE = 1, +NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE = 2, +__NL80211_BITRATE_ATTR_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_reg_initiator { +NL80211_REGDOM_SET_BY_CORE = 0, +NL80211_REGDOM_SET_BY_USER = 1, +NL80211_REGDOM_SET_BY_DRIVER = 2, +NL80211_REGDOM_SET_BY_COUNTRY_IE = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_reg_type { +NL80211_REGDOM_TYPE_COUNTRY = 0, +NL80211_REGDOM_TYPE_WORLD = 1, +NL80211_REGDOM_TYPE_CUSTOM_WORLD = 2, +NL80211_REGDOM_TYPE_INTERSECTION = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_reg_rule_attr { +__NL80211_REG_RULE_ATTR_INVALID = 0, +NL80211_ATTR_REG_RULE_FLAGS = 1, +NL80211_ATTR_FREQ_RANGE_START = 2, +NL80211_ATTR_FREQ_RANGE_END = 3, +NL80211_ATTR_FREQ_RANGE_MAX_BW = 4, +NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN = 5, +NL80211_ATTR_POWER_RULE_MAX_EIRP = 6, +NL80211_ATTR_DFS_CAC_TIME = 7, +NL80211_ATTR_POWER_RULE_PSD = 8, +__NL80211_REG_RULE_ATTR_AFTER_LAST = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sched_scan_match_attr { +__NL80211_SCHED_SCAN_MATCH_ATTR_INVALID = 0, +NL80211_SCHED_SCAN_MATCH_ATTR_SSID = 1, +NL80211_SCHED_SCAN_MATCH_ATTR_RSSI = 2, +NL80211_SCHED_SCAN_MATCH_ATTR_RELATIVE_RSSI = 3, +NL80211_SCHED_SCAN_MATCH_ATTR_RSSI_ADJUST = 4, +NL80211_SCHED_SCAN_MATCH_ATTR_BSSID = 5, +NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI = 6, +__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_reg_rule_flags { +NL80211_RRF_NO_OFDM = 1, +NL80211_RRF_NO_CCK = 2, +NL80211_RRF_NO_INDOOR = 4, +NL80211_RRF_NO_OUTDOOR = 8, +NL80211_RRF_DFS = 16, +NL80211_RRF_PTP_ONLY = 32, +NL80211_RRF_PTMP_ONLY = 64, +NL80211_RRF_NO_IR = 128, +__NL80211_RRF_NO_IBSS = 256, +NL80211_RRF_AUTO_BW = 2048, +NL80211_RRF_IR_CONCURRENT = 4096, +NL80211_RRF_NO_HT40MINUS = 8192, +NL80211_RRF_NO_HT40PLUS = 16384, +NL80211_RRF_NO_80MHZ = 32768, +NL80211_RRF_NO_160MHZ = 65536, +NL80211_RRF_NO_HE = 131072, +NL80211_RRF_NO_320MHZ = 262144, +NL80211_RRF_NO_EHT = 524288, +NL80211_RRF_PSD = 1048576, +NL80211_RRF_DFS_CONCURRENT = 2097152, +NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, +NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, +NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, +NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_dfs_regions { +NL80211_DFS_UNSET = 0, +NL80211_DFS_FCC = 1, +NL80211_DFS_ETSI = 2, +NL80211_DFS_JP = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_user_reg_hint_type { +NL80211_USER_REG_HINT_USER = 0, +NL80211_USER_REG_HINT_CELL_BASE = 1, +NL80211_USER_REG_HINT_INDOOR = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_survey_info { +__NL80211_SURVEY_INFO_INVALID = 0, +NL80211_SURVEY_INFO_FREQUENCY = 1, +NL80211_SURVEY_INFO_NOISE = 2, +NL80211_SURVEY_INFO_IN_USE = 3, +NL80211_SURVEY_INFO_TIME = 4, +NL80211_SURVEY_INFO_TIME_BUSY = 5, +NL80211_SURVEY_INFO_TIME_EXT_BUSY = 6, +NL80211_SURVEY_INFO_TIME_RX = 7, +NL80211_SURVEY_INFO_TIME_TX = 8, +NL80211_SURVEY_INFO_TIME_SCAN = 9, +NL80211_SURVEY_INFO_PAD = 10, +NL80211_SURVEY_INFO_TIME_BSS_RX = 11, +NL80211_SURVEY_INFO_FREQUENCY_OFFSET = 12, +__NL80211_SURVEY_INFO_AFTER_LAST = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mntr_flags { +__NL80211_MNTR_FLAG_INVALID = 0, +NL80211_MNTR_FLAG_FCSFAIL = 1, +NL80211_MNTR_FLAG_PLCPFAIL = 2, +NL80211_MNTR_FLAG_CONTROL = 3, +NL80211_MNTR_FLAG_OTHER_BSS = 4, +NL80211_MNTR_FLAG_COOK_FRAMES = 5, +NL80211_MNTR_FLAG_ACTIVE = 6, +NL80211_MNTR_FLAG_SKIP_TX = 7, +__NL80211_MNTR_FLAG_AFTER_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mesh_power_mode { +NL80211_MESH_POWER_UNKNOWN = 0, +NL80211_MESH_POWER_ACTIVE = 1, +NL80211_MESH_POWER_LIGHT_SLEEP = 2, +NL80211_MESH_POWER_DEEP_SLEEP = 3, +__NL80211_MESH_POWER_AFTER_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_meshconf_params { +__NL80211_MESHCONF_INVALID = 0, +NL80211_MESHCONF_RETRY_TIMEOUT = 1, +NL80211_MESHCONF_CONFIRM_TIMEOUT = 2, +NL80211_MESHCONF_HOLDING_TIMEOUT = 3, +NL80211_MESHCONF_MAX_PEER_LINKS = 4, +NL80211_MESHCONF_MAX_RETRIES = 5, +NL80211_MESHCONF_TTL = 6, +NL80211_MESHCONF_AUTO_OPEN_PLINKS = 7, +NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES = 8, +NL80211_MESHCONF_PATH_REFRESH_TIME = 9, +NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT = 10, +NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT = 11, +NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL = 12, +NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME = 13, +NL80211_MESHCONF_HWMP_ROOTMODE = 14, +NL80211_MESHCONF_ELEMENT_TTL = 15, +NL80211_MESHCONF_HWMP_RANN_INTERVAL = 16, +NL80211_MESHCONF_GATE_ANNOUNCEMENTS = 17, +NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL = 18, +NL80211_MESHCONF_FORWARDING = 19, +NL80211_MESHCONF_RSSI_THRESHOLD = 20, +NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR = 21, +NL80211_MESHCONF_HT_OPMODE = 22, +NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT = 23, +NL80211_MESHCONF_HWMP_ROOT_INTERVAL = 24, +NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL = 25, +NL80211_MESHCONF_POWER_MODE = 26, +NL80211_MESHCONF_AWAKE_WINDOW = 27, +NL80211_MESHCONF_PLINK_TIMEOUT = 28, +NL80211_MESHCONF_CONNECTED_TO_GATE = 29, +NL80211_MESHCONF_NOLEARN = 30, +NL80211_MESHCONF_CONNECTED_TO_AS = 31, +__NL80211_MESHCONF_ATTR_AFTER_LAST = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mesh_setup_params { +__NL80211_MESH_SETUP_INVALID = 0, +NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL = 1, +NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC = 2, +NL80211_MESH_SETUP_IE = 3, +NL80211_MESH_SETUP_USERSPACE_AUTH = 4, +NL80211_MESH_SETUP_USERSPACE_AMPE = 5, +NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC = 6, +NL80211_MESH_SETUP_USERSPACE_MPM = 7, +NL80211_MESH_SETUP_AUTH_PROTOCOL = 8, +__NL80211_MESH_SETUP_ATTR_AFTER_LAST = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_txq_attr { +__NL80211_TXQ_ATTR_INVALID = 0, +NL80211_TXQ_ATTR_AC = 1, +NL80211_TXQ_ATTR_TXOP = 2, +NL80211_TXQ_ATTR_CWMIN = 3, +NL80211_TXQ_ATTR_CWMAX = 4, +NL80211_TXQ_ATTR_AIFS = 5, +__NL80211_TXQ_ATTR_AFTER_LAST = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ac { +NL80211_AC_VO = 0, +NL80211_AC_VI = 1, +NL80211_AC_BE = 2, +NL80211_AC_BK = 3, +NL80211_NUM_ACS = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_channel_type { +NL80211_CHAN_NO_HT = 0, +NL80211_CHAN_HT20 = 1, +NL80211_CHAN_HT40MINUS = 2, +NL80211_CHAN_HT40PLUS = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_key_mode { +NL80211_KEY_RX_TX = 0, +NL80211_KEY_NO_TX = 1, +NL80211_KEY_SET_TX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_chan_width { +NL80211_CHAN_WIDTH_20_NOHT = 0, +NL80211_CHAN_WIDTH_20 = 1, +NL80211_CHAN_WIDTH_40 = 2, +NL80211_CHAN_WIDTH_80 = 3, +NL80211_CHAN_WIDTH_80P80 = 4, +NL80211_CHAN_WIDTH_160 = 5, +NL80211_CHAN_WIDTH_5 = 6, +NL80211_CHAN_WIDTH_10 = 7, +NL80211_CHAN_WIDTH_1 = 8, +NL80211_CHAN_WIDTH_2 = 9, +NL80211_CHAN_WIDTH_4 = 10, +NL80211_CHAN_WIDTH_8 = 11, +NL80211_CHAN_WIDTH_16 = 12, +NL80211_CHAN_WIDTH_320 = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_scan_width { +NL80211_BSS_CHAN_WIDTH_20 = 0, +NL80211_BSS_CHAN_WIDTH_10 = 1, +NL80211_BSS_CHAN_WIDTH_5 = 2, +NL80211_BSS_CHAN_WIDTH_1 = 3, +NL80211_BSS_CHAN_WIDTH_2 = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_use_for { +NL80211_BSS_USE_FOR_NORMAL = 1, +NL80211_BSS_USE_FOR_MLD_LINK = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_cannot_use_reasons { +NL80211_BSS_CANNOT_USE_NSTR_NONPRIMARY = 1, +NL80211_BSS_CANNOT_USE_6GHZ_PWR_MISMATCH = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss { +__NL80211_BSS_INVALID = 0, +NL80211_BSS_BSSID = 1, +NL80211_BSS_FREQUENCY = 2, +NL80211_BSS_TSF = 3, +NL80211_BSS_BEACON_INTERVAL = 4, +NL80211_BSS_CAPABILITY = 5, +NL80211_BSS_INFORMATION_ELEMENTS = 6, +NL80211_BSS_SIGNAL_MBM = 7, +NL80211_BSS_SIGNAL_UNSPEC = 8, +NL80211_BSS_STATUS = 9, +NL80211_BSS_SEEN_MS_AGO = 10, +NL80211_BSS_BEACON_IES = 11, +NL80211_BSS_CHAN_WIDTH = 12, +NL80211_BSS_BEACON_TSF = 13, +NL80211_BSS_PRESP_DATA = 14, +NL80211_BSS_LAST_SEEN_BOOTTIME = 15, +NL80211_BSS_PAD = 16, +NL80211_BSS_PARENT_TSF = 17, +NL80211_BSS_PARENT_BSSID = 18, +NL80211_BSS_CHAIN_SIGNAL = 19, +NL80211_BSS_FREQUENCY_OFFSET = 20, +NL80211_BSS_MLO_LINK_ID = 21, +NL80211_BSS_MLD_ADDR = 22, +NL80211_BSS_USE_FOR = 23, +NL80211_BSS_CANNOT_USE_REASONS = 24, +__NL80211_BSS_AFTER_LAST = 25, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_status { +NL80211_BSS_STATUS_AUTHENTICATED = 0, +NL80211_BSS_STATUS_ASSOCIATED = 1, +NL80211_BSS_STATUS_IBSS_JOINED = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_auth_type { +NL80211_AUTHTYPE_OPEN_SYSTEM = 0, +NL80211_AUTHTYPE_SHARED_KEY = 1, +NL80211_AUTHTYPE_FT = 2, +NL80211_AUTHTYPE_NETWORK_EAP = 3, +NL80211_AUTHTYPE_SAE = 4, +NL80211_AUTHTYPE_FILS_SK = 5, +NL80211_AUTHTYPE_FILS_SK_PFS = 6, +NL80211_AUTHTYPE_FILS_PK = 7, +__NL80211_AUTHTYPE_NUM = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_key_type { +NL80211_KEYTYPE_GROUP = 0, +NL80211_KEYTYPE_PAIRWISE = 1, +NL80211_KEYTYPE_PEERKEY = 2, +NUM_NL80211_KEYTYPES = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mfp { +NL80211_MFP_NO = 0, +NL80211_MFP_REQUIRED = 1, +NL80211_MFP_OPTIONAL = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wpa_versions { +NL80211_WPA_VERSION_1 = 1, +NL80211_WPA_VERSION_2 = 2, +NL80211_WPA_VERSION_3 = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_key_default_types { +__NL80211_KEY_DEFAULT_TYPE_INVALID = 0, +NL80211_KEY_DEFAULT_TYPE_UNICAST = 1, +NL80211_KEY_DEFAULT_TYPE_MULTICAST = 2, +NUM_NL80211_KEY_DEFAULT_TYPES = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_key_attributes { +__NL80211_KEY_INVALID = 0, +NL80211_KEY_DATA = 1, +NL80211_KEY_IDX = 2, +NL80211_KEY_CIPHER = 3, +NL80211_KEY_SEQ = 4, +NL80211_KEY_DEFAULT = 5, +NL80211_KEY_DEFAULT_MGMT = 6, +NL80211_KEY_TYPE = 7, +NL80211_KEY_DEFAULT_TYPES = 8, +NL80211_KEY_MODE = 9, +NL80211_KEY_DEFAULT_BEACON = 10, +__NL80211_KEY_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tx_rate_attributes { +__NL80211_TXRATE_INVALID = 0, +NL80211_TXRATE_LEGACY = 1, +NL80211_TXRATE_HT = 2, +NL80211_TXRATE_VHT = 3, +NL80211_TXRATE_GI = 4, +NL80211_TXRATE_HE = 5, +NL80211_TXRATE_HE_GI = 6, +NL80211_TXRATE_HE_LTF = 7, +__NL80211_TXRATE_AFTER_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_txrate_gi { +NL80211_TXRATE_DEFAULT_GI = 0, +NL80211_TXRATE_FORCE_SGI = 1, +NL80211_TXRATE_FORCE_LGI = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_band { +NL80211_BAND_2GHZ = 0, +NL80211_BAND_5GHZ = 1, +NL80211_BAND_60GHZ = 2, +NL80211_BAND_6GHZ = 3, +NL80211_BAND_S1GHZ = 4, +NL80211_BAND_LC = 5, +NUM_NL80211_BANDS = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ps_state { +NL80211_PS_DISABLED = 0, +NL80211_PS_ENABLED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_attr_cqm { +__NL80211_ATTR_CQM_INVALID = 0, +NL80211_ATTR_CQM_RSSI_THOLD = 1, +NL80211_ATTR_CQM_RSSI_HYST = 2, +NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT = 3, +NL80211_ATTR_CQM_PKT_LOSS_EVENT = 4, +NL80211_ATTR_CQM_TXE_RATE = 5, +NL80211_ATTR_CQM_TXE_PKTS = 6, +NL80211_ATTR_CQM_TXE_INTVL = 7, +NL80211_ATTR_CQM_BEACON_LOSS_EVENT = 8, +NL80211_ATTR_CQM_RSSI_LEVEL = 9, +__NL80211_ATTR_CQM_AFTER_LAST = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_cqm_rssi_threshold_event { +NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW = 0, +NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH = 1, +NL80211_CQM_RSSI_BEACON_LOSS_EVENT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tx_power_setting { +NL80211_TX_POWER_AUTOMATIC = 0, +NL80211_TX_POWER_LIMITED = 1, +NL80211_TX_POWER_FIXED = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tid_config { +NL80211_TID_CONFIG_ENABLE = 0, +NL80211_TID_CONFIG_DISABLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tx_rate_setting { +NL80211_TX_RATE_AUTOMATIC = 0, +NL80211_TX_RATE_LIMITED = 1, +NL80211_TX_RATE_FIXED = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tid_config_attr { +__NL80211_TID_CONFIG_ATTR_INVALID = 0, +NL80211_TID_CONFIG_ATTR_PAD = 1, +NL80211_TID_CONFIG_ATTR_VIF_SUPP = 2, +NL80211_TID_CONFIG_ATTR_PEER_SUPP = 3, +NL80211_TID_CONFIG_ATTR_OVERRIDE = 4, +NL80211_TID_CONFIG_ATTR_TIDS = 5, +NL80211_TID_CONFIG_ATTR_NOACK = 6, +NL80211_TID_CONFIG_ATTR_RETRY_SHORT = 7, +NL80211_TID_CONFIG_ATTR_RETRY_LONG = 8, +NL80211_TID_CONFIG_ATTR_AMPDU_CTRL = 9, +NL80211_TID_CONFIG_ATTR_RTSCTS_CTRL = 10, +NL80211_TID_CONFIG_ATTR_AMSDU_CTRL = 11, +NL80211_TID_CONFIG_ATTR_TX_RATE_TYPE = 12, +NL80211_TID_CONFIG_ATTR_TX_RATE = 13, +__NL80211_TID_CONFIG_ATTR_AFTER_LAST = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_packet_pattern_attr { +__NL80211_PKTPAT_INVALID = 0, +NL80211_PKTPAT_MASK = 1, +NL80211_PKTPAT_PATTERN = 2, +NL80211_PKTPAT_OFFSET = 3, +NUM_NL80211_PKTPAT = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wowlan_triggers { +__NL80211_WOWLAN_TRIG_INVALID = 0, +NL80211_WOWLAN_TRIG_ANY = 1, +NL80211_WOWLAN_TRIG_DISCONNECT = 2, +NL80211_WOWLAN_TRIG_MAGIC_PKT = 3, +NL80211_WOWLAN_TRIG_PKT_PATTERN = 4, +NL80211_WOWLAN_TRIG_GTK_REKEY_SUPPORTED = 5, +NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE = 6, +NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST = 7, +NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE = 8, +NL80211_WOWLAN_TRIG_RFKILL_RELEASE = 9, +NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211 = 10, +NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN = 11, +NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023 = 12, +NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN = 13, +NL80211_WOWLAN_TRIG_TCP_CONNECTION = 14, +NL80211_WOWLAN_TRIG_WAKEUP_TCP_MATCH = 15, +NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST = 16, +NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS = 17, +NL80211_WOWLAN_TRIG_NET_DETECT = 18, +NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS = 19, +NL80211_WOWLAN_TRIG_UNPROTECTED_DEAUTH_DISASSOC = 20, +NUM_NL80211_WOWLAN_TRIG = 21, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wowlan_tcp_attrs { +__NL80211_WOWLAN_TCP_INVALID = 0, +NL80211_WOWLAN_TCP_SRC_IPV4 = 1, +NL80211_WOWLAN_TCP_DST_IPV4 = 2, +NL80211_WOWLAN_TCP_DST_MAC = 3, +NL80211_WOWLAN_TCP_SRC_PORT = 4, +NL80211_WOWLAN_TCP_DST_PORT = 5, +NL80211_WOWLAN_TCP_DATA_PAYLOAD = 6, +NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ = 7, +NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN = 8, +NL80211_WOWLAN_TCP_DATA_INTERVAL = 9, +NL80211_WOWLAN_TCP_WAKE_PAYLOAD = 10, +NL80211_WOWLAN_TCP_WAKE_MASK = 11, +NUM_NL80211_WOWLAN_TCP = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_attr_coalesce_rule { +__NL80211_COALESCE_RULE_INVALID = 0, +NL80211_ATTR_COALESCE_RULE_DELAY = 1, +NL80211_ATTR_COALESCE_RULE_CONDITION = 2, +NL80211_ATTR_COALESCE_RULE_PKT_PATTERN = 3, +NUM_NL80211_ATTR_COALESCE_RULE = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_coalesce_condition { +NL80211_COALESCE_CONDITION_MATCH = 0, +NL80211_COALESCE_CONDITION_NO_MATCH = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_iface_limit_attrs { +NL80211_IFACE_LIMIT_UNSPEC = 0, +NL80211_IFACE_LIMIT_MAX = 1, +NL80211_IFACE_LIMIT_TYPES = 2, +NUM_NL80211_IFACE_LIMIT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_if_combination_attrs { +NL80211_IFACE_COMB_UNSPEC = 0, +NL80211_IFACE_COMB_LIMITS = 1, +NL80211_IFACE_COMB_MAXNUM = 2, +NL80211_IFACE_COMB_STA_AP_BI_MATCH = 3, +NL80211_IFACE_COMB_NUM_CHANNELS = 4, +NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS = 5, +NL80211_IFACE_COMB_RADAR_DETECT_REGIONS = 6, +NL80211_IFACE_COMB_BI_MIN_GCD = 7, +NUM_NL80211_IFACE_COMB = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_plink_state { +NL80211_PLINK_LISTEN = 0, +NL80211_PLINK_OPN_SNT = 1, +NL80211_PLINK_OPN_RCVD = 2, +NL80211_PLINK_CNF_RCVD = 3, +NL80211_PLINK_ESTAB = 4, +NL80211_PLINK_HOLDING = 5, +NL80211_PLINK_BLOCKED = 6, +NUM_NL80211_PLINK_STATES = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_plink_action { +NL80211_PLINK_ACTION_NO_ACTION = 0, +NL80211_PLINK_ACTION_OPEN = 1, +NL80211_PLINK_ACTION_BLOCK = 2, +NUM_NL80211_PLINK_ACTIONS = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_rekey_data { +__NL80211_REKEY_DATA_INVALID = 0, +NL80211_REKEY_DATA_KEK = 1, +NL80211_REKEY_DATA_KCK = 2, +NL80211_REKEY_DATA_REPLAY_CTR = 3, +NL80211_REKEY_DATA_AKM = 4, +NUM_NL80211_REKEY_DATA = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_hidden_ssid { +NL80211_HIDDEN_SSID_NOT_IN_USE = 0, +NL80211_HIDDEN_SSID_ZERO_LEN = 1, +NL80211_HIDDEN_SSID_ZERO_CONTENTS = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_wme_attr { +__NL80211_STA_WME_INVALID = 0, +NL80211_STA_WME_UAPSD_QUEUES = 1, +NL80211_STA_WME_MAX_SP = 2, +__NL80211_STA_WME_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_pmksa_candidate_attr { +__NL80211_PMKSA_CANDIDATE_INVALID = 0, +NL80211_PMKSA_CANDIDATE_INDEX = 1, +NL80211_PMKSA_CANDIDATE_BSSID = 2, +NL80211_PMKSA_CANDIDATE_PREAUTH = 3, +NUM_NL80211_PMKSA_CANDIDATE = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tdls_operation { +NL80211_TDLS_DISCOVERY_REQ = 0, +NL80211_TDLS_SETUP = 1, +NL80211_TDLS_TEARDOWN = 2, +NL80211_TDLS_ENABLE_LINK = 3, +NL80211_TDLS_DISABLE_LINK = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ap_sme_features { +NL80211_AP_SME_SA_QUERY_OFFLOAD = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_feature_flags { +NL80211_FEATURE_SK_TX_STATUS = 1, +NL80211_FEATURE_HT_IBSS = 2, +NL80211_FEATURE_INACTIVITY_TIMER = 4, +NL80211_FEATURE_CELL_BASE_REG_HINTS = 8, +NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL = 16, +NL80211_FEATURE_SAE = 32, +NL80211_FEATURE_LOW_PRIORITY_SCAN = 64, +NL80211_FEATURE_SCAN_FLUSH = 128, +NL80211_FEATURE_AP_SCAN = 256, +NL80211_FEATURE_VIF_TXPOWER = 512, +NL80211_FEATURE_NEED_OBSS_SCAN = 1024, +NL80211_FEATURE_P2P_GO_CTWIN = 2048, +NL80211_FEATURE_P2P_GO_OPPPS = 4096, +NL80211_FEATURE_ADVERTISE_CHAN_LIMITS = 16384, +NL80211_FEATURE_FULL_AP_CLIENT_STATE = 32768, +NL80211_FEATURE_USERSPACE_MPM = 65536, +NL80211_FEATURE_ACTIVE_MONITOR = 131072, +NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE = 262144, +NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES = 524288, +NL80211_FEATURE_WFA_TPC_IE_IN_PROBES = 1048576, +NL80211_FEATURE_QUIET = 2097152, +NL80211_FEATURE_TX_POWER_INSERTION = 4194304, +NL80211_FEATURE_ACKTO_ESTIMATION = 8388608, +NL80211_FEATURE_STATIC_SMPS = 16777216, +NL80211_FEATURE_DYNAMIC_SMPS = 33554432, +NL80211_FEATURE_SUPPORTS_WMM_ADMISSION = 67108864, +NL80211_FEATURE_MAC_ON_CREATE = 134217728, +NL80211_FEATURE_TDLS_CHANNEL_SWITCH = 268435456, +NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR = 536870912, +NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR = 1073741824, +NL80211_FEATURE_ND_RANDOM_MAC_ADDR = 2147483648, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ext_feature_index { +NL80211_EXT_FEATURE_VHT_IBSS = 0, +NL80211_EXT_FEATURE_RRM = 1, +NL80211_EXT_FEATURE_MU_MIMO_AIR_SNIFFER = 2, +NL80211_EXT_FEATURE_SCAN_START_TIME = 3, +NL80211_EXT_FEATURE_BSS_PARENT_TSF = 4, +NL80211_EXT_FEATURE_SET_SCAN_DWELL = 5, +NL80211_EXT_FEATURE_BEACON_RATE_LEGACY = 6, +NL80211_EXT_FEATURE_BEACON_RATE_HT = 7, +NL80211_EXT_FEATURE_BEACON_RATE_VHT = 8, +NL80211_EXT_FEATURE_FILS_STA = 9, +NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA = 10, +NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED = 11, +NL80211_EXT_FEATURE_SCHED_SCAN_RELATIVE_RSSI = 12, +NL80211_EXT_FEATURE_CQM_RSSI_LIST = 13, +NL80211_EXT_FEATURE_FILS_SK_OFFLOAD = 14, +NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_PSK = 15, +NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X = 16, +NL80211_EXT_FEATURE_FILS_MAX_CHANNEL_TIME = 17, +NL80211_EXT_FEATURE_ACCEPT_BCAST_PROBE_RESP = 18, +NL80211_EXT_FEATURE_OCE_PROBE_REQ_HIGH_TX_RATE = 19, +NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION = 20, +NL80211_EXT_FEATURE_MFP_OPTIONAL = 21, +NL80211_EXT_FEATURE_LOW_SPAN_SCAN = 22, +NL80211_EXT_FEATURE_LOW_POWER_SCAN = 23, +NL80211_EXT_FEATURE_HIGH_ACCURACY_SCAN = 24, +NL80211_EXT_FEATURE_DFS_OFFLOAD = 25, +NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211 = 26, +NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT = 27, +NL80211_EXT_FEATURE_TXQS = 28, +NL80211_EXT_FEATURE_SCAN_RANDOM_SN = 29, +NL80211_EXT_FEATURE_SCAN_MIN_PREQ_CONTENT = 30, +NL80211_EXT_FEATURE_CAN_REPLACE_PTK0 = 31, +NL80211_EXT_FEATURE_ENABLE_FTM_RESPONDER = 32, +NL80211_EXT_FEATURE_AIRTIME_FAIRNESS = 33, +NL80211_EXT_FEATURE_AP_PMKSA_CACHING = 34, +NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD = 35, +NL80211_EXT_FEATURE_EXT_KEY_ID = 36, +NL80211_EXT_FEATURE_STA_TX_PWR = 37, +NL80211_EXT_FEATURE_SAE_OFFLOAD = 38, +NL80211_EXT_FEATURE_VLAN_OFFLOAD = 39, +NL80211_EXT_FEATURE_AQL = 40, +NL80211_EXT_FEATURE_BEACON_PROTECTION = 41, +NL80211_EXT_FEATURE_CONTROL_PORT_NO_PREAUTH = 42, +NL80211_EXT_FEATURE_PROTECTED_TWT = 43, +NL80211_EXT_FEATURE_DEL_IBSS_STA = 44, +NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS = 45, +NL80211_EXT_FEATURE_BEACON_PROTECTION_CLIENT = 46, +NL80211_EXT_FEATURE_SCAN_FREQ_KHZ = 47, +NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211_TX_STATUS = 48, +NL80211_EXT_FEATURE_OPERATING_CHANNEL_VALIDATION = 49, +NL80211_EXT_FEATURE_4WAY_HANDSHAKE_AP_PSK = 50, +NL80211_EXT_FEATURE_SAE_OFFLOAD_AP = 51, +NL80211_EXT_FEATURE_FILS_DISCOVERY = 52, +NL80211_EXT_FEATURE_UNSOL_BCAST_PROBE_RESP = 53, +NL80211_EXT_FEATURE_BEACON_RATE_HE = 54, +NL80211_EXT_FEATURE_SECURE_LTF = 55, +NL80211_EXT_FEATURE_SECURE_RTT = 56, +NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE = 57, +NL80211_EXT_FEATURE_BSS_COLOR = 58, +NL80211_EXT_FEATURE_FILS_CRYPTO_OFFLOAD = 59, +NL80211_EXT_FEATURE_RADAR_BACKGROUND = 60, +NL80211_EXT_FEATURE_POWERED_ADDR_CHANGE = 61, +NL80211_EXT_FEATURE_PUNCT = 62, +NL80211_EXT_FEATURE_SECURE_NAN = 63, +NL80211_EXT_FEATURE_AUTH_AND_DEAUTH_RANDOM_TA = 64, +NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, +NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, +NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, +NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, +NUM_NL80211_EXT_FEATURES = 69, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_probe_resp_offload_support_attr { +NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS = 1, +NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2 = 2, +NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P = 4, +NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_connect_failed_reason { +NL80211_CONN_FAIL_MAX_CLIENTS = 0, +NL80211_CONN_FAIL_BLOCKED_CLIENT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_timeout_reason { +NL80211_TIMEOUT_UNSPECIFIED = 0, +NL80211_TIMEOUT_SCAN = 1, +NL80211_TIMEOUT_AUTH = 2, +NL80211_TIMEOUT_ASSOC = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_scan_flags { +NL80211_SCAN_FLAG_LOW_PRIORITY = 1, +NL80211_SCAN_FLAG_FLUSH = 2, +NL80211_SCAN_FLAG_AP = 4, +NL80211_SCAN_FLAG_RANDOM_ADDR = 8, +NL80211_SCAN_FLAG_FILS_MAX_CHANNEL_TIME = 16, +NL80211_SCAN_FLAG_ACCEPT_BCAST_PROBE_RESP = 32, +NL80211_SCAN_FLAG_OCE_PROBE_REQ_HIGH_TX_RATE = 64, +NL80211_SCAN_FLAG_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION = 128, +NL80211_SCAN_FLAG_LOW_SPAN = 256, +NL80211_SCAN_FLAG_LOW_POWER = 512, +NL80211_SCAN_FLAG_HIGH_ACCURACY = 1024, +NL80211_SCAN_FLAG_RANDOM_SN = 2048, +NL80211_SCAN_FLAG_MIN_PREQ_CONTENT = 4096, +NL80211_SCAN_FLAG_FREQ_KHZ = 8192, +NL80211_SCAN_FLAG_COLOCATED_6GHZ = 16384, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_acl_policy { +NL80211_ACL_POLICY_ACCEPT_UNLESS_LISTED = 0, +NL80211_ACL_POLICY_DENY_UNLESS_LISTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_smps_mode { +NL80211_SMPS_OFF = 0, +NL80211_SMPS_STATIC = 1, +NL80211_SMPS_DYNAMIC = 2, +__NL80211_SMPS_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_radar_event { +NL80211_RADAR_DETECTED = 0, +NL80211_RADAR_CAC_FINISHED = 1, +NL80211_RADAR_CAC_ABORTED = 2, +NL80211_RADAR_NOP_FINISHED = 3, +NL80211_RADAR_PRE_CAC_EXPIRED = 4, +NL80211_RADAR_CAC_STARTED = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_dfs_state { +NL80211_DFS_USABLE = 0, +NL80211_DFS_UNAVAILABLE = 1, +NL80211_DFS_AVAILABLE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_protocol_features { +NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_crit_proto_id { +NL80211_CRIT_PROTO_UNSPEC = 0, +NL80211_CRIT_PROTO_DHCP = 1, +NL80211_CRIT_PROTO_EAPOL = 2, +NL80211_CRIT_PROTO_APIPA = 3, +NUM_NL80211_CRIT_PROTO = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_rxmgmt_flags { +NL80211_RXMGMT_FLAG_ANSWERED = 1, +NL80211_RXMGMT_FLAG_EXTERNAL_AUTH = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tdls_peer_capability { +NL80211_TDLS_PEER_HT = 1, +NL80211_TDLS_PEER_VHT = 2, +NL80211_TDLS_PEER_WMM = 4, +NL80211_TDLS_PEER_HE = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sched_scan_plan { +__NL80211_SCHED_SCAN_PLAN_INVALID = 0, +NL80211_SCHED_SCAN_PLAN_INTERVAL = 1, +NL80211_SCHED_SCAN_PLAN_ITERATIONS = 2, +__NL80211_SCHED_SCAN_PLAN_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_select_attr { +__NL80211_BSS_SELECT_ATTR_INVALID = 0, +NL80211_BSS_SELECT_ATTR_RSSI = 1, +NL80211_BSS_SELECT_ATTR_BAND_PREF = 2, +NL80211_BSS_SELECT_ATTR_RSSI_ADJUST = 3, +__NL80211_BSS_SELECT_ATTR_AFTER_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_function_type { +NL80211_NAN_FUNC_PUBLISH = 0, +NL80211_NAN_FUNC_SUBSCRIBE = 1, +NL80211_NAN_FUNC_FOLLOW_UP = 2, +__NL80211_NAN_FUNC_TYPE_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_publish_type { +NL80211_NAN_SOLICITED_PUBLISH = 1, +NL80211_NAN_UNSOLICITED_PUBLISH = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_func_term_reason { +NL80211_NAN_FUNC_TERM_REASON_USER_REQUEST = 0, +NL80211_NAN_FUNC_TERM_REASON_TTL_EXPIRED = 1, +NL80211_NAN_FUNC_TERM_REASON_ERROR = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_func_attributes { +__NL80211_NAN_FUNC_INVALID = 0, +NL80211_NAN_FUNC_TYPE = 1, +NL80211_NAN_FUNC_SERVICE_ID = 2, +NL80211_NAN_FUNC_PUBLISH_TYPE = 3, +NL80211_NAN_FUNC_PUBLISH_BCAST = 4, +NL80211_NAN_FUNC_SUBSCRIBE_ACTIVE = 5, +NL80211_NAN_FUNC_FOLLOW_UP_ID = 6, +NL80211_NAN_FUNC_FOLLOW_UP_REQ_ID = 7, +NL80211_NAN_FUNC_FOLLOW_UP_DEST = 8, +NL80211_NAN_FUNC_CLOSE_RANGE = 9, +NL80211_NAN_FUNC_TTL = 10, +NL80211_NAN_FUNC_SERVICE_INFO = 11, +NL80211_NAN_FUNC_SRF = 12, +NL80211_NAN_FUNC_RX_MATCH_FILTER = 13, +NL80211_NAN_FUNC_TX_MATCH_FILTER = 14, +NL80211_NAN_FUNC_INSTANCE_ID = 15, +NL80211_NAN_FUNC_TERM_REASON = 16, +NUM_NL80211_NAN_FUNC_ATTR = 17, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_srf_attributes { +__NL80211_NAN_SRF_INVALID = 0, +NL80211_NAN_SRF_INCLUDE = 1, +NL80211_NAN_SRF_BF = 2, +NL80211_NAN_SRF_BF_IDX = 3, +NL80211_NAN_SRF_MAC_ADDRS = 4, +NUM_NL80211_NAN_SRF_ATTR = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_match_attributes { +__NL80211_NAN_MATCH_INVALID = 0, +NL80211_NAN_MATCH_FUNC_LOCAL = 1, +NL80211_NAN_MATCH_FUNC_PEER = 2, +NUM_NL80211_NAN_MATCH_ATTR = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_external_auth_action { +NL80211_EXTERNAL_AUTH_START = 0, +NL80211_EXTERNAL_AUTH_ABORT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ftm_responder_attributes { +__NL80211_FTM_RESP_ATTR_INVALID = 0, +NL80211_FTM_RESP_ATTR_ENABLED = 1, +NL80211_FTM_RESP_ATTR_LCI = 2, +NL80211_FTM_RESP_ATTR_CIVICLOC = 3, +__NL80211_FTM_RESP_ATTR_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ftm_responder_stats { +__NL80211_FTM_STATS_INVALID = 0, +NL80211_FTM_STATS_SUCCESS_NUM = 1, +NL80211_FTM_STATS_PARTIAL_NUM = 2, +NL80211_FTM_STATS_FAILED_NUM = 3, +NL80211_FTM_STATS_ASAP_NUM = 4, +NL80211_FTM_STATS_NON_ASAP_NUM = 5, +NL80211_FTM_STATS_TOTAL_DURATION_MSEC = 6, +NL80211_FTM_STATS_UNKNOWN_TRIGGERS_NUM = 7, +NL80211_FTM_STATS_RESCHEDULE_REQUESTS_NUM = 8, +NL80211_FTM_STATS_OUT_OF_WINDOW_TRIGGERS_NUM = 9, +NL80211_FTM_STATS_PAD = 10, +__NL80211_FTM_STATS_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_preamble { +NL80211_PREAMBLE_LEGACY = 0, +NL80211_PREAMBLE_HT = 1, +NL80211_PREAMBLE_VHT = 2, +NL80211_PREAMBLE_DMG = 3, +NL80211_PREAMBLE_HE = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_type { +NL80211_PMSR_TYPE_INVALID = 0, +NL80211_PMSR_TYPE_FTM = 1, +NUM_NL80211_PMSR_TYPES = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_status { +NL80211_PMSR_STATUS_SUCCESS = 0, +NL80211_PMSR_STATUS_REFUSED = 1, +NL80211_PMSR_STATUS_TIMEOUT = 2, +NL80211_PMSR_STATUS_FAILURE = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_req { +__NL80211_PMSR_REQ_ATTR_INVALID = 0, +NL80211_PMSR_REQ_ATTR_DATA = 1, +NL80211_PMSR_REQ_ATTR_GET_AP_TSF = 2, +NUM_NL80211_PMSR_REQ_ATTRS = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_resp { +__NL80211_PMSR_RESP_ATTR_INVALID = 0, +NL80211_PMSR_RESP_ATTR_DATA = 1, +NL80211_PMSR_RESP_ATTR_STATUS = 2, +NL80211_PMSR_RESP_ATTR_HOST_TIME = 3, +NL80211_PMSR_RESP_ATTR_AP_TSF = 4, +NL80211_PMSR_RESP_ATTR_FINAL = 5, +NL80211_PMSR_RESP_ATTR_PAD = 6, +NUM_NL80211_PMSR_RESP_ATTRS = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_peer_attrs { +__NL80211_PMSR_PEER_ATTR_INVALID = 0, +NL80211_PMSR_PEER_ATTR_ADDR = 1, +NL80211_PMSR_PEER_ATTR_CHAN = 2, +NL80211_PMSR_PEER_ATTR_REQ = 3, +NL80211_PMSR_PEER_ATTR_RESP = 4, +NUM_NL80211_PMSR_PEER_ATTRS = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_attrs { +__NL80211_PMSR_ATTR_INVALID = 0, +NL80211_PMSR_ATTR_MAX_PEERS = 1, +NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, +NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, +NL80211_PMSR_ATTR_TYPE_CAPA = 4, +NL80211_PMSR_ATTR_PEERS = 5, +NUM_NL80211_PMSR_ATTR = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_capa { +__NL80211_PMSR_FTM_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_CAPA_ATTR_ASAP = 1, +NL80211_PMSR_FTM_CAPA_ATTR_NON_ASAP = 2, +NL80211_PMSR_FTM_CAPA_ATTR_REQ_LCI = 3, +NL80211_PMSR_FTM_CAPA_ATTR_REQ_CIVICLOC = 4, +NL80211_PMSR_FTM_CAPA_ATTR_PREAMBLES = 5, +NL80211_PMSR_FTM_CAPA_ATTR_BANDWIDTHS = 6, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, +NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, +NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req { +__NL80211_PMSR_FTM_REQ_ATTR_INVALID = 0, +NL80211_PMSR_FTM_REQ_ATTR_ASAP = 1, +NL80211_PMSR_FTM_REQ_ATTR_PREAMBLE = 2, +NL80211_PMSR_FTM_REQ_ATTR_NUM_BURSTS_EXP = 3, +NL80211_PMSR_FTM_REQ_ATTR_BURST_PERIOD = 4, +NL80211_PMSR_FTM_REQ_ATTR_BURST_DURATION = 5, +NL80211_PMSR_FTM_REQ_ATTR_FTMS_PER_BURST = 6, +NL80211_PMSR_FTM_REQ_ATTR_NUM_FTMR_RETRIES = 7, +NL80211_PMSR_FTM_REQ_ATTR_REQUEST_LCI = 8, +NL80211_PMSR_FTM_REQ_ATTR_REQUEST_CIVICLOC = 9, +NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, +NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, +NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, +NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_failure_reasons { +NL80211_PMSR_FTM_FAILURE_UNSPECIFIED = 0, +NL80211_PMSR_FTM_FAILURE_NO_RESPONSE = 1, +NL80211_PMSR_FTM_FAILURE_REJECTED = 2, +NL80211_PMSR_FTM_FAILURE_WRONG_CHANNEL = 3, +NL80211_PMSR_FTM_FAILURE_PEER_NOT_CAPABLE = 4, +NL80211_PMSR_FTM_FAILURE_INVALID_TIMESTAMP = 5, +NL80211_PMSR_FTM_FAILURE_PEER_BUSY = 6, +NL80211_PMSR_FTM_FAILURE_BAD_CHANGED_PARAMS = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_resp { +__NL80211_PMSR_FTM_RESP_ATTR_INVALID = 0, +NL80211_PMSR_FTM_RESP_ATTR_FAIL_REASON = 1, +NL80211_PMSR_FTM_RESP_ATTR_BURST_INDEX = 2, +NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_ATTEMPTS = 3, +NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_SUCCESSES = 4, +NL80211_PMSR_FTM_RESP_ATTR_BUSY_RETRY_TIME = 5, +NL80211_PMSR_FTM_RESP_ATTR_NUM_BURSTS_EXP = 6, +NL80211_PMSR_FTM_RESP_ATTR_BURST_DURATION = 7, +NL80211_PMSR_FTM_RESP_ATTR_FTMS_PER_BURST = 8, +NL80211_PMSR_FTM_RESP_ATTR_RSSI_AVG = 9, +NL80211_PMSR_FTM_RESP_ATTR_RSSI_SPREAD = 10, +NL80211_PMSR_FTM_RESP_ATTR_TX_RATE = 11, +NL80211_PMSR_FTM_RESP_ATTR_RX_RATE = 12, +NL80211_PMSR_FTM_RESP_ATTR_RTT_AVG = 13, +NL80211_PMSR_FTM_RESP_ATTR_RTT_VARIANCE = 14, +NL80211_PMSR_FTM_RESP_ATTR_RTT_SPREAD = 15, +NL80211_PMSR_FTM_RESP_ATTR_DIST_AVG = 16, +NL80211_PMSR_FTM_RESP_ATTR_DIST_VARIANCE = 17, +NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, +NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, +NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, +NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_obss_pd_attributes { +__NL80211_HE_OBSS_PD_ATTR_INVALID = 0, +NL80211_HE_OBSS_PD_ATTR_MIN_OFFSET = 1, +NL80211_HE_OBSS_PD_ATTR_MAX_OFFSET = 2, +NL80211_HE_OBSS_PD_ATTR_NON_SRG_MAX_OFFSET = 3, +NL80211_HE_OBSS_PD_ATTR_BSS_COLOR_BITMAP = 4, +NL80211_HE_OBSS_PD_ATTR_PARTIAL_BSSID_BITMAP = 5, +NL80211_HE_OBSS_PD_ATTR_SR_CTRL = 6, +__NL80211_HE_OBSS_PD_ATTR_LAST = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_color_attributes { +__NL80211_HE_BSS_COLOR_ATTR_INVALID = 0, +NL80211_HE_BSS_COLOR_ATTR_COLOR = 1, +NL80211_HE_BSS_COLOR_ATTR_DISABLED = 2, +NL80211_HE_BSS_COLOR_ATTR_PARTIAL = 3, +__NL80211_HE_BSS_COLOR_ATTR_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_iftype_akm_attributes { +__NL80211_IFTYPE_AKM_ATTR_INVALID = 0, +NL80211_IFTYPE_AKM_ATTR_IFTYPES = 1, +NL80211_IFTYPE_AKM_ATTR_SUITES = 2, +__NL80211_IFTYPE_AKM_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_fils_discovery_attributes { +__NL80211_FILS_DISCOVERY_ATTR_INVALID = 0, +NL80211_FILS_DISCOVERY_ATTR_INT_MIN = 1, +NL80211_FILS_DISCOVERY_ATTR_INT_MAX = 2, +NL80211_FILS_DISCOVERY_ATTR_TMPL = 3, +__NL80211_FILS_DISCOVERY_ATTR_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_unsol_bcast_probe_resp_attributes { +__NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INVALID = 0, +NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INT = 1, +NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_TMPL = 2, +__NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sae_pwe_mechanism { +NL80211_SAE_PWE_UNSPECIFIED = 0, +NL80211_SAE_PWE_HUNT_AND_PECK = 1, +NL80211_SAE_PWE_HASH_TO_ELEMENT = 2, +NL80211_SAE_PWE_BOTH = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sar_type { +NL80211_SAR_TYPE_POWER = 0, +NUM_NL80211_SAR_TYPE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sar_attrs { +__NL80211_SAR_ATTR_INVALID = 0, +NL80211_SAR_ATTR_TYPE = 1, +NL80211_SAR_ATTR_SPECS = 2, +__NL80211_SAR_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sar_specs_attrs { +__NL80211_SAR_ATTR_SPECS_INVALID = 0, +NL80211_SAR_ATTR_SPECS_POWER = 1, +NL80211_SAR_ATTR_SPECS_RANGE_INDEX = 2, +NL80211_SAR_ATTR_SPECS_START_FREQ = 3, +NL80211_SAR_ATTR_SPECS_END_FREQ = 4, +__NL80211_SAR_ATTR_SPECS_LAST = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mbssid_config_attributes { +__NL80211_MBSSID_CONFIG_ATTR_INVALID = 0, +NL80211_MBSSID_CONFIG_ATTR_MAX_INTERFACES = 1, +NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 2, +NL80211_MBSSID_CONFIG_ATTR_INDEX = 3, +NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 4, +NL80211_MBSSID_CONFIG_ATTR_EMA = 5, +NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID = 6, +__NL80211_MBSSID_CONFIG_ATTR_LAST = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ap_settings_flags { +NL80211_AP_SETTINGS_EXTERNAL_AUTH_SUPPORT = 1, +NL80211_AP_SETTINGS_SA_QUERY_OFFLOAD_SUPPORT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wiphy_radio_attrs { +__NL80211_WIPHY_RADIO_ATTR_INVALID = 0, +NL80211_WIPHY_RADIO_ATTR_INDEX = 1, +NL80211_WIPHY_RADIO_ATTR_FREQ_RANGE = 2, +NL80211_WIPHY_RADIO_ATTR_INTERFACE_COMBINATION = 3, +NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK = 4, +__NL80211_WIPHY_RADIO_ATTR_LAST = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wiphy_radio_freq_range { +__NL80211_WIPHY_RADIO_FREQ_ATTR_INVALID = 0, +NL80211_WIPHY_RADIO_FREQ_ATTR_START = 1, +NL80211_WIPHY_RADIO_FREQ_ATTR_END = 2, +__NL80211_WIPHY_RADIO_FREQ_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IFLA_UNSPEC = 0, +IFLA_ADDRESS = 1, +IFLA_BROADCAST = 2, +IFLA_IFNAME = 3, +IFLA_MTU = 4, +IFLA_LINK = 5, +IFLA_QDISC = 6, +IFLA_STATS = 7, +IFLA_COST = 8, +IFLA_PRIORITY = 9, +IFLA_MASTER = 10, +IFLA_WIRELESS = 11, +IFLA_PROTINFO = 12, +IFLA_TXQLEN = 13, +IFLA_MAP = 14, +IFLA_WEIGHT = 15, +IFLA_OPERSTATE = 16, +IFLA_LINKMODE = 17, +IFLA_LINKINFO = 18, +IFLA_NET_NS_PID = 19, +IFLA_IFALIAS = 20, +IFLA_NUM_VF = 21, +IFLA_VFINFO_LIST = 22, +IFLA_STATS64 = 23, +IFLA_VF_PORTS = 24, +IFLA_PORT_SELF = 25, +IFLA_AF_SPEC = 26, +IFLA_GROUP = 27, +IFLA_NET_NS_FD = 28, +IFLA_EXT_MASK = 29, +IFLA_PROMISCUITY = 30, +IFLA_NUM_TX_QUEUES = 31, +IFLA_NUM_RX_QUEUES = 32, +IFLA_CARRIER = 33, +IFLA_PHYS_PORT_ID = 34, +IFLA_CARRIER_CHANGES = 35, +IFLA_PHYS_SWITCH_ID = 36, +IFLA_LINK_NETNSID = 37, +IFLA_PHYS_PORT_NAME = 38, +IFLA_PROTO_DOWN = 39, +IFLA_GSO_MAX_SEGS = 40, +IFLA_GSO_MAX_SIZE = 41, +IFLA_PAD = 42, +IFLA_XDP = 43, +IFLA_EVENT = 44, +IFLA_NEW_NETNSID = 45, +IFLA_IF_NETNSID = 46, +IFLA_CARRIER_UP_COUNT = 47, +IFLA_CARRIER_DOWN_COUNT = 48, +IFLA_NEW_IFINDEX = 49, +IFLA_MIN_MTU = 50, +IFLA_MAX_MTU = 51, +IFLA_PROP_LIST = 52, +IFLA_ALT_IFNAME = 53, +IFLA_PERM_ADDRESS = 54, +IFLA_PROTO_DOWN_REASON = 55, +IFLA_PARENT_DEV_NAME = 56, +IFLA_PARENT_DEV_BUS_NAME = 57, +IFLA_GRO_MAX_SIZE = 58, +IFLA_TSO_MAX_SIZE = 59, +IFLA_TSO_MAX_SEGS = 60, +IFLA_ALLMULTI = 61, +IFLA_DEVLINK_PORT = 62, +IFLA_GSO_IPV4_MAX_SIZE = 63, +IFLA_GRO_IPV4_MAX_SIZE = 64, +IFLA_DPLL_PIN = 65, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +IFLA_NETNS_IMMUTABLE = 67, +__IFLA_MAX = 68, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +IFLA_PROTO_DOWN_REASON_UNSPEC = 0, +IFLA_PROTO_DOWN_REASON_MASK = 1, +IFLA_PROTO_DOWN_REASON_VALUE = 2, +__IFLA_PROTO_DOWN_REASON_CNT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IFLA_INET_UNSPEC = 0, +IFLA_INET_CONF = 1, +__IFLA_INET_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_5 { +IFLA_INET6_UNSPEC = 0, +IFLA_INET6_FLAGS = 1, +IFLA_INET6_CONF = 2, +IFLA_INET6_STATS = 3, +IFLA_INET6_MCAST = 4, +IFLA_INET6_CACHEINFO = 5, +IFLA_INET6_ICMP6STATS = 6, +IFLA_INET6_TOKEN = 7, +IFLA_INET6_ADDR_GEN_MODE = 8, +IFLA_INET6_RA_MTU = 9, +__IFLA_INET6_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum in6_addr_gen_mode { +IN6_ADDR_GEN_MODE_EUI64 = 0, +IN6_ADDR_GEN_MODE_NONE = 1, +IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, +IN6_ADDR_GEN_MODE_RANDOM = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_6 { +IFLA_BR_UNSPEC = 0, +IFLA_BR_FORWARD_DELAY = 1, +IFLA_BR_HELLO_TIME = 2, +IFLA_BR_MAX_AGE = 3, +IFLA_BR_AGEING_TIME = 4, +IFLA_BR_STP_STATE = 5, +IFLA_BR_PRIORITY = 6, +IFLA_BR_VLAN_FILTERING = 7, +IFLA_BR_VLAN_PROTOCOL = 8, +IFLA_BR_GROUP_FWD_MASK = 9, +IFLA_BR_ROOT_ID = 10, +IFLA_BR_BRIDGE_ID = 11, +IFLA_BR_ROOT_PORT = 12, +IFLA_BR_ROOT_PATH_COST = 13, +IFLA_BR_TOPOLOGY_CHANGE = 14, +IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, +IFLA_BR_HELLO_TIMER = 16, +IFLA_BR_TCN_TIMER = 17, +IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, +IFLA_BR_GC_TIMER = 19, +IFLA_BR_GROUP_ADDR = 20, +IFLA_BR_FDB_FLUSH = 21, +IFLA_BR_MCAST_ROUTER = 22, +IFLA_BR_MCAST_SNOOPING = 23, +IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, +IFLA_BR_MCAST_QUERIER = 25, +IFLA_BR_MCAST_HASH_ELASTICITY = 26, +IFLA_BR_MCAST_HASH_MAX = 27, +IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, +IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, +IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, +IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, +IFLA_BR_MCAST_QUERIER_INTVL = 32, +IFLA_BR_MCAST_QUERY_INTVL = 33, +IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, +IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, +IFLA_BR_NF_CALL_IPTABLES = 36, +IFLA_BR_NF_CALL_IP6TABLES = 37, +IFLA_BR_NF_CALL_ARPTABLES = 38, +IFLA_BR_VLAN_DEFAULT_PVID = 39, +IFLA_BR_PAD = 40, +IFLA_BR_VLAN_STATS_ENABLED = 41, +IFLA_BR_MCAST_STATS_ENABLED = 42, +IFLA_BR_MCAST_IGMP_VERSION = 43, +IFLA_BR_MCAST_MLD_VERSION = 44, +IFLA_BR_VLAN_STATS_PER_PORT = 45, +IFLA_BR_MULTI_BOOLOPT = 46, +IFLA_BR_MCAST_QUERIER_STATE = 47, +IFLA_BR_FDB_N_LEARNED = 48, +IFLA_BR_FDB_MAX_LEARNED = 49, +__IFLA_BR_MAX = 50, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_7 { +BRIDGE_MODE_UNSPEC = 0, +BRIDGE_MODE_HAIRPIN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_8 { +IFLA_BRPORT_UNSPEC = 0, +IFLA_BRPORT_STATE = 1, +IFLA_BRPORT_PRIORITY = 2, +IFLA_BRPORT_COST = 3, +IFLA_BRPORT_MODE = 4, +IFLA_BRPORT_GUARD = 5, +IFLA_BRPORT_PROTECT = 6, +IFLA_BRPORT_FAST_LEAVE = 7, +IFLA_BRPORT_LEARNING = 8, +IFLA_BRPORT_UNICAST_FLOOD = 9, +IFLA_BRPORT_PROXYARP = 10, +IFLA_BRPORT_LEARNING_SYNC = 11, +IFLA_BRPORT_PROXYARP_WIFI = 12, +IFLA_BRPORT_ROOT_ID = 13, +IFLA_BRPORT_BRIDGE_ID = 14, +IFLA_BRPORT_DESIGNATED_PORT = 15, +IFLA_BRPORT_DESIGNATED_COST = 16, +IFLA_BRPORT_ID = 17, +IFLA_BRPORT_NO = 18, +IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, +IFLA_BRPORT_CONFIG_PENDING = 20, +IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, +IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, +IFLA_BRPORT_HOLD_TIMER = 23, +IFLA_BRPORT_FLUSH = 24, +IFLA_BRPORT_MULTICAST_ROUTER = 25, +IFLA_BRPORT_PAD = 26, +IFLA_BRPORT_MCAST_FLOOD = 27, +IFLA_BRPORT_MCAST_TO_UCAST = 28, +IFLA_BRPORT_VLAN_TUNNEL = 29, +IFLA_BRPORT_BCAST_FLOOD = 30, +IFLA_BRPORT_GROUP_FWD_MASK = 31, +IFLA_BRPORT_NEIGH_SUPPRESS = 32, +IFLA_BRPORT_ISOLATED = 33, +IFLA_BRPORT_BACKUP_PORT = 34, +IFLA_BRPORT_MRP_RING_OPEN = 35, +IFLA_BRPORT_MRP_IN_OPEN = 36, +IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, +IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, +IFLA_BRPORT_LOCKED = 39, +IFLA_BRPORT_MAB = 40, +IFLA_BRPORT_MCAST_N_GROUPS = 41, +IFLA_BRPORT_MCAST_MAX_GROUPS = 42, +IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, +IFLA_BRPORT_BACKUP_NHID = 44, +__IFLA_BRPORT_MAX = 45, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_9 { +IFLA_INFO_UNSPEC = 0, +IFLA_INFO_KIND = 1, +IFLA_INFO_DATA = 2, +IFLA_INFO_XSTATS = 3, +IFLA_INFO_SLAVE_KIND = 4, +IFLA_INFO_SLAVE_DATA = 5, +__IFLA_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_10 { +IFLA_VLAN_UNSPEC = 0, +IFLA_VLAN_ID = 1, +IFLA_VLAN_FLAGS = 2, +IFLA_VLAN_EGRESS_QOS = 3, +IFLA_VLAN_INGRESS_QOS = 4, +IFLA_VLAN_PROTOCOL = 5, +__IFLA_VLAN_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_11 { +IFLA_VLAN_QOS_UNSPEC = 0, +IFLA_VLAN_QOS_MAPPING = 1, +__IFLA_VLAN_QOS_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_12 { +IFLA_MACVLAN_UNSPEC = 0, +IFLA_MACVLAN_MODE = 1, +IFLA_MACVLAN_FLAGS = 2, +IFLA_MACVLAN_MACADDR_MODE = 3, +IFLA_MACVLAN_MACADDR = 4, +IFLA_MACVLAN_MACADDR_DATA = 5, +IFLA_MACVLAN_MACADDR_COUNT = 6, +IFLA_MACVLAN_BC_QUEUE_LEN = 7, +IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, +IFLA_MACVLAN_BC_CUTOFF = 9, +__IFLA_MACVLAN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_mode { +MACVLAN_MODE_PRIVATE = 1, +MACVLAN_MODE_VEPA = 2, +MACVLAN_MODE_BRIDGE = 4, +MACVLAN_MODE_PASSTHRU = 8, +MACVLAN_MODE_SOURCE = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_macaddr_mode { +MACVLAN_MACADDR_ADD = 0, +MACVLAN_MACADDR_DEL = 1, +MACVLAN_MACADDR_FLUSH = 2, +MACVLAN_MACADDR_SET = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_13 { +IFLA_VRF_UNSPEC = 0, +IFLA_VRF_TABLE = 1, +__IFLA_VRF_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_14 { +IFLA_VRF_PORT_UNSPEC = 0, +IFLA_VRF_PORT_TABLE = 1, +__IFLA_VRF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_15 { +IFLA_MACSEC_UNSPEC = 0, +IFLA_MACSEC_SCI = 1, +IFLA_MACSEC_PORT = 2, +IFLA_MACSEC_ICV_LEN = 3, +IFLA_MACSEC_CIPHER_SUITE = 4, +IFLA_MACSEC_WINDOW = 5, +IFLA_MACSEC_ENCODING_SA = 6, +IFLA_MACSEC_ENCRYPT = 7, +IFLA_MACSEC_PROTECT = 8, +IFLA_MACSEC_INC_SCI = 9, +IFLA_MACSEC_ES = 10, +IFLA_MACSEC_SCB = 11, +IFLA_MACSEC_REPLAY_PROTECT = 12, +IFLA_MACSEC_VALIDATION = 13, +IFLA_MACSEC_PAD = 14, +IFLA_MACSEC_OFFLOAD = 15, +__IFLA_MACSEC_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_16 { +IFLA_XFRM_UNSPEC = 0, +IFLA_XFRM_LINK = 1, +IFLA_XFRM_IF_ID = 2, +IFLA_XFRM_COLLECT_METADATA = 3, +__IFLA_XFRM_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_validation_type { +MACSEC_VALIDATE_DISABLED = 0, +MACSEC_VALIDATE_CHECK = 1, +MACSEC_VALIDATE_STRICT = 2, +__MACSEC_VALIDATE_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_offload { +MACSEC_OFFLOAD_OFF = 0, +MACSEC_OFFLOAD_PHY = 1, +MACSEC_OFFLOAD_MAC = 2, +__MACSEC_OFFLOAD_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_17 { +IFLA_IPVLAN_UNSPEC = 0, +IFLA_IPVLAN_MODE = 1, +IFLA_IPVLAN_FLAGS = 2, +__IFLA_IPVLAN_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ipvlan_mode { +IPVLAN_MODE_L2 = 0, +IPVLAN_MODE_L3 = 1, +IPVLAN_MODE_L3S = 2, +IPVLAN_MODE_MAX = 3, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_action { +NETKIT_NEXT = -1, +NETKIT_PASS = 0, +NETKIT_DROP = 2, +NETKIT_REDIRECT = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_mode { +NETKIT_L2 = 0, +NETKIT_L3 = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_18 { +IFLA_NETKIT_UNSPEC = 0, +IFLA_NETKIT_PEER_INFO = 1, +IFLA_NETKIT_PRIMARY = 2, +IFLA_NETKIT_POLICY = 3, +IFLA_NETKIT_PEER_POLICY = 4, +IFLA_NETKIT_MODE = 5, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +IFLA_NETKIT_HEADROOM = 8, +IFLA_NETKIT_TAILROOM = 9, +__IFLA_NETKIT_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_19 { +VNIFILTER_ENTRY_STATS_UNSPEC = 0, +VNIFILTER_ENTRY_STATS_RX_BYTES = 1, +VNIFILTER_ENTRY_STATS_RX_PKTS = 2, +VNIFILTER_ENTRY_STATS_RX_DROPS = 3, +VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, +VNIFILTER_ENTRY_STATS_TX_BYTES = 5, +VNIFILTER_ENTRY_STATS_TX_PKTS = 6, +VNIFILTER_ENTRY_STATS_TX_DROPS = 7, +VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, +VNIFILTER_ENTRY_STATS_PAD = 9, +__VNIFILTER_ENTRY_STATS_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_20 { +VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY_START = 1, +VXLAN_VNIFILTER_ENTRY_END = 2, +VXLAN_VNIFILTER_ENTRY_GROUP = 3, +VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, +VXLAN_VNIFILTER_ENTRY_STATS = 5, +__VXLAN_VNIFILTER_ENTRY_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_21 { +VXLAN_VNIFILTER_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY = 1, +__VXLAN_VNIFILTER_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_22 { +IFLA_VXLAN_UNSPEC = 0, +IFLA_VXLAN_ID = 1, +IFLA_VXLAN_GROUP = 2, +IFLA_VXLAN_LINK = 3, +IFLA_VXLAN_LOCAL = 4, +IFLA_VXLAN_TTL = 5, +IFLA_VXLAN_TOS = 6, +IFLA_VXLAN_LEARNING = 7, +IFLA_VXLAN_AGEING = 8, +IFLA_VXLAN_LIMIT = 9, +IFLA_VXLAN_PORT_RANGE = 10, +IFLA_VXLAN_PROXY = 11, +IFLA_VXLAN_RSC = 12, +IFLA_VXLAN_L2MISS = 13, +IFLA_VXLAN_L3MISS = 14, +IFLA_VXLAN_PORT = 15, +IFLA_VXLAN_GROUP6 = 16, +IFLA_VXLAN_LOCAL6 = 17, +IFLA_VXLAN_UDP_CSUM = 18, +IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, +IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, +IFLA_VXLAN_REMCSUM_TX = 21, +IFLA_VXLAN_REMCSUM_RX = 22, +IFLA_VXLAN_GBP = 23, +IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, +IFLA_VXLAN_COLLECT_METADATA = 25, +IFLA_VXLAN_LABEL = 26, +IFLA_VXLAN_GPE = 27, +IFLA_VXLAN_TTL_INHERIT = 28, +IFLA_VXLAN_DF = 29, +IFLA_VXLAN_VNIFILTER = 30, +IFLA_VXLAN_LOCALBYPASS = 31, +IFLA_VXLAN_LABEL_POLICY = 32, +IFLA_VXLAN_RESERVED_BITS = 33, +__IFLA_VXLAN_MAX = 34, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_df { +VXLAN_DF_UNSET = 0, +VXLAN_DF_SET = 1, +VXLAN_DF_INHERIT = 2, +__VXLAN_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_label_policy { +VXLAN_LABEL_FIXED = 0, +VXLAN_LABEL_INHERIT = 1, +__VXLAN_LABEL_END = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_23 { +IFLA_GENEVE_UNSPEC = 0, +IFLA_GENEVE_ID = 1, +IFLA_GENEVE_REMOTE = 2, +IFLA_GENEVE_TTL = 3, +IFLA_GENEVE_TOS = 4, +IFLA_GENEVE_PORT = 5, +IFLA_GENEVE_COLLECT_METADATA = 6, +IFLA_GENEVE_REMOTE6 = 7, +IFLA_GENEVE_UDP_CSUM = 8, +IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, +IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, +IFLA_GENEVE_LABEL = 11, +IFLA_GENEVE_TTL_INHERIT = 12, +IFLA_GENEVE_DF = 13, +IFLA_GENEVE_INNER_PROTO_INHERIT = 14, +IFLA_GENEVE_PORT_RANGE = 15, +__IFLA_GENEVE_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_geneve_df { +GENEVE_DF_UNSET = 0, +GENEVE_DF_SET = 1, +GENEVE_DF_INHERIT = 2, +__GENEVE_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_24 { +IFLA_BAREUDP_UNSPEC = 0, +IFLA_BAREUDP_PORT = 1, +IFLA_BAREUDP_ETHERTYPE = 2, +IFLA_BAREUDP_SRCPORT_MIN = 3, +IFLA_BAREUDP_MULTIPROTO_MODE = 4, +__IFLA_BAREUDP_MAX = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_25 { +IFLA_PPP_UNSPEC = 0, +IFLA_PPP_DEV_FD = 1, +__IFLA_PPP_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_gtp_role { +GTP_ROLE_GGSN = 0, +GTP_ROLE_SGSN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_26 { +IFLA_GTP_UNSPEC = 0, +IFLA_GTP_FD0 = 1, +IFLA_GTP_FD1 = 2, +IFLA_GTP_PDP_HASHSIZE = 3, +IFLA_GTP_ROLE = 4, +IFLA_GTP_CREATE_SOCKETS = 5, +IFLA_GTP_RESTART_COUNT = 6, +IFLA_GTP_LOCAL = 7, +IFLA_GTP_LOCAL6 = 8, +__IFLA_GTP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_27 { +IFLA_BOND_UNSPEC = 0, +IFLA_BOND_MODE = 1, +IFLA_BOND_ACTIVE_SLAVE = 2, +IFLA_BOND_MIIMON = 3, +IFLA_BOND_UPDELAY = 4, +IFLA_BOND_DOWNDELAY = 5, +IFLA_BOND_USE_CARRIER = 6, +IFLA_BOND_ARP_INTERVAL = 7, +IFLA_BOND_ARP_IP_TARGET = 8, +IFLA_BOND_ARP_VALIDATE = 9, +IFLA_BOND_ARP_ALL_TARGETS = 10, +IFLA_BOND_PRIMARY = 11, +IFLA_BOND_PRIMARY_RESELECT = 12, +IFLA_BOND_FAIL_OVER_MAC = 13, +IFLA_BOND_XMIT_HASH_POLICY = 14, +IFLA_BOND_RESEND_IGMP = 15, +IFLA_BOND_NUM_PEER_NOTIF = 16, +IFLA_BOND_ALL_SLAVES_ACTIVE = 17, +IFLA_BOND_MIN_LINKS = 18, +IFLA_BOND_LP_INTERVAL = 19, +IFLA_BOND_PACKETS_PER_SLAVE = 20, +IFLA_BOND_AD_LACP_RATE = 21, +IFLA_BOND_AD_SELECT = 22, +IFLA_BOND_AD_INFO = 23, +IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, +IFLA_BOND_AD_USER_PORT_KEY = 25, +IFLA_BOND_AD_ACTOR_SYSTEM = 26, +IFLA_BOND_TLB_DYNAMIC_LB = 27, +IFLA_BOND_PEER_NOTIF_DELAY = 28, +IFLA_BOND_AD_LACP_ACTIVE = 29, +IFLA_BOND_MISSED_MAX = 30, +IFLA_BOND_NS_IP6_TARGET = 31, +IFLA_BOND_COUPLED_CONTROL = 32, +__IFLA_BOND_MAX = 33, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_28 { +IFLA_BOND_AD_INFO_UNSPEC = 0, +IFLA_BOND_AD_INFO_AGGREGATOR = 1, +IFLA_BOND_AD_INFO_NUM_PORTS = 2, +IFLA_BOND_AD_INFO_ACTOR_KEY = 3, +IFLA_BOND_AD_INFO_PARTNER_KEY = 4, +IFLA_BOND_AD_INFO_PARTNER_MAC = 5, +__IFLA_BOND_AD_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_29 { +IFLA_BOND_SLAVE_UNSPEC = 0, +IFLA_BOND_SLAVE_STATE = 1, +IFLA_BOND_SLAVE_MII_STATUS = 2, +IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, +IFLA_BOND_SLAVE_PERM_HWADDR = 4, +IFLA_BOND_SLAVE_QUEUE_ID = 5, +IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, +IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, +IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, +IFLA_BOND_SLAVE_PRIO = 9, +__IFLA_BOND_SLAVE_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_30 { +IFLA_VF_INFO_UNSPEC = 0, +IFLA_VF_INFO = 1, +__IFLA_VF_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_31 { +IFLA_VF_UNSPEC = 0, +IFLA_VF_MAC = 1, +IFLA_VF_VLAN = 2, +IFLA_VF_TX_RATE = 3, +IFLA_VF_SPOOFCHK = 4, +IFLA_VF_LINK_STATE = 5, +IFLA_VF_RATE = 6, +IFLA_VF_RSS_QUERY_EN = 7, +IFLA_VF_STATS = 8, +IFLA_VF_TRUST = 9, +IFLA_VF_IB_NODE_GUID = 10, +IFLA_VF_IB_PORT_GUID = 11, +IFLA_VF_VLAN_LIST = 12, +IFLA_VF_BROADCAST = 13, +__IFLA_VF_MAX = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_32 { +IFLA_VF_VLAN_INFO_UNSPEC = 0, +IFLA_VF_VLAN_INFO = 1, +__IFLA_VF_VLAN_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_33 { +IFLA_VF_LINK_STATE_AUTO = 0, +IFLA_VF_LINK_STATE_ENABLE = 1, +IFLA_VF_LINK_STATE_DISABLE = 2, +__IFLA_VF_LINK_STATE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_34 { +IFLA_VF_STATS_RX_PACKETS = 0, +IFLA_VF_STATS_TX_PACKETS = 1, +IFLA_VF_STATS_RX_BYTES = 2, +IFLA_VF_STATS_TX_BYTES = 3, +IFLA_VF_STATS_BROADCAST = 4, +IFLA_VF_STATS_MULTICAST = 5, +IFLA_VF_STATS_PAD = 6, +IFLA_VF_STATS_RX_DROPPED = 7, +IFLA_VF_STATS_TX_DROPPED = 8, +__IFLA_VF_STATS_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_35 { +IFLA_VF_PORT_UNSPEC = 0, +IFLA_VF_PORT = 1, +__IFLA_VF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_36 { +IFLA_PORT_UNSPEC = 0, +IFLA_PORT_VF = 1, +IFLA_PORT_PROFILE = 2, +IFLA_PORT_VSI_TYPE = 3, +IFLA_PORT_INSTANCE_UUID = 4, +IFLA_PORT_HOST_UUID = 5, +IFLA_PORT_REQUEST = 6, +IFLA_PORT_RESPONSE = 7, +__IFLA_PORT_MAX = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_37 { +PORT_REQUEST_PREASSOCIATE = 0, +PORT_REQUEST_PREASSOCIATE_RR = 1, +PORT_REQUEST_ASSOCIATE = 2, +PORT_REQUEST_DISASSOCIATE = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_38 { +PORT_VDP_RESPONSE_SUCCESS = 0, +PORT_VDP_RESPONSE_INVALID_FORMAT = 1, +PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, +PORT_VDP_RESPONSE_UNUSED_VTID = 3, +PORT_VDP_RESPONSE_VTID_VIOLATION = 4, +PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, +PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, +PORT_PROFILE_RESPONSE_SUCCESS = 256, +PORT_PROFILE_RESPONSE_INPROGRESS = 257, +PORT_PROFILE_RESPONSE_INVALID = 258, +PORT_PROFILE_RESPONSE_BADSTATE = 259, +PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, +PORT_PROFILE_RESPONSE_ERROR = 261, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_39 { +IFLA_IPOIB_UNSPEC = 0, +IFLA_IPOIB_PKEY = 1, +IFLA_IPOIB_MODE = 2, +IFLA_IPOIB_UMCAST = 3, +__IFLA_IPOIB_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_40 { +IPOIB_MODE_DATAGRAM = 0, +IPOIB_MODE_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_41 { +HSR_PROTOCOL_HSR = 0, +HSR_PROTOCOL_PRP = 1, +HSR_PROTOCOL_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_42 { +IFLA_HSR_UNSPEC = 0, +IFLA_HSR_SLAVE1 = 1, +IFLA_HSR_SLAVE2 = 2, +IFLA_HSR_MULTICAST_SPEC = 3, +IFLA_HSR_SUPERVISION_ADDR = 4, +IFLA_HSR_SEQ_NR = 5, +IFLA_HSR_VERSION = 6, +IFLA_HSR_PROTOCOL = 7, +IFLA_HSR_INTERLINK = 8, +__IFLA_HSR_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_43 { +IFLA_STATS_UNSPEC = 0, +IFLA_STATS_LINK_64 = 1, +IFLA_STATS_LINK_XSTATS = 2, +IFLA_STATS_LINK_XSTATS_SLAVE = 3, +IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, +IFLA_STATS_AF_SPEC = 5, +__IFLA_STATS_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_44 { +IFLA_STATS_GETSET_UNSPEC = 0, +IFLA_STATS_GET_FILTERS = 1, +IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, +__IFLA_STATS_GETSET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_45 { +LINK_XSTATS_TYPE_UNSPEC = 0, +LINK_XSTATS_TYPE_BRIDGE = 1, +LINK_XSTATS_TYPE_BOND = 2, +__LINK_XSTATS_TYPE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_46 { +IFLA_OFFLOAD_XSTATS_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, +IFLA_OFFLOAD_XSTATS_L3_STATS = 3, +__IFLA_OFFLOAD_XSTATS_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_47 { +IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, +__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_48 { +XDP_ATTACHED_NONE = 0, +XDP_ATTACHED_DRV = 1, +XDP_ATTACHED_SKB = 2, +XDP_ATTACHED_HW = 3, +XDP_ATTACHED_MULTI = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_49 { +IFLA_XDP_UNSPEC = 0, +IFLA_XDP_FD = 1, +IFLA_XDP_ATTACHED = 2, +IFLA_XDP_FLAGS = 3, +IFLA_XDP_PROG_ID = 4, +IFLA_XDP_DRV_PROG_ID = 5, +IFLA_XDP_SKB_PROG_ID = 6, +IFLA_XDP_HW_PROG_ID = 7, +IFLA_XDP_EXPECTED_FD = 8, +__IFLA_XDP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_50 { +IFLA_EVENT_NONE = 0, +IFLA_EVENT_REBOOT = 1, +IFLA_EVENT_FEATURES = 2, +IFLA_EVENT_BONDING_FAILOVER = 3, +IFLA_EVENT_NOTIFY_PEERS = 4, +IFLA_EVENT_IGMP_RESEND = 5, +IFLA_EVENT_BONDING_OPTIONS = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_51 { +IFLA_TUN_UNSPEC = 0, +IFLA_TUN_OWNER = 1, +IFLA_TUN_GROUP = 2, +IFLA_TUN_TYPE = 3, +IFLA_TUN_PI = 4, +IFLA_TUN_VNET_HDR = 5, +IFLA_TUN_PERSIST = 6, +IFLA_TUN_MULTI_QUEUE = 7, +IFLA_TUN_NUM_QUEUES = 8, +IFLA_TUN_NUM_DISABLED_QUEUES = 9, +__IFLA_TUN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_52 { +IFLA_RMNET_UNSPEC = 0, +IFLA_RMNET_MUX_ID = 1, +IFLA_RMNET_FLAGS = 2, +__IFLA_RMNET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_53 { +IFLA_MCTP_UNSPEC = 0, +IFLA_MCTP_NET = 1, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_54 { +IFLA_DSA_UNSPEC = 0, +IFLA_DSA_CONDUIT = 1, +__IFLA_DSA_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ovpn_mode { +OVPN_MODE_P2P = 0, +OVPN_MODE_MP = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_55 { +IFLA_OVPN_UNSPEC = 0, +IFLA_OVPN_MODE = 1, +__IFLA_OVPN_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_56 { +IFA_UNSPEC = 0, +IFA_ADDRESS = 1, +IFA_LOCAL = 2, +IFA_LABEL = 3, +IFA_BROADCAST = 4, +IFA_ANYCAST = 5, +IFA_CACHEINFO = 6, +IFA_MULTICAST = 7, +IFA_FLAGS = 8, +IFA_RT_PRIORITY = 9, +IFA_TARGET_NETNSID = 10, +IFA_PROTO = 11, +__IFA_MAX = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_57 { +NDA_UNSPEC = 0, +NDA_DST = 1, +NDA_LLADDR = 2, +NDA_CACHEINFO = 3, +NDA_PROBES = 4, +NDA_VLAN = 5, +NDA_PORT = 6, +NDA_VNI = 7, +NDA_IFINDEX = 8, +NDA_MASTER = 9, +NDA_LINK_NETNSID = 10, +NDA_SRC_VNI = 11, +NDA_PROTOCOL = 12, +NDA_NH_ID = 13, +NDA_FDB_EXT_ATTRS = 14, +NDA_FLAGS_EXT = 15, +NDA_NDM_STATE_MASK = 16, +NDA_NDM_FLAGS_MASK = 17, +__NDA_MAX = 18, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_58 { +NDTPA_UNSPEC = 0, +NDTPA_IFINDEX = 1, +NDTPA_REFCNT = 2, +NDTPA_REACHABLE_TIME = 3, +NDTPA_BASE_REACHABLE_TIME = 4, +NDTPA_RETRANS_TIME = 5, +NDTPA_GC_STALETIME = 6, +NDTPA_DELAY_PROBE_TIME = 7, +NDTPA_QUEUE_LEN = 8, +NDTPA_APP_PROBES = 9, +NDTPA_UCAST_PROBES = 10, +NDTPA_MCAST_PROBES = 11, +NDTPA_ANYCAST_DELAY = 12, +NDTPA_PROXY_DELAY = 13, +NDTPA_PROXY_QLEN = 14, +NDTPA_LOCKTIME = 15, +NDTPA_QUEUE_LENBYTES = 16, +NDTPA_MCAST_REPROBES = 17, +NDTPA_PAD = 18, +NDTPA_INTERVAL_PROBE_TIME_MS = 19, +__NDTPA_MAX = 20, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_59 { +NDTA_UNSPEC = 0, +NDTA_NAME = 1, +NDTA_THRESH1 = 2, +NDTA_THRESH2 = 3, +NDTA_THRESH3 = 4, +NDTA_CONFIG = 5, +NDTA_PARMS = 6, +NDTA_STATS = 7, +NDTA_GC_INTERVAL = 8, +NDTA_PAD = 9, +__NDTA_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_60 { +FDB_NOTIFY_BIT = 1, +FDB_NOTIFY_INACTIVE_BIT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_61 { +NFEA_UNSPEC = 0, +NFEA_ACTIVITY_NOTIFY = 1, +NFEA_DONT_REFRESH = 2, +__NFEA_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_62 { +RTM_BASE = 16, +RTM_DELLINK = 17, +RTM_GETLINK = 18, +RTM_SETLINK = 19, +RTM_NEWADDR = 20, +RTM_DELADDR = 21, +RTM_GETADDR = 22, +RTM_NEWROUTE = 24, +RTM_DELROUTE = 25, +RTM_GETROUTE = 26, +RTM_NEWNEIGH = 28, +RTM_DELNEIGH = 29, +RTM_GETNEIGH = 30, +RTM_NEWRULE = 32, +RTM_DELRULE = 33, +RTM_GETRULE = 34, +RTM_NEWQDISC = 36, +RTM_DELQDISC = 37, +RTM_GETQDISC = 38, +RTM_NEWTCLASS = 40, +RTM_DELTCLASS = 41, +RTM_GETTCLASS = 42, +RTM_NEWTFILTER = 44, +RTM_DELTFILTER = 45, +RTM_GETTFILTER = 46, +RTM_NEWACTION = 48, +RTM_DELACTION = 49, +RTM_GETACTION = 50, +RTM_NEWPREFIX = 52, +RTM_NEWMULTICAST = 56, +RTM_DELMULTICAST = 57, +RTM_GETMULTICAST = 58, +RTM_NEWANYCAST = 60, +RTM_DELANYCAST = 61, +RTM_GETANYCAST = 62, +RTM_NEWNEIGHTBL = 64, +RTM_GETNEIGHTBL = 66, +RTM_SETNEIGHTBL = 67, +RTM_NEWNDUSEROPT = 68, +RTM_NEWADDRLABEL = 72, +RTM_DELADDRLABEL = 73, +RTM_GETADDRLABEL = 74, +RTM_GETDCB = 78, +RTM_SETDCB = 79, +RTM_NEWNETCONF = 80, +RTM_DELNETCONF = 81, +RTM_GETNETCONF = 82, +RTM_NEWMDB = 84, +RTM_DELMDB = 85, +RTM_GETMDB = 86, +RTM_NEWNSID = 88, +RTM_DELNSID = 89, +RTM_GETNSID = 90, +RTM_NEWSTATS = 92, +RTM_GETSTATS = 94, +RTM_SETSTATS = 95, +RTM_NEWCACHEREPORT = 96, +RTM_NEWCHAIN = 100, +RTM_DELCHAIN = 101, +RTM_GETCHAIN = 102, +RTM_NEWNEXTHOP = 104, +RTM_DELNEXTHOP = 105, +RTM_GETNEXTHOP = 106, +RTM_NEWLINKPROP = 108, +RTM_DELLINKPROP = 109, +RTM_GETLINKPROP = 110, +RTM_NEWVLAN = 112, +RTM_DELVLAN = 113, +RTM_GETVLAN = 114, +RTM_NEWNEXTHOPBUCKET = 116, +RTM_DELNEXTHOPBUCKET = 117, +RTM_GETNEXTHOPBUCKET = 118, +RTM_NEWTUNNEL = 120, +RTM_DELTUNNEL = 121, +RTM_GETTUNNEL = 122, +__RTM_MAX = 123, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_63 { +RTN_UNSPEC = 0, +RTN_UNICAST = 1, +RTN_LOCAL = 2, +RTN_BROADCAST = 3, +RTN_ANYCAST = 4, +RTN_MULTICAST = 5, +RTN_BLACKHOLE = 6, +RTN_UNREACHABLE = 7, +RTN_PROHIBIT = 8, +RTN_THROW = 9, +RTN_NAT = 10, +RTN_XRESOLVE = 11, +__RTN_MAX = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum rt_scope_t { +RT_SCOPE_UNIVERSE = 0, +RT_SCOPE_SITE = 200, +RT_SCOPE_LINK = 253, +RT_SCOPE_HOST = 254, +RT_SCOPE_NOWHERE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum rt_class_t { +RT_TABLE_UNSPEC = 0, +RT_TABLE_COMPAT = 252, +RT_TABLE_DEFAULT = 253, +RT_TABLE_MAIN = 254, +RT_TABLE_LOCAL = 255, +RT_TABLE_MAX = 4294967295, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum rtattr_type_t { +RTA_UNSPEC = 0, +RTA_DST = 1, +RTA_SRC = 2, +RTA_IIF = 3, +RTA_OIF = 4, +RTA_GATEWAY = 5, +RTA_PRIORITY = 6, +RTA_PREFSRC = 7, +RTA_METRICS = 8, +RTA_MULTIPATH = 9, +RTA_PROTOINFO = 10, +RTA_FLOW = 11, +RTA_CACHEINFO = 12, +RTA_SESSION = 13, +RTA_MP_ALGO = 14, +RTA_TABLE = 15, +RTA_MARK = 16, +RTA_MFC_STATS = 17, +RTA_VIA = 18, +RTA_NEWDST = 19, +RTA_PREF = 20, +RTA_ENCAP_TYPE = 21, +RTA_ENCAP = 22, +RTA_EXPIRES = 23, +RTA_PAD = 24, +RTA_UID = 25, +RTA_TTL_PROPAGATE = 26, +RTA_IP_PROTO = 27, +RTA_SPORT = 28, +RTA_DPORT = 29, +RTA_NH_ID = 30, +RTA_FLOWLABEL = 31, +__RTA_MAX = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_64 { +RTAX_UNSPEC = 0, +RTAX_LOCK = 1, +RTAX_MTU = 2, +RTAX_WINDOW = 3, +RTAX_RTT = 4, +RTAX_RTTVAR = 5, +RTAX_SSTHRESH = 6, +RTAX_CWND = 7, +RTAX_ADVMSS = 8, +RTAX_REORDERING = 9, +RTAX_HOPLIMIT = 10, +RTAX_INITCWND = 11, +RTAX_FEATURES = 12, +RTAX_RTO_MIN = 13, +RTAX_INITRWND = 14, +RTAX_QUICKACK = 15, +RTAX_CC_ALGO = 16, +RTAX_FASTOPEN_NO_COOKIE = 17, +__RTAX_MAX = 18, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_65 { +PREFIX_UNSPEC = 0, +PREFIX_ADDRESS = 1, +PREFIX_CACHEINFO = 2, +__PREFIX_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_66 { +TCA_UNSPEC = 0, +TCA_KIND = 1, +TCA_OPTIONS = 2, +TCA_STATS = 3, +TCA_XSTATS = 4, +TCA_RATE = 5, +TCA_FCNT = 6, +TCA_STATS2 = 7, +TCA_STAB = 8, +TCA_PAD = 9, +TCA_DUMP_INVISIBLE = 10, +TCA_CHAIN = 11, +TCA_HW_OFFLOAD = 12, +TCA_INGRESS_BLOCK = 13, +TCA_EGRESS_BLOCK = 14, +TCA_DUMP_FLAGS = 15, +TCA_EXT_WARN_MSG = 16, +__TCA_MAX = 17, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_67 { +NDUSEROPT_UNSPEC = 0, +NDUSEROPT_SRCADDR = 1, +__NDUSEROPT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum rtnetlink_groups { +RTNLGRP_NONE = 0, +RTNLGRP_LINK = 1, +RTNLGRP_NOTIFY = 2, +RTNLGRP_NEIGH = 3, +RTNLGRP_TC = 4, +RTNLGRP_IPV4_IFADDR = 5, +RTNLGRP_IPV4_MROUTE = 6, +RTNLGRP_IPV4_ROUTE = 7, +RTNLGRP_IPV4_RULE = 8, +RTNLGRP_IPV6_IFADDR = 9, +RTNLGRP_IPV6_MROUTE = 10, +RTNLGRP_IPV6_ROUTE = 11, +RTNLGRP_IPV6_IFINFO = 12, +RTNLGRP_DECnet_IFADDR = 13, +RTNLGRP_NOP2 = 14, +RTNLGRP_DECnet_ROUTE = 15, +RTNLGRP_DECnet_RULE = 16, +RTNLGRP_NOP4 = 17, +RTNLGRP_IPV6_PREFIX = 18, +RTNLGRP_IPV6_RULE = 19, +RTNLGRP_ND_USEROPT = 20, +RTNLGRP_PHONET_IFADDR = 21, +RTNLGRP_PHONET_ROUTE = 22, +RTNLGRP_DCB = 23, +RTNLGRP_IPV4_NETCONF = 24, +RTNLGRP_IPV6_NETCONF = 25, +RTNLGRP_MDB = 26, +RTNLGRP_MPLS_ROUTE = 27, +RTNLGRP_NSID = 28, +RTNLGRP_MPLS_NETCONF = 29, +RTNLGRP_IPV4_MROUTE_R = 30, +RTNLGRP_IPV6_MROUTE_R = 31, +RTNLGRP_NEXTHOP = 32, +RTNLGRP_BRVLAN = 33, +RTNLGRP_MCTP_IFADDR = 34, +RTNLGRP_TUNNEL = 35, +RTNLGRP_STATS = 36, +RTNLGRP_IPV4_MCADDR = 37, +RTNLGRP_IPV6_MCADDR = 38, +RTNLGRP_IPV6_ACADDR = 39, +__RTNLGRP_MAX = 40, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_68 { +TCA_ROOT_UNSPEC = 0, +TCA_ROOT_TAB = 1, +TCA_ROOT_FLAGS = 2, +TCA_ROOT_COUNT = 3, +TCA_ROOT_TIME_DELTA = 4, +TCA_ROOT_EXT_WARN_MSG = 5, +__TCA_ROOT_MAX = 6, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __kernel_sockaddr_storage__bindgen_ty_1 { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, +pub __align: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union rta_session__bindgen_ty_1 { +pub ports: rta_session__bindgen_ty_1__bindgen_ty_1, +pub icmpt: rta_session__bindgen_ty_1__bindgen_ty_2, +pub spi: __u32, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl nlmsgerr_attrs { +pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; +} +impl netlink_policy_type_attr { +pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; +} +impl nl80211_commands { +pub const NL80211_CMD_NEW_BEACON: nl80211_commands = nl80211_commands::NL80211_CMD_START_AP; +} +impl nl80211_commands { +pub const NL80211_CMD_DEL_BEACON: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_AP; +} +impl nl80211_commands { +pub const NL80211_CMD_REGISTER_ACTION: nl80211_commands = nl80211_commands::NL80211_CMD_REGISTER_FRAME; +} +impl nl80211_commands { +pub const NL80211_CMD_ACTION: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME; +} +impl nl80211_commands { +pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; +} +impl nl80211_commands { +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +} +impl nl80211_attrs { +pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; +} +impl nl80211_attrs { +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS; +} +impl nl80211_iftype { +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +} +impl nl80211_sta_flags { +pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; +} +impl nl80211_rate_info { +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +} +impl nl80211_sta_bss_param { +pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; +} +impl nl80211_sta_info { +pub const NL80211_STA_INFO_MAX: nl80211_sta_info = nl80211_sta_info::NL80211_STA_INFO_CONNECTED_TO_AS; +} +impl nl80211_tid_stats { +pub const NL80211_TID_STATS_MAX: nl80211_tid_stats = nl80211_tid_stats::NL80211_TID_STATS_TXQ_STATS; +} +impl nl80211_txq_stats { +pub const NL80211_TXQ_STATS_MAX: nl80211_txq_stats = nl80211_txq_stats::NL80211_TXQ_STATS_MAX_FLOWS; +} +impl nl80211_mpath_info { +pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; +} +impl nl80211_band_iftype_attr { +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +} +impl nl80211_band_attr { +pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; +} +impl nl80211_wmm_rule { +pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; +} +impl nl80211_frequency_attr { +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +} +impl nl80211_bitrate_attr { +pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; +} +impl nl80211_reg_rule_attr { +pub const NL80211_REG_RULE_ATTR_MAX: nl80211_reg_rule_attr = nl80211_reg_rule_attr::NL80211_ATTR_POWER_RULE_PSD; +} +impl nl80211_sched_scan_match_attr { +pub const NL80211_SCHED_SCAN_MATCH_ATTR_MAX: nl80211_sched_scan_match_attr = nl80211_sched_scan_match_attr::NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI; +} +impl nl80211_survey_info { +pub const NL80211_SURVEY_INFO_MAX: nl80211_survey_info = nl80211_survey_info::NL80211_SURVEY_INFO_FREQUENCY_OFFSET; +} +impl nl80211_mntr_flags { +pub const NL80211_MNTR_FLAG_MAX: nl80211_mntr_flags = nl80211_mntr_flags::NL80211_MNTR_FLAG_SKIP_TX; +} +impl nl80211_mesh_power_mode { +pub const NL80211_MESH_POWER_MAX: nl80211_mesh_power_mode = nl80211_mesh_power_mode::NL80211_MESH_POWER_DEEP_SLEEP; +} +impl nl80211_meshconf_params { +pub const NL80211_MESHCONF_ATTR_MAX: nl80211_meshconf_params = nl80211_meshconf_params::NL80211_MESHCONF_CONNECTED_TO_AS; +} +impl nl80211_mesh_setup_params { +pub const NL80211_MESH_SETUP_ATTR_MAX: nl80211_mesh_setup_params = nl80211_mesh_setup_params::NL80211_MESH_SETUP_AUTH_PROTOCOL; +} +impl nl80211_txq_attr { +pub const NL80211_TXQ_ATTR_MAX: nl80211_txq_attr = nl80211_txq_attr::NL80211_TXQ_ATTR_AIFS; +} +impl nl80211_bss { +pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; +} +impl nl80211_auth_type { +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +} +impl nl80211_auth_type { +pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; +} +impl nl80211_key_attributes { +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +} +impl nl80211_tx_rate_attributes { +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +} +impl nl80211_attr_cqm { +pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; +} +impl nl80211_tid_config_attr { +pub const NL80211_TID_CONFIG_ATTR_MAX: nl80211_tid_config_attr = nl80211_tid_config_attr::NL80211_TID_CONFIG_ATTR_TX_RATE; +} +impl nl80211_packet_pattern_attr { +pub const MAX_NL80211_PKTPAT: nl80211_packet_pattern_attr = nl80211_packet_pattern_attr::NL80211_PKTPAT_OFFSET; +} +impl nl80211_wowlan_triggers { +pub const MAX_NL80211_WOWLAN_TRIG: nl80211_wowlan_triggers = nl80211_wowlan_triggers::NL80211_WOWLAN_TRIG_UNPROTECTED_DEAUTH_DISASSOC; +} +impl nl80211_wowlan_tcp_attrs { +pub const MAX_NL80211_WOWLAN_TCP: nl80211_wowlan_tcp_attrs = nl80211_wowlan_tcp_attrs::NL80211_WOWLAN_TCP_WAKE_MASK; +} +impl nl80211_attr_coalesce_rule { +pub const NL80211_ATTR_COALESCE_RULE_MAX: nl80211_attr_coalesce_rule = nl80211_attr_coalesce_rule::NL80211_ATTR_COALESCE_RULE_PKT_PATTERN; +} +impl nl80211_iface_limit_attrs { +pub const MAX_NL80211_IFACE_LIMIT: nl80211_iface_limit_attrs = nl80211_iface_limit_attrs::NL80211_IFACE_LIMIT_TYPES; +} +impl nl80211_if_combination_attrs { +pub const MAX_NL80211_IFACE_COMB: nl80211_if_combination_attrs = nl80211_if_combination_attrs::NL80211_IFACE_COMB_BI_MIN_GCD; +} +impl nl80211_plink_state { +pub const MAX_NL80211_PLINK_STATES: nl80211_plink_state = nl80211_plink_state::NL80211_PLINK_BLOCKED; +} +impl nl80211_rekey_data { +pub const MAX_NL80211_REKEY_DATA: nl80211_rekey_data = nl80211_rekey_data::NL80211_REKEY_DATA_AKM; +} +impl nl80211_sta_wme_attr { +pub const NL80211_STA_WME_MAX: nl80211_sta_wme_attr = nl80211_sta_wme_attr::NL80211_STA_WME_MAX_SP; +} +impl nl80211_pmksa_candidate_attr { +pub const MAX_NL80211_PMKSA_CANDIDATE: nl80211_pmksa_candidate_attr = nl80211_pmksa_candidate_attr::NL80211_PMKSA_CANDIDATE_PREAUTH; +} +impl nl80211_ext_feature_index { +pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; +} +impl nl80211_ext_feature_index { +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +} +impl nl80211_smps_mode { +pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; +} +impl nl80211_sched_scan_plan { +pub const NL80211_SCHED_SCAN_PLAN_MAX: nl80211_sched_scan_plan = nl80211_sched_scan_plan::NL80211_SCHED_SCAN_PLAN_ITERATIONS; +} +impl nl80211_bss_select_attr { +pub const NL80211_BSS_SELECT_ATTR_MAX: nl80211_bss_select_attr = nl80211_bss_select_attr::NL80211_BSS_SELECT_ATTR_RSSI_ADJUST; +} +impl nl80211_nan_function_type { +pub const NL80211_NAN_FUNC_MAX_TYPE: nl80211_nan_function_type = nl80211_nan_function_type::NL80211_NAN_FUNC_FOLLOW_UP; +} +impl nl80211_nan_func_attributes { +pub const NL80211_NAN_FUNC_ATTR_MAX: nl80211_nan_func_attributes = nl80211_nan_func_attributes::NL80211_NAN_FUNC_TERM_REASON; +} +impl nl80211_nan_srf_attributes { +pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf_attributes::NL80211_NAN_SRF_MAC_ADDRS; +} +impl nl80211_nan_match_attributes { +pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; +} +impl nl80211_ftm_responder_attributes { +pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; +} +impl nl80211_ftm_responder_stats { +pub const NL80211_FTM_STATS_MAX: nl80211_ftm_responder_stats = nl80211_ftm_responder_stats::NL80211_FTM_STATS_PAD; +} +impl nl80211_peer_measurement_type { +pub const NL80211_PMSR_TYPE_MAX: nl80211_peer_measurement_type = nl80211_peer_measurement_type::NL80211_PMSR_TYPE_FTM; +} +impl nl80211_peer_measurement_req { +pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer_measurement_req::NL80211_PMSR_REQ_ATTR_GET_AP_TSF; +} +impl nl80211_peer_measurement_resp { +pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; +} +impl nl80211_peer_measurement_peer_attrs { +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +} +impl nl80211_peer_measurement_attrs { +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +} +impl nl80211_peer_measurement_ftm_capa { +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +} +impl nl80211_peer_measurement_ftm_req { +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +} +impl nl80211_peer_measurement_ftm_resp { +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +} +impl nl80211_obss_pd_attributes { +pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; +} +impl nl80211_bss_color_attributes { +pub const NL80211_HE_BSS_COLOR_ATTR_MAX: nl80211_bss_color_attributes = nl80211_bss_color_attributes::NL80211_HE_BSS_COLOR_ATTR_PARTIAL; +} +impl nl80211_iftype_akm_attributes { +pub const NL80211_IFTYPE_AKM_ATTR_MAX: nl80211_iftype_akm_attributes = nl80211_iftype_akm_attributes::NL80211_IFTYPE_AKM_ATTR_SUITES; +} +impl nl80211_fils_discovery_attributes { +pub const NL80211_FILS_DISCOVERY_ATTR_MAX: nl80211_fils_discovery_attributes = nl80211_fils_discovery_attributes::NL80211_FILS_DISCOVERY_ATTR_TMPL; +} +impl nl80211_unsol_bcast_probe_resp_attributes { +pub const NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_MAX: nl80211_unsol_bcast_probe_resp_attributes = nl80211_unsol_bcast_probe_resp_attributes::NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_TMPL; +} +impl nl80211_sar_attrs { +pub const NL80211_SAR_ATTR_MAX: nl80211_sar_attrs = nl80211_sar_attrs::NL80211_SAR_ATTR_SPECS; +} +impl nl80211_sar_specs_attrs { +pub const NL80211_SAR_ATTR_SPECS_MAX: nl80211_sar_specs_attrs = nl80211_sar_specs_attrs::NL80211_SAR_ATTR_SPECS_END_FREQ; +} +impl nl80211_mbssid_config_attributes { +pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID; +} +impl nl80211_wiphy_radio_attrs { +pub const NL80211_WIPHY_RADIO_ATTR_MAX: nl80211_wiphy_radio_attrs = nl80211_wiphy_radio_attrs::NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK; +} +impl nl80211_wiphy_radio_freq_range { +pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl80211_wiphy_radio_freq_range::NL80211_WIPHY_RADIO_FREQ_ATTR_END; +} +impl macsec_validation_type { +pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; +} +impl macsec_offload { +pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; +} +impl ifla_vxlan_df { +pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; +} +impl ifla_vxlan_label_policy { +pub const VXLAN_LABEL_MAX: ifla_vxlan_label_policy = ifla_vxlan_label_policy::VXLAN_LABEL_INHERIT; +} +impl ifla_geneve_df { +pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/prctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/prctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..03327ab66852939f148105e8bacc1207785b5046 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/prctl.rs @@ -0,0 +1,269 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_daddr_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct prctl_mm_map { +pub start_code: __u64, +pub end_code: __u64, +pub start_data: __u64, +pub end_data: __u64, +pub start_brk: __u64, +pub brk: __u64, +pub start_stack: __u64, +pub arg_start: __u64, +pub arg_end: __u64, +pub env_start: __u64, +pub env_end: __u64, +pub auxv: *mut __u64, +pub auxv_size: __u32, +pub exe_fd: __u32, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const PR_SET_PDEATHSIG: u32 = 1; +pub const PR_GET_PDEATHSIG: u32 = 2; +pub const PR_GET_DUMPABLE: u32 = 3; +pub const PR_SET_DUMPABLE: u32 = 4; +pub const PR_GET_UNALIGN: u32 = 5; +pub const PR_SET_UNALIGN: u32 = 6; +pub const PR_UNALIGN_NOPRINT: u32 = 1; +pub const PR_UNALIGN_SIGBUS: u32 = 2; +pub const PR_GET_KEEPCAPS: u32 = 7; +pub const PR_SET_KEEPCAPS: u32 = 8; +pub const PR_GET_FPEMU: u32 = 9; +pub const PR_SET_FPEMU: u32 = 10; +pub const PR_FPEMU_NOPRINT: u32 = 1; +pub const PR_FPEMU_SIGFPE: u32 = 2; +pub const PR_GET_FPEXC: u32 = 11; +pub const PR_SET_FPEXC: u32 = 12; +pub const PR_FP_EXC_SW_ENABLE: u32 = 128; +pub const PR_FP_EXC_DIV: u32 = 65536; +pub const PR_FP_EXC_OVF: u32 = 131072; +pub const PR_FP_EXC_UND: u32 = 262144; +pub const PR_FP_EXC_RES: u32 = 524288; +pub const PR_FP_EXC_INV: u32 = 1048576; +pub const PR_FP_EXC_DISABLED: u32 = 0; +pub const PR_FP_EXC_NONRECOV: u32 = 1; +pub const PR_FP_EXC_ASYNC: u32 = 2; +pub const PR_FP_EXC_PRECISE: u32 = 3; +pub const PR_GET_TIMING: u32 = 13; +pub const PR_SET_TIMING: u32 = 14; +pub const PR_TIMING_STATISTICAL: u32 = 0; +pub const PR_TIMING_TIMESTAMP: u32 = 1; +pub const PR_SET_NAME: u32 = 15; +pub const PR_GET_NAME: u32 = 16; +pub const PR_GET_ENDIAN: u32 = 19; +pub const PR_SET_ENDIAN: u32 = 20; +pub const PR_ENDIAN_BIG: u32 = 0; +pub const PR_ENDIAN_LITTLE: u32 = 1; +pub const PR_ENDIAN_PPC_LITTLE: u32 = 2; +pub const PR_GET_SECCOMP: u32 = 21; +pub const PR_SET_SECCOMP: u32 = 22; +pub const PR_CAPBSET_READ: u32 = 23; +pub const PR_CAPBSET_DROP: u32 = 24; +pub const PR_GET_TSC: u32 = 25; +pub const PR_SET_TSC: u32 = 26; +pub const PR_TSC_ENABLE: u32 = 1; +pub const PR_TSC_SIGSEGV: u32 = 2; +pub const PR_GET_SECUREBITS: u32 = 27; +pub const PR_SET_SECUREBITS: u32 = 28; +pub const PR_SET_TIMERSLACK: u32 = 29; +pub const PR_GET_TIMERSLACK: u32 = 30; +pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31; +pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32; +pub const PR_MCE_KILL: u32 = 33; +pub const PR_MCE_KILL_CLEAR: u32 = 0; +pub const PR_MCE_KILL_SET: u32 = 1; +pub const PR_MCE_KILL_LATE: u32 = 0; +pub const PR_MCE_KILL_EARLY: u32 = 1; +pub const PR_MCE_KILL_DEFAULT: u32 = 2; +pub const PR_MCE_KILL_GET: u32 = 34; +pub const PR_SET_MM: u32 = 35; +pub const PR_SET_MM_START_CODE: u32 = 1; +pub const PR_SET_MM_END_CODE: u32 = 2; +pub const PR_SET_MM_START_DATA: u32 = 3; +pub const PR_SET_MM_END_DATA: u32 = 4; +pub const PR_SET_MM_START_STACK: u32 = 5; +pub const PR_SET_MM_START_BRK: u32 = 6; +pub const PR_SET_MM_BRK: u32 = 7; +pub const PR_SET_MM_ARG_START: u32 = 8; +pub const PR_SET_MM_ARG_END: u32 = 9; +pub const PR_SET_MM_ENV_START: u32 = 10; +pub const PR_SET_MM_ENV_END: u32 = 11; +pub const PR_SET_MM_AUXV: u32 = 12; +pub const PR_SET_MM_EXE_FILE: u32 = 13; +pub const PR_SET_MM_MAP: u32 = 14; +pub const PR_SET_MM_MAP_SIZE: u32 = 15; +pub const PR_SET_PTRACER: u32 = 1499557217; +pub const PR_SET_CHILD_SUBREAPER: u32 = 36; +pub const PR_GET_CHILD_SUBREAPER: u32 = 37; +pub const PR_SET_NO_NEW_PRIVS: u32 = 38; +pub const PR_GET_NO_NEW_PRIVS: u32 = 39; +pub const PR_GET_TID_ADDRESS: u32 = 40; +pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_GET_THP_DISABLE: u32 = 42; +pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; +pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; +pub const PR_SET_FP_MODE: u32 = 45; +pub const PR_GET_FP_MODE: u32 = 46; +pub const PR_FP_MODE_FR: u32 = 1; +pub const PR_FP_MODE_FRE: u32 = 2; +pub const PR_CAP_AMBIENT: u32 = 47; +pub const PR_CAP_AMBIENT_IS_SET: u32 = 1; +pub const PR_CAP_AMBIENT_RAISE: u32 = 2; +pub const PR_CAP_AMBIENT_LOWER: u32 = 3; +pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4; +pub const PR_SVE_SET_VL: u32 = 50; +pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SVE_GET_VL: u32 = 51; +pub const PR_SVE_VL_LEN_MASK: u32 = 65535; +pub const PR_SVE_VL_INHERIT: u32 = 131072; +pub const PR_GET_SPECULATION_CTRL: u32 = 52; +pub const PR_SET_SPECULATION_CTRL: u32 = 53; +pub const PR_SPEC_STORE_BYPASS: u32 = 0; +pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1; +pub const PR_SPEC_L1D_FLUSH: u32 = 2; +pub const PR_SPEC_NOT_AFFECTED: u32 = 0; +pub const PR_SPEC_PRCTL: u32 = 1; +pub const PR_SPEC_ENABLE: u32 = 2; +pub const PR_SPEC_DISABLE: u32 = 4; +pub const PR_SPEC_FORCE_DISABLE: u32 = 8; +pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16; +pub const PR_PAC_RESET_KEYS: u32 = 54; +pub const PR_PAC_APIAKEY: u32 = 1; +pub const PR_PAC_APIBKEY: u32 = 2; +pub const PR_PAC_APDAKEY: u32 = 4; +pub const PR_PAC_APDBKEY: u32 = 8; +pub const PR_PAC_APGAKEY: u32 = 16; +pub const PR_SET_TAGGED_ADDR_CTRL: u32 = 55; +pub const PR_GET_TAGGED_ADDR_CTRL: u32 = 56; +pub const PR_TAGGED_ADDR_ENABLE: u32 = 1; +pub const PR_MTE_TCF_NONE: u32 = 0; +pub const PR_MTE_TCF_SYNC: u32 = 2; +pub const PR_MTE_TCF_ASYNC: u32 = 4; +pub const PR_MTE_TCF_MASK: u32 = 6; +pub const PR_MTE_TAG_SHIFT: u32 = 3; +pub const PR_MTE_TAG_MASK: u32 = 524280; +pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_PMLEN_SHIFT: u32 = 24; +pub const PR_PMLEN_MASK: u32 = 2130706432; +pub const PR_SET_IO_FLUSHER: u32 = 57; +pub const PR_GET_IO_FLUSHER: u32 = 58; +pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; +pub const PR_SYS_DISPATCH_OFF: u32 = 0; +pub const PR_SYS_DISPATCH_ON: u32 = 1; +pub const SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; +pub const SYSCALL_DISPATCH_FILTER_BLOCK: u32 = 1; +pub const PR_PAC_SET_ENABLED_KEYS: u32 = 60; +pub const PR_PAC_GET_ENABLED_KEYS: u32 = 61; +pub const PR_SCHED_CORE: u32 = 62; +pub const PR_SCHED_CORE_GET: u32 = 0; +pub const PR_SCHED_CORE_CREATE: u32 = 1; +pub const PR_SCHED_CORE_SHARE_TO: u32 = 2; +pub const PR_SCHED_CORE_SHARE_FROM: u32 = 3; +pub const PR_SCHED_CORE_MAX: u32 = 4; +pub const PR_SCHED_CORE_SCOPE_THREAD: u32 = 0; +pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: u32 = 1; +pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: u32 = 2; +pub const PR_SME_SET_VL: u32 = 63; +pub const PR_SME_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SME_GET_VL: u32 = 64; +pub const PR_SME_VL_LEN_MASK: u32 = 65535; +pub const PR_SME_VL_INHERIT: u32 = 131072; +pub const PR_SET_MDWE: u32 = 65; +pub const PR_MDWE_REFUSE_EXEC_GAIN: u32 = 1; +pub const PR_MDWE_NO_INHERIT: u32 = 2; +pub const PR_GET_MDWE: u32 = 66; +pub const PR_SET_VMA: u32 = 1398164801; +pub const PR_SET_VMA_ANON_NAME: u32 = 0; +pub const PR_GET_AUXV: u32 = 1096112214; +pub const PR_SET_MEMORY_MERGE: u32 = 67; +pub const PR_GET_MEMORY_MERGE: u32 = 68; +pub const PR_RISCV_V_SET_CONTROL: u32 = 69; +pub const PR_RISCV_V_GET_CONTROL: u32 = 70; +pub const PR_RISCV_V_VSTATE_CTRL_DEFAULT: u32 = 0; +pub const PR_RISCV_V_VSTATE_CTRL_OFF: u32 = 1; +pub const PR_RISCV_V_VSTATE_CTRL_ON: u32 = 2; +pub const PR_RISCV_V_VSTATE_CTRL_INHERIT: u32 = 16; +pub const PR_RISCV_V_VSTATE_CTRL_CUR_MASK: u32 = 3; +pub const PR_RISCV_V_VSTATE_CTRL_NEXT_MASK: u32 = 12; +pub const PR_RISCV_V_VSTATE_CTRL_MASK: u32 = 31; +pub const PR_RISCV_SET_ICACHE_FLUSH_CTX: u32 = 71; +pub const PR_RISCV_CTX_SW_FENCEI_ON: u32 = 0; +pub const PR_RISCV_CTX_SW_FENCEI_OFF: u32 = 1; +pub const PR_RISCV_SCOPE_PER_PROCESS: u32 = 0; +pub const PR_RISCV_SCOPE_PER_THREAD: u32 = 1; +pub const PR_PPC_GET_DEXCR: u32 = 72; +pub const PR_PPC_SET_DEXCR: u32 = 73; +pub const PR_PPC_DEXCR_SBHE: u32 = 0; +pub const PR_PPC_DEXCR_IBRTPD: u32 = 1; +pub const PR_PPC_DEXCR_SRAPD: u32 = 2; +pub const PR_PPC_DEXCR_NPHIE: u32 = 3; +pub const PR_PPC_DEXCR_CTRL_EDITABLE: u32 = 1; +pub const PR_PPC_DEXCR_CTRL_SET: u32 = 2; +pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; +pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; +pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; +pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; +pub const PR_GET_SHADOW_STACK_STATUS: u32 = 74; +pub const PR_SET_SHADOW_STACK_STATUS: u32 = 75; +pub const PR_SHADOW_STACK_ENABLE: u32 = 1; +pub const PR_SHADOW_STACK_WRITE: u32 = 2; +pub const PR_SHADOW_STACK_PUSH: u32 = 4; +pub const PR_LOCK_SHADOW_STACK_STATUS: u32 = 76; +pub const PR_TIMER_CREATE_RESTORE_IDS: u32 = 77; +pub const PR_TIMER_CREATE_RESTORE_IDS_OFF: u32 = 0; +pub const PR_TIMER_CREATE_RESTORE_IDS_ON: u32 = 1; +pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; +pub const PR_FUTEX_HASH: u32 = 78; +pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; +pub const FH_FLAG_IMMUTABLE: u32 = 1; +pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_FUTEX_HASH_GET_IMMUTABLE: u32 = 3; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/ptrace.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/ptrace.rs new file mode 100644 index 0000000000000000000000000000000000000000..cd6bd93563500cecdc949fc848a1371aa2525242 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/ptrace.rs @@ -0,0 +1,998 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_daddr_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Copy, Clone)] +pub struct audit_status { +pub mask: __u32, +pub enabled: __u32, +pub failure: __u32, +pub pid: __u32, +pub rate_limit: __u32, +pub backlog_limit: __u32, +pub lost: __u32, +pub backlog: __u32, +pub __bindgen_anon_1: audit_status__bindgen_ty_1, +pub backlog_wait_time: __u32, +pub backlog_wait_time_actual: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct audit_features { +pub vers: __u32, +pub mask: __u32, +pub features: __u32, +pub lock: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct audit_tty_status { +pub enabled: __u32, +pub log_passwd: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct audit_rule_data { +pub flags: __u32, +pub action: __u32, +pub field_count: __u32, +pub mask: [__u32; 64usize], +pub fields: [__u32; 64usize], +pub values: [__u32; 64usize], +pub fieldflags: [__u32; 64usize], +pub buflen: __u32, +pub buf: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sock_filter { +pub code: __u16, +pub jt: __u8, +pub jf: __u8, +pub k: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sock_fprog { +pub len: crate::ctypes::c_ushort, +pub filter: *mut sock_filter, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_peeksiginfo_args { +pub off: __u64, +pub flags: __u32, +pub nr: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_metadata { +pub filter_off: __u64, +pub flags: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ptrace_syscall_info { +pub op: __u8, +pub reserved: __u8, +pub flags: __u16, +pub arch: __u32, +pub instruction_pointer: __u64, +pub stack_pointer: __u64, +pub __bindgen_anon_1: ptrace_syscall_info__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_syscall_info__bindgen_ty_1__bindgen_ty_1 { +pub nr: __u64, +pub args: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_syscall_info__bindgen_ty_1__bindgen_ty_2 { +pub rval: __s64, +pub is_error: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_syscall_info__bindgen_ty_1__bindgen_ty_3 { +pub nr: __u64, +pub args: [__u64; 6usize], +pub ret_data: __u32, +pub reserved2: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_rseq_configuration { +pub rseq_abi_pointer: __u64, +pub rseq_abi_size: __u32, +pub signature: __u32, +pub flags: __u32, +pub pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_sud_config { +pub mode: __u64, +pub selector: __u64, +pub offset: __u64, +pub len: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pt_regs { +pub psr: crate::ctypes::c_ulong, +pub pc: crate::ctypes::c_ulong, +pub npc: crate::ctypes::c_ulong, +pub y: crate::ctypes::c_ulong, +pub u_regs: [crate::ctypes::c_ulong; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct reg_window32 { +pub locals: [crate::ctypes::c_ulong; 8usize], +pub ins: [crate::ctypes::c_ulong; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sparc_stackf { +pub locals: [crate::ctypes::c_ulong; 8usize], +pub ins: [crate::ctypes::c_ulong; 6usize], +pub fp: *mut sparc_stackf, +pub callers_pc: crate::ctypes::c_ulong, +pub structptr: *mut crate::ctypes::c_char, +pub xargs: [crate::ctypes::c_ulong; 6usize], +pub xxargs: [crate::ctypes::c_ulong; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_data { +pub nr: crate::ctypes::c_int, +pub arch: __u32, +pub instruction_pointer: __u64, +pub args: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif_sizes { +pub seccomp_notif: __u16, +pub seccomp_notif_resp: __u16, +pub seccomp_data: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif { +pub id: __u64, +pub pid: __u32, +pub flags: __u32, +pub data: seccomp_data, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif_resp { +pub id: __u64, +pub val: __s64, +pub error: __s32, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif_addfd { +pub id: __u64, +pub flags: __u32, +pub srcfd: __u32, +pub newfd: __u32, +pub newfd_flags: __u32, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const EM_NONE: u32 = 0; +pub const EM_M32: u32 = 1; +pub const EM_SPARC: u32 = 2; +pub const EM_386: u32 = 3; +pub const EM_68K: u32 = 4; +pub const EM_88K: u32 = 5; +pub const EM_486: u32 = 6; +pub const EM_860: u32 = 7; +pub const EM_MIPS: u32 = 8; +pub const EM_MIPS_RS3_LE: u32 = 10; +pub const EM_MIPS_RS4_BE: u32 = 10; +pub const EM_PARISC: u32 = 15; +pub const EM_SPARC32PLUS: u32 = 18; +pub const EM_PPC: u32 = 20; +pub const EM_PPC64: u32 = 21; +pub const EM_SPU: u32 = 23; +pub const EM_ARM: u32 = 40; +pub const EM_SH: u32 = 42; +pub const EM_SPARCV9: u32 = 43; +pub const EM_H8_300: u32 = 46; +pub const EM_IA_64: u32 = 50; +pub const EM_X86_64: u32 = 62; +pub const EM_S390: u32 = 22; +pub const EM_CRIS: u32 = 76; +pub const EM_M32R: u32 = 88; +pub const EM_MN10300: u32 = 89; +pub const EM_OPENRISC: u32 = 92; +pub const EM_ARCOMPACT: u32 = 93; +pub const EM_XTENSA: u32 = 94; +pub const EM_BLACKFIN: u32 = 106; +pub const EM_UNICORE: u32 = 110; +pub const EM_ALTERA_NIOS2: u32 = 113; +pub const EM_TI_C6000: u32 = 140; +pub const EM_HEXAGON: u32 = 164; +pub const EM_NDS32: u32 = 167; +pub const EM_AARCH64: u32 = 183; +pub const EM_TILEPRO: u32 = 188; +pub const EM_MICROBLAZE: u32 = 189; +pub const EM_TILEGX: u32 = 191; +pub const EM_ARCV2: u32 = 195; +pub const EM_RISCV: u32 = 243; +pub const EM_BPF: u32 = 247; +pub const EM_CSKY: u32 = 252; +pub const EM_LOONGARCH: u32 = 258; +pub const EM_FRV: u32 = 21569; +pub const EM_ALPHA: u32 = 36902; +pub const EM_CYGNUS_M32R: u32 = 36929; +pub const EM_S390_OLD: u32 = 41872; +pub const EM_CYGNUS_MN10300: u32 = 48879; +pub const AUDIT_GET: u32 = 1000; +pub const AUDIT_SET: u32 = 1001; +pub const AUDIT_LIST: u32 = 1002; +pub const AUDIT_ADD: u32 = 1003; +pub const AUDIT_DEL: u32 = 1004; +pub const AUDIT_USER: u32 = 1005; +pub const AUDIT_LOGIN: u32 = 1006; +pub const AUDIT_WATCH_INS: u32 = 1007; +pub const AUDIT_WATCH_REM: u32 = 1008; +pub const AUDIT_WATCH_LIST: u32 = 1009; +pub const AUDIT_SIGNAL_INFO: u32 = 1010; +pub const AUDIT_ADD_RULE: u32 = 1011; +pub const AUDIT_DEL_RULE: u32 = 1012; +pub const AUDIT_LIST_RULES: u32 = 1013; +pub const AUDIT_TRIM: u32 = 1014; +pub const AUDIT_MAKE_EQUIV: u32 = 1015; +pub const AUDIT_TTY_GET: u32 = 1016; +pub const AUDIT_TTY_SET: u32 = 1017; +pub const AUDIT_SET_FEATURE: u32 = 1018; +pub const AUDIT_GET_FEATURE: u32 = 1019; +pub const AUDIT_FIRST_USER_MSG: u32 = 1100; +pub const AUDIT_USER_AVC: u32 = 1107; +pub const AUDIT_USER_TTY: u32 = 1124; +pub const AUDIT_LAST_USER_MSG: u32 = 1199; +pub const AUDIT_FIRST_USER_MSG2: u32 = 2100; +pub const AUDIT_LAST_USER_MSG2: u32 = 2999; +pub const AUDIT_DAEMON_START: u32 = 1200; +pub const AUDIT_DAEMON_END: u32 = 1201; +pub const AUDIT_DAEMON_ABORT: u32 = 1202; +pub const AUDIT_DAEMON_CONFIG: u32 = 1203; +pub const AUDIT_SYSCALL: u32 = 1300; +pub const AUDIT_PATH: u32 = 1302; +pub const AUDIT_IPC: u32 = 1303; +pub const AUDIT_SOCKETCALL: u32 = 1304; +pub const AUDIT_CONFIG_CHANGE: u32 = 1305; +pub const AUDIT_SOCKADDR: u32 = 1306; +pub const AUDIT_CWD: u32 = 1307; +pub const AUDIT_EXECVE: u32 = 1309; +pub const AUDIT_IPC_SET_PERM: u32 = 1311; +pub const AUDIT_MQ_OPEN: u32 = 1312; +pub const AUDIT_MQ_SENDRECV: u32 = 1313; +pub const AUDIT_MQ_NOTIFY: u32 = 1314; +pub const AUDIT_MQ_GETSETATTR: u32 = 1315; +pub const AUDIT_KERNEL_OTHER: u32 = 1316; +pub const AUDIT_FD_PAIR: u32 = 1317; +pub const AUDIT_OBJ_PID: u32 = 1318; +pub const AUDIT_TTY: u32 = 1319; +pub const AUDIT_EOE: u32 = 1320; +pub const AUDIT_BPRM_FCAPS: u32 = 1321; +pub const AUDIT_CAPSET: u32 = 1322; +pub const AUDIT_MMAP: u32 = 1323; +pub const AUDIT_NETFILTER_PKT: u32 = 1324; +pub const AUDIT_NETFILTER_CFG: u32 = 1325; +pub const AUDIT_SECCOMP: u32 = 1326; +pub const AUDIT_PROCTITLE: u32 = 1327; +pub const AUDIT_FEATURE_CHANGE: u32 = 1328; +pub const AUDIT_REPLACE: u32 = 1329; +pub const AUDIT_KERN_MODULE: u32 = 1330; +pub const AUDIT_FANOTIFY: u32 = 1331; +pub const AUDIT_TIME_INJOFFSET: u32 = 1332; +pub const AUDIT_TIME_ADJNTPVAL: u32 = 1333; +pub const AUDIT_BPF: u32 = 1334; +pub const AUDIT_EVENT_LISTENER: u32 = 1335; +pub const AUDIT_URINGOP: u32 = 1336; +pub const AUDIT_OPENAT2: u32 = 1337; +pub const AUDIT_DM_CTRL: u32 = 1338; +pub const AUDIT_DM_EVENT: u32 = 1339; +pub const AUDIT_AVC: u32 = 1400; +pub const AUDIT_SELINUX_ERR: u32 = 1401; +pub const AUDIT_AVC_PATH: u32 = 1402; +pub const AUDIT_MAC_POLICY_LOAD: u32 = 1403; +pub const AUDIT_MAC_STATUS: u32 = 1404; +pub const AUDIT_MAC_CONFIG_CHANGE: u32 = 1405; +pub const AUDIT_MAC_UNLBL_ALLOW: u32 = 1406; +pub const AUDIT_MAC_CIPSOV4_ADD: u32 = 1407; +pub const AUDIT_MAC_CIPSOV4_DEL: u32 = 1408; +pub const AUDIT_MAC_MAP_ADD: u32 = 1409; +pub const AUDIT_MAC_MAP_DEL: u32 = 1410; +pub const AUDIT_MAC_IPSEC_ADDSA: u32 = 1411; +pub const AUDIT_MAC_IPSEC_DELSA: u32 = 1412; +pub const AUDIT_MAC_IPSEC_ADDSPD: u32 = 1413; +pub const AUDIT_MAC_IPSEC_DELSPD: u32 = 1414; +pub const AUDIT_MAC_IPSEC_EVENT: u32 = 1415; +pub const AUDIT_MAC_UNLBL_STCADD: u32 = 1416; +pub const AUDIT_MAC_UNLBL_STCDEL: u32 = 1417; +pub const AUDIT_MAC_CALIPSO_ADD: u32 = 1418; +pub const AUDIT_MAC_CALIPSO_DEL: u32 = 1419; +pub const AUDIT_IPE_ACCESS: u32 = 1420; +pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; +pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; +pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; +pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; +pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; +pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; +pub const AUDIT_ANOM_ABEND: u32 = 1701; +pub const AUDIT_ANOM_LINK: u32 = 1702; +pub const AUDIT_ANOM_CREAT: u32 = 1703; +pub const AUDIT_INTEGRITY_DATA: u32 = 1800; +pub const AUDIT_INTEGRITY_METADATA: u32 = 1801; +pub const AUDIT_INTEGRITY_STATUS: u32 = 1802; +pub const AUDIT_INTEGRITY_HASH: u32 = 1803; +pub const AUDIT_INTEGRITY_PCR: u32 = 1804; +pub const AUDIT_INTEGRITY_RULE: u32 = 1805; +pub const AUDIT_INTEGRITY_EVM_XATTR: u32 = 1806; +pub const AUDIT_INTEGRITY_POLICY_RULE: u32 = 1807; +pub const AUDIT_INTEGRITY_USERSPACE: u32 = 1808; +pub const AUDIT_KERNEL: u32 = 2000; +pub const AUDIT_FILTER_USER: u32 = 0; +pub const AUDIT_FILTER_TASK: u32 = 1; +pub const AUDIT_FILTER_ENTRY: u32 = 2; +pub const AUDIT_FILTER_WATCH: u32 = 3; +pub const AUDIT_FILTER_EXIT: u32 = 4; +pub const AUDIT_FILTER_EXCLUDE: u32 = 5; +pub const AUDIT_FILTER_TYPE: u32 = 5; +pub const AUDIT_FILTER_FS: u32 = 6; +pub const AUDIT_FILTER_URING_EXIT: u32 = 7; +pub const AUDIT_NR_FILTERS: u32 = 8; +pub const AUDIT_FILTER_PREPEND: u32 = 16; +pub const AUDIT_NEVER: u32 = 0; +pub const AUDIT_POSSIBLE: u32 = 1; +pub const AUDIT_ALWAYS: u32 = 2; +pub const AUDIT_MAX_FIELDS: u32 = 64; +pub const AUDIT_MAX_KEY_LEN: u32 = 256; +pub const AUDIT_BITMASK_SIZE: u32 = 64; +pub const AUDIT_SYSCALL_CLASSES: u32 = 16; +pub const AUDIT_CLASS_DIR_WRITE: u32 = 0; +pub const AUDIT_CLASS_DIR_WRITE_32: u32 = 1; +pub const AUDIT_CLASS_CHATTR: u32 = 2; +pub const AUDIT_CLASS_CHATTR_32: u32 = 3; +pub const AUDIT_CLASS_READ: u32 = 4; +pub const AUDIT_CLASS_READ_32: u32 = 5; +pub const AUDIT_CLASS_WRITE: u32 = 6; +pub const AUDIT_CLASS_WRITE_32: u32 = 7; +pub const AUDIT_CLASS_SIGNAL: u32 = 8; +pub const AUDIT_CLASS_SIGNAL_32: u32 = 9; +pub const AUDIT_UNUSED_BITS: u32 = 134216704; +pub const AUDIT_COMPARE_UID_TO_OBJ_UID: u32 = 1; +pub const AUDIT_COMPARE_GID_TO_OBJ_GID: u32 = 2; +pub const AUDIT_COMPARE_EUID_TO_OBJ_UID: u32 = 3; +pub const AUDIT_COMPARE_EGID_TO_OBJ_GID: u32 = 4; +pub const AUDIT_COMPARE_AUID_TO_OBJ_UID: u32 = 5; +pub const AUDIT_COMPARE_SUID_TO_OBJ_UID: u32 = 6; +pub const AUDIT_COMPARE_SGID_TO_OBJ_GID: u32 = 7; +pub const AUDIT_COMPARE_FSUID_TO_OBJ_UID: u32 = 8; +pub const AUDIT_COMPARE_FSGID_TO_OBJ_GID: u32 = 9; +pub const AUDIT_COMPARE_UID_TO_AUID: u32 = 10; +pub const AUDIT_COMPARE_UID_TO_EUID: u32 = 11; +pub const AUDIT_COMPARE_UID_TO_FSUID: u32 = 12; +pub const AUDIT_COMPARE_UID_TO_SUID: u32 = 13; +pub const AUDIT_COMPARE_AUID_TO_FSUID: u32 = 14; +pub const AUDIT_COMPARE_AUID_TO_SUID: u32 = 15; +pub const AUDIT_COMPARE_AUID_TO_EUID: u32 = 16; +pub const AUDIT_COMPARE_EUID_TO_SUID: u32 = 17; +pub const AUDIT_COMPARE_EUID_TO_FSUID: u32 = 18; +pub const AUDIT_COMPARE_SUID_TO_FSUID: u32 = 19; +pub const AUDIT_COMPARE_GID_TO_EGID: u32 = 20; +pub const AUDIT_COMPARE_GID_TO_FSGID: u32 = 21; +pub const AUDIT_COMPARE_GID_TO_SGID: u32 = 22; +pub const AUDIT_COMPARE_EGID_TO_FSGID: u32 = 23; +pub const AUDIT_COMPARE_EGID_TO_SGID: u32 = 24; +pub const AUDIT_COMPARE_SGID_TO_FSGID: u32 = 25; +pub const AUDIT_MAX_FIELD_COMPARE: u32 = 25; +pub const AUDIT_PID: u32 = 0; +pub const AUDIT_UID: u32 = 1; +pub const AUDIT_EUID: u32 = 2; +pub const AUDIT_SUID: u32 = 3; +pub const AUDIT_FSUID: u32 = 4; +pub const AUDIT_GID: u32 = 5; +pub const AUDIT_EGID: u32 = 6; +pub const AUDIT_SGID: u32 = 7; +pub const AUDIT_FSGID: u32 = 8; +pub const AUDIT_LOGINUID: u32 = 9; +pub const AUDIT_PERS: u32 = 10; +pub const AUDIT_ARCH: u32 = 11; +pub const AUDIT_MSGTYPE: u32 = 12; +pub const AUDIT_SUBJ_USER: u32 = 13; +pub const AUDIT_SUBJ_ROLE: u32 = 14; +pub const AUDIT_SUBJ_TYPE: u32 = 15; +pub const AUDIT_SUBJ_SEN: u32 = 16; +pub const AUDIT_SUBJ_CLR: u32 = 17; +pub const AUDIT_PPID: u32 = 18; +pub const AUDIT_OBJ_USER: u32 = 19; +pub const AUDIT_OBJ_ROLE: u32 = 20; +pub const AUDIT_OBJ_TYPE: u32 = 21; +pub const AUDIT_OBJ_LEV_LOW: u32 = 22; +pub const AUDIT_OBJ_LEV_HIGH: u32 = 23; +pub const AUDIT_LOGINUID_SET: u32 = 24; +pub const AUDIT_SESSIONID: u32 = 25; +pub const AUDIT_FSTYPE: u32 = 26; +pub const AUDIT_DEVMAJOR: u32 = 100; +pub const AUDIT_DEVMINOR: u32 = 101; +pub const AUDIT_INODE: u32 = 102; +pub const AUDIT_EXIT: u32 = 103; +pub const AUDIT_SUCCESS: u32 = 104; +pub const AUDIT_WATCH: u32 = 105; +pub const AUDIT_PERM: u32 = 106; +pub const AUDIT_DIR: u32 = 107; +pub const AUDIT_FILETYPE: u32 = 108; +pub const AUDIT_OBJ_UID: u32 = 109; +pub const AUDIT_OBJ_GID: u32 = 110; +pub const AUDIT_FIELD_COMPARE: u32 = 111; +pub const AUDIT_EXE: u32 = 112; +pub const AUDIT_SADDR_FAM: u32 = 113; +pub const AUDIT_ARG0: u32 = 200; +pub const AUDIT_ARG1: u32 = 201; +pub const AUDIT_ARG2: u32 = 202; +pub const AUDIT_ARG3: u32 = 203; +pub const AUDIT_FILTERKEY: u32 = 210; +pub const AUDIT_NEGATE: u32 = 2147483648; +pub const AUDIT_BIT_MASK: u32 = 134217728; +pub const AUDIT_LESS_THAN: u32 = 268435456; +pub const AUDIT_GREATER_THAN: u32 = 536870912; +pub const AUDIT_NOT_EQUAL: u32 = 805306368; +pub const AUDIT_EQUAL: u32 = 1073741824; +pub const AUDIT_BIT_TEST: u32 = 1207959552; +pub const AUDIT_LESS_THAN_OR_EQUAL: u32 = 1342177280; +pub const AUDIT_GREATER_THAN_OR_EQUAL: u32 = 1610612736; +pub const AUDIT_OPERATORS: u32 = 2013265920; +pub const AUDIT_STATUS_ENABLED: u32 = 1; +pub const AUDIT_STATUS_FAILURE: u32 = 2; +pub const AUDIT_STATUS_PID: u32 = 4; +pub const AUDIT_STATUS_RATE_LIMIT: u32 = 8; +pub const AUDIT_STATUS_BACKLOG_LIMIT: u32 = 16; +pub const AUDIT_STATUS_BACKLOG_WAIT_TIME: u32 = 32; +pub const AUDIT_STATUS_LOST: u32 = 64; +pub const AUDIT_STATUS_BACKLOG_WAIT_TIME_ACTUAL: u32 = 128; +pub const AUDIT_FEATURE_BITMAP_BACKLOG_LIMIT: u32 = 1; +pub const AUDIT_FEATURE_BITMAP_BACKLOG_WAIT_TIME: u32 = 2; +pub const AUDIT_FEATURE_BITMAP_EXECUTABLE_PATH: u32 = 4; +pub const AUDIT_FEATURE_BITMAP_EXCLUDE_EXTEND: u32 = 8; +pub const AUDIT_FEATURE_BITMAP_SESSIONID_FILTER: u32 = 16; +pub const AUDIT_FEATURE_BITMAP_LOST_RESET: u32 = 32; +pub const AUDIT_FEATURE_BITMAP_FILTER_FS: u32 = 64; +pub const AUDIT_FEATURE_BITMAP_ALL: u32 = 127; +pub const AUDIT_VERSION_LATEST: u32 = 127; +pub const AUDIT_VERSION_BACKLOG_LIMIT: u32 = 1; +pub const AUDIT_VERSION_BACKLOG_WAIT_TIME: u32 = 2; +pub const AUDIT_FAIL_SILENT: u32 = 0; +pub const AUDIT_FAIL_PRINTK: u32 = 1; +pub const AUDIT_FAIL_PANIC: u32 = 2; +pub const __AUDIT_ARCH_CONVENTION_MASK: u32 = 805306368; +pub const __AUDIT_ARCH_CONVENTION_MIPS64_N32: u32 = 536870912; +pub const __AUDIT_ARCH_64BIT: u32 = 2147483648; +pub const __AUDIT_ARCH_LE: u32 = 1073741824; +pub const AUDIT_ARCH_AARCH64: u32 = 3221225655; +pub const AUDIT_ARCH_ALPHA: u32 = 3221262374; +pub const AUDIT_ARCH_ARCOMPACT: u32 = 1073741917; +pub const AUDIT_ARCH_ARCOMPACTBE: u32 = 93; +pub const AUDIT_ARCH_ARCV2: u32 = 1073742019; +pub const AUDIT_ARCH_ARCV2BE: u32 = 195; +pub const AUDIT_ARCH_ARM: u32 = 1073741864; +pub const AUDIT_ARCH_ARMEB: u32 = 40; +pub const AUDIT_ARCH_C6X: u32 = 1073741964; +pub const AUDIT_ARCH_C6XBE: u32 = 140; +pub const AUDIT_ARCH_CRIS: u32 = 1073741900; +pub const AUDIT_ARCH_CSKY: u32 = 1073742076; +pub const AUDIT_ARCH_FRV: u32 = 21569; +pub const AUDIT_ARCH_H8300: u32 = 46; +pub const AUDIT_ARCH_HEXAGON: u32 = 164; +pub const AUDIT_ARCH_I386: u32 = 1073741827; +pub const AUDIT_ARCH_IA64: u32 = 3221225522; +pub const AUDIT_ARCH_M32R: u32 = 88; +pub const AUDIT_ARCH_M68K: u32 = 4; +pub const AUDIT_ARCH_MICROBLAZE: u32 = 189; +pub const AUDIT_ARCH_MIPS: u32 = 8; +pub const AUDIT_ARCH_MIPSEL: u32 = 1073741832; +pub const AUDIT_ARCH_MIPS64: u32 = 2147483656; +pub const AUDIT_ARCH_MIPS64N32: u32 = 2684354568; +pub const AUDIT_ARCH_MIPSEL64: u32 = 3221225480; +pub const AUDIT_ARCH_MIPSEL64N32: u32 = 3758096392; +pub const AUDIT_ARCH_NDS32: u32 = 1073741991; +pub const AUDIT_ARCH_NDS32BE: u32 = 167; +pub const AUDIT_ARCH_NIOS2: u32 = 1073741937; +pub const AUDIT_ARCH_OPENRISC: u32 = 92; +pub const AUDIT_ARCH_PARISC: u32 = 15; +pub const AUDIT_ARCH_PARISC64: u32 = 2147483663; +pub const AUDIT_ARCH_PPC: u32 = 20; +pub const AUDIT_ARCH_PPC64: u32 = 2147483669; +pub const AUDIT_ARCH_PPC64LE: u32 = 3221225493; +pub const AUDIT_ARCH_RISCV32: u32 = 1073742067; +pub const AUDIT_ARCH_RISCV64: u32 = 3221225715; +pub const AUDIT_ARCH_S390: u32 = 22; +pub const AUDIT_ARCH_S390X: u32 = 2147483670; +pub const AUDIT_ARCH_SH: u32 = 42; +pub const AUDIT_ARCH_SHEL: u32 = 1073741866; +pub const AUDIT_ARCH_SH64: u32 = 2147483690; +pub const AUDIT_ARCH_SHEL64: u32 = 3221225514; +pub const AUDIT_ARCH_SPARC: u32 = 2; +pub const AUDIT_ARCH_SPARC64: u32 = 2147483691; +pub const AUDIT_ARCH_TILEGX: u32 = 3221225663; +pub const AUDIT_ARCH_TILEGX32: u32 = 1073742015; +pub const AUDIT_ARCH_TILEPRO: u32 = 1073742012; +pub const AUDIT_ARCH_UNICORE: u32 = 1073741934; +pub const AUDIT_ARCH_X86_64: u32 = 3221225534; +pub const AUDIT_ARCH_XTENSA: u32 = 94; +pub const AUDIT_ARCH_LOONGARCH32: u32 = 1073742082; +pub const AUDIT_ARCH_LOONGARCH64: u32 = 3221225730; +pub const AUDIT_PERM_EXEC: u32 = 1; +pub const AUDIT_PERM_WRITE: u32 = 2; +pub const AUDIT_PERM_READ: u32 = 4; +pub const AUDIT_PERM_ATTR: u32 = 8; +pub const AUDIT_MESSAGE_TEXT_MAX: u32 = 8560; +pub const AUDIT_FEATURE_VERSION: u32 = 1; +pub const AUDIT_FEATURE_ONLY_UNSET_LOGINUID: u32 = 0; +pub const AUDIT_FEATURE_LOGINUID_IMMUTABLE: u32 = 1; +pub const AUDIT_LAST_FEATURE: u32 = 1; +pub const BPF_LD: u32 = 0; +pub const BPF_LDX: u32 = 1; +pub const BPF_ST: u32 = 2; +pub const BPF_STX: u32 = 3; +pub const BPF_ALU: u32 = 4; +pub const BPF_JMP: u32 = 5; +pub const BPF_RET: u32 = 6; +pub const BPF_MISC: u32 = 7; +pub const BPF_W: u32 = 0; +pub const BPF_H: u32 = 8; +pub const BPF_B: u32 = 16; +pub const BPF_IMM: u32 = 0; +pub const BPF_ABS: u32 = 32; +pub const BPF_IND: u32 = 64; +pub const BPF_MEM: u32 = 96; +pub const BPF_LEN: u32 = 128; +pub const BPF_MSH: u32 = 160; +pub const BPF_ADD: u32 = 0; +pub const BPF_SUB: u32 = 16; +pub const BPF_MUL: u32 = 32; +pub const BPF_DIV: u32 = 48; +pub const BPF_OR: u32 = 64; +pub const BPF_AND: u32 = 80; +pub const BPF_LSH: u32 = 96; +pub const BPF_RSH: u32 = 112; +pub const BPF_NEG: u32 = 128; +pub const BPF_MOD: u32 = 144; +pub const BPF_XOR: u32 = 160; +pub const BPF_JA: u32 = 0; +pub const BPF_JEQ: u32 = 16; +pub const BPF_JGT: u32 = 32; +pub const BPF_JGE: u32 = 48; +pub const BPF_JSET: u32 = 64; +pub const BPF_K: u32 = 0; +pub const BPF_X: u32 = 8; +pub const BPF_MAXINSNS: u32 = 4096; +pub const BPF_MAJOR_VERSION: u32 = 1; +pub const BPF_MINOR_VERSION: u32 = 1; +pub const BPF_A: u32 = 16; +pub const BPF_TAX: u32 = 0; +pub const BPF_TXA: u32 = 128; +pub const BPF_MEMWORDS: u32 = 16; +pub const SKF_AD_OFF: i32 = -4096; +pub const SKF_AD_PROTOCOL: u32 = 0; +pub const SKF_AD_PKTTYPE: u32 = 4; +pub const SKF_AD_IFINDEX: u32 = 8; +pub const SKF_AD_NLATTR: u32 = 12; +pub const SKF_AD_NLATTR_NEST: u32 = 16; +pub const SKF_AD_MARK: u32 = 20; +pub const SKF_AD_QUEUE: u32 = 24; +pub const SKF_AD_HATYPE: u32 = 28; +pub const SKF_AD_RXHASH: u32 = 32; +pub const SKF_AD_CPU: u32 = 36; +pub const SKF_AD_ALU_XOR_X: u32 = 40; +pub const SKF_AD_VLAN_TAG: u32 = 44; +pub const SKF_AD_VLAN_TAG_PRESENT: u32 = 48; +pub const SKF_AD_PAY_OFFSET: u32 = 52; +pub const SKF_AD_RANDOM: u32 = 56; +pub const SKF_AD_VLAN_TPID: u32 = 60; +pub const SKF_AD_MAX: u32 = 64; +pub const SKF_NET_OFF: i32 = -1048576; +pub const SKF_LL_OFF: i32 = -2097152; +pub const BPF_NET_OFF: i32 = -1048576; +pub const BPF_LL_OFF: i32 = -2097152; +pub const PTRACE_TRACEME: u32 = 0; +pub const PTRACE_PEEKTEXT: u32 = 1; +pub const PTRACE_PEEKDATA: u32 = 2; +pub const PTRACE_PEEKUSR: u32 = 3; +pub const PTRACE_POKETEXT: u32 = 4; +pub const PTRACE_POKEDATA: u32 = 5; +pub const PTRACE_POKEUSR: u32 = 6; +pub const PTRACE_CONT: u32 = 7; +pub const PTRACE_KILL: u32 = 8; +pub const PTRACE_SINGLESTEP: u32 = 9; +pub const PTRACE_ATTACH: u32 = 16; +pub const PTRACE_DETACH: u32 = 17; +pub const PTRACE_SYSCALL: u32 = 24; +pub const PTRACE_SETOPTIONS: u32 = 16896; +pub const PTRACE_GETEVENTMSG: u32 = 16897; +pub const PTRACE_GETSIGINFO: u32 = 16898; +pub const PTRACE_SETSIGINFO: u32 = 16899; +pub const PTRACE_GETREGSET: u32 = 16900; +pub const PTRACE_SETREGSET: u32 = 16901; +pub const PTRACE_SEIZE: u32 = 16902; +pub const PTRACE_INTERRUPT: u32 = 16903; +pub const PTRACE_LISTEN: u32 = 16904; +pub const PTRACE_PEEKSIGINFO: u32 = 16905; +pub const PTRACE_GETSIGMASK: u32 = 16906; +pub const PTRACE_SETSIGMASK: u32 = 16907; +pub const PTRACE_SECCOMP_GET_FILTER: u32 = 16908; +pub const PTRACE_SECCOMP_GET_METADATA: u32 = 16909; +pub const PTRACE_GET_SYSCALL_INFO: u32 = 16910; +pub const PTRACE_SET_SYSCALL_INFO: u32 = 16914; +pub const PTRACE_SYSCALL_INFO_NONE: u32 = 0; +pub const PTRACE_SYSCALL_INFO_ENTRY: u32 = 1; +pub const PTRACE_SYSCALL_INFO_EXIT: u32 = 2; +pub const PTRACE_SYSCALL_INFO_SECCOMP: u32 = 3; +pub const PTRACE_GET_RSEQ_CONFIGURATION: u32 = 16911; +pub const PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG: u32 = 16912; +pub const PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG: u32 = 16913; +pub const PTRACE_EVENTMSG_SYSCALL_ENTRY: u32 = 1; +pub const PTRACE_EVENTMSG_SYSCALL_EXIT: u32 = 2; +pub const PTRACE_PEEKSIGINFO_SHARED: u32 = 1; +pub const PTRACE_EVENT_FORK: u32 = 1; +pub const PTRACE_EVENT_VFORK: u32 = 2; +pub const PTRACE_EVENT_CLONE: u32 = 3; +pub const PTRACE_EVENT_EXEC: u32 = 4; +pub const PTRACE_EVENT_VFORK_DONE: u32 = 5; +pub const PTRACE_EVENT_EXIT: u32 = 6; +pub const PTRACE_EVENT_SECCOMP: u32 = 7; +pub const PTRACE_EVENT_STOP: u32 = 128; +pub const PTRACE_O_TRACESYSGOOD: u32 = 1; +pub const PTRACE_O_TRACEFORK: u32 = 2; +pub const PTRACE_O_TRACEVFORK: u32 = 4; +pub const PTRACE_O_TRACECLONE: u32 = 8; +pub const PTRACE_O_TRACEEXEC: u32 = 16; +pub const PTRACE_O_TRACEVFORKDONE: u32 = 32; +pub const PTRACE_O_TRACEEXIT: u32 = 64; +pub const PTRACE_O_TRACESECCOMP: u32 = 128; +pub const PTRACE_O_EXITKILL: u32 = 1048576; +pub const PTRACE_O_SUSPEND_SECCOMP: u32 = 2097152; +pub const PTRACE_O_MASK: u32 = 3145983; +pub const PSR_CWP: u32 = 31; +pub const PSR_ET: u32 = 32; +pub const PSR_PS: u32 = 64; +pub const PSR_S: u32 = 128; +pub const PSR_PIL: u32 = 3840; +pub const PSR_EF: u32 = 4096; +pub const PSR_EC: u32 = 8192; +pub const PSR_SYSCALL: u32 = 16384; +pub const PSR_LE: u32 = 32768; +pub const PSR_ICC: u32 = 15728640; +pub const PSR_C: u32 = 1048576; +pub const PSR_V: u32 = 2097152; +pub const PSR_Z: u32 = 4194304; +pub const PSR_N: u32 = 8388608; +pub const PSR_VERS: u32 = 251658240; +pub const PSR_IMPL: u32 = 4026531840; +pub const PSR_VERS_SHIFT: u32 = 24; +pub const PSR_IMPL_SHIFT: u32 = 28; +pub const PSR_VERS_SHIFTED_MASK: u32 = 15; +pub const PSR_IMPL_SHIFTED_MASK: u32 = 15; +pub const PSR_IMPL_TI: u32 = 4; +pub const PSR_IMPL_LEON: u32 = 15; +pub const UREG_G0: u32 = 0; +pub const UREG_G1: u32 = 1; +pub const UREG_G2: u32 = 2; +pub const UREG_G3: u32 = 3; +pub const UREG_G4: u32 = 4; +pub const UREG_G5: u32 = 5; +pub const UREG_G6: u32 = 6; +pub const UREG_G7: u32 = 7; +pub const UREG_I0: u32 = 8; +pub const UREG_I1: u32 = 9; +pub const UREG_I2: u32 = 10; +pub const UREG_I3: u32 = 11; +pub const UREG_I4: u32 = 12; +pub const UREG_I5: u32 = 13; +pub const UREG_I6: u32 = 14; +pub const UREG_I7: u32 = 15; +pub const UREG_FP: u32 = 14; +pub const UREG_RETPC: u32 = 15; +pub const PT_V9_G0: u32 = 0; +pub const PT_V9_G1: u32 = 8; +pub const PT_V9_G2: u32 = 16; +pub const PT_V9_G3: u32 = 24; +pub const PT_V9_G4: u32 = 32; +pub const PT_V9_G5: u32 = 40; +pub const PT_V9_G6: u32 = 48; +pub const PT_V9_G7: u32 = 56; +pub const PT_V9_I0: u32 = 64; +pub const PT_V9_I1: u32 = 72; +pub const PT_V9_I2: u32 = 80; +pub const PT_V9_I3: u32 = 88; +pub const PT_V9_I4: u32 = 96; +pub const PT_V9_I5: u32 = 104; +pub const PT_V9_I6: u32 = 112; +pub const PT_V9_FP: u32 = 112; +pub const PT_V9_I7: u32 = 120; +pub const PT_V9_TSTATE: u32 = 128; +pub const PT_V9_TPC: u32 = 136; +pub const PT_V9_TNPC: u32 = 144; +pub const PT_V9_Y: u32 = 152; +pub const PT_V9_MAGIC: u32 = 156; +pub const PT_TSTATE: u32 = 128; +pub const PT_TPC: u32 = 136; +pub const PT_TNPC: u32 = 144; +pub const PT_PSR: u32 = 0; +pub const PT_PC: u32 = 4; +pub const PT_NPC: u32 = 8; +pub const PT_Y: u32 = 12; +pub const PT_G0: u32 = 16; +pub const PT_WIM: u32 = 16; +pub const PT_G1: u32 = 20; +pub const PT_G2: u32 = 24; +pub const PT_G3: u32 = 28; +pub const PT_G4: u32 = 32; +pub const PT_G5: u32 = 36; +pub const PT_G6: u32 = 40; +pub const PT_G7: u32 = 44; +pub const PT_I0: u32 = 48; +pub const PT_I1: u32 = 52; +pub const PT_I2: u32 = 56; +pub const PT_I3: u32 = 60; +pub const PT_I4: u32 = 64; +pub const PT_I5: u32 = 68; +pub const PT_I6: u32 = 72; +pub const PT_FP: u32 = 72; +pub const PT_I7: u32 = 76; +pub const RW_V9_L0: u32 = 0; +pub const RW_V9_L1: u32 = 8; +pub const RW_V9_L2: u32 = 16; +pub const RW_V9_L3: u32 = 24; +pub const RW_V9_L4: u32 = 32; +pub const RW_V9_L5: u32 = 40; +pub const RW_V9_L6: u32 = 48; +pub const RW_V9_L7: u32 = 56; +pub const RW_V9_I0: u32 = 64; +pub const RW_V9_I1: u32 = 72; +pub const RW_V9_I2: u32 = 80; +pub const RW_V9_I3: u32 = 88; +pub const RW_V9_I4: u32 = 96; +pub const RW_V9_I5: u32 = 104; +pub const RW_V9_I6: u32 = 112; +pub const RW_V9_I7: u32 = 120; +pub const RW_L0: u32 = 0; +pub const RW_L1: u32 = 4; +pub const RW_L2: u32 = 8; +pub const RW_L3: u32 = 12; +pub const RW_L4: u32 = 16; +pub const RW_L5: u32 = 20; +pub const RW_L6: u32 = 24; +pub const RW_L7: u32 = 28; +pub const RW_I0: u32 = 32; +pub const RW_I1: u32 = 36; +pub const RW_I2: u32 = 40; +pub const RW_I3: u32 = 44; +pub const RW_I4: u32 = 48; +pub const RW_I5: u32 = 52; +pub const RW_I6: u32 = 56; +pub const RW_I7: u32 = 60; +pub const SF_V9_L0: u32 = 0; +pub const SF_V9_L1: u32 = 8; +pub const SF_V9_L2: u32 = 16; +pub const SF_V9_L3: u32 = 24; +pub const SF_V9_L4: u32 = 32; +pub const SF_V9_L5: u32 = 40; +pub const SF_V9_L6: u32 = 48; +pub const SF_V9_L7: u32 = 56; +pub const SF_V9_I0: u32 = 64; +pub const SF_V9_I1: u32 = 72; +pub const SF_V9_I2: u32 = 80; +pub const SF_V9_I3: u32 = 88; +pub const SF_V9_I4: u32 = 96; +pub const SF_V9_I5: u32 = 104; +pub const SF_V9_FP: u32 = 112; +pub const SF_V9_PC: u32 = 120; +pub const SF_V9_RETP: u32 = 128; +pub const SF_V9_XARG0: u32 = 136; +pub const SF_V9_XARG1: u32 = 144; +pub const SF_V9_XARG2: u32 = 152; +pub const SF_V9_XARG3: u32 = 160; +pub const SF_V9_XARG4: u32 = 168; +pub const SF_V9_XARG5: u32 = 176; +pub const SF_V9_XXARG: u32 = 184; +pub const SF_L0: u32 = 0; +pub const SF_L1: u32 = 4; +pub const SF_L2: u32 = 8; +pub const SF_L3: u32 = 12; +pub const SF_L4: u32 = 16; +pub const SF_L5: u32 = 20; +pub const SF_L6: u32 = 24; +pub const SF_L7: u32 = 28; +pub const SF_I0: u32 = 32; +pub const SF_I1: u32 = 36; +pub const SF_I2: u32 = 40; +pub const SF_I3: u32 = 44; +pub const SF_I4: u32 = 48; +pub const SF_I5: u32 = 52; +pub const SF_FP: u32 = 56; +pub const SF_PC: u32 = 60; +pub const SF_RETP: u32 = 64; +pub const SF_XARG0: u32 = 68; +pub const SF_XARG1: u32 = 72; +pub const SF_XARG2: u32 = 76; +pub const SF_XARG3: u32 = 80; +pub const SF_XARG4: u32 = 84; +pub const SF_XARG5: u32 = 88; +pub const SF_XXARG: u32 = 92; +pub const PTRACE_SPARC_DETACH: u32 = 11; +pub const PTRACE_GETREGS: u32 = 12; +pub const PTRACE_SETREGS: u32 = 13; +pub const PTRACE_GETFPREGS: u32 = 14; +pub const PTRACE_SETFPREGS: u32 = 15; +pub const PTRACE_READDATA: u32 = 16; +pub const PTRACE_WRITEDATA: u32 = 17; +pub const PTRACE_READTEXT: u32 = 18; +pub const PTRACE_WRITETEXT: u32 = 19; +pub const PTRACE_GETFPAREGS: u32 = 20; +pub const PTRACE_SETFPAREGS: u32 = 21; +pub const PTRACE_GETREGS64: u32 = 22; +pub const PTRACE_SETREGS64: u32 = 23; +pub const PTRACE_GETFPREGS64: u32 = 25; +pub const PTRACE_SETFPREGS64: u32 = 26; +pub const SECCOMP_MODE_DISABLED: u32 = 0; +pub const SECCOMP_MODE_STRICT: u32 = 1; +pub const SECCOMP_MODE_FILTER: u32 = 2; +pub const SECCOMP_SET_MODE_STRICT: u32 = 0; +pub const SECCOMP_SET_MODE_FILTER: u32 = 1; +pub const SECCOMP_GET_ACTION_AVAIL: u32 = 2; +pub const SECCOMP_GET_NOTIF_SIZES: u32 = 3; +pub const SECCOMP_FILTER_FLAG_TSYNC: u32 = 1; +pub const SECCOMP_FILTER_FLAG_LOG: u32 = 2; +pub const SECCOMP_FILTER_FLAG_SPEC_ALLOW: u32 = 4; +pub const SECCOMP_FILTER_FLAG_NEW_LISTENER: u32 = 8; +pub const SECCOMP_FILTER_FLAG_TSYNC_ESRCH: u32 = 16; +pub const SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV: u32 = 32; +pub const SECCOMP_RET_KILL_PROCESS: u32 = 2147483648; +pub const SECCOMP_RET_KILL_THREAD: u32 = 0; +pub const SECCOMP_RET_KILL: u32 = 0; +pub const SECCOMP_RET_TRAP: u32 = 196608; +pub const SECCOMP_RET_ERRNO: u32 = 327680; +pub const SECCOMP_RET_USER_NOTIF: u32 = 2143289344; +pub const SECCOMP_RET_TRACE: u32 = 2146435072; +pub const SECCOMP_RET_LOG: u32 = 2147221504; +pub const SECCOMP_RET_ALLOW: u32 = 2147418112; +pub const SECCOMP_RET_ACTION_FULL: u32 = 4294901760; +pub const SECCOMP_RET_ACTION: u32 = 2147418112; +pub const SECCOMP_RET_DATA: u32 = 65535; +pub const SECCOMP_USER_NOTIF_FLAG_CONTINUE: u32 = 1; +pub const SECCOMP_USER_NOTIF_FD_SYNC_WAKE_UP: u32 = 1; +pub const SECCOMP_ADDFD_FLAG_SETFD: u32 = 1; +pub const SECCOMP_ADDFD_FLAG_SEND: u32 = 2; +pub const SECCOMP_IOC_MAGIC: u8 = 33u8; +pub const Audit_equal: _bindgen_ty_1 = _bindgen_ty_1::Audit_equal; +pub const Audit_not_equal: _bindgen_ty_1 = _bindgen_ty_1::Audit_not_equal; +pub const Audit_bitmask: _bindgen_ty_1 = _bindgen_ty_1::Audit_bitmask; +pub const Audit_bittest: _bindgen_ty_1 = _bindgen_ty_1::Audit_bittest; +pub const Audit_lt: _bindgen_ty_1 = _bindgen_ty_1::Audit_lt; +pub const Audit_gt: _bindgen_ty_1 = _bindgen_ty_1::Audit_gt; +pub const Audit_le: _bindgen_ty_1 = _bindgen_ty_1::Audit_le; +pub const Audit_ge: _bindgen_ty_1 = _bindgen_ty_1::Audit_ge; +pub const Audit_bad: _bindgen_ty_1 = _bindgen_ty_1::Audit_bad; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +Audit_equal = 0, +Audit_not_equal = 1, +Audit_bitmask = 2, +Audit_bittest = 3, +Audit_lt = 4, +Audit_gt = 5, +Audit_le = 6, +Audit_ge = 7, +Audit_bad = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum audit_nlgrps { +AUDIT_NLGRP_NONE = 0, +AUDIT_NLGRP_READLOG = 1, +__AUDIT_NLGRP_MAX = 2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union audit_status__bindgen_ty_1 { +pub version: __u32, +pub feature_bitmap: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ptrace_syscall_info__bindgen_ty_1 { +pub entry: ptrace_syscall_info__bindgen_ty_1__bindgen_ty_1, +pub exit: ptrace_syscall_info__bindgen_ty_1__bindgen_ty_2, +pub seccomp: ptrace_syscall_info__bindgen_ty_1__bindgen_ty_3, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/system.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/system.rs new file mode 100644 index 0000000000000000000000000000000000000000..49bc94e08368fc0d843b62c3e0fca78934f0f65d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/system.rs @@ -0,0 +1,100 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_daddr_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sysinfo { +pub uptime: __kernel_long_t, +pub loads: [__kernel_ulong_t; 3usize], +pub totalram: __kernel_ulong_t, +pub freeram: __kernel_ulong_t, +pub sharedram: __kernel_ulong_t, +pub bufferram: __kernel_ulong_t, +pub totalswap: __kernel_ulong_t, +pub freeswap: __kernel_ulong_t, +pub procs: __u16, +pub pad: __u16, +pub totalhigh: __kernel_ulong_t, +pub freehigh: __kernel_ulong_t, +pub mem_unit: __u32, +pub _f: [crate::ctypes::c_char; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct oldold_utsname { +pub sysname: [crate::ctypes::c_char; 9usize], +pub nodename: [crate::ctypes::c_char; 9usize], +pub release: [crate::ctypes::c_char; 9usize], +pub version: [crate::ctypes::c_char; 9usize], +pub machine: [crate::ctypes::c_char; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct old_utsname { +pub sysname: [crate::ctypes::c_char; 65usize], +pub nodename: [crate::ctypes::c_char; 65usize], +pub release: [crate::ctypes::c_char; 65usize], +pub version: [crate::ctypes::c_char; 65usize], +pub machine: [crate::ctypes::c_char; 65usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct new_utsname { +pub sysname: [crate::ctypes::c_char; 65usize], +pub nodename: [crate::ctypes::c_char; 65usize], +pub release: [crate::ctypes::c_char; 65usize], +pub version: [crate::ctypes::c_char; 65usize], +pub machine: [crate::ctypes::c_char; 65usize], +pub domainname: [crate::ctypes::c_char; 65usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const SI_LOAD_SHIFT: u32 = 16; +pub const __OLD_UTS_LEN: u32 = 8; +pub const __NEW_UTS_LEN: u32 = 64; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/xdp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/xdp.rs new file mode 100644 index 0000000000000000000000000000000000000000..5b8a8804ea53a1511a67aae314818ad938c0e851 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc/xdp.rs @@ -0,0 +1,191 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_daddr_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_xdp { +pub sxdp_family: __u16, +pub sxdp_flags: __u16, +pub sxdp_ifindex: __u32, +pub sxdp_queue_id: __u32, +pub sxdp_shared_umem_fd: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_ring_offset { +pub producer: __u64, +pub consumer: __u64, +pub desc: __u64, +pub flags: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_mmap_offsets { +pub rx: xdp_ring_offset, +pub tx: xdp_ring_offset, +pub fr: xdp_ring_offset, +pub cr: xdp_ring_offset, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_umem_reg { +pub addr: __u64, +pub len: __u64, +pub chunk_size: __u32, +pub headroom: __u32, +pub flags: __u32, +pub tx_metadata_len: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_statistics { +pub rx_dropped: __u64, +pub rx_invalid_descs: __u64, +pub tx_invalid_descs: __u64, +pub rx_ring_full: __u64, +pub rx_fill_ring_empty_descs: __u64, +pub tx_ring_empty_descs: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_options { +pub flags: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct xsk_tx_metadata { +pub flags: __u64, +pub __bindgen_anon_1: xsk_tx_metadata__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xsk_tx_metadata__bindgen_ty_1__bindgen_ty_1 { +pub csum_start: __u16, +pub csum_offset: __u16, +pub launch_time: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xsk_tx_metadata__bindgen_ty_1__bindgen_ty_2 { +pub tx_timestamp: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_desc { +pub addr: __u64, +pub len: __u32, +pub options: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_ring_offset_v1 { +pub producer: __u64, +pub consumer: __u64, +pub desc: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_mmap_offsets_v1 { +pub rx: xdp_ring_offset_v1, +pub tx: xdp_ring_offset_v1, +pub fr: xdp_ring_offset_v1, +pub cr: xdp_ring_offset_v1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_umem_reg_v1 { +pub addr: __u64, +pub len: __u64, +pub chunk_size: __u32, +pub headroom: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_statistics_v1 { +pub rx_dropped: __u64, +pub rx_invalid_descs: __u64, +pub tx_invalid_descs: __u64, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const XDP_SHARED_UMEM: u32 = 1; +pub const XDP_COPY: u32 = 2; +pub const XDP_ZEROCOPY: u32 = 4; +pub const XDP_USE_NEED_WAKEUP: u32 = 8; +pub const XDP_USE_SG: u32 = 16; +pub const XDP_UMEM_UNALIGNED_CHUNK_FLAG: u32 = 1; +pub const XDP_UMEM_TX_SW_CSUM: u32 = 2; +pub const XDP_UMEM_TX_METADATA_LEN: u32 = 4; +pub const XDP_RING_NEED_WAKEUP: u32 = 1; +pub const XDP_MMAP_OFFSETS: u32 = 1; +pub const XDP_RX_RING: u32 = 2; +pub const XDP_TX_RING: u32 = 3; +pub const XDP_UMEM_REG: u32 = 4; +pub const XDP_UMEM_FILL_RING: u32 = 5; +pub const XDP_UMEM_COMPLETION_RING: u32 = 6; +pub const XDP_STATISTICS: u32 = 7; +pub const XDP_OPTIONS: u32 = 8; +pub const XDP_OPTIONS_ZEROCOPY: u32 = 1; +pub const XDP_PGOFF_RX_RING: u32 = 0; +pub const XDP_PGOFF_TX_RING: u32 = 2147483648; +pub const XDP_UMEM_PGOFF_FILL_RING: u64 = 4294967296; +pub const XDP_UMEM_PGOFF_COMPLETION_RING: u64 = 6442450944; +pub const XSK_UNALIGNED_BUF_OFFSET_SHIFT: u32 = 48; +pub const XSK_UNALIGNED_BUF_ADDR_MASK: u64 = 281474976710655; +pub const XDP_TXMD_FLAGS_TIMESTAMP: u32 = 1; +pub const XDP_TXMD_FLAGS_CHECKSUM: u32 = 2; +pub const XDP_TXMD_FLAGS_LAUNCH_TIME: u32 = 4; +pub const XDP_PKT_CONTD: u32 = 1; +pub const XDP_TX_METADATA: u32 = 2; +#[repr(C)] +#[derive(Copy, Clone)] +pub union xsk_tx_metadata__bindgen_ty_1 { +pub request: xsk_tx_metadata__bindgen_ty_1__bindgen_ty_1, +pub completion: xsk_tx_metadata__bindgen_ty_1__bindgen_ty_2, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/auxvec.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/auxvec.rs new file mode 100644 index 0000000000000000000000000000000000000000..2aff98a548a1f71951661a9706c30a0cabb645e6 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/auxvec.rs @@ -0,0 +1,35 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_ADI_BLKSZ: u32 = 48; +pub const AT_ADI_NBITS: u32 = 49; +pub const AT_ADI_UEONADI: u32 = 50; +pub const AT_VECTOR_SIZE_ARCH: u32 = 4; +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_PLATFORM: u32 = 15; +pub const AT_HWCAP: u32 = 16; +pub const AT_CLKTCK: u32 = 17; +pub const AT_SECURE: u32 = 23; +pub const AT_BASE_PLATFORM: u32 = 24; +pub const AT_RANDOM: u32 = 25; +pub const AT_HWCAP2: u32 = 26; +pub const AT_RSEQ_FEATURE_SIZE: u32 = 27; +pub const AT_RSEQ_ALIGN: u32 = 28; +pub const AT_HWCAP3: u32 = 29; +pub const AT_HWCAP4: u32 = 30; +pub const AT_EXECFN: u32 = 31; +pub const AT_MINSIGSTKSZ: u32 = 51; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/bootparam.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/bootparam.rs new file mode 100644 index 0000000000000000000000000000000000000000..bff15e373cd12fce9e91f11af9ee8efb9065775b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/bootparam.rs @@ -0,0 +1,3 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + + diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/btrfs.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/btrfs.rs new file mode 100644 index 0000000000000000000000000000000000000000..7479668ba8522596b8b52139822cf33433fdb4f8 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/btrfs.rs @@ -0,0 +1,1903 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_suseconds_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_rwf_t = crate::ctypes::c_int; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_suseconds_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v1 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub master_key_descriptor: [__u8; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_key { +pub mode: __u32, +pub raw: [__u8; 64usize], +pub size: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v2 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub log2_data_unit_size: __u8, +pub __reserved: [__u8; 3usize], +pub master_key_identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_policy_ex_arg { +pub policy_size: __u64, +pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_key_specifier { +pub type_: __u32, +pub __reserved: __u32, +pub u: fscrypt_key_specifier__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct fscrypt_provisioning_key_payload { +pub type_: __u32, +pub flags: __u32, +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +pub struct fscrypt_add_key_arg { +pub key_spec: fscrypt_key_specifier, +pub raw_size: __u32, +pub key_id: __u32, +pub flags: __u32, +pub __reserved: [__u32; 7usize], +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_remove_key_arg { +pub key_spec: fscrypt_key_specifier, +pub removal_status_flags: __u32, +pub __reserved: [__u32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_key_status_arg { +pub key_spec: fscrypt_key_specifier, +pub __reserved: [__u32; 6usize], +pub status: __u32, +pub status_flags: __u32, +pub user_count: __u32, +pub __out_reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mount_attr { +pub attr_set: __u64, +pub attr_clr: __u64, +pub propagation: __u64, +pub userns_fd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct statmount { +pub size: __u32, +pub mnt_opts: __u32, +pub mask: __u64, +pub sb_dev_major: __u32, +pub sb_dev_minor: __u32, +pub sb_magic: __u64, +pub sb_flags: __u32, +pub fs_type: __u32, +pub mnt_id: __u64, +pub mnt_parent_id: __u64, +pub mnt_id_old: __u32, +pub mnt_parent_id_old: __u32, +pub mnt_attr: __u64, +pub mnt_propagation: __u64, +pub mnt_peer_group: __u64, +pub mnt_master: __u64, +pub propagate_from: __u64, +pub mnt_root: __u32, +pub mnt_point: __u32, +pub mnt_ns_id: __u64, +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub supported_mask: __u64, +pub mnt_uidmap_num: __u32, +pub mnt_uidmap: __u32, +pub mnt_gidmap_num: __u32, +pub mnt_gidmap: __u32, +pub __spare2: [__u64; 43usize], +pub str_: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mnt_id_req { +pub size: __u32, +pub spare: __u32, +pub mnt_id: __u64, +pub param: __u64, +pub mnt_ns_id: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_clone_range { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fstrim_range { +pub start: __u64, +pub len: __u64, +pub minlen: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsuuid2 { +pub len: __u8, +pub uuid: [__u8; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fs_sysfs_path { +pub len: __u8, +pub name: [__u8; 128usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_dedupe_range_info { +pub dest_fd: __s64, +pub dest_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct file_dedupe_range { +pub src_offset: __u64, +pub src_length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct files_stat_struct { +pub nr_files: crate::ctypes::c_ulong, +pub nr_free_files: crate::ctypes::c_ulong, +pub max_files: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct inodes_stat_t { +pub nr_inodes: crate::ctypes::c_long, +pub nr_unused: crate::ctypes::c_long, +pub dummy: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsxattr { +pub fsx_xflags: __u32, +pub fsx_extsize: __u32, +pub fsx_nextents: __u32, +pub fsx_projid: __u32, +pub fsx_cowextsize: __u32, +pub fsx_pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct page_region { +pub start: __u64, +pub end: __u64, +pub categories: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pm_scan_arg { +pub size: __u64, +pub flags: __u64, +pub start: __u64, +pub end: __u64, +pub walk_end: __u64, +pub vec: __u64, +pub vec_len: __u64, +pub max_pages: __u64, +pub category_inverted: __u64, +pub category_mask: __u64, +pub category_anyof_mask: __u64, +pub return_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct procmap_query { +pub size: __u64, +pub query_flags: __u64, +pub query_addr: __u64, +pub vma_start: __u64, +pub vma_end: __u64, +pub vma_flags: __u64, +pub vma_page_size: __u64, +pub vma_offset: __u64, +pub inode: __u64, +pub dev_major: __u32, +pub dev_minor: __u32, +pub vma_name_size: __u32, +pub build_id_size: __u32, +pub vma_name_addr: __u64, +pub build_id_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_vol_args { +pub fd: __s64, +pub name: [crate::ctypes::c_char; 4088usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_limit { +pub flags: __u64, +pub max_rfer: __u64, +pub max_excl: __u64, +pub rsv_rfer: __u64, +pub rsv_excl: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_qgroup_inherit { +pub flags: __u64, +pub num_qgroups: __u64, +pub num_ref_copies: __u64, +pub num_excl_copies: __u64, +pub lim: btrfs_qgroup_limit, +pub qgroups: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_qgroup_limit_args { +pub qgroupid: __u64, +pub lim: btrfs_qgroup_limit, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_vol_args_v2 { +pub fd: __s64, +pub transid: __u64, +pub flags: __u64, +pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1, +pub __bindgen_anon_2: btrfs_ioctl_vol_args_v2__bindgen_ty_2, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1 { +pub size: __u64, +pub qgroup_inherit: *mut btrfs_qgroup_inherit, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_scrub_progress { +pub data_extents_scrubbed: __u64, +pub tree_extents_scrubbed: __u64, +pub data_bytes_scrubbed: __u64, +pub tree_bytes_scrubbed: __u64, +pub read_errors: __u64, +pub csum_errors: __u64, +pub verify_errors: __u64, +pub no_csum: __u64, +pub csum_discards: __u64, +pub super_errors: __u64, +pub malloc_errors: __u64, +pub uncorrectable_errors: __u64, +pub corrected_errors: __u64, +pub last_physical: __u64, +pub unverified_errors: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_scrub_args { +pub devid: __u64, +pub start: __u64, +pub end: __u64, +pub flags: __u64, +pub progress: btrfs_scrub_progress, +pub unused: [__u64; 109usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_dev_replace_start_params { +pub srcdevid: __u64, +pub cont_reading_from_srcdev_mode: __u64, +pub srcdev_name: [__u8; 1025usize], +pub tgtdev_name: [__u8; 1025usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_dev_replace_status_params { +pub replace_state: __u64, +pub progress_1000: __u64, +pub time_started: __u64, +pub time_stopped: __u64, +pub num_write_errors: __u64, +pub num_uncorrectable_read_errors: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_dev_replace_args { +pub cmd: __u64, +pub result: __u64, +pub __bindgen_anon_1: btrfs_ioctl_dev_replace_args__bindgen_ty_1, +pub spare: [__u64; 64usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_dev_info_args { +pub devid: __u64, +pub uuid: [__u8; 16usize], +pub bytes_used: __u64, +pub total_bytes: __u64, +pub fsid: [__u8; 16usize], +pub unused: [__u64; 377usize], +pub path: [__u8; 1024usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_fs_info_args { +pub max_id: __u64, +pub num_devices: __u64, +pub fsid: [__u8; 16usize], +pub nodesize: __u32, +pub sectorsize: __u32, +pub clone_alignment: __u32, +pub csum_type: __u16, +pub csum_size: __u16, +pub flags: __u64, +pub generation: __u64, +pub metadata_uuid: [__u8; 16usize], +pub reserved: [__u8; 944usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_feature_flags { +pub compat_flags: __u64, +pub compat_ro_flags: __u64, +pub incompat_flags: __u64, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct btrfs_balance_args { +pub profiles: __u64, +pub __bindgen_anon_1: btrfs_balance_args__bindgen_ty_1, +pub devid: __u64, +pub pstart: __u64, +pub pend: __u64, +pub vstart: __u64, +pub vend: __u64, +pub target: __u64, +pub flags: __u64, +pub __bindgen_anon_2: btrfs_balance_args__bindgen_ty_2, +pub stripes_min: __u32, +pub stripes_max: __u32, +pub unused: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_balance_args__bindgen_ty_1__bindgen_ty_1 { +pub usage_min: __u32, +pub usage_max: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_balance_args__bindgen_ty_2__bindgen_ty_1 { +pub limit_min: __u32, +pub limit_max: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_balance_progress { +pub expected: __u64, +pub considered: __u64, +pub completed: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_balance_args { +pub flags: __u64, +pub state: __u64, +pub data: btrfs_balance_args, +pub meta: btrfs_balance_args, +pub sys: btrfs_balance_args, +pub stat: btrfs_balance_progress, +pub unused: [__u64; 72usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_ino_lookup_args { +pub treeid: __u64, +pub objectid: __u64, +pub name: [crate::ctypes::c_char; 4080usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_ino_lookup_user_args { +pub dirid: __u64, +pub treeid: __u64, +pub name: [crate::ctypes::c_char; 256usize], +pub path: [crate::ctypes::c_char; 3824usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_search_key { +pub tree_id: __u64, +pub min_objectid: __u64, +pub max_objectid: __u64, +pub min_offset: __u64, +pub max_offset: __u64, +pub min_transid: __u64, +pub max_transid: __u64, +pub min_type: __u32, +pub max_type: __u32, +pub nr_items: __u32, +pub unused: __u32, +pub unused1: __u64, +pub unused2: __u64, +pub unused3: __u64, +pub unused4: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_search_header { +pub transid: __u64, +pub objectid: __u64, +pub offset: __u64, +pub type_: __u32, +pub len: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_search_args { +pub key: btrfs_ioctl_search_key, +pub buf: [crate::ctypes::c_char; 3992usize], +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_search_args_v2 { +pub key: btrfs_ioctl_search_key, +pub buf_size: __u64, +pub buf: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_clone_range_args { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_defrag_range_args { +pub start: __u64, +pub len: __u64, +pub flags: __u64, +pub extent_thresh: __u32, +pub __bindgen_anon_1: btrfs_ioctl_defrag_range_args__bindgen_ty_1, +pub unused: [__u32; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_defrag_range_args__bindgen_ty_1__bindgen_ty_1 { +pub type_: __u8, +pub level: __s8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_same_extent_info { +pub fd: __s64, +pub logical_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_same_args { +pub logical_offset: __u64, +pub length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_space_info { +pub flags: __u64, +pub total_bytes: __u64, +pub used_bytes: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_space_args { +pub space_slots: __u64, +pub total_spaces: __u64, +pub spaces: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_data_container { +pub bytes_left: __u32, +pub bytes_missing: __u32, +pub elem_cnt: __u32, +pub elem_missed: __u32, +pub val: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_ino_path_args { +pub inum: __u64, +pub size: __u64, +pub reserved: [__u64; 4usize], +pub fspath: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_logical_ino_args { +pub logical: __u64, +pub size: __u64, +pub reserved: [__u64; 3usize], +pub flags: __u64, +pub inodes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_dev_stats { +pub devid: __u64, +pub nr_items: __u64, +pub flags: __u64, +pub values: [__u64; 5usize], +pub unused: [__u64; 121usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_quota_ctl_args { +pub cmd: __u64, +pub status: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_quota_rescan_args { +pub flags: __u64, +pub progress: __u64, +pub reserved: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_qgroup_assign_args { +pub assign: __u64, +pub src: __u64, +pub dst: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_qgroup_create_args { +pub create: __u64, +pub qgroupid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_timespec { +pub sec: __u64, +pub nsec: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_received_subvol_args { +pub uuid: [crate::ctypes::c_char; 16usize], +pub stransid: __u64, +pub rtransid: __u64, +pub stime: btrfs_ioctl_timespec, +pub rtime: btrfs_ioctl_timespec, +pub flags: __u64, +pub reserved: [__u64; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_send_args { +pub send_fd: __s64, +pub clone_sources_count: __u64, +pub clone_sources: *mut __u64, +pub parent_root: __u64, +pub flags: __u64, +pub version: __u32, +pub reserved: [__u8; 28usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_subvol_info_args { +pub treeid: __u64, +pub name: [crate::ctypes::c_char; 256usize], +pub parent_id: __u64, +pub dirid: __u64, +pub generation: __u64, +pub flags: __u64, +pub uuid: [__u8; 16usize], +pub parent_uuid: [__u8; 16usize], +pub received_uuid: [__u8; 16usize], +pub ctransid: __u64, +pub otransid: __u64, +pub stransid: __u64, +pub rtransid: __u64, +pub ctime: btrfs_ioctl_timespec, +pub otime: btrfs_ioctl_timespec, +pub stime: btrfs_ioctl_timespec, +pub rtime: btrfs_ioctl_timespec, +pub reserved: [__u64; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_subvol_rootref_args { +pub min_treeid: __u64, +pub rootref: [btrfs_ioctl_get_subvol_rootref_args__bindgen_ty_1; 255usize], +pub num_items: __u8, +pub align: [__u8; 7usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_subvol_rootref_args__bindgen_ty_1 { +pub treeid: __u64, +pub dirid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_encoded_io_args { +pub iov: *const iovec, +pub iovcnt: crate::ctypes::c_ulong, +pub offset: __s64, +pub flags: __u64, +pub len: __u64, +pub unencoded_len: __u64, +pub unencoded_offset: __u64, +pub compression: __u32, +pub encryption: __u32, +pub reserved: [__u8; 64usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_subvol_wait { +pub subvolid: __u64, +pub mode: __u32, +pub count: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_disk_key { +pub objectid: __le64, +pub type_: __u8, +pub offset: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_key { +pub objectid: __u64, +pub type_: __u8, +pub offset: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_header { +pub csum: [__u8; 32usize], +pub fsid: [__u8; 16usize], +pub bytenr: __le64, +pub flags: __le64, +pub chunk_tree_uuid: [__u8; 16usize], +pub generation: __le64, +pub owner: __le64, +pub nritems: __le32, +pub level: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_root_backup { +pub tree_root: __le64, +pub tree_root_gen: __le64, +pub chunk_root: __le64, +pub chunk_root_gen: __le64, +pub extent_root: __le64, +pub extent_root_gen: __le64, +pub fs_root: __le64, +pub fs_root_gen: __le64, +pub dev_root: __le64, +pub dev_root_gen: __le64, +pub csum_root: __le64, +pub csum_root_gen: __le64, +pub total_bytes: __le64, +pub bytes_used: __le64, +pub num_devices: __le64, +pub unused_64: [__le64; 4usize], +pub tree_root_level: __u8, +pub chunk_root_level: __u8, +pub extent_root_level: __u8, +pub fs_root_level: __u8, +pub dev_root_level: __u8, +pub csum_root_level: __u8, +pub unused_8: [__u8; 10usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_item { +pub key: btrfs_disk_key, +pub offset: __le32, +pub size: __le32, +} +#[repr(C, packed)] +pub struct btrfs_leaf { +pub header: btrfs_header, +pub items: __IncompleteArrayField, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_key_ptr { +pub key: btrfs_disk_key, +pub blockptr: __le64, +pub generation: __le64, +} +#[repr(C, packed)] +pub struct btrfs_node { +pub header: btrfs_header, +pub ptrs: __IncompleteArrayField, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_item { +pub devid: __le64, +pub total_bytes: __le64, +pub bytes_used: __le64, +pub io_align: __le32, +pub io_width: __le32, +pub sector_size: __le32, +pub type_: __le64, +pub generation: __le64, +pub start_offset: __le64, +pub dev_group: __le32, +pub seek_speed: __u8, +pub bandwidth: __u8, +pub uuid: [__u8; 16usize], +pub fsid: [__u8; 16usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_stripe { +pub devid: __le64, +pub offset: __le64, +pub dev_uuid: [__u8; 16usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_chunk { +pub length: __le64, +pub owner: __le64, +pub stripe_len: __le64, +pub type_: __le64, +pub io_align: __le32, +pub io_width: __le32, +pub sector_size: __le32, +pub num_stripes: __le16, +pub sub_stripes: __le16, +pub stripe: btrfs_stripe, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_super_block { +pub csum: [__u8; 32usize], +pub fsid: [__u8; 16usize], +pub bytenr: __le64, +pub flags: __le64, +pub magic: __le64, +pub generation: __le64, +pub root: __le64, +pub chunk_root: __le64, +pub log_root: __le64, +pub __unused_log_root_transid: __le64, +pub total_bytes: __le64, +pub bytes_used: __le64, +pub root_dir_objectid: __le64, +pub num_devices: __le64, +pub sectorsize: __le32, +pub nodesize: __le32, +pub __unused_leafsize: __le32, +pub stripesize: __le32, +pub sys_chunk_array_size: __le32, +pub chunk_root_generation: __le64, +pub compat_flags: __le64, +pub compat_ro_flags: __le64, +pub incompat_flags: __le64, +pub csum_type: __le16, +pub root_level: __u8, +pub chunk_root_level: __u8, +pub log_root_level: __u8, +pub dev_item: btrfs_dev_item, +pub label: [crate::ctypes::c_char; 256usize], +pub cache_generation: __le64, +pub uuid_tree_generation: __le64, +pub metadata_uuid: [__u8; 16usize], +pub nr_global_roots: __u64, +pub reserved: [__le64; 27usize], +pub sys_chunk_array: [__u8; 2048usize], +pub super_roots: [btrfs_root_backup; 4usize], +pub padding: [__u8; 565usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_free_space_entry { +pub offset: __le64, +pub bytes: __le64, +pub type_: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_free_space_header { +pub location: btrfs_disk_key, +pub generation: __le64, +pub num_entries: __le64, +pub num_bitmaps: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_raid_stride { +pub devid: __le64, +pub physical: __le64, +} +#[repr(C, packed)] +pub struct btrfs_stripe_extent { +pub __bindgen_anon_1: btrfs_stripe_extent__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_stripe_extent__bindgen_ty_1 { +pub __empty_strides: btrfs_stripe_extent__bindgen_ty_1__bindgen_ty_1, +pub strides: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_stripe_extent__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_item { +pub refs: __le64, +pub generation: __le64, +pub flags: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_item_v0 { +pub refs: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_tree_block_info { +pub key: btrfs_disk_key, +pub level: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_data_ref { +pub root: __le64, +pub objectid: __le64, +pub offset: __le64, +pub count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_shared_data_ref { +pub count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_owner_ref { +pub root_id: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_inline_ref { +pub type_: __u8, +pub offset: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_extent { +pub chunk_tree: __le64, +pub chunk_objectid: __le64, +pub chunk_offset: __le64, +pub length: __le64, +pub chunk_tree_uuid: [__u8; 16usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_inode_ref { +pub index: __le64, +pub name_len: __le16, +} +#[repr(C, packed)] +pub struct btrfs_inode_extref { +pub parent_objectid: __le64, +pub index: __le64, +pub name_len: __le16, +pub name: __IncompleteArrayField<__u8>, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_timespec { +pub sec: __le64, +pub nsec: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_inode_item { +pub generation: __le64, +pub transid: __le64, +pub size: __le64, +pub nbytes: __le64, +pub block_group: __le64, +pub nlink: __le32, +pub uid: __le32, +pub gid: __le32, +pub mode: __le32, +pub rdev: __le64, +pub flags: __le64, +pub sequence: __le64, +pub reserved: [__le64; 4usize], +pub atime: btrfs_timespec, +pub ctime: btrfs_timespec, +pub mtime: btrfs_timespec, +pub otime: btrfs_timespec, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dir_log_item { +pub end: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dir_item { +pub location: btrfs_disk_key, +pub transid: __le64, +pub data_len: __le16, +pub name_len: __le16, +pub type_: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_root_item { +pub inode: btrfs_inode_item, +pub generation: __le64, +pub root_dirid: __le64, +pub bytenr: __le64, +pub byte_limit: __le64, +pub bytes_used: __le64, +pub last_snapshot: __le64, +pub flags: __le64, +pub refs: __le32, +pub drop_progress: btrfs_disk_key, +pub drop_level: __u8, +pub level: __u8, +pub generation_v2: __le64, +pub uuid: [__u8; 16usize], +pub parent_uuid: [__u8; 16usize], +pub received_uuid: [__u8; 16usize], +pub ctransid: __le64, +pub otransid: __le64, +pub stransid: __le64, +pub rtransid: __le64, +pub ctime: btrfs_timespec, +pub otime: btrfs_timespec, +pub stime: btrfs_timespec, +pub rtime: btrfs_timespec, +pub reserved: [__le64; 8usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_root_ref { +pub dirid: __le64, +pub sequence: __le64, +pub name_len: __le16, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct btrfs_disk_balance_args { +pub profiles: __le64, +pub __bindgen_anon_1: btrfs_disk_balance_args__bindgen_ty_1, +pub devid: __le64, +pub pstart: __le64, +pub pend: __le64, +pub vstart: __le64, +pub vend: __le64, +pub target: __le64, +pub flags: __le64, +pub __bindgen_anon_2: btrfs_disk_balance_args__bindgen_ty_2, +pub stripes_min: __le32, +pub stripes_max: __le32, +pub unused: [__le64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_disk_balance_args__bindgen_ty_1__bindgen_ty_1 { +pub usage_min: __le32, +pub usage_max: __le32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_disk_balance_args__bindgen_ty_2__bindgen_ty_1 { +pub limit_min: __le32, +pub limit_max: __le32, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct btrfs_balance_item { +pub flags: __le64, +pub data: btrfs_disk_balance_args, +pub meta: btrfs_disk_balance_args, +pub sys: btrfs_disk_balance_args, +pub unused: [__le64; 4usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_file_extent_item { +pub generation: __le64, +pub ram_bytes: __le64, +pub compression: __u8, +pub encryption: __u8, +pub other_encoding: __le16, +pub type_: __u8, +pub disk_bytenr: __le64, +pub disk_num_bytes: __le64, +pub offset: __le64, +pub num_bytes: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_csum_item { +pub csum: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_stats_item { +pub values: [__le64; 5usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_replace_item { +pub src_devid: __le64, +pub cursor_left: __le64, +pub cursor_right: __le64, +pub cont_reading_from_srcdev_mode: __le64, +pub replace_state: __le64, +pub time_started: __le64, +pub time_stopped: __le64, +pub num_write_errors: __le64, +pub num_uncorrectable_read_errors: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_free_space_info { +pub extent_count: __le32, +pub flags: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_status_item { +pub version: __le64, +pub generation: __le64, +pub flags: __le64, +pub rescan: __le64, +pub enable_gen: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_info_item { +pub generation: __le64, +pub rfer: __le64, +pub rfer_cmpr: __le64, +pub excl: __le64, +pub excl_cmpr: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_limit_item { +pub flags: __le64, +pub max_rfer: __le64, +pub max_excl: __le64, +pub rsv_rfer: __le64, +pub rsv_excl: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_verity_descriptor_item { +pub size: __le64, +pub reserved: [__le64; 2usize], +pub encryption: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iovec { +pub _address: u8, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +pub const _IOC_XSIZEMASK: u32 = 16383; +pub const _IOC_DIRMASK: u32 = 7; +pub const _IOC_NRSHIFT: u32 = 0; +pub const _IOC_TYPESHIFT: u32 = 8; +pub const _IOC_SIZESHIFT: u32 = 16; +pub const _IOC_DIRSHIFT: u32 = 29; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const IOC_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 1073676288; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const NR_OPEN: u32 = 1024; +pub const NGROUPS_MAX: u32 = 65536; +pub const ARG_MAX: u32 = 131072; +pub const LINK_MAX: u32 = 127; +pub const MAX_CANON: u32 = 255; +pub const MAX_INPUT: u32 = 255; +pub const NAME_MAX: u32 = 255; +pub const PATH_MAX: u32 = 4096; +pub const PIPE_BUF: u32 = 4096; +pub const XATTR_NAME_MAX: u32 = 255; +pub const XATTR_SIZE_MAX: u32 = 65536; +pub const XATTR_LIST_MAX: u32 = 65536; +pub const RTSIG_MAX: u32 = 32; +pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; +pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; +pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; +pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; +pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; +pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; +pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; +pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; +pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; +pub const FSCRYPT_POLICY_V1: u32 = 0; +pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; +pub const FSCRYPT_POLICY_V2: u32 = 2; +pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; +pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; +pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; +pub const FSCRYPT_ADD_KEY_FLAG_HW_WRAPPED: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; +pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; +pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; +pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; +pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; +pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FS_POLICY_FLAGS_VALID: u32 = 7; +pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; +pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; +pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; +pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; +pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; +pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; +pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; +pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; +pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FS_MAX_KEY_SIZE: u32 = 64; +pub const MS_RDONLY: u32 = 1; +pub const MS_NOSUID: u32 = 2; +pub const MS_NODEV: u32 = 4; +pub const MS_NOEXEC: u32 = 8; +pub const MS_SYNCHRONOUS: u32 = 16; +pub const MS_REMOUNT: u32 = 32; +pub const MS_MANDLOCK: u32 = 64; +pub const MS_DIRSYNC: u32 = 128; +pub const MS_NOSYMFOLLOW: u32 = 256; +pub const MS_NOATIME: u32 = 1024; +pub const MS_NODIRATIME: u32 = 2048; +pub const MS_BIND: u32 = 4096; +pub const MS_MOVE: u32 = 8192; +pub const MS_REC: u32 = 16384; +pub const MS_VERBOSE: u32 = 32768; +pub const MS_SILENT: u32 = 32768; +pub const MS_POSIXACL: u32 = 65536; +pub const MS_UNBINDABLE: u32 = 131072; +pub const MS_PRIVATE: u32 = 262144; +pub const MS_SLAVE: u32 = 524288; +pub const MS_SHARED: u32 = 1048576; +pub const MS_RELATIME: u32 = 2097152; +pub const MS_KERNMOUNT: u32 = 4194304; +pub const MS_I_VERSION: u32 = 8388608; +pub const MS_STRICTATIME: u32 = 16777216; +pub const MS_LAZYTIME: u32 = 33554432; +pub const MS_SUBMOUNT: u32 = 67108864; +pub const MS_NOREMOTELOCK: u32 = 134217728; +pub const MS_NOSEC: u32 = 268435456; +pub const MS_BORN: u32 = 536870912; +pub const MS_ACTIVE: u32 = 1073741824; +pub const MS_NOUSER: u32 = 2147483648; +pub const MS_RMT_MASK: u32 = 41943121; +pub const MS_MGC_VAL: u32 = 3236757504; +pub const MS_MGC_MSK: u32 = 4294901760; +pub const OPEN_TREE_CLONE: u32 = 1; +pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; +pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; +pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; +pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; +pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; +pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; +pub const MOVE_MOUNT_SET_GROUP: u32 = 256; +pub const MOVE_MOUNT_BENEATH: u32 = 512; +pub const MOVE_MOUNT__MASK: u32 = 887; +pub const FSOPEN_CLOEXEC: u32 = 1; +pub const FSPICK_CLOEXEC: u32 = 1; +pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; +pub const FSPICK_NO_AUTOMOUNT: u32 = 4; +pub const FSPICK_EMPTY_PATH: u32 = 8; +pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const MOUNT_ATTR_RDONLY: u32 = 1; +pub const MOUNT_ATTR_NOSUID: u32 = 2; +pub const MOUNT_ATTR_NODEV: u32 = 4; +pub const MOUNT_ATTR_NOEXEC: u32 = 8; +pub const MOUNT_ATTR__ATIME: u32 = 112; +pub const MOUNT_ATTR_RELATIME: u32 = 0; +pub const MOUNT_ATTR_NOATIME: u32 = 16; +pub const MOUNT_ATTR_STRICTATIME: u32 = 32; +pub const MOUNT_ATTR_NODIRATIME: u32 = 128; +pub const MOUNT_ATTR_IDMAP: u32 = 1048576; +pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; +pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; +pub const MNT_ID_REQ_SIZE_VER0: u32 = 24; +pub const MNT_ID_REQ_SIZE_VER1: u32 = 32; +pub const STATMOUNT_SB_BASIC: u32 = 1; +pub const STATMOUNT_MNT_BASIC: u32 = 2; +pub const STATMOUNT_PROPAGATE_FROM: u32 = 4; +pub const STATMOUNT_MNT_ROOT: u32 = 8; +pub const STATMOUNT_MNT_POINT: u32 = 16; +pub const STATMOUNT_FS_TYPE: u32 = 32; +pub const STATMOUNT_MNT_NS_ID: u32 = 64; +pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; +pub const STATMOUNT_SUPPORTED_MASK: u32 = 4096; +pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; +pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; +pub const LSMT_ROOT: i32 = -1; +pub const LISTMOUNT_REVERSE: u32 = 1; +pub const INR_OPEN_CUR: u32 = 1024; +pub const INR_OPEN_MAX: u32 = 4096; +pub const BLOCK_SIZE_BITS: u32 = 10; +pub const BLOCK_SIZE: u32 = 1024; +pub const IO_INTEGRITY_CHK_GUARD: u32 = 1; +pub const IO_INTEGRITY_CHK_REFTAG: u32 = 2; +pub const IO_INTEGRITY_CHK_APPTAG: u32 = 4; +pub const IO_INTEGRITY_VALID_FLAGS: u32 = 7; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const SEEK_DATA: u32 = 3; +pub const SEEK_HOLE: u32 = 4; +pub const SEEK_MAX: u32 = 4; +pub const RENAME_NOREPLACE: u32 = 1; +pub const RENAME_EXCHANGE: u32 = 2; +pub const RENAME_WHITEOUT: u32 = 4; +pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; +pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; +pub const NR_FILE: u32 = 8192; +pub const FS_XFLAG_REALTIME: u32 = 1; +pub const FS_XFLAG_PREALLOC: u32 = 2; +pub const FS_XFLAG_IMMUTABLE: u32 = 8; +pub const FS_XFLAG_APPEND: u32 = 16; +pub const FS_XFLAG_SYNC: u32 = 32; +pub const FS_XFLAG_NOATIME: u32 = 64; +pub const FS_XFLAG_NODUMP: u32 = 128; +pub const FS_XFLAG_RTINHERIT: u32 = 256; +pub const FS_XFLAG_PROJINHERIT: u32 = 512; +pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; +pub const FS_XFLAG_EXTSIZE: u32 = 2048; +pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; +pub const FS_XFLAG_NODEFRAG: u32 = 8192; +pub const FS_XFLAG_FILESTREAM: u32 = 16384; +pub const FS_XFLAG_DAX: u32 = 32768; +pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_HASATTR: u32 = 2147483648; +pub const BMAP_IOCTL: u32 = 1; +pub const FSLABEL_MAX: u32 = 256; +pub const FS_SECRM_FL: u32 = 1; +pub const FS_UNRM_FL: u32 = 2; +pub const FS_COMPR_FL: u32 = 4; +pub const FS_SYNC_FL: u32 = 8; +pub const FS_IMMUTABLE_FL: u32 = 16; +pub const FS_APPEND_FL: u32 = 32; +pub const FS_NODUMP_FL: u32 = 64; +pub const FS_NOATIME_FL: u32 = 128; +pub const FS_DIRTY_FL: u32 = 256; +pub const FS_COMPRBLK_FL: u32 = 512; +pub const FS_NOCOMP_FL: u32 = 1024; +pub const FS_ENCRYPT_FL: u32 = 2048; +pub const FS_BTREE_FL: u32 = 4096; +pub const FS_INDEX_FL: u32 = 4096; +pub const FS_IMAGIC_FL: u32 = 8192; +pub const FS_JOURNAL_DATA_FL: u32 = 16384; +pub const FS_NOTAIL_FL: u32 = 32768; +pub const FS_DIRSYNC_FL: u32 = 65536; +pub const FS_TOPDIR_FL: u32 = 131072; +pub const FS_HUGE_FILE_FL: u32 = 262144; +pub const FS_EXTENT_FL: u32 = 524288; +pub const FS_VERITY_FL: u32 = 1048576; +pub const FS_EA_INODE_FL: u32 = 2097152; +pub const FS_EOFBLOCKS_FL: u32 = 4194304; +pub const FS_NOCOW_FL: u32 = 8388608; +pub const FS_DAX_FL: u32 = 33554432; +pub const FS_INLINE_DATA_FL: u32 = 268435456; +pub const FS_PROJINHERIT_FL: u32 = 536870912; +pub const FS_CASEFOLD_FL: u32 = 1073741824; +pub const FS_RESERVED_FL: u32 = 2147483648; +pub const FS_FL_USER_VISIBLE: u32 = 253951; +pub const FS_FL_USER_MODIFIABLE: u32 = 229631; +pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; +pub const SYNC_FILE_RANGE_WRITE: u32 = 2; +pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; +pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; +pub const PROCFS_IOCTL_MAGIC: u8 = 102u8; +pub const PAGE_IS_WPALLOWED: u32 = 1; +pub const PAGE_IS_WRITTEN: u32 = 2; +pub const PAGE_IS_FILE: u32 = 4; +pub const PAGE_IS_PRESENT: u32 = 8; +pub const PAGE_IS_SWAPPED: u32 = 16; +pub const PAGE_IS_PFNZERO: u32 = 32; +pub const PAGE_IS_HUGE: u32 = 64; +pub const PAGE_IS_SOFT_DIRTY: u32 = 128; +pub const PAGE_IS_GUARD: u32 = 256; +pub const PM_SCAN_WP_MATCHING: u32 = 1; +pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const BTRFS_IOCTL_MAGIC: u32 = 148; +pub const BTRFS_VOL_NAME_MAX: u32 = 255; +pub const BTRFS_LABEL_SIZE: u32 = 256; +pub const BTRFS_PATH_NAME_MAX: u32 = 4087; +pub const BTRFS_DEVICE_PATH_NAME_MAX: u32 = 1024; +pub const BTRFS_SUBVOL_NAME_MAX: u32 = 4039; +pub const BTRFS_SUBVOL_CREATE_ASYNC: u32 = 1; +pub const BTRFS_SUBVOL_RDONLY: u32 = 2; +pub const BTRFS_SUBVOL_QGROUP_INHERIT: u32 = 4; +pub const BTRFS_DEVICE_SPEC_BY_ID: u32 = 8; +pub const BTRFS_SUBVOL_SPEC_BY_ID: u32 = 16; +pub const BTRFS_VOL_ARG_V2_FLAGS_SUPPORTED: u32 = 30; +pub const BTRFS_FSID_SIZE: u32 = 16; +pub const BTRFS_UUID_SIZE: u32 = 16; +pub const BTRFS_UUID_UNPARSED_SIZE: u32 = 37; +pub const BTRFS_QGROUP_LIMIT_MAX_RFER: u32 = 1; +pub const BTRFS_QGROUP_LIMIT_MAX_EXCL: u32 = 2; +pub const BTRFS_QGROUP_LIMIT_RSV_RFER: u32 = 4; +pub const BTRFS_QGROUP_LIMIT_RSV_EXCL: u32 = 8; +pub const BTRFS_QGROUP_LIMIT_RFER_CMPR: u32 = 16; +pub const BTRFS_QGROUP_LIMIT_EXCL_CMPR: u32 = 32; +pub const BTRFS_QGROUP_INHERIT_SET_LIMITS: u32 = 1; +pub const BTRFS_QGROUP_INHERIT_FLAGS_SUPP: u32 = 1; +pub const BTRFS_DEVICE_REMOVE_ARGS_MASK: u32 = 8; +pub const BTRFS_SUBVOL_CREATE_ARGS_MASK: u32 = 6; +pub const BTRFS_SUBVOL_DELETE_ARGS_MASK: u32 = 16; +pub const BTRFS_SCRUB_READONLY: u32 = 1; +pub const BTRFS_SCRUB_SUPPORTED_FLAGS: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_CONT_READING_FROM_SRCDEV_MODE_ALWAYS: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_CONT_READING_FROM_SRCDEV_MODE_AVOID: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_NEVER_STARTED: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_STARTED: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_FINISHED: u32 = 2; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_CANCELED: u32 = 3; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_SUSPENDED: u32 = 4; +pub const BTRFS_IOCTL_DEV_REPLACE_CMD_START: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_CMD_STATUS: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_CMD_CANCEL: u32 = 2; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_NO_ERROR: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_NOT_STARTED: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_ALREADY_STARTED: u32 = 2; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_SCRUB_INPROGRESS: u32 = 3; +pub const BTRFS_FS_INFO_FLAG_CSUM_INFO: u32 = 1; +pub const BTRFS_FS_INFO_FLAG_GENERATION: u32 = 2; +pub const BTRFS_FS_INFO_FLAG_METADATA_UUID: u32 = 4; +pub const BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE: u32 = 1; +pub const BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE_VALID: u32 = 2; +pub const BTRFS_FEATURE_COMPAT_RO_VERITY: u32 = 4; +pub const BTRFS_FEATURE_COMPAT_RO_BLOCK_GROUP_TREE: u32 = 8; +pub const BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF: u32 = 1; +pub const BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL: u32 = 2; +pub const BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS: u32 = 4; +pub const BTRFS_FEATURE_INCOMPAT_COMPRESS_LZO: u32 = 8; +pub const BTRFS_FEATURE_INCOMPAT_COMPRESS_ZSTD: u32 = 16; +pub const BTRFS_FEATURE_INCOMPAT_BIG_METADATA: u32 = 32; +pub const BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF: u32 = 64; +pub const BTRFS_FEATURE_INCOMPAT_RAID56: u32 = 128; +pub const BTRFS_FEATURE_INCOMPAT_SKINNY_METADATA: u32 = 256; +pub const BTRFS_FEATURE_INCOMPAT_NO_HOLES: u32 = 512; +pub const BTRFS_FEATURE_INCOMPAT_METADATA_UUID: u32 = 1024; +pub const BTRFS_FEATURE_INCOMPAT_RAID1C34: u32 = 2048; +pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; +pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; +pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; +pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; +pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; +pub const BTRFS_BALANCE_DATA: u32 = 1; +pub const BTRFS_BALANCE_SYSTEM: u32 = 2; +pub const BTRFS_BALANCE_METADATA: u32 = 4; +pub const BTRFS_BALANCE_TYPE_MASK: u32 = 7; +pub const BTRFS_BALANCE_FORCE: u32 = 8; +pub const BTRFS_BALANCE_RESUME: u32 = 16; +pub const BTRFS_BALANCE_ARGS_PROFILES: u32 = 1; +pub const BTRFS_BALANCE_ARGS_USAGE: u32 = 2; +pub const BTRFS_BALANCE_ARGS_DEVID: u32 = 4; +pub const BTRFS_BALANCE_ARGS_DRANGE: u32 = 8; +pub const BTRFS_BALANCE_ARGS_VRANGE: u32 = 16; +pub const BTRFS_BALANCE_ARGS_LIMIT: u32 = 32; +pub const BTRFS_BALANCE_ARGS_LIMIT_RANGE: u32 = 64; +pub const BTRFS_BALANCE_ARGS_STRIPES_RANGE: u32 = 128; +pub const BTRFS_BALANCE_ARGS_USAGE_RANGE: u32 = 1024; +pub const BTRFS_BALANCE_ARGS_MASK: u32 = 1279; +pub const BTRFS_BALANCE_ARGS_CONVERT: u32 = 256; +pub const BTRFS_BALANCE_ARGS_SOFT: u32 = 512; +pub const BTRFS_BALANCE_STATE_RUNNING: u32 = 1; +pub const BTRFS_BALANCE_STATE_PAUSE_REQ: u32 = 2; +pub const BTRFS_BALANCE_STATE_CANCEL_REQ: u32 = 4; +pub const BTRFS_INO_LOOKUP_PATH_MAX: u32 = 4080; +pub const BTRFS_INO_LOOKUP_USER_PATH_MAX: u32 = 3824; +pub const BTRFS_DEFRAG_RANGE_COMPRESS: u32 = 1; +pub const BTRFS_DEFRAG_RANGE_START_IO: u32 = 2; +pub const BTRFS_DEFRAG_RANGE_COMPRESS_LEVEL: u32 = 4; +pub const BTRFS_DEFRAG_RANGE_FLAGS_SUPP: u32 = 7; +pub const BTRFS_SAME_DATA_DIFFERS: u32 = 1; +pub const BTRFS_LOGICAL_INO_ARGS_IGNORE_OFFSET: u32 = 1; +pub const BTRFS_DEV_STATS_RESET: u32 = 1; +pub const BTRFS_QUOTA_CTL_ENABLE: u32 = 1; +pub const BTRFS_QUOTA_CTL_DISABLE: u32 = 2; +pub const BTRFS_QUOTA_CTL_RESCAN__NOTUSED: u32 = 3; +pub const BTRFS_QUOTA_CTL_ENABLE_SIMPLE_QUOTA: u32 = 4; +pub const BTRFS_SEND_FLAG_NO_FILE_DATA: u32 = 1; +pub const BTRFS_SEND_FLAG_OMIT_STREAM_HEADER: u32 = 2; +pub const BTRFS_SEND_FLAG_OMIT_END_CMD: u32 = 4; +pub const BTRFS_SEND_FLAG_VERSION: u32 = 8; +pub const BTRFS_SEND_FLAG_COMPRESSED: u32 = 16; +pub const BTRFS_SEND_FLAG_MASK: u32 = 31; +pub const BTRFS_MAX_ROOTREF_BUFFER_NUM: u32 = 255; +pub const BTRFS_ENCODED_IO_COMPRESSION_NONE: u32 = 0; +pub const BTRFS_ENCODED_IO_COMPRESSION_ZLIB: u32 = 1; +pub const BTRFS_ENCODED_IO_COMPRESSION_ZSTD: u32 = 2; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_4K: u32 = 3; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_8K: u32 = 4; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_16K: u32 = 5; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_32K: u32 = 6; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7; +pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8; +pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0; +pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2; +pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3; +pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4; +pub const BTRFS_MAGIC: u64 = 5575266562640200287; +pub const BTRFS_MAX_LEVEL: u32 = 8; +pub const BTRFS_NAME_LEN: u32 = 255; +pub const BTRFS_LINK_MAX: u32 = 65535; +pub const BTRFS_ROOT_TREE_OBJECTID: u32 = 1; +pub const BTRFS_EXTENT_TREE_OBJECTID: u32 = 2; +pub const BTRFS_CHUNK_TREE_OBJECTID: u32 = 3; +pub const BTRFS_DEV_TREE_OBJECTID: u32 = 4; +pub const BTRFS_FS_TREE_OBJECTID: u32 = 5; +pub const BTRFS_ROOT_TREE_DIR_OBJECTID: u32 = 6; +pub const BTRFS_CSUM_TREE_OBJECTID: u32 = 7; +pub const BTRFS_QUOTA_TREE_OBJECTID: u32 = 8; +pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; +pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; +pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; +pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; +pub const BTRFS_BALANCE_OBJECTID: i32 = -4; +pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; +pub const BTRFS_TREE_LOG_OBJECTID: i32 = -6; +pub const BTRFS_TREE_LOG_FIXUP_OBJECTID: i32 = -7; +pub const BTRFS_TREE_RELOC_OBJECTID: i32 = -8; +pub const BTRFS_DATA_RELOC_TREE_OBJECTID: i32 = -9; +pub const BTRFS_EXTENT_CSUM_OBJECTID: i32 = -10; +pub const BTRFS_FREE_SPACE_OBJECTID: i32 = -11; +pub const BTRFS_FREE_INO_OBJECTID: i32 = -12; +pub const BTRFS_MULTIPLE_OBJECTIDS: i32 = -255; +pub const BTRFS_FIRST_FREE_OBJECTID: u32 = 256; +pub const BTRFS_LAST_FREE_OBJECTID: i32 = -256; +pub const BTRFS_FIRST_CHUNK_TREE_OBJECTID: u32 = 256; +pub const BTRFS_DEV_ITEMS_OBJECTID: u32 = 1; +pub const BTRFS_BTREE_INODE_OBJECTID: u32 = 1; +pub const BTRFS_EMPTY_SUBVOL_DIR_OBJECTID: u32 = 2; +pub const BTRFS_DEV_REPLACE_DEVID: u32 = 0; +pub const BTRFS_INODE_ITEM_KEY: u32 = 1; +pub const BTRFS_INODE_REF_KEY: u32 = 12; +pub const BTRFS_INODE_EXTREF_KEY: u32 = 13; +pub const BTRFS_XATTR_ITEM_KEY: u32 = 24; +pub const BTRFS_VERITY_DESC_ITEM_KEY: u32 = 36; +pub const BTRFS_VERITY_MERKLE_ITEM_KEY: u32 = 37; +pub const BTRFS_ORPHAN_ITEM_KEY: u32 = 48; +pub const BTRFS_DIR_LOG_ITEM_KEY: u32 = 60; +pub const BTRFS_DIR_LOG_INDEX_KEY: u32 = 72; +pub const BTRFS_DIR_ITEM_KEY: u32 = 84; +pub const BTRFS_DIR_INDEX_KEY: u32 = 96; +pub const BTRFS_EXTENT_DATA_KEY: u32 = 108; +pub const BTRFS_EXTENT_CSUM_KEY: u32 = 128; +pub const BTRFS_ROOT_ITEM_KEY: u32 = 132; +pub const BTRFS_ROOT_BACKREF_KEY: u32 = 144; +pub const BTRFS_ROOT_REF_KEY: u32 = 156; +pub const BTRFS_EXTENT_ITEM_KEY: u32 = 168; +pub const BTRFS_METADATA_ITEM_KEY: u32 = 169; +pub const BTRFS_EXTENT_OWNER_REF_KEY: u32 = 172; +pub const BTRFS_TREE_BLOCK_REF_KEY: u32 = 176; +pub const BTRFS_EXTENT_DATA_REF_KEY: u32 = 178; +pub const BTRFS_SHARED_BLOCK_REF_KEY: u32 = 182; +pub const BTRFS_SHARED_DATA_REF_KEY: u32 = 184; +pub const BTRFS_BLOCK_GROUP_ITEM_KEY: u32 = 192; +pub const BTRFS_FREE_SPACE_INFO_KEY: u32 = 198; +pub const BTRFS_FREE_SPACE_EXTENT_KEY: u32 = 199; +pub const BTRFS_FREE_SPACE_BITMAP_KEY: u32 = 200; +pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; +pub const BTRFS_DEV_ITEM_KEY: u32 = 216; +pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; +pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; +pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; +pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; +pub const BTRFS_QGROUP_RELATION_KEY: u32 = 246; +pub const BTRFS_BALANCE_ITEM_KEY: u32 = 248; +pub const BTRFS_TEMPORARY_ITEM_KEY: u32 = 248; +pub const BTRFS_DEV_STATS_KEY: u32 = 249; +pub const BTRFS_PERSISTENT_ITEM_KEY: u32 = 249; +pub const BTRFS_DEV_REPLACE_KEY: u32 = 250; +pub const BTRFS_UUID_KEY_SUBVOL: u32 = 251; +pub const BTRFS_UUID_KEY_RECEIVED_SUBVOL: u32 = 252; +pub const BTRFS_STRING_ITEM_KEY: u32 = 253; +pub const BTRFS_MAX_METADATA_BLOCKSIZE: u32 = 65536; +pub const BTRFS_CSUM_SIZE: u32 = 32; +pub const BTRFS_FT_UNKNOWN: u32 = 0; +pub const BTRFS_FT_REG_FILE: u32 = 1; +pub const BTRFS_FT_DIR: u32 = 2; +pub const BTRFS_FT_CHRDEV: u32 = 3; +pub const BTRFS_FT_BLKDEV: u32 = 4; +pub const BTRFS_FT_FIFO: u32 = 5; +pub const BTRFS_FT_SOCK: u32 = 6; +pub const BTRFS_FT_SYMLINK: u32 = 7; +pub const BTRFS_FT_XATTR: u32 = 8; +pub const BTRFS_FT_MAX: u32 = 9; +pub const BTRFS_FT_ENCRYPTED: u32 = 128; +pub const BTRFS_INODE_NODATASUM: u32 = 1; +pub const BTRFS_INODE_NODATACOW: u32 = 2; +pub const BTRFS_INODE_READONLY: u32 = 4; +pub const BTRFS_INODE_NOCOMPRESS: u32 = 8; +pub const BTRFS_INODE_PREALLOC: u32 = 16; +pub const BTRFS_INODE_SYNC: u32 = 32; +pub const BTRFS_INODE_IMMUTABLE: u32 = 64; +pub const BTRFS_INODE_APPEND: u32 = 128; +pub const BTRFS_INODE_NODUMP: u32 = 256; +pub const BTRFS_INODE_NOATIME: u32 = 512; +pub const BTRFS_INODE_DIRSYNC: u32 = 1024; +pub const BTRFS_INODE_COMPRESS: u32 = 2048; +pub const BTRFS_INODE_ROOT_ITEM_INIT: u32 = 2147483648; +pub const BTRFS_INODE_FLAG_MASK: u32 = 2147487743; +pub const BTRFS_INODE_RO_VERITY: u32 = 1; +pub const BTRFS_INODE_RO_FLAG_MASK: u32 = 1; +pub const BTRFS_SYSTEM_CHUNK_ARRAY_SIZE: u32 = 2048; +pub const BTRFS_NUM_BACKUP_ROOTS: u32 = 4; +pub const BTRFS_FREE_SPACE_EXTENT: u32 = 1; +pub const BTRFS_FREE_SPACE_BITMAP: u32 = 2; +pub const BTRFS_HEADER_FLAG_WRITTEN: u32 = 1; +pub const BTRFS_HEADER_FLAG_RELOC: u32 = 2; +pub const BTRFS_SUPER_FLAG_ERROR: u32 = 4; +pub const BTRFS_SUPER_FLAG_SEEDING: u64 = 4294967296; +pub const BTRFS_SUPER_FLAG_METADUMP: u64 = 8589934592; +pub const BTRFS_SUPER_FLAG_METADUMP_V2: u64 = 17179869184; +pub const BTRFS_SUPER_FLAG_CHANGING_FSID: u64 = 34359738368; +pub const BTRFS_SUPER_FLAG_CHANGING_FSID_V2: u64 = 68719476736; +pub const BTRFS_SUPER_FLAG_CHANGING_BG_TREE: u64 = 274877906944; +pub const BTRFS_SUPER_FLAG_CHANGING_DATA_CSUM: u64 = 549755813888; +pub const BTRFS_SUPER_FLAG_CHANGING_META_CSUM: u64 = 1099511627776; +pub const BTRFS_EXTENT_FLAG_DATA: u32 = 1; +pub const BTRFS_EXTENT_FLAG_TREE_BLOCK: u32 = 2; +pub const BTRFS_BLOCK_FLAG_FULL_BACKREF: u32 = 256; +pub const BTRFS_BACKREF_REV_MAX: u32 = 256; +pub const BTRFS_BACKREF_REV_SHIFT: u32 = 56; +pub const BTRFS_OLD_BACKREF_REV: u32 = 0; +pub const BTRFS_MIXED_BACKREF_REV: u32 = 1; +pub const BTRFS_EXTENT_FLAG_SUPER: u64 = 281474976710656; +pub const BTRFS_ROOT_SUBVOL_RDONLY: u32 = 1; +pub const BTRFS_ROOT_SUBVOL_DEAD: u64 = 281474976710656; +pub const BTRFS_DEV_REPLACE_ITEM_CONT_READING_FROM_SRCDEV_MODE_ALWAYS: u32 = 0; +pub const BTRFS_DEV_REPLACE_ITEM_CONT_READING_FROM_SRCDEV_MODE_AVOID: u32 = 1; +pub const BTRFS_BLOCK_GROUP_DATA: u32 = 1; +pub const BTRFS_BLOCK_GROUP_SYSTEM: u32 = 2; +pub const BTRFS_BLOCK_GROUP_METADATA: u32 = 4; +pub const BTRFS_BLOCK_GROUP_RAID0: u32 = 8; +pub const BTRFS_BLOCK_GROUP_RAID1: u32 = 16; +pub const BTRFS_BLOCK_GROUP_DUP: u32 = 32; +pub const BTRFS_BLOCK_GROUP_RAID10: u32 = 64; +pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; +pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; +pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; +pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; +pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; +pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; +pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; +pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; +pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; +pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; +pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; +pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; +pub const BTRFS_QGROUP_STATUS_FLAG_INCONSISTENT: u32 = 4; +pub const BTRFS_QGROUP_STATUS_FLAG_SIMPLE_MODE: u32 = 8; +pub const BTRFS_QGROUP_STATUS_FLAGS_MASK: u32 = 15; +pub const BTRFS_QGROUP_STATUS_VERSION: u32 = 1; +pub const BTRFS_FILE_EXTENT_INLINE: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_FILE_EXTENT_INLINE; +pub const BTRFS_FILE_EXTENT_REG: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_FILE_EXTENT_REG; +pub const BTRFS_FILE_EXTENT_PREALLOC: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_FILE_EXTENT_PREALLOC; +pub const BTRFS_NR_FILE_EXTENT_TYPES: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_NR_FILE_EXTENT_TYPES; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum fsconfig_command { +FSCONFIG_SET_FLAG = 0, +FSCONFIG_SET_STRING = 1, +FSCONFIG_SET_BINARY = 2, +FSCONFIG_SET_PATH = 3, +FSCONFIG_SET_PATH_EMPTY = 4, +FSCONFIG_SET_FD = 5, +FSCONFIG_CMD_CREATE = 6, +FSCONFIG_CMD_RECONFIGURE = 7, +FSCONFIG_CMD_CREATE_EXCL = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum procmap_query_flags { +PROCMAP_QUERY_VMA_READABLE = 1, +PROCMAP_QUERY_VMA_WRITABLE = 2, +PROCMAP_QUERY_VMA_EXECUTABLE = 4, +PROCMAP_QUERY_VMA_SHARED = 8, +PROCMAP_QUERY_COVERING_OR_NEXT_VMA = 16, +PROCMAP_QUERY_FILE_BACKED_VMA = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum btrfs_dev_stat_values { +BTRFS_DEV_STAT_WRITE_ERRS = 0, +BTRFS_DEV_STAT_READ_ERRS = 1, +BTRFS_DEV_STAT_FLUSH_ERRS = 2, +BTRFS_DEV_STAT_CORRUPTION_ERRS = 3, +BTRFS_DEV_STAT_GENERATION_ERRS = 4, +BTRFS_DEV_STAT_VALUES_MAX = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum btrfs_err_code { +BTRFS_ERROR_DEV_RAID1_MIN_NOT_MET = 1, +BTRFS_ERROR_DEV_RAID10_MIN_NOT_MET = 2, +BTRFS_ERROR_DEV_RAID5_MIN_NOT_MET = 3, +BTRFS_ERROR_DEV_RAID6_MIN_NOT_MET = 4, +BTRFS_ERROR_DEV_TGT_REPLACE = 5, +BTRFS_ERROR_DEV_MISSING_NOT_FOUND = 6, +BTRFS_ERROR_DEV_ONLY_WRITABLE = 7, +BTRFS_ERROR_DEV_EXCL_RUN_IN_PROGRESS = 8, +BTRFS_ERROR_DEV_RAID1C3_MIN_NOT_MET = 9, +BTRFS_ERROR_DEV_RAID1C4_MIN_NOT_MET = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum btrfs_csum_type { +BTRFS_CSUM_TYPE_CRC32 = 0, +BTRFS_CSUM_TYPE_XXHASH = 1, +BTRFS_CSUM_TYPE_SHA256 = 2, +BTRFS_CSUM_TYPE_BLAKE2 = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +BTRFS_FILE_EXTENT_INLINE = 0, +BTRFS_FILE_EXTENT_REG = 1, +BTRFS_FILE_EXTENT_PREALLOC = 2, +BTRFS_NR_FILE_EXTENT_TYPES = 3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { +pub version: __u8, +pub v1: fscrypt_policy_v1, +pub v2: fscrypt_policy_v2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_key_specifier__bindgen_ty_1 { +pub __reserved: [__u8; 32usize], +pub descriptor: [__u8; 8usize], +pub identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { +pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, +pub unused: [__u64; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_vol_args_v2__bindgen_ty_2 { +pub name: [crate::ctypes::c_char; 4040usize], +pub devid: __u64, +pub subvolid: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_dev_replace_args__bindgen_ty_1 { +pub start: btrfs_ioctl_dev_replace_start_params, +pub status: btrfs_ioctl_dev_replace_status_params, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_balance_args__bindgen_ty_1 { +pub usage: __u64, +pub __bindgen_anon_1: btrfs_balance_args__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_balance_args__bindgen_ty_2 { +pub limit: __u64, +pub __bindgen_anon_1: btrfs_balance_args__bindgen_ty_2__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_defrag_range_args__bindgen_ty_1 { +pub compress_type: __u32, +pub compress: btrfs_ioctl_defrag_range_args__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_disk_balance_args__bindgen_ty_1 { +pub usage: __le64, +pub __bindgen_anon_1: btrfs_disk_balance_args__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_disk_balance_args__bindgen_ty_2 { +pub limit: __le64, +pub __bindgen_anon_1: btrfs_disk_balance_args__bindgen_ty_2__bindgen_ty_1, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/elf_uapi.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/elf_uapi.rs new file mode 100644 index 0000000000000000000000000000000000000000..8e5a895f0010f067d92eca6b5987919cd34eca24 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/elf_uapi.rs @@ -0,0 +1,660 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_suseconds_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type Elf32_Addr = __u32; +pub type Elf32_Half = __u16; +pub type Elf32_Off = __u32; +pub type Elf32_Sword = __s32; +pub type Elf32_Word = __u32; +pub type Elf32_Versym = __u16; +pub type Elf64_Addr = __u64; +pub type Elf64_Half = __u16; +pub type Elf64_SHalf = __s16; +pub type Elf64_Off = __u64; +pub type Elf64_Sword = __s32; +pub type Elf64_Word = __u32; +pub type Elf64_Xword = __u64; +pub type Elf64_Sxword = __s64; +pub type Elf64_Versym = __u16; +pub type Elf32_Rel = elf32_rel; +pub type Elf64_Rel = elf64_rel; +pub type Elf32_Rela = elf32_rela; +pub type Elf64_Rela = elf64_rela; +pub type Elf32_Sym = elf32_sym; +pub type Elf64_Sym = elf64_sym; +pub type Elf32_Ehdr = elf32_hdr; +pub type Elf64_Ehdr = elf64_hdr; +pub type Elf32_Phdr = elf32_phdr; +pub type Elf64_Phdr = elf64_phdr; +pub type Elf32_Shdr = elf32_shdr; +pub type Elf64_Shdr = elf64_shdr; +pub type Elf32_Nhdr = elf32_note; +pub type Elf64_Nhdr = elf64_note; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_suseconds_t, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct Elf32_Dyn { +pub d_tag: Elf32_Sword, +pub d_un: Elf32_Dyn__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct Elf64_Dyn { +pub d_tag: Elf64_Sxword, +pub d_un: Elf64_Dyn__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_rel { +pub r_offset: Elf32_Addr, +pub r_info: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_rel { +pub r_offset: Elf64_Addr, +pub r_info: Elf64_Xword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_rela { +pub r_offset: Elf32_Addr, +pub r_info: Elf32_Word, +pub r_addend: Elf32_Sword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_rela { +pub r_offset: Elf64_Addr, +pub r_info: Elf64_Xword, +pub r_addend: Elf64_Sxword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_sym { +pub st_name: Elf32_Word, +pub st_value: Elf32_Addr, +pub st_size: Elf32_Word, +pub st_info: crate::ctypes::c_uchar, +pub st_other: crate::ctypes::c_uchar, +pub st_shndx: Elf32_Half, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_sym { +pub st_name: Elf64_Word, +pub st_info: crate::ctypes::c_uchar, +pub st_other: crate::ctypes::c_uchar, +pub st_shndx: Elf64_Half, +pub st_value: Elf64_Addr, +pub st_size: Elf64_Xword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_hdr { +pub e_ident: [crate::ctypes::c_uchar; 16usize], +pub e_type: Elf32_Half, +pub e_machine: Elf32_Half, +pub e_version: Elf32_Word, +pub e_entry: Elf32_Addr, +pub e_phoff: Elf32_Off, +pub e_shoff: Elf32_Off, +pub e_flags: Elf32_Word, +pub e_ehsize: Elf32_Half, +pub e_phentsize: Elf32_Half, +pub e_phnum: Elf32_Half, +pub e_shentsize: Elf32_Half, +pub e_shnum: Elf32_Half, +pub e_shstrndx: Elf32_Half, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_hdr { +pub e_ident: [crate::ctypes::c_uchar; 16usize], +pub e_type: Elf64_Half, +pub e_machine: Elf64_Half, +pub e_version: Elf64_Word, +pub e_entry: Elf64_Addr, +pub e_phoff: Elf64_Off, +pub e_shoff: Elf64_Off, +pub e_flags: Elf64_Word, +pub e_ehsize: Elf64_Half, +pub e_phentsize: Elf64_Half, +pub e_phnum: Elf64_Half, +pub e_shentsize: Elf64_Half, +pub e_shnum: Elf64_Half, +pub e_shstrndx: Elf64_Half, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_phdr { +pub p_type: Elf32_Word, +pub p_offset: Elf32_Off, +pub p_vaddr: Elf32_Addr, +pub p_paddr: Elf32_Addr, +pub p_filesz: Elf32_Word, +pub p_memsz: Elf32_Word, +pub p_flags: Elf32_Word, +pub p_align: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_phdr { +pub p_type: Elf64_Word, +pub p_flags: Elf64_Word, +pub p_offset: Elf64_Off, +pub p_vaddr: Elf64_Addr, +pub p_paddr: Elf64_Addr, +pub p_filesz: Elf64_Xword, +pub p_memsz: Elf64_Xword, +pub p_align: Elf64_Xword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_shdr { +pub sh_name: Elf32_Word, +pub sh_type: Elf32_Word, +pub sh_flags: Elf32_Word, +pub sh_addr: Elf32_Addr, +pub sh_offset: Elf32_Off, +pub sh_size: Elf32_Word, +pub sh_link: Elf32_Word, +pub sh_info: Elf32_Word, +pub sh_addralign: Elf32_Word, +pub sh_entsize: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_shdr { +pub sh_name: Elf64_Word, +pub sh_type: Elf64_Word, +pub sh_flags: Elf64_Xword, +pub sh_addr: Elf64_Addr, +pub sh_offset: Elf64_Off, +pub sh_size: Elf64_Xword, +pub sh_link: Elf64_Word, +pub sh_info: Elf64_Word, +pub sh_addralign: Elf64_Xword, +pub sh_entsize: Elf64_Xword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_note { +pub n_namesz: Elf32_Word, +pub n_descsz: Elf32_Word, +pub n_type: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_note { +pub n_namesz: Elf64_Word, +pub n_descsz: Elf64_Word, +pub n_type: Elf64_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Elf32_Verdef { +pub vd_version: Elf32_Half, +pub vd_flags: Elf32_Half, +pub vd_ndx: Elf32_Half, +pub vd_cnt: Elf32_Half, +pub vd_hash: Elf32_Word, +pub vd_aux: Elf32_Word, +pub vd_next: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Elf64_Verdef { +pub vd_version: Elf64_Half, +pub vd_flags: Elf64_Half, +pub vd_ndx: Elf64_Half, +pub vd_cnt: Elf64_Half, +pub vd_hash: Elf64_Word, +pub vd_aux: Elf64_Word, +pub vd_next: Elf64_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Elf32_Verdaux { +pub vda_name: Elf32_Word, +pub vda_next: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Elf64_Verdaux { +pub vda_name: Elf64_Word, +pub vda_next: Elf64_Word, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const EM_NONE: u32 = 0; +pub const EM_M32: u32 = 1; +pub const EM_SPARC: u32 = 2; +pub const EM_386: u32 = 3; +pub const EM_68K: u32 = 4; +pub const EM_88K: u32 = 5; +pub const EM_486: u32 = 6; +pub const EM_860: u32 = 7; +pub const EM_MIPS: u32 = 8; +pub const EM_MIPS_RS3_LE: u32 = 10; +pub const EM_MIPS_RS4_BE: u32 = 10; +pub const EM_PARISC: u32 = 15; +pub const EM_SPARC32PLUS: u32 = 18; +pub const EM_PPC: u32 = 20; +pub const EM_PPC64: u32 = 21; +pub const EM_SPU: u32 = 23; +pub const EM_ARM: u32 = 40; +pub const EM_SH: u32 = 42; +pub const EM_SPARCV9: u32 = 43; +pub const EM_H8_300: u32 = 46; +pub const EM_IA_64: u32 = 50; +pub const EM_X86_64: u32 = 62; +pub const EM_S390: u32 = 22; +pub const EM_CRIS: u32 = 76; +pub const EM_M32R: u32 = 88; +pub const EM_MN10300: u32 = 89; +pub const EM_OPENRISC: u32 = 92; +pub const EM_ARCOMPACT: u32 = 93; +pub const EM_XTENSA: u32 = 94; +pub const EM_BLACKFIN: u32 = 106; +pub const EM_UNICORE: u32 = 110; +pub const EM_ALTERA_NIOS2: u32 = 113; +pub const EM_TI_C6000: u32 = 140; +pub const EM_HEXAGON: u32 = 164; +pub const EM_NDS32: u32 = 167; +pub const EM_AARCH64: u32 = 183; +pub const EM_TILEPRO: u32 = 188; +pub const EM_MICROBLAZE: u32 = 189; +pub const EM_TILEGX: u32 = 191; +pub const EM_ARCV2: u32 = 195; +pub const EM_RISCV: u32 = 243; +pub const EM_BPF: u32 = 247; +pub const EM_CSKY: u32 = 252; +pub const EM_LOONGARCH: u32 = 258; +pub const EM_FRV: u32 = 21569; +pub const EM_ALPHA: u32 = 36902; +pub const EM_CYGNUS_M32R: u32 = 36929; +pub const EM_S390_OLD: u32 = 41872; +pub const EM_CYGNUS_MN10300: u32 = 48879; +pub const PT_NULL: u32 = 0; +pub const PT_LOAD: u32 = 1; +pub const PT_DYNAMIC: u32 = 2; +pub const PT_INTERP: u32 = 3; +pub const PT_NOTE: u32 = 4; +pub const PT_SHLIB: u32 = 5; +pub const PT_PHDR: u32 = 6; +pub const PT_TLS: u32 = 7; +pub const PT_LOOS: u32 = 1610612736; +pub const PT_HIOS: u32 = 1879048191; +pub const PT_LOPROC: u32 = 1879048192; +pub const PT_HIPROC: u32 = 2147483647; +pub const PT_GNU_EH_FRAME: u32 = 1685382480; +pub const PT_GNU_STACK: u32 = 1685382481; +pub const PT_GNU_RELRO: u32 = 1685382482; +pub const PT_GNU_PROPERTY: u32 = 1685382483; +pub const PT_AARCH64_MEMTAG_MTE: u32 = 1879048194; +pub const PN_XNUM: u32 = 65535; +pub const ET_NONE: u32 = 0; +pub const ET_REL: u32 = 1; +pub const ET_EXEC: u32 = 2; +pub const ET_DYN: u32 = 3; +pub const ET_CORE: u32 = 4; +pub const ET_LOPROC: u32 = 65280; +pub const ET_HIPROC: u32 = 65535; +pub const DT_NULL: u32 = 0; +pub const DT_NEEDED: u32 = 1; +pub const DT_PLTRELSZ: u32 = 2; +pub const DT_PLTGOT: u32 = 3; +pub const DT_HASH: u32 = 4; +pub const DT_STRTAB: u32 = 5; +pub const DT_SYMTAB: u32 = 6; +pub const DT_RELA: u32 = 7; +pub const DT_RELASZ: u32 = 8; +pub const DT_RELAENT: u32 = 9; +pub const DT_STRSZ: u32 = 10; +pub const DT_SYMENT: u32 = 11; +pub const DT_INIT: u32 = 12; +pub const DT_FINI: u32 = 13; +pub const DT_SONAME: u32 = 14; +pub const DT_RPATH: u32 = 15; +pub const DT_SYMBOLIC: u32 = 16; +pub const DT_REL: u32 = 17; +pub const DT_RELSZ: u32 = 18; +pub const DT_RELENT: u32 = 19; +pub const DT_PLTREL: u32 = 20; +pub const DT_DEBUG: u32 = 21; +pub const DT_TEXTREL: u32 = 22; +pub const DT_JMPREL: u32 = 23; +pub const DT_ENCODING: u32 = 32; +pub const OLD_DT_LOOS: u32 = 1610612736; +pub const DT_LOOS: u32 = 1610612749; +pub const DT_HIOS: u32 = 1879044096; +pub const DT_VALRNGLO: u32 = 1879047424; +pub const DT_VALRNGHI: u32 = 1879047679; +pub const DT_ADDRRNGLO: u32 = 1879047680; +pub const DT_GNU_HASH: u32 = 1879047925; +pub const DT_ADDRRNGHI: u32 = 1879047935; +pub const DT_VERSYM: u32 = 1879048176; +pub const DT_RELACOUNT: u32 = 1879048185; +pub const DT_RELCOUNT: u32 = 1879048186; +pub const DT_FLAGS_1: u32 = 1879048187; +pub const DT_VERDEF: u32 = 1879048188; +pub const DT_VERDEFNUM: u32 = 1879048189; +pub const DT_VERNEED: u32 = 1879048190; +pub const DT_VERNEEDNUM: u32 = 1879048191; +pub const OLD_DT_HIOS: u32 = 1879048191; +pub const DT_LOPROC: u32 = 1879048192; +pub const DT_HIPROC: u32 = 2147483647; +pub const STB_LOCAL: u32 = 0; +pub const STB_GLOBAL: u32 = 1; +pub const STB_WEAK: u32 = 2; +pub const STN_UNDEF: u32 = 0; +pub const STT_NOTYPE: u32 = 0; +pub const STT_OBJECT: u32 = 1; +pub const STT_FUNC: u32 = 2; +pub const STT_SECTION: u32 = 3; +pub const STT_FILE: u32 = 4; +pub const STT_COMMON: u32 = 5; +pub const STT_TLS: u32 = 6; +pub const VER_FLG_BASE: u32 = 1; +pub const VER_FLG_WEAK: u32 = 2; +pub const EI_NIDENT: u32 = 16; +pub const PF_R: u32 = 4; +pub const PF_W: u32 = 2; +pub const PF_X: u32 = 1; +pub const SHT_NULL: u32 = 0; +pub const SHT_PROGBITS: u32 = 1; +pub const SHT_SYMTAB: u32 = 2; +pub const SHT_STRTAB: u32 = 3; +pub const SHT_RELA: u32 = 4; +pub const SHT_HASH: u32 = 5; +pub const SHT_DYNAMIC: u32 = 6; +pub const SHT_NOTE: u32 = 7; +pub const SHT_NOBITS: u32 = 8; +pub const SHT_REL: u32 = 9; +pub const SHT_SHLIB: u32 = 10; +pub const SHT_DYNSYM: u32 = 11; +pub const SHT_NUM: u32 = 12; +pub const SHT_LOPROC: u32 = 1879048192; +pub const SHT_HIPROC: u32 = 2147483647; +pub const SHT_LOUSER: u32 = 2147483648; +pub const SHT_HIUSER: u32 = 4294967295; +pub const SHF_WRITE: u32 = 1; +pub const SHF_ALLOC: u32 = 2; +pub const SHF_EXECINSTR: u32 = 4; +pub const SHF_MERGE: u32 = 16; +pub const SHF_STRINGS: u32 = 32; +pub const SHF_INFO_LINK: u32 = 64; +pub const SHF_LINK_ORDER: u32 = 128; +pub const SHF_OS_NONCONFORMING: u32 = 256; +pub const SHF_GROUP: u32 = 512; +pub const SHF_TLS: u32 = 1024; +pub const SHF_RELA_LIVEPATCH: u32 = 1048576; +pub const SHF_RO_AFTER_INIT: u32 = 2097152; +pub const SHF_ORDERED: u32 = 67108864; +pub const SHF_EXCLUDE: u32 = 134217728; +pub const SHF_MASKOS: u32 = 267386880; +pub const SHF_MASKPROC: u32 = 4026531840; +pub const SHN_UNDEF: u32 = 0; +pub const SHN_LORESERVE: u32 = 65280; +pub const SHN_LOPROC: u32 = 65280; +pub const SHN_HIPROC: u32 = 65311; +pub const SHN_LIVEPATCH: u32 = 65312; +pub const SHN_ABS: u32 = 65521; +pub const SHN_COMMON: u32 = 65522; +pub const SHN_HIRESERVE: u32 = 65535; +pub const EI_MAG0: u32 = 0; +pub const EI_MAG1: u32 = 1; +pub const EI_MAG2: u32 = 2; +pub const EI_MAG3: u32 = 3; +pub const EI_CLASS: u32 = 4; +pub const EI_DATA: u32 = 5; +pub const EI_VERSION: u32 = 6; +pub const EI_OSABI: u32 = 7; +pub const EI_PAD: u32 = 8; +pub const ELFMAG0: u32 = 127; +pub const ELFMAG1: u8 = 69u8; +pub const ELFMAG2: u8 = 76u8; +pub const ELFMAG3: u8 = 70u8; +pub const ELFMAG: &[u8; 5] = b"\x7FELF\0"; +pub const SELFMAG: u32 = 4; +pub const ELFCLASSNONE: u32 = 0; +pub const ELFCLASS32: u32 = 1; +pub const ELFCLASS64: u32 = 2; +pub const ELFCLASSNUM: u32 = 3; +pub const ELFDATANONE: u32 = 0; +pub const ELFDATA2LSB: u32 = 1; +pub const ELFDATA2MSB: u32 = 2; +pub const EV_NONE: u32 = 0; +pub const EV_CURRENT: u32 = 1; +pub const EV_NUM: u32 = 2; +pub const ELFOSABI_NONE: u32 = 0; +pub const ELFOSABI_LINUX: u32 = 3; +pub const ELF_OSABI: u32 = 0; +pub const NN_GNU_PROPERTY_TYPE_0: &[u8; 4] = b"GNU\0"; +pub const NT_GNU_PROPERTY_TYPE_0: u32 = 5; +pub const NN_PRSTATUS: &[u8; 5] = b"CORE\0"; +pub const NT_PRSTATUS: u32 = 1; +pub const NN_PRFPREG: &[u8; 5] = b"CORE\0"; +pub const NT_PRFPREG: u32 = 2; +pub const NN_PRPSINFO: &[u8; 5] = b"CORE\0"; +pub const NT_PRPSINFO: u32 = 3; +pub const NN_TASKSTRUCT: &[u8; 5] = b"CORE\0"; +pub const NT_TASKSTRUCT: u32 = 4; +pub const NN_AUXV: &[u8; 5] = b"CORE\0"; +pub const NT_AUXV: u32 = 6; +pub const NN_SIGINFO: &[u8; 5] = b"CORE\0"; +pub const NT_SIGINFO: u32 = 1397311305; +pub const NN_FILE: &[u8; 5] = b"CORE\0"; +pub const NT_FILE: u32 = 1179208773; +pub const NN_PRXFPREG: &[u8; 6] = b"LINUX\0"; +pub const NT_PRXFPREG: u32 = 1189489535; +pub const NN_PPC_VMX: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_VMX: u32 = 256; +pub const NN_PPC_SPE: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_SPE: u32 = 257; +pub const NN_PPC_VSX: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_VSX: u32 = 258; +pub const NN_PPC_TAR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TAR: u32 = 259; +pub const NN_PPC_PPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_PPR: u32 = 260; +pub const NN_PPC_DSCR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_DSCR: u32 = 261; +pub const NN_PPC_EBB: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_EBB: u32 = 262; +pub const NN_PPC_PMU: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_PMU: u32 = 263; +pub const NN_PPC_TM_CGPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CGPR: u32 = 264; +pub const NN_PPC_TM_CFPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CFPR: u32 = 265; +pub const NN_PPC_TM_CVMX: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CVMX: u32 = 266; +pub const NN_PPC_TM_CVSX: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CVSX: u32 = 267; +pub const NN_PPC_TM_SPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_SPR: u32 = 268; +pub const NN_PPC_TM_CTAR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CTAR: u32 = 269; +pub const NN_PPC_TM_CPPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CPPR: u32 = 270; +pub const NN_PPC_TM_CDSCR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CDSCR: u32 = 271; +pub const NN_PPC_PKEY: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_PKEY: u32 = 272; +pub const NN_PPC_DEXCR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_DEXCR: u32 = 273; +pub const NN_PPC_HASHKEYR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_HASHKEYR: u32 = 274; +pub const NN_386_TLS: &[u8; 6] = b"LINUX\0"; +pub const NT_386_TLS: u32 = 512; +pub const NN_386_IOPERM: &[u8; 6] = b"LINUX\0"; +pub const NT_386_IOPERM: u32 = 513; +pub const NN_X86_XSTATE: &[u8; 6] = b"LINUX\0"; +pub const NT_X86_XSTATE: u32 = 514; +pub const NN_X86_SHSTK: &[u8; 6] = b"LINUX\0"; +pub const NT_X86_SHSTK: u32 = 516; +pub const NN_X86_XSAVE_LAYOUT: &[u8; 6] = b"LINUX\0"; +pub const NT_X86_XSAVE_LAYOUT: u32 = 517; +pub const NN_S390_HIGH_GPRS: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_HIGH_GPRS: u32 = 768; +pub const NN_S390_TIMER: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_TIMER: u32 = 769; +pub const NN_S390_TODCMP: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_TODCMP: u32 = 770; +pub const NN_S390_TODPREG: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_TODPREG: u32 = 771; +pub const NN_S390_CTRS: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_CTRS: u32 = 772; +pub const NN_S390_PREFIX: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_PREFIX: u32 = 773; +pub const NN_S390_LAST_BREAK: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_LAST_BREAK: u32 = 774; +pub const NN_S390_SYSTEM_CALL: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_SYSTEM_CALL: u32 = 775; +pub const NN_S390_TDB: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_TDB: u32 = 776; +pub const NN_S390_VXRS_LOW: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_VXRS_LOW: u32 = 777; +pub const NN_S390_VXRS_HIGH: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_VXRS_HIGH: u32 = 778; +pub const NN_S390_GS_CB: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_GS_CB: u32 = 779; +pub const NN_S390_GS_BC: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_GS_BC: u32 = 780; +pub const NN_S390_RI_CB: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_RI_CB: u32 = 781; +pub const NN_S390_PV_CPU_DATA: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_PV_CPU_DATA: u32 = 782; +pub const NN_ARM_VFP: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_VFP: u32 = 1024; +pub const NN_ARM_TLS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_TLS: u32 = 1025; +pub const NN_ARM_HW_BREAK: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_HW_BREAK: u32 = 1026; +pub const NN_ARM_HW_WATCH: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_HW_WATCH: u32 = 1027; +pub const NN_ARM_SYSTEM_CALL: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_SYSTEM_CALL: u32 = 1028; +pub const NN_ARM_SVE: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_SVE: u32 = 1029; +pub const NN_ARM_PAC_MASK: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_PAC_MASK: u32 = 1030; +pub const NN_ARM_PACA_KEYS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_PACA_KEYS: u32 = 1031; +pub const NN_ARM_PACG_KEYS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_PACG_KEYS: u32 = 1032; +pub const NN_ARM_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_TAGGED_ADDR_CTRL: u32 = 1033; +pub const NN_ARM_PAC_ENABLED_KEYS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_PAC_ENABLED_KEYS: u32 = 1034; +pub const NN_ARM_SSVE: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_SSVE: u32 = 1035; +pub const NN_ARM_ZA: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_ZA: u32 = 1036; +pub const NN_ARM_ZT: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_ZT: u32 = 1037; +pub const NN_ARM_FPMR: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_FPMR: u32 = 1038; +pub const NN_ARM_POE: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_POE: u32 = 1039; +pub const NN_ARM_GCS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_GCS: u32 = 1040; +pub const NN_ARC_V2: &[u8; 6] = b"LINUX\0"; +pub const NT_ARC_V2: u32 = 1536; +pub const NN_VMCOREDD: &[u8; 6] = b"LINUX\0"; +pub const NT_VMCOREDD: u32 = 1792; +pub const NN_MIPS_DSP: &[u8; 6] = b"LINUX\0"; +pub const NT_MIPS_DSP: u32 = 2048; +pub const NN_MIPS_FP_MODE: &[u8; 6] = b"LINUX\0"; +pub const NT_MIPS_FP_MODE: u32 = 2049; +pub const NN_MIPS_MSA: &[u8; 6] = b"LINUX\0"; +pub const NT_MIPS_MSA: u32 = 2050; +pub const NN_RISCV_CSR: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_CSR: u32 = 2304; +pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_VECTOR: u32 = 2305; +pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_CPUCFG: u32 = 2560; +pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_CSR: u32 = 2561; +pub const NN_LOONGARCH_LSX: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_LSX: u32 = 2562; +pub const NN_LOONGARCH_LASX: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_LASX: u32 = 2563; +pub const NN_LOONGARCH_LBT: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_LBT: u32 = 2564; +pub const NN_LOONGARCH_HW_BREAK: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_HW_BREAK: u32 = 2565; +pub const NN_LOONGARCH_HW_WATCH: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_HW_WATCH: u32 = 2566; +pub const GNU_PROPERTY_AARCH64_FEATURE_1_AND: u32 = 3221225472; +pub const GNU_PROPERTY_AARCH64_FEATURE_1_BTI: u32 = 1; +#[repr(C)] +#[derive(Copy, Clone)] +pub union Elf32_Dyn__bindgen_ty_1 { +pub d_val: Elf32_Sword, +pub d_ptr: Elf32_Addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union Elf64_Dyn__bindgen_ty_1 { +pub d_val: Elf64_Xword, +pub d_ptr: Elf64_Addr, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/errno.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/errno.rs new file mode 100644 index 0000000000000000000000000000000000000000..743e86bb93e154e5fee89a2dd7b7f833ffe23ec8 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/errno.rs @@ -0,0 +1,137 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EWOULDBLOCK: u32 = 11; +pub const EINPROGRESS: u32 = 36; +pub const EALREADY: u32 = 37; +pub const ENOTSOCK: u32 = 38; +pub const EDESTADDRREQ: u32 = 39; +pub const EMSGSIZE: u32 = 40; +pub const EPROTOTYPE: u32 = 41; +pub const ENOPROTOOPT: u32 = 42; +pub const EPROTONOSUPPORT: u32 = 43; +pub const ESOCKTNOSUPPORT: u32 = 44; +pub const EOPNOTSUPP: u32 = 45; +pub const EPFNOSUPPORT: u32 = 46; +pub const EAFNOSUPPORT: u32 = 47; +pub const EADDRINUSE: u32 = 48; +pub const EADDRNOTAVAIL: u32 = 49; +pub const ENETDOWN: u32 = 50; +pub const ENETUNREACH: u32 = 51; +pub const ENETRESET: u32 = 52; +pub const ECONNABORTED: u32 = 53; +pub const ECONNRESET: u32 = 54; +pub const ENOBUFS: u32 = 55; +pub const EISCONN: u32 = 56; +pub const ENOTCONN: u32 = 57; +pub const ESHUTDOWN: u32 = 58; +pub const ETOOMANYREFS: u32 = 59; +pub const ETIMEDOUT: u32 = 60; +pub const ECONNREFUSED: u32 = 61; +pub const ELOOP: u32 = 62; +pub const ENAMETOOLONG: u32 = 63; +pub const EHOSTDOWN: u32 = 64; +pub const EHOSTUNREACH: u32 = 65; +pub const ENOTEMPTY: u32 = 66; +pub const EPROCLIM: u32 = 67; +pub const EUSERS: u32 = 68; +pub const EDQUOT: u32 = 69; +pub const ESTALE: u32 = 70; +pub const EREMOTE: u32 = 71; +pub const ENOSTR: u32 = 72; +pub const ETIME: u32 = 73; +pub const ENOSR: u32 = 74; +pub const ENOMSG: u32 = 75; +pub const EBADMSG: u32 = 76; +pub const EIDRM: u32 = 77; +pub const EDEADLK: u32 = 78; +pub const ENOLCK: u32 = 79; +pub const ENONET: u32 = 80; +pub const ERREMOTE: u32 = 81; +pub const ENOLINK: u32 = 82; +pub const EADV: u32 = 83; +pub const ESRMNT: u32 = 84; +pub const ECOMM: u32 = 85; +pub const EPROTO: u32 = 86; +pub const EMULTIHOP: u32 = 87; +pub const EDOTDOT: u32 = 88; +pub const EREMCHG: u32 = 89; +pub const ENOSYS: u32 = 90; +pub const ESTRPIPE: u32 = 91; +pub const EOVERFLOW: u32 = 92; +pub const EBADFD: u32 = 93; +pub const ECHRNG: u32 = 94; +pub const EL2NSYNC: u32 = 95; +pub const EL3HLT: u32 = 96; +pub const EL3RST: u32 = 97; +pub const ELNRNG: u32 = 98; +pub const EUNATCH: u32 = 99; +pub const ENOCSI: u32 = 100; +pub const EL2HLT: u32 = 101; +pub const EBADE: u32 = 102; +pub const EBADR: u32 = 103; +pub const EXFULL: u32 = 104; +pub const ENOANO: u32 = 105; +pub const EBADRQC: u32 = 106; +pub const EBADSLT: u32 = 107; +pub const EDEADLOCK: u32 = 108; +pub const EBFONT: u32 = 109; +pub const ELIBEXEC: u32 = 110; +pub const ENODATA: u32 = 111; +pub const ELIBBAD: u32 = 112; +pub const ENOPKG: u32 = 113; +pub const ELIBACC: u32 = 114; +pub const ENOTUNIQ: u32 = 115; +pub const ERESTART: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EILSEQ: u32 = 122; +pub const ELIBMAX: u32 = 123; +pub const ELIBSCN: u32 = 124; +pub const ENOMEDIUM: u32 = 125; +pub const EMEDIUMTYPE: u32 = 126; +pub const ECANCELED: u32 = 127; +pub const ENOKEY: u32 = 128; +pub const EKEYEXPIRED: u32 = 129; +pub const EKEYREVOKED: u32 = 130; +pub const EKEYREJECTED: u32 = 131; +pub const EOWNERDEAD: u32 = 132; +pub const ENOTRECOVERABLE: u32 = 133; +pub const ERFKILL: u32 = 134; +pub const EHWPOISON: u32 = 135; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/general.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/general.rs new file mode 100644 index 0000000000000000000000000000000000000000..5740a045a3bc15812c17a1464072443b0b5eb67e --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/general.rs @@ -0,0 +1,3318 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_sighandler_t = ::core::option::Option; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_suseconds_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type cap_user_header_t = *mut __user_cap_header_struct; +pub type cap_user_data_t = *mut __user_cap_data_struct; +pub type __kernel_rwf_t = crate::ctypes::c_int; +pub type old_sigset_t = crate::ctypes::c_ulong; +pub type __signalfn_t = ::core::option::Option; +pub type __sighandler_t = __signalfn_t; +pub type __restorefn_t = ::core::option::Option; +pub type __sigrestore_t = __restorefn_t; +pub type stack_t = sigaltstack; +pub type sigval_t = sigval; +pub type siginfo_t = siginfo; +pub type sigevent_t = sigevent; +pub type cc_t = crate::ctypes::c_uchar; +pub type speed_t = crate::ctypes::c_uint; +pub type tcflag_t = crate::ctypes::c_uint; +pub type __fsword_t = __kernel_long_t; +#[repr(C)] +#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] +pub struct __BindgenBitfieldUnit { +storage: Storage, +} +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_fd_set { +pub fds_bits: [crate::ctypes::c_ulong; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_suseconds_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_fsid_t { +pub val: [crate::ctypes::c_int; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __user_cap_header_struct { +pub version: __u32, +pub pid: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __user_cap_data_struct { +pub effective: __u32, +pub permitted: __u32, +pub inheritable: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vfs_cap_data { +pub magic_etc: __le32, +pub data: [vfs_cap_data__bindgen_ty_1; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vfs_cap_data__bindgen_ty_1 { +pub permitted: __le32, +pub inheritable: __le32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vfs_ns_cap_data { +pub magic_etc: __le32, +pub data: [vfs_ns_cap_data__bindgen_ty_1; 2usize], +pub rootid: __le32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vfs_ns_cap_data__bindgen_ty_1 { +pub permitted: __le32, +pub inheritable: __le32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct f_owner_ex { +pub type_: crate::ctypes::c_int, +pub pid: __kernel_pid_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct flock { +pub l_type: crate::ctypes::c_short, +pub l_whence: crate::ctypes::c_short, +pub l_start: __kernel_off_t, +pub l_len: __kernel_off_t, +pub l_pid: __kernel_pid_t, +pub __unused: crate::ctypes::c_short, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct flock64 { +pub l_type: crate::ctypes::c_short, +pub l_whence: crate::ctypes::c_short, +pub l_start: __kernel_loff_t, +pub l_len: __kernel_loff_t, +pub l_pid: __kernel_pid_t, +pub __unused: crate::ctypes::c_short, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct open_how { +pub flags: __u64, +pub mode: __u64, +pub resolve: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct epoll_event { +pub events: __poll_t, +pub data: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct epoll_params { +pub busy_poll_usecs: __u32, +pub busy_poll_budget: __u16, +pub prefer_busy_poll: __u8, +pub __pad: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v1 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub master_key_descriptor: [__u8; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_key { +pub mode: __u32, +pub raw: [__u8; 64usize], +pub size: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v2 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub log2_data_unit_size: __u8, +pub __reserved: [__u8; 3usize], +pub master_key_identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_policy_ex_arg { +pub policy_size: __u64, +pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_key_specifier { +pub type_: __u32, +pub __reserved: __u32, +pub u: fscrypt_key_specifier__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct fscrypt_provisioning_key_payload { +pub type_: __u32, +pub flags: __u32, +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +pub struct fscrypt_add_key_arg { +pub key_spec: fscrypt_key_specifier, +pub raw_size: __u32, +pub key_id: __u32, +pub flags: __u32, +pub __reserved: [__u32; 7usize], +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_remove_key_arg { +pub key_spec: fscrypt_key_specifier, +pub removal_status_flags: __u32, +pub __reserved: [__u32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_key_status_arg { +pub key_spec: fscrypt_key_specifier, +pub __reserved: [__u32; 6usize], +pub status: __u32, +pub status_flags: __u32, +pub user_count: __u32, +pub __out_reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mount_attr { +pub attr_set: __u64, +pub attr_clr: __u64, +pub propagation: __u64, +pub userns_fd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct statmount { +pub size: __u32, +pub mnt_opts: __u32, +pub mask: __u64, +pub sb_dev_major: __u32, +pub sb_dev_minor: __u32, +pub sb_magic: __u64, +pub sb_flags: __u32, +pub fs_type: __u32, +pub mnt_id: __u64, +pub mnt_parent_id: __u64, +pub mnt_id_old: __u32, +pub mnt_parent_id_old: __u32, +pub mnt_attr: __u64, +pub mnt_propagation: __u64, +pub mnt_peer_group: __u64, +pub mnt_master: __u64, +pub propagate_from: __u64, +pub mnt_root: __u32, +pub mnt_point: __u32, +pub mnt_ns_id: __u64, +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub supported_mask: __u64, +pub mnt_uidmap_num: __u32, +pub mnt_uidmap: __u32, +pub mnt_gidmap_num: __u32, +pub mnt_gidmap: __u32, +pub __spare2: [__u64; 43usize], +pub str_: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mnt_id_req { +pub size: __u32, +pub spare: __u32, +pub mnt_id: __u64, +pub param: __u64, +pub mnt_ns_id: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_clone_range { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fstrim_range { +pub start: __u64, +pub len: __u64, +pub minlen: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsuuid2 { +pub len: __u8, +pub uuid: [__u8; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fs_sysfs_path { +pub len: __u8, +pub name: [__u8; 128usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_dedupe_range_info { +pub dest_fd: __s64, +pub dest_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct file_dedupe_range { +pub src_offset: __u64, +pub src_length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct files_stat_struct { +pub nr_files: crate::ctypes::c_ulong, +pub nr_free_files: crate::ctypes::c_ulong, +pub max_files: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct inodes_stat_t { +pub nr_inodes: crate::ctypes::c_long, +pub nr_unused: crate::ctypes::c_long, +pub dummy: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsxattr { +pub fsx_xflags: __u32, +pub fsx_extsize: __u32, +pub fsx_nextents: __u32, +pub fsx_projid: __u32, +pub fsx_cowextsize: __u32, +pub fsx_pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct page_region { +pub start: __u64, +pub end: __u64, +pub categories: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pm_scan_arg { +pub size: __u64, +pub flags: __u64, +pub start: __u64, +pub end: __u64, +pub walk_end: __u64, +pub vec: __u64, +pub vec_len: __u64, +pub max_pages: __u64, +pub category_inverted: __u64, +pub category_mask: __u64, +pub category_anyof_mask: __u64, +pub return_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct procmap_query { +pub size: __u64, +pub query_flags: __u64, +pub query_addr: __u64, +pub vma_start: __u64, +pub vma_end: __u64, +pub vma_flags: __u64, +pub vma_page_size: __u64, +pub vma_offset: __u64, +pub inode: __u64, +pub dev_major: __u32, +pub dev_minor: __u32, +pub vma_name_size: __u32, +pub build_id_size: __u32, +pub vma_name_addr: __u64, +pub build_id_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct futex_waitv { +pub val: __u64, +pub uaddr: __u64, +pub flags: __u32, +pub __reserved: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct robust_list { +pub next: *mut robust_list, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct robust_list_head { +pub list: robust_list, +pub futex_offset: crate::ctypes::c_long, +pub list_op_pending: *mut robust_list, +} +#[repr(C)] +#[derive(Debug)] +pub struct inotify_event { +pub wd: __s32, +pub mask: __u32, +pub cookie: __u32, +pub len: __u32, +pub name: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cachestat_range { +pub off: __u64, +pub len: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cachestat { +pub nr_cache: __u64, +pub nr_dirty: __u64, +pub nr_writeback: __u64, +pub nr_evicted: __u64, +pub nr_recently_evicted: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pollfd { +pub fd: crate::ctypes::c_int, +pub events: crate::ctypes::c_short, +pub revents: crate::ctypes::c_short, +} +#[repr(C)] +#[derive(Debug)] +pub struct rand_pool_info { +pub entropy_count: crate::ctypes::c_int, +pub buf_size: crate::ctypes::c_int, +pub buf: __IncompleteArrayField<__u32>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vgetrandom_opaque_params { +pub size_of_opaque_state: __u32, +pub mmap_prot: __u32, +pub mmap_flags: __u32, +pub reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_timespec { +pub tv_sec: __kernel_time64_t, +pub tv_nsec: crate::ctypes::c_longlong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_itimerspec { +pub it_interval: __kernel_timespec, +pub it_value: __kernel_timespec, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timespec { +pub tv_sec: __kernel_old_time_t, +pub tv_nsec: crate::ctypes::c_long, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_itimerval { +pub it_interval: __kernel_old_timeval, +pub it_value: __kernel_old_timeval, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sock_timeval { +pub tv_sec: __s64, +pub tv_usec: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rusage { +pub ru_utime: __kernel_old_timeval, +pub ru_stime: __kernel_old_timeval, +pub ru_maxrss: __kernel_long_t, +pub ru_ixrss: __kernel_long_t, +pub ru_idrss: __kernel_long_t, +pub ru_isrss: __kernel_long_t, +pub ru_minflt: __kernel_long_t, +pub ru_majflt: __kernel_long_t, +pub ru_nswap: __kernel_long_t, +pub ru_inblock: __kernel_long_t, +pub ru_oublock: __kernel_long_t, +pub ru_msgsnd: __kernel_long_t, +pub ru_msgrcv: __kernel_long_t, +pub ru_nsignals: __kernel_long_t, +pub ru_nvcsw: __kernel_long_t, +pub ru_nivcsw: __kernel_long_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rlimit { +pub rlim_cur: __kernel_ulong_t, +pub rlim_max: __kernel_ulong_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rlimit64 { +pub rlim_cur: __u64, +pub rlim_max: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct clone_args { +pub flags: __u64, +pub pidfd: __u64, +pub child_tid: __u64, +pub parent_tid: __u64, +pub exit_signal: __u64, +pub stack: __u64, +pub stack_size: __u64, +pub tls: __u64, +pub set_tid: __u64, +pub set_tid_size: __u64, +pub cgroup: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigset_t { +pub sig: [crate::ctypes::c_ulong; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigstack { +pub the_stack: *mut crate::ctypes::c_char, +pub cur_status: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigaction { +pub sa_handler: __sighandler_t, +pub sa_flags: crate::ctypes::c_ulong, +pub sa_restorer: __sigrestore_t, +pub sa_mask: sigset_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct old_sigaction { +pub sa_handler: __sighandler_t, +pub sa_mask: old_sigset_t, +pub sa_flags: crate::ctypes::c_ulong, +pub sa_restorer: ::core::option::Option, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigaltstack { +pub ss_sp: *mut crate::ctypes::c_void, +pub ss_flags: crate::ctypes::c_int, +pub ss_size: __kernel_size_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_1 { +pub _pid: __kernel_pid_t, +pub _uid: __kernel_uid32_t, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __sifields__bindgen_ty_2 { +pub _tid: __kernel_timer_t, +pub _overrun: crate::ctypes::c_int, +pub _sigval: sigval_t, +pub _sys_private: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __sifields__bindgen_ty_3 { +pub _pid: __kernel_pid_t, +pub _uid: __kernel_uid32_t, +pub _sigval: sigval_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_4 { +pub _pid: __kernel_pid_t, +pub _uid: __kernel_uid32_t, +pub _status: crate::ctypes::c_int, +pub _utime: __kernel_clock_t, +pub _stime: __kernel_clock_t, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __sifields__bindgen_ty_5 { +pub _addr: *mut crate::ctypes::c_void, +pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { +pub _dummy_bnd: [crate::ctypes::c_char; 8usize], +pub _lower: *mut crate::ctypes::c_void, +pub _upper: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { +pub _dummy_pkey: [crate::ctypes::c_char; 8usize], +pub _pkey: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { +pub _data: crate::ctypes::c_ulong, +pub _type: __u32, +pub _flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_6 { +pub _band: crate::ctypes::c_int, +pub _fd: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_7 { +pub _call_addr: *mut crate::ctypes::c_void, +pub _syscall: crate::ctypes::c_int, +pub _arch: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct siginfo { +pub __bindgen_anon_1: siginfo__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { +pub si_signo: crate::ctypes::c_int, +pub si_errno: crate::ctypes::c_int, +pub si_code: crate::ctypes::c_int, +pub _sifields: __sifields, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sigevent { +pub sigev_value: sigval_t, +pub sigev_signo: crate::ctypes::c_int, +pub sigev_notify: crate::ctypes::c_int, +pub _sigev_un: sigevent__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { +pub _function: ::core::option::Option, +pub _attribute: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statx_timestamp { +pub tv_sec: __s64, +pub tv_nsec: __u32, +pub __reserved: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statx { +pub stx_mask: __u32, +pub stx_blksize: __u32, +pub stx_attributes: __u64, +pub stx_nlink: __u32, +pub stx_uid: __u32, +pub stx_gid: __u32, +pub stx_mode: __u16, +pub __spare0: [__u16; 1usize], +pub stx_ino: __u64, +pub stx_size: __u64, +pub stx_blocks: __u64, +pub stx_attributes_mask: __u64, +pub stx_atime: statx_timestamp, +pub stx_btime: statx_timestamp, +pub stx_ctime: statx_timestamp, +pub stx_mtime: statx_timestamp, +pub stx_rdev_major: __u32, +pub stx_rdev_minor: __u32, +pub stx_dev_major: __u32, +pub stx_dev_minor: __u32, +pub stx_mnt_id: __u64, +pub stx_dio_mem_align: __u32, +pub stx_dio_offset_align: __u32, +pub stx_subvol: __u64, +pub stx_atomic_write_unit_min: __u32, +pub stx_atomic_write_unit_max: __u32, +pub stx_atomic_write_segments_max: __u32, +pub stx_dio_read_offset_align: __u32, +pub stx_atomic_write_unit_max_opt: __u32, +pub __spare2: [__u32; 1usize], +pub __spare3: [__u64; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct termios { +pub c_iflag: tcflag_t, +pub c_oflag: tcflag_t, +pub c_cflag: tcflag_t, +pub c_lflag: tcflag_t, +pub c_line: cc_t, +pub c_cc: [cc_t; 17usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct termios2 { +pub c_iflag: tcflag_t, +pub c_oflag: tcflag_t, +pub c_cflag: tcflag_t, +pub c_lflag: tcflag_t, +pub c_line: cc_t, +pub c_cc: [cc_t; 19usize], +pub c_ispeed: speed_t, +pub c_ospeed: speed_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ktermios { +pub c_iflag: tcflag_t, +pub c_oflag: tcflag_t, +pub c_cflag: tcflag_t, +pub c_lflag: tcflag_t, +pub c_line: cc_t, +pub c_cc: [cc_t; 19usize], +pub c_ispeed: speed_t, +pub c_ospeed: speed_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct winsize { +pub ws_row: crate::ctypes::c_ushort, +pub ws_col: crate::ctypes::c_ushort, +pub ws_xpixel: crate::ctypes::c_ushort, +pub ws_ypixel: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct termio { +pub c_iflag: crate::ctypes::c_ushort, +pub c_oflag: crate::ctypes::c_ushort, +pub c_cflag: crate::ctypes::c_ushort, +pub c_lflag: crate::ctypes::c_ushort, +pub c_line: crate::ctypes::c_uchar, +pub c_cc: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timespec { +pub tv_sec: __kernel_old_time_t, +pub tv_nsec: crate::ctypes::c_long, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timeval { +pub tv_sec: __kernel_old_time_t, +pub tv_usec: __kernel_suseconds_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct itimerspec { +pub it_interval: timespec, +pub it_value: timespec, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct itimerval { +pub it_interval: timeval, +pub it_value: timeval, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timezone { +pub tz_minuteswest: crate::ctypes::c_int, +pub tz_dsttime: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iovec { +pub iov_base: *mut crate::ctypes::c_void, +pub iov_len: __kernel_size_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dmabuf_cmsg { +pub frag_offset: __u64, +pub frag_size: __u32, +pub frag_token: __u32, +pub dmabuf_id: __u32, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dmabuf_token { +pub token_start: __u32, +pub token_count: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xattr_args { +pub value: __u64, +pub size: __u32, +pub flags: __u32, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct uffd_msg { +pub event: __u8, +pub reserved1: __u8, +pub reserved2: __u16, +pub reserved3: __u32, +pub arg: uffd_msg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { +pub flags: __u64, +pub address: __u64, +pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { +pub ufd: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { +pub from: __u64, +pub to: __u64, +pub len: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { +pub start: __u64, +pub end: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { +pub reserved1: __u64, +pub reserved2: __u64, +pub reserved3: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_api { +pub api: __u64, +pub features: __u64, +pub ioctls: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_range { +pub start: __u64, +pub len: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_register { +pub range: uffdio_range, +pub mode: __u64, +pub ioctls: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_copy { +pub dst: __u64, +pub src: __u64, +pub len: __u64, +pub mode: __u64, +pub copy: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_zeropage { +pub range: uffdio_range, +pub mode: __u64, +pub zeropage: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_writeprotect { +pub range: uffdio_range, +pub mode: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_continue { +pub range: uffdio_range, +pub mode: __u64, +pub mapped: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_poison { +pub range: uffdio_range, +pub mode: __u64, +pub updated: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_move { +pub dst: __u64, +pub src: __u64, +pub len: __u64, +pub mode: __u64, +pub move_: __s64, +} +#[repr(C)] +#[derive(Debug)] +pub struct linux_dirent64 { +pub d_ino: crate::ctypes::c_ulong, +pub d_off: crate::ctypes::c_long, +pub d_reclen: __u16, +pub d_type: __u8, +pub d_name: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stat { +pub st_dev: crate::ctypes::c_uint, +pub st_ino: __kernel_ino_t, +pub st_mode: __kernel_mode_t, +pub st_nlink: crate::ctypes::c_short, +pub st_uid: __kernel_uid32_t, +pub st_gid: __kernel_gid32_t, +pub st_rdev: crate::ctypes::c_uint, +pub st_size: crate::ctypes::c_long, +pub st_atime: crate::ctypes::c_long, +pub st_mtime: crate::ctypes::c_long, +pub st_ctime: crate::ctypes::c_long, +pub st_blksize: crate::ctypes::c_long, +pub st_blocks: crate::ctypes::c_long, +pub __unused4: [crate::ctypes::c_ulong; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stat64 { +pub st_dev: crate::ctypes::c_ulong, +pub st_ino: crate::ctypes::c_ulong, +pub st_nlink: crate::ctypes::c_ulong, +pub st_mode: crate::ctypes::c_uint, +pub st_uid: crate::ctypes::c_uint, +pub st_gid: crate::ctypes::c_uint, +pub __pad0: crate::ctypes::c_uint, +pub st_rdev: crate::ctypes::c_ulong, +pub st_size: crate::ctypes::c_long, +pub st_blksize: crate::ctypes::c_long, +pub st_blocks: crate::ctypes::c_long, +pub st_atime: crate::ctypes::c_ulong, +pub st_atime_nsec: crate::ctypes::c_ulong, +pub st_mtime: crate::ctypes::c_ulong, +pub st_mtime_nsec: crate::ctypes::c_ulong, +pub st_ctime: crate::ctypes::c_ulong, +pub st_ctime_nsec: crate::ctypes::c_ulong, +pub __unused: [crate::ctypes::c_long; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statfs { +pub f_type: __kernel_long_t, +pub f_bsize: __kernel_long_t, +pub f_blocks: __kernel_long_t, +pub f_bfree: __kernel_long_t, +pub f_bavail: __kernel_long_t, +pub f_files: __kernel_long_t, +pub f_ffree: __kernel_long_t, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: __kernel_long_t, +pub f_frsize: __kernel_long_t, +pub f_flags: __kernel_long_t, +pub f_spare: [__kernel_long_t; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statfs64 { +pub f_type: __kernel_long_t, +pub f_bsize: __kernel_long_t, +pub f_blocks: __u64, +pub f_bfree: __u64, +pub f_bavail: __u64, +pub f_files: __u64, +pub f_ffree: __u64, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: __kernel_long_t, +pub f_frsize: __kernel_long_t, +pub f_flags: __kernel_long_t, +pub f_spare: [__kernel_long_t; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct compat_statfs64 { +pub f_type: __u32, +pub f_bsize: __u32, +pub f_blocks: __u64, +pub f_bfree: __u64, +pub f_bavail: __u64, +pub f_files: __u64, +pub f_ffree: __u64, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: __u32, +pub f_frsize: __u32, +pub f_flags: __u32, +pub f_spare: [__u32; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_desc { +pub entry_number: crate::ctypes::c_uint, +pub base_addr: crate::ctypes::c_uint, +pub limit: crate::ctypes::c_uint, +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, +pub __bindgen_padding_0: [u8; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct kernel_sigset_t { +pub sig: [crate::ctypes::c_ulong; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct kernel_sigaction { +pub sa_handler_kernel: __kernel_sighandler_t, +pub sa_flags: crate::ctypes::c_ulong, +pub sa_mask: kernel_sigset_t, +} +pub const LINUX_VERSION_CODE: u32 = 397312; +pub const LINUX_VERSION_MAJOR: u32 = 6; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 16; +pub const LINUX_VERSION_SUBLEVEL: u32 = 0; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const __FD_SETSIZE: u32 = 1024; +pub const _LINUX_CAPABILITY_VERSION_1: u32 = 429392688; +pub const _LINUX_CAPABILITY_U32S_1: u32 = 1; +pub const _LINUX_CAPABILITY_VERSION_2: u32 = 537333798; +pub const _LINUX_CAPABILITY_U32S_2: u32 = 2; +pub const _LINUX_CAPABILITY_VERSION_3: u32 = 537396514; +pub const _LINUX_CAPABILITY_U32S_3: u32 = 2; +pub const VFS_CAP_REVISION_MASK: u32 = 4278190080; +pub const VFS_CAP_REVISION_SHIFT: u32 = 24; +pub const VFS_CAP_FLAGS_MASK: i64 = -4278190081; +pub const VFS_CAP_FLAGS_EFFECTIVE: u32 = 1; +pub const VFS_CAP_REVISION_1: u32 = 16777216; +pub const VFS_CAP_U32_1: u32 = 1; +pub const VFS_CAP_REVISION_2: u32 = 33554432; +pub const VFS_CAP_U32_2: u32 = 2; +pub const VFS_CAP_REVISION_3: u32 = 50331648; +pub const VFS_CAP_U32_3: u32 = 2; +pub const VFS_CAP_U32: u32 = 2; +pub const VFS_CAP_REVISION: u32 = 50331648; +pub const _LINUX_CAPABILITY_VERSION: u32 = 429392688; +pub const _LINUX_CAPABILITY_U32S: u32 = 1; +pub const CAP_CHOWN: u32 = 0; +pub const CAP_DAC_OVERRIDE: u32 = 1; +pub const CAP_DAC_READ_SEARCH: u32 = 2; +pub const CAP_FOWNER: u32 = 3; +pub const CAP_FSETID: u32 = 4; +pub const CAP_KILL: u32 = 5; +pub const CAP_SETGID: u32 = 6; +pub const CAP_SETUID: u32 = 7; +pub const CAP_SETPCAP: u32 = 8; +pub const CAP_LINUX_IMMUTABLE: u32 = 9; +pub const CAP_NET_BIND_SERVICE: u32 = 10; +pub const CAP_NET_BROADCAST: u32 = 11; +pub const CAP_NET_ADMIN: u32 = 12; +pub const CAP_NET_RAW: u32 = 13; +pub const CAP_IPC_LOCK: u32 = 14; +pub const CAP_IPC_OWNER: u32 = 15; +pub const CAP_SYS_MODULE: u32 = 16; +pub const CAP_SYS_RAWIO: u32 = 17; +pub const CAP_SYS_CHROOT: u32 = 18; +pub const CAP_SYS_PTRACE: u32 = 19; +pub const CAP_SYS_PACCT: u32 = 20; +pub const CAP_SYS_ADMIN: u32 = 21; +pub const CAP_SYS_BOOT: u32 = 22; +pub const CAP_SYS_NICE: u32 = 23; +pub const CAP_SYS_RESOURCE: u32 = 24; +pub const CAP_SYS_TIME: u32 = 25; +pub const CAP_SYS_TTY_CONFIG: u32 = 26; +pub const CAP_MKNOD: u32 = 27; +pub const CAP_LEASE: u32 = 28; +pub const CAP_AUDIT_WRITE: u32 = 29; +pub const CAP_AUDIT_CONTROL: u32 = 30; +pub const CAP_SETFCAP: u32 = 31; +pub const CAP_MAC_OVERRIDE: u32 = 32; +pub const CAP_MAC_ADMIN: u32 = 33; +pub const CAP_SYSLOG: u32 = 34; +pub const CAP_WAKE_ALARM: u32 = 35; +pub const CAP_BLOCK_SUSPEND: u32 = 36; +pub const CAP_AUDIT_READ: u32 = 37; +pub const CAP_PERFMON: u32 = 38; +pub const CAP_BPF: u32 = 39; +pub const CAP_CHECKPOINT_RESTORE: u32 = 40; +pub const CAP_LAST_CAP: u32 = 40; +pub const O_APPEND: u32 = 8; +pub const FASYNC: u32 = 64; +pub const O_CREAT: u32 = 512; +pub const O_TRUNC: u32 = 1024; +pub const O_EXCL: u32 = 2048; +pub const O_DSYNC: u32 = 8192; +pub const O_NONBLOCK: u32 = 16384; +pub const O_NDELAY: u32 = 4; +pub const O_NOCTTY: u32 = 32768; +pub const O_LARGEFILE: u32 = 262144; +pub const O_DIRECT: u32 = 1048576; +pub const O_NOATIME: u32 = 2097152; +pub const O_CLOEXEC: u32 = 4194304; +pub const __O_SYNC: u32 = 8388608; +pub const O_SYNC: u32 = 8396800; +pub const O_PATH: u32 = 16777216; +pub const __O_TMPFILE: u32 = 33554432; +pub const F_GETOWN: u32 = 5; +pub const F_SETOWN: u32 = 6; +pub const F_GETLK: u32 = 7; +pub const F_SETLK: u32 = 8; +pub const F_SETLKW: u32 = 9; +pub const F_RDLCK: u32 = 1; +pub const F_WRLCK: u32 = 2; +pub const F_UNLCK: u32 = 3; +pub const O_ACCMODE: u32 = 3; +pub const O_RDONLY: u32 = 0; +pub const O_WRONLY: u32 = 1; +pub const O_RDWR: u32 = 2; +pub const O_DIRECTORY: u32 = 65536; +pub const O_NOFOLLOW: u32 = 131072; +pub const O_TMPFILE: u32 = 33619968; +pub const F_DUPFD: u32 = 0; +pub const F_GETFD: u32 = 1; +pub const F_SETFD: u32 = 2; +pub const F_GETFL: u32 = 3; +pub const F_SETFL: u32 = 4; +pub const F_SETSIG: u32 = 10; +pub const F_GETSIG: u32 = 11; +pub const F_SETOWN_EX: u32 = 15; +pub const F_GETOWN_EX: u32 = 16; +pub const F_GETOWNER_UIDS: u32 = 17; +pub const F_OFD_GETLK: u32 = 36; +pub const F_OFD_SETLK: u32 = 37; +pub const F_OFD_SETLKW: u32 = 38; +pub const F_OWNER_TID: u32 = 0; +pub const F_OWNER_PID: u32 = 1; +pub const F_OWNER_PGRP: u32 = 2; +pub const FD_CLOEXEC: u32 = 1; +pub const F_EXLCK: u32 = 4; +pub const F_SHLCK: u32 = 8; +pub const LOCK_SH: u32 = 1; +pub const LOCK_EX: u32 = 2; +pub const LOCK_NB: u32 = 4; +pub const LOCK_UN: u32 = 8; +pub const LOCK_MAND: u32 = 32; +pub const LOCK_READ: u32 = 64; +pub const LOCK_WRITE: u32 = 128; +pub const LOCK_RW: u32 = 192; +pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; +pub const RESOLVE_NO_XDEV: u32 = 1; +pub const RESOLVE_NO_MAGICLINKS: u32 = 2; +pub const RESOLVE_NO_SYMLINKS: u32 = 4; +pub const RESOLVE_BENEATH: u32 = 8; +pub const RESOLVE_IN_ROOT: u32 = 16; +pub const RESOLVE_CACHED: u32 = 32; +pub const F_SETLEASE: u32 = 1024; +pub const F_GETLEASE: u32 = 1025; +pub const F_NOTIFY: u32 = 1026; +pub const F_DUPFD_QUERY: u32 = 1027; +pub const F_CREATED_QUERY: u32 = 1028; +pub const F_CANCELLK: u32 = 1029; +pub const F_DUPFD_CLOEXEC: u32 = 1030; +pub const F_SETPIPE_SZ: u32 = 1031; +pub const F_GETPIPE_SZ: u32 = 1032; +pub const F_ADD_SEALS: u32 = 1033; +pub const F_GET_SEALS: u32 = 1034; +pub const F_SEAL_SEAL: u32 = 1; +pub const F_SEAL_SHRINK: u32 = 2; +pub const F_SEAL_GROW: u32 = 4; +pub const F_SEAL_WRITE: u32 = 8; +pub const F_SEAL_FUTURE_WRITE: u32 = 16; +pub const F_SEAL_EXEC: u32 = 32; +pub const F_GET_RW_HINT: u32 = 1035; +pub const F_SET_RW_HINT: u32 = 1036; +pub const F_GET_FILE_RW_HINT: u32 = 1037; +pub const F_SET_FILE_RW_HINT: u32 = 1038; +pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; +pub const RWH_WRITE_LIFE_NONE: u32 = 1; +pub const RWH_WRITE_LIFE_SHORT: u32 = 2; +pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; +pub const RWH_WRITE_LIFE_LONG: u32 = 4; +pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; +pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const DN_ACCESS: u32 = 1; +pub const DN_MODIFY: u32 = 2; +pub const DN_CREATE: u32 = 4; +pub const DN_DELETE: u32 = 8; +pub const DN_RENAME: u32 = 16; +pub const DN_ATTRIB: u32 = 32; +pub const DN_MULTISHOT: u32 = 2147483648; +pub const AT_FDCWD: i32 = -100; +pub const AT_SYMLINK_NOFOLLOW: u32 = 256; +pub const AT_SYMLINK_FOLLOW: u32 = 1024; +pub const AT_NO_AUTOMOUNT: u32 = 2048; +pub const AT_EMPTY_PATH: u32 = 4096; +pub const AT_STATX_SYNC_TYPE: u32 = 24576; +pub const AT_STATX_SYNC_AS_STAT: u32 = 0; +pub const AT_STATX_FORCE_SYNC: u32 = 8192; +pub const AT_STATX_DONT_SYNC: u32 = 16384; +pub const AT_RECURSIVE: u32 = 32768; +pub const AT_RENAME_NOREPLACE: u32 = 1; +pub const AT_RENAME_EXCHANGE: u32 = 2; +pub const AT_RENAME_WHITEOUT: u32 = 4; +pub const AT_EACCESS: u32 = 512; +pub const AT_REMOVEDIR: u32 = 512; +pub const AT_HANDLE_FID: u32 = 512; +pub const AT_HANDLE_MNT_ID_UNIQUE: u32 = 1; +pub const AT_HANDLE_CONNECTABLE: u32 = 2; +pub const AT_EXECVE_CHECK: u32 = 65536; +pub const EPOLL_CLOEXEC: u32 = 4194304; +pub const EPOLL_CTL_ADD: u32 = 1; +pub const EPOLL_CTL_DEL: u32 = 2; +pub const EPOLL_CTL_MOD: u32 = 3; +pub const EPOLL_IOC_TYPE: u32 = 138; +pub const POSIX_FADV_NORMAL: u32 = 0; +pub const POSIX_FADV_RANDOM: u32 = 1; +pub const POSIX_FADV_SEQUENTIAL: u32 = 2; +pub const POSIX_FADV_WILLNEED: u32 = 3; +pub const POSIX_FADV_DONTNEED: u32 = 4; +pub const POSIX_FADV_NOREUSE: u32 = 5; +pub const FALLOC_FL_ALLOCATE_RANGE: u32 = 0; +pub const FALLOC_FL_KEEP_SIZE: u32 = 1; +pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; +pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; +pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; +pub const FALLOC_FL_ZERO_RANGE: u32 = 16; +pub const FALLOC_FL_INSERT_RANGE: u32 = 32; +pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; +pub const NR_OPEN: u32 = 1024; +pub const NGROUPS_MAX: u32 = 65536; +pub const ARG_MAX: u32 = 131072; +pub const LINK_MAX: u32 = 127; +pub const MAX_CANON: u32 = 255; +pub const MAX_INPUT: u32 = 255; +pub const NAME_MAX: u32 = 255; +pub const PATH_MAX: u32 = 4096; +pub const PIPE_BUF: u32 = 4096; +pub const XATTR_NAME_MAX: u32 = 255; +pub const XATTR_SIZE_MAX: u32 = 65536; +pub const XATTR_LIST_MAX: u32 = 65536; +pub const RTSIG_MAX: u32 = 32; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +pub const _IOC_XSIZEMASK: u32 = 16383; +pub const _IOC_DIRMASK: u32 = 7; +pub const _IOC_NRSHIFT: u32 = 0; +pub const _IOC_TYPESHIFT: u32 = 8; +pub const _IOC_SIZESHIFT: u32 = 16; +pub const _IOC_DIRSHIFT: u32 = 29; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const IOC_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 1073676288; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; +pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; +pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; +pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; +pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; +pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; +pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; +pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; +pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; +pub const FSCRYPT_POLICY_V1: u32 = 0; +pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; +pub const FSCRYPT_POLICY_V2: u32 = 2; +pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; +pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; +pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; +pub const FSCRYPT_ADD_KEY_FLAG_HW_WRAPPED: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; +pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; +pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; +pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; +pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; +pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FS_POLICY_FLAGS_VALID: u32 = 7; +pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; +pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; +pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; +pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; +pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; +pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; +pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; +pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; +pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FS_MAX_KEY_SIZE: u32 = 64; +pub const MS_RDONLY: u32 = 1; +pub const MS_NOSUID: u32 = 2; +pub const MS_NODEV: u32 = 4; +pub const MS_NOEXEC: u32 = 8; +pub const MS_SYNCHRONOUS: u32 = 16; +pub const MS_REMOUNT: u32 = 32; +pub const MS_MANDLOCK: u32 = 64; +pub const MS_DIRSYNC: u32 = 128; +pub const MS_NOSYMFOLLOW: u32 = 256; +pub const MS_NOATIME: u32 = 1024; +pub const MS_NODIRATIME: u32 = 2048; +pub const MS_BIND: u32 = 4096; +pub const MS_MOVE: u32 = 8192; +pub const MS_REC: u32 = 16384; +pub const MS_VERBOSE: u32 = 32768; +pub const MS_SILENT: u32 = 32768; +pub const MS_POSIXACL: u32 = 65536; +pub const MS_UNBINDABLE: u32 = 131072; +pub const MS_PRIVATE: u32 = 262144; +pub const MS_SLAVE: u32 = 524288; +pub const MS_SHARED: u32 = 1048576; +pub const MS_RELATIME: u32 = 2097152; +pub const MS_KERNMOUNT: u32 = 4194304; +pub const MS_I_VERSION: u32 = 8388608; +pub const MS_STRICTATIME: u32 = 16777216; +pub const MS_LAZYTIME: u32 = 33554432; +pub const MS_SUBMOUNT: u32 = 67108864; +pub const MS_NOREMOTELOCK: u32 = 134217728; +pub const MS_NOSEC: u32 = 268435456; +pub const MS_BORN: u32 = 536870912; +pub const MS_ACTIVE: u32 = 1073741824; +pub const MS_NOUSER: u32 = 2147483648; +pub const MS_RMT_MASK: u32 = 41943121; +pub const MS_MGC_VAL: u32 = 3236757504; +pub const MS_MGC_MSK: u32 = 4294901760; +pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_CLOEXEC: u32 = 4194304; +pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; +pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; +pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; +pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; +pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; +pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; +pub const MOVE_MOUNT_SET_GROUP: u32 = 256; +pub const MOVE_MOUNT_BENEATH: u32 = 512; +pub const MOVE_MOUNT__MASK: u32 = 887; +pub const FSOPEN_CLOEXEC: u32 = 1; +pub const FSPICK_CLOEXEC: u32 = 1; +pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; +pub const FSPICK_NO_AUTOMOUNT: u32 = 4; +pub const FSPICK_EMPTY_PATH: u32 = 8; +pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const MOUNT_ATTR_RDONLY: u32 = 1; +pub const MOUNT_ATTR_NOSUID: u32 = 2; +pub const MOUNT_ATTR_NODEV: u32 = 4; +pub const MOUNT_ATTR_NOEXEC: u32 = 8; +pub const MOUNT_ATTR__ATIME: u32 = 112; +pub const MOUNT_ATTR_RELATIME: u32 = 0; +pub const MOUNT_ATTR_NOATIME: u32 = 16; +pub const MOUNT_ATTR_STRICTATIME: u32 = 32; +pub const MOUNT_ATTR_NODIRATIME: u32 = 128; +pub const MOUNT_ATTR_IDMAP: u32 = 1048576; +pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; +pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; +pub const MNT_ID_REQ_SIZE_VER0: u32 = 24; +pub const MNT_ID_REQ_SIZE_VER1: u32 = 32; +pub const STATMOUNT_SB_BASIC: u32 = 1; +pub const STATMOUNT_MNT_BASIC: u32 = 2; +pub const STATMOUNT_PROPAGATE_FROM: u32 = 4; +pub const STATMOUNT_MNT_ROOT: u32 = 8; +pub const STATMOUNT_MNT_POINT: u32 = 16; +pub const STATMOUNT_FS_TYPE: u32 = 32; +pub const STATMOUNT_MNT_NS_ID: u32 = 64; +pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; +pub const STATMOUNT_SUPPORTED_MASK: u32 = 4096; +pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; +pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; +pub const LSMT_ROOT: i32 = -1; +pub const LISTMOUNT_REVERSE: u32 = 1; +pub const INR_OPEN_CUR: u32 = 1024; +pub const INR_OPEN_MAX: u32 = 4096; +pub const BLOCK_SIZE_BITS: u32 = 10; +pub const BLOCK_SIZE: u32 = 1024; +pub const IO_INTEGRITY_CHK_GUARD: u32 = 1; +pub const IO_INTEGRITY_CHK_REFTAG: u32 = 2; +pub const IO_INTEGRITY_CHK_APPTAG: u32 = 4; +pub const IO_INTEGRITY_VALID_FLAGS: u32 = 7; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const SEEK_DATA: u32 = 3; +pub const SEEK_HOLE: u32 = 4; +pub const SEEK_MAX: u32 = 4; +pub const RENAME_NOREPLACE: u32 = 1; +pub const RENAME_EXCHANGE: u32 = 2; +pub const RENAME_WHITEOUT: u32 = 4; +pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; +pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; +pub const NR_FILE: u32 = 8192; +pub const FS_XFLAG_REALTIME: u32 = 1; +pub const FS_XFLAG_PREALLOC: u32 = 2; +pub const FS_XFLAG_IMMUTABLE: u32 = 8; +pub const FS_XFLAG_APPEND: u32 = 16; +pub const FS_XFLAG_SYNC: u32 = 32; +pub const FS_XFLAG_NOATIME: u32 = 64; +pub const FS_XFLAG_NODUMP: u32 = 128; +pub const FS_XFLAG_RTINHERIT: u32 = 256; +pub const FS_XFLAG_PROJINHERIT: u32 = 512; +pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; +pub const FS_XFLAG_EXTSIZE: u32 = 2048; +pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; +pub const FS_XFLAG_NODEFRAG: u32 = 8192; +pub const FS_XFLAG_FILESTREAM: u32 = 16384; +pub const FS_XFLAG_DAX: u32 = 32768; +pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_HASATTR: u32 = 2147483648; +pub const BMAP_IOCTL: u32 = 1; +pub const FSLABEL_MAX: u32 = 256; +pub const FS_SECRM_FL: u32 = 1; +pub const FS_UNRM_FL: u32 = 2; +pub const FS_COMPR_FL: u32 = 4; +pub const FS_SYNC_FL: u32 = 8; +pub const FS_IMMUTABLE_FL: u32 = 16; +pub const FS_APPEND_FL: u32 = 32; +pub const FS_NODUMP_FL: u32 = 64; +pub const FS_NOATIME_FL: u32 = 128; +pub const FS_DIRTY_FL: u32 = 256; +pub const FS_COMPRBLK_FL: u32 = 512; +pub const FS_NOCOMP_FL: u32 = 1024; +pub const FS_ENCRYPT_FL: u32 = 2048; +pub const FS_BTREE_FL: u32 = 4096; +pub const FS_INDEX_FL: u32 = 4096; +pub const FS_IMAGIC_FL: u32 = 8192; +pub const FS_JOURNAL_DATA_FL: u32 = 16384; +pub const FS_NOTAIL_FL: u32 = 32768; +pub const FS_DIRSYNC_FL: u32 = 65536; +pub const FS_TOPDIR_FL: u32 = 131072; +pub const FS_HUGE_FILE_FL: u32 = 262144; +pub const FS_EXTENT_FL: u32 = 524288; +pub const FS_VERITY_FL: u32 = 1048576; +pub const FS_EA_INODE_FL: u32 = 2097152; +pub const FS_EOFBLOCKS_FL: u32 = 4194304; +pub const FS_NOCOW_FL: u32 = 8388608; +pub const FS_DAX_FL: u32 = 33554432; +pub const FS_INLINE_DATA_FL: u32 = 268435456; +pub const FS_PROJINHERIT_FL: u32 = 536870912; +pub const FS_CASEFOLD_FL: u32 = 1073741824; +pub const FS_RESERVED_FL: u32 = 2147483648; +pub const FS_FL_USER_VISIBLE: u32 = 253951; +pub const FS_FL_USER_MODIFIABLE: u32 = 229631; +pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; +pub const SYNC_FILE_RANGE_WRITE: u32 = 2; +pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; +pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; +pub const PROCFS_IOCTL_MAGIC: u8 = 102u8; +pub const PAGE_IS_WPALLOWED: u32 = 1; +pub const PAGE_IS_WRITTEN: u32 = 2; +pub const PAGE_IS_FILE: u32 = 4; +pub const PAGE_IS_PRESENT: u32 = 8; +pub const PAGE_IS_SWAPPED: u32 = 16; +pub const PAGE_IS_PFNZERO: u32 = 32; +pub const PAGE_IS_HUGE: u32 = 64; +pub const PAGE_IS_SOFT_DIRTY: u32 = 128; +pub const PAGE_IS_GUARD: u32 = 256; +pub const PM_SCAN_WP_MATCHING: u32 = 1; +pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FUTEX_WAIT: u32 = 0; +pub const FUTEX_WAKE: u32 = 1; +pub const FUTEX_FD: u32 = 2; +pub const FUTEX_REQUEUE: u32 = 3; +pub const FUTEX_CMP_REQUEUE: u32 = 4; +pub const FUTEX_WAKE_OP: u32 = 5; +pub const FUTEX_LOCK_PI: u32 = 6; +pub const FUTEX_UNLOCK_PI: u32 = 7; +pub const FUTEX_TRYLOCK_PI: u32 = 8; +pub const FUTEX_WAIT_BITSET: u32 = 9; +pub const FUTEX_WAKE_BITSET: u32 = 10; +pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; +pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; +pub const FUTEX_LOCK_PI2: u32 = 13; +pub const FUTEX_PRIVATE_FLAG: u32 = 128; +pub const FUTEX_CLOCK_REALTIME: u32 = 256; +pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_WAIT_PRIVATE: u32 = 128; +pub const FUTEX_WAKE_PRIVATE: u32 = 129; +pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; +pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; +pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; +pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; +pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; +pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; +pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; +pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; +pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; +pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; +pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX2_SIZE_U8: u32 = 0; +pub const FUTEX2_SIZE_U16: u32 = 1; +pub const FUTEX2_SIZE_U32: u32 = 2; +pub const FUTEX2_SIZE_U64: u32 = 3; +pub const FUTEX2_NUMA: u32 = 4; +pub const FUTEX2_MPOL: u32 = 8; +pub const FUTEX2_PRIVATE: u32 = 128; +pub const FUTEX2_SIZE_MASK: u32 = 3; +pub const FUTEX_32: u32 = 2; +pub const FUTEX_NO_NODE: i32 = -1; +pub const FUTEX_WAITV_MAX: u32 = 128; +pub const FUTEX_WAITERS: u32 = 2147483648; +pub const FUTEX_OWNER_DIED: u32 = 1073741824; +pub const FUTEX_TID_MASK: u32 = 1073741823; +pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; +pub const FUTEX_OP_SET: u32 = 0; +pub const FUTEX_OP_ADD: u32 = 1; +pub const FUTEX_OP_OR: u32 = 2; +pub const FUTEX_OP_ANDN: u32 = 3; +pub const FUTEX_OP_XOR: u32 = 4; +pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; +pub const FUTEX_OP_CMP_EQ: u32 = 0; +pub const FUTEX_OP_CMP_NE: u32 = 1; +pub const FUTEX_OP_CMP_LT: u32 = 2; +pub const FUTEX_OP_CMP_LE: u32 = 3; +pub const FUTEX_OP_CMP_GT: u32 = 4; +pub const FUTEX_OP_CMP_GE: u32 = 5; +pub const IN_ACCESS: u32 = 1; +pub const IN_MODIFY: u32 = 2; +pub const IN_ATTRIB: u32 = 4; +pub const IN_CLOSE_WRITE: u32 = 8; +pub const IN_CLOSE_NOWRITE: u32 = 16; +pub const IN_OPEN: u32 = 32; +pub const IN_MOVED_FROM: u32 = 64; +pub const IN_MOVED_TO: u32 = 128; +pub const IN_CREATE: u32 = 256; +pub const IN_DELETE: u32 = 512; +pub const IN_DELETE_SELF: u32 = 1024; +pub const IN_MOVE_SELF: u32 = 2048; +pub const IN_UNMOUNT: u32 = 8192; +pub const IN_Q_OVERFLOW: u32 = 16384; +pub const IN_IGNORED: u32 = 32768; +pub const IN_CLOSE: u32 = 24; +pub const IN_MOVE: u32 = 192; +pub const IN_ONLYDIR: u32 = 16777216; +pub const IN_DONT_FOLLOW: u32 = 33554432; +pub const IN_EXCL_UNLINK: u32 = 67108864; +pub const IN_MASK_CREATE: u32 = 268435456; +pub const IN_MASK_ADD: u32 = 536870912; +pub const IN_ISDIR: u32 = 1073741824; +pub const IN_ONESHOT: u32 = 2147483648; +pub const IN_ALL_EVENTS: u32 = 4095; +pub const IN_CLOEXEC: u32 = 4194304; +pub const IN_NONBLOCK: u32 = 16384; +pub const ADFS_SUPER_MAGIC: u32 = 44533; +pub const AFFS_SUPER_MAGIC: u32 = 44543; +pub const AFS_SUPER_MAGIC: u32 = 1397113167; +pub const AUTOFS_SUPER_MAGIC: u32 = 391; +pub const CEPH_SUPER_MAGIC: u32 = 12805120; +pub const CODA_SUPER_MAGIC: u32 = 1937076805; +pub const CRAMFS_MAGIC: u32 = 684539205; +pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; +pub const DEBUGFS_MAGIC: u32 = 1684170528; +pub const SECURITYFS_MAGIC: u32 = 1935894131; +pub const SELINUX_MAGIC: u32 = 4185718668; +pub const SMACK_MAGIC: u32 = 1128357203; +pub const RAMFS_MAGIC: u32 = 2240043254; +pub const TMPFS_MAGIC: u32 = 16914836; +pub const HUGETLBFS_MAGIC: u32 = 2508478710; +pub const SQUASHFS_MAGIC: u32 = 1936814952; +pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; +pub const EFS_SUPER_MAGIC: u32 = 4278867; +pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; +pub const EXT2_SUPER_MAGIC: u32 = 61267; +pub const EXT3_SUPER_MAGIC: u32 = 61267; +pub const XENFS_SUPER_MAGIC: u32 = 2881100148; +pub const EXT4_SUPER_MAGIC: u32 = 61267; +pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; +pub const NILFS_SUPER_MAGIC: u32 = 13364; +pub const F2FS_SUPER_MAGIC: u32 = 4076150800; +pub const HPFS_SUPER_MAGIC: u32 = 4187351113; +pub const ISOFS_SUPER_MAGIC: u32 = 38496; +pub const JFFS2_SUPER_MAGIC: u32 = 29366; +pub const XFS_SUPER_MAGIC: u32 = 1481003842; +pub const PSTOREFS_MAGIC: u32 = 1634035564; +pub const EFIVARFS_MAGIC: u32 = 3730735588; +pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; +pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; +pub const FUSE_SUPER_MAGIC: u32 = 1702057286; +pub const BCACHEFS_SUPER_MAGIC: u32 = 3393526350; +pub const MINIX_SUPER_MAGIC: u32 = 4991; +pub const MINIX_SUPER_MAGIC2: u32 = 5007; +pub const MINIX2_SUPER_MAGIC: u32 = 9320; +pub const MINIX2_SUPER_MAGIC2: u32 = 9336; +pub const MINIX3_SUPER_MAGIC: u32 = 19802; +pub const MSDOS_SUPER_MAGIC: u32 = 19780; +pub const EXFAT_SUPER_MAGIC: u32 = 538032816; +pub const NCP_SUPER_MAGIC: u32 = 22092; +pub const NFS_SUPER_MAGIC: u32 = 26985; +pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; +pub const OPENPROM_SUPER_MAGIC: u32 = 40865; +pub const QNX4_SUPER_MAGIC: u32 = 47; +pub const QNX6_SUPER_MAGIC: u32 = 1746473250; +pub const AFS_FS_MAGIC: u32 = 1799439955; +pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; +pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9] = b"ReIsErFs\0"; +pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr2Fs\0"; +pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr3Fs\0"; +pub const SMB_SUPER_MAGIC: u32 = 20859; +pub const CIFS_SUPER_MAGIC: u32 = 4283649346; +pub const SMB2_SUPER_MAGIC: u32 = 4266872130; +pub const CGROUP_SUPER_MAGIC: u32 = 2613483; +pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; +pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; +pub const STACK_END_MAGIC: u32 = 1470918301; +pub const TRACEFS_MAGIC: u32 = 1953653091; +pub const V9FS_MAGIC: u32 = 16914839; +pub const BDEVFS_MAGIC: u32 = 1650746742; +pub const DAXFS_MAGIC: u32 = 1684300152; +pub const BINFMTFS_MAGIC: u32 = 1112100429; +pub const DEVPTS_SUPER_MAGIC: u32 = 7377; +pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; +pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; +pub const PIPEFS_MAGIC: u32 = 1346981957; +pub const PROC_SUPER_MAGIC: u32 = 40864; +pub const SOCKFS_MAGIC: u32 = 1397703499; +pub const SYSFS_MAGIC: u32 = 1650812274; +pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; +pub const MTD_INODE_FS_MAGIC: u32 = 288389204; +pub const ANON_INODE_FS_MAGIC: u32 = 151263540; +pub const BTRFS_TEST_MAGIC: u32 = 1936880249; +pub const NSFS_MAGIC: u32 = 1853056627; +pub const BPF_FS_MAGIC: u32 = 3405662737; +pub const AAFS_MAGIC: u32 = 1513908720; +pub const ZONEFS_MAGIC: u32 = 1515144787; +pub const UDF_SUPER_MAGIC: u32 = 352400198; +pub const DMA_BUF_MAGIC: u32 = 1145913666; +pub const DEVMEM_MAGIC: u32 = 1162691661; +pub const SECRETMEM_MAGIC: u32 = 1397048141; +pub const PID_FS_MAGIC: u32 = 1346978886; +pub const PROT_READ: u32 = 1; +pub const PROT_WRITE: u32 = 2; +pub const PROT_EXEC: u32 = 4; +pub const PROT_SEM: u32 = 8; +pub const PROT_NONE: u32 = 0; +pub const PROT_GROWSDOWN: u32 = 16777216; +pub const PROT_GROWSUP: u32 = 33554432; +pub const MAP_TYPE: u32 = 15; +pub const MAP_FIXED: u32 = 16; +pub const MAP_ANONYMOUS: u32 = 32; +pub const MAP_POPULATE: u32 = 32768; +pub const MAP_NONBLOCK: u32 = 65536; +pub const MAP_STACK: u32 = 131072; +pub const MAP_HUGETLB: u32 = 262144; +pub const MAP_SYNC: u32 = 524288; +pub const MAP_FIXED_NOREPLACE: u32 = 1048576; +pub const MAP_UNINITIALIZED: u32 = 67108864; +pub const MLOCK_ONFAULT: u32 = 1; +pub const MS_ASYNC: u32 = 1; +pub const MS_INVALIDATE: u32 = 2; +pub const MS_SYNC: u32 = 4; +pub const MADV_NORMAL: u32 = 0; +pub const MADV_RANDOM: u32 = 1; +pub const MADV_SEQUENTIAL: u32 = 2; +pub const MADV_WILLNEED: u32 = 3; +pub const MADV_DONTNEED: u32 = 4; +pub const MADV_FREE: u32 = 8; +pub const MADV_REMOVE: u32 = 9; +pub const MADV_DONTFORK: u32 = 10; +pub const MADV_DOFORK: u32 = 11; +pub const MADV_HWPOISON: u32 = 100; +pub const MADV_SOFT_OFFLINE: u32 = 101; +pub const MADV_MERGEABLE: u32 = 12; +pub const MADV_UNMERGEABLE: u32 = 13; +pub const MADV_HUGEPAGE: u32 = 14; +pub const MADV_NOHUGEPAGE: u32 = 15; +pub const MADV_DONTDUMP: u32 = 16; +pub const MADV_DODUMP: u32 = 17; +pub const MADV_WIPEONFORK: u32 = 18; +pub const MADV_KEEPONFORK: u32 = 19; +pub const MADV_COLD: u32 = 20; +pub const MADV_PAGEOUT: u32 = 21; +pub const MADV_POPULATE_READ: u32 = 22; +pub const MADV_POPULATE_WRITE: u32 = 23; +pub const MADV_DONTNEED_LOCKED: u32 = 24; +pub const MADV_COLLAPSE: u32 = 25; +pub const MADV_GUARD_INSTALL: u32 = 102; +pub const MADV_GUARD_REMOVE: u32 = 103; +pub const MAP_FILE: u32 = 0; +pub const PKEY_UNRESTRICTED: u32 = 0; +pub const PKEY_DISABLE_ACCESS: u32 = 1; +pub const PKEY_DISABLE_WRITE: u32 = 2; +pub const PKEY_ACCESS_MASK: u32 = 3; +pub const PROT_ADI: u32 = 16; +pub const MAP_RENAME: u32 = 32; +pub const MAP_NORESERVE: u32 = 64; +pub const MAP_INHERIT: u32 = 128; +pub const MAP_LOCKED: u32 = 256; +pub const _MAP_NEW: u32 = 2147483648; +pub const MAP_GROWSDOWN: u32 = 512; +pub const MAP_DENYWRITE: u32 = 2048; +pub const MAP_EXECUTABLE: u32 = 4096; +pub const MCL_CURRENT: u32 = 8192; +pub const MCL_FUTURE: u32 = 16384; +pub const MCL_ONFAULT: u32 = 32768; +pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; +pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; +pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; +pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; +pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; +pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; +pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; +pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; +pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; +pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; +pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; +pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; +pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; +pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; +pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; +pub const MREMAP_MAYMOVE: u32 = 1; +pub const MREMAP_FIXED: u32 = 2; +pub const MREMAP_DONTUNMAP: u32 = 4; +pub const OVERCOMMIT_GUESS: u32 = 0; +pub const OVERCOMMIT_ALWAYS: u32 = 1; +pub const OVERCOMMIT_NEVER: u32 = 2; +pub const MAP_SHARED: u32 = 1; +pub const MAP_PRIVATE: u32 = 2; +pub const MAP_SHARED_VALIDATE: u32 = 3; +pub const MAP_DROPPABLE: u32 = 8; +pub const MAP_HUGE_SHIFT: u32 = 26; +pub const MAP_HUGE_MASK: u32 = 63; +pub const MAP_HUGE_16KB: u32 = 939524096; +pub const MAP_HUGE_64KB: u32 = 1073741824; +pub const MAP_HUGE_512KB: u32 = 1275068416; +pub const MAP_HUGE_1MB: u32 = 1342177280; +pub const MAP_HUGE_2MB: u32 = 1409286144; +pub const MAP_HUGE_8MB: u32 = 1543503872; +pub const MAP_HUGE_16MB: u32 = 1610612736; +pub const MAP_HUGE_32MB: u32 = 1677721600; +pub const MAP_HUGE_256MB: u32 = 1879048192; +pub const MAP_HUGE_512MB: u32 = 1946157056; +pub const MAP_HUGE_1GB: u32 = 2013265920; +pub const MAP_HUGE_2GB: u32 = 2080374784; +pub const MAP_HUGE_16GB: u32 = 2281701376; +pub const POLLWRBAND: u32 = 256; +pub const POLLMSG: u32 = 512; +pub const POLLREMOVE: u32 = 1024; +pub const POLLRDHUP: u32 = 2048; +pub const POLLIN: u32 = 1; +pub const POLLPRI: u32 = 2; +pub const POLLOUT: u32 = 4; +pub const POLLERR: u32 = 8; +pub const POLLHUP: u32 = 16; +pub const POLLNVAL: u32 = 32; +pub const POLLRDNORM: u32 = 64; +pub const POLLRDBAND: u32 = 128; +pub const GRND_NONBLOCK: u32 = 1; +pub const GRND_RANDOM: u32 = 2; +pub const GRND_INSECURE: u32 = 4; +pub const LINUX_REBOOT_MAGIC1: u32 = 4276215469; +pub const LINUX_REBOOT_MAGIC2: u32 = 672274793; +pub const LINUX_REBOOT_MAGIC2A: u32 = 85072278; +pub const LINUX_REBOOT_MAGIC2B: u32 = 369367448; +pub const LINUX_REBOOT_MAGIC2C: u32 = 537993216; +pub const LINUX_REBOOT_CMD_RESTART: u32 = 19088743; +pub const LINUX_REBOOT_CMD_HALT: u32 = 3454992675; +pub const LINUX_REBOOT_CMD_CAD_ON: u32 = 2309737967; +pub const LINUX_REBOOT_CMD_CAD_OFF: u32 = 0; +pub const LINUX_REBOOT_CMD_POWER_OFF: u32 = 1126301404; +pub const LINUX_REBOOT_CMD_RESTART2: u32 = 2712847316; +pub const LINUX_REBOOT_CMD_SW_SUSPEND: u32 = 3489725666; +pub const LINUX_REBOOT_CMD_KEXEC: u32 = 1163412803; +pub const RUSAGE_SELF: u32 = 0; +pub const RUSAGE_CHILDREN: i32 = -1; +pub const RUSAGE_BOTH: i32 = -2; +pub const RUSAGE_THREAD: u32 = 1; +pub const RLIM64_INFINITY: i32 = -1; +pub const PRIO_MIN: i32 = -20; +pub const PRIO_MAX: u32 = 20; +pub const PRIO_PROCESS: u32 = 0; +pub const PRIO_PGRP: u32 = 1; +pub const PRIO_USER: u32 = 2; +pub const _STK_LIM: u32 = 8388608; +pub const MLOCK_LIMIT: u32 = 8388608; +pub const RLIMIT_NOFILE: u32 = 6; +pub const RLIMIT_NPROC: u32 = 7; +pub const RLIMIT_CPU: u32 = 0; +pub const RLIMIT_FSIZE: u32 = 1; +pub const RLIMIT_DATA: u32 = 2; +pub const RLIMIT_STACK: u32 = 3; +pub const RLIMIT_CORE: u32 = 4; +pub const RLIMIT_RSS: u32 = 5; +pub const RLIMIT_MEMLOCK: u32 = 8; +pub const RLIMIT_AS: u32 = 9; +pub const RLIMIT_LOCKS: u32 = 10; +pub const RLIMIT_SIGPENDING: u32 = 11; +pub const RLIMIT_MSGQUEUE: u32 = 12; +pub const RLIMIT_NICE: u32 = 13; +pub const RLIMIT_RTPRIO: u32 = 14; +pub const RLIMIT_RTTIME: u32 = 15; +pub const RLIM_NLIMITS: u32 = 16; +pub const RLIM_INFINITY: i32 = -1; +pub const CSIGNAL: u32 = 255; +pub const CLONE_VM: u32 = 256; +pub const CLONE_FS: u32 = 512; +pub const CLONE_FILES: u32 = 1024; +pub const CLONE_SIGHAND: u32 = 2048; +pub const CLONE_PIDFD: u32 = 4096; +pub const CLONE_PTRACE: u32 = 8192; +pub const CLONE_VFORK: u32 = 16384; +pub const CLONE_PARENT: u32 = 32768; +pub const CLONE_THREAD: u32 = 65536; +pub const CLONE_NEWNS: u32 = 131072; +pub const CLONE_SYSVSEM: u32 = 262144; +pub const CLONE_SETTLS: u32 = 524288; +pub const CLONE_PARENT_SETTID: u32 = 1048576; +pub const CLONE_CHILD_CLEARTID: u32 = 2097152; +pub const CLONE_DETACHED: u32 = 4194304; +pub const CLONE_UNTRACED: u32 = 8388608; +pub const CLONE_CHILD_SETTID: u32 = 16777216; +pub const CLONE_NEWCGROUP: u32 = 33554432; +pub const CLONE_NEWUTS: u32 = 67108864; +pub const CLONE_NEWIPC: u32 = 134217728; +pub const CLONE_NEWUSER: u32 = 268435456; +pub const CLONE_NEWPID: u32 = 536870912; +pub const CLONE_NEWNET: u32 = 1073741824; +pub const CLONE_IO: u32 = 2147483648; +pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; +pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_NEWTIME: u32 = 128; +pub const CLONE_ARGS_SIZE_VER0: u32 = 64; +pub const CLONE_ARGS_SIZE_VER1: u32 = 80; +pub const CLONE_ARGS_SIZE_VER2: u32 = 88; +pub const SCHED_NORMAL: u32 = 0; +pub const SCHED_FIFO: u32 = 1; +pub const SCHED_RR: u32 = 2; +pub const SCHED_BATCH: u32 = 3; +pub const SCHED_IDLE: u32 = 5; +pub const SCHED_DEADLINE: u32 = 6; +pub const SCHED_EXT: u32 = 7; +pub const SCHED_RESET_ON_FORK: u32 = 1073741824; +pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; +pub const SCHED_FLAG_RECLAIM: u32 = 2; +pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; +pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; +pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; +pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; +pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; +pub const SCHED_FLAG_KEEP_ALL: u32 = 24; +pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; +pub const SCHED_FLAG_ALL: u32 = 127; +pub const SIGHUP: u32 = 1; +pub const SIGINT: u32 = 2; +pub const SIGQUIT: u32 = 3; +pub const SIGILL: u32 = 4; +pub const SUBSIG_STACK: u32 = 0; +pub const SUBSIG_ILLINST: u32 = 2; +pub const SUBSIG_PRIVINST: u32 = 3; +pub const SIGTRAP: u32 = 5; +pub const SIGABRT: u32 = 6; +pub const SIGIOT: u32 = 6; +pub const SIGEMT: u32 = 7; +pub const SUBSIG_TAG: u32 = 10; +pub const SIGFPE: u32 = 8; +pub const SUBSIG_FPDISABLED: u32 = 1024; +pub const SUBSIG_FPERROR: u32 = 1028; +pub const SUBSIG_FPINTOVFL: u32 = 1; +pub const SUBSIG_FPSTSIG: u32 = 2; +pub const SUBSIG_IDIVZERO: u32 = 20; +pub const SUBSIG_FPINEXACT: u32 = 196; +pub const SUBSIG_FPDIVZERO: u32 = 200; +pub const SUBSIG_FPUNFLOW: u32 = 204; +pub const SUBSIG_FPOPERROR: u32 = 208; +pub const SUBSIG_FPOVFLOW: u32 = 212; +pub const SIGKILL: u32 = 9; +pub const SIGBUS: u32 = 10; +pub const SUBSIG_BUSTIMEOUT: u32 = 1; +pub const SUBSIG_ALIGNMENT: u32 = 2; +pub const SUBSIG_MISCERROR: u32 = 5; +pub const SIGSEGV: u32 = 11; +pub const SUBSIG_NOMAPPING: u32 = 3; +pub const SUBSIG_PROTECTION: u32 = 4; +pub const SUBSIG_SEGERROR: u32 = 5; +pub const SIGSYS: u32 = 12; +pub const SIGPIPE: u32 = 13; +pub const SIGALRM: u32 = 14; +pub const SIGTERM: u32 = 15; +pub const SIGURG: u32 = 16; +pub const SIGSTOP: u32 = 17; +pub const SIGTSTP: u32 = 18; +pub const SIGCONT: u32 = 19; +pub const SIGCHLD: u32 = 20; +pub const SIGTTIN: u32 = 21; +pub const SIGTTOU: u32 = 22; +pub const SIGIO: u32 = 23; +pub const SIGPOLL: u32 = 23; +pub const SIGXCPU: u32 = 24; +pub const SIGXFSZ: u32 = 25; +pub const SIGVTALRM: u32 = 26; +pub const SIGPROF: u32 = 27; +pub const SIGWINCH: u32 = 28; +pub const SIGLOST: u32 = 29; +pub const SIGPWR: u32 = 29; +pub const SIGUSR1: u32 = 30; +pub const SIGUSR2: u32 = 31; +pub const __OLD_NSIG: u32 = 32; +pub const __NEW_NSIG: u32 = 64; +pub const _NSIG_BPW: u32 = 64; +pub const _NSIG_WORDS: u32 = 1; +pub const SIGRTMIN: u32 = 32; +pub const SIGRTMAX: u32 = 64; +pub const _NSIG: u32 = 64; +pub const _SV_SSTACK: u32 = 1; +pub const _SV_INTR: u32 = 2; +pub const _SV_RESET: u32 = 4; +pub const _SV_IGNCHILD: u32 = 8; +pub const SA_NOCLDSTOP: u32 = 8; +pub const SA_STACK: u32 = 1; +pub const SA_ONSTACK: u32 = 1; +pub const SA_RESTART: u32 = 2; +pub const SA_RESETHAND: u32 = 4; +pub const SA_NODEFER: u32 = 32; +pub const SA_NOCLDWAIT: u32 = 256; +pub const SA_SIGINFO: u32 = 512; +pub const SIG_BLOCK: u32 = 1; +pub const SIG_UNBLOCK: u32 = 2; +pub const SIG_SETMASK: u32 = 4; +pub const MINSIGSTKSZ: u32 = 4096; +pub const SIGSTKSZ: u32 = 16384; +pub const SA_UNSUPPORTED: u32 = 1024; +pub const SA_EXPOSE_TAGBITS: u32 = 2048; +pub const SA_NOMASK: u32 = 32; +pub const SA_ONESHOT: u32 = 4; +pub const SI_MAX_SIZE: u32 = 128; +pub const SI_USER: u32 = 0; +pub const SI_KERNEL: u32 = 128; +pub const SI_QUEUE: i32 = -1; +pub const SI_TIMER: i32 = -2; +pub const SI_MESGQ: i32 = -3; +pub const SI_ASYNCIO: i32 = -4; +pub const SI_SIGIO: i32 = -5; +pub const SI_TKILL: i32 = -6; +pub const SI_DETHREAD: i32 = -7; +pub const SI_ASYNCNL: i32 = -60; +pub const ILL_ILLOPC: u32 = 1; +pub const ILL_ILLOPN: u32 = 2; +pub const ILL_ILLADR: u32 = 3; +pub const ILL_ILLTRP: u32 = 4; +pub const ILL_PRVOPC: u32 = 5; +pub const ILL_PRVREG: u32 = 6; +pub const ILL_COPROC: u32 = 7; +pub const ILL_BADSTK: u32 = 8; +pub const ILL_BADIADDR: u32 = 9; +pub const __ILL_BREAK: u32 = 10; +pub const __ILL_BNDMOD: u32 = 11; +pub const NSIGILL: u32 = 11; +pub const FPE_INTDIV: u32 = 1; +pub const FPE_INTOVF: u32 = 2; +pub const FPE_FLTDIV: u32 = 3; +pub const FPE_FLTOVF: u32 = 4; +pub const FPE_FLTUND: u32 = 5; +pub const FPE_FLTRES: u32 = 6; +pub const FPE_FLTINV: u32 = 7; +pub const FPE_FLTSUB: u32 = 8; +pub const __FPE_DECOVF: u32 = 9; +pub const __FPE_DECDIV: u32 = 10; +pub const __FPE_DECERR: u32 = 11; +pub const __FPE_INVASC: u32 = 12; +pub const __FPE_INVDEC: u32 = 13; +pub const FPE_FLTUNK: u32 = 14; +pub const FPE_CONDTRAP: u32 = 15; +pub const NSIGFPE: u32 = 15; +pub const SEGV_MAPERR: u32 = 1; +pub const SEGV_ACCERR: u32 = 2; +pub const SEGV_BNDERR: u32 = 3; +pub const SEGV_PKUERR: u32 = 4; +pub const SEGV_ACCADI: u32 = 5; +pub const SEGV_ADIDERR: u32 = 6; +pub const SEGV_ADIPERR: u32 = 7; +pub const SEGV_MTEAERR: u32 = 8; +pub const SEGV_MTESERR: u32 = 9; +pub const SEGV_CPERR: u32 = 10; +pub const NSIGSEGV: u32 = 10; +pub const BUS_ADRALN: u32 = 1; +pub const BUS_ADRERR: u32 = 2; +pub const BUS_OBJERR: u32 = 3; +pub const BUS_MCEERR_AR: u32 = 4; +pub const BUS_MCEERR_AO: u32 = 5; +pub const NSIGBUS: u32 = 5; +pub const TRAP_BRKPT: u32 = 1; +pub const TRAP_TRACE: u32 = 2; +pub const TRAP_BRANCH: u32 = 3; +pub const TRAP_HWBKPT: u32 = 4; +pub const TRAP_UNK: u32 = 5; +pub const TRAP_PERF: u32 = 6; +pub const NSIGTRAP: u32 = 6; +pub const TRAP_PERF_FLAG_ASYNC: u32 = 1; +pub const CLD_EXITED: u32 = 1; +pub const CLD_KILLED: u32 = 2; +pub const CLD_DUMPED: u32 = 3; +pub const CLD_TRAPPED: u32 = 4; +pub const CLD_STOPPED: u32 = 5; +pub const CLD_CONTINUED: u32 = 6; +pub const NSIGCHLD: u32 = 6; +pub const POLL_IN: u32 = 1; +pub const POLL_OUT: u32 = 2; +pub const POLL_MSG: u32 = 3; +pub const POLL_ERR: u32 = 4; +pub const POLL_PRI: u32 = 5; +pub const POLL_HUP: u32 = 6; +pub const NSIGPOLL: u32 = 6; +pub const SYS_SECCOMP: u32 = 1; +pub const SYS_USER_DISPATCH: u32 = 2; +pub const NSIGSYS: u32 = 2; +pub const EMT_TAGOVF: u32 = 1; +pub const NSIGEMT: u32 = 1; +pub const SIGEV_SIGNAL: u32 = 0; +pub const SIGEV_NONE: u32 = 1; +pub const SIGEV_THREAD: u32 = 2; +pub const SIGEV_THREAD_ID: u32 = 4; +pub const SIGEV_MAX_SIZE: u32 = 64; +pub const SI_NOINFO: u32 = 32767; +pub const SS_ONSTACK: u32 = 1; +pub const SS_DISABLE: u32 = 2; +pub const SS_AUTODISARM: u32 = 2147483648; +pub const SS_FLAG_BITS: u32 = 2147483648; +pub const S_IFMT: u32 = 61440; +pub const S_IFSOCK: u32 = 49152; +pub const S_IFLNK: u32 = 40960; +pub const S_IFREG: u32 = 32768; +pub const S_IFBLK: u32 = 24576; +pub const S_IFDIR: u32 = 16384; +pub const S_IFCHR: u32 = 8192; +pub const S_IFIFO: u32 = 4096; +pub const S_ISUID: u32 = 2048; +pub const S_ISGID: u32 = 1024; +pub const S_ISVTX: u32 = 512; +pub const S_IRWXU: u32 = 448; +pub const S_IRUSR: u32 = 256; +pub const S_IWUSR: u32 = 128; +pub const S_IXUSR: u32 = 64; +pub const S_IRWXG: u32 = 56; +pub const S_IRGRP: u32 = 32; +pub const S_IWGRP: u32 = 16; +pub const S_IXGRP: u32 = 8; +pub const S_IRWXO: u32 = 7; +pub const S_IROTH: u32 = 4; +pub const S_IWOTH: u32 = 2; +pub const S_IXOTH: u32 = 1; +pub const STATX_TYPE: u32 = 1; +pub const STATX_MODE: u32 = 2; +pub const STATX_NLINK: u32 = 4; +pub const STATX_UID: u32 = 8; +pub const STATX_GID: u32 = 16; +pub const STATX_ATIME: u32 = 32; +pub const STATX_MTIME: u32 = 64; +pub const STATX_CTIME: u32 = 128; +pub const STATX_INO: u32 = 256; +pub const STATX_SIZE: u32 = 512; +pub const STATX_BLOCKS: u32 = 1024; +pub const STATX_BASIC_STATS: u32 = 2047; +pub const STATX_BTIME: u32 = 2048; +pub const STATX_MNT_ID: u32 = 4096; +pub const STATX_DIOALIGN: u32 = 8192; +pub const STATX_MNT_ID_UNIQUE: u32 = 16384; +pub const STATX_SUBVOL: u32 = 32768; +pub const STATX_WRITE_ATOMIC: u32 = 65536; +pub const STATX_DIO_READ_ALIGN: u32 = 131072; +pub const STATX__RESERVED: u32 = 2147483648; +pub const STATX_ALL: u32 = 4095; +pub const STATX_ATTR_COMPRESSED: u32 = 4; +pub const STATX_ATTR_IMMUTABLE: u32 = 16; +pub const STATX_ATTR_APPEND: u32 = 32; +pub const STATX_ATTR_NODUMP: u32 = 64; +pub const STATX_ATTR_ENCRYPTED: u32 = 2048; +pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; +pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; +pub const STATX_ATTR_VERITY: u32 = 1048576; +pub const STATX_ATTR_DAX: u32 = 2097152; +pub const STATX_ATTR_WRITE_ATOMIC: u32 = 4194304; +pub const TIOCPKT_DATA: u32 = 0; +pub const TIOCPKT_FLUSHREAD: u32 = 1; +pub const TIOCPKT_FLUSHWRITE: u32 = 2; +pub const TIOCPKT_STOP: u32 = 4; +pub const TIOCPKT_START: u32 = 8; +pub const TIOCPKT_NOSTOP: u32 = 16; +pub const TIOCPKT_DOSTOP: u32 = 32; +pub const TIOCPKT_IOCTL: u32 = 64; +pub const IGNBRK: u32 = 1; +pub const BRKINT: u32 = 2; +pub const IGNPAR: u32 = 4; +pub const PARMRK: u32 = 8; +pub const INPCK: u32 = 16; +pub const ISTRIP: u32 = 32; +pub const INLCR: u32 = 64; +pub const IGNCR: u32 = 128; +pub const ICRNL: u32 = 256; +pub const IXANY: u32 = 2048; +pub const OPOST: u32 = 1; +pub const OCRNL: u32 = 8; +pub const ONOCR: u32 = 16; +pub const ONLRET: u32 = 32; +pub const OFILL: u32 = 64; +pub const OFDEL: u32 = 128; +pub const B0: u32 = 0; +pub const B50: u32 = 1; +pub const B75: u32 = 2; +pub const B110: u32 = 3; +pub const B134: u32 = 4; +pub const B150: u32 = 5; +pub const B200: u32 = 6; +pub const B300: u32 = 7; +pub const B600: u32 = 8; +pub const B1200: u32 = 9; +pub const B1800: u32 = 10; +pub const B2400: u32 = 11; +pub const B4800: u32 = 12; +pub const B9600: u32 = 13; +pub const B19200: u32 = 14; +pub const B38400: u32 = 15; +pub const EXTA: u32 = 14; +pub const EXTB: u32 = 15; +pub const ADDRB: u32 = 536870912; +pub const CMSPAR: u32 = 1073741824; +pub const CRTSCTS: u32 = 2147483648; +pub const IBSHIFT: u32 = 16; +pub const TCOOFF: u32 = 0; +pub const TCOON: u32 = 1; +pub const TCIOFF: u32 = 2; +pub const TCION: u32 = 3; +pub const TCIFLUSH: u32 = 0; +pub const TCOFLUSH: u32 = 1; +pub const TCIOFLUSH: u32 = 2; +pub const NCCS: u32 = 17; +pub const VINTR: u32 = 0; +pub const VQUIT: u32 = 1; +pub const VERASE: u32 = 2; +pub const VKILL: u32 = 3; +pub const VEOF: u32 = 4; +pub const VEOL: u32 = 5; +pub const VEOL2: u32 = 6; +pub const VSWTC: u32 = 7; +pub const VSTART: u32 = 8; +pub const VSTOP: u32 = 9; +pub const VSUSP: u32 = 10; +pub const VDSUSP: u32 = 11; +pub const VREPRINT: u32 = 12; +pub const VDISCARD: u32 = 13; +pub const VWERASE: u32 = 14; +pub const VLNEXT: u32 = 15; +pub const VMIN: u32 = 4; +pub const VTIME: u32 = 5; +pub const IUCLC: u32 = 512; +pub const IXON: u32 = 1024; +pub const IXOFF: u32 = 4096; +pub const IMAXBEL: u32 = 8192; +pub const IUTF8: u32 = 16384; +pub const OLCUC: u32 = 2; +pub const ONLCR: u32 = 4; +pub const NLDLY: u32 = 256; +pub const NL0: u32 = 0; +pub const NL1: u32 = 256; +pub const CRDLY: u32 = 1536; +pub const CR0: u32 = 0; +pub const CR1: u32 = 512; +pub const CR2: u32 = 1024; +pub const CR3: u32 = 1536; +pub const TABDLY: u32 = 6144; +pub const TAB0: u32 = 0; +pub const TAB1: u32 = 2048; +pub const TAB2: u32 = 4096; +pub const TAB3: u32 = 6144; +pub const XTABS: u32 = 6144; +pub const BSDLY: u32 = 8192; +pub const BS0: u32 = 0; +pub const BS1: u32 = 8192; +pub const VTDLY: u32 = 16384; +pub const VT0: u32 = 0; +pub const VT1: u32 = 16384; +pub const FFDLY: u32 = 32768; +pub const FF0: u32 = 0; +pub const FF1: u32 = 32768; +pub const PAGEOUT: u32 = 65536; +pub const WRAP: u32 = 131072; +pub const CBAUD: u32 = 4111; +pub const CSIZE: u32 = 48; +pub const CS5: u32 = 0; +pub const CS6: u32 = 16; +pub const CS7: u32 = 32; +pub const CS8: u32 = 48; +pub const CSTOPB: u32 = 64; +pub const CREAD: u32 = 128; +pub const PARENB: u32 = 256; +pub const PARODD: u32 = 512; +pub const HUPCL: u32 = 1024; +pub const CLOCAL: u32 = 2048; +pub const CBAUDEX: u32 = 4096; +pub const BOTHER: u32 = 4096; +pub const B57600: u32 = 4097; +pub const B115200: u32 = 4098; +pub const B230400: u32 = 4099; +pub const B460800: u32 = 4100; +pub const B76800: u32 = 4101; +pub const B153600: u32 = 4102; +pub const B307200: u32 = 4103; +pub const B614400: u32 = 4104; +pub const B921600: u32 = 4105; +pub const B500000: u32 = 4106; +pub const B576000: u32 = 4107; +pub const B1000000: u32 = 4108; +pub const B1152000: u32 = 4109; +pub const B1500000: u32 = 4110; +pub const B2000000: u32 = 4111; +pub const CIBAUD: u32 = 269418496; +pub const ISIG: u32 = 1; +pub const ICANON: u32 = 2; +pub const XCASE: u32 = 4; +pub const ECHO: u32 = 8; +pub const ECHOE: u32 = 16; +pub const ECHOK: u32 = 32; +pub const ECHONL: u32 = 64; +pub const NOFLSH: u32 = 128; +pub const TOSTOP: u32 = 256; +pub const ECHOCTL: u32 = 512; +pub const ECHOPRT: u32 = 1024; +pub const ECHOKE: u32 = 2048; +pub const DEFECHO: u32 = 4096; +pub const FLUSHO: u32 = 8192; +pub const PENDIN: u32 = 16384; +pub const IEXTEN: u32 = 32768; +pub const EXTPROC: u32 = 65536; +pub const TIOCM_LE: u32 = 1; +pub const TIOCM_DTR: u32 = 2; +pub const TIOCM_RTS: u32 = 4; +pub const TIOCM_ST: u32 = 8; +pub const TIOCM_SR: u32 = 16; +pub const TIOCM_CTS: u32 = 32; +pub const TIOCM_CAR: u32 = 64; +pub const TIOCM_RNG: u32 = 128; +pub const TIOCM_DSR: u32 = 256; +pub const TIOCM_CD: u32 = 64; +pub const TIOCM_RI: u32 = 128; +pub const TIOCM_OUT1: u32 = 8192; +pub const TIOCM_OUT2: u32 = 16384; +pub const TIOCM_LOOP: u32 = 32768; +pub const TIOCSER_TEMT: u32 = 1; +pub const TCSANOW: u32 = 0; +pub const TCSADRAIN: u32 = 1; +pub const TCSAFLUSH: u32 = 2; +pub const NCC: u32 = 8; +pub const ITIMER_REAL: u32 = 0; +pub const ITIMER_VIRTUAL: u32 = 1; +pub const ITIMER_PROF: u32 = 2; +pub const CLOCK_REALTIME: u32 = 0; +pub const CLOCK_MONOTONIC: u32 = 1; +pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; +pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; +pub const CLOCK_MONOTONIC_RAW: u32 = 4; +pub const CLOCK_REALTIME_COARSE: u32 = 5; +pub const CLOCK_MONOTONIC_COARSE: u32 = 6; +pub const CLOCK_BOOTTIME: u32 = 7; +pub const CLOCK_REALTIME_ALARM: u32 = 8; +pub const CLOCK_BOOTTIME_ALARM: u32 = 9; +pub const CLOCK_SGI_CYCLE: u32 = 10; +pub const CLOCK_TAI: u32 = 11; +pub const MAX_CLOCKS: u32 = 16; +pub const CLOCKS_MASK: u32 = 1; +pub const CLOCKS_MONO: u32 = 1; +pub const TIMER_ABSTIME: u32 = 1; +pub const UIO_FASTIOV: u32 = 8; +pub const UIO_MAXIOV: u32 = 1024; +pub const __NR_restart_syscall: u32 = 0; +pub const __NR_exit: u32 = 1; +pub const __NR_fork: u32 = 2; +pub const __NR_read: u32 = 3; +pub const __NR_write: u32 = 4; +pub const __NR_open: u32 = 5; +pub const __NR_close: u32 = 6; +pub const __NR_wait4: u32 = 7; +pub const __NR_creat: u32 = 8; +pub const __NR_link: u32 = 9; +pub const __NR_unlink: u32 = 10; +pub const __NR_execv: u32 = 11; +pub const __NR_chdir: u32 = 12; +pub const __NR_chown: u32 = 13; +pub const __NR_mknod: u32 = 14; +pub const __NR_chmod: u32 = 15; +pub const __NR_lchown: u32 = 16; +pub const __NR_brk: u32 = 17; +pub const __NR_perfctr: u32 = 18; +pub const __NR_lseek: u32 = 19; +pub const __NR_getpid: u32 = 20; +pub const __NR_capget: u32 = 21; +pub const __NR_capset: u32 = 22; +pub const __NR_setuid: u32 = 23; +pub const __NR_getuid: u32 = 24; +pub const __NR_vmsplice: u32 = 25; +pub const __NR_ptrace: u32 = 26; +pub const __NR_alarm: u32 = 27; +pub const __NR_sigaltstack: u32 = 28; +pub const __NR_pause: u32 = 29; +pub const __NR_utime: u32 = 30; +pub const __NR_access: u32 = 33; +pub const __NR_nice: u32 = 34; +pub const __NR_sync: u32 = 36; +pub const __NR_kill: u32 = 37; +pub const __NR_stat: u32 = 38; +pub const __NR_sendfile: u32 = 39; +pub const __NR_lstat: u32 = 40; +pub const __NR_dup: u32 = 41; +pub const __NR_pipe: u32 = 42; +pub const __NR_times: u32 = 43; +pub const __NR_umount2: u32 = 45; +pub const __NR_setgid: u32 = 46; +pub const __NR_getgid: u32 = 47; +pub const __NR_signal: u32 = 48; +pub const __NR_geteuid: u32 = 49; +pub const __NR_getegid: u32 = 50; +pub const __NR_acct: u32 = 51; +pub const __NR_memory_ordering: u32 = 52; +pub const __NR_ioctl: u32 = 54; +pub const __NR_reboot: u32 = 55; +pub const __NR_symlink: u32 = 57; +pub const __NR_readlink: u32 = 58; +pub const __NR_execve: u32 = 59; +pub const __NR_umask: u32 = 60; +pub const __NR_chroot: u32 = 61; +pub const __NR_fstat: u32 = 62; +pub const __NR_fstat64: u32 = 63; +pub const __NR_getpagesize: u32 = 64; +pub const __NR_msync: u32 = 65; +pub const __NR_vfork: u32 = 66; +pub const __NR_pread64: u32 = 67; +pub const __NR_pwrite64: u32 = 68; +pub const __NR_mmap: u32 = 71; +pub const __NR_munmap: u32 = 73; +pub const __NR_mprotect: u32 = 74; +pub const __NR_madvise: u32 = 75; +pub const __NR_vhangup: u32 = 76; +pub const __NR_mincore: u32 = 78; +pub const __NR_getgroups: u32 = 79; +pub const __NR_setgroups: u32 = 80; +pub const __NR_getpgrp: u32 = 81; +pub const __NR_setitimer: u32 = 83; +pub const __NR_swapon: u32 = 85; +pub const __NR_getitimer: u32 = 86; +pub const __NR_sethostname: u32 = 88; +pub const __NR_dup2: u32 = 90; +pub const __NR_fcntl: u32 = 92; +pub const __NR_select: u32 = 93; +pub const __NR_fsync: u32 = 95; +pub const __NR_setpriority: u32 = 96; +pub const __NR_socket: u32 = 97; +pub const __NR_connect: u32 = 98; +pub const __NR_accept: u32 = 99; +pub const __NR_getpriority: u32 = 100; +pub const __NR_rt_sigreturn: u32 = 101; +pub const __NR_rt_sigaction: u32 = 102; +pub const __NR_rt_sigprocmask: u32 = 103; +pub const __NR_rt_sigpending: u32 = 104; +pub const __NR_rt_sigtimedwait: u32 = 105; +pub const __NR_rt_sigqueueinfo: u32 = 106; +pub const __NR_rt_sigsuspend: u32 = 107; +pub const __NR_setresuid: u32 = 108; +pub const __NR_getresuid: u32 = 109; +pub const __NR_setresgid: u32 = 110; +pub const __NR_getresgid: u32 = 111; +pub const __NR_recvmsg: u32 = 113; +pub const __NR_sendmsg: u32 = 114; +pub const __NR_gettimeofday: u32 = 116; +pub const __NR_getrusage: u32 = 117; +pub const __NR_getsockopt: u32 = 118; +pub const __NR_getcwd: u32 = 119; +pub const __NR_readv: u32 = 120; +pub const __NR_writev: u32 = 121; +pub const __NR_settimeofday: u32 = 122; +pub const __NR_fchown: u32 = 123; +pub const __NR_fchmod: u32 = 124; +pub const __NR_recvfrom: u32 = 125; +pub const __NR_setreuid: u32 = 126; +pub const __NR_setregid: u32 = 127; +pub const __NR_rename: u32 = 128; +pub const __NR_truncate: u32 = 129; +pub const __NR_ftruncate: u32 = 130; +pub const __NR_flock: u32 = 131; +pub const __NR_lstat64: u32 = 132; +pub const __NR_sendto: u32 = 133; +pub const __NR_shutdown: u32 = 134; +pub const __NR_socketpair: u32 = 135; +pub const __NR_mkdir: u32 = 136; +pub const __NR_rmdir: u32 = 137; +pub const __NR_utimes: u32 = 138; +pub const __NR_stat64: u32 = 139; +pub const __NR_sendfile64: u32 = 140; +pub const __NR_getpeername: u32 = 141; +pub const __NR_futex: u32 = 142; +pub const __NR_gettid: u32 = 143; +pub const __NR_getrlimit: u32 = 144; +pub const __NR_setrlimit: u32 = 145; +pub const __NR_pivot_root: u32 = 146; +pub const __NR_prctl: u32 = 147; +pub const __NR_pciconfig_read: u32 = 148; +pub const __NR_pciconfig_write: u32 = 149; +pub const __NR_getsockname: u32 = 150; +pub const __NR_inotify_init: u32 = 151; +pub const __NR_inotify_add_watch: u32 = 152; +pub const __NR_poll: u32 = 153; +pub const __NR_getdents64: u32 = 154; +pub const __NR_inotify_rm_watch: u32 = 156; +pub const __NR_statfs: u32 = 157; +pub const __NR_fstatfs: u32 = 158; +pub const __NR_umount: u32 = 159; +pub const __NR_sched_set_affinity: u32 = 160; +pub const __NR_sched_get_affinity: u32 = 161; +pub const __NR_getdomainname: u32 = 162; +pub const __NR_setdomainname: u32 = 163; +pub const __NR_utrap_install: u32 = 164; +pub const __NR_quotactl: u32 = 165; +pub const __NR_set_tid_address: u32 = 166; +pub const __NR_mount: u32 = 167; +pub const __NR_ustat: u32 = 168; +pub const __NR_setxattr: u32 = 169; +pub const __NR_lsetxattr: u32 = 170; +pub const __NR_fsetxattr: u32 = 171; +pub const __NR_getxattr: u32 = 172; +pub const __NR_lgetxattr: u32 = 173; +pub const __NR_getdents: u32 = 174; +pub const __NR_setsid: u32 = 175; +pub const __NR_fchdir: u32 = 176; +pub const __NR_fgetxattr: u32 = 177; +pub const __NR_listxattr: u32 = 178; +pub const __NR_llistxattr: u32 = 179; +pub const __NR_flistxattr: u32 = 180; +pub const __NR_removexattr: u32 = 181; +pub const __NR_lremovexattr: u32 = 182; +pub const __NR_sigpending: u32 = 183; +pub const __NR_query_module: u32 = 184; +pub const __NR_setpgid: u32 = 185; +pub const __NR_fremovexattr: u32 = 186; +pub const __NR_tkill: u32 = 187; +pub const __NR_exit_group: u32 = 188; +pub const __NR_uname: u32 = 189; +pub const __NR_init_module: u32 = 190; +pub const __NR_personality: u32 = 191; +pub const __NR_remap_file_pages: u32 = 192; +pub const __NR_epoll_create: u32 = 193; +pub const __NR_epoll_ctl: u32 = 194; +pub const __NR_epoll_wait: u32 = 195; +pub const __NR_ioprio_set: u32 = 196; +pub const __NR_getppid: u32 = 197; +pub const __NR_sigaction: u32 = 198; +pub const __NR_sgetmask: u32 = 199; +pub const __NR_ssetmask: u32 = 200; +pub const __NR_sigsuspend: u32 = 201; +pub const __NR_oldlstat: u32 = 202; +pub const __NR_uselib: u32 = 203; +pub const __NR_readdir: u32 = 204; +pub const __NR_readahead: u32 = 205; +pub const __NR_socketcall: u32 = 206; +pub const __NR_syslog: u32 = 207; +pub const __NR_lookup_dcookie: u32 = 208; +pub const __NR_fadvise64: u32 = 209; +pub const __NR_fadvise64_64: u32 = 210; +pub const __NR_tgkill: u32 = 211; +pub const __NR_waitpid: u32 = 212; +pub const __NR_swapoff: u32 = 213; +pub const __NR_sysinfo: u32 = 214; +pub const __NR_ipc: u32 = 215; +pub const __NR_sigreturn: u32 = 216; +pub const __NR_clone: u32 = 217; +pub const __NR_ioprio_get: u32 = 218; +pub const __NR_adjtimex: u32 = 219; +pub const __NR_sigprocmask: u32 = 220; +pub const __NR_create_module: u32 = 221; +pub const __NR_delete_module: u32 = 222; +pub const __NR_get_kernel_syms: u32 = 223; +pub const __NR_getpgid: u32 = 224; +pub const __NR_bdflush: u32 = 225; +pub const __NR_sysfs: u32 = 226; +pub const __NR_afs_syscall: u32 = 227; +pub const __NR_setfsuid: u32 = 228; +pub const __NR_setfsgid: u32 = 229; +pub const __NR__newselect: u32 = 230; +pub const __NR_splice: u32 = 232; +pub const __NR_stime: u32 = 233; +pub const __NR_statfs64: u32 = 234; +pub const __NR_fstatfs64: u32 = 235; +pub const __NR__llseek: u32 = 236; +pub const __NR_mlock: u32 = 237; +pub const __NR_munlock: u32 = 238; +pub const __NR_mlockall: u32 = 239; +pub const __NR_munlockall: u32 = 240; +pub const __NR_sched_setparam: u32 = 241; +pub const __NR_sched_getparam: u32 = 242; +pub const __NR_sched_setscheduler: u32 = 243; +pub const __NR_sched_getscheduler: u32 = 244; +pub const __NR_sched_yield: u32 = 245; +pub const __NR_sched_get_priority_max: u32 = 246; +pub const __NR_sched_get_priority_min: u32 = 247; +pub const __NR_sched_rr_get_interval: u32 = 248; +pub const __NR_nanosleep: u32 = 249; +pub const __NR_mremap: u32 = 250; +pub const __NR__sysctl: u32 = 251; +pub const __NR_getsid: u32 = 252; +pub const __NR_fdatasync: u32 = 253; +pub const __NR_nfsservctl: u32 = 254; +pub const __NR_sync_file_range: u32 = 255; +pub const __NR_clock_settime: u32 = 256; +pub const __NR_clock_gettime: u32 = 257; +pub const __NR_clock_getres: u32 = 258; +pub const __NR_clock_nanosleep: u32 = 259; +pub const __NR_sched_getaffinity: u32 = 260; +pub const __NR_sched_setaffinity: u32 = 261; +pub const __NR_timer_settime: u32 = 262; +pub const __NR_timer_gettime: u32 = 263; +pub const __NR_timer_getoverrun: u32 = 264; +pub const __NR_timer_delete: u32 = 265; +pub const __NR_timer_create: u32 = 266; +pub const __NR_vserver: u32 = 267; +pub const __NR_io_setup: u32 = 268; +pub const __NR_io_destroy: u32 = 269; +pub const __NR_io_submit: u32 = 270; +pub const __NR_io_cancel: u32 = 271; +pub const __NR_io_getevents: u32 = 272; +pub const __NR_mq_open: u32 = 273; +pub const __NR_mq_unlink: u32 = 274; +pub const __NR_mq_timedsend: u32 = 275; +pub const __NR_mq_timedreceive: u32 = 276; +pub const __NR_mq_notify: u32 = 277; +pub const __NR_mq_getsetattr: u32 = 278; +pub const __NR_waitid: u32 = 279; +pub const __NR_tee: u32 = 280; +pub const __NR_add_key: u32 = 281; +pub const __NR_request_key: u32 = 282; +pub const __NR_keyctl: u32 = 283; +pub const __NR_openat: u32 = 284; +pub const __NR_mkdirat: u32 = 285; +pub const __NR_mknodat: u32 = 286; +pub const __NR_fchownat: u32 = 287; +pub const __NR_futimesat: u32 = 288; +pub const __NR_fstatat64: u32 = 289; +pub const __NR_unlinkat: u32 = 290; +pub const __NR_renameat: u32 = 291; +pub const __NR_linkat: u32 = 292; +pub const __NR_symlinkat: u32 = 293; +pub const __NR_readlinkat: u32 = 294; +pub const __NR_fchmodat: u32 = 295; +pub const __NR_faccessat: u32 = 296; +pub const __NR_pselect6: u32 = 297; +pub const __NR_ppoll: u32 = 298; +pub const __NR_unshare: u32 = 299; +pub const __NR_set_robust_list: u32 = 300; +pub const __NR_get_robust_list: u32 = 301; +pub const __NR_migrate_pages: u32 = 302; +pub const __NR_mbind: u32 = 303; +pub const __NR_get_mempolicy: u32 = 304; +pub const __NR_set_mempolicy: u32 = 305; +pub const __NR_kexec_load: u32 = 306; +pub const __NR_move_pages: u32 = 307; +pub const __NR_getcpu: u32 = 308; +pub const __NR_epoll_pwait: u32 = 309; +pub const __NR_utimensat: u32 = 310; +pub const __NR_signalfd: u32 = 311; +pub const __NR_timerfd_create: u32 = 312; +pub const __NR_eventfd: u32 = 313; +pub const __NR_fallocate: u32 = 314; +pub const __NR_timerfd_settime: u32 = 315; +pub const __NR_timerfd_gettime: u32 = 316; +pub const __NR_signalfd4: u32 = 317; +pub const __NR_eventfd2: u32 = 318; +pub const __NR_epoll_create1: u32 = 319; +pub const __NR_dup3: u32 = 320; +pub const __NR_pipe2: u32 = 321; +pub const __NR_inotify_init1: u32 = 322; +pub const __NR_accept4: u32 = 323; +pub const __NR_preadv: u32 = 324; +pub const __NR_pwritev: u32 = 325; +pub const __NR_rt_tgsigqueueinfo: u32 = 326; +pub const __NR_perf_event_open: u32 = 327; +pub const __NR_recvmmsg: u32 = 328; +pub const __NR_fanotify_init: u32 = 329; +pub const __NR_fanotify_mark: u32 = 330; +pub const __NR_prlimit64: u32 = 331; +pub const __NR_name_to_handle_at: u32 = 332; +pub const __NR_open_by_handle_at: u32 = 333; +pub const __NR_clock_adjtime: u32 = 334; +pub const __NR_syncfs: u32 = 335; +pub const __NR_sendmmsg: u32 = 336; +pub const __NR_setns: u32 = 337; +pub const __NR_process_vm_readv: u32 = 338; +pub const __NR_process_vm_writev: u32 = 339; +pub const __NR_kern_features: u32 = 340; +pub const __NR_kcmp: u32 = 341; +pub const __NR_finit_module: u32 = 342; +pub const __NR_sched_setattr: u32 = 343; +pub const __NR_sched_getattr: u32 = 344; +pub const __NR_renameat2: u32 = 345; +pub const __NR_seccomp: u32 = 346; +pub const __NR_getrandom: u32 = 347; +pub const __NR_memfd_create: u32 = 348; +pub const __NR_bpf: u32 = 349; +pub const __NR_execveat: u32 = 350; +pub const __NR_membarrier: u32 = 351; +pub const __NR_userfaultfd: u32 = 352; +pub const __NR_bind: u32 = 353; +pub const __NR_listen: u32 = 354; +pub const __NR_setsockopt: u32 = 355; +pub const __NR_mlock2: u32 = 356; +pub const __NR_copy_file_range: u32 = 357; +pub const __NR_preadv2: u32 = 358; +pub const __NR_pwritev2: u32 = 359; +pub const __NR_statx: u32 = 360; +pub const __NR_io_pgetevents: u32 = 361; +pub const __NR_pkey_mprotect: u32 = 362; +pub const __NR_pkey_alloc: u32 = 363; +pub const __NR_pkey_free: u32 = 364; +pub const __NR_rseq: u32 = 365; +pub const __NR_semtimedop: u32 = 392; +pub const __NR_semget: u32 = 393; +pub const __NR_semctl: u32 = 394; +pub const __NR_shmget: u32 = 395; +pub const __NR_shmctl: u32 = 396; +pub const __NR_shmat: u32 = 397; +pub const __NR_shmdt: u32 = 398; +pub const __NR_msgget: u32 = 399; +pub const __NR_msgsnd: u32 = 400; +pub const __NR_msgrcv: u32 = 401; +pub const __NR_msgctl: u32 = 402; +pub const __NR_pidfd_send_signal: u32 = 424; +pub const __NR_io_uring_setup: u32 = 425; +pub const __NR_io_uring_enter: u32 = 426; +pub const __NR_io_uring_register: u32 = 427; +pub const __NR_open_tree: u32 = 428; +pub const __NR_move_mount: u32 = 429; +pub const __NR_fsopen: u32 = 430; +pub const __NR_fsconfig: u32 = 431; +pub const __NR_fsmount: u32 = 432; +pub const __NR_fspick: u32 = 433; +pub const __NR_pidfd_open: u32 = 434; +pub const __NR_close_range: u32 = 436; +pub const __NR_openat2: u32 = 437; +pub const __NR_pidfd_getfd: u32 = 438; +pub const __NR_faccessat2: u32 = 439; +pub const __NR_process_madvise: u32 = 440; +pub const __NR_epoll_pwait2: u32 = 441; +pub const __NR_mount_setattr: u32 = 442; +pub const __NR_quotactl_fd: u32 = 443; +pub const __NR_landlock_create_ruleset: u32 = 444; +pub const __NR_landlock_add_rule: u32 = 445; +pub const __NR_landlock_restrict_self: u32 = 446; +pub const __NR_process_mrelease: u32 = 448; +pub const __NR_futex_waitv: u32 = 449; +pub const __NR_set_mempolicy_home_node: u32 = 450; +pub const __NR_cachestat: u32 = 451; +pub const __NR_fchmodat2: u32 = 452; +pub const __NR_map_shadow_stack: u32 = 453; +pub const __NR_futex_wake: u32 = 454; +pub const __NR_futex_wait: u32 = 455; +pub const __NR_futex_requeue: u32 = 456; +pub const __NR_statmount: u32 = 457; +pub const __NR_listmount: u32 = 458; +pub const __NR_lsm_get_self_attr: u32 = 459; +pub const __NR_lsm_set_self_attr: u32 = 460; +pub const __NR_lsm_list_modules: u32 = 461; +pub const __NR_mseal: u32 = 462; +pub const __NR_setxattrat: u32 = 463; +pub const __NR_getxattrat: u32 = 464; +pub const __NR_listxattrat: u32 = 465; +pub const __NR_removexattrat: u32 = 466; +pub const __NR_open_tree_attr: u32 = 467; +pub const KERN_FEATURE_MIXED_MODE_STACK: u32 = 1; +pub const WNOHANG: u32 = 1; +pub const WUNTRACED: u32 = 2; +pub const WSTOPPED: u32 = 2; +pub const WEXITED: u32 = 4; +pub const WCONTINUED: u32 = 8; +pub const WNOWAIT: u32 = 16777216; +pub const __WNOTHREAD: u32 = 536870912; +pub const __WALL: u32 = 1073741824; +pub const __WCLONE: u32 = 2147483648; +pub const P_ALL: u32 = 0; +pub const P_PID: u32 = 1; +pub const P_PGID: u32 = 2; +pub const P_PIDFD: u32 = 3; +pub const XATTR_CREATE: u32 = 1; +pub const XATTR_REPLACE: u32 = 2; +pub const XATTR_OS2_PREFIX: &[u8; 5] = b"os2.\0"; +pub const XATTR_MAC_OSX_PREFIX: &[u8; 5] = b"osx.\0"; +pub const XATTR_BTRFS_PREFIX: &[u8; 7] = b"btrfs.\0"; +pub const XATTR_HURD_PREFIX: &[u8; 5] = b"gnu.\0"; +pub const XATTR_SECURITY_PREFIX: &[u8; 10] = b"security.\0"; +pub const XATTR_SYSTEM_PREFIX: &[u8; 8] = b"system.\0"; +pub const XATTR_TRUSTED_PREFIX: &[u8; 9] = b"trusted.\0"; +pub const XATTR_USER_PREFIX: &[u8; 6] = b"user.\0"; +pub const XATTR_EVM_SUFFIX: &[u8; 4] = b"evm\0"; +pub const XATTR_NAME_EVM: &[u8; 13] = b"security.evm\0"; +pub const XATTR_IMA_SUFFIX: &[u8; 4] = b"ima\0"; +pub const XATTR_NAME_IMA: &[u8; 13] = b"security.ima\0"; +pub const XATTR_SELINUX_SUFFIX: &[u8; 8] = b"selinux\0"; +pub const XATTR_NAME_SELINUX: &[u8; 17] = b"security.selinux\0"; +pub const XATTR_SMACK_SUFFIX: &[u8; 8] = b"SMACK64\0"; +pub const XATTR_SMACK_IPIN: &[u8; 12] = b"SMACK64IPIN\0"; +pub const XATTR_SMACK_IPOUT: &[u8; 13] = b"SMACK64IPOUT\0"; +pub const XATTR_SMACK_EXEC: &[u8; 12] = b"SMACK64EXEC\0"; +pub const XATTR_SMACK_TRANSMUTE: &[u8; 17] = b"SMACK64TRANSMUTE\0"; +pub const XATTR_SMACK_MMAP: &[u8; 12] = b"SMACK64MMAP\0"; +pub const XATTR_NAME_SMACK: &[u8; 17] = b"security.SMACK64\0"; +pub const XATTR_NAME_SMACKIPIN: &[u8; 21] = b"security.SMACK64IPIN\0"; +pub const XATTR_NAME_SMACKIPOUT: &[u8; 22] = b"security.SMACK64IPOUT\0"; +pub const XATTR_NAME_SMACKEXEC: &[u8; 21] = b"security.SMACK64EXEC\0"; +pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26] = b"security.SMACK64TRANSMUTE\0"; +pub const XATTR_NAME_SMACKMMAP: &[u8; 21] = b"security.SMACK64MMAP\0"; +pub const XATTR_APPARMOR_SUFFIX: &[u8; 9] = b"apparmor\0"; +pub const XATTR_NAME_APPARMOR: &[u8; 18] = b"security.apparmor\0"; +pub const XATTR_CAPS_SUFFIX: &[u8; 11] = b"capability\0"; +pub const XATTR_NAME_CAPS: &[u8; 20] = b"security.capability\0"; +pub const XATTR_BPF_LSM_SUFFIX: &[u8; 5] = b"bpf.\0"; +pub const XATTR_NAME_BPF_LSM: &[u8; 14] = b"security.bpf.\0"; +pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17] = b"posix_acl_access\0"; +pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24] = b"system.posix_acl_access\0"; +pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18] = b"posix_acl_default\0"; +pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25] = b"system.posix_acl_default\0"; +pub const MFD_CLOEXEC: u32 = 1; +pub const MFD_ALLOW_SEALING: u32 = 2; +pub const MFD_HUGETLB: u32 = 4; +pub const MFD_NOEXEC_SEAL: u32 = 8; +pub const MFD_EXEC: u32 = 16; +pub const MFD_HUGE_SHIFT: u32 = 26; +pub const MFD_HUGE_MASK: u32 = 63; +pub const MFD_HUGE_64KB: u32 = 1073741824; +pub const MFD_HUGE_512KB: u32 = 1275068416; +pub const MFD_HUGE_1MB: u32 = 1342177280; +pub const MFD_HUGE_2MB: u32 = 1409286144; +pub const MFD_HUGE_8MB: u32 = 1543503872; +pub const MFD_HUGE_16MB: u32 = 1610612736; +pub const MFD_HUGE_32MB: u32 = 1677721600; +pub const MFD_HUGE_256MB: u32 = 1879048192; +pub const MFD_HUGE_512MB: u32 = 1946157056; +pub const MFD_HUGE_1GB: u32 = 2013265920; +pub const MFD_HUGE_2GB: u32 = 2080374784; +pub const MFD_HUGE_16GB: u32 = 2281701376; +pub const TFD_TIMER_ABSTIME: u32 = 1; +pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; +pub const TFD_CLOEXEC: u32 = 4194304; +pub const TFD_NONBLOCK: u32 = 16384; +pub const USERFAULTFD_IOC: u32 = 170; +pub const _UFFDIO_REGISTER: u32 = 0; +pub const _UFFDIO_UNREGISTER: u32 = 1; +pub const _UFFDIO_WAKE: u32 = 2; +pub const _UFFDIO_COPY: u32 = 3; +pub const _UFFDIO_ZEROPAGE: u32 = 4; +pub const _UFFDIO_MOVE: u32 = 5; +pub const _UFFDIO_WRITEPROTECT: u32 = 6; +pub const _UFFDIO_CONTINUE: u32 = 7; +pub const _UFFDIO_POISON: u32 = 8; +pub const _UFFDIO_API: u32 = 63; +pub const UFFDIO: u32 = 170; +pub const UFFD_EVENT_PAGEFAULT: u32 = 18; +pub const UFFD_EVENT_FORK: u32 = 19; +pub const UFFD_EVENT_REMAP: u32 = 20; +pub const UFFD_EVENT_REMOVE: u32 = 21; +pub const UFFD_EVENT_UNMAP: u32 = 22; +pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; +pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; +pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; +pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; +pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; +pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; +pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; +pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; +pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; +pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; +pub const UFFD_FEATURE_SIGBUS: u32 = 128; +pub const UFFD_FEATURE_THREAD_ID: u32 = 256; +pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; +pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; +pub const UFFD_FEATURE_EXACT_ADDRESS: u32 = 2048; +pub const UFFD_FEATURE_WP_HUGETLBFS_SHMEM: u32 = 4096; +pub const UFFD_FEATURE_WP_UNPOPULATED: u32 = 8192; +pub const UFFD_FEATURE_POISON: u32 = 16384; +pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; +pub const UFFD_FEATURE_MOVE: u32 = 65536; +pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const DT_UNKNOWN: u32 = 0; +pub const DT_FIFO: u32 = 1; +pub const DT_CHR: u32 = 2; +pub const DT_DIR: u32 = 4; +pub const DT_BLK: u32 = 6; +pub const DT_REG: u32 = 8; +pub const DT_LNK: u32 = 10; +pub const DT_SOCK: u32 = 12; +pub const F_OK: u32 = 0; +pub const R_OK: u32 = 4; +pub const W_OK: u32 = 2; +pub const X_OK: u32 = 1; +pub const UTIME_NOW: u32 = 1073741823; +pub const UTIME_OMIT: u32 = 1073741822; +pub const MNT_FORCE: u32 = 1; +pub const MNT_DETACH: u32 = 2; +pub const MNT_EXPIRE: u32 = 4; +pub const UMOUNT_NOFOLLOW: u32 = 8; +pub const UMOUNT_UNUSED: u32 = 2147483648; +pub const STDIN_FILENO: u32 = 0; +pub const STDOUT_FILENO: u32 = 1; +pub const STDERR_FILENO: u32 = 2; +pub const RWF_HIPRI: u32 = 1; +pub const RWF_DSYNC: u32 = 2; +pub const RWF_SYNC: u32 = 4; +pub const RWF_NOWAIT: u32 = 8; +pub const RWF_APPEND: u32 = 16; +pub const EFD_SEMAPHORE: u32 = 1; +pub const EFD_CLOEXEC: u32 = 4194304; +pub const EFD_NONBLOCK: u32 = 16384; +pub const EPOLLIN: u32 = 1; +pub const EPOLLPRI: u32 = 2; +pub const EPOLLOUT: u32 = 4; +pub const EPOLLERR: u32 = 8; +pub const EPOLLHUP: u32 = 16; +pub const EPOLLNVAL: u32 = 32; +pub const EPOLLRDNORM: u32 = 64; +pub const EPOLLRDBAND: u32 = 128; +pub const EPOLLWRNORM: u32 = 256; +pub const EPOLLWRBAND: u32 = 512; +pub const EPOLLMSG: u32 = 1024; +pub const EPOLLRDHUP: u32 = 8192; +pub const EPOLLEXCLUSIVE: u32 = 268435456; +pub const EPOLLWAKEUP: u32 = 536870912; +pub const EPOLLONESHOT: u32 = 1073741824; +pub const EPOLLET: u32 = 2147483648; +pub const TFD_SHARED_FCNTL_FLAGS: u32 = 4210688; +pub const TFD_CREATE_FLAGS: u32 = 4210688; +pub const TFD_SETTIME_FLAGS: u32 = 1; +pub const UFFD_API: u32 = 170; +pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; +pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; +pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; +pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; +pub const UFFDIO_COPY_MODE_WP: u32 = 2; +pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; +pub const SPLICE_F_MOVE: u32 = 1; +pub const SPLICE_F_NONBLOCK: u32 = 2; +pub const SPLICE_F_MORE: u32 = 4; +pub const SPLICE_F_GIFT: u32 = 8; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum fsconfig_command { +FSCONFIG_SET_FLAG = 0, +FSCONFIG_SET_STRING = 1, +FSCONFIG_SET_BINARY = 2, +FSCONFIG_SET_PATH = 3, +FSCONFIG_SET_PATH_EMPTY = 4, +FSCONFIG_SET_FD = 5, +FSCONFIG_CMD_CREATE = 6, +FSCONFIG_CMD_RECONFIGURE = 7, +FSCONFIG_CMD_CREATE_EXCL = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum procmap_query_flags { +PROCMAP_QUERY_VMA_READABLE = 1, +PROCMAP_QUERY_VMA_WRITABLE = 2, +PROCMAP_QUERY_VMA_EXECUTABLE = 4, +PROCMAP_QUERY_VMA_SHARED = 8, +PROCMAP_QUERY_COVERING_OR_NEXT_VMA = 16, +PROCMAP_QUERY_FILE_BACKED_VMA = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum membarrier_cmd { +MEMBARRIER_CMD_QUERY = 0, +MEMBARRIER_CMD_GLOBAL = 1, +MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, +MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, +MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, +MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, +MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, +MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, +MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, +MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, +MEMBARRIER_CMD_GET_REGISTRATIONS = 512, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum membarrier_cmd_flag { +MEMBARRIER_CMD_FLAG_CPU = 1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { +pub version: __u8, +pub v1: fscrypt_policy_v1, +pub v2: fscrypt_policy_v2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_key_specifier__bindgen_ty_1 { +pub __reserved: [__u8; 32usize], +pub descriptor: [__u8; 8usize], +pub identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union sigval { +pub sival_int: crate::ctypes::c_int, +pub sival_ptr: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __sifields { +pub _kill: __sifields__bindgen_ty_1, +pub _timer: __sifields__bindgen_ty_2, +pub _rt: __sifields__bindgen_ty_3, +pub _sigchld: __sifields__bindgen_ty_4, +pub _sigfault: __sifields__bindgen_ty_5, +pub _sigpoll: __sifields__bindgen_ty_6, +pub _sigsys: __sifields__bindgen_ty_7, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __sifields__bindgen_ty_5__bindgen_ty_1 { +pub _trapno: crate::ctypes::c_int, +pub _addr_lsb: crate::ctypes::c_short, +pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, +pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, +pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union siginfo__bindgen_ty_1 { +pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, +pub _si_pad: [crate::ctypes::c_int; 32usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union sigevent__bindgen_ty_1 { +pub _pad: [crate::ctypes::c_int; 12usize], +pub _tid: crate::ctypes::c_int, +pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union uffd_msg__bindgen_ty_1 { +pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, +pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, +pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, +pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, +pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { +pub ptid: __u32, +} +impl __BindgenBitfieldUnit { +#[inline] +pub const fn new(storage: Storage) -> Self { +Self { storage } +} +} +impl __BindgenBitfieldUnit +where +Storage: AsRef<[u8]> + AsMut<[u8]>, +{ +#[inline] +fn extract_bit(byte: u8, index: usize) -> bool { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +byte & mask == mask +} +#[inline] +pub fn get_bit(&self, index: usize) -> bool { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = self.storage.as_ref()[byte_index]; +Self::extract_bit(byte, index) +} +#[inline] +pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; +Self::extract_bit(byte, index) +} +#[inline] +fn change_bit(byte: u8, index: usize, val: bool) -> u8 { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +if val { +byte | mask +} else { +byte & !mask +} +} +#[inline] +pub fn set_bit(&mut self, index: usize, val: bool) { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = &mut self.storage.as_mut()[byte_index]; +*byte = Self::change_bit(*byte, index, val); +} +#[inline] +pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; +} +#[inline] +pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if self.get_bit(i + bit_offset) { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +self.set_bit(index + bit_offset, val_bit_is_set); +} +} +#[inline] +pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +} +} +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl membarrier_cmd { +pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; +} +impl user_desc { +#[inline] +pub fn seg_32bit(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn contents(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +} +#[inline] +pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 2u8, val as u64) +} +} +#[inline] +pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +} +#[inline] +pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +} +} +#[inline] +pub fn read_exec_only(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +} +#[inline] +pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +} +} +#[inline] +pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +} +#[inline] +pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +} +} +#[inline] +pub fn seg_not_present(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +} +#[inline] +pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(5usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +} +} +#[inline] +pub fn useable(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +} +#[inline] +pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(6usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; +seg_32bit as u64 +}); +__bindgen_bitfield_unit.set(1usize, 2u8, { +let contents: u32 = unsafe { ::core::mem::transmute(contents) }; +contents as u64 +}); +__bindgen_bitfield_unit.set(3usize, 1u8, { +let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; +read_exec_only as u64 +}); +__bindgen_bitfield_unit.set(4usize, 1u8, { +let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; +limit_in_pages as u64 +}); +__bindgen_bitfield_unit.set(5usize, 1u8, { +let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; +seg_not_present as u64 +}); +__bindgen_bitfield_unit.set(6usize, 1u8, { +let useable: u32 = unsafe { ::core::mem::transmute(useable) }; +useable as u64 +}); +__bindgen_bitfield_unit +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/if_arp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/if_arp.rs new file mode 100644 index 0000000000000000000000000000000000000000..2ed73ed2befe53e1e1a63e58c6b80de885206582 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/if_arp.rs @@ -0,0 +1,3013 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_suseconds_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_sa_family_t = crate::ctypes::c_ushort; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_suseconds_t, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __kernel_sockaddr_storage { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { +pub ss_family: __kernel_sa_family_t, +pub __data: [crate::ctypes::c_char; 126usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sockaddr { +pub __storage: __kernel_sockaddr_storage, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sync_serial_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct te1_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +pub slot_map: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct raw_hdlc_proto { +pub encoding: crate::ctypes::c_ushort, +pub parity: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto { +pub t391: crate::ctypes::c_uint, +pub t392: crate::ctypes::c_uint, +pub n391: crate::ctypes::c_uint, +pub n392: crate::ctypes::c_uint, +pub n393: crate::ctypes::c_uint, +pub lmi: crate::ctypes::c_ushort, +pub dce: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc { +pub dlci: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc_info { +pub dlci: crate::ctypes::c_uint, +pub master: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cisco_proto { +pub interval: crate::ctypes::c_uint, +pub timeout: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct x25_hdlc_proto { +pub dce: crate::ctypes::c_ushort, +pub modulo: crate::ctypes::c_uint, +pub window: crate::ctypes::c_uint, +pub t1: crate::ctypes::c_uint, +pub t2: crate::ctypes::c_uint, +pub n2: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifmap { +pub mem_start: crate::ctypes::c_ulong, +pub mem_end: crate::ctypes::c_ulong, +pub base_addr: crate::ctypes::c_ushort, +pub irq: crate::ctypes::c_uchar, +pub dma: crate::ctypes::c_uchar, +pub port: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct if_settings { +pub type_: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +pub ifs_ifsu: if_settings__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifreq { +pub ifr_ifrn: ifreq__bindgen_ty_1, +pub ifr_ifru: ifreq__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifconf { +pub ifc_len: crate::ctypes::c_int, +pub ifc_ifcu: ifconf__bindgen_ty_1, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct ethhdr { +pub h_dest: [crate::ctypes::c_uchar; 6usize], +pub h_source: [crate::ctypes::c_uchar; 6usize], +pub h_proto: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_pkt { +pub spkt_family: crate::ctypes::c_ushort, +pub spkt_device: [crate::ctypes::c_uchar; 14usize], +pub spkt_protocol: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_ll { +pub sll_family: crate::ctypes::c_ushort, +pub sll_protocol: __be16, +pub sll_ifindex: crate::ctypes::c_int, +pub sll_hatype: crate::ctypes::c_ushort, +pub sll_pkttype: crate::ctypes::c_uchar, +pub sll_halen: crate::ctypes::c_uchar, +pub sll_addr: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats_v3 { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +pub tp_freeze_q_cnt: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_rollover_stats { +pub tp_all: __u64, +pub tp_huge: __u64, +pub tp_failed: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_auxdata { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr { +pub tp_status: crate::ctypes::c_ulong, +pub tp_len: crate::ctypes::c_uint, +pub tp_snaplen: crate::ctypes::c_uint, +pub tp_mac: crate::ctypes::c_ushort, +pub tp_net: crate::ctypes::c_ushort, +pub tp_sec: crate::ctypes::c_uint, +pub tp_usec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket2_hdr { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +pub tp_padding: [__u8; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr_variant1 { +pub tp_rxhash: __u32, +pub tp_vlan_tci: __u32, +pub tp_vlan_tpid: __u16, +pub tp_padding: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket3_hdr { +pub tp_next_offset: __u32, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_snaplen: __u32, +pub tp_len: __u32, +pub tp_status: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub __bindgen_anon_1: tpacket3_hdr__bindgen_ty_1, +pub tp_padding: [__u8; 8usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_bd_ts { +pub ts_sec: crate::ctypes::c_uint, +pub __bindgen_anon_1: tpacket_bd_ts__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_hdr_v1 { +pub block_status: __u32, +pub num_pkts: __u32, +pub offset_to_first_pkt: __u32, +pub blk_len: __u32, +pub seq_num: __u64, +pub ts_first_pkt: tpacket_bd_ts, +pub ts_last_pkt: tpacket_bd_ts, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_block_desc { +pub version: __u32, +pub offset_to_priv: __u32, +pub hdr: tpacket_bd_header_u, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req3 { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +pub tp_retire_blk_tov: crate::ctypes::c_uint, +pub tp_sizeof_priv: crate::ctypes::c_uint, +pub tp_feature_req_word: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct packet_mreq { +pub mr_ifindex: crate::ctypes::c_int, +pub mr_type: crate::ctypes::c_ushort, +pub mr_alen: crate::ctypes::c_ushort, +pub mr_address: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fanout_args { +pub type_flags: __u16, +pub id: __u16, +pub max_num_members: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_nl { +pub nl_family: __kernel_sa_family_t, +pub nl_pad: crate::ctypes::c_ushort, +pub nl_pid: __u32, +pub nl_groups: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsghdr { +pub nlmsg_len: __u32, +pub nlmsg_type: __u16, +pub nlmsg_flags: __u16, +pub nlmsg_seq: __u32, +pub nlmsg_pid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsgerr { +pub error: crate::ctypes::c_int, +pub msg: nlmsghdr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_pktinfo { +pub group: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_req { +pub nm_block_size: crate::ctypes::c_uint, +pub nm_block_nr: crate::ctypes::c_uint, +pub nm_frame_size: crate::ctypes::c_uint, +pub nm_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_hdr { +pub nm_status: crate::ctypes::c_uint, +pub nm_len: crate::ctypes::c_uint, +pub nm_group: __u32, +pub nm_pid: __u32, +pub nm_uid: __u32, +pub nm_gid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlattr { +pub nla_len: __u16, +pub nla_type: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nla_bitfield32 { +pub value: __u32, +pub selector: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats { +pub rx_packets: __u32, +pub tx_packets: __u32, +pub rx_bytes: __u32, +pub tx_bytes: __u32, +pub rx_errors: __u32, +pub tx_errors: __u32, +pub rx_dropped: __u32, +pub tx_dropped: __u32, +pub multicast: __u32, +pub collisions: __u32, +pub rx_length_errors: __u32, +pub rx_over_errors: __u32, +pub rx_crc_errors: __u32, +pub rx_frame_errors: __u32, +pub rx_fifo_errors: __u32, +pub rx_missed_errors: __u32, +pub tx_aborted_errors: __u32, +pub tx_carrier_errors: __u32, +pub tx_fifo_errors: __u32, +pub tx_heartbeat_errors: __u32, +pub tx_window_errors: __u32, +pub rx_compressed: __u32, +pub tx_compressed: __u32, +pub rx_nohandler: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +pub collisions: __u64, +pub rx_length_errors: __u64, +pub rx_over_errors: __u64, +pub rx_crc_errors: __u64, +pub rx_frame_errors: __u64, +pub rx_fifo_errors: __u64, +pub rx_missed_errors: __u64, +pub tx_aborted_errors: __u64, +pub tx_carrier_errors: __u64, +pub tx_fifo_errors: __u64, +pub tx_heartbeat_errors: __u64, +pub tx_window_errors: __u64, +pub rx_compressed: __u64, +pub tx_compressed: __u64, +pub rx_nohandler: __u64, +pub rx_otherhost_dropped: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_hw_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_ifmap { +pub mem_start: __u64, +pub mem_end: __u64, +pub base_addr: __u64, +pub irq: __u16, +pub dma: __u8, +pub port: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_bridge_id { +pub prio: [__u8; 2usize], +pub addr: [__u8; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_cacheinfo { +pub max_reasm_len: __u32, +pub tstamp: __u32, +pub reachable_time: __u32, +pub retrans_time: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_qos_mapping { +pub from: __u32, +pub to: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tunnel_msg { +pub family: __u8, +pub flags: __u8, +pub reserved2: __u16, +pub ifindex: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vxlan_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_geneve_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_mac { +pub vf: __u32, +pub mac: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_broadcast { +pub broadcast: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan_info { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +pub vlan_proto: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_tx_rate { +pub vf: __u32, +pub rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rate { +pub vf: __u32, +pub min_tx_rate: __u32, +pub max_tx_rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_spoofchk { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_guid { +pub vf: __u32, +pub guid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_link_state { +pub vf: __u32, +pub link_state: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rss_query_en { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_trust { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_port_vsi { +pub vsi_mgr_id: __u8, +pub vsi_type_id: [__u8; 3usize], +pub vsi_type_version: __u8, +pub pad: [__u8; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct if_stats_msg { +pub family: __u8, +pub pad1: __u8, +pub pad2: __u16, +pub ifindex: __u32, +pub filter_mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_rmnet_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct arpreq { +pub arp_pa: sockaddr, +pub arp_ha: sockaddr, +pub arp_flags: crate::ctypes::c_int, +pub arp_netmask: sockaddr, +pub arp_dev: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct arpreq_old { +pub arp_pa: sockaddr, +pub arp_ha: sockaddr, +pub arp_flags: crate::ctypes::c_int, +pub arp_netmask: sockaddr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct arphdr { +pub ar_hrd: __be16, +pub ar_pro: __be16, +pub ar_hln: crate::ctypes::c_uchar, +pub ar_pln: crate::ctypes::c_uchar, +pub ar_op: __be16, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _K_SS_MAXSIZE: u32 = 128; +pub const SOCK_SNDBUF_LOCK: u32 = 1; +pub const SOCK_RCVBUF_LOCK: u32 = 2; +pub const SOCK_BUF_LOCK_MASK: u32 = 3; +pub const SOCK_TXREHASH_DEFAULT: u32 = 255; +pub const SOCK_TXREHASH_DISABLED: u32 = 0; +pub const SOCK_TXREHASH_ENABLED: u32 = 1; +pub const IFNAMSIZ: u32 = 16; +pub const IFALIASZ: u32 = 256; +pub const ALTIFNAMSIZ: u32 = 128; +pub const GENERIC_HDLC_VERSION: u32 = 4; +pub const CLOCK_DEFAULT: u32 = 0; +pub const CLOCK_EXT: u32 = 1; +pub const CLOCK_INT: u32 = 2; +pub const CLOCK_TXINT: u32 = 3; +pub const CLOCK_TXFROMRX: u32 = 4; +pub const ENCODING_DEFAULT: u32 = 0; +pub const ENCODING_NRZ: u32 = 1; +pub const ENCODING_NRZI: u32 = 2; +pub const ENCODING_FM_MARK: u32 = 3; +pub const ENCODING_FM_SPACE: u32 = 4; +pub const ENCODING_MANCHESTER: u32 = 5; +pub const PARITY_DEFAULT: u32 = 0; +pub const PARITY_NONE: u32 = 1; +pub const PARITY_CRC16_PR0: u32 = 2; +pub const PARITY_CRC16_PR1: u32 = 3; +pub const PARITY_CRC16_PR0_CCITT: u32 = 4; +pub const PARITY_CRC16_PR1_CCITT: u32 = 5; +pub const PARITY_CRC32_PR0_CCITT: u32 = 6; +pub const PARITY_CRC32_PR1_CCITT: u32 = 7; +pub const LMI_DEFAULT: u32 = 0; +pub const LMI_NONE: u32 = 1; +pub const LMI_ANSI: u32 = 2; +pub const LMI_CCITT: u32 = 3; +pub const LMI_CISCO: u32 = 4; +pub const IF_GET_IFACE: u32 = 1; +pub const IF_GET_PROTO: u32 = 2; +pub const IF_IFACE_V35: u32 = 4096; +pub const IF_IFACE_V24: u32 = 4097; +pub const IF_IFACE_X21: u32 = 4098; +pub const IF_IFACE_T1: u32 = 4099; +pub const IF_IFACE_E1: u32 = 4100; +pub const IF_IFACE_SYNC_SERIAL: u32 = 4101; +pub const IF_IFACE_X21D: u32 = 4102; +pub const IF_PROTO_HDLC: u32 = 8192; +pub const IF_PROTO_PPP: u32 = 8193; +pub const IF_PROTO_CISCO: u32 = 8194; +pub const IF_PROTO_FR: u32 = 8195; +pub const IF_PROTO_FR_ADD_PVC: u32 = 8196; +pub const IF_PROTO_FR_DEL_PVC: u32 = 8197; +pub const IF_PROTO_X25: u32 = 8198; +pub const IF_PROTO_HDLC_ETH: u32 = 8199; +pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200; +pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201; +pub const IF_PROTO_FR_PVC: u32 = 8202; +pub const IF_PROTO_FR_ETH_PVC: u32 = 8203; +pub const IF_PROTO_RAW: u32 = 8204; +pub const IFHWADDRLEN: u32 = 6; +pub const ETH_ALEN: u32 = 6; +pub const ETH_TLEN: u32 = 2; +pub const ETH_HLEN: u32 = 14; +pub const ETH_ZLEN: u32 = 60; +pub const ETH_DATA_LEN: u32 = 1500; +pub const ETH_FRAME_LEN: u32 = 1514; +pub const ETH_FCS_LEN: u32 = 4; +pub const ETH_MIN_MTU: u32 = 68; +pub const ETH_MAX_MTU: u32 = 65535; +pub const ETH_P_LOOP: u32 = 96; +pub const ETH_P_PUP: u32 = 512; +pub const ETH_P_PUPAT: u32 = 513; +pub const ETH_P_TSN: u32 = 8944; +pub const ETH_P_ERSPAN2: u32 = 8939; +pub const ETH_P_IP: u32 = 2048; +pub const ETH_P_X25: u32 = 2053; +pub const ETH_P_ARP: u32 = 2054; +pub const ETH_P_BPQ: u32 = 2303; +pub const ETH_P_IEEEPUP: u32 = 2560; +pub const ETH_P_IEEEPUPAT: u32 = 2561; +pub const ETH_P_BATMAN: u32 = 17157; +pub const ETH_P_DEC: u32 = 24576; +pub const ETH_P_DNA_DL: u32 = 24577; +pub const ETH_P_DNA_RC: u32 = 24578; +pub const ETH_P_DNA_RT: u32 = 24579; +pub const ETH_P_LAT: u32 = 24580; +pub const ETH_P_DIAG: u32 = 24581; +pub const ETH_P_CUST: u32 = 24582; +pub const ETH_P_SCA: u32 = 24583; +pub const ETH_P_TEB: u32 = 25944; +pub const ETH_P_RARP: u32 = 32821; +pub const ETH_P_ATALK: u32 = 32923; +pub const ETH_P_AARP: u32 = 33011; +pub const ETH_P_8021Q: u32 = 33024; +pub const ETH_P_ERSPAN: u32 = 35006; +pub const ETH_P_IPX: u32 = 33079; +pub const ETH_P_IPV6: u32 = 34525; +pub const ETH_P_PAUSE: u32 = 34824; +pub const ETH_P_SLOW: u32 = 34825; +pub const ETH_P_WCCP: u32 = 34878; +pub const ETH_P_MPLS_UC: u32 = 34887; +pub const ETH_P_MPLS_MC: u32 = 34888; +pub const ETH_P_ATMMPOA: u32 = 34892; +pub const ETH_P_PPP_DISC: u32 = 34915; +pub const ETH_P_PPP_SES: u32 = 34916; +pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_ATMFATE: u32 = 34948; +pub const ETH_P_PAE: u32 = 34958; +pub const ETH_P_PROFINET: u32 = 34962; +pub const ETH_P_REALTEK: u32 = 34969; +pub const ETH_P_AOE: u32 = 34978; +pub const ETH_P_ETHERCAT: u32 = 34980; +pub const ETH_P_8021AD: u32 = 34984; +pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_PREAUTH: u32 = 35015; +pub const ETH_P_TIPC: u32 = 35018; +pub const ETH_P_LLDP: u32 = 35020; +pub const ETH_P_MRP: u32 = 35043; +pub const ETH_P_MACSEC: u32 = 35045; +pub const ETH_P_8021AH: u32 = 35047; +pub const ETH_P_MVRP: u32 = 35061; +pub const ETH_P_1588: u32 = 35063; +pub const ETH_P_NCSI: u32 = 35064; +pub const ETH_P_PRP: u32 = 35067; +pub const ETH_P_CFM: u32 = 35074; +pub const ETH_P_FCOE: u32 = 35078; +pub const ETH_P_IBOE: u32 = 35093; +pub const ETH_P_TDLS: u32 = 35085; +pub const ETH_P_FIP: u32 = 35092; +pub const ETH_P_80221: u32 = 35095; +pub const ETH_P_HSR: u32 = 35119; +pub const ETH_P_NSH: u32 = 35151; +pub const ETH_P_LOOPBACK: u32 = 36864; +pub const ETH_P_QINQ1: u32 = 37120; +pub const ETH_P_QINQ2: u32 = 37376; +pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_EDSA: u32 = 56026; +pub const ETH_P_DSA_8021Q: u32 = 56027; +pub const ETH_P_DSA_A5PSW: u32 = 57345; +pub const ETH_P_IFE: u32 = 60734; +pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_802_3_MIN: u32 = 1536; +pub const ETH_P_802_3: u32 = 1; +pub const ETH_P_AX25: u32 = 2; +pub const ETH_P_ALL: u32 = 3; +pub const ETH_P_802_2: u32 = 4; +pub const ETH_P_SNAP: u32 = 5; +pub const ETH_P_DDCMP: u32 = 6; +pub const ETH_P_WAN_PPP: u32 = 7; +pub const ETH_P_PPP_MP: u32 = 8; +pub const ETH_P_LOCALTALK: u32 = 9; +pub const ETH_P_CAN: u32 = 12; +pub const ETH_P_CANFD: u32 = 13; +pub const ETH_P_CANXL: u32 = 14; +pub const ETH_P_PPPTALK: u32 = 16; +pub const ETH_P_TR_802_2: u32 = 17; +pub const ETH_P_MOBITEX: u32 = 21; +pub const ETH_P_CONTROL: u32 = 22; +pub const ETH_P_IRDA: u32 = 23; +pub const ETH_P_ECONET: u32 = 24; +pub const ETH_P_HDLC: u32 = 25; +pub const ETH_P_ARCNET: u32 = 26; +pub const ETH_P_DSA: u32 = 27; +pub const ETH_P_TRAILER: u32 = 28; +pub const ETH_P_PHONET: u32 = 245; +pub const ETH_P_IEEE802154: u32 = 246; +pub const ETH_P_CAIF: u32 = 247; +pub const ETH_P_XDSA: u32 = 248; +pub const ETH_P_MAP: u32 = 249; +pub const ETH_P_MCTP: u32 = 250; +pub const __BIG_ENDIAN: u32 = 4321; +pub const ASI_NULL1: u32 = 0; +pub const ASI_NULL2: u32 = 1; +pub const ASI_CONTROL: u32 = 2; +pub const ASI_SEGMAP: u32 = 3; +pub const ASI_PTE: u32 = 4; +pub const ASI_HWFLUSHSEG: u32 = 5; +pub const ASI_HWFLUSHPAGE: u32 = 6; +pub const ASI_REGMAP: u32 = 6; +pub const ASI_HWFLUSHCONTEXT: u32 = 7; +pub const ASI_USERTXT: u32 = 8; +pub const ASI_KERNELTXT: u32 = 9; +pub const ASI_USERDATA: u32 = 10; +pub const ASI_KERNELDATA: u32 = 11; +pub const ASI_FLUSHSEG: u32 = 12; +pub const ASI_FLUSHPG: u32 = 13; +pub const ASI_FLUSHCTX: u32 = 14; +pub const ASI_M_RES00: u32 = 0; +pub const ASI_M_UNA01: u32 = 1; +pub const ASI_M_MXCC: u32 = 2; +pub const ASI_M_FLUSH_PROBE: u32 = 3; +pub const ASI_M_MMUREGS: u32 = 4; +pub const ASI_M_TLBDIAG: u32 = 5; +pub const ASI_M_DIAGS: u32 = 6; +pub const ASI_M_IODIAG: u32 = 7; +pub const ASI_M_USERTXT: u32 = 8; +pub const ASI_M_KERNELTXT: u32 = 9; +pub const ASI_M_USERDATA: u32 = 10; +pub const ASI_M_KERNELDATA: u32 = 11; +pub const ASI_M_TXTC_TAG: u32 = 12; +pub const ASI_M_TXTC_DATA: u32 = 13; +pub const ASI_M_DATAC_TAG: u32 = 14; +pub const ASI_M_DATAC_DATA: u32 = 15; +pub const ASI_M_FLUSH_PAGE: u32 = 16; +pub const ASI_M_FLUSH_SEG: u32 = 17; +pub const ASI_M_FLUSH_REGION: u32 = 18; +pub const ASI_M_FLUSH_CTX: u32 = 19; +pub const ASI_M_FLUSH_USER: u32 = 20; +pub const ASI_M_BCOPY: u32 = 23; +pub const ASI_M_IFLUSH_PAGE: u32 = 24; +pub const ASI_M_IFLUSH_SEG: u32 = 25; +pub const ASI_M_IFLUSH_REGION: u32 = 26; +pub const ASI_M_IFLUSH_CTX: u32 = 27; +pub const ASI_M_IFLUSH_USER: u32 = 28; +pub const ASI_M_BFILL: u32 = 31; +pub const ASI_M_BYPASS: u32 = 32; +pub const ASI_M_FBMEM: u32 = 41; +pub const ASI_M_VMEUS: u32 = 42; +pub const ASI_M_VMEPS: u32 = 43; +pub const ASI_M_VMEUT: u32 = 44; +pub const ASI_M_VMEPT: u32 = 45; +pub const ASI_M_SBUS: u32 = 46; +pub const ASI_M_CTL: u32 = 47; +pub const ASI_M_FLUSH_IWHOLE: u32 = 49; +pub const ASI_M_IC_FLCLEAR: u32 = 54; +pub const ASI_M_DC_FLCLEAR: u32 = 55; +pub const ASI_M_DCDR: u32 = 57; +pub const ASI_M_VIKING_TMP1: u32 = 64; +pub const ASI_M_ACTION: u32 = 76; +pub const ASI_LEON_NOCACHE: u32 = 1; +pub const ASI_LEON_DCACHE_MISS: u32 = 1; +pub const ASI_LEON_CACHEREGS: u32 = 2; +pub const ASI_LEON_IFLUSH: u32 = 16; +pub const ASI_LEON_DFLUSH: u32 = 17; +pub const ASI_LEON_MMUFLUSH: u32 = 24; +pub const ASI_LEON_MMUREGS: u32 = 25; +pub const ASI_LEON_BYPASS: u32 = 28; +pub const ASI_LEON_FLUSH_PAGE: u32 = 16; +pub const ASI_N: u32 = 4; +pub const ASI_NL: u32 = 12; +pub const ASI_AIUP: u32 = 16; +pub const ASI_AIUS: u32 = 17; +pub const ASI_AIUPL: u32 = 24; +pub const ASI_AIUSL: u32 = 25; +pub const ASI_P: u32 = 128; +pub const ASI_S: u32 = 129; +pub const ASI_PNF: u32 = 130; +pub const ASI_SNF: u32 = 131; +pub const ASI_PL: u32 = 136; +pub const ASI_SL: u32 = 137; +pub const ASI_PNFL: u32 = 138; +pub const ASI_SNFL: u32 = 139; +pub const ASI_MCD_PRIV_PRIMARY: u32 = 2; +pub const ASI_MCD_REAL: u32 = 5; +pub const ASI_PHYS_USE_EC: u32 = 20; +pub const ASI_PHYS_BYPASS_EC_E: u32 = 21; +pub const ASI_BLK_AIUP_4V: u32 = 22; +pub const ASI_BLK_AIUS_4V: u32 = 23; +pub const ASI_PHYS_USE_EC_L: u32 = 28; +pub const ASI_PHYS_BYPASS_EC_E_L: u32 = 29; +pub const ASI_BLK_AIUP_L_4V: u32 = 30; +pub const ASI_BLK_AIUS_L_4V: u32 = 31; +pub const ASI_SCRATCHPAD: u32 = 32; +pub const ASI_MMU: u32 = 33; +pub const ASI_BLK_INIT_QUAD_LDD_AIUS: u32 = 35; +pub const ASI_NUCLEUS_QUAD_LDD: u32 = 36; +pub const ASI_QUEUE: u32 = 37; +pub const ASI_QUAD_LDD_PHYS_4V: u32 = 38; +pub const ASI_NUCLEUS_QUAD_LDD_L: u32 = 44; +pub const ASI_QUAD_LDD_PHYS_L_4V: u32 = 46; +pub const ASI_PCACHE_DATA_STATUS: u32 = 48; +pub const ASI_PCACHE_DATA: u32 = 49; +pub const ASI_PCACHE_TAG: u32 = 50; +pub const ASI_PCACHE_SNOOP_TAG: u32 = 51; +pub const ASI_QUAD_LDD_PHYS: u32 = 52; +pub const ASI_WCACHE_VALID_BITS: u32 = 56; +pub const ASI_WCACHE_DATA: u32 = 57; +pub const ASI_WCACHE_TAG: u32 = 58; +pub const ASI_WCACHE_SNOOP_TAG: u32 = 59; +pub const ASI_QUAD_LDD_PHYS_L: u32 = 60; +pub const ASI_SRAM_FAST_INIT: u32 = 64; +pub const ASI_CORE_AVAILABLE: u32 = 65; +pub const ASI_CORE_ENABLE_STAT: u32 = 65; +pub const ASI_CORE_ENABLE: u32 = 65; +pub const ASI_XIR_STEERING: u32 = 65; +pub const ASI_CORE_RUNNING_RW: u32 = 65; +pub const ASI_CORE_RUNNING_W1S: u32 = 65; +pub const ASI_CORE_RUNNING_W1C: u32 = 65; +pub const ASI_CORE_RUNNING_STAT: u32 = 65; +pub const ASI_CMT_ERROR_STEERING: u32 = 65; +pub const ASI_DCACHE_INVALIDATE: u32 = 66; +pub const ASI_DCACHE_UTAG: u32 = 67; +pub const ASI_DCACHE_SNOOP_TAG: u32 = 68; +pub const ASI_LSU_CONTROL: u32 = 69; +pub const ASI_DCU_CONTROL_REG: u32 = 69; +pub const ASI_DCACHE_DATA: u32 = 70; +pub const ASI_DCACHE_TAG: u32 = 71; +pub const ASI_INTR_DISPATCH_STAT: u32 = 72; +pub const ASI_INTR_RECEIVE: u32 = 73; +pub const ASI_UPA_CONFIG: u32 = 74; +pub const ASI_JBUS_CONFIG: u32 = 74; +pub const ASI_SAFARI_CONFIG: u32 = 74; +pub const ASI_SAFARI_ADDRESS: u32 = 74; +pub const ASI_ESTATE_ERROR_EN: u32 = 75; +pub const ASI_AFSR: u32 = 76; +pub const ASI_AFAR: u32 = 77; +pub const ASI_EC_TAG_DATA: u32 = 78; +pub const ASI_IMMU: u32 = 80; +pub const ASI_IMMU_TSB_8KB_PTR: u32 = 81; +pub const ASI_IMMU_TSB_64KB_PTR: u32 = 82; +pub const ASI_ITLB_DATA_IN: u32 = 84; +pub const ASI_ITLB_DATA_ACCESS: u32 = 85; +pub const ASI_ITLB_TAG_READ: u32 = 86; +pub const ASI_IMMU_DEMAP: u32 = 87; +pub const ASI_DMMU: u32 = 88; +pub const ASI_DMMU_TSB_8KB_PTR: u32 = 89; +pub const ASI_DMMU_TSB_64KB_PTR: u32 = 90; +pub const ASI_DMMU_TSB_DIRECT_PTR: u32 = 91; +pub const ASI_DTLB_DATA_IN: u32 = 92; +pub const ASI_DTLB_DATA_ACCESS: u32 = 93; +pub const ASI_DTLB_TAG_READ: u32 = 94; +pub const ASI_DMMU_DEMAP: u32 = 95; +pub const ASI_IIU_INST_TRAP: u32 = 96; +pub const ASI_INTR_ID: u32 = 99; +pub const ASI_CORE_ID: u32 = 99; +pub const ASI_CESR_ID: u32 = 99; +pub const ASI_IC_INSTR: u32 = 102; +pub const ASI_IC_TAG: u32 = 103; +pub const ASI_IC_STAG: u32 = 104; +pub const ASI_IC_PRE_DECODE: u32 = 110; +pub const ASI_IC_NEXT_FIELD: u32 = 111; +pub const ASI_BRPRED_ARRAY: u32 = 111; +pub const ASI_BLK_AIUP: u32 = 112; +pub const ASI_BLK_AIUS: u32 = 113; +pub const ASI_MCU_CTRL_REG: u32 = 114; +pub const ASI_EC_DATA: u32 = 116; +pub const ASI_EC_CTRL: u32 = 117; +pub const ASI_EC_W: u32 = 118; +pub const ASI_UDB_ERROR_W: u32 = 119; +pub const ASI_UDB_CONTROL_W: u32 = 119; +pub const ASI_INTR_W: u32 = 119; +pub const ASI_INTR_DATAN_W: u32 = 119; +pub const ASI_INTR_DISPATCH_W: u32 = 119; +pub const ASI_BLK_AIUPL: u32 = 120; +pub const ASI_BLK_AIUSL: u32 = 121; +pub const ASI_EC_R: u32 = 126; +pub const ASI_UDBH_ERROR_R: u32 = 127; +pub const ASI_UDBL_ERROR_R: u32 = 127; +pub const ASI_UDBH_CONTROL_R: u32 = 127; +pub const ASI_UDBL_CONTROL_R: u32 = 127; +pub const ASI_INTR_R: u32 = 127; +pub const ASI_INTR_DATAN_R: u32 = 127; +pub const ASI_MCD_PRIMARY: u32 = 144; +pub const ASI_MCD_ST_BLKINIT_PRIMARY: u32 = 146; +pub const ASI_PIC: u32 = 176; +pub const ASI_PST8_P: u32 = 192; +pub const ASI_PST8_S: u32 = 193; +pub const ASI_PST16_P: u32 = 194; +pub const ASI_PST16_S: u32 = 195; +pub const ASI_PST32_P: u32 = 196; +pub const ASI_PST32_S: u32 = 197; +pub const ASI_PST8_PL: u32 = 200; +pub const ASI_PST8_SL: u32 = 201; +pub const ASI_PST16_PL: u32 = 202; +pub const ASI_PST16_SL: u32 = 203; +pub const ASI_PST32_PL: u32 = 204; +pub const ASI_PST32_SL: u32 = 205; +pub const ASI_FL8_P: u32 = 208; +pub const ASI_FL8_S: u32 = 209; +pub const ASI_FL16_P: u32 = 210; +pub const ASI_FL16_S: u32 = 211; +pub const ASI_FL8_PL: u32 = 216; +pub const ASI_FL8_SL: u32 = 217; +pub const ASI_FL16_PL: u32 = 218; +pub const ASI_FL16_SL: u32 = 219; +pub const ASI_BLK_COMMIT_P: u32 = 224; +pub const ASI_BLK_COMMIT_S: u32 = 225; +pub const ASI_BLK_INIT_QUAD_LDD_P: u32 = 226; +pub const ASI_BLK_INIT_QUAD_LDD_S: u32 = 227; +pub const ASI_BLK_P: u32 = 240; +pub const ASI_BLK_S: u32 = 241; +pub const ASI_ST_BLKINIT_MRU_P: u32 = 242; +pub const ASI_ST_BLKINIT_MRU_S: u32 = 243; +pub const ASI_BLK_PL: u32 = 248; +pub const ASI_BLK_SL: u32 = 249; +pub const ASI_ST_BLKINIT_MRU_PL: u32 = 250; +pub const ASI_ST_BLKINIT_MRU_SL: u32 = 251; +pub const PACKET_HOST: u32 = 0; +pub const PACKET_BROADCAST: u32 = 1; +pub const PACKET_MULTICAST: u32 = 2; +pub const PACKET_OTHERHOST: u32 = 3; +pub const PACKET_OUTGOING: u32 = 4; +pub const PACKET_LOOPBACK: u32 = 5; +pub const PACKET_USER: u32 = 6; +pub const PACKET_KERNEL: u32 = 7; +pub const PACKET_FASTROUTE: u32 = 6; +pub const PACKET_ADD_MEMBERSHIP: u32 = 1; +pub const PACKET_DROP_MEMBERSHIP: u32 = 2; +pub const PACKET_RECV_OUTPUT: u32 = 3; +pub const PACKET_RX_RING: u32 = 5; +pub const PACKET_STATISTICS: u32 = 6; +pub const PACKET_COPY_THRESH: u32 = 7; +pub const PACKET_AUXDATA: u32 = 8; +pub const PACKET_ORIGDEV: u32 = 9; +pub const PACKET_VERSION: u32 = 10; +pub const PACKET_HDRLEN: u32 = 11; +pub const PACKET_RESERVE: u32 = 12; +pub const PACKET_TX_RING: u32 = 13; +pub const PACKET_LOSS: u32 = 14; +pub const PACKET_VNET_HDR: u32 = 15; +pub const PACKET_TX_TIMESTAMP: u32 = 16; +pub const PACKET_TIMESTAMP: u32 = 17; +pub const PACKET_FANOUT: u32 = 18; +pub const PACKET_TX_HAS_OFF: u32 = 19; +pub const PACKET_QDISC_BYPASS: u32 = 20; +pub const PACKET_ROLLOVER_STATS: u32 = 21; +pub const PACKET_FANOUT_DATA: u32 = 22; +pub const PACKET_IGNORE_OUTGOING: u32 = 23; +pub const PACKET_VNET_HDR_SZ: u32 = 24; +pub const PACKET_FANOUT_HASH: u32 = 0; +pub const PACKET_FANOUT_LB: u32 = 1; +pub const PACKET_FANOUT_CPU: u32 = 2; +pub const PACKET_FANOUT_ROLLOVER: u32 = 3; +pub const PACKET_FANOUT_RND: u32 = 4; +pub const PACKET_FANOUT_QM: u32 = 5; +pub const PACKET_FANOUT_CBPF: u32 = 6; +pub const PACKET_FANOUT_EBPF: u32 = 7; +pub const PACKET_FANOUT_FLAG_ROLLOVER: u32 = 4096; +pub const PACKET_FANOUT_FLAG_UNIQUEID: u32 = 8192; +pub const PACKET_FANOUT_FLAG_IGNORE_OUTGOING: u32 = 16384; +pub const PACKET_FANOUT_FLAG_DEFRAG: u32 = 32768; +pub const TP_STATUS_KERNEL: u32 = 0; +pub const TP_STATUS_USER: u32 = 1; +pub const TP_STATUS_COPY: u32 = 2; +pub const TP_STATUS_LOSING: u32 = 4; +pub const TP_STATUS_CSUMNOTREADY: u32 = 8; +pub const TP_STATUS_VLAN_VALID: u32 = 16; +pub const TP_STATUS_BLK_TMO: u32 = 32; +pub const TP_STATUS_VLAN_TPID_VALID: u32 = 64; +pub const TP_STATUS_CSUM_VALID: u32 = 128; +pub const TP_STATUS_GSO_TCP: u32 = 256; +pub const TP_STATUS_AVAILABLE: u32 = 0; +pub const TP_STATUS_SEND_REQUEST: u32 = 1; +pub const TP_STATUS_SENDING: u32 = 2; +pub const TP_STATUS_WRONG_FORMAT: u32 = 4; +pub const TP_STATUS_TS_SOFTWARE: u32 = 536870912; +pub const TP_STATUS_TS_SYS_HARDWARE: u32 = 1073741824; +pub const TP_STATUS_TS_RAW_HARDWARE: u32 = 2147483648; +pub const TP_FT_REQ_FILL_RXHASH: u32 = 1; +pub const TPACKET_ALIGNMENT: u32 = 16; +pub const PACKET_MR_MULTICAST: u32 = 0; +pub const PACKET_MR_PROMISC: u32 = 1; +pub const PACKET_MR_ALLMULTI: u32 = 2; +pub const PACKET_MR_UNICAST: u32 = 3; +pub const NETLINK_ROUTE: u32 = 0; +pub const NETLINK_UNUSED: u32 = 1; +pub const NETLINK_USERSOCK: u32 = 2; +pub const NETLINK_FIREWALL: u32 = 3; +pub const NETLINK_SOCK_DIAG: u32 = 4; +pub const NETLINK_NFLOG: u32 = 5; +pub const NETLINK_XFRM: u32 = 6; +pub const NETLINK_SELINUX: u32 = 7; +pub const NETLINK_ISCSI: u32 = 8; +pub const NETLINK_AUDIT: u32 = 9; +pub const NETLINK_FIB_LOOKUP: u32 = 10; +pub const NETLINK_CONNECTOR: u32 = 11; +pub const NETLINK_NETFILTER: u32 = 12; +pub const NETLINK_IP6_FW: u32 = 13; +pub const NETLINK_DNRTMSG: u32 = 14; +pub const NETLINK_KOBJECT_UEVENT: u32 = 15; +pub const NETLINK_GENERIC: u32 = 16; +pub const NETLINK_SCSITRANSPORT: u32 = 18; +pub const NETLINK_ECRYPTFS: u32 = 19; +pub const NETLINK_RDMA: u32 = 20; +pub const NETLINK_CRYPTO: u32 = 21; +pub const NETLINK_SMC: u32 = 22; +pub const NETLINK_INET_DIAG: u32 = 4; +pub const MAX_LINKS: u32 = 32; +pub const NLM_F_REQUEST: u32 = 1; +pub const NLM_F_MULTI: u32 = 2; +pub const NLM_F_ACK: u32 = 4; +pub const NLM_F_ECHO: u32 = 8; +pub const NLM_F_DUMP_INTR: u32 = 16; +pub const NLM_F_DUMP_FILTERED: u32 = 32; +pub const NLM_F_ROOT: u32 = 256; +pub const NLM_F_MATCH: u32 = 512; +pub const NLM_F_ATOMIC: u32 = 1024; +pub const NLM_F_DUMP: u32 = 768; +pub const NLM_F_REPLACE: u32 = 256; +pub const NLM_F_EXCL: u32 = 512; +pub const NLM_F_CREATE: u32 = 1024; +pub const NLM_F_APPEND: u32 = 2048; +pub const NLM_F_NONREC: u32 = 256; +pub const NLM_F_BULK: u32 = 512; +pub const NLM_F_CAPPED: u32 = 256; +pub const NLM_F_ACK_TLVS: u32 = 512; +pub const NLMSG_ALIGNTO: u32 = 4; +pub const NLMSG_NOOP: u32 = 1; +pub const NLMSG_ERROR: u32 = 2; +pub const NLMSG_DONE: u32 = 3; +pub const NLMSG_OVERRUN: u32 = 4; +pub const NLMSG_MIN_TYPE: u32 = 16; +pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; +pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; +pub const NETLINK_PKTINFO: u32 = 3; +pub const NETLINK_BROADCAST_ERROR: u32 = 4; +pub const NETLINK_NO_ENOBUFS: u32 = 5; +pub const NETLINK_RX_RING: u32 = 6; +pub const NETLINK_TX_RING: u32 = 7; +pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; +pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; +pub const NETLINK_CAP_ACK: u32 = 10; +pub const NETLINK_EXT_ACK: u32 = 11; +pub const NETLINK_GET_STRICT_CHK: u32 = 12; +pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; +pub const NET_MAJOR: u32 = 36; +pub const NLA_F_NESTED: u32 = 32768; +pub const NLA_F_NET_BYTEORDER: u32 = 16384; +pub const NLA_TYPE_MASK: i32 = -49153; +pub const NLA_ALIGNTO: u32 = 4; +pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; +pub const MACVLAN_FLAG_NODST: u32 = 2; +pub const IPVLAN_F_PRIVATE: u32 = 1; +pub const IPVLAN_F_VEPA: u32 = 2; +pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; +pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; +pub const MAX_VLAN_LIST_LEN: u32 = 1; +pub const PORT_PROFILE_MAX: u32 = 40; +pub const PORT_UUID_MAX: u32 = 16; +pub const PORT_SELF_VF: i32 = -1; +pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; +pub const XDP_FLAGS_SKB_MODE: u32 = 2; +pub const XDP_FLAGS_DRV_MODE: u32 = 4; +pub const XDP_FLAGS_HW_MODE: u32 = 8; +pub const XDP_FLAGS_REPLACE: u32 = 16; +pub const XDP_FLAGS_MODES: u32 = 14; +pub const XDP_FLAGS_MASK: u32 = 31; +pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; +pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; +pub const MAX_ADDR_LEN: u32 = 32; +pub const INIT_NETDEV_GROUP: u32 = 0; +pub const NET_NAME_UNKNOWN: u32 = 0; +pub const NET_NAME_ENUM: u32 = 1; +pub const NET_NAME_PREDICTABLE: u32 = 2; +pub const NET_NAME_USER: u32 = 3; +pub const NET_NAME_RENAMED: u32 = 4; +pub const NET_ADDR_PERM: u32 = 0; +pub const NET_ADDR_RANDOM: u32 = 1; +pub const NET_ADDR_STOLEN: u32 = 2; +pub const NET_ADDR_SET: u32 = 3; +pub const ARPHRD_NETROM: u32 = 0; +pub const ARPHRD_ETHER: u32 = 1; +pub const ARPHRD_EETHER: u32 = 2; +pub const ARPHRD_AX25: u32 = 3; +pub const ARPHRD_PRONET: u32 = 4; +pub const ARPHRD_CHAOS: u32 = 5; +pub const ARPHRD_IEEE802: u32 = 6; +pub const ARPHRD_ARCNET: u32 = 7; +pub const ARPHRD_APPLETLK: u32 = 8; +pub const ARPHRD_DLCI: u32 = 15; +pub const ARPHRD_ATM: u32 = 19; +pub const ARPHRD_METRICOM: u32 = 23; +pub const ARPHRD_IEEE1394: u32 = 24; +pub const ARPHRD_EUI64: u32 = 27; +pub const ARPHRD_INFINIBAND: u32 = 32; +pub const ARPHRD_SLIP: u32 = 256; +pub const ARPHRD_CSLIP: u32 = 257; +pub const ARPHRD_SLIP6: u32 = 258; +pub const ARPHRD_CSLIP6: u32 = 259; +pub const ARPHRD_RSRVD: u32 = 260; +pub const ARPHRD_ADAPT: u32 = 264; +pub const ARPHRD_ROSE: u32 = 270; +pub const ARPHRD_X25: u32 = 271; +pub const ARPHRD_HWX25: u32 = 272; +pub const ARPHRD_CAN: u32 = 280; +pub const ARPHRD_MCTP: u32 = 290; +pub const ARPHRD_PPP: u32 = 512; +pub const ARPHRD_CISCO: u32 = 513; +pub const ARPHRD_HDLC: u32 = 513; +pub const ARPHRD_LAPB: u32 = 516; +pub const ARPHRD_DDCMP: u32 = 517; +pub const ARPHRD_RAWHDLC: u32 = 518; +pub const ARPHRD_RAWIP: u32 = 519; +pub const ARPHRD_TUNNEL: u32 = 768; +pub const ARPHRD_TUNNEL6: u32 = 769; +pub const ARPHRD_FRAD: u32 = 770; +pub const ARPHRD_SKIP: u32 = 771; +pub const ARPHRD_LOOPBACK: u32 = 772; +pub const ARPHRD_LOCALTLK: u32 = 773; +pub const ARPHRD_FDDI: u32 = 774; +pub const ARPHRD_BIF: u32 = 775; +pub const ARPHRD_SIT: u32 = 776; +pub const ARPHRD_IPDDP: u32 = 777; +pub const ARPHRD_IPGRE: u32 = 778; +pub const ARPHRD_PIMREG: u32 = 779; +pub const ARPHRD_HIPPI: u32 = 780; +pub const ARPHRD_ASH: u32 = 781; +pub const ARPHRD_ECONET: u32 = 782; +pub const ARPHRD_IRDA: u32 = 783; +pub const ARPHRD_FCPP: u32 = 784; +pub const ARPHRD_FCAL: u32 = 785; +pub const ARPHRD_FCPL: u32 = 786; +pub const ARPHRD_FCFABRIC: u32 = 787; +pub const ARPHRD_IEEE802_TR: u32 = 800; +pub const ARPHRD_IEEE80211: u32 = 801; +pub const ARPHRD_IEEE80211_PRISM: u32 = 802; +pub const ARPHRD_IEEE80211_RADIOTAP: u32 = 803; +pub const ARPHRD_IEEE802154: u32 = 804; +pub const ARPHRD_IEEE802154_MONITOR: u32 = 805; +pub const ARPHRD_PHONET: u32 = 820; +pub const ARPHRD_PHONET_PIPE: u32 = 821; +pub const ARPHRD_CAIF: u32 = 822; +pub const ARPHRD_IP6GRE: u32 = 823; +pub const ARPHRD_NETLINK: u32 = 824; +pub const ARPHRD_6LOWPAN: u32 = 825; +pub const ARPHRD_VSOCKMON: u32 = 826; +pub const ARPHRD_VOID: u32 = 65535; +pub const ARPHRD_NONE: u32 = 65534; +pub const ARPOP_REQUEST: u32 = 1; +pub const ARPOP_REPLY: u32 = 2; +pub const ARPOP_RREQUEST: u32 = 3; +pub const ARPOP_RREPLY: u32 = 4; +pub const ARPOP_InREQUEST: u32 = 8; +pub const ARPOP_InREPLY: u32 = 9; +pub const ARPOP_NAK: u32 = 10; +pub const ATF_COM: u32 = 2; +pub const ATF_PERM: u32 = 4; +pub const ATF_PUBL: u32 = 8; +pub const ATF_USETRAILERS: u32 = 16; +pub const ATF_NETMASK: u32 = 32; +pub const ATF_DONTPUB: u32 = 64; +pub const IF_OPER_UNKNOWN: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_UNKNOWN; +pub const IF_OPER_NOTPRESENT: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_NOTPRESENT; +pub const IF_OPER_DOWN: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_DOWN; +pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_LOWERLAYERDOWN; +pub const IF_OPER_TESTING: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_TESTING; +pub const IF_OPER_DORMANT: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_DORMANT; +pub const IF_OPER_UP: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_UP; +pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_2 = _bindgen_ty_2::IF_LINK_MODE_DEFAULT; +pub const IF_LINK_MODE_DORMANT: _bindgen_ty_2 = _bindgen_ty_2::IF_LINK_MODE_DORMANT; +pub const IF_LINK_MODE_TESTING: _bindgen_ty_2 = _bindgen_ty_2::IF_LINK_MODE_TESTING; +pub const NETLINK_UNCONNECTED: _bindgen_ty_3 = _bindgen_ty_3::NETLINK_UNCONNECTED; +pub const NETLINK_CONNECTED: _bindgen_ty_3 = _bindgen_ty_3::NETLINK_CONNECTED; +pub const IFLA_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_UNSPEC; +pub const IFLA_ADDRESS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_ADDRESS; +pub const IFLA_BROADCAST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_BROADCAST; +pub const IFLA_IFNAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IFNAME; +pub const IFLA_MTU: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MTU; +pub const IFLA_LINK: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINK; +pub const IFLA_QDISC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_QDISC; +pub const IFLA_STATS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_STATS; +pub const IFLA_COST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_COST; +pub const IFLA_PRIORITY: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PRIORITY; +pub const IFLA_MASTER: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MASTER; +pub const IFLA_WIRELESS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_WIRELESS; +pub const IFLA_PROTINFO: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROTINFO; +pub const IFLA_TXQLEN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TXQLEN; +pub const IFLA_MAP: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAP; +pub const IFLA_WEIGHT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_WEIGHT; +pub const IFLA_OPERSTATE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_OPERSTATE; +pub const IFLA_LINKMODE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINKMODE; +pub const IFLA_LINKINFO: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINKINFO; +pub const IFLA_NET_NS_PID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NET_NS_PID; +pub const IFLA_IFALIAS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IFALIAS; +pub const IFLA_NUM_VF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NUM_VF; +pub const IFLA_VFINFO_LIST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_VFINFO_LIST; +pub const IFLA_STATS64: _bindgen_ty_4 = _bindgen_ty_4::IFLA_STATS64; +pub const IFLA_VF_PORTS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_VF_PORTS; +pub const IFLA_PORT_SELF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PORT_SELF; +pub const IFLA_AF_SPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_AF_SPEC; +pub const IFLA_GROUP: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GROUP; +pub const IFLA_NET_NS_FD: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NET_NS_FD; +pub const IFLA_EXT_MASK: _bindgen_ty_4 = _bindgen_ty_4::IFLA_EXT_MASK; +pub const IFLA_PROMISCUITY: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROMISCUITY; +pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NUM_TX_QUEUES; +pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NUM_RX_QUEUES; +pub const IFLA_CARRIER: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER; +pub const IFLA_PHYS_PORT_ID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PHYS_PORT_ID; +pub const IFLA_CARRIER_CHANGES: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER_CHANGES; +pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PHYS_SWITCH_ID; +pub const IFLA_LINK_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINK_NETNSID; +pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PHYS_PORT_NAME; +pub const IFLA_PROTO_DOWN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROTO_DOWN; +pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_MAX_SEGS; +pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_MAX_SIZE; +pub const IFLA_PAD: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PAD; +pub const IFLA_XDP: _bindgen_ty_4 = _bindgen_ty_4::IFLA_XDP; +pub const IFLA_EVENT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_EVENT; +pub const IFLA_NEW_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NEW_NETNSID; +pub const IFLA_IF_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IF_NETNSID; +pub const IFLA_TARGET_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IF_NETNSID; +pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER_UP_COUNT; +pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER_DOWN_COUNT; +pub const IFLA_NEW_IFINDEX: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NEW_IFINDEX; +pub const IFLA_MIN_MTU: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MIN_MTU; +pub const IFLA_MAX_MTU: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_MTU; +pub const IFLA_PROP_LIST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROP_LIST; +pub const IFLA_ALT_IFNAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_ALT_IFNAME; +pub const IFLA_PERM_ADDRESS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PERM_ADDRESS; +pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROTO_DOWN_REASON; +pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PARENT_DEV_NAME; +pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PARENT_DEV_BUS_NAME; +pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_MAX_SIZE; +pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TSO_MAX_SIZE; +pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TSO_MAX_SEGS; +pub const IFLA_ALLMULTI: _bindgen_ty_4 = _bindgen_ty_4::IFLA_ALLMULTI; +pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT; +pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE; +pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE; +pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON; +pub const IFLA_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX; +pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC; +pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_MASK; +pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_VALUE; +pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_PROTO_DOWN_REASON_CNT; +pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_VALUE; +pub const IFLA_INET_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_INET_UNSPEC; +pub const IFLA_INET_CONF: _bindgen_ty_6 = _bindgen_ty_6::IFLA_INET_CONF; +pub const __IFLA_INET_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_INET_MAX; +pub const IFLA_INET6_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_UNSPEC; +pub const IFLA_INET6_FLAGS: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_FLAGS; +pub const IFLA_INET6_CONF: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_CONF; +pub const IFLA_INET6_STATS: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_STATS; +pub const IFLA_INET6_MCAST: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_MCAST; +pub const IFLA_INET6_CACHEINFO: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_CACHEINFO; +pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_ICMP6STATS; +pub const IFLA_INET6_TOKEN: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_TOKEN; +pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_ADDR_GEN_MODE; +pub const IFLA_INET6_RA_MTU: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_RA_MTU; +pub const __IFLA_INET6_MAX: _bindgen_ty_7 = _bindgen_ty_7::__IFLA_INET6_MAX; +pub const IFLA_BR_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_UNSPEC; +pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FORWARD_DELAY; +pub const IFLA_BR_HELLO_TIME: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_HELLO_TIME; +pub const IFLA_BR_MAX_AGE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MAX_AGE; +pub const IFLA_BR_AGEING_TIME: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_AGEING_TIME; +pub const IFLA_BR_STP_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_STATE; +pub const IFLA_BR_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_PRIORITY; +pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_FILTERING; +pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_PROTOCOL; +pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_GROUP_FWD_MASK; +pub const IFLA_BR_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_ROOT_ID; +pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_BRIDGE_ID; +pub const IFLA_BR_ROOT_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_ROOT_PORT; +pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_ROOT_PATH_COST; +pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TOPOLOGY_CHANGE; +pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; +pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_HELLO_TIMER; +pub const IFLA_BR_TCN_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TCN_TIMER; +pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TOPOLOGY_CHANGE_TIMER; +pub const IFLA_BR_GC_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_GC_TIMER; +pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_GROUP_ADDR; +pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_FLUSH; +pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_ROUTER; +pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_SNOOPING; +pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERY_USE_IFADDR; +pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER; +pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_HASH_ELASTICITY; +pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_HASH_MAX; +pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_LAST_MEMBER_CNT; +pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_STARTUP_QUERY_CNT; +pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_LAST_MEMBER_INTVL; +pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_MEMBERSHIP_INTVL; +pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_INTVL; +pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERY_INTVL; +pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; +pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; +pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_NF_CALL_IPTABLES; +pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_NF_CALL_IP6TABLES; +pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_NF_CALL_ARPTABLES; +pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_DEFAULT_PVID; +pub const IFLA_BR_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_PAD; +pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_STATS_ENABLED; +pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_STATS_ENABLED; +pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_IGMP_VERSION; +pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_MLD_VERSION; +pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_STATS_PER_PORT; +pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BOOLOPT; +pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; +pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; +pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; +pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; +pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; +pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_UNSPEC; +pub const IFLA_BRPORT_STATE: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_STATE; +pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PRIORITY; +pub const IFLA_BRPORT_COST: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_COST; +pub const IFLA_BRPORT_MODE: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MODE; +pub const IFLA_BRPORT_GUARD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_GUARD; +pub const IFLA_BRPORT_PROTECT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PROTECT; +pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_FAST_LEAVE; +pub const IFLA_BRPORT_LEARNING: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_LEARNING; +pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_UNICAST_FLOOD; +pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PROXYARP; +pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_LEARNING_SYNC; +pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PROXYARP_WIFI; +pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_ROOT_ID; +pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BRIDGE_ID; +pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_DESIGNATED_PORT; +pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_DESIGNATED_COST; +pub const IFLA_BRPORT_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_ID; +pub const IFLA_BRPORT_NO: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NO; +pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; +pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_CONFIG_PENDING; +pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MESSAGE_AGE_TIMER; +pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_FORWARD_DELAY_TIMER; +pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_HOLD_TIMER; +pub const IFLA_BRPORT_FLUSH: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_FLUSH; +pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MULTICAST_ROUTER; +pub const IFLA_BRPORT_PAD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PAD; +pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_FLOOD; +pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_TO_UCAST; +pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_VLAN_TUNNEL; +pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BCAST_FLOOD; +pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_GROUP_FWD_MASK; +pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_SUPPRESS; +pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_ISOLATED; +pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_PORT; +pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MRP_RING_OPEN; +pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MRP_IN_OPEN; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; +pub const IFLA_BRPORT_LOCKED: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_LOCKED; +pub const IFLA_BRPORT_MAB: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MAB; +pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_N_GROUPS; +pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; +pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; +pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; +pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; +pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; +pub const IFLA_INFO_DATA: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_DATA; +pub const IFLA_INFO_XSTATS: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_XSTATS; +pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_SLAVE_KIND; +pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_SLAVE_DATA; +pub const __IFLA_INFO_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_INFO_MAX; +pub const IFLA_VLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_UNSPEC; +pub const IFLA_VLAN_ID: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_ID; +pub const IFLA_VLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_FLAGS; +pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_EGRESS_QOS; +pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_INGRESS_QOS; +pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_PROTOCOL; +pub const __IFLA_VLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_VLAN_MAX; +pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VLAN_QOS_UNSPEC; +pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VLAN_QOS_MAPPING; +pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VLAN_QOS_MAX; +pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_UNSPEC; +pub const IFLA_MACVLAN_MODE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MODE; +pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_FLAGS; +pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR_MODE; +pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR; +pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR_DATA; +pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR_COUNT; +pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_BC_QUEUE_LEN; +pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_BC_QUEUE_LEN_USED; +pub const IFLA_MACVLAN_BC_CUTOFF: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_BC_CUTOFF; +pub const __IFLA_MACVLAN_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_MACVLAN_MAX; +pub const IFLA_VRF_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_VRF_UNSPEC; +pub const IFLA_VRF_TABLE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_VRF_TABLE; +pub const __IFLA_VRF_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_VRF_MAX; +pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_VRF_PORT_UNSPEC; +pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_16 = _bindgen_ty_16::IFLA_VRF_PORT_TABLE; +pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_VRF_PORT_MAX; +pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_UNSPEC; +pub const IFLA_MACSEC_SCI: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_SCI; +pub const IFLA_MACSEC_PORT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_PORT; +pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ICV_LEN; +pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_CIPHER_SUITE; +pub const IFLA_MACSEC_WINDOW: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_WINDOW; +pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ENCODING_SA; +pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ENCRYPT; +pub const IFLA_MACSEC_PROTECT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_PROTECT; +pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_INC_SCI; +pub const IFLA_MACSEC_ES: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ES; +pub const IFLA_MACSEC_SCB: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_SCB; +pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_REPLAY_PROTECT; +pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_VALIDATION; +pub const IFLA_MACSEC_PAD: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_PAD; +pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_OFFLOAD; +pub const __IFLA_MACSEC_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_MACSEC_MAX; +pub const IFLA_XFRM_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_UNSPEC; +pub const IFLA_XFRM_LINK: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_LINK; +pub const IFLA_XFRM_IF_ID: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_IF_ID; +pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_COLLECT_METADATA; +pub const __IFLA_XFRM_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_XFRM_MAX; +pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::IFLA_IPVLAN_UNSPEC; +pub const IFLA_IPVLAN_MODE: _bindgen_ty_19 = _bindgen_ty_19::IFLA_IPVLAN_MODE; +pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_19 = _bindgen_ty_19::IFLA_IPVLAN_FLAGS; +pub const __IFLA_IPVLAN_MAX: _bindgen_ty_19 = _bindgen_ty_19::__IFLA_IPVLAN_MAX; +pub const IFLA_NETKIT_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_UNSPEC; +pub const IFLA_NETKIT_PEER_INFO: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_INFO; +pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PRIMARY; +pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY; +pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY; +pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB; +pub const IFLA_NETKIT_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; +pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX; +pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC; +pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_BYTES; +pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_PKTS; +pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_DROPS; +pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_BYTES; +pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_PKTS; +pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_DROPS; +pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_PAD; +pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_21 = _bindgen_ty_21::__VNIFILTER_ENTRY_STATS_MAX; +pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_START; +pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_END; +pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_GROUP; +pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_GROUP6; +pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_STATS; +pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_22 = _bindgen_ty_22::__VXLAN_VNIFILTER_ENTRY_MAX; +pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::VXLAN_VNIFILTER_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_23 = _bindgen_ty_23::VXLAN_VNIFILTER_ENTRY; +pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_23 = _bindgen_ty_23::__VXLAN_VNIFILTER_MAX; +pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UNSPEC; +pub const IFLA_VXLAN_ID: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_ID; +pub const IFLA_VXLAN_GROUP: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GROUP; +pub const IFLA_VXLAN_LINK: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LINK; +pub const IFLA_VXLAN_LOCAL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LOCAL; +pub const IFLA_VXLAN_TTL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_TTL; +pub const IFLA_VXLAN_TOS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_TOS; +pub const IFLA_VXLAN_LEARNING: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LEARNING; +pub const IFLA_VXLAN_AGEING: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_AGEING; +pub const IFLA_VXLAN_LIMIT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LIMIT; +pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_PORT_RANGE; +pub const IFLA_VXLAN_PROXY: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_PROXY; +pub const IFLA_VXLAN_RSC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_RSC; +pub const IFLA_VXLAN_L2MISS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_L2MISS; +pub const IFLA_VXLAN_L3MISS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_L3MISS; +pub const IFLA_VXLAN_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_PORT; +pub const IFLA_VXLAN_GROUP6: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GROUP6; +pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LOCAL6; +pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UDP_CSUM; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; +pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_REMCSUM_TX; +pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_REMCSUM_RX; +pub const IFLA_VXLAN_GBP: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GBP; +pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_REMCSUM_NOPARTIAL; +pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_COLLECT_METADATA; +pub const IFLA_VXLAN_LABEL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LABEL; +pub const IFLA_VXLAN_GPE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GPE; +pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_TTL_INHERIT; +pub const IFLA_VXLAN_DF: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_DF; +pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_VNIFILTER; +pub const IFLA_VXLAN_LOCALBYPASS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LOCALBYPASS; +pub const IFLA_VXLAN_LABEL_POLICY: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LABEL_POLICY; +pub const IFLA_VXLAN_RESERVED_BITS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_RESERVED_BITS; +pub const __IFLA_VXLAN_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_VXLAN_MAX; +pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UNSPEC; +pub const IFLA_GENEVE_ID: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ID; +pub const IFLA_GENEVE_REMOTE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_REMOTE; +pub const IFLA_GENEVE_TTL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_TTL; +pub const IFLA_GENEVE_TOS: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_TOS; +pub const IFLA_GENEVE_PORT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT; +pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_COLLECT_METADATA; +pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_REMOTE6; +pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UDP_CSUM; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; +pub const IFLA_GENEVE_LABEL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LABEL; +pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_TTL_INHERIT; +pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; +pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; +pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; +pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; +pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; +pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_ETHERTYPE; +pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_SRCPORT_MIN; +pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_MULTIPROTO_MODE; +pub const __IFLA_BAREUDP_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_BAREUDP_MAX; +pub const IFLA_PPP_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_PPP_UNSPEC; +pub const IFLA_PPP_DEV_FD: _bindgen_ty_27 = _bindgen_ty_27::IFLA_PPP_DEV_FD; +pub const __IFLA_PPP_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_PPP_MAX; +pub const IFLA_GTP_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_UNSPEC; +pub const IFLA_GTP_FD0: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_FD0; +pub const IFLA_GTP_FD1: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_FD1; +pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_PDP_HASHSIZE; +pub const IFLA_GTP_ROLE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_ROLE; +pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_CREATE_SOCKETS; +pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_RESTART_COUNT; +pub const IFLA_GTP_LOCAL: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_LOCAL; +pub const IFLA_GTP_LOCAL6: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_LOCAL6; +pub const __IFLA_GTP_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_GTP_MAX; +pub const IFLA_BOND_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_UNSPEC; +pub const IFLA_BOND_MODE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MODE; +pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ACTIVE_SLAVE; +pub const IFLA_BOND_MIIMON: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MIIMON; +pub const IFLA_BOND_UPDELAY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_UPDELAY; +pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_DOWNDELAY; +pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_USE_CARRIER; +pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_INTERVAL; +pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_IP_TARGET; +pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_VALIDATE; +pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_ALL_TARGETS; +pub const IFLA_BOND_PRIMARY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PRIMARY; +pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PRIMARY_RESELECT; +pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_FAIL_OVER_MAC; +pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_XMIT_HASH_POLICY; +pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_RESEND_IGMP; +pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_NUM_PEER_NOTIF; +pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ALL_SLAVES_ACTIVE; +pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MIN_LINKS; +pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LP_INTERVAL; +pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PACKETS_PER_SLAVE; +pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_LACP_RATE; +pub const IFLA_BOND_AD_SELECT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_SELECT; +pub const IFLA_BOND_AD_INFO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_INFO; +pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_ACTOR_SYS_PRIO; +pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_USER_PORT_KEY; +pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_ACTOR_SYSTEM; +pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_TLB_DYNAMIC_LB; +pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PEER_NOTIF_DELAY; +pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_LACP_ACTIVE; +pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSED_MAX; +pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_NS_IP6_TARGET; +pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_COUPLED_CONTROL; +pub const __IFLA_BOND_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_MAX; +pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_UNSPEC; +pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_AGGREGATOR; +pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_NUM_PORTS; +pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_ACTOR_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_PARTNER_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_PARTNER_MAC; +pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_BOND_AD_INFO_MAX; +pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_UNSPEC; +pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_STATE; +pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_MII_STATUS; +pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; +pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PERM_HWADDR; +pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_QUEUE_ID; +pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; +pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; +pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; +pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; +pub const __IFLA_VF_INFO_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_INFO_MAX; +pub const IFLA_VF_UNSPEC: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_UNSPEC; +pub const IFLA_VF_MAC: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_MAC; +pub const IFLA_VF_VLAN: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_VLAN; +pub const IFLA_VF_TX_RATE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_TX_RATE; +pub const IFLA_VF_SPOOFCHK: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_SPOOFCHK; +pub const IFLA_VF_LINK_STATE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_LINK_STATE; +pub const IFLA_VF_RATE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_RATE; +pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_RSS_QUERY_EN; +pub const IFLA_VF_STATS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS; +pub const IFLA_VF_TRUST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_TRUST; +pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_IB_NODE_GUID; +pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_IB_PORT_GUID; +pub const IFLA_VF_VLAN_LIST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_VLAN_LIST; +pub const IFLA_VF_BROADCAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_BROADCAST; +pub const __IFLA_VF_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_MAX; +pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_VLAN_INFO_UNSPEC; +pub const IFLA_VF_VLAN_INFO: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_VLAN_INFO; +pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_VLAN_INFO_MAX; +pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_LINK_STATE_AUTO; +pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_LINK_STATE_ENABLE; +pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_LINK_STATE_DISABLE; +pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_VF_LINK_STATE_MAX; +pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_RX_PACKETS; +pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_TX_PACKETS; +pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_RX_BYTES; +pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_TX_BYTES; +pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_BROADCAST; +pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_MULTICAST; +pub const IFLA_VF_STATS_PAD: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_PAD; +pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_RX_DROPPED; +pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_TX_DROPPED; +pub const __IFLA_VF_STATS_MAX: _bindgen_ty_36 = _bindgen_ty_36::__IFLA_VF_STATS_MAX; +pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_37 = _bindgen_ty_37::IFLA_VF_PORT_UNSPEC; +pub const IFLA_VF_PORT: _bindgen_ty_37 = _bindgen_ty_37::IFLA_VF_PORT; +pub const __IFLA_VF_PORT_MAX: _bindgen_ty_37 = _bindgen_ty_37::__IFLA_VF_PORT_MAX; +pub const IFLA_PORT_UNSPEC: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_UNSPEC; +pub const IFLA_PORT_VF: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_VF; +pub const IFLA_PORT_PROFILE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_PROFILE; +pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_VSI_TYPE; +pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_INSTANCE_UUID; +pub const IFLA_PORT_HOST_UUID: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_HOST_UUID; +pub const IFLA_PORT_REQUEST: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_REQUEST; +pub const IFLA_PORT_RESPONSE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_RESPONSE; +pub const __IFLA_PORT_MAX: _bindgen_ty_38 = _bindgen_ty_38::__IFLA_PORT_MAX; +pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_PREASSOCIATE; +pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_PREASSOCIATE_RR; +pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_ASSOCIATE; +pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_DISASSOCIATE; +pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_SUCCESS; +pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_INVALID_FORMAT; +pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_UNUSED_VTID; +pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_VTID_VIOLATION; +pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; +pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_OUT_OF_SYNC; +pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_SUCCESS; +pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_INPROGRESS; +pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_INVALID; +pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_BADSTATE; +pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_ERROR; +pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_UNSPEC; +pub const IFLA_IPOIB_PKEY: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_PKEY; +pub const IFLA_IPOIB_MODE: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_MODE; +pub const IFLA_IPOIB_UMCAST: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_UMCAST; +pub const __IFLA_IPOIB_MAX: _bindgen_ty_41 = _bindgen_ty_41::__IFLA_IPOIB_MAX; +pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_42 = _bindgen_ty_42::IPOIB_MODE_DATAGRAM; +pub const IPOIB_MODE_CONNECTED: _bindgen_ty_42 = _bindgen_ty_42::IPOIB_MODE_CONNECTED; +pub const HSR_PROTOCOL_HSR: _bindgen_ty_43 = _bindgen_ty_43::HSR_PROTOCOL_HSR; +pub const HSR_PROTOCOL_PRP: _bindgen_ty_43 = _bindgen_ty_43::HSR_PROTOCOL_PRP; +pub const HSR_PROTOCOL_MAX: _bindgen_ty_43 = _bindgen_ty_43::HSR_PROTOCOL_MAX; +pub const IFLA_HSR_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_UNSPEC; +pub const IFLA_HSR_SLAVE1: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SLAVE1; +pub const IFLA_HSR_SLAVE2: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SLAVE2; +pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_MULTICAST_SPEC; +pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SUPERVISION_ADDR; +pub const IFLA_HSR_SEQ_NR: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SEQ_NR; +pub const IFLA_HSR_VERSION: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_VERSION; +pub const IFLA_HSR_PROTOCOL: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_PROTOCOL; +pub const IFLA_HSR_INTERLINK: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_INTERLINK; +pub const __IFLA_HSR_MAX: _bindgen_ty_44 = _bindgen_ty_44::__IFLA_HSR_MAX; +pub const IFLA_STATS_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_UNSPEC; +pub const IFLA_STATS_LINK_64: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_64; +pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_XSTATS; +pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_XSTATS_SLAVE; +pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_OFFLOAD_XSTATS; +pub const IFLA_STATS_AF_SPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_AF_SPEC; +pub const __IFLA_STATS_MAX: _bindgen_ty_45 = _bindgen_ty_45::__IFLA_STATS_MAX; +pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_STATS_GETSET_UNSPEC; +pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_46 = _bindgen_ty_46::IFLA_STATS_GET_FILTERS; +pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_46 = _bindgen_ty_46::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_STATS_GETSET_MAX; +pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_47 = _bindgen_ty_47::LINK_XSTATS_TYPE_UNSPEC; +pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_47 = _bindgen_ty_47::LINK_XSTATS_TYPE_BRIDGE; +pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_47 = _bindgen_ty_47::LINK_XSTATS_TYPE_BOND; +pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_47 = _bindgen_ty_47::__LINK_XSTATS_TYPE_MAX; +pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_CPU_HIT; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_HW_S_INFO; +pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_48 = _bindgen_ty_48::__IFLA_OFFLOAD_XSTATS_MAX; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_49 = _bindgen_ty_49::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_49 = _bindgen_ty_49::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_49 = _bindgen_ty_49::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; +pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_49 = _bindgen_ty_49::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; +pub const XDP_ATTACHED_NONE: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_NONE; +pub const XDP_ATTACHED_DRV: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_DRV; +pub const XDP_ATTACHED_SKB: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_SKB; +pub const XDP_ATTACHED_HW: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_HW; +pub const XDP_ATTACHED_MULTI: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_MULTI; +pub const IFLA_XDP_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_UNSPEC; +pub const IFLA_XDP_FD: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_FD; +pub const IFLA_XDP_ATTACHED: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_ATTACHED; +pub const IFLA_XDP_FLAGS: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_FLAGS; +pub const IFLA_XDP_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_PROG_ID; +pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_DRV_PROG_ID; +pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_SKB_PROG_ID; +pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_HW_PROG_ID; +pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_EXPECTED_FD; +pub const __IFLA_XDP_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_XDP_MAX; +pub const IFLA_EVENT_NONE: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_NONE; +pub const IFLA_EVENT_REBOOT: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_REBOOT; +pub const IFLA_EVENT_FEATURES: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_FEATURES; +pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_BONDING_FAILOVER; +pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_NOTIFY_PEERS; +pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_IGMP_RESEND; +pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_BONDING_OPTIONS; +pub const IFLA_TUN_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_UNSPEC; +pub const IFLA_TUN_OWNER: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_OWNER; +pub const IFLA_TUN_GROUP: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_GROUP; +pub const IFLA_TUN_TYPE: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_TYPE; +pub const IFLA_TUN_PI: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_PI; +pub const IFLA_TUN_VNET_HDR: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_VNET_HDR; +pub const IFLA_TUN_PERSIST: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_PERSIST; +pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_MULTI_QUEUE; +pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_NUM_QUEUES; +pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_NUM_DISABLED_QUEUES; +pub const __IFLA_TUN_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_TUN_MAX; +pub const IFLA_RMNET_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_UNSPEC; +pub const IFLA_RMNET_MUX_ID: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_MUX_ID; +pub const IFLA_RMNET_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_FLAGS; +pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX; +pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC; +pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING; +pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX; +pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC; +pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; +pub const IFLA_DSA_MASTER: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; +pub const __IFLA_DSA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__IFLA_DSA_MAX; +pub const IFLA_OVPN_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::IFLA_OVPN_UNSPEC; +pub const IFLA_OVPN_MODE: _bindgen_ty_57 = _bindgen_ty_57::IFLA_OVPN_MODE; +pub const __IFLA_OVPN_MAX: _bindgen_ty_57 = _bindgen_ty_57::__IFLA_OVPN_MAX; +pub const IF_PORT_UNKNOWN: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_UNKNOWN; +pub const IF_PORT_10BASE2: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_10BASE2; +pub const IF_PORT_10BASET: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_10BASET; +pub const IF_PORT_AUI: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_AUI; +pub const IF_PORT_100BASET: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_100BASET; +pub const IF_PORT_100BASETX: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_100BASETX; +pub const IF_PORT_100BASEFX: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_100BASEFX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum net_device_flags { +IFF_UP = 1, +IFF_BROADCAST = 2, +IFF_DEBUG = 4, +IFF_LOOPBACK = 8, +IFF_POINTOPOINT = 16, +IFF_NOTRAILERS = 32, +IFF_RUNNING = 64, +IFF_NOARP = 128, +IFF_PROMISC = 256, +IFF_ALLMULTI = 512, +IFF_MASTER = 1024, +IFF_SLAVE = 2048, +IFF_MULTICAST = 4096, +IFF_PORTSEL = 8192, +IFF_AUTOMEDIA = 16384, +IFF_DYNAMIC = 32768, +IFF_LOWER_UP = 65536, +IFF_DORMANT = 131072, +IFF_ECHO = 262144, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +IF_OPER_UNKNOWN = 0, +IF_OPER_NOTPRESENT = 1, +IF_OPER_DOWN = 2, +IF_OPER_LOWERLAYERDOWN = 3, +IF_OPER_TESTING = 4, +IF_OPER_DORMANT = 5, +IF_OPER_UP = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IF_LINK_MODE_DEFAULT = 0, +IF_LINK_MODE_DORMANT = 1, +IF_LINK_MODE_TESTING = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tpacket_versions { +TPACKET_V1 = 0, +TPACKET_V2 = 1, +TPACKET_V3 = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nlmsgerr_attrs { +NLMSGERR_ATTR_UNUSED = 0, +NLMSGERR_ATTR_MSG = 1, +NLMSGERR_ATTR_OFFS = 2, +NLMSGERR_ATTR_COOKIE = 3, +NLMSGERR_ATTR_POLICY = 4, +NLMSGERR_ATTR_MISS_TYPE = 5, +NLMSGERR_ATTR_MISS_NEST = 6, +__NLMSGERR_ATTR_MAX = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl_mmap_status { +NL_MMAP_STATUS_UNUSED = 0, +NL_MMAP_STATUS_RESERVED = 1, +NL_MMAP_STATUS_VALID = 2, +NL_MMAP_STATUS_COPY = 3, +NL_MMAP_STATUS_SKIP = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +NETLINK_UNCONNECTED = 0, +NETLINK_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_attribute_type { +NL_ATTR_TYPE_INVALID = 0, +NL_ATTR_TYPE_FLAG = 1, +NL_ATTR_TYPE_U8 = 2, +NL_ATTR_TYPE_U16 = 3, +NL_ATTR_TYPE_U32 = 4, +NL_ATTR_TYPE_U64 = 5, +NL_ATTR_TYPE_S8 = 6, +NL_ATTR_TYPE_S16 = 7, +NL_ATTR_TYPE_S32 = 8, +NL_ATTR_TYPE_S64 = 9, +NL_ATTR_TYPE_BINARY = 10, +NL_ATTR_TYPE_STRING = 11, +NL_ATTR_TYPE_NUL_STRING = 12, +NL_ATTR_TYPE_NESTED = 13, +NL_ATTR_TYPE_NESTED_ARRAY = 14, +NL_ATTR_TYPE_BITFIELD32 = 15, +NL_ATTR_TYPE_SINT = 16, +NL_ATTR_TYPE_UINT = 17, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_policy_type_attr { +NL_POLICY_TYPE_ATTR_UNSPEC = 0, +NL_POLICY_TYPE_ATTR_TYPE = 1, +NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, +NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, +NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, +NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, +NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, +NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, +NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, +NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, +NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, +NL_POLICY_TYPE_ATTR_PAD = 11, +NL_POLICY_TYPE_ATTR_MASK = 12, +__NL_POLICY_TYPE_ATTR_MAX = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IFLA_UNSPEC = 0, +IFLA_ADDRESS = 1, +IFLA_BROADCAST = 2, +IFLA_IFNAME = 3, +IFLA_MTU = 4, +IFLA_LINK = 5, +IFLA_QDISC = 6, +IFLA_STATS = 7, +IFLA_COST = 8, +IFLA_PRIORITY = 9, +IFLA_MASTER = 10, +IFLA_WIRELESS = 11, +IFLA_PROTINFO = 12, +IFLA_TXQLEN = 13, +IFLA_MAP = 14, +IFLA_WEIGHT = 15, +IFLA_OPERSTATE = 16, +IFLA_LINKMODE = 17, +IFLA_LINKINFO = 18, +IFLA_NET_NS_PID = 19, +IFLA_IFALIAS = 20, +IFLA_NUM_VF = 21, +IFLA_VFINFO_LIST = 22, +IFLA_STATS64 = 23, +IFLA_VF_PORTS = 24, +IFLA_PORT_SELF = 25, +IFLA_AF_SPEC = 26, +IFLA_GROUP = 27, +IFLA_NET_NS_FD = 28, +IFLA_EXT_MASK = 29, +IFLA_PROMISCUITY = 30, +IFLA_NUM_TX_QUEUES = 31, +IFLA_NUM_RX_QUEUES = 32, +IFLA_CARRIER = 33, +IFLA_PHYS_PORT_ID = 34, +IFLA_CARRIER_CHANGES = 35, +IFLA_PHYS_SWITCH_ID = 36, +IFLA_LINK_NETNSID = 37, +IFLA_PHYS_PORT_NAME = 38, +IFLA_PROTO_DOWN = 39, +IFLA_GSO_MAX_SEGS = 40, +IFLA_GSO_MAX_SIZE = 41, +IFLA_PAD = 42, +IFLA_XDP = 43, +IFLA_EVENT = 44, +IFLA_NEW_NETNSID = 45, +IFLA_IF_NETNSID = 46, +IFLA_CARRIER_UP_COUNT = 47, +IFLA_CARRIER_DOWN_COUNT = 48, +IFLA_NEW_IFINDEX = 49, +IFLA_MIN_MTU = 50, +IFLA_MAX_MTU = 51, +IFLA_PROP_LIST = 52, +IFLA_ALT_IFNAME = 53, +IFLA_PERM_ADDRESS = 54, +IFLA_PROTO_DOWN_REASON = 55, +IFLA_PARENT_DEV_NAME = 56, +IFLA_PARENT_DEV_BUS_NAME = 57, +IFLA_GRO_MAX_SIZE = 58, +IFLA_TSO_MAX_SIZE = 59, +IFLA_TSO_MAX_SEGS = 60, +IFLA_ALLMULTI = 61, +IFLA_DEVLINK_PORT = 62, +IFLA_GSO_IPV4_MAX_SIZE = 63, +IFLA_GRO_IPV4_MAX_SIZE = 64, +IFLA_DPLL_PIN = 65, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +IFLA_NETNS_IMMUTABLE = 67, +__IFLA_MAX = 68, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_5 { +IFLA_PROTO_DOWN_REASON_UNSPEC = 0, +IFLA_PROTO_DOWN_REASON_MASK = 1, +IFLA_PROTO_DOWN_REASON_VALUE = 2, +__IFLA_PROTO_DOWN_REASON_CNT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_6 { +IFLA_INET_UNSPEC = 0, +IFLA_INET_CONF = 1, +__IFLA_INET_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_7 { +IFLA_INET6_UNSPEC = 0, +IFLA_INET6_FLAGS = 1, +IFLA_INET6_CONF = 2, +IFLA_INET6_STATS = 3, +IFLA_INET6_MCAST = 4, +IFLA_INET6_CACHEINFO = 5, +IFLA_INET6_ICMP6STATS = 6, +IFLA_INET6_TOKEN = 7, +IFLA_INET6_ADDR_GEN_MODE = 8, +IFLA_INET6_RA_MTU = 9, +__IFLA_INET6_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum in6_addr_gen_mode { +IN6_ADDR_GEN_MODE_EUI64 = 0, +IN6_ADDR_GEN_MODE_NONE = 1, +IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, +IN6_ADDR_GEN_MODE_RANDOM = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_8 { +IFLA_BR_UNSPEC = 0, +IFLA_BR_FORWARD_DELAY = 1, +IFLA_BR_HELLO_TIME = 2, +IFLA_BR_MAX_AGE = 3, +IFLA_BR_AGEING_TIME = 4, +IFLA_BR_STP_STATE = 5, +IFLA_BR_PRIORITY = 6, +IFLA_BR_VLAN_FILTERING = 7, +IFLA_BR_VLAN_PROTOCOL = 8, +IFLA_BR_GROUP_FWD_MASK = 9, +IFLA_BR_ROOT_ID = 10, +IFLA_BR_BRIDGE_ID = 11, +IFLA_BR_ROOT_PORT = 12, +IFLA_BR_ROOT_PATH_COST = 13, +IFLA_BR_TOPOLOGY_CHANGE = 14, +IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, +IFLA_BR_HELLO_TIMER = 16, +IFLA_BR_TCN_TIMER = 17, +IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, +IFLA_BR_GC_TIMER = 19, +IFLA_BR_GROUP_ADDR = 20, +IFLA_BR_FDB_FLUSH = 21, +IFLA_BR_MCAST_ROUTER = 22, +IFLA_BR_MCAST_SNOOPING = 23, +IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, +IFLA_BR_MCAST_QUERIER = 25, +IFLA_BR_MCAST_HASH_ELASTICITY = 26, +IFLA_BR_MCAST_HASH_MAX = 27, +IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, +IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, +IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, +IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, +IFLA_BR_MCAST_QUERIER_INTVL = 32, +IFLA_BR_MCAST_QUERY_INTVL = 33, +IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, +IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, +IFLA_BR_NF_CALL_IPTABLES = 36, +IFLA_BR_NF_CALL_IP6TABLES = 37, +IFLA_BR_NF_CALL_ARPTABLES = 38, +IFLA_BR_VLAN_DEFAULT_PVID = 39, +IFLA_BR_PAD = 40, +IFLA_BR_VLAN_STATS_ENABLED = 41, +IFLA_BR_MCAST_STATS_ENABLED = 42, +IFLA_BR_MCAST_IGMP_VERSION = 43, +IFLA_BR_MCAST_MLD_VERSION = 44, +IFLA_BR_VLAN_STATS_PER_PORT = 45, +IFLA_BR_MULTI_BOOLOPT = 46, +IFLA_BR_MCAST_QUERIER_STATE = 47, +IFLA_BR_FDB_N_LEARNED = 48, +IFLA_BR_FDB_MAX_LEARNED = 49, +__IFLA_BR_MAX = 50, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_9 { +BRIDGE_MODE_UNSPEC = 0, +BRIDGE_MODE_HAIRPIN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_10 { +IFLA_BRPORT_UNSPEC = 0, +IFLA_BRPORT_STATE = 1, +IFLA_BRPORT_PRIORITY = 2, +IFLA_BRPORT_COST = 3, +IFLA_BRPORT_MODE = 4, +IFLA_BRPORT_GUARD = 5, +IFLA_BRPORT_PROTECT = 6, +IFLA_BRPORT_FAST_LEAVE = 7, +IFLA_BRPORT_LEARNING = 8, +IFLA_BRPORT_UNICAST_FLOOD = 9, +IFLA_BRPORT_PROXYARP = 10, +IFLA_BRPORT_LEARNING_SYNC = 11, +IFLA_BRPORT_PROXYARP_WIFI = 12, +IFLA_BRPORT_ROOT_ID = 13, +IFLA_BRPORT_BRIDGE_ID = 14, +IFLA_BRPORT_DESIGNATED_PORT = 15, +IFLA_BRPORT_DESIGNATED_COST = 16, +IFLA_BRPORT_ID = 17, +IFLA_BRPORT_NO = 18, +IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, +IFLA_BRPORT_CONFIG_PENDING = 20, +IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, +IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, +IFLA_BRPORT_HOLD_TIMER = 23, +IFLA_BRPORT_FLUSH = 24, +IFLA_BRPORT_MULTICAST_ROUTER = 25, +IFLA_BRPORT_PAD = 26, +IFLA_BRPORT_MCAST_FLOOD = 27, +IFLA_BRPORT_MCAST_TO_UCAST = 28, +IFLA_BRPORT_VLAN_TUNNEL = 29, +IFLA_BRPORT_BCAST_FLOOD = 30, +IFLA_BRPORT_GROUP_FWD_MASK = 31, +IFLA_BRPORT_NEIGH_SUPPRESS = 32, +IFLA_BRPORT_ISOLATED = 33, +IFLA_BRPORT_BACKUP_PORT = 34, +IFLA_BRPORT_MRP_RING_OPEN = 35, +IFLA_BRPORT_MRP_IN_OPEN = 36, +IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, +IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, +IFLA_BRPORT_LOCKED = 39, +IFLA_BRPORT_MAB = 40, +IFLA_BRPORT_MCAST_N_GROUPS = 41, +IFLA_BRPORT_MCAST_MAX_GROUPS = 42, +IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, +IFLA_BRPORT_BACKUP_NHID = 44, +__IFLA_BRPORT_MAX = 45, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_11 { +IFLA_INFO_UNSPEC = 0, +IFLA_INFO_KIND = 1, +IFLA_INFO_DATA = 2, +IFLA_INFO_XSTATS = 3, +IFLA_INFO_SLAVE_KIND = 4, +IFLA_INFO_SLAVE_DATA = 5, +__IFLA_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_12 { +IFLA_VLAN_UNSPEC = 0, +IFLA_VLAN_ID = 1, +IFLA_VLAN_FLAGS = 2, +IFLA_VLAN_EGRESS_QOS = 3, +IFLA_VLAN_INGRESS_QOS = 4, +IFLA_VLAN_PROTOCOL = 5, +__IFLA_VLAN_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_13 { +IFLA_VLAN_QOS_UNSPEC = 0, +IFLA_VLAN_QOS_MAPPING = 1, +__IFLA_VLAN_QOS_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_14 { +IFLA_MACVLAN_UNSPEC = 0, +IFLA_MACVLAN_MODE = 1, +IFLA_MACVLAN_FLAGS = 2, +IFLA_MACVLAN_MACADDR_MODE = 3, +IFLA_MACVLAN_MACADDR = 4, +IFLA_MACVLAN_MACADDR_DATA = 5, +IFLA_MACVLAN_MACADDR_COUNT = 6, +IFLA_MACVLAN_BC_QUEUE_LEN = 7, +IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, +IFLA_MACVLAN_BC_CUTOFF = 9, +__IFLA_MACVLAN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_mode { +MACVLAN_MODE_PRIVATE = 1, +MACVLAN_MODE_VEPA = 2, +MACVLAN_MODE_BRIDGE = 4, +MACVLAN_MODE_PASSTHRU = 8, +MACVLAN_MODE_SOURCE = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_macaddr_mode { +MACVLAN_MACADDR_ADD = 0, +MACVLAN_MACADDR_DEL = 1, +MACVLAN_MACADDR_FLUSH = 2, +MACVLAN_MACADDR_SET = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_15 { +IFLA_VRF_UNSPEC = 0, +IFLA_VRF_TABLE = 1, +__IFLA_VRF_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_16 { +IFLA_VRF_PORT_UNSPEC = 0, +IFLA_VRF_PORT_TABLE = 1, +__IFLA_VRF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_17 { +IFLA_MACSEC_UNSPEC = 0, +IFLA_MACSEC_SCI = 1, +IFLA_MACSEC_PORT = 2, +IFLA_MACSEC_ICV_LEN = 3, +IFLA_MACSEC_CIPHER_SUITE = 4, +IFLA_MACSEC_WINDOW = 5, +IFLA_MACSEC_ENCODING_SA = 6, +IFLA_MACSEC_ENCRYPT = 7, +IFLA_MACSEC_PROTECT = 8, +IFLA_MACSEC_INC_SCI = 9, +IFLA_MACSEC_ES = 10, +IFLA_MACSEC_SCB = 11, +IFLA_MACSEC_REPLAY_PROTECT = 12, +IFLA_MACSEC_VALIDATION = 13, +IFLA_MACSEC_PAD = 14, +IFLA_MACSEC_OFFLOAD = 15, +__IFLA_MACSEC_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_18 { +IFLA_XFRM_UNSPEC = 0, +IFLA_XFRM_LINK = 1, +IFLA_XFRM_IF_ID = 2, +IFLA_XFRM_COLLECT_METADATA = 3, +__IFLA_XFRM_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_validation_type { +MACSEC_VALIDATE_DISABLED = 0, +MACSEC_VALIDATE_CHECK = 1, +MACSEC_VALIDATE_STRICT = 2, +__MACSEC_VALIDATE_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_offload { +MACSEC_OFFLOAD_OFF = 0, +MACSEC_OFFLOAD_PHY = 1, +MACSEC_OFFLOAD_MAC = 2, +__MACSEC_OFFLOAD_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_19 { +IFLA_IPVLAN_UNSPEC = 0, +IFLA_IPVLAN_MODE = 1, +IFLA_IPVLAN_FLAGS = 2, +__IFLA_IPVLAN_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ipvlan_mode { +IPVLAN_MODE_L2 = 0, +IPVLAN_MODE_L3 = 1, +IPVLAN_MODE_L3S = 2, +IPVLAN_MODE_MAX = 3, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_action { +NETKIT_NEXT = -1, +NETKIT_PASS = 0, +NETKIT_DROP = 2, +NETKIT_REDIRECT = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_mode { +NETKIT_L2 = 0, +NETKIT_L3 = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_20 { +IFLA_NETKIT_UNSPEC = 0, +IFLA_NETKIT_PEER_INFO = 1, +IFLA_NETKIT_PRIMARY = 2, +IFLA_NETKIT_POLICY = 3, +IFLA_NETKIT_PEER_POLICY = 4, +IFLA_NETKIT_MODE = 5, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +IFLA_NETKIT_HEADROOM = 8, +IFLA_NETKIT_TAILROOM = 9, +__IFLA_NETKIT_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_21 { +VNIFILTER_ENTRY_STATS_UNSPEC = 0, +VNIFILTER_ENTRY_STATS_RX_BYTES = 1, +VNIFILTER_ENTRY_STATS_RX_PKTS = 2, +VNIFILTER_ENTRY_STATS_RX_DROPS = 3, +VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, +VNIFILTER_ENTRY_STATS_TX_BYTES = 5, +VNIFILTER_ENTRY_STATS_TX_PKTS = 6, +VNIFILTER_ENTRY_STATS_TX_DROPS = 7, +VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, +VNIFILTER_ENTRY_STATS_PAD = 9, +__VNIFILTER_ENTRY_STATS_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_22 { +VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY_START = 1, +VXLAN_VNIFILTER_ENTRY_END = 2, +VXLAN_VNIFILTER_ENTRY_GROUP = 3, +VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, +VXLAN_VNIFILTER_ENTRY_STATS = 5, +__VXLAN_VNIFILTER_ENTRY_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_23 { +VXLAN_VNIFILTER_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY = 1, +__VXLAN_VNIFILTER_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_24 { +IFLA_VXLAN_UNSPEC = 0, +IFLA_VXLAN_ID = 1, +IFLA_VXLAN_GROUP = 2, +IFLA_VXLAN_LINK = 3, +IFLA_VXLAN_LOCAL = 4, +IFLA_VXLAN_TTL = 5, +IFLA_VXLAN_TOS = 6, +IFLA_VXLAN_LEARNING = 7, +IFLA_VXLAN_AGEING = 8, +IFLA_VXLAN_LIMIT = 9, +IFLA_VXLAN_PORT_RANGE = 10, +IFLA_VXLAN_PROXY = 11, +IFLA_VXLAN_RSC = 12, +IFLA_VXLAN_L2MISS = 13, +IFLA_VXLAN_L3MISS = 14, +IFLA_VXLAN_PORT = 15, +IFLA_VXLAN_GROUP6 = 16, +IFLA_VXLAN_LOCAL6 = 17, +IFLA_VXLAN_UDP_CSUM = 18, +IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, +IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, +IFLA_VXLAN_REMCSUM_TX = 21, +IFLA_VXLAN_REMCSUM_RX = 22, +IFLA_VXLAN_GBP = 23, +IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, +IFLA_VXLAN_COLLECT_METADATA = 25, +IFLA_VXLAN_LABEL = 26, +IFLA_VXLAN_GPE = 27, +IFLA_VXLAN_TTL_INHERIT = 28, +IFLA_VXLAN_DF = 29, +IFLA_VXLAN_VNIFILTER = 30, +IFLA_VXLAN_LOCALBYPASS = 31, +IFLA_VXLAN_LABEL_POLICY = 32, +IFLA_VXLAN_RESERVED_BITS = 33, +__IFLA_VXLAN_MAX = 34, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_df { +VXLAN_DF_UNSET = 0, +VXLAN_DF_SET = 1, +VXLAN_DF_INHERIT = 2, +__VXLAN_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_label_policy { +VXLAN_LABEL_FIXED = 0, +VXLAN_LABEL_INHERIT = 1, +__VXLAN_LABEL_END = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_25 { +IFLA_GENEVE_UNSPEC = 0, +IFLA_GENEVE_ID = 1, +IFLA_GENEVE_REMOTE = 2, +IFLA_GENEVE_TTL = 3, +IFLA_GENEVE_TOS = 4, +IFLA_GENEVE_PORT = 5, +IFLA_GENEVE_COLLECT_METADATA = 6, +IFLA_GENEVE_REMOTE6 = 7, +IFLA_GENEVE_UDP_CSUM = 8, +IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, +IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, +IFLA_GENEVE_LABEL = 11, +IFLA_GENEVE_TTL_INHERIT = 12, +IFLA_GENEVE_DF = 13, +IFLA_GENEVE_INNER_PROTO_INHERIT = 14, +IFLA_GENEVE_PORT_RANGE = 15, +__IFLA_GENEVE_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_geneve_df { +GENEVE_DF_UNSET = 0, +GENEVE_DF_SET = 1, +GENEVE_DF_INHERIT = 2, +__GENEVE_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_26 { +IFLA_BAREUDP_UNSPEC = 0, +IFLA_BAREUDP_PORT = 1, +IFLA_BAREUDP_ETHERTYPE = 2, +IFLA_BAREUDP_SRCPORT_MIN = 3, +IFLA_BAREUDP_MULTIPROTO_MODE = 4, +__IFLA_BAREUDP_MAX = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_27 { +IFLA_PPP_UNSPEC = 0, +IFLA_PPP_DEV_FD = 1, +__IFLA_PPP_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_gtp_role { +GTP_ROLE_GGSN = 0, +GTP_ROLE_SGSN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_28 { +IFLA_GTP_UNSPEC = 0, +IFLA_GTP_FD0 = 1, +IFLA_GTP_FD1 = 2, +IFLA_GTP_PDP_HASHSIZE = 3, +IFLA_GTP_ROLE = 4, +IFLA_GTP_CREATE_SOCKETS = 5, +IFLA_GTP_RESTART_COUNT = 6, +IFLA_GTP_LOCAL = 7, +IFLA_GTP_LOCAL6 = 8, +__IFLA_GTP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_29 { +IFLA_BOND_UNSPEC = 0, +IFLA_BOND_MODE = 1, +IFLA_BOND_ACTIVE_SLAVE = 2, +IFLA_BOND_MIIMON = 3, +IFLA_BOND_UPDELAY = 4, +IFLA_BOND_DOWNDELAY = 5, +IFLA_BOND_USE_CARRIER = 6, +IFLA_BOND_ARP_INTERVAL = 7, +IFLA_BOND_ARP_IP_TARGET = 8, +IFLA_BOND_ARP_VALIDATE = 9, +IFLA_BOND_ARP_ALL_TARGETS = 10, +IFLA_BOND_PRIMARY = 11, +IFLA_BOND_PRIMARY_RESELECT = 12, +IFLA_BOND_FAIL_OVER_MAC = 13, +IFLA_BOND_XMIT_HASH_POLICY = 14, +IFLA_BOND_RESEND_IGMP = 15, +IFLA_BOND_NUM_PEER_NOTIF = 16, +IFLA_BOND_ALL_SLAVES_ACTIVE = 17, +IFLA_BOND_MIN_LINKS = 18, +IFLA_BOND_LP_INTERVAL = 19, +IFLA_BOND_PACKETS_PER_SLAVE = 20, +IFLA_BOND_AD_LACP_RATE = 21, +IFLA_BOND_AD_SELECT = 22, +IFLA_BOND_AD_INFO = 23, +IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, +IFLA_BOND_AD_USER_PORT_KEY = 25, +IFLA_BOND_AD_ACTOR_SYSTEM = 26, +IFLA_BOND_TLB_DYNAMIC_LB = 27, +IFLA_BOND_PEER_NOTIF_DELAY = 28, +IFLA_BOND_AD_LACP_ACTIVE = 29, +IFLA_BOND_MISSED_MAX = 30, +IFLA_BOND_NS_IP6_TARGET = 31, +IFLA_BOND_COUPLED_CONTROL = 32, +__IFLA_BOND_MAX = 33, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_30 { +IFLA_BOND_AD_INFO_UNSPEC = 0, +IFLA_BOND_AD_INFO_AGGREGATOR = 1, +IFLA_BOND_AD_INFO_NUM_PORTS = 2, +IFLA_BOND_AD_INFO_ACTOR_KEY = 3, +IFLA_BOND_AD_INFO_PARTNER_KEY = 4, +IFLA_BOND_AD_INFO_PARTNER_MAC = 5, +__IFLA_BOND_AD_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_31 { +IFLA_BOND_SLAVE_UNSPEC = 0, +IFLA_BOND_SLAVE_STATE = 1, +IFLA_BOND_SLAVE_MII_STATUS = 2, +IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, +IFLA_BOND_SLAVE_PERM_HWADDR = 4, +IFLA_BOND_SLAVE_QUEUE_ID = 5, +IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, +IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, +IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, +IFLA_BOND_SLAVE_PRIO = 9, +__IFLA_BOND_SLAVE_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_32 { +IFLA_VF_INFO_UNSPEC = 0, +IFLA_VF_INFO = 1, +__IFLA_VF_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_33 { +IFLA_VF_UNSPEC = 0, +IFLA_VF_MAC = 1, +IFLA_VF_VLAN = 2, +IFLA_VF_TX_RATE = 3, +IFLA_VF_SPOOFCHK = 4, +IFLA_VF_LINK_STATE = 5, +IFLA_VF_RATE = 6, +IFLA_VF_RSS_QUERY_EN = 7, +IFLA_VF_STATS = 8, +IFLA_VF_TRUST = 9, +IFLA_VF_IB_NODE_GUID = 10, +IFLA_VF_IB_PORT_GUID = 11, +IFLA_VF_VLAN_LIST = 12, +IFLA_VF_BROADCAST = 13, +__IFLA_VF_MAX = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_34 { +IFLA_VF_VLAN_INFO_UNSPEC = 0, +IFLA_VF_VLAN_INFO = 1, +__IFLA_VF_VLAN_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_35 { +IFLA_VF_LINK_STATE_AUTO = 0, +IFLA_VF_LINK_STATE_ENABLE = 1, +IFLA_VF_LINK_STATE_DISABLE = 2, +__IFLA_VF_LINK_STATE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_36 { +IFLA_VF_STATS_RX_PACKETS = 0, +IFLA_VF_STATS_TX_PACKETS = 1, +IFLA_VF_STATS_RX_BYTES = 2, +IFLA_VF_STATS_TX_BYTES = 3, +IFLA_VF_STATS_BROADCAST = 4, +IFLA_VF_STATS_MULTICAST = 5, +IFLA_VF_STATS_PAD = 6, +IFLA_VF_STATS_RX_DROPPED = 7, +IFLA_VF_STATS_TX_DROPPED = 8, +__IFLA_VF_STATS_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_37 { +IFLA_VF_PORT_UNSPEC = 0, +IFLA_VF_PORT = 1, +__IFLA_VF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_38 { +IFLA_PORT_UNSPEC = 0, +IFLA_PORT_VF = 1, +IFLA_PORT_PROFILE = 2, +IFLA_PORT_VSI_TYPE = 3, +IFLA_PORT_INSTANCE_UUID = 4, +IFLA_PORT_HOST_UUID = 5, +IFLA_PORT_REQUEST = 6, +IFLA_PORT_RESPONSE = 7, +__IFLA_PORT_MAX = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_39 { +PORT_REQUEST_PREASSOCIATE = 0, +PORT_REQUEST_PREASSOCIATE_RR = 1, +PORT_REQUEST_ASSOCIATE = 2, +PORT_REQUEST_DISASSOCIATE = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_40 { +PORT_VDP_RESPONSE_SUCCESS = 0, +PORT_VDP_RESPONSE_INVALID_FORMAT = 1, +PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, +PORT_VDP_RESPONSE_UNUSED_VTID = 3, +PORT_VDP_RESPONSE_VTID_VIOLATION = 4, +PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, +PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, +PORT_PROFILE_RESPONSE_SUCCESS = 256, +PORT_PROFILE_RESPONSE_INPROGRESS = 257, +PORT_PROFILE_RESPONSE_INVALID = 258, +PORT_PROFILE_RESPONSE_BADSTATE = 259, +PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, +PORT_PROFILE_RESPONSE_ERROR = 261, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_41 { +IFLA_IPOIB_UNSPEC = 0, +IFLA_IPOIB_PKEY = 1, +IFLA_IPOIB_MODE = 2, +IFLA_IPOIB_UMCAST = 3, +__IFLA_IPOIB_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_42 { +IPOIB_MODE_DATAGRAM = 0, +IPOIB_MODE_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_43 { +HSR_PROTOCOL_HSR = 0, +HSR_PROTOCOL_PRP = 1, +HSR_PROTOCOL_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_44 { +IFLA_HSR_UNSPEC = 0, +IFLA_HSR_SLAVE1 = 1, +IFLA_HSR_SLAVE2 = 2, +IFLA_HSR_MULTICAST_SPEC = 3, +IFLA_HSR_SUPERVISION_ADDR = 4, +IFLA_HSR_SEQ_NR = 5, +IFLA_HSR_VERSION = 6, +IFLA_HSR_PROTOCOL = 7, +IFLA_HSR_INTERLINK = 8, +__IFLA_HSR_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_45 { +IFLA_STATS_UNSPEC = 0, +IFLA_STATS_LINK_64 = 1, +IFLA_STATS_LINK_XSTATS = 2, +IFLA_STATS_LINK_XSTATS_SLAVE = 3, +IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, +IFLA_STATS_AF_SPEC = 5, +__IFLA_STATS_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_46 { +IFLA_STATS_GETSET_UNSPEC = 0, +IFLA_STATS_GET_FILTERS = 1, +IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, +__IFLA_STATS_GETSET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_47 { +LINK_XSTATS_TYPE_UNSPEC = 0, +LINK_XSTATS_TYPE_BRIDGE = 1, +LINK_XSTATS_TYPE_BOND = 2, +__LINK_XSTATS_TYPE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_48 { +IFLA_OFFLOAD_XSTATS_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, +IFLA_OFFLOAD_XSTATS_L3_STATS = 3, +__IFLA_OFFLOAD_XSTATS_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_49 { +IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, +__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_50 { +XDP_ATTACHED_NONE = 0, +XDP_ATTACHED_DRV = 1, +XDP_ATTACHED_SKB = 2, +XDP_ATTACHED_HW = 3, +XDP_ATTACHED_MULTI = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_51 { +IFLA_XDP_UNSPEC = 0, +IFLA_XDP_FD = 1, +IFLA_XDP_ATTACHED = 2, +IFLA_XDP_FLAGS = 3, +IFLA_XDP_PROG_ID = 4, +IFLA_XDP_DRV_PROG_ID = 5, +IFLA_XDP_SKB_PROG_ID = 6, +IFLA_XDP_HW_PROG_ID = 7, +IFLA_XDP_EXPECTED_FD = 8, +__IFLA_XDP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_52 { +IFLA_EVENT_NONE = 0, +IFLA_EVENT_REBOOT = 1, +IFLA_EVENT_FEATURES = 2, +IFLA_EVENT_BONDING_FAILOVER = 3, +IFLA_EVENT_NOTIFY_PEERS = 4, +IFLA_EVENT_IGMP_RESEND = 5, +IFLA_EVENT_BONDING_OPTIONS = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_53 { +IFLA_TUN_UNSPEC = 0, +IFLA_TUN_OWNER = 1, +IFLA_TUN_GROUP = 2, +IFLA_TUN_TYPE = 3, +IFLA_TUN_PI = 4, +IFLA_TUN_VNET_HDR = 5, +IFLA_TUN_PERSIST = 6, +IFLA_TUN_MULTI_QUEUE = 7, +IFLA_TUN_NUM_QUEUES = 8, +IFLA_TUN_NUM_DISABLED_QUEUES = 9, +__IFLA_TUN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_54 { +IFLA_RMNET_UNSPEC = 0, +IFLA_RMNET_MUX_ID = 1, +IFLA_RMNET_FLAGS = 2, +__IFLA_RMNET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_55 { +IFLA_MCTP_UNSPEC = 0, +IFLA_MCTP_NET = 1, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_56 { +IFLA_DSA_UNSPEC = 0, +IFLA_DSA_CONDUIT = 1, +__IFLA_DSA_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ovpn_mode { +OVPN_MODE_P2P = 0, +OVPN_MODE_MP = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_57 { +IFLA_OVPN_UNSPEC = 0, +IFLA_OVPN_MODE = 1, +__IFLA_OVPN_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_58 { +IF_PORT_UNKNOWN = 0, +IF_PORT_10BASE2 = 1, +IF_PORT_10BASET = 2, +IF_PORT_AUI = 3, +IF_PORT_100BASET = 4, +IF_PORT_100BASETX = 5, +IF_PORT_100BASEFX = 6, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __kernel_sockaddr_storage__bindgen_ty_1 { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, +pub __align: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union if_settings__bindgen_ty_1 { +pub raw_hdlc: *mut raw_hdlc_proto, +pub cisco: *mut cisco_proto, +pub fr: *mut fr_proto, +pub fr_pvc: *mut fr_proto_pvc, +pub fr_pvc_info: *mut fr_proto_pvc_info, +pub x25: *mut x25_hdlc_proto, +pub sync: *mut sync_serial_settings, +pub te1: *mut te1_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_1 { +pub ifrn_name: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_2 { +pub ifru_addr: sockaddr, +pub ifru_dstaddr: sockaddr, +pub ifru_broadaddr: sockaddr, +pub ifru_netmask: sockaddr, +pub ifru_hwaddr: sockaddr, +pub ifru_flags: crate::ctypes::c_short, +pub ifru_ivalue: crate::ctypes::c_int, +pub ifru_mtu: crate::ctypes::c_int, +pub ifru_map: ifmap, +pub ifru_slave: [crate::ctypes::c_char; 16usize], +pub ifru_newname: [crate::ctypes::c_char; 16usize], +pub ifru_data: *mut crate::ctypes::c_void, +pub ifru_settings: if_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifconf__bindgen_ty_1 { +pub ifcu_buf: *mut crate::ctypes::c_char, +pub ifcu_req: *mut ifreq, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_stats_u { +pub stats1: tpacket_stats, +pub stats3: tpacket_stats_v3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket3_hdr__bindgen_ty_1 { +pub hv1: tpacket_hdr_variant1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_ts__bindgen_ty_1 { +pub ts_usec: crate::ctypes::c_uint, +pub ts_nsec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_header_u { +pub bh1: tpacket_hdr_v1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_req_u { +pub req: tpacket_req, +pub req3: tpacket_req3, +} +impl nlmsgerr_attrs { +pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; +} +impl netlink_policy_type_attr { +pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; +} +impl macsec_validation_type { +pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; +} +impl macsec_offload { +pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; +} +impl ifla_vxlan_df { +pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; +} +impl ifla_vxlan_label_policy { +pub const VXLAN_LABEL_MAX: ifla_vxlan_label_policy = ifla_vxlan_label_policy::VXLAN_LABEL_INHERIT; +} +impl ifla_geneve_df { +pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/if_ether.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/if_ether.rs new file mode 100644 index 0000000000000000000000000000000000000000..c5a81c8fc47856695f1907257da4317e490121ec --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/if_ether.rs @@ -0,0 +1,176 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_suseconds_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_suseconds_t, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct ethhdr { +pub h_dest: [crate::ctypes::c_uchar; 6usize], +pub h_source: [crate::ctypes::c_uchar; 6usize], +pub h_proto: __be16, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const ETH_ALEN: u32 = 6; +pub const ETH_TLEN: u32 = 2; +pub const ETH_HLEN: u32 = 14; +pub const ETH_ZLEN: u32 = 60; +pub const ETH_DATA_LEN: u32 = 1500; +pub const ETH_FRAME_LEN: u32 = 1514; +pub const ETH_FCS_LEN: u32 = 4; +pub const ETH_MIN_MTU: u32 = 68; +pub const ETH_MAX_MTU: u32 = 65535; +pub const ETH_P_LOOP: u32 = 96; +pub const ETH_P_PUP: u32 = 512; +pub const ETH_P_PUPAT: u32 = 513; +pub const ETH_P_TSN: u32 = 8944; +pub const ETH_P_ERSPAN2: u32 = 8939; +pub const ETH_P_IP: u32 = 2048; +pub const ETH_P_X25: u32 = 2053; +pub const ETH_P_ARP: u32 = 2054; +pub const ETH_P_BPQ: u32 = 2303; +pub const ETH_P_IEEEPUP: u32 = 2560; +pub const ETH_P_IEEEPUPAT: u32 = 2561; +pub const ETH_P_BATMAN: u32 = 17157; +pub const ETH_P_DEC: u32 = 24576; +pub const ETH_P_DNA_DL: u32 = 24577; +pub const ETH_P_DNA_RC: u32 = 24578; +pub const ETH_P_DNA_RT: u32 = 24579; +pub const ETH_P_LAT: u32 = 24580; +pub const ETH_P_DIAG: u32 = 24581; +pub const ETH_P_CUST: u32 = 24582; +pub const ETH_P_SCA: u32 = 24583; +pub const ETH_P_TEB: u32 = 25944; +pub const ETH_P_RARP: u32 = 32821; +pub const ETH_P_ATALK: u32 = 32923; +pub const ETH_P_AARP: u32 = 33011; +pub const ETH_P_8021Q: u32 = 33024; +pub const ETH_P_ERSPAN: u32 = 35006; +pub const ETH_P_IPX: u32 = 33079; +pub const ETH_P_IPV6: u32 = 34525; +pub const ETH_P_PAUSE: u32 = 34824; +pub const ETH_P_SLOW: u32 = 34825; +pub const ETH_P_WCCP: u32 = 34878; +pub const ETH_P_MPLS_UC: u32 = 34887; +pub const ETH_P_MPLS_MC: u32 = 34888; +pub const ETH_P_ATMMPOA: u32 = 34892; +pub const ETH_P_PPP_DISC: u32 = 34915; +pub const ETH_P_PPP_SES: u32 = 34916; +pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_ATMFATE: u32 = 34948; +pub const ETH_P_PAE: u32 = 34958; +pub const ETH_P_PROFINET: u32 = 34962; +pub const ETH_P_REALTEK: u32 = 34969; +pub const ETH_P_AOE: u32 = 34978; +pub const ETH_P_ETHERCAT: u32 = 34980; +pub const ETH_P_8021AD: u32 = 34984; +pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_PREAUTH: u32 = 35015; +pub const ETH_P_TIPC: u32 = 35018; +pub const ETH_P_LLDP: u32 = 35020; +pub const ETH_P_MRP: u32 = 35043; +pub const ETH_P_MACSEC: u32 = 35045; +pub const ETH_P_8021AH: u32 = 35047; +pub const ETH_P_MVRP: u32 = 35061; +pub const ETH_P_1588: u32 = 35063; +pub const ETH_P_NCSI: u32 = 35064; +pub const ETH_P_PRP: u32 = 35067; +pub const ETH_P_CFM: u32 = 35074; +pub const ETH_P_FCOE: u32 = 35078; +pub const ETH_P_IBOE: u32 = 35093; +pub const ETH_P_TDLS: u32 = 35085; +pub const ETH_P_FIP: u32 = 35092; +pub const ETH_P_80221: u32 = 35095; +pub const ETH_P_HSR: u32 = 35119; +pub const ETH_P_NSH: u32 = 35151; +pub const ETH_P_LOOPBACK: u32 = 36864; +pub const ETH_P_QINQ1: u32 = 37120; +pub const ETH_P_QINQ2: u32 = 37376; +pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_EDSA: u32 = 56026; +pub const ETH_P_DSA_8021Q: u32 = 56027; +pub const ETH_P_DSA_A5PSW: u32 = 57345; +pub const ETH_P_IFE: u32 = 60734; +pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_802_3_MIN: u32 = 1536; +pub const ETH_P_802_3: u32 = 1; +pub const ETH_P_AX25: u32 = 2; +pub const ETH_P_ALL: u32 = 3; +pub const ETH_P_802_2: u32 = 4; +pub const ETH_P_SNAP: u32 = 5; +pub const ETH_P_DDCMP: u32 = 6; +pub const ETH_P_WAN_PPP: u32 = 7; +pub const ETH_P_PPP_MP: u32 = 8; +pub const ETH_P_LOCALTALK: u32 = 9; +pub const ETH_P_CAN: u32 = 12; +pub const ETH_P_CANFD: u32 = 13; +pub const ETH_P_CANXL: u32 = 14; +pub const ETH_P_PPPTALK: u32 = 16; +pub const ETH_P_TR_802_2: u32 = 17; +pub const ETH_P_MOBITEX: u32 = 21; +pub const ETH_P_CONTROL: u32 = 22; +pub const ETH_P_IRDA: u32 = 23; +pub const ETH_P_ECONET: u32 = 24; +pub const ETH_P_HDLC: u32 = 25; +pub const ETH_P_ARCNET: u32 = 26; +pub const ETH_P_DSA: u32 = 27; +pub const ETH_P_TRAILER: u32 = 28; +pub const ETH_P_PHONET: u32 = 245; +pub const ETH_P_IEEE802154: u32 = 246; +pub const ETH_P_CAIF: u32 = 247; +pub const ETH_P_XDSA: u32 = 248; +pub const ETH_P_MAP: u32 = 249; +pub const ETH_P_MCTP: u32 = 250; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/if_packet.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/if_packet.rs new file mode 100644 index 0000000000000000000000000000000000000000..5866a97935e9af1d4a202836d566940c7cab5d2a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/if_packet.rs @@ -0,0 +1,533 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_suseconds_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_suseconds_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_pkt { +pub spkt_family: crate::ctypes::c_ushort, +pub spkt_device: [crate::ctypes::c_uchar; 14usize], +pub spkt_protocol: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_ll { +pub sll_family: crate::ctypes::c_ushort, +pub sll_protocol: __be16, +pub sll_ifindex: crate::ctypes::c_int, +pub sll_hatype: crate::ctypes::c_ushort, +pub sll_pkttype: crate::ctypes::c_uchar, +pub sll_halen: crate::ctypes::c_uchar, +pub sll_addr: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats_v3 { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +pub tp_freeze_q_cnt: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_rollover_stats { +pub tp_all: __u64, +pub tp_huge: __u64, +pub tp_failed: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_auxdata { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr { +pub tp_status: crate::ctypes::c_ulong, +pub tp_len: crate::ctypes::c_uint, +pub tp_snaplen: crate::ctypes::c_uint, +pub tp_mac: crate::ctypes::c_ushort, +pub tp_net: crate::ctypes::c_ushort, +pub tp_sec: crate::ctypes::c_uint, +pub tp_usec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket2_hdr { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +pub tp_padding: [__u8; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr_variant1 { +pub tp_rxhash: __u32, +pub tp_vlan_tci: __u32, +pub tp_vlan_tpid: __u16, +pub tp_padding: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket3_hdr { +pub tp_next_offset: __u32, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_snaplen: __u32, +pub tp_len: __u32, +pub tp_status: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub __bindgen_anon_1: tpacket3_hdr__bindgen_ty_1, +pub tp_padding: [__u8; 8usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_bd_ts { +pub ts_sec: crate::ctypes::c_uint, +pub __bindgen_anon_1: tpacket_bd_ts__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_hdr_v1 { +pub block_status: __u32, +pub num_pkts: __u32, +pub offset_to_first_pkt: __u32, +pub blk_len: __u32, +pub seq_num: __u64, +pub ts_first_pkt: tpacket_bd_ts, +pub ts_last_pkt: tpacket_bd_ts, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_block_desc { +pub version: __u32, +pub offset_to_priv: __u32, +pub hdr: tpacket_bd_header_u, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req3 { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +pub tp_retire_blk_tov: crate::ctypes::c_uint, +pub tp_sizeof_priv: crate::ctypes::c_uint, +pub tp_feature_req_word: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct packet_mreq { +pub mr_ifindex: crate::ctypes::c_int, +pub mr_type: crate::ctypes::c_ushort, +pub mr_alen: crate::ctypes::c_ushort, +pub mr_address: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fanout_args { +pub type_flags: __u16, +pub id: __u16, +pub max_num_members: __u32, +} +pub const __BIG_ENDIAN: u32 = 4321; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const ASI_NULL1: u32 = 0; +pub const ASI_NULL2: u32 = 1; +pub const ASI_CONTROL: u32 = 2; +pub const ASI_SEGMAP: u32 = 3; +pub const ASI_PTE: u32 = 4; +pub const ASI_HWFLUSHSEG: u32 = 5; +pub const ASI_HWFLUSHPAGE: u32 = 6; +pub const ASI_REGMAP: u32 = 6; +pub const ASI_HWFLUSHCONTEXT: u32 = 7; +pub const ASI_USERTXT: u32 = 8; +pub const ASI_KERNELTXT: u32 = 9; +pub const ASI_USERDATA: u32 = 10; +pub const ASI_KERNELDATA: u32 = 11; +pub const ASI_FLUSHSEG: u32 = 12; +pub const ASI_FLUSHPG: u32 = 13; +pub const ASI_FLUSHCTX: u32 = 14; +pub const ASI_M_RES00: u32 = 0; +pub const ASI_M_UNA01: u32 = 1; +pub const ASI_M_MXCC: u32 = 2; +pub const ASI_M_FLUSH_PROBE: u32 = 3; +pub const ASI_M_MMUREGS: u32 = 4; +pub const ASI_M_TLBDIAG: u32 = 5; +pub const ASI_M_DIAGS: u32 = 6; +pub const ASI_M_IODIAG: u32 = 7; +pub const ASI_M_USERTXT: u32 = 8; +pub const ASI_M_KERNELTXT: u32 = 9; +pub const ASI_M_USERDATA: u32 = 10; +pub const ASI_M_KERNELDATA: u32 = 11; +pub const ASI_M_TXTC_TAG: u32 = 12; +pub const ASI_M_TXTC_DATA: u32 = 13; +pub const ASI_M_DATAC_TAG: u32 = 14; +pub const ASI_M_DATAC_DATA: u32 = 15; +pub const ASI_M_FLUSH_PAGE: u32 = 16; +pub const ASI_M_FLUSH_SEG: u32 = 17; +pub const ASI_M_FLUSH_REGION: u32 = 18; +pub const ASI_M_FLUSH_CTX: u32 = 19; +pub const ASI_M_FLUSH_USER: u32 = 20; +pub const ASI_M_BCOPY: u32 = 23; +pub const ASI_M_IFLUSH_PAGE: u32 = 24; +pub const ASI_M_IFLUSH_SEG: u32 = 25; +pub const ASI_M_IFLUSH_REGION: u32 = 26; +pub const ASI_M_IFLUSH_CTX: u32 = 27; +pub const ASI_M_IFLUSH_USER: u32 = 28; +pub const ASI_M_BFILL: u32 = 31; +pub const ASI_M_BYPASS: u32 = 32; +pub const ASI_M_FBMEM: u32 = 41; +pub const ASI_M_VMEUS: u32 = 42; +pub const ASI_M_VMEPS: u32 = 43; +pub const ASI_M_VMEUT: u32 = 44; +pub const ASI_M_VMEPT: u32 = 45; +pub const ASI_M_SBUS: u32 = 46; +pub const ASI_M_CTL: u32 = 47; +pub const ASI_M_FLUSH_IWHOLE: u32 = 49; +pub const ASI_M_IC_FLCLEAR: u32 = 54; +pub const ASI_M_DC_FLCLEAR: u32 = 55; +pub const ASI_M_DCDR: u32 = 57; +pub const ASI_M_VIKING_TMP1: u32 = 64; +pub const ASI_M_ACTION: u32 = 76; +pub const ASI_LEON_NOCACHE: u32 = 1; +pub const ASI_LEON_DCACHE_MISS: u32 = 1; +pub const ASI_LEON_CACHEREGS: u32 = 2; +pub const ASI_LEON_IFLUSH: u32 = 16; +pub const ASI_LEON_DFLUSH: u32 = 17; +pub const ASI_LEON_MMUFLUSH: u32 = 24; +pub const ASI_LEON_MMUREGS: u32 = 25; +pub const ASI_LEON_BYPASS: u32 = 28; +pub const ASI_LEON_FLUSH_PAGE: u32 = 16; +pub const ASI_N: u32 = 4; +pub const ASI_NL: u32 = 12; +pub const ASI_AIUP: u32 = 16; +pub const ASI_AIUS: u32 = 17; +pub const ASI_AIUPL: u32 = 24; +pub const ASI_AIUSL: u32 = 25; +pub const ASI_P: u32 = 128; +pub const ASI_S: u32 = 129; +pub const ASI_PNF: u32 = 130; +pub const ASI_SNF: u32 = 131; +pub const ASI_PL: u32 = 136; +pub const ASI_SL: u32 = 137; +pub const ASI_PNFL: u32 = 138; +pub const ASI_SNFL: u32 = 139; +pub const ASI_MCD_PRIV_PRIMARY: u32 = 2; +pub const ASI_MCD_REAL: u32 = 5; +pub const ASI_PHYS_USE_EC: u32 = 20; +pub const ASI_PHYS_BYPASS_EC_E: u32 = 21; +pub const ASI_BLK_AIUP_4V: u32 = 22; +pub const ASI_BLK_AIUS_4V: u32 = 23; +pub const ASI_PHYS_USE_EC_L: u32 = 28; +pub const ASI_PHYS_BYPASS_EC_E_L: u32 = 29; +pub const ASI_BLK_AIUP_L_4V: u32 = 30; +pub const ASI_BLK_AIUS_L_4V: u32 = 31; +pub const ASI_SCRATCHPAD: u32 = 32; +pub const ASI_MMU: u32 = 33; +pub const ASI_BLK_INIT_QUAD_LDD_AIUS: u32 = 35; +pub const ASI_NUCLEUS_QUAD_LDD: u32 = 36; +pub const ASI_QUEUE: u32 = 37; +pub const ASI_QUAD_LDD_PHYS_4V: u32 = 38; +pub const ASI_NUCLEUS_QUAD_LDD_L: u32 = 44; +pub const ASI_QUAD_LDD_PHYS_L_4V: u32 = 46; +pub const ASI_PCACHE_DATA_STATUS: u32 = 48; +pub const ASI_PCACHE_DATA: u32 = 49; +pub const ASI_PCACHE_TAG: u32 = 50; +pub const ASI_PCACHE_SNOOP_TAG: u32 = 51; +pub const ASI_QUAD_LDD_PHYS: u32 = 52; +pub const ASI_WCACHE_VALID_BITS: u32 = 56; +pub const ASI_WCACHE_DATA: u32 = 57; +pub const ASI_WCACHE_TAG: u32 = 58; +pub const ASI_WCACHE_SNOOP_TAG: u32 = 59; +pub const ASI_QUAD_LDD_PHYS_L: u32 = 60; +pub const ASI_SRAM_FAST_INIT: u32 = 64; +pub const ASI_CORE_AVAILABLE: u32 = 65; +pub const ASI_CORE_ENABLE_STAT: u32 = 65; +pub const ASI_CORE_ENABLE: u32 = 65; +pub const ASI_XIR_STEERING: u32 = 65; +pub const ASI_CORE_RUNNING_RW: u32 = 65; +pub const ASI_CORE_RUNNING_W1S: u32 = 65; +pub const ASI_CORE_RUNNING_W1C: u32 = 65; +pub const ASI_CORE_RUNNING_STAT: u32 = 65; +pub const ASI_CMT_ERROR_STEERING: u32 = 65; +pub const ASI_DCACHE_INVALIDATE: u32 = 66; +pub const ASI_DCACHE_UTAG: u32 = 67; +pub const ASI_DCACHE_SNOOP_TAG: u32 = 68; +pub const ASI_LSU_CONTROL: u32 = 69; +pub const ASI_DCU_CONTROL_REG: u32 = 69; +pub const ASI_DCACHE_DATA: u32 = 70; +pub const ASI_DCACHE_TAG: u32 = 71; +pub const ASI_INTR_DISPATCH_STAT: u32 = 72; +pub const ASI_INTR_RECEIVE: u32 = 73; +pub const ASI_UPA_CONFIG: u32 = 74; +pub const ASI_JBUS_CONFIG: u32 = 74; +pub const ASI_SAFARI_CONFIG: u32 = 74; +pub const ASI_SAFARI_ADDRESS: u32 = 74; +pub const ASI_ESTATE_ERROR_EN: u32 = 75; +pub const ASI_AFSR: u32 = 76; +pub const ASI_AFAR: u32 = 77; +pub const ASI_EC_TAG_DATA: u32 = 78; +pub const ASI_IMMU: u32 = 80; +pub const ASI_IMMU_TSB_8KB_PTR: u32 = 81; +pub const ASI_IMMU_TSB_64KB_PTR: u32 = 82; +pub const ASI_ITLB_DATA_IN: u32 = 84; +pub const ASI_ITLB_DATA_ACCESS: u32 = 85; +pub const ASI_ITLB_TAG_READ: u32 = 86; +pub const ASI_IMMU_DEMAP: u32 = 87; +pub const ASI_DMMU: u32 = 88; +pub const ASI_DMMU_TSB_8KB_PTR: u32 = 89; +pub const ASI_DMMU_TSB_64KB_PTR: u32 = 90; +pub const ASI_DMMU_TSB_DIRECT_PTR: u32 = 91; +pub const ASI_DTLB_DATA_IN: u32 = 92; +pub const ASI_DTLB_DATA_ACCESS: u32 = 93; +pub const ASI_DTLB_TAG_READ: u32 = 94; +pub const ASI_DMMU_DEMAP: u32 = 95; +pub const ASI_IIU_INST_TRAP: u32 = 96; +pub const ASI_INTR_ID: u32 = 99; +pub const ASI_CORE_ID: u32 = 99; +pub const ASI_CESR_ID: u32 = 99; +pub const ASI_IC_INSTR: u32 = 102; +pub const ASI_IC_TAG: u32 = 103; +pub const ASI_IC_STAG: u32 = 104; +pub const ASI_IC_PRE_DECODE: u32 = 110; +pub const ASI_IC_NEXT_FIELD: u32 = 111; +pub const ASI_BRPRED_ARRAY: u32 = 111; +pub const ASI_BLK_AIUP: u32 = 112; +pub const ASI_BLK_AIUS: u32 = 113; +pub const ASI_MCU_CTRL_REG: u32 = 114; +pub const ASI_EC_DATA: u32 = 116; +pub const ASI_EC_CTRL: u32 = 117; +pub const ASI_EC_W: u32 = 118; +pub const ASI_UDB_ERROR_W: u32 = 119; +pub const ASI_UDB_CONTROL_W: u32 = 119; +pub const ASI_INTR_W: u32 = 119; +pub const ASI_INTR_DATAN_W: u32 = 119; +pub const ASI_INTR_DISPATCH_W: u32 = 119; +pub const ASI_BLK_AIUPL: u32 = 120; +pub const ASI_BLK_AIUSL: u32 = 121; +pub const ASI_EC_R: u32 = 126; +pub const ASI_UDBH_ERROR_R: u32 = 127; +pub const ASI_UDBL_ERROR_R: u32 = 127; +pub const ASI_UDBH_CONTROL_R: u32 = 127; +pub const ASI_UDBL_CONTROL_R: u32 = 127; +pub const ASI_INTR_R: u32 = 127; +pub const ASI_INTR_DATAN_R: u32 = 127; +pub const ASI_MCD_PRIMARY: u32 = 144; +pub const ASI_MCD_ST_BLKINIT_PRIMARY: u32 = 146; +pub const ASI_PIC: u32 = 176; +pub const ASI_PST8_P: u32 = 192; +pub const ASI_PST8_S: u32 = 193; +pub const ASI_PST16_P: u32 = 194; +pub const ASI_PST16_S: u32 = 195; +pub const ASI_PST32_P: u32 = 196; +pub const ASI_PST32_S: u32 = 197; +pub const ASI_PST8_PL: u32 = 200; +pub const ASI_PST8_SL: u32 = 201; +pub const ASI_PST16_PL: u32 = 202; +pub const ASI_PST16_SL: u32 = 203; +pub const ASI_PST32_PL: u32 = 204; +pub const ASI_PST32_SL: u32 = 205; +pub const ASI_FL8_P: u32 = 208; +pub const ASI_FL8_S: u32 = 209; +pub const ASI_FL16_P: u32 = 210; +pub const ASI_FL16_S: u32 = 211; +pub const ASI_FL8_PL: u32 = 216; +pub const ASI_FL8_SL: u32 = 217; +pub const ASI_FL16_PL: u32 = 218; +pub const ASI_FL16_SL: u32 = 219; +pub const ASI_BLK_COMMIT_P: u32 = 224; +pub const ASI_BLK_COMMIT_S: u32 = 225; +pub const ASI_BLK_INIT_QUAD_LDD_P: u32 = 226; +pub const ASI_BLK_INIT_QUAD_LDD_S: u32 = 227; +pub const ASI_BLK_P: u32 = 240; +pub const ASI_BLK_S: u32 = 241; +pub const ASI_ST_BLKINIT_MRU_P: u32 = 242; +pub const ASI_ST_BLKINIT_MRU_S: u32 = 243; +pub const ASI_BLK_PL: u32 = 248; +pub const ASI_BLK_SL: u32 = 249; +pub const ASI_ST_BLKINIT_MRU_PL: u32 = 250; +pub const ASI_ST_BLKINIT_MRU_SL: u32 = 251; +pub const PACKET_HOST: u32 = 0; +pub const PACKET_BROADCAST: u32 = 1; +pub const PACKET_MULTICAST: u32 = 2; +pub const PACKET_OTHERHOST: u32 = 3; +pub const PACKET_OUTGOING: u32 = 4; +pub const PACKET_LOOPBACK: u32 = 5; +pub const PACKET_USER: u32 = 6; +pub const PACKET_KERNEL: u32 = 7; +pub const PACKET_FASTROUTE: u32 = 6; +pub const PACKET_ADD_MEMBERSHIP: u32 = 1; +pub const PACKET_DROP_MEMBERSHIP: u32 = 2; +pub const PACKET_RECV_OUTPUT: u32 = 3; +pub const PACKET_RX_RING: u32 = 5; +pub const PACKET_STATISTICS: u32 = 6; +pub const PACKET_COPY_THRESH: u32 = 7; +pub const PACKET_AUXDATA: u32 = 8; +pub const PACKET_ORIGDEV: u32 = 9; +pub const PACKET_VERSION: u32 = 10; +pub const PACKET_HDRLEN: u32 = 11; +pub const PACKET_RESERVE: u32 = 12; +pub const PACKET_TX_RING: u32 = 13; +pub const PACKET_LOSS: u32 = 14; +pub const PACKET_VNET_HDR: u32 = 15; +pub const PACKET_TX_TIMESTAMP: u32 = 16; +pub const PACKET_TIMESTAMP: u32 = 17; +pub const PACKET_FANOUT: u32 = 18; +pub const PACKET_TX_HAS_OFF: u32 = 19; +pub const PACKET_QDISC_BYPASS: u32 = 20; +pub const PACKET_ROLLOVER_STATS: u32 = 21; +pub const PACKET_FANOUT_DATA: u32 = 22; +pub const PACKET_IGNORE_OUTGOING: u32 = 23; +pub const PACKET_VNET_HDR_SZ: u32 = 24; +pub const PACKET_FANOUT_HASH: u32 = 0; +pub const PACKET_FANOUT_LB: u32 = 1; +pub const PACKET_FANOUT_CPU: u32 = 2; +pub const PACKET_FANOUT_ROLLOVER: u32 = 3; +pub const PACKET_FANOUT_RND: u32 = 4; +pub const PACKET_FANOUT_QM: u32 = 5; +pub const PACKET_FANOUT_CBPF: u32 = 6; +pub const PACKET_FANOUT_EBPF: u32 = 7; +pub const PACKET_FANOUT_FLAG_ROLLOVER: u32 = 4096; +pub const PACKET_FANOUT_FLAG_UNIQUEID: u32 = 8192; +pub const PACKET_FANOUT_FLAG_IGNORE_OUTGOING: u32 = 16384; +pub const PACKET_FANOUT_FLAG_DEFRAG: u32 = 32768; +pub const TP_STATUS_KERNEL: u32 = 0; +pub const TP_STATUS_USER: u32 = 1; +pub const TP_STATUS_COPY: u32 = 2; +pub const TP_STATUS_LOSING: u32 = 4; +pub const TP_STATUS_CSUMNOTREADY: u32 = 8; +pub const TP_STATUS_VLAN_VALID: u32 = 16; +pub const TP_STATUS_BLK_TMO: u32 = 32; +pub const TP_STATUS_VLAN_TPID_VALID: u32 = 64; +pub const TP_STATUS_CSUM_VALID: u32 = 128; +pub const TP_STATUS_GSO_TCP: u32 = 256; +pub const TP_STATUS_AVAILABLE: u32 = 0; +pub const TP_STATUS_SEND_REQUEST: u32 = 1; +pub const TP_STATUS_SENDING: u32 = 2; +pub const TP_STATUS_WRONG_FORMAT: u32 = 4; +pub const TP_STATUS_TS_SOFTWARE: u32 = 536870912; +pub const TP_STATUS_TS_SYS_HARDWARE: u32 = 1073741824; +pub const TP_STATUS_TS_RAW_HARDWARE: u32 = 2147483648; +pub const TP_FT_REQ_FILL_RXHASH: u32 = 1; +pub const TPACKET_ALIGNMENT: u32 = 16; +pub const PACKET_MR_MULTICAST: u32 = 0; +pub const PACKET_MR_PROMISC: u32 = 1; +pub const PACKET_MR_ALLMULTI: u32 = 2; +pub const PACKET_MR_UNICAST: u32 = 3; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tpacket_versions { +TPACKET_V1 = 0, +TPACKET_V2 = 1, +TPACKET_V3 = 2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_stats_u { +pub stats1: tpacket_stats, +pub stats3: tpacket_stats_v3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket3_hdr__bindgen_ty_1 { +pub hv1: tpacket_hdr_variant1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_ts__bindgen_ty_1 { +pub ts_usec: crate::ctypes::c_uint, +pub ts_nsec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_header_u { +pub bh1: tpacket_hdr_v1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_req_u { +pub req: tpacket_req, +pub req3: tpacket_req3, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/image.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/image.rs new file mode 100644 index 0000000000000000000000000000000000000000..bff15e373cd12fce9e91f11af9ee8efb9065775b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/image.rs @@ -0,0 +1,3 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + + diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/io_uring.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/io_uring.rs new file mode 100644 index 0000000000000000000000000000000000000000..87bfdcf873d0cf35995d49e502dbf364ea4aea66 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/io_uring.rs @@ -0,0 +1,1441 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_suseconds_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_rwf_t = crate::ctypes::c_int; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +pub struct __BindgenUnionField(::core::marker::PhantomData); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_suseconds_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v1 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub master_key_descriptor: [__u8; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_key { +pub mode: __u32, +pub raw: [__u8; 64usize], +pub size: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v2 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub log2_data_unit_size: __u8, +pub __reserved: [__u8; 3usize], +pub master_key_identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_policy_ex_arg { +pub policy_size: __u64, +pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_key_specifier { +pub type_: __u32, +pub __reserved: __u32, +pub u: fscrypt_key_specifier__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct fscrypt_provisioning_key_payload { +pub type_: __u32, +pub flags: __u32, +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +pub struct fscrypt_add_key_arg { +pub key_spec: fscrypt_key_specifier, +pub raw_size: __u32, +pub key_id: __u32, +pub flags: __u32, +pub __reserved: [__u32; 7usize], +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_remove_key_arg { +pub key_spec: fscrypt_key_specifier, +pub removal_status_flags: __u32, +pub __reserved: [__u32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_key_status_arg { +pub key_spec: fscrypt_key_specifier, +pub __reserved: [__u32; 6usize], +pub status: __u32, +pub status_flags: __u32, +pub user_count: __u32, +pub __out_reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mount_attr { +pub attr_set: __u64, +pub attr_clr: __u64, +pub propagation: __u64, +pub userns_fd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct statmount { +pub size: __u32, +pub mnt_opts: __u32, +pub mask: __u64, +pub sb_dev_major: __u32, +pub sb_dev_minor: __u32, +pub sb_magic: __u64, +pub sb_flags: __u32, +pub fs_type: __u32, +pub mnt_id: __u64, +pub mnt_parent_id: __u64, +pub mnt_id_old: __u32, +pub mnt_parent_id_old: __u32, +pub mnt_attr: __u64, +pub mnt_propagation: __u64, +pub mnt_peer_group: __u64, +pub mnt_master: __u64, +pub propagate_from: __u64, +pub mnt_root: __u32, +pub mnt_point: __u32, +pub mnt_ns_id: __u64, +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub supported_mask: __u64, +pub mnt_uidmap_num: __u32, +pub mnt_uidmap: __u32, +pub mnt_gidmap_num: __u32, +pub mnt_gidmap: __u32, +pub __spare2: [__u64; 43usize], +pub str_: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mnt_id_req { +pub size: __u32, +pub spare: __u32, +pub mnt_id: __u64, +pub param: __u64, +pub mnt_ns_id: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_clone_range { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fstrim_range { +pub start: __u64, +pub len: __u64, +pub minlen: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsuuid2 { +pub len: __u8, +pub uuid: [__u8; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fs_sysfs_path { +pub len: __u8, +pub name: [__u8; 128usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_dedupe_range_info { +pub dest_fd: __s64, +pub dest_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct file_dedupe_range { +pub src_offset: __u64, +pub src_length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct files_stat_struct { +pub nr_files: crate::ctypes::c_ulong, +pub nr_free_files: crate::ctypes::c_ulong, +pub max_files: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct inodes_stat_t { +pub nr_inodes: crate::ctypes::c_long, +pub nr_unused: crate::ctypes::c_long, +pub dummy: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsxattr { +pub fsx_xflags: __u32, +pub fsx_extsize: __u32, +pub fsx_nextents: __u32, +pub fsx_projid: __u32, +pub fsx_cowextsize: __u32, +pub fsx_pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct page_region { +pub start: __u64, +pub end: __u64, +pub categories: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pm_scan_arg { +pub size: __u64, +pub flags: __u64, +pub start: __u64, +pub end: __u64, +pub walk_end: __u64, +pub vec: __u64, +pub vec_len: __u64, +pub max_pages: __u64, +pub category_inverted: __u64, +pub category_mask: __u64, +pub category_anyof_mask: __u64, +pub return_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct procmap_query { +pub size: __u64, +pub query_flags: __u64, +pub query_addr: __u64, +pub vma_start: __u64, +pub vma_end: __u64, +pub vma_flags: __u64, +pub vma_page_size: __u64, +pub vma_offset: __u64, +pub inode: __u64, +pub dev_major: __u32, +pub dev_minor: __u32, +pub vma_name_size: __u32, +pub build_id_size: __u32, +pub vma_name_addr: __u64, +pub build_id_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_timespec { +pub tv_sec: __kernel_time64_t, +pub tv_nsec: crate::ctypes::c_longlong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_itimerspec { +pub it_interval: __kernel_timespec, +pub it_value: __kernel_timespec, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timespec { +pub tv_sec: __kernel_old_time_t, +pub tv_nsec: crate::ctypes::c_long, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_itimerval { +pub it_interval: __kernel_old_timeval, +pub it_value: __kernel_old_timeval, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sock_timeval { +pub tv_sec: __s64, +pub tv_usec: __s64, +} +#[repr(C)] +pub struct io_uring_sqe { +pub opcode: __u8, +pub flags: __u8, +pub ioprio: __u16, +pub fd: __s32, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, +pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, +pub len: __u32, +pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, +pub user_data: __u64, +pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, +pub personality: __u16, +pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, +pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { +pub cmd_op: __u32, +pub __pad1: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_2__bindgen_ty_1 { +pub level: __u32, +pub optname: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { +pub addr_len: __u16, +pub __pad3: [__u16; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_2 { +pub write_stream: __u8, +pub __pad4: [__u8; 3usize], +} +#[repr(C)] +pub struct io_uring_sqe__bindgen_ty_6 { +pub __bindgen_anon_1: __BindgenUnionField, +pub __bindgen_anon_2: __BindgenUnionField, +pub optval: __BindgenUnionField<__u64>, +pub cmd: __BindgenUnionField<[__u8; 0usize]>, +pub bindgen_union_field: [u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { +pub addr3: __u64, +pub __pad2: [__u64; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_2 { +pub attr_ptr: __u64, +pub attr_type_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_attr_pi { +pub flags: __u16, +pub app_tag: __u16, +pub len: __u32, +pub addr: __u64, +pub seed: __u64, +pub rsvd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct io_uring_cqe { +pub user_data: __u64, +pub res: __s32, +pub flags: __u32, +pub big_cqe: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_sqring_offsets { +pub head: __u32, +pub tail: __u32, +pub ring_mask: __u32, +pub ring_entries: __u32, +pub flags: __u32, +pub dropped: __u32, +pub array: __u32, +pub resv1: __u32, +pub user_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_cqring_offsets { +pub head: __u32, +pub tail: __u32, +pub ring_mask: __u32, +pub ring_entries: __u32, +pub overflow: __u32, +pub cqes: __u32, +pub flags: __u32, +pub resv1: __u32, +pub user_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_params { +pub sq_entries: __u32, +pub cq_entries: __u32, +pub flags: __u32, +pub sq_thread_cpu: __u32, +pub sq_thread_idle: __u32, +pub features: __u32, +pub wq_fd: __u32, +pub resv: [__u32; 3usize], +pub sq_off: io_sqring_offsets, +pub cq_off: io_cqring_offsets, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_files_update { +pub offset: __u32, +pub resv: __u32, +pub fds: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_region_desc { +pub user_addr: __u64, +pub size: __u64, +pub flags: __u32, +pub id: __u32, +pub mmap_offset: __u64, +pub __resv: [__u64; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_mem_region_reg { +pub region_uptr: __u64, +pub flags: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_rsrc_register { +pub nr: __u32, +pub flags: __u32, +pub resv2: __u64, +pub data: __u64, +pub tags: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_rsrc_update { +pub offset: __u32, +pub resv: __u32, +pub data: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_rsrc_update2 { +pub offset: __u32, +pub resv: __u32, +pub data: __u64, +pub tags: __u64, +pub nr: __u32, +pub resv2: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_probe_op { +pub op: __u8, +pub resv: __u8, +pub flags: __u16, +pub resv2: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct io_uring_probe { +pub last_op: __u8, +pub ops_len: __u8, +pub resv: __u16, +pub resv2: [__u32; 3usize], +pub ops: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct io_uring_restriction { +pub opcode: __u16, +pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, +pub resv: __u8, +pub resv2: [__u32; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_clock_register { +pub clockid: __u32, +pub __resv: [__u32; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_clone_buffers { +pub src_fd: __u32, +pub flags: __u32, +pub src_off: __u32, +pub dst_off: __u32, +pub nr: __u32, +pub pad: [__u32; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf { +pub addr: __u64, +pub len: __u32, +pub bid: __u16, +pub resv: __u16, +} +#[repr(C)] +pub struct io_uring_buf_ring { +pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_buf_ring__bindgen_ty_1 { +pub __bindgen_anon_1: __BindgenUnionField, +pub __bindgen_anon_2: __BindgenUnionField, +pub bindgen_union_field: [u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { +pub resv1: __u64, +pub resv2: __u32, +pub resv3: __u16, +pub tail: __u16, +} +#[repr(C)] +#[derive(Debug)] +pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { +pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, +pub bufs: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_reg { +pub ring_addr: __u64, +pub ring_entries: __u32, +pub bgid: __u16, +pub flags: __u16, +pub resv: [__u64; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_status { +pub buf_group: __u32, +pub head: __u32, +pub resv: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_napi { +pub busy_poll_to: __u32, +pub prefer_busy_poll: __u8, +pub opcode: __u8, +pub pad: [__u8; 2usize], +pub op_param: __u32, +pub resv: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_reg_wait { +pub ts: __kernel_timespec, +pub min_wait_usec: __u32, +pub flags: __u32, +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub pad: [__u32; 3usize], +pub pad2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_getevents_arg { +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub min_wait_usec: __u32, +pub ts: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sync_cancel_reg { +pub addr: __u64, +pub fd: __s32, +pub flags: __u32, +pub timeout: __kernel_timespec, +pub opcode: __u8, +pub pad: [__u8; 7usize], +pub pad2: [__u64; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_file_index_range { +pub off: __u32, +pub len: __u32, +pub resv: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_recvmsg_out { +pub namelen: __u32, +pub controllen: __u32, +pub payloadlen: __u32, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 3usize], +} +pub const NR_OPEN: u32 = 1024; +pub const NGROUPS_MAX: u32 = 65536; +pub const ARG_MAX: u32 = 131072; +pub const LINK_MAX: u32 = 127; +pub const MAX_CANON: u32 = 255; +pub const MAX_INPUT: u32 = 255; +pub const NAME_MAX: u32 = 255; +pub const PATH_MAX: u32 = 4096; +pub const PIPE_BUF: u32 = 4096; +pub const XATTR_NAME_MAX: u32 = 255; +pub const XATTR_SIZE_MAX: u32 = 65536; +pub const XATTR_LIST_MAX: u32 = 65536; +pub const RTSIG_MAX: u32 = 32; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_SIZEBITS: u32 = 13; +pub const _IOC_DIRBITS: u32 = 3; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 8191; +pub const _IOC_XSIZEMASK: u32 = 16383; +pub const _IOC_DIRMASK: u32 = 7; +pub const _IOC_NRSHIFT: u32 = 0; +pub const _IOC_TYPESHIFT: u32 = 8; +pub const _IOC_SIZESHIFT: u32 = 16; +pub const _IOC_DIRSHIFT: u32 = 29; +pub const _IOC_NONE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const _IOC_WRITE: u32 = 4; +pub const IOC_IN: u32 = 2147483648; +pub const IOC_OUT: u32 = 1073741824; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 1073676288; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; +pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; +pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; +pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; +pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; +pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; +pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; +pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; +pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; +pub const FSCRYPT_POLICY_V1: u32 = 0; +pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; +pub const FSCRYPT_POLICY_V2: u32 = 2; +pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; +pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; +pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; +pub const FSCRYPT_ADD_KEY_FLAG_HW_WRAPPED: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; +pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; +pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; +pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; +pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; +pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FS_POLICY_FLAGS_VALID: u32 = 7; +pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; +pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; +pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; +pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; +pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; +pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; +pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; +pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; +pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FS_MAX_KEY_SIZE: u32 = 64; +pub const MS_RDONLY: u32 = 1; +pub const MS_NOSUID: u32 = 2; +pub const MS_NODEV: u32 = 4; +pub const MS_NOEXEC: u32 = 8; +pub const MS_SYNCHRONOUS: u32 = 16; +pub const MS_REMOUNT: u32 = 32; +pub const MS_MANDLOCK: u32 = 64; +pub const MS_DIRSYNC: u32 = 128; +pub const MS_NOSYMFOLLOW: u32 = 256; +pub const MS_NOATIME: u32 = 1024; +pub const MS_NODIRATIME: u32 = 2048; +pub const MS_BIND: u32 = 4096; +pub const MS_MOVE: u32 = 8192; +pub const MS_REC: u32 = 16384; +pub const MS_VERBOSE: u32 = 32768; +pub const MS_SILENT: u32 = 32768; +pub const MS_POSIXACL: u32 = 65536; +pub const MS_UNBINDABLE: u32 = 131072; +pub const MS_PRIVATE: u32 = 262144; +pub const MS_SLAVE: u32 = 524288; +pub const MS_SHARED: u32 = 1048576; +pub const MS_RELATIME: u32 = 2097152; +pub const MS_KERNMOUNT: u32 = 4194304; +pub const MS_I_VERSION: u32 = 8388608; +pub const MS_STRICTATIME: u32 = 16777216; +pub const MS_LAZYTIME: u32 = 33554432; +pub const MS_SUBMOUNT: u32 = 67108864; +pub const MS_NOREMOTELOCK: u32 = 134217728; +pub const MS_NOSEC: u32 = 268435456; +pub const MS_BORN: u32 = 536870912; +pub const MS_ACTIVE: u32 = 1073741824; +pub const MS_NOUSER: u32 = 2147483648; +pub const MS_RMT_MASK: u32 = 41943121; +pub const MS_MGC_VAL: u32 = 3236757504; +pub const MS_MGC_MSK: u32 = 4294901760; +pub const OPEN_TREE_CLONE: u32 = 1; +pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; +pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; +pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; +pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; +pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; +pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; +pub const MOVE_MOUNT_SET_GROUP: u32 = 256; +pub const MOVE_MOUNT_BENEATH: u32 = 512; +pub const MOVE_MOUNT__MASK: u32 = 887; +pub const FSOPEN_CLOEXEC: u32 = 1; +pub const FSPICK_CLOEXEC: u32 = 1; +pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; +pub const FSPICK_NO_AUTOMOUNT: u32 = 4; +pub const FSPICK_EMPTY_PATH: u32 = 8; +pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const MOUNT_ATTR_RDONLY: u32 = 1; +pub const MOUNT_ATTR_NOSUID: u32 = 2; +pub const MOUNT_ATTR_NODEV: u32 = 4; +pub const MOUNT_ATTR_NOEXEC: u32 = 8; +pub const MOUNT_ATTR__ATIME: u32 = 112; +pub const MOUNT_ATTR_RELATIME: u32 = 0; +pub const MOUNT_ATTR_NOATIME: u32 = 16; +pub const MOUNT_ATTR_STRICTATIME: u32 = 32; +pub const MOUNT_ATTR_NODIRATIME: u32 = 128; +pub const MOUNT_ATTR_IDMAP: u32 = 1048576; +pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; +pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; +pub const MNT_ID_REQ_SIZE_VER0: u32 = 24; +pub const MNT_ID_REQ_SIZE_VER1: u32 = 32; +pub const STATMOUNT_SB_BASIC: u32 = 1; +pub const STATMOUNT_MNT_BASIC: u32 = 2; +pub const STATMOUNT_PROPAGATE_FROM: u32 = 4; +pub const STATMOUNT_MNT_ROOT: u32 = 8; +pub const STATMOUNT_MNT_POINT: u32 = 16; +pub const STATMOUNT_FS_TYPE: u32 = 32; +pub const STATMOUNT_MNT_NS_ID: u32 = 64; +pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; +pub const STATMOUNT_SUPPORTED_MASK: u32 = 4096; +pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; +pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; +pub const LSMT_ROOT: i32 = -1; +pub const LISTMOUNT_REVERSE: u32 = 1; +pub const INR_OPEN_CUR: u32 = 1024; +pub const INR_OPEN_MAX: u32 = 4096; +pub const BLOCK_SIZE_BITS: u32 = 10; +pub const BLOCK_SIZE: u32 = 1024; +pub const IO_INTEGRITY_CHK_GUARD: u32 = 1; +pub const IO_INTEGRITY_CHK_REFTAG: u32 = 2; +pub const IO_INTEGRITY_CHK_APPTAG: u32 = 4; +pub const IO_INTEGRITY_VALID_FLAGS: u32 = 7; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const SEEK_DATA: u32 = 3; +pub const SEEK_HOLE: u32 = 4; +pub const SEEK_MAX: u32 = 4; +pub const RENAME_NOREPLACE: u32 = 1; +pub const RENAME_EXCHANGE: u32 = 2; +pub const RENAME_WHITEOUT: u32 = 4; +pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; +pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; +pub const NR_FILE: u32 = 8192; +pub const FS_XFLAG_REALTIME: u32 = 1; +pub const FS_XFLAG_PREALLOC: u32 = 2; +pub const FS_XFLAG_IMMUTABLE: u32 = 8; +pub const FS_XFLAG_APPEND: u32 = 16; +pub const FS_XFLAG_SYNC: u32 = 32; +pub const FS_XFLAG_NOATIME: u32 = 64; +pub const FS_XFLAG_NODUMP: u32 = 128; +pub const FS_XFLAG_RTINHERIT: u32 = 256; +pub const FS_XFLAG_PROJINHERIT: u32 = 512; +pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; +pub const FS_XFLAG_EXTSIZE: u32 = 2048; +pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; +pub const FS_XFLAG_NODEFRAG: u32 = 8192; +pub const FS_XFLAG_FILESTREAM: u32 = 16384; +pub const FS_XFLAG_DAX: u32 = 32768; +pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_HASATTR: u32 = 2147483648; +pub const BMAP_IOCTL: u32 = 1; +pub const FSLABEL_MAX: u32 = 256; +pub const FS_SECRM_FL: u32 = 1; +pub const FS_UNRM_FL: u32 = 2; +pub const FS_COMPR_FL: u32 = 4; +pub const FS_SYNC_FL: u32 = 8; +pub const FS_IMMUTABLE_FL: u32 = 16; +pub const FS_APPEND_FL: u32 = 32; +pub const FS_NODUMP_FL: u32 = 64; +pub const FS_NOATIME_FL: u32 = 128; +pub const FS_DIRTY_FL: u32 = 256; +pub const FS_COMPRBLK_FL: u32 = 512; +pub const FS_NOCOMP_FL: u32 = 1024; +pub const FS_ENCRYPT_FL: u32 = 2048; +pub const FS_BTREE_FL: u32 = 4096; +pub const FS_INDEX_FL: u32 = 4096; +pub const FS_IMAGIC_FL: u32 = 8192; +pub const FS_JOURNAL_DATA_FL: u32 = 16384; +pub const FS_NOTAIL_FL: u32 = 32768; +pub const FS_DIRSYNC_FL: u32 = 65536; +pub const FS_TOPDIR_FL: u32 = 131072; +pub const FS_HUGE_FILE_FL: u32 = 262144; +pub const FS_EXTENT_FL: u32 = 524288; +pub const FS_VERITY_FL: u32 = 1048576; +pub const FS_EA_INODE_FL: u32 = 2097152; +pub const FS_EOFBLOCKS_FL: u32 = 4194304; +pub const FS_NOCOW_FL: u32 = 8388608; +pub const FS_DAX_FL: u32 = 33554432; +pub const FS_INLINE_DATA_FL: u32 = 268435456; +pub const FS_PROJINHERIT_FL: u32 = 536870912; +pub const FS_CASEFOLD_FL: u32 = 1073741824; +pub const FS_RESERVED_FL: u32 = 2147483648; +pub const FS_FL_USER_VISIBLE: u32 = 253951; +pub const FS_FL_USER_MODIFIABLE: u32 = 229631; +pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; +pub const SYNC_FILE_RANGE_WRITE: u32 = 2; +pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; +pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; +pub const PROCFS_IOCTL_MAGIC: u8 = 102u8; +pub const PAGE_IS_WPALLOWED: u32 = 1; +pub const PAGE_IS_WRITTEN: u32 = 2; +pub const PAGE_IS_FILE: u32 = 4; +pub const PAGE_IS_PRESENT: u32 = 8; +pub const PAGE_IS_SWAPPED: u32 = 16; +pub const PAGE_IS_PFNZERO: u32 = 32; +pub const PAGE_IS_HUGE: u32 = 64; +pub const PAGE_IS_SOFT_DIRTY: u32 = 128; +pub const PAGE_IS_GUARD: u32 = 256; +pub const PM_SCAN_WP_MATCHING: u32 = 1; +pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; +pub const IORING_FILE_INDEX_ALLOC: i32 = -1; +pub const IORING_SETUP_IOPOLL: u32 = 1; +pub const IORING_SETUP_SQPOLL: u32 = 2; +pub const IORING_SETUP_SQ_AFF: u32 = 4; +pub const IORING_SETUP_CQSIZE: u32 = 8; +pub const IORING_SETUP_CLAMP: u32 = 16; +pub const IORING_SETUP_ATTACH_WQ: u32 = 32; +pub const IORING_SETUP_R_DISABLED: u32 = 64; +pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; +pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; +pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; +pub const IORING_SETUP_SQE128: u32 = 1024; +pub const IORING_SETUP_CQE32: u32 = 2048; +pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; +pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; +pub const IORING_SETUP_NO_MMAP: u32 = 16384; +pub const IORING_SETUP_REGISTERED_FD_ONLY: u32 = 32768; +pub const IORING_SETUP_NO_SQARRAY: u32 = 65536; +pub const IORING_SETUP_HYBRID_IOPOLL: u32 = 131072; +pub const IORING_URING_CMD_FIXED: u32 = 1; +pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_FSYNC_DATASYNC: u32 = 1; +pub const IORING_TIMEOUT_ABS: u32 = 1; +pub const IORING_TIMEOUT_UPDATE: u32 = 2; +pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; +pub const IORING_TIMEOUT_REALTIME: u32 = 8; +pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; +pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; +pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; +pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; +pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; +pub const IORING_POLL_ADD_MULTI: u32 = 1; +pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; +pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; +pub const IORING_POLL_ADD_LEVEL: u32 = 8; +pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; +pub const IORING_ASYNC_CANCEL_FD: u32 = 2; +pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; +pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; +pub const IORING_ASYNC_CANCEL_USERDATA: u32 = 16; +pub const IORING_ASYNC_CANCEL_OP: u32 = 32; +pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; +pub const IORING_RECV_MULTISHOT: u32 = 2; +pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; +pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; +pub const IORING_RECVSEND_BUNDLE: u32 = 16; +pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; +pub const IORING_ACCEPT_MULTISHOT: u32 = 1; +pub const IORING_ACCEPT_DONTWAIT: u32 = 2; +pub const IORING_ACCEPT_POLL_FIRST: u32 = 4; +pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; +pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; +pub const IORING_FIXED_FD_NO_CLOEXEC: u32 = 1; +pub const IORING_NOP_INJECT_RESULT: u32 = 1; +pub const IORING_NOP_FILE: u32 = 2; +pub const IORING_NOP_FIXED_FILE: u32 = 4; +pub const IORING_NOP_FIXED_BUFFER: u32 = 8; +pub const IORING_CQE_F_BUFFER: u32 = 1; +pub const IORING_CQE_F_MORE: u32 = 2; +pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; +pub const IORING_CQE_F_NOTIF: u32 = 8; +pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; +pub const IORING_OFF_SQ_RING: u32 = 0; +pub const IORING_OFF_CQ_RING: u32 = 134217728; +pub const IORING_OFF_SQES: u32 = 268435456; +pub const IORING_OFF_PBUF_RING: u32 = 2147483648; +pub const IORING_OFF_PBUF_SHIFT: u32 = 16; +pub const IORING_OFF_MMAP_MASK: u32 = 4160749568; +pub const IORING_SQ_NEED_WAKEUP: u32 = 1; +pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; +pub const IORING_SQ_TASKRUN: u32 = 4; +pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; +pub const IORING_ENTER_GETEVENTS: u32 = 1; +pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; +pub const IORING_ENTER_SQ_WAIT: u32 = 4; +pub const IORING_ENTER_EXT_ARG: u32 = 8; +pub const IORING_ENTER_REGISTERED_RING: u32 = 16; +pub const IORING_ENTER_ABS_TIMER: u32 = 32; +pub const IORING_ENTER_EXT_ARG_REG: u32 = 64; +pub const IORING_ENTER_NO_IOWAIT: u32 = 128; +pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; +pub const IORING_FEAT_NODROP: u32 = 2; +pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; +pub const IORING_FEAT_RW_CUR_POS: u32 = 8; +pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; +pub const IORING_FEAT_FAST_POLL: u32 = 32; +pub const IORING_FEAT_POLL_32BITS: u32 = 64; +pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; +pub const IORING_FEAT_EXT_ARG: u32 = 256; +pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; +pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; +pub const IORING_FEAT_CQE_SKIP: u32 = 2048; +pub const IORING_FEAT_LINKED_FILE: u32 = 4096; +pub const IORING_FEAT_REG_REG_RING: u32 = 8192; +pub const IORING_FEAT_RECVSEND_BUNDLE: u32 = 16384; +pub const IORING_FEAT_MIN_TIMEOUT: u32 = 32768; +pub const IORING_FEAT_RW_ATTR: u32 = 65536; +pub const IORING_FEAT_NO_IOWAIT: u32 = 131072; +pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; +pub const IORING_REGISTER_FILES_SKIP: i32 = -2; +pub const IO_URING_OP_SUPPORTED: u32 = 1; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; +pub const IORING_MEM_REGION_TYPE_USER: _bindgen_ty_1 = _bindgen_ty_1::IORING_MEM_REGION_TYPE_USER; +pub const IORING_MEM_REGION_REG_WAIT_ARG: _bindgen_ty_2 = _bindgen_ty_2::IORING_MEM_REGION_REG_WAIT_ARG; +pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_REGISTER_DST_REPLACE: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_DST_REPLACE; +pub const IORING_REG_WAIT_TS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REG_WAIT_TS; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum fsconfig_command { +FSCONFIG_SET_FLAG = 0, +FSCONFIG_SET_STRING = 1, +FSCONFIG_SET_BINARY = 2, +FSCONFIG_SET_PATH = 3, +FSCONFIG_SET_PATH_EMPTY = 4, +FSCONFIG_SET_FD = 5, +FSCONFIG_CMD_CREATE = 6, +FSCONFIG_CMD_RECONFIGURE = 7, +FSCONFIG_CMD_CREATE_EXCL = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum procmap_query_flags { +PROCMAP_QUERY_VMA_READABLE = 1, +PROCMAP_QUERY_VMA_WRITABLE = 2, +PROCMAP_QUERY_VMA_EXECUTABLE = 4, +PROCMAP_QUERY_VMA_SHARED = 8, +PROCMAP_QUERY_COVERING_OR_NEXT_VMA = 16, +PROCMAP_QUERY_FILE_BACKED_VMA = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_sqe_flags_bit { +IOSQE_FIXED_FILE_BIT = 0, +IOSQE_IO_DRAIN_BIT = 1, +IOSQE_IO_LINK_BIT = 2, +IOSQE_IO_HARDLINK_BIT = 3, +IOSQE_ASYNC_BIT = 4, +IOSQE_BUFFER_SELECT_BIT = 5, +IOSQE_CQE_SKIP_SUCCESS_BIT = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_op { +IORING_OP_NOP = 0, +IORING_OP_READV = 1, +IORING_OP_WRITEV = 2, +IORING_OP_FSYNC = 3, +IORING_OP_READ_FIXED = 4, +IORING_OP_WRITE_FIXED = 5, +IORING_OP_POLL_ADD = 6, +IORING_OP_POLL_REMOVE = 7, +IORING_OP_SYNC_FILE_RANGE = 8, +IORING_OP_SENDMSG = 9, +IORING_OP_RECVMSG = 10, +IORING_OP_TIMEOUT = 11, +IORING_OP_TIMEOUT_REMOVE = 12, +IORING_OP_ACCEPT = 13, +IORING_OP_ASYNC_CANCEL = 14, +IORING_OP_LINK_TIMEOUT = 15, +IORING_OP_CONNECT = 16, +IORING_OP_FALLOCATE = 17, +IORING_OP_OPENAT = 18, +IORING_OP_CLOSE = 19, +IORING_OP_FILES_UPDATE = 20, +IORING_OP_STATX = 21, +IORING_OP_READ = 22, +IORING_OP_WRITE = 23, +IORING_OP_FADVISE = 24, +IORING_OP_MADVISE = 25, +IORING_OP_SEND = 26, +IORING_OP_RECV = 27, +IORING_OP_OPENAT2 = 28, +IORING_OP_EPOLL_CTL = 29, +IORING_OP_SPLICE = 30, +IORING_OP_PROVIDE_BUFFERS = 31, +IORING_OP_REMOVE_BUFFERS = 32, +IORING_OP_TEE = 33, +IORING_OP_SHUTDOWN = 34, +IORING_OP_RENAMEAT = 35, +IORING_OP_UNLINKAT = 36, +IORING_OP_MKDIRAT = 37, +IORING_OP_SYMLINKAT = 38, +IORING_OP_LINKAT = 39, +IORING_OP_MSG_RING = 40, +IORING_OP_FSETXATTR = 41, +IORING_OP_SETXATTR = 42, +IORING_OP_FGETXATTR = 43, +IORING_OP_GETXATTR = 44, +IORING_OP_SOCKET = 45, +IORING_OP_URING_CMD = 46, +IORING_OP_SEND_ZC = 47, +IORING_OP_SENDMSG_ZC = 48, +IORING_OP_READ_MULTISHOT = 49, +IORING_OP_WAITID = 50, +IORING_OP_FUTEX_WAIT = 51, +IORING_OP_FUTEX_WAKE = 52, +IORING_OP_FUTEX_WAITV = 53, +IORING_OP_FIXED_FD_INSTALL = 54, +IORING_OP_FTRUNCATE = 55, +IORING_OP_BIND = 56, +IORING_OP_LISTEN = 57, +IORING_OP_RECV_ZC = 58, +IORING_OP_EPOLL_WAIT = 59, +IORING_OP_READV_FIXED = 60, +IORING_OP_WRITEV_FIXED = 61, +IORING_OP_PIPE = 62, +IORING_OP_LAST = 63, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_msg_ring_flags { +IORING_MSG_DATA = 0, +IORING_MSG_SEND_FD = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_register_op { +IORING_REGISTER_BUFFERS = 0, +IORING_UNREGISTER_BUFFERS = 1, +IORING_REGISTER_FILES = 2, +IORING_UNREGISTER_FILES = 3, +IORING_REGISTER_EVENTFD = 4, +IORING_UNREGISTER_EVENTFD = 5, +IORING_REGISTER_FILES_UPDATE = 6, +IORING_REGISTER_EVENTFD_ASYNC = 7, +IORING_REGISTER_PROBE = 8, +IORING_REGISTER_PERSONALITY = 9, +IORING_UNREGISTER_PERSONALITY = 10, +IORING_REGISTER_RESTRICTIONS = 11, +IORING_REGISTER_ENABLE_RINGS = 12, +IORING_REGISTER_FILES2 = 13, +IORING_REGISTER_FILES_UPDATE2 = 14, +IORING_REGISTER_BUFFERS2 = 15, +IORING_REGISTER_BUFFERS_UPDATE = 16, +IORING_REGISTER_IOWQ_AFF = 17, +IORING_UNREGISTER_IOWQ_AFF = 18, +IORING_REGISTER_IOWQ_MAX_WORKERS = 19, +IORING_REGISTER_RING_FDS = 20, +IORING_UNREGISTER_RING_FDS = 21, +IORING_REGISTER_PBUF_RING = 22, +IORING_UNREGISTER_PBUF_RING = 23, +IORING_REGISTER_SYNC_CANCEL = 24, +IORING_REGISTER_FILE_ALLOC_RANGE = 25, +IORING_REGISTER_PBUF_STATUS = 26, +IORING_REGISTER_NAPI = 27, +IORING_UNREGISTER_NAPI = 28, +IORING_REGISTER_CLOCK = 29, +IORING_REGISTER_CLONE_BUFFERS = 30, +IORING_REGISTER_SEND_MSG_RING = 31, +IORING_REGISTER_ZCRX_IFQ = 32, +IORING_REGISTER_RESIZE_RINGS = 33, +IORING_REGISTER_MEM_REGION = 34, +IORING_REGISTER_LAST = 35, +IORING_REGISTER_USE_REGISTERED_RING = 2147483648, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_wq_type { +IO_WQ_BOUND = 0, +IO_WQ_UNBOUND = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +IORING_MEM_REGION_TYPE_USER = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IORING_MEM_REGION_REG_WAIT_ARG = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +IORING_REGISTER_SRC_REGISTERED = 1, +IORING_REGISTER_DST_REPLACE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_register_pbuf_ring_flags { +IOU_PBUF_RING_MMAP = 1, +IOU_PBUF_RING_INC = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_op { +IO_URING_NAPI_REGISTER_OP = 0, +IO_URING_NAPI_STATIC_ADD_ID = 1, +IO_URING_NAPI_STATIC_DEL_ID = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_tracking_strategy { +IO_URING_NAPI_TRACKING_DYNAMIC = 0, +IO_URING_NAPI_TRACKING_STATIC = 1, +IO_URING_NAPI_TRACKING_INACTIVE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_register_restriction_op { +IORING_RESTRICTION_REGISTER_OP = 0, +IORING_RESTRICTION_SQE_OP = 1, +IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, +IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, +IORING_RESTRICTION_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IORING_REG_WAIT_TS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_socket_op { +SOCKET_URING_OP_SIOCINQ = 0, +SOCKET_URING_OP_SIOCOUTQ = 1, +SOCKET_URING_OP_GETSOCKOPT = 2, +SOCKET_URING_OP_SETSOCKOPT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { +pub version: __u8, +pub v1: fscrypt_policy_v1, +pub v2: fscrypt_policy_v2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_key_specifier__bindgen_ty_1 { +pub __reserved: [__u8; 32usize], +pub descriptor: [__u8; 8usize], +pub identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_1 { +pub off: __u64, +pub addr2: __u64, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_2 { +pub addr: __u64, +pub splice_off_in: __u64, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_2__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_3 { +pub rw_flags: __kernel_rwf_t, +pub fsync_flags: __u32, +pub poll_events: __u16, +pub poll32_events: __u32, +pub sync_range_flags: __u32, +pub msg_flags: __u32, +pub timeout_flags: __u32, +pub accept_flags: __u32, +pub cancel_flags: __u32, +pub open_flags: __u32, +pub statx_flags: __u32, +pub fadvise_advice: __u32, +pub splice_flags: __u32, +pub rename_flags: __u32, +pub unlink_flags: __u32, +pub hardlink_flags: __u32, +pub xattr_flags: __u32, +pub msg_ring_flags: __u32, +pub uring_cmd_flags: __u32, +pub waitid_flags: __u32, +pub futex_flags: __u32, +pub install_fd_flags: __u32, +pub nop_flags: __u32, +pub pipe_flags: __u32, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_4 { +pub buf_index: __u16, +pub buf_group: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_5 { +pub splice_fd_in: __s32, +pub file_index: __u32, +pub zcrx_ifq_idx: __u32, +pub optlen: __u32, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, +pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_5__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_restriction__bindgen_ty_1 { +pub register_op: __u8, +pub sqe_op: __u8, +pub sqe_flags: __u8, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl __BindgenUnionField { +#[inline] +pub const fn new() -> Self { +__BindgenUnionField(::core::marker::PhantomData) +} +#[inline] +pub unsafe fn as_ref(&self) -> &T { +::core::mem::transmute(self) +} +#[inline] +pub unsafe fn as_mut(&mut self) -> &mut T { +::core::mem::transmute(self) +} +} +impl ::core::default::Default for __BindgenUnionField { +#[inline] +fn default() -> Self { +Self::new() +} +} +impl ::core::clone::Clone for __BindgenUnionField { +#[inline] +fn clone(&self) -> Self { +*self +} +} +impl ::core::marker::Copy for __BindgenUnionField {} +impl ::core::fmt::Debug for __BindgenUnionField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__BindgenUnionField") +} +} +impl ::core::hash::Hash for __BindgenUnionField { +fn hash(&self, _state: &mut H) {} +} +impl ::core::cmp::PartialEq for __BindgenUnionField { +fn eq(&self, _other: &__BindgenUnionField) -> bool { +true +} +} +impl ::core::cmp::Eq for __BindgenUnionField {} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/ioctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/ioctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..bff15e373cd12fce9e91f11af9ee8efb9065775b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/ioctl.rs @@ -0,0 +1,3 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + + diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/landlock.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/landlock.rs new file mode 100644 index 0000000000000000000000000000000000000000..a05ae5f5cd57d71f180429d3f9711e59b6edfa3e --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/landlock.rs @@ -0,0 +1,110 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_suseconds_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_suseconds_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct landlock_ruleset_attr { +pub handled_access_fs: __u64, +pub handled_access_net: __u64, +pub scoped: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct landlock_path_beneath_attr { +pub allowed_access: __u64, +pub parent_fd: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct landlock_net_port_attr { +pub allowed_access: __u64, +pub port: __u64, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; +pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; +pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; +pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; +pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; +pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; +pub const LANDLOCK_ACCESS_FS_READ_DIR: u32 = 8; +pub const LANDLOCK_ACCESS_FS_REMOVE_DIR: u32 = 16; +pub const LANDLOCK_ACCESS_FS_REMOVE_FILE: u32 = 32; +pub const LANDLOCK_ACCESS_FS_MAKE_CHAR: u32 = 64; +pub const LANDLOCK_ACCESS_FS_MAKE_DIR: u32 = 128; +pub const LANDLOCK_ACCESS_FS_MAKE_REG: u32 = 256; +pub const LANDLOCK_ACCESS_FS_MAKE_SOCK: u32 = 512; +pub const LANDLOCK_ACCESS_FS_MAKE_FIFO: u32 = 1024; +pub const LANDLOCK_ACCESS_FS_MAKE_BLOCK: u32 = 2048; +pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; +pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; +pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; +pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; +pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; +pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum landlock_rule_type { +LANDLOCK_RULE_PATH_BENEATH = 1, +LANDLOCK_RULE_NET_PORT = 2, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/loop_device.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/loop_device.rs new file mode 100644 index 0000000000000000000000000000000000000000..c64807b9edd08d06bd920b158a85764dcd3ffd31 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/loop_device.rs @@ -0,0 +1,140 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_suseconds_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_suseconds_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct loop_info { +pub lo_number: crate::ctypes::c_int, +pub lo_device: __kernel_old_dev_t, +pub lo_inode: crate::ctypes::c_ulong, +pub lo_rdevice: __kernel_old_dev_t, +pub lo_offset: crate::ctypes::c_int, +pub lo_encrypt_type: crate::ctypes::c_int, +pub lo_encrypt_key_size: crate::ctypes::c_int, +pub lo_flags: crate::ctypes::c_int, +pub lo_name: [crate::ctypes::c_char; 64usize], +pub lo_encrypt_key: [crate::ctypes::c_uchar; 32usize], +pub lo_init: [crate::ctypes::c_ulong; 2usize], +pub reserved: [crate::ctypes::c_char; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct loop_info64 { +pub lo_device: __u64, +pub lo_inode: __u64, +pub lo_rdevice: __u64, +pub lo_offset: __u64, +pub lo_sizelimit: __u64, +pub lo_number: __u32, +pub lo_encrypt_type: __u32, +pub lo_encrypt_key_size: __u32, +pub lo_flags: __u32, +pub lo_file_name: [__u8; 64usize], +pub lo_crypt_name: [__u8; 64usize], +pub lo_encrypt_key: [__u8; 32usize], +pub lo_init: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct loop_config { +pub fd: __u32, +pub block_size: __u32, +pub info: loop_info64, +pub __reserved: [__u64; 8usize], +} +pub const LO_NAME_SIZE: u32 = 64; +pub const LO_KEY_SIZE: u32 = 32; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const LO_CRYPT_NONE: u32 = 0; +pub const LO_CRYPT_XOR: u32 = 1; +pub const LO_CRYPT_DES: u32 = 2; +pub const LO_CRYPT_FISH2: u32 = 3; +pub const LO_CRYPT_BLOW: u32 = 4; +pub const LO_CRYPT_CAST128: u32 = 5; +pub const LO_CRYPT_IDEA: u32 = 6; +pub const LO_CRYPT_DUMMY: u32 = 9; +pub const LO_CRYPT_SKIPJACK: u32 = 10; +pub const LO_CRYPT_CRYPTOAPI: u32 = 18; +pub const MAX_LO_CRYPT: u32 = 20; +pub const LOOP_SET_FD: u32 = 19456; +pub const LOOP_CLR_FD: u32 = 19457; +pub const LOOP_SET_STATUS: u32 = 19458; +pub const LOOP_GET_STATUS: u32 = 19459; +pub const LOOP_SET_STATUS64: u32 = 19460; +pub const LOOP_GET_STATUS64: u32 = 19461; +pub const LOOP_CHANGE_FD: u32 = 19462; +pub const LOOP_SET_CAPACITY: u32 = 19463; +pub const LOOP_SET_DIRECT_IO: u32 = 19464; +pub const LOOP_SET_BLOCK_SIZE: u32 = 19465; +pub const LOOP_CONFIGURE: u32 = 19466; +pub const LOOP_CTL_ADD: u32 = 19584; +pub const LOOP_CTL_REMOVE: u32 = 19585; +pub const LOOP_CTL_GET_FREE: u32 = 19586; +pub const LO_FLAGS_READ_ONLY: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_READ_ONLY; +pub const LO_FLAGS_AUTOCLEAR: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_AUTOCLEAR; +pub const LO_FLAGS_PARTSCAN: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_PARTSCAN; +pub const LO_FLAGS_DIRECT_IO: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_DIRECT_IO; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +LO_FLAGS_READ_ONLY = 1, +LO_FLAGS_AUTOCLEAR = 4, +LO_FLAGS_PARTSCAN = 8, +LO_FLAGS_DIRECT_IO = 16, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/mempolicy.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/mempolicy.rs new file mode 100644 index 0000000000000000000000000000000000000000..b25b97d13606828b48fd2b66a72f05b8ac145533 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/mempolicy.rs @@ -0,0 +1,177 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EWOULDBLOCK: u32 = 11; +pub const EINPROGRESS: u32 = 36; +pub const EALREADY: u32 = 37; +pub const ENOTSOCK: u32 = 38; +pub const EDESTADDRREQ: u32 = 39; +pub const EMSGSIZE: u32 = 40; +pub const EPROTOTYPE: u32 = 41; +pub const ENOPROTOOPT: u32 = 42; +pub const EPROTONOSUPPORT: u32 = 43; +pub const ESOCKTNOSUPPORT: u32 = 44; +pub const EOPNOTSUPP: u32 = 45; +pub const EPFNOSUPPORT: u32 = 46; +pub const EAFNOSUPPORT: u32 = 47; +pub const EADDRINUSE: u32 = 48; +pub const EADDRNOTAVAIL: u32 = 49; +pub const ENETDOWN: u32 = 50; +pub const ENETUNREACH: u32 = 51; +pub const ENETRESET: u32 = 52; +pub const ECONNABORTED: u32 = 53; +pub const ECONNRESET: u32 = 54; +pub const ENOBUFS: u32 = 55; +pub const EISCONN: u32 = 56; +pub const ENOTCONN: u32 = 57; +pub const ESHUTDOWN: u32 = 58; +pub const ETOOMANYREFS: u32 = 59; +pub const ETIMEDOUT: u32 = 60; +pub const ECONNREFUSED: u32 = 61; +pub const ELOOP: u32 = 62; +pub const ENAMETOOLONG: u32 = 63; +pub const EHOSTDOWN: u32 = 64; +pub const EHOSTUNREACH: u32 = 65; +pub const ENOTEMPTY: u32 = 66; +pub const EPROCLIM: u32 = 67; +pub const EUSERS: u32 = 68; +pub const EDQUOT: u32 = 69; +pub const ESTALE: u32 = 70; +pub const EREMOTE: u32 = 71; +pub const ENOSTR: u32 = 72; +pub const ETIME: u32 = 73; +pub const ENOSR: u32 = 74; +pub const ENOMSG: u32 = 75; +pub const EBADMSG: u32 = 76; +pub const EIDRM: u32 = 77; +pub const EDEADLK: u32 = 78; +pub const ENOLCK: u32 = 79; +pub const ENONET: u32 = 80; +pub const ERREMOTE: u32 = 81; +pub const ENOLINK: u32 = 82; +pub const EADV: u32 = 83; +pub const ESRMNT: u32 = 84; +pub const ECOMM: u32 = 85; +pub const EPROTO: u32 = 86; +pub const EMULTIHOP: u32 = 87; +pub const EDOTDOT: u32 = 88; +pub const EREMCHG: u32 = 89; +pub const ENOSYS: u32 = 90; +pub const ESTRPIPE: u32 = 91; +pub const EOVERFLOW: u32 = 92; +pub const EBADFD: u32 = 93; +pub const ECHRNG: u32 = 94; +pub const EL2NSYNC: u32 = 95; +pub const EL3HLT: u32 = 96; +pub const EL3RST: u32 = 97; +pub const ELNRNG: u32 = 98; +pub const EUNATCH: u32 = 99; +pub const ENOCSI: u32 = 100; +pub const EL2HLT: u32 = 101; +pub const EBADE: u32 = 102; +pub const EBADR: u32 = 103; +pub const EXFULL: u32 = 104; +pub const ENOANO: u32 = 105; +pub const EBADRQC: u32 = 106; +pub const EBADSLT: u32 = 107; +pub const EDEADLOCK: u32 = 108; +pub const EBFONT: u32 = 109; +pub const ELIBEXEC: u32 = 110; +pub const ENODATA: u32 = 111; +pub const ELIBBAD: u32 = 112; +pub const ENOPKG: u32 = 113; +pub const ELIBACC: u32 = 114; +pub const ENOTUNIQ: u32 = 115; +pub const ERESTART: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EILSEQ: u32 = 122; +pub const ELIBMAX: u32 = 123; +pub const ELIBSCN: u32 = 124; +pub const ENOMEDIUM: u32 = 125; +pub const EMEDIUMTYPE: u32 = 126; +pub const ECANCELED: u32 = 127; +pub const ENOKEY: u32 = 128; +pub const EKEYEXPIRED: u32 = 129; +pub const EKEYREVOKED: u32 = 130; +pub const EKEYREJECTED: u32 = 131; +pub const EOWNERDEAD: u32 = 132; +pub const ENOTRECOVERABLE: u32 = 133; +pub const ERFKILL: u32 = 134; +pub const EHWPOISON: u32 = 135; +pub const MPOL_F_STATIC_NODES: u32 = 32768; +pub const MPOL_F_RELATIVE_NODES: u32 = 16384; +pub const MPOL_F_NUMA_BALANCING: u32 = 8192; +pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_F_NODE: u32 = 1; +pub const MPOL_F_ADDR: u32 = 2; +pub const MPOL_F_MEMS_ALLOWED: u32 = 4; +pub const MPOL_MF_STRICT: u32 = 1; +pub const MPOL_MF_MOVE: u32 = 2; +pub const MPOL_MF_MOVE_ALL: u32 = 4; +pub const MPOL_MF_LAZY: u32 = 8; +pub const MPOL_MF_INTERNAL: u32 = 16; +pub const MPOL_MF_VALID: u32 = 7; +pub const MPOL_F_SHARED: u32 = 1; +pub const MPOL_F_MOF: u32 = 8; +pub const MPOL_F_MORON: u32 = 16; +pub const RECLAIM_ZONE: u32 = 1; +pub const RECLAIM_WRITE: u32 = 2; +pub const RECLAIM_UNMAP: u32 = 4; +pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; +pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; +pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; +pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; +pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; +pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; +pub const MPOL_WEIGHTED_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_WEIGHTED_INTERLEAVE; +pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +MPOL_DEFAULT = 0, +MPOL_PREFERRED = 1, +MPOL_BIND = 2, +MPOL_INTERLEAVE = 3, +MPOL_LOCAL = 4, +MPOL_PREFERRED_MANY = 5, +MPOL_WEIGHTED_INTERLEAVE = 6, +MPOL_MAX = 7, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/net.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/net.rs new file mode 100644 index 0000000000000000000000000000000000000000..cde5fb0f3ed06a795d8c63a6f1aae93b63ccbd86 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/net.rs @@ -0,0 +1,3713 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_suseconds_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_sa_family_t = crate::ctypes::c_ushort; +pub type socklen_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] +pub struct __BindgenBitfieldUnit { +storage: Storage, +} +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +pub struct __BindgenUnionField(::core::marker::PhantomData); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_suseconds_t, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __kernel_sockaddr_storage { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { +pub ss_family: __kernel_sa_family_t, +pub __data: [crate::ctypes::c_char; 126usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct in_addr { +pub s_addr: __be32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_mreq { +pub imr_multiaddr: in_addr, +pub imr_interface: in_addr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_mreqn { +pub imr_multiaddr: in_addr, +pub imr_address: in_addr, +pub imr_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_mreq_source { +pub imr_multiaddr: __be32, +pub imr_interface: __be32, +pub imr_sourceaddr: __be32, +} +#[repr(C)] +pub struct ip_msfilter { +pub imsf_multiaddr: __be32, +pub imsf_interface: __be32, +pub imsf_fmode: __u32, +pub imsf_numsrc: __u32, +pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, +} +#[repr(C)] +pub struct ip_msfilter__bindgen_ty_1 { +pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, +pub __bindgen_anon_1: __BindgenUnionField, +pub bindgen_union_field: u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { +pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, +pub imsf_slist_flex: __IncompleteArrayField<__be32>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct group_req { +pub gr_interface: __u32, +pub gr_group: __kernel_sockaddr_storage, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct group_source_req { +pub gsr_interface: __u32, +pub gsr_group: __kernel_sockaddr_storage, +pub gsr_source: __kernel_sockaddr_storage, +} +#[repr(C)] +pub struct group_filter { +pub __bindgen_anon_1: group_filter__bindgen_ty_1, +} +#[repr(C)] +pub struct group_filter__bindgen_ty_1 { +pub __bindgen_anon_1: __BindgenUnionField, +pub __bindgen_anon_2: __BindgenUnionField, +pub bindgen_union_field: [u64; 34usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { +pub gf_interface_aux: __u32, +pub gf_group_aux: __kernel_sockaddr_storage, +pub gf_fmode_aux: __u32, +pub gf_numsrc_aux: __u32, +pub gf_slist: [__kernel_sockaddr_storage; 1usize], +} +#[repr(C)] +pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { +pub gf_interface: __u32, +pub gf_group: __kernel_sockaddr_storage, +pub gf_fmode: __u32, +pub gf_numsrc: __u32, +pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct in_pktinfo { +pub ipi_ifindex: crate::ctypes::c_int, +pub ipi_spec_dst: in_addr, +pub ipi_addr: in_addr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_in { +pub sin_family: __kernel_sa_family_t, +pub sin_port: __be16, +pub sin_addr: in_addr, +pub __pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct iphdr { +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, +pub tos: __u8, +pub tot_len: __be16, +pub id: __be16, +pub frag_off: __be16, +pub ttl: __u8, +pub protocol: __u8, +pub check: __sum16, +pub __bindgen_anon_1: iphdr__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { +pub saddr: __be32, +pub daddr: __be32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { +pub saddr: __be32, +pub daddr: __be32, +} +#[repr(C)] +#[derive(Debug)] +pub struct ip_auth_hdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +pub reserved: __be16, +pub spi: __be32, +pub seq_no: __be32, +pub auth_data: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug)] +pub struct ip_esp_hdr { +pub spi: __be32, +pub seq_no: __be32, +pub enc_data: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_comp_hdr { +pub nexthdr: __u8, +pub flags: __u8, +pub cpi: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_beet_phdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +pub padlen: __u8, +pub reserved: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_iptfs_hdr { +pub subtype: __u8, +pub flags: __u8, +pub block_offset: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_iptfs_cc_hdr { +pub subtype: __u8, +pub flags: __u8, +pub block_offset: __be16, +pub loss_rate: __be32, +pub rtt_adelay_xdelay: __be64, +pub tval: __be32, +pub techo: __be32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_addr { +pub in6_u: in6_addr__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sockaddr_in6 { +pub sin6_family: crate::ctypes::c_ushort, +pub sin6_port: __be16, +pub sin6_flowinfo: __be32, +pub sin6_addr: in6_addr, +pub sin6_scope_id: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6_mreq { +pub ipv6mr_multiaddr: in6_addr, +pub ipv6mr_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_flowlabel_req { +pub flr_dst: in6_addr, +pub flr_label: __be32, +pub flr_action: __u8, +pub flr_share: __u8, +pub flr_flags: __u16, +pub flr_expires: __u16, +pub flr_linger: __u16, +pub __flr_pad: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_pktinfo { +pub ipi6_addr: in6_addr, +pub ipi6_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ip6_mtuinfo { +pub ip6m_addr: sockaddr_in6, +pub ip6m_mtu: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_ifreq { +pub ifr6_addr: in6_addr, +pub ifr6_prefixlen: __u32, +pub ifr6_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ipv6_rt_hdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +pub type_: __u8, +pub segments_left: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct ipv6_opt_hdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +} +#[repr(C)] +pub struct rt0_hdr { +pub rt_hdr: ipv6_rt_hdr, +pub reserved: __u32, +pub addr: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct rt2_hdr { +pub rt_hdr: ipv6_rt_hdr, +pub reserved: __u32, +pub addr: in6_addr, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct ipv6_destopt_hao { +pub type_: __u8, +pub length: __u8, +pub addr: in6_addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6hdr { +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, +pub flow_lbl: [__u8; 3usize], +pub payload_len: __be16, +pub nexthdr: __u8, +pub hop_limit: __u8, +pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { +pub saddr: in6_addr, +pub daddr: in6_addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { +pub saddr: in6_addr, +pub daddr: in6_addr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcphdr { +pub source: __be16, +pub dest: __be16, +pub seq: __be32, +pub ack_seq: __be32, +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +pub window: __be16, +pub check: __sum16, +pub urg_ptr: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_repair_opt { +pub opt_code: __u32, +pub opt_val: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_repair_window { +pub snd_wl1: __u32, +pub snd_wnd: __u32, +pub max_window: __u32, +pub rcv_wnd: __u32, +pub rcv_wup: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_info { +pub tcpi_state: __u8, +pub tcpi_ca_state: __u8, +pub tcpi_retransmits: __u8, +pub tcpi_probes: __u8, +pub tcpi_backoff: __u8, +pub tcpi_options: __u8, +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +pub tcpi_rto: __u32, +pub tcpi_ato: __u32, +pub tcpi_snd_mss: __u32, +pub tcpi_rcv_mss: __u32, +pub tcpi_unacked: __u32, +pub tcpi_sacked: __u32, +pub tcpi_lost: __u32, +pub tcpi_retrans: __u32, +pub tcpi_fackets: __u32, +pub tcpi_last_data_sent: __u32, +pub tcpi_last_ack_sent: __u32, +pub tcpi_last_data_recv: __u32, +pub tcpi_last_ack_recv: __u32, +pub tcpi_pmtu: __u32, +pub tcpi_rcv_ssthresh: __u32, +pub tcpi_rtt: __u32, +pub tcpi_rttvar: __u32, +pub tcpi_snd_ssthresh: __u32, +pub tcpi_snd_cwnd: __u32, +pub tcpi_advmss: __u32, +pub tcpi_reordering: __u32, +pub tcpi_rcv_rtt: __u32, +pub tcpi_rcv_space: __u32, +pub tcpi_total_retrans: __u32, +pub tcpi_pacing_rate: __u64, +pub tcpi_max_pacing_rate: __u64, +pub tcpi_bytes_acked: __u64, +pub tcpi_bytes_received: __u64, +pub tcpi_segs_out: __u32, +pub tcpi_segs_in: __u32, +pub tcpi_notsent_bytes: __u32, +pub tcpi_min_rtt: __u32, +pub tcpi_data_segs_in: __u32, +pub tcpi_data_segs_out: __u32, +pub tcpi_delivery_rate: __u64, +pub tcpi_busy_time: __u64, +pub tcpi_rwnd_limited: __u64, +pub tcpi_sndbuf_limited: __u64, +pub tcpi_delivered: __u32, +pub tcpi_delivered_ce: __u32, +pub tcpi_bytes_sent: __u64, +pub tcpi_bytes_retrans: __u64, +pub tcpi_dsack_dups: __u32, +pub tcpi_reord_seen: __u32, +pub tcpi_rcv_ooopack: __u32, +pub tcpi_snd_wnd: __u32, +pub tcpi_rcv_wnd: __u32, +pub tcpi_rehash: __u32, +pub tcpi_total_rto: __u16, +pub tcpi_total_rto_recoveries: __u16, +pub tcpi_total_rto_time: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tcp_md5sig { +pub tcpm_addr: __kernel_sockaddr_storage, +pub tcpm_flags: __u8, +pub tcpm_prefixlen: __u8, +pub tcpm_keylen: __u16, +pub tcpm_ifindex: crate::ctypes::c_int, +pub tcpm_key: [__u8; 80usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_diag_md5sig { +pub tcpm_family: __u8, +pub tcpm_prefixlen: __u8, +pub tcpm_keylen: __u16, +pub tcpm_addr: [__be32; 4usize], +pub tcpm_key: [__u8; 80usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tcp_ao_add { +pub addr: __kernel_sockaddr_storage, +pub alg_name: [crate::ctypes::c_char; 64usize], +pub ifindex: __s32, +pub _bitfield_align_1: [u32; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +pub reserved2: __u16, +pub prefix: __u8, +pub sndid: __u8, +pub rcvid: __u8, +pub maclen: __u8, +pub keyflags: __u8, +pub keylen: __u8, +pub key: [__u8; 80usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tcp_ao_del { +pub addr: __kernel_sockaddr_storage, +pub ifindex: __s32, +pub _bitfield_align_1: [u32; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +pub reserved2: __u16, +pub prefix: __u8, +pub sndid: __u8, +pub rcvid: __u8, +pub current_key: __u8, +pub rnext: __u8, +pub keyflags: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_ao_info_opt { +pub _bitfield_align_1: [u32; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +pub reserved2: __u16, +pub current_key: __u8, +pub rnext: __u8, +pub pkt_good: __u64, +pub pkt_bad: __u64, +pub pkt_key_not_found: __u64, +pub pkt_ao_required: __u64, +pub pkt_dropped_icmp: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tcp_ao_getsockopt { +pub addr: __kernel_sockaddr_storage, +pub alg_name: [crate::ctypes::c_char; 64usize], +pub key: [__u8; 80usize], +pub nkeys: __u32, +pub _bitfield_align_1: [u16; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +pub sndid: __u8, +pub rcvid: __u8, +pub prefix: __u8, +pub maclen: __u8, +pub keyflags: __u8, +pub keylen: __u8, +pub ifindex: __s32, +pub pkt_good: __u64, +pub pkt_bad: __u64, +} +#[repr(C)] +#[repr(align(8))] +#[derive(Debug, Copy, Clone)] +pub struct tcp_ao_repair { +pub snt_isn: __be32, +pub rcv_isn: __be32, +pub snd_sne: __u32, +pub rcv_sne: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_zerocopy_receive { +pub address: __u64, +pub length: __u32, +pub recv_skip_hint: __u32, +pub inq: __u32, +pub err: __s32, +pub copybuf_address: __u64, +pub copybuf_len: __s32, +pub flags: __u32, +pub msg_control: __u64, +pub msg_controllen: __u64, +pub msg_flags: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_un { +pub sun_family: __kernel_sa_family_t, +pub sun_path: [crate::ctypes::c_char; 108usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sockaddr { +pub __storage: __kernel_sockaddr_storage, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sync_serial_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct te1_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +pub slot_map: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct raw_hdlc_proto { +pub encoding: crate::ctypes::c_ushort, +pub parity: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto { +pub t391: crate::ctypes::c_uint, +pub t392: crate::ctypes::c_uint, +pub n391: crate::ctypes::c_uint, +pub n392: crate::ctypes::c_uint, +pub n393: crate::ctypes::c_uint, +pub lmi: crate::ctypes::c_ushort, +pub dce: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc { +pub dlci: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc_info { +pub dlci: crate::ctypes::c_uint, +pub master: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cisco_proto { +pub interval: crate::ctypes::c_uint, +pub timeout: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct x25_hdlc_proto { +pub dce: crate::ctypes::c_ushort, +pub modulo: crate::ctypes::c_uint, +pub window: crate::ctypes::c_uint, +pub t1: crate::ctypes::c_uint, +pub t2: crate::ctypes::c_uint, +pub n2: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifmap { +pub mem_start: crate::ctypes::c_ulong, +pub mem_end: crate::ctypes::c_ulong, +pub base_addr: crate::ctypes::c_ushort, +pub irq: crate::ctypes::c_uchar, +pub dma: crate::ctypes::c_uchar, +pub port: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct if_settings { +pub type_: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +pub ifs_ifsu: if_settings__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifreq { +pub ifr_ifrn: ifreq__bindgen_ty_1, +pub ifr_ifru: ifreq__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifconf { +pub ifc_len: crate::ctypes::c_int, +pub ifc_ifcu: ifconf__bindgen_ty_1, +} +#[repr(C)] +pub struct xt_entry_match { +pub u: xt_entry_match__bindgen_ty_1, +pub data: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 { +pub match_size: __u16, +pub name: [crate::ctypes::c_char; 29usize], +pub revision: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 { +pub match_size: __u16, +pub match_: *mut xt_match, +} +#[repr(C)] +pub struct xt_entry_target { +pub u: xt_entry_target__bindgen_ty_1, +pub data: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 { +pub target_size: __u16, +pub name: [crate::ctypes::c_char; 29usize], +pub revision: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 { +pub target_size: __u16, +pub target: *mut xt_target, +} +#[repr(C)] +pub struct xt_standard_target { +pub target: xt_entry_target, +pub verdict: crate::ctypes::c_int, +} +#[repr(C)] +pub struct xt_error_target { +pub target: xt_entry_target, +pub errorname: [crate::ctypes::c_char; 30usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_get_revision { +pub name: [crate::ctypes::c_char; 29usize], +pub revision: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _xt_align { +pub u8_: __u8, +pub u16_: __u16, +pub u32_: __u32, +pub u64_: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_counters { +pub pcnt: __u64, +pub bcnt: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct xt_counters_info { +pub name: [crate::ctypes::c_char; 32usize], +pub num_counters: crate::ctypes::c_uint, +pub counters: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_tcp { +pub spts: [__u16; 2usize], +pub dpts: [__u16; 2usize], +pub option: __u8, +pub flg_mask: __u8, +pub flg_cmp: __u8, +pub invflags: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_udp { +pub spts: [__u16; 2usize], +pub dpts: [__u16; 2usize], +pub invflags: __u8, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ip6t_ip6 { +pub src: in6_addr, +pub dst: in6_addr, +pub smsk: in6_addr, +pub dmsk: in6_addr, +pub iniface: [crate::ctypes::c_char; 16usize], +pub outiface: [crate::ctypes::c_char; 16usize], +pub iniface_mask: [crate::ctypes::c_uchar; 16usize], +pub outiface_mask: [crate::ctypes::c_uchar; 16usize], +pub proto: __u16, +pub tos: __u8, +pub flags: __u8, +pub invflags: __u8, +} +#[repr(C)] +pub struct ip6t_entry { +pub ipv6: ip6t_ip6, +pub nfcache: crate::ctypes::c_uint, +pub target_offset: __u16, +pub next_offset: __u16, +pub comefrom: crate::ctypes::c_uint, +pub counters: xt_counters, +pub elems: __IncompleteArrayField, +} +#[repr(C)] +pub struct ip6t_standard { +pub entry: ip6t_entry, +pub target: xt_standard_target, +} +#[repr(C)] +pub struct ip6t_error { +pub entry: ip6t_entry, +pub target: xt_error_target, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip6t_icmp { +pub type_: __u8, +pub code: [__u8; 2usize], +pub invflags: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip6t_getinfo { +pub name: [crate::ctypes::c_char; 32usize], +pub valid_hooks: crate::ctypes::c_uint, +pub hook_entry: [crate::ctypes::c_uint; 5usize], +pub underflow: [crate::ctypes::c_uint; 5usize], +pub num_entries: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +} +#[repr(C)] +pub struct ip6t_replace { +pub name: [crate::ctypes::c_char; 32usize], +pub valid_hooks: crate::ctypes::c_uint, +pub num_entries: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +pub hook_entry: [crate::ctypes::c_uint; 5usize], +pub underflow: [crate::ctypes::c_uint; 5usize], +pub num_counters: crate::ctypes::c_uint, +pub counters: *mut xt_counters, +pub entries: __IncompleteArrayField, +} +#[repr(C)] +pub struct ip6t_get_entries { +pub name: [crate::ctypes::c_char; 32usize], +pub size: crate::ctypes::c_uint, +pub entrytable: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct so_timestamping { +pub flags: crate::ctypes::c_int, +pub bind_phc: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hwtstamp_config { +pub flags: crate::ctypes::c_int, +pub tx_type: crate::ctypes::c_int, +pub rx_filter: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct scm_ts_pktinfo { +pub if_index: __u32, +pub pkt_length: __u32, +pub reserved: [__u32; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sock_txtime { +pub clockid: __kernel_clockid_t, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct linger { +pub l_onoff: crate::ctypes::c_int, +pub l_linger: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct msghdr { +pub msg_name: *mut crate::ctypes::c_void, +pub msg_namelen: crate::ctypes::c_int, +pub msg_iov: *mut iovec, +pub msg_iovlen: usize, +pub msg_control: *mut crate::ctypes::c_void, +pub msg_controllen: usize, +pub msg_flags: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cmsghdr { +pub cmsg_len: usize, +pub cmsg_level: crate::ctypes::c_int, +pub cmsg_type: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ucred { +pub pid: __u32, +pub uid: __u32, +pub gid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mmsghdr { +pub msg_hdr: msghdr, +pub msg_len: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_match { +pub _address: u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_target { +pub _address: u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iovec { +pub _address: u8, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _K_SS_MAXSIZE: u32 = 128; +pub const SOCK_SNDBUF_LOCK: u32 = 1; +pub const SOCK_RCVBUF_LOCK: u32 = 2; +pub const SOCK_BUF_LOCK_MASK: u32 = 3; +pub const SOCK_TXREHASH_DEFAULT: u32 = 255; +pub const SOCK_TXREHASH_DISABLED: u32 = 0; +pub const SOCK_TXREHASH_ENABLED: u32 = 1; +pub const IP_TOS: u32 = 1; +pub const IP_TTL: u32 = 2; +pub const IP_HDRINCL: u32 = 3; +pub const IP_OPTIONS: u32 = 4; +pub const IP_ROUTER_ALERT: u32 = 5; +pub const IP_RECVOPTS: u32 = 6; +pub const IP_RETOPTS: u32 = 7; +pub const IP_PKTINFO: u32 = 8; +pub const IP_PKTOPTIONS: u32 = 9; +pub const IP_MTU_DISCOVER: u32 = 10; +pub const IP_RECVERR: u32 = 11; +pub const IP_RECVTTL: u32 = 12; +pub const IP_RECVTOS: u32 = 13; +pub const IP_MTU: u32 = 14; +pub const IP_FREEBIND: u32 = 15; +pub const IP_IPSEC_POLICY: u32 = 16; +pub const IP_XFRM_POLICY: u32 = 17; +pub const IP_PASSSEC: u32 = 18; +pub const IP_TRANSPARENT: u32 = 19; +pub const IP_RECVRETOPTS: u32 = 7; +pub const IP_ORIGDSTADDR: u32 = 20; +pub const IP_RECVORIGDSTADDR: u32 = 20; +pub const IP_MINTTL: u32 = 21; +pub const IP_NODEFRAG: u32 = 22; +pub const IP_CHECKSUM: u32 = 23; +pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; +pub const IP_RECVFRAGSIZE: u32 = 25; +pub const IP_RECVERR_RFC4884: u32 = 26; +pub const IP_PMTUDISC_DONT: u32 = 0; +pub const IP_PMTUDISC_WANT: u32 = 1; +pub const IP_PMTUDISC_DO: u32 = 2; +pub const IP_PMTUDISC_PROBE: u32 = 3; +pub const IP_PMTUDISC_INTERFACE: u32 = 4; +pub const IP_PMTUDISC_OMIT: u32 = 5; +pub const IP_MULTICAST_IF: u32 = 32; +pub const IP_MULTICAST_TTL: u32 = 33; +pub const IP_MULTICAST_LOOP: u32 = 34; +pub const IP_ADD_MEMBERSHIP: u32 = 35; +pub const IP_DROP_MEMBERSHIP: u32 = 36; +pub const IP_UNBLOCK_SOURCE: u32 = 37; +pub const IP_BLOCK_SOURCE: u32 = 38; +pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; +pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; +pub const IP_MSFILTER: u32 = 41; +pub const MCAST_JOIN_GROUP: u32 = 42; +pub const MCAST_BLOCK_SOURCE: u32 = 43; +pub const MCAST_UNBLOCK_SOURCE: u32 = 44; +pub const MCAST_LEAVE_GROUP: u32 = 45; +pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; +pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; +pub const MCAST_MSFILTER: u32 = 48; +pub const IP_MULTICAST_ALL: u32 = 49; +pub const IP_UNICAST_IF: u32 = 50; +pub const IP_LOCAL_PORT_RANGE: u32 = 51; +pub const IP_PROTOCOL: u32 = 52; +pub const MCAST_EXCLUDE: u32 = 0; +pub const MCAST_INCLUDE: u32 = 1; +pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; +pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; +pub const __SOCK_SIZE__: u32 = 16; +pub const IN_CLASSA_NET: u32 = 4278190080; +pub const IN_CLASSA_NSHIFT: u32 = 24; +pub const IN_CLASSA_HOST: u32 = 16777215; +pub const IN_CLASSA_MAX: u32 = 128; +pub const IN_CLASSB_NET: u32 = 4294901760; +pub const IN_CLASSB_NSHIFT: u32 = 16; +pub const IN_CLASSB_HOST: u32 = 65535; +pub const IN_CLASSB_MAX: u32 = 65536; +pub const IN_CLASSC_NET: u32 = 4294967040; +pub const IN_CLASSC_NSHIFT: u32 = 8; +pub const IN_CLASSC_HOST: u32 = 255; +pub const IN_MULTICAST_NET: u32 = 3758096384; +pub const IN_CLASSE_NET: u32 = 4294967295; +pub const IN_CLASSE_NSHIFT: u32 = 0; +pub const IN_LOOPBACKNET: u32 = 127; +pub const INADDR_LOOPBACK: u32 = 2130706433; +pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; +pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; +pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; +pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; +pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; +pub const __BIG_ENDIAN: u32 = 4321; +pub const ASI_NULL1: u32 = 0; +pub const ASI_NULL2: u32 = 1; +pub const ASI_CONTROL: u32 = 2; +pub const ASI_SEGMAP: u32 = 3; +pub const ASI_PTE: u32 = 4; +pub const ASI_HWFLUSHSEG: u32 = 5; +pub const ASI_HWFLUSHPAGE: u32 = 6; +pub const ASI_REGMAP: u32 = 6; +pub const ASI_HWFLUSHCONTEXT: u32 = 7; +pub const ASI_USERTXT: u32 = 8; +pub const ASI_KERNELTXT: u32 = 9; +pub const ASI_USERDATA: u32 = 10; +pub const ASI_KERNELDATA: u32 = 11; +pub const ASI_FLUSHSEG: u32 = 12; +pub const ASI_FLUSHPG: u32 = 13; +pub const ASI_FLUSHCTX: u32 = 14; +pub const ASI_M_RES00: u32 = 0; +pub const ASI_M_UNA01: u32 = 1; +pub const ASI_M_MXCC: u32 = 2; +pub const ASI_M_FLUSH_PROBE: u32 = 3; +pub const ASI_M_MMUREGS: u32 = 4; +pub const ASI_M_TLBDIAG: u32 = 5; +pub const ASI_M_DIAGS: u32 = 6; +pub const ASI_M_IODIAG: u32 = 7; +pub const ASI_M_USERTXT: u32 = 8; +pub const ASI_M_KERNELTXT: u32 = 9; +pub const ASI_M_USERDATA: u32 = 10; +pub const ASI_M_KERNELDATA: u32 = 11; +pub const ASI_M_TXTC_TAG: u32 = 12; +pub const ASI_M_TXTC_DATA: u32 = 13; +pub const ASI_M_DATAC_TAG: u32 = 14; +pub const ASI_M_DATAC_DATA: u32 = 15; +pub const ASI_M_FLUSH_PAGE: u32 = 16; +pub const ASI_M_FLUSH_SEG: u32 = 17; +pub const ASI_M_FLUSH_REGION: u32 = 18; +pub const ASI_M_FLUSH_CTX: u32 = 19; +pub const ASI_M_FLUSH_USER: u32 = 20; +pub const ASI_M_BCOPY: u32 = 23; +pub const ASI_M_IFLUSH_PAGE: u32 = 24; +pub const ASI_M_IFLUSH_SEG: u32 = 25; +pub const ASI_M_IFLUSH_REGION: u32 = 26; +pub const ASI_M_IFLUSH_CTX: u32 = 27; +pub const ASI_M_IFLUSH_USER: u32 = 28; +pub const ASI_M_BFILL: u32 = 31; +pub const ASI_M_BYPASS: u32 = 32; +pub const ASI_M_FBMEM: u32 = 41; +pub const ASI_M_VMEUS: u32 = 42; +pub const ASI_M_VMEPS: u32 = 43; +pub const ASI_M_VMEUT: u32 = 44; +pub const ASI_M_VMEPT: u32 = 45; +pub const ASI_M_SBUS: u32 = 46; +pub const ASI_M_CTL: u32 = 47; +pub const ASI_M_FLUSH_IWHOLE: u32 = 49; +pub const ASI_M_IC_FLCLEAR: u32 = 54; +pub const ASI_M_DC_FLCLEAR: u32 = 55; +pub const ASI_M_DCDR: u32 = 57; +pub const ASI_M_VIKING_TMP1: u32 = 64; +pub const ASI_M_ACTION: u32 = 76; +pub const ASI_LEON_NOCACHE: u32 = 1; +pub const ASI_LEON_DCACHE_MISS: u32 = 1; +pub const ASI_LEON_CACHEREGS: u32 = 2; +pub const ASI_LEON_IFLUSH: u32 = 16; +pub const ASI_LEON_DFLUSH: u32 = 17; +pub const ASI_LEON_MMUFLUSH: u32 = 24; +pub const ASI_LEON_MMUREGS: u32 = 25; +pub const ASI_LEON_BYPASS: u32 = 28; +pub const ASI_LEON_FLUSH_PAGE: u32 = 16; +pub const ASI_N: u32 = 4; +pub const ASI_NL: u32 = 12; +pub const ASI_AIUP: u32 = 16; +pub const ASI_AIUS: u32 = 17; +pub const ASI_AIUPL: u32 = 24; +pub const ASI_AIUSL: u32 = 25; +pub const ASI_P: u32 = 128; +pub const ASI_S: u32 = 129; +pub const ASI_PNF: u32 = 130; +pub const ASI_SNF: u32 = 131; +pub const ASI_PL: u32 = 136; +pub const ASI_SL: u32 = 137; +pub const ASI_PNFL: u32 = 138; +pub const ASI_SNFL: u32 = 139; +pub const ASI_MCD_PRIV_PRIMARY: u32 = 2; +pub const ASI_MCD_REAL: u32 = 5; +pub const ASI_PHYS_USE_EC: u32 = 20; +pub const ASI_PHYS_BYPASS_EC_E: u32 = 21; +pub const ASI_BLK_AIUP_4V: u32 = 22; +pub const ASI_BLK_AIUS_4V: u32 = 23; +pub const ASI_PHYS_USE_EC_L: u32 = 28; +pub const ASI_PHYS_BYPASS_EC_E_L: u32 = 29; +pub const ASI_BLK_AIUP_L_4V: u32 = 30; +pub const ASI_BLK_AIUS_L_4V: u32 = 31; +pub const ASI_SCRATCHPAD: u32 = 32; +pub const ASI_MMU: u32 = 33; +pub const ASI_BLK_INIT_QUAD_LDD_AIUS: u32 = 35; +pub const ASI_NUCLEUS_QUAD_LDD: u32 = 36; +pub const ASI_QUEUE: u32 = 37; +pub const ASI_QUAD_LDD_PHYS_4V: u32 = 38; +pub const ASI_NUCLEUS_QUAD_LDD_L: u32 = 44; +pub const ASI_QUAD_LDD_PHYS_L_4V: u32 = 46; +pub const ASI_PCACHE_DATA_STATUS: u32 = 48; +pub const ASI_PCACHE_DATA: u32 = 49; +pub const ASI_PCACHE_TAG: u32 = 50; +pub const ASI_PCACHE_SNOOP_TAG: u32 = 51; +pub const ASI_QUAD_LDD_PHYS: u32 = 52; +pub const ASI_WCACHE_VALID_BITS: u32 = 56; +pub const ASI_WCACHE_DATA: u32 = 57; +pub const ASI_WCACHE_TAG: u32 = 58; +pub const ASI_WCACHE_SNOOP_TAG: u32 = 59; +pub const ASI_QUAD_LDD_PHYS_L: u32 = 60; +pub const ASI_SRAM_FAST_INIT: u32 = 64; +pub const ASI_CORE_AVAILABLE: u32 = 65; +pub const ASI_CORE_ENABLE_STAT: u32 = 65; +pub const ASI_CORE_ENABLE: u32 = 65; +pub const ASI_XIR_STEERING: u32 = 65; +pub const ASI_CORE_RUNNING_RW: u32 = 65; +pub const ASI_CORE_RUNNING_W1S: u32 = 65; +pub const ASI_CORE_RUNNING_W1C: u32 = 65; +pub const ASI_CORE_RUNNING_STAT: u32 = 65; +pub const ASI_CMT_ERROR_STEERING: u32 = 65; +pub const ASI_DCACHE_INVALIDATE: u32 = 66; +pub const ASI_DCACHE_UTAG: u32 = 67; +pub const ASI_DCACHE_SNOOP_TAG: u32 = 68; +pub const ASI_LSU_CONTROL: u32 = 69; +pub const ASI_DCU_CONTROL_REG: u32 = 69; +pub const ASI_DCACHE_DATA: u32 = 70; +pub const ASI_DCACHE_TAG: u32 = 71; +pub const ASI_INTR_DISPATCH_STAT: u32 = 72; +pub const ASI_INTR_RECEIVE: u32 = 73; +pub const ASI_UPA_CONFIG: u32 = 74; +pub const ASI_JBUS_CONFIG: u32 = 74; +pub const ASI_SAFARI_CONFIG: u32 = 74; +pub const ASI_SAFARI_ADDRESS: u32 = 74; +pub const ASI_ESTATE_ERROR_EN: u32 = 75; +pub const ASI_AFSR: u32 = 76; +pub const ASI_AFAR: u32 = 77; +pub const ASI_EC_TAG_DATA: u32 = 78; +pub const ASI_IMMU: u32 = 80; +pub const ASI_IMMU_TSB_8KB_PTR: u32 = 81; +pub const ASI_IMMU_TSB_64KB_PTR: u32 = 82; +pub const ASI_ITLB_DATA_IN: u32 = 84; +pub const ASI_ITLB_DATA_ACCESS: u32 = 85; +pub const ASI_ITLB_TAG_READ: u32 = 86; +pub const ASI_IMMU_DEMAP: u32 = 87; +pub const ASI_DMMU: u32 = 88; +pub const ASI_DMMU_TSB_8KB_PTR: u32 = 89; +pub const ASI_DMMU_TSB_64KB_PTR: u32 = 90; +pub const ASI_DMMU_TSB_DIRECT_PTR: u32 = 91; +pub const ASI_DTLB_DATA_IN: u32 = 92; +pub const ASI_DTLB_DATA_ACCESS: u32 = 93; +pub const ASI_DTLB_TAG_READ: u32 = 94; +pub const ASI_DMMU_DEMAP: u32 = 95; +pub const ASI_IIU_INST_TRAP: u32 = 96; +pub const ASI_INTR_ID: u32 = 99; +pub const ASI_CORE_ID: u32 = 99; +pub const ASI_CESR_ID: u32 = 99; +pub const ASI_IC_INSTR: u32 = 102; +pub const ASI_IC_TAG: u32 = 103; +pub const ASI_IC_STAG: u32 = 104; +pub const ASI_IC_PRE_DECODE: u32 = 110; +pub const ASI_IC_NEXT_FIELD: u32 = 111; +pub const ASI_BRPRED_ARRAY: u32 = 111; +pub const ASI_BLK_AIUP: u32 = 112; +pub const ASI_BLK_AIUS: u32 = 113; +pub const ASI_MCU_CTRL_REG: u32 = 114; +pub const ASI_EC_DATA: u32 = 116; +pub const ASI_EC_CTRL: u32 = 117; +pub const ASI_EC_W: u32 = 118; +pub const ASI_UDB_ERROR_W: u32 = 119; +pub const ASI_UDB_CONTROL_W: u32 = 119; +pub const ASI_INTR_W: u32 = 119; +pub const ASI_INTR_DATAN_W: u32 = 119; +pub const ASI_INTR_DISPATCH_W: u32 = 119; +pub const ASI_BLK_AIUPL: u32 = 120; +pub const ASI_BLK_AIUSL: u32 = 121; +pub const ASI_EC_R: u32 = 126; +pub const ASI_UDBH_ERROR_R: u32 = 127; +pub const ASI_UDBL_ERROR_R: u32 = 127; +pub const ASI_UDBH_CONTROL_R: u32 = 127; +pub const ASI_UDBL_CONTROL_R: u32 = 127; +pub const ASI_INTR_R: u32 = 127; +pub const ASI_INTR_DATAN_R: u32 = 127; +pub const ASI_MCD_PRIMARY: u32 = 144; +pub const ASI_MCD_ST_BLKINIT_PRIMARY: u32 = 146; +pub const ASI_PIC: u32 = 176; +pub const ASI_PST8_P: u32 = 192; +pub const ASI_PST8_S: u32 = 193; +pub const ASI_PST16_P: u32 = 194; +pub const ASI_PST16_S: u32 = 195; +pub const ASI_PST32_P: u32 = 196; +pub const ASI_PST32_S: u32 = 197; +pub const ASI_PST8_PL: u32 = 200; +pub const ASI_PST8_SL: u32 = 201; +pub const ASI_PST16_PL: u32 = 202; +pub const ASI_PST16_SL: u32 = 203; +pub const ASI_PST32_PL: u32 = 204; +pub const ASI_PST32_SL: u32 = 205; +pub const ASI_FL8_P: u32 = 208; +pub const ASI_FL8_S: u32 = 209; +pub const ASI_FL16_P: u32 = 210; +pub const ASI_FL16_S: u32 = 211; +pub const ASI_FL8_PL: u32 = 216; +pub const ASI_FL8_SL: u32 = 217; +pub const ASI_FL16_PL: u32 = 218; +pub const ASI_FL16_SL: u32 = 219; +pub const ASI_BLK_COMMIT_P: u32 = 224; +pub const ASI_BLK_COMMIT_S: u32 = 225; +pub const ASI_BLK_INIT_QUAD_LDD_P: u32 = 226; +pub const ASI_BLK_INIT_QUAD_LDD_S: u32 = 227; +pub const ASI_BLK_P: u32 = 240; +pub const ASI_BLK_S: u32 = 241; +pub const ASI_ST_BLKINIT_MRU_P: u32 = 242; +pub const ASI_ST_BLKINIT_MRU_S: u32 = 243; +pub const ASI_BLK_PL: u32 = 248; +pub const ASI_BLK_SL: u32 = 249; +pub const ASI_ST_BLKINIT_MRU_PL: u32 = 250; +pub const ASI_ST_BLKINIT_MRU_SL: u32 = 251; +pub const IPTOS_TOS_MASK: u32 = 30; +pub const IPTOS_LOWDELAY: u32 = 16; +pub const IPTOS_THROUGHPUT: u32 = 8; +pub const IPTOS_RELIABILITY: u32 = 4; +pub const IPTOS_MINCOST: u32 = 2; +pub const IPTOS_PREC_MASK: u32 = 224; +pub const IPTOS_PREC_NETCONTROL: u32 = 224; +pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; +pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; +pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; +pub const IPTOS_PREC_FLASH: u32 = 96; +pub const IPTOS_PREC_IMMEDIATE: u32 = 64; +pub const IPTOS_PREC_PRIORITY: u32 = 32; +pub const IPTOS_PREC_ROUTINE: u32 = 0; +pub const IPOPT_COPY: u32 = 128; +pub const IPOPT_CLASS_MASK: u32 = 96; +pub const IPOPT_NUMBER_MASK: u32 = 31; +pub const IPOPT_CONTROL: u32 = 0; +pub const IPOPT_RESERVED1: u32 = 32; +pub const IPOPT_MEASUREMENT: u32 = 64; +pub const IPOPT_RESERVED2: u32 = 96; +pub const IPOPT_END: u32 = 0; +pub const IPOPT_NOOP: u32 = 1; +pub const IPOPT_SEC: u32 = 130; +pub const IPOPT_LSRR: u32 = 131; +pub const IPOPT_TIMESTAMP: u32 = 68; +pub const IPOPT_CIPSO: u32 = 134; +pub const IPOPT_RR: u32 = 7; +pub const IPOPT_SID: u32 = 136; +pub const IPOPT_SSRR: u32 = 137; +pub const IPOPT_RA: u32 = 148; +pub const IPVERSION: u32 = 4; +pub const MAXTTL: u32 = 255; +pub const IPDEFTTL: u32 = 64; +pub const IPOPT_OPTVAL: u32 = 0; +pub const IPOPT_OLEN: u32 = 1; +pub const IPOPT_OFFSET: u32 = 2; +pub const IPOPT_MINOFF: u32 = 4; +pub const MAX_IPOPTLEN: u32 = 40; +pub const IPOPT_NOP: u32 = 1; +pub const IPOPT_EOL: u32 = 0; +pub const IPOPT_TS: u32 = 68; +pub const IPOPT_TS_TSONLY: u32 = 0; +pub const IPOPT_TS_TSANDADDR: u32 = 1; +pub const IPOPT_TS_PRESPEC: u32 = 3; +pub const IPV4_BEET_PHMAXLEN: u32 = 8; +pub const IPV6_FL_A_GET: u32 = 0; +pub const IPV6_FL_A_PUT: u32 = 1; +pub const IPV6_FL_A_RENEW: u32 = 2; +pub const IPV6_FL_F_CREATE: u32 = 1; +pub const IPV6_FL_F_EXCL: u32 = 2; +pub const IPV6_FL_F_REFLECT: u32 = 4; +pub const IPV6_FL_F_REMOTE: u32 = 8; +pub const IPV6_FL_S_NONE: u32 = 0; +pub const IPV6_FL_S_EXCL: u32 = 1; +pub const IPV6_FL_S_PROCESS: u32 = 2; +pub const IPV6_FL_S_USER: u32 = 3; +pub const IPV6_FL_S_ANY: u32 = 255; +pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; +pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; +pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; +pub const IPV6_PRIORITY_FILLER: u32 = 256; +pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; +pub const IPV6_PRIORITY_RESERVED1: u32 = 768; +pub const IPV6_PRIORITY_BULK: u32 = 1024; +pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; +pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; +pub const IPV6_PRIORITY_CONTROL: u32 = 1792; +pub const IPV6_PRIORITY_8: u32 = 2048; +pub const IPV6_PRIORITY_9: u32 = 2304; +pub const IPV6_PRIORITY_10: u32 = 2560; +pub const IPV6_PRIORITY_11: u32 = 2816; +pub const IPV6_PRIORITY_12: u32 = 3072; +pub const IPV6_PRIORITY_13: u32 = 3328; +pub const IPV6_PRIORITY_14: u32 = 3584; +pub const IPV6_PRIORITY_15: u32 = 3840; +pub const IPPROTO_HOPOPTS: u32 = 0; +pub const IPPROTO_ROUTING: u32 = 43; +pub const IPPROTO_FRAGMENT: u32 = 44; +pub const IPPROTO_ICMPV6: u32 = 58; +pub const IPPROTO_NONE: u32 = 59; +pub const IPPROTO_DSTOPTS: u32 = 60; +pub const IPPROTO_MH: u32 = 135; +pub const IPV6_TLV_PAD1: u32 = 0; +pub const IPV6_TLV_PADN: u32 = 1; +pub const IPV6_TLV_ROUTERALERT: u32 = 5; +pub const IPV6_TLV_CALIPSO: u32 = 7; +pub const IPV6_TLV_IOAM: u32 = 49; +pub const IPV6_TLV_JUMBO: u32 = 194; +pub const IPV6_TLV_HAO: u32 = 201; +pub const IPV6_ADDRFORM: u32 = 1; +pub const IPV6_2292PKTINFO: u32 = 2; +pub const IPV6_2292HOPOPTS: u32 = 3; +pub const IPV6_2292DSTOPTS: u32 = 4; +pub const IPV6_2292RTHDR: u32 = 5; +pub const IPV6_2292PKTOPTIONS: u32 = 6; +pub const IPV6_CHECKSUM: u32 = 7; +pub const IPV6_2292HOPLIMIT: u32 = 8; +pub const IPV6_NEXTHOP: u32 = 9; +pub const IPV6_AUTHHDR: u32 = 10; +pub const IPV6_FLOWINFO: u32 = 11; +pub const IPV6_UNICAST_HOPS: u32 = 16; +pub const IPV6_MULTICAST_IF: u32 = 17; +pub const IPV6_MULTICAST_HOPS: u32 = 18; +pub const IPV6_MULTICAST_LOOP: u32 = 19; +pub const IPV6_ADD_MEMBERSHIP: u32 = 20; +pub const IPV6_DROP_MEMBERSHIP: u32 = 21; +pub const IPV6_ROUTER_ALERT: u32 = 22; +pub const IPV6_MTU_DISCOVER: u32 = 23; +pub const IPV6_MTU: u32 = 24; +pub const IPV6_RECVERR: u32 = 25; +pub const IPV6_V6ONLY: u32 = 26; +pub const IPV6_JOIN_ANYCAST: u32 = 27; +pub const IPV6_LEAVE_ANYCAST: u32 = 28; +pub const IPV6_MULTICAST_ALL: u32 = 29; +pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; +pub const IPV6_RECVERR_RFC4884: u32 = 31; +pub const IPV6_PMTUDISC_DONT: u32 = 0; +pub const IPV6_PMTUDISC_WANT: u32 = 1; +pub const IPV6_PMTUDISC_DO: u32 = 2; +pub const IPV6_PMTUDISC_PROBE: u32 = 3; +pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; +pub const IPV6_PMTUDISC_OMIT: u32 = 5; +pub const IPV6_FLOWLABEL_MGR: u32 = 32; +pub const IPV6_FLOWINFO_SEND: u32 = 33; +pub const IPV6_IPSEC_POLICY: u32 = 34; +pub const IPV6_XFRM_POLICY: u32 = 35; +pub const IPV6_HDRINCL: u32 = 36; +pub const IPV6_RECVPKTINFO: u32 = 49; +pub const IPV6_PKTINFO: u32 = 50; +pub const IPV6_RECVHOPLIMIT: u32 = 51; +pub const IPV6_HOPLIMIT: u32 = 52; +pub const IPV6_RECVHOPOPTS: u32 = 53; +pub const IPV6_HOPOPTS: u32 = 54; +pub const IPV6_RTHDRDSTOPTS: u32 = 55; +pub const IPV6_RECVRTHDR: u32 = 56; +pub const IPV6_RTHDR: u32 = 57; +pub const IPV6_RECVDSTOPTS: u32 = 58; +pub const IPV6_DSTOPTS: u32 = 59; +pub const IPV6_RECVPATHMTU: u32 = 60; +pub const IPV6_PATHMTU: u32 = 61; +pub const IPV6_DONTFRAG: u32 = 62; +pub const IPV6_RECVTCLASS: u32 = 66; +pub const IPV6_TCLASS: u32 = 67; +pub const IPV6_AUTOFLOWLABEL: u32 = 70; +pub const IPV6_ADDR_PREFERENCES: u32 = 72; +pub const IPV6_PREFER_SRC_TMP: u32 = 1; +pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; +pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; +pub const IPV6_PREFER_SRC_COA: u32 = 4; +pub const IPV6_PREFER_SRC_HOME: u32 = 1024; +pub const IPV6_PREFER_SRC_CGA: u32 = 8; +pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; +pub const IPV6_MINHOPCOUNT: u32 = 73; +pub const IPV6_ORIGDSTADDR: u32 = 74; +pub const IPV6_RECVORIGDSTADDR: u32 = 74; +pub const IPV6_TRANSPARENT: u32 = 75; +pub const IPV6_UNICAST_IF: u32 = 76; +pub const IPV6_RECVFRAGSIZE: u32 = 77; +pub const IPV6_FREEBIND: u32 = 78; +pub const IPV6_MIN_MTU: u32 = 1280; +pub const IPV6_SRCRT_STRICT: u32 = 1; +pub const IPV6_SRCRT_TYPE_0: u32 = 0; +pub const IPV6_SRCRT_TYPE_2: u32 = 2; +pub const IPV6_SRCRT_TYPE_3: u32 = 3; +pub const IPV6_SRCRT_TYPE_4: u32 = 4; +pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; +pub const SIOCGSTAMP_OLD: u32 = 35078; +pub const SIOCGSTAMPNS_OLD: u32 = 35079; +pub const SOL_SOCKET: u32 = 65535; +pub const SO_DEBUG: u32 = 1; +pub const SO_PASSCRED: u32 = 2; +pub const SO_REUSEADDR: u32 = 4; +pub const SO_KEEPALIVE: u32 = 8; +pub const SO_DONTROUTE: u32 = 16; +pub const SO_BROADCAST: u32 = 32; +pub const SO_PEERCRED: u32 = 64; +pub const SO_LINGER: u32 = 128; +pub const SO_OOBINLINE: u32 = 256; +pub const SO_REUSEPORT: u32 = 512; +pub const SO_BSDCOMPAT: u32 = 1024; +pub const SO_RCVLOWAT: u32 = 2048; +pub const SO_SNDLOWAT: u32 = 4096; +pub const SO_RCVTIMEO_OLD: u32 = 8192; +pub const SO_SNDTIMEO_OLD: u32 = 16384; +pub const SO_ACCEPTCONN: u32 = 32768; +pub const SO_SNDBUF: u32 = 4097; +pub const SO_RCVBUF: u32 = 4098; +pub const SO_SNDBUFFORCE: u32 = 4106; +pub const SO_RCVBUFFORCE: u32 = 4107; +pub const SO_ERROR: u32 = 4103; +pub const SO_TYPE: u32 = 4104; +pub const SO_PROTOCOL: u32 = 4136; +pub const SO_DOMAIN: u32 = 4137; +pub const SO_NO_CHECK: u32 = 11; +pub const SO_PRIORITY: u32 = 12; +pub const SO_BINDTODEVICE: u32 = 13; +pub const SO_ATTACH_FILTER: u32 = 26; +pub const SO_DETACH_FILTER: u32 = 27; +pub const SO_GET_FILTER: u32 = 26; +pub const SO_PEERNAME: u32 = 28; +pub const SO_PEERSEC: u32 = 30; +pub const SO_PASSSEC: u32 = 31; +pub const SO_MARK: u32 = 34; +pub const SO_RXQ_OVFL: u32 = 36; +pub const SO_WIFI_STATUS: u32 = 37; +pub const SCM_WIFI_STATUS: u32 = 37; +pub const SO_PEEK_OFF: u32 = 38; +pub const SO_NOFCS: u32 = 39; +pub const SO_LOCK_FILTER: u32 = 40; +pub const SO_SELECT_ERR_QUEUE: u32 = 41; +pub const SO_BUSY_POLL: u32 = 48; +pub const SO_MAX_PACING_RATE: u32 = 49; +pub const SO_BPF_EXTENSIONS: u32 = 50; +pub const SO_INCOMING_CPU: u32 = 51; +pub const SO_ATTACH_BPF: u32 = 52; +pub const SO_DETACH_BPF: u32 = 27; +pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 53; +pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 54; +pub const SO_CNX_ADVICE: u32 = 55; +pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 56; +pub const SO_MEMINFO: u32 = 57; +pub const SO_INCOMING_NAPI_ID: u32 = 58; +pub const SO_COOKIE: u32 = 59; +pub const SCM_TIMESTAMPING_PKTINFO: u32 = 60; +pub const SO_PEERGROUPS: u32 = 61; +pub const SO_ZEROCOPY: u32 = 62; +pub const SO_TXTIME: u32 = 63; +pub const SCM_TXTIME: u32 = 63; +pub const SO_BINDTOIFINDEX: u32 = 65; +pub const SO_SECURITY_AUTHENTICATION: u32 = 20481; +pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 20482; +pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 20484; +pub const SO_TIMESTAMP_OLD: u32 = 29; +pub const SO_TIMESTAMPNS_OLD: u32 = 33; +pub const SO_TIMESTAMPING_OLD: u32 = 35; +pub const SO_TIMESTAMP_NEW: u32 = 70; +pub const SO_TIMESTAMPNS_NEW: u32 = 66; +pub const SO_TIMESTAMPING_NEW: u32 = 67; +pub const SO_RCVTIMEO_NEW: u32 = 68; +pub const SO_SNDTIMEO_NEW: u32 = 69; +pub const SO_DETACH_REUSEPORT_BPF: u32 = 71; +pub const SO_PREFER_BUSY_POLL: u32 = 72; +pub const SO_BUSY_POLL_BUDGET: u32 = 73; +pub const SO_NETNS_COOKIE: u32 = 80; +pub const SO_BUF_LOCK: u32 = 81; +pub const SO_RESERVE_MEM: u32 = 82; +pub const SO_TXREHASH: u32 = 83; +pub const SO_RCVMARK: u32 = 84; +pub const SO_PASSPIDFD: u32 = 85; +pub const SO_PEERPIDFD: u32 = 86; +pub const SO_DEVMEM_LINEAR: u32 = 87; +pub const SCM_DEVMEM_LINEAR: u32 = 87; +pub const SO_DEVMEM_DMABUF: u32 = 88; +pub const SCM_DEVMEM_DMABUF: u32 = 88; +pub const SO_DEVMEM_DONTNEED: u32 = 89; +pub const SCM_TS_OPT_ID: u32 = 90; +pub const SO_RCVPRIORITY: u32 = 91; +pub const SO_PASSRIGHTS: u32 = 92; +pub const SO_TIMESTAMP: u32 = 29; +pub const SO_TIMESTAMPNS: u32 = 33; +pub const SO_TIMESTAMPING: u32 = 35; +pub const SO_RCVTIMEO: u32 = 8192; +pub const SO_SNDTIMEO: u32 = 16384; +pub const SCM_TIMESTAMP: u32 = 29; +pub const SCM_TIMESTAMPNS: u32 = 33; +pub const SCM_TIMESTAMPING: u32 = 35; +pub const SYS_SOCKET: u32 = 1; +pub const SYS_BIND: u32 = 2; +pub const SYS_CONNECT: u32 = 3; +pub const SYS_LISTEN: u32 = 4; +pub const SYS_ACCEPT: u32 = 5; +pub const SYS_GETSOCKNAME: u32 = 6; +pub const SYS_GETPEERNAME: u32 = 7; +pub const SYS_SOCKETPAIR: u32 = 8; +pub const SYS_SEND: u32 = 9; +pub const SYS_RECV: u32 = 10; +pub const SYS_SENDTO: u32 = 11; +pub const SYS_RECVFROM: u32 = 12; +pub const SYS_SHUTDOWN: u32 = 13; +pub const SYS_SETSOCKOPT: u32 = 14; +pub const SYS_GETSOCKOPT: u32 = 15; +pub const SYS_SENDMSG: u32 = 16; +pub const SYS_RECVMSG: u32 = 17; +pub const SYS_ACCEPT4: u32 = 18; +pub const SYS_RECVMMSG: u32 = 19; +pub const SYS_SENDMMSG: u32 = 20; +pub const __SO_ACCEPTCON: u32 = 65536; +pub const TCP_MSS_DEFAULT: u32 = 536; +pub const TCP_MSS_DESIRED: u32 = 1220; +pub const TCP_NODELAY: u32 = 1; +pub const TCP_MAXSEG: u32 = 2; +pub const TCP_CORK: u32 = 3; +pub const TCP_KEEPIDLE: u32 = 4; +pub const TCP_KEEPINTVL: u32 = 5; +pub const TCP_KEEPCNT: u32 = 6; +pub const TCP_SYNCNT: u32 = 7; +pub const TCP_LINGER2: u32 = 8; +pub const TCP_DEFER_ACCEPT: u32 = 9; +pub const TCP_WINDOW_CLAMP: u32 = 10; +pub const TCP_INFO: u32 = 11; +pub const TCP_QUICKACK: u32 = 12; +pub const TCP_CONGESTION: u32 = 13; +pub const TCP_MD5SIG: u32 = 14; +pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; +pub const TCP_THIN_DUPACK: u32 = 17; +pub const TCP_USER_TIMEOUT: u32 = 18; +pub const TCP_REPAIR: u32 = 19; +pub const TCP_REPAIR_QUEUE: u32 = 20; +pub const TCP_QUEUE_SEQ: u32 = 21; +pub const TCP_REPAIR_OPTIONS: u32 = 22; +pub const TCP_FASTOPEN: u32 = 23; +pub const TCP_TIMESTAMP: u32 = 24; +pub const TCP_NOTSENT_LOWAT: u32 = 25; +pub const TCP_CC_INFO: u32 = 26; +pub const TCP_SAVE_SYN: u32 = 27; +pub const TCP_SAVED_SYN: u32 = 28; +pub const TCP_REPAIR_WINDOW: u32 = 29; +pub const TCP_FASTOPEN_CONNECT: u32 = 30; +pub const TCP_ULP: u32 = 31; +pub const TCP_MD5SIG_EXT: u32 = 32; +pub const TCP_FASTOPEN_KEY: u32 = 33; +pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; +pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; +pub const TCP_INQ: u32 = 36; +pub const TCP_CM_INQ: u32 = 36; +pub const TCP_TX_DELAY: u32 = 37; +pub const TCP_AO_ADD_KEY: u32 = 38; +pub const TCP_AO_DEL_KEY: u32 = 39; +pub const TCP_AO_INFO: u32 = 40; +pub const TCP_AO_GET_KEYS: u32 = 41; +pub const TCP_AO_REPAIR: u32 = 42; +pub const TCP_IS_MPTCP: u32 = 43; +pub const TCP_RTO_MAX_MS: u32 = 44; +pub const TCP_RTO_MIN_US: u32 = 45; +pub const TCP_DELACK_MAX_US: u32 = 46; +pub const TCP_REPAIR_ON: u32 = 1; +pub const TCP_REPAIR_OFF: u32 = 0; +pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; +pub const TCPI_OPT_TIMESTAMPS: u32 = 1; +pub const TCPI_OPT_SACK: u32 = 2; +pub const TCPI_OPT_WSCALE: u32 = 4; +pub const TCPI_OPT_ECN: u32 = 8; +pub const TCPI_OPT_ECN_SEEN: u32 = 16; +pub const TCPI_OPT_SYN_DATA: u32 = 32; +pub const TCPI_OPT_USEC_TS: u32 = 64; +pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; +pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; +pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; +pub const TCP_AO_MAXKEYLEN: u32 = 80; +pub const TCP_AO_KEYF_IFINDEX: u32 = 1; +pub const TCP_AO_KEYF_EXCLUDE_OPT: u32 = 2; +pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; +pub const UNIX_PATH_MAX: u32 = 108; +pub const IFNAMSIZ: u32 = 16; +pub const IFALIASZ: u32 = 256; +pub const ALTIFNAMSIZ: u32 = 128; +pub const GENERIC_HDLC_VERSION: u32 = 4; +pub const CLOCK_DEFAULT: u32 = 0; +pub const CLOCK_EXT: u32 = 1; +pub const CLOCK_INT: u32 = 2; +pub const CLOCK_TXINT: u32 = 3; +pub const CLOCK_TXFROMRX: u32 = 4; +pub const ENCODING_DEFAULT: u32 = 0; +pub const ENCODING_NRZ: u32 = 1; +pub const ENCODING_NRZI: u32 = 2; +pub const ENCODING_FM_MARK: u32 = 3; +pub const ENCODING_FM_SPACE: u32 = 4; +pub const ENCODING_MANCHESTER: u32 = 5; +pub const PARITY_DEFAULT: u32 = 0; +pub const PARITY_NONE: u32 = 1; +pub const PARITY_CRC16_PR0: u32 = 2; +pub const PARITY_CRC16_PR1: u32 = 3; +pub const PARITY_CRC16_PR0_CCITT: u32 = 4; +pub const PARITY_CRC16_PR1_CCITT: u32 = 5; +pub const PARITY_CRC32_PR0_CCITT: u32 = 6; +pub const PARITY_CRC32_PR1_CCITT: u32 = 7; +pub const LMI_DEFAULT: u32 = 0; +pub const LMI_NONE: u32 = 1; +pub const LMI_ANSI: u32 = 2; +pub const LMI_CCITT: u32 = 3; +pub const LMI_CISCO: u32 = 4; +pub const IF_GET_IFACE: u32 = 1; +pub const IF_GET_PROTO: u32 = 2; +pub const IF_IFACE_V35: u32 = 4096; +pub const IF_IFACE_V24: u32 = 4097; +pub const IF_IFACE_X21: u32 = 4098; +pub const IF_IFACE_T1: u32 = 4099; +pub const IF_IFACE_E1: u32 = 4100; +pub const IF_IFACE_SYNC_SERIAL: u32 = 4101; +pub const IF_IFACE_X21D: u32 = 4102; +pub const IF_PROTO_HDLC: u32 = 8192; +pub const IF_PROTO_PPP: u32 = 8193; +pub const IF_PROTO_CISCO: u32 = 8194; +pub const IF_PROTO_FR: u32 = 8195; +pub const IF_PROTO_FR_ADD_PVC: u32 = 8196; +pub const IF_PROTO_FR_DEL_PVC: u32 = 8197; +pub const IF_PROTO_X25: u32 = 8198; +pub const IF_PROTO_HDLC_ETH: u32 = 8199; +pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200; +pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201; +pub const IF_PROTO_FR_PVC: u32 = 8202; +pub const IF_PROTO_FR_ETH_PVC: u32 = 8203; +pub const IF_PROTO_RAW: u32 = 8204; +pub const IFHWADDRLEN: u32 = 6; +pub const NF_DROP: u32 = 0; +pub const NF_ACCEPT: u32 = 1; +pub const NF_STOLEN: u32 = 2; +pub const NF_QUEUE: u32 = 3; +pub const NF_REPEAT: u32 = 4; +pub const NF_STOP: u32 = 5; +pub const NF_MAX_VERDICT: u32 = 5; +pub const NF_VERDICT_MASK: u32 = 255; +pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768; +pub const NF_VERDICT_QMASK: u32 = 4294901760; +pub const NF_VERDICT_QBITS: u32 = 16; +pub const NF_VERDICT_BITS: u32 = 16; +pub const NF_IP6_PRE_ROUTING: u32 = 0; +pub const NF_IP6_LOCAL_IN: u32 = 1; +pub const NF_IP6_FORWARD: u32 = 2; +pub const NF_IP6_LOCAL_OUT: u32 = 3; +pub const NF_IP6_POST_ROUTING: u32 = 4; +pub const NF_IP6_NUMHOOKS: u32 = 5; +pub const XT_FUNCTION_MAXNAMELEN: u32 = 30; +pub const XT_EXTENSION_MAXNAMELEN: u32 = 29; +pub const XT_TABLE_MAXNAMELEN: u32 = 32; +pub const XT_CONTINUE: u32 = 4294967295; +pub const XT_RETURN: i32 = -5; +pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0"; +pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0"; +pub const XT_INV_PROTO: u32 = 64; +pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30; +pub const IP6T_TABLE_MAXNAMELEN: u32 = 32; +pub const IP6T_CONTINUE: u32 = 4294967295; +pub const IP6T_RETURN: i32 = -5; +pub const XT_TCP_INV_SRCPT: u32 = 1; +pub const XT_TCP_INV_DSTPT: u32 = 2; +pub const XT_TCP_INV_FLAGS: u32 = 4; +pub const XT_TCP_INV_OPTION: u32 = 8; +pub const XT_TCP_INV_MASK: u32 = 15; +pub const XT_UDP_INV_SRCPT: u32 = 1; +pub const XT_UDP_INV_DSTPT: u32 = 2; +pub const XT_UDP_INV_MASK: u32 = 3; +pub const IP6T_TCP_INV_SRCPT: u32 = 1; +pub const IP6T_TCP_INV_DSTPT: u32 = 2; +pub const IP6T_TCP_INV_FLAGS: u32 = 4; +pub const IP6T_TCP_INV_OPTION: u32 = 8; +pub const IP6T_TCP_INV_MASK: u32 = 15; +pub const IP6T_UDP_INV_SRCPT: u32 = 1; +pub const IP6T_UDP_INV_DSTPT: u32 = 2; +pub const IP6T_UDP_INV_MASK: u32 = 3; +pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0"; +pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0"; +pub const IP6T_F_PROTO: u32 = 1; +pub const IP6T_F_TOS: u32 = 2; +pub const IP6T_F_GOTO: u32 = 4; +pub const IP6T_F_MASK: u32 = 7; +pub const IP6T_INV_VIA_IN: u32 = 1; +pub const IP6T_INV_VIA_OUT: u32 = 2; +pub const IP6T_INV_TOS: u32 = 4; +pub const IP6T_INV_SRCIP: u32 = 8; +pub const IP6T_INV_DSTIP: u32 = 16; +pub const IP6T_INV_FRAG: u32 = 32; +pub const IP6T_INV_PROTO: u32 = 64; +pub const IP6T_INV_MASK: u32 = 127; +pub const IP6T_BASE_CTL: u32 = 64; +pub const IP6T_SO_SET_REPLACE: u32 = 64; +pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65; +pub const IP6T_SO_SET_MAX: u32 = 65; +pub const IP6T_SO_GET_INFO: u32 = 64; +pub const IP6T_SO_GET_ENTRIES: u32 = 65; +pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68; +pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69; +pub const IP6T_SO_GET_MAX: u32 = 69; +pub const IP6T_SO_ORIGINAL_DST: u32 = 80; +pub const IP6T_ICMP_INV: u32 = 1; +pub const NF_IP_PRE_ROUTING: u32 = 0; +pub const NF_IP_LOCAL_IN: u32 = 1; +pub const NF_IP_FORWARD: u32 = 2; +pub const NF_IP_LOCAL_OUT: u32 = 3; +pub const NF_IP_POST_ROUTING: u32 = 4; +pub const NF_IP_NUMHOOKS: u32 = 5; +pub const SO_ORIGINAL_DST: u32 = 80; +pub const SHUT_RD: u32 = 0; +pub const SHUT_WR: u32 = 1; +pub const SHUT_RDWR: u32 = 2; +pub const SOCK_STREAM: u32 = 1; +pub const SOCK_DGRAM: u32 = 2; +pub const SOCK_RAW: u32 = 3; +pub const SOCK_RDM: u32 = 4; +pub const SOCK_SEQPACKET: u32 = 5; +pub const MSG_DONTWAIT: u32 = 64; +pub const AF_UNSPEC: u32 = 0; +pub const AF_UNIX: u32 = 1; +pub const AF_INET: u32 = 2; +pub const AF_AX25: u32 = 3; +pub const AF_IPX: u32 = 4; +pub const AF_APPLETALK: u32 = 5; +pub const AF_NETROM: u32 = 6; +pub const AF_BRIDGE: u32 = 7; +pub const AF_ATMPVC: u32 = 8; +pub const AF_X25: u32 = 9; +pub const AF_INET6: u32 = 10; +pub const AF_ROSE: u32 = 11; +pub const AF_DECnet: u32 = 12; +pub const AF_NETBEUI: u32 = 13; +pub const AF_SECURITY: u32 = 14; +pub const AF_KEY: u32 = 15; +pub const AF_NETLINK: u32 = 16; +pub const AF_PACKET: u32 = 17; +pub const AF_ASH: u32 = 18; +pub const AF_ECONET: u32 = 19; +pub const AF_ATMSVC: u32 = 20; +pub const AF_RDS: u32 = 21; +pub const AF_SNA: u32 = 22; +pub const AF_IRDA: u32 = 23; +pub const AF_PPPOX: u32 = 24; +pub const AF_WANPIPE: u32 = 25; +pub const AF_LLC: u32 = 26; +pub const AF_CAN: u32 = 29; +pub const AF_TIPC: u32 = 30; +pub const AF_BLUETOOTH: u32 = 31; +pub const AF_IUCV: u32 = 32; +pub const AF_RXRPC: u32 = 33; +pub const AF_ISDN: u32 = 34; +pub const AF_PHONET: u32 = 35; +pub const AF_IEEE802154: u32 = 36; +pub const AF_CAIF: u32 = 37; +pub const AF_ALG: u32 = 38; +pub const AF_NFC: u32 = 39; +pub const AF_VSOCK: u32 = 40; +pub const AF_KCM: u32 = 41; +pub const AF_QIPCRTR: u32 = 42; +pub const AF_SMC: u32 = 43; +pub const AF_XDP: u32 = 44; +pub const AF_MCTP: u32 = 45; +pub const AF_MAX: u32 = 46; +pub const MSG_OOB: u32 = 1; +pub const MSG_PEEK: u32 = 2; +pub const MSG_DONTROUTE: u32 = 4; +pub const MSG_CTRUNC: u32 = 8; +pub const MSG_PROBE: u32 = 16; +pub const MSG_TRUNC: u32 = 32; +pub const MSG_EOR: u32 = 128; +pub const MSG_WAITALL: u32 = 256; +pub const MSG_FIN: u32 = 512; +pub const MSG_SYN: u32 = 1024; +pub const MSG_CONFIRM: u32 = 2048; +pub const MSG_RST: u32 = 4096; +pub const MSG_ERRQUEUE: u32 = 8192; +pub const MSG_NOSIGNAL: u32 = 16384; +pub const MSG_MORE: u32 = 32768; +pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; +pub const SCM_RIGHTS: u32 = 1; +pub const SCM_CREDENTIALS: u32 = 2; +pub const SCM_SECURITY: u32 = 3; +pub const SOL_IP: u32 = 0; +pub const SOL_TCP: u32 = 6; +pub const SOL_UDP: u32 = 17; +pub const SOL_IPV6: u32 = 41; +pub const SOL_ICMPV6: u32 = 58; +pub const SOL_SCTP: u32 = 132; +pub const SOL_UDPLITE: u32 = 136; +pub const SOL_RAW: u32 = 255; +pub const SOL_IPX: u32 = 256; +pub const SOL_AX25: u32 = 257; +pub const SOL_ATALK: u32 = 258; +pub const SOL_NETROM: u32 = 259; +pub const SOL_ROSE: u32 = 260; +pub const SOL_DECNET: u32 = 261; +pub const SOL_X25: u32 = 262; +pub const SOL_PACKET: u32 = 263; +pub const SOL_ATM: u32 = 264; +pub const SOL_AAL: u32 = 265; +pub const SOL_IRDA: u32 = 266; +pub const SOL_NETBEUI: u32 = 267; +pub const SOL_LLC: u32 = 268; +pub const SOL_DCCP: u32 = 269; +pub const SOL_NETLINK: u32 = 270; +pub const SOL_TIPC: u32 = 271; +pub const SOL_RXRPC: u32 = 272; +pub const SOL_PPPOL2TP: u32 = 273; +pub const SOL_BLUETOOTH: u32 = 274; +pub const SOL_PNPIPE: u32 = 275; +pub const SOL_RDS: u32 = 276; +pub const SOL_IUCV: u32 = 277; +pub const SOL_CAIF: u32 = 278; +pub const SOL_ALG: u32 = 279; +pub const SOL_NFC: u32 = 280; +pub const SOL_KCM: u32 = 281; +pub const SOL_TLS: u32 = 282; +pub const SOL_XDP: u32 = 283; +pub const SOL_MPTCP: u32 = 284; +pub const SOL_MCTP: u32 = 285; +pub const SOL_SMC: u32 = 286; +pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; +pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; +pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; +pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; +pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; +pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; +pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; +pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; +pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; +pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; +pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; +pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; +pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; +pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; +pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; +pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; +pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; +pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; +pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; +pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; +pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; +pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; +pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; +pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; +pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; +pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; +pub const IPPROTO_AGGFRAG: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AGGFRAG; +pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; +pub const IPPROTO_SMC: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SMC; +pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; +pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; +pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; +pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; +pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; +pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; +pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; +pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; +pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; +pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; +pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; +pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; +pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; +pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; +pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; +pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; +pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; +pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; +pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; +pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; +pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; +pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; +pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; +pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; +pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; +pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; +pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; +pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; +pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; +pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; +pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; +pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; +pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; +pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; +pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; +pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; +pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; +pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; +pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; +pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; +pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; +pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; +pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; +pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; +pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; +pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; +pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; +pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; +pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; +pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; +pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; +pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; +pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; +pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; +pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; +pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; +pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; +pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; +pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; +pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; +pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; +pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; +pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; +pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; +pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; +pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; +pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; +pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; +pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; +pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; +pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; +pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; +pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; +pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; +pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; +pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; +pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; +pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; +pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; +pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; +pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; +pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; +pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; +pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; +pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; +pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; +pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; +pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; +pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; +pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; +pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; +pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; +pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; +pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; +pub const DEVCONF_ACCEPT_RA_MIN_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_LFT; +pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; +pub const TCP_FLAG_AE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_AE; +pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; +pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; +pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; +pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; +pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; +pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; +pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; +pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; +pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; +pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; +pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; +pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; +pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; +pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; +pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; +pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; +pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; +pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; +pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; +pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; +pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; +pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; +pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; +pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; +pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; +pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; +pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; +pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; +pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; +pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; +pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; +pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; +pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; +pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; +pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; +pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; +pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; +pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; +pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; +pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; +pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; +pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; +pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN; +pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT; +pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN; +pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN; +pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING; +pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT; +pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP; +pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT; +pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT; +pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING; +pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC; +pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET; +pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4; +pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP; +pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV; +pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE; +pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6; +pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET; +pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO; +pub const SOF_TIMESTAMPING_TX_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_HARDWARE; +pub const SOF_TIMESTAMPING_TX_SOFTWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_SOFTWARE; +pub const SOF_TIMESTAMPING_RX_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_RX_HARDWARE; +pub const SOF_TIMESTAMPING_RX_SOFTWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_RX_SOFTWARE; +pub const SOF_TIMESTAMPING_SOFTWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_SOFTWARE; +pub const SOF_TIMESTAMPING_SYS_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_SYS_HARDWARE; +pub const SOF_TIMESTAMPING_RAW_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_RAW_HARDWARE; +pub const SOF_TIMESTAMPING_OPT_ID: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_ID; +pub const SOF_TIMESTAMPING_TX_SCHED: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_SCHED; +pub const SOF_TIMESTAMPING_TX_ACK: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_ACK; +pub const SOF_TIMESTAMPING_OPT_CMSG: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_CMSG; +pub const SOF_TIMESTAMPING_OPT_TSONLY: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_TSONLY; +pub const SOF_TIMESTAMPING_OPT_STATS: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_STATS; +pub const SOF_TIMESTAMPING_OPT_PKTINFO: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_PKTINFO; +pub const SOF_TIMESTAMPING_OPT_TX_SWHW: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_TX_SWHW; +pub const SOF_TIMESTAMPING_BIND_PHC: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_BIND_PHC; +pub const SOF_TIMESTAMPING_OPT_ID_TCP: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_ID_TCP; +pub const SOF_TIMESTAMPING_OPT_RX_FILTER: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_RX_FILTER; +pub const SOF_TIMESTAMPING_TX_COMPLETION: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_COMPLETION; +pub const SOF_TIMESTAMPING_LAST: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_COMPLETION; +pub const SOF_TIMESTAMPING_MASK: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_MASK; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +IPPROTO_IP = 0, +IPPROTO_ICMP = 1, +IPPROTO_IGMP = 2, +IPPROTO_IPIP = 4, +IPPROTO_TCP = 6, +IPPROTO_EGP = 8, +IPPROTO_PUP = 12, +IPPROTO_UDP = 17, +IPPROTO_IDP = 22, +IPPROTO_TP = 29, +IPPROTO_DCCP = 33, +IPPROTO_IPV6 = 41, +IPPROTO_RSVP = 46, +IPPROTO_GRE = 47, +IPPROTO_ESP = 50, +IPPROTO_AH = 51, +IPPROTO_MTP = 92, +IPPROTO_BEETPH = 94, +IPPROTO_ENCAP = 98, +IPPROTO_PIM = 103, +IPPROTO_COMP = 108, +IPPROTO_L2TP = 115, +IPPROTO_SCTP = 132, +IPPROTO_UDPLITE = 136, +IPPROTO_MPLS = 137, +IPPROTO_ETHERNET = 143, +IPPROTO_AGGFRAG = 144, +IPPROTO_RAW = 255, +IPPROTO_SMC = 256, +IPPROTO_MPTCP = 262, +IPPROTO_MAX = 263, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IPV4_DEVCONF_FORWARDING = 1, +IPV4_DEVCONF_MC_FORWARDING = 2, +IPV4_DEVCONF_PROXY_ARP = 3, +IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, +IPV4_DEVCONF_SECURE_REDIRECTS = 5, +IPV4_DEVCONF_SEND_REDIRECTS = 6, +IPV4_DEVCONF_SHARED_MEDIA = 7, +IPV4_DEVCONF_RP_FILTER = 8, +IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, +IPV4_DEVCONF_BOOTP_RELAY = 10, +IPV4_DEVCONF_LOG_MARTIANS = 11, +IPV4_DEVCONF_TAG = 12, +IPV4_DEVCONF_ARPFILTER = 13, +IPV4_DEVCONF_MEDIUM_ID = 14, +IPV4_DEVCONF_NOXFRM = 15, +IPV4_DEVCONF_NOPOLICY = 16, +IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, +IPV4_DEVCONF_ARP_ANNOUNCE = 18, +IPV4_DEVCONF_ARP_IGNORE = 19, +IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, +IPV4_DEVCONF_ARP_ACCEPT = 21, +IPV4_DEVCONF_ARP_NOTIFY = 22, +IPV4_DEVCONF_ACCEPT_LOCAL = 23, +IPV4_DEVCONF_SRC_VMARK = 24, +IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, +IPV4_DEVCONF_ROUTE_LOCALNET = 26, +IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, +IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, +IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, +IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, +IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, +IPV4_DEVCONF_BC_FORWARDING = 32, +IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, +__IPV4_DEVCONF_MAX = 34, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +DEVCONF_FORWARDING = 0, +DEVCONF_HOPLIMIT = 1, +DEVCONF_MTU6 = 2, +DEVCONF_ACCEPT_RA = 3, +DEVCONF_ACCEPT_REDIRECTS = 4, +DEVCONF_AUTOCONF = 5, +DEVCONF_DAD_TRANSMITS = 6, +DEVCONF_RTR_SOLICITS = 7, +DEVCONF_RTR_SOLICIT_INTERVAL = 8, +DEVCONF_RTR_SOLICIT_DELAY = 9, +DEVCONF_USE_TEMPADDR = 10, +DEVCONF_TEMP_VALID_LFT = 11, +DEVCONF_TEMP_PREFERED_LFT = 12, +DEVCONF_REGEN_MAX_RETRY = 13, +DEVCONF_MAX_DESYNC_FACTOR = 14, +DEVCONF_MAX_ADDRESSES = 15, +DEVCONF_FORCE_MLD_VERSION = 16, +DEVCONF_ACCEPT_RA_DEFRTR = 17, +DEVCONF_ACCEPT_RA_PINFO = 18, +DEVCONF_ACCEPT_RA_RTR_PREF = 19, +DEVCONF_RTR_PROBE_INTERVAL = 20, +DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, +DEVCONF_PROXY_NDP = 22, +DEVCONF_OPTIMISTIC_DAD = 23, +DEVCONF_ACCEPT_SOURCE_ROUTE = 24, +DEVCONF_MC_FORWARDING = 25, +DEVCONF_DISABLE_IPV6 = 26, +DEVCONF_ACCEPT_DAD = 27, +DEVCONF_FORCE_TLLAO = 28, +DEVCONF_NDISC_NOTIFY = 29, +DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, +DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, +DEVCONF_SUPPRESS_FRAG_NDISC = 32, +DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, +DEVCONF_USE_OPTIMISTIC = 34, +DEVCONF_ACCEPT_RA_MTU = 35, +DEVCONF_STABLE_SECRET = 36, +DEVCONF_USE_OIF_ADDRS_ONLY = 37, +DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, +DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, +DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, +DEVCONF_DROP_UNSOLICITED_NA = 41, +DEVCONF_KEEP_ADDR_ON_DOWN = 42, +DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, +DEVCONF_SEG6_ENABLED = 44, +DEVCONF_SEG6_REQUIRE_HMAC = 45, +DEVCONF_ENHANCED_DAD = 46, +DEVCONF_ADDR_GEN_MODE = 47, +DEVCONF_DISABLE_POLICY = 48, +DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, +DEVCONF_NDISC_TCLASS = 50, +DEVCONF_RPL_SEG_ENABLED = 51, +DEVCONF_RA_DEFRTR_METRIC = 52, +DEVCONF_IOAM6_ENABLED = 53, +DEVCONF_IOAM6_ID = 54, +DEVCONF_IOAM6_ID_WIDE = 55, +DEVCONF_NDISC_EVICT_NOCARRIER = 56, +DEVCONF_ACCEPT_UNTRACKED_NA = 57, +DEVCONF_ACCEPT_RA_MIN_LFT = 58, +DEVCONF_MAX = 59, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum socket_state { +SS_FREE = 0, +SS_UNCONNECTED = 1, +SS_CONNECTING = 2, +SS_CONNECTED = 3, +SS_DISCONNECTING = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +TCP_FLAG_AE = 16777216, +TCP_FLAG_CWR = 8388608, +TCP_FLAG_ECE = 4194304, +TCP_FLAG_URG = 2097152, +TCP_FLAG_ACK = 1048576, +TCP_FLAG_PSH = 524288, +TCP_FLAG_RST = 262144, +TCP_FLAG_SYN = 131072, +TCP_FLAG_FIN = 65536, +TCP_RESERVED_BITS = 234881024, +TCP_DATA_OFFSET = 4026531840, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_5 { +TCP_NO_QUEUE = 0, +TCP_RECV_QUEUE = 1, +TCP_SEND_QUEUE = 2, +TCP_QUEUES_NR = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tcp_fastopen_client_fail { +TFO_STATUS_UNSPEC = 0, +TFO_COOKIE_UNAVAILABLE = 1, +TFO_DATA_NOT_ACKED = 2, +TFO_SYN_RETRANSMITTED = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tcp_ca_state { +TCP_CA_Open = 0, +TCP_CA_Disorder = 1, +TCP_CA_CWR = 2, +TCP_CA_Recovery = 3, +TCP_CA_Loss = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_6 { +TCP_NLA_PAD = 0, +TCP_NLA_BUSY = 1, +TCP_NLA_RWND_LIMITED = 2, +TCP_NLA_SNDBUF_LIMITED = 3, +TCP_NLA_DATA_SEGS_OUT = 4, +TCP_NLA_TOTAL_RETRANS = 5, +TCP_NLA_PACING_RATE = 6, +TCP_NLA_DELIVERY_RATE = 7, +TCP_NLA_SND_CWND = 8, +TCP_NLA_REORDERING = 9, +TCP_NLA_MIN_RTT = 10, +TCP_NLA_RECUR_RETRANS = 11, +TCP_NLA_DELIVERY_RATE_APP_LMT = 12, +TCP_NLA_SNDQ_SIZE = 13, +TCP_NLA_CA_STATE = 14, +TCP_NLA_SND_SSTHRESH = 15, +TCP_NLA_DELIVERED = 16, +TCP_NLA_DELIVERED_CE = 17, +TCP_NLA_BYTES_SENT = 18, +TCP_NLA_BYTES_RETRANS = 19, +TCP_NLA_DSACK_DUPS = 20, +TCP_NLA_REORD_SEEN = 21, +TCP_NLA_SRTT = 22, +TCP_NLA_TIMEOUT_REHASH = 23, +TCP_NLA_BYTES_NOTSENT = 24, +TCP_NLA_EDT = 25, +TCP_NLA_TTL = 26, +TCP_NLA_REHASH = 27, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum net_device_flags { +IFF_UP = 1, +IFF_BROADCAST = 2, +IFF_DEBUG = 4, +IFF_LOOPBACK = 8, +IFF_POINTOPOINT = 16, +IFF_NOTRAILERS = 32, +IFF_RUNNING = 64, +IFF_NOARP = 128, +IFF_PROMISC = 256, +IFF_ALLMULTI = 512, +IFF_MASTER = 1024, +IFF_SLAVE = 2048, +IFF_MULTICAST = 4096, +IFF_PORTSEL = 8192, +IFF_AUTOMEDIA = 16384, +IFF_DYNAMIC = 32768, +IFF_LOWER_UP = 65536, +IFF_DORMANT = 131072, +IFF_ECHO = 262144, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_7 { +IF_OPER_UNKNOWN = 0, +IF_OPER_NOTPRESENT = 1, +IF_OPER_DOWN = 2, +IF_OPER_LOWERLAYERDOWN = 3, +IF_OPER_TESTING = 4, +IF_OPER_DORMANT = 5, +IF_OPER_UP = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_8 { +IF_LINK_MODE_DEFAULT = 0, +IF_LINK_MODE_DORMANT = 1, +IF_LINK_MODE_TESTING = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_inet_hooks { +NF_INET_PRE_ROUTING = 0, +NF_INET_LOCAL_IN = 1, +NF_INET_FORWARD = 2, +NF_INET_LOCAL_OUT = 3, +NF_INET_POST_ROUTING = 4, +NF_INET_NUMHOOKS = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_dev_hooks { +NF_NETDEV_INGRESS = 0, +NF_NETDEV_EGRESS = 1, +NF_NETDEV_NUMHOOKS = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_9 { +NFPROTO_UNSPEC = 0, +NFPROTO_INET = 1, +NFPROTO_IPV4 = 2, +NFPROTO_ARP = 3, +NFPROTO_NETDEV = 5, +NFPROTO_BRIDGE = 7, +NFPROTO_IPV6 = 10, +NFPROTO_DECNET = 12, +NFPROTO_NUMPROTO = 13, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_ip6_hook_priorities { +NF_IP6_PRI_FIRST = -2147483648, +NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450, +NF_IP6_PRI_CONNTRACK_DEFRAG = -400, +NF_IP6_PRI_RAW = -300, +NF_IP6_PRI_SELINUX_FIRST = -225, +NF_IP6_PRI_CONNTRACK = -200, +NF_IP6_PRI_MANGLE = -150, +NF_IP6_PRI_NAT_DST = -100, +NF_IP6_PRI_FILTER = 0, +NF_IP6_PRI_SECURITY = 50, +NF_IP6_PRI_NAT_SRC = 100, +NF_IP6_PRI_SELINUX_LAST = 225, +NF_IP6_PRI_CONNTRACK_HELPER = 300, +NF_IP6_PRI_LAST = 2147483647, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_ip_hook_priorities { +NF_IP_PRI_FIRST = -2147483648, +NF_IP_PRI_RAW_BEFORE_DEFRAG = -450, +NF_IP_PRI_CONNTRACK_DEFRAG = -400, +NF_IP_PRI_RAW = -300, +NF_IP_PRI_SELINUX_FIRST = -225, +NF_IP_PRI_CONNTRACK = -200, +NF_IP_PRI_MANGLE = -150, +NF_IP_PRI_NAT_DST = -100, +NF_IP_PRI_FILTER = 0, +NF_IP_PRI_SECURITY = 50, +NF_IP_PRI_NAT_SRC = 100, +NF_IP_PRI_SELINUX_LAST = 225, +NF_IP_PRI_CONNTRACK_HELPER = 300, +NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_provider_qualifier { +HWTSTAMP_PROVIDER_QUALIFIER_PRECISE = 0, +HWTSTAMP_PROVIDER_QUALIFIER_APPROX = 1, +HWTSTAMP_PROVIDER_QUALIFIER_CNT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_10 { +SOF_TIMESTAMPING_TX_HARDWARE = 1, +SOF_TIMESTAMPING_TX_SOFTWARE = 2, +SOF_TIMESTAMPING_RX_HARDWARE = 4, +SOF_TIMESTAMPING_RX_SOFTWARE = 8, +SOF_TIMESTAMPING_SOFTWARE = 16, +SOF_TIMESTAMPING_SYS_HARDWARE = 32, +SOF_TIMESTAMPING_RAW_HARDWARE = 64, +SOF_TIMESTAMPING_OPT_ID = 128, +SOF_TIMESTAMPING_TX_SCHED = 256, +SOF_TIMESTAMPING_TX_ACK = 512, +SOF_TIMESTAMPING_OPT_CMSG = 1024, +SOF_TIMESTAMPING_OPT_TSONLY = 2048, +SOF_TIMESTAMPING_OPT_STATS = 4096, +SOF_TIMESTAMPING_OPT_PKTINFO = 8192, +SOF_TIMESTAMPING_OPT_TX_SWHW = 16384, +SOF_TIMESTAMPING_BIND_PHC = 32768, +SOF_TIMESTAMPING_OPT_ID_TCP = 65536, +SOF_TIMESTAMPING_OPT_RX_FILTER = 131072, +SOF_TIMESTAMPING_TX_COMPLETION = 262144, +SOF_TIMESTAMPING_MASK = 524287, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_flags { +HWTSTAMP_FLAG_BONDED_PHC_INDEX = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_tx_types { +HWTSTAMP_TX_OFF = 0, +HWTSTAMP_TX_ON = 1, +HWTSTAMP_TX_ONESTEP_SYNC = 2, +HWTSTAMP_TX_ONESTEP_P2P = 3, +__HWTSTAMP_TX_CNT = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_rx_filters { +HWTSTAMP_FILTER_NONE = 0, +HWTSTAMP_FILTER_ALL = 1, +HWTSTAMP_FILTER_SOME = 2, +HWTSTAMP_FILTER_PTP_V1_L4_EVENT = 3, +HWTSTAMP_FILTER_PTP_V1_L4_SYNC = 4, +HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ = 5, +HWTSTAMP_FILTER_PTP_V2_L4_EVENT = 6, +HWTSTAMP_FILTER_PTP_V2_L4_SYNC = 7, +HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ = 8, +HWTSTAMP_FILTER_PTP_V2_L2_EVENT = 9, +HWTSTAMP_FILTER_PTP_V2_L2_SYNC = 10, +HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ = 11, +HWTSTAMP_FILTER_PTP_V2_EVENT = 12, +HWTSTAMP_FILTER_PTP_V2_SYNC = 13, +HWTSTAMP_FILTER_PTP_V2_DELAY_REQ = 14, +HWTSTAMP_FILTER_NTP_ALL = 15, +__HWTSTAMP_FILTER_CNT = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum txtime_flags { +SOF_TXTIME_DEADLINE_MODE = 1, +SOF_TXTIME_REPORT_ERRORS = 2, +SOF_TXTIME_FLAGS_MASK = 3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __kernel_sockaddr_storage__bindgen_ty_1 { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, +pub __align: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union iphdr__bindgen_ty_1 { +pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, +pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union in6_addr__bindgen_ty_1 { +pub u6_addr8: [__u8; 16usize], +pub u6_addr16: [__be16; 8usize], +pub u6_addr32: [__be32; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ipv6hdr__bindgen_ty_1 { +pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, +pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tcp_word_hdr { +pub hdr: tcphdr, +pub words: [__be32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union if_settings__bindgen_ty_1 { +pub raw_hdlc: *mut raw_hdlc_proto, +pub cisco: *mut cisco_proto, +pub fr: *mut fr_proto, +pub fr_pvc: *mut fr_proto_pvc, +pub fr_pvc_info: *mut fr_proto_pvc_info, +pub x25: *mut x25_hdlc_proto, +pub sync: *mut sync_serial_settings, +pub te1: *mut te1_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_1 { +pub ifrn_name: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_2 { +pub ifru_addr: sockaddr, +pub ifru_dstaddr: sockaddr, +pub ifru_broadaddr: sockaddr, +pub ifru_netmask: sockaddr, +pub ifru_hwaddr: sockaddr, +pub ifru_flags: crate::ctypes::c_short, +pub ifru_ivalue: crate::ctypes::c_int, +pub ifru_mtu: crate::ctypes::c_int, +pub ifru_map: ifmap, +pub ifru_slave: [crate::ctypes::c_char; 16usize], +pub ifru_newname: [crate::ctypes::c_char; 16usize], +pub ifru_data: *mut crate::ctypes::c_void, +pub ifru_settings: if_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifconf__bindgen_ty_1 { +pub ifcu_buf: *mut crate::ctypes::c_char, +pub ifcu_req: *mut ifreq, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union nf_inet_addr { +pub all: [__u32; 4usize], +pub ip: __be32, +pub ip6: [__be32; 4usize], +pub in_: in_addr, +pub in6: in6_addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union xt_entry_match__bindgen_ty_1 { +pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1, +pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2, +pub match_size: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union xt_entry_target__bindgen_ty_1 { +pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1, +pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2, +pub target_size: __u16, +} +impl __BindgenBitfieldUnit { +#[inline] +pub const fn new(storage: Storage) -> Self { +Self { storage } +} +} +impl __BindgenBitfieldUnit +where +Storage: AsRef<[u8]> + AsMut<[u8]>, +{ +#[inline] +fn extract_bit(byte: u8, index: usize) -> bool { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +byte & mask == mask +} +#[inline] +pub fn get_bit(&self, index: usize) -> bool { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = self.storage.as_ref()[byte_index]; +Self::extract_bit(byte, index) +} +#[inline] +pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; +Self::extract_bit(byte, index) +} +#[inline] +fn change_bit(byte: u8, index: usize, val: bool) -> u8 { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +if val { +byte | mask +} else { +byte & !mask +} +} +#[inline] +pub fn set_bit(&mut self, index: usize, val: bool) { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = &mut self.storage.as_mut()[byte_index]; +*byte = Self::change_bit(*byte, index, val); +} +#[inline] +pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; +} +#[inline] +pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if self.get_bit(i + bit_offset) { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +self.set_bit(index + bit_offset, val_bit_is_set); +} +} +#[inline] +pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +} +} +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl __BindgenUnionField { +#[inline] +pub const fn new() -> Self { +__BindgenUnionField(::core::marker::PhantomData) +} +#[inline] +pub unsafe fn as_ref(&self) -> &T { +::core::mem::transmute(self) +} +#[inline] +pub unsafe fn as_mut(&mut self) -> &mut T { +::core::mem::transmute(self) +} +} +impl ::core::default::Default for __BindgenUnionField { +#[inline] +fn default() -> Self { +Self::new() +} +} +impl ::core::clone::Clone for __BindgenUnionField { +#[inline] +fn clone(&self) -> Self { +*self +} +} +impl ::core::marker::Copy for __BindgenUnionField {} +impl ::core::fmt::Debug for __BindgenUnionField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__BindgenUnionField") +} +} +impl ::core::hash::Hash for __BindgenUnionField { +fn hash(&self, _state: &mut H) {} +} +impl ::core::cmp::PartialEq for __BindgenUnionField { +fn eq(&self, _other: &__BindgenUnionField) -> bool { +true +} +} +impl ::core::cmp::Eq for __BindgenUnionField {} +impl iphdr { +#[inline] +pub fn version(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +} +#[inline] +pub fn set_version(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn version_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +} +} +#[inline] +pub fn ihl(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +} +#[inline] +pub fn set_ihl(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn ihl_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(version: __u8, ihl: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 4u8, { +let version: u8 = unsafe { ::core::mem::transmute(version) }; +version as u64 +}); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; +ihl as u64 +}); +__bindgen_bitfield_unit +} +} +impl ipv6hdr { +#[inline] +pub fn version(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +} +#[inline] +pub fn set_version(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn version_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +} +} +#[inline] +pub fn priority(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +} +#[inline] +pub fn set_priority(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn priority_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(version: __u8, priority: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 4u8, { +let version: u8 = unsafe { ::core::mem::transmute(version) }; +version as u64 +}); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let priority: u8 = unsafe { ::core::mem::transmute(priority) }; +priority as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcphdr { +#[inline] +pub fn doff(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } +} +#[inline] +pub fn set_doff(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn doff_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u16) } +} +#[inline] +pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +} +} +#[inline] +pub fn res1(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 3u8) as u16) } +} +#[inline] +pub fn set_res1(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 3u8, val as u64) +} +} +#[inline] +pub unsafe fn res1_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 3u8) as u16) } +} +#[inline] +pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 3u8, val as u64) +} +} +#[inline] +pub fn ae(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u16) } +} +#[inline] +pub fn set_ae(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(7usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ae_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 7usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 7usize, 1u8, val as u64) +} +} +#[inline] +pub fn cwr(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +} +#[inline] +pub fn set_cwr(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(8usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn cwr_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +} +} +#[inline] +pub fn ece(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +} +#[inline] +pub fn set_ece(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(9usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ece_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +} +} +#[inline] +pub fn urg(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +} +#[inline] +pub fn set_urg(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(10usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn urg_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +} +} +#[inline] +pub fn ack(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +} +#[inline] +pub fn set_ack(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(11usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ack_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +} +} +#[inline] +pub fn psh(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +} +#[inline] +pub fn set_psh(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(12usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn psh_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +} +} +#[inline] +pub fn rst(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +} +#[inline] +pub fn set_rst(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(13usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn rst_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +} +} +#[inline] +pub fn syn(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +} +#[inline] +pub fn set_syn(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(14usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn syn_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +} +} +#[inline] +pub fn fin(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +} +#[inline] +pub fn set_fin(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(15usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn fin_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(doff: __u16, res1: __u16, ae: __u16, cwr: __u16, ece: __u16, urg: __u16, ack: __u16, psh: __u16, rst: __u16, syn: __u16, fin: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 4u8, { +let doff: u16 = unsafe { ::core::mem::transmute(doff) }; +doff as u64 +}); +__bindgen_bitfield_unit.set(4usize, 3u8, { +let res1: u16 = unsafe { ::core::mem::transmute(res1) }; +res1 as u64 +}); +__bindgen_bitfield_unit.set(7usize, 1u8, { +let ae: u16 = unsafe { ::core::mem::transmute(ae) }; +ae as u64 +}); +__bindgen_bitfield_unit.set(8usize, 1u8, { +let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; +cwr as u64 +}); +__bindgen_bitfield_unit.set(9usize, 1u8, { +let ece: u16 = unsafe { ::core::mem::transmute(ece) }; +ece as u64 +}); +__bindgen_bitfield_unit.set(10usize, 1u8, { +let urg: u16 = unsafe { ::core::mem::transmute(urg) }; +urg as u64 +}); +__bindgen_bitfield_unit.set(11usize, 1u8, { +let ack: u16 = unsafe { ::core::mem::transmute(ack) }; +ack as u64 +}); +__bindgen_bitfield_unit.set(12usize, 1u8, { +let psh: u16 = unsafe { ::core::mem::transmute(psh) }; +psh as u64 +}); +__bindgen_bitfield_unit.set(13usize, 1u8, { +let rst: u16 = unsafe { ::core::mem::transmute(rst) }; +rst as u64 +}); +__bindgen_bitfield_unit.set(14usize, 1u8, { +let syn: u16 = unsafe { ::core::mem::transmute(syn) }; +syn as u64 +}); +__bindgen_bitfield_unit.set(15usize, 1u8, { +let fin: u16 = unsafe { ::core::mem::transmute(fin) }; +fin as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_info { +#[inline] +pub fn tcpi_snd_wscale(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +} +#[inline] +pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +} +} +#[inline] +pub fn tcpi_rcv_wscale(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +} +#[inline] +pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +} +#[inline] +pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(8usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +} +} +#[inline] +pub fn tcpi_fastopen_client_fail(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +} +#[inline] +pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(9usize, 2u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 4u8, { +let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; +tcpi_snd_wscale as u64 +}); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; +tcpi_rcv_wscale as u64 +}); +__bindgen_bitfield_unit.set(8usize, 1u8, { +let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; +tcpi_delivery_rate_app_limited as u64 +}); +__bindgen_bitfield_unit.set(9usize, 2u8, { +let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; +tcpi_fastopen_client_fail as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_add { +#[inline] +pub fn set_current(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_current(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_current_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_rnext(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_rnext(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 30u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; +set_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; +set_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 30u8, { +let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_del { +#[inline] +pub fn set_current(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_current(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_current_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_rnext(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_rnext(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn del_async(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +} +#[inline] +pub fn set_del_async(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn del_async_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 29u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; +set_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; +set_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 1u8, { +let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; +del_async as u64 +}); +__bindgen_bitfield_unit.set(3usize, 29u8, { +let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_info_opt { +#[inline] +pub fn set_current(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_current(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_current_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_rnext(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_rnext(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn ao_required(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +} +#[inline] +pub fn set_ao_required(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_counters(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_counters(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +} +} +#[inline] +pub fn accept_icmps(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +} +#[inline] +pub fn set_accept_icmps(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(5usize, 27u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; +set_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; +set_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 1u8, { +let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; +ao_required as u64 +}); +__bindgen_bitfield_unit.set(3usize, 1u8, { +let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; +set_counters as u64 +}); +__bindgen_bitfield_unit.set(4usize, 1u8, { +let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; +accept_icmps as u64 +}); +__bindgen_bitfield_unit.set(5usize, 27u8, { +let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_getsockopt { +#[inline] +pub fn is_current(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +} +#[inline] +pub fn set_is_current(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn is_current_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn is_rnext(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +} +#[inline] +pub fn set_is_rnext(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn get_all(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +} +#[inline] +pub fn set_get_all(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn get_all_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 13u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; +is_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; +is_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 1u8, { +let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; +get_all as u64 +}); +__bindgen_bitfield_unit.set(3usize, 13u8, { +let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl nf_inet_hooks { +pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS; +} +impl nf_ip_hook_priorities { +pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM; +} +impl hwtstamp_flags { +pub const HWTSTAMP_FLAG_LAST: hwtstamp_flags = hwtstamp_flags::HWTSTAMP_FLAG_BONDED_PHC_INDEX; +} +impl hwtstamp_flags { +pub const HWTSTAMP_FLAG_MASK: hwtstamp_flags = hwtstamp_flags::HWTSTAMP_FLAG_BONDED_PHC_INDEX; +} +impl txtime_flags { +pub const SOF_TXTIME_FLAGS_LAST: txtime_flags = txtime_flags::SOF_TXTIME_REPORT_ERRORS; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/netlink.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/netlink.rs new file mode 100644 index 0000000000000000000000000000000000000000..eb8fb4051088e5e9688e9e57fd34005ecab4144b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/netlink.rs @@ -0,0 +1,5467 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __kernel_sa_family_t = crate::ctypes::c_ushort; +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_suseconds_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __kernel_sockaddr_storage { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { +pub ss_family: __kernel_sa_family_t, +pub __data: [crate::ctypes::c_char; 126usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_suseconds_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_nl { +pub nl_family: __kernel_sa_family_t, +pub nl_pad: crate::ctypes::c_ushort, +pub nl_pid: __u32, +pub nl_groups: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsghdr { +pub nlmsg_len: __u32, +pub nlmsg_type: __u16, +pub nlmsg_flags: __u16, +pub nlmsg_seq: __u32, +pub nlmsg_pid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsgerr { +pub error: crate::ctypes::c_int, +pub msg: nlmsghdr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_pktinfo { +pub group: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_req { +pub nm_block_size: crate::ctypes::c_uint, +pub nm_block_nr: crate::ctypes::c_uint, +pub nm_frame_size: crate::ctypes::c_uint, +pub nm_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_hdr { +pub nm_status: crate::ctypes::c_uint, +pub nm_len: crate::ctypes::c_uint, +pub nm_group: __u32, +pub nm_pid: __u32, +pub nm_uid: __u32, +pub nm_gid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlattr { +pub nla_len: __u16, +pub nla_type: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nla_bitfield32 { +pub value: __u32, +pub selector: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_sta_flag_update { +pub mask: __u32, +pub set: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_vht { +pub mcs: [__u16; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_he { +pub mcs: [__u16; 8usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_pattern_support { +pub max_patterns: __u32, +pub min_pattern_len: __u32, +pub max_pattern_len: __u32, +pub max_pkt_offset: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_wowlan_tcp_data_seq { +pub start: __u32, +pub offset: __u32, +pub len: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct nl80211_wowlan_tcp_data_token { +pub offset: __u32, +pub len: __u32, +pub token_stream: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_wowlan_tcp_data_token_feature { +pub min_len: __u32, +pub max_len: __u32, +pub bufsize: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_coalesce_rule_support { +pub max_rules: __u32, +pub pat: nl80211_pattern_support, +pub max_delay: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_vendor_cmd_info { +pub vendor_id: __u32, +pub subcmd: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_bss_select_rssi_adjust { +pub band: __u8, +pub delta: __s8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats { +pub rx_packets: __u32, +pub tx_packets: __u32, +pub rx_bytes: __u32, +pub tx_bytes: __u32, +pub rx_errors: __u32, +pub tx_errors: __u32, +pub rx_dropped: __u32, +pub tx_dropped: __u32, +pub multicast: __u32, +pub collisions: __u32, +pub rx_length_errors: __u32, +pub rx_over_errors: __u32, +pub rx_crc_errors: __u32, +pub rx_frame_errors: __u32, +pub rx_fifo_errors: __u32, +pub rx_missed_errors: __u32, +pub tx_aborted_errors: __u32, +pub tx_carrier_errors: __u32, +pub tx_fifo_errors: __u32, +pub tx_heartbeat_errors: __u32, +pub tx_window_errors: __u32, +pub rx_compressed: __u32, +pub tx_compressed: __u32, +pub rx_nohandler: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +pub collisions: __u64, +pub rx_length_errors: __u64, +pub rx_over_errors: __u64, +pub rx_crc_errors: __u64, +pub rx_frame_errors: __u64, +pub rx_fifo_errors: __u64, +pub rx_missed_errors: __u64, +pub tx_aborted_errors: __u64, +pub tx_carrier_errors: __u64, +pub tx_fifo_errors: __u64, +pub tx_heartbeat_errors: __u64, +pub tx_window_errors: __u64, +pub rx_compressed: __u64, +pub tx_compressed: __u64, +pub rx_nohandler: __u64, +pub rx_otherhost_dropped: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_hw_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_ifmap { +pub mem_start: __u64, +pub mem_end: __u64, +pub base_addr: __u64, +pub irq: __u16, +pub dma: __u8, +pub port: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_bridge_id { +pub prio: [__u8; 2usize], +pub addr: [__u8; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_cacheinfo { +pub max_reasm_len: __u32, +pub tstamp: __u32, +pub reachable_time: __u32, +pub retrans_time: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_qos_mapping { +pub from: __u32, +pub to: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tunnel_msg { +pub family: __u8, +pub flags: __u8, +pub reserved2: __u16, +pub ifindex: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vxlan_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_geneve_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_mac { +pub vf: __u32, +pub mac: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_broadcast { +pub broadcast: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan_info { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +pub vlan_proto: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_tx_rate { +pub vf: __u32, +pub rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rate { +pub vf: __u32, +pub min_tx_rate: __u32, +pub max_tx_rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_spoofchk { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_guid { +pub vf: __u32, +pub guid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_link_state { +pub vf: __u32, +pub link_state: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rss_query_en { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_trust { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_port_vsi { +pub vsi_mgr_id: __u8, +pub vsi_type_id: [__u8; 3usize], +pub vsi_type_version: __u8, +pub pad: [__u8; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct if_stats_msg { +pub family: __u8, +pub pad1: __u8, +pub pad2: __u16, +pub ifindex: __u32, +pub filter_mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_rmnet_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifaddrmsg { +pub ifa_family: __u8, +pub ifa_prefixlen: __u8, +pub ifa_flags: __u8, +pub ifa_scope: __u8, +pub ifa_index: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifa_cacheinfo { +pub ifa_prefered: __u32, +pub ifa_valid: __u32, +pub cstamp: __u32, +pub tstamp: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ndmsg { +pub ndm_family: __u8, +pub ndm_pad1: __u8, +pub ndm_pad2: __u16, +pub ndm_ifindex: __s32, +pub ndm_state: __u16, +pub ndm_flags: __u8, +pub ndm_type: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nda_cacheinfo { +pub ndm_confirmed: __u32, +pub ndm_used: __u32, +pub ndm_updated: __u32, +pub ndm_refcnt: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ndt_stats { +pub ndts_allocs: __u64, +pub ndts_destroys: __u64, +pub ndts_hash_grows: __u64, +pub ndts_res_failed: __u64, +pub ndts_lookups: __u64, +pub ndts_hits: __u64, +pub ndts_rcv_probes_mcast: __u64, +pub ndts_rcv_probes_ucast: __u64, +pub ndts_periodic_gc_runs: __u64, +pub ndts_forced_gc_runs: __u64, +pub ndts_table_fulls: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ndtmsg { +pub ndtm_family: __u8, +pub ndtm_pad1: __u8, +pub ndtm_pad2: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ndt_config { +pub ndtc_key_len: __u16, +pub ndtc_entry_size: __u16, +pub ndtc_entries: __u32, +pub ndtc_last_flush: __u32, +pub ndtc_last_rand: __u32, +pub ndtc_hash_rnd: __u32, +pub ndtc_hash_mask: __u32, +pub ndtc_hash_chain_gc: __u32, +pub ndtc_proxy_qlen: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtattr { +pub rta_len: crate::ctypes::c_ushort, +pub rta_type: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtmsg { +pub rtm_family: crate::ctypes::c_uchar, +pub rtm_dst_len: crate::ctypes::c_uchar, +pub rtm_src_len: crate::ctypes::c_uchar, +pub rtm_tos: crate::ctypes::c_uchar, +pub rtm_table: crate::ctypes::c_uchar, +pub rtm_protocol: crate::ctypes::c_uchar, +pub rtm_scope: crate::ctypes::c_uchar, +pub rtm_type: crate::ctypes::c_uchar, +pub rtm_flags: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnexthop { +pub rtnh_len: crate::ctypes::c_ushort, +pub rtnh_flags: crate::ctypes::c_uchar, +pub rtnh_hops: crate::ctypes::c_uchar, +pub rtnh_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug)] +pub struct rtvia { +pub rtvia_family: __kernel_sa_family_t, +pub rtvia_addr: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rta_cacheinfo { +pub rta_clntref: __u32, +pub rta_lastuse: __u32, +pub rta_expires: __s32, +pub rta_error: __u32, +pub rta_used: __u32, +pub rta_id: __u32, +pub rta_ts: __u32, +pub rta_tsage: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct rta_session { +pub proto: __u8, +pub pad1: __u8, +pub pad2: __u16, +pub u: rta_session__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rta_session__bindgen_ty_1__bindgen_ty_1 { +pub sport: __u16, +pub dport: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rta_session__bindgen_ty_1__bindgen_ty_2 { +pub type_: __u8, +pub code: __u8, +pub ident: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rta_mfc_stats { +pub mfcs_packets: __u64, +pub mfcs_bytes: __u64, +pub mfcs_wrong_if: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtgenmsg { +pub rtgen_family: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifinfomsg { +pub ifi_family: crate::ctypes::c_uchar, +pub __ifi_pad: crate::ctypes::c_uchar, +pub ifi_type: crate::ctypes::c_ushort, +pub ifi_index: crate::ctypes::c_int, +pub ifi_flags: crate::ctypes::c_uint, +pub ifi_change: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct prefixmsg { +pub prefix_family: crate::ctypes::c_uchar, +pub prefix_pad1: crate::ctypes::c_uchar, +pub prefix_pad2: crate::ctypes::c_ushort, +pub prefix_ifindex: crate::ctypes::c_int, +pub prefix_type: crate::ctypes::c_uchar, +pub prefix_len: crate::ctypes::c_uchar, +pub prefix_flags: crate::ctypes::c_uchar, +pub prefix_pad3: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct prefix_cacheinfo { +pub preferred_time: __u32, +pub valid_time: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcmsg { +pub tcm_family: crate::ctypes::c_uchar, +pub tcm__pad1: crate::ctypes::c_uchar, +pub tcm__pad2: crate::ctypes::c_ushort, +pub tcm_ifindex: crate::ctypes::c_int, +pub tcm_handle: __u32, +pub tcm_parent: __u32, +pub tcm_info: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nduseroptmsg { +pub nduseropt_family: crate::ctypes::c_uchar, +pub nduseropt_pad1: crate::ctypes::c_uchar, +pub nduseropt_opts_len: crate::ctypes::c_ushort, +pub nduseropt_ifindex: crate::ctypes::c_int, +pub nduseropt_icmp_type: __u8, +pub nduseropt_icmp_code: __u8, +pub nduseropt_pad2: crate::ctypes::c_ushort, +pub nduseropt_pad3: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcamsg { +pub tca_family: crate::ctypes::c_uchar, +pub tca__pad1: crate::ctypes::c_uchar, +pub tca__pad2: crate::ctypes::c_ushort, +} +pub const _K_SS_MAXSIZE: u32 = 128; +pub const SOCK_SNDBUF_LOCK: u32 = 1; +pub const SOCK_RCVBUF_LOCK: u32 = 2; +pub const SOCK_BUF_LOCK_MASK: u32 = 3; +pub const SOCK_TXREHASH_DEFAULT: u32 = 255; +pub const SOCK_TXREHASH_DISABLED: u32 = 0; +pub const SOCK_TXREHASH_ENABLED: u32 = 1; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const NETLINK_ROUTE: u32 = 0; +pub const NETLINK_UNUSED: u32 = 1; +pub const NETLINK_USERSOCK: u32 = 2; +pub const NETLINK_FIREWALL: u32 = 3; +pub const NETLINK_SOCK_DIAG: u32 = 4; +pub const NETLINK_NFLOG: u32 = 5; +pub const NETLINK_XFRM: u32 = 6; +pub const NETLINK_SELINUX: u32 = 7; +pub const NETLINK_ISCSI: u32 = 8; +pub const NETLINK_AUDIT: u32 = 9; +pub const NETLINK_FIB_LOOKUP: u32 = 10; +pub const NETLINK_CONNECTOR: u32 = 11; +pub const NETLINK_NETFILTER: u32 = 12; +pub const NETLINK_IP6_FW: u32 = 13; +pub const NETLINK_DNRTMSG: u32 = 14; +pub const NETLINK_KOBJECT_UEVENT: u32 = 15; +pub const NETLINK_GENERIC: u32 = 16; +pub const NETLINK_SCSITRANSPORT: u32 = 18; +pub const NETLINK_ECRYPTFS: u32 = 19; +pub const NETLINK_RDMA: u32 = 20; +pub const NETLINK_CRYPTO: u32 = 21; +pub const NETLINK_SMC: u32 = 22; +pub const NETLINK_INET_DIAG: u32 = 4; +pub const MAX_LINKS: u32 = 32; +pub const NLM_F_REQUEST: u32 = 1; +pub const NLM_F_MULTI: u32 = 2; +pub const NLM_F_ACK: u32 = 4; +pub const NLM_F_ECHO: u32 = 8; +pub const NLM_F_DUMP_INTR: u32 = 16; +pub const NLM_F_DUMP_FILTERED: u32 = 32; +pub const NLM_F_ROOT: u32 = 256; +pub const NLM_F_MATCH: u32 = 512; +pub const NLM_F_ATOMIC: u32 = 1024; +pub const NLM_F_DUMP: u32 = 768; +pub const NLM_F_REPLACE: u32 = 256; +pub const NLM_F_EXCL: u32 = 512; +pub const NLM_F_CREATE: u32 = 1024; +pub const NLM_F_APPEND: u32 = 2048; +pub const NLM_F_NONREC: u32 = 256; +pub const NLM_F_BULK: u32 = 512; +pub const NLM_F_CAPPED: u32 = 256; +pub const NLM_F_ACK_TLVS: u32 = 512; +pub const NLMSG_ALIGNTO: u32 = 4; +pub const NLMSG_NOOP: u32 = 1; +pub const NLMSG_ERROR: u32 = 2; +pub const NLMSG_DONE: u32 = 3; +pub const NLMSG_OVERRUN: u32 = 4; +pub const NLMSG_MIN_TYPE: u32 = 16; +pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; +pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; +pub const NETLINK_PKTINFO: u32 = 3; +pub const NETLINK_BROADCAST_ERROR: u32 = 4; +pub const NETLINK_NO_ENOBUFS: u32 = 5; +pub const NETLINK_RX_RING: u32 = 6; +pub const NETLINK_TX_RING: u32 = 7; +pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; +pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; +pub const NETLINK_CAP_ACK: u32 = 10; +pub const NETLINK_EXT_ACK: u32 = 11; +pub const NETLINK_GET_STRICT_CHK: u32 = 12; +pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; +pub const NET_MAJOR: u32 = 36; +pub const NLA_F_NESTED: u32 = 32768; +pub const NLA_F_NET_BYTEORDER: u32 = 16384; +pub const NLA_TYPE_MASK: i32 = -49153; +pub const NLA_ALIGNTO: u32 = 4; +pub const NL80211_GENL_NAME: &[u8; 8] = b"nl80211\0"; +pub const NL80211_MULTICAST_GROUP_CONFIG: &[u8; 7] = b"config\0"; +pub const NL80211_MULTICAST_GROUP_SCAN: &[u8; 5] = b"scan\0"; +pub const NL80211_MULTICAST_GROUP_REG: &[u8; 11] = b"regulatory\0"; +pub const NL80211_MULTICAST_GROUP_MLME: &[u8; 5] = b"mlme\0"; +pub const NL80211_MULTICAST_GROUP_VENDOR: &[u8; 7] = b"vendor\0"; +pub const NL80211_MULTICAST_GROUP_NAN: &[u8; 4] = b"nan\0"; +pub const NL80211_MULTICAST_GROUP_TESTMODE: &[u8; 9] = b"testmode\0"; +pub const NL80211_EDMG_BW_CONFIG_MIN: u32 = 4; +pub const NL80211_EDMG_BW_CONFIG_MAX: u32 = 15; +pub const NL80211_EDMG_CHANNELS_MIN: u32 = 1; +pub const NL80211_EDMG_CHANNELS_MAX: u32 = 60; +pub const NL80211_WIPHY_NAME_MAXLEN: u32 = 64; +pub const NL80211_MAX_SUPP_RATES: u32 = 32; +pub const NL80211_MAX_SUPP_SELECTORS: u32 = 128; +pub const NL80211_MAX_SUPP_HT_RATES: u32 = 77; +pub const NL80211_MAX_SUPP_REG_RULES: u32 = 128; +pub const NL80211_TKIP_DATA_OFFSET_ENCR_KEY: u32 = 0; +pub const NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY: u32 = 16; +pub const NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY: u32 = 24; +pub const NL80211_HT_CAPABILITY_LEN: u32 = 26; +pub const NL80211_VHT_CAPABILITY_LEN: u32 = 12; +pub const NL80211_HE_MIN_CAPABILITY_LEN: u32 = 16; +pub const NL80211_HE_MAX_CAPABILITY_LEN: u32 = 54; +pub const NL80211_MAX_NR_CIPHER_SUITES: u32 = 5; +pub const NL80211_MAX_NR_AKM_SUITES: u32 = 2; +pub const NL80211_EHT_MIN_CAPABILITY_LEN: u32 = 13; +pub const NL80211_EHT_MAX_CAPABILITY_LEN: u32 = 51; +pub const NL80211_MIN_REMAIN_ON_CHANNEL_TIME: u32 = 10; +pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; +pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; +pub const NL80211_VHT_NSS_MAX: u32 = 8; +pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_KCK_LEN: u32 = 16; +pub const NL80211_KEK_LEN: u32 = 16; +pub const NL80211_KCK_EXT_LEN: u32 = 24; +pub const NL80211_KEK_EXT_LEN: u32 = 32; +pub const NL80211_KCK_EXT_LEN_32: u32 = 32; +pub const NL80211_REPLAY_CTR_LEN: u32 = 8; +pub const NL80211_CRIT_PROTO_MAX_DURATION: u32 = 5000; +pub const NL80211_VENDOR_ID_IS_LINUX: u32 = 2147483648; +pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; +pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; +pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; +pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; +pub const MACVLAN_FLAG_NODST: u32 = 2; +pub const IPVLAN_F_PRIVATE: u32 = 1; +pub const IPVLAN_F_VEPA: u32 = 2; +pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; +pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; +pub const MAX_VLAN_LIST_LEN: u32 = 1; +pub const PORT_PROFILE_MAX: u32 = 40; +pub const PORT_UUID_MAX: u32 = 16; +pub const PORT_SELF_VF: i32 = -1; +pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; +pub const XDP_FLAGS_SKB_MODE: u32 = 2; +pub const XDP_FLAGS_DRV_MODE: u32 = 4; +pub const XDP_FLAGS_HW_MODE: u32 = 8; +pub const XDP_FLAGS_REPLACE: u32 = 16; +pub const XDP_FLAGS_MODES: u32 = 14; +pub const XDP_FLAGS_MASK: u32 = 31; +pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; +pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; +pub const IFA_F_SECONDARY: u32 = 1; +pub const IFA_F_TEMPORARY: u32 = 1; +pub const IFA_F_NODAD: u32 = 2; +pub const IFA_F_OPTIMISTIC: u32 = 4; +pub const IFA_F_DADFAILED: u32 = 8; +pub const IFA_F_HOMEADDRESS: u32 = 16; +pub const IFA_F_DEPRECATED: u32 = 32; +pub const IFA_F_TENTATIVE: u32 = 64; +pub const IFA_F_PERMANENT: u32 = 128; +pub const IFA_F_MANAGETEMPADDR: u32 = 256; +pub const IFA_F_NOPREFIXROUTE: u32 = 512; +pub const IFA_F_MCAUTOJOIN: u32 = 1024; +pub const IFA_F_STABLE_PRIVACY: u32 = 2048; +pub const IFAPROT_UNSPEC: u32 = 0; +pub const IFAPROT_KERNEL_LO: u32 = 1; +pub const IFAPROT_KERNEL_RA: u32 = 2; +pub const IFAPROT_KERNEL_LL: u32 = 3; +pub const NTF_USE: u32 = 1; +pub const NTF_SELF: u32 = 2; +pub const NTF_MASTER: u32 = 4; +pub const NTF_PROXY: u32 = 8; +pub const NTF_EXT_LEARNED: u32 = 16; +pub const NTF_OFFLOADED: u32 = 32; +pub const NTF_STICKY: u32 = 64; +pub const NTF_ROUTER: u32 = 128; +pub const NTF_EXT_MANAGED: u32 = 1; +pub const NTF_EXT_LOCKED: u32 = 2; +pub const NUD_INCOMPLETE: u32 = 1; +pub const NUD_REACHABLE: u32 = 2; +pub const NUD_STALE: u32 = 4; +pub const NUD_DELAY: u32 = 8; +pub const NUD_PROBE: u32 = 16; +pub const NUD_FAILED: u32 = 32; +pub const NUD_NOARP: u32 = 64; +pub const NUD_PERMANENT: u32 = 128; +pub const NUD_NONE: u32 = 0; +pub const RTNL_FAMILY_IPMR: u32 = 128; +pub const RTNL_FAMILY_IP6MR: u32 = 129; +pub const RTNL_FAMILY_MAX: u32 = 129; +pub const RTA_ALIGNTO: u32 = 4; +pub const RTPROT_UNSPEC: u32 = 0; +pub const RTPROT_REDIRECT: u32 = 1; +pub const RTPROT_KERNEL: u32 = 2; +pub const RTPROT_BOOT: u32 = 3; +pub const RTPROT_STATIC: u32 = 4; +pub const RTPROT_GATED: u32 = 8; +pub const RTPROT_RA: u32 = 9; +pub const RTPROT_MRT: u32 = 10; +pub const RTPROT_ZEBRA: u32 = 11; +pub const RTPROT_BIRD: u32 = 12; +pub const RTPROT_DNROUTED: u32 = 13; +pub const RTPROT_XORP: u32 = 14; +pub const RTPROT_NTK: u32 = 15; +pub const RTPROT_DHCP: u32 = 16; +pub const RTPROT_MROUTED: u32 = 17; +pub const RTPROT_KEEPALIVED: u32 = 18; +pub const RTPROT_BABEL: u32 = 42; +pub const RTPROT_OVN: u32 = 84; +pub const RTPROT_OPENR: u32 = 99; +pub const RTPROT_BGP: u32 = 186; +pub const RTPROT_ISIS: u32 = 187; +pub const RTPROT_OSPF: u32 = 188; +pub const RTPROT_RIP: u32 = 189; +pub const RTPROT_EIGRP: u32 = 192; +pub const RTM_F_NOTIFY: u32 = 256; +pub const RTM_F_CLONED: u32 = 512; +pub const RTM_F_EQUALIZE: u32 = 1024; +pub const RTM_F_PREFIX: u32 = 2048; +pub const RTM_F_LOOKUP_TABLE: u32 = 4096; +pub const RTM_F_FIB_MATCH: u32 = 8192; +pub const RTM_F_OFFLOAD: u32 = 16384; +pub const RTM_F_TRAP: u32 = 32768; +pub const RTM_F_OFFLOAD_FAILED: u32 = 536870912; +pub const RTNH_F_DEAD: u32 = 1; +pub const RTNH_F_PERVASIVE: u32 = 2; +pub const RTNH_F_ONLINK: u32 = 4; +pub const RTNH_F_OFFLOAD: u32 = 8; +pub const RTNH_F_LINKDOWN: u32 = 16; +pub const RTNH_F_UNRESOLVED: u32 = 32; +pub const RTNH_F_TRAP: u32 = 64; +pub const RTNH_COMPARE_MASK: u32 = 89; +pub const RTNH_ALIGNTO: u32 = 4; +pub const RTNETLINK_HAVE_PEERINFO: u32 = 1; +pub const RTAX_FEATURE_ECN: u32 = 1; +pub const RTAX_FEATURE_SACK: u32 = 2; +pub const RTAX_FEATURE_TIMESTAMP: u32 = 4; +pub const RTAX_FEATURE_ALLFRAG: u32 = 8; +pub const RTAX_FEATURE_TCP_USEC_TS: u32 = 16; +pub const RTAX_FEATURE_MASK: u32 = 31; +pub const TCM_IFINDEX_MAGIC_BLOCK: u32 = 4294967295; +pub const TCA_DUMP_FLAGS_TERSE: u32 = 1; +pub const RTMGRP_LINK: u32 = 1; +pub const RTMGRP_NOTIFY: u32 = 2; +pub const RTMGRP_NEIGH: u32 = 4; +pub const RTMGRP_TC: u32 = 8; +pub const RTMGRP_IPV4_IFADDR: u32 = 16; +pub const RTMGRP_IPV4_MROUTE: u32 = 32; +pub const RTMGRP_IPV4_ROUTE: u32 = 64; +pub const RTMGRP_IPV4_RULE: u32 = 128; +pub const RTMGRP_IPV6_IFADDR: u32 = 256; +pub const RTMGRP_IPV6_MROUTE: u32 = 512; +pub const RTMGRP_IPV6_ROUTE: u32 = 1024; +pub const RTMGRP_IPV6_IFINFO: u32 = 2048; +pub const RTMGRP_DECnet_IFADDR: u32 = 4096; +pub const RTMGRP_DECnet_ROUTE: u32 = 16384; +pub const RTMGRP_IPV6_PREFIX: u32 = 131072; +pub const TCA_FLAG_LARGE_DUMP_ON: u32 = 1; +pub const TCA_ACT_FLAG_LARGE_DUMP_ON: u32 = 1; +pub const TCA_ACT_FLAG_TERSE_DUMP: u32 = 2; +pub const RTEXT_FILTER_VF: u32 = 1; +pub const RTEXT_FILTER_BRVLAN: u32 = 2; +pub const RTEXT_FILTER_BRVLAN_COMPRESSED: u32 = 4; +pub const RTEXT_FILTER_SKIP_STATS: u32 = 8; +pub const RTEXT_FILTER_MRP: u32 = 16; +pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; +pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; +pub const RTEXT_FILTER_MST: u32 = 128; +pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED; +pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED; +pub const IFLA_UNSPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_UNSPEC; +pub const IFLA_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ADDRESS; +pub const IFLA_BROADCAST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_BROADCAST; +pub const IFLA_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFNAME; +pub const IFLA_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MTU; +pub const IFLA_LINK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK; +pub const IFLA_QDISC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_QDISC; +pub const IFLA_STATS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS; +pub const IFLA_COST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_COST; +pub const IFLA_PRIORITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PRIORITY; +pub const IFLA_MASTER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MASTER; +pub const IFLA_WIRELESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WIRELESS; +pub const IFLA_PROTINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTINFO; +pub const IFLA_TXQLEN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TXQLEN; +pub const IFLA_MAP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAP; +pub const IFLA_WEIGHT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WEIGHT; +pub const IFLA_OPERSTATE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_OPERSTATE; +pub const IFLA_LINKMODE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKMODE; +pub const IFLA_LINKINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKINFO; +pub const IFLA_NET_NS_PID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_PID; +pub const IFLA_IFALIAS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFALIAS; +pub const IFLA_NUM_VF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_VF; +pub const IFLA_VFINFO_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VFINFO_LIST; +pub const IFLA_STATS64: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS64; +pub const IFLA_VF_PORTS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VF_PORTS; +pub const IFLA_PORT_SELF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PORT_SELF; +pub const IFLA_AF_SPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_AF_SPEC; +pub const IFLA_GROUP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GROUP; +pub const IFLA_NET_NS_FD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_FD; +pub const IFLA_EXT_MASK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EXT_MASK; +pub const IFLA_PROMISCUITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROMISCUITY; +pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_TX_QUEUES; +pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_RX_QUEUES; +pub const IFLA_CARRIER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER; +pub const IFLA_PHYS_PORT_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_ID; +pub const IFLA_CARRIER_CHANGES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_CHANGES; +pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_SWITCH_ID; +pub const IFLA_LINK_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK_NETNSID; +pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_NAME; +pub const IFLA_PROTO_DOWN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN; +pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SEGS; +pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SIZE; +pub const IFLA_PAD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PAD; +pub const IFLA_XDP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_XDP; +pub const IFLA_EVENT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EVENT; +pub const IFLA_NEW_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_NETNSID; +pub const IFLA_IF_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; +pub const IFLA_TARGET_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; +pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_UP_COUNT; +pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_DOWN_COUNT; +pub const IFLA_NEW_IFINDEX: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_IFINDEX; +pub const IFLA_MIN_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MIN_MTU; +pub const IFLA_MAX_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_MTU; +pub const IFLA_PROP_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROP_LIST; +pub const IFLA_ALT_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALT_IFNAME; +pub const IFLA_PERM_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PERM_ADDRESS; +pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN_REASON; +pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_NAME; +pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_BUS_NAME; +pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_MAX_SIZE; +pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SIZE; +pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SEGS; +pub const IFLA_ALLMULTI: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALLMULTI; +pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; +pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; +pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; +pub const IFLA_DPLL_PIN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_PACING_OFFLOAD_HORIZON; +pub const IFLA_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; +pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; +pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; +pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; +pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_3 = _bindgen_ty_3::__IFLA_PROTO_DOWN_REASON_CNT; +pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; +pub const IFLA_INET_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_UNSPEC; +pub const IFLA_INET_CONF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_CONF; +pub const __IFLA_INET_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_INET_MAX; +pub const IFLA_INET6_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_UNSPEC; +pub const IFLA_INET6_FLAGS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_FLAGS; +pub const IFLA_INET6_CONF: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CONF; +pub const IFLA_INET6_STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_STATS; +pub const IFLA_INET6_MCAST: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_MCAST; +pub const IFLA_INET6_CACHEINFO: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CACHEINFO; +pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ICMP6STATS; +pub const IFLA_INET6_TOKEN: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_TOKEN; +pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ADDR_GEN_MODE; +pub const IFLA_INET6_RA_MTU: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_RA_MTU; +pub const __IFLA_INET6_MAX: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_INET6_MAX; +pub const IFLA_BR_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_UNSPEC; +pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FORWARD_DELAY; +pub const IFLA_BR_HELLO_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIME; +pub const IFLA_BR_MAX_AGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MAX_AGE; +pub const IFLA_BR_AGEING_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_AGEING_TIME; +pub const IFLA_BR_STP_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_STATE; +pub const IFLA_BR_PRIORITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PRIORITY; +pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_FILTERING; +pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_PROTOCOL; +pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_FWD_MASK; +pub const IFLA_BR_ROOT_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_ID; +pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_BRIDGE_ID; +pub const IFLA_BR_ROOT_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PORT; +pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PATH_COST; +pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE; +pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; +pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIMER; +pub const IFLA_BR_TCN_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TCN_TIMER; +pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_TIMER; +pub const IFLA_BR_GC_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GC_TIMER; +pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_ADDR; +pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_FLUSH; +pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_ROUTER; +pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_SNOOPING; +pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_USE_IFADDR; +pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER; +pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_ELASTICITY; +pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_MAX; +pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_CNT; +pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_CNT; +pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_INTVL; +pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MEMBERSHIP_INTVL; +pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_INTVL; +pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_INTVL; +pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; +pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; +pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IPTABLES; +pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IP6TABLES; +pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_ARPTABLES; +pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_DEFAULT_PVID; +pub const IFLA_BR_PAD: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PAD; +pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_ENABLED; +pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STATS_ENABLED; +pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_IGMP_VERSION; +pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MLD_VERSION; +pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_PER_PORT; +pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BOOLOPT; +pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; +pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; +pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; +pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; +pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; +pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNSPEC; +pub const IFLA_BRPORT_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_STATE; +pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PRIORITY; +pub const IFLA_BRPORT_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_COST; +pub const IFLA_BRPORT_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MODE; +pub const IFLA_BRPORT_GUARD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GUARD; +pub const IFLA_BRPORT_PROTECT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROTECT; +pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FAST_LEAVE; +pub const IFLA_BRPORT_LEARNING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING; +pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNICAST_FLOOD; +pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP; +pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING_SYNC; +pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP_WIFI; +pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ROOT_ID; +pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BRIDGE_ID; +pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_PORT; +pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_COST; +pub const IFLA_BRPORT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ID; +pub const IFLA_BRPORT_NO: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NO; +pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; +pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_CONFIG_PENDING; +pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MESSAGE_AGE_TIMER; +pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FORWARD_DELAY_TIMER; +pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_HOLD_TIMER; +pub const IFLA_BRPORT_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FLUSH; +pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MULTICAST_ROUTER; +pub const IFLA_BRPORT_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PAD; +pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_FLOOD; +pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_TO_UCAST; +pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_VLAN_TUNNEL; +pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BCAST_FLOOD; +pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GROUP_FWD_MASK; +pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_SUPPRESS; +pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ISOLATED; +pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_PORT; +pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_RING_OPEN; +pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_IN_OPEN; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; +pub const IFLA_BRPORT_LOCKED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LOCKED; +pub const IFLA_BRPORT_MAB: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MAB; +pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_N_GROUPS; +pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; +pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; +pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; +pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; +pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; +pub const IFLA_INFO_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_DATA; +pub const IFLA_INFO_XSTATS: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_XSTATS; +pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_KIND; +pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_DATA; +pub const __IFLA_INFO_MAX: _bindgen_ty_9 = _bindgen_ty_9::__IFLA_INFO_MAX; +pub const IFLA_VLAN_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_UNSPEC; +pub const IFLA_VLAN_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_ID; +pub const IFLA_VLAN_FLAGS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_FLAGS; +pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_EGRESS_QOS; +pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_INGRESS_QOS; +pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_PROTOCOL; +pub const __IFLA_VLAN_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_VLAN_MAX; +pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_UNSPEC; +pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_MAPPING; +pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_VLAN_QOS_MAX; +pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_UNSPEC; +pub const IFLA_MACVLAN_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MODE; +pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_FLAGS; +pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_MODE; +pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR; +pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_DATA; +pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_COUNT; +pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN; +pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN_USED; +pub const IFLA_MACVLAN_BC_CUTOFF: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_CUTOFF; +pub const __IFLA_MACVLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_MACVLAN_MAX; +pub const IFLA_VRF_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_UNSPEC; +pub const IFLA_VRF_TABLE: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_TABLE; +pub const __IFLA_VRF_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VRF_MAX; +pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_UNSPEC; +pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_TABLE; +pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_VRF_PORT_MAX; +pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_UNSPEC; +pub const IFLA_MACSEC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCI; +pub const IFLA_MACSEC_PORT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PORT; +pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ICV_LEN; +pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_CIPHER_SUITE; +pub const IFLA_MACSEC_WINDOW: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_WINDOW; +pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCODING_SA; +pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCRYPT; +pub const IFLA_MACSEC_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PROTECT; +pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_INC_SCI; +pub const IFLA_MACSEC_ES: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ES; +pub const IFLA_MACSEC_SCB: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCB; +pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_REPLAY_PROTECT; +pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_VALIDATION; +pub const IFLA_MACSEC_PAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PAD; +pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_OFFLOAD; +pub const __IFLA_MACSEC_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_MACSEC_MAX; +pub const IFLA_XFRM_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_UNSPEC; +pub const IFLA_XFRM_LINK: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_LINK; +pub const IFLA_XFRM_IF_ID: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_IF_ID; +pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_COLLECT_METADATA; +pub const __IFLA_XFRM_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_XFRM_MAX; +pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_UNSPEC; +pub const IFLA_IPVLAN_MODE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_MODE; +pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_FLAGS; +pub const __IFLA_IPVLAN_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_IPVLAN_MAX; +pub const IFLA_NETKIT_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_UNSPEC; +pub const IFLA_NETKIT_PEER_INFO: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_INFO; +pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PRIMARY; +pub const IFLA_NETKIT_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_POLICY; +pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_POLICY; +pub const IFLA_NETKIT_MODE: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_SCRUB; +pub const IFLA_NETKIT_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; +pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const __IFLA_NETKIT_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_NETKIT_MAX; +pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_UNSPEC; +pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_BYTES; +pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_PKTS; +pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_DROPS; +pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_TX_BYTES; +pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_TX_PKTS; +pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_TX_DROPS; +pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_TX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_PAD; +pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_19 = _bindgen_ty_19::__VNIFILTER_ENTRY_STATS_MAX; +pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_START; +pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_END; +pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_GROUP; +pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_GROUP6; +pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_STATS; +pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_20 = _bindgen_ty_20::__VXLAN_VNIFILTER_ENTRY_MAX; +pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VXLAN_VNIFILTER_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_21 = _bindgen_ty_21::VXLAN_VNIFILTER_ENTRY; +pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_21 = _bindgen_ty_21::__VXLAN_VNIFILTER_MAX; +pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_UNSPEC; +pub const IFLA_VXLAN_ID: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_ID; +pub const IFLA_VXLAN_GROUP: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_GROUP; +pub const IFLA_VXLAN_LINK: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LINK; +pub const IFLA_VXLAN_LOCAL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LOCAL; +pub const IFLA_VXLAN_TTL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_TTL; +pub const IFLA_VXLAN_TOS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_TOS; +pub const IFLA_VXLAN_LEARNING: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LEARNING; +pub const IFLA_VXLAN_AGEING: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_AGEING; +pub const IFLA_VXLAN_LIMIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LIMIT; +pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_PORT_RANGE; +pub const IFLA_VXLAN_PROXY: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_PROXY; +pub const IFLA_VXLAN_RSC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_RSC; +pub const IFLA_VXLAN_L2MISS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_L2MISS; +pub const IFLA_VXLAN_L3MISS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_L3MISS; +pub const IFLA_VXLAN_PORT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_PORT; +pub const IFLA_VXLAN_GROUP6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_GROUP6; +pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LOCAL6; +pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_UDP_CSUM; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; +pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_REMCSUM_TX; +pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_REMCSUM_RX; +pub const IFLA_VXLAN_GBP: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_GBP; +pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_REMCSUM_NOPARTIAL; +pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_COLLECT_METADATA; +pub const IFLA_VXLAN_LABEL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LABEL; +pub const IFLA_VXLAN_GPE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_GPE; +pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_TTL_INHERIT; +pub const IFLA_VXLAN_DF: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_DF; +pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_VNIFILTER; +pub const IFLA_VXLAN_LOCALBYPASS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LOCALBYPASS; +pub const IFLA_VXLAN_LABEL_POLICY: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LABEL_POLICY; +pub const IFLA_VXLAN_RESERVED_BITS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_RESERVED_BITS; +pub const __IFLA_VXLAN_MAX: _bindgen_ty_22 = _bindgen_ty_22::__IFLA_VXLAN_MAX; +pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_UNSPEC; +pub const IFLA_GENEVE_ID: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ID; +pub const IFLA_GENEVE_REMOTE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_REMOTE; +pub const IFLA_GENEVE_TTL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_TTL; +pub const IFLA_GENEVE_TOS: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_TOS; +pub const IFLA_GENEVE_PORT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT; +pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_COLLECT_METADATA; +pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_REMOTE6; +pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_UDP_CSUM; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; +pub const IFLA_GENEVE_LABEL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LABEL; +pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_TTL_INHERIT; +pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; +pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; +pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; +pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; +pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; +pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_ETHERTYPE; +pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_SRCPORT_MIN; +pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_MULTIPROTO_MODE; +pub const __IFLA_BAREUDP_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_BAREUDP_MAX; +pub const IFLA_PPP_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_PPP_UNSPEC; +pub const IFLA_PPP_DEV_FD: _bindgen_ty_25 = _bindgen_ty_25::IFLA_PPP_DEV_FD; +pub const __IFLA_PPP_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_PPP_MAX; +pub const IFLA_GTP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_UNSPEC; +pub const IFLA_GTP_FD0: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_FD0; +pub const IFLA_GTP_FD1: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_FD1; +pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_PDP_HASHSIZE; +pub const IFLA_GTP_ROLE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_ROLE; +pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_CREATE_SOCKETS; +pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_RESTART_COUNT; +pub const IFLA_GTP_LOCAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_LOCAL; +pub const IFLA_GTP_LOCAL6: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_LOCAL6; +pub const __IFLA_GTP_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_GTP_MAX; +pub const IFLA_BOND_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_UNSPEC; +pub const IFLA_BOND_MODE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MODE; +pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ACTIVE_SLAVE; +pub const IFLA_BOND_MIIMON: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MIIMON; +pub const IFLA_BOND_UPDELAY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_UPDELAY; +pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_DOWNDELAY; +pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_USE_CARRIER; +pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ARP_INTERVAL; +pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ARP_IP_TARGET; +pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ARP_VALIDATE; +pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ARP_ALL_TARGETS; +pub const IFLA_BOND_PRIMARY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_PRIMARY; +pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_PRIMARY_RESELECT; +pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_FAIL_OVER_MAC; +pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_XMIT_HASH_POLICY; +pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_RESEND_IGMP; +pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NUM_PEER_NOTIF; +pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ALL_SLAVES_ACTIVE; +pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MIN_LINKS; +pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LP_INTERVAL; +pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_PACKETS_PER_SLAVE; +pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_LACP_RATE; +pub const IFLA_BOND_AD_SELECT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_SELECT; +pub const IFLA_BOND_AD_INFO: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO; +pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_ACTOR_SYS_PRIO; +pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_USER_PORT_KEY; +pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_ACTOR_SYSTEM; +pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_TLB_DYNAMIC_LB; +pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_PEER_NOTIF_DELAY; +pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_LACP_ACTIVE; +pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSED_MAX; +pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; +pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; +pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; +pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; +pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; +pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_NUM_PORTS; +pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_ACTOR_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_PARTNER_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_PARTNER_MAC; +pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_BOND_AD_INFO_MAX; +pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_UNSPEC; +pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_STATE; +pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_MII_STATUS; +pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; +pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PERM_HWADDR; +pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_QUEUE_ID; +pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; +pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; +pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; +pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; +pub const __IFLA_VF_INFO_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_VF_INFO_MAX; +pub const IFLA_VF_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_UNSPEC; +pub const IFLA_VF_MAC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_MAC; +pub const IFLA_VF_VLAN: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN; +pub const IFLA_VF_TX_RATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_TX_RATE; +pub const IFLA_VF_SPOOFCHK: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_SPOOFCHK; +pub const IFLA_VF_LINK_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_LINK_STATE; +pub const IFLA_VF_RATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_RATE; +pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_RSS_QUERY_EN; +pub const IFLA_VF_STATS: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_STATS; +pub const IFLA_VF_TRUST: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_TRUST; +pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_IB_NODE_GUID; +pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_IB_PORT_GUID; +pub const IFLA_VF_VLAN_LIST: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_LIST; +pub const IFLA_VF_BROADCAST: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_BROADCAST; +pub const __IFLA_VF_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_VF_MAX; +pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_VLAN_INFO_UNSPEC; +pub const IFLA_VF_VLAN_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_VLAN_INFO; +pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_VLAN_INFO_MAX; +pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_LINK_STATE_AUTO; +pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_LINK_STATE_ENABLE; +pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_LINK_STATE_DISABLE; +pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_LINK_STATE_MAX; +pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_RX_PACKETS; +pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_TX_PACKETS; +pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_RX_BYTES; +pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_TX_BYTES; +pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_BROADCAST; +pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_MULTICAST; +pub const IFLA_VF_STATS_PAD: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_PAD; +pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_RX_DROPPED; +pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_TX_DROPPED; +pub const __IFLA_VF_STATS_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_STATS_MAX; +pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_PORT_UNSPEC; +pub const IFLA_VF_PORT: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_PORT; +pub const __IFLA_VF_PORT_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_VF_PORT_MAX; +pub const IFLA_PORT_UNSPEC: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_UNSPEC; +pub const IFLA_PORT_VF: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_VF; +pub const IFLA_PORT_PROFILE: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_PROFILE; +pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_VSI_TYPE; +pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_INSTANCE_UUID; +pub const IFLA_PORT_HOST_UUID: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_HOST_UUID; +pub const IFLA_PORT_REQUEST: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_REQUEST; +pub const IFLA_PORT_RESPONSE: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_RESPONSE; +pub const __IFLA_PORT_MAX: _bindgen_ty_36 = _bindgen_ty_36::__IFLA_PORT_MAX; +pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_REQUEST_PREASSOCIATE; +pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_37 = _bindgen_ty_37::PORT_REQUEST_PREASSOCIATE_RR; +pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_REQUEST_ASSOCIATE; +pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_REQUEST_DISASSOCIATE; +pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_SUCCESS; +pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_INVALID_FORMAT; +pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_UNUSED_VTID; +pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_VTID_VIOLATION; +pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; +pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_OUT_OF_SYNC; +pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_SUCCESS; +pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_INPROGRESS; +pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_INVALID; +pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_BADSTATE; +pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_ERROR; +pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_39 = _bindgen_ty_39::IFLA_IPOIB_UNSPEC; +pub const IFLA_IPOIB_PKEY: _bindgen_ty_39 = _bindgen_ty_39::IFLA_IPOIB_PKEY; +pub const IFLA_IPOIB_MODE: _bindgen_ty_39 = _bindgen_ty_39::IFLA_IPOIB_MODE; +pub const IFLA_IPOIB_UMCAST: _bindgen_ty_39 = _bindgen_ty_39::IFLA_IPOIB_UMCAST; +pub const __IFLA_IPOIB_MAX: _bindgen_ty_39 = _bindgen_ty_39::__IFLA_IPOIB_MAX; +pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_40 = _bindgen_ty_40::IPOIB_MODE_DATAGRAM; +pub const IPOIB_MODE_CONNECTED: _bindgen_ty_40 = _bindgen_ty_40::IPOIB_MODE_CONNECTED; +pub const HSR_PROTOCOL_HSR: _bindgen_ty_41 = _bindgen_ty_41::HSR_PROTOCOL_HSR; +pub const HSR_PROTOCOL_PRP: _bindgen_ty_41 = _bindgen_ty_41::HSR_PROTOCOL_PRP; +pub const HSR_PROTOCOL_MAX: _bindgen_ty_41 = _bindgen_ty_41::HSR_PROTOCOL_MAX; +pub const IFLA_HSR_UNSPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_UNSPEC; +pub const IFLA_HSR_SLAVE1: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_SLAVE1; +pub const IFLA_HSR_SLAVE2: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_SLAVE2; +pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_MULTICAST_SPEC; +pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_SUPERVISION_ADDR; +pub const IFLA_HSR_SEQ_NR: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_SEQ_NR; +pub const IFLA_HSR_VERSION: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_VERSION; +pub const IFLA_HSR_PROTOCOL: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_PROTOCOL; +pub const IFLA_HSR_INTERLINK: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_INTERLINK; +pub const __IFLA_HSR_MAX: _bindgen_ty_42 = _bindgen_ty_42::__IFLA_HSR_MAX; +pub const IFLA_STATS_UNSPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_UNSPEC; +pub const IFLA_STATS_LINK_64: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_LINK_64; +pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_LINK_XSTATS; +pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_LINK_XSTATS_SLAVE; +pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_LINK_OFFLOAD_XSTATS; +pub const IFLA_STATS_AF_SPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_AF_SPEC; +pub const __IFLA_STATS_MAX: _bindgen_ty_43 = _bindgen_ty_43::__IFLA_STATS_MAX; +pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::IFLA_STATS_GETSET_UNSPEC; +pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_44 = _bindgen_ty_44::IFLA_STATS_GET_FILTERS; +pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_44 = _bindgen_ty_44::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_44 = _bindgen_ty_44::__IFLA_STATS_GETSET_MAX; +pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::LINK_XSTATS_TYPE_UNSPEC; +pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_45 = _bindgen_ty_45::LINK_XSTATS_TYPE_BRIDGE; +pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_45 = _bindgen_ty_45::LINK_XSTATS_TYPE_BOND; +pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_45 = _bindgen_ty_45::__LINK_XSTATS_TYPE_MAX; +pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_CPU_HIT; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO; +pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_OFFLOAD_XSTATS_MAX; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_47 = _bindgen_ty_47::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_47 = _bindgen_ty_47::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_47 = _bindgen_ty_47::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; +pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_47 = _bindgen_ty_47::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; +pub const XDP_ATTACHED_NONE: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_NONE; +pub const XDP_ATTACHED_DRV: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_DRV; +pub const XDP_ATTACHED_SKB: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_SKB; +pub const XDP_ATTACHED_HW: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_HW; +pub const XDP_ATTACHED_MULTI: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_MULTI; +pub const IFLA_XDP_UNSPEC: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_UNSPEC; +pub const IFLA_XDP_FD: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_FD; +pub const IFLA_XDP_ATTACHED: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_ATTACHED; +pub const IFLA_XDP_FLAGS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_FLAGS; +pub const IFLA_XDP_PROG_ID: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_PROG_ID; +pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_DRV_PROG_ID; +pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_SKB_PROG_ID; +pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_HW_PROG_ID; +pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_EXPECTED_FD; +pub const __IFLA_XDP_MAX: _bindgen_ty_49 = _bindgen_ty_49::__IFLA_XDP_MAX; +pub const IFLA_EVENT_NONE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_NONE; +pub const IFLA_EVENT_REBOOT: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_REBOOT; +pub const IFLA_EVENT_FEATURES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_FEATURES; +pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_BONDING_FAILOVER; +pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_NOTIFY_PEERS; +pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_IGMP_RESEND; +pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_BONDING_OPTIONS; +pub const IFLA_TUN_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_UNSPEC; +pub const IFLA_TUN_OWNER: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_OWNER; +pub const IFLA_TUN_GROUP: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_GROUP; +pub const IFLA_TUN_TYPE: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_TYPE; +pub const IFLA_TUN_PI: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_PI; +pub const IFLA_TUN_VNET_HDR: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_VNET_HDR; +pub const IFLA_TUN_PERSIST: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_PERSIST; +pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_MULTI_QUEUE; +pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_NUM_QUEUES; +pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_NUM_DISABLED_QUEUES; +pub const __IFLA_TUN_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_TUN_MAX; +pub const IFLA_RMNET_UNSPEC: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_UNSPEC; +pub const IFLA_RMNET_MUX_ID: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_MUX_ID; +pub const IFLA_RMNET_FLAGS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_FLAGS; +pub const __IFLA_RMNET_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_RMNET_MAX; +pub const IFLA_MCTP_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_UNSPEC; +pub const IFLA_MCTP_NET: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_PHYS_BINDING; +pub const __IFLA_MCTP_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_MCTP_MAX; +pub const IFLA_DSA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_UNSPEC; +pub const IFLA_DSA_CONDUIT: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; +pub const IFLA_DSA_MASTER: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; +pub const __IFLA_DSA_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_DSA_MAX; +pub const IFLA_OVPN_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_OVPN_UNSPEC; +pub const IFLA_OVPN_MODE: _bindgen_ty_55 = _bindgen_ty_55::IFLA_OVPN_MODE; +pub const __IFLA_OVPN_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_OVPN_MAX; +pub const IFA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFA_UNSPEC; +pub const IFA_ADDRESS: _bindgen_ty_56 = _bindgen_ty_56::IFA_ADDRESS; +pub const IFA_LOCAL: _bindgen_ty_56 = _bindgen_ty_56::IFA_LOCAL; +pub const IFA_LABEL: _bindgen_ty_56 = _bindgen_ty_56::IFA_LABEL; +pub const IFA_BROADCAST: _bindgen_ty_56 = _bindgen_ty_56::IFA_BROADCAST; +pub const IFA_ANYCAST: _bindgen_ty_56 = _bindgen_ty_56::IFA_ANYCAST; +pub const IFA_CACHEINFO: _bindgen_ty_56 = _bindgen_ty_56::IFA_CACHEINFO; +pub const IFA_MULTICAST: _bindgen_ty_56 = _bindgen_ty_56::IFA_MULTICAST; +pub const IFA_FLAGS: _bindgen_ty_56 = _bindgen_ty_56::IFA_FLAGS; +pub const IFA_RT_PRIORITY: _bindgen_ty_56 = _bindgen_ty_56::IFA_RT_PRIORITY; +pub const IFA_TARGET_NETNSID: _bindgen_ty_56 = _bindgen_ty_56::IFA_TARGET_NETNSID; +pub const IFA_PROTO: _bindgen_ty_56 = _bindgen_ty_56::IFA_PROTO; +pub const __IFA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__IFA_MAX; +pub const NDA_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::NDA_UNSPEC; +pub const NDA_DST: _bindgen_ty_57 = _bindgen_ty_57::NDA_DST; +pub const NDA_LLADDR: _bindgen_ty_57 = _bindgen_ty_57::NDA_LLADDR; +pub const NDA_CACHEINFO: _bindgen_ty_57 = _bindgen_ty_57::NDA_CACHEINFO; +pub const NDA_PROBES: _bindgen_ty_57 = _bindgen_ty_57::NDA_PROBES; +pub const NDA_VLAN: _bindgen_ty_57 = _bindgen_ty_57::NDA_VLAN; +pub const NDA_PORT: _bindgen_ty_57 = _bindgen_ty_57::NDA_PORT; +pub const NDA_VNI: _bindgen_ty_57 = _bindgen_ty_57::NDA_VNI; +pub const NDA_IFINDEX: _bindgen_ty_57 = _bindgen_ty_57::NDA_IFINDEX; +pub const NDA_MASTER: _bindgen_ty_57 = _bindgen_ty_57::NDA_MASTER; +pub const NDA_LINK_NETNSID: _bindgen_ty_57 = _bindgen_ty_57::NDA_LINK_NETNSID; +pub const NDA_SRC_VNI: _bindgen_ty_57 = _bindgen_ty_57::NDA_SRC_VNI; +pub const NDA_PROTOCOL: _bindgen_ty_57 = _bindgen_ty_57::NDA_PROTOCOL; +pub const NDA_NH_ID: _bindgen_ty_57 = _bindgen_ty_57::NDA_NH_ID; +pub const NDA_FDB_EXT_ATTRS: _bindgen_ty_57 = _bindgen_ty_57::NDA_FDB_EXT_ATTRS; +pub const NDA_FLAGS_EXT: _bindgen_ty_57 = _bindgen_ty_57::NDA_FLAGS_EXT; +pub const NDA_NDM_STATE_MASK: _bindgen_ty_57 = _bindgen_ty_57::NDA_NDM_STATE_MASK; +pub const NDA_NDM_FLAGS_MASK: _bindgen_ty_57 = _bindgen_ty_57::NDA_NDM_FLAGS_MASK; +pub const __NDA_MAX: _bindgen_ty_57 = _bindgen_ty_57::__NDA_MAX; +pub const NDTPA_UNSPEC: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_UNSPEC; +pub const NDTPA_IFINDEX: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_IFINDEX; +pub const NDTPA_REFCNT: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_REFCNT; +pub const NDTPA_REACHABLE_TIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_REACHABLE_TIME; +pub const NDTPA_BASE_REACHABLE_TIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_BASE_REACHABLE_TIME; +pub const NDTPA_RETRANS_TIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_RETRANS_TIME; +pub const NDTPA_GC_STALETIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_GC_STALETIME; +pub const NDTPA_DELAY_PROBE_TIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_DELAY_PROBE_TIME; +pub const NDTPA_QUEUE_LEN: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_QUEUE_LEN; +pub const NDTPA_APP_PROBES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_APP_PROBES; +pub const NDTPA_UCAST_PROBES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_UCAST_PROBES; +pub const NDTPA_MCAST_PROBES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_MCAST_PROBES; +pub const NDTPA_ANYCAST_DELAY: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_ANYCAST_DELAY; +pub const NDTPA_PROXY_DELAY: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_PROXY_DELAY; +pub const NDTPA_PROXY_QLEN: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_PROXY_QLEN; +pub const NDTPA_LOCKTIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_LOCKTIME; +pub const NDTPA_QUEUE_LENBYTES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_QUEUE_LENBYTES; +pub const NDTPA_MCAST_REPROBES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_MCAST_REPROBES; +pub const NDTPA_PAD: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_PAD; +pub const NDTPA_INTERVAL_PROBE_TIME_MS: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_INTERVAL_PROBE_TIME_MS; +pub const __NDTPA_MAX: _bindgen_ty_58 = _bindgen_ty_58::__NDTPA_MAX; +pub const NDTA_UNSPEC: _bindgen_ty_59 = _bindgen_ty_59::NDTA_UNSPEC; +pub const NDTA_NAME: _bindgen_ty_59 = _bindgen_ty_59::NDTA_NAME; +pub const NDTA_THRESH1: _bindgen_ty_59 = _bindgen_ty_59::NDTA_THRESH1; +pub const NDTA_THRESH2: _bindgen_ty_59 = _bindgen_ty_59::NDTA_THRESH2; +pub const NDTA_THRESH3: _bindgen_ty_59 = _bindgen_ty_59::NDTA_THRESH3; +pub const NDTA_CONFIG: _bindgen_ty_59 = _bindgen_ty_59::NDTA_CONFIG; +pub const NDTA_PARMS: _bindgen_ty_59 = _bindgen_ty_59::NDTA_PARMS; +pub const NDTA_STATS: _bindgen_ty_59 = _bindgen_ty_59::NDTA_STATS; +pub const NDTA_GC_INTERVAL: _bindgen_ty_59 = _bindgen_ty_59::NDTA_GC_INTERVAL; +pub const NDTA_PAD: _bindgen_ty_59 = _bindgen_ty_59::NDTA_PAD; +pub const __NDTA_MAX: _bindgen_ty_59 = _bindgen_ty_59::__NDTA_MAX; +pub const FDB_NOTIFY_BIT: _bindgen_ty_60 = _bindgen_ty_60::FDB_NOTIFY_BIT; +pub const FDB_NOTIFY_INACTIVE_BIT: _bindgen_ty_60 = _bindgen_ty_60::FDB_NOTIFY_INACTIVE_BIT; +pub const NFEA_UNSPEC: _bindgen_ty_61 = _bindgen_ty_61::NFEA_UNSPEC; +pub const NFEA_ACTIVITY_NOTIFY: _bindgen_ty_61 = _bindgen_ty_61::NFEA_ACTIVITY_NOTIFY; +pub const NFEA_DONT_REFRESH: _bindgen_ty_61 = _bindgen_ty_61::NFEA_DONT_REFRESH; +pub const __NFEA_MAX: _bindgen_ty_61 = _bindgen_ty_61::__NFEA_MAX; +pub const RTM_BASE: _bindgen_ty_62 = _bindgen_ty_62::RTM_BASE; +pub const RTM_NEWLINK: _bindgen_ty_62 = _bindgen_ty_62::RTM_BASE; +pub const RTM_DELLINK: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELLINK; +pub const RTM_GETLINK: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETLINK; +pub const RTM_SETLINK: _bindgen_ty_62 = _bindgen_ty_62::RTM_SETLINK; +pub const RTM_NEWADDR: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWADDR; +pub const RTM_DELADDR: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELADDR; +pub const RTM_GETADDR: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETADDR; +pub const RTM_NEWROUTE: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWROUTE; +pub const RTM_DELROUTE: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELROUTE; +pub const RTM_GETROUTE: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETROUTE; +pub const RTM_NEWNEIGH: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNEIGH; +pub const RTM_DELNEIGH: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNEIGH; +pub const RTM_GETNEIGH: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNEIGH; +pub const RTM_NEWRULE: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWRULE; +pub const RTM_DELRULE: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELRULE; +pub const RTM_GETRULE: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETRULE; +pub const RTM_NEWQDISC: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWQDISC; +pub const RTM_DELQDISC: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELQDISC; +pub const RTM_GETQDISC: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETQDISC; +pub const RTM_NEWTCLASS: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWTCLASS; +pub const RTM_DELTCLASS: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELTCLASS; +pub const RTM_GETTCLASS: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETTCLASS; +pub const RTM_NEWTFILTER: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWTFILTER; +pub const RTM_DELTFILTER: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELTFILTER; +pub const RTM_GETTFILTER: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETTFILTER; +pub const RTM_NEWACTION: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWACTION; +pub const RTM_DELACTION: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELACTION; +pub const RTM_GETACTION: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETACTION; +pub const RTM_NEWPREFIX: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWPREFIX; +pub const RTM_NEWMULTICAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWMULTICAST; +pub const RTM_DELMULTICAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELMULTICAST; +pub const RTM_GETMULTICAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETMULTICAST; +pub const RTM_NEWANYCAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWANYCAST; +pub const RTM_DELANYCAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELANYCAST; +pub const RTM_GETANYCAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETANYCAST; +pub const RTM_NEWNEIGHTBL: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNEIGHTBL; +pub const RTM_GETNEIGHTBL: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNEIGHTBL; +pub const RTM_SETNEIGHTBL: _bindgen_ty_62 = _bindgen_ty_62::RTM_SETNEIGHTBL; +pub const RTM_NEWNDUSEROPT: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNDUSEROPT; +pub const RTM_NEWADDRLABEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWADDRLABEL; +pub const RTM_DELADDRLABEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELADDRLABEL; +pub const RTM_GETADDRLABEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETADDRLABEL; +pub const RTM_GETDCB: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETDCB; +pub const RTM_SETDCB: _bindgen_ty_62 = _bindgen_ty_62::RTM_SETDCB; +pub const RTM_NEWNETCONF: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNETCONF; +pub const RTM_DELNETCONF: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNETCONF; +pub const RTM_GETNETCONF: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNETCONF; +pub const RTM_NEWMDB: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWMDB; +pub const RTM_DELMDB: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELMDB; +pub const RTM_GETMDB: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETMDB; +pub const RTM_NEWNSID: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNSID; +pub const RTM_DELNSID: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNSID; +pub const RTM_GETNSID: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNSID; +pub const RTM_NEWSTATS: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWSTATS; +pub const RTM_GETSTATS: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETSTATS; +pub const RTM_SETSTATS: _bindgen_ty_62 = _bindgen_ty_62::RTM_SETSTATS; +pub const RTM_NEWCACHEREPORT: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWCACHEREPORT; +pub const RTM_NEWCHAIN: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWCHAIN; +pub const RTM_DELCHAIN: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELCHAIN; +pub const RTM_GETCHAIN: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETCHAIN; +pub const RTM_NEWNEXTHOP: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNEXTHOP; +pub const RTM_DELNEXTHOP: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNEXTHOP; +pub const RTM_GETNEXTHOP: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNEXTHOP; +pub const RTM_NEWLINKPROP: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWLINKPROP; +pub const RTM_DELLINKPROP: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELLINKPROP; +pub const RTM_GETLINKPROP: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETLINKPROP; +pub const RTM_NEWVLAN: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWVLAN; +pub const RTM_DELVLAN: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELVLAN; +pub const RTM_GETVLAN: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETVLAN; +pub const RTM_NEWNEXTHOPBUCKET: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNEXTHOPBUCKET; +pub const RTM_DELNEXTHOPBUCKET: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNEXTHOPBUCKET; +pub const RTM_GETNEXTHOPBUCKET: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNEXTHOPBUCKET; +pub const RTM_NEWTUNNEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWTUNNEL; +pub const RTM_DELTUNNEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELTUNNEL; +pub const RTM_GETTUNNEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETTUNNEL; +pub const __RTM_MAX: _bindgen_ty_62 = _bindgen_ty_62::__RTM_MAX; +pub const RTN_UNSPEC: _bindgen_ty_63 = _bindgen_ty_63::RTN_UNSPEC; +pub const RTN_UNICAST: _bindgen_ty_63 = _bindgen_ty_63::RTN_UNICAST; +pub const RTN_LOCAL: _bindgen_ty_63 = _bindgen_ty_63::RTN_LOCAL; +pub const RTN_BROADCAST: _bindgen_ty_63 = _bindgen_ty_63::RTN_BROADCAST; +pub const RTN_ANYCAST: _bindgen_ty_63 = _bindgen_ty_63::RTN_ANYCAST; +pub const RTN_MULTICAST: _bindgen_ty_63 = _bindgen_ty_63::RTN_MULTICAST; +pub const RTN_BLACKHOLE: _bindgen_ty_63 = _bindgen_ty_63::RTN_BLACKHOLE; +pub const RTN_UNREACHABLE: _bindgen_ty_63 = _bindgen_ty_63::RTN_UNREACHABLE; +pub const RTN_PROHIBIT: _bindgen_ty_63 = _bindgen_ty_63::RTN_PROHIBIT; +pub const RTN_THROW: _bindgen_ty_63 = _bindgen_ty_63::RTN_THROW; +pub const RTN_NAT: _bindgen_ty_63 = _bindgen_ty_63::RTN_NAT; +pub const RTN_XRESOLVE: _bindgen_ty_63 = _bindgen_ty_63::RTN_XRESOLVE; +pub const __RTN_MAX: _bindgen_ty_63 = _bindgen_ty_63::__RTN_MAX; +pub const RTAX_UNSPEC: _bindgen_ty_64 = _bindgen_ty_64::RTAX_UNSPEC; +pub const RTAX_LOCK: _bindgen_ty_64 = _bindgen_ty_64::RTAX_LOCK; +pub const RTAX_MTU: _bindgen_ty_64 = _bindgen_ty_64::RTAX_MTU; +pub const RTAX_WINDOW: _bindgen_ty_64 = _bindgen_ty_64::RTAX_WINDOW; +pub const RTAX_RTT: _bindgen_ty_64 = _bindgen_ty_64::RTAX_RTT; +pub const RTAX_RTTVAR: _bindgen_ty_64 = _bindgen_ty_64::RTAX_RTTVAR; +pub const RTAX_SSTHRESH: _bindgen_ty_64 = _bindgen_ty_64::RTAX_SSTHRESH; +pub const RTAX_CWND: _bindgen_ty_64 = _bindgen_ty_64::RTAX_CWND; +pub const RTAX_ADVMSS: _bindgen_ty_64 = _bindgen_ty_64::RTAX_ADVMSS; +pub const RTAX_REORDERING: _bindgen_ty_64 = _bindgen_ty_64::RTAX_REORDERING; +pub const RTAX_HOPLIMIT: _bindgen_ty_64 = _bindgen_ty_64::RTAX_HOPLIMIT; +pub const RTAX_INITCWND: _bindgen_ty_64 = _bindgen_ty_64::RTAX_INITCWND; +pub const RTAX_FEATURES: _bindgen_ty_64 = _bindgen_ty_64::RTAX_FEATURES; +pub const RTAX_RTO_MIN: _bindgen_ty_64 = _bindgen_ty_64::RTAX_RTO_MIN; +pub const RTAX_INITRWND: _bindgen_ty_64 = _bindgen_ty_64::RTAX_INITRWND; +pub const RTAX_QUICKACK: _bindgen_ty_64 = _bindgen_ty_64::RTAX_QUICKACK; +pub const RTAX_CC_ALGO: _bindgen_ty_64 = _bindgen_ty_64::RTAX_CC_ALGO; +pub const RTAX_FASTOPEN_NO_COOKIE: _bindgen_ty_64 = _bindgen_ty_64::RTAX_FASTOPEN_NO_COOKIE; +pub const __RTAX_MAX: _bindgen_ty_64 = _bindgen_ty_64::__RTAX_MAX; +pub const PREFIX_UNSPEC: _bindgen_ty_65 = _bindgen_ty_65::PREFIX_UNSPEC; +pub const PREFIX_ADDRESS: _bindgen_ty_65 = _bindgen_ty_65::PREFIX_ADDRESS; +pub const PREFIX_CACHEINFO: _bindgen_ty_65 = _bindgen_ty_65::PREFIX_CACHEINFO; +pub const __PREFIX_MAX: _bindgen_ty_65 = _bindgen_ty_65::__PREFIX_MAX; +pub const TCA_UNSPEC: _bindgen_ty_66 = _bindgen_ty_66::TCA_UNSPEC; +pub const TCA_KIND: _bindgen_ty_66 = _bindgen_ty_66::TCA_KIND; +pub const TCA_OPTIONS: _bindgen_ty_66 = _bindgen_ty_66::TCA_OPTIONS; +pub const TCA_STATS: _bindgen_ty_66 = _bindgen_ty_66::TCA_STATS; +pub const TCA_XSTATS: _bindgen_ty_66 = _bindgen_ty_66::TCA_XSTATS; +pub const TCA_RATE: _bindgen_ty_66 = _bindgen_ty_66::TCA_RATE; +pub const TCA_FCNT: _bindgen_ty_66 = _bindgen_ty_66::TCA_FCNT; +pub const TCA_STATS2: _bindgen_ty_66 = _bindgen_ty_66::TCA_STATS2; +pub const TCA_STAB: _bindgen_ty_66 = _bindgen_ty_66::TCA_STAB; +pub const TCA_PAD: _bindgen_ty_66 = _bindgen_ty_66::TCA_PAD; +pub const TCA_DUMP_INVISIBLE: _bindgen_ty_66 = _bindgen_ty_66::TCA_DUMP_INVISIBLE; +pub const TCA_CHAIN: _bindgen_ty_66 = _bindgen_ty_66::TCA_CHAIN; +pub const TCA_HW_OFFLOAD: _bindgen_ty_66 = _bindgen_ty_66::TCA_HW_OFFLOAD; +pub const TCA_INGRESS_BLOCK: _bindgen_ty_66 = _bindgen_ty_66::TCA_INGRESS_BLOCK; +pub const TCA_EGRESS_BLOCK: _bindgen_ty_66 = _bindgen_ty_66::TCA_EGRESS_BLOCK; +pub const TCA_DUMP_FLAGS: _bindgen_ty_66 = _bindgen_ty_66::TCA_DUMP_FLAGS; +pub const TCA_EXT_WARN_MSG: _bindgen_ty_66 = _bindgen_ty_66::TCA_EXT_WARN_MSG; +pub const __TCA_MAX: _bindgen_ty_66 = _bindgen_ty_66::__TCA_MAX; +pub const NDUSEROPT_UNSPEC: _bindgen_ty_67 = _bindgen_ty_67::NDUSEROPT_UNSPEC; +pub const NDUSEROPT_SRCADDR: _bindgen_ty_67 = _bindgen_ty_67::NDUSEROPT_SRCADDR; +pub const __NDUSEROPT_MAX: _bindgen_ty_67 = _bindgen_ty_67::__NDUSEROPT_MAX; +pub const TCA_ROOT_UNSPEC: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_UNSPEC; +pub const TCA_ROOT_TAB: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_TAB; +pub const TCA_ROOT_FLAGS: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_FLAGS; +pub const TCA_ROOT_COUNT: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_COUNT; +pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_TIME_DELTA; +pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_EXT_WARN_MSG; +pub const __TCA_ROOT_MAX: _bindgen_ty_68 = _bindgen_ty_68::__TCA_ROOT_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nlmsgerr_attrs { +NLMSGERR_ATTR_UNUSED = 0, +NLMSGERR_ATTR_MSG = 1, +NLMSGERR_ATTR_OFFS = 2, +NLMSGERR_ATTR_COOKIE = 3, +NLMSGERR_ATTR_POLICY = 4, +NLMSGERR_ATTR_MISS_TYPE = 5, +NLMSGERR_ATTR_MISS_NEST = 6, +__NLMSGERR_ATTR_MAX = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl_mmap_status { +NL_MMAP_STATUS_UNUSED = 0, +NL_MMAP_STATUS_RESERVED = 1, +NL_MMAP_STATUS_VALID = 2, +NL_MMAP_STATUS_COPY = 3, +NL_MMAP_STATUS_SKIP = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +NETLINK_UNCONNECTED = 0, +NETLINK_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_attribute_type { +NL_ATTR_TYPE_INVALID = 0, +NL_ATTR_TYPE_FLAG = 1, +NL_ATTR_TYPE_U8 = 2, +NL_ATTR_TYPE_U16 = 3, +NL_ATTR_TYPE_U32 = 4, +NL_ATTR_TYPE_U64 = 5, +NL_ATTR_TYPE_S8 = 6, +NL_ATTR_TYPE_S16 = 7, +NL_ATTR_TYPE_S32 = 8, +NL_ATTR_TYPE_S64 = 9, +NL_ATTR_TYPE_BINARY = 10, +NL_ATTR_TYPE_STRING = 11, +NL_ATTR_TYPE_NUL_STRING = 12, +NL_ATTR_TYPE_NESTED = 13, +NL_ATTR_TYPE_NESTED_ARRAY = 14, +NL_ATTR_TYPE_BITFIELD32 = 15, +NL_ATTR_TYPE_SINT = 16, +NL_ATTR_TYPE_UINT = 17, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_policy_type_attr { +NL_POLICY_TYPE_ATTR_UNSPEC = 0, +NL_POLICY_TYPE_ATTR_TYPE = 1, +NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, +NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, +NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, +NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, +NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, +NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, +NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, +NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, +NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, +NL_POLICY_TYPE_ATTR_PAD = 11, +NL_POLICY_TYPE_ATTR_MASK = 12, +__NL_POLICY_TYPE_ATTR_MAX = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_commands { +NL80211_CMD_UNSPEC = 0, +NL80211_CMD_GET_WIPHY = 1, +NL80211_CMD_SET_WIPHY = 2, +NL80211_CMD_NEW_WIPHY = 3, +NL80211_CMD_DEL_WIPHY = 4, +NL80211_CMD_GET_INTERFACE = 5, +NL80211_CMD_SET_INTERFACE = 6, +NL80211_CMD_NEW_INTERFACE = 7, +NL80211_CMD_DEL_INTERFACE = 8, +NL80211_CMD_GET_KEY = 9, +NL80211_CMD_SET_KEY = 10, +NL80211_CMD_NEW_KEY = 11, +NL80211_CMD_DEL_KEY = 12, +NL80211_CMD_GET_BEACON = 13, +NL80211_CMD_SET_BEACON = 14, +NL80211_CMD_START_AP = 15, +NL80211_CMD_STOP_AP = 16, +NL80211_CMD_GET_STATION = 17, +NL80211_CMD_SET_STATION = 18, +NL80211_CMD_NEW_STATION = 19, +NL80211_CMD_DEL_STATION = 20, +NL80211_CMD_GET_MPATH = 21, +NL80211_CMD_SET_MPATH = 22, +NL80211_CMD_NEW_MPATH = 23, +NL80211_CMD_DEL_MPATH = 24, +NL80211_CMD_SET_BSS = 25, +NL80211_CMD_SET_REG = 26, +NL80211_CMD_REQ_SET_REG = 27, +NL80211_CMD_GET_MESH_CONFIG = 28, +NL80211_CMD_SET_MESH_CONFIG = 29, +NL80211_CMD_SET_MGMT_EXTRA_IE = 30, +NL80211_CMD_GET_REG = 31, +NL80211_CMD_GET_SCAN = 32, +NL80211_CMD_TRIGGER_SCAN = 33, +NL80211_CMD_NEW_SCAN_RESULTS = 34, +NL80211_CMD_SCAN_ABORTED = 35, +NL80211_CMD_REG_CHANGE = 36, +NL80211_CMD_AUTHENTICATE = 37, +NL80211_CMD_ASSOCIATE = 38, +NL80211_CMD_DEAUTHENTICATE = 39, +NL80211_CMD_DISASSOCIATE = 40, +NL80211_CMD_MICHAEL_MIC_FAILURE = 41, +NL80211_CMD_REG_BEACON_HINT = 42, +NL80211_CMD_JOIN_IBSS = 43, +NL80211_CMD_LEAVE_IBSS = 44, +NL80211_CMD_TESTMODE = 45, +NL80211_CMD_CONNECT = 46, +NL80211_CMD_ROAM = 47, +NL80211_CMD_DISCONNECT = 48, +NL80211_CMD_SET_WIPHY_NETNS = 49, +NL80211_CMD_GET_SURVEY = 50, +NL80211_CMD_NEW_SURVEY_RESULTS = 51, +NL80211_CMD_SET_PMKSA = 52, +NL80211_CMD_DEL_PMKSA = 53, +NL80211_CMD_FLUSH_PMKSA = 54, +NL80211_CMD_REMAIN_ON_CHANNEL = 55, +NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL = 56, +NL80211_CMD_SET_TX_BITRATE_MASK = 57, +NL80211_CMD_REGISTER_FRAME = 58, +NL80211_CMD_FRAME = 59, +NL80211_CMD_FRAME_TX_STATUS = 60, +NL80211_CMD_SET_POWER_SAVE = 61, +NL80211_CMD_GET_POWER_SAVE = 62, +NL80211_CMD_SET_CQM = 63, +NL80211_CMD_NOTIFY_CQM = 64, +NL80211_CMD_SET_CHANNEL = 65, +NL80211_CMD_SET_WDS_PEER = 66, +NL80211_CMD_FRAME_WAIT_CANCEL = 67, +NL80211_CMD_JOIN_MESH = 68, +NL80211_CMD_LEAVE_MESH = 69, +NL80211_CMD_UNPROT_DEAUTHENTICATE = 70, +NL80211_CMD_UNPROT_DISASSOCIATE = 71, +NL80211_CMD_NEW_PEER_CANDIDATE = 72, +NL80211_CMD_GET_WOWLAN = 73, +NL80211_CMD_SET_WOWLAN = 74, +NL80211_CMD_START_SCHED_SCAN = 75, +NL80211_CMD_STOP_SCHED_SCAN = 76, +NL80211_CMD_SCHED_SCAN_RESULTS = 77, +NL80211_CMD_SCHED_SCAN_STOPPED = 78, +NL80211_CMD_SET_REKEY_OFFLOAD = 79, +NL80211_CMD_PMKSA_CANDIDATE = 80, +NL80211_CMD_TDLS_OPER = 81, +NL80211_CMD_TDLS_MGMT = 82, +NL80211_CMD_UNEXPECTED_FRAME = 83, +NL80211_CMD_PROBE_CLIENT = 84, +NL80211_CMD_REGISTER_BEACONS = 85, +NL80211_CMD_UNEXPECTED_4ADDR_FRAME = 86, +NL80211_CMD_SET_NOACK_MAP = 87, +NL80211_CMD_CH_SWITCH_NOTIFY = 88, +NL80211_CMD_START_P2P_DEVICE = 89, +NL80211_CMD_STOP_P2P_DEVICE = 90, +NL80211_CMD_CONN_FAILED = 91, +NL80211_CMD_SET_MCAST_RATE = 92, +NL80211_CMD_SET_MAC_ACL = 93, +NL80211_CMD_RADAR_DETECT = 94, +NL80211_CMD_GET_PROTOCOL_FEATURES = 95, +NL80211_CMD_UPDATE_FT_IES = 96, +NL80211_CMD_FT_EVENT = 97, +NL80211_CMD_CRIT_PROTOCOL_START = 98, +NL80211_CMD_CRIT_PROTOCOL_STOP = 99, +NL80211_CMD_GET_COALESCE = 100, +NL80211_CMD_SET_COALESCE = 101, +NL80211_CMD_CHANNEL_SWITCH = 102, +NL80211_CMD_VENDOR = 103, +NL80211_CMD_SET_QOS_MAP = 104, +NL80211_CMD_ADD_TX_TS = 105, +NL80211_CMD_DEL_TX_TS = 106, +NL80211_CMD_GET_MPP = 107, +NL80211_CMD_JOIN_OCB = 108, +NL80211_CMD_LEAVE_OCB = 109, +NL80211_CMD_CH_SWITCH_STARTED_NOTIFY = 110, +NL80211_CMD_TDLS_CHANNEL_SWITCH = 111, +NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH = 112, +NL80211_CMD_WIPHY_REG_CHANGE = 113, +NL80211_CMD_ABORT_SCAN = 114, +NL80211_CMD_START_NAN = 115, +NL80211_CMD_STOP_NAN = 116, +NL80211_CMD_ADD_NAN_FUNCTION = 117, +NL80211_CMD_DEL_NAN_FUNCTION = 118, +NL80211_CMD_CHANGE_NAN_CONFIG = 119, +NL80211_CMD_NAN_MATCH = 120, +NL80211_CMD_SET_MULTICAST_TO_UNICAST = 121, +NL80211_CMD_UPDATE_CONNECT_PARAMS = 122, +NL80211_CMD_SET_PMK = 123, +NL80211_CMD_DEL_PMK = 124, +NL80211_CMD_PORT_AUTHORIZED = 125, +NL80211_CMD_RELOAD_REGDB = 126, +NL80211_CMD_EXTERNAL_AUTH = 127, +NL80211_CMD_STA_OPMODE_CHANGED = 128, +NL80211_CMD_CONTROL_PORT_FRAME = 129, +NL80211_CMD_GET_FTM_RESPONDER_STATS = 130, +NL80211_CMD_PEER_MEASUREMENT_START = 131, +NL80211_CMD_PEER_MEASUREMENT_RESULT = 132, +NL80211_CMD_PEER_MEASUREMENT_COMPLETE = 133, +NL80211_CMD_NOTIFY_RADAR = 134, +NL80211_CMD_UPDATE_OWE_INFO = 135, +NL80211_CMD_PROBE_MESH_LINK = 136, +NL80211_CMD_SET_TID_CONFIG = 137, +NL80211_CMD_UNPROT_BEACON = 138, +NL80211_CMD_CONTROL_PORT_FRAME_TX_STATUS = 139, +NL80211_CMD_SET_SAR_SPECS = 140, +NL80211_CMD_OBSS_COLOR_COLLISION = 141, +NL80211_CMD_COLOR_CHANGE_REQUEST = 142, +NL80211_CMD_COLOR_CHANGE_STARTED = 143, +NL80211_CMD_COLOR_CHANGE_ABORTED = 144, +NL80211_CMD_COLOR_CHANGE_COMPLETED = 145, +NL80211_CMD_SET_FILS_AAD = 146, +NL80211_CMD_ASSOC_COMEBACK = 147, +NL80211_CMD_ADD_LINK = 148, +NL80211_CMD_REMOVE_LINK = 149, +NL80211_CMD_ADD_LINK_STA = 150, +NL80211_CMD_MODIFY_LINK_STA = 151, +NL80211_CMD_REMOVE_LINK_STA = 152, +NL80211_CMD_SET_HW_TIMESTAMP = 153, +NL80211_CMD_LINKS_REMOVED = 154, +NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, +NL80211_CMD_ASSOC_MLO_RECONF = 156, +NL80211_CMD_EPCS_CFG = 157, +__NL80211_CMD_AFTER_LAST = 158, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_attrs { +NL80211_ATTR_UNSPEC = 0, +NL80211_ATTR_WIPHY = 1, +NL80211_ATTR_WIPHY_NAME = 2, +NL80211_ATTR_IFINDEX = 3, +NL80211_ATTR_IFNAME = 4, +NL80211_ATTR_IFTYPE = 5, +NL80211_ATTR_MAC = 6, +NL80211_ATTR_KEY_DATA = 7, +NL80211_ATTR_KEY_IDX = 8, +NL80211_ATTR_KEY_CIPHER = 9, +NL80211_ATTR_KEY_SEQ = 10, +NL80211_ATTR_KEY_DEFAULT = 11, +NL80211_ATTR_BEACON_INTERVAL = 12, +NL80211_ATTR_DTIM_PERIOD = 13, +NL80211_ATTR_BEACON_HEAD = 14, +NL80211_ATTR_BEACON_TAIL = 15, +NL80211_ATTR_STA_AID = 16, +NL80211_ATTR_STA_FLAGS = 17, +NL80211_ATTR_STA_LISTEN_INTERVAL = 18, +NL80211_ATTR_STA_SUPPORTED_RATES = 19, +NL80211_ATTR_STA_VLAN = 20, +NL80211_ATTR_STA_INFO = 21, +NL80211_ATTR_WIPHY_BANDS = 22, +NL80211_ATTR_MNTR_FLAGS = 23, +NL80211_ATTR_MESH_ID = 24, +NL80211_ATTR_STA_PLINK_ACTION = 25, +NL80211_ATTR_MPATH_NEXT_HOP = 26, +NL80211_ATTR_MPATH_INFO = 27, +NL80211_ATTR_BSS_CTS_PROT = 28, +NL80211_ATTR_BSS_SHORT_PREAMBLE = 29, +NL80211_ATTR_BSS_SHORT_SLOT_TIME = 30, +NL80211_ATTR_HT_CAPABILITY = 31, +NL80211_ATTR_SUPPORTED_IFTYPES = 32, +NL80211_ATTR_REG_ALPHA2 = 33, +NL80211_ATTR_REG_RULES = 34, +NL80211_ATTR_MESH_CONFIG = 35, +NL80211_ATTR_BSS_BASIC_RATES = 36, +NL80211_ATTR_WIPHY_TXQ_PARAMS = 37, +NL80211_ATTR_WIPHY_FREQ = 38, +NL80211_ATTR_WIPHY_CHANNEL_TYPE = 39, +NL80211_ATTR_KEY_DEFAULT_MGMT = 40, +NL80211_ATTR_MGMT_SUBTYPE = 41, +NL80211_ATTR_IE = 42, +NL80211_ATTR_MAX_NUM_SCAN_SSIDS = 43, +NL80211_ATTR_SCAN_FREQUENCIES = 44, +NL80211_ATTR_SCAN_SSIDS = 45, +NL80211_ATTR_GENERATION = 46, +NL80211_ATTR_BSS = 47, +NL80211_ATTR_REG_INITIATOR = 48, +NL80211_ATTR_REG_TYPE = 49, +NL80211_ATTR_SUPPORTED_COMMANDS = 50, +NL80211_ATTR_FRAME = 51, +NL80211_ATTR_SSID = 52, +NL80211_ATTR_AUTH_TYPE = 53, +NL80211_ATTR_REASON_CODE = 54, +NL80211_ATTR_KEY_TYPE = 55, +NL80211_ATTR_MAX_SCAN_IE_LEN = 56, +NL80211_ATTR_CIPHER_SUITES = 57, +NL80211_ATTR_FREQ_BEFORE = 58, +NL80211_ATTR_FREQ_AFTER = 59, +NL80211_ATTR_FREQ_FIXED = 60, +NL80211_ATTR_WIPHY_RETRY_SHORT = 61, +NL80211_ATTR_WIPHY_RETRY_LONG = 62, +NL80211_ATTR_WIPHY_FRAG_THRESHOLD = 63, +NL80211_ATTR_WIPHY_RTS_THRESHOLD = 64, +NL80211_ATTR_TIMED_OUT = 65, +NL80211_ATTR_USE_MFP = 66, +NL80211_ATTR_STA_FLAGS2 = 67, +NL80211_ATTR_CONTROL_PORT = 68, +NL80211_ATTR_TESTDATA = 69, +NL80211_ATTR_PRIVACY = 70, +NL80211_ATTR_DISCONNECTED_BY_AP = 71, +NL80211_ATTR_STATUS_CODE = 72, +NL80211_ATTR_CIPHER_SUITES_PAIRWISE = 73, +NL80211_ATTR_CIPHER_SUITE_GROUP = 74, +NL80211_ATTR_WPA_VERSIONS = 75, +NL80211_ATTR_AKM_SUITES = 76, +NL80211_ATTR_REQ_IE = 77, +NL80211_ATTR_RESP_IE = 78, +NL80211_ATTR_PREV_BSSID = 79, +NL80211_ATTR_KEY = 80, +NL80211_ATTR_KEYS = 81, +NL80211_ATTR_PID = 82, +NL80211_ATTR_4ADDR = 83, +NL80211_ATTR_SURVEY_INFO = 84, +NL80211_ATTR_PMKID = 85, +NL80211_ATTR_MAX_NUM_PMKIDS = 86, +NL80211_ATTR_DURATION = 87, +NL80211_ATTR_COOKIE = 88, +NL80211_ATTR_WIPHY_COVERAGE_CLASS = 89, +NL80211_ATTR_TX_RATES = 90, +NL80211_ATTR_FRAME_MATCH = 91, +NL80211_ATTR_ACK = 92, +NL80211_ATTR_PS_STATE = 93, +NL80211_ATTR_CQM = 94, +NL80211_ATTR_LOCAL_STATE_CHANGE = 95, +NL80211_ATTR_AP_ISOLATE = 96, +NL80211_ATTR_WIPHY_TX_POWER_SETTING = 97, +NL80211_ATTR_WIPHY_TX_POWER_LEVEL = 98, +NL80211_ATTR_TX_FRAME_TYPES = 99, +NL80211_ATTR_RX_FRAME_TYPES = 100, +NL80211_ATTR_FRAME_TYPE = 101, +NL80211_ATTR_CONTROL_PORT_ETHERTYPE = 102, +NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT = 103, +NL80211_ATTR_SUPPORT_IBSS_RSN = 104, +NL80211_ATTR_WIPHY_ANTENNA_TX = 105, +NL80211_ATTR_WIPHY_ANTENNA_RX = 106, +NL80211_ATTR_MCAST_RATE = 107, +NL80211_ATTR_OFFCHANNEL_TX_OK = 108, +NL80211_ATTR_BSS_HT_OPMODE = 109, +NL80211_ATTR_KEY_DEFAULT_TYPES = 110, +NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION = 111, +NL80211_ATTR_MESH_SETUP = 112, +NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX = 113, +NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX = 114, +NL80211_ATTR_SUPPORT_MESH_AUTH = 115, +NL80211_ATTR_STA_PLINK_STATE = 116, +NL80211_ATTR_WOWLAN_TRIGGERS = 117, +NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED = 118, +NL80211_ATTR_SCHED_SCAN_INTERVAL = 119, +NL80211_ATTR_INTERFACE_COMBINATIONS = 120, +NL80211_ATTR_SOFTWARE_IFTYPES = 121, +NL80211_ATTR_REKEY_DATA = 122, +NL80211_ATTR_MAX_NUM_SCHED_SCAN_SSIDS = 123, +NL80211_ATTR_MAX_SCHED_SCAN_IE_LEN = 124, +NL80211_ATTR_SCAN_SUPP_RATES = 125, +NL80211_ATTR_HIDDEN_SSID = 126, +NL80211_ATTR_IE_PROBE_RESP = 127, +NL80211_ATTR_IE_ASSOC_RESP = 128, +NL80211_ATTR_STA_WME = 129, +NL80211_ATTR_SUPPORT_AP_UAPSD = 130, +NL80211_ATTR_ROAM_SUPPORT = 131, +NL80211_ATTR_SCHED_SCAN_MATCH = 132, +NL80211_ATTR_MAX_MATCH_SETS = 133, +NL80211_ATTR_PMKSA_CANDIDATE = 134, +NL80211_ATTR_TX_NO_CCK_RATE = 135, +NL80211_ATTR_TDLS_ACTION = 136, +NL80211_ATTR_TDLS_DIALOG_TOKEN = 137, +NL80211_ATTR_TDLS_OPERATION = 138, +NL80211_ATTR_TDLS_SUPPORT = 139, +NL80211_ATTR_TDLS_EXTERNAL_SETUP = 140, +NL80211_ATTR_DEVICE_AP_SME = 141, +NL80211_ATTR_DONT_WAIT_FOR_ACK = 142, +NL80211_ATTR_FEATURE_FLAGS = 143, +NL80211_ATTR_PROBE_RESP_OFFLOAD = 144, +NL80211_ATTR_PROBE_RESP = 145, +NL80211_ATTR_DFS_REGION = 146, +NL80211_ATTR_DISABLE_HT = 147, +NL80211_ATTR_HT_CAPABILITY_MASK = 148, +NL80211_ATTR_NOACK_MAP = 149, +NL80211_ATTR_INACTIVITY_TIMEOUT = 150, +NL80211_ATTR_RX_SIGNAL_DBM = 151, +NL80211_ATTR_BG_SCAN_PERIOD = 152, +NL80211_ATTR_WDEV = 153, +NL80211_ATTR_USER_REG_HINT_TYPE = 154, +NL80211_ATTR_CONN_FAILED_REASON = 155, +NL80211_ATTR_AUTH_DATA = 156, +NL80211_ATTR_VHT_CAPABILITY = 157, +NL80211_ATTR_SCAN_FLAGS = 158, +NL80211_ATTR_CHANNEL_WIDTH = 159, +NL80211_ATTR_CENTER_FREQ1 = 160, +NL80211_ATTR_CENTER_FREQ2 = 161, +NL80211_ATTR_P2P_CTWINDOW = 162, +NL80211_ATTR_P2P_OPPPS = 163, +NL80211_ATTR_LOCAL_MESH_POWER_MODE = 164, +NL80211_ATTR_ACL_POLICY = 165, +NL80211_ATTR_MAC_ADDRS = 166, +NL80211_ATTR_MAC_ACL_MAX = 167, +NL80211_ATTR_RADAR_EVENT = 168, +NL80211_ATTR_EXT_CAPA = 169, +NL80211_ATTR_EXT_CAPA_MASK = 170, +NL80211_ATTR_STA_CAPABILITY = 171, +NL80211_ATTR_STA_EXT_CAPABILITY = 172, +NL80211_ATTR_PROTOCOL_FEATURES = 173, +NL80211_ATTR_SPLIT_WIPHY_DUMP = 174, +NL80211_ATTR_DISABLE_VHT = 175, +NL80211_ATTR_VHT_CAPABILITY_MASK = 176, +NL80211_ATTR_MDID = 177, +NL80211_ATTR_IE_RIC = 178, +NL80211_ATTR_CRIT_PROT_ID = 179, +NL80211_ATTR_MAX_CRIT_PROT_DURATION = 180, +NL80211_ATTR_PEER_AID = 181, +NL80211_ATTR_COALESCE_RULE = 182, +NL80211_ATTR_CH_SWITCH_COUNT = 183, +NL80211_ATTR_CH_SWITCH_BLOCK_TX = 184, +NL80211_ATTR_CSA_IES = 185, +NL80211_ATTR_CNTDWN_OFFS_BEACON = 186, +NL80211_ATTR_CNTDWN_OFFS_PRESP = 187, +NL80211_ATTR_RXMGMT_FLAGS = 188, +NL80211_ATTR_STA_SUPPORTED_CHANNELS = 189, +NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES = 190, +NL80211_ATTR_HANDLE_DFS = 191, +NL80211_ATTR_SUPPORT_5_MHZ = 192, +NL80211_ATTR_SUPPORT_10_MHZ = 193, +NL80211_ATTR_OPMODE_NOTIF = 194, +NL80211_ATTR_VENDOR_ID = 195, +NL80211_ATTR_VENDOR_SUBCMD = 196, +NL80211_ATTR_VENDOR_DATA = 197, +NL80211_ATTR_VENDOR_EVENTS = 198, +NL80211_ATTR_QOS_MAP = 199, +NL80211_ATTR_MAC_HINT = 200, +NL80211_ATTR_WIPHY_FREQ_HINT = 201, +NL80211_ATTR_MAX_AP_ASSOC_STA = 202, +NL80211_ATTR_TDLS_PEER_CAPABILITY = 203, +NL80211_ATTR_SOCKET_OWNER = 204, +NL80211_ATTR_CSA_C_OFFSETS_TX = 205, +NL80211_ATTR_MAX_CSA_COUNTERS = 206, +NL80211_ATTR_TDLS_INITIATOR = 207, +NL80211_ATTR_USE_RRM = 208, +NL80211_ATTR_WIPHY_DYN_ACK = 209, +NL80211_ATTR_TSID = 210, +NL80211_ATTR_USER_PRIO = 211, +NL80211_ATTR_ADMITTED_TIME = 212, +NL80211_ATTR_SMPS_MODE = 213, +NL80211_ATTR_OPER_CLASS = 214, +NL80211_ATTR_MAC_MASK = 215, +NL80211_ATTR_WIPHY_SELF_MANAGED_REG = 216, +NL80211_ATTR_EXT_FEATURES = 217, +NL80211_ATTR_SURVEY_RADIO_STATS = 218, +NL80211_ATTR_NETNS_FD = 219, +NL80211_ATTR_SCHED_SCAN_DELAY = 220, +NL80211_ATTR_REG_INDOOR = 221, +NL80211_ATTR_MAX_NUM_SCHED_SCAN_PLANS = 222, +NL80211_ATTR_MAX_SCAN_PLAN_INTERVAL = 223, +NL80211_ATTR_MAX_SCAN_PLAN_ITERATIONS = 224, +NL80211_ATTR_SCHED_SCAN_PLANS = 225, +NL80211_ATTR_PBSS = 226, +NL80211_ATTR_BSS_SELECT = 227, +NL80211_ATTR_STA_SUPPORT_P2P_PS = 228, +NL80211_ATTR_PAD = 229, +NL80211_ATTR_IFTYPE_EXT_CAPA = 230, +NL80211_ATTR_MU_MIMO_GROUP_DATA = 231, +NL80211_ATTR_MU_MIMO_FOLLOW_MAC_ADDR = 232, +NL80211_ATTR_SCAN_START_TIME_TSF = 233, +NL80211_ATTR_SCAN_START_TIME_TSF_BSSID = 234, +NL80211_ATTR_MEASUREMENT_DURATION = 235, +NL80211_ATTR_MEASUREMENT_DURATION_MANDATORY = 236, +NL80211_ATTR_MESH_PEER_AID = 237, +NL80211_ATTR_NAN_MASTER_PREF = 238, +NL80211_ATTR_BANDS = 239, +NL80211_ATTR_NAN_FUNC = 240, +NL80211_ATTR_NAN_MATCH = 241, +NL80211_ATTR_FILS_KEK = 242, +NL80211_ATTR_FILS_NONCES = 243, +NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED = 244, +NL80211_ATTR_BSSID = 245, +NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI = 246, +NL80211_ATTR_SCHED_SCAN_RSSI_ADJUST = 247, +NL80211_ATTR_TIMEOUT_REASON = 248, +NL80211_ATTR_FILS_ERP_USERNAME = 249, +NL80211_ATTR_FILS_ERP_REALM = 250, +NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM = 251, +NL80211_ATTR_FILS_ERP_RRK = 252, +NL80211_ATTR_FILS_CACHE_ID = 253, +NL80211_ATTR_PMK = 254, +NL80211_ATTR_SCHED_SCAN_MULTI = 255, +NL80211_ATTR_SCHED_SCAN_MAX_REQS = 256, +NL80211_ATTR_WANT_1X_4WAY_HS = 257, +NL80211_ATTR_PMKR0_NAME = 258, +NL80211_ATTR_PORT_AUTHORIZED = 259, +NL80211_ATTR_EXTERNAL_AUTH_ACTION = 260, +NL80211_ATTR_EXTERNAL_AUTH_SUPPORT = 261, +NL80211_ATTR_NSS = 262, +NL80211_ATTR_ACK_SIGNAL = 263, +NL80211_ATTR_CONTROL_PORT_OVER_NL80211 = 264, +NL80211_ATTR_TXQ_STATS = 265, +NL80211_ATTR_TXQ_LIMIT = 266, +NL80211_ATTR_TXQ_MEMORY_LIMIT = 267, +NL80211_ATTR_TXQ_QUANTUM = 268, +NL80211_ATTR_HE_CAPABILITY = 269, +NL80211_ATTR_FTM_RESPONDER = 270, +NL80211_ATTR_FTM_RESPONDER_STATS = 271, +NL80211_ATTR_TIMEOUT = 272, +NL80211_ATTR_PEER_MEASUREMENTS = 273, +NL80211_ATTR_AIRTIME_WEIGHT = 274, +NL80211_ATTR_STA_TX_POWER_SETTING = 275, +NL80211_ATTR_STA_TX_POWER = 276, +NL80211_ATTR_SAE_PASSWORD = 277, +NL80211_ATTR_TWT_RESPONDER = 278, +NL80211_ATTR_HE_OBSS_PD = 279, +NL80211_ATTR_WIPHY_EDMG_CHANNELS = 280, +NL80211_ATTR_WIPHY_EDMG_BW_CONFIG = 281, +NL80211_ATTR_VLAN_ID = 282, +NL80211_ATTR_HE_BSS_COLOR = 283, +NL80211_ATTR_IFTYPE_AKM_SUITES = 284, +NL80211_ATTR_TID_CONFIG = 285, +NL80211_ATTR_CONTROL_PORT_NO_PREAUTH = 286, +NL80211_ATTR_PMK_LIFETIME = 287, +NL80211_ATTR_PMK_REAUTH_THRESHOLD = 288, +NL80211_ATTR_RECEIVE_MULTICAST = 289, +NL80211_ATTR_WIPHY_FREQ_OFFSET = 290, +NL80211_ATTR_CENTER_FREQ1_OFFSET = 291, +NL80211_ATTR_SCAN_FREQ_KHZ = 292, +NL80211_ATTR_HE_6GHZ_CAPABILITY = 293, +NL80211_ATTR_FILS_DISCOVERY = 294, +NL80211_ATTR_UNSOL_BCAST_PROBE_RESP = 295, +NL80211_ATTR_S1G_CAPABILITY = 296, +NL80211_ATTR_S1G_CAPABILITY_MASK = 297, +NL80211_ATTR_SAE_PWE = 298, +NL80211_ATTR_RECONNECT_REQUESTED = 299, +NL80211_ATTR_SAR_SPEC = 300, +NL80211_ATTR_DISABLE_HE = 301, +NL80211_ATTR_OBSS_COLOR_BITMAP = 302, +NL80211_ATTR_COLOR_CHANGE_COUNT = 303, +NL80211_ATTR_COLOR_CHANGE_COLOR = 304, +NL80211_ATTR_COLOR_CHANGE_ELEMS = 305, +NL80211_ATTR_MBSSID_CONFIG = 306, +NL80211_ATTR_MBSSID_ELEMS = 307, +NL80211_ATTR_RADAR_BACKGROUND = 308, +NL80211_ATTR_AP_SETTINGS_FLAGS = 309, +NL80211_ATTR_EHT_CAPABILITY = 310, +NL80211_ATTR_DISABLE_EHT = 311, +NL80211_ATTR_MLO_LINKS = 312, +NL80211_ATTR_MLO_LINK_ID = 313, +NL80211_ATTR_MLD_ADDR = 314, +NL80211_ATTR_MLO_SUPPORT = 315, +NL80211_ATTR_MAX_NUM_AKM_SUITES = 316, +NL80211_ATTR_EML_CAPABILITY = 317, +NL80211_ATTR_MLD_CAPA_AND_OPS = 318, +NL80211_ATTR_TX_HW_TIMESTAMP = 319, +NL80211_ATTR_RX_HW_TIMESTAMP = 320, +NL80211_ATTR_TD_BITMAP = 321, +NL80211_ATTR_PUNCT_BITMAP = 322, +NL80211_ATTR_MAX_HW_TIMESTAMP_PEERS = 323, +NL80211_ATTR_HW_TIMESTAMP_ENABLED = 324, +NL80211_ATTR_EMA_RNR_ELEMS = 325, +NL80211_ATTR_MLO_LINK_DISABLED = 326, +NL80211_ATTR_BSS_DUMP_INCLUDE_USE_DATA = 327, +NL80211_ATTR_MLO_TTLM_DLINK = 328, +NL80211_ATTR_MLO_TTLM_ULINK = 329, +NL80211_ATTR_ASSOC_SPP_AMSDU = 330, +NL80211_ATTR_WIPHY_RADIOS = 331, +NL80211_ATTR_WIPHY_INTERFACE_COMBINATIONS = 332, +NL80211_ATTR_VIF_RADIO_MASK = 333, +NL80211_ATTR_SUPPORTED_SELECTORS = 334, +NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, +NL80211_ATTR_EPCS = 336, +NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +__NL80211_ATTR_AFTER_LAST = 338, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_iftype { +NL80211_IFTYPE_UNSPECIFIED = 0, +NL80211_IFTYPE_ADHOC = 1, +NL80211_IFTYPE_STATION = 2, +NL80211_IFTYPE_AP = 3, +NL80211_IFTYPE_AP_VLAN = 4, +NL80211_IFTYPE_WDS = 5, +NL80211_IFTYPE_MONITOR = 6, +NL80211_IFTYPE_MESH_POINT = 7, +NL80211_IFTYPE_P2P_CLIENT = 8, +NL80211_IFTYPE_P2P_GO = 9, +NL80211_IFTYPE_P2P_DEVICE = 10, +NL80211_IFTYPE_OCB = 11, +NL80211_IFTYPE_NAN = 12, +NUM_NL80211_IFTYPES = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_flags { +__NL80211_STA_FLAG_INVALID = 0, +NL80211_STA_FLAG_AUTHORIZED = 1, +NL80211_STA_FLAG_SHORT_PREAMBLE = 2, +NL80211_STA_FLAG_WME = 3, +NL80211_STA_FLAG_MFP = 4, +NL80211_STA_FLAG_AUTHENTICATED = 5, +NL80211_STA_FLAG_TDLS_PEER = 6, +NL80211_STA_FLAG_ASSOCIATED = 7, +NL80211_STA_FLAG_SPP_AMSDU = 8, +__NL80211_STA_FLAG_AFTER_LAST = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_p2p_ps_status { +NL80211_P2P_PS_UNSUPPORTED = 0, +NL80211_P2P_PS_SUPPORTED = 1, +NUM_NL80211_P2P_PS_STATUS = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_he_gi { +NL80211_RATE_INFO_HE_GI_0_8 = 0, +NL80211_RATE_INFO_HE_GI_1_6 = 1, +NL80211_RATE_INFO_HE_GI_3_2 = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_he_ltf { +NL80211_RATE_INFO_HE_1XLTF = 0, +NL80211_RATE_INFO_HE_2XLTF = 1, +NL80211_RATE_INFO_HE_4XLTF = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_he_ru_alloc { +NL80211_RATE_INFO_HE_RU_ALLOC_26 = 0, +NL80211_RATE_INFO_HE_RU_ALLOC_52 = 1, +NL80211_RATE_INFO_HE_RU_ALLOC_106 = 2, +NL80211_RATE_INFO_HE_RU_ALLOC_242 = 3, +NL80211_RATE_INFO_HE_RU_ALLOC_484 = 4, +NL80211_RATE_INFO_HE_RU_ALLOC_996 = 5, +NL80211_RATE_INFO_HE_RU_ALLOC_2x996 = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_gi { +NL80211_RATE_INFO_EHT_GI_0_8 = 0, +NL80211_RATE_INFO_EHT_GI_1_6 = 1, +NL80211_RATE_INFO_EHT_GI_3_2 = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ru_alloc { +NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, +NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, +NL80211_RATE_INFO_EHT_RU_ALLOC_52P26 = 2, +NL80211_RATE_INFO_EHT_RU_ALLOC_106 = 3, +NL80211_RATE_INFO_EHT_RU_ALLOC_106P26 = 4, +NL80211_RATE_INFO_EHT_RU_ALLOC_242 = 5, +NL80211_RATE_INFO_EHT_RU_ALLOC_484 = 6, +NL80211_RATE_INFO_EHT_RU_ALLOC_484P242 = 7, +NL80211_RATE_INFO_EHT_RU_ALLOC_996 = 8, +NL80211_RATE_INFO_EHT_RU_ALLOC_996P484 = 9, +NL80211_RATE_INFO_EHT_RU_ALLOC_996P484P242 = 10, +NL80211_RATE_INFO_EHT_RU_ALLOC_2x996 = 11, +NL80211_RATE_INFO_EHT_RU_ALLOC_2x996P484 = 12, +NL80211_RATE_INFO_EHT_RU_ALLOC_3x996 = 13, +NL80211_RATE_INFO_EHT_RU_ALLOC_3x996P484 = 14, +NL80211_RATE_INFO_EHT_RU_ALLOC_4x996 = 15, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_rate_info { +__NL80211_RATE_INFO_INVALID = 0, +NL80211_RATE_INFO_BITRATE = 1, +NL80211_RATE_INFO_MCS = 2, +NL80211_RATE_INFO_40_MHZ_WIDTH = 3, +NL80211_RATE_INFO_SHORT_GI = 4, +NL80211_RATE_INFO_BITRATE32 = 5, +NL80211_RATE_INFO_VHT_MCS = 6, +NL80211_RATE_INFO_VHT_NSS = 7, +NL80211_RATE_INFO_80_MHZ_WIDTH = 8, +NL80211_RATE_INFO_80P80_MHZ_WIDTH = 9, +NL80211_RATE_INFO_160_MHZ_WIDTH = 10, +NL80211_RATE_INFO_10_MHZ_WIDTH = 11, +NL80211_RATE_INFO_5_MHZ_WIDTH = 12, +NL80211_RATE_INFO_HE_MCS = 13, +NL80211_RATE_INFO_HE_NSS = 14, +NL80211_RATE_INFO_HE_GI = 15, +NL80211_RATE_INFO_HE_DCM = 16, +NL80211_RATE_INFO_HE_RU_ALLOC = 17, +NL80211_RATE_INFO_320_MHZ_WIDTH = 18, +NL80211_RATE_INFO_EHT_MCS = 19, +NL80211_RATE_INFO_EHT_NSS = 20, +NL80211_RATE_INFO_EHT_GI = 21, +NL80211_RATE_INFO_EHT_RU_ALLOC = 22, +NL80211_RATE_INFO_S1G_MCS = 23, +NL80211_RATE_INFO_S1G_NSS = 24, +NL80211_RATE_INFO_1_MHZ_WIDTH = 25, +NL80211_RATE_INFO_2_MHZ_WIDTH = 26, +NL80211_RATE_INFO_4_MHZ_WIDTH = 27, +NL80211_RATE_INFO_8_MHZ_WIDTH = 28, +NL80211_RATE_INFO_16_MHZ_WIDTH = 29, +__NL80211_RATE_INFO_AFTER_LAST = 30, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_bss_param { +__NL80211_STA_BSS_PARAM_INVALID = 0, +NL80211_STA_BSS_PARAM_CTS_PROT = 1, +NL80211_STA_BSS_PARAM_SHORT_PREAMBLE = 2, +NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME = 3, +NL80211_STA_BSS_PARAM_DTIM_PERIOD = 4, +NL80211_STA_BSS_PARAM_BEACON_INTERVAL = 5, +__NL80211_STA_BSS_PARAM_AFTER_LAST = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_info { +__NL80211_STA_INFO_INVALID = 0, +NL80211_STA_INFO_INACTIVE_TIME = 1, +NL80211_STA_INFO_RX_BYTES = 2, +NL80211_STA_INFO_TX_BYTES = 3, +NL80211_STA_INFO_LLID = 4, +NL80211_STA_INFO_PLID = 5, +NL80211_STA_INFO_PLINK_STATE = 6, +NL80211_STA_INFO_SIGNAL = 7, +NL80211_STA_INFO_TX_BITRATE = 8, +NL80211_STA_INFO_RX_PACKETS = 9, +NL80211_STA_INFO_TX_PACKETS = 10, +NL80211_STA_INFO_TX_RETRIES = 11, +NL80211_STA_INFO_TX_FAILED = 12, +NL80211_STA_INFO_SIGNAL_AVG = 13, +NL80211_STA_INFO_RX_BITRATE = 14, +NL80211_STA_INFO_BSS_PARAM = 15, +NL80211_STA_INFO_CONNECTED_TIME = 16, +NL80211_STA_INFO_STA_FLAGS = 17, +NL80211_STA_INFO_BEACON_LOSS = 18, +NL80211_STA_INFO_T_OFFSET = 19, +NL80211_STA_INFO_LOCAL_PM = 20, +NL80211_STA_INFO_PEER_PM = 21, +NL80211_STA_INFO_NONPEER_PM = 22, +NL80211_STA_INFO_RX_BYTES64 = 23, +NL80211_STA_INFO_TX_BYTES64 = 24, +NL80211_STA_INFO_CHAIN_SIGNAL = 25, +NL80211_STA_INFO_CHAIN_SIGNAL_AVG = 26, +NL80211_STA_INFO_EXPECTED_THROUGHPUT = 27, +NL80211_STA_INFO_RX_DROP_MISC = 28, +NL80211_STA_INFO_BEACON_RX = 29, +NL80211_STA_INFO_BEACON_SIGNAL_AVG = 30, +NL80211_STA_INFO_TID_STATS = 31, +NL80211_STA_INFO_RX_DURATION = 32, +NL80211_STA_INFO_PAD = 33, +NL80211_STA_INFO_ACK_SIGNAL = 34, +NL80211_STA_INFO_ACK_SIGNAL_AVG = 35, +NL80211_STA_INFO_RX_MPDUS = 36, +NL80211_STA_INFO_FCS_ERROR_COUNT = 37, +NL80211_STA_INFO_CONNECTED_TO_GATE = 38, +NL80211_STA_INFO_TX_DURATION = 39, +NL80211_STA_INFO_AIRTIME_WEIGHT = 40, +NL80211_STA_INFO_AIRTIME_LINK_METRIC = 41, +NL80211_STA_INFO_ASSOC_AT_BOOTTIME = 42, +NL80211_STA_INFO_CONNECTED_TO_AS = 43, +__NL80211_STA_INFO_AFTER_LAST = 44, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tid_stats { +__NL80211_TID_STATS_INVALID = 0, +NL80211_TID_STATS_RX_MSDU = 1, +NL80211_TID_STATS_TX_MSDU = 2, +NL80211_TID_STATS_TX_MSDU_RETRIES = 3, +NL80211_TID_STATS_TX_MSDU_FAILED = 4, +NL80211_TID_STATS_PAD = 5, +NL80211_TID_STATS_TXQ_STATS = 6, +NUM_NL80211_TID_STATS = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_txq_stats { +__NL80211_TXQ_STATS_INVALID = 0, +NL80211_TXQ_STATS_BACKLOG_BYTES = 1, +NL80211_TXQ_STATS_BACKLOG_PACKETS = 2, +NL80211_TXQ_STATS_FLOWS = 3, +NL80211_TXQ_STATS_DROPS = 4, +NL80211_TXQ_STATS_ECN_MARKS = 5, +NL80211_TXQ_STATS_OVERLIMIT = 6, +NL80211_TXQ_STATS_OVERMEMORY = 7, +NL80211_TXQ_STATS_COLLISIONS = 8, +NL80211_TXQ_STATS_TX_BYTES = 9, +NL80211_TXQ_STATS_TX_PACKETS = 10, +NL80211_TXQ_STATS_MAX_FLOWS = 11, +NUM_NL80211_TXQ_STATS = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mpath_flags { +NL80211_MPATH_FLAG_ACTIVE = 1, +NL80211_MPATH_FLAG_RESOLVING = 2, +NL80211_MPATH_FLAG_SN_VALID = 4, +NL80211_MPATH_FLAG_FIXED = 8, +NL80211_MPATH_FLAG_RESOLVED = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mpath_info { +__NL80211_MPATH_INFO_INVALID = 0, +NL80211_MPATH_INFO_FRAME_QLEN = 1, +NL80211_MPATH_INFO_SN = 2, +NL80211_MPATH_INFO_METRIC = 3, +NL80211_MPATH_INFO_EXPTIME = 4, +NL80211_MPATH_INFO_FLAGS = 5, +NL80211_MPATH_INFO_DISCOVERY_TIMEOUT = 6, +NL80211_MPATH_INFO_DISCOVERY_RETRIES = 7, +NL80211_MPATH_INFO_HOP_COUNT = 8, +NL80211_MPATH_INFO_PATH_CHANGE = 9, +__NL80211_MPATH_INFO_AFTER_LAST = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_band_iftype_attr { +__NL80211_BAND_IFTYPE_ATTR_INVALID = 0, +NL80211_BAND_IFTYPE_ATTR_IFTYPES = 1, +NL80211_BAND_IFTYPE_ATTR_HE_CAP_MAC = 2, +NL80211_BAND_IFTYPE_ATTR_HE_CAP_PHY = 3, +NL80211_BAND_IFTYPE_ATTR_HE_CAP_MCS_SET = 4, +NL80211_BAND_IFTYPE_ATTR_HE_CAP_PPE = 5, +NL80211_BAND_IFTYPE_ATTR_HE_6GHZ_CAPA = 6, +NL80211_BAND_IFTYPE_ATTR_VENDOR_ELEMS = 7, +NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, +NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, +NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, +NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_band_attr { +__NL80211_BAND_ATTR_INVALID = 0, +NL80211_BAND_ATTR_FREQS = 1, +NL80211_BAND_ATTR_RATES = 2, +NL80211_BAND_ATTR_HT_MCS_SET = 3, +NL80211_BAND_ATTR_HT_CAPA = 4, +NL80211_BAND_ATTR_HT_AMPDU_FACTOR = 5, +NL80211_BAND_ATTR_HT_AMPDU_DENSITY = 6, +NL80211_BAND_ATTR_VHT_MCS_SET = 7, +NL80211_BAND_ATTR_VHT_CAPA = 8, +NL80211_BAND_ATTR_IFTYPE_DATA = 9, +NL80211_BAND_ATTR_EDMG_CHANNELS = 10, +NL80211_BAND_ATTR_EDMG_BW_CONFIG = 11, +NL80211_BAND_ATTR_S1G_MCS_NSS_SET = 12, +NL80211_BAND_ATTR_S1G_CAPA = 13, +__NL80211_BAND_ATTR_AFTER_LAST = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wmm_rule { +__NL80211_WMMR_INVALID = 0, +NL80211_WMMR_CW_MIN = 1, +NL80211_WMMR_CW_MAX = 2, +NL80211_WMMR_AIFSN = 3, +NL80211_WMMR_TXOP = 4, +__NL80211_WMMR_LAST = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_frequency_attr { +__NL80211_FREQUENCY_ATTR_INVALID = 0, +NL80211_FREQUENCY_ATTR_FREQ = 1, +NL80211_FREQUENCY_ATTR_DISABLED = 2, +NL80211_FREQUENCY_ATTR_NO_IR = 3, +__NL80211_FREQUENCY_ATTR_NO_IBSS = 4, +NL80211_FREQUENCY_ATTR_RADAR = 5, +NL80211_FREQUENCY_ATTR_MAX_TX_POWER = 6, +NL80211_FREQUENCY_ATTR_DFS_STATE = 7, +NL80211_FREQUENCY_ATTR_DFS_TIME = 8, +NL80211_FREQUENCY_ATTR_NO_HT40_MINUS = 9, +NL80211_FREQUENCY_ATTR_NO_HT40_PLUS = 10, +NL80211_FREQUENCY_ATTR_NO_80MHZ = 11, +NL80211_FREQUENCY_ATTR_NO_160MHZ = 12, +NL80211_FREQUENCY_ATTR_DFS_CAC_TIME = 13, +NL80211_FREQUENCY_ATTR_INDOOR_ONLY = 14, +NL80211_FREQUENCY_ATTR_IR_CONCURRENT = 15, +NL80211_FREQUENCY_ATTR_NO_20MHZ = 16, +NL80211_FREQUENCY_ATTR_NO_10MHZ = 17, +NL80211_FREQUENCY_ATTR_WMM = 18, +NL80211_FREQUENCY_ATTR_NO_HE = 19, +NL80211_FREQUENCY_ATTR_OFFSET = 20, +NL80211_FREQUENCY_ATTR_1MHZ = 21, +NL80211_FREQUENCY_ATTR_2MHZ = 22, +NL80211_FREQUENCY_ATTR_4MHZ = 23, +NL80211_FREQUENCY_ATTR_8MHZ = 24, +NL80211_FREQUENCY_ATTR_16MHZ = 25, +NL80211_FREQUENCY_ATTR_NO_320MHZ = 26, +NL80211_FREQUENCY_ATTR_NO_EHT = 27, +NL80211_FREQUENCY_ATTR_PSD = 28, +NL80211_FREQUENCY_ATTR_DFS_CONCURRENT = 29, +NL80211_FREQUENCY_ATTR_NO_6GHZ_VLP_CLIENT = 30, +NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, +NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, +NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, +NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bitrate_attr { +__NL80211_BITRATE_ATTR_INVALID = 0, +NL80211_BITRATE_ATTR_RATE = 1, +NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE = 2, +__NL80211_BITRATE_ATTR_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_reg_initiator { +NL80211_REGDOM_SET_BY_CORE = 0, +NL80211_REGDOM_SET_BY_USER = 1, +NL80211_REGDOM_SET_BY_DRIVER = 2, +NL80211_REGDOM_SET_BY_COUNTRY_IE = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_reg_type { +NL80211_REGDOM_TYPE_COUNTRY = 0, +NL80211_REGDOM_TYPE_WORLD = 1, +NL80211_REGDOM_TYPE_CUSTOM_WORLD = 2, +NL80211_REGDOM_TYPE_INTERSECTION = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_reg_rule_attr { +__NL80211_REG_RULE_ATTR_INVALID = 0, +NL80211_ATTR_REG_RULE_FLAGS = 1, +NL80211_ATTR_FREQ_RANGE_START = 2, +NL80211_ATTR_FREQ_RANGE_END = 3, +NL80211_ATTR_FREQ_RANGE_MAX_BW = 4, +NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN = 5, +NL80211_ATTR_POWER_RULE_MAX_EIRP = 6, +NL80211_ATTR_DFS_CAC_TIME = 7, +NL80211_ATTR_POWER_RULE_PSD = 8, +__NL80211_REG_RULE_ATTR_AFTER_LAST = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sched_scan_match_attr { +__NL80211_SCHED_SCAN_MATCH_ATTR_INVALID = 0, +NL80211_SCHED_SCAN_MATCH_ATTR_SSID = 1, +NL80211_SCHED_SCAN_MATCH_ATTR_RSSI = 2, +NL80211_SCHED_SCAN_MATCH_ATTR_RELATIVE_RSSI = 3, +NL80211_SCHED_SCAN_MATCH_ATTR_RSSI_ADJUST = 4, +NL80211_SCHED_SCAN_MATCH_ATTR_BSSID = 5, +NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI = 6, +__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_reg_rule_flags { +NL80211_RRF_NO_OFDM = 1, +NL80211_RRF_NO_CCK = 2, +NL80211_RRF_NO_INDOOR = 4, +NL80211_RRF_NO_OUTDOOR = 8, +NL80211_RRF_DFS = 16, +NL80211_RRF_PTP_ONLY = 32, +NL80211_RRF_PTMP_ONLY = 64, +NL80211_RRF_NO_IR = 128, +__NL80211_RRF_NO_IBSS = 256, +NL80211_RRF_AUTO_BW = 2048, +NL80211_RRF_IR_CONCURRENT = 4096, +NL80211_RRF_NO_HT40MINUS = 8192, +NL80211_RRF_NO_HT40PLUS = 16384, +NL80211_RRF_NO_80MHZ = 32768, +NL80211_RRF_NO_160MHZ = 65536, +NL80211_RRF_NO_HE = 131072, +NL80211_RRF_NO_320MHZ = 262144, +NL80211_RRF_NO_EHT = 524288, +NL80211_RRF_PSD = 1048576, +NL80211_RRF_DFS_CONCURRENT = 2097152, +NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, +NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, +NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, +NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_dfs_regions { +NL80211_DFS_UNSET = 0, +NL80211_DFS_FCC = 1, +NL80211_DFS_ETSI = 2, +NL80211_DFS_JP = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_user_reg_hint_type { +NL80211_USER_REG_HINT_USER = 0, +NL80211_USER_REG_HINT_CELL_BASE = 1, +NL80211_USER_REG_HINT_INDOOR = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_survey_info { +__NL80211_SURVEY_INFO_INVALID = 0, +NL80211_SURVEY_INFO_FREQUENCY = 1, +NL80211_SURVEY_INFO_NOISE = 2, +NL80211_SURVEY_INFO_IN_USE = 3, +NL80211_SURVEY_INFO_TIME = 4, +NL80211_SURVEY_INFO_TIME_BUSY = 5, +NL80211_SURVEY_INFO_TIME_EXT_BUSY = 6, +NL80211_SURVEY_INFO_TIME_RX = 7, +NL80211_SURVEY_INFO_TIME_TX = 8, +NL80211_SURVEY_INFO_TIME_SCAN = 9, +NL80211_SURVEY_INFO_PAD = 10, +NL80211_SURVEY_INFO_TIME_BSS_RX = 11, +NL80211_SURVEY_INFO_FREQUENCY_OFFSET = 12, +__NL80211_SURVEY_INFO_AFTER_LAST = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mntr_flags { +__NL80211_MNTR_FLAG_INVALID = 0, +NL80211_MNTR_FLAG_FCSFAIL = 1, +NL80211_MNTR_FLAG_PLCPFAIL = 2, +NL80211_MNTR_FLAG_CONTROL = 3, +NL80211_MNTR_FLAG_OTHER_BSS = 4, +NL80211_MNTR_FLAG_COOK_FRAMES = 5, +NL80211_MNTR_FLAG_ACTIVE = 6, +NL80211_MNTR_FLAG_SKIP_TX = 7, +__NL80211_MNTR_FLAG_AFTER_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mesh_power_mode { +NL80211_MESH_POWER_UNKNOWN = 0, +NL80211_MESH_POWER_ACTIVE = 1, +NL80211_MESH_POWER_LIGHT_SLEEP = 2, +NL80211_MESH_POWER_DEEP_SLEEP = 3, +__NL80211_MESH_POWER_AFTER_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_meshconf_params { +__NL80211_MESHCONF_INVALID = 0, +NL80211_MESHCONF_RETRY_TIMEOUT = 1, +NL80211_MESHCONF_CONFIRM_TIMEOUT = 2, +NL80211_MESHCONF_HOLDING_TIMEOUT = 3, +NL80211_MESHCONF_MAX_PEER_LINKS = 4, +NL80211_MESHCONF_MAX_RETRIES = 5, +NL80211_MESHCONF_TTL = 6, +NL80211_MESHCONF_AUTO_OPEN_PLINKS = 7, +NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES = 8, +NL80211_MESHCONF_PATH_REFRESH_TIME = 9, +NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT = 10, +NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT = 11, +NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL = 12, +NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME = 13, +NL80211_MESHCONF_HWMP_ROOTMODE = 14, +NL80211_MESHCONF_ELEMENT_TTL = 15, +NL80211_MESHCONF_HWMP_RANN_INTERVAL = 16, +NL80211_MESHCONF_GATE_ANNOUNCEMENTS = 17, +NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL = 18, +NL80211_MESHCONF_FORWARDING = 19, +NL80211_MESHCONF_RSSI_THRESHOLD = 20, +NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR = 21, +NL80211_MESHCONF_HT_OPMODE = 22, +NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT = 23, +NL80211_MESHCONF_HWMP_ROOT_INTERVAL = 24, +NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL = 25, +NL80211_MESHCONF_POWER_MODE = 26, +NL80211_MESHCONF_AWAKE_WINDOW = 27, +NL80211_MESHCONF_PLINK_TIMEOUT = 28, +NL80211_MESHCONF_CONNECTED_TO_GATE = 29, +NL80211_MESHCONF_NOLEARN = 30, +NL80211_MESHCONF_CONNECTED_TO_AS = 31, +__NL80211_MESHCONF_ATTR_AFTER_LAST = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mesh_setup_params { +__NL80211_MESH_SETUP_INVALID = 0, +NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL = 1, +NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC = 2, +NL80211_MESH_SETUP_IE = 3, +NL80211_MESH_SETUP_USERSPACE_AUTH = 4, +NL80211_MESH_SETUP_USERSPACE_AMPE = 5, +NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC = 6, +NL80211_MESH_SETUP_USERSPACE_MPM = 7, +NL80211_MESH_SETUP_AUTH_PROTOCOL = 8, +__NL80211_MESH_SETUP_ATTR_AFTER_LAST = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_txq_attr { +__NL80211_TXQ_ATTR_INVALID = 0, +NL80211_TXQ_ATTR_AC = 1, +NL80211_TXQ_ATTR_TXOP = 2, +NL80211_TXQ_ATTR_CWMIN = 3, +NL80211_TXQ_ATTR_CWMAX = 4, +NL80211_TXQ_ATTR_AIFS = 5, +__NL80211_TXQ_ATTR_AFTER_LAST = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ac { +NL80211_AC_VO = 0, +NL80211_AC_VI = 1, +NL80211_AC_BE = 2, +NL80211_AC_BK = 3, +NL80211_NUM_ACS = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_channel_type { +NL80211_CHAN_NO_HT = 0, +NL80211_CHAN_HT20 = 1, +NL80211_CHAN_HT40MINUS = 2, +NL80211_CHAN_HT40PLUS = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_key_mode { +NL80211_KEY_RX_TX = 0, +NL80211_KEY_NO_TX = 1, +NL80211_KEY_SET_TX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_chan_width { +NL80211_CHAN_WIDTH_20_NOHT = 0, +NL80211_CHAN_WIDTH_20 = 1, +NL80211_CHAN_WIDTH_40 = 2, +NL80211_CHAN_WIDTH_80 = 3, +NL80211_CHAN_WIDTH_80P80 = 4, +NL80211_CHAN_WIDTH_160 = 5, +NL80211_CHAN_WIDTH_5 = 6, +NL80211_CHAN_WIDTH_10 = 7, +NL80211_CHAN_WIDTH_1 = 8, +NL80211_CHAN_WIDTH_2 = 9, +NL80211_CHAN_WIDTH_4 = 10, +NL80211_CHAN_WIDTH_8 = 11, +NL80211_CHAN_WIDTH_16 = 12, +NL80211_CHAN_WIDTH_320 = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_scan_width { +NL80211_BSS_CHAN_WIDTH_20 = 0, +NL80211_BSS_CHAN_WIDTH_10 = 1, +NL80211_BSS_CHAN_WIDTH_5 = 2, +NL80211_BSS_CHAN_WIDTH_1 = 3, +NL80211_BSS_CHAN_WIDTH_2 = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_use_for { +NL80211_BSS_USE_FOR_NORMAL = 1, +NL80211_BSS_USE_FOR_MLD_LINK = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_cannot_use_reasons { +NL80211_BSS_CANNOT_USE_NSTR_NONPRIMARY = 1, +NL80211_BSS_CANNOT_USE_6GHZ_PWR_MISMATCH = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss { +__NL80211_BSS_INVALID = 0, +NL80211_BSS_BSSID = 1, +NL80211_BSS_FREQUENCY = 2, +NL80211_BSS_TSF = 3, +NL80211_BSS_BEACON_INTERVAL = 4, +NL80211_BSS_CAPABILITY = 5, +NL80211_BSS_INFORMATION_ELEMENTS = 6, +NL80211_BSS_SIGNAL_MBM = 7, +NL80211_BSS_SIGNAL_UNSPEC = 8, +NL80211_BSS_STATUS = 9, +NL80211_BSS_SEEN_MS_AGO = 10, +NL80211_BSS_BEACON_IES = 11, +NL80211_BSS_CHAN_WIDTH = 12, +NL80211_BSS_BEACON_TSF = 13, +NL80211_BSS_PRESP_DATA = 14, +NL80211_BSS_LAST_SEEN_BOOTTIME = 15, +NL80211_BSS_PAD = 16, +NL80211_BSS_PARENT_TSF = 17, +NL80211_BSS_PARENT_BSSID = 18, +NL80211_BSS_CHAIN_SIGNAL = 19, +NL80211_BSS_FREQUENCY_OFFSET = 20, +NL80211_BSS_MLO_LINK_ID = 21, +NL80211_BSS_MLD_ADDR = 22, +NL80211_BSS_USE_FOR = 23, +NL80211_BSS_CANNOT_USE_REASONS = 24, +__NL80211_BSS_AFTER_LAST = 25, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_status { +NL80211_BSS_STATUS_AUTHENTICATED = 0, +NL80211_BSS_STATUS_ASSOCIATED = 1, +NL80211_BSS_STATUS_IBSS_JOINED = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_auth_type { +NL80211_AUTHTYPE_OPEN_SYSTEM = 0, +NL80211_AUTHTYPE_SHARED_KEY = 1, +NL80211_AUTHTYPE_FT = 2, +NL80211_AUTHTYPE_NETWORK_EAP = 3, +NL80211_AUTHTYPE_SAE = 4, +NL80211_AUTHTYPE_FILS_SK = 5, +NL80211_AUTHTYPE_FILS_SK_PFS = 6, +NL80211_AUTHTYPE_FILS_PK = 7, +__NL80211_AUTHTYPE_NUM = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_key_type { +NL80211_KEYTYPE_GROUP = 0, +NL80211_KEYTYPE_PAIRWISE = 1, +NL80211_KEYTYPE_PEERKEY = 2, +NUM_NL80211_KEYTYPES = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mfp { +NL80211_MFP_NO = 0, +NL80211_MFP_REQUIRED = 1, +NL80211_MFP_OPTIONAL = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wpa_versions { +NL80211_WPA_VERSION_1 = 1, +NL80211_WPA_VERSION_2 = 2, +NL80211_WPA_VERSION_3 = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_key_default_types { +__NL80211_KEY_DEFAULT_TYPE_INVALID = 0, +NL80211_KEY_DEFAULT_TYPE_UNICAST = 1, +NL80211_KEY_DEFAULT_TYPE_MULTICAST = 2, +NUM_NL80211_KEY_DEFAULT_TYPES = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_key_attributes { +__NL80211_KEY_INVALID = 0, +NL80211_KEY_DATA = 1, +NL80211_KEY_IDX = 2, +NL80211_KEY_CIPHER = 3, +NL80211_KEY_SEQ = 4, +NL80211_KEY_DEFAULT = 5, +NL80211_KEY_DEFAULT_MGMT = 6, +NL80211_KEY_TYPE = 7, +NL80211_KEY_DEFAULT_TYPES = 8, +NL80211_KEY_MODE = 9, +NL80211_KEY_DEFAULT_BEACON = 10, +__NL80211_KEY_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tx_rate_attributes { +__NL80211_TXRATE_INVALID = 0, +NL80211_TXRATE_LEGACY = 1, +NL80211_TXRATE_HT = 2, +NL80211_TXRATE_VHT = 3, +NL80211_TXRATE_GI = 4, +NL80211_TXRATE_HE = 5, +NL80211_TXRATE_HE_GI = 6, +NL80211_TXRATE_HE_LTF = 7, +__NL80211_TXRATE_AFTER_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_txrate_gi { +NL80211_TXRATE_DEFAULT_GI = 0, +NL80211_TXRATE_FORCE_SGI = 1, +NL80211_TXRATE_FORCE_LGI = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_band { +NL80211_BAND_2GHZ = 0, +NL80211_BAND_5GHZ = 1, +NL80211_BAND_60GHZ = 2, +NL80211_BAND_6GHZ = 3, +NL80211_BAND_S1GHZ = 4, +NL80211_BAND_LC = 5, +NUM_NL80211_BANDS = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ps_state { +NL80211_PS_DISABLED = 0, +NL80211_PS_ENABLED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_attr_cqm { +__NL80211_ATTR_CQM_INVALID = 0, +NL80211_ATTR_CQM_RSSI_THOLD = 1, +NL80211_ATTR_CQM_RSSI_HYST = 2, +NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT = 3, +NL80211_ATTR_CQM_PKT_LOSS_EVENT = 4, +NL80211_ATTR_CQM_TXE_RATE = 5, +NL80211_ATTR_CQM_TXE_PKTS = 6, +NL80211_ATTR_CQM_TXE_INTVL = 7, +NL80211_ATTR_CQM_BEACON_LOSS_EVENT = 8, +NL80211_ATTR_CQM_RSSI_LEVEL = 9, +__NL80211_ATTR_CQM_AFTER_LAST = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_cqm_rssi_threshold_event { +NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW = 0, +NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH = 1, +NL80211_CQM_RSSI_BEACON_LOSS_EVENT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tx_power_setting { +NL80211_TX_POWER_AUTOMATIC = 0, +NL80211_TX_POWER_LIMITED = 1, +NL80211_TX_POWER_FIXED = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tid_config { +NL80211_TID_CONFIG_ENABLE = 0, +NL80211_TID_CONFIG_DISABLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tx_rate_setting { +NL80211_TX_RATE_AUTOMATIC = 0, +NL80211_TX_RATE_LIMITED = 1, +NL80211_TX_RATE_FIXED = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tid_config_attr { +__NL80211_TID_CONFIG_ATTR_INVALID = 0, +NL80211_TID_CONFIG_ATTR_PAD = 1, +NL80211_TID_CONFIG_ATTR_VIF_SUPP = 2, +NL80211_TID_CONFIG_ATTR_PEER_SUPP = 3, +NL80211_TID_CONFIG_ATTR_OVERRIDE = 4, +NL80211_TID_CONFIG_ATTR_TIDS = 5, +NL80211_TID_CONFIG_ATTR_NOACK = 6, +NL80211_TID_CONFIG_ATTR_RETRY_SHORT = 7, +NL80211_TID_CONFIG_ATTR_RETRY_LONG = 8, +NL80211_TID_CONFIG_ATTR_AMPDU_CTRL = 9, +NL80211_TID_CONFIG_ATTR_RTSCTS_CTRL = 10, +NL80211_TID_CONFIG_ATTR_AMSDU_CTRL = 11, +NL80211_TID_CONFIG_ATTR_TX_RATE_TYPE = 12, +NL80211_TID_CONFIG_ATTR_TX_RATE = 13, +__NL80211_TID_CONFIG_ATTR_AFTER_LAST = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_packet_pattern_attr { +__NL80211_PKTPAT_INVALID = 0, +NL80211_PKTPAT_MASK = 1, +NL80211_PKTPAT_PATTERN = 2, +NL80211_PKTPAT_OFFSET = 3, +NUM_NL80211_PKTPAT = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wowlan_triggers { +__NL80211_WOWLAN_TRIG_INVALID = 0, +NL80211_WOWLAN_TRIG_ANY = 1, +NL80211_WOWLAN_TRIG_DISCONNECT = 2, +NL80211_WOWLAN_TRIG_MAGIC_PKT = 3, +NL80211_WOWLAN_TRIG_PKT_PATTERN = 4, +NL80211_WOWLAN_TRIG_GTK_REKEY_SUPPORTED = 5, +NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE = 6, +NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST = 7, +NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE = 8, +NL80211_WOWLAN_TRIG_RFKILL_RELEASE = 9, +NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211 = 10, +NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN = 11, +NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023 = 12, +NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN = 13, +NL80211_WOWLAN_TRIG_TCP_CONNECTION = 14, +NL80211_WOWLAN_TRIG_WAKEUP_TCP_MATCH = 15, +NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST = 16, +NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS = 17, +NL80211_WOWLAN_TRIG_NET_DETECT = 18, +NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS = 19, +NL80211_WOWLAN_TRIG_UNPROTECTED_DEAUTH_DISASSOC = 20, +NUM_NL80211_WOWLAN_TRIG = 21, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wowlan_tcp_attrs { +__NL80211_WOWLAN_TCP_INVALID = 0, +NL80211_WOWLAN_TCP_SRC_IPV4 = 1, +NL80211_WOWLAN_TCP_DST_IPV4 = 2, +NL80211_WOWLAN_TCP_DST_MAC = 3, +NL80211_WOWLAN_TCP_SRC_PORT = 4, +NL80211_WOWLAN_TCP_DST_PORT = 5, +NL80211_WOWLAN_TCP_DATA_PAYLOAD = 6, +NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ = 7, +NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN = 8, +NL80211_WOWLAN_TCP_DATA_INTERVAL = 9, +NL80211_WOWLAN_TCP_WAKE_PAYLOAD = 10, +NL80211_WOWLAN_TCP_WAKE_MASK = 11, +NUM_NL80211_WOWLAN_TCP = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_attr_coalesce_rule { +__NL80211_COALESCE_RULE_INVALID = 0, +NL80211_ATTR_COALESCE_RULE_DELAY = 1, +NL80211_ATTR_COALESCE_RULE_CONDITION = 2, +NL80211_ATTR_COALESCE_RULE_PKT_PATTERN = 3, +NUM_NL80211_ATTR_COALESCE_RULE = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_coalesce_condition { +NL80211_COALESCE_CONDITION_MATCH = 0, +NL80211_COALESCE_CONDITION_NO_MATCH = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_iface_limit_attrs { +NL80211_IFACE_LIMIT_UNSPEC = 0, +NL80211_IFACE_LIMIT_MAX = 1, +NL80211_IFACE_LIMIT_TYPES = 2, +NUM_NL80211_IFACE_LIMIT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_if_combination_attrs { +NL80211_IFACE_COMB_UNSPEC = 0, +NL80211_IFACE_COMB_LIMITS = 1, +NL80211_IFACE_COMB_MAXNUM = 2, +NL80211_IFACE_COMB_STA_AP_BI_MATCH = 3, +NL80211_IFACE_COMB_NUM_CHANNELS = 4, +NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS = 5, +NL80211_IFACE_COMB_RADAR_DETECT_REGIONS = 6, +NL80211_IFACE_COMB_BI_MIN_GCD = 7, +NUM_NL80211_IFACE_COMB = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_plink_state { +NL80211_PLINK_LISTEN = 0, +NL80211_PLINK_OPN_SNT = 1, +NL80211_PLINK_OPN_RCVD = 2, +NL80211_PLINK_CNF_RCVD = 3, +NL80211_PLINK_ESTAB = 4, +NL80211_PLINK_HOLDING = 5, +NL80211_PLINK_BLOCKED = 6, +NUM_NL80211_PLINK_STATES = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_plink_action { +NL80211_PLINK_ACTION_NO_ACTION = 0, +NL80211_PLINK_ACTION_OPEN = 1, +NL80211_PLINK_ACTION_BLOCK = 2, +NUM_NL80211_PLINK_ACTIONS = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_rekey_data { +__NL80211_REKEY_DATA_INVALID = 0, +NL80211_REKEY_DATA_KEK = 1, +NL80211_REKEY_DATA_KCK = 2, +NL80211_REKEY_DATA_REPLAY_CTR = 3, +NL80211_REKEY_DATA_AKM = 4, +NUM_NL80211_REKEY_DATA = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_hidden_ssid { +NL80211_HIDDEN_SSID_NOT_IN_USE = 0, +NL80211_HIDDEN_SSID_ZERO_LEN = 1, +NL80211_HIDDEN_SSID_ZERO_CONTENTS = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_wme_attr { +__NL80211_STA_WME_INVALID = 0, +NL80211_STA_WME_UAPSD_QUEUES = 1, +NL80211_STA_WME_MAX_SP = 2, +__NL80211_STA_WME_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_pmksa_candidate_attr { +__NL80211_PMKSA_CANDIDATE_INVALID = 0, +NL80211_PMKSA_CANDIDATE_INDEX = 1, +NL80211_PMKSA_CANDIDATE_BSSID = 2, +NL80211_PMKSA_CANDIDATE_PREAUTH = 3, +NUM_NL80211_PMKSA_CANDIDATE = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tdls_operation { +NL80211_TDLS_DISCOVERY_REQ = 0, +NL80211_TDLS_SETUP = 1, +NL80211_TDLS_TEARDOWN = 2, +NL80211_TDLS_ENABLE_LINK = 3, +NL80211_TDLS_DISABLE_LINK = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ap_sme_features { +NL80211_AP_SME_SA_QUERY_OFFLOAD = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_feature_flags { +NL80211_FEATURE_SK_TX_STATUS = 1, +NL80211_FEATURE_HT_IBSS = 2, +NL80211_FEATURE_INACTIVITY_TIMER = 4, +NL80211_FEATURE_CELL_BASE_REG_HINTS = 8, +NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL = 16, +NL80211_FEATURE_SAE = 32, +NL80211_FEATURE_LOW_PRIORITY_SCAN = 64, +NL80211_FEATURE_SCAN_FLUSH = 128, +NL80211_FEATURE_AP_SCAN = 256, +NL80211_FEATURE_VIF_TXPOWER = 512, +NL80211_FEATURE_NEED_OBSS_SCAN = 1024, +NL80211_FEATURE_P2P_GO_CTWIN = 2048, +NL80211_FEATURE_P2P_GO_OPPPS = 4096, +NL80211_FEATURE_ADVERTISE_CHAN_LIMITS = 16384, +NL80211_FEATURE_FULL_AP_CLIENT_STATE = 32768, +NL80211_FEATURE_USERSPACE_MPM = 65536, +NL80211_FEATURE_ACTIVE_MONITOR = 131072, +NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE = 262144, +NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES = 524288, +NL80211_FEATURE_WFA_TPC_IE_IN_PROBES = 1048576, +NL80211_FEATURE_QUIET = 2097152, +NL80211_FEATURE_TX_POWER_INSERTION = 4194304, +NL80211_FEATURE_ACKTO_ESTIMATION = 8388608, +NL80211_FEATURE_STATIC_SMPS = 16777216, +NL80211_FEATURE_DYNAMIC_SMPS = 33554432, +NL80211_FEATURE_SUPPORTS_WMM_ADMISSION = 67108864, +NL80211_FEATURE_MAC_ON_CREATE = 134217728, +NL80211_FEATURE_TDLS_CHANNEL_SWITCH = 268435456, +NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR = 536870912, +NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR = 1073741824, +NL80211_FEATURE_ND_RANDOM_MAC_ADDR = 2147483648, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ext_feature_index { +NL80211_EXT_FEATURE_VHT_IBSS = 0, +NL80211_EXT_FEATURE_RRM = 1, +NL80211_EXT_FEATURE_MU_MIMO_AIR_SNIFFER = 2, +NL80211_EXT_FEATURE_SCAN_START_TIME = 3, +NL80211_EXT_FEATURE_BSS_PARENT_TSF = 4, +NL80211_EXT_FEATURE_SET_SCAN_DWELL = 5, +NL80211_EXT_FEATURE_BEACON_RATE_LEGACY = 6, +NL80211_EXT_FEATURE_BEACON_RATE_HT = 7, +NL80211_EXT_FEATURE_BEACON_RATE_VHT = 8, +NL80211_EXT_FEATURE_FILS_STA = 9, +NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA = 10, +NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED = 11, +NL80211_EXT_FEATURE_SCHED_SCAN_RELATIVE_RSSI = 12, +NL80211_EXT_FEATURE_CQM_RSSI_LIST = 13, +NL80211_EXT_FEATURE_FILS_SK_OFFLOAD = 14, +NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_PSK = 15, +NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X = 16, +NL80211_EXT_FEATURE_FILS_MAX_CHANNEL_TIME = 17, +NL80211_EXT_FEATURE_ACCEPT_BCAST_PROBE_RESP = 18, +NL80211_EXT_FEATURE_OCE_PROBE_REQ_HIGH_TX_RATE = 19, +NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION = 20, +NL80211_EXT_FEATURE_MFP_OPTIONAL = 21, +NL80211_EXT_FEATURE_LOW_SPAN_SCAN = 22, +NL80211_EXT_FEATURE_LOW_POWER_SCAN = 23, +NL80211_EXT_FEATURE_HIGH_ACCURACY_SCAN = 24, +NL80211_EXT_FEATURE_DFS_OFFLOAD = 25, +NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211 = 26, +NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT = 27, +NL80211_EXT_FEATURE_TXQS = 28, +NL80211_EXT_FEATURE_SCAN_RANDOM_SN = 29, +NL80211_EXT_FEATURE_SCAN_MIN_PREQ_CONTENT = 30, +NL80211_EXT_FEATURE_CAN_REPLACE_PTK0 = 31, +NL80211_EXT_FEATURE_ENABLE_FTM_RESPONDER = 32, +NL80211_EXT_FEATURE_AIRTIME_FAIRNESS = 33, +NL80211_EXT_FEATURE_AP_PMKSA_CACHING = 34, +NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD = 35, +NL80211_EXT_FEATURE_EXT_KEY_ID = 36, +NL80211_EXT_FEATURE_STA_TX_PWR = 37, +NL80211_EXT_FEATURE_SAE_OFFLOAD = 38, +NL80211_EXT_FEATURE_VLAN_OFFLOAD = 39, +NL80211_EXT_FEATURE_AQL = 40, +NL80211_EXT_FEATURE_BEACON_PROTECTION = 41, +NL80211_EXT_FEATURE_CONTROL_PORT_NO_PREAUTH = 42, +NL80211_EXT_FEATURE_PROTECTED_TWT = 43, +NL80211_EXT_FEATURE_DEL_IBSS_STA = 44, +NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS = 45, +NL80211_EXT_FEATURE_BEACON_PROTECTION_CLIENT = 46, +NL80211_EXT_FEATURE_SCAN_FREQ_KHZ = 47, +NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211_TX_STATUS = 48, +NL80211_EXT_FEATURE_OPERATING_CHANNEL_VALIDATION = 49, +NL80211_EXT_FEATURE_4WAY_HANDSHAKE_AP_PSK = 50, +NL80211_EXT_FEATURE_SAE_OFFLOAD_AP = 51, +NL80211_EXT_FEATURE_FILS_DISCOVERY = 52, +NL80211_EXT_FEATURE_UNSOL_BCAST_PROBE_RESP = 53, +NL80211_EXT_FEATURE_BEACON_RATE_HE = 54, +NL80211_EXT_FEATURE_SECURE_LTF = 55, +NL80211_EXT_FEATURE_SECURE_RTT = 56, +NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE = 57, +NL80211_EXT_FEATURE_BSS_COLOR = 58, +NL80211_EXT_FEATURE_FILS_CRYPTO_OFFLOAD = 59, +NL80211_EXT_FEATURE_RADAR_BACKGROUND = 60, +NL80211_EXT_FEATURE_POWERED_ADDR_CHANGE = 61, +NL80211_EXT_FEATURE_PUNCT = 62, +NL80211_EXT_FEATURE_SECURE_NAN = 63, +NL80211_EXT_FEATURE_AUTH_AND_DEAUTH_RANDOM_TA = 64, +NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, +NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, +NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, +NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, +NUM_NL80211_EXT_FEATURES = 69, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_probe_resp_offload_support_attr { +NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS = 1, +NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2 = 2, +NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P = 4, +NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_connect_failed_reason { +NL80211_CONN_FAIL_MAX_CLIENTS = 0, +NL80211_CONN_FAIL_BLOCKED_CLIENT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_timeout_reason { +NL80211_TIMEOUT_UNSPECIFIED = 0, +NL80211_TIMEOUT_SCAN = 1, +NL80211_TIMEOUT_AUTH = 2, +NL80211_TIMEOUT_ASSOC = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_scan_flags { +NL80211_SCAN_FLAG_LOW_PRIORITY = 1, +NL80211_SCAN_FLAG_FLUSH = 2, +NL80211_SCAN_FLAG_AP = 4, +NL80211_SCAN_FLAG_RANDOM_ADDR = 8, +NL80211_SCAN_FLAG_FILS_MAX_CHANNEL_TIME = 16, +NL80211_SCAN_FLAG_ACCEPT_BCAST_PROBE_RESP = 32, +NL80211_SCAN_FLAG_OCE_PROBE_REQ_HIGH_TX_RATE = 64, +NL80211_SCAN_FLAG_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION = 128, +NL80211_SCAN_FLAG_LOW_SPAN = 256, +NL80211_SCAN_FLAG_LOW_POWER = 512, +NL80211_SCAN_FLAG_HIGH_ACCURACY = 1024, +NL80211_SCAN_FLAG_RANDOM_SN = 2048, +NL80211_SCAN_FLAG_MIN_PREQ_CONTENT = 4096, +NL80211_SCAN_FLAG_FREQ_KHZ = 8192, +NL80211_SCAN_FLAG_COLOCATED_6GHZ = 16384, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_acl_policy { +NL80211_ACL_POLICY_ACCEPT_UNLESS_LISTED = 0, +NL80211_ACL_POLICY_DENY_UNLESS_LISTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_smps_mode { +NL80211_SMPS_OFF = 0, +NL80211_SMPS_STATIC = 1, +NL80211_SMPS_DYNAMIC = 2, +__NL80211_SMPS_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_radar_event { +NL80211_RADAR_DETECTED = 0, +NL80211_RADAR_CAC_FINISHED = 1, +NL80211_RADAR_CAC_ABORTED = 2, +NL80211_RADAR_NOP_FINISHED = 3, +NL80211_RADAR_PRE_CAC_EXPIRED = 4, +NL80211_RADAR_CAC_STARTED = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_dfs_state { +NL80211_DFS_USABLE = 0, +NL80211_DFS_UNAVAILABLE = 1, +NL80211_DFS_AVAILABLE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_protocol_features { +NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_crit_proto_id { +NL80211_CRIT_PROTO_UNSPEC = 0, +NL80211_CRIT_PROTO_DHCP = 1, +NL80211_CRIT_PROTO_EAPOL = 2, +NL80211_CRIT_PROTO_APIPA = 3, +NUM_NL80211_CRIT_PROTO = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_rxmgmt_flags { +NL80211_RXMGMT_FLAG_ANSWERED = 1, +NL80211_RXMGMT_FLAG_EXTERNAL_AUTH = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tdls_peer_capability { +NL80211_TDLS_PEER_HT = 1, +NL80211_TDLS_PEER_VHT = 2, +NL80211_TDLS_PEER_WMM = 4, +NL80211_TDLS_PEER_HE = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sched_scan_plan { +__NL80211_SCHED_SCAN_PLAN_INVALID = 0, +NL80211_SCHED_SCAN_PLAN_INTERVAL = 1, +NL80211_SCHED_SCAN_PLAN_ITERATIONS = 2, +__NL80211_SCHED_SCAN_PLAN_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_select_attr { +__NL80211_BSS_SELECT_ATTR_INVALID = 0, +NL80211_BSS_SELECT_ATTR_RSSI = 1, +NL80211_BSS_SELECT_ATTR_BAND_PREF = 2, +NL80211_BSS_SELECT_ATTR_RSSI_ADJUST = 3, +__NL80211_BSS_SELECT_ATTR_AFTER_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_function_type { +NL80211_NAN_FUNC_PUBLISH = 0, +NL80211_NAN_FUNC_SUBSCRIBE = 1, +NL80211_NAN_FUNC_FOLLOW_UP = 2, +__NL80211_NAN_FUNC_TYPE_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_publish_type { +NL80211_NAN_SOLICITED_PUBLISH = 1, +NL80211_NAN_UNSOLICITED_PUBLISH = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_func_term_reason { +NL80211_NAN_FUNC_TERM_REASON_USER_REQUEST = 0, +NL80211_NAN_FUNC_TERM_REASON_TTL_EXPIRED = 1, +NL80211_NAN_FUNC_TERM_REASON_ERROR = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_func_attributes { +__NL80211_NAN_FUNC_INVALID = 0, +NL80211_NAN_FUNC_TYPE = 1, +NL80211_NAN_FUNC_SERVICE_ID = 2, +NL80211_NAN_FUNC_PUBLISH_TYPE = 3, +NL80211_NAN_FUNC_PUBLISH_BCAST = 4, +NL80211_NAN_FUNC_SUBSCRIBE_ACTIVE = 5, +NL80211_NAN_FUNC_FOLLOW_UP_ID = 6, +NL80211_NAN_FUNC_FOLLOW_UP_REQ_ID = 7, +NL80211_NAN_FUNC_FOLLOW_UP_DEST = 8, +NL80211_NAN_FUNC_CLOSE_RANGE = 9, +NL80211_NAN_FUNC_TTL = 10, +NL80211_NAN_FUNC_SERVICE_INFO = 11, +NL80211_NAN_FUNC_SRF = 12, +NL80211_NAN_FUNC_RX_MATCH_FILTER = 13, +NL80211_NAN_FUNC_TX_MATCH_FILTER = 14, +NL80211_NAN_FUNC_INSTANCE_ID = 15, +NL80211_NAN_FUNC_TERM_REASON = 16, +NUM_NL80211_NAN_FUNC_ATTR = 17, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_srf_attributes { +__NL80211_NAN_SRF_INVALID = 0, +NL80211_NAN_SRF_INCLUDE = 1, +NL80211_NAN_SRF_BF = 2, +NL80211_NAN_SRF_BF_IDX = 3, +NL80211_NAN_SRF_MAC_ADDRS = 4, +NUM_NL80211_NAN_SRF_ATTR = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_match_attributes { +__NL80211_NAN_MATCH_INVALID = 0, +NL80211_NAN_MATCH_FUNC_LOCAL = 1, +NL80211_NAN_MATCH_FUNC_PEER = 2, +NUM_NL80211_NAN_MATCH_ATTR = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_external_auth_action { +NL80211_EXTERNAL_AUTH_START = 0, +NL80211_EXTERNAL_AUTH_ABORT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ftm_responder_attributes { +__NL80211_FTM_RESP_ATTR_INVALID = 0, +NL80211_FTM_RESP_ATTR_ENABLED = 1, +NL80211_FTM_RESP_ATTR_LCI = 2, +NL80211_FTM_RESP_ATTR_CIVICLOC = 3, +__NL80211_FTM_RESP_ATTR_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ftm_responder_stats { +__NL80211_FTM_STATS_INVALID = 0, +NL80211_FTM_STATS_SUCCESS_NUM = 1, +NL80211_FTM_STATS_PARTIAL_NUM = 2, +NL80211_FTM_STATS_FAILED_NUM = 3, +NL80211_FTM_STATS_ASAP_NUM = 4, +NL80211_FTM_STATS_NON_ASAP_NUM = 5, +NL80211_FTM_STATS_TOTAL_DURATION_MSEC = 6, +NL80211_FTM_STATS_UNKNOWN_TRIGGERS_NUM = 7, +NL80211_FTM_STATS_RESCHEDULE_REQUESTS_NUM = 8, +NL80211_FTM_STATS_OUT_OF_WINDOW_TRIGGERS_NUM = 9, +NL80211_FTM_STATS_PAD = 10, +__NL80211_FTM_STATS_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_preamble { +NL80211_PREAMBLE_LEGACY = 0, +NL80211_PREAMBLE_HT = 1, +NL80211_PREAMBLE_VHT = 2, +NL80211_PREAMBLE_DMG = 3, +NL80211_PREAMBLE_HE = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_type { +NL80211_PMSR_TYPE_INVALID = 0, +NL80211_PMSR_TYPE_FTM = 1, +NUM_NL80211_PMSR_TYPES = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_status { +NL80211_PMSR_STATUS_SUCCESS = 0, +NL80211_PMSR_STATUS_REFUSED = 1, +NL80211_PMSR_STATUS_TIMEOUT = 2, +NL80211_PMSR_STATUS_FAILURE = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_req { +__NL80211_PMSR_REQ_ATTR_INVALID = 0, +NL80211_PMSR_REQ_ATTR_DATA = 1, +NL80211_PMSR_REQ_ATTR_GET_AP_TSF = 2, +NUM_NL80211_PMSR_REQ_ATTRS = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_resp { +__NL80211_PMSR_RESP_ATTR_INVALID = 0, +NL80211_PMSR_RESP_ATTR_DATA = 1, +NL80211_PMSR_RESP_ATTR_STATUS = 2, +NL80211_PMSR_RESP_ATTR_HOST_TIME = 3, +NL80211_PMSR_RESP_ATTR_AP_TSF = 4, +NL80211_PMSR_RESP_ATTR_FINAL = 5, +NL80211_PMSR_RESP_ATTR_PAD = 6, +NUM_NL80211_PMSR_RESP_ATTRS = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_peer_attrs { +__NL80211_PMSR_PEER_ATTR_INVALID = 0, +NL80211_PMSR_PEER_ATTR_ADDR = 1, +NL80211_PMSR_PEER_ATTR_CHAN = 2, +NL80211_PMSR_PEER_ATTR_REQ = 3, +NL80211_PMSR_PEER_ATTR_RESP = 4, +NUM_NL80211_PMSR_PEER_ATTRS = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_attrs { +__NL80211_PMSR_ATTR_INVALID = 0, +NL80211_PMSR_ATTR_MAX_PEERS = 1, +NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, +NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, +NL80211_PMSR_ATTR_TYPE_CAPA = 4, +NL80211_PMSR_ATTR_PEERS = 5, +NUM_NL80211_PMSR_ATTR = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_capa { +__NL80211_PMSR_FTM_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_CAPA_ATTR_ASAP = 1, +NL80211_PMSR_FTM_CAPA_ATTR_NON_ASAP = 2, +NL80211_PMSR_FTM_CAPA_ATTR_REQ_LCI = 3, +NL80211_PMSR_FTM_CAPA_ATTR_REQ_CIVICLOC = 4, +NL80211_PMSR_FTM_CAPA_ATTR_PREAMBLES = 5, +NL80211_PMSR_FTM_CAPA_ATTR_BANDWIDTHS = 6, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, +NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, +NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req { +__NL80211_PMSR_FTM_REQ_ATTR_INVALID = 0, +NL80211_PMSR_FTM_REQ_ATTR_ASAP = 1, +NL80211_PMSR_FTM_REQ_ATTR_PREAMBLE = 2, +NL80211_PMSR_FTM_REQ_ATTR_NUM_BURSTS_EXP = 3, +NL80211_PMSR_FTM_REQ_ATTR_BURST_PERIOD = 4, +NL80211_PMSR_FTM_REQ_ATTR_BURST_DURATION = 5, +NL80211_PMSR_FTM_REQ_ATTR_FTMS_PER_BURST = 6, +NL80211_PMSR_FTM_REQ_ATTR_NUM_FTMR_RETRIES = 7, +NL80211_PMSR_FTM_REQ_ATTR_REQUEST_LCI = 8, +NL80211_PMSR_FTM_REQ_ATTR_REQUEST_CIVICLOC = 9, +NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, +NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, +NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, +NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_failure_reasons { +NL80211_PMSR_FTM_FAILURE_UNSPECIFIED = 0, +NL80211_PMSR_FTM_FAILURE_NO_RESPONSE = 1, +NL80211_PMSR_FTM_FAILURE_REJECTED = 2, +NL80211_PMSR_FTM_FAILURE_WRONG_CHANNEL = 3, +NL80211_PMSR_FTM_FAILURE_PEER_NOT_CAPABLE = 4, +NL80211_PMSR_FTM_FAILURE_INVALID_TIMESTAMP = 5, +NL80211_PMSR_FTM_FAILURE_PEER_BUSY = 6, +NL80211_PMSR_FTM_FAILURE_BAD_CHANGED_PARAMS = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_resp { +__NL80211_PMSR_FTM_RESP_ATTR_INVALID = 0, +NL80211_PMSR_FTM_RESP_ATTR_FAIL_REASON = 1, +NL80211_PMSR_FTM_RESP_ATTR_BURST_INDEX = 2, +NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_ATTEMPTS = 3, +NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_SUCCESSES = 4, +NL80211_PMSR_FTM_RESP_ATTR_BUSY_RETRY_TIME = 5, +NL80211_PMSR_FTM_RESP_ATTR_NUM_BURSTS_EXP = 6, +NL80211_PMSR_FTM_RESP_ATTR_BURST_DURATION = 7, +NL80211_PMSR_FTM_RESP_ATTR_FTMS_PER_BURST = 8, +NL80211_PMSR_FTM_RESP_ATTR_RSSI_AVG = 9, +NL80211_PMSR_FTM_RESP_ATTR_RSSI_SPREAD = 10, +NL80211_PMSR_FTM_RESP_ATTR_TX_RATE = 11, +NL80211_PMSR_FTM_RESP_ATTR_RX_RATE = 12, +NL80211_PMSR_FTM_RESP_ATTR_RTT_AVG = 13, +NL80211_PMSR_FTM_RESP_ATTR_RTT_VARIANCE = 14, +NL80211_PMSR_FTM_RESP_ATTR_RTT_SPREAD = 15, +NL80211_PMSR_FTM_RESP_ATTR_DIST_AVG = 16, +NL80211_PMSR_FTM_RESP_ATTR_DIST_VARIANCE = 17, +NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, +NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, +NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, +NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_obss_pd_attributes { +__NL80211_HE_OBSS_PD_ATTR_INVALID = 0, +NL80211_HE_OBSS_PD_ATTR_MIN_OFFSET = 1, +NL80211_HE_OBSS_PD_ATTR_MAX_OFFSET = 2, +NL80211_HE_OBSS_PD_ATTR_NON_SRG_MAX_OFFSET = 3, +NL80211_HE_OBSS_PD_ATTR_BSS_COLOR_BITMAP = 4, +NL80211_HE_OBSS_PD_ATTR_PARTIAL_BSSID_BITMAP = 5, +NL80211_HE_OBSS_PD_ATTR_SR_CTRL = 6, +__NL80211_HE_OBSS_PD_ATTR_LAST = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_color_attributes { +__NL80211_HE_BSS_COLOR_ATTR_INVALID = 0, +NL80211_HE_BSS_COLOR_ATTR_COLOR = 1, +NL80211_HE_BSS_COLOR_ATTR_DISABLED = 2, +NL80211_HE_BSS_COLOR_ATTR_PARTIAL = 3, +__NL80211_HE_BSS_COLOR_ATTR_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_iftype_akm_attributes { +__NL80211_IFTYPE_AKM_ATTR_INVALID = 0, +NL80211_IFTYPE_AKM_ATTR_IFTYPES = 1, +NL80211_IFTYPE_AKM_ATTR_SUITES = 2, +__NL80211_IFTYPE_AKM_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_fils_discovery_attributes { +__NL80211_FILS_DISCOVERY_ATTR_INVALID = 0, +NL80211_FILS_DISCOVERY_ATTR_INT_MIN = 1, +NL80211_FILS_DISCOVERY_ATTR_INT_MAX = 2, +NL80211_FILS_DISCOVERY_ATTR_TMPL = 3, +__NL80211_FILS_DISCOVERY_ATTR_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_unsol_bcast_probe_resp_attributes { +__NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INVALID = 0, +NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INT = 1, +NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_TMPL = 2, +__NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sae_pwe_mechanism { +NL80211_SAE_PWE_UNSPECIFIED = 0, +NL80211_SAE_PWE_HUNT_AND_PECK = 1, +NL80211_SAE_PWE_HASH_TO_ELEMENT = 2, +NL80211_SAE_PWE_BOTH = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sar_type { +NL80211_SAR_TYPE_POWER = 0, +NUM_NL80211_SAR_TYPE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sar_attrs { +__NL80211_SAR_ATTR_INVALID = 0, +NL80211_SAR_ATTR_TYPE = 1, +NL80211_SAR_ATTR_SPECS = 2, +__NL80211_SAR_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sar_specs_attrs { +__NL80211_SAR_ATTR_SPECS_INVALID = 0, +NL80211_SAR_ATTR_SPECS_POWER = 1, +NL80211_SAR_ATTR_SPECS_RANGE_INDEX = 2, +NL80211_SAR_ATTR_SPECS_START_FREQ = 3, +NL80211_SAR_ATTR_SPECS_END_FREQ = 4, +__NL80211_SAR_ATTR_SPECS_LAST = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mbssid_config_attributes { +__NL80211_MBSSID_CONFIG_ATTR_INVALID = 0, +NL80211_MBSSID_CONFIG_ATTR_MAX_INTERFACES = 1, +NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 2, +NL80211_MBSSID_CONFIG_ATTR_INDEX = 3, +NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 4, +NL80211_MBSSID_CONFIG_ATTR_EMA = 5, +NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID = 6, +__NL80211_MBSSID_CONFIG_ATTR_LAST = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ap_settings_flags { +NL80211_AP_SETTINGS_EXTERNAL_AUTH_SUPPORT = 1, +NL80211_AP_SETTINGS_SA_QUERY_OFFLOAD_SUPPORT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wiphy_radio_attrs { +__NL80211_WIPHY_RADIO_ATTR_INVALID = 0, +NL80211_WIPHY_RADIO_ATTR_INDEX = 1, +NL80211_WIPHY_RADIO_ATTR_FREQ_RANGE = 2, +NL80211_WIPHY_RADIO_ATTR_INTERFACE_COMBINATION = 3, +NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK = 4, +__NL80211_WIPHY_RADIO_ATTR_LAST = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wiphy_radio_freq_range { +__NL80211_WIPHY_RADIO_FREQ_ATTR_INVALID = 0, +NL80211_WIPHY_RADIO_FREQ_ATTR_START = 1, +NL80211_WIPHY_RADIO_FREQ_ATTR_END = 2, +__NL80211_WIPHY_RADIO_FREQ_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IFLA_UNSPEC = 0, +IFLA_ADDRESS = 1, +IFLA_BROADCAST = 2, +IFLA_IFNAME = 3, +IFLA_MTU = 4, +IFLA_LINK = 5, +IFLA_QDISC = 6, +IFLA_STATS = 7, +IFLA_COST = 8, +IFLA_PRIORITY = 9, +IFLA_MASTER = 10, +IFLA_WIRELESS = 11, +IFLA_PROTINFO = 12, +IFLA_TXQLEN = 13, +IFLA_MAP = 14, +IFLA_WEIGHT = 15, +IFLA_OPERSTATE = 16, +IFLA_LINKMODE = 17, +IFLA_LINKINFO = 18, +IFLA_NET_NS_PID = 19, +IFLA_IFALIAS = 20, +IFLA_NUM_VF = 21, +IFLA_VFINFO_LIST = 22, +IFLA_STATS64 = 23, +IFLA_VF_PORTS = 24, +IFLA_PORT_SELF = 25, +IFLA_AF_SPEC = 26, +IFLA_GROUP = 27, +IFLA_NET_NS_FD = 28, +IFLA_EXT_MASK = 29, +IFLA_PROMISCUITY = 30, +IFLA_NUM_TX_QUEUES = 31, +IFLA_NUM_RX_QUEUES = 32, +IFLA_CARRIER = 33, +IFLA_PHYS_PORT_ID = 34, +IFLA_CARRIER_CHANGES = 35, +IFLA_PHYS_SWITCH_ID = 36, +IFLA_LINK_NETNSID = 37, +IFLA_PHYS_PORT_NAME = 38, +IFLA_PROTO_DOWN = 39, +IFLA_GSO_MAX_SEGS = 40, +IFLA_GSO_MAX_SIZE = 41, +IFLA_PAD = 42, +IFLA_XDP = 43, +IFLA_EVENT = 44, +IFLA_NEW_NETNSID = 45, +IFLA_IF_NETNSID = 46, +IFLA_CARRIER_UP_COUNT = 47, +IFLA_CARRIER_DOWN_COUNT = 48, +IFLA_NEW_IFINDEX = 49, +IFLA_MIN_MTU = 50, +IFLA_MAX_MTU = 51, +IFLA_PROP_LIST = 52, +IFLA_ALT_IFNAME = 53, +IFLA_PERM_ADDRESS = 54, +IFLA_PROTO_DOWN_REASON = 55, +IFLA_PARENT_DEV_NAME = 56, +IFLA_PARENT_DEV_BUS_NAME = 57, +IFLA_GRO_MAX_SIZE = 58, +IFLA_TSO_MAX_SIZE = 59, +IFLA_TSO_MAX_SEGS = 60, +IFLA_ALLMULTI = 61, +IFLA_DEVLINK_PORT = 62, +IFLA_GSO_IPV4_MAX_SIZE = 63, +IFLA_GRO_IPV4_MAX_SIZE = 64, +IFLA_DPLL_PIN = 65, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +IFLA_NETNS_IMMUTABLE = 67, +__IFLA_MAX = 68, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +IFLA_PROTO_DOWN_REASON_UNSPEC = 0, +IFLA_PROTO_DOWN_REASON_MASK = 1, +IFLA_PROTO_DOWN_REASON_VALUE = 2, +__IFLA_PROTO_DOWN_REASON_CNT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IFLA_INET_UNSPEC = 0, +IFLA_INET_CONF = 1, +__IFLA_INET_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_5 { +IFLA_INET6_UNSPEC = 0, +IFLA_INET6_FLAGS = 1, +IFLA_INET6_CONF = 2, +IFLA_INET6_STATS = 3, +IFLA_INET6_MCAST = 4, +IFLA_INET6_CACHEINFO = 5, +IFLA_INET6_ICMP6STATS = 6, +IFLA_INET6_TOKEN = 7, +IFLA_INET6_ADDR_GEN_MODE = 8, +IFLA_INET6_RA_MTU = 9, +__IFLA_INET6_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum in6_addr_gen_mode { +IN6_ADDR_GEN_MODE_EUI64 = 0, +IN6_ADDR_GEN_MODE_NONE = 1, +IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, +IN6_ADDR_GEN_MODE_RANDOM = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_6 { +IFLA_BR_UNSPEC = 0, +IFLA_BR_FORWARD_DELAY = 1, +IFLA_BR_HELLO_TIME = 2, +IFLA_BR_MAX_AGE = 3, +IFLA_BR_AGEING_TIME = 4, +IFLA_BR_STP_STATE = 5, +IFLA_BR_PRIORITY = 6, +IFLA_BR_VLAN_FILTERING = 7, +IFLA_BR_VLAN_PROTOCOL = 8, +IFLA_BR_GROUP_FWD_MASK = 9, +IFLA_BR_ROOT_ID = 10, +IFLA_BR_BRIDGE_ID = 11, +IFLA_BR_ROOT_PORT = 12, +IFLA_BR_ROOT_PATH_COST = 13, +IFLA_BR_TOPOLOGY_CHANGE = 14, +IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, +IFLA_BR_HELLO_TIMER = 16, +IFLA_BR_TCN_TIMER = 17, +IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, +IFLA_BR_GC_TIMER = 19, +IFLA_BR_GROUP_ADDR = 20, +IFLA_BR_FDB_FLUSH = 21, +IFLA_BR_MCAST_ROUTER = 22, +IFLA_BR_MCAST_SNOOPING = 23, +IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, +IFLA_BR_MCAST_QUERIER = 25, +IFLA_BR_MCAST_HASH_ELASTICITY = 26, +IFLA_BR_MCAST_HASH_MAX = 27, +IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, +IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, +IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, +IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, +IFLA_BR_MCAST_QUERIER_INTVL = 32, +IFLA_BR_MCAST_QUERY_INTVL = 33, +IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, +IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, +IFLA_BR_NF_CALL_IPTABLES = 36, +IFLA_BR_NF_CALL_IP6TABLES = 37, +IFLA_BR_NF_CALL_ARPTABLES = 38, +IFLA_BR_VLAN_DEFAULT_PVID = 39, +IFLA_BR_PAD = 40, +IFLA_BR_VLAN_STATS_ENABLED = 41, +IFLA_BR_MCAST_STATS_ENABLED = 42, +IFLA_BR_MCAST_IGMP_VERSION = 43, +IFLA_BR_MCAST_MLD_VERSION = 44, +IFLA_BR_VLAN_STATS_PER_PORT = 45, +IFLA_BR_MULTI_BOOLOPT = 46, +IFLA_BR_MCAST_QUERIER_STATE = 47, +IFLA_BR_FDB_N_LEARNED = 48, +IFLA_BR_FDB_MAX_LEARNED = 49, +__IFLA_BR_MAX = 50, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_7 { +BRIDGE_MODE_UNSPEC = 0, +BRIDGE_MODE_HAIRPIN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_8 { +IFLA_BRPORT_UNSPEC = 0, +IFLA_BRPORT_STATE = 1, +IFLA_BRPORT_PRIORITY = 2, +IFLA_BRPORT_COST = 3, +IFLA_BRPORT_MODE = 4, +IFLA_BRPORT_GUARD = 5, +IFLA_BRPORT_PROTECT = 6, +IFLA_BRPORT_FAST_LEAVE = 7, +IFLA_BRPORT_LEARNING = 8, +IFLA_BRPORT_UNICAST_FLOOD = 9, +IFLA_BRPORT_PROXYARP = 10, +IFLA_BRPORT_LEARNING_SYNC = 11, +IFLA_BRPORT_PROXYARP_WIFI = 12, +IFLA_BRPORT_ROOT_ID = 13, +IFLA_BRPORT_BRIDGE_ID = 14, +IFLA_BRPORT_DESIGNATED_PORT = 15, +IFLA_BRPORT_DESIGNATED_COST = 16, +IFLA_BRPORT_ID = 17, +IFLA_BRPORT_NO = 18, +IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, +IFLA_BRPORT_CONFIG_PENDING = 20, +IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, +IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, +IFLA_BRPORT_HOLD_TIMER = 23, +IFLA_BRPORT_FLUSH = 24, +IFLA_BRPORT_MULTICAST_ROUTER = 25, +IFLA_BRPORT_PAD = 26, +IFLA_BRPORT_MCAST_FLOOD = 27, +IFLA_BRPORT_MCAST_TO_UCAST = 28, +IFLA_BRPORT_VLAN_TUNNEL = 29, +IFLA_BRPORT_BCAST_FLOOD = 30, +IFLA_BRPORT_GROUP_FWD_MASK = 31, +IFLA_BRPORT_NEIGH_SUPPRESS = 32, +IFLA_BRPORT_ISOLATED = 33, +IFLA_BRPORT_BACKUP_PORT = 34, +IFLA_BRPORT_MRP_RING_OPEN = 35, +IFLA_BRPORT_MRP_IN_OPEN = 36, +IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, +IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, +IFLA_BRPORT_LOCKED = 39, +IFLA_BRPORT_MAB = 40, +IFLA_BRPORT_MCAST_N_GROUPS = 41, +IFLA_BRPORT_MCAST_MAX_GROUPS = 42, +IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, +IFLA_BRPORT_BACKUP_NHID = 44, +__IFLA_BRPORT_MAX = 45, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_9 { +IFLA_INFO_UNSPEC = 0, +IFLA_INFO_KIND = 1, +IFLA_INFO_DATA = 2, +IFLA_INFO_XSTATS = 3, +IFLA_INFO_SLAVE_KIND = 4, +IFLA_INFO_SLAVE_DATA = 5, +__IFLA_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_10 { +IFLA_VLAN_UNSPEC = 0, +IFLA_VLAN_ID = 1, +IFLA_VLAN_FLAGS = 2, +IFLA_VLAN_EGRESS_QOS = 3, +IFLA_VLAN_INGRESS_QOS = 4, +IFLA_VLAN_PROTOCOL = 5, +__IFLA_VLAN_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_11 { +IFLA_VLAN_QOS_UNSPEC = 0, +IFLA_VLAN_QOS_MAPPING = 1, +__IFLA_VLAN_QOS_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_12 { +IFLA_MACVLAN_UNSPEC = 0, +IFLA_MACVLAN_MODE = 1, +IFLA_MACVLAN_FLAGS = 2, +IFLA_MACVLAN_MACADDR_MODE = 3, +IFLA_MACVLAN_MACADDR = 4, +IFLA_MACVLAN_MACADDR_DATA = 5, +IFLA_MACVLAN_MACADDR_COUNT = 6, +IFLA_MACVLAN_BC_QUEUE_LEN = 7, +IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, +IFLA_MACVLAN_BC_CUTOFF = 9, +__IFLA_MACVLAN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_mode { +MACVLAN_MODE_PRIVATE = 1, +MACVLAN_MODE_VEPA = 2, +MACVLAN_MODE_BRIDGE = 4, +MACVLAN_MODE_PASSTHRU = 8, +MACVLAN_MODE_SOURCE = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_macaddr_mode { +MACVLAN_MACADDR_ADD = 0, +MACVLAN_MACADDR_DEL = 1, +MACVLAN_MACADDR_FLUSH = 2, +MACVLAN_MACADDR_SET = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_13 { +IFLA_VRF_UNSPEC = 0, +IFLA_VRF_TABLE = 1, +__IFLA_VRF_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_14 { +IFLA_VRF_PORT_UNSPEC = 0, +IFLA_VRF_PORT_TABLE = 1, +__IFLA_VRF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_15 { +IFLA_MACSEC_UNSPEC = 0, +IFLA_MACSEC_SCI = 1, +IFLA_MACSEC_PORT = 2, +IFLA_MACSEC_ICV_LEN = 3, +IFLA_MACSEC_CIPHER_SUITE = 4, +IFLA_MACSEC_WINDOW = 5, +IFLA_MACSEC_ENCODING_SA = 6, +IFLA_MACSEC_ENCRYPT = 7, +IFLA_MACSEC_PROTECT = 8, +IFLA_MACSEC_INC_SCI = 9, +IFLA_MACSEC_ES = 10, +IFLA_MACSEC_SCB = 11, +IFLA_MACSEC_REPLAY_PROTECT = 12, +IFLA_MACSEC_VALIDATION = 13, +IFLA_MACSEC_PAD = 14, +IFLA_MACSEC_OFFLOAD = 15, +__IFLA_MACSEC_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_16 { +IFLA_XFRM_UNSPEC = 0, +IFLA_XFRM_LINK = 1, +IFLA_XFRM_IF_ID = 2, +IFLA_XFRM_COLLECT_METADATA = 3, +__IFLA_XFRM_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_validation_type { +MACSEC_VALIDATE_DISABLED = 0, +MACSEC_VALIDATE_CHECK = 1, +MACSEC_VALIDATE_STRICT = 2, +__MACSEC_VALIDATE_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_offload { +MACSEC_OFFLOAD_OFF = 0, +MACSEC_OFFLOAD_PHY = 1, +MACSEC_OFFLOAD_MAC = 2, +__MACSEC_OFFLOAD_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_17 { +IFLA_IPVLAN_UNSPEC = 0, +IFLA_IPVLAN_MODE = 1, +IFLA_IPVLAN_FLAGS = 2, +__IFLA_IPVLAN_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ipvlan_mode { +IPVLAN_MODE_L2 = 0, +IPVLAN_MODE_L3 = 1, +IPVLAN_MODE_L3S = 2, +IPVLAN_MODE_MAX = 3, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_action { +NETKIT_NEXT = -1, +NETKIT_PASS = 0, +NETKIT_DROP = 2, +NETKIT_REDIRECT = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_mode { +NETKIT_L2 = 0, +NETKIT_L3 = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_18 { +IFLA_NETKIT_UNSPEC = 0, +IFLA_NETKIT_PEER_INFO = 1, +IFLA_NETKIT_PRIMARY = 2, +IFLA_NETKIT_POLICY = 3, +IFLA_NETKIT_PEER_POLICY = 4, +IFLA_NETKIT_MODE = 5, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +IFLA_NETKIT_HEADROOM = 8, +IFLA_NETKIT_TAILROOM = 9, +__IFLA_NETKIT_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_19 { +VNIFILTER_ENTRY_STATS_UNSPEC = 0, +VNIFILTER_ENTRY_STATS_RX_BYTES = 1, +VNIFILTER_ENTRY_STATS_RX_PKTS = 2, +VNIFILTER_ENTRY_STATS_RX_DROPS = 3, +VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, +VNIFILTER_ENTRY_STATS_TX_BYTES = 5, +VNIFILTER_ENTRY_STATS_TX_PKTS = 6, +VNIFILTER_ENTRY_STATS_TX_DROPS = 7, +VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, +VNIFILTER_ENTRY_STATS_PAD = 9, +__VNIFILTER_ENTRY_STATS_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_20 { +VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY_START = 1, +VXLAN_VNIFILTER_ENTRY_END = 2, +VXLAN_VNIFILTER_ENTRY_GROUP = 3, +VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, +VXLAN_VNIFILTER_ENTRY_STATS = 5, +__VXLAN_VNIFILTER_ENTRY_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_21 { +VXLAN_VNIFILTER_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY = 1, +__VXLAN_VNIFILTER_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_22 { +IFLA_VXLAN_UNSPEC = 0, +IFLA_VXLAN_ID = 1, +IFLA_VXLAN_GROUP = 2, +IFLA_VXLAN_LINK = 3, +IFLA_VXLAN_LOCAL = 4, +IFLA_VXLAN_TTL = 5, +IFLA_VXLAN_TOS = 6, +IFLA_VXLAN_LEARNING = 7, +IFLA_VXLAN_AGEING = 8, +IFLA_VXLAN_LIMIT = 9, +IFLA_VXLAN_PORT_RANGE = 10, +IFLA_VXLAN_PROXY = 11, +IFLA_VXLAN_RSC = 12, +IFLA_VXLAN_L2MISS = 13, +IFLA_VXLAN_L3MISS = 14, +IFLA_VXLAN_PORT = 15, +IFLA_VXLAN_GROUP6 = 16, +IFLA_VXLAN_LOCAL6 = 17, +IFLA_VXLAN_UDP_CSUM = 18, +IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, +IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, +IFLA_VXLAN_REMCSUM_TX = 21, +IFLA_VXLAN_REMCSUM_RX = 22, +IFLA_VXLAN_GBP = 23, +IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, +IFLA_VXLAN_COLLECT_METADATA = 25, +IFLA_VXLAN_LABEL = 26, +IFLA_VXLAN_GPE = 27, +IFLA_VXLAN_TTL_INHERIT = 28, +IFLA_VXLAN_DF = 29, +IFLA_VXLAN_VNIFILTER = 30, +IFLA_VXLAN_LOCALBYPASS = 31, +IFLA_VXLAN_LABEL_POLICY = 32, +IFLA_VXLAN_RESERVED_BITS = 33, +__IFLA_VXLAN_MAX = 34, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_df { +VXLAN_DF_UNSET = 0, +VXLAN_DF_SET = 1, +VXLAN_DF_INHERIT = 2, +__VXLAN_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_label_policy { +VXLAN_LABEL_FIXED = 0, +VXLAN_LABEL_INHERIT = 1, +__VXLAN_LABEL_END = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_23 { +IFLA_GENEVE_UNSPEC = 0, +IFLA_GENEVE_ID = 1, +IFLA_GENEVE_REMOTE = 2, +IFLA_GENEVE_TTL = 3, +IFLA_GENEVE_TOS = 4, +IFLA_GENEVE_PORT = 5, +IFLA_GENEVE_COLLECT_METADATA = 6, +IFLA_GENEVE_REMOTE6 = 7, +IFLA_GENEVE_UDP_CSUM = 8, +IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, +IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, +IFLA_GENEVE_LABEL = 11, +IFLA_GENEVE_TTL_INHERIT = 12, +IFLA_GENEVE_DF = 13, +IFLA_GENEVE_INNER_PROTO_INHERIT = 14, +IFLA_GENEVE_PORT_RANGE = 15, +__IFLA_GENEVE_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_geneve_df { +GENEVE_DF_UNSET = 0, +GENEVE_DF_SET = 1, +GENEVE_DF_INHERIT = 2, +__GENEVE_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_24 { +IFLA_BAREUDP_UNSPEC = 0, +IFLA_BAREUDP_PORT = 1, +IFLA_BAREUDP_ETHERTYPE = 2, +IFLA_BAREUDP_SRCPORT_MIN = 3, +IFLA_BAREUDP_MULTIPROTO_MODE = 4, +__IFLA_BAREUDP_MAX = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_25 { +IFLA_PPP_UNSPEC = 0, +IFLA_PPP_DEV_FD = 1, +__IFLA_PPP_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_gtp_role { +GTP_ROLE_GGSN = 0, +GTP_ROLE_SGSN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_26 { +IFLA_GTP_UNSPEC = 0, +IFLA_GTP_FD0 = 1, +IFLA_GTP_FD1 = 2, +IFLA_GTP_PDP_HASHSIZE = 3, +IFLA_GTP_ROLE = 4, +IFLA_GTP_CREATE_SOCKETS = 5, +IFLA_GTP_RESTART_COUNT = 6, +IFLA_GTP_LOCAL = 7, +IFLA_GTP_LOCAL6 = 8, +__IFLA_GTP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_27 { +IFLA_BOND_UNSPEC = 0, +IFLA_BOND_MODE = 1, +IFLA_BOND_ACTIVE_SLAVE = 2, +IFLA_BOND_MIIMON = 3, +IFLA_BOND_UPDELAY = 4, +IFLA_BOND_DOWNDELAY = 5, +IFLA_BOND_USE_CARRIER = 6, +IFLA_BOND_ARP_INTERVAL = 7, +IFLA_BOND_ARP_IP_TARGET = 8, +IFLA_BOND_ARP_VALIDATE = 9, +IFLA_BOND_ARP_ALL_TARGETS = 10, +IFLA_BOND_PRIMARY = 11, +IFLA_BOND_PRIMARY_RESELECT = 12, +IFLA_BOND_FAIL_OVER_MAC = 13, +IFLA_BOND_XMIT_HASH_POLICY = 14, +IFLA_BOND_RESEND_IGMP = 15, +IFLA_BOND_NUM_PEER_NOTIF = 16, +IFLA_BOND_ALL_SLAVES_ACTIVE = 17, +IFLA_BOND_MIN_LINKS = 18, +IFLA_BOND_LP_INTERVAL = 19, +IFLA_BOND_PACKETS_PER_SLAVE = 20, +IFLA_BOND_AD_LACP_RATE = 21, +IFLA_BOND_AD_SELECT = 22, +IFLA_BOND_AD_INFO = 23, +IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, +IFLA_BOND_AD_USER_PORT_KEY = 25, +IFLA_BOND_AD_ACTOR_SYSTEM = 26, +IFLA_BOND_TLB_DYNAMIC_LB = 27, +IFLA_BOND_PEER_NOTIF_DELAY = 28, +IFLA_BOND_AD_LACP_ACTIVE = 29, +IFLA_BOND_MISSED_MAX = 30, +IFLA_BOND_NS_IP6_TARGET = 31, +IFLA_BOND_COUPLED_CONTROL = 32, +__IFLA_BOND_MAX = 33, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_28 { +IFLA_BOND_AD_INFO_UNSPEC = 0, +IFLA_BOND_AD_INFO_AGGREGATOR = 1, +IFLA_BOND_AD_INFO_NUM_PORTS = 2, +IFLA_BOND_AD_INFO_ACTOR_KEY = 3, +IFLA_BOND_AD_INFO_PARTNER_KEY = 4, +IFLA_BOND_AD_INFO_PARTNER_MAC = 5, +__IFLA_BOND_AD_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_29 { +IFLA_BOND_SLAVE_UNSPEC = 0, +IFLA_BOND_SLAVE_STATE = 1, +IFLA_BOND_SLAVE_MII_STATUS = 2, +IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, +IFLA_BOND_SLAVE_PERM_HWADDR = 4, +IFLA_BOND_SLAVE_QUEUE_ID = 5, +IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, +IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, +IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, +IFLA_BOND_SLAVE_PRIO = 9, +__IFLA_BOND_SLAVE_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_30 { +IFLA_VF_INFO_UNSPEC = 0, +IFLA_VF_INFO = 1, +__IFLA_VF_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_31 { +IFLA_VF_UNSPEC = 0, +IFLA_VF_MAC = 1, +IFLA_VF_VLAN = 2, +IFLA_VF_TX_RATE = 3, +IFLA_VF_SPOOFCHK = 4, +IFLA_VF_LINK_STATE = 5, +IFLA_VF_RATE = 6, +IFLA_VF_RSS_QUERY_EN = 7, +IFLA_VF_STATS = 8, +IFLA_VF_TRUST = 9, +IFLA_VF_IB_NODE_GUID = 10, +IFLA_VF_IB_PORT_GUID = 11, +IFLA_VF_VLAN_LIST = 12, +IFLA_VF_BROADCAST = 13, +__IFLA_VF_MAX = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_32 { +IFLA_VF_VLAN_INFO_UNSPEC = 0, +IFLA_VF_VLAN_INFO = 1, +__IFLA_VF_VLAN_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_33 { +IFLA_VF_LINK_STATE_AUTO = 0, +IFLA_VF_LINK_STATE_ENABLE = 1, +IFLA_VF_LINK_STATE_DISABLE = 2, +__IFLA_VF_LINK_STATE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_34 { +IFLA_VF_STATS_RX_PACKETS = 0, +IFLA_VF_STATS_TX_PACKETS = 1, +IFLA_VF_STATS_RX_BYTES = 2, +IFLA_VF_STATS_TX_BYTES = 3, +IFLA_VF_STATS_BROADCAST = 4, +IFLA_VF_STATS_MULTICAST = 5, +IFLA_VF_STATS_PAD = 6, +IFLA_VF_STATS_RX_DROPPED = 7, +IFLA_VF_STATS_TX_DROPPED = 8, +__IFLA_VF_STATS_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_35 { +IFLA_VF_PORT_UNSPEC = 0, +IFLA_VF_PORT = 1, +__IFLA_VF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_36 { +IFLA_PORT_UNSPEC = 0, +IFLA_PORT_VF = 1, +IFLA_PORT_PROFILE = 2, +IFLA_PORT_VSI_TYPE = 3, +IFLA_PORT_INSTANCE_UUID = 4, +IFLA_PORT_HOST_UUID = 5, +IFLA_PORT_REQUEST = 6, +IFLA_PORT_RESPONSE = 7, +__IFLA_PORT_MAX = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_37 { +PORT_REQUEST_PREASSOCIATE = 0, +PORT_REQUEST_PREASSOCIATE_RR = 1, +PORT_REQUEST_ASSOCIATE = 2, +PORT_REQUEST_DISASSOCIATE = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_38 { +PORT_VDP_RESPONSE_SUCCESS = 0, +PORT_VDP_RESPONSE_INVALID_FORMAT = 1, +PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, +PORT_VDP_RESPONSE_UNUSED_VTID = 3, +PORT_VDP_RESPONSE_VTID_VIOLATION = 4, +PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, +PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, +PORT_PROFILE_RESPONSE_SUCCESS = 256, +PORT_PROFILE_RESPONSE_INPROGRESS = 257, +PORT_PROFILE_RESPONSE_INVALID = 258, +PORT_PROFILE_RESPONSE_BADSTATE = 259, +PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, +PORT_PROFILE_RESPONSE_ERROR = 261, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_39 { +IFLA_IPOIB_UNSPEC = 0, +IFLA_IPOIB_PKEY = 1, +IFLA_IPOIB_MODE = 2, +IFLA_IPOIB_UMCAST = 3, +__IFLA_IPOIB_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_40 { +IPOIB_MODE_DATAGRAM = 0, +IPOIB_MODE_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_41 { +HSR_PROTOCOL_HSR = 0, +HSR_PROTOCOL_PRP = 1, +HSR_PROTOCOL_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_42 { +IFLA_HSR_UNSPEC = 0, +IFLA_HSR_SLAVE1 = 1, +IFLA_HSR_SLAVE2 = 2, +IFLA_HSR_MULTICAST_SPEC = 3, +IFLA_HSR_SUPERVISION_ADDR = 4, +IFLA_HSR_SEQ_NR = 5, +IFLA_HSR_VERSION = 6, +IFLA_HSR_PROTOCOL = 7, +IFLA_HSR_INTERLINK = 8, +__IFLA_HSR_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_43 { +IFLA_STATS_UNSPEC = 0, +IFLA_STATS_LINK_64 = 1, +IFLA_STATS_LINK_XSTATS = 2, +IFLA_STATS_LINK_XSTATS_SLAVE = 3, +IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, +IFLA_STATS_AF_SPEC = 5, +__IFLA_STATS_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_44 { +IFLA_STATS_GETSET_UNSPEC = 0, +IFLA_STATS_GET_FILTERS = 1, +IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, +__IFLA_STATS_GETSET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_45 { +LINK_XSTATS_TYPE_UNSPEC = 0, +LINK_XSTATS_TYPE_BRIDGE = 1, +LINK_XSTATS_TYPE_BOND = 2, +__LINK_XSTATS_TYPE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_46 { +IFLA_OFFLOAD_XSTATS_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, +IFLA_OFFLOAD_XSTATS_L3_STATS = 3, +__IFLA_OFFLOAD_XSTATS_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_47 { +IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, +__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_48 { +XDP_ATTACHED_NONE = 0, +XDP_ATTACHED_DRV = 1, +XDP_ATTACHED_SKB = 2, +XDP_ATTACHED_HW = 3, +XDP_ATTACHED_MULTI = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_49 { +IFLA_XDP_UNSPEC = 0, +IFLA_XDP_FD = 1, +IFLA_XDP_ATTACHED = 2, +IFLA_XDP_FLAGS = 3, +IFLA_XDP_PROG_ID = 4, +IFLA_XDP_DRV_PROG_ID = 5, +IFLA_XDP_SKB_PROG_ID = 6, +IFLA_XDP_HW_PROG_ID = 7, +IFLA_XDP_EXPECTED_FD = 8, +__IFLA_XDP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_50 { +IFLA_EVENT_NONE = 0, +IFLA_EVENT_REBOOT = 1, +IFLA_EVENT_FEATURES = 2, +IFLA_EVENT_BONDING_FAILOVER = 3, +IFLA_EVENT_NOTIFY_PEERS = 4, +IFLA_EVENT_IGMP_RESEND = 5, +IFLA_EVENT_BONDING_OPTIONS = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_51 { +IFLA_TUN_UNSPEC = 0, +IFLA_TUN_OWNER = 1, +IFLA_TUN_GROUP = 2, +IFLA_TUN_TYPE = 3, +IFLA_TUN_PI = 4, +IFLA_TUN_VNET_HDR = 5, +IFLA_TUN_PERSIST = 6, +IFLA_TUN_MULTI_QUEUE = 7, +IFLA_TUN_NUM_QUEUES = 8, +IFLA_TUN_NUM_DISABLED_QUEUES = 9, +__IFLA_TUN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_52 { +IFLA_RMNET_UNSPEC = 0, +IFLA_RMNET_MUX_ID = 1, +IFLA_RMNET_FLAGS = 2, +__IFLA_RMNET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_53 { +IFLA_MCTP_UNSPEC = 0, +IFLA_MCTP_NET = 1, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_54 { +IFLA_DSA_UNSPEC = 0, +IFLA_DSA_CONDUIT = 1, +__IFLA_DSA_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ovpn_mode { +OVPN_MODE_P2P = 0, +OVPN_MODE_MP = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_55 { +IFLA_OVPN_UNSPEC = 0, +IFLA_OVPN_MODE = 1, +__IFLA_OVPN_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_56 { +IFA_UNSPEC = 0, +IFA_ADDRESS = 1, +IFA_LOCAL = 2, +IFA_LABEL = 3, +IFA_BROADCAST = 4, +IFA_ANYCAST = 5, +IFA_CACHEINFO = 6, +IFA_MULTICAST = 7, +IFA_FLAGS = 8, +IFA_RT_PRIORITY = 9, +IFA_TARGET_NETNSID = 10, +IFA_PROTO = 11, +__IFA_MAX = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_57 { +NDA_UNSPEC = 0, +NDA_DST = 1, +NDA_LLADDR = 2, +NDA_CACHEINFO = 3, +NDA_PROBES = 4, +NDA_VLAN = 5, +NDA_PORT = 6, +NDA_VNI = 7, +NDA_IFINDEX = 8, +NDA_MASTER = 9, +NDA_LINK_NETNSID = 10, +NDA_SRC_VNI = 11, +NDA_PROTOCOL = 12, +NDA_NH_ID = 13, +NDA_FDB_EXT_ATTRS = 14, +NDA_FLAGS_EXT = 15, +NDA_NDM_STATE_MASK = 16, +NDA_NDM_FLAGS_MASK = 17, +__NDA_MAX = 18, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_58 { +NDTPA_UNSPEC = 0, +NDTPA_IFINDEX = 1, +NDTPA_REFCNT = 2, +NDTPA_REACHABLE_TIME = 3, +NDTPA_BASE_REACHABLE_TIME = 4, +NDTPA_RETRANS_TIME = 5, +NDTPA_GC_STALETIME = 6, +NDTPA_DELAY_PROBE_TIME = 7, +NDTPA_QUEUE_LEN = 8, +NDTPA_APP_PROBES = 9, +NDTPA_UCAST_PROBES = 10, +NDTPA_MCAST_PROBES = 11, +NDTPA_ANYCAST_DELAY = 12, +NDTPA_PROXY_DELAY = 13, +NDTPA_PROXY_QLEN = 14, +NDTPA_LOCKTIME = 15, +NDTPA_QUEUE_LENBYTES = 16, +NDTPA_MCAST_REPROBES = 17, +NDTPA_PAD = 18, +NDTPA_INTERVAL_PROBE_TIME_MS = 19, +__NDTPA_MAX = 20, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_59 { +NDTA_UNSPEC = 0, +NDTA_NAME = 1, +NDTA_THRESH1 = 2, +NDTA_THRESH2 = 3, +NDTA_THRESH3 = 4, +NDTA_CONFIG = 5, +NDTA_PARMS = 6, +NDTA_STATS = 7, +NDTA_GC_INTERVAL = 8, +NDTA_PAD = 9, +__NDTA_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_60 { +FDB_NOTIFY_BIT = 1, +FDB_NOTIFY_INACTIVE_BIT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_61 { +NFEA_UNSPEC = 0, +NFEA_ACTIVITY_NOTIFY = 1, +NFEA_DONT_REFRESH = 2, +__NFEA_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_62 { +RTM_BASE = 16, +RTM_DELLINK = 17, +RTM_GETLINK = 18, +RTM_SETLINK = 19, +RTM_NEWADDR = 20, +RTM_DELADDR = 21, +RTM_GETADDR = 22, +RTM_NEWROUTE = 24, +RTM_DELROUTE = 25, +RTM_GETROUTE = 26, +RTM_NEWNEIGH = 28, +RTM_DELNEIGH = 29, +RTM_GETNEIGH = 30, +RTM_NEWRULE = 32, +RTM_DELRULE = 33, +RTM_GETRULE = 34, +RTM_NEWQDISC = 36, +RTM_DELQDISC = 37, +RTM_GETQDISC = 38, +RTM_NEWTCLASS = 40, +RTM_DELTCLASS = 41, +RTM_GETTCLASS = 42, +RTM_NEWTFILTER = 44, +RTM_DELTFILTER = 45, +RTM_GETTFILTER = 46, +RTM_NEWACTION = 48, +RTM_DELACTION = 49, +RTM_GETACTION = 50, +RTM_NEWPREFIX = 52, +RTM_NEWMULTICAST = 56, +RTM_DELMULTICAST = 57, +RTM_GETMULTICAST = 58, +RTM_NEWANYCAST = 60, +RTM_DELANYCAST = 61, +RTM_GETANYCAST = 62, +RTM_NEWNEIGHTBL = 64, +RTM_GETNEIGHTBL = 66, +RTM_SETNEIGHTBL = 67, +RTM_NEWNDUSEROPT = 68, +RTM_NEWADDRLABEL = 72, +RTM_DELADDRLABEL = 73, +RTM_GETADDRLABEL = 74, +RTM_GETDCB = 78, +RTM_SETDCB = 79, +RTM_NEWNETCONF = 80, +RTM_DELNETCONF = 81, +RTM_GETNETCONF = 82, +RTM_NEWMDB = 84, +RTM_DELMDB = 85, +RTM_GETMDB = 86, +RTM_NEWNSID = 88, +RTM_DELNSID = 89, +RTM_GETNSID = 90, +RTM_NEWSTATS = 92, +RTM_GETSTATS = 94, +RTM_SETSTATS = 95, +RTM_NEWCACHEREPORT = 96, +RTM_NEWCHAIN = 100, +RTM_DELCHAIN = 101, +RTM_GETCHAIN = 102, +RTM_NEWNEXTHOP = 104, +RTM_DELNEXTHOP = 105, +RTM_GETNEXTHOP = 106, +RTM_NEWLINKPROP = 108, +RTM_DELLINKPROP = 109, +RTM_GETLINKPROP = 110, +RTM_NEWVLAN = 112, +RTM_DELVLAN = 113, +RTM_GETVLAN = 114, +RTM_NEWNEXTHOPBUCKET = 116, +RTM_DELNEXTHOPBUCKET = 117, +RTM_GETNEXTHOPBUCKET = 118, +RTM_NEWTUNNEL = 120, +RTM_DELTUNNEL = 121, +RTM_GETTUNNEL = 122, +__RTM_MAX = 123, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_63 { +RTN_UNSPEC = 0, +RTN_UNICAST = 1, +RTN_LOCAL = 2, +RTN_BROADCAST = 3, +RTN_ANYCAST = 4, +RTN_MULTICAST = 5, +RTN_BLACKHOLE = 6, +RTN_UNREACHABLE = 7, +RTN_PROHIBIT = 8, +RTN_THROW = 9, +RTN_NAT = 10, +RTN_XRESOLVE = 11, +__RTN_MAX = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum rt_scope_t { +RT_SCOPE_UNIVERSE = 0, +RT_SCOPE_SITE = 200, +RT_SCOPE_LINK = 253, +RT_SCOPE_HOST = 254, +RT_SCOPE_NOWHERE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum rt_class_t { +RT_TABLE_UNSPEC = 0, +RT_TABLE_COMPAT = 252, +RT_TABLE_DEFAULT = 253, +RT_TABLE_MAIN = 254, +RT_TABLE_LOCAL = 255, +RT_TABLE_MAX = 4294967295, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum rtattr_type_t { +RTA_UNSPEC = 0, +RTA_DST = 1, +RTA_SRC = 2, +RTA_IIF = 3, +RTA_OIF = 4, +RTA_GATEWAY = 5, +RTA_PRIORITY = 6, +RTA_PREFSRC = 7, +RTA_METRICS = 8, +RTA_MULTIPATH = 9, +RTA_PROTOINFO = 10, +RTA_FLOW = 11, +RTA_CACHEINFO = 12, +RTA_SESSION = 13, +RTA_MP_ALGO = 14, +RTA_TABLE = 15, +RTA_MARK = 16, +RTA_MFC_STATS = 17, +RTA_VIA = 18, +RTA_NEWDST = 19, +RTA_PREF = 20, +RTA_ENCAP_TYPE = 21, +RTA_ENCAP = 22, +RTA_EXPIRES = 23, +RTA_PAD = 24, +RTA_UID = 25, +RTA_TTL_PROPAGATE = 26, +RTA_IP_PROTO = 27, +RTA_SPORT = 28, +RTA_DPORT = 29, +RTA_NH_ID = 30, +RTA_FLOWLABEL = 31, +__RTA_MAX = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_64 { +RTAX_UNSPEC = 0, +RTAX_LOCK = 1, +RTAX_MTU = 2, +RTAX_WINDOW = 3, +RTAX_RTT = 4, +RTAX_RTTVAR = 5, +RTAX_SSTHRESH = 6, +RTAX_CWND = 7, +RTAX_ADVMSS = 8, +RTAX_REORDERING = 9, +RTAX_HOPLIMIT = 10, +RTAX_INITCWND = 11, +RTAX_FEATURES = 12, +RTAX_RTO_MIN = 13, +RTAX_INITRWND = 14, +RTAX_QUICKACK = 15, +RTAX_CC_ALGO = 16, +RTAX_FASTOPEN_NO_COOKIE = 17, +__RTAX_MAX = 18, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_65 { +PREFIX_UNSPEC = 0, +PREFIX_ADDRESS = 1, +PREFIX_CACHEINFO = 2, +__PREFIX_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_66 { +TCA_UNSPEC = 0, +TCA_KIND = 1, +TCA_OPTIONS = 2, +TCA_STATS = 3, +TCA_XSTATS = 4, +TCA_RATE = 5, +TCA_FCNT = 6, +TCA_STATS2 = 7, +TCA_STAB = 8, +TCA_PAD = 9, +TCA_DUMP_INVISIBLE = 10, +TCA_CHAIN = 11, +TCA_HW_OFFLOAD = 12, +TCA_INGRESS_BLOCK = 13, +TCA_EGRESS_BLOCK = 14, +TCA_DUMP_FLAGS = 15, +TCA_EXT_WARN_MSG = 16, +__TCA_MAX = 17, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_67 { +NDUSEROPT_UNSPEC = 0, +NDUSEROPT_SRCADDR = 1, +__NDUSEROPT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum rtnetlink_groups { +RTNLGRP_NONE = 0, +RTNLGRP_LINK = 1, +RTNLGRP_NOTIFY = 2, +RTNLGRP_NEIGH = 3, +RTNLGRP_TC = 4, +RTNLGRP_IPV4_IFADDR = 5, +RTNLGRP_IPV4_MROUTE = 6, +RTNLGRP_IPV4_ROUTE = 7, +RTNLGRP_IPV4_RULE = 8, +RTNLGRP_IPV6_IFADDR = 9, +RTNLGRP_IPV6_MROUTE = 10, +RTNLGRP_IPV6_ROUTE = 11, +RTNLGRP_IPV6_IFINFO = 12, +RTNLGRP_DECnet_IFADDR = 13, +RTNLGRP_NOP2 = 14, +RTNLGRP_DECnet_ROUTE = 15, +RTNLGRP_DECnet_RULE = 16, +RTNLGRP_NOP4 = 17, +RTNLGRP_IPV6_PREFIX = 18, +RTNLGRP_IPV6_RULE = 19, +RTNLGRP_ND_USEROPT = 20, +RTNLGRP_PHONET_IFADDR = 21, +RTNLGRP_PHONET_ROUTE = 22, +RTNLGRP_DCB = 23, +RTNLGRP_IPV4_NETCONF = 24, +RTNLGRP_IPV6_NETCONF = 25, +RTNLGRP_MDB = 26, +RTNLGRP_MPLS_ROUTE = 27, +RTNLGRP_NSID = 28, +RTNLGRP_MPLS_NETCONF = 29, +RTNLGRP_IPV4_MROUTE_R = 30, +RTNLGRP_IPV6_MROUTE_R = 31, +RTNLGRP_NEXTHOP = 32, +RTNLGRP_BRVLAN = 33, +RTNLGRP_MCTP_IFADDR = 34, +RTNLGRP_TUNNEL = 35, +RTNLGRP_STATS = 36, +RTNLGRP_IPV4_MCADDR = 37, +RTNLGRP_IPV6_MCADDR = 38, +RTNLGRP_IPV6_ACADDR = 39, +__RTNLGRP_MAX = 40, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_68 { +TCA_ROOT_UNSPEC = 0, +TCA_ROOT_TAB = 1, +TCA_ROOT_FLAGS = 2, +TCA_ROOT_COUNT = 3, +TCA_ROOT_TIME_DELTA = 4, +TCA_ROOT_EXT_WARN_MSG = 5, +__TCA_ROOT_MAX = 6, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __kernel_sockaddr_storage__bindgen_ty_1 { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, +pub __align: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union rta_session__bindgen_ty_1 { +pub ports: rta_session__bindgen_ty_1__bindgen_ty_1, +pub icmpt: rta_session__bindgen_ty_1__bindgen_ty_2, +pub spi: __u32, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl nlmsgerr_attrs { +pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; +} +impl netlink_policy_type_attr { +pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; +} +impl nl80211_commands { +pub const NL80211_CMD_NEW_BEACON: nl80211_commands = nl80211_commands::NL80211_CMD_START_AP; +} +impl nl80211_commands { +pub const NL80211_CMD_DEL_BEACON: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_AP; +} +impl nl80211_commands { +pub const NL80211_CMD_REGISTER_ACTION: nl80211_commands = nl80211_commands::NL80211_CMD_REGISTER_FRAME; +} +impl nl80211_commands { +pub const NL80211_CMD_ACTION: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME; +} +impl nl80211_commands { +pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; +} +impl nl80211_commands { +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +} +impl nl80211_attrs { +pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; +} +impl nl80211_attrs { +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS; +} +impl nl80211_iftype { +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +} +impl nl80211_sta_flags { +pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; +} +impl nl80211_rate_info { +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +} +impl nl80211_sta_bss_param { +pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; +} +impl nl80211_sta_info { +pub const NL80211_STA_INFO_MAX: nl80211_sta_info = nl80211_sta_info::NL80211_STA_INFO_CONNECTED_TO_AS; +} +impl nl80211_tid_stats { +pub const NL80211_TID_STATS_MAX: nl80211_tid_stats = nl80211_tid_stats::NL80211_TID_STATS_TXQ_STATS; +} +impl nl80211_txq_stats { +pub const NL80211_TXQ_STATS_MAX: nl80211_txq_stats = nl80211_txq_stats::NL80211_TXQ_STATS_MAX_FLOWS; +} +impl nl80211_mpath_info { +pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; +} +impl nl80211_band_iftype_attr { +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +} +impl nl80211_band_attr { +pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; +} +impl nl80211_wmm_rule { +pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; +} +impl nl80211_frequency_attr { +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +} +impl nl80211_bitrate_attr { +pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; +} +impl nl80211_reg_rule_attr { +pub const NL80211_REG_RULE_ATTR_MAX: nl80211_reg_rule_attr = nl80211_reg_rule_attr::NL80211_ATTR_POWER_RULE_PSD; +} +impl nl80211_sched_scan_match_attr { +pub const NL80211_SCHED_SCAN_MATCH_ATTR_MAX: nl80211_sched_scan_match_attr = nl80211_sched_scan_match_attr::NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI; +} +impl nl80211_survey_info { +pub const NL80211_SURVEY_INFO_MAX: nl80211_survey_info = nl80211_survey_info::NL80211_SURVEY_INFO_FREQUENCY_OFFSET; +} +impl nl80211_mntr_flags { +pub const NL80211_MNTR_FLAG_MAX: nl80211_mntr_flags = nl80211_mntr_flags::NL80211_MNTR_FLAG_SKIP_TX; +} +impl nl80211_mesh_power_mode { +pub const NL80211_MESH_POWER_MAX: nl80211_mesh_power_mode = nl80211_mesh_power_mode::NL80211_MESH_POWER_DEEP_SLEEP; +} +impl nl80211_meshconf_params { +pub const NL80211_MESHCONF_ATTR_MAX: nl80211_meshconf_params = nl80211_meshconf_params::NL80211_MESHCONF_CONNECTED_TO_AS; +} +impl nl80211_mesh_setup_params { +pub const NL80211_MESH_SETUP_ATTR_MAX: nl80211_mesh_setup_params = nl80211_mesh_setup_params::NL80211_MESH_SETUP_AUTH_PROTOCOL; +} +impl nl80211_txq_attr { +pub const NL80211_TXQ_ATTR_MAX: nl80211_txq_attr = nl80211_txq_attr::NL80211_TXQ_ATTR_AIFS; +} +impl nl80211_bss { +pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; +} +impl nl80211_auth_type { +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +} +impl nl80211_auth_type { +pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; +} +impl nl80211_key_attributes { +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +} +impl nl80211_tx_rate_attributes { +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +} +impl nl80211_attr_cqm { +pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; +} +impl nl80211_tid_config_attr { +pub const NL80211_TID_CONFIG_ATTR_MAX: nl80211_tid_config_attr = nl80211_tid_config_attr::NL80211_TID_CONFIG_ATTR_TX_RATE; +} +impl nl80211_packet_pattern_attr { +pub const MAX_NL80211_PKTPAT: nl80211_packet_pattern_attr = nl80211_packet_pattern_attr::NL80211_PKTPAT_OFFSET; +} +impl nl80211_wowlan_triggers { +pub const MAX_NL80211_WOWLAN_TRIG: nl80211_wowlan_triggers = nl80211_wowlan_triggers::NL80211_WOWLAN_TRIG_UNPROTECTED_DEAUTH_DISASSOC; +} +impl nl80211_wowlan_tcp_attrs { +pub const MAX_NL80211_WOWLAN_TCP: nl80211_wowlan_tcp_attrs = nl80211_wowlan_tcp_attrs::NL80211_WOWLAN_TCP_WAKE_MASK; +} +impl nl80211_attr_coalesce_rule { +pub const NL80211_ATTR_COALESCE_RULE_MAX: nl80211_attr_coalesce_rule = nl80211_attr_coalesce_rule::NL80211_ATTR_COALESCE_RULE_PKT_PATTERN; +} +impl nl80211_iface_limit_attrs { +pub const MAX_NL80211_IFACE_LIMIT: nl80211_iface_limit_attrs = nl80211_iface_limit_attrs::NL80211_IFACE_LIMIT_TYPES; +} +impl nl80211_if_combination_attrs { +pub const MAX_NL80211_IFACE_COMB: nl80211_if_combination_attrs = nl80211_if_combination_attrs::NL80211_IFACE_COMB_BI_MIN_GCD; +} +impl nl80211_plink_state { +pub const MAX_NL80211_PLINK_STATES: nl80211_plink_state = nl80211_plink_state::NL80211_PLINK_BLOCKED; +} +impl nl80211_rekey_data { +pub const MAX_NL80211_REKEY_DATA: nl80211_rekey_data = nl80211_rekey_data::NL80211_REKEY_DATA_AKM; +} +impl nl80211_sta_wme_attr { +pub const NL80211_STA_WME_MAX: nl80211_sta_wme_attr = nl80211_sta_wme_attr::NL80211_STA_WME_MAX_SP; +} +impl nl80211_pmksa_candidate_attr { +pub const MAX_NL80211_PMKSA_CANDIDATE: nl80211_pmksa_candidate_attr = nl80211_pmksa_candidate_attr::NL80211_PMKSA_CANDIDATE_PREAUTH; +} +impl nl80211_ext_feature_index { +pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; +} +impl nl80211_ext_feature_index { +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +} +impl nl80211_smps_mode { +pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; +} +impl nl80211_sched_scan_plan { +pub const NL80211_SCHED_SCAN_PLAN_MAX: nl80211_sched_scan_plan = nl80211_sched_scan_plan::NL80211_SCHED_SCAN_PLAN_ITERATIONS; +} +impl nl80211_bss_select_attr { +pub const NL80211_BSS_SELECT_ATTR_MAX: nl80211_bss_select_attr = nl80211_bss_select_attr::NL80211_BSS_SELECT_ATTR_RSSI_ADJUST; +} +impl nl80211_nan_function_type { +pub const NL80211_NAN_FUNC_MAX_TYPE: nl80211_nan_function_type = nl80211_nan_function_type::NL80211_NAN_FUNC_FOLLOW_UP; +} +impl nl80211_nan_func_attributes { +pub const NL80211_NAN_FUNC_ATTR_MAX: nl80211_nan_func_attributes = nl80211_nan_func_attributes::NL80211_NAN_FUNC_TERM_REASON; +} +impl nl80211_nan_srf_attributes { +pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf_attributes::NL80211_NAN_SRF_MAC_ADDRS; +} +impl nl80211_nan_match_attributes { +pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; +} +impl nl80211_ftm_responder_attributes { +pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; +} +impl nl80211_ftm_responder_stats { +pub const NL80211_FTM_STATS_MAX: nl80211_ftm_responder_stats = nl80211_ftm_responder_stats::NL80211_FTM_STATS_PAD; +} +impl nl80211_peer_measurement_type { +pub const NL80211_PMSR_TYPE_MAX: nl80211_peer_measurement_type = nl80211_peer_measurement_type::NL80211_PMSR_TYPE_FTM; +} +impl nl80211_peer_measurement_req { +pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer_measurement_req::NL80211_PMSR_REQ_ATTR_GET_AP_TSF; +} +impl nl80211_peer_measurement_resp { +pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; +} +impl nl80211_peer_measurement_peer_attrs { +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +} +impl nl80211_peer_measurement_attrs { +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +} +impl nl80211_peer_measurement_ftm_capa { +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +} +impl nl80211_peer_measurement_ftm_req { +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +} +impl nl80211_peer_measurement_ftm_resp { +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +} +impl nl80211_obss_pd_attributes { +pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; +} +impl nl80211_bss_color_attributes { +pub const NL80211_HE_BSS_COLOR_ATTR_MAX: nl80211_bss_color_attributes = nl80211_bss_color_attributes::NL80211_HE_BSS_COLOR_ATTR_PARTIAL; +} +impl nl80211_iftype_akm_attributes { +pub const NL80211_IFTYPE_AKM_ATTR_MAX: nl80211_iftype_akm_attributes = nl80211_iftype_akm_attributes::NL80211_IFTYPE_AKM_ATTR_SUITES; +} +impl nl80211_fils_discovery_attributes { +pub const NL80211_FILS_DISCOVERY_ATTR_MAX: nl80211_fils_discovery_attributes = nl80211_fils_discovery_attributes::NL80211_FILS_DISCOVERY_ATTR_TMPL; +} +impl nl80211_unsol_bcast_probe_resp_attributes { +pub const NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_MAX: nl80211_unsol_bcast_probe_resp_attributes = nl80211_unsol_bcast_probe_resp_attributes::NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_TMPL; +} +impl nl80211_sar_attrs { +pub const NL80211_SAR_ATTR_MAX: nl80211_sar_attrs = nl80211_sar_attrs::NL80211_SAR_ATTR_SPECS; +} +impl nl80211_sar_specs_attrs { +pub const NL80211_SAR_ATTR_SPECS_MAX: nl80211_sar_specs_attrs = nl80211_sar_specs_attrs::NL80211_SAR_ATTR_SPECS_END_FREQ; +} +impl nl80211_mbssid_config_attributes { +pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID; +} +impl nl80211_wiphy_radio_attrs { +pub const NL80211_WIPHY_RADIO_ATTR_MAX: nl80211_wiphy_radio_attrs = nl80211_wiphy_radio_attrs::NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK; +} +impl nl80211_wiphy_radio_freq_range { +pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl80211_wiphy_radio_freq_range::NL80211_WIPHY_RADIO_FREQ_ATTR_END; +} +impl macsec_validation_type { +pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; +} +impl macsec_offload { +pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; +} +impl ifla_vxlan_df { +pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; +} +impl ifla_vxlan_label_policy { +pub const VXLAN_LABEL_MAX: ifla_vxlan_label_policy = ifla_vxlan_label_policy::VXLAN_LABEL_INHERIT; +} +impl ifla_geneve_df { +pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/prctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/prctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..2b4f0a4e3291e83473a7739b61962122df74d2ef --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/prctl.rs @@ -0,0 +1,277 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_suseconds_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_suseconds_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct prctl_mm_map { +pub start_code: __u64, +pub end_code: __u64, +pub start_data: __u64, +pub end_data: __u64, +pub start_brk: __u64, +pub brk: __u64, +pub start_stack: __u64, +pub arg_start: __u64, +pub arg_end: __u64, +pub env_start: __u64, +pub env_end: __u64, +pub auxv: *mut __u64, +pub auxv_size: __u32, +pub exe_fd: __u32, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const PR_SET_PDEATHSIG: u32 = 1; +pub const PR_GET_PDEATHSIG: u32 = 2; +pub const PR_GET_DUMPABLE: u32 = 3; +pub const PR_SET_DUMPABLE: u32 = 4; +pub const PR_GET_UNALIGN: u32 = 5; +pub const PR_SET_UNALIGN: u32 = 6; +pub const PR_UNALIGN_NOPRINT: u32 = 1; +pub const PR_UNALIGN_SIGBUS: u32 = 2; +pub const PR_GET_KEEPCAPS: u32 = 7; +pub const PR_SET_KEEPCAPS: u32 = 8; +pub const PR_GET_FPEMU: u32 = 9; +pub const PR_SET_FPEMU: u32 = 10; +pub const PR_FPEMU_NOPRINT: u32 = 1; +pub const PR_FPEMU_SIGFPE: u32 = 2; +pub const PR_GET_FPEXC: u32 = 11; +pub const PR_SET_FPEXC: u32 = 12; +pub const PR_FP_EXC_SW_ENABLE: u32 = 128; +pub const PR_FP_EXC_DIV: u32 = 65536; +pub const PR_FP_EXC_OVF: u32 = 131072; +pub const PR_FP_EXC_UND: u32 = 262144; +pub const PR_FP_EXC_RES: u32 = 524288; +pub const PR_FP_EXC_INV: u32 = 1048576; +pub const PR_FP_EXC_DISABLED: u32 = 0; +pub const PR_FP_EXC_NONRECOV: u32 = 1; +pub const PR_FP_EXC_ASYNC: u32 = 2; +pub const PR_FP_EXC_PRECISE: u32 = 3; +pub const PR_GET_TIMING: u32 = 13; +pub const PR_SET_TIMING: u32 = 14; +pub const PR_TIMING_STATISTICAL: u32 = 0; +pub const PR_TIMING_TIMESTAMP: u32 = 1; +pub const PR_SET_NAME: u32 = 15; +pub const PR_GET_NAME: u32 = 16; +pub const PR_GET_ENDIAN: u32 = 19; +pub const PR_SET_ENDIAN: u32 = 20; +pub const PR_ENDIAN_BIG: u32 = 0; +pub const PR_ENDIAN_LITTLE: u32 = 1; +pub const PR_ENDIAN_PPC_LITTLE: u32 = 2; +pub const PR_GET_SECCOMP: u32 = 21; +pub const PR_SET_SECCOMP: u32 = 22; +pub const PR_CAPBSET_READ: u32 = 23; +pub const PR_CAPBSET_DROP: u32 = 24; +pub const PR_GET_TSC: u32 = 25; +pub const PR_SET_TSC: u32 = 26; +pub const PR_TSC_ENABLE: u32 = 1; +pub const PR_TSC_SIGSEGV: u32 = 2; +pub const PR_GET_SECUREBITS: u32 = 27; +pub const PR_SET_SECUREBITS: u32 = 28; +pub const PR_SET_TIMERSLACK: u32 = 29; +pub const PR_GET_TIMERSLACK: u32 = 30; +pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31; +pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32; +pub const PR_MCE_KILL: u32 = 33; +pub const PR_MCE_KILL_CLEAR: u32 = 0; +pub const PR_MCE_KILL_SET: u32 = 1; +pub const PR_MCE_KILL_LATE: u32 = 0; +pub const PR_MCE_KILL_EARLY: u32 = 1; +pub const PR_MCE_KILL_DEFAULT: u32 = 2; +pub const PR_MCE_KILL_GET: u32 = 34; +pub const PR_SET_MM: u32 = 35; +pub const PR_SET_MM_START_CODE: u32 = 1; +pub const PR_SET_MM_END_CODE: u32 = 2; +pub const PR_SET_MM_START_DATA: u32 = 3; +pub const PR_SET_MM_END_DATA: u32 = 4; +pub const PR_SET_MM_START_STACK: u32 = 5; +pub const PR_SET_MM_START_BRK: u32 = 6; +pub const PR_SET_MM_BRK: u32 = 7; +pub const PR_SET_MM_ARG_START: u32 = 8; +pub const PR_SET_MM_ARG_END: u32 = 9; +pub const PR_SET_MM_ENV_START: u32 = 10; +pub const PR_SET_MM_ENV_END: u32 = 11; +pub const PR_SET_MM_AUXV: u32 = 12; +pub const PR_SET_MM_EXE_FILE: u32 = 13; +pub const PR_SET_MM_MAP: u32 = 14; +pub const PR_SET_MM_MAP_SIZE: u32 = 15; +pub const PR_SET_PTRACER: u32 = 1499557217; +pub const PR_SET_CHILD_SUBREAPER: u32 = 36; +pub const PR_GET_CHILD_SUBREAPER: u32 = 37; +pub const PR_SET_NO_NEW_PRIVS: u32 = 38; +pub const PR_GET_NO_NEW_PRIVS: u32 = 39; +pub const PR_GET_TID_ADDRESS: u32 = 40; +pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_GET_THP_DISABLE: u32 = 42; +pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; +pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; +pub const PR_SET_FP_MODE: u32 = 45; +pub const PR_GET_FP_MODE: u32 = 46; +pub const PR_FP_MODE_FR: u32 = 1; +pub const PR_FP_MODE_FRE: u32 = 2; +pub const PR_CAP_AMBIENT: u32 = 47; +pub const PR_CAP_AMBIENT_IS_SET: u32 = 1; +pub const PR_CAP_AMBIENT_RAISE: u32 = 2; +pub const PR_CAP_AMBIENT_LOWER: u32 = 3; +pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4; +pub const PR_SVE_SET_VL: u32 = 50; +pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SVE_GET_VL: u32 = 51; +pub const PR_SVE_VL_LEN_MASK: u32 = 65535; +pub const PR_SVE_VL_INHERIT: u32 = 131072; +pub const PR_GET_SPECULATION_CTRL: u32 = 52; +pub const PR_SET_SPECULATION_CTRL: u32 = 53; +pub const PR_SPEC_STORE_BYPASS: u32 = 0; +pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1; +pub const PR_SPEC_L1D_FLUSH: u32 = 2; +pub const PR_SPEC_NOT_AFFECTED: u32 = 0; +pub const PR_SPEC_PRCTL: u32 = 1; +pub const PR_SPEC_ENABLE: u32 = 2; +pub const PR_SPEC_DISABLE: u32 = 4; +pub const PR_SPEC_FORCE_DISABLE: u32 = 8; +pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16; +pub const PR_PAC_RESET_KEYS: u32 = 54; +pub const PR_PAC_APIAKEY: u32 = 1; +pub const PR_PAC_APIBKEY: u32 = 2; +pub const PR_PAC_APDAKEY: u32 = 4; +pub const PR_PAC_APDBKEY: u32 = 8; +pub const PR_PAC_APGAKEY: u32 = 16; +pub const PR_SET_TAGGED_ADDR_CTRL: u32 = 55; +pub const PR_GET_TAGGED_ADDR_CTRL: u32 = 56; +pub const PR_TAGGED_ADDR_ENABLE: u32 = 1; +pub const PR_MTE_TCF_NONE: u32 = 0; +pub const PR_MTE_TCF_SYNC: u32 = 2; +pub const PR_MTE_TCF_ASYNC: u32 = 4; +pub const PR_MTE_TCF_MASK: u32 = 6; +pub const PR_MTE_TAG_SHIFT: u32 = 3; +pub const PR_MTE_TAG_MASK: u32 = 524280; +pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_PMLEN_SHIFT: u32 = 24; +pub const PR_PMLEN_MASK: u32 = 2130706432; +pub const PR_SET_IO_FLUSHER: u32 = 57; +pub const PR_GET_IO_FLUSHER: u32 = 58; +pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; +pub const PR_SYS_DISPATCH_OFF: u32 = 0; +pub const PR_SYS_DISPATCH_ON: u32 = 1; +pub const SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; +pub const SYSCALL_DISPATCH_FILTER_BLOCK: u32 = 1; +pub const PR_PAC_SET_ENABLED_KEYS: u32 = 60; +pub const PR_PAC_GET_ENABLED_KEYS: u32 = 61; +pub const PR_SCHED_CORE: u32 = 62; +pub const PR_SCHED_CORE_GET: u32 = 0; +pub const PR_SCHED_CORE_CREATE: u32 = 1; +pub const PR_SCHED_CORE_SHARE_TO: u32 = 2; +pub const PR_SCHED_CORE_SHARE_FROM: u32 = 3; +pub const PR_SCHED_CORE_MAX: u32 = 4; +pub const PR_SCHED_CORE_SCOPE_THREAD: u32 = 0; +pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: u32 = 1; +pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: u32 = 2; +pub const PR_SME_SET_VL: u32 = 63; +pub const PR_SME_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SME_GET_VL: u32 = 64; +pub const PR_SME_VL_LEN_MASK: u32 = 65535; +pub const PR_SME_VL_INHERIT: u32 = 131072; +pub const PR_SET_MDWE: u32 = 65; +pub const PR_MDWE_REFUSE_EXEC_GAIN: u32 = 1; +pub const PR_MDWE_NO_INHERIT: u32 = 2; +pub const PR_GET_MDWE: u32 = 66; +pub const PR_SET_VMA: u32 = 1398164801; +pub const PR_SET_VMA_ANON_NAME: u32 = 0; +pub const PR_GET_AUXV: u32 = 1096112214; +pub const PR_SET_MEMORY_MERGE: u32 = 67; +pub const PR_GET_MEMORY_MERGE: u32 = 68; +pub const PR_RISCV_V_SET_CONTROL: u32 = 69; +pub const PR_RISCV_V_GET_CONTROL: u32 = 70; +pub const PR_RISCV_V_VSTATE_CTRL_DEFAULT: u32 = 0; +pub const PR_RISCV_V_VSTATE_CTRL_OFF: u32 = 1; +pub const PR_RISCV_V_VSTATE_CTRL_ON: u32 = 2; +pub const PR_RISCV_V_VSTATE_CTRL_INHERIT: u32 = 16; +pub const PR_RISCV_V_VSTATE_CTRL_CUR_MASK: u32 = 3; +pub const PR_RISCV_V_VSTATE_CTRL_NEXT_MASK: u32 = 12; +pub const PR_RISCV_V_VSTATE_CTRL_MASK: u32 = 31; +pub const PR_RISCV_SET_ICACHE_FLUSH_CTX: u32 = 71; +pub const PR_RISCV_CTX_SW_FENCEI_ON: u32 = 0; +pub const PR_RISCV_CTX_SW_FENCEI_OFF: u32 = 1; +pub const PR_RISCV_SCOPE_PER_PROCESS: u32 = 0; +pub const PR_RISCV_SCOPE_PER_THREAD: u32 = 1; +pub const PR_PPC_GET_DEXCR: u32 = 72; +pub const PR_PPC_SET_DEXCR: u32 = 73; +pub const PR_PPC_DEXCR_SBHE: u32 = 0; +pub const PR_PPC_DEXCR_IBRTPD: u32 = 1; +pub const PR_PPC_DEXCR_SRAPD: u32 = 2; +pub const PR_PPC_DEXCR_NPHIE: u32 = 3; +pub const PR_PPC_DEXCR_CTRL_EDITABLE: u32 = 1; +pub const PR_PPC_DEXCR_CTRL_SET: u32 = 2; +pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; +pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; +pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; +pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; +pub const PR_GET_SHADOW_STACK_STATUS: u32 = 74; +pub const PR_SET_SHADOW_STACK_STATUS: u32 = 75; +pub const PR_SHADOW_STACK_ENABLE: u32 = 1; +pub const PR_SHADOW_STACK_WRITE: u32 = 2; +pub const PR_SHADOW_STACK_PUSH: u32 = 4; +pub const PR_LOCK_SHADOW_STACK_STATUS: u32 = 76; +pub const PR_TIMER_CREATE_RESTORE_IDS: u32 = 77; +pub const PR_TIMER_CREATE_RESTORE_IDS_OFF: u32 = 0; +pub const PR_TIMER_CREATE_RESTORE_IDS_ON: u32 = 1; +pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; +pub const PR_FUTEX_HASH: u32 = 78; +pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; +pub const FH_FLAG_IMMUTABLE: u32 = 1; +pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_FUTEX_HASH_GET_IMMUTABLE: u32 = 3; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/ptrace.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/ptrace.rs new file mode 100644 index 0000000000000000000000000000000000000000..ce3bf692627c5d64f375e4e7d48d64147b249f68 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/ptrace.rs @@ -0,0 +1,1020 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_suseconds_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_suseconds_t, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct audit_status { +pub mask: __u32, +pub enabled: __u32, +pub failure: __u32, +pub pid: __u32, +pub rate_limit: __u32, +pub backlog_limit: __u32, +pub lost: __u32, +pub backlog: __u32, +pub __bindgen_anon_1: audit_status__bindgen_ty_1, +pub backlog_wait_time: __u32, +pub backlog_wait_time_actual: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct audit_features { +pub vers: __u32, +pub mask: __u32, +pub features: __u32, +pub lock: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct audit_tty_status { +pub enabled: __u32, +pub log_passwd: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct audit_rule_data { +pub flags: __u32, +pub action: __u32, +pub field_count: __u32, +pub mask: [__u32; 64usize], +pub fields: [__u32; 64usize], +pub values: [__u32; 64usize], +pub fieldflags: [__u32; 64usize], +pub buflen: __u32, +pub buf: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sock_filter { +pub code: __u16, +pub jt: __u8, +pub jf: __u8, +pub k: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sock_fprog { +pub len: crate::ctypes::c_ushort, +pub filter: *mut sock_filter, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_peeksiginfo_args { +pub off: __u64, +pub flags: __u32, +pub nr: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_metadata { +pub filter_off: __u64, +pub flags: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ptrace_syscall_info { +pub op: __u8, +pub reserved: __u8, +pub flags: __u16, +pub arch: __u32, +pub instruction_pointer: __u64, +pub stack_pointer: __u64, +pub __bindgen_anon_1: ptrace_syscall_info__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_syscall_info__bindgen_ty_1__bindgen_ty_1 { +pub nr: __u64, +pub args: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_syscall_info__bindgen_ty_1__bindgen_ty_2 { +pub rval: __s64, +pub is_error: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_syscall_info__bindgen_ty_1__bindgen_ty_3 { +pub nr: __u64, +pub args: [__u64; 6usize], +pub ret_data: __u32, +pub reserved2: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_rseq_configuration { +pub rseq_abi_pointer: __u64, +pub rseq_abi_size: __u32, +pub signature: __u32, +pub flags: __u32, +pub pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_sud_config { +pub mode: __u64, +pub selector: __u64, +pub offset: __u64, +pub len: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pt_regs { +pub u_regs: [crate::ctypes::c_ulong; 16usize], +pub tstate: crate::ctypes::c_ulong, +pub tpc: crate::ctypes::c_ulong, +pub tnpc: crate::ctypes::c_ulong, +pub y: crate::ctypes::c_uint, +pub magic: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pt_regs32 { +pub psr: crate::ctypes::c_uint, +pub pc: crate::ctypes::c_uint, +pub npc: crate::ctypes::c_uint, +pub y: crate::ctypes::c_uint, +pub u_regs: [crate::ctypes::c_uint; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct reg_window { +pub locals: [crate::ctypes::c_ulong; 8usize], +pub ins: [crate::ctypes::c_ulong; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct reg_window32 { +pub locals: [crate::ctypes::c_uint; 8usize], +pub ins: [crate::ctypes::c_uint; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sparc_stackf { +pub locals: [crate::ctypes::c_ulong; 8usize], +pub ins: [crate::ctypes::c_ulong; 6usize], +pub fp: *mut sparc_stackf, +pub callers_pc: crate::ctypes::c_ulong, +pub structptr: *mut crate::ctypes::c_char, +pub xargs: [crate::ctypes::c_ulong; 6usize], +pub xxargs: [crate::ctypes::c_ulong; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sparc_stackf32 { +pub locals: [crate::ctypes::c_uint; 8usize], +pub ins: [crate::ctypes::c_uint; 6usize], +pub fp: crate::ctypes::c_uint, +pub callers_pc: crate::ctypes::c_uint, +pub structptr: crate::ctypes::c_uint, +pub xargs: [crate::ctypes::c_uint; 6usize], +pub xxargs: [crate::ctypes::c_uint; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sparc_trapf { +pub locals: [crate::ctypes::c_ulong; 8usize], +pub ins: [crate::ctypes::c_ulong; 8usize], +pub _unused: crate::ctypes::c_ulong, +pub regs: *mut pt_regs, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_data { +pub nr: crate::ctypes::c_int, +pub arch: __u32, +pub instruction_pointer: __u64, +pub args: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif_sizes { +pub seccomp_notif: __u16, +pub seccomp_notif_resp: __u16, +pub seccomp_data: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif { +pub id: __u64, +pub pid: __u32, +pub flags: __u32, +pub data: seccomp_data, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif_resp { +pub id: __u64, +pub val: __s64, +pub error: __s32, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif_addfd { +pub id: __u64, +pub flags: __u32, +pub srcfd: __u32, +pub newfd: __u32, +pub newfd_flags: __u32, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const EM_NONE: u32 = 0; +pub const EM_M32: u32 = 1; +pub const EM_SPARC: u32 = 2; +pub const EM_386: u32 = 3; +pub const EM_68K: u32 = 4; +pub const EM_88K: u32 = 5; +pub const EM_486: u32 = 6; +pub const EM_860: u32 = 7; +pub const EM_MIPS: u32 = 8; +pub const EM_MIPS_RS3_LE: u32 = 10; +pub const EM_MIPS_RS4_BE: u32 = 10; +pub const EM_PARISC: u32 = 15; +pub const EM_SPARC32PLUS: u32 = 18; +pub const EM_PPC: u32 = 20; +pub const EM_PPC64: u32 = 21; +pub const EM_SPU: u32 = 23; +pub const EM_ARM: u32 = 40; +pub const EM_SH: u32 = 42; +pub const EM_SPARCV9: u32 = 43; +pub const EM_H8_300: u32 = 46; +pub const EM_IA_64: u32 = 50; +pub const EM_X86_64: u32 = 62; +pub const EM_S390: u32 = 22; +pub const EM_CRIS: u32 = 76; +pub const EM_M32R: u32 = 88; +pub const EM_MN10300: u32 = 89; +pub const EM_OPENRISC: u32 = 92; +pub const EM_ARCOMPACT: u32 = 93; +pub const EM_XTENSA: u32 = 94; +pub const EM_BLACKFIN: u32 = 106; +pub const EM_UNICORE: u32 = 110; +pub const EM_ALTERA_NIOS2: u32 = 113; +pub const EM_TI_C6000: u32 = 140; +pub const EM_HEXAGON: u32 = 164; +pub const EM_NDS32: u32 = 167; +pub const EM_AARCH64: u32 = 183; +pub const EM_TILEPRO: u32 = 188; +pub const EM_MICROBLAZE: u32 = 189; +pub const EM_TILEGX: u32 = 191; +pub const EM_ARCV2: u32 = 195; +pub const EM_RISCV: u32 = 243; +pub const EM_BPF: u32 = 247; +pub const EM_CSKY: u32 = 252; +pub const EM_LOONGARCH: u32 = 258; +pub const EM_FRV: u32 = 21569; +pub const EM_ALPHA: u32 = 36902; +pub const EM_CYGNUS_M32R: u32 = 36929; +pub const EM_S390_OLD: u32 = 41872; +pub const EM_CYGNUS_MN10300: u32 = 48879; +pub const AUDIT_GET: u32 = 1000; +pub const AUDIT_SET: u32 = 1001; +pub const AUDIT_LIST: u32 = 1002; +pub const AUDIT_ADD: u32 = 1003; +pub const AUDIT_DEL: u32 = 1004; +pub const AUDIT_USER: u32 = 1005; +pub const AUDIT_LOGIN: u32 = 1006; +pub const AUDIT_WATCH_INS: u32 = 1007; +pub const AUDIT_WATCH_REM: u32 = 1008; +pub const AUDIT_WATCH_LIST: u32 = 1009; +pub const AUDIT_SIGNAL_INFO: u32 = 1010; +pub const AUDIT_ADD_RULE: u32 = 1011; +pub const AUDIT_DEL_RULE: u32 = 1012; +pub const AUDIT_LIST_RULES: u32 = 1013; +pub const AUDIT_TRIM: u32 = 1014; +pub const AUDIT_MAKE_EQUIV: u32 = 1015; +pub const AUDIT_TTY_GET: u32 = 1016; +pub const AUDIT_TTY_SET: u32 = 1017; +pub const AUDIT_SET_FEATURE: u32 = 1018; +pub const AUDIT_GET_FEATURE: u32 = 1019; +pub const AUDIT_FIRST_USER_MSG: u32 = 1100; +pub const AUDIT_USER_AVC: u32 = 1107; +pub const AUDIT_USER_TTY: u32 = 1124; +pub const AUDIT_LAST_USER_MSG: u32 = 1199; +pub const AUDIT_FIRST_USER_MSG2: u32 = 2100; +pub const AUDIT_LAST_USER_MSG2: u32 = 2999; +pub const AUDIT_DAEMON_START: u32 = 1200; +pub const AUDIT_DAEMON_END: u32 = 1201; +pub const AUDIT_DAEMON_ABORT: u32 = 1202; +pub const AUDIT_DAEMON_CONFIG: u32 = 1203; +pub const AUDIT_SYSCALL: u32 = 1300; +pub const AUDIT_PATH: u32 = 1302; +pub const AUDIT_IPC: u32 = 1303; +pub const AUDIT_SOCKETCALL: u32 = 1304; +pub const AUDIT_CONFIG_CHANGE: u32 = 1305; +pub const AUDIT_SOCKADDR: u32 = 1306; +pub const AUDIT_CWD: u32 = 1307; +pub const AUDIT_EXECVE: u32 = 1309; +pub const AUDIT_IPC_SET_PERM: u32 = 1311; +pub const AUDIT_MQ_OPEN: u32 = 1312; +pub const AUDIT_MQ_SENDRECV: u32 = 1313; +pub const AUDIT_MQ_NOTIFY: u32 = 1314; +pub const AUDIT_MQ_GETSETATTR: u32 = 1315; +pub const AUDIT_KERNEL_OTHER: u32 = 1316; +pub const AUDIT_FD_PAIR: u32 = 1317; +pub const AUDIT_OBJ_PID: u32 = 1318; +pub const AUDIT_TTY: u32 = 1319; +pub const AUDIT_EOE: u32 = 1320; +pub const AUDIT_BPRM_FCAPS: u32 = 1321; +pub const AUDIT_CAPSET: u32 = 1322; +pub const AUDIT_MMAP: u32 = 1323; +pub const AUDIT_NETFILTER_PKT: u32 = 1324; +pub const AUDIT_NETFILTER_CFG: u32 = 1325; +pub const AUDIT_SECCOMP: u32 = 1326; +pub const AUDIT_PROCTITLE: u32 = 1327; +pub const AUDIT_FEATURE_CHANGE: u32 = 1328; +pub const AUDIT_REPLACE: u32 = 1329; +pub const AUDIT_KERN_MODULE: u32 = 1330; +pub const AUDIT_FANOTIFY: u32 = 1331; +pub const AUDIT_TIME_INJOFFSET: u32 = 1332; +pub const AUDIT_TIME_ADJNTPVAL: u32 = 1333; +pub const AUDIT_BPF: u32 = 1334; +pub const AUDIT_EVENT_LISTENER: u32 = 1335; +pub const AUDIT_URINGOP: u32 = 1336; +pub const AUDIT_OPENAT2: u32 = 1337; +pub const AUDIT_DM_CTRL: u32 = 1338; +pub const AUDIT_DM_EVENT: u32 = 1339; +pub const AUDIT_AVC: u32 = 1400; +pub const AUDIT_SELINUX_ERR: u32 = 1401; +pub const AUDIT_AVC_PATH: u32 = 1402; +pub const AUDIT_MAC_POLICY_LOAD: u32 = 1403; +pub const AUDIT_MAC_STATUS: u32 = 1404; +pub const AUDIT_MAC_CONFIG_CHANGE: u32 = 1405; +pub const AUDIT_MAC_UNLBL_ALLOW: u32 = 1406; +pub const AUDIT_MAC_CIPSOV4_ADD: u32 = 1407; +pub const AUDIT_MAC_CIPSOV4_DEL: u32 = 1408; +pub const AUDIT_MAC_MAP_ADD: u32 = 1409; +pub const AUDIT_MAC_MAP_DEL: u32 = 1410; +pub const AUDIT_MAC_IPSEC_ADDSA: u32 = 1411; +pub const AUDIT_MAC_IPSEC_DELSA: u32 = 1412; +pub const AUDIT_MAC_IPSEC_ADDSPD: u32 = 1413; +pub const AUDIT_MAC_IPSEC_DELSPD: u32 = 1414; +pub const AUDIT_MAC_IPSEC_EVENT: u32 = 1415; +pub const AUDIT_MAC_UNLBL_STCADD: u32 = 1416; +pub const AUDIT_MAC_UNLBL_STCDEL: u32 = 1417; +pub const AUDIT_MAC_CALIPSO_ADD: u32 = 1418; +pub const AUDIT_MAC_CALIPSO_DEL: u32 = 1419; +pub const AUDIT_IPE_ACCESS: u32 = 1420; +pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; +pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; +pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; +pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; +pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; +pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; +pub const AUDIT_ANOM_ABEND: u32 = 1701; +pub const AUDIT_ANOM_LINK: u32 = 1702; +pub const AUDIT_ANOM_CREAT: u32 = 1703; +pub const AUDIT_INTEGRITY_DATA: u32 = 1800; +pub const AUDIT_INTEGRITY_METADATA: u32 = 1801; +pub const AUDIT_INTEGRITY_STATUS: u32 = 1802; +pub const AUDIT_INTEGRITY_HASH: u32 = 1803; +pub const AUDIT_INTEGRITY_PCR: u32 = 1804; +pub const AUDIT_INTEGRITY_RULE: u32 = 1805; +pub const AUDIT_INTEGRITY_EVM_XATTR: u32 = 1806; +pub const AUDIT_INTEGRITY_POLICY_RULE: u32 = 1807; +pub const AUDIT_INTEGRITY_USERSPACE: u32 = 1808; +pub const AUDIT_KERNEL: u32 = 2000; +pub const AUDIT_FILTER_USER: u32 = 0; +pub const AUDIT_FILTER_TASK: u32 = 1; +pub const AUDIT_FILTER_ENTRY: u32 = 2; +pub const AUDIT_FILTER_WATCH: u32 = 3; +pub const AUDIT_FILTER_EXIT: u32 = 4; +pub const AUDIT_FILTER_EXCLUDE: u32 = 5; +pub const AUDIT_FILTER_TYPE: u32 = 5; +pub const AUDIT_FILTER_FS: u32 = 6; +pub const AUDIT_FILTER_URING_EXIT: u32 = 7; +pub const AUDIT_NR_FILTERS: u32 = 8; +pub const AUDIT_FILTER_PREPEND: u32 = 16; +pub const AUDIT_NEVER: u32 = 0; +pub const AUDIT_POSSIBLE: u32 = 1; +pub const AUDIT_ALWAYS: u32 = 2; +pub const AUDIT_MAX_FIELDS: u32 = 64; +pub const AUDIT_MAX_KEY_LEN: u32 = 256; +pub const AUDIT_BITMASK_SIZE: u32 = 64; +pub const AUDIT_SYSCALL_CLASSES: u32 = 16; +pub const AUDIT_CLASS_DIR_WRITE: u32 = 0; +pub const AUDIT_CLASS_DIR_WRITE_32: u32 = 1; +pub const AUDIT_CLASS_CHATTR: u32 = 2; +pub const AUDIT_CLASS_CHATTR_32: u32 = 3; +pub const AUDIT_CLASS_READ: u32 = 4; +pub const AUDIT_CLASS_READ_32: u32 = 5; +pub const AUDIT_CLASS_WRITE: u32 = 6; +pub const AUDIT_CLASS_WRITE_32: u32 = 7; +pub const AUDIT_CLASS_SIGNAL: u32 = 8; +pub const AUDIT_CLASS_SIGNAL_32: u32 = 9; +pub const AUDIT_UNUSED_BITS: u32 = 134216704; +pub const AUDIT_COMPARE_UID_TO_OBJ_UID: u32 = 1; +pub const AUDIT_COMPARE_GID_TO_OBJ_GID: u32 = 2; +pub const AUDIT_COMPARE_EUID_TO_OBJ_UID: u32 = 3; +pub const AUDIT_COMPARE_EGID_TO_OBJ_GID: u32 = 4; +pub const AUDIT_COMPARE_AUID_TO_OBJ_UID: u32 = 5; +pub const AUDIT_COMPARE_SUID_TO_OBJ_UID: u32 = 6; +pub const AUDIT_COMPARE_SGID_TO_OBJ_GID: u32 = 7; +pub const AUDIT_COMPARE_FSUID_TO_OBJ_UID: u32 = 8; +pub const AUDIT_COMPARE_FSGID_TO_OBJ_GID: u32 = 9; +pub const AUDIT_COMPARE_UID_TO_AUID: u32 = 10; +pub const AUDIT_COMPARE_UID_TO_EUID: u32 = 11; +pub const AUDIT_COMPARE_UID_TO_FSUID: u32 = 12; +pub const AUDIT_COMPARE_UID_TO_SUID: u32 = 13; +pub const AUDIT_COMPARE_AUID_TO_FSUID: u32 = 14; +pub const AUDIT_COMPARE_AUID_TO_SUID: u32 = 15; +pub const AUDIT_COMPARE_AUID_TO_EUID: u32 = 16; +pub const AUDIT_COMPARE_EUID_TO_SUID: u32 = 17; +pub const AUDIT_COMPARE_EUID_TO_FSUID: u32 = 18; +pub const AUDIT_COMPARE_SUID_TO_FSUID: u32 = 19; +pub const AUDIT_COMPARE_GID_TO_EGID: u32 = 20; +pub const AUDIT_COMPARE_GID_TO_FSGID: u32 = 21; +pub const AUDIT_COMPARE_GID_TO_SGID: u32 = 22; +pub const AUDIT_COMPARE_EGID_TO_FSGID: u32 = 23; +pub const AUDIT_COMPARE_EGID_TO_SGID: u32 = 24; +pub const AUDIT_COMPARE_SGID_TO_FSGID: u32 = 25; +pub const AUDIT_MAX_FIELD_COMPARE: u32 = 25; +pub const AUDIT_PID: u32 = 0; +pub const AUDIT_UID: u32 = 1; +pub const AUDIT_EUID: u32 = 2; +pub const AUDIT_SUID: u32 = 3; +pub const AUDIT_FSUID: u32 = 4; +pub const AUDIT_GID: u32 = 5; +pub const AUDIT_EGID: u32 = 6; +pub const AUDIT_SGID: u32 = 7; +pub const AUDIT_FSGID: u32 = 8; +pub const AUDIT_LOGINUID: u32 = 9; +pub const AUDIT_PERS: u32 = 10; +pub const AUDIT_ARCH: u32 = 11; +pub const AUDIT_MSGTYPE: u32 = 12; +pub const AUDIT_SUBJ_USER: u32 = 13; +pub const AUDIT_SUBJ_ROLE: u32 = 14; +pub const AUDIT_SUBJ_TYPE: u32 = 15; +pub const AUDIT_SUBJ_SEN: u32 = 16; +pub const AUDIT_SUBJ_CLR: u32 = 17; +pub const AUDIT_PPID: u32 = 18; +pub const AUDIT_OBJ_USER: u32 = 19; +pub const AUDIT_OBJ_ROLE: u32 = 20; +pub const AUDIT_OBJ_TYPE: u32 = 21; +pub const AUDIT_OBJ_LEV_LOW: u32 = 22; +pub const AUDIT_OBJ_LEV_HIGH: u32 = 23; +pub const AUDIT_LOGINUID_SET: u32 = 24; +pub const AUDIT_SESSIONID: u32 = 25; +pub const AUDIT_FSTYPE: u32 = 26; +pub const AUDIT_DEVMAJOR: u32 = 100; +pub const AUDIT_DEVMINOR: u32 = 101; +pub const AUDIT_INODE: u32 = 102; +pub const AUDIT_EXIT: u32 = 103; +pub const AUDIT_SUCCESS: u32 = 104; +pub const AUDIT_WATCH: u32 = 105; +pub const AUDIT_PERM: u32 = 106; +pub const AUDIT_DIR: u32 = 107; +pub const AUDIT_FILETYPE: u32 = 108; +pub const AUDIT_OBJ_UID: u32 = 109; +pub const AUDIT_OBJ_GID: u32 = 110; +pub const AUDIT_FIELD_COMPARE: u32 = 111; +pub const AUDIT_EXE: u32 = 112; +pub const AUDIT_SADDR_FAM: u32 = 113; +pub const AUDIT_ARG0: u32 = 200; +pub const AUDIT_ARG1: u32 = 201; +pub const AUDIT_ARG2: u32 = 202; +pub const AUDIT_ARG3: u32 = 203; +pub const AUDIT_FILTERKEY: u32 = 210; +pub const AUDIT_NEGATE: u32 = 2147483648; +pub const AUDIT_BIT_MASK: u32 = 134217728; +pub const AUDIT_LESS_THAN: u32 = 268435456; +pub const AUDIT_GREATER_THAN: u32 = 536870912; +pub const AUDIT_NOT_EQUAL: u32 = 805306368; +pub const AUDIT_EQUAL: u32 = 1073741824; +pub const AUDIT_BIT_TEST: u32 = 1207959552; +pub const AUDIT_LESS_THAN_OR_EQUAL: u32 = 1342177280; +pub const AUDIT_GREATER_THAN_OR_EQUAL: u32 = 1610612736; +pub const AUDIT_OPERATORS: u32 = 2013265920; +pub const AUDIT_STATUS_ENABLED: u32 = 1; +pub const AUDIT_STATUS_FAILURE: u32 = 2; +pub const AUDIT_STATUS_PID: u32 = 4; +pub const AUDIT_STATUS_RATE_LIMIT: u32 = 8; +pub const AUDIT_STATUS_BACKLOG_LIMIT: u32 = 16; +pub const AUDIT_STATUS_BACKLOG_WAIT_TIME: u32 = 32; +pub const AUDIT_STATUS_LOST: u32 = 64; +pub const AUDIT_STATUS_BACKLOG_WAIT_TIME_ACTUAL: u32 = 128; +pub const AUDIT_FEATURE_BITMAP_BACKLOG_LIMIT: u32 = 1; +pub const AUDIT_FEATURE_BITMAP_BACKLOG_WAIT_TIME: u32 = 2; +pub const AUDIT_FEATURE_BITMAP_EXECUTABLE_PATH: u32 = 4; +pub const AUDIT_FEATURE_BITMAP_EXCLUDE_EXTEND: u32 = 8; +pub const AUDIT_FEATURE_BITMAP_SESSIONID_FILTER: u32 = 16; +pub const AUDIT_FEATURE_BITMAP_LOST_RESET: u32 = 32; +pub const AUDIT_FEATURE_BITMAP_FILTER_FS: u32 = 64; +pub const AUDIT_FEATURE_BITMAP_ALL: u32 = 127; +pub const AUDIT_VERSION_LATEST: u32 = 127; +pub const AUDIT_VERSION_BACKLOG_LIMIT: u32 = 1; +pub const AUDIT_VERSION_BACKLOG_WAIT_TIME: u32 = 2; +pub const AUDIT_FAIL_SILENT: u32 = 0; +pub const AUDIT_FAIL_PRINTK: u32 = 1; +pub const AUDIT_FAIL_PANIC: u32 = 2; +pub const __AUDIT_ARCH_CONVENTION_MASK: u32 = 805306368; +pub const __AUDIT_ARCH_CONVENTION_MIPS64_N32: u32 = 536870912; +pub const __AUDIT_ARCH_64BIT: u32 = 2147483648; +pub const __AUDIT_ARCH_LE: u32 = 1073741824; +pub const AUDIT_ARCH_AARCH64: u32 = 3221225655; +pub const AUDIT_ARCH_ALPHA: u32 = 3221262374; +pub const AUDIT_ARCH_ARCOMPACT: u32 = 1073741917; +pub const AUDIT_ARCH_ARCOMPACTBE: u32 = 93; +pub const AUDIT_ARCH_ARCV2: u32 = 1073742019; +pub const AUDIT_ARCH_ARCV2BE: u32 = 195; +pub const AUDIT_ARCH_ARM: u32 = 1073741864; +pub const AUDIT_ARCH_ARMEB: u32 = 40; +pub const AUDIT_ARCH_C6X: u32 = 1073741964; +pub const AUDIT_ARCH_C6XBE: u32 = 140; +pub const AUDIT_ARCH_CRIS: u32 = 1073741900; +pub const AUDIT_ARCH_CSKY: u32 = 1073742076; +pub const AUDIT_ARCH_FRV: u32 = 21569; +pub const AUDIT_ARCH_H8300: u32 = 46; +pub const AUDIT_ARCH_HEXAGON: u32 = 164; +pub const AUDIT_ARCH_I386: u32 = 1073741827; +pub const AUDIT_ARCH_IA64: u32 = 3221225522; +pub const AUDIT_ARCH_M32R: u32 = 88; +pub const AUDIT_ARCH_M68K: u32 = 4; +pub const AUDIT_ARCH_MICROBLAZE: u32 = 189; +pub const AUDIT_ARCH_MIPS: u32 = 8; +pub const AUDIT_ARCH_MIPSEL: u32 = 1073741832; +pub const AUDIT_ARCH_MIPS64: u32 = 2147483656; +pub const AUDIT_ARCH_MIPS64N32: u32 = 2684354568; +pub const AUDIT_ARCH_MIPSEL64: u32 = 3221225480; +pub const AUDIT_ARCH_MIPSEL64N32: u32 = 3758096392; +pub const AUDIT_ARCH_NDS32: u32 = 1073741991; +pub const AUDIT_ARCH_NDS32BE: u32 = 167; +pub const AUDIT_ARCH_NIOS2: u32 = 1073741937; +pub const AUDIT_ARCH_OPENRISC: u32 = 92; +pub const AUDIT_ARCH_PARISC: u32 = 15; +pub const AUDIT_ARCH_PARISC64: u32 = 2147483663; +pub const AUDIT_ARCH_PPC: u32 = 20; +pub const AUDIT_ARCH_PPC64: u32 = 2147483669; +pub const AUDIT_ARCH_PPC64LE: u32 = 3221225493; +pub const AUDIT_ARCH_RISCV32: u32 = 1073742067; +pub const AUDIT_ARCH_RISCV64: u32 = 3221225715; +pub const AUDIT_ARCH_S390: u32 = 22; +pub const AUDIT_ARCH_S390X: u32 = 2147483670; +pub const AUDIT_ARCH_SH: u32 = 42; +pub const AUDIT_ARCH_SHEL: u32 = 1073741866; +pub const AUDIT_ARCH_SH64: u32 = 2147483690; +pub const AUDIT_ARCH_SHEL64: u32 = 3221225514; +pub const AUDIT_ARCH_SPARC: u32 = 2; +pub const AUDIT_ARCH_SPARC64: u32 = 2147483691; +pub const AUDIT_ARCH_TILEGX: u32 = 3221225663; +pub const AUDIT_ARCH_TILEGX32: u32 = 1073742015; +pub const AUDIT_ARCH_TILEPRO: u32 = 1073742012; +pub const AUDIT_ARCH_UNICORE: u32 = 1073741934; +pub const AUDIT_ARCH_X86_64: u32 = 3221225534; +pub const AUDIT_ARCH_XTENSA: u32 = 94; +pub const AUDIT_ARCH_LOONGARCH32: u32 = 1073742082; +pub const AUDIT_ARCH_LOONGARCH64: u32 = 3221225730; +pub const AUDIT_PERM_EXEC: u32 = 1; +pub const AUDIT_PERM_WRITE: u32 = 2; +pub const AUDIT_PERM_READ: u32 = 4; +pub const AUDIT_PERM_ATTR: u32 = 8; +pub const AUDIT_MESSAGE_TEXT_MAX: u32 = 8560; +pub const AUDIT_FEATURE_VERSION: u32 = 1; +pub const AUDIT_FEATURE_ONLY_UNSET_LOGINUID: u32 = 0; +pub const AUDIT_FEATURE_LOGINUID_IMMUTABLE: u32 = 1; +pub const AUDIT_LAST_FEATURE: u32 = 1; +pub const BPF_LD: u32 = 0; +pub const BPF_LDX: u32 = 1; +pub const BPF_ST: u32 = 2; +pub const BPF_STX: u32 = 3; +pub const BPF_ALU: u32 = 4; +pub const BPF_JMP: u32 = 5; +pub const BPF_RET: u32 = 6; +pub const BPF_MISC: u32 = 7; +pub const BPF_W: u32 = 0; +pub const BPF_H: u32 = 8; +pub const BPF_B: u32 = 16; +pub const BPF_IMM: u32 = 0; +pub const BPF_ABS: u32 = 32; +pub const BPF_IND: u32 = 64; +pub const BPF_MEM: u32 = 96; +pub const BPF_LEN: u32 = 128; +pub const BPF_MSH: u32 = 160; +pub const BPF_ADD: u32 = 0; +pub const BPF_SUB: u32 = 16; +pub const BPF_MUL: u32 = 32; +pub const BPF_DIV: u32 = 48; +pub const BPF_OR: u32 = 64; +pub const BPF_AND: u32 = 80; +pub const BPF_LSH: u32 = 96; +pub const BPF_RSH: u32 = 112; +pub const BPF_NEG: u32 = 128; +pub const BPF_MOD: u32 = 144; +pub const BPF_XOR: u32 = 160; +pub const BPF_JA: u32 = 0; +pub const BPF_JEQ: u32 = 16; +pub const BPF_JGT: u32 = 32; +pub const BPF_JGE: u32 = 48; +pub const BPF_JSET: u32 = 64; +pub const BPF_K: u32 = 0; +pub const BPF_X: u32 = 8; +pub const BPF_MAXINSNS: u32 = 4096; +pub const BPF_MAJOR_VERSION: u32 = 1; +pub const BPF_MINOR_VERSION: u32 = 1; +pub const BPF_A: u32 = 16; +pub const BPF_TAX: u32 = 0; +pub const BPF_TXA: u32 = 128; +pub const BPF_MEMWORDS: u32 = 16; +pub const SKF_AD_OFF: i32 = -4096; +pub const SKF_AD_PROTOCOL: u32 = 0; +pub const SKF_AD_PKTTYPE: u32 = 4; +pub const SKF_AD_IFINDEX: u32 = 8; +pub const SKF_AD_NLATTR: u32 = 12; +pub const SKF_AD_NLATTR_NEST: u32 = 16; +pub const SKF_AD_MARK: u32 = 20; +pub const SKF_AD_QUEUE: u32 = 24; +pub const SKF_AD_HATYPE: u32 = 28; +pub const SKF_AD_RXHASH: u32 = 32; +pub const SKF_AD_CPU: u32 = 36; +pub const SKF_AD_ALU_XOR_X: u32 = 40; +pub const SKF_AD_VLAN_TAG: u32 = 44; +pub const SKF_AD_VLAN_TAG_PRESENT: u32 = 48; +pub const SKF_AD_PAY_OFFSET: u32 = 52; +pub const SKF_AD_RANDOM: u32 = 56; +pub const SKF_AD_VLAN_TPID: u32 = 60; +pub const SKF_AD_MAX: u32 = 64; +pub const SKF_NET_OFF: i32 = -1048576; +pub const SKF_LL_OFF: i32 = -2097152; +pub const BPF_NET_OFF: i32 = -1048576; +pub const BPF_LL_OFF: i32 = -2097152; +pub const PTRACE_TRACEME: u32 = 0; +pub const PTRACE_PEEKTEXT: u32 = 1; +pub const PTRACE_PEEKDATA: u32 = 2; +pub const PTRACE_PEEKUSR: u32 = 3; +pub const PTRACE_POKETEXT: u32 = 4; +pub const PTRACE_POKEDATA: u32 = 5; +pub const PTRACE_POKEUSR: u32 = 6; +pub const PTRACE_CONT: u32 = 7; +pub const PTRACE_KILL: u32 = 8; +pub const PTRACE_SINGLESTEP: u32 = 9; +pub const PTRACE_ATTACH: u32 = 16; +pub const PTRACE_DETACH: u32 = 17; +pub const PTRACE_SYSCALL: u32 = 24; +pub const PTRACE_SETOPTIONS: u32 = 16896; +pub const PTRACE_GETEVENTMSG: u32 = 16897; +pub const PTRACE_GETSIGINFO: u32 = 16898; +pub const PTRACE_SETSIGINFO: u32 = 16899; +pub const PTRACE_GETREGSET: u32 = 16900; +pub const PTRACE_SETREGSET: u32 = 16901; +pub const PTRACE_SEIZE: u32 = 16902; +pub const PTRACE_INTERRUPT: u32 = 16903; +pub const PTRACE_LISTEN: u32 = 16904; +pub const PTRACE_PEEKSIGINFO: u32 = 16905; +pub const PTRACE_GETSIGMASK: u32 = 16906; +pub const PTRACE_SETSIGMASK: u32 = 16907; +pub const PTRACE_SECCOMP_GET_FILTER: u32 = 16908; +pub const PTRACE_SECCOMP_GET_METADATA: u32 = 16909; +pub const PTRACE_GET_SYSCALL_INFO: u32 = 16910; +pub const PTRACE_SET_SYSCALL_INFO: u32 = 16914; +pub const PTRACE_SYSCALL_INFO_NONE: u32 = 0; +pub const PTRACE_SYSCALL_INFO_ENTRY: u32 = 1; +pub const PTRACE_SYSCALL_INFO_EXIT: u32 = 2; +pub const PTRACE_SYSCALL_INFO_SECCOMP: u32 = 3; +pub const PTRACE_GET_RSEQ_CONFIGURATION: u32 = 16911; +pub const PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG: u32 = 16912; +pub const PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG: u32 = 16913; +pub const PTRACE_EVENTMSG_SYSCALL_ENTRY: u32 = 1; +pub const PTRACE_EVENTMSG_SYSCALL_EXIT: u32 = 2; +pub const PTRACE_PEEKSIGINFO_SHARED: u32 = 1; +pub const PTRACE_EVENT_FORK: u32 = 1; +pub const PTRACE_EVENT_VFORK: u32 = 2; +pub const PTRACE_EVENT_CLONE: u32 = 3; +pub const PTRACE_EVENT_EXEC: u32 = 4; +pub const PTRACE_EVENT_VFORK_DONE: u32 = 5; +pub const PTRACE_EVENT_EXIT: u32 = 6; +pub const PTRACE_EVENT_SECCOMP: u32 = 7; +pub const PTRACE_EVENT_STOP: u32 = 128; +pub const PTRACE_O_TRACESYSGOOD: u32 = 1; +pub const PTRACE_O_TRACEFORK: u32 = 2; +pub const PTRACE_O_TRACEVFORK: u32 = 4; +pub const PTRACE_O_TRACECLONE: u32 = 8; +pub const PTRACE_O_TRACEEXEC: u32 = 16; +pub const PTRACE_O_TRACEVFORKDONE: u32 = 32; +pub const PTRACE_O_TRACEEXIT: u32 = 64; +pub const PTRACE_O_TRACESECCOMP: u32 = 128; +pub const PTRACE_O_EXITKILL: u32 = 1048576; +pub const PTRACE_O_SUSPEND_SECCOMP: u32 = 2097152; +pub const PTRACE_O_MASK: u32 = 3145983; +pub const PT_REGS_MAGIC: u32 = 1470917632; +pub const UREG_G0: u32 = 0; +pub const UREG_G1: u32 = 1; +pub const UREG_G2: u32 = 2; +pub const UREG_G3: u32 = 3; +pub const UREG_G4: u32 = 4; +pub const UREG_G5: u32 = 5; +pub const UREG_G6: u32 = 6; +pub const UREG_G7: u32 = 7; +pub const UREG_I0: u32 = 8; +pub const UREG_I1: u32 = 9; +pub const UREG_I2: u32 = 10; +pub const UREG_I3: u32 = 11; +pub const UREG_I4: u32 = 12; +pub const UREG_I5: u32 = 13; +pub const UREG_I6: u32 = 14; +pub const UREG_I7: u32 = 15; +pub const UREG_FP: u32 = 14; +pub const UREG_RETPC: u32 = 15; +pub const PT_V9_G0: u32 = 0; +pub const PT_V9_G1: u32 = 8; +pub const PT_V9_G2: u32 = 16; +pub const PT_V9_G3: u32 = 24; +pub const PT_V9_G4: u32 = 32; +pub const PT_V9_G5: u32 = 40; +pub const PT_V9_G6: u32 = 48; +pub const PT_V9_G7: u32 = 56; +pub const PT_V9_I0: u32 = 64; +pub const PT_V9_I1: u32 = 72; +pub const PT_V9_I2: u32 = 80; +pub const PT_V9_I3: u32 = 88; +pub const PT_V9_I4: u32 = 96; +pub const PT_V9_I5: u32 = 104; +pub const PT_V9_I6: u32 = 112; +pub const PT_V9_FP: u32 = 112; +pub const PT_V9_I7: u32 = 120; +pub const PT_V9_TSTATE: u32 = 128; +pub const PT_V9_TPC: u32 = 136; +pub const PT_V9_TNPC: u32 = 144; +pub const PT_V9_Y: u32 = 152; +pub const PT_V9_MAGIC: u32 = 156; +pub const PT_TSTATE: u32 = 128; +pub const PT_TPC: u32 = 136; +pub const PT_TNPC: u32 = 144; +pub const PT_PSR: u32 = 0; +pub const PT_PC: u32 = 4; +pub const PT_NPC: u32 = 8; +pub const PT_Y: u32 = 12; +pub const PT_G0: u32 = 16; +pub const PT_WIM: u32 = 16; +pub const PT_G1: u32 = 20; +pub const PT_G2: u32 = 24; +pub const PT_G3: u32 = 28; +pub const PT_G4: u32 = 32; +pub const PT_G5: u32 = 36; +pub const PT_G6: u32 = 40; +pub const PT_G7: u32 = 44; +pub const PT_I0: u32 = 48; +pub const PT_I1: u32 = 52; +pub const PT_I2: u32 = 56; +pub const PT_I3: u32 = 60; +pub const PT_I4: u32 = 64; +pub const PT_I5: u32 = 68; +pub const PT_I6: u32 = 72; +pub const PT_FP: u32 = 72; +pub const PT_I7: u32 = 76; +pub const RW_V9_L0: u32 = 0; +pub const RW_V9_L1: u32 = 8; +pub const RW_V9_L2: u32 = 16; +pub const RW_V9_L3: u32 = 24; +pub const RW_V9_L4: u32 = 32; +pub const RW_V9_L5: u32 = 40; +pub const RW_V9_L6: u32 = 48; +pub const RW_V9_L7: u32 = 56; +pub const RW_V9_I0: u32 = 64; +pub const RW_V9_I1: u32 = 72; +pub const RW_V9_I2: u32 = 80; +pub const RW_V9_I3: u32 = 88; +pub const RW_V9_I4: u32 = 96; +pub const RW_V9_I5: u32 = 104; +pub const RW_V9_I6: u32 = 112; +pub const RW_V9_I7: u32 = 120; +pub const RW_L0: u32 = 0; +pub const RW_L1: u32 = 4; +pub const RW_L2: u32 = 8; +pub const RW_L3: u32 = 12; +pub const RW_L4: u32 = 16; +pub const RW_L5: u32 = 20; +pub const RW_L6: u32 = 24; +pub const RW_L7: u32 = 28; +pub const RW_I0: u32 = 32; +pub const RW_I1: u32 = 36; +pub const RW_I2: u32 = 40; +pub const RW_I3: u32 = 44; +pub const RW_I4: u32 = 48; +pub const RW_I5: u32 = 52; +pub const RW_I6: u32 = 56; +pub const RW_I7: u32 = 60; +pub const SF_V9_L0: u32 = 0; +pub const SF_V9_L1: u32 = 8; +pub const SF_V9_L2: u32 = 16; +pub const SF_V9_L3: u32 = 24; +pub const SF_V9_L4: u32 = 32; +pub const SF_V9_L5: u32 = 40; +pub const SF_V9_L6: u32 = 48; +pub const SF_V9_L7: u32 = 56; +pub const SF_V9_I0: u32 = 64; +pub const SF_V9_I1: u32 = 72; +pub const SF_V9_I2: u32 = 80; +pub const SF_V9_I3: u32 = 88; +pub const SF_V9_I4: u32 = 96; +pub const SF_V9_I5: u32 = 104; +pub const SF_V9_FP: u32 = 112; +pub const SF_V9_PC: u32 = 120; +pub const SF_V9_RETP: u32 = 128; +pub const SF_V9_XARG0: u32 = 136; +pub const SF_V9_XARG1: u32 = 144; +pub const SF_V9_XARG2: u32 = 152; +pub const SF_V9_XARG3: u32 = 160; +pub const SF_V9_XARG4: u32 = 168; +pub const SF_V9_XARG5: u32 = 176; +pub const SF_V9_XXARG: u32 = 184; +pub const SF_L0: u32 = 0; +pub const SF_L1: u32 = 4; +pub const SF_L2: u32 = 8; +pub const SF_L3: u32 = 12; +pub const SF_L4: u32 = 16; +pub const SF_L5: u32 = 20; +pub const SF_L6: u32 = 24; +pub const SF_L7: u32 = 28; +pub const SF_I0: u32 = 32; +pub const SF_I1: u32 = 36; +pub const SF_I2: u32 = 40; +pub const SF_I3: u32 = 44; +pub const SF_I4: u32 = 48; +pub const SF_I5: u32 = 52; +pub const SF_FP: u32 = 56; +pub const SF_PC: u32 = 60; +pub const SF_RETP: u32 = 64; +pub const SF_XARG0: u32 = 68; +pub const SF_XARG1: u32 = 72; +pub const SF_XARG2: u32 = 76; +pub const SF_XARG3: u32 = 80; +pub const SF_XARG4: u32 = 84; +pub const SF_XARG5: u32 = 88; +pub const SF_XXARG: u32 = 92; +pub const PTRACE_SPARC_DETACH: u32 = 11; +pub const PTRACE_GETREGS: u32 = 12; +pub const PTRACE_SETREGS: u32 = 13; +pub const PTRACE_GETFPREGS: u32 = 14; +pub const PTRACE_SETFPREGS: u32 = 15; +pub const PTRACE_READDATA: u32 = 16; +pub const PTRACE_WRITEDATA: u32 = 17; +pub const PTRACE_READTEXT: u32 = 18; +pub const PTRACE_WRITETEXT: u32 = 19; +pub const PTRACE_GETFPAREGS: u32 = 20; +pub const PTRACE_SETFPAREGS: u32 = 21; +pub const PTRACE_GETREGS64: u32 = 22; +pub const PTRACE_SETREGS64: u32 = 23; +pub const PTRACE_GETFPREGS64: u32 = 25; +pub const PTRACE_SETFPREGS64: u32 = 26; +pub const SECCOMP_MODE_DISABLED: u32 = 0; +pub const SECCOMP_MODE_STRICT: u32 = 1; +pub const SECCOMP_MODE_FILTER: u32 = 2; +pub const SECCOMP_SET_MODE_STRICT: u32 = 0; +pub const SECCOMP_SET_MODE_FILTER: u32 = 1; +pub const SECCOMP_GET_ACTION_AVAIL: u32 = 2; +pub const SECCOMP_GET_NOTIF_SIZES: u32 = 3; +pub const SECCOMP_FILTER_FLAG_TSYNC: u32 = 1; +pub const SECCOMP_FILTER_FLAG_LOG: u32 = 2; +pub const SECCOMP_FILTER_FLAG_SPEC_ALLOW: u32 = 4; +pub const SECCOMP_FILTER_FLAG_NEW_LISTENER: u32 = 8; +pub const SECCOMP_FILTER_FLAG_TSYNC_ESRCH: u32 = 16; +pub const SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV: u32 = 32; +pub const SECCOMP_RET_KILL_PROCESS: u32 = 2147483648; +pub const SECCOMP_RET_KILL_THREAD: u32 = 0; +pub const SECCOMP_RET_KILL: u32 = 0; +pub const SECCOMP_RET_TRAP: u32 = 196608; +pub const SECCOMP_RET_ERRNO: u32 = 327680; +pub const SECCOMP_RET_USER_NOTIF: u32 = 2143289344; +pub const SECCOMP_RET_TRACE: u32 = 2146435072; +pub const SECCOMP_RET_LOG: u32 = 2147221504; +pub const SECCOMP_RET_ALLOW: u32 = 2147418112; +pub const SECCOMP_RET_ACTION_FULL: u32 = 4294901760; +pub const SECCOMP_RET_ACTION: u32 = 2147418112; +pub const SECCOMP_RET_DATA: u32 = 65535; +pub const SECCOMP_USER_NOTIF_FLAG_CONTINUE: u32 = 1; +pub const SECCOMP_USER_NOTIF_FD_SYNC_WAKE_UP: u32 = 1; +pub const SECCOMP_ADDFD_FLAG_SETFD: u32 = 1; +pub const SECCOMP_ADDFD_FLAG_SEND: u32 = 2; +pub const SECCOMP_IOC_MAGIC: u8 = 33u8; +pub const Audit_equal: _bindgen_ty_1 = _bindgen_ty_1::Audit_equal; +pub const Audit_not_equal: _bindgen_ty_1 = _bindgen_ty_1::Audit_not_equal; +pub const Audit_bitmask: _bindgen_ty_1 = _bindgen_ty_1::Audit_bitmask; +pub const Audit_bittest: _bindgen_ty_1 = _bindgen_ty_1::Audit_bittest; +pub const Audit_lt: _bindgen_ty_1 = _bindgen_ty_1::Audit_lt; +pub const Audit_gt: _bindgen_ty_1 = _bindgen_ty_1::Audit_gt; +pub const Audit_le: _bindgen_ty_1 = _bindgen_ty_1::Audit_le; +pub const Audit_ge: _bindgen_ty_1 = _bindgen_ty_1::Audit_ge; +pub const Audit_bad: _bindgen_ty_1 = _bindgen_ty_1::Audit_bad; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +Audit_equal = 0, +Audit_not_equal = 1, +Audit_bitmask = 2, +Audit_bittest = 3, +Audit_lt = 4, +Audit_gt = 5, +Audit_le = 6, +Audit_ge = 7, +Audit_bad = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum audit_nlgrps { +AUDIT_NLGRP_NONE = 0, +AUDIT_NLGRP_READLOG = 1, +__AUDIT_NLGRP_MAX = 2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union audit_status__bindgen_ty_1 { +pub version: __u32, +pub feature_bitmap: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ptrace_syscall_info__bindgen_ty_1 { +pub entry: ptrace_syscall_info__bindgen_ty_1__bindgen_ty_1, +pub exit: ptrace_syscall_info__bindgen_ty_1__bindgen_ty_2, +pub seccomp: ptrace_syscall_info__bindgen_ty_1__bindgen_ty_3, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/system.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/system.rs new file mode 100644 index 0000000000000000000000000000000000000000..8e9b4988946c3a9132ef7759b1e55ee5249fb4a3 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/system.rs @@ -0,0 +1,138 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_suseconds_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_suseconds_t, +} +#[repr(C)] +#[derive(Debug)] +pub struct sysinfo { +pub uptime: __kernel_long_t, +pub loads: [__kernel_ulong_t; 3usize], +pub totalram: __kernel_ulong_t, +pub freeram: __kernel_ulong_t, +pub sharedram: __kernel_ulong_t, +pub bufferram: __kernel_ulong_t, +pub totalswap: __kernel_ulong_t, +pub freeswap: __kernel_ulong_t, +pub procs: __u16, +pub pad: __u16, +pub totalhigh: __kernel_ulong_t, +pub freehigh: __kernel_ulong_t, +pub mem_unit: __u32, +pub _f: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct oldold_utsname { +pub sysname: [crate::ctypes::c_char; 9usize], +pub nodename: [crate::ctypes::c_char; 9usize], +pub release: [crate::ctypes::c_char; 9usize], +pub version: [crate::ctypes::c_char; 9usize], +pub machine: [crate::ctypes::c_char; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct old_utsname { +pub sysname: [crate::ctypes::c_char; 65usize], +pub nodename: [crate::ctypes::c_char; 65usize], +pub release: [crate::ctypes::c_char; 65usize], +pub version: [crate::ctypes::c_char; 65usize], +pub machine: [crate::ctypes::c_char; 65usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct new_utsname { +pub sysname: [crate::ctypes::c_char; 65usize], +pub nodename: [crate::ctypes::c_char; 65usize], +pub release: [crate::ctypes::c_char; 65usize], +pub version: [crate::ctypes::c_char; 65usize], +pub machine: [crate::ctypes::c_char; 65usize], +pub domainname: [crate::ctypes::c_char; 65usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const SI_LOAD_SHIFT: u32 = 16; +pub const __OLD_UTS_LEN: u32 = 8; +pub const __NEW_UTS_LEN: u32 = 64; +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/xdp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/xdp.rs new file mode 100644 index 0000000000000000000000000000000000000000..50b99dd202cba462277deed02e1718efa41262b2 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/sparc64/xdp.rs @@ -0,0 +1,199 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_suseconds_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_suseconds_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_xdp { +pub sxdp_family: __u16, +pub sxdp_flags: __u16, +pub sxdp_ifindex: __u32, +pub sxdp_queue_id: __u32, +pub sxdp_shared_umem_fd: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_ring_offset { +pub producer: __u64, +pub consumer: __u64, +pub desc: __u64, +pub flags: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_mmap_offsets { +pub rx: xdp_ring_offset, +pub tx: xdp_ring_offset, +pub fr: xdp_ring_offset, +pub cr: xdp_ring_offset, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_umem_reg { +pub addr: __u64, +pub len: __u64, +pub chunk_size: __u32, +pub headroom: __u32, +pub flags: __u32, +pub tx_metadata_len: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_statistics { +pub rx_dropped: __u64, +pub rx_invalid_descs: __u64, +pub tx_invalid_descs: __u64, +pub rx_ring_full: __u64, +pub rx_fill_ring_empty_descs: __u64, +pub tx_ring_empty_descs: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_options { +pub flags: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct xsk_tx_metadata { +pub flags: __u64, +pub __bindgen_anon_1: xsk_tx_metadata__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xsk_tx_metadata__bindgen_ty_1__bindgen_ty_1 { +pub csum_start: __u16, +pub csum_offset: __u16, +pub launch_time: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xsk_tx_metadata__bindgen_ty_1__bindgen_ty_2 { +pub tx_timestamp: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_desc { +pub addr: __u64, +pub len: __u32, +pub options: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_ring_offset_v1 { +pub producer: __u64, +pub consumer: __u64, +pub desc: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_mmap_offsets_v1 { +pub rx: xdp_ring_offset_v1, +pub tx: xdp_ring_offset_v1, +pub fr: xdp_ring_offset_v1, +pub cr: xdp_ring_offset_v1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_umem_reg_v1 { +pub addr: __u64, +pub len: __u64, +pub chunk_size: __u32, +pub headroom: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_statistics_v1 { +pub rx_dropped: __u64, +pub rx_invalid_descs: __u64, +pub tx_invalid_descs: __u64, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const XDP_SHARED_UMEM: u32 = 1; +pub const XDP_COPY: u32 = 2; +pub const XDP_ZEROCOPY: u32 = 4; +pub const XDP_USE_NEED_WAKEUP: u32 = 8; +pub const XDP_USE_SG: u32 = 16; +pub const XDP_UMEM_UNALIGNED_CHUNK_FLAG: u32 = 1; +pub const XDP_UMEM_TX_SW_CSUM: u32 = 2; +pub const XDP_UMEM_TX_METADATA_LEN: u32 = 4; +pub const XDP_RING_NEED_WAKEUP: u32 = 1; +pub const XDP_MMAP_OFFSETS: u32 = 1; +pub const XDP_RX_RING: u32 = 2; +pub const XDP_TX_RING: u32 = 3; +pub const XDP_UMEM_REG: u32 = 4; +pub const XDP_UMEM_FILL_RING: u32 = 5; +pub const XDP_UMEM_COMPLETION_RING: u32 = 6; +pub const XDP_STATISTICS: u32 = 7; +pub const XDP_OPTIONS: u32 = 8; +pub const XDP_OPTIONS_ZEROCOPY: u32 = 1; +pub const XDP_PGOFF_RX_RING: u32 = 0; +pub const XDP_PGOFF_TX_RING: u32 = 2147483648; +pub const XDP_UMEM_PGOFF_FILL_RING: u64 = 4294967296; +pub const XDP_UMEM_PGOFF_COMPLETION_RING: u64 = 6442450944; +pub const XSK_UNALIGNED_BUF_OFFSET_SHIFT: u32 = 48; +pub const XSK_UNALIGNED_BUF_ADDR_MASK: u64 = 281474976710655; +pub const XDP_TXMD_FLAGS_TIMESTAMP: u32 = 1; +pub const XDP_TXMD_FLAGS_CHECKSUM: u32 = 2; +pub const XDP_TXMD_FLAGS_LAUNCH_TIME: u32 = 4; +pub const XDP_PKT_CONTD: u32 = 1; +pub const XDP_TX_METADATA: u32 = 2; +#[repr(C)] +#[derive(Copy, Clone)] +pub union xsk_tx_metadata__bindgen_ty_1 { +pub request: xsk_tx_metadata__bindgen_ty_1__bindgen_ty_1, +pub completion: xsk_tx_metadata__bindgen_ty_1__bindgen_ty_2, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/auxvec.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/auxvec.rs new file mode 100644 index 0000000000000000000000000000000000000000..1e56e618631f4b013b5ae4c5859c6025ef428e81 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/auxvec.rs @@ -0,0 +1,32 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_VECTOR_SIZE_ARCH: u32 = 3; +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_PLATFORM: u32 = 15; +pub const AT_HWCAP: u32 = 16; +pub const AT_CLKTCK: u32 = 17; +pub const AT_SECURE: u32 = 23; +pub const AT_BASE_PLATFORM: u32 = 24; +pub const AT_RANDOM: u32 = 25; +pub const AT_HWCAP2: u32 = 26; +pub const AT_RSEQ_FEATURE_SIZE: u32 = 27; +pub const AT_RSEQ_ALIGN: u32 = 28; +pub const AT_HWCAP3: u32 = 29; +pub const AT_HWCAP4: u32 = 30; +pub const AT_EXECFN: u32 = 31; +pub const AT_MINSIGSTKSZ: u32 = 51; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/bootparam.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/bootparam.rs new file mode 100644 index 0000000000000000000000000000000000000000..e65038151eb6da87ac64c41a4b380481b4893961 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/bootparam.rs @@ -0,0 +1,671 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_longlong; +pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type apm_event_t = crate::ctypes::c_ushort; +pub type apm_eventinfo_t = crate::ctypes::c_ushort; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Debug)] +pub struct setup_data { +pub next: __u64, +pub type_: __u32, +pub len: __u32, +pub data: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct setup_indirect { +pub type_: __u32, +pub reserved: __u32, +pub len: __u64, +pub addr: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct boot_e820_entry { +pub addr: __u64, +pub size: __u64, +pub type_: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct jailhouse_setup_data { +pub hdr: jailhouse_setup_data__bindgen_ty_1, +pub v1: jailhouse_setup_data__bindgen_ty_2, +pub v2: jailhouse_setup_data__bindgen_ty_3, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct jailhouse_setup_data__bindgen_ty_1 { +pub version: __u16, +pub compatible_version: __u16, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct jailhouse_setup_data__bindgen_ty_2 { +pub pm_timer_address: __u16, +pub num_cpus: __u16, +pub pci_mmconfig_base: __u64, +pub tsc_khz: __u32, +pub apic_khz: __u32, +pub standard_ioapic: __u8, +pub cpu_ids: [__u8; 255usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct jailhouse_setup_data__bindgen_ty_3 { +pub flags: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct ima_setup_data { +pub addr: __u64, +pub size: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct kho_data { +pub fdt_addr: __u64, +pub fdt_size: __u64, +pub scratch_addr: __u64, +pub scratch_size: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct screen_info { +pub orig_x: __u8, +pub orig_y: __u8, +pub ext_mem_k: __u16, +pub orig_video_page: __u16, +pub orig_video_mode: __u8, +pub orig_video_cols: __u8, +pub flags: __u8, +pub unused2: __u8, +pub orig_video_ega_bx: __u16, +pub unused3: __u16, +pub orig_video_lines: __u8, +pub orig_video_isVGA: __u8, +pub orig_video_points: __u16, +pub lfb_width: __u16, +pub lfb_height: __u16, +pub lfb_depth: __u16, +pub lfb_base: __u32, +pub lfb_size: __u32, +pub cl_magic: __u16, +pub cl_offset: __u16, +pub lfb_linelength: __u16, +pub red_size: __u8, +pub red_pos: __u8, +pub green_size: __u8, +pub green_pos: __u8, +pub blue_size: __u8, +pub blue_pos: __u8, +pub rsvd_size: __u8, +pub rsvd_pos: __u8, +pub vesapm_seg: __u16, +pub vesapm_off: __u16, +pub pages: __u16, +pub vesa_attributes: __u16, +pub capabilities: __u32, +pub ext_lfb_base: __u32, +pub _reserved: [__u8; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct apm_bios_info { +pub version: __u16, +pub cseg: __u16, +pub offset: __u32, +pub cseg_16: __u16, +pub dseg: __u16, +pub flags: __u16, +pub cseg_len: __u16, +pub cseg_16_len: __u16, +pub dseg_len: __u16, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct edd_device_params { +pub length: __u16, +pub info_flags: __u16, +pub num_default_cylinders: __u32, +pub num_default_heads: __u32, +pub sectors_per_track: __u32, +pub number_of_sectors: __u64, +pub bytes_per_sector: __u16, +pub dpte_ptr: __u32, +pub key: __u16, +pub device_path_info_length: __u8, +pub reserved2: __u8, +pub reserved3: __u16, +pub host_bus_type: [__u8; 4usize], +pub interface_type: [__u8; 8usize], +pub interface_path: edd_device_params__bindgen_ty_1, +pub device_path: edd_device_params__bindgen_ty_2, +pub reserved4: __u8, +pub checksum: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct edd_device_params__bindgen_ty_1__bindgen_ty_1 { +pub base_address: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct edd_device_params__bindgen_ty_1__bindgen_ty_2 { +pub bus: __u8, +pub slot: __u8, +pub function: __u8, +pub channel: __u8, +pub reserved: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct edd_device_params__bindgen_ty_1__bindgen_ty_3 { +pub reserved: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct edd_device_params__bindgen_ty_1__bindgen_ty_4 { +pub reserved: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct edd_device_params__bindgen_ty_1__bindgen_ty_5 { +pub reserved: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct edd_device_params__bindgen_ty_1__bindgen_ty_6 { +pub reserved: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct edd_device_params__bindgen_ty_2__bindgen_ty_1 { +pub device: __u8, +pub reserved1: __u8, +pub reserved2: __u16, +pub reserved3: __u32, +pub reserved4: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct edd_device_params__bindgen_ty_2__bindgen_ty_2 { +pub device: __u8, +pub lun: __u8, +pub reserved1: __u8, +pub reserved2: __u8, +pub reserved3: __u32, +pub reserved4: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct edd_device_params__bindgen_ty_2__bindgen_ty_3 { +pub id: __u16, +pub lun: __u64, +pub reserved1: __u16, +pub reserved2: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct edd_device_params__bindgen_ty_2__bindgen_ty_4 { +pub serial_number: __u64, +pub reserved: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct edd_device_params__bindgen_ty_2__bindgen_ty_5 { +pub eui: __u64, +pub reserved: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct edd_device_params__bindgen_ty_2__bindgen_ty_6 { +pub wwid: __u64, +pub lun: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct edd_device_params__bindgen_ty_2__bindgen_ty_7 { +pub identity_tag: __u64, +pub reserved: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct edd_device_params__bindgen_ty_2__bindgen_ty_8 { +pub array_number: __u32, +pub reserved1: __u32, +pub reserved2: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct edd_device_params__bindgen_ty_2__bindgen_ty_9 { +pub device: __u8, +pub reserved1: __u8, +pub reserved2: __u16, +pub reserved3: __u32, +pub reserved4: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct edd_device_params__bindgen_ty_2__bindgen_ty_10 { +pub reserved1: __u64, +pub reserved2: __u64, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct edd_info { +pub device: __u8, +pub version: __u8, +pub interface_support: __u16, +pub legacy_max_cylinder: __u16, +pub legacy_max_head: __u8, +pub legacy_sectors_per_track: __u8, +pub params: edd_device_params, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct edd { +pub mbr_signature: [crate::ctypes::c_uint; 16usize], +pub edd_info: [edd_info; 6usize], +pub mbr_signature_nr: crate::ctypes::c_uchar, +pub edd_info_nr: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ist_info { +pub signature: __u32, +pub command: __u32, +pub event: __u32, +pub perf_level: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct edid_info { +pub dummy: [crate::ctypes::c_uchar; 128usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct setup_header { +pub setup_sects: __u8, +pub root_flags: __u16, +pub syssize: __u32, +pub ram_size: __u16, +pub vid_mode: __u16, +pub root_dev: __u16, +pub boot_flag: __u16, +pub jump: __u16, +pub header: __u32, +pub version: __u16, +pub realmode_swtch: __u32, +pub start_sys_seg: __u16, +pub kernel_version: __u16, +pub type_of_loader: __u8, +pub loadflags: __u8, +pub setup_move_size: __u16, +pub code32_start: __u32, +pub ramdisk_image: __u32, +pub ramdisk_size: __u32, +pub bootsect_kludge: __u32, +pub heap_end_ptr: __u16, +pub ext_loader_ver: __u8, +pub ext_loader_type: __u8, +pub cmd_line_ptr: __u32, +pub initrd_addr_max: __u32, +pub kernel_alignment: __u32, +pub relocatable_kernel: __u8, +pub min_alignment: __u8, +pub xloadflags: __u16, +pub cmdline_size: __u32, +pub hardware_subarch: __u32, +pub hardware_subarch_data: __u64, +pub payload_offset: __u32, +pub payload_length: __u32, +pub setup_data: __u64, +pub pref_address: __u64, +pub init_size: __u32, +pub handover_offset: __u32, +pub kernel_info_offset: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sys_desc_table { +pub length: __u16, +pub table: [__u8; 14usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct olpc_ofw_header { +pub ofw_magic: __u32, +pub ofw_version: __u32, +pub cif_handler: __u32, +pub irq_desc_table: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct efi_info { +pub efi_loader_signature: __u32, +pub efi_systab: __u32, +pub efi_memdesc_size: __u32, +pub efi_memdesc_version: __u32, +pub efi_memmap: __u32, +pub efi_memmap_size: __u32, +pub efi_systab_hi: __u32, +pub efi_memmap_hi: __u32, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct boot_params { +pub screen_info: screen_info, +pub apm_bios_info: apm_bios_info, +pub _pad2: [__u8; 4usize], +pub tboot_addr: __u64, +pub ist_info: ist_info, +pub acpi_rsdp_addr: __u64, +pub _pad3: [__u8; 8usize], +pub hd0_info: [__u8; 16usize], +pub hd1_info: [__u8; 16usize], +pub sys_desc_table: sys_desc_table, +pub olpc_ofw_header: olpc_ofw_header, +pub ext_ramdisk_image: __u32, +pub ext_ramdisk_size: __u32, +pub ext_cmd_line_ptr: __u32, +pub _pad4: [__u8; 112usize], +pub cc_blob_address: __u32, +pub edid_info: edid_info, +pub efi_info: efi_info, +pub alt_mem_k: __u32, +pub scratch: __u32, +pub e820_entries: __u8, +pub eddbuf_entries: __u8, +pub edd_mbr_sig_buf_entries: __u8, +pub kbd_status: __u8, +pub secure_boot: __u8, +pub _pad5: [__u8; 2usize], +pub sentinel: __u8, +pub _pad6: [__u8; 1usize], +pub hdr: setup_header, +pub _pad7: [__u8; 36usize], +pub edd_mbr_sig_buffer: [__u32; 16usize], +pub e820_table: [boot_e820_entry; 128usize], +pub _pad8: [__u8; 48usize], +pub eddbuf: [edd_info; 6usize], +pub _pad9: [__u8; 276usize], +} +pub const SETUP_NONE: u32 = 0; +pub const SETUP_E820_EXT: u32 = 1; +pub const SETUP_DTB: u32 = 2; +pub const SETUP_PCI: u32 = 3; +pub const SETUP_EFI: u32 = 4; +pub const SETUP_APPLE_PROPERTIES: u32 = 5; +pub const SETUP_JAILHOUSE: u32 = 6; +pub const SETUP_CC_BLOB: u32 = 7; +pub const SETUP_IMA: u32 = 8; +pub const SETUP_RNG_SEED: u32 = 9; +pub const SETUP_KEXEC_KHO: u32 = 10; +pub const SETUP_ENUM_MAX: u32 = 10; +pub const SETUP_INDIRECT: u32 = 2147483648; +pub const SETUP_TYPE_MAX: u32 = 2147483658; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const RAMDISK_IMAGE_START_MASK: u32 = 2047; +pub const RAMDISK_PROMPT_FLAG: u32 = 32768; +pub const RAMDISK_LOAD_FLAG: u32 = 16384; +pub const LOADED_HIGH: u32 = 1; +pub const KASLR_FLAG: u32 = 2; +pub const QUIET_FLAG: u32 = 32; +pub const KEEP_SEGMENTS: u32 = 64; +pub const CAN_USE_HEAP: u32 = 128; +pub const XLF_KERNEL_64: u32 = 1; +pub const XLF_CAN_BE_LOADED_ABOVE_4G: u32 = 2; +pub const XLF_EFI_HANDOVER_32: u32 = 4; +pub const XLF_EFI_HANDOVER_64: u32 = 8; +pub const XLF_EFI_KEXEC: u32 = 16; +pub const XLF_5LEVEL: u32 = 32; +pub const XLF_5LEVEL_ENABLED: u32 = 64; +pub const XLF_MEM_ENCRYPTION: u32 = 128; +pub const VIDEO_TYPE_MDA: u32 = 16; +pub const VIDEO_TYPE_CGA: u32 = 17; +pub const VIDEO_TYPE_EGAM: u32 = 32; +pub const VIDEO_TYPE_EGAC: u32 = 33; +pub const VIDEO_TYPE_VGAC: u32 = 34; +pub const VIDEO_TYPE_VLFB: u32 = 35; +pub const VIDEO_TYPE_PICA_S3: u32 = 48; +pub const VIDEO_TYPE_MIPS_G364: u32 = 49; +pub const VIDEO_TYPE_SGI: u32 = 51; +pub const VIDEO_TYPE_TGAC: u32 = 64; +pub const VIDEO_TYPE_SUN: u32 = 80; +pub const VIDEO_TYPE_SUNPCI: u32 = 81; +pub const VIDEO_TYPE_PMAC: u32 = 96; +pub const VIDEO_TYPE_EFI: u32 = 112; +pub const VIDEO_FLAGS_NOCURSOR: u32 = 1; +pub const VIDEO_CAPABILITY_SKIP_QUIRKS: u32 = 1; +pub const VIDEO_CAPABILITY_64BIT_BASE: u32 = 2; +pub const APM_STATE_READY: u32 = 0; +pub const APM_STATE_STANDBY: u32 = 1; +pub const APM_STATE_SUSPEND: u32 = 2; +pub const APM_STATE_OFF: u32 = 3; +pub const APM_STATE_BUSY: u32 = 4; +pub const APM_STATE_REJECT: u32 = 5; +pub const APM_STATE_OEM_SYS: u32 = 32; +pub const APM_STATE_OEM_DEV: u32 = 64; +pub const APM_STATE_DISABLE: u32 = 0; +pub const APM_STATE_ENABLE: u32 = 1; +pub const APM_STATE_DISENGAGE: u32 = 0; +pub const APM_STATE_ENGAGE: u32 = 1; +pub const APM_SYS_STANDBY: u32 = 1; +pub const APM_SYS_SUSPEND: u32 = 2; +pub const APM_NORMAL_RESUME: u32 = 3; +pub const APM_CRITICAL_RESUME: u32 = 4; +pub const APM_LOW_BATTERY: u32 = 5; +pub const APM_POWER_STATUS_CHANGE: u32 = 6; +pub const APM_UPDATE_TIME: u32 = 7; +pub const APM_CRITICAL_SUSPEND: u32 = 8; +pub const APM_USER_STANDBY: u32 = 9; +pub const APM_USER_SUSPEND: u32 = 10; +pub const APM_STANDBY_RESUME: u32 = 11; +pub const APM_CAPABILITY_CHANGE: u32 = 12; +pub const APM_USER_HIBERNATION: u32 = 13; +pub const APM_HIBERNATION_RESUME: u32 = 14; +pub const APM_SUCCESS: u32 = 0; +pub const APM_DISABLED: u32 = 1; +pub const APM_CONNECTED: u32 = 2; +pub const APM_NOT_CONNECTED: u32 = 3; +pub const APM_16_CONNECTED: u32 = 5; +pub const APM_16_UNSUPPORTED: u32 = 6; +pub const APM_32_CONNECTED: u32 = 7; +pub const APM_32_UNSUPPORTED: u32 = 8; +pub const APM_BAD_DEVICE: u32 = 9; +pub const APM_BAD_PARAM: u32 = 10; +pub const APM_NOT_ENGAGED: u32 = 11; +pub const APM_BAD_FUNCTION: u32 = 12; +pub const APM_RESUME_DISABLED: u32 = 13; +pub const APM_NO_ERROR: u32 = 83; +pub const APM_BAD_STATE: u32 = 96; +pub const APM_NO_EVENTS: u32 = 128; +pub const APM_NOT_PRESENT: u32 = 134; +pub const APM_DEVICE_BIOS: u32 = 0; +pub const APM_DEVICE_ALL: u32 = 1; +pub const APM_DEVICE_DISPLAY: u32 = 256; +pub const APM_DEVICE_STORAGE: u32 = 512; +pub const APM_DEVICE_PARALLEL: u32 = 768; +pub const APM_DEVICE_SERIAL: u32 = 1024; +pub const APM_DEVICE_NETWORK: u32 = 1280; +pub const APM_DEVICE_PCMCIA: u32 = 1536; +pub const APM_DEVICE_BATTERY: u32 = 32768; +pub const APM_DEVICE_OEM: u32 = 57344; +pub const APM_DEVICE_OLD_ALL: u32 = 65535; +pub const APM_DEVICE_CLASS: u32 = 255; +pub const APM_DEVICE_MASK: u32 = 65280; +pub const APM_MAX_BATTERIES: u32 = 2; +pub const APM_CAP_GLOBAL_STANDBY: u32 = 1; +pub const APM_CAP_GLOBAL_SUSPEND: u32 = 2; +pub const APM_CAP_RESUME_STANDBY_TIMER: u32 = 4; +pub const APM_CAP_RESUME_SUSPEND_TIMER: u32 = 8; +pub const APM_CAP_RESUME_STANDBY_RING: u32 = 16; +pub const APM_CAP_RESUME_SUSPEND_RING: u32 = 32; +pub const APM_CAP_RESUME_STANDBY_PCMCIA: u32 = 64; +pub const APM_CAP_RESUME_SUSPEND_PCMCIA: u32 = 128; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_SIZEBITS: u32 = 14; +pub const _IOC_DIRBITS: u32 = 2; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 16383; +pub const _IOC_DIRMASK: u32 = 3; +pub const _IOC_NRSHIFT: u32 = 0; +pub const _IOC_TYPESHIFT: u32 = 8; +pub const _IOC_SIZESHIFT: u32 = 16; +pub const _IOC_DIRSHIFT: u32 = 30; +pub const _IOC_NONE: u32 = 0; +pub const _IOC_WRITE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const IOC_IN: u32 = 1073741824; +pub const IOC_OUT: u32 = 2147483648; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 1073676288; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const EDDNR: u32 = 489; +pub const EDDBUF: u32 = 3328; +pub const EDDMAXNR: u32 = 6; +pub const EDDEXTSIZE: u32 = 8; +pub const EDDPARMSIZE: u32 = 74; +pub const CHECKEXTENSIONSPRESENT: u32 = 65; +pub const GETDEVICEPARAMETERS: u32 = 72; +pub const LEGACYGETDEVICEPARAMETERS: u32 = 8; +pub const EDDMAGIC1: u32 = 21930; +pub const EDDMAGIC2: u32 = 43605; +pub const READ_SECTORS: u32 = 2; +pub const EDD_MBR_SIG_OFFSET: u32 = 440; +pub const EDD_MBR_SIG_BUF: u32 = 656; +pub const EDD_MBR_SIG_MAX: u32 = 16; +pub const EDD_MBR_SIG_NR_BUF: u32 = 490; +pub const EDD_EXT_FIXED_DISK_ACCESS: u32 = 1; +pub const EDD_EXT_DEVICE_LOCKING_AND_EJECTING: u32 = 2; +pub const EDD_EXT_ENHANCED_DISK_DRIVE_SUPPORT: u32 = 4; +pub const EDD_EXT_64BIT_EXTENSIONS: u32 = 8; +pub const EDD_INFO_DMA_BOUNDARY_ERROR_TRANSPARENT: u32 = 1; +pub const EDD_INFO_GEOMETRY_VALID: u32 = 2; +pub const EDD_INFO_REMOVABLE: u32 = 4; +pub const EDD_INFO_WRITE_VERIFY: u32 = 8; +pub const EDD_INFO_MEDIA_CHANGE_NOTIFICATION: u32 = 16; +pub const EDD_INFO_LOCKABLE: u32 = 32; +pub const EDD_INFO_NO_MEDIA_PRESENT: u32 = 64; +pub const EDD_INFO_USE_INT13_FN50: u32 = 128; +pub const E820_MAX_ENTRIES_ZEROPAGE: u32 = 128; +pub const JAILHOUSE_SETUP_REQUIRED_VERSION: u32 = 1; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum x86_hardware_subarch { +X86_SUBARCH_PC = 0, +X86_SUBARCH_LGUEST = 1, +X86_SUBARCH_XEN = 2, +X86_SUBARCH_INTEL_MID = 3, +X86_SUBARCH_CE4100 = 4, +X86_NR_SUBARCHS = 5, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union edd_device_params__bindgen_ty_1 { +pub isa: edd_device_params__bindgen_ty_1__bindgen_ty_1, +pub pci: edd_device_params__bindgen_ty_1__bindgen_ty_2, +pub ibnd: edd_device_params__bindgen_ty_1__bindgen_ty_3, +pub xprs: edd_device_params__bindgen_ty_1__bindgen_ty_4, +pub htpt: edd_device_params__bindgen_ty_1__bindgen_ty_5, +pub unknown: edd_device_params__bindgen_ty_1__bindgen_ty_6, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union edd_device_params__bindgen_ty_2 { +pub ata: edd_device_params__bindgen_ty_2__bindgen_ty_1, +pub atapi: edd_device_params__bindgen_ty_2__bindgen_ty_2, +pub scsi: edd_device_params__bindgen_ty_2__bindgen_ty_3, +pub usb: edd_device_params__bindgen_ty_2__bindgen_ty_4, +pub i1394: edd_device_params__bindgen_ty_2__bindgen_ty_5, +pub fibre: edd_device_params__bindgen_ty_2__bindgen_ty_6, +pub i2o: edd_device_params__bindgen_ty_2__bindgen_ty_7, +pub raid: edd_device_params__bindgen_ty_2__bindgen_ty_8, +pub sata: edd_device_params__bindgen_ty_2__bindgen_ty_9, +pub unknown: edd_device_params__bindgen_ty_2__bindgen_ty_10, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/btrfs.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/btrfs.rs new file mode 100644 index 0000000000000000000000000000000000000000..4e9372fbea15795cd781842d96f8294fe49092f7 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/btrfs.rs @@ -0,0 +1,1896 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_longlong; +pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_rwf_t = crate::ctypes::c_int; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v1 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub master_key_descriptor: [__u8; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_key { +pub mode: __u32, +pub raw: [__u8; 64usize], +pub size: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v2 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub log2_data_unit_size: __u8, +pub __reserved: [__u8; 3usize], +pub master_key_identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_policy_ex_arg { +pub policy_size: __u64, +pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_key_specifier { +pub type_: __u32, +pub __reserved: __u32, +pub u: fscrypt_key_specifier__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct fscrypt_provisioning_key_payload { +pub type_: __u32, +pub flags: __u32, +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +pub struct fscrypt_add_key_arg { +pub key_spec: fscrypt_key_specifier, +pub raw_size: __u32, +pub key_id: __u32, +pub flags: __u32, +pub __reserved: [__u32; 7usize], +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_remove_key_arg { +pub key_spec: fscrypt_key_specifier, +pub removal_status_flags: __u32, +pub __reserved: [__u32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_key_status_arg { +pub key_spec: fscrypt_key_specifier, +pub __reserved: [__u32; 6usize], +pub status: __u32, +pub status_flags: __u32, +pub user_count: __u32, +pub __out_reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mount_attr { +pub attr_set: __u64, +pub attr_clr: __u64, +pub propagation: __u64, +pub userns_fd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct statmount { +pub size: __u32, +pub mnt_opts: __u32, +pub mask: __u64, +pub sb_dev_major: __u32, +pub sb_dev_minor: __u32, +pub sb_magic: __u64, +pub sb_flags: __u32, +pub fs_type: __u32, +pub mnt_id: __u64, +pub mnt_parent_id: __u64, +pub mnt_id_old: __u32, +pub mnt_parent_id_old: __u32, +pub mnt_attr: __u64, +pub mnt_propagation: __u64, +pub mnt_peer_group: __u64, +pub mnt_master: __u64, +pub propagate_from: __u64, +pub mnt_root: __u32, +pub mnt_point: __u32, +pub mnt_ns_id: __u64, +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub supported_mask: __u64, +pub mnt_uidmap_num: __u32, +pub mnt_uidmap: __u32, +pub mnt_gidmap_num: __u32, +pub mnt_gidmap: __u32, +pub __spare2: [__u64; 43usize], +pub str_: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mnt_id_req { +pub size: __u32, +pub spare: __u32, +pub mnt_id: __u64, +pub param: __u64, +pub mnt_ns_id: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_clone_range { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fstrim_range { +pub start: __u64, +pub len: __u64, +pub minlen: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsuuid2 { +pub len: __u8, +pub uuid: [__u8; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fs_sysfs_path { +pub len: __u8, +pub name: [__u8; 128usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_dedupe_range_info { +pub dest_fd: __s64, +pub dest_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct file_dedupe_range { +pub src_offset: __u64, +pub src_length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct files_stat_struct { +pub nr_files: crate::ctypes::c_ulong, +pub nr_free_files: crate::ctypes::c_ulong, +pub max_files: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct inodes_stat_t { +pub nr_inodes: crate::ctypes::c_long, +pub nr_unused: crate::ctypes::c_long, +pub dummy: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsxattr { +pub fsx_xflags: __u32, +pub fsx_extsize: __u32, +pub fsx_nextents: __u32, +pub fsx_projid: __u32, +pub fsx_cowextsize: __u32, +pub fsx_pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct page_region { +pub start: __u64, +pub end: __u64, +pub categories: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pm_scan_arg { +pub size: __u64, +pub flags: __u64, +pub start: __u64, +pub end: __u64, +pub walk_end: __u64, +pub vec: __u64, +pub vec_len: __u64, +pub max_pages: __u64, +pub category_inverted: __u64, +pub category_mask: __u64, +pub category_anyof_mask: __u64, +pub return_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct procmap_query { +pub size: __u64, +pub query_flags: __u64, +pub query_addr: __u64, +pub vma_start: __u64, +pub vma_end: __u64, +pub vma_flags: __u64, +pub vma_page_size: __u64, +pub vma_offset: __u64, +pub inode: __u64, +pub dev_major: __u32, +pub dev_minor: __u32, +pub vma_name_size: __u32, +pub build_id_size: __u32, +pub vma_name_addr: __u64, +pub build_id_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_vol_args { +pub fd: __s64, +pub name: [crate::ctypes::c_char; 4088usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_limit { +pub flags: __u64, +pub max_rfer: __u64, +pub max_excl: __u64, +pub rsv_rfer: __u64, +pub rsv_excl: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_qgroup_inherit { +pub flags: __u64, +pub num_qgroups: __u64, +pub num_ref_copies: __u64, +pub num_excl_copies: __u64, +pub lim: btrfs_qgroup_limit, +pub qgroups: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_qgroup_limit_args { +pub qgroupid: __u64, +pub lim: btrfs_qgroup_limit, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_vol_args_v2 { +pub fd: __s64, +pub transid: __u64, +pub flags: __u64, +pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1, +pub __bindgen_anon_2: btrfs_ioctl_vol_args_v2__bindgen_ty_2, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1 { +pub size: __u64, +pub qgroup_inherit: *mut btrfs_qgroup_inherit, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_scrub_progress { +pub data_extents_scrubbed: __u64, +pub tree_extents_scrubbed: __u64, +pub data_bytes_scrubbed: __u64, +pub tree_bytes_scrubbed: __u64, +pub read_errors: __u64, +pub csum_errors: __u64, +pub verify_errors: __u64, +pub no_csum: __u64, +pub csum_discards: __u64, +pub super_errors: __u64, +pub malloc_errors: __u64, +pub uncorrectable_errors: __u64, +pub corrected_errors: __u64, +pub last_physical: __u64, +pub unverified_errors: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_scrub_args { +pub devid: __u64, +pub start: __u64, +pub end: __u64, +pub flags: __u64, +pub progress: btrfs_scrub_progress, +pub unused: [__u64; 109usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_dev_replace_start_params { +pub srcdevid: __u64, +pub cont_reading_from_srcdev_mode: __u64, +pub srcdev_name: [__u8; 1025usize], +pub tgtdev_name: [__u8; 1025usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_dev_replace_status_params { +pub replace_state: __u64, +pub progress_1000: __u64, +pub time_started: __u64, +pub time_stopped: __u64, +pub num_write_errors: __u64, +pub num_uncorrectable_read_errors: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_dev_replace_args { +pub cmd: __u64, +pub result: __u64, +pub __bindgen_anon_1: btrfs_ioctl_dev_replace_args__bindgen_ty_1, +pub spare: [__u64; 64usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_dev_info_args { +pub devid: __u64, +pub uuid: [__u8; 16usize], +pub bytes_used: __u64, +pub total_bytes: __u64, +pub fsid: [__u8; 16usize], +pub unused: [__u64; 377usize], +pub path: [__u8; 1024usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_fs_info_args { +pub max_id: __u64, +pub num_devices: __u64, +pub fsid: [__u8; 16usize], +pub nodesize: __u32, +pub sectorsize: __u32, +pub clone_alignment: __u32, +pub csum_type: __u16, +pub csum_size: __u16, +pub flags: __u64, +pub generation: __u64, +pub metadata_uuid: [__u8; 16usize], +pub reserved: [__u8; 944usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_feature_flags { +pub compat_flags: __u64, +pub compat_ro_flags: __u64, +pub incompat_flags: __u64, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct btrfs_balance_args { +pub profiles: __u64, +pub __bindgen_anon_1: btrfs_balance_args__bindgen_ty_1, +pub devid: __u64, +pub pstart: __u64, +pub pend: __u64, +pub vstart: __u64, +pub vend: __u64, +pub target: __u64, +pub flags: __u64, +pub __bindgen_anon_2: btrfs_balance_args__bindgen_ty_2, +pub stripes_min: __u32, +pub stripes_max: __u32, +pub unused: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_balance_args__bindgen_ty_1__bindgen_ty_1 { +pub usage_min: __u32, +pub usage_max: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_balance_args__bindgen_ty_2__bindgen_ty_1 { +pub limit_min: __u32, +pub limit_max: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_balance_progress { +pub expected: __u64, +pub considered: __u64, +pub completed: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_balance_args { +pub flags: __u64, +pub state: __u64, +pub data: btrfs_balance_args, +pub meta: btrfs_balance_args, +pub sys: btrfs_balance_args, +pub stat: btrfs_balance_progress, +pub unused: [__u64; 72usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_ino_lookup_args { +pub treeid: __u64, +pub objectid: __u64, +pub name: [crate::ctypes::c_char; 4080usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_ino_lookup_user_args { +pub dirid: __u64, +pub treeid: __u64, +pub name: [crate::ctypes::c_char; 256usize], +pub path: [crate::ctypes::c_char; 3824usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_search_key { +pub tree_id: __u64, +pub min_objectid: __u64, +pub max_objectid: __u64, +pub min_offset: __u64, +pub max_offset: __u64, +pub min_transid: __u64, +pub max_transid: __u64, +pub min_type: __u32, +pub max_type: __u32, +pub nr_items: __u32, +pub unused: __u32, +pub unused1: __u64, +pub unused2: __u64, +pub unused3: __u64, +pub unused4: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_search_header { +pub transid: __u64, +pub objectid: __u64, +pub offset: __u64, +pub type_: __u32, +pub len: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_search_args { +pub key: btrfs_ioctl_search_key, +pub buf: [crate::ctypes::c_char; 3992usize], +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_search_args_v2 { +pub key: btrfs_ioctl_search_key, +pub buf_size: __u64, +pub buf: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_clone_range_args { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_defrag_range_args { +pub start: __u64, +pub len: __u64, +pub flags: __u64, +pub extent_thresh: __u32, +pub __bindgen_anon_1: btrfs_ioctl_defrag_range_args__bindgen_ty_1, +pub unused: [__u32; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_defrag_range_args__bindgen_ty_1__bindgen_ty_1 { +pub type_: __u8, +pub level: __s8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_same_extent_info { +pub fd: __s64, +pub logical_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_same_args { +pub logical_offset: __u64, +pub length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_space_info { +pub flags: __u64, +pub total_bytes: __u64, +pub used_bytes: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_space_args { +pub space_slots: __u64, +pub total_spaces: __u64, +pub spaces: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_data_container { +pub bytes_left: __u32, +pub bytes_missing: __u32, +pub elem_cnt: __u32, +pub elem_missed: __u32, +pub val: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_ino_path_args { +pub inum: __u64, +pub size: __u64, +pub reserved: [__u64; 4usize], +pub fspath: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_logical_ino_args { +pub logical: __u64, +pub size: __u64, +pub reserved: [__u64; 3usize], +pub flags: __u64, +pub inodes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_dev_stats { +pub devid: __u64, +pub nr_items: __u64, +pub flags: __u64, +pub values: [__u64; 5usize], +pub unused: [__u64; 121usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_quota_ctl_args { +pub cmd: __u64, +pub status: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_quota_rescan_args { +pub flags: __u64, +pub progress: __u64, +pub reserved: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_qgroup_assign_args { +pub assign: __u64, +pub src: __u64, +pub dst: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_qgroup_create_args { +pub create: __u64, +pub qgroupid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_timespec { +pub sec: __u64, +pub nsec: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_received_subvol_args { +pub uuid: [crate::ctypes::c_char; 16usize], +pub stransid: __u64, +pub rtransid: __u64, +pub stime: btrfs_ioctl_timespec, +pub rtime: btrfs_ioctl_timespec, +pub flags: __u64, +pub reserved: [__u64; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_send_args { +pub send_fd: __s64, +pub clone_sources_count: __u64, +pub clone_sources: *mut __u64, +pub parent_root: __u64, +pub flags: __u64, +pub version: __u32, +pub reserved: [__u8; 28usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_subvol_info_args { +pub treeid: __u64, +pub name: [crate::ctypes::c_char; 256usize], +pub parent_id: __u64, +pub dirid: __u64, +pub generation: __u64, +pub flags: __u64, +pub uuid: [__u8; 16usize], +pub parent_uuid: [__u8; 16usize], +pub received_uuid: [__u8; 16usize], +pub ctransid: __u64, +pub otransid: __u64, +pub stransid: __u64, +pub rtransid: __u64, +pub ctime: btrfs_ioctl_timespec, +pub otime: btrfs_ioctl_timespec, +pub stime: btrfs_ioctl_timespec, +pub rtime: btrfs_ioctl_timespec, +pub reserved: [__u64; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_subvol_rootref_args { +pub min_treeid: __u64, +pub rootref: [btrfs_ioctl_get_subvol_rootref_args__bindgen_ty_1; 255usize], +pub num_items: __u8, +pub align: [__u8; 7usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_subvol_rootref_args__bindgen_ty_1 { +pub treeid: __u64, +pub dirid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_encoded_io_args { +pub iov: *const iovec, +pub iovcnt: crate::ctypes::c_ulong, +pub offset: __s64, +pub flags: __u64, +pub len: __u64, +pub unencoded_len: __u64, +pub unencoded_offset: __u64, +pub compression: __u32, +pub encryption: __u32, +pub reserved: [__u8; 64usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_subvol_wait { +pub subvolid: __u64, +pub mode: __u32, +pub count: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_disk_key { +pub objectid: __le64, +pub type_: __u8, +pub offset: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_key { +pub objectid: __u64, +pub type_: __u8, +pub offset: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_header { +pub csum: [__u8; 32usize], +pub fsid: [__u8; 16usize], +pub bytenr: __le64, +pub flags: __le64, +pub chunk_tree_uuid: [__u8; 16usize], +pub generation: __le64, +pub owner: __le64, +pub nritems: __le32, +pub level: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_root_backup { +pub tree_root: __le64, +pub tree_root_gen: __le64, +pub chunk_root: __le64, +pub chunk_root_gen: __le64, +pub extent_root: __le64, +pub extent_root_gen: __le64, +pub fs_root: __le64, +pub fs_root_gen: __le64, +pub dev_root: __le64, +pub dev_root_gen: __le64, +pub csum_root: __le64, +pub csum_root_gen: __le64, +pub total_bytes: __le64, +pub bytes_used: __le64, +pub num_devices: __le64, +pub unused_64: [__le64; 4usize], +pub tree_root_level: __u8, +pub chunk_root_level: __u8, +pub extent_root_level: __u8, +pub fs_root_level: __u8, +pub dev_root_level: __u8, +pub csum_root_level: __u8, +pub unused_8: [__u8; 10usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_item { +pub key: btrfs_disk_key, +pub offset: __le32, +pub size: __le32, +} +#[repr(C, packed)] +pub struct btrfs_leaf { +pub header: btrfs_header, +pub items: __IncompleteArrayField, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_key_ptr { +pub key: btrfs_disk_key, +pub blockptr: __le64, +pub generation: __le64, +} +#[repr(C, packed)] +pub struct btrfs_node { +pub header: btrfs_header, +pub ptrs: __IncompleteArrayField, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_item { +pub devid: __le64, +pub total_bytes: __le64, +pub bytes_used: __le64, +pub io_align: __le32, +pub io_width: __le32, +pub sector_size: __le32, +pub type_: __le64, +pub generation: __le64, +pub start_offset: __le64, +pub dev_group: __le32, +pub seek_speed: __u8, +pub bandwidth: __u8, +pub uuid: [__u8; 16usize], +pub fsid: [__u8; 16usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_stripe { +pub devid: __le64, +pub offset: __le64, +pub dev_uuid: [__u8; 16usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_chunk { +pub length: __le64, +pub owner: __le64, +pub stripe_len: __le64, +pub type_: __le64, +pub io_align: __le32, +pub io_width: __le32, +pub sector_size: __le32, +pub num_stripes: __le16, +pub sub_stripes: __le16, +pub stripe: btrfs_stripe, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_super_block { +pub csum: [__u8; 32usize], +pub fsid: [__u8; 16usize], +pub bytenr: __le64, +pub flags: __le64, +pub magic: __le64, +pub generation: __le64, +pub root: __le64, +pub chunk_root: __le64, +pub log_root: __le64, +pub __unused_log_root_transid: __le64, +pub total_bytes: __le64, +pub bytes_used: __le64, +pub root_dir_objectid: __le64, +pub num_devices: __le64, +pub sectorsize: __le32, +pub nodesize: __le32, +pub __unused_leafsize: __le32, +pub stripesize: __le32, +pub sys_chunk_array_size: __le32, +pub chunk_root_generation: __le64, +pub compat_flags: __le64, +pub compat_ro_flags: __le64, +pub incompat_flags: __le64, +pub csum_type: __le16, +pub root_level: __u8, +pub chunk_root_level: __u8, +pub log_root_level: __u8, +pub dev_item: btrfs_dev_item, +pub label: [crate::ctypes::c_char; 256usize], +pub cache_generation: __le64, +pub uuid_tree_generation: __le64, +pub metadata_uuid: [__u8; 16usize], +pub nr_global_roots: __u64, +pub reserved: [__le64; 27usize], +pub sys_chunk_array: [__u8; 2048usize], +pub super_roots: [btrfs_root_backup; 4usize], +pub padding: [__u8; 565usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_free_space_entry { +pub offset: __le64, +pub bytes: __le64, +pub type_: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_free_space_header { +pub location: btrfs_disk_key, +pub generation: __le64, +pub num_entries: __le64, +pub num_bitmaps: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_raid_stride { +pub devid: __le64, +pub physical: __le64, +} +#[repr(C, packed)] +pub struct btrfs_stripe_extent { +pub __bindgen_anon_1: btrfs_stripe_extent__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_stripe_extent__bindgen_ty_1 { +pub __empty_strides: btrfs_stripe_extent__bindgen_ty_1__bindgen_ty_1, +pub strides: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_stripe_extent__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_item { +pub refs: __le64, +pub generation: __le64, +pub flags: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_item_v0 { +pub refs: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_tree_block_info { +pub key: btrfs_disk_key, +pub level: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_data_ref { +pub root: __le64, +pub objectid: __le64, +pub offset: __le64, +pub count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_shared_data_ref { +pub count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_owner_ref { +pub root_id: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_inline_ref { +pub type_: __u8, +pub offset: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_extent { +pub chunk_tree: __le64, +pub chunk_objectid: __le64, +pub chunk_offset: __le64, +pub length: __le64, +pub chunk_tree_uuid: [__u8; 16usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_inode_ref { +pub index: __le64, +pub name_len: __le16, +} +#[repr(C, packed)] +pub struct btrfs_inode_extref { +pub parent_objectid: __le64, +pub index: __le64, +pub name_len: __le16, +pub name: __IncompleteArrayField<__u8>, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_timespec { +pub sec: __le64, +pub nsec: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_inode_item { +pub generation: __le64, +pub transid: __le64, +pub size: __le64, +pub nbytes: __le64, +pub block_group: __le64, +pub nlink: __le32, +pub uid: __le32, +pub gid: __le32, +pub mode: __le32, +pub rdev: __le64, +pub flags: __le64, +pub sequence: __le64, +pub reserved: [__le64; 4usize], +pub atime: btrfs_timespec, +pub ctime: btrfs_timespec, +pub mtime: btrfs_timespec, +pub otime: btrfs_timespec, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dir_log_item { +pub end: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dir_item { +pub location: btrfs_disk_key, +pub transid: __le64, +pub data_len: __le16, +pub name_len: __le16, +pub type_: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_root_item { +pub inode: btrfs_inode_item, +pub generation: __le64, +pub root_dirid: __le64, +pub bytenr: __le64, +pub byte_limit: __le64, +pub bytes_used: __le64, +pub last_snapshot: __le64, +pub flags: __le64, +pub refs: __le32, +pub drop_progress: btrfs_disk_key, +pub drop_level: __u8, +pub level: __u8, +pub generation_v2: __le64, +pub uuid: [__u8; 16usize], +pub parent_uuid: [__u8; 16usize], +pub received_uuid: [__u8; 16usize], +pub ctransid: __le64, +pub otransid: __le64, +pub stransid: __le64, +pub rtransid: __le64, +pub ctime: btrfs_timespec, +pub otime: btrfs_timespec, +pub stime: btrfs_timespec, +pub rtime: btrfs_timespec, +pub reserved: [__le64; 8usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_root_ref { +pub dirid: __le64, +pub sequence: __le64, +pub name_len: __le16, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct btrfs_disk_balance_args { +pub profiles: __le64, +pub __bindgen_anon_1: btrfs_disk_balance_args__bindgen_ty_1, +pub devid: __le64, +pub pstart: __le64, +pub pend: __le64, +pub vstart: __le64, +pub vend: __le64, +pub target: __le64, +pub flags: __le64, +pub __bindgen_anon_2: btrfs_disk_balance_args__bindgen_ty_2, +pub stripes_min: __le32, +pub stripes_max: __le32, +pub unused: [__le64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_disk_balance_args__bindgen_ty_1__bindgen_ty_1 { +pub usage_min: __le32, +pub usage_max: __le32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_disk_balance_args__bindgen_ty_2__bindgen_ty_1 { +pub limit_min: __le32, +pub limit_max: __le32, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct btrfs_balance_item { +pub flags: __le64, +pub data: btrfs_disk_balance_args, +pub meta: btrfs_disk_balance_args, +pub sys: btrfs_disk_balance_args, +pub unused: [__le64; 4usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_file_extent_item { +pub generation: __le64, +pub ram_bytes: __le64, +pub compression: __u8, +pub encryption: __u8, +pub other_encoding: __le16, +pub type_: __u8, +pub disk_bytenr: __le64, +pub disk_num_bytes: __le64, +pub offset: __le64, +pub num_bytes: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_csum_item { +pub csum: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_stats_item { +pub values: [__le64; 5usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_replace_item { +pub src_devid: __le64, +pub cursor_left: __le64, +pub cursor_right: __le64, +pub cont_reading_from_srcdev_mode: __le64, +pub replace_state: __le64, +pub time_started: __le64, +pub time_stopped: __le64, +pub num_write_errors: __le64, +pub num_uncorrectable_read_errors: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_free_space_info { +pub extent_count: __le32, +pub flags: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_status_item { +pub version: __le64, +pub generation: __le64, +pub flags: __le64, +pub rescan: __le64, +pub enable_gen: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_info_item { +pub generation: __le64, +pub rfer: __le64, +pub rfer_cmpr: __le64, +pub excl: __le64, +pub excl_cmpr: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_limit_item { +pub flags: __le64, +pub max_rfer: __le64, +pub max_excl: __le64, +pub rsv_rfer: __le64, +pub rsv_excl: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_verity_descriptor_item { +pub size: __le64, +pub reserved: [__le64; 2usize], +pub encryption: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iovec { +pub _address: u8, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_SIZEBITS: u32 = 14; +pub const _IOC_DIRBITS: u32 = 2; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 16383; +pub const _IOC_DIRMASK: u32 = 3; +pub const _IOC_NRSHIFT: u32 = 0; +pub const _IOC_TYPESHIFT: u32 = 8; +pub const _IOC_SIZESHIFT: u32 = 16; +pub const _IOC_DIRSHIFT: u32 = 30; +pub const _IOC_NONE: u32 = 0; +pub const _IOC_WRITE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const IOC_IN: u32 = 1073741824; +pub const IOC_OUT: u32 = 2147483648; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 1073676288; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const NR_OPEN: u32 = 1024; +pub const NGROUPS_MAX: u32 = 65536; +pub const ARG_MAX: u32 = 131072; +pub const LINK_MAX: u32 = 127; +pub const MAX_CANON: u32 = 255; +pub const MAX_INPUT: u32 = 255; +pub const NAME_MAX: u32 = 255; +pub const PATH_MAX: u32 = 4096; +pub const PIPE_BUF: u32 = 4096; +pub const XATTR_NAME_MAX: u32 = 255; +pub const XATTR_SIZE_MAX: u32 = 65536; +pub const XATTR_LIST_MAX: u32 = 65536; +pub const RTSIG_MAX: u32 = 32; +pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; +pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; +pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; +pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; +pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; +pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; +pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; +pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; +pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; +pub const FSCRYPT_POLICY_V1: u32 = 0; +pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; +pub const FSCRYPT_POLICY_V2: u32 = 2; +pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; +pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; +pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; +pub const FSCRYPT_ADD_KEY_FLAG_HW_WRAPPED: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; +pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; +pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; +pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; +pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; +pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FS_POLICY_FLAGS_VALID: u32 = 7; +pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; +pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; +pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; +pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; +pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; +pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; +pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; +pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; +pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FS_MAX_KEY_SIZE: u32 = 64; +pub const MS_RDONLY: u32 = 1; +pub const MS_NOSUID: u32 = 2; +pub const MS_NODEV: u32 = 4; +pub const MS_NOEXEC: u32 = 8; +pub const MS_SYNCHRONOUS: u32 = 16; +pub const MS_REMOUNT: u32 = 32; +pub const MS_MANDLOCK: u32 = 64; +pub const MS_DIRSYNC: u32 = 128; +pub const MS_NOSYMFOLLOW: u32 = 256; +pub const MS_NOATIME: u32 = 1024; +pub const MS_NODIRATIME: u32 = 2048; +pub const MS_BIND: u32 = 4096; +pub const MS_MOVE: u32 = 8192; +pub const MS_REC: u32 = 16384; +pub const MS_VERBOSE: u32 = 32768; +pub const MS_SILENT: u32 = 32768; +pub const MS_POSIXACL: u32 = 65536; +pub const MS_UNBINDABLE: u32 = 131072; +pub const MS_PRIVATE: u32 = 262144; +pub const MS_SLAVE: u32 = 524288; +pub const MS_SHARED: u32 = 1048576; +pub const MS_RELATIME: u32 = 2097152; +pub const MS_KERNMOUNT: u32 = 4194304; +pub const MS_I_VERSION: u32 = 8388608; +pub const MS_STRICTATIME: u32 = 16777216; +pub const MS_LAZYTIME: u32 = 33554432; +pub const MS_SUBMOUNT: u32 = 67108864; +pub const MS_NOREMOTELOCK: u32 = 134217728; +pub const MS_NOSEC: u32 = 268435456; +pub const MS_BORN: u32 = 536870912; +pub const MS_ACTIVE: u32 = 1073741824; +pub const MS_NOUSER: u32 = 2147483648; +pub const MS_RMT_MASK: u32 = 41943121; +pub const MS_MGC_VAL: u32 = 3236757504; +pub const MS_MGC_MSK: u32 = 4294901760; +pub const OPEN_TREE_CLONE: u32 = 1; +pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; +pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; +pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; +pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; +pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; +pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; +pub const MOVE_MOUNT_SET_GROUP: u32 = 256; +pub const MOVE_MOUNT_BENEATH: u32 = 512; +pub const MOVE_MOUNT__MASK: u32 = 887; +pub const FSOPEN_CLOEXEC: u32 = 1; +pub const FSPICK_CLOEXEC: u32 = 1; +pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; +pub const FSPICK_NO_AUTOMOUNT: u32 = 4; +pub const FSPICK_EMPTY_PATH: u32 = 8; +pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const MOUNT_ATTR_RDONLY: u32 = 1; +pub const MOUNT_ATTR_NOSUID: u32 = 2; +pub const MOUNT_ATTR_NODEV: u32 = 4; +pub const MOUNT_ATTR_NOEXEC: u32 = 8; +pub const MOUNT_ATTR__ATIME: u32 = 112; +pub const MOUNT_ATTR_RELATIME: u32 = 0; +pub const MOUNT_ATTR_NOATIME: u32 = 16; +pub const MOUNT_ATTR_STRICTATIME: u32 = 32; +pub const MOUNT_ATTR_NODIRATIME: u32 = 128; +pub const MOUNT_ATTR_IDMAP: u32 = 1048576; +pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; +pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; +pub const MNT_ID_REQ_SIZE_VER0: u32 = 24; +pub const MNT_ID_REQ_SIZE_VER1: u32 = 32; +pub const STATMOUNT_SB_BASIC: u32 = 1; +pub const STATMOUNT_MNT_BASIC: u32 = 2; +pub const STATMOUNT_PROPAGATE_FROM: u32 = 4; +pub const STATMOUNT_MNT_ROOT: u32 = 8; +pub const STATMOUNT_MNT_POINT: u32 = 16; +pub const STATMOUNT_FS_TYPE: u32 = 32; +pub const STATMOUNT_MNT_NS_ID: u32 = 64; +pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; +pub const STATMOUNT_SUPPORTED_MASK: u32 = 4096; +pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; +pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; +pub const LSMT_ROOT: i32 = -1; +pub const LISTMOUNT_REVERSE: u32 = 1; +pub const INR_OPEN_CUR: u32 = 1024; +pub const INR_OPEN_MAX: u32 = 4096; +pub const BLOCK_SIZE_BITS: u32 = 10; +pub const BLOCK_SIZE: u32 = 1024; +pub const IO_INTEGRITY_CHK_GUARD: u32 = 1; +pub const IO_INTEGRITY_CHK_REFTAG: u32 = 2; +pub const IO_INTEGRITY_CHK_APPTAG: u32 = 4; +pub const IO_INTEGRITY_VALID_FLAGS: u32 = 7; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const SEEK_DATA: u32 = 3; +pub const SEEK_HOLE: u32 = 4; +pub const SEEK_MAX: u32 = 4; +pub const RENAME_NOREPLACE: u32 = 1; +pub const RENAME_EXCHANGE: u32 = 2; +pub const RENAME_WHITEOUT: u32 = 4; +pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; +pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; +pub const NR_FILE: u32 = 8192; +pub const FS_XFLAG_REALTIME: u32 = 1; +pub const FS_XFLAG_PREALLOC: u32 = 2; +pub const FS_XFLAG_IMMUTABLE: u32 = 8; +pub const FS_XFLAG_APPEND: u32 = 16; +pub const FS_XFLAG_SYNC: u32 = 32; +pub const FS_XFLAG_NOATIME: u32 = 64; +pub const FS_XFLAG_NODUMP: u32 = 128; +pub const FS_XFLAG_RTINHERIT: u32 = 256; +pub const FS_XFLAG_PROJINHERIT: u32 = 512; +pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; +pub const FS_XFLAG_EXTSIZE: u32 = 2048; +pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; +pub const FS_XFLAG_NODEFRAG: u32 = 8192; +pub const FS_XFLAG_FILESTREAM: u32 = 16384; +pub const FS_XFLAG_DAX: u32 = 32768; +pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_HASATTR: u32 = 2147483648; +pub const BMAP_IOCTL: u32 = 1; +pub const FSLABEL_MAX: u32 = 256; +pub const FS_SECRM_FL: u32 = 1; +pub const FS_UNRM_FL: u32 = 2; +pub const FS_COMPR_FL: u32 = 4; +pub const FS_SYNC_FL: u32 = 8; +pub const FS_IMMUTABLE_FL: u32 = 16; +pub const FS_APPEND_FL: u32 = 32; +pub const FS_NODUMP_FL: u32 = 64; +pub const FS_NOATIME_FL: u32 = 128; +pub const FS_DIRTY_FL: u32 = 256; +pub const FS_COMPRBLK_FL: u32 = 512; +pub const FS_NOCOMP_FL: u32 = 1024; +pub const FS_ENCRYPT_FL: u32 = 2048; +pub const FS_BTREE_FL: u32 = 4096; +pub const FS_INDEX_FL: u32 = 4096; +pub const FS_IMAGIC_FL: u32 = 8192; +pub const FS_JOURNAL_DATA_FL: u32 = 16384; +pub const FS_NOTAIL_FL: u32 = 32768; +pub const FS_DIRSYNC_FL: u32 = 65536; +pub const FS_TOPDIR_FL: u32 = 131072; +pub const FS_HUGE_FILE_FL: u32 = 262144; +pub const FS_EXTENT_FL: u32 = 524288; +pub const FS_VERITY_FL: u32 = 1048576; +pub const FS_EA_INODE_FL: u32 = 2097152; +pub const FS_EOFBLOCKS_FL: u32 = 4194304; +pub const FS_NOCOW_FL: u32 = 8388608; +pub const FS_DAX_FL: u32 = 33554432; +pub const FS_INLINE_DATA_FL: u32 = 268435456; +pub const FS_PROJINHERIT_FL: u32 = 536870912; +pub const FS_CASEFOLD_FL: u32 = 1073741824; +pub const FS_RESERVED_FL: u32 = 2147483648; +pub const FS_FL_USER_VISIBLE: u32 = 253951; +pub const FS_FL_USER_MODIFIABLE: u32 = 229631; +pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; +pub const SYNC_FILE_RANGE_WRITE: u32 = 2; +pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; +pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; +pub const PROCFS_IOCTL_MAGIC: u8 = 102u8; +pub const PAGE_IS_WPALLOWED: u32 = 1; +pub const PAGE_IS_WRITTEN: u32 = 2; +pub const PAGE_IS_FILE: u32 = 4; +pub const PAGE_IS_PRESENT: u32 = 8; +pub const PAGE_IS_SWAPPED: u32 = 16; +pub const PAGE_IS_PFNZERO: u32 = 32; +pub const PAGE_IS_HUGE: u32 = 64; +pub const PAGE_IS_SOFT_DIRTY: u32 = 128; +pub const PAGE_IS_GUARD: u32 = 256; +pub const PM_SCAN_WP_MATCHING: u32 = 1; +pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const BTRFS_IOCTL_MAGIC: u32 = 148; +pub const BTRFS_VOL_NAME_MAX: u32 = 255; +pub const BTRFS_LABEL_SIZE: u32 = 256; +pub const BTRFS_PATH_NAME_MAX: u32 = 4087; +pub const BTRFS_DEVICE_PATH_NAME_MAX: u32 = 1024; +pub const BTRFS_SUBVOL_NAME_MAX: u32 = 4039; +pub const BTRFS_SUBVOL_CREATE_ASYNC: u32 = 1; +pub const BTRFS_SUBVOL_RDONLY: u32 = 2; +pub const BTRFS_SUBVOL_QGROUP_INHERIT: u32 = 4; +pub const BTRFS_DEVICE_SPEC_BY_ID: u32 = 8; +pub const BTRFS_SUBVOL_SPEC_BY_ID: u32 = 16; +pub const BTRFS_VOL_ARG_V2_FLAGS_SUPPORTED: u32 = 30; +pub const BTRFS_FSID_SIZE: u32 = 16; +pub const BTRFS_UUID_SIZE: u32 = 16; +pub const BTRFS_UUID_UNPARSED_SIZE: u32 = 37; +pub const BTRFS_QGROUP_LIMIT_MAX_RFER: u32 = 1; +pub const BTRFS_QGROUP_LIMIT_MAX_EXCL: u32 = 2; +pub const BTRFS_QGROUP_LIMIT_RSV_RFER: u32 = 4; +pub const BTRFS_QGROUP_LIMIT_RSV_EXCL: u32 = 8; +pub const BTRFS_QGROUP_LIMIT_RFER_CMPR: u32 = 16; +pub const BTRFS_QGROUP_LIMIT_EXCL_CMPR: u32 = 32; +pub const BTRFS_QGROUP_INHERIT_SET_LIMITS: u32 = 1; +pub const BTRFS_QGROUP_INHERIT_FLAGS_SUPP: u32 = 1; +pub const BTRFS_DEVICE_REMOVE_ARGS_MASK: u32 = 8; +pub const BTRFS_SUBVOL_CREATE_ARGS_MASK: u32 = 6; +pub const BTRFS_SUBVOL_DELETE_ARGS_MASK: u32 = 16; +pub const BTRFS_SCRUB_READONLY: u32 = 1; +pub const BTRFS_SCRUB_SUPPORTED_FLAGS: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_CONT_READING_FROM_SRCDEV_MODE_ALWAYS: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_CONT_READING_FROM_SRCDEV_MODE_AVOID: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_NEVER_STARTED: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_STARTED: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_FINISHED: u32 = 2; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_CANCELED: u32 = 3; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_SUSPENDED: u32 = 4; +pub const BTRFS_IOCTL_DEV_REPLACE_CMD_START: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_CMD_STATUS: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_CMD_CANCEL: u32 = 2; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_NO_ERROR: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_NOT_STARTED: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_ALREADY_STARTED: u32 = 2; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_SCRUB_INPROGRESS: u32 = 3; +pub const BTRFS_FS_INFO_FLAG_CSUM_INFO: u32 = 1; +pub const BTRFS_FS_INFO_FLAG_GENERATION: u32 = 2; +pub const BTRFS_FS_INFO_FLAG_METADATA_UUID: u32 = 4; +pub const BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE: u32 = 1; +pub const BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE_VALID: u32 = 2; +pub const BTRFS_FEATURE_COMPAT_RO_VERITY: u32 = 4; +pub const BTRFS_FEATURE_COMPAT_RO_BLOCK_GROUP_TREE: u32 = 8; +pub const BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF: u32 = 1; +pub const BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL: u32 = 2; +pub const BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS: u32 = 4; +pub const BTRFS_FEATURE_INCOMPAT_COMPRESS_LZO: u32 = 8; +pub const BTRFS_FEATURE_INCOMPAT_COMPRESS_ZSTD: u32 = 16; +pub const BTRFS_FEATURE_INCOMPAT_BIG_METADATA: u32 = 32; +pub const BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF: u32 = 64; +pub const BTRFS_FEATURE_INCOMPAT_RAID56: u32 = 128; +pub const BTRFS_FEATURE_INCOMPAT_SKINNY_METADATA: u32 = 256; +pub const BTRFS_FEATURE_INCOMPAT_NO_HOLES: u32 = 512; +pub const BTRFS_FEATURE_INCOMPAT_METADATA_UUID: u32 = 1024; +pub const BTRFS_FEATURE_INCOMPAT_RAID1C34: u32 = 2048; +pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; +pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; +pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; +pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; +pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; +pub const BTRFS_BALANCE_DATA: u32 = 1; +pub const BTRFS_BALANCE_SYSTEM: u32 = 2; +pub const BTRFS_BALANCE_METADATA: u32 = 4; +pub const BTRFS_BALANCE_TYPE_MASK: u32 = 7; +pub const BTRFS_BALANCE_FORCE: u32 = 8; +pub const BTRFS_BALANCE_RESUME: u32 = 16; +pub const BTRFS_BALANCE_ARGS_PROFILES: u32 = 1; +pub const BTRFS_BALANCE_ARGS_USAGE: u32 = 2; +pub const BTRFS_BALANCE_ARGS_DEVID: u32 = 4; +pub const BTRFS_BALANCE_ARGS_DRANGE: u32 = 8; +pub const BTRFS_BALANCE_ARGS_VRANGE: u32 = 16; +pub const BTRFS_BALANCE_ARGS_LIMIT: u32 = 32; +pub const BTRFS_BALANCE_ARGS_LIMIT_RANGE: u32 = 64; +pub const BTRFS_BALANCE_ARGS_STRIPES_RANGE: u32 = 128; +pub const BTRFS_BALANCE_ARGS_USAGE_RANGE: u32 = 1024; +pub const BTRFS_BALANCE_ARGS_MASK: u32 = 1279; +pub const BTRFS_BALANCE_ARGS_CONVERT: u32 = 256; +pub const BTRFS_BALANCE_ARGS_SOFT: u32 = 512; +pub const BTRFS_BALANCE_STATE_RUNNING: u32 = 1; +pub const BTRFS_BALANCE_STATE_PAUSE_REQ: u32 = 2; +pub const BTRFS_BALANCE_STATE_CANCEL_REQ: u32 = 4; +pub const BTRFS_INO_LOOKUP_PATH_MAX: u32 = 4080; +pub const BTRFS_INO_LOOKUP_USER_PATH_MAX: u32 = 3824; +pub const BTRFS_DEFRAG_RANGE_COMPRESS: u32 = 1; +pub const BTRFS_DEFRAG_RANGE_START_IO: u32 = 2; +pub const BTRFS_DEFRAG_RANGE_COMPRESS_LEVEL: u32 = 4; +pub const BTRFS_DEFRAG_RANGE_FLAGS_SUPP: u32 = 7; +pub const BTRFS_SAME_DATA_DIFFERS: u32 = 1; +pub const BTRFS_LOGICAL_INO_ARGS_IGNORE_OFFSET: u32 = 1; +pub const BTRFS_DEV_STATS_RESET: u32 = 1; +pub const BTRFS_QUOTA_CTL_ENABLE: u32 = 1; +pub const BTRFS_QUOTA_CTL_DISABLE: u32 = 2; +pub const BTRFS_QUOTA_CTL_RESCAN__NOTUSED: u32 = 3; +pub const BTRFS_QUOTA_CTL_ENABLE_SIMPLE_QUOTA: u32 = 4; +pub const BTRFS_SEND_FLAG_NO_FILE_DATA: u32 = 1; +pub const BTRFS_SEND_FLAG_OMIT_STREAM_HEADER: u32 = 2; +pub const BTRFS_SEND_FLAG_OMIT_END_CMD: u32 = 4; +pub const BTRFS_SEND_FLAG_VERSION: u32 = 8; +pub const BTRFS_SEND_FLAG_COMPRESSED: u32 = 16; +pub const BTRFS_SEND_FLAG_MASK: u32 = 31; +pub const BTRFS_MAX_ROOTREF_BUFFER_NUM: u32 = 255; +pub const BTRFS_ENCODED_IO_COMPRESSION_NONE: u32 = 0; +pub const BTRFS_ENCODED_IO_COMPRESSION_ZLIB: u32 = 1; +pub const BTRFS_ENCODED_IO_COMPRESSION_ZSTD: u32 = 2; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_4K: u32 = 3; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_8K: u32 = 4; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_16K: u32 = 5; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_32K: u32 = 6; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7; +pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8; +pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0; +pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2; +pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3; +pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4; +pub const BTRFS_MAGIC: u64 = 5575266562640200287; +pub const BTRFS_MAX_LEVEL: u32 = 8; +pub const BTRFS_NAME_LEN: u32 = 255; +pub const BTRFS_LINK_MAX: u32 = 65535; +pub const BTRFS_ROOT_TREE_OBJECTID: u32 = 1; +pub const BTRFS_EXTENT_TREE_OBJECTID: u32 = 2; +pub const BTRFS_CHUNK_TREE_OBJECTID: u32 = 3; +pub const BTRFS_DEV_TREE_OBJECTID: u32 = 4; +pub const BTRFS_FS_TREE_OBJECTID: u32 = 5; +pub const BTRFS_ROOT_TREE_DIR_OBJECTID: u32 = 6; +pub const BTRFS_CSUM_TREE_OBJECTID: u32 = 7; +pub const BTRFS_QUOTA_TREE_OBJECTID: u32 = 8; +pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; +pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; +pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; +pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; +pub const BTRFS_BALANCE_OBJECTID: i32 = -4; +pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; +pub const BTRFS_TREE_LOG_OBJECTID: i32 = -6; +pub const BTRFS_TREE_LOG_FIXUP_OBJECTID: i32 = -7; +pub const BTRFS_TREE_RELOC_OBJECTID: i32 = -8; +pub const BTRFS_DATA_RELOC_TREE_OBJECTID: i32 = -9; +pub const BTRFS_EXTENT_CSUM_OBJECTID: i32 = -10; +pub const BTRFS_FREE_SPACE_OBJECTID: i32 = -11; +pub const BTRFS_FREE_INO_OBJECTID: i32 = -12; +pub const BTRFS_MULTIPLE_OBJECTIDS: i32 = -255; +pub const BTRFS_FIRST_FREE_OBJECTID: u32 = 256; +pub const BTRFS_LAST_FREE_OBJECTID: i32 = -256; +pub const BTRFS_FIRST_CHUNK_TREE_OBJECTID: u32 = 256; +pub const BTRFS_DEV_ITEMS_OBJECTID: u32 = 1; +pub const BTRFS_BTREE_INODE_OBJECTID: u32 = 1; +pub const BTRFS_EMPTY_SUBVOL_DIR_OBJECTID: u32 = 2; +pub const BTRFS_DEV_REPLACE_DEVID: u32 = 0; +pub const BTRFS_INODE_ITEM_KEY: u32 = 1; +pub const BTRFS_INODE_REF_KEY: u32 = 12; +pub const BTRFS_INODE_EXTREF_KEY: u32 = 13; +pub const BTRFS_XATTR_ITEM_KEY: u32 = 24; +pub const BTRFS_VERITY_DESC_ITEM_KEY: u32 = 36; +pub const BTRFS_VERITY_MERKLE_ITEM_KEY: u32 = 37; +pub const BTRFS_ORPHAN_ITEM_KEY: u32 = 48; +pub const BTRFS_DIR_LOG_ITEM_KEY: u32 = 60; +pub const BTRFS_DIR_LOG_INDEX_KEY: u32 = 72; +pub const BTRFS_DIR_ITEM_KEY: u32 = 84; +pub const BTRFS_DIR_INDEX_KEY: u32 = 96; +pub const BTRFS_EXTENT_DATA_KEY: u32 = 108; +pub const BTRFS_EXTENT_CSUM_KEY: u32 = 128; +pub const BTRFS_ROOT_ITEM_KEY: u32 = 132; +pub const BTRFS_ROOT_BACKREF_KEY: u32 = 144; +pub const BTRFS_ROOT_REF_KEY: u32 = 156; +pub const BTRFS_EXTENT_ITEM_KEY: u32 = 168; +pub const BTRFS_METADATA_ITEM_KEY: u32 = 169; +pub const BTRFS_EXTENT_OWNER_REF_KEY: u32 = 172; +pub const BTRFS_TREE_BLOCK_REF_KEY: u32 = 176; +pub const BTRFS_EXTENT_DATA_REF_KEY: u32 = 178; +pub const BTRFS_SHARED_BLOCK_REF_KEY: u32 = 182; +pub const BTRFS_SHARED_DATA_REF_KEY: u32 = 184; +pub const BTRFS_BLOCK_GROUP_ITEM_KEY: u32 = 192; +pub const BTRFS_FREE_SPACE_INFO_KEY: u32 = 198; +pub const BTRFS_FREE_SPACE_EXTENT_KEY: u32 = 199; +pub const BTRFS_FREE_SPACE_BITMAP_KEY: u32 = 200; +pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; +pub const BTRFS_DEV_ITEM_KEY: u32 = 216; +pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; +pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; +pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; +pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; +pub const BTRFS_QGROUP_RELATION_KEY: u32 = 246; +pub const BTRFS_BALANCE_ITEM_KEY: u32 = 248; +pub const BTRFS_TEMPORARY_ITEM_KEY: u32 = 248; +pub const BTRFS_DEV_STATS_KEY: u32 = 249; +pub const BTRFS_PERSISTENT_ITEM_KEY: u32 = 249; +pub const BTRFS_DEV_REPLACE_KEY: u32 = 250; +pub const BTRFS_UUID_KEY_SUBVOL: u32 = 251; +pub const BTRFS_UUID_KEY_RECEIVED_SUBVOL: u32 = 252; +pub const BTRFS_STRING_ITEM_KEY: u32 = 253; +pub const BTRFS_MAX_METADATA_BLOCKSIZE: u32 = 65536; +pub const BTRFS_CSUM_SIZE: u32 = 32; +pub const BTRFS_FT_UNKNOWN: u32 = 0; +pub const BTRFS_FT_REG_FILE: u32 = 1; +pub const BTRFS_FT_DIR: u32 = 2; +pub const BTRFS_FT_CHRDEV: u32 = 3; +pub const BTRFS_FT_BLKDEV: u32 = 4; +pub const BTRFS_FT_FIFO: u32 = 5; +pub const BTRFS_FT_SOCK: u32 = 6; +pub const BTRFS_FT_SYMLINK: u32 = 7; +pub const BTRFS_FT_XATTR: u32 = 8; +pub const BTRFS_FT_MAX: u32 = 9; +pub const BTRFS_FT_ENCRYPTED: u32 = 128; +pub const BTRFS_INODE_NODATASUM: u32 = 1; +pub const BTRFS_INODE_NODATACOW: u32 = 2; +pub const BTRFS_INODE_READONLY: u32 = 4; +pub const BTRFS_INODE_NOCOMPRESS: u32 = 8; +pub const BTRFS_INODE_PREALLOC: u32 = 16; +pub const BTRFS_INODE_SYNC: u32 = 32; +pub const BTRFS_INODE_IMMUTABLE: u32 = 64; +pub const BTRFS_INODE_APPEND: u32 = 128; +pub const BTRFS_INODE_NODUMP: u32 = 256; +pub const BTRFS_INODE_NOATIME: u32 = 512; +pub const BTRFS_INODE_DIRSYNC: u32 = 1024; +pub const BTRFS_INODE_COMPRESS: u32 = 2048; +pub const BTRFS_INODE_ROOT_ITEM_INIT: u32 = 2147483648; +pub const BTRFS_INODE_FLAG_MASK: u32 = 2147487743; +pub const BTRFS_INODE_RO_VERITY: u32 = 1; +pub const BTRFS_INODE_RO_FLAG_MASK: u32 = 1; +pub const BTRFS_SYSTEM_CHUNK_ARRAY_SIZE: u32 = 2048; +pub const BTRFS_NUM_BACKUP_ROOTS: u32 = 4; +pub const BTRFS_FREE_SPACE_EXTENT: u32 = 1; +pub const BTRFS_FREE_SPACE_BITMAP: u32 = 2; +pub const BTRFS_HEADER_FLAG_WRITTEN: u32 = 1; +pub const BTRFS_HEADER_FLAG_RELOC: u32 = 2; +pub const BTRFS_SUPER_FLAG_ERROR: u32 = 4; +pub const BTRFS_SUPER_FLAG_SEEDING: u64 = 4294967296; +pub const BTRFS_SUPER_FLAG_METADUMP: u64 = 8589934592; +pub const BTRFS_SUPER_FLAG_METADUMP_V2: u64 = 17179869184; +pub const BTRFS_SUPER_FLAG_CHANGING_FSID: u64 = 34359738368; +pub const BTRFS_SUPER_FLAG_CHANGING_FSID_V2: u64 = 68719476736; +pub const BTRFS_SUPER_FLAG_CHANGING_BG_TREE: u64 = 274877906944; +pub const BTRFS_SUPER_FLAG_CHANGING_DATA_CSUM: u64 = 549755813888; +pub const BTRFS_SUPER_FLAG_CHANGING_META_CSUM: u64 = 1099511627776; +pub const BTRFS_EXTENT_FLAG_DATA: u32 = 1; +pub const BTRFS_EXTENT_FLAG_TREE_BLOCK: u32 = 2; +pub const BTRFS_BLOCK_FLAG_FULL_BACKREF: u32 = 256; +pub const BTRFS_BACKREF_REV_MAX: u32 = 256; +pub const BTRFS_BACKREF_REV_SHIFT: u32 = 56; +pub const BTRFS_OLD_BACKREF_REV: u32 = 0; +pub const BTRFS_MIXED_BACKREF_REV: u32 = 1; +pub const BTRFS_EXTENT_FLAG_SUPER: u64 = 281474976710656; +pub const BTRFS_ROOT_SUBVOL_RDONLY: u32 = 1; +pub const BTRFS_ROOT_SUBVOL_DEAD: u64 = 281474976710656; +pub const BTRFS_DEV_REPLACE_ITEM_CONT_READING_FROM_SRCDEV_MODE_ALWAYS: u32 = 0; +pub const BTRFS_DEV_REPLACE_ITEM_CONT_READING_FROM_SRCDEV_MODE_AVOID: u32 = 1; +pub const BTRFS_BLOCK_GROUP_DATA: u32 = 1; +pub const BTRFS_BLOCK_GROUP_SYSTEM: u32 = 2; +pub const BTRFS_BLOCK_GROUP_METADATA: u32 = 4; +pub const BTRFS_BLOCK_GROUP_RAID0: u32 = 8; +pub const BTRFS_BLOCK_GROUP_RAID1: u32 = 16; +pub const BTRFS_BLOCK_GROUP_DUP: u32 = 32; +pub const BTRFS_BLOCK_GROUP_RAID10: u32 = 64; +pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; +pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; +pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; +pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; +pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; +pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; +pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; +pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; +pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; +pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; +pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; +pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; +pub const BTRFS_QGROUP_STATUS_FLAG_INCONSISTENT: u32 = 4; +pub const BTRFS_QGROUP_STATUS_FLAG_SIMPLE_MODE: u32 = 8; +pub const BTRFS_QGROUP_STATUS_FLAGS_MASK: u32 = 15; +pub const BTRFS_QGROUP_STATUS_VERSION: u32 = 1; +pub const BTRFS_FILE_EXTENT_INLINE: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_FILE_EXTENT_INLINE; +pub const BTRFS_FILE_EXTENT_REG: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_FILE_EXTENT_REG; +pub const BTRFS_FILE_EXTENT_PREALLOC: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_FILE_EXTENT_PREALLOC; +pub const BTRFS_NR_FILE_EXTENT_TYPES: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_NR_FILE_EXTENT_TYPES; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum fsconfig_command { +FSCONFIG_SET_FLAG = 0, +FSCONFIG_SET_STRING = 1, +FSCONFIG_SET_BINARY = 2, +FSCONFIG_SET_PATH = 3, +FSCONFIG_SET_PATH_EMPTY = 4, +FSCONFIG_SET_FD = 5, +FSCONFIG_CMD_CREATE = 6, +FSCONFIG_CMD_RECONFIGURE = 7, +FSCONFIG_CMD_CREATE_EXCL = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum procmap_query_flags { +PROCMAP_QUERY_VMA_READABLE = 1, +PROCMAP_QUERY_VMA_WRITABLE = 2, +PROCMAP_QUERY_VMA_EXECUTABLE = 4, +PROCMAP_QUERY_VMA_SHARED = 8, +PROCMAP_QUERY_COVERING_OR_NEXT_VMA = 16, +PROCMAP_QUERY_FILE_BACKED_VMA = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum btrfs_dev_stat_values { +BTRFS_DEV_STAT_WRITE_ERRS = 0, +BTRFS_DEV_STAT_READ_ERRS = 1, +BTRFS_DEV_STAT_FLUSH_ERRS = 2, +BTRFS_DEV_STAT_CORRUPTION_ERRS = 3, +BTRFS_DEV_STAT_GENERATION_ERRS = 4, +BTRFS_DEV_STAT_VALUES_MAX = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum btrfs_err_code { +BTRFS_ERROR_DEV_RAID1_MIN_NOT_MET = 1, +BTRFS_ERROR_DEV_RAID10_MIN_NOT_MET = 2, +BTRFS_ERROR_DEV_RAID5_MIN_NOT_MET = 3, +BTRFS_ERROR_DEV_RAID6_MIN_NOT_MET = 4, +BTRFS_ERROR_DEV_TGT_REPLACE = 5, +BTRFS_ERROR_DEV_MISSING_NOT_FOUND = 6, +BTRFS_ERROR_DEV_ONLY_WRITABLE = 7, +BTRFS_ERROR_DEV_EXCL_RUN_IN_PROGRESS = 8, +BTRFS_ERROR_DEV_RAID1C3_MIN_NOT_MET = 9, +BTRFS_ERROR_DEV_RAID1C4_MIN_NOT_MET = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum btrfs_csum_type { +BTRFS_CSUM_TYPE_CRC32 = 0, +BTRFS_CSUM_TYPE_XXHASH = 1, +BTRFS_CSUM_TYPE_SHA256 = 2, +BTRFS_CSUM_TYPE_BLAKE2 = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +BTRFS_FILE_EXTENT_INLINE = 0, +BTRFS_FILE_EXTENT_REG = 1, +BTRFS_FILE_EXTENT_PREALLOC = 2, +BTRFS_NR_FILE_EXTENT_TYPES = 3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { +pub version: __u8, +pub v1: fscrypt_policy_v1, +pub v2: fscrypt_policy_v2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_key_specifier__bindgen_ty_1 { +pub __reserved: [__u8; 32usize], +pub descriptor: [__u8; 8usize], +pub identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { +pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, +pub unused: [__u64; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_vol_args_v2__bindgen_ty_2 { +pub name: [crate::ctypes::c_char; 4040usize], +pub devid: __u64, +pub subvolid: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_dev_replace_args__bindgen_ty_1 { +pub start: btrfs_ioctl_dev_replace_start_params, +pub status: btrfs_ioctl_dev_replace_status_params, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_balance_args__bindgen_ty_1 { +pub usage: __u64, +pub __bindgen_anon_1: btrfs_balance_args__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_balance_args__bindgen_ty_2 { +pub limit: __u64, +pub __bindgen_anon_1: btrfs_balance_args__bindgen_ty_2__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_defrag_range_args__bindgen_ty_1 { +pub compress_type: __u32, +pub compress: btrfs_ioctl_defrag_range_args__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_disk_balance_args__bindgen_ty_1 { +pub usage: __le64, +pub __bindgen_anon_1: btrfs_disk_balance_args__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_disk_balance_args__bindgen_ty_2 { +pub limit: __le64, +pub __bindgen_anon_1: btrfs_disk_balance_args__bindgen_ty_2__bindgen_ty_1, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/elf_uapi.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/elf_uapi.rs new file mode 100644 index 0000000000000000000000000000000000000000..c4258678ed8d9c1a3a740d2f779f99155635f36b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/elf_uapi.rs @@ -0,0 +1,654 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_longlong; +pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type Elf32_Addr = __u32; +pub type Elf32_Half = __u16; +pub type Elf32_Off = __u32; +pub type Elf32_Sword = __s32; +pub type Elf32_Word = __u32; +pub type Elf32_Versym = __u16; +pub type Elf64_Addr = __u64; +pub type Elf64_Half = __u16; +pub type Elf64_SHalf = __s16; +pub type Elf64_Off = __u64; +pub type Elf64_Sword = __s32; +pub type Elf64_Word = __u32; +pub type Elf64_Xword = __u64; +pub type Elf64_Sxword = __s64; +pub type Elf64_Versym = __u16; +pub type Elf32_Rel = elf32_rel; +pub type Elf64_Rel = elf64_rel; +pub type Elf32_Rela = elf32_rela; +pub type Elf64_Rela = elf64_rela; +pub type Elf32_Sym = elf32_sym; +pub type Elf64_Sym = elf64_sym; +pub type Elf32_Ehdr = elf32_hdr; +pub type Elf64_Ehdr = elf64_hdr; +pub type Elf32_Phdr = elf32_phdr; +pub type Elf64_Phdr = elf64_phdr; +pub type Elf32_Shdr = elf32_shdr; +pub type Elf64_Shdr = elf64_shdr; +pub type Elf32_Nhdr = elf32_note; +pub type Elf64_Nhdr = elf64_note; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct Elf32_Dyn { +pub d_tag: Elf32_Sword, +pub d_un: Elf32_Dyn__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct Elf64_Dyn { +pub d_tag: Elf64_Sxword, +pub d_un: Elf64_Dyn__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_rel { +pub r_offset: Elf32_Addr, +pub r_info: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_rel { +pub r_offset: Elf64_Addr, +pub r_info: Elf64_Xword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_rela { +pub r_offset: Elf32_Addr, +pub r_info: Elf32_Word, +pub r_addend: Elf32_Sword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_rela { +pub r_offset: Elf64_Addr, +pub r_info: Elf64_Xword, +pub r_addend: Elf64_Sxword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_sym { +pub st_name: Elf32_Word, +pub st_value: Elf32_Addr, +pub st_size: Elf32_Word, +pub st_info: crate::ctypes::c_uchar, +pub st_other: crate::ctypes::c_uchar, +pub st_shndx: Elf32_Half, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_sym { +pub st_name: Elf64_Word, +pub st_info: crate::ctypes::c_uchar, +pub st_other: crate::ctypes::c_uchar, +pub st_shndx: Elf64_Half, +pub st_value: Elf64_Addr, +pub st_size: Elf64_Xword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_hdr { +pub e_ident: [crate::ctypes::c_uchar; 16usize], +pub e_type: Elf32_Half, +pub e_machine: Elf32_Half, +pub e_version: Elf32_Word, +pub e_entry: Elf32_Addr, +pub e_phoff: Elf32_Off, +pub e_shoff: Elf32_Off, +pub e_flags: Elf32_Word, +pub e_ehsize: Elf32_Half, +pub e_phentsize: Elf32_Half, +pub e_phnum: Elf32_Half, +pub e_shentsize: Elf32_Half, +pub e_shnum: Elf32_Half, +pub e_shstrndx: Elf32_Half, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_hdr { +pub e_ident: [crate::ctypes::c_uchar; 16usize], +pub e_type: Elf64_Half, +pub e_machine: Elf64_Half, +pub e_version: Elf64_Word, +pub e_entry: Elf64_Addr, +pub e_phoff: Elf64_Off, +pub e_shoff: Elf64_Off, +pub e_flags: Elf64_Word, +pub e_ehsize: Elf64_Half, +pub e_phentsize: Elf64_Half, +pub e_phnum: Elf64_Half, +pub e_shentsize: Elf64_Half, +pub e_shnum: Elf64_Half, +pub e_shstrndx: Elf64_Half, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_phdr { +pub p_type: Elf32_Word, +pub p_offset: Elf32_Off, +pub p_vaddr: Elf32_Addr, +pub p_paddr: Elf32_Addr, +pub p_filesz: Elf32_Word, +pub p_memsz: Elf32_Word, +pub p_flags: Elf32_Word, +pub p_align: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_phdr { +pub p_type: Elf64_Word, +pub p_flags: Elf64_Word, +pub p_offset: Elf64_Off, +pub p_vaddr: Elf64_Addr, +pub p_paddr: Elf64_Addr, +pub p_filesz: Elf64_Xword, +pub p_memsz: Elf64_Xword, +pub p_align: Elf64_Xword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_shdr { +pub sh_name: Elf32_Word, +pub sh_type: Elf32_Word, +pub sh_flags: Elf32_Word, +pub sh_addr: Elf32_Addr, +pub sh_offset: Elf32_Off, +pub sh_size: Elf32_Word, +pub sh_link: Elf32_Word, +pub sh_info: Elf32_Word, +pub sh_addralign: Elf32_Word, +pub sh_entsize: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_shdr { +pub sh_name: Elf64_Word, +pub sh_type: Elf64_Word, +pub sh_flags: Elf64_Xword, +pub sh_addr: Elf64_Addr, +pub sh_offset: Elf64_Off, +pub sh_size: Elf64_Xword, +pub sh_link: Elf64_Word, +pub sh_info: Elf64_Word, +pub sh_addralign: Elf64_Xword, +pub sh_entsize: Elf64_Xword, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf32_note { +pub n_namesz: Elf32_Word, +pub n_descsz: Elf32_Word, +pub n_type: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct elf64_note { +pub n_namesz: Elf64_Word, +pub n_descsz: Elf64_Word, +pub n_type: Elf64_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Elf32_Verdef { +pub vd_version: Elf32_Half, +pub vd_flags: Elf32_Half, +pub vd_ndx: Elf32_Half, +pub vd_cnt: Elf32_Half, +pub vd_hash: Elf32_Word, +pub vd_aux: Elf32_Word, +pub vd_next: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Elf64_Verdef { +pub vd_version: Elf64_Half, +pub vd_flags: Elf64_Half, +pub vd_ndx: Elf64_Half, +pub vd_cnt: Elf64_Half, +pub vd_hash: Elf64_Word, +pub vd_aux: Elf64_Word, +pub vd_next: Elf64_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Elf32_Verdaux { +pub vda_name: Elf32_Word, +pub vda_next: Elf32_Word, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Elf64_Verdaux { +pub vda_name: Elf64_Word, +pub vda_next: Elf64_Word, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const EM_NONE: u32 = 0; +pub const EM_M32: u32 = 1; +pub const EM_SPARC: u32 = 2; +pub const EM_386: u32 = 3; +pub const EM_68K: u32 = 4; +pub const EM_88K: u32 = 5; +pub const EM_486: u32 = 6; +pub const EM_860: u32 = 7; +pub const EM_MIPS: u32 = 8; +pub const EM_MIPS_RS3_LE: u32 = 10; +pub const EM_MIPS_RS4_BE: u32 = 10; +pub const EM_PARISC: u32 = 15; +pub const EM_SPARC32PLUS: u32 = 18; +pub const EM_PPC: u32 = 20; +pub const EM_PPC64: u32 = 21; +pub const EM_SPU: u32 = 23; +pub const EM_ARM: u32 = 40; +pub const EM_SH: u32 = 42; +pub const EM_SPARCV9: u32 = 43; +pub const EM_H8_300: u32 = 46; +pub const EM_IA_64: u32 = 50; +pub const EM_X86_64: u32 = 62; +pub const EM_S390: u32 = 22; +pub const EM_CRIS: u32 = 76; +pub const EM_M32R: u32 = 88; +pub const EM_MN10300: u32 = 89; +pub const EM_OPENRISC: u32 = 92; +pub const EM_ARCOMPACT: u32 = 93; +pub const EM_XTENSA: u32 = 94; +pub const EM_BLACKFIN: u32 = 106; +pub const EM_UNICORE: u32 = 110; +pub const EM_ALTERA_NIOS2: u32 = 113; +pub const EM_TI_C6000: u32 = 140; +pub const EM_HEXAGON: u32 = 164; +pub const EM_NDS32: u32 = 167; +pub const EM_AARCH64: u32 = 183; +pub const EM_TILEPRO: u32 = 188; +pub const EM_MICROBLAZE: u32 = 189; +pub const EM_TILEGX: u32 = 191; +pub const EM_ARCV2: u32 = 195; +pub const EM_RISCV: u32 = 243; +pub const EM_BPF: u32 = 247; +pub const EM_CSKY: u32 = 252; +pub const EM_LOONGARCH: u32 = 258; +pub const EM_FRV: u32 = 21569; +pub const EM_ALPHA: u32 = 36902; +pub const EM_CYGNUS_M32R: u32 = 36929; +pub const EM_S390_OLD: u32 = 41872; +pub const EM_CYGNUS_MN10300: u32 = 48879; +pub const PT_NULL: u32 = 0; +pub const PT_LOAD: u32 = 1; +pub const PT_DYNAMIC: u32 = 2; +pub const PT_INTERP: u32 = 3; +pub const PT_NOTE: u32 = 4; +pub const PT_SHLIB: u32 = 5; +pub const PT_PHDR: u32 = 6; +pub const PT_TLS: u32 = 7; +pub const PT_LOOS: u32 = 1610612736; +pub const PT_HIOS: u32 = 1879048191; +pub const PT_LOPROC: u32 = 1879048192; +pub const PT_HIPROC: u32 = 2147483647; +pub const PT_GNU_EH_FRAME: u32 = 1685382480; +pub const PT_GNU_STACK: u32 = 1685382481; +pub const PT_GNU_RELRO: u32 = 1685382482; +pub const PT_GNU_PROPERTY: u32 = 1685382483; +pub const PT_AARCH64_MEMTAG_MTE: u32 = 1879048194; +pub const PN_XNUM: u32 = 65535; +pub const ET_NONE: u32 = 0; +pub const ET_REL: u32 = 1; +pub const ET_EXEC: u32 = 2; +pub const ET_DYN: u32 = 3; +pub const ET_CORE: u32 = 4; +pub const ET_LOPROC: u32 = 65280; +pub const ET_HIPROC: u32 = 65535; +pub const DT_NULL: u32 = 0; +pub const DT_NEEDED: u32 = 1; +pub const DT_PLTRELSZ: u32 = 2; +pub const DT_PLTGOT: u32 = 3; +pub const DT_HASH: u32 = 4; +pub const DT_STRTAB: u32 = 5; +pub const DT_SYMTAB: u32 = 6; +pub const DT_RELA: u32 = 7; +pub const DT_RELASZ: u32 = 8; +pub const DT_RELAENT: u32 = 9; +pub const DT_STRSZ: u32 = 10; +pub const DT_SYMENT: u32 = 11; +pub const DT_INIT: u32 = 12; +pub const DT_FINI: u32 = 13; +pub const DT_SONAME: u32 = 14; +pub const DT_RPATH: u32 = 15; +pub const DT_SYMBOLIC: u32 = 16; +pub const DT_REL: u32 = 17; +pub const DT_RELSZ: u32 = 18; +pub const DT_RELENT: u32 = 19; +pub const DT_PLTREL: u32 = 20; +pub const DT_DEBUG: u32 = 21; +pub const DT_TEXTREL: u32 = 22; +pub const DT_JMPREL: u32 = 23; +pub const DT_ENCODING: u32 = 32; +pub const OLD_DT_LOOS: u32 = 1610612736; +pub const DT_LOOS: u32 = 1610612749; +pub const DT_HIOS: u32 = 1879044096; +pub const DT_VALRNGLO: u32 = 1879047424; +pub const DT_VALRNGHI: u32 = 1879047679; +pub const DT_ADDRRNGLO: u32 = 1879047680; +pub const DT_GNU_HASH: u32 = 1879047925; +pub const DT_ADDRRNGHI: u32 = 1879047935; +pub const DT_VERSYM: u32 = 1879048176; +pub const DT_RELACOUNT: u32 = 1879048185; +pub const DT_RELCOUNT: u32 = 1879048186; +pub const DT_FLAGS_1: u32 = 1879048187; +pub const DT_VERDEF: u32 = 1879048188; +pub const DT_VERDEFNUM: u32 = 1879048189; +pub const DT_VERNEED: u32 = 1879048190; +pub const DT_VERNEEDNUM: u32 = 1879048191; +pub const OLD_DT_HIOS: u32 = 1879048191; +pub const DT_LOPROC: u32 = 1879048192; +pub const DT_HIPROC: u32 = 2147483647; +pub const STB_LOCAL: u32 = 0; +pub const STB_GLOBAL: u32 = 1; +pub const STB_WEAK: u32 = 2; +pub const STN_UNDEF: u32 = 0; +pub const STT_NOTYPE: u32 = 0; +pub const STT_OBJECT: u32 = 1; +pub const STT_FUNC: u32 = 2; +pub const STT_SECTION: u32 = 3; +pub const STT_FILE: u32 = 4; +pub const STT_COMMON: u32 = 5; +pub const STT_TLS: u32 = 6; +pub const VER_FLG_BASE: u32 = 1; +pub const VER_FLG_WEAK: u32 = 2; +pub const EI_NIDENT: u32 = 16; +pub const PF_R: u32 = 4; +pub const PF_W: u32 = 2; +pub const PF_X: u32 = 1; +pub const SHT_NULL: u32 = 0; +pub const SHT_PROGBITS: u32 = 1; +pub const SHT_SYMTAB: u32 = 2; +pub const SHT_STRTAB: u32 = 3; +pub const SHT_RELA: u32 = 4; +pub const SHT_HASH: u32 = 5; +pub const SHT_DYNAMIC: u32 = 6; +pub const SHT_NOTE: u32 = 7; +pub const SHT_NOBITS: u32 = 8; +pub const SHT_REL: u32 = 9; +pub const SHT_SHLIB: u32 = 10; +pub const SHT_DYNSYM: u32 = 11; +pub const SHT_NUM: u32 = 12; +pub const SHT_LOPROC: u32 = 1879048192; +pub const SHT_HIPROC: u32 = 2147483647; +pub const SHT_LOUSER: u32 = 2147483648; +pub const SHT_HIUSER: u32 = 4294967295; +pub const SHF_WRITE: u32 = 1; +pub const SHF_ALLOC: u32 = 2; +pub const SHF_EXECINSTR: u32 = 4; +pub const SHF_MERGE: u32 = 16; +pub const SHF_STRINGS: u32 = 32; +pub const SHF_INFO_LINK: u32 = 64; +pub const SHF_LINK_ORDER: u32 = 128; +pub const SHF_OS_NONCONFORMING: u32 = 256; +pub const SHF_GROUP: u32 = 512; +pub const SHF_TLS: u32 = 1024; +pub const SHF_RELA_LIVEPATCH: u32 = 1048576; +pub const SHF_RO_AFTER_INIT: u32 = 2097152; +pub const SHF_ORDERED: u32 = 67108864; +pub const SHF_EXCLUDE: u32 = 134217728; +pub const SHF_MASKOS: u32 = 267386880; +pub const SHF_MASKPROC: u32 = 4026531840; +pub const SHN_UNDEF: u32 = 0; +pub const SHN_LORESERVE: u32 = 65280; +pub const SHN_LOPROC: u32 = 65280; +pub const SHN_HIPROC: u32 = 65311; +pub const SHN_LIVEPATCH: u32 = 65312; +pub const SHN_ABS: u32 = 65521; +pub const SHN_COMMON: u32 = 65522; +pub const SHN_HIRESERVE: u32 = 65535; +pub const EI_MAG0: u32 = 0; +pub const EI_MAG1: u32 = 1; +pub const EI_MAG2: u32 = 2; +pub const EI_MAG3: u32 = 3; +pub const EI_CLASS: u32 = 4; +pub const EI_DATA: u32 = 5; +pub const EI_VERSION: u32 = 6; +pub const EI_OSABI: u32 = 7; +pub const EI_PAD: u32 = 8; +pub const ELFMAG0: u32 = 127; +pub const ELFMAG1: u8 = 69u8; +pub const ELFMAG2: u8 = 76u8; +pub const ELFMAG3: u8 = 70u8; +pub const ELFMAG: &[u8; 5] = b"\x7FELF\0"; +pub const SELFMAG: u32 = 4; +pub const ELFCLASSNONE: u32 = 0; +pub const ELFCLASS32: u32 = 1; +pub const ELFCLASS64: u32 = 2; +pub const ELFCLASSNUM: u32 = 3; +pub const ELFDATANONE: u32 = 0; +pub const ELFDATA2LSB: u32 = 1; +pub const ELFDATA2MSB: u32 = 2; +pub const EV_NONE: u32 = 0; +pub const EV_CURRENT: u32 = 1; +pub const EV_NUM: u32 = 2; +pub const ELFOSABI_NONE: u32 = 0; +pub const ELFOSABI_LINUX: u32 = 3; +pub const ELF_OSABI: u32 = 0; +pub const NN_GNU_PROPERTY_TYPE_0: &[u8; 4] = b"GNU\0"; +pub const NT_GNU_PROPERTY_TYPE_0: u32 = 5; +pub const NN_PRSTATUS: &[u8; 5] = b"CORE\0"; +pub const NT_PRSTATUS: u32 = 1; +pub const NN_PRFPREG: &[u8; 5] = b"CORE\0"; +pub const NT_PRFPREG: u32 = 2; +pub const NN_PRPSINFO: &[u8; 5] = b"CORE\0"; +pub const NT_PRPSINFO: u32 = 3; +pub const NN_TASKSTRUCT: &[u8; 5] = b"CORE\0"; +pub const NT_TASKSTRUCT: u32 = 4; +pub const NN_AUXV: &[u8; 5] = b"CORE\0"; +pub const NT_AUXV: u32 = 6; +pub const NN_SIGINFO: &[u8; 5] = b"CORE\0"; +pub const NT_SIGINFO: u32 = 1397311305; +pub const NN_FILE: &[u8; 5] = b"CORE\0"; +pub const NT_FILE: u32 = 1179208773; +pub const NN_PRXFPREG: &[u8; 6] = b"LINUX\0"; +pub const NT_PRXFPREG: u32 = 1189489535; +pub const NN_PPC_VMX: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_VMX: u32 = 256; +pub const NN_PPC_SPE: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_SPE: u32 = 257; +pub const NN_PPC_VSX: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_VSX: u32 = 258; +pub const NN_PPC_TAR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TAR: u32 = 259; +pub const NN_PPC_PPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_PPR: u32 = 260; +pub const NN_PPC_DSCR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_DSCR: u32 = 261; +pub const NN_PPC_EBB: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_EBB: u32 = 262; +pub const NN_PPC_PMU: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_PMU: u32 = 263; +pub const NN_PPC_TM_CGPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CGPR: u32 = 264; +pub const NN_PPC_TM_CFPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CFPR: u32 = 265; +pub const NN_PPC_TM_CVMX: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CVMX: u32 = 266; +pub const NN_PPC_TM_CVSX: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CVSX: u32 = 267; +pub const NN_PPC_TM_SPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_SPR: u32 = 268; +pub const NN_PPC_TM_CTAR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CTAR: u32 = 269; +pub const NN_PPC_TM_CPPR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CPPR: u32 = 270; +pub const NN_PPC_TM_CDSCR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_TM_CDSCR: u32 = 271; +pub const NN_PPC_PKEY: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_PKEY: u32 = 272; +pub const NN_PPC_DEXCR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_DEXCR: u32 = 273; +pub const NN_PPC_HASHKEYR: &[u8; 6] = b"LINUX\0"; +pub const NT_PPC_HASHKEYR: u32 = 274; +pub const NN_386_TLS: &[u8; 6] = b"LINUX\0"; +pub const NT_386_TLS: u32 = 512; +pub const NN_386_IOPERM: &[u8; 6] = b"LINUX\0"; +pub const NT_386_IOPERM: u32 = 513; +pub const NN_X86_XSTATE: &[u8; 6] = b"LINUX\0"; +pub const NT_X86_XSTATE: u32 = 514; +pub const NN_X86_SHSTK: &[u8; 6] = b"LINUX\0"; +pub const NT_X86_SHSTK: u32 = 516; +pub const NN_X86_XSAVE_LAYOUT: &[u8; 6] = b"LINUX\0"; +pub const NT_X86_XSAVE_LAYOUT: u32 = 517; +pub const NN_S390_HIGH_GPRS: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_HIGH_GPRS: u32 = 768; +pub const NN_S390_TIMER: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_TIMER: u32 = 769; +pub const NN_S390_TODCMP: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_TODCMP: u32 = 770; +pub const NN_S390_TODPREG: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_TODPREG: u32 = 771; +pub const NN_S390_CTRS: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_CTRS: u32 = 772; +pub const NN_S390_PREFIX: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_PREFIX: u32 = 773; +pub const NN_S390_LAST_BREAK: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_LAST_BREAK: u32 = 774; +pub const NN_S390_SYSTEM_CALL: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_SYSTEM_CALL: u32 = 775; +pub const NN_S390_TDB: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_TDB: u32 = 776; +pub const NN_S390_VXRS_LOW: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_VXRS_LOW: u32 = 777; +pub const NN_S390_VXRS_HIGH: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_VXRS_HIGH: u32 = 778; +pub const NN_S390_GS_CB: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_GS_CB: u32 = 779; +pub const NN_S390_GS_BC: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_GS_BC: u32 = 780; +pub const NN_S390_RI_CB: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_RI_CB: u32 = 781; +pub const NN_S390_PV_CPU_DATA: &[u8; 6] = b"LINUX\0"; +pub const NT_S390_PV_CPU_DATA: u32 = 782; +pub const NN_ARM_VFP: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_VFP: u32 = 1024; +pub const NN_ARM_TLS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_TLS: u32 = 1025; +pub const NN_ARM_HW_BREAK: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_HW_BREAK: u32 = 1026; +pub const NN_ARM_HW_WATCH: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_HW_WATCH: u32 = 1027; +pub const NN_ARM_SYSTEM_CALL: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_SYSTEM_CALL: u32 = 1028; +pub const NN_ARM_SVE: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_SVE: u32 = 1029; +pub const NN_ARM_PAC_MASK: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_PAC_MASK: u32 = 1030; +pub const NN_ARM_PACA_KEYS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_PACA_KEYS: u32 = 1031; +pub const NN_ARM_PACG_KEYS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_PACG_KEYS: u32 = 1032; +pub const NN_ARM_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_TAGGED_ADDR_CTRL: u32 = 1033; +pub const NN_ARM_PAC_ENABLED_KEYS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_PAC_ENABLED_KEYS: u32 = 1034; +pub const NN_ARM_SSVE: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_SSVE: u32 = 1035; +pub const NN_ARM_ZA: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_ZA: u32 = 1036; +pub const NN_ARM_ZT: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_ZT: u32 = 1037; +pub const NN_ARM_FPMR: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_FPMR: u32 = 1038; +pub const NN_ARM_POE: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_POE: u32 = 1039; +pub const NN_ARM_GCS: &[u8; 6] = b"LINUX\0"; +pub const NT_ARM_GCS: u32 = 1040; +pub const NN_ARC_V2: &[u8; 6] = b"LINUX\0"; +pub const NT_ARC_V2: u32 = 1536; +pub const NN_VMCOREDD: &[u8; 6] = b"LINUX\0"; +pub const NT_VMCOREDD: u32 = 1792; +pub const NN_MIPS_DSP: &[u8; 6] = b"LINUX\0"; +pub const NT_MIPS_DSP: u32 = 2048; +pub const NN_MIPS_FP_MODE: &[u8; 6] = b"LINUX\0"; +pub const NT_MIPS_FP_MODE: u32 = 2049; +pub const NN_MIPS_MSA: &[u8; 6] = b"LINUX\0"; +pub const NT_MIPS_MSA: u32 = 2050; +pub const NN_RISCV_CSR: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_CSR: u32 = 2304; +pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_VECTOR: u32 = 2305; +pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_CPUCFG: u32 = 2560; +pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_CSR: u32 = 2561; +pub const NN_LOONGARCH_LSX: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_LSX: u32 = 2562; +pub const NN_LOONGARCH_LASX: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_LASX: u32 = 2563; +pub const NN_LOONGARCH_LBT: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_LBT: u32 = 2564; +pub const NN_LOONGARCH_HW_BREAK: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_HW_BREAK: u32 = 2565; +pub const NN_LOONGARCH_HW_WATCH: &[u8; 6] = b"LINUX\0"; +pub const NT_LOONGARCH_HW_WATCH: u32 = 2566; +pub const GNU_PROPERTY_AARCH64_FEATURE_1_AND: u32 = 3221225472; +pub const GNU_PROPERTY_AARCH64_FEATURE_1_BTI: u32 = 1; +#[repr(C)] +#[derive(Copy, Clone)] +pub union Elf32_Dyn__bindgen_ty_1 { +pub d_val: Elf32_Sword, +pub d_ptr: Elf32_Addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union Elf64_Dyn__bindgen_ty_1 { +pub d_val: Elf64_Xword, +pub d_ptr: Elf64_Addr, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/errno.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/errno.rs new file mode 100644 index 0000000000000000000000000000000000000000..48eaf61f93450ac4c0b622351a597022885ad4bb --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/errno.rs @@ -0,0 +1,135 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EDEADLK: u32 = 35; +pub const ENAMETOOLONG: u32 = 36; +pub const ENOLCK: u32 = 37; +pub const ENOSYS: u32 = 38; +pub const ENOTEMPTY: u32 = 39; +pub const ELOOP: u32 = 40; +pub const EWOULDBLOCK: u32 = 11; +pub const ENOMSG: u32 = 42; +pub const EIDRM: u32 = 43; +pub const ECHRNG: u32 = 44; +pub const EL2NSYNC: u32 = 45; +pub const EL3HLT: u32 = 46; +pub const EL3RST: u32 = 47; +pub const ELNRNG: u32 = 48; +pub const EUNATCH: u32 = 49; +pub const ENOCSI: u32 = 50; +pub const EL2HLT: u32 = 51; +pub const EBADE: u32 = 52; +pub const EBADR: u32 = 53; +pub const EXFULL: u32 = 54; +pub const ENOANO: u32 = 55; +pub const EBADRQC: u32 = 56; +pub const EBADSLT: u32 = 57; +pub const EDEADLOCK: u32 = 35; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EMULTIHOP: u32 = 72; +pub const EDOTDOT: u32 = 73; +pub const EBADMSG: u32 = 74; +pub const EOVERFLOW: u32 = 75; +pub const ENOTUNIQ: u32 = 76; +pub const EBADFD: u32 = 77; +pub const EREMCHG: u32 = 78; +pub const ELIBACC: u32 = 79; +pub const ELIBBAD: u32 = 80; +pub const ELIBSCN: u32 = 81; +pub const ELIBMAX: u32 = 82; +pub const ELIBEXEC: u32 = 83; +pub const EILSEQ: u32 = 84; +pub const ERESTART: u32 = 85; +pub const ESTRPIPE: u32 = 86; +pub const EUSERS: u32 = 87; +pub const ENOTSOCK: u32 = 88; +pub const EDESTADDRREQ: u32 = 89; +pub const EMSGSIZE: u32 = 90; +pub const EPROTOTYPE: u32 = 91; +pub const ENOPROTOOPT: u32 = 92; +pub const EPROTONOSUPPORT: u32 = 93; +pub const ESOCKTNOSUPPORT: u32 = 94; +pub const EOPNOTSUPP: u32 = 95; +pub const EPFNOSUPPORT: u32 = 96; +pub const EAFNOSUPPORT: u32 = 97; +pub const EADDRINUSE: u32 = 98; +pub const EADDRNOTAVAIL: u32 = 99; +pub const ENETDOWN: u32 = 100; +pub const ENETUNREACH: u32 = 101; +pub const ENETRESET: u32 = 102; +pub const ECONNABORTED: u32 = 103; +pub const ECONNRESET: u32 = 104; +pub const ENOBUFS: u32 = 105; +pub const EISCONN: u32 = 106; +pub const ENOTCONN: u32 = 107; +pub const ESHUTDOWN: u32 = 108; +pub const ETOOMANYREFS: u32 = 109; +pub const ETIMEDOUT: u32 = 110; +pub const ECONNREFUSED: u32 = 111; +pub const EHOSTDOWN: u32 = 112; +pub const EHOSTUNREACH: u32 = 113; +pub const EALREADY: u32 = 114; +pub const EINPROGRESS: u32 = 115; +pub const ESTALE: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EDQUOT: u32 = 122; +pub const ENOMEDIUM: u32 = 123; +pub const EMEDIUMTYPE: u32 = 124; +pub const ECANCELED: u32 = 125; +pub const ENOKEY: u32 = 126; +pub const EKEYEXPIRED: u32 = 127; +pub const EKEYREVOKED: u32 = 128; +pub const EKEYREJECTED: u32 = 129; +pub const EOWNERDEAD: u32 = 130; +pub const ENOTRECOVERABLE: u32 = 131; +pub const ERFKILL: u32 = 132; +pub const EHWPOISON: u32 = 133; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/general.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/general.rs new file mode 100644 index 0000000000000000000000000000000000000000..6f6bde2d9b698be58fc0fee29e9d5825cac8efd8 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/general.rs @@ -0,0 +1,3265 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_sighandler_t = ::core::option::Option; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_longlong; +pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type cap_user_header_t = *mut __user_cap_header_struct; +pub type cap_user_data_t = *mut __user_cap_data_struct; +pub type __kernel_rwf_t = crate::ctypes::c_int; +pub type sigset_t = crate::ctypes::c_ulong; +pub type __signalfn_t = ::core::option::Option; +pub type __sighandler_t = __signalfn_t; +pub type __restorefn_t = ::core::option::Option; +pub type __sigrestore_t = __restorefn_t; +pub type stack_t = sigaltstack; +pub type __kernel_si_clock_t = crate::ctypes::c_longlong; +pub type sigval_t = sigval; +pub type siginfo_t = siginfo; +pub type sigevent_t = sigevent; +pub type cc_t = crate::ctypes::c_uchar; +pub type speed_t = crate::ctypes::c_uint; +pub type tcflag_t = crate::ctypes::c_uint; +pub type __fsword_t = __u32; +#[repr(C)] +#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] +pub struct __BindgenBitfieldUnit { +storage: Storage, +} +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_fd_set { +pub fds_bits: [crate::ctypes::c_ulong; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_fsid_t { +pub val: [crate::ctypes::c_int; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __user_cap_header_struct { +pub version: __u32, +pub pid: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __user_cap_data_struct { +pub effective: __u32, +pub permitted: __u32, +pub inheritable: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vfs_cap_data { +pub magic_etc: __le32, +pub data: [vfs_cap_data__bindgen_ty_1; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vfs_cap_data__bindgen_ty_1 { +pub permitted: __le32, +pub inheritable: __le32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vfs_ns_cap_data { +pub magic_etc: __le32, +pub data: [vfs_ns_cap_data__bindgen_ty_1; 2usize], +pub rootid: __le32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vfs_ns_cap_data__bindgen_ty_1 { +pub permitted: __le32, +pub inheritable: __le32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct f_owner_ex { +pub type_: crate::ctypes::c_int, +pub pid: __kernel_pid_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct flock { +pub l_type: crate::ctypes::c_short, +pub l_whence: crate::ctypes::c_short, +pub l_start: __kernel_off_t, +pub l_len: __kernel_off_t, +pub l_pid: __kernel_pid_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct flock64 { +pub l_type: crate::ctypes::c_short, +pub l_whence: crate::ctypes::c_short, +pub l_start: __kernel_loff_t, +pub l_len: __kernel_loff_t, +pub l_pid: __kernel_pid_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct open_how { +pub flags: __u64, +pub mode: __u64, +pub resolve: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct epoll_event { +pub events: __poll_t, +pub data: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct epoll_params { +pub busy_poll_usecs: __u32, +pub busy_poll_budget: __u16, +pub prefer_busy_poll: __u8, +pub __pad: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v1 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub master_key_descriptor: [__u8; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_key { +pub mode: __u32, +pub raw: [__u8; 64usize], +pub size: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v2 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub log2_data_unit_size: __u8, +pub __reserved: [__u8; 3usize], +pub master_key_identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_policy_ex_arg { +pub policy_size: __u64, +pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_key_specifier { +pub type_: __u32, +pub __reserved: __u32, +pub u: fscrypt_key_specifier__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct fscrypt_provisioning_key_payload { +pub type_: __u32, +pub flags: __u32, +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +pub struct fscrypt_add_key_arg { +pub key_spec: fscrypt_key_specifier, +pub raw_size: __u32, +pub key_id: __u32, +pub flags: __u32, +pub __reserved: [__u32; 7usize], +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_remove_key_arg { +pub key_spec: fscrypt_key_specifier, +pub removal_status_flags: __u32, +pub __reserved: [__u32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_key_status_arg { +pub key_spec: fscrypt_key_specifier, +pub __reserved: [__u32; 6usize], +pub status: __u32, +pub status_flags: __u32, +pub user_count: __u32, +pub __out_reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mount_attr { +pub attr_set: __u64, +pub attr_clr: __u64, +pub propagation: __u64, +pub userns_fd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct statmount { +pub size: __u32, +pub mnt_opts: __u32, +pub mask: __u64, +pub sb_dev_major: __u32, +pub sb_dev_minor: __u32, +pub sb_magic: __u64, +pub sb_flags: __u32, +pub fs_type: __u32, +pub mnt_id: __u64, +pub mnt_parent_id: __u64, +pub mnt_id_old: __u32, +pub mnt_parent_id_old: __u32, +pub mnt_attr: __u64, +pub mnt_propagation: __u64, +pub mnt_peer_group: __u64, +pub mnt_master: __u64, +pub propagate_from: __u64, +pub mnt_root: __u32, +pub mnt_point: __u32, +pub mnt_ns_id: __u64, +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub supported_mask: __u64, +pub mnt_uidmap_num: __u32, +pub mnt_uidmap: __u32, +pub mnt_gidmap_num: __u32, +pub mnt_gidmap: __u32, +pub __spare2: [__u64; 43usize], +pub str_: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mnt_id_req { +pub size: __u32, +pub spare: __u32, +pub mnt_id: __u64, +pub param: __u64, +pub mnt_ns_id: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_clone_range { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fstrim_range { +pub start: __u64, +pub len: __u64, +pub minlen: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsuuid2 { +pub len: __u8, +pub uuid: [__u8; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fs_sysfs_path { +pub len: __u8, +pub name: [__u8; 128usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_dedupe_range_info { +pub dest_fd: __s64, +pub dest_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct file_dedupe_range { +pub src_offset: __u64, +pub src_length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct files_stat_struct { +pub nr_files: crate::ctypes::c_ulong, +pub nr_free_files: crate::ctypes::c_ulong, +pub max_files: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct inodes_stat_t { +pub nr_inodes: crate::ctypes::c_long, +pub nr_unused: crate::ctypes::c_long, +pub dummy: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsxattr { +pub fsx_xflags: __u32, +pub fsx_extsize: __u32, +pub fsx_nextents: __u32, +pub fsx_projid: __u32, +pub fsx_cowextsize: __u32, +pub fsx_pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct page_region { +pub start: __u64, +pub end: __u64, +pub categories: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pm_scan_arg { +pub size: __u64, +pub flags: __u64, +pub start: __u64, +pub end: __u64, +pub walk_end: __u64, +pub vec: __u64, +pub vec_len: __u64, +pub max_pages: __u64, +pub category_inverted: __u64, +pub category_mask: __u64, +pub category_anyof_mask: __u64, +pub return_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct procmap_query { +pub size: __u64, +pub query_flags: __u64, +pub query_addr: __u64, +pub vma_start: __u64, +pub vma_end: __u64, +pub vma_flags: __u64, +pub vma_page_size: __u64, +pub vma_offset: __u64, +pub inode: __u64, +pub dev_major: __u32, +pub dev_minor: __u32, +pub vma_name_size: __u32, +pub build_id_size: __u32, +pub vma_name_addr: __u64, +pub build_id_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct futex_waitv { +pub val: __u64, +pub uaddr: __u64, +pub flags: __u32, +pub __reserved: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct robust_list { +pub next: *mut robust_list, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct robust_list_head { +pub list: robust_list, +pub futex_offset: crate::ctypes::c_long, +pub list_op_pending: *mut robust_list, +} +#[repr(C)] +#[derive(Debug)] +pub struct inotify_event { +pub wd: __s32, +pub mask: __u32, +pub cookie: __u32, +pub len: __u32, +pub name: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cachestat_range { +pub off: __u64, +pub len: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cachestat { +pub nr_cache: __u64, +pub nr_dirty: __u64, +pub nr_writeback: __u64, +pub nr_evicted: __u64, +pub nr_recently_evicted: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pollfd { +pub fd: crate::ctypes::c_int, +pub events: crate::ctypes::c_short, +pub revents: crate::ctypes::c_short, +} +#[repr(C)] +#[derive(Debug)] +pub struct rand_pool_info { +pub entropy_count: crate::ctypes::c_int, +pub buf_size: crate::ctypes::c_int, +pub buf: __IncompleteArrayField<__u32>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct vgetrandom_opaque_params { +pub size_of_opaque_state: __u32, +pub mmap_prot: __u32, +pub mmap_flags: __u32, +pub reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_timespec { +pub tv_sec: __kernel_time64_t, +pub tv_nsec: crate::ctypes::c_longlong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_itimerspec { +pub it_interval: __kernel_timespec, +pub it_value: __kernel_timespec, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_long_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timespec { +pub tv_sec: __kernel_old_time_t, +pub tv_nsec: crate::ctypes::c_long, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_itimerval { +pub it_interval: __kernel_old_timeval, +pub it_value: __kernel_old_timeval, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sock_timeval { +pub tv_sec: __s64, +pub tv_usec: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rusage { +pub ru_utime: __kernel_old_timeval, +pub ru_stime: __kernel_old_timeval, +pub ru_maxrss: __kernel_long_t, +pub ru_ixrss: __kernel_long_t, +pub ru_idrss: __kernel_long_t, +pub ru_isrss: __kernel_long_t, +pub ru_minflt: __kernel_long_t, +pub ru_majflt: __kernel_long_t, +pub ru_nswap: __kernel_long_t, +pub ru_inblock: __kernel_long_t, +pub ru_oublock: __kernel_long_t, +pub ru_msgsnd: __kernel_long_t, +pub ru_msgrcv: __kernel_long_t, +pub ru_nsignals: __kernel_long_t, +pub ru_nvcsw: __kernel_long_t, +pub ru_nivcsw: __kernel_long_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rlimit { +pub rlim_cur: __kernel_ulong_t, +pub rlim_max: __kernel_ulong_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rlimit64 { +pub rlim_cur: __u64, +pub rlim_max: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct clone_args { +pub flags: __u64, +pub pidfd: __u64, +pub child_tid: __u64, +pub parent_tid: __u64, +pub exit_signal: __u64, +pub stack: __u64, +pub stack_size: __u64, +pub tls: __u64, +pub set_tid: __u64, +pub set_tid_size: __u64, +pub cgroup: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigaction { +pub sa_handler: __sighandler_t, +pub sa_flags: crate::ctypes::c_ulong, +pub sa_restorer: __sigrestore_t, +pub sa_mask: sigset_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigaltstack { +pub ss_sp: *mut crate::ctypes::c_void, +pub ss_flags: crate::ctypes::c_int, +pub ss_size: __kernel_size_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_1 { +pub _pid: __kernel_pid_t, +pub _uid: __kernel_uid32_t, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __sifields__bindgen_ty_2 { +pub _tid: __kernel_timer_t, +pub _overrun: crate::ctypes::c_int, +pub _sigval: sigval_t, +pub _sys_private: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __sifields__bindgen_ty_3 { +pub _pid: __kernel_pid_t, +pub _uid: __kernel_uid32_t, +pub _sigval: sigval_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_4 { +pub _pid: __kernel_pid_t, +pub _uid: __kernel_uid32_t, +pub _status: crate::ctypes::c_int, +pub _utime: __kernel_si_clock_t, +pub _stime: __kernel_si_clock_t, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __sifields__bindgen_ty_5 { +pub _addr: *mut crate::ctypes::c_void, +pub __bindgen_anon_1: __sifields__bindgen_ty_5__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { +pub _dummy_bnd: [crate::ctypes::c_char; 4usize], +pub _lower: *mut crate::ctypes::c_void, +pub _upper: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2 { +pub _dummy_pkey: [crate::ctypes::c_char; 4usize], +pub _pkey: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3 { +pub _data: crate::ctypes::c_ulong, +pub _type: __u32, +pub _flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_6 { +pub _band: crate::ctypes::c_long, +pub _fd: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __sifields__bindgen_ty_7 { +pub _call_addr: *mut crate::ctypes::c_void, +pub _syscall: crate::ctypes::c_int, +pub _arch: crate::ctypes::c_uint, +} +#[repr(C)] +#[repr(align(8))] +#[derive(Copy, Clone)] +pub struct siginfo { +pub __bindgen_anon_1: siginfo__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct siginfo__bindgen_ty_1__bindgen_ty_1 { +pub si_signo: crate::ctypes::c_int, +pub si_errno: crate::ctypes::c_int, +pub si_code: crate::ctypes::c_int, +pub _sifields: __sifields, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sigevent { +pub sigev_value: sigval_t, +pub sigev_signo: crate::ctypes::c_int, +pub sigev_notify: crate::ctypes::c_int, +pub _sigev_un: sigevent__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { +pub _function: ::core::option::Option, +pub _attribute: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statx_timestamp { +pub tv_sec: __s64, +pub tv_nsec: __u32, +pub __reserved: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statx { +pub stx_mask: __u32, +pub stx_blksize: __u32, +pub stx_attributes: __u64, +pub stx_nlink: __u32, +pub stx_uid: __u32, +pub stx_gid: __u32, +pub stx_mode: __u16, +pub __spare0: [__u16; 1usize], +pub stx_ino: __u64, +pub stx_size: __u64, +pub stx_blocks: __u64, +pub stx_attributes_mask: __u64, +pub stx_atime: statx_timestamp, +pub stx_btime: statx_timestamp, +pub stx_ctime: statx_timestamp, +pub stx_mtime: statx_timestamp, +pub stx_rdev_major: __u32, +pub stx_rdev_minor: __u32, +pub stx_dev_major: __u32, +pub stx_dev_minor: __u32, +pub stx_mnt_id: __u64, +pub stx_dio_mem_align: __u32, +pub stx_dio_offset_align: __u32, +pub stx_subvol: __u64, +pub stx_atomic_write_unit_min: __u32, +pub stx_atomic_write_unit_max: __u32, +pub stx_atomic_write_segments_max: __u32, +pub stx_dio_read_offset_align: __u32, +pub stx_atomic_write_unit_max_opt: __u32, +pub __spare2: [__u32; 1usize], +pub __spare3: [__u64; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct termios { +pub c_iflag: tcflag_t, +pub c_oflag: tcflag_t, +pub c_cflag: tcflag_t, +pub c_lflag: tcflag_t, +pub c_line: cc_t, +pub c_cc: [cc_t; 19usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct termios2 { +pub c_iflag: tcflag_t, +pub c_oflag: tcflag_t, +pub c_cflag: tcflag_t, +pub c_lflag: tcflag_t, +pub c_line: cc_t, +pub c_cc: [cc_t; 19usize], +pub c_ispeed: speed_t, +pub c_ospeed: speed_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ktermios { +pub c_iflag: tcflag_t, +pub c_oflag: tcflag_t, +pub c_cflag: tcflag_t, +pub c_lflag: tcflag_t, +pub c_line: cc_t, +pub c_cc: [cc_t; 19usize], +pub c_ispeed: speed_t, +pub c_ospeed: speed_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct winsize { +pub ws_row: crate::ctypes::c_ushort, +pub ws_col: crate::ctypes::c_ushort, +pub ws_xpixel: crate::ctypes::c_ushort, +pub ws_ypixel: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct termio { +pub c_iflag: crate::ctypes::c_ushort, +pub c_oflag: crate::ctypes::c_ushort, +pub c_cflag: crate::ctypes::c_ushort, +pub c_lflag: crate::ctypes::c_ushort, +pub c_line: crate::ctypes::c_uchar, +pub c_cc: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timespec { +pub tv_sec: __kernel_old_time_t, +pub tv_nsec: crate::ctypes::c_long, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timeval { +pub tv_sec: __kernel_old_time_t, +pub tv_usec: __kernel_suseconds_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct itimerspec { +pub it_interval: timespec, +pub it_value: timespec, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct itimerval { +pub it_interval: timeval, +pub it_value: timeval, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct timezone { +pub tz_minuteswest: crate::ctypes::c_int, +pub tz_dsttime: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iovec { +pub iov_base: *mut crate::ctypes::c_void, +pub iov_len: __kernel_size_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dmabuf_cmsg { +pub frag_offset: __u64, +pub frag_size: __u32, +pub frag_token: __u32, +pub dmabuf_id: __u32, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dmabuf_token { +pub token_start: __u32, +pub token_count: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xattr_args { +pub value: __u64, +pub size: __u32, +pub flags: __u32, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct uffd_msg { +pub event: __u8, +pub reserved1: __u8, +pub reserved2: __u16, +pub reserved3: __u32, +pub arg: uffd_msg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_1 { +pub flags: __u64, +pub address: __u64, +pub feat: uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_2 { +pub ufd: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_3 { +pub from: __u64, +pub to: __u64, +pub len: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_4 { +pub start: __u64, +pub end: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffd_msg__bindgen_ty_1__bindgen_ty_5 { +pub reserved1: __u64, +pub reserved2: __u64, +pub reserved3: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_api { +pub api: __u64, +pub features: __u64, +pub ioctls: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_range { +pub start: __u64, +pub len: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_register { +pub range: uffdio_range, +pub mode: __u64, +pub ioctls: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_copy { +pub dst: __u64, +pub src: __u64, +pub len: __u64, +pub mode: __u64, +pub copy: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_zeropage { +pub range: uffdio_range, +pub mode: __u64, +pub zeropage: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_writeprotect { +pub range: uffdio_range, +pub mode: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_continue { +pub range: uffdio_range, +pub mode: __u64, +pub mapped: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_poison { +pub range: uffdio_range, +pub mode: __u64, +pub updated: __s64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct uffdio_move { +pub dst: __u64, +pub src: __u64, +pub len: __u64, +pub mode: __u64, +pub move_: __s64, +} +#[repr(C)] +#[derive(Debug)] +pub struct linux_dirent64 { +pub d_ino: crate::ctypes::c_ulonglong, +pub d_off: crate::ctypes::c_longlong, +pub d_reclen: __u16, +pub d_type: __u8, +pub d_name: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stat { +pub st_dev: __kernel_ulong_t, +pub st_ino: __kernel_ulong_t, +pub st_nlink: __kernel_ulong_t, +pub st_mode: crate::ctypes::c_uint, +pub st_uid: crate::ctypes::c_uint, +pub st_gid: crate::ctypes::c_uint, +pub __pad0: crate::ctypes::c_uint, +pub st_rdev: __kernel_ulong_t, +pub st_size: __kernel_long_t, +pub st_blksize: __kernel_long_t, +pub st_blocks: __kernel_long_t, +pub st_atime: __kernel_ulong_t, +pub st_atime_nsec: __kernel_ulong_t, +pub st_mtime: __kernel_ulong_t, +pub st_mtime_nsec: __kernel_ulong_t, +pub st_ctime: __kernel_ulong_t, +pub st_ctime_nsec: __kernel_ulong_t, +pub __unused: [__kernel_long_t; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __old_kernel_stat { +pub st_dev: crate::ctypes::c_ushort, +pub st_ino: crate::ctypes::c_ushort, +pub st_mode: crate::ctypes::c_ushort, +pub st_nlink: crate::ctypes::c_ushort, +pub st_uid: crate::ctypes::c_ushort, +pub st_gid: crate::ctypes::c_ushort, +pub st_rdev: crate::ctypes::c_ushort, +pub st_size: crate::ctypes::c_uint, +pub st_atime: crate::ctypes::c_uint, +pub st_mtime: crate::ctypes::c_uint, +pub st_ctime: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statfs { +pub f_type: __u32, +pub f_bsize: __u32, +pub f_blocks: __u32, +pub f_bfree: __u32, +pub f_bavail: __u32, +pub f_files: __u32, +pub f_ffree: __u32, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: __u32, +pub f_frsize: __u32, +pub f_flags: __u32, +pub f_spare: [__u32; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct statfs64 { +pub f_type: __u32, +pub f_bsize: __u32, +pub f_blocks: __u64, +pub f_bfree: __u64, +pub f_bavail: __u64, +pub f_files: __u64, +pub f_ffree: __u64, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: __u32, +pub f_frsize: __u32, +pub f_flags: __u32, +pub f_spare: [__u32; 4usize], +} +#[repr(C, packed(4))] +#[derive(Debug, Copy, Clone)] +pub struct compat_statfs64 { +pub f_type: __u32, +pub f_bsize: __u32, +pub f_blocks: __u64, +pub f_bfree: __u64, +pub f_bavail: __u64, +pub f_files: __u64, +pub f_ffree: __u64, +pub f_fsid: __kernel_fsid_t, +pub f_namelen: __u32, +pub f_frsize: __u32, +pub f_flags: __u32, +pub f_spare: [__u32; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_desc { +pub entry_number: crate::ctypes::c_uint, +pub base_addr: crate::ctypes::c_uint, +pub limit: crate::ctypes::c_uint, +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, +pub __bindgen_padding_0: [u8; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct kernel_sigset_t { +pub sig: [crate::ctypes::c_ulong; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct kernel_sigaction { +pub sa_handler_kernel: __kernel_sighandler_t, +pub sa_flags: crate::ctypes::c_ulong, +pub sa_restorer: __sigrestore_t, +pub sa_mask: kernel_sigset_t, +} +pub const LINUX_VERSION_CODE: u32 = 397312; +pub const LINUX_VERSION_MAJOR: u32 = 6; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 16; +pub const LINUX_VERSION_SUBLEVEL: u32 = 0; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const __FD_SETSIZE: u32 = 1024; +pub const _LINUX_CAPABILITY_VERSION_1: u32 = 429392688; +pub const _LINUX_CAPABILITY_U32S_1: u32 = 1; +pub const _LINUX_CAPABILITY_VERSION_2: u32 = 537333798; +pub const _LINUX_CAPABILITY_U32S_2: u32 = 2; +pub const _LINUX_CAPABILITY_VERSION_3: u32 = 537396514; +pub const _LINUX_CAPABILITY_U32S_3: u32 = 2; +pub const VFS_CAP_REVISION_MASK: u32 = 4278190080; +pub const VFS_CAP_REVISION_SHIFT: u32 = 24; +pub const VFS_CAP_FLAGS_MASK: i64 = -4278190081; +pub const VFS_CAP_FLAGS_EFFECTIVE: u32 = 1; +pub const VFS_CAP_REVISION_1: u32 = 16777216; +pub const VFS_CAP_U32_1: u32 = 1; +pub const VFS_CAP_REVISION_2: u32 = 33554432; +pub const VFS_CAP_U32_2: u32 = 2; +pub const VFS_CAP_REVISION_3: u32 = 50331648; +pub const VFS_CAP_U32_3: u32 = 2; +pub const VFS_CAP_U32: u32 = 2; +pub const VFS_CAP_REVISION: u32 = 50331648; +pub const _LINUX_CAPABILITY_VERSION: u32 = 429392688; +pub const _LINUX_CAPABILITY_U32S: u32 = 1; +pub const CAP_CHOWN: u32 = 0; +pub const CAP_DAC_OVERRIDE: u32 = 1; +pub const CAP_DAC_READ_SEARCH: u32 = 2; +pub const CAP_FOWNER: u32 = 3; +pub const CAP_FSETID: u32 = 4; +pub const CAP_KILL: u32 = 5; +pub const CAP_SETGID: u32 = 6; +pub const CAP_SETUID: u32 = 7; +pub const CAP_SETPCAP: u32 = 8; +pub const CAP_LINUX_IMMUTABLE: u32 = 9; +pub const CAP_NET_BIND_SERVICE: u32 = 10; +pub const CAP_NET_BROADCAST: u32 = 11; +pub const CAP_NET_ADMIN: u32 = 12; +pub const CAP_NET_RAW: u32 = 13; +pub const CAP_IPC_LOCK: u32 = 14; +pub const CAP_IPC_OWNER: u32 = 15; +pub const CAP_SYS_MODULE: u32 = 16; +pub const CAP_SYS_RAWIO: u32 = 17; +pub const CAP_SYS_CHROOT: u32 = 18; +pub const CAP_SYS_PTRACE: u32 = 19; +pub const CAP_SYS_PACCT: u32 = 20; +pub const CAP_SYS_ADMIN: u32 = 21; +pub const CAP_SYS_BOOT: u32 = 22; +pub const CAP_SYS_NICE: u32 = 23; +pub const CAP_SYS_RESOURCE: u32 = 24; +pub const CAP_SYS_TIME: u32 = 25; +pub const CAP_SYS_TTY_CONFIG: u32 = 26; +pub const CAP_MKNOD: u32 = 27; +pub const CAP_LEASE: u32 = 28; +pub const CAP_AUDIT_WRITE: u32 = 29; +pub const CAP_AUDIT_CONTROL: u32 = 30; +pub const CAP_SETFCAP: u32 = 31; +pub const CAP_MAC_OVERRIDE: u32 = 32; +pub const CAP_MAC_ADMIN: u32 = 33; +pub const CAP_SYSLOG: u32 = 34; +pub const CAP_WAKE_ALARM: u32 = 35; +pub const CAP_BLOCK_SUSPEND: u32 = 36; +pub const CAP_AUDIT_READ: u32 = 37; +pub const CAP_PERFMON: u32 = 38; +pub const CAP_BPF: u32 = 39; +pub const CAP_CHECKPOINT_RESTORE: u32 = 40; +pub const CAP_LAST_CAP: u32 = 40; +pub const O_ACCMODE: u32 = 3; +pub const O_RDONLY: u32 = 0; +pub const O_WRONLY: u32 = 1; +pub const O_RDWR: u32 = 2; +pub const O_CREAT: u32 = 64; +pub const O_EXCL: u32 = 128; +pub const O_NOCTTY: u32 = 256; +pub const O_TRUNC: u32 = 512; +pub const O_APPEND: u32 = 1024; +pub const O_NONBLOCK: u32 = 2048; +pub const O_DSYNC: u32 = 4096; +pub const FASYNC: u32 = 8192; +pub const O_DIRECT: u32 = 16384; +pub const O_LARGEFILE: u32 = 32768; +pub const O_DIRECTORY: u32 = 65536; +pub const O_NOFOLLOW: u32 = 131072; +pub const O_NOATIME: u32 = 262144; +pub const O_CLOEXEC: u32 = 524288; +pub const __O_SYNC: u32 = 1048576; +pub const O_SYNC: u32 = 1052672; +pub const O_PATH: u32 = 2097152; +pub const __O_TMPFILE: u32 = 4194304; +pub const O_TMPFILE: u32 = 4259840; +pub const O_NDELAY: u32 = 2048; +pub const F_DUPFD: u32 = 0; +pub const F_GETFD: u32 = 1; +pub const F_SETFD: u32 = 2; +pub const F_GETFL: u32 = 3; +pub const F_SETFL: u32 = 4; +pub const F_GETLK: u32 = 5; +pub const F_SETLK: u32 = 6; +pub const F_SETLKW: u32 = 7; +pub const F_SETOWN: u32 = 8; +pub const F_GETOWN: u32 = 9; +pub const F_SETSIG: u32 = 10; +pub const F_GETSIG: u32 = 11; +pub const F_GETLK64: u32 = 12; +pub const F_SETLK64: u32 = 13; +pub const F_SETLKW64: u32 = 14; +pub const F_SETOWN_EX: u32 = 15; +pub const F_GETOWN_EX: u32 = 16; +pub const F_GETOWNER_UIDS: u32 = 17; +pub const F_OFD_GETLK: u32 = 36; +pub const F_OFD_SETLK: u32 = 37; +pub const F_OFD_SETLKW: u32 = 38; +pub const F_OWNER_TID: u32 = 0; +pub const F_OWNER_PID: u32 = 1; +pub const F_OWNER_PGRP: u32 = 2; +pub const FD_CLOEXEC: u32 = 1; +pub const F_RDLCK: u32 = 0; +pub const F_WRLCK: u32 = 1; +pub const F_UNLCK: u32 = 2; +pub const F_EXLCK: u32 = 4; +pub const F_SHLCK: u32 = 8; +pub const LOCK_SH: u32 = 1; +pub const LOCK_EX: u32 = 2; +pub const LOCK_NB: u32 = 4; +pub const LOCK_UN: u32 = 8; +pub const LOCK_MAND: u32 = 32; +pub const LOCK_READ: u32 = 64; +pub const LOCK_WRITE: u32 = 128; +pub const LOCK_RW: u32 = 192; +pub const F_LINUX_SPECIFIC_BASE: u32 = 1024; +pub const RESOLVE_NO_XDEV: u32 = 1; +pub const RESOLVE_NO_MAGICLINKS: u32 = 2; +pub const RESOLVE_NO_SYMLINKS: u32 = 4; +pub const RESOLVE_BENEATH: u32 = 8; +pub const RESOLVE_IN_ROOT: u32 = 16; +pub const RESOLVE_CACHED: u32 = 32; +pub const F_SETLEASE: u32 = 1024; +pub const F_GETLEASE: u32 = 1025; +pub const F_NOTIFY: u32 = 1026; +pub const F_DUPFD_QUERY: u32 = 1027; +pub const F_CREATED_QUERY: u32 = 1028; +pub const F_CANCELLK: u32 = 1029; +pub const F_DUPFD_CLOEXEC: u32 = 1030; +pub const F_SETPIPE_SZ: u32 = 1031; +pub const F_GETPIPE_SZ: u32 = 1032; +pub const F_ADD_SEALS: u32 = 1033; +pub const F_GET_SEALS: u32 = 1034; +pub const F_SEAL_SEAL: u32 = 1; +pub const F_SEAL_SHRINK: u32 = 2; +pub const F_SEAL_GROW: u32 = 4; +pub const F_SEAL_WRITE: u32 = 8; +pub const F_SEAL_FUTURE_WRITE: u32 = 16; +pub const F_SEAL_EXEC: u32 = 32; +pub const F_GET_RW_HINT: u32 = 1035; +pub const F_SET_RW_HINT: u32 = 1036; +pub const F_GET_FILE_RW_HINT: u32 = 1037; +pub const F_SET_FILE_RW_HINT: u32 = 1038; +pub const RWH_WRITE_LIFE_NOT_SET: u32 = 0; +pub const RWH_WRITE_LIFE_NONE: u32 = 1; +pub const RWH_WRITE_LIFE_SHORT: u32 = 2; +pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; +pub const RWH_WRITE_LIFE_LONG: u32 = 4; +pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; +pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const DN_ACCESS: u32 = 1; +pub const DN_MODIFY: u32 = 2; +pub const DN_CREATE: u32 = 4; +pub const DN_DELETE: u32 = 8; +pub const DN_RENAME: u32 = 16; +pub const DN_ATTRIB: u32 = 32; +pub const DN_MULTISHOT: u32 = 2147483648; +pub const AT_FDCWD: i32 = -100; +pub const AT_SYMLINK_NOFOLLOW: u32 = 256; +pub const AT_SYMLINK_FOLLOW: u32 = 1024; +pub const AT_NO_AUTOMOUNT: u32 = 2048; +pub const AT_EMPTY_PATH: u32 = 4096; +pub const AT_STATX_SYNC_TYPE: u32 = 24576; +pub const AT_STATX_SYNC_AS_STAT: u32 = 0; +pub const AT_STATX_FORCE_SYNC: u32 = 8192; +pub const AT_STATX_DONT_SYNC: u32 = 16384; +pub const AT_RECURSIVE: u32 = 32768; +pub const AT_RENAME_NOREPLACE: u32 = 1; +pub const AT_RENAME_EXCHANGE: u32 = 2; +pub const AT_RENAME_WHITEOUT: u32 = 4; +pub const AT_EACCESS: u32 = 512; +pub const AT_REMOVEDIR: u32 = 512; +pub const AT_HANDLE_FID: u32 = 512; +pub const AT_HANDLE_MNT_ID_UNIQUE: u32 = 1; +pub const AT_HANDLE_CONNECTABLE: u32 = 2; +pub const AT_EXECVE_CHECK: u32 = 65536; +pub const EPOLL_CLOEXEC: u32 = 524288; +pub const EPOLL_CTL_ADD: u32 = 1; +pub const EPOLL_CTL_DEL: u32 = 2; +pub const EPOLL_CTL_MOD: u32 = 3; +pub const EPOLL_IOC_TYPE: u32 = 138; +pub const POSIX_FADV_NORMAL: u32 = 0; +pub const POSIX_FADV_RANDOM: u32 = 1; +pub const POSIX_FADV_SEQUENTIAL: u32 = 2; +pub const POSIX_FADV_WILLNEED: u32 = 3; +pub const POSIX_FADV_DONTNEED: u32 = 4; +pub const POSIX_FADV_NOREUSE: u32 = 5; +pub const FALLOC_FL_ALLOCATE_RANGE: u32 = 0; +pub const FALLOC_FL_KEEP_SIZE: u32 = 1; +pub const FALLOC_FL_PUNCH_HOLE: u32 = 2; +pub const FALLOC_FL_NO_HIDE_STALE: u32 = 4; +pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8; +pub const FALLOC_FL_ZERO_RANGE: u32 = 16; +pub const FALLOC_FL_INSERT_RANGE: u32 = 32; +pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64; +pub const NR_OPEN: u32 = 1024; +pub const NGROUPS_MAX: u32 = 65536; +pub const ARG_MAX: u32 = 131072; +pub const LINK_MAX: u32 = 127; +pub const MAX_CANON: u32 = 255; +pub const MAX_INPUT: u32 = 255; +pub const NAME_MAX: u32 = 255; +pub const PATH_MAX: u32 = 4096; +pub const PIPE_BUF: u32 = 4096; +pub const XATTR_NAME_MAX: u32 = 255; +pub const XATTR_SIZE_MAX: u32 = 65536; +pub const XATTR_LIST_MAX: u32 = 65536; +pub const RTSIG_MAX: u32 = 32; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_SIZEBITS: u32 = 14; +pub const _IOC_DIRBITS: u32 = 2; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 16383; +pub const _IOC_DIRMASK: u32 = 3; +pub const _IOC_NRSHIFT: u32 = 0; +pub const _IOC_TYPESHIFT: u32 = 8; +pub const _IOC_SIZESHIFT: u32 = 16; +pub const _IOC_DIRSHIFT: u32 = 30; +pub const _IOC_NONE: u32 = 0; +pub const _IOC_WRITE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const IOC_IN: u32 = 1073741824; +pub const IOC_OUT: u32 = 2147483648; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 1073676288; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; +pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; +pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; +pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; +pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; +pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; +pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; +pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; +pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; +pub const FSCRYPT_POLICY_V1: u32 = 0; +pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; +pub const FSCRYPT_POLICY_V2: u32 = 2; +pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; +pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; +pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; +pub const FSCRYPT_ADD_KEY_FLAG_HW_WRAPPED: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; +pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; +pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; +pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; +pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; +pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FS_POLICY_FLAGS_VALID: u32 = 7; +pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; +pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; +pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; +pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; +pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; +pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; +pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; +pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; +pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FS_MAX_KEY_SIZE: u32 = 64; +pub const MS_RDONLY: u32 = 1; +pub const MS_NOSUID: u32 = 2; +pub const MS_NODEV: u32 = 4; +pub const MS_NOEXEC: u32 = 8; +pub const MS_SYNCHRONOUS: u32 = 16; +pub const MS_REMOUNT: u32 = 32; +pub const MS_MANDLOCK: u32 = 64; +pub const MS_DIRSYNC: u32 = 128; +pub const MS_NOSYMFOLLOW: u32 = 256; +pub const MS_NOATIME: u32 = 1024; +pub const MS_NODIRATIME: u32 = 2048; +pub const MS_BIND: u32 = 4096; +pub const MS_MOVE: u32 = 8192; +pub const MS_REC: u32 = 16384; +pub const MS_VERBOSE: u32 = 32768; +pub const MS_SILENT: u32 = 32768; +pub const MS_POSIXACL: u32 = 65536; +pub const MS_UNBINDABLE: u32 = 131072; +pub const MS_PRIVATE: u32 = 262144; +pub const MS_SLAVE: u32 = 524288; +pub const MS_SHARED: u32 = 1048576; +pub const MS_RELATIME: u32 = 2097152; +pub const MS_KERNMOUNT: u32 = 4194304; +pub const MS_I_VERSION: u32 = 8388608; +pub const MS_STRICTATIME: u32 = 16777216; +pub const MS_LAZYTIME: u32 = 33554432; +pub const MS_SUBMOUNT: u32 = 67108864; +pub const MS_NOREMOTELOCK: u32 = 134217728; +pub const MS_NOSEC: u32 = 268435456; +pub const MS_BORN: u32 = 536870912; +pub const MS_ACTIVE: u32 = 1073741824; +pub const MS_NOUSER: u32 = 2147483648; +pub const MS_RMT_MASK: u32 = 41943121; +pub const MS_MGC_VAL: u32 = 3236757504; +pub const MS_MGC_MSK: u32 = 4294901760; +pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_CLOEXEC: u32 = 524288; +pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; +pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; +pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; +pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; +pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; +pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; +pub const MOVE_MOUNT_SET_GROUP: u32 = 256; +pub const MOVE_MOUNT_BENEATH: u32 = 512; +pub const MOVE_MOUNT__MASK: u32 = 887; +pub const FSOPEN_CLOEXEC: u32 = 1; +pub const FSPICK_CLOEXEC: u32 = 1; +pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; +pub const FSPICK_NO_AUTOMOUNT: u32 = 4; +pub const FSPICK_EMPTY_PATH: u32 = 8; +pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const MOUNT_ATTR_RDONLY: u32 = 1; +pub const MOUNT_ATTR_NOSUID: u32 = 2; +pub const MOUNT_ATTR_NODEV: u32 = 4; +pub const MOUNT_ATTR_NOEXEC: u32 = 8; +pub const MOUNT_ATTR__ATIME: u32 = 112; +pub const MOUNT_ATTR_RELATIME: u32 = 0; +pub const MOUNT_ATTR_NOATIME: u32 = 16; +pub const MOUNT_ATTR_STRICTATIME: u32 = 32; +pub const MOUNT_ATTR_NODIRATIME: u32 = 128; +pub const MOUNT_ATTR_IDMAP: u32 = 1048576; +pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; +pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; +pub const MNT_ID_REQ_SIZE_VER0: u32 = 24; +pub const MNT_ID_REQ_SIZE_VER1: u32 = 32; +pub const STATMOUNT_SB_BASIC: u32 = 1; +pub const STATMOUNT_MNT_BASIC: u32 = 2; +pub const STATMOUNT_PROPAGATE_FROM: u32 = 4; +pub const STATMOUNT_MNT_ROOT: u32 = 8; +pub const STATMOUNT_MNT_POINT: u32 = 16; +pub const STATMOUNT_FS_TYPE: u32 = 32; +pub const STATMOUNT_MNT_NS_ID: u32 = 64; +pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; +pub const STATMOUNT_SUPPORTED_MASK: u32 = 4096; +pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; +pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; +pub const LSMT_ROOT: i32 = -1; +pub const LISTMOUNT_REVERSE: u32 = 1; +pub const INR_OPEN_CUR: u32 = 1024; +pub const INR_OPEN_MAX: u32 = 4096; +pub const BLOCK_SIZE_BITS: u32 = 10; +pub const BLOCK_SIZE: u32 = 1024; +pub const IO_INTEGRITY_CHK_GUARD: u32 = 1; +pub const IO_INTEGRITY_CHK_REFTAG: u32 = 2; +pub const IO_INTEGRITY_CHK_APPTAG: u32 = 4; +pub const IO_INTEGRITY_VALID_FLAGS: u32 = 7; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const SEEK_DATA: u32 = 3; +pub const SEEK_HOLE: u32 = 4; +pub const SEEK_MAX: u32 = 4; +pub const RENAME_NOREPLACE: u32 = 1; +pub const RENAME_EXCHANGE: u32 = 2; +pub const RENAME_WHITEOUT: u32 = 4; +pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; +pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; +pub const NR_FILE: u32 = 8192; +pub const FS_XFLAG_REALTIME: u32 = 1; +pub const FS_XFLAG_PREALLOC: u32 = 2; +pub const FS_XFLAG_IMMUTABLE: u32 = 8; +pub const FS_XFLAG_APPEND: u32 = 16; +pub const FS_XFLAG_SYNC: u32 = 32; +pub const FS_XFLAG_NOATIME: u32 = 64; +pub const FS_XFLAG_NODUMP: u32 = 128; +pub const FS_XFLAG_RTINHERIT: u32 = 256; +pub const FS_XFLAG_PROJINHERIT: u32 = 512; +pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; +pub const FS_XFLAG_EXTSIZE: u32 = 2048; +pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; +pub const FS_XFLAG_NODEFRAG: u32 = 8192; +pub const FS_XFLAG_FILESTREAM: u32 = 16384; +pub const FS_XFLAG_DAX: u32 = 32768; +pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_HASATTR: u32 = 2147483648; +pub const BMAP_IOCTL: u32 = 1; +pub const FSLABEL_MAX: u32 = 256; +pub const FS_SECRM_FL: u32 = 1; +pub const FS_UNRM_FL: u32 = 2; +pub const FS_COMPR_FL: u32 = 4; +pub const FS_SYNC_FL: u32 = 8; +pub const FS_IMMUTABLE_FL: u32 = 16; +pub const FS_APPEND_FL: u32 = 32; +pub const FS_NODUMP_FL: u32 = 64; +pub const FS_NOATIME_FL: u32 = 128; +pub const FS_DIRTY_FL: u32 = 256; +pub const FS_COMPRBLK_FL: u32 = 512; +pub const FS_NOCOMP_FL: u32 = 1024; +pub const FS_ENCRYPT_FL: u32 = 2048; +pub const FS_BTREE_FL: u32 = 4096; +pub const FS_INDEX_FL: u32 = 4096; +pub const FS_IMAGIC_FL: u32 = 8192; +pub const FS_JOURNAL_DATA_FL: u32 = 16384; +pub const FS_NOTAIL_FL: u32 = 32768; +pub const FS_DIRSYNC_FL: u32 = 65536; +pub const FS_TOPDIR_FL: u32 = 131072; +pub const FS_HUGE_FILE_FL: u32 = 262144; +pub const FS_EXTENT_FL: u32 = 524288; +pub const FS_VERITY_FL: u32 = 1048576; +pub const FS_EA_INODE_FL: u32 = 2097152; +pub const FS_EOFBLOCKS_FL: u32 = 4194304; +pub const FS_NOCOW_FL: u32 = 8388608; +pub const FS_DAX_FL: u32 = 33554432; +pub const FS_INLINE_DATA_FL: u32 = 268435456; +pub const FS_PROJINHERIT_FL: u32 = 536870912; +pub const FS_CASEFOLD_FL: u32 = 1073741824; +pub const FS_RESERVED_FL: u32 = 2147483648; +pub const FS_FL_USER_VISIBLE: u32 = 253951; +pub const FS_FL_USER_MODIFIABLE: u32 = 229631; +pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; +pub const SYNC_FILE_RANGE_WRITE: u32 = 2; +pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; +pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; +pub const PROCFS_IOCTL_MAGIC: u8 = 102u8; +pub const PAGE_IS_WPALLOWED: u32 = 1; +pub const PAGE_IS_WRITTEN: u32 = 2; +pub const PAGE_IS_FILE: u32 = 4; +pub const PAGE_IS_PRESENT: u32 = 8; +pub const PAGE_IS_SWAPPED: u32 = 16; +pub const PAGE_IS_PFNZERO: u32 = 32; +pub const PAGE_IS_HUGE: u32 = 64; +pub const PAGE_IS_SOFT_DIRTY: u32 = 128; +pub const PAGE_IS_GUARD: u32 = 256; +pub const PM_SCAN_WP_MATCHING: u32 = 1; +pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FUTEX_WAIT: u32 = 0; +pub const FUTEX_WAKE: u32 = 1; +pub const FUTEX_FD: u32 = 2; +pub const FUTEX_REQUEUE: u32 = 3; +pub const FUTEX_CMP_REQUEUE: u32 = 4; +pub const FUTEX_WAKE_OP: u32 = 5; +pub const FUTEX_LOCK_PI: u32 = 6; +pub const FUTEX_UNLOCK_PI: u32 = 7; +pub const FUTEX_TRYLOCK_PI: u32 = 8; +pub const FUTEX_WAIT_BITSET: u32 = 9; +pub const FUTEX_WAKE_BITSET: u32 = 10; +pub const FUTEX_WAIT_REQUEUE_PI: u32 = 11; +pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; +pub const FUTEX_LOCK_PI2: u32 = 13; +pub const FUTEX_PRIVATE_FLAG: u32 = 128; +pub const FUTEX_CLOCK_REALTIME: u32 = 256; +pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_WAIT_PRIVATE: u32 = 128; +pub const FUTEX_WAKE_PRIVATE: u32 = 129; +pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; +pub const FUTEX_CMP_REQUEUE_PRIVATE: u32 = 132; +pub const FUTEX_WAKE_OP_PRIVATE: u32 = 133; +pub const FUTEX_LOCK_PI_PRIVATE: u32 = 134; +pub const FUTEX_LOCK_PI2_PRIVATE: u32 = 141; +pub const FUTEX_UNLOCK_PI_PRIVATE: u32 = 135; +pub const FUTEX_TRYLOCK_PI_PRIVATE: u32 = 136; +pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; +pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; +pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; +pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX2_SIZE_U8: u32 = 0; +pub const FUTEX2_SIZE_U16: u32 = 1; +pub const FUTEX2_SIZE_U32: u32 = 2; +pub const FUTEX2_SIZE_U64: u32 = 3; +pub const FUTEX2_NUMA: u32 = 4; +pub const FUTEX2_MPOL: u32 = 8; +pub const FUTEX2_PRIVATE: u32 = 128; +pub const FUTEX2_SIZE_MASK: u32 = 3; +pub const FUTEX_32: u32 = 2; +pub const FUTEX_NO_NODE: i32 = -1; +pub const FUTEX_WAITV_MAX: u32 = 128; +pub const FUTEX_WAITERS: u32 = 2147483648; +pub const FUTEX_OWNER_DIED: u32 = 1073741824; +pub const FUTEX_TID_MASK: u32 = 1073741823; +pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; +pub const FUTEX_OP_SET: u32 = 0; +pub const FUTEX_OP_ADD: u32 = 1; +pub const FUTEX_OP_OR: u32 = 2; +pub const FUTEX_OP_ANDN: u32 = 3; +pub const FUTEX_OP_XOR: u32 = 4; +pub const FUTEX_OP_OPARG_SHIFT: u32 = 8; +pub const FUTEX_OP_CMP_EQ: u32 = 0; +pub const FUTEX_OP_CMP_NE: u32 = 1; +pub const FUTEX_OP_CMP_LT: u32 = 2; +pub const FUTEX_OP_CMP_LE: u32 = 3; +pub const FUTEX_OP_CMP_GT: u32 = 4; +pub const FUTEX_OP_CMP_GE: u32 = 5; +pub const IN_ACCESS: u32 = 1; +pub const IN_MODIFY: u32 = 2; +pub const IN_ATTRIB: u32 = 4; +pub const IN_CLOSE_WRITE: u32 = 8; +pub const IN_CLOSE_NOWRITE: u32 = 16; +pub const IN_OPEN: u32 = 32; +pub const IN_MOVED_FROM: u32 = 64; +pub const IN_MOVED_TO: u32 = 128; +pub const IN_CREATE: u32 = 256; +pub const IN_DELETE: u32 = 512; +pub const IN_DELETE_SELF: u32 = 1024; +pub const IN_MOVE_SELF: u32 = 2048; +pub const IN_UNMOUNT: u32 = 8192; +pub const IN_Q_OVERFLOW: u32 = 16384; +pub const IN_IGNORED: u32 = 32768; +pub const IN_CLOSE: u32 = 24; +pub const IN_MOVE: u32 = 192; +pub const IN_ONLYDIR: u32 = 16777216; +pub const IN_DONT_FOLLOW: u32 = 33554432; +pub const IN_EXCL_UNLINK: u32 = 67108864; +pub const IN_MASK_CREATE: u32 = 268435456; +pub const IN_MASK_ADD: u32 = 536870912; +pub const IN_ISDIR: u32 = 1073741824; +pub const IN_ONESHOT: u32 = 2147483648; +pub const IN_ALL_EVENTS: u32 = 4095; +pub const IN_CLOEXEC: u32 = 524288; +pub const IN_NONBLOCK: u32 = 2048; +pub const ADFS_SUPER_MAGIC: u32 = 44533; +pub const AFFS_SUPER_MAGIC: u32 = 44543; +pub const AFS_SUPER_MAGIC: u32 = 1397113167; +pub const AUTOFS_SUPER_MAGIC: u32 = 391; +pub const CEPH_SUPER_MAGIC: u32 = 12805120; +pub const CODA_SUPER_MAGIC: u32 = 1937076805; +pub const CRAMFS_MAGIC: u32 = 684539205; +pub const CRAMFS_MAGIC_WEND: u32 = 1161678120; +pub const DEBUGFS_MAGIC: u32 = 1684170528; +pub const SECURITYFS_MAGIC: u32 = 1935894131; +pub const SELINUX_MAGIC: u32 = 4185718668; +pub const SMACK_MAGIC: u32 = 1128357203; +pub const RAMFS_MAGIC: u32 = 2240043254; +pub const TMPFS_MAGIC: u32 = 16914836; +pub const HUGETLBFS_MAGIC: u32 = 2508478710; +pub const SQUASHFS_MAGIC: u32 = 1936814952; +pub const ECRYPTFS_SUPER_MAGIC: u32 = 61791; +pub const EFS_SUPER_MAGIC: u32 = 4278867; +pub const EROFS_SUPER_MAGIC_V1: u32 = 3774210530; +pub const EXT2_SUPER_MAGIC: u32 = 61267; +pub const EXT3_SUPER_MAGIC: u32 = 61267; +pub const XENFS_SUPER_MAGIC: u32 = 2881100148; +pub const EXT4_SUPER_MAGIC: u32 = 61267; +pub const BTRFS_SUPER_MAGIC: u32 = 2435016766; +pub const NILFS_SUPER_MAGIC: u32 = 13364; +pub const F2FS_SUPER_MAGIC: u32 = 4076150800; +pub const HPFS_SUPER_MAGIC: u32 = 4187351113; +pub const ISOFS_SUPER_MAGIC: u32 = 38496; +pub const JFFS2_SUPER_MAGIC: u32 = 29366; +pub const XFS_SUPER_MAGIC: u32 = 1481003842; +pub const PSTOREFS_MAGIC: u32 = 1634035564; +pub const EFIVARFS_MAGIC: u32 = 3730735588; +pub const HOSTFS_SUPER_MAGIC: u32 = 12648430; +pub const OVERLAYFS_SUPER_MAGIC: u32 = 2035054128; +pub const FUSE_SUPER_MAGIC: u32 = 1702057286; +pub const BCACHEFS_SUPER_MAGIC: u32 = 3393526350; +pub const MINIX_SUPER_MAGIC: u32 = 4991; +pub const MINIX_SUPER_MAGIC2: u32 = 5007; +pub const MINIX2_SUPER_MAGIC: u32 = 9320; +pub const MINIX2_SUPER_MAGIC2: u32 = 9336; +pub const MINIX3_SUPER_MAGIC: u32 = 19802; +pub const MSDOS_SUPER_MAGIC: u32 = 19780; +pub const EXFAT_SUPER_MAGIC: u32 = 538032816; +pub const NCP_SUPER_MAGIC: u32 = 22092; +pub const NFS_SUPER_MAGIC: u32 = 26985; +pub const OCFS2_SUPER_MAGIC: u32 = 1952539503; +pub const OPENPROM_SUPER_MAGIC: u32 = 40865; +pub const QNX4_SUPER_MAGIC: u32 = 47; +pub const QNX6_SUPER_MAGIC: u32 = 1746473250; +pub const AFS_FS_MAGIC: u32 = 1799439955; +pub const REISERFS_SUPER_MAGIC: u32 = 1382369651; +pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9] = b"ReIsErFs\0"; +pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr2Fs\0"; +pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr3Fs\0"; +pub const SMB_SUPER_MAGIC: u32 = 20859; +pub const CIFS_SUPER_MAGIC: u32 = 4283649346; +pub const SMB2_SUPER_MAGIC: u32 = 4266872130; +pub const CGROUP_SUPER_MAGIC: u32 = 2613483; +pub const CGROUP2_SUPER_MAGIC: u32 = 1667723888; +pub const RDTGROUP_SUPER_MAGIC: u32 = 124082209; +pub const STACK_END_MAGIC: u32 = 1470918301; +pub const TRACEFS_MAGIC: u32 = 1953653091; +pub const V9FS_MAGIC: u32 = 16914839; +pub const BDEVFS_MAGIC: u32 = 1650746742; +pub const DAXFS_MAGIC: u32 = 1684300152; +pub const BINFMTFS_MAGIC: u32 = 1112100429; +pub const DEVPTS_SUPER_MAGIC: u32 = 7377; +pub const BINDERFS_SUPER_MAGIC: u32 = 1819242352; +pub const FUTEXFS_SUPER_MAGIC: u32 = 195894762; +pub const PIPEFS_MAGIC: u32 = 1346981957; +pub const PROC_SUPER_MAGIC: u32 = 40864; +pub const SOCKFS_MAGIC: u32 = 1397703499; +pub const SYSFS_MAGIC: u32 = 1650812274; +pub const USBDEVICE_SUPER_MAGIC: u32 = 40866; +pub const MTD_INODE_FS_MAGIC: u32 = 288389204; +pub const ANON_INODE_FS_MAGIC: u32 = 151263540; +pub const BTRFS_TEST_MAGIC: u32 = 1936880249; +pub const NSFS_MAGIC: u32 = 1853056627; +pub const BPF_FS_MAGIC: u32 = 3405662737; +pub const AAFS_MAGIC: u32 = 1513908720; +pub const ZONEFS_MAGIC: u32 = 1515144787; +pub const UDF_SUPER_MAGIC: u32 = 352400198; +pub const DMA_BUF_MAGIC: u32 = 1145913666; +pub const DEVMEM_MAGIC: u32 = 1162691661; +pub const SECRETMEM_MAGIC: u32 = 1397048141; +pub const PID_FS_MAGIC: u32 = 1346978886; +pub const MAP_32BIT: u32 = 64; +pub const MAP_ABOVE4G: u32 = 128; +pub const PROT_READ: u32 = 1; +pub const PROT_WRITE: u32 = 2; +pub const PROT_EXEC: u32 = 4; +pub const PROT_SEM: u32 = 8; +pub const PROT_NONE: u32 = 0; +pub const PROT_GROWSDOWN: u32 = 16777216; +pub const PROT_GROWSUP: u32 = 33554432; +pub const MAP_TYPE: u32 = 15; +pub const MAP_FIXED: u32 = 16; +pub const MAP_ANONYMOUS: u32 = 32; +pub const MAP_POPULATE: u32 = 32768; +pub const MAP_NONBLOCK: u32 = 65536; +pub const MAP_STACK: u32 = 131072; +pub const MAP_HUGETLB: u32 = 262144; +pub const MAP_SYNC: u32 = 524288; +pub const MAP_FIXED_NOREPLACE: u32 = 1048576; +pub const MAP_UNINITIALIZED: u32 = 67108864; +pub const MLOCK_ONFAULT: u32 = 1; +pub const MS_ASYNC: u32 = 1; +pub const MS_INVALIDATE: u32 = 2; +pub const MS_SYNC: u32 = 4; +pub const MADV_NORMAL: u32 = 0; +pub const MADV_RANDOM: u32 = 1; +pub const MADV_SEQUENTIAL: u32 = 2; +pub const MADV_WILLNEED: u32 = 3; +pub const MADV_DONTNEED: u32 = 4; +pub const MADV_FREE: u32 = 8; +pub const MADV_REMOVE: u32 = 9; +pub const MADV_DONTFORK: u32 = 10; +pub const MADV_DOFORK: u32 = 11; +pub const MADV_HWPOISON: u32 = 100; +pub const MADV_SOFT_OFFLINE: u32 = 101; +pub const MADV_MERGEABLE: u32 = 12; +pub const MADV_UNMERGEABLE: u32 = 13; +pub const MADV_HUGEPAGE: u32 = 14; +pub const MADV_NOHUGEPAGE: u32 = 15; +pub const MADV_DONTDUMP: u32 = 16; +pub const MADV_DODUMP: u32 = 17; +pub const MADV_WIPEONFORK: u32 = 18; +pub const MADV_KEEPONFORK: u32 = 19; +pub const MADV_COLD: u32 = 20; +pub const MADV_PAGEOUT: u32 = 21; +pub const MADV_POPULATE_READ: u32 = 22; +pub const MADV_POPULATE_WRITE: u32 = 23; +pub const MADV_DONTNEED_LOCKED: u32 = 24; +pub const MADV_COLLAPSE: u32 = 25; +pub const MADV_GUARD_INSTALL: u32 = 102; +pub const MADV_GUARD_REMOVE: u32 = 103; +pub const MAP_FILE: u32 = 0; +pub const PKEY_UNRESTRICTED: u32 = 0; +pub const PKEY_DISABLE_ACCESS: u32 = 1; +pub const PKEY_DISABLE_WRITE: u32 = 2; +pub const PKEY_ACCESS_MASK: u32 = 3; +pub const MAP_GROWSDOWN: u32 = 256; +pub const MAP_DENYWRITE: u32 = 2048; +pub const MAP_EXECUTABLE: u32 = 4096; +pub const MAP_LOCKED: u32 = 8192; +pub const MAP_NORESERVE: u32 = 16384; +pub const MCL_CURRENT: u32 = 1; +pub const MCL_FUTURE: u32 = 2; +pub const MCL_ONFAULT: u32 = 4; +pub const SHADOW_STACK_SET_TOKEN: u32 = 1; +pub const SHADOW_STACK_SET_MARKER: u32 = 2; +pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; +pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; +pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; +pub const HUGETLB_FLAG_ENCODE_64KB: u32 = 1073741824; +pub const HUGETLB_FLAG_ENCODE_512KB: u32 = 1275068416; +pub const HUGETLB_FLAG_ENCODE_1MB: u32 = 1342177280; +pub const HUGETLB_FLAG_ENCODE_2MB: u32 = 1409286144; +pub const HUGETLB_FLAG_ENCODE_8MB: u32 = 1543503872; +pub const HUGETLB_FLAG_ENCODE_16MB: u32 = 1610612736; +pub const HUGETLB_FLAG_ENCODE_32MB: u32 = 1677721600; +pub const HUGETLB_FLAG_ENCODE_256MB: u32 = 1879048192; +pub const HUGETLB_FLAG_ENCODE_512MB: u32 = 1946157056; +pub const HUGETLB_FLAG_ENCODE_1GB: u32 = 2013265920; +pub const HUGETLB_FLAG_ENCODE_2GB: u32 = 2080374784; +pub const HUGETLB_FLAG_ENCODE_16GB: u32 = 2281701376; +pub const MREMAP_MAYMOVE: u32 = 1; +pub const MREMAP_FIXED: u32 = 2; +pub const MREMAP_DONTUNMAP: u32 = 4; +pub const OVERCOMMIT_GUESS: u32 = 0; +pub const OVERCOMMIT_ALWAYS: u32 = 1; +pub const OVERCOMMIT_NEVER: u32 = 2; +pub const MAP_SHARED: u32 = 1; +pub const MAP_PRIVATE: u32 = 2; +pub const MAP_SHARED_VALIDATE: u32 = 3; +pub const MAP_DROPPABLE: u32 = 8; +pub const MAP_HUGE_SHIFT: u32 = 26; +pub const MAP_HUGE_MASK: u32 = 63; +pub const MAP_HUGE_16KB: u32 = 939524096; +pub const MAP_HUGE_64KB: u32 = 1073741824; +pub const MAP_HUGE_512KB: u32 = 1275068416; +pub const MAP_HUGE_1MB: u32 = 1342177280; +pub const MAP_HUGE_2MB: u32 = 1409286144; +pub const MAP_HUGE_8MB: u32 = 1543503872; +pub const MAP_HUGE_16MB: u32 = 1610612736; +pub const MAP_HUGE_32MB: u32 = 1677721600; +pub const MAP_HUGE_256MB: u32 = 1879048192; +pub const MAP_HUGE_512MB: u32 = 1946157056; +pub const MAP_HUGE_1GB: u32 = 2013265920; +pub const MAP_HUGE_2GB: u32 = 2080374784; +pub const MAP_HUGE_16GB: u32 = 2281701376; +pub const POLLIN: u32 = 1; +pub const POLLPRI: u32 = 2; +pub const POLLOUT: u32 = 4; +pub const POLLERR: u32 = 8; +pub const POLLHUP: u32 = 16; +pub const POLLNVAL: u32 = 32; +pub const POLLRDNORM: u32 = 64; +pub const POLLRDBAND: u32 = 128; +pub const POLLWRNORM: u32 = 256; +pub const POLLWRBAND: u32 = 512; +pub const POLLMSG: u32 = 1024; +pub const POLLREMOVE: u32 = 4096; +pub const POLLRDHUP: u32 = 8192; +pub const GRND_NONBLOCK: u32 = 1; +pub const GRND_RANDOM: u32 = 2; +pub const GRND_INSECURE: u32 = 4; +pub const LINUX_REBOOT_MAGIC1: u32 = 4276215469; +pub const LINUX_REBOOT_MAGIC2: u32 = 672274793; +pub const LINUX_REBOOT_MAGIC2A: u32 = 85072278; +pub const LINUX_REBOOT_MAGIC2B: u32 = 369367448; +pub const LINUX_REBOOT_MAGIC2C: u32 = 537993216; +pub const LINUX_REBOOT_CMD_RESTART: u32 = 19088743; +pub const LINUX_REBOOT_CMD_HALT: u32 = 3454992675; +pub const LINUX_REBOOT_CMD_CAD_ON: u32 = 2309737967; +pub const LINUX_REBOOT_CMD_CAD_OFF: u32 = 0; +pub const LINUX_REBOOT_CMD_POWER_OFF: u32 = 1126301404; +pub const LINUX_REBOOT_CMD_RESTART2: u32 = 2712847316; +pub const LINUX_REBOOT_CMD_SW_SUSPEND: u32 = 3489725666; +pub const LINUX_REBOOT_CMD_KEXEC: u32 = 1163412803; +pub const RUSAGE_SELF: u32 = 0; +pub const RUSAGE_CHILDREN: i32 = -1; +pub const RUSAGE_BOTH: i32 = -2; +pub const RUSAGE_THREAD: u32 = 1; +pub const RLIM64_INFINITY: i32 = -1; +pub const PRIO_MIN: i32 = -20; +pub const PRIO_MAX: u32 = 20; +pub const PRIO_PROCESS: u32 = 0; +pub const PRIO_PGRP: u32 = 1; +pub const PRIO_USER: u32 = 2; +pub const _STK_LIM: u32 = 8388608; +pub const MLOCK_LIMIT: u32 = 8388608; +pub const RLIMIT_CPU: u32 = 0; +pub const RLIMIT_FSIZE: u32 = 1; +pub const RLIMIT_DATA: u32 = 2; +pub const RLIMIT_STACK: u32 = 3; +pub const RLIMIT_CORE: u32 = 4; +pub const RLIMIT_RSS: u32 = 5; +pub const RLIMIT_NPROC: u32 = 6; +pub const RLIMIT_NOFILE: u32 = 7; +pub const RLIMIT_MEMLOCK: u32 = 8; +pub const RLIMIT_AS: u32 = 9; +pub const RLIMIT_LOCKS: u32 = 10; +pub const RLIMIT_SIGPENDING: u32 = 11; +pub const RLIMIT_MSGQUEUE: u32 = 12; +pub const RLIMIT_NICE: u32 = 13; +pub const RLIMIT_RTPRIO: u32 = 14; +pub const RLIMIT_RTTIME: u32 = 15; +pub const RLIM_NLIMITS: u32 = 16; +pub const RLIM_INFINITY: i32 = -1; +pub const CSIGNAL: u32 = 255; +pub const CLONE_VM: u32 = 256; +pub const CLONE_FS: u32 = 512; +pub const CLONE_FILES: u32 = 1024; +pub const CLONE_SIGHAND: u32 = 2048; +pub const CLONE_PIDFD: u32 = 4096; +pub const CLONE_PTRACE: u32 = 8192; +pub const CLONE_VFORK: u32 = 16384; +pub const CLONE_PARENT: u32 = 32768; +pub const CLONE_THREAD: u32 = 65536; +pub const CLONE_NEWNS: u32 = 131072; +pub const CLONE_SYSVSEM: u32 = 262144; +pub const CLONE_SETTLS: u32 = 524288; +pub const CLONE_PARENT_SETTID: u32 = 1048576; +pub const CLONE_CHILD_CLEARTID: u32 = 2097152; +pub const CLONE_DETACHED: u32 = 4194304; +pub const CLONE_UNTRACED: u32 = 8388608; +pub const CLONE_CHILD_SETTID: u32 = 16777216; +pub const CLONE_NEWCGROUP: u32 = 33554432; +pub const CLONE_NEWUTS: u32 = 67108864; +pub const CLONE_NEWIPC: u32 = 134217728; +pub const CLONE_NEWUSER: u32 = 268435456; +pub const CLONE_NEWPID: u32 = 536870912; +pub const CLONE_NEWNET: u32 = 1073741824; +pub const CLONE_IO: u32 = 2147483648; +pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; +pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_NEWTIME: u32 = 128; +pub const CLONE_ARGS_SIZE_VER0: u32 = 64; +pub const CLONE_ARGS_SIZE_VER1: u32 = 80; +pub const CLONE_ARGS_SIZE_VER2: u32 = 88; +pub const SCHED_NORMAL: u32 = 0; +pub const SCHED_FIFO: u32 = 1; +pub const SCHED_RR: u32 = 2; +pub const SCHED_BATCH: u32 = 3; +pub const SCHED_IDLE: u32 = 5; +pub const SCHED_DEADLINE: u32 = 6; +pub const SCHED_EXT: u32 = 7; +pub const SCHED_RESET_ON_FORK: u32 = 1073741824; +pub const SCHED_FLAG_RESET_ON_FORK: u32 = 1; +pub const SCHED_FLAG_RECLAIM: u32 = 2; +pub const SCHED_FLAG_DL_OVERRUN: u32 = 4; +pub const SCHED_FLAG_KEEP_POLICY: u32 = 8; +pub const SCHED_FLAG_KEEP_PARAMS: u32 = 16; +pub const SCHED_FLAG_UTIL_CLAMP_MIN: u32 = 32; +pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; +pub const SCHED_FLAG_KEEP_ALL: u32 = 24; +pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; +pub const SCHED_FLAG_ALL: u32 = 127; +pub const NSIG: u32 = 32; +pub const SIGHUP: u32 = 1; +pub const SIGINT: u32 = 2; +pub const SIGQUIT: u32 = 3; +pub const SIGILL: u32 = 4; +pub const SIGTRAP: u32 = 5; +pub const SIGABRT: u32 = 6; +pub const SIGIOT: u32 = 6; +pub const SIGBUS: u32 = 7; +pub const SIGFPE: u32 = 8; +pub const SIGKILL: u32 = 9; +pub const SIGUSR1: u32 = 10; +pub const SIGSEGV: u32 = 11; +pub const SIGUSR2: u32 = 12; +pub const SIGPIPE: u32 = 13; +pub const SIGALRM: u32 = 14; +pub const SIGTERM: u32 = 15; +pub const SIGSTKFLT: u32 = 16; +pub const SIGCHLD: u32 = 17; +pub const SIGCONT: u32 = 18; +pub const SIGSTOP: u32 = 19; +pub const SIGTSTP: u32 = 20; +pub const SIGTTIN: u32 = 21; +pub const SIGTTOU: u32 = 22; +pub const SIGURG: u32 = 23; +pub const SIGXCPU: u32 = 24; +pub const SIGXFSZ: u32 = 25; +pub const SIGVTALRM: u32 = 26; +pub const SIGPROF: u32 = 27; +pub const SIGWINCH: u32 = 28; +pub const SIGIO: u32 = 29; +pub const SIGPOLL: u32 = 29; +pub const SIGPWR: u32 = 30; +pub const SIGSYS: u32 = 31; +pub const SIGUNUSED: u32 = 31; +pub const SIGRTMIN: u32 = 32; +pub const SA_RESTORER: u32 = 67108864; +pub const MINSIGSTKSZ: u32 = 2048; +pub const SIGSTKSZ: u32 = 8192; +pub const SA_NOCLDSTOP: u32 = 1; +pub const SA_NOCLDWAIT: u32 = 2; +pub const SA_SIGINFO: u32 = 4; +pub const SA_UNSUPPORTED: u32 = 1024; +pub const SA_EXPOSE_TAGBITS: u32 = 2048; +pub const SA_ONSTACK: u32 = 134217728; +pub const SA_RESTART: u32 = 268435456; +pub const SA_NODEFER: u32 = 1073741824; +pub const SA_RESETHAND: u32 = 2147483648; +pub const SA_NOMASK: u32 = 1073741824; +pub const SA_ONESHOT: u32 = 2147483648; +pub const SIG_BLOCK: u32 = 0; +pub const SIG_UNBLOCK: u32 = 1; +pub const SIG_SETMASK: u32 = 2; +pub const SI_MAX_SIZE: u32 = 128; +pub const SI_USER: u32 = 0; +pub const SI_KERNEL: u32 = 128; +pub const SI_QUEUE: i32 = -1; +pub const SI_TIMER: i32 = -2; +pub const SI_MESGQ: i32 = -3; +pub const SI_ASYNCIO: i32 = -4; +pub const SI_SIGIO: i32 = -5; +pub const SI_TKILL: i32 = -6; +pub const SI_DETHREAD: i32 = -7; +pub const SI_ASYNCNL: i32 = -60; +pub const ILL_ILLOPC: u32 = 1; +pub const ILL_ILLOPN: u32 = 2; +pub const ILL_ILLADR: u32 = 3; +pub const ILL_ILLTRP: u32 = 4; +pub const ILL_PRVOPC: u32 = 5; +pub const ILL_PRVREG: u32 = 6; +pub const ILL_COPROC: u32 = 7; +pub const ILL_BADSTK: u32 = 8; +pub const ILL_BADIADDR: u32 = 9; +pub const __ILL_BREAK: u32 = 10; +pub const __ILL_BNDMOD: u32 = 11; +pub const NSIGILL: u32 = 11; +pub const FPE_INTDIV: u32 = 1; +pub const FPE_INTOVF: u32 = 2; +pub const FPE_FLTDIV: u32 = 3; +pub const FPE_FLTOVF: u32 = 4; +pub const FPE_FLTUND: u32 = 5; +pub const FPE_FLTRES: u32 = 6; +pub const FPE_FLTINV: u32 = 7; +pub const FPE_FLTSUB: u32 = 8; +pub const __FPE_DECOVF: u32 = 9; +pub const __FPE_DECDIV: u32 = 10; +pub const __FPE_DECERR: u32 = 11; +pub const __FPE_INVASC: u32 = 12; +pub const __FPE_INVDEC: u32 = 13; +pub const FPE_FLTUNK: u32 = 14; +pub const FPE_CONDTRAP: u32 = 15; +pub const NSIGFPE: u32 = 15; +pub const SEGV_MAPERR: u32 = 1; +pub const SEGV_ACCERR: u32 = 2; +pub const SEGV_BNDERR: u32 = 3; +pub const SEGV_PKUERR: u32 = 4; +pub const SEGV_ACCADI: u32 = 5; +pub const SEGV_ADIDERR: u32 = 6; +pub const SEGV_ADIPERR: u32 = 7; +pub const SEGV_MTEAERR: u32 = 8; +pub const SEGV_MTESERR: u32 = 9; +pub const SEGV_CPERR: u32 = 10; +pub const NSIGSEGV: u32 = 10; +pub const BUS_ADRALN: u32 = 1; +pub const BUS_ADRERR: u32 = 2; +pub const BUS_OBJERR: u32 = 3; +pub const BUS_MCEERR_AR: u32 = 4; +pub const BUS_MCEERR_AO: u32 = 5; +pub const NSIGBUS: u32 = 5; +pub const TRAP_BRKPT: u32 = 1; +pub const TRAP_TRACE: u32 = 2; +pub const TRAP_BRANCH: u32 = 3; +pub const TRAP_HWBKPT: u32 = 4; +pub const TRAP_UNK: u32 = 5; +pub const TRAP_PERF: u32 = 6; +pub const NSIGTRAP: u32 = 6; +pub const TRAP_PERF_FLAG_ASYNC: u32 = 1; +pub const CLD_EXITED: u32 = 1; +pub const CLD_KILLED: u32 = 2; +pub const CLD_DUMPED: u32 = 3; +pub const CLD_TRAPPED: u32 = 4; +pub const CLD_STOPPED: u32 = 5; +pub const CLD_CONTINUED: u32 = 6; +pub const NSIGCHLD: u32 = 6; +pub const POLL_IN: u32 = 1; +pub const POLL_OUT: u32 = 2; +pub const POLL_MSG: u32 = 3; +pub const POLL_ERR: u32 = 4; +pub const POLL_PRI: u32 = 5; +pub const POLL_HUP: u32 = 6; +pub const NSIGPOLL: u32 = 6; +pub const SYS_SECCOMP: u32 = 1; +pub const SYS_USER_DISPATCH: u32 = 2; +pub const NSIGSYS: u32 = 2; +pub const EMT_TAGOVF: u32 = 1; +pub const NSIGEMT: u32 = 1; +pub const SIGEV_SIGNAL: u32 = 0; +pub const SIGEV_NONE: u32 = 1; +pub const SIGEV_THREAD: u32 = 2; +pub const SIGEV_THREAD_ID: u32 = 4; +pub const SIGEV_MAX_SIZE: u32 = 64; +pub const SS_ONSTACK: u32 = 1; +pub const SS_DISABLE: u32 = 2; +pub const SS_AUTODISARM: u32 = 2147483648; +pub const SS_FLAG_BITS: u32 = 2147483648; +pub const S_IFMT: u32 = 61440; +pub const S_IFSOCK: u32 = 49152; +pub const S_IFLNK: u32 = 40960; +pub const S_IFREG: u32 = 32768; +pub const S_IFBLK: u32 = 24576; +pub const S_IFDIR: u32 = 16384; +pub const S_IFCHR: u32 = 8192; +pub const S_IFIFO: u32 = 4096; +pub const S_ISUID: u32 = 2048; +pub const S_ISGID: u32 = 1024; +pub const S_ISVTX: u32 = 512; +pub const S_IRWXU: u32 = 448; +pub const S_IRUSR: u32 = 256; +pub const S_IWUSR: u32 = 128; +pub const S_IXUSR: u32 = 64; +pub const S_IRWXG: u32 = 56; +pub const S_IRGRP: u32 = 32; +pub const S_IWGRP: u32 = 16; +pub const S_IXGRP: u32 = 8; +pub const S_IRWXO: u32 = 7; +pub const S_IROTH: u32 = 4; +pub const S_IWOTH: u32 = 2; +pub const S_IXOTH: u32 = 1; +pub const STATX_TYPE: u32 = 1; +pub const STATX_MODE: u32 = 2; +pub const STATX_NLINK: u32 = 4; +pub const STATX_UID: u32 = 8; +pub const STATX_GID: u32 = 16; +pub const STATX_ATIME: u32 = 32; +pub const STATX_MTIME: u32 = 64; +pub const STATX_CTIME: u32 = 128; +pub const STATX_INO: u32 = 256; +pub const STATX_SIZE: u32 = 512; +pub const STATX_BLOCKS: u32 = 1024; +pub const STATX_BASIC_STATS: u32 = 2047; +pub const STATX_BTIME: u32 = 2048; +pub const STATX_MNT_ID: u32 = 4096; +pub const STATX_DIOALIGN: u32 = 8192; +pub const STATX_MNT_ID_UNIQUE: u32 = 16384; +pub const STATX_SUBVOL: u32 = 32768; +pub const STATX_WRITE_ATOMIC: u32 = 65536; +pub const STATX_DIO_READ_ALIGN: u32 = 131072; +pub const STATX__RESERVED: u32 = 2147483648; +pub const STATX_ALL: u32 = 4095; +pub const STATX_ATTR_COMPRESSED: u32 = 4; +pub const STATX_ATTR_IMMUTABLE: u32 = 16; +pub const STATX_ATTR_APPEND: u32 = 32; +pub const STATX_ATTR_NODUMP: u32 = 64; +pub const STATX_ATTR_ENCRYPTED: u32 = 2048; +pub const STATX_ATTR_AUTOMOUNT: u32 = 4096; +pub const STATX_ATTR_MOUNT_ROOT: u32 = 8192; +pub const STATX_ATTR_VERITY: u32 = 1048576; +pub const STATX_ATTR_DAX: u32 = 2097152; +pub const STATX_ATTR_WRITE_ATOMIC: u32 = 4194304; +pub const IGNBRK: u32 = 1; +pub const BRKINT: u32 = 2; +pub const IGNPAR: u32 = 4; +pub const PARMRK: u32 = 8; +pub const INPCK: u32 = 16; +pub const ISTRIP: u32 = 32; +pub const INLCR: u32 = 64; +pub const IGNCR: u32 = 128; +pub const ICRNL: u32 = 256; +pub const IXANY: u32 = 2048; +pub const OPOST: u32 = 1; +pub const OCRNL: u32 = 8; +pub const ONOCR: u32 = 16; +pub const ONLRET: u32 = 32; +pub const OFILL: u32 = 64; +pub const OFDEL: u32 = 128; +pub const B0: u32 = 0; +pub const B50: u32 = 1; +pub const B75: u32 = 2; +pub const B110: u32 = 3; +pub const B134: u32 = 4; +pub const B150: u32 = 5; +pub const B200: u32 = 6; +pub const B300: u32 = 7; +pub const B600: u32 = 8; +pub const B1200: u32 = 9; +pub const B1800: u32 = 10; +pub const B2400: u32 = 11; +pub const B4800: u32 = 12; +pub const B9600: u32 = 13; +pub const B19200: u32 = 14; +pub const B38400: u32 = 15; +pub const EXTA: u32 = 14; +pub const EXTB: u32 = 15; +pub const ADDRB: u32 = 536870912; +pub const CMSPAR: u32 = 1073741824; +pub const CRTSCTS: u32 = 2147483648; +pub const IBSHIFT: u32 = 16; +pub const TCOOFF: u32 = 0; +pub const TCOON: u32 = 1; +pub const TCIOFF: u32 = 2; +pub const TCION: u32 = 3; +pub const TCIFLUSH: u32 = 0; +pub const TCOFLUSH: u32 = 1; +pub const TCIOFLUSH: u32 = 2; +pub const NCCS: u32 = 19; +pub const VINTR: u32 = 0; +pub const VQUIT: u32 = 1; +pub const VERASE: u32 = 2; +pub const VKILL: u32 = 3; +pub const VEOF: u32 = 4; +pub const VTIME: u32 = 5; +pub const VMIN: u32 = 6; +pub const VSWTC: u32 = 7; +pub const VSTART: u32 = 8; +pub const VSTOP: u32 = 9; +pub const VSUSP: u32 = 10; +pub const VEOL: u32 = 11; +pub const VREPRINT: u32 = 12; +pub const VDISCARD: u32 = 13; +pub const VWERASE: u32 = 14; +pub const VLNEXT: u32 = 15; +pub const VEOL2: u32 = 16; +pub const IUCLC: u32 = 512; +pub const IXON: u32 = 1024; +pub const IXOFF: u32 = 4096; +pub const IMAXBEL: u32 = 8192; +pub const IUTF8: u32 = 16384; +pub const OLCUC: u32 = 2; +pub const ONLCR: u32 = 4; +pub const NLDLY: u32 = 256; +pub const NL0: u32 = 0; +pub const NL1: u32 = 256; +pub const CRDLY: u32 = 1536; +pub const CR0: u32 = 0; +pub const CR1: u32 = 512; +pub const CR2: u32 = 1024; +pub const CR3: u32 = 1536; +pub const TABDLY: u32 = 6144; +pub const TAB0: u32 = 0; +pub const TAB1: u32 = 2048; +pub const TAB2: u32 = 4096; +pub const TAB3: u32 = 6144; +pub const XTABS: u32 = 6144; +pub const BSDLY: u32 = 8192; +pub const BS0: u32 = 0; +pub const BS1: u32 = 8192; +pub const VTDLY: u32 = 16384; +pub const VT0: u32 = 0; +pub const VT1: u32 = 16384; +pub const FFDLY: u32 = 32768; +pub const FF0: u32 = 0; +pub const FF1: u32 = 32768; +pub const CBAUD: u32 = 4111; +pub const CSIZE: u32 = 48; +pub const CS5: u32 = 0; +pub const CS6: u32 = 16; +pub const CS7: u32 = 32; +pub const CS8: u32 = 48; +pub const CSTOPB: u32 = 64; +pub const CREAD: u32 = 128; +pub const PARENB: u32 = 256; +pub const PARODD: u32 = 512; +pub const HUPCL: u32 = 1024; +pub const CLOCAL: u32 = 2048; +pub const CBAUDEX: u32 = 4096; +pub const BOTHER: u32 = 4096; +pub const B57600: u32 = 4097; +pub const B115200: u32 = 4098; +pub const B230400: u32 = 4099; +pub const B460800: u32 = 4100; +pub const B500000: u32 = 4101; +pub const B576000: u32 = 4102; +pub const B921600: u32 = 4103; +pub const B1000000: u32 = 4104; +pub const B1152000: u32 = 4105; +pub const B1500000: u32 = 4106; +pub const B2000000: u32 = 4107; +pub const B2500000: u32 = 4108; +pub const B3000000: u32 = 4109; +pub const B3500000: u32 = 4110; +pub const B4000000: u32 = 4111; +pub const CIBAUD: u32 = 269418496; +pub const ISIG: u32 = 1; +pub const ICANON: u32 = 2; +pub const XCASE: u32 = 4; +pub const ECHO: u32 = 8; +pub const ECHOE: u32 = 16; +pub const ECHOK: u32 = 32; +pub const ECHONL: u32 = 64; +pub const NOFLSH: u32 = 128; +pub const TOSTOP: u32 = 256; +pub const ECHOCTL: u32 = 512; +pub const ECHOPRT: u32 = 1024; +pub const ECHOKE: u32 = 2048; +pub const FLUSHO: u32 = 4096; +pub const PENDIN: u32 = 16384; +pub const IEXTEN: u32 = 32768; +pub const EXTPROC: u32 = 65536; +pub const TCSANOW: u32 = 0; +pub const TCSADRAIN: u32 = 1; +pub const TCSAFLUSH: u32 = 2; +pub const TIOCPKT_DATA: u32 = 0; +pub const TIOCPKT_FLUSHREAD: u32 = 1; +pub const TIOCPKT_FLUSHWRITE: u32 = 2; +pub const TIOCPKT_STOP: u32 = 4; +pub const TIOCPKT_START: u32 = 8; +pub const TIOCPKT_NOSTOP: u32 = 16; +pub const TIOCPKT_DOSTOP: u32 = 32; +pub const TIOCPKT_IOCTL: u32 = 64; +pub const TIOCSER_TEMT: u32 = 1; +pub const NCC: u32 = 8; +pub const TIOCM_LE: u32 = 1; +pub const TIOCM_DTR: u32 = 2; +pub const TIOCM_RTS: u32 = 4; +pub const TIOCM_ST: u32 = 8; +pub const TIOCM_SR: u32 = 16; +pub const TIOCM_CTS: u32 = 32; +pub const TIOCM_CAR: u32 = 64; +pub const TIOCM_RNG: u32 = 128; +pub const TIOCM_DSR: u32 = 256; +pub const TIOCM_CD: u32 = 64; +pub const TIOCM_RI: u32 = 128; +pub const TIOCM_OUT1: u32 = 8192; +pub const TIOCM_OUT2: u32 = 16384; +pub const TIOCM_LOOP: u32 = 32768; +pub const ITIMER_REAL: u32 = 0; +pub const ITIMER_VIRTUAL: u32 = 1; +pub const ITIMER_PROF: u32 = 2; +pub const CLOCK_REALTIME: u32 = 0; +pub const CLOCK_MONOTONIC: u32 = 1; +pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; +pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; +pub const CLOCK_MONOTONIC_RAW: u32 = 4; +pub const CLOCK_REALTIME_COARSE: u32 = 5; +pub const CLOCK_MONOTONIC_COARSE: u32 = 6; +pub const CLOCK_BOOTTIME: u32 = 7; +pub const CLOCK_REALTIME_ALARM: u32 = 8; +pub const CLOCK_BOOTTIME_ALARM: u32 = 9; +pub const CLOCK_SGI_CYCLE: u32 = 10; +pub const CLOCK_TAI: u32 = 11; +pub const MAX_CLOCKS: u32 = 16; +pub const CLOCKS_MASK: u32 = 1; +pub const CLOCKS_MONO: u32 = 1; +pub const TIMER_ABSTIME: u32 = 1; +pub const UIO_FASTIOV: u32 = 8; +pub const UIO_MAXIOV: u32 = 1024; +pub const __X32_SYSCALL_BIT: u32 = 1073741824; +pub const __NR_read: u32 = 1073741824; +pub const __NR_write: u32 = 1073741825; +pub const __NR_open: u32 = 1073741826; +pub const __NR_close: u32 = 1073741827; +pub const __NR_stat: u32 = 1073741828; +pub const __NR_fstat: u32 = 1073741829; +pub const __NR_lstat: u32 = 1073741830; +pub const __NR_poll: u32 = 1073741831; +pub const __NR_lseek: u32 = 1073741832; +pub const __NR_mmap: u32 = 1073741833; +pub const __NR_mprotect: u32 = 1073741834; +pub const __NR_munmap: u32 = 1073741835; +pub const __NR_brk: u32 = 1073741836; +pub const __NR_rt_sigprocmask: u32 = 1073741838; +pub const __NR_pread64: u32 = 1073741841; +pub const __NR_pwrite64: u32 = 1073741842; +pub const __NR_access: u32 = 1073741845; +pub const __NR_pipe: u32 = 1073741846; +pub const __NR_select: u32 = 1073741847; +pub const __NR_sched_yield: u32 = 1073741848; +pub const __NR_mremap: u32 = 1073741849; +pub const __NR_msync: u32 = 1073741850; +pub const __NR_mincore: u32 = 1073741851; +pub const __NR_madvise: u32 = 1073741852; +pub const __NR_shmget: u32 = 1073741853; +pub const __NR_shmat: u32 = 1073741854; +pub const __NR_shmctl: u32 = 1073741855; +pub const __NR_dup: u32 = 1073741856; +pub const __NR_dup2: u32 = 1073741857; +pub const __NR_pause: u32 = 1073741858; +pub const __NR_nanosleep: u32 = 1073741859; +pub const __NR_getitimer: u32 = 1073741860; +pub const __NR_alarm: u32 = 1073741861; +pub const __NR_setitimer: u32 = 1073741862; +pub const __NR_getpid: u32 = 1073741863; +pub const __NR_sendfile: u32 = 1073741864; +pub const __NR_socket: u32 = 1073741865; +pub const __NR_connect: u32 = 1073741866; +pub const __NR_accept: u32 = 1073741867; +pub const __NR_sendto: u32 = 1073741868; +pub const __NR_shutdown: u32 = 1073741872; +pub const __NR_bind: u32 = 1073741873; +pub const __NR_listen: u32 = 1073741874; +pub const __NR_getsockname: u32 = 1073741875; +pub const __NR_getpeername: u32 = 1073741876; +pub const __NR_socketpair: u32 = 1073741877; +pub const __NR_clone: u32 = 1073741880; +pub const __NR_fork: u32 = 1073741881; +pub const __NR_vfork: u32 = 1073741882; +pub const __NR_exit: u32 = 1073741884; +pub const __NR_wait4: u32 = 1073741885; +pub const __NR_kill: u32 = 1073741886; +pub const __NR_uname: u32 = 1073741887; +pub const __NR_semget: u32 = 1073741888; +pub const __NR_semop: u32 = 1073741889; +pub const __NR_semctl: u32 = 1073741890; +pub const __NR_shmdt: u32 = 1073741891; +pub const __NR_msgget: u32 = 1073741892; +pub const __NR_msgsnd: u32 = 1073741893; +pub const __NR_msgrcv: u32 = 1073741894; +pub const __NR_msgctl: u32 = 1073741895; +pub const __NR_fcntl: u32 = 1073741896; +pub const __NR_flock: u32 = 1073741897; +pub const __NR_fsync: u32 = 1073741898; +pub const __NR_fdatasync: u32 = 1073741899; +pub const __NR_truncate: u32 = 1073741900; +pub const __NR_ftruncate: u32 = 1073741901; +pub const __NR_getdents: u32 = 1073741902; +pub const __NR_getcwd: u32 = 1073741903; +pub const __NR_chdir: u32 = 1073741904; +pub const __NR_fchdir: u32 = 1073741905; +pub const __NR_rename: u32 = 1073741906; +pub const __NR_mkdir: u32 = 1073741907; +pub const __NR_rmdir: u32 = 1073741908; +pub const __NR_creat: u32 = 1073741909; +pub const __NR_link: u32 = 1073741910; +pub const __NR_unlink: u32 = 1073741911; +pub const __NR_symlink: u32 = 1073741912; +pub const __NR_readlink: u32 = 1073741913; +pub const __NR_chmod: u32 = 1073741914; +pub const __NR_fchmod: u32 = 1073741915; +pub const __NR_chown: u32 = 1073741916; +pub const __NR_fchown: u32 = 1073741917; +pub const __NR_lchown: u32 = 1073741918; +pub const __NR_umask: u32 = 1073741919; +pub const __NR_gettimeofday: u32 = 1073741920; +pub const __NR_getrlimit: u32 = 1073741921; +pub const __NR_getrusage: u32 = 1073741922; +pub const __NR_sysinfo: u32 = 1073741923; +pub const __NR_times: u32 = 1073741924; +pub const __NR_getuid: u32 = 1073741926; +pub const __NR_syslog: u32 = 1073741927; +pub const __NR_getgid: u32 = 1073741928; +pub const __NR_setuid: u32 = 1073741929; +pub const __NR_setgid: u32 = 1073741930; +pub const __NR_geteuid: u32 = 1073741931; +pub const __NR_getegid: u32 = 1073741932; +pub const __NR_setpgid: u32 = 1073741933; +pub const __NR_getppid: u32 = 1073741934; +pub const __NR_getpgrp: u32 = 1073741935; +pub const __NR_setsid: u32 = 1073741936; +pub const __NR_setreuid: u32 = 1073741937; +pub const __NR_setregid: u32 = 1073741938; +pub const __NR_getgroups: u32 = 1073741939; +pub const __NR_setgroups: u32 = 1073741940; +pub const __NR_setresuid: u32 = 1073741941; +pub const __NR_getresuid: u32 = 1073741942; +pub const __NR_setresgid: u32 = 1073741943; +pub const __NR_getresgid: u32 = 1073741944; +pub const __NR_getpgid: u32 = 1073741945; +pub const __NR_setfsuid: u32 = 1073741946; +pub const __NR_setfsgid: u32 = 1073741947; +pub const __NR_getsid: u32 = 1073741948; +pub const __NR_capget: u32 = 1073741949; +pub const __NR_capset: u32 = 1073741950; +pub const __NR_rt_sigsuspend: u32 = 1073741954; +pub const __NR_utime: u32 = 1073741956; +pub const __NR_mknod: u32 = 1073741957; +pub const __NR_personality: u32 = 1073741959; +pub const __NR_ustat: u32 = 1073741960; +pub const __NR_statfs: u32 = 1073741961; +pub const __NR_fstatfs: u32 = 1073741962; +pub const __NR_sysfs: u32 = 1073741963; +pub const __NR_getpriority: u32 = 1073741964; +pub const __NR_setpriority: u32 = 1073741965; +pub const __NR_sched_setparam: u32 = 1073741966; +pub const __NR_sched_getparam: u32 = 1073741967; +pub const __NR_sched_setscheduler: u32 = 1073741968; +pub const __NR_sched_getscheduler: u32 = 1073741969; +pub const __NR_sched_get_priority_max: u32 = 1073741970; +pub const __NR_sched_get_priority_min: u32 = 1073741971; +pub const __NR_sched_rr_get_interval: u32 = 1073741972; +pub const __NR_mlock: u32 = 1073741973; +pub const __NR_munlock: u32 = 1073741974; +pub const __NR_mlockall: u32 = 1073741975; +pub const __NR_munlockall: u32 = 1073741976; +pub const __NR_vhangup: u32 = 1073741977; +pub const __NR_modify_ldt: u32 = 1073741978; +pub const __NR_pivot_root: u32 = 1073741979; +pub const __NR_prctl: u32 = 1073741981; +pub const __NR_arch_prctl: u32 = 1073741982; +pub const __NR_adjtimex: u32 = 1073741983; +pub const __NR_setrlimit: u32 = 1073741984; +pub const __NR_chroot: u32 = 1073741985; +pub const __NR_sync: u32 = 1073741986; +pub const __NR_acct: u32 = 1073741987; +pub const __NR_settimeofday: u32 = 1073741988; +pub const __NR_mount: u32 = 1073741989; +pub const __NR_umount2: u32 = 1073741990; +pub const __NR_swapon: u32 = 1073741991; +pub const __NR_swapoff: u32 = 1073741992; +pub const __NR_reboot: u32 = 1073741993; +pub const __NR_sethostname: u32 = 1073741994; +pub const __NR_setdomainname: u32 = 1073741995; +pub const __NR_iopl: u32 = 1073741996; +pub const __NR_ioperm: u32 = 1073741997; +pub const __NR_init_module: u32 = 1073741999; +pub const __NR_delete_module: u32 = 1073742000; +pub const __NR_quotactl: u32 = 1073742003; +pub const __NR_getpmsg: u32 = 1073742005; +pub const __NR_putpmsg: u32 = 1073742006; +pub const __NR_afs_syscall: u32 = 1073742007; +pub const __NR_tuxcall: u32 = 1073742008; +pub const __NR_security: u32 = 1073742009; +pub const __NR_gettid: u32 = 1073742010; +pub const __NR_readahead: u32 = 1073742011; +pub const __NR_setxattr: u32 = 1073742012; +pub const __NR_lsetxattr: u32 = 1073742013; +pub const __NR_fsetxattr: u32 = 1073742014; +pub const __NR_getxattr: u32 = 1073742015; +pub const __NR_lgetxattr: u32 = 1073742016; +pub const __NR_fgetxattr: u32 = 1073742017; +pub const __NR_listxattr: u32 = 1073742018; +pub const __NR_llistxattr: u32 = 1073742019; +pub const __NR_flistxattr: u32 = 1073742020; +pub const __NR_removexattr: u32 = 1073742021; +pub const __NR_lremovexattr: u32 = 1073742022; +pub const __NR_fremovexattr: u32 = 1073742023; +pub const __NR_tkill: u32 = 1073742024; +pub const __NR_time: u32 = 1073742025; +pub const __NR_futex: u32 = 1073742026; +pub const __NR_sched_setaffinity: u32 = 1073742027; +pub const __NR_sched_getaffinity: u32 = 1073742028; +pub const __NR_io_destroy: u32 = 1073742031; +pub const __NR_io_getevents: u32 = 1073742032; +pub const __NR_io_cancel: u32 = 1073742034; +pub const __NR_lookup_dcookie: u32 = 1073742036; +pub const __NR_epoll_create: u32 = 1073742037; +pub const __NR_remap_file_pages: u32 = 1073742040; +pub const __NR_getdents64: u32 = 1073742041; +pub const __NR_set_tid_address: u32 = 1073742042; +pub const __NR_restart_syscall: u32 = 1073742043; +pub const __NR_semtimedop: u32 = 1073742044; +pub const __NR_fadvise64: u32 = 1073742045; +pub const __NR_timer_settime: u32 = 1073742047; +pub const __NR_timer_gettime: u32 = 1073742048; +pub const __NR_timer_getoverrun: u32 = 1073742049; +pub const __NR_timer_delete: u32 = 1073742050; +pub const __NR_clock_settime: u32 = 1073742051; +pub const __NR_clock_gettime: u32 = 1073742052; +pub const __NR_clock_getres: u32 = 1073742053; +pub const __NR_clock_nanosleep: u32 = 1073742054; +pub const __NR_exit_group: u32 = 1073742055; +pub const __NR_epoll_wait: u32 = 1073742056; +pub const __NR_epoll_ctl: u32 = 1073742057; +pub const __NR_tgkill: u32 = 1073742058; +pub const __NR_utimes: u32 = 1073742059; +pub const __NR_mbind: u32 = 1073742061; +pub const __NR_set_mempolicy: u32 = 1073742062; +pub const __NR_get_mempolicy: u32 = 1073742063; +pub const __NR_mq_open: u32 = 1073742064; +pub const __NR_mq_unlink: u32 = 1073742065; +pub const __NR_mq_timedsend: u32 = 1073742066; +pub const __NR_mq_timedreceive: u32 = 1073742067; +pub const __NR_mq_getsetattr: u32 = 1073742069; +pub const __NR_add_key: u32 = 1073742072; +pub const __NR_request_key: u32 = 1073742073; +pub const __NR_keyctl: u32 = 1073742074; +pub const __NR_ioprio_set: u32 = 1073742075; +pub const __NR_ioprio_get: u32 = 1073742076; +pub const __NR_inotify_init: u32 = 1073742077; +pub const __NR_inotify_add_watch: u32 = 1073742078; +pub const __NR_inotify_rm_watch: u32 = 1073742079; +pub const __NR_migrate_pages: u32 = 1073742080; +pub const __NR_openat: u32 = 1073742081; +pub const __NR_mkdirat: u32 = 1073742082; +pub const __NR_mknodat: u32 = 1073742083; +pub const __NR_fchownat: u32 = 1073742084; +pub const __NR_futimesat: u32 = 1073742085; +pub const __NR_newfstatat: u32 = 1073742086; +pub const __NR_unlinkat: u32 = 1073742087; +pub const __NR_renameat: u32 = 1073742088; +pub const __NR_linkat: u32 = 1073742089; +pub const __NR_symlinkat: u32 = 1073742090; +pub const __NR_readlinkat: u32 = 1073742091; +pub const __NR_fchmodat: u32 = 1073742092; +pub const __NR_faccessat: u32 = 1073742093; +pub const __NR_pselect6: u32 = 1073742094; +pub const __NR_ppoll: u32 = 1073742095; +pub const __NR_unshare: u32 = 1073742096; +pub const __NR_splice: u32 = 1073742099; +pub const __NR_tee: u32 = 1073742100; +pub const __NR_sync_file_range: u32 = 1073742101; +pub const __NR_utimensat: u32 = 1073742104; +pub const __NR_epoll_pwait: u32 = 1073742105; +pub const __NR_signalfd: u32 = 1073742106; +pub const __NR_timerfd_create: u32 = 1073742107; +pub const __NR_eventfd: u32 = 1073742108; +pub const __NR_fallocate: u32 = 1073742109; +pub const __NR_timerfd_settime: u32 = 1073742110; +pub const __NR_timerfd_gettime: u32 = 1073742111; +pub const __NR_accept4: u32 = 1073742112; +pub const __NR_signalfd4: u32 = 1073742113; +pub const __NR_eventfd2: u32 = 1073742114; +pub const __NR_epoll_create1: u32 = 1073742115; +pub const __NR_dup3: u32 = 1073742116; +pub const __NR_pipe2: u32 = 1073742117; +pub const __NR_inotify_init1: u32 = 1073742118; +pub const __NR_perf_event_open: u32 = 1073742122; +pub const __NR_fanotify_init: u32 = 1073742124; +pub const __NR_fanotify_mark: u32 = 1073742125; +pub const __NR_prlimit64: u32 = 1073742126; +pub const __NR_name_to_handle_at: u32 = 1073742127; +pub const __NR_open_by_handle_at: u32 = 1073742128; +pub const __NR_clock_adjtime: u32 = 1073742129; +pub const __NR_syncfs: u32 = 1073742130; +pub const __NR_setns: u32 = 1073742132; +pub const __NR_getcpu: u32 = 1073742133; +pub const __NR_kcmp: u32 = 1073742136; +pub const __NR_finit_module: u32 = 1073742137; +pub const __NR_sched_setattr: u32 = 1073742138; +pub const __NR_sched_getattr: u32 = 1073742139; +pub const __NR_renameat2: u32 = 1073742140; +pub const __NR_seccomp: u32 = 1073742141; +pub const __NR_getrandom: u32 = 1073742142; +pub const __NR_memfd_create: u32 = 1073742143; +pub const __NR_kexec_file_load: u32 = 1073742144; +pub const __NR_bpf: u32 = 1073742145; +pub const __NR_userfaultfd: u32 = 1073742147; +pub const __NR_membarrier: u32 = 1073742148; +pub const __NR_mlock2: u32 = 1073742149; +pub const __NR_copy_file_range: u32 = 1073742150; +pub const __NR_pkey_mprotect: u32 = 1073742153; +pub const __NR_pkey_alloc: u32 = 1073742154; +pub const __NR_pkey_free: u32 = 1073742155; +pub const __NR_statx: u32 = 1073742156; +pub const __NR_io_pgetevents: u32 = 1073742157; +pub const __NR_rseq: u32 = 1073742158; +pub const __NR_uretprobe: u32 = 1073742159; +pub const __NR_pidfd_send_signal: u32 = 1073742248; +pub const __NR_io_uring_setup: u32 = 1073742249; +pub const __NR_io_uring_enter: u32 = 1073742250; +pub const __NR_io_uring_register: u32 = 1073742251; +pub const __NR_open_tree: u32 = 1073742252; +pub const __NR_move_mount: u32 = 1073742253; +pub const __NR_fsopen: u32 = 1073742254; +pub const __NR_fsconfig: u32 = 1073742255; +pub const __NR_fsmount: u32 = 1073742256; +pub const __NR_fspick: u32 = 1073742257; +pub const __NR_pidfd_open: u32 = 1073742258; +pub const __NR_clone3: u32 = 1073742259; +pub const __NR_close_range: u32 = 1073742260; +pub const __NR_openat2: u32 = 1073742261; +pub const __NR_pidfd_getfd: u32 = 1073742262; +pub const __NR_faccessat2: u32 = 1073742263; +pub const __NR_process_madvise: u32 = 1073742264; +pub const __NR_epoll_pwait2: u32 = 1073742265; +pub const __NR_mount_setattr: u32 = 1073742266; +pub const __NR_quotactl_fd: u32 = 1073742267; +pub const __NR_landlock_create_ruleset: u32 = 1073742268; +pub const __NR_landlock_add_rule: u32 = 1073742269; +pub const __NR_landlock_restrict_self: u32 = 1073742270; +pub const __NR_memfd_secret: u32 = 1073742271; +pub const __NR_process_mrelease: u32 = 1073742272; +pub const __NR_futex_waitv: u32 = 1073742273; +pub const __NR_set_mempolicy_home_node: u32 = 1073742274; +pub const __NR_cachestat: u32 = 1073742275; +pub const __NR_fchmodat2: u32 = 1073742276; +pub const __NR_map_shadow_stack: u32 = 1073742277; +pub const __NR_futex_wake: u32 = 1073742278; +pub const __NR_futex_wait: u32 = 1073742279; +pub const __NR_futex_requeue: u32 = 1073742280; +pub const __NR_statmount: u32 = 1073742281; +pub const __NR_listmount: u32 = 1073742282; +pub const __NR_lsm_get_self_attr: u32 = 1073742283; +pub const __NR_lsm_set_self_attr: u32 = 1073742284; +pub const __NR_lsm_list_modules: u32 = 1073742285; +pub const __NR_mseal: u32 = 1073742286; +pub const __NR_setxattrat: u32 = 1073742287; +pub const __NR_getxattrat: u32 = 1073742288; +pub const __NR_listxattrat: u32 = 1073742289; +pub const __NR_removexattrat: u32 = 1073742290; +pub const __NR_open_tree_attr: u32 = 1073742291; +pub const __NR_rt_sigaction: u32 = 1073742336; +pub const __NR_rt_sigreturn: u32 = 1073742337; +pub const __NR_ioctl: u32 = 1073742338; +pub const __NR_readv: u32 = 1073742339; +pub const __NR_writev: u32 = 1073742340; +pub const __NR_recvfrom: u32 = 1073742341; +pub const __NR_sendmsg: u32 = 1073742342; +pub const __NR_recvmsg: u32 = 1073742343; +pub const __NR_execve: u32 = 1073742344; +pub const __NR_ptrace: u32 = 1073742345; +pub const __NR_rt_sigpending: u32 = 1073742346; +pub const __NR_rt_sigtimedwait: u32 = 1073742347; +pub const __NR_rt_sigqueueinfo: u32 = 1073742348; +pub const __NR_sigaltstack: u32 = 1073742349; +pub const __NR_timer_create: u32 = 1073742350; +pub const __NR_mq_notify: u32 = 1073742351; +pub const __NR_kexec_load: u32 = 1073742352; +pub const __NR_waitid: u32 = 1073742353; +pub const __NR_set_robust_list: u32 = 1073742354; +pub const __NR_get_robust_list: u32 = 1073742355; +pub const __NR_vmsplice: u32 = 1073742356; +pub const __NR_move_pages: u32 = 1073742357; +pub const __NR_preadv: u32 = 1073742358; +pub const __NR_pwritev: u32 = 1073742359; +pub const __NR_rt_tgsigqueueinfo: u32 = 1073742360; +pub const __NR_recvmmsg: u32 = 1073742361; +pub const __NR_sendmmsg: u32 = 1073742362; +pub const __NR_process_vm_readv: u32 = 1073742363; +pub const __NR_process_vm_writev: u32 = 1073742364; +pub const __NR_setsockopt: u32 = 1073742365; +pub const __NR_getsockopt: u32 = 1073742366; +pub const __NR_io_setup: u32 = 1073742367; +pub const __NR_io_submit: u32 = 1073742368; +pub const __NR_execveat: u32 = 1073742369; +pub const __NR_preadv2: u32 = 1073742370; +pub const __NR_pwritev2: u32 = 1073742371; +pub const WNOHANG: u32 = 1; +pub const WUNTRACED: u32 = 2; +pub const WSTOPPED: u32 = 2; +pub const WEXITED: u32 = 4; +pub const WCONTINUED: u32 = 8; +pub const WNOWAIT: u32 = 16777216; +pub const __WNOTHREAD: u32 = 536870912; +pub const __WALL: u32 = 1073741824; +pub const __WCLONE: u32 = 2147483648; +pub const P_ALL: u32 = 0; +pub const P_PID: u32 = 1; +pub const P_PGID: u32 = 2; +pub const P_PIDFD: u32 = 3; +pub const XATTR_CREATE: u32 = 1; +pub const XATTR_REPLACE: u32 = 2; +pub const XATTR_OS2_PREFIX: &[u8; 5] = b"os2.\0"; +pub const XATTR_MAC_OSX_PREFIX: &[u8; 5] = b"osx.\0"; +pub const XATTR_BTRFS_PREFIX: &[u8; 7] = b"btrfs.\0"; +pub const XATTR_HURD_PREFIX: &[u8; 5] = b"gnu.\0"; +pub const XATTR_SECURITY_PREFIX: &[u8; 10] = b"security.\0"; +pub const XATTR_SYSTEM_PREFIX: &[u8; 8] = b"system.\0"; +pub const XATTR_TRUSTED_PREFIX: &[u8; 9] = b"trusted.\0"; +pub const XATTR_USER_PREFIX: &[u8; 6] = b"user.\0"; +pub const XATTR_EVM_SUFFIX: &[u8; 4] = b"evm\0"; +pub const XATTR_NAME_EVM: &[u8; 13] = b"security.evm\0"; +pub const XATTR_IMA_SUFFIX: &[u8; 4] = b"ima\0"; +pub const XATTR_NAME_IMA: &[u8; 13] = b"security.ima\0"; +pub const XATTR_SELINUX_SUFFIX: &[u8; 8] = b"selinux\0"; +pub const XATTR_NAME_SELINUX: &[u8; 17] = b"security.selinux\0"; +pub const XATTR_SMACK_SUFFIX: &[u8; 8] = b"SMACK64\0"; +pub const XATTR_SMACK_IPIN: &[u8; 12] = b"SMACK64IPIN\0"; +pub const XATTR_SMACK_IPOUT: &[u8; 13] = b"SMACK64IPOUT\0"; +pub const XATTR_SMACK_EXEC: &[u8; 12] = b"SMACK64EXEC\0"; +pub const XATTR_SMACK_TRANSMUTE: &[u8; 17] = b"SMACK64TRANSMUTE\0"; +pub const XATTR_SMACK_MMAP: &[u8; 12] = b"SMACK64MMAP\0"; +pub const XATTR_NAME_SMACK: &[u8; 17] = b"security.SMACK64\0"; +pub const XATTR_NAME_SMACKIPIN: &[u8; 21] = b"security.SMACK64IPIN\0"; +pub const XATTR_NAME_SMACKIPOUT: &[u8; 22] = b"security.SMACK64IPOUT\0"; +pub const XATTR_NAME_SMACKEXEC: &[u8; 21] = b"security.SMACK64EXEC\0"; +pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26] = b"security.SMACK64TRANSMUTE\0"; +pub const XATTR_NAME_SMACKMMAP: &[u8; 21] = b"security.SMACK64MMAP\0"; +pub const XATTR_APPARMOR_SUFFIX: &[u8; 9] = b"apparmor\0"; +pub const XATTR_NAME_APPARMOR: &[u8; 18] = b"security.apparmor\0"; +pub const XATTR_CAPS_SUFFIX: &[u8; 11] = b"capability\0"; +pub const XATTR_NAME_CAPS: &[u8; 20] = b"security.capability\0"; +pub const XATTR_BPF_LSM_SUFFIX: &[u8; 5] = b"bpf.\0"; +pub const XATTR_NAME_BPF_LSM: &[u8; 14] = b"security.bpf.\0"; +pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17] = b"posix_acl_access\0"; +pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24] = b"system.posix_acl_access\0"; +pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18] = b"posix_acl_default\0"; +pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25] = b"system.posix_acl_default\0"; +pub const MFD_CLOEXEC: u32 = 1; +pub const MFD_ALLOW_SEALING: u32 = 2; +pub const MFD_HUGETLB: u32 = 4; +pub const MFD_NOEXEC_SEAL: u32 = 8; +pub const MFD_EXEC: u32 = 16; +pub const MFD_HUGE_SHIFT: u32 = 26; +pub const MFD_HUGE_MASK: u32 = 63; +pub const MFD_HUGE_64KB: u32 = 1073741824; +pub const MFD_HUGE_512KB: u32 = 1275068416; +pub const MFD_HUGE_1MB: u32 = 1342177280; +pub const MFD_HUGE_2MB: u32 = 1409286144; +pub const MFD_HUGE_8MB: u32 = 1543503872; +pub const MFD_HUGE_16MB: u32 = 1610612736; +pub const MFD_HUGE_32MB: u32 = 1677721600; +pub const MFD_HUGE_256MB: u32 = 1879048192; +pub const MFD_HUGE_512MB: u32 = 1946157056; +pub const MFD_HUGE_1GB: u32 = 2013265920; +pub const MFD_HUGE_2GB: u32 = 2080374784; +pub const MFD_HUGE_16GB: u32 = 2281701376; +pub const TFD_TIMER_ABSTIME: u32 = 1; +pub const TFD_TIMER_CANCEL_ON_SET: u32 = 2; +pub const TFD_CLOEXEC: u32 = 524288; +pub const TFD_NONBLOCK: u32 = 2048; +pub const USERFAULTFD_IOC: u32 = 170; +pub const _UFFDIO_REGISTER: u32 = 0; +pub const _UFFDIO_UNREGISTER: u32 = 1; +pub const _UFFDIO_WAKE: u32 = 2; +pub const _UFFDIO_COPY: u32 = 3; +pub const _UFFDIO_ZEROPAGE: u32 = 4; +pub const _UFFDIO_MOVE: u32 = 5; +pub const _UFFDIO_WRITEPROTECT: u32 = 6; +pub const _UFFDIO_CONTINUE: u32 = 7; +pub const _UFFDIO_POISON: u32 = 8; +pub const _UFFDIO_API: u32 = 63; +pub const UFFDIO: u32 = 170; +pub const UFFD_EVENT_PAGEFAULT: u32 = 18; +pub const UFFD_EVENT_FORK: u32 = 19; +pub const UFFD_EVENT_REMAP: u32 = 20; +pub const UFFD_EVENT_REMOVE: u32 = 21; +pub const UFFD_EVENT_UNMAP: u32 = 22; +pub const UFFD_PAGEFAULT_FLAG_WRITE: u32 = 1; +pub const UFFD_PAGEFAULT_FLAG_WP: u32 = 2; +pub const UFFD_PAGEFAULT_FLAG_MINOR: u32 = 4; +pub const UFFD_FEATURE_PAGEFAULT_FLAG_WP: u32 = 1; +pub const UFFD_FEATURE_EVENT_FORK: u32 = 2; +pub const UFFD_FEATURE_EVENT_REMAP: u32 = 4; +pub const UFFD_FEATURE_EVENT_REMOVE: u32 = 8; +pub const UFFD_FEATURE_MISSING_HUGETLBFS: u32 = 16; +pub const UFFD_FEATURE_MISSING_SHMEM: u32 = 32; +pub const UFFD_FEATURE_EVENT_UNMAP: u32 = 64; +pub const UFFD_FEATURE_SIGBUS: u32 = 128; +pub const UFFD_FEATURE_THREAD_ID: u32 = 256; +pub const UFFD_FEATURE_MINOR_HUGETLBFS: u32 = 512; +pub const UFFD_FEATURE_MINOR_SHMEM: u32 = 1024; +pub const UFFD_FEATURE_EXACT_ADDRESS: u32 = 2048; +pub const UFFD_FEATURE_WP_HUGETLBFS_SHMEM: u32 = 4096; +pub const UFFD_FEATURE_WP_UNPOPULATED: u32 = 8192; +pub const UFFD_FEATURE_POISON: u32 = 16384; +pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; +pub const UFFD_FEATURE_MOVE: u32 = 65536; +pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const DT_UNKNOWN: u32 = 0; +pub const DT_FIFO: u32 = 1; +pub const DT_CHR: u32 = 2; +pub const DT_DIR: u32 = 4; +pub const DT_BLK: u32 = 6; +pub const DT_REG: u32 = 8; +pub const DT_LNK: u32 = 10; +pub const DT_SOCK: u32 = 12; +pub const STAT_HAVE_NSEC: u32 = 1; +pub const F_OK: u32 = 0; +pub const R_OK: u32 = 4; +pub const W_OK: u32 = 2; +pub const X_OK: u32 = 1; +pub const UTIME_NOW: u32 = 1073741823; +pub const UTIME_OMIT: u32 = 1073741822; +pub const MNT_FORCE: u32 = 1; +pub const MNT_DETACH: u32 = 2; +pub const MNT_EXPIRE: u32 = 4; +pub const UMOUNT_NOFOLLOW: u32 = 8; +pub const UMOUNT_UNUSED: u32 = 2147483648; +pub const STDIN_FILENO: u32 = 0; +pub const STDOUT_FILENO: u32 = 1; +pub const STDERR_FILENO: u32 = 2; +pub const RWF_HIPRI: u32 = 1; +pub const RWF_DSYNC: u32 = 2; +pub const RWF_SYNC: u32 = 4; +pub const RWF_NOWAIT: u32 = 8; +pub const RWF_APPEND: u32 = 16; +pub const EFD_SEMAPHORE: u32 = 1; +pub const EFD_CLOEXEC: u32 = 524288; +pub const EFD_NONBLOCK: u32 = 2048; +pub const EPOLLIN: u32 = 1; +pub const EPOLLPRI: u32 = 2; +pub const EPOLLOUT: u32 = 4; +pub const EPOLLERR: u32 = 8; +pub const EPOLLHUP: u32 = 16; +pub const EPOLLNVAL: u32 = 32; +pub const EPOLLRDNORM: u32 = 64; +pub const EPOLLRDBAND: u32 = 128; +pub const EPOLLWRNORM: u32 = 256; +pub const EPOLLWRBAND: u32 = 512; +pub const EPOLLMSG: u32 = 1024; +pub const EPOLLRDHUP: u32 = 8192; +pub const EPOLLEXCLUSIVE: u32 = 268435456; +pub const EPOLLWAKEUP: u32 = 536870912; +pub const EPOLLONESHOT: u32 = 1073741824; +pub const EPOLLET: u32 = 2147483648; +pub const TFD_SHARED_FCNTL_FLAGS: u32 = 526336; +pub const TFD_CREATE_FLAGS: u32 = 526336; +pub const TFD_SETTIME_FLAGS: u32 = 1; +pub const ARCH_SET_FS: u32 = 4098; +pub const UFFD_API: u32 = 170; +pub const UFFDIO_REGISTER_MODE_MISSING: u32 = 1; +pub const UFFDIO_REGISTER_MODE_WP: u32 = 2; +pub const UFFDIO_REGISTER_MODE_MINOR: u32 = 4; +pub const UFFDIO_COPY_MODE_DONTWAKE: u32 = 1; +pub const UFFDIO_COPY_MODE_WP: u32 = 2; +pub const UFFDIO_ZEROPAGE_MODE_DONTWAKE: u32 = 1; +pub const SPLICE_F_MOVE: u32 = 1; +pub const SPLICE_F_NONBLOCK: u32 = 2; +pub const SPLICE_F_MORE: u32 = 4; +pub const SPLICE_F_GIFT: u32 = 8; +pub const _NSIG: u32 = 64; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum fsconfig_command { +FSCONFIG_SET_FLAG = 0, +FSCONFIG_SET_STRING = 1, +FSCONFIG_SET_BINARY = 2, +FSCONFIG_SET_PATH = 3, +FSCONFIG_SET_PATH_EMPTY = 4, +FSCONFIG_SET_FD = 5, +FSCONFIG_CMD_CREATE = 6, +FSCONFIG_CMD_RECONFIGURE = 7, +FSCONFIG_CMD_CREATE_EXCL = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum procmap_query_flags { +PROCMAP_QUERY_VMA_READABLE = 1, +PROCMAP_QUERY_VMA_WRITABLE = 2, +PROCMAP_QUERY_VMA_EXECUTABLE = 4, +PROCMAP_QUERY_VMA_SHARED = 8, +PROCMAP_QUERY_COVERING_OR_NEXT_VMA = 16, +PROCMAP_QUERY_FILE_BACKED_VMA = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum membarrier_cmd { +MEMBARRIER_CMD_QUERY = 0, +MEMBARRIER_CMD_GLOBAL = 1, +MEMBARRIER_CMD_GLOBAL_EXPEDITED = 2, +MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED = 4, +MEMBARRIER_CMD_PRIVATE_EXPEDITED = 8, +MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED = 16, +MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE = 32, +MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE = 64, +MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ = 128, +MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ = 256, +MEMBARRIER_CMD_GET_REGISTRATIONS = 512, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum membarrier_cmd_flag { +MEMBARRIER_CMD_FLAG_CPU = 1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { +pub version: __u8, +pub v1: fscrypt_policy_v1, +pub v2: fscrypt_policy_v2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_key_specifier__bindgen_ty_1 { +pub __reserved: [__u8; 32usize], +pub descriptor: [__u8; 8usize], +pub identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union sigval { +pub sival_int: crate::ctypes::c_int, +pub sival_ptr: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __sifields { +pub _kill: __sifields__bindgen_ty_1, +pub _timer: __sifields__bindgen_ty_2, +pub _rt: __sifields__bindgen_ty_3, +pub _sigchld: __sifields__bindgen_ty_4, +pub _sigfault: __sifields__bindgen_ty_5, +pub _sigpoll: __sifields__bindgen_ty_6, +pub _sigsys: __sifields__bindgen_ty_7, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __sifields__bindgen_ty_5__bindgen_ty_1 { +pub _trapno: crate::ctypes::c_int, +pub _addr_lsb: crate::ctypes::c_short, +pub _addr_bnd: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, +pub _addr_pkey: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_2, +pub _perf: __sifields__bindgen_ty_5__bindgen_ty_1__bindgen_ty_3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union siginfo__bindgen_ty_1 { +pub __bindgen_anon_1: siginfo__bindgen_ty_1__bindgen_ty_1, +pub _si_pad: [crate::ctypes::c_int; 32usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union sigevent__bindgen_ty_1 { +pub _pad: [crate::ctypes::c_int; 13usize], +pub _tid: crate::ctypes::c_int, +pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union uffd_msg__bindgen_ty_1 { +pub pagefault: uffd_msg__bindgen_ty_1__bindgen_ty_1, +pub fork: uffd_msg__bindgen_ty_1__bindgen_ty_2, +pub remap: uffd_msg__bindgen_ty_1__bindgen_ty_3, +pub remove: uffd_msg__bindgen_ty_1__bindgen_ty_4, +pub reserved: uffd_msg__bindgen_ty_1__bindgen_ty_5, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union uffd_msg__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 { +pub ptid: __u32, +} +impl __BindgenBitfieldUnit { +#[inline] +pub const fn new(storage: Storage) -> Self { +Self { storage } +} +} +impl __BindgenBitfieldUnit +where +Storage: AsRef<[u8]> + AsMut<[u8]>, +{ +#[inline] +fn extract_bit(byte: u8, index: usize) -> bool { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +byte & mask == mask +} +#[inline] +pub fn get_bit(&self, index: usize) -> bool { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = self.storage.as_ref()[byte_index]; +Self::extract_bit(byte, index) +} +#[inline] +pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; +Self::extract_bit(byte, index) +} +#[inline] +fn change_bit(byte: u8, index: usize, val: bool) -> u8 { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +if val { +byte | mask +} else { +byte & !mask +} +} +#[inline] +pub fn set_bit(&mut self, index: usize, val: bool) { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = &mut self.storage.as_mut()[byte_index]; +*byte = Self::change_bit(*byte, index, val); +} +#[inline] +pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; +} +#[inline] +pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if self.get_bit(i + bit_offset) { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +self.set_bit(index + bit_offset, val_bit_is_set); +} +} +#[inline] +pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +} +} +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl membarrier_cmd { +pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD_GLOBAL; +} +impl user_desc { +#[inline] +pub fn seg_32bit(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn contents(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +} +#[inline] +pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 2u8, val as u64) +} +} +#[inline] +pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +} +#[inline] +pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +} +} +#[inline] +pub fn read_exec_only(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +} +#[inline] +pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +} +} +#[inline] +pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +} +#[inline] +pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +} +} +#[inline] +pub fn seg_not_present(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +} +#[inline] +pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(5usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +} +} +#[inline] +pub fn useable(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +} +#[inline] +pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(6usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +} +} +#[inline] +pub fn lm(&self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) } +} +#[inline] +pub fn set_lm(&mut self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(7usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn lm_raw(this: *const Self) -> crate::ctypes::c_uint { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 7usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_lm_raw(this: *mut Self, val: crate::ctypes::c_uint) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 7usize, 1u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint, lm: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; +seg_32bit as u64 +}); +__bindgen_bitfield_unit.set(1usize, 2u8, { +let contents: u32 = unsafe { ::core::mem::transmute(contents) }; +contents as u64 +}); +__bindgen_bitfield_unit.set(3usize, 1u8, { +let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; +read_exec_only as u64 +}); +__bindgen_bitfield_unit.set(4usize, 1u8, { +let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; +limit_in_pages as u64 +}); +__bindgen_bitfield_unit.set(5usize, 1u8, { +let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; +seg_not_present as u64 +}); +__bindgen_bitfield_unit.set(6usize, 1u8, { +let useable: u32 = unsafe { ::core::mem::transmute(useable) }; +useable as u64 +}); +__bindgen_bitfield_unit.set(7usize, 1u8, { +let lm: u32 = unsafe { ::core::mem::transmute(lm) }; +lm as u64 +}); +__bindgen_bitfield_unit +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/if_arp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/if_arp.rs new file mode 100644 index 0000000000000000000000000000000000000000..13f30185672274762eca994ebf095fb2ea9b9d86 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/if_arp.rs @@ -0,0 +1,2791 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_longlong; +pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_sa_family_t = crate::ctypes::c_ushort; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __kernel_sockaddr_storage { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { +pub ss_family: __kernel_sa_family_t, +pub __data: [crate::ctypes::c_char; 126usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sockaddr { +pub __storage: __kernel_sockaddr_storage, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sync_serial_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct te1_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +pub slot_map: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct raw_hdlc_proto { +pub encoding: crate::ctypes::c_ushort, +pub parity: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto { +pub t391: crate::ctypes::c_uint, +pub t392: crate::ctypes::c_uint, +pub n391: crate::ctypes::c_uint, +pub n392: crate::ctypes::c_uint, +pub n393: crate::ctypes::c_uint, +pub lmi: crate::ctypes::c_ushort, +pub dce: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc { +pub dlci: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc_info { +pub dlci: crate::ctypes::c_uint, +pub master: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cisco_proto { +pub interval: crate::ctypes::c_uint, +pub timeout: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct x25_hdlc_proto { +pub dce: crate::ctypes::c_ushort, +pub modulo: crate::ctypes::c_uint, +pub window: crate::ctypes::c_uint, +pub t1: crate::ctypes::c_uint, +pub t2: crate::ctypes::c_uint, +pub n2: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifmap { +pub mem_start: crate::ctypes::c_ulong, +pub mem_end: crate::ctypes::c_ulong, +pub base_addr: crate::ctypes::c_ushort, +pub irq: crate::ctypes::c_uchar, +pub dma: crate::ctypes::c_uchar, +pub port: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct if_settings { +pub type_: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +pub ifs_ifsu: if_settings__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifreq { +pub ifr_ifrn: ifreq__bindgen_ty_1, +pub ifr_ifru: ifreq__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifconf { +pub ifc_len: crate::ctypes::c_int, +pub ifc_ifcu: ifconf__bindgen_ty_1, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct ethhdr { +pub h_dest: [crate::ctypes::c_uchar; 6usize], +pub h_source: [crate::ctypes::c_uchar; 6usize], +pub h_proto: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_pkt { +pub spkt_family: crate::ctypes::c_ushort, +pub spkt_device: [crate::ctypes::c_uchar; 14usize], +pub spkt_protocol: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_ll { +pub sll_family: crate::ctypes::c_ushort, +pub sll_protocol: __be16, +pub sll_ifindex: crate::ctypes::c_int, +pub sll_hatype: crate::ctypes::c_ushort, +pub sll_pkttype: crate::ctypes::c_uchar, +pub sll_halen: crate::ctypes::c_uchar, +pub sll_addr: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats_v3 { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +pub tp_freeze_q_cnt: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_rollover_stats { +pub tp_all: __u64, +pub tp_huge: __u64, +pub tp_failed: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_auxdata { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr { +pub tp_status: crate::ctypes::c_ulong, +pub tp_len: crate::ctypes::c_uint, +pub tp_snaplen: crate::ctypes::c_uint, +pub tp_mac: crate::ctypes::c_ushort, +pub tp_net: crate::ctypes::c_ushort, +pub tp_sec: crate::ctypes::c_uint, +pub tp_usec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket2_hdr { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +pub tp_padding: [__u8; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr_variant1 { +pub tp_rxhash: __u32, +pub tp_vlan_tci: __u32, +pub tp_vlan_tpid: __u16, +pub tp_padding: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket3_hdr { +pub tp_next_offset: __u32, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_snaplen: __u32, +pub tp_len: __u32, +pub tp_status: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub __bindgen_anon_1: tpacket3_hdr__bindgen_ty_1, +pub tp_padding: [__u8; 8usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_bd_ts { +pub ts_sec: crate::ctypes::c_uint, +pub __bindgen_anon_1: tpacket_bd_ts__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_hdr_v1 { +pub block_status: __u32, +pub num_pkts: __u32, +pub offset_to_first_pkt: __u32, +pub blk_len: __u32, +pub seq_num: __u64, +pub ts_first_pkt: tpacket_bd_ts, +pub ts_last_pkt: tpacket_bd_ts, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_block_desc { +pub version: __u32, +pub offset_to_priv: __u32, +pub hdr: tpacket_bd_header_u, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req3 { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +pub tp_retire_blk_tov: crate::ctypes::c_uint, +pub tp_sizeof_priv: crate::ctypes::c_uint, +pub tp_feature_req_word: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct packet_mreq { +pub mr_ifindex: crate::ctypes::c_int, +pub mr_type: crate::ctypes::c_ushort, +pub mr_alen: crate::ctypes::c_ushort, +pub mr_address: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fanout_args { +pub id: __u16, +pub type_flags: __u16, +pub max_num_members: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_nl { +pub nl_family: __kernel_sa_family_t, +pub nl_pad: crate::ctypes::c_ushort, +pub nl_pid: __u32, +pub nl_groups: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsghdr { +pub nlmsg_len: __u32, +pub nlmsg_type: __u16, +pub nlmsg_flags: __u16, +pub nlmsg_seq: __u32, +pub nlmsg_pid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsgerr { +pub error: crate::ctypes::c_int, +pub msg: nlmsghdr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_pktinfo { +pub group: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_req { +pub nm_block_size: crate::ctypes::c_uint, +pub nm_block_nr: crate::ctypes::c_uint, +pub nm_frame_size: crate::ctypes::c_uint, +pub nm_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_hdr { +pub nm_status: crate::ctypes::c_uint, +pub nm_len: crate::ctypes::c_uint, +pub nm_group: __u32, +pub nm_pid: __u32, +pub nm_uid: __u32, +pub nm_gid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlattr { +pub nla_len: __u16, +pub nla_type: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nla_bitfield32 { +pub value: __u32, +pub selector: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats { +pub rx_packets: __u32, +pub tx_packets: __u32, +pub rx_bytes: __u32, +pub tx_bytes: __u32, +pub rx_errors: __u32, +pub tx_errors: __u32, +pub rx_dropped: __u32, +pub tx_dropped: __u32, +pub multicast: __u32, +pub collisions: __u32, +pub rx_length_errors: __u32, +pub rx_over_errors: __u32, +pub rx_crc_errors: __u32, +pub rx_frame_errors: __u32, +pub rx_fifo_errors: __u32, +pub rx_missed_errors: __u32, +pub tx_aborted_errors: __u32, +pub tx_carrier_errors: __u32, +pub tx_fifo_errors: __u32, +pub tx_heartbeat_errors: __u32, +pub tx_window_errors: __u32, +pub rx_compressed: __u32, +pub tx_compressed: __u32, +pub rx_nohandler: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +pub collisions: __u64, +pub rx_length_errors: __u64, +pub rx_over_errors: __u64, +pub rx_crc_errors: __u64, +pub rx_frame_errors: __u64, +pub rx_fifo_errors: __u64, +pub rx_missed_errors: __u64, +pub tx_aborted_errors: __u64, +pub tx_carrier_errors: __u64, +pub tx_fifo_errors: __u64, +pub tx_heartbeat_errors: __u64, +pub tx_window_errors: __u64, +pub rx_compressed: __u64, +pub tx_compressed: __u64, +pub rx_nohandler: __u64, +pub rx_otherhost_dropped: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_hw_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_ifmap { +pub mem_start: __u64, +pub mem_end: __u64, +pub base_addr: __u64, +pub irq: __u16, +pub dma: __u8, +pub port: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_bridge_id { +pub prio: [__u8; 2usize], +pub addr: [__u8; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_cacheinfo { +pub max_reasm_len: __u32, +pub tstamp: __u32, +pub reachable_time: __u32, +pub retrans_time: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_qos_mapping { +pub from: __u32, +pub to: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tunnel_msg { +pub family: __u8, +pub flags: __u8, +pub reserved2: __u16, +pub ifindex: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vxlan_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_geneve_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_mac { +pub vf: __u32, +pub mac: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_broadcast { +pub broadcast: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan_info { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +pub vlan_proto: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_tx_rate { +pub vf: __u32, +pub rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rate { +pub vf: __u32, +pub min_tx_rate: __u32, +pub max_tx_rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_spoofchk { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_guid { +pub vf: __u32, +pub guid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_link_state { +pub vf: __u32, +pub link_state: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rss_query_en { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_trust { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_port_vsi { +pub vsi_mgr_id: __u8, +pub vsi_type_id: [__u8; 3usize], +pub vsi_type_version: __u8, +pub pad: [__u8; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct if_stats_msg { +pub family: __u8, +pub pad1: __u8, +pub pad2: __u16, +pub ifindex: __u32, +pub filter_mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_rmnet_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct arpreq { +pub arp_pa: sockaddr, +pub arp_ha: sockaddr, +pub arp_flags: crate::ctypes::c_int, +pub arp_netmask: sockaddr, +pub arp_dev: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct arpreq_old { +pub arp_pa: sockaddr, +pub arp_ha: sockaddr, +pub arp_flags: crate::ctypes::c_int, +pub arp_netmask: sockaddr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct arphdr { +pub ar_hrd: __be16, +pub ar_pro: __be16, +pub ar_hln: crate::ctypes::c_uchar, +pub ar_pln: crate::ctypes::c_uchar, +pub ar_op: __be16, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _K_SS_MAXSIZE: u32 = 128; +pub const SOCK_SNDBUF_LOCK: u32 = 1; +pub const SOCK_RCVBUF_LOCK: u32 = 2; +pub const SOCK_BUF_LOCK_MASK: u32 = 3; +pub const SOCK_TXREHASH_DEFAULT: u32 = 255; +pub const SOCK_TXREHASH_DISABLED: u32 = 0; +pub const SOCK_TXREHASH_ENABLED: u32 = 1; +pub const IFNAMSIZ: u32 = 16; +pub const IFALIASZ: u32 = 256; +pub const ALTIFNAMSIZ: u32 = 128; +pub const GENERIC_HDLC_VERSION: u32 = 4; +pub const CLOCK_DEFAULT: u32 = 0; +pub const CLOCK_EXT: u32 = 1; +pub const CLOCK_INT: u32 = 2; +pub const CLOCK_TXINT: u32 = 3; +pub const CLOCK_TXFROMRX: u32 = 4; +pub const ENCODING_DEFAULT: u32 = 0; +pub const ENCODING_NRZ: u32 = 1; +pub const ENCODING_NRZI: u32 = 2; +pub const ENCODING_FM_MARK: u32 = 3; +pub const ENCODING_FM_SPACE: u32 = 4; +pub const ENCODING_MANCHESTER: u32 = 5; +pub const PARITY_DEFAULT: u32 = 0; +pub const PARITY_NONE: u32 = 1; +pub const PARITY_CRC16_PR0: u32 = 2; +pub const PARITY_CRC16_PR1: u32 = 3; +pub const PARITY_CRC16_PR0_CCITT: u32 = 4; +pub const PARITY_CRC16_PR1_CCITT: u32 = 5; +pub const PARITY_CRC32_PR0_CCITT: u32 = 6; +pub const PARITY_CRC32_PR1_CCITT: u32 = 7; +pub const LMI_DEFAULT: u32 = 0; +pub const LMI_NONE: u32 = 1; +pub const LMI_ANSI: u32 = 2; +pub const LMI_CCITT: u32 = 3; +pub const LMI_CISCO: u32 = 4; +pub const IF_GET_IFACE: u32 = 1; +pub const IF_GET_PROTO: u32 = 2; +pub const IF_IFACE_V35: u32 = 4096; +pub const IF_IFACE_V24: u32 = 4097; +pub const IF_IFACE_X21: u32 = 4098; +pub const IF_IFACE_T1: u32 = 4099; +pub const IF_IFACE_E1: u32 = 4100; +pub const IF_IFACE_SYNC_SERIAL: u32 = 4101; +pub const IF_IFACE_X21D: u32 = 4102; +pub const IF_PROTO_HDLC: u32 = 8192; +pub const IF_PROTO_PPP: u32 = 8193; +pub const IF_PROTO_CISCO: u32 = 8194; +pub const IF_PROTO_FR: u32 = 8195; +pub const IF_PROTO_FR_ADD_PVC: u32 = 8196; +pub const IF_PROTO_FR_DEL_PVC: u32 = 8197; +pub const IF_PROTO_X25: u32 = 8198; +pub const IF_PROTO_HDLC_ETH: u32 = 8199; +pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200; +pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201; +pub const IF_PROTO_FR_PVC: u32 = 8202; +pub const IF_PROTO_FR_ETH_PVC: u32 = 8203; +pub const IF_PROTO_RAW: u32 = 8204; +pub const IFHWADDRLEN: u32 = 6; +pub const ETH_ALEN: u32 = 6; +pub const ETH_TLEN: u32 = 2; +pub const ETH_HLEN: u32 = 14; +pub const ETH_ZLEN: u32 = 60; +pub const ETH_DATA_LEN: u32 = 1500; +pub const ETH_FRAME_LEN: u32 = 1514; +pub const ETH_FCS_LEN: u32 = 4; +pub const ETH_MIN_MTU: u32 = 68; +pub const ETH_MAX_MTU: u32 = 65535; +pub const ETH_P_LOOP: u32 = 96; +pub const ETH_P_PUP: u32 = 512; +pub const ETH_P_PUPAT: u32 = 513; +pub const ETH_P_TSN: u32 = 8944; +pub const ETH_P_ERSPAN2: u32 = 8939; +pub const ETH_P_IP: u32 = 2048; +pub const ETH_P_X25: u32 = 2053; +pub const ETH_P_ARP: u32 = 2054; +pub const ETH_P_BPQ: u32 = 2303; +pub const ETH_P_IEEEPUP: u32 = 2560; +pub const ETH_P_IEEEPUPAT: u32 = 2561; +pub const ETH_P_BATMAN: u32 = 17157; +pub const ETH_P_DEC: u32 = 24576; +pub const ETH_P_DNA_DL: u32 = 24577; +pub const ETH_P_DNA_RC: u32 = 24578; +pub const ETH_P_DNA_RT: u32 = 24579; +pub const ETH_P_LAT: u32 = 24580; +pub const ETH_P_DIAG: u32 = 24581; +pub const ETH_P_CUST: u32 = 24582; +pub const ETH_P_SCA: u32 = 24583; +pub const ETH_P_TEB: u32 = 25944; +pub const ETH_P_RARP: u32 = 32821; +pub const ETH_P_ATALK: u32 = 32923; +pub const ETH_P_AARP: u32 = 33011; +pub const ETH_P_8021Q: u32 = 33024; +pub const ETH_P_ERSPAN: u32 = 35006; +pub const ETH_P_IPX: u32 = 33079; +pub const ETH_P_IPV6: u32 = 34525; +pub const ETH_P_PAUSE: u32 = 34824; +pub const ETH_P_SLOW: u32 = 34825; +pub const ETH_P_WCCP: u32 = 34878; +pub const ETH_P_MPLS_UC: u32 = 34887; +pub const ETH_P_MPLS_MC: u32 = 34888; +pub const ETH_P_ATMMPOA: u32 = 34892; +pub const ETH_P_PPP_DISC: u32 = 34915; +pub const ETH_P_PPP_SES: u32 = 34916; +pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_ATMFATE: u32 = 34948; +pub const ETH_P_PAE: u32 = 34958; +pub const ETH_P_PROFINET: u32 = 34962; +pub const ETH_P_REALTEK: u32 = 34969; +pub const ETH_P_AOE: u32 = 34978; +pub const ETH_P_ETHERCAT: u32 = 34980; +pub const ETH_P_8021AD: u32 = 34984; +pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_PREAUTH: u32 = 35015; +pub const ETH_P_TIPC: u32 = 35018; +pub const ETH_P_LLDP: u32 = 35020; +pub const ETH_P_MRP: u32 = 35043; +pub const ETH_P_MACSEC: u32 = 35045; +pub const ETH_P_8021AH: u32 = 35047; +pub const ETH_P_MVRP: u32 = 35061; +pub const ETH_P_1588: u32 = 35063; +pub const ETH_P_NCSI: u32 = 35064; +pub const ETH_P_PRP: u32 = 35067; +pub const ETH_P_CFM: u32 = 35074; +pub const ETH_P_FCOE: u32 = 35078; +pub const ETH_P_IBOE: u32 = 35093; +pub const ETH_P_TDLS: u32 = 35085; +pub const ETH_P_FIP: u32 = 35092; +pub const ETH_P_80221: u32 = 35095; +pub const ETH_P_HSR: u32 = 35119; +pub const ETH_P_NSH: u32 = 35151; +pub const ETH_P_LOOPBACK: u32 = 36864; +pub const ETH_P_QINQ1: u32 = 37120; +pub const ETH_P_QINQ2: u32 = 37376; +pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_EDSA: u32 = 56026; +pub const ETH_P_DSA_8021Q: u32 = 56027; +pub const ETH_P_DSA_A5PSW: u32 = 57345; +pub const ETH_P_IFE: u32 = 60734; +pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_802_3_MIN: u32 = 1536; +pub const ETH_P_802_3: u32 = 1; +pub const ETH_P_AX25: u32 = 2; +pub const ETH_P_ALL: u32 = 3; +pub const ETH_P_802_2: u32 = 4; +pub const ETH_P_SNAP: u32 = 5; +pub const ETH_P_DDCMP: u32 = 6; +pub const ETH_P_WAN_PPP: u32 = 7; +pub const ETH_P_PPP_MP: u32 = 8; +pub const ETH_P_LOCALTALK: u32 = 9; +pub const ETH_P_CAN: u32 = 12; +pub const ETH_P_CANFD: u32 = 13; +pub const ETH_P_CANXL: u32 = 14; +pub const ETH_P_PPPTALK: u32 = 16; +pub const ETH_P_TR_802_2: u32 = 17; +pub const ETH_P_MOBITEX: u32 = 21; +pub const ETH_P_CONTROL: u32 = 22; +pub const ETH_P_IRDA: u32 = 23; +pub const ETH_P_ECONET: u32 = 24; +pub const ETH_P_HDLC: u32 = 25; +pub const ETH_P_ARCNET: u32 = 26; +pub const ETH_P_DSA: u32 = 27; +pub const ETH_P_TRAILER: u32 = 28; +pub const ETH_P_PHONET: u32 = 245; +pub const ETH_P_IEEE802154: u32 = 246; +pub const ETH_P_CAIF: u32 = 247; +pub const ETH_P_XDSA: u32 = 248; +pub const ETH_P_MAP: u32 = 249; +pub const ETH_P_MCTP: u32 = 250; +pub const __LITTLE_ENDIAN: u32 = 1234; +pub const PACKET_HOST: u32 = 0; +pub const PACKET_BROADCAST: u32 = 1; +pub const PACKET_MULTICAST: u32 = 2; +pub const PACKET_OTHERHOST: u32 = 3; +pub const PACKET_OUTGOING: u32 = 4; +pub const PACKET_LOOPBACK: u32 = 5; +pub const PACKET_USER: u32 = 6; +pub const PACKET_KERNEL: u32 = 7; +pub const PACKET_FASTROUTE: u32 = 6; +pub const PACKET_ADD_MEMBERSHIP: u32 = 1; +pub const PACKET_DROP_MEMBERSHIP: u32 = 2; +pub const PACKET_RECV_OUTPUT: u32 = 3; +pub const PACKET_RX_RING: u32 = 5; +pub const PACKET_STATISTICS: u32 = 6; +pub const PACKET_COPY_THRESH: u32 = 7; +pub const PACKET_AUXDATA: u32 = 8; +pub const PACKET_ORIGDEV: u32 = 9; +pub const PACKET_VERSION: u32 = 10; +pub const PACKET_HDRLEN: u32 = 11; +pub const PACKET_RESERVE: u32 = 12; +pub const PACKET_TX_RING: u32 = 13; +pub const PACKET_LOSS: u32 = 14; +pub const PACKET_VNET_HDR: u32 = 15; +pub const PACKET_TX_TIMESTAMP: u32 = 16; +pub const PACKET_TIMESTAMP: u32 = 17; +pub const PACKET_FANOUT: u32 = 18; +pub const PACKET_TX_HAS_OFF: u32 = 19; +pub const PACKET_QDISC_BYPASS: u32 = 20; +pub const PACKET_ROLLOVER_STATS: u32 = 21; +pub const PACKET_FANOUT_DATA: u32 = 22; +pub const PACKET_IGNORE_OUTGOING: u32 = 23; +pub const PACKET_VNET_HDR_SZ: u32 = 24; +pub const PACKET_FANOUT_HASH: u32 = 0; +pub const PACKET_FANOUT_LB: u32 = 1; +pub const PACKET_FANOUT_CPU: u32 = 2; +pub const PACKET_FANOUT_ROLLOVER: u32 = 3; +pub const PACKET_FANOUT_RND: u32 = 4; +pub const PACKET_FANOUT_QM: u32 = 5; +pub const PACKET_FANOUT_CBPF: u32 = 6; +pub const PACKET_FANOUT_EBPF: u32 = 7; +pub const PACKET_FANOUT_FLAG_ROLLOVER: u32 = 4096; +pub const PACKET_FANOUT_FLAG_UNIQUEID: u32 = 8192; +pub const PACKET_FANOUT_FLAG_IGNORE_OUTGOING: u32 = 16384; +pub const PACKET_FANOUT_FLAG_DEFRAG: u32 = 32768; +pub const TP_STATUS_KERNEL: u32 = 0; +pub const TP_STATUS_USER: u32 = 1; +pub const TP_STATUS_COPY: u32 = 2; +pub const TP_STATUS_LOSING: u32 = 4; +pub const TP_STATUS_CSUMNOTREADY: u32 = 8; +pub const TP_STATUS_VLAN_VALID: u32 = 16; +pub const TP_STATUS_BLK_TMO: u32 = 32; +pub const TP_STATUS_VLAN_TPID_VALID: u32 = 64; +pub const TP_STATUS_CSUM_VALID: u32 = 128; +pub const TP_STATUS_GSO_TCP: u32 = 256; +pub const TP_STATUS_AVAILABLE: u32 = 0; +pub const TP_STATUS_SEND_REQUEST: u32 = 1; +pub const TP_STATUS_SENDING: u32 = 2; +pub const TP_STATUS_WRONG_FORMAT: u32 = 4; +pub const TP_STATUS_TS_SOFTWARE: u32 = 536870912; +pub const TP_STATUS_TS_SYS_HARDWARE: u32 = 1073741824; +pub const TP_STATUS_TS_RAW_HARDWARE: u32 = 2147483648; +pub const TP_FT_REQ_FILL_RXHASH: u32 = 1; +pub const TPACKET_ALIGNMENT: u32 = 16; +pub const PACKET_MR_MULTICAST: u32 = 0; +pub const PACKET_MR_PROMISC: u32 = 1; +pub const PACKET_MR_ALLMULTI: u32 = 2; +pub const PACKET_MR_UNICAST: u32 = 3; +pub const NETLINK_ROUTE: u32 = 0; +pub const NETLINK_UNUSED: u32 = 1; +pub const NETLINK_USERSOCK: u32 = 2; +pub const NETLINK_FIREWALL: u32 = 3; +pub const NETLINK_SOCK_DIAG: u32 = 4; +pub const NETLINK_NFLOG: u32 = 5; +pub const NETLINK_XFRM: u32 = 6; +pub const NETLINK_SELINUX: u32 = 7; +pub const NETLINK_ISCSI: u32 = 8; +pub const NETLINK_AUDIT: u32 = 9; +pub const NETLINK_FIB_LOOKUP: u32 = 10; +pub const NETLINK_CONNECTOR: u32 = 11; +pub const NETLINK_NETFILTER: u32 = 12; +pub const NETLINK_IP6_FW: u32 = 13; +pub const NETLINK_DNRTMSG: u32 = 14; +pub const NETLINK_KOBJECT_UEVENT: u32 = 15; +pub const NETLINK_GENERIC: u32 = 16; +pub const NETLINK_SCSITRANSPORT: u32 = 18; +pub const NETLINK_ECRYPTFS: u32 = 19; +pub const NETLINK_RDMA: u32 = 20; +pub const NETLINK_CRYPTO: u32 = 21; +pub const NETLINK_SMC: u32 = 22; +pub const NETLINK_INET_DIAG: u32 = 4; +pub const MAX_LINKS: u32 = 32; +pub const NLM_F_REQUEST: u32 = 1; +pub const NLM_F_MULTI: u32 = 2; +pub const NLM_F_ACK: u32 = 4; +pub const NLM_F_ECHO: u32 = 8; +pub const NLM_F_DUMP_INTR: u32 = 16; +pub const NLM_F_DUMP_FILTERED: u32 = 32; +pub const NLM_F_ROOT: u32 = 256; +pub const NLM_F_MATCH: u32 = 512; +pub const NLM_F_ATOMIC: u32 = 1024; +pub const NLM_F_DUMP: u32 = 768; +pub const NLM_F_REPLACE: u32 = 256; +pub const NLM_F_EXCL: u32 = 512; +pub const NLM_F_CREATE: u32 = 1024; +pub const NLM_F_APPEND: u32 = 2048; +pub const NLM_F_NONREC: u32 = 256; +pub const NLM_F_BULK: u32 = 512; +pub const NLM_F_CAPPED: u32 = 256; +pub const NLM_F_ACK_TLVS: u32 = 512; +pub const NLMSG_ALIGNTO: u32 = 4; +pub const NLMSG_NOOP: u32 = 1; +pub const NLMSG_ERROR: u32 = 2; +pub const NLMSG_DONE: u32 = 3; +pub const NLMSG_OVERRUN: u32 = 4; +pub const NLMSG_MIN_TYPE: u32 = 16; +pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; +pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; +pub const NETLINK_PKTINFO: u32 = 3; +pub const NETLINK_BROADCAST_ERROR: u32 = 4; +pub const NETLINK_NO_ENOBUFS: u32 = 5; +pub const NETLINK_RX_RING: u32 = 6; +pub const NETLINK_TX_RING: u32 = 7; +pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; +pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; +pub const NETLINK_CAP_ACK: u32 = 10; +pub const NETLINK_EXT_ACK: u32 = 11; +pub const NETLINK_GET_STRICT_CHK: u32 = 12; +pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; +pub const NET_MAJOR: u32 = 36; +pub const NLA_F_NESTED: u32 = 32768; +pub const NLA_F_NET_BYTEORDER: u32 = 16384; +pub const NLA_TYPE_MASK: i32 = -49153; +pub const NLA_ALIGNTO: u32 = 4; +pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; +pub const MACVLAN_FLAG_NODST: u32 = 2; +pub const IPVLAN_F_PRIVATE: u32 = 1; +pub const IPVLAN_F_VEPA: u32 = 2; +pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; +pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; +pub const MAX_VLAN_LIST_LEN: u32 = 1; +pub const PORT_PROFILE_MAX: u32 = 40; +pub const PORT_UUID_MAX: u32 = 16; +pub const PORT_SELF_VF: i32 = -1; +pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; +pub const XDP_FLAGS_SKB_MODE: u32 = 2; +pub const XDP_FLAGS_DRV_MODE: u32 = 4; +pub const XDP_FLAGS_HW_MODE: u32 = 8; +pub const XDP_FLAGS_REPLACE: u32 = 16; +pub const XDP_FLAGS_MODES: u32 = 14; +pub const XDP_FLAGS_MASK: u32 = 31; +pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; +pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; +pub const MAX_ADDR_LEN: u32 = 32; +pub const INIT_NETDEV_GROUP: u32 = 0; +pub const NET_NAME_UNKNOWN: u32 = 0; +pub const NET_NAME_ENUM: u32 = 1; +pub const NET_NAME_PREDICTABLE: u32 = 2; +pub const NET_NAME_USER: u32 = 3; +pub const NET_NAME_RENAMED: u32 = 4; +pub const NET_ADDR_PERM: u32 = 0; +pub const NET_ADDR_RANDOM: u32 = 1; +pub const NET_ADDR_STOLEN: u32 = 2; +pub const NET_ADDR_SET: u32 = 3; +pub const ARPHRD_NETROM: u32 = 0; +pub const ARPHRD_ETHER: u32 = 1; +pub const ARPHRD_EETHER: u32 = 2; +pub const ARPHRD_AX25: u32 = 3; +pub const ARPHRD_PRONET: u32 = 4; +pub const ARPHRD_CHAOS: u32 = 5; +pub const ARPHRD_IEEE802: u32 = 6; +pub const ARPHRD_ARCNET: u32 = 7; +pub const ARPHRD_APPLETLK: u32 = 8; +pub const ARPHRD_DLCI: u32 = 15; +pub const ARPHRD_ATM: u32 = 19; +pub const ARPHRD_METRICOM: u32 = 23; +pub const ARPHRD_IEEE1394: u32 = 24; +pub const ARPHRD_EUI64: u32 = 27; +pub const ARPHRD_INFINIBAND: u32 = 32; +pub const ARPHRD_SLIP: u32 = 256; +pub const ARPHRD_CSLIP: u32 = 257; +pub const ARPHRD_SLIP6: u32 = 258; +pub const ARPHRD_CSLIP6: u32 = 259; +pub const ARPHRD_RSRVD: u32 = 260; +pub const ARPHRD_ADAPT: u32 = 264; +pub const ARPHRD_ROSE: u32 = 270; +pub const ARPHRD_X25: u32 = 271; +pub const ARPHRD_HWX25: u32 = 272; +pub const ARPHRD_CAN: u32 = 280; +pub const ARPHRD_MCTP: u32 = 290; +pub const ARPHRD_PPP: u32 = 512; +pub const ARPHRD_CISCO: u32 = 513; +pub const ARPHRD_HDLC: u32 = 513; +pub const ARPHRD_LAPB: u32 = 516; +pub const ARPHRD_DDCMP: u32 = 517; +pub const ARPHRD_RAWHDLC: u32 = 518; +pub const ARPHRD_RAWIP: u32 = 519; +pub const ARPHRD_TUNNEL: u32 = 768; +pub const ARPHRD_TUNNEL6: u32 = 769; +pub const ARPHRD_FRAD: u32 = 770; +pub const ARPHRD_SKIP: u32 = 771; +pub const ARPHRD_LOOPBACK: u32 = 772; +pub const ARPHRD_LOCALTLK: u32 = 773; +pub const ARPHRD_FDDI: u32 = 774; +pub const ARPHRD_BIF: u32 = 775; +pub const ARPHRD_SIT: u32 = 776; +pub const ARPHRD_IPDDP: u32 = 777; +pub const ARPHRD_IPGRE: u32 = 778; +pub const ARPHRD_PIMREG: u32 = 779; +pub const ARPHRD_HIPPI: u32 = 780; +pub const ARPHRD_ASH: u32 = 781; +pub const ARPHRD_ECONET: u32 = 782; +pub const ARPHRD_IRDA: u32 = 783; +pub const ARPHRD_FCPP: u32 = 784; +pub const ARPHRD_FCAL: u32 = 785; +pub const ARPHRD_FCPL: u32 = 786; +pub const ARPHRD_FCFABRIC: u32 = 787; +pub const ARPHRD_IEEE802_TR: u32 = 800; +pub const ARPHRD_IEEE80211: u32 = 801; +pub const ARPHRD_IEEE80211_PRISM: u32 = 802; +pub const ARPHRD_IEEE80211_RADIOTAP: u32 = 803; +pub const ARPHRD_IEEE802154: u32 = 804; +pub const ARPHRD_IEEE802154_MONITOR: u32 = 805; +pub const ARPHRD_PHONET: u32 = 820; +pub const ARPHRD_PHONET_PIPE: u32 = 821; +pub const ARPHRD_CAIF: u32 = 822; +pub const ARPHRD_IP6GRE: u32 = 823; +pub const ARPHRD_NETLINK: u32 = 824; +pub const ARPHRD_6LOWPAN: u32 = 825; +pub const ARPHRD_VSOCKMON: u32 = 826; +pub const ARPHRD_VOID: u32 = 65535; +pub const ARPHRD_NONE: u32 = 65534; +pub const ARPOP_REQUEST: u32 = 1; +pub const ARPOP_REPLY: u32 = 2; +pub const ARPOP_RREQUEST: u32 = 3; +pub const ARPOP_RREPLY: u32 = 4; +pub const ARPOP_InREQUEST: u32 = 8; +pub const ARPOP_InREPLY: u32 = 9; +pub const ARPOP_NAK: u32 = 10; +pub const ATF_COM: u32 = 2; +pub const ATF_PERM: u32 = 4; +pub const ATF_PUBL: u32 = 8; +pub const ATF_USETRAILERS: u32 = 16; +pub const ATF_NETMASK: u32 = 32; +pub const ATF_DONTPUB: u32 = 64; +pub const IF_OPER_UNKNOWN: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_UNKNOWN; +pub const IF_OPER_NOTPRESENT: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_NOTPRESENT; +pub const IF_OPER_DOWN: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_DOWN; +pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_LOWERLAYERDOWN; +pub const IF_OPER_TESTING: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_TESTING; +pub const IF_OPER_DORMANT: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_DORMANT; +pub const IF_OPER_UP: _bindgen_ty_1 = _bindgen_ty_1::IF_OPER_UP; +pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_2 = _bindgen_ty_2::IF_LINK_MODE_DEFAULT; +pub const IF_LINK_MODE_DORMANT: _bindgen_ty_2 = _bindgen_ty_2::IF_LINK_MODE_DORMANT; +pub const IF_LINK_MODE_TESTING: _bindgen_ty_2 = _bindgen_ty_2::IF_LINK_MODE_TESTING; +pub const NETLINK_UNCONNECTED: _bindgen_ty_3 = _bindgen_ty_3::NETLINK_UNCONNECTED; +pub const NETLINK_CONNECTED: _bindgen_ty_3 = _bindgen_ty_3::NETLINK_CONNECTED; +pub const IFLA_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_UNSPEC; +pub const IFLA_ADDRESS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_ADDRESS; +pub const IFLA_BROADCAST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_BROADCAST; +pub const IFLA_IFNAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IFNAME; +pub const IFLA_MTU: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MTU; +pub const IFLA_LINK: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINK; +pub const IFLA_QDISC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_QDISC; +pub const IFLA_STATS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_STATS; +pub const IFLA_COST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_COST; +pub const IFLA_PRIORITY: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PRIORITY; +pub const IFLA_MASTER: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MASTER; +pub const IFLA_WIRELESS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_WIRELESS; +pub const IFLA_PROTINFO: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROTINFO; +pub const IFLA_TXQLEN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TXQLEN; +pub const IFLA_MAP: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAP; +pub const IFLA_WEIGHT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_WEIGHT; +pub const IFLA_OPERSTATE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_OPERSTATE; +pub const IFLA_LINKMODE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINKMODE; +pub const IFLA_LINKINFO: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINKINFO; +pub const IFLA_NET_NS_PID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NET_NS_PID; +pub const IFLA_IFALIAS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IFALIAS; +pub const IFLA_NUM_VF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NUM_VF; +pub const IFLA_VFINFO_LIST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_VFINFO_LIST; +pub const IFLA_STATS64: _bindgen_ty_4 = _bindgen_ty_4::IFLA_STATS64; +pub const IFLA_VF_PORTS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_VF_PORTS; +pub const IFLA_PORT_SELF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PORT_SELF; +pub const IFLA_AF_SPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_AF_SPEC; +pub const IFLA_GROUP: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GROUP; +pub const IFLA_NET_NS_FD: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NET_NS_FD; +pub const IFLA_EXT_MASK: _bindgen_ty_4 = _bindgen_ty_4::IFLA_EXT_MASK; +pub const IFLA_PROMISCUITY: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROMISCUITY; +pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NUM_TX_QUEUES; +pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NUM_RX_QUEUES; +pub const IFLA_CARRIER: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER; +pub const IFLA_PHYS_PORT_ID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PHYS_PORT_ID; +pub const IFLA_CARRIER_CHANGES: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER_CHANGES; +pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PHYS_SWITCH_ID; +pub const IFLA_LINK_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_LINK_NETNSID; +pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PHYS_PORT_NAME; +pub const IFLA_PROTO_DOWN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROTO_DOWN; +pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_MAX_SEGS; +pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_MAX_SIZE; +pub const IFLA_PAD: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PAD; +pub const IFLA_XDP: _bindgen_ty_4 = _bindgen_ty_4::IFLA_XDP; +pub const IFLA_EVENT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_EVENT; +pub const IFLA_NEW_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NEW_NETNSID; +pub const IFLA_IF_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IF_NETNSID; +pub const IFLA_TARGET_NETNSID: _bindgen_ty_4 = _bindgen_ty_4::IFLA_IF_NETNSID; +pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER_UP_COUNT; +pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_CARRIER_DOWN_COUNT; +pub const IFLA_NEW_IFINDEX: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NEW_IFINDEX; +pub const IFLA_MIN_MTU: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MIN_MTU; +pub const IFLA_MAX_MTU: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_MTU; +pub const IFLA_PROP_LIST: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROP_LIST; +pub const IFLA_ALT_IFNAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_ALT_IFNAME; +pub const IFLA_PERM_ADDRESS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PERM_ADDRESS; +pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PROTO_DOWN_REASON; +pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PARENT_DEV_NAME; +pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_4 = _bindgen_ty_4::IFLA_PARENT_DEV_BUS_NAME; +pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_MAX_SIZE; +pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TSO_MAX_SIZE; +pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TSO_MAX_SEGS; +pub const IFLA_ALLMULTI: _bindgen_ty_4 = _bindgen_ty_4::IFLA_ALLMULTI; +pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT; +pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE; +pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE; +pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON; +pub const IFLA_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX; +pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC; +pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_MASK; +pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_VALUE; +pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_PROTO_DOWN_REASON_CNT; +pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_VALUE; +pub const IFLA_INET_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_INET_UNSPEC; +pub const IFLA_INET_CONF: _bindgen_ty_6 = _bindgen_ty_6::IFLA_INET_CONF; +pub const __IFLA_INET_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_INET_MAX; +pub const IFLA_INET6_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_UNSPEC; +pub const IFLA_INET6_FLAGS: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_FLAGS; +pub const IFLA_INET6_CONF: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_CONF; +pub const IFLA_INET6_STATS: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_STATS; +pub const IFLA_INET6_MCAST: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_MCAST; +pub const IFLA_INET6_CACHEINFO: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_CACHEINFO; +pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_ICMP6STATS; +pub const IFLA_INET6_TOKEN: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_TOKEN; +pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_ADDR_GEN_MODE; +pub const IFLA_INET6_RA_MTU: _bindgen_ty_7 = _bindgen_ty_7::IFLA_INET6_RA_MTU; +pub const __IFLA_INET6_MAX: _bindgen_ty_7 = _bindgen_ty_7::__IFLA_INET6_MAX; +pub const IFLA_BR_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_UNSPEC; +pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FORWARD_DELAY; +pub const IFLA_BR_HELLO_TIME: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_HELLO_TIME; +pub const IFLA_BR_MAX_AGE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MAX_AGE; +pub const IFLA_BR_AGEING_TIME: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_AGEING_TIME; +pub const IFLA_BR_STP_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_STATE; +pub const IFLA_BR_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_PRIORITY; +pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_FILTERING; +pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_PROTOCOL; +pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_GROUP_FWD_MASK; +pub const IFLA_BR_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_ROOT_ID; +pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_BRIDGE_ID; +pub const IFLA_BR_ROOT_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_ROOT_PORT; +pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_ROOT_PATH_COST; +pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TOPOLOGY_CHANGE; +pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; +pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_HELLO_TIMER; +pub const IFLA_BR_TCN_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TCN_TIMER; +pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_TOPOLOGY_CHANGE_TIMER; +pub const IFLA_BR_GC_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_GC_TIMER; +pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_GROUP_ADDR; +pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_FLUSH; +pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_ROUTER; +pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_SNOOPING; +pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERY_USE_IFADDR; +pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER; +pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_HASH_ELASTICITY; +pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_HASH_MAX; +pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_LAST_MEMBER_CNT; +pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_STARTUP_QUERY_CNT; +pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_LAST_MEMBER_INTVL; +pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_MEMBERSHIP_INTVL; +pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_INTVL; +pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERY_INTVL; +pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; +pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; +pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_NF_CALL_IPTABLES; +pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_NF_CALL_IP6TABLES; +pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_NF_CALL_ARPTABLES; +pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_DEFAULT_PVID; +pub const IFLA_BR_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_PAD; +pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_STATS_ENABLED; +pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_STATS_ENABLED; +pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_IGMP_VERSION; +pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_MLD_VERSION; +pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_VLAN_STATS_PER_PORT; +pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BOOLOPT; +pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; +pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; +pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; +pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; +pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; +pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_UNSPEC; +pub const IFLA_BRPORT_STATE: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_STATE; +pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PRIORITY; +pub const IFLA_BRPORT_COST: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_COST; +pub const IFLA_BRPORT_MODE: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MODE; +pub const IFLA_BRPORT_GUARD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_GUARD; +pub const IFLA_BRPORT_PROTECT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PROTECT; +pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_FAST_LEAVE; +pub const IFLA_BRPORT_LEARNING: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_LEARNING; +pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_UNICAST_FLOOD; +pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PROXYARP; +pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_LEARNING_SYNC; +pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PROXYARP_WIFI; +pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_ROOT_ID; +pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BRIDGE_ID; +pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_DESIGNATED_PORT; +pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_DESIGNATED_COST; +pub const IFLA_BRPORT_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_ID; +pub const IFLA_BRPORT_NO: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NO; +pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; +pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_CONFIG_PENDING; +pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MESSAGE_AGE_TIMER; +pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_FORWARD_DELAY_TIMER; +pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_HOLD_TIMER; +pub const IFLA_BRPORT_FLUSH: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_FLUSH; +pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MULTICAST_ROUTER; +pub const IFLA_BRPORT_PAD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_PAD; +pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_FLOOD; +pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_TO_UCAST; +pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_VLAN_TUNNEL; +pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BCAST_FLOOD; +pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_GROUP_FWD_MASK; +pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_SUPPRESS; +pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_ISOLATED; +pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_PORT; +pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MRP_RING_OPEN; +pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MRP_IN_OPEN; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; +pub const IFLA_BRPORT_LOCKED: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_LOCKED; +pub const IFLA_BRPORT_MAB: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MAB; +pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_N_GROUPS; +pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; +pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; +pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; +pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; +pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; +pub const IFLA_INFO_DATA: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_DATA; +pub const IFLA_INFO_XSTATS: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_XSTATS; +pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_SLAVE_KIND; +pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_SLAVE_DATA; +pub const __IFLA_INFO_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_INFO_MAX; +pub const IFLA_VLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_UNSPEC; +pub const IFLA_VLAN_ID: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_ID; +pub const IFLA_VLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_FLAGS; +pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_EGRESS_QOS; +pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_INGRESS_QOS; +pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_12 = _bindgen_ty_12::IFLA_VLAN_PROTOCOL; +pub const __IFLA_VLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_VLAN_MAX; +pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VLAN_QOS_UNSPEC; +pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VLAN_QOS_MAPPING; +pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VLAN_QOS_MAX; +pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_UNSPEC; +pub const IFLA_MACVLAN_MODE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MODE; +pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_FLAGS; +pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR_MODE; +pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR; +pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR_DATA; +pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_MACADDR_COUNT; +pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_BC_QUEUE_LEN; +pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_BC_QUEUE_LEN_USED; +pub const IFLA_MACVLAN_BC_CUTOFF: _bindgen_ty_14 = _bindgen_ty_14::IFLA_MACVLAN_BC_CUTOFF; +pub const __IFLA_MACVLAN_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_MACVLAN_MAX; +pub const IFLA_VRF_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_VRF_UNSPEC; +pub const IFLA_VRF_TABLE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_VRF_TABLE; +pub const __IFLA_VRF_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_VRF_MAX; +pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_VRF_PORT_UNSPEC; +pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_16 = _bindgen_ty_16::IFLA_VRF_PORT_TABLE; +pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_VRF_PORT_MAX; +pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_UNSPEC; +pub const IFLA_MACSEC_SCI: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_SCI; +pub const IFLA_MACSEC_PORT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_PORT; +pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ICV_LEN; +pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_CIPHER_SUITE; +pub const IFLA_MACSEC_WINDOW: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_WINDOW; +pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ENCODING_SA; +pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ENCRYPT; +pub const IFLA_MACSEC_PROTECT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_PROTECT; +pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_INC_SCI; +pub const IFLA_MACSEC_ES: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_ES; +pub const IFLA_MACSEC_SCB: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_SCB; +pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_REPLAY_PROTECT; +pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_VALIDATION; +pub const IFLA_MACSEC_PAD: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_PAD; +pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_17 = _bindgen_ty_17::IFLA_MACSEC_OFFLOAD; +pub const __IFLA_MACSEC_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_MACSEC_MAX; +pub const IFLA_XFRM_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_UNSPEC; +pub const IFLA_XFRM_LINK: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_LINK; +pub const IFLA_XFRM_IF_ID: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_IF_ID; +pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_18 = _bindgen_ty_18::IFLA_XFRM_COLLECT_METADATA; +pub const __IFLA_XFRM_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_XFRM_MAX; +pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::IFLA_IPVLAN_UNSPEC; +pub const IFLA_IPVLAN_MODE: _bindgen_ty_19 = _bindgen_ty_19::IFLA_IPVLAN_MODE; +pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_19 = _bindgen_ty_19::IFLA_IPVLAN_FLAGS; +pub const __IFLA_IPVLAN_MAX: _bindgen_ty_19 = _bindgen_ty_19::__IFLA_IPVLAN_MAX; +pub const IFLA_NETKIT_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_UNSPEC; +pub const IFLA_NETKIT_PEER_INFO: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_INFO; +pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PRIMARY; +pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY; +pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY; +pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB; +pub const IFLA_NETKIT_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; +pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX; +pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC; +pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_BYTES; +pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_PKTS; +pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_DROPS; +pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_BYTES; +pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_PKTS; +pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_DROPS; +pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_TX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_PAD; +pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_21 = _bindgen_ty_21::__VNIFILTER_ENTRY_STATS_MAX; +pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_START; +pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_END; +pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_GROUP; +pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_GROUP6; +pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_22 = _bindgen_ty_22::VXLAN_VNIFILTER_ENTRY_STATS; +pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_22 = _bindgen_ty_22::__VXLAN_VNIFILTER_ENTRY_MAX; +pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::VXLAN_VNIFILTER_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_23 = _bindgen_ty_23::VXLAN_VNIFILTER_ENTRY; +pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_23 = _bindgen_ty_23::__VXLAN_VNIFILTER_MAX; +pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UNSPEC; +pub const IFLA_VXLAN_ID: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_ID; +pub const IFLA_VXLAN_GROUP: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GROUP; +pub const IFLA_VXLAN_LINK: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LINK; +pub const IFLA_VXLAN_LOCAL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LOCAL; +pub const IFLA_VXLAN_TTL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_TTL; +pub const IFLA_VXLAN_TOS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_TOS; +pub const IFLA_VXLAN_LEARNING: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LEARNING; +pub const IFLA_VXLAN_AGEING: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_AGEING; +pub const IFLA_VXLAN_LIMIT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LIMIT; +pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_PORT_RANGE; +pub const IFLA_VXLAN_PROXY: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_PROXY; +pub const IFLA_VXLAN_RSC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_RSC; +pub const IFLA_VXLAN_L2MISS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_L2MISS; +pub const IFLA_VXLAN_L3MISS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_L3MISS; +pub const IFLA_VXLAN_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_PORT; +pub const IFLA_VXLAN_GROUP6: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GROUP6; +pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LOCAL6; +pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UDP_CSUM; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; +pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_REMCSUM_TX; +pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_REMCSUM_RX; +pub const IFLA_VXLAN_GBP: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GBP; +pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_REMCSUM_NOPARTIAL; +pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_COLLECT_METADATA; +pub const IFLA_VXLAN_LABEL: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LABEL; +pub const IFLA_VXLAN_GPE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_GPE; +pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_TTL_INHERIT; +pub const IFLA_VXLAN_DF: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_DF; +pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_VNIFILTER; +pub const IFLA_VXLAN_LOCALBYPASS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LOCALBYPASS; +pub const IFLA_VXLAN_LABEL_POLICY: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LABEL_POLICY; +pub const IFLA_VXLAN_RESERVED_BITS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_RESERVED_BITS; +pub const __IFLA_VXLAN_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_VXLAN_MAX; +pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UNSPEC; +pub const IFLA_GENEVE_ID: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ID; +pub const IFLA_GENEVE_REMOTE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_REMOTE; +pub const IFLA_GENEVE_TTL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_TTL; +pub const IFLA_GENEVE_TOS: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_TOS; +pub const IFLA_GENEVE_PORT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT; +pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_COLLECT_METADATA; +pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_REMOTE6; +pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UDP_CSUM; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; +pub const IFLA_GENEVE_LABEL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LABEL; +pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_TTL_INHERIT; +pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; +pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; +pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; +pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; +pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; +pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_ETHERTYPE; +pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_SRCPORT_MIN; +pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_MULTIPROTO_MODE; +pub const __IFLA_BAREUDP_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_BAREUDP_MAX; +pub const IFLA_PPP_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_PPP_UNSPEC; +pub const IFLA_PPP_DEV_FD: _bindgen_ty_27 = _bindgen_ty_27::IFLA_PPP_DEV_FD; +pub const __IFLA_PPP_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_PPP_MAX; +pub const IFLA_GTP_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_UNSPEC; +pub const IFLA_GTP_FD0: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_FD0; +pub const IFLA_GTP_FD1: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_FD1; +pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_PDP_HASHSIZE; +pub const IFLA_GTP_ROLE: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_ROLE; +pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_CREATE_SOCKETS; +pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_RESTART_COUNT; +pub const IFLA_GTP_LOCAL: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_LOCAL; +pub const IFLA_GTP_LOCAL6: _bindgen_ty_28 = _bindgen_ty_28::IFLA_GTP_LOCAL6; +pub const __IFLA_GTP_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_GTP_MAX; +pub const IFLA_BOND_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_UNSPEC; +pub const IFLA_BOND_MODE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MODE; +pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ACTIVE_SLAVE; +pub const IFLA_BOND_MIIMON: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MIIMON; +pub const IFLA_BOND_UPDELAY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_UPDELAY; +pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_DOWNDELAY; +pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_USE_CARRIER; +pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_INTERVAL; +pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_IP_TARGET; +pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_VALIDATE; +pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ARP_ALL_TARGETS; +pub const IFLA_BOND_PRIMARY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PRIMARY; +pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PRIMARY_RESELECT; +pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_FAIL_OVER_MAC; +pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_XMIT_HASH_POLICY; +pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_RESEND_IGMP; +pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_NUM_PEER_NOTIF; +pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_ALL_SLAVES_ACTIVE; +pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MIN_LINKS; +pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LP_INTERVAL; +pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PACKETS_PER_SLAVE; +pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_LACP_RATE; +pub const IFLA_BOND_AD_SELECT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_SELECT; +pub const IFLA_BOND_AD_INFO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_INFO; +pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_ACTOR_SYS_PRIO; +pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_USER_PORT_KEY; +pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_ACTOR_SYSTEM; +pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_TLB_DYNAMIC_LB; +pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_PEER_NOTIF_DELAY; +pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_AD_LACP_ACTIVE; +pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSED_MAX; +pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_NS_IP6_TARGET; +pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_COUPLED_CONTROL; +pub const __IFLA_BOND_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_MAX; +pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_UNSPEC; +pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_AGGREGATOR; +pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_NUM_PORTS; +pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_ACTOR_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_PARTNER_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_PARTNER_MAC; +pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_BOND_AD_INFO_MAX; +pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_UNSPEC; +pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_STATE; +pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_MII_STATUS; +pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; +pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PERM_HWADDR; +pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_QUEUE_ID; +pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; +pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; +pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; +pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; +pub const __IFLA_VF_INFO_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_INFO_MAX; +pub const IFLA_VF_UNSPEC: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_UNSPEC; +pub const IFLA_VF_MAC: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_MAC; +pub const IFLA_VF_VLAN: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_VLAN; +pub const IFLA_VF_TX_RATE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_TX_RATE; +pub const IFLA_VF_SPOOFCHK: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_SPOOFCHK; +pub const IFLA_VF_LINK_STATE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_LINK_STATE; +pub const IFLA_VF_RATE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_RATE; +pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_RSS_QUERY_EN; +pub const IFLA_VF_STATS: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_STATS; +pub const IFLA_VF_TRUST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_TRUST; +pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_IB_NODE_GUID; +pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_IB_PORT_GUID; +pub const IFLA_VF_VLAN_LIST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_VLAN_LIST; +pub const IFLA_VF_BROADCAST: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_BROADCAST; +pub const __IFLA_VF_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_MAX; +pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_VLAN_INFO_UNSPEC; +pub const IFLA_VF_VLAN_INFO: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_VLAN_INFO; +pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_VLAN_INFO_MAX; +pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_LINK_STATE_AUTO; +pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_LINK_STATE_ENABLE; +pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_LINK_STATE_DISABLE; +pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_VF_LINK_STATE_MAX; +pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_RX_PACKETS; +pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_TX_PACKETS; +pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_RX_BYTES; +pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_TX_BYTES; +pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_BROADCAST; +pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_MULTICAST; +pub const IFLA_VF_STATS_PAD: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_PAD; +pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_RX_DROPPED; +pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_36 = _bindgen_ty_36::IFLA_VF_STATS_TX_DROPPED; +pub const __IFLA_VF_STATS_MAX: _bindgen_ty_36 = _bindgen_ty_36::__IFLA_VF_STATS_MAX; +pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_37 = _bindgen_ty_37::IFLA_VF_PORT_UNSPEC; +pub const IFLA_VF_PORT: _bindgen_ty_37 = _bindgen_ty_37::IFLA_VF_PORT; +pub const __IFLA_VF_PORT_MAX: _bindgen_ty_37 = _bindgen_ty_37::__IFLA_VF_PORT_MAX; +pub const IFLA_PORT_UNSPEC: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_UNSPEC; +pub const IFLA_PORT_VF: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_VF; +pub const IFLA_PORT_PROFILE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_PROFILE; +pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_VSI_TYPE; +pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_INSTANCE_UUID; +pub const IFLA_PORT_HOST_UUID: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_HOST_UUID; +pub const IFLA_PORT_REQUEST: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_REQUEST; +pub const IFLA_PORT_RESPONSE: _bindgen_ty_38 = _bindgen_ty_38::IFLA_PORT_RESPONSE; +pub const __IFLA_PORT_MAX: _bindgen_ty_38 = _bindgen_ty_38::__IFLA_PORT_MAX; +pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_PREASSOCIATE; +pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_PREASSOCIATE_RR; +pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_ASSOCIATE; +pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_39 = _bindgen_ty_39::PORT_REQUEST_DISASSOCIATE; +pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_SUCCESS; +pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_INVALID_FORMAT; +pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_UNUSED_VTID; +pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_VTID_VIOLATION; +pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; +pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_40 = _bindgen_ty_40::PORT_VDP_RESPONSE_OUT_OF_SYNC; +pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_SUCCESS; +pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_INPROGRESS; +pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_INVALID; +pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_BADSTATE; +pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_40 = _bindgen_ty_40::PORT_PROFILE_RESPONSE_ERROR; +pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_UNSPEC; +pub const IFLA_IPOIB_PKEY: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_PKEY; +pub const IFLA_IPOIB_MODE: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_MODE; +pub const IFLA_IPOIB_UMCAST: _bindgen_ty_41 = _bindgen_ty_41::IFLA_IPOIB_UMCAST; +pub const __IFLA_IPOIB_MAX: _bindgen_ty_41 = _bindgen_ty_41::__IFLA_IPOIB_MAX; +pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_42 = _bindgen_ty_42::IPOIB_MODE_DATAGRAM; +pub const IPOIB_MODE_CONNECTED: _bindgen_ty_42 = _bindgen_ty_42::IPOIB_MODE_CONNECTED; +pub const HSR_PROTOCOL_HSR: _bindgen_ty_43 = _bindgen_ty_43::HSR_PROTOCOL_HSR; +pub const HSR_PROTOCOL_PRP: _bindgen_ty_43 = _bindgen_ty_43::HSR_PROTOCOL_PRP; +pub const HSR_PROTOCOL_MAX: _bindgen_ty_43 = _bindgen_ty_43::HSR_PROTOCOL_MAX; +pub const IFLA_HSR_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_UNSPEC; +pub const IFLA_HSR_SLAVE1: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SLAVE1; +pub const IFLA_HSR_SLAVE2: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SLAVE2; +pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_MULTICAST_SPEC; +pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SUPERVISION_ADDR; +pub const IFLA_HSR_SEQ_NR: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_SEQ_NR; +pub const IFLA_HSR_VERSION: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_VERSION; +pub const IFLA_HSR_PROTOCOL: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_PROTOCOL; +pub const IFLA_HSR_INTERLINK: _bindgen_ty_44 = _bindgen_ty_44::IFLA_HSR_INTERLINK; +pub const __IFLA_HSR_MAX: _bindgen_ty_44 = _bindgen_ty_44::__IFLA_HSR_MAX; +pub const IFLA_STATS_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_UNSPEC; +pub const IFLA_STATS_LINK_64: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_64; +pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_XSTATS; +pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_XSTATS_SLAVE; +pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_LINK_OFFLOAD_XSTATS; +pub const IFLA_STATS_AF_SPEC: _bindgen_ty_45 = _bindgen_ty_45::IFLA_STATS_AF_SPEC; +pub const __IFLA_STATS_MAX: _bindgen_ty_45 = _bindgen_ty_45::__IFLA_STATS_MAX; +pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_STATS_GETSET_UNSPEC; +pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_46 = _bindgen_ty_46::IFLA_STATS_GET_FILTERS; +pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_46 = _bindgen_ty_46::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_STATS_GETSET_MAX; +pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_47 = _bindgen_ty_47::LINK_XSTATS_TYPE_UNSPEC; +pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_47 = _bindgen_ty_47::LINK_XSTATS_TYPE_BRIDGE; +pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_47 = _bindgen_ty_47::LINK_XSTATS_TYPE_BOND; +pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_47 = _bindgen_ty_47::__LINK_XSTATS_TYPE_MAX; +pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_CPU_HIT; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_HW_S_INFO; +pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_48 = _bindgen_ty_48::IFLA_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_48 = _bindgen_ty_48::__IFLA_OFFLOAD_XSTATS_MAX; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_49 = _bindgen_ty_49::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_49 = _bindgen_ty_49::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_49 = _bindgen_ty_49::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; +pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_49 = _bindgen_ty_49::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; +pub const XDP_ATTACHED_NONE: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_NONE; +pub const XDP_ATTACHED_DRV: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_DRV; +pub const XDP_ATTACHED_SKB: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_SKB; +pub const XDP_ATTACHED_HW: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_HW; +pub const XDP_ATTACHED_MULTI: _bindgen_ty_50 = _bindgen_ty_50::XDP_ATTACHED_MULTI; +pub const IFLA_XDP_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_UNSPEC; +pub const IFLA_XDP_FD: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_FD; +pub const IFLA_XDP_ATTACHED: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_ATTACHED; +pub const IFLA_XDP_FLAGS: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_FLAGS; +pub const IFLA_XDP_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_PROG_ID; +pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_DRV_PROG_ID; +pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_SKB_PROG_ID; +pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_HW_PROG_ID; +pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_51 = _bindgen_ty_51::IFLA_XDP_EXPECTED_FD; +pub const __IFLA_XDP_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_XDP_MAX; +pub const IFLA_EVENT_NONE: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_NONE; +pub const IFLA_EVENT_REBOOT: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_REBOOT; +pub const IFLA_EVENT_FEATURES: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_FEATURES; +pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_BONDING_FAILOVER; +pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_NOTIFY_PEERS; +pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_IGMP_RESEND; +pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_EVENT_BONDING_OPTIONS; +pub const IFLA_TUN_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_UNSPEC; +pub const IFLA_TUN_OWNER: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_OWNER; +pub const IFLA_TUN_GROUP: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_GROUP; +pub const IFLA_TUN_TYPE: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_TYPE; +pub const IFLA_TUN_PI: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_PI; +pub const IFLA_TUN_VNET_HDR: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_VNET_HDR; +pub const IFLA_TUN_PERSIST: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_PERSIST; +pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_MULTI_QUEUE; +pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_NUM_QUEUES; +pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_53 = _bindgen_ty_53::IFLA_TUN_NUM_DISABLED_QUEUES; +pub const __IFLA_TUN_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_TUN_MAX; +pub const IFLA_RMNET_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_UNSPEC; +pub const IFLA_RMNET_MUX_ID: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_MUX_ID; +pub const IFLA_RMNET_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_FLAGS; +pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX; +pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC; +pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING; +pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX; +pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC; +pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; +pub const IFLA_DSA_MASTER: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; +pub const __IFLA_DSA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__IFLA_DSA_MAX; +pub const IFLA_OVPN_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::IFLA_OVPN_UNSPEC; +pub const IFLA_OVPN_MODE: _bindgen_ty_57 = _bindgen_ty_57::IFLA_OVPN_MODE; +pub const __IFLA_OVPN_MAX: _bindgen_ty_57 = _bindgen_ty_57::__IFLA_OVPN_MAX; +pub const IF_PORT_UNKNOWN: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_UNKNOWN; +pub const IF_PORT_10BASE2: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_10BASE2; +pub const IF_PORT_10BASET: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_10BASET; +pub const IF_PORT_AUI: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_AUI; +pub const IF_PORT_100BASET: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_100BASET; +pub const IF_PORT_100BASETX: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_100BASETX; +pub const IF_PORT_100BASEFX: _bindgen_ty_58 = _bindgen_ty_58::IF_PORT_100BASEFX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum net_device_flags { +IFF_UP = 1, +IFF_BROADCAST = 2, +IFF_DEBUG = 4, +IFF_LOOPBACK = 8, +IFF_POINTOPOINT = 16, +IFF_NOTRAILERS = 32, +IFF_RUNNING = 64, +IFF_NOARP = 128, +IFF_PROMISC = 256, +IFF_ALLMULTI = 512, +IFF_MASTER = 1024, +IFF_SLAVE = 2048, +IFF_MULTICAST = 4096, +IFF_PORTSEL = 8192, +IFF_AUTOMEDIA = 16384, +IFF_DYNAMIC = 32768, +IFF_LOWER_UP = 65536, +IFF_DORMANT = 131072, +IFF_ECHO = 262144, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +IF_OPER_UNKNOWN = 0, +IF_OPER_NOTPRESENT = 1, +IF_OPER_DOWN = 2, +IF_OPER_LOWERLAYERDOWN = 3, +IF_OPER_TESTING = 4, +IF_OPER_DORMANT = 5, +IF_OPER_UP = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IF_LINK_MODE_DEFAULT = 0, +IF_LINK_MODE_DORMANT = 1, +IF_LINK_MODE_TESTING = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tpacket_versions { +TPACKET_V1 = 0, +TPACKET_V2 = 1, +TPACKET_V3 = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nlmsgerr_attrs { +NLMSGERR_ATTR_UNUSED = 0, +NLMSGERR_ATTR_MSG = 1, +NLMSGERR_ATTR_OFFS = 2, +NLMSGERR_ATTR_COOKIE = 3, +NLMSGERR_ATTR_POLICY = 4, +NLMSGERR_ATTR_MISS_TYPE = 5, +NLMSGERR_ATTR_MISS_NEST = 6, +__NLMSGERR_ATTR_MAX = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl_mmap_status { +NL_MMAP_STATUS_UNUSED = 0, +NL_MMAP_STATUS_RESERVED = 1, +NL_MMAP_STATUS_VALID = 2, +NL_MMAP_STATUS_COPY = 3, +NL_MMAP_STATUS_SKIP = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +NETLINK_UNCONNECTED = 0, +NETLINK_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_attribute_type { +NL_ATTR_TYPE_INVALID = 0, +NL_ATTR_TYPE_FLAG = 1, +NL_ATTR_TYPE_U8 = 2, +NL_ATTR_TYPE_U16 = 3, +NL_ATTR_TYPE_U32 = 4, +NL_ATTR_TYPE_U64 = 5, +NL_ATTR_TYPE_S8 = 6, +NL_ATTR_TYPE_S16 = 7, +NL_ATTR_TYPE_S32 = 8, +NL_ATTR_TYPE_S64 = 9, +NL_ATTR_TYPE_BINARY = 10, +NL_ATTR_TYPE_STRING = 11, +NL_ATTR_TYPE_NUL_STRING = 12, +NL_ATTR_TYPE_NESTED = 13, +NL_ATTR_TYPE_NESTED_ARRAY = 14, +NL_ATTR_TYPE_BITFIELD32 = 15, +NL_ATTR_TYPE_SINT = 16, +NL_ATTR_TYPE_UINT = 17, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_policy_type_attr { +NL_POLICY_TYPE_ATTR_UNSPEC = 0, +NL_POLICY_TYPE_ATTR_TYPE = 1, +NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, +NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, +NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, +NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, +NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, +NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, +NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, +NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, +NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, +NL_POLICY_TYPE_ATTR_PAD = 11, +NL_POLICY_TYPE_ATTR_MASK = 12, +__NL_POLICY_TYPE_ATTR_MAX = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IFLA_UNSPEC = 0, +IFLA_ADDRESS = 1, +IFLA_BROADCAST = 2, +IFLA_IFNAME = 3, +IFLA_MTU = 4, +IFLA_LINK = 5, +IFLA_QDISC = 6, +IFLA_STATS = 7, +IFLA_COST = 8, +IFLA_PRIORITY = 9, +IFLA_MASTER = 10, +IFLA_WIRELESS = 11, +IFLA_PROTINFO = 12, +IFLA_TXQLEN = 13, +IFLA_MAP = 14, +IFLA_WEIGHT = 15, +IFLA_OPERSTATE = 16, +IFLA_LINKMODE = 17, +IFLA_LINKINFO = 18, +IFLA_NET_NS_PID = 19, +IFLA_IFALIAS = 20, +IFLA_NUM_VF = 21, +IFLA_VFINFO_LIST = 22, +IFLA_STATS64 = 23, +IFLA_VF_PORTS = 24, +IFLA_PORT_SELF = 25, +IFLA_AF_SPEC = 26, +IFLA_GROUP = 27, +IFLA_NET_NS_FD = 28, +IFLA_EXT_MASK = 29, +IFLA_PROMISCUITY = 30, +IFLA_NUM_TX_QUEUES = 31, +IFLA_NUM_RX_QUEUES = 32, +IFLA_CARRIER = 33, +IFLA_PHYS_PORT_ID = 34, +IFLA_CARRIER_CHANGES = 35, +IFLA_PHYS_SWITCH_ID = 36, +IFLA_LINK_NETNSID = 37, +IFLA_PHYS_PORT_NAME = 38, +IFLA_PROTO_DOWN = 39, +IFLA_GSO_MAX_SEGS = 40, +IFLA_GSO_MAX_SIZE = 41, +IFLA_PAD = 42, +IFLA_XDP = 43, +IFLA_EVENT = 44, +IFLA_NEW_NETNSID = 45, +IFLA_IF_NETNSID = 46, +IFLA_CARRIER_UP_COUNT = 47, +IFLA_CARRIER_DOWN_COUNT = 48, +IFLA_NEW_IFINDEX = 49, +IFLA_MIN_MTU = 50, +IFLA_MAX_MTU = 51, +IFLA_PROP_LIST = 52, +IFLA_ALT_IFNAME = 53, +IFLA_PERM_ADDRESS = 54, +IFLA_PROTO_DOWN_REASON = 55, +IFLA_PARENT_DEV_NAME = 56, +IFLA_PARENT_DEV_BUS_NAME = 57, +IFLA_GRO_MAX_SIZE = 58, +IFLA_TSO_MAX_SIZE = 59, +IFLA_TSO_MAX_SEGS = 60, +IFLA_ALLMULTI = 61, +IFLA_DEVLINK_PORT = 62, +IFLA_GSO_IPV4_MAX_SIZE = 63, +IFLA_GRO_IPV4_MAX_SIZE = 64, +IFLA_DPLL_PIN = 65, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +IFLA_NETNS_IMMUTABLE = 67, +__IFLA_MAX = 68, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_5 { +IFLA_PROTO_DOWN_REASON_UNSPEC = 0, +IFLA_PROTO_DOWN_REASON_MASK = 1, +IFLA_PROTO_DOWN_REASON_VALUE = 2, +__IFLA_PROTO_DOWN_REASON_CNT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_6 { +IFLA_INET_UNSPEC = 0, +IFLA_INET_CONF = 1, +__IFLA_INET_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_7 { +IFLA_INET6_UNSPEC = 0, +IFLA_INET6_FLAGS = 1, +IFLA_INET6_CONF = 2, +IFLA_INET6_STATS = 3, +IFLA_INET6_MCAST = 4, +IFLA_INET6_CACHEINFO = 5, +IFLA_INET6_ICMP6STATS = 6, +IFLA_INET6_TOKEN = 7, +IFLA_INET6_ADDR_GEN_MODE = 8, +IFLA_INET6_RA_MTU = 9, +__IFLA_INET6_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum in6_addr_gen_mode { +IN6_ADDR_GEN_MODE_EUI64 = 0, +IN6_ADDR_GEN_MODE_NONE = 1, +IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, +IN6_ADDR_GEN_MODE_RANDOM = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_8 { +IFLA_BR_UNSPEC = 0, +IFLA_BR_FORWARD_DELAY = 1, +IFLA_BR_HELLO_TIME = 2, +IFLA_BR_MAX_AGE = 3, +IFLA_BR_AGEING_TIME = 4, +IFLA_BR_STP_STATE = 5, +IFLA_BR_PRIORITY = 6, +IFLA_BR_VLAN_FILTERING = 7, +IFLA_BR_VLAN_PROTOCOL = 8, +IFLA_BR_GROUP_FWD_MASK = 9, +IFLA_BR_ROOT_ID = 10, +IFLA_BR_BRIDGE_ID = 11, +IFLA_BR_ROOT_PORT = 12, +IFLA_BR_ROOT_PATH_COST = 13, +IFLA_BR_TOPOLOGY_CHANGE = 14, +IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, +IFLA_BR_HELLO_TIMER = 16, +IFLA_BR_TCN_TIMER = 17, +IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, +IFLA_BR_GC_TIMER = 19, +IFLA_BR_GROUP_ADDR = 20, +IFLA_BR_FDB_FLUSH = 21, +IFLA_BR_MCAST_ROUTER = 22, +IFLA_BR_MCAST_SNOOPING = 23, +IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, +IFLA_BR_MCAST_QUERIER = 25, +IFLA_BR_MCAST_HASH_ELASTICITY = 26, +IFLA_BR_MCAST_HASH_MAX = 27, +IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, +IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, +IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, +IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, +IFLA_BR_MCAST_QUERIER_INTVL = 32, +IFLA_BR_MCAST_QUERY_INTVL = 33, +IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, +IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, +IFLA_BR_NF_CALL_IPTABLES = 36, +IFLA_BR_NF_CALL_IP6TABLES = 37, +IFLA_BR_NF_CALL_ARPTABLES = 38, +IFLA_BR_VLAN_DEFAULT_PVID = 39, +IFLA_BR_PAD = 40, +IFLA_BR_VLAN_STATS_ENABLED = 41, +IFLA_BR_MCAST_STATS_ENABLED = 42, +IFLA_BR_MCAST_IGMP_VERSION = 43, +IFLA_BR_MCAST_MLD_VERSION = 44, +IFLA_BR_VLAN_STATS_PER_PORT = 45, +IFLA_BR_MULTI_BOOLOPT = 46, +IFLA_BR_MCAST_QUERIER_STATE = 47, +IFLA_BR_FDB_N_LEARNED = 48, +IFLA_BR_FDB_MAX_LEARNED = 49, +__IFLA_BR_MAX = 50, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_9 { +BRIDGE_MODE_UNSPEC = 0, +BRIDGE_MODE_HAIRPIN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_10 { +IFLA_BRPORT_UNSPEC = 0, +IFLA_BRPORT_STATE = 1, +IFLA_BRPORT_PRIORITY = 2, +IFLA_BRPORT_COST = 3, +IFLA_BRPORT_MODE = 4, +IFLA_BRPORT_GUARD = 5, +IFLA_BRPORT_PROTECT = 6, +IFLA_BRPORT_FAST_LEAVE = 7, +IFLA_BRPORT_LEARNING = 8, +IFLA_BRPORT_UNICAST_FLOOD = 9, +IFLA_BRPORT_PROXYARP = 10, +IFLA_BRPORT_LEARNING_SYNC = 11, +IFLA_BRPORT_PROXYARP_WIFI = 12, +IFLA_BRPORT_ROOT_ID = 13, +IFLA_BRPORT_BRIDGE_ID = 14, +IFLA_BRPORT_DESIGNATED_PORT = 15, +IFLA_BRPORT_DESIGNATED_COST = 16, +IFLA_BRPORT_ID = 17, +IFLA_BRPORT_NO = 18, +IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, +IFLA_BRPORT_CONFIG_PENDING = 20, +IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, +IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, +IFLA_BRPORT_HOLD_TIMER = 23, +IFLA_BRPORT_FLUSH = 24, +IFLA_BRPORT_MULTICAST_ROUTER = 25, +IFLA_BRPORT_PAD = 26, +IFLA_BRPORT_MCAST_FLOOD = 27, +IFLA_BRPORT_MCAST_TO_UCAST = 28, +IFLA_BRPORT_VLAN_TUNNEL = 29, +IFLA_BRPORT_BCAST_FLOOD = 30, +IFLA_BRPORT_GROUP_FWD_MASK = 31, +IFLA_BRPORT_NEIGH_SUPPRESS = 32, +IFLA_BRPORT_ISOLATED = 33, +IFLA_BRPORT_BACKUP_PORT = 34, +IFLA_BRPORT_MRP_RING_OPEN = 35, +IFLA_BRPORT_MRP_IN_OPEN = 36, +IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, +IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, +IFLA_BRPORT_LOCKED = 39, +IFLA_BRPORT_MAB = 40, +IFLA_BRPORT_MCAST_N_GROUPS = 41, +IFLA_BRPORT_MCAST_MAX_GROUPS = 42, +IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, +IFLA_BRPORT_BACKUP_NHID = 44, +__IFLA_BRPORT_MAX = 45, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_11 { +IFLA_INFO_UNSPEC = 0, +IFLA_INFO_KIND = 1, +IFLA_INFO_DATA = 2, +IFLA_INFO_XSTATS = 3, +IFLA_INFO_SLAVE_KIND = 4, +IFLA_INFO_SLAVE_DATA = 5, +__IFLA_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_12 { +IFLA_VLAN_UNSPEC = 0, +IFLA_VLAN_ID = 1, +IFLA_VLAN_FLAGS = 2, +IFLA_VLAN_EGRESS_QOS = 3, +IFLA_VLAN_INGRESS_QOS = 4, +IFLA_VLAN_PROTOCOL = 5, +__IFLA_VLAN_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_13 { +IFLA_VLAN_QOS_UNSPEC = 0, +IFLA_VLAN_QOS_MAPPING = 1, +__IFLA_VLAN_QOS_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_14 { +IFLA_MACVLAN_UNSPEC = 0, +IFLA_MACVLAN_MODE = 1, +IFLA_MACVLAN_FLAGS = 2, +IFLA_MACVLAN_MACADDR_MODE = 3, +IFLA_MACVLAN_MACADDR = 4, +IFLA_MACVLAN_MACADDR_DATA = 5, +IFLA_MACVLAN_MACADDR_COUNT = 6, +IFLA_MACVLAN_BC_QUEUE_LEN = 7, +IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, +IFLA_MACVLAN_BC_CUTOFF = 9, +__IFLA_MACVLAN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_mode { +MACVLAN_MODE_PRIVATE = 1, +MACVLAN_MODE_VEPA = 2, +MACVLAN_MODE_BRIDGE = 4, +MACVLAN_MODE_PASSTHRU = 8, +MACVLAN_MODE_SOURCE = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_macaddr_mode { +MACVLAN_MACADDR_ADD = 0, +MACVLAN_MACADDR_DEL = 1, +MACVLAN_MACADDR_FLUSH = 2, +MACVLAN_MACADDR_SET = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_15 { +IFLA_VRF_UNSPEC = 0, +IFLA_VRF_TABLE = 1, +__IFLA_VRF_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_16 { +IFLA_VRF_PORT_UNSPEC = 0, +IFLA_VRF_PORT_TABLE = 1, +__IFLA_VRF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_17 { +IFLA_MACSEC_UNSPEC = 0, +IFLA_MACSEC_SCI = 1, +IFLA_MACSEC_PORT = 2, +IFLA_MACSEC_ICV_LEN = 3, +IFLA_MACSEC_CIPHER_SUITE = 4, +IFLA_MACSEC_WINDOW = 5, +IFLA_MACSEC_ENCODING_SA = 6, +IFLA_MACSEC_ENCRYPT = 7, +IFLA_MACSEC_PROTECT = 8, +IFLA_MACSEC_INC_SCI = 9, +IFLA_MACSEC_ES = 10, +IFLA_MACSEC_SCB = 11, +IFLA_MACSEC_REPLAY_PROTECT = 12, +IFLA_MACSEC_VALIDATION = 13, +IFLA_MACSEC_PAD = 14, +IFLA_MACSEC_OFFLOAD = 15, +__IFLA_MACSEC_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_18 { +IFLA_XFRM_UNSPEC = 0, +IFLA_XFRM_LINK = 1, +IFLA_XFRM_IF_ID = 2, +IFLA_XFRM_COLLECT_METADATA = 3, +__IFLA_XFRM_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_validation_type { +MACSEC_VALIDATE_DISABLED = 0, +MACSEC_VALIDATE_CHECK = 1, +MACSEC_VALIDATE_STRICT = 2, +__MACSEC_VALIDATE_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_offload { +MACSEC_OFFLOAD_OFF = 0, +MACSEC_OFFLOAD_PHY = 1, +MACSEC_OFFLOAD_MAC = 2, +__MACSEC_OFFLOAD_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_19 { +IFLA_IPVLAN_UNSPEC = 0, +IFLA_IPVLAN_MODE = 1, +IFLA_IPVLAN_FLAGS = 2, +__IFLA_IPVLAN_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ipvlan_mode { +IPVLAN_MODE_L2 = 0, +IPVLAN_MODE_L3 = 1, +IPVLAN_MODE_L3S = 2, +IPVLAN_MODE_MAX = 3, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_action { +NETKIT_NEXT = -1, +NETKIT_PASS = 0, +NETKIT_DROP = 2, +NETKIT_REDIRECT = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_mode { +NETKIT_L2 = 0, +NETKIT_L3 = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_20 { +IFLA_NETKIT_UNSPEC = 0, +IFLA_NETKIT_PEER_INFO = 1, +IFLA_NETKIT_PRIMARY = 2, +IFLA_NETKIT_POLICY = 3, +IFLA_NETKIT_PEER_POLICY = 4, +IFLA_NETKIT_MODE = 5, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +IFLA_NETKIT_HEADROOM = 8, +IFLA_NETKIT_TAILROOM = 9, +__IFLA_NETKIT_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_21 { +VNIFILTER_ENTRY_STATS_UNSPEC = 0, +VNIFILTER_ENTRY_STATS_RX_BYTES = 1, +VNIFILTER_ENTRY_STATS_RX_PKTS = 2, +VNIFILTER_ENTRY_STATS_RX_DROPS = 3, +VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, +VNIFILTER_ENTRY_STATS_TX_BYTES = 5, +VNIFILTER_ENTRY_STATS_TX_PKTS = 6, +VNIFILTER_ENTRY_STATS_TX_DROPS = 7, +VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, +VNIFILTER_ENTRY_STATS_PAD = 9, +__VNIFILTER_ENTRY_STATS_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_22 { +VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY_START = 1, +VXLAN_VNIFILTER_ENTRY_END = 2, +VXLAN_VNIFILTER_ENTRY_GROUP = 3, +VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, +VXLAN_VNIFILTER_ENTRY_STATS = 5, +__VXLAN_VNIFILTER_ENTRY_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_23 { +VXLAN_VNIFILTER_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY = 1, +__VXLAN_VNIFILTER_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_24 { +IFLA_VXLAN_UNSPEC = 0, +IFLA_VXLAN_ID = 1, +IFLA_VXLAN_GROUP = 2, +IFLA_VXLAN_LINK = 3, +IFLA_VXLAN_LOCAL = 4, +IFLA_VXLAN_TTL = 5, +IFLA_VXLAN_TOS = 6, +IFLA_VXLAN_LEARNING = 7, +IFLA_VXLAN_AGEING = 8, +IFLA_VXLAN_LIMIT = 9, +IFLA_VXLAN_PORT_RANGE = 10, +IFLA_VXLAN_PROXY = 11, +IFLA_VXLAN_RSC = 12, +IFLA_VXLAN_L2MISS = 13, +IFLA_VXLAN_L3MISS = 14, +IFLA_VXLAN_PORT = 15, +IFLA_VXLAN_GROUP6 = 16, +IFLA_VXLAN_LOCAL6 = 17, +IFLA_VXLAN_UDP_CSUM = 18, +IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, +IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, +IFLA_VXLAN_REMCSUM_TX = 21, +IFLA_VXLAN_REMCSUM_RX = 22, +IFLA_VXLAN_GBP = 23, +IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, +IFLA_VXLAN_COLLECT_METADATA = 25, +IFLA_VXLAN_LABEL = 26, +IFLA_VXLAN_GPE = 27, +IFLA_VXLAN_TTL_INHERIT = 28, +IFLA_VXLAN_DF = 29, +IFLA_VXLAN_VNIFILTER = 30, +IFLA_VXLAN_LOCALBYPASS = 31, +IFLA_VXLAN_LABEL_POLICY = 32, +IFLA_VXLAN_RESERVED_BITS = 33, +__IFLA_VXLAN_MAX = 34, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_df { +VXLAN_DF_UNSET = 0, +VXLAN_DF_SET = 1, +VXLAN_DF_INHERIT = 2, +__VXLAN_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_label_policy { +VXLAN_LABEL_FIXED = 0, +VXLAN_LABEL_INHERIT = 1, +__VXLAN_LABEL_END = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_25 { +IFLA_GENEVE_UNSPEC = 0, +IFLA_GENEVE_ID = 1, +IFLA_GENEVE_REMOTE = 2, +IFLA_GENEVE_TTL = 3, +IFLA_GENEVE_TOS = 4, +IFLA_GENEVE_PORT = 5, +IFLA_GENEVE_COLLECT_METADATA = 6, +IFLA_GENEVE_REMOTE6 = 7, +IFLA_GENEVE_UDP_CSUM = 8, +IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, +IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, +IFLA_GENEVE_LABEL = 11, +IFLA_GENEVE_TTL_INHERIT = 12, +IFLA_GENEVE_DF = 13, +IFLA_GENEVE_INNER_PROTO_INHERIT = 14, +IFLA_GENEVE_PORT_RANGE = 15, +__IFLA_GENEVE_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_geneve_df { +GENEVE_DF_UNSET = 0, +GENEVE_DF_SET = 1, +GENEVE_DF_INHERIT = 2, +__GENEVE_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_26 { +IFLA_BAREUDP_UNSPEC = 0, +IFLA_BAREUDP_PORT = 1, +IFLA_BAREUDP_ETHERTYPE = 2, +IFLA_BAREUDP_SRCPORT_MIN = 3, +IFLA_BAREUDP_MULTIPROTO_MODE = 4, +__IFLA_BAREUDP_MAX = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_27 { +IFLA_PPP_UNSPEC = 0, +IFLA_PPP_DEV_FD = 1, +__IFLA_PPP_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_gtp_role { +GTP_ROLE_GGSN = 0, +GTP_ROLE_SGSN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_28 { +IFLA_GTP_UNSPEC = 0, +IFLA_GTP_FD0 = 1, +IFLA_GTP_FD1 = 2, +IFLA_GTP_PDP_HASHSIZE = 3, +IFLA_GTP_ROLE = 4, +IFLA_GTP_CREATE_SOCKETS = 5, +IFLA_GTP_RESTART_COUNT = 6, +IFLA_GTP_LOCAL = 7, +IFLA_GTP_LOCAL6 = 8, +__IFLA_GTP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_29 { +IFLA_BOND_UNSPEC = 0, +IFLA_BOND_MODE = 1, +IFLA_BOND_ACTIVE_SLAVE = 2, +IFLA_BOND_MIIMON = 3, +IFLA_BOND_UPDELAY = 4, +IFLA_BOND_DOWNDELAY = 5, +IFLA_BOND_USE_CARRIER = 6, +IFLA_BOND_ARP_INTERVAL = 7, +IFLA_BOND_ARP_IP_TARGET = 8, +IFLA_BOND_ARP_VALIDATE = 9, +IFLA_BOND_ARP_ALL_TARGETS = 10, +IFLA_BOND_PRIMARY = 11, +IFLA_BOND_PRIMARY_RESELECT = 12, +IFLA_BOND_FAIL_OVER_MAC = 13, +IFLA_BOND_XMIT_HASH_POLICY = 14, +IFLA_BOND_RESEND_IGMP = 15, +IFLA_BOND_NUM_PEER_NOTIF = 16, +IFLA_BOND_ALL_SLAVES_ACTIVE = 17, +IFLA_BOND_MIN_LINKS = 18, +IFLA_BOND_LP_INTERVAL = 19, +IFLA_BOND_PACKETS_PER_SLAVE = 20, +IFLA_BOND_AD_LACP_RATE = 21, +IFLA_BOND_AD_SELECT = 22, +IFLA_BOND_AD_INFO = 23, +IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, +IFLA_BOND_AD_USER_PORT_KEY = 25, +IFLA_BOND_AD_ACTOR_SYSTEM = 26, +IFLA_BOND_TLB_DYNAMIC_LB = 27, +IFLA_BOND_PEER_NOTIF_DELAY = 28, +IFLA_BOND_AD_LACP_ACTIVE = 29, +IFLA_BOND_MISSED_MAX = 30, +IFLA_BOND_NS_IP6_TARGET = 31, +IFLA_BOND_COUPLED_CONTROL = 32, +__IFLA_BOND_MAX = 33, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_30 { +IFLA_BOND_AD_INFO_UNSPEC = 0, +IFLA_BOND_AD_INFO_AGGREGATOR = 1, +IFLA_BOND_AD_INFO_NUM_PORTS = 2, +IFLA_BOND_AD_INFO_ACTOR_KEY = 3, +IFLA_BOND_AD_INFO_PARTNER_KEY = 4, +IFLA_BOND_AD_INFO_PARTNER_MAC = 5, +__IFLA_BOND_AD_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_31 { +IFLA_BOND_SLAVE_UNSPEC = 0, +IFLA_BOND_SLAVE_STATE = 1, +IFLA_BOND_SLAVE_MII_STATUS = 2, +IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, +IFLA_BOND_SLAVE_PERM_HWADDR = 4, +IFLA_BOND_SLAVE_QUEUE_ID = 5, +IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, +IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, +IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, +IFLA_BOND_SLAVE_PRIO = 9, +__IFLA_BOND_SLAVE_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_32 { +IFLA_VF_INFO_UNSPEC = 0, +IFLA_VF_INFO = 1, +__IFLA_VF_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_33 { +IFLA_VF_UNSPEC = 0, +IFLA_VF_MAC = 1, +IFLA_VF_VLAN = 2, +IFLA_VF_TX_RATE = 3, +IFLA_VF_SPOOFCHK = 4, +IFLA_VF_LINK_STATE = 5, +IFLA_VF_RATE = 6, +IFLA_VF_RSS_QUERY_EN = 7, +IFLA_VF_STATS = 8, +IFLA_VF_TRUST = 9, +IFLA_VF_IB_NODE_GUID = 10, +IFLA_VF_IB_PORT_GUID = 11, +IFLA_VF_VLAN_LIST = 12, +IFLA_VF_BROADCAST = 13, +__IFLA_VF_MAX = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_34 { +IFLA_VF_VLAN_INFO_UNSPEC = 0, +IFLA_VF_VLAN_INFO = 1, +__IFLA_VF_VLAN_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_35 { +IFLA_VF_LINK_STATE_AUTO = 0, +IFLA_VF_LINK_STATE_ENABLE = 1, +IFLA_VF_LINK_STATE_DISABLE = 2, +__IFLA_VF_LINK_STATE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_36 { +IFLA_VF_STATS_RX_PACKETS = 0, +IFLA_VF_STATS_TX_PACKETS = 1, +IFLA_VF_STATS_RX_BYTES = 2, +IFLA_VF_STATS_TX_BYTES = 3, +IFLA_VF_STATS_BROADCAST = 4, +IFLA_VF_STATS_MULTICAST = 5, +IFLA_VF_STATS_PAD = 6, +IFLA_VF_STATS_RX_DROPPED = 7, +IFLA_VF_STATS_TX_DROPPED = 8, +__IFLA_VF_STATS_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_37 { +IFLA_VF_PORT_UNSPEC = 0, +IFLA_VF_PORT = 1, +__IFLA_VF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_38 { +IFLA_PORT_UNSPEC = 0, +IFLA_PORT_VF = 1, +IFLA_PORT_PROFILE = 2, +IFLA_PORT_VSI_TYPE = 3, +IFLA_PORT_INSTANCE_UUID = 4, +IFLA_PORT_HOST_UUID = 5, +IFLA_PORT_REQUEST = 6, +IFLA_PORT_RESPONSE = 7, +__IFLA_PORT_MAX = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_39 { +PORT_REQUEST_PREASSOCIATE = 0, +PORT_REQUEST_PREASSOCIATE_RR = 1, +PORT_REQUEST_ASSOCIATE = 2, +PORT_REQUEST_DISASSOCIATE = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_40 { +PORT_VDP_RESPONSE_SUCCESS = 0, +PORT_VDP_RESPONSE_INVALID_FORMAT = 1, +PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, +PORT_VDP_RESPONSE_UNUSED_VTID = 3, +PORT_VDP_RESPONSE_VTID_VIOLATION = 4, +PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, +PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, +PORT_PROFILE_RESPONSE_SUCCESS = 256, +PORT_PROFILE_RESPONSE_INPROGRESS = 257, +PORT_PROFILE_RESPONSE_INVALID = 258, +PORT_PROFILE_RESPONSE_BADSTATE = 259, +PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, +PORT_PROFILE_RESPONSE_ERROR = 261, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_41 { +IFLA_IPOIB_UNSPEC = 0, +IFLA_IPOIB_PKEY = 1, +IFLA_IPOIB_MODE = 2, +IFLA_IPOIB_UMCAST = 3, +__IFLA_IPOIB_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_42 { +IPOIB_MODE_DATAGRAM = 0, +IPOIB_MODE_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_43 { +HSR_PROTOCOL_HSR = 0, +HSR_PROTOCOL_PRP = 1, +HSR_PROTOCOL_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_44 { +IFLA_HSR_UNSPEC = 0, +IFLA_HSR_SLAVE1 = 1, +IFLA_HSR_SLAVE2 = 2, +IFLA_HSR_MULTICAST_SPEC = 3, +IFLA_HSR_SUPERVISION_ADDR = 4, +IFLA_HSR_SEQ_NR = 5, +IFLA_HSR_VERSION = 6, +IFLA_HSR_PROTOCOL = 7, +IFLA_HSR_INTERLINK = 8, +__IFLA_HSR_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_45 { +IFLA_STATS_UNSPEC = 0, +IFLA_STATS_LINK_64 = 1, +IFLA_STATS_LINK_XSTATS = 2, +IFLA_STATS_LINK_XSTATS_SLAVE = 3, +IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, +IFLA_STATS_AF_SPEC = 5, +__IFLA_STATS_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_46 { +IFLA_STATS_GETSET_UNSPEC = 0, +IFLA_STATS_GET_FILTERS = 1, +IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, +__IFLA_STATS_GETSET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_47 { +LINK_XSTATS_TYPE_UNSPEC = 0, +LINK_XSTATS_TYPE_BRIDGE = 1, +LINK_XSTATS_TYPE_BOND = 2, +__LINK_XSTATS_TYPE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_48 { +IFLA_OFFLOAD_XSTATS_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, +IFLA_OFFLOAD_XSTATS_L3_STATS = 3, +__IFLA_OFFLOAD_XSTATS_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_49 { +IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, +__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_50 { +XDP_ATTACHED_NONE = 0, +XDP_ATTACHED_DRV = 1, +XDP_ATTACHED_SKB = 2, +XDP_ATTACHED_HW = 3, +XDP_ATTACHED_MULTI = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_51 { +IFLA_XDP_UNSPEC = 0, +IFLA_XDP_FD = 1, +IFLA_XDP_ATTACHED = 2, +IFLA_XDP_FLAGS = 3, +IFLA_XDP_PROG_ID = 4, +IFLA_XDP_DRV_PROG_ID = 5, +IFLA_XDP_SKB_PROG_ID = 6, +IFLA_XDP_HW_PROG_ID = 7, +IFLA_XDP_EXPECTED_FD = 8, +__IFLA_XDP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_52 { +IFLA_EVENT_NONE = 0, +IFLA_EVENT_REBOOT = 1, +IFLA_EVENT_FEATURES = 2, +IFLA_EVENT_BONDING_FAILOVER = 3, +IFLA_EVENT_NOTIFY_PEERS = 4, +IFLA_EVENT_IGMP_RESEND = 5, +IFLA_EVENT_BONDING_OPTIONS = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_53 { +IFLA_TUN_UNSPEC = 0, +IFLA_TUN_OWNER = 1, +IFLA_TUN_GROUP = 2, +IFLA_TUN_TYPE = 3, +IFLA_TUN_PI = 4, +IFLA_TUN_VNET_HDR = 5, +IFLA_TUN_PERSIST = 6, +IFLA_TUN_MULTI_QUEUE = 7, +IFLA_TUN_NUM_QUEUES = 8, +IFLA_TUN_NUM_DISABLED_QUEUES = 9, +__IFLA_TUN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_54 { +IFLA_RMNET_UNSPEC = 0, +IFLA_RMNET_MUX_ID = 1, +IFLA_RMNET_FLAGS = 2, +__IFLA_RMNET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_55 { +IFLA_MCTP_UNSPEC = 0, +IFLA_MCTP_NET = 1, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_56 { +IFLA_DSA_UNSPEC = 0, +IFLA_DSA_CONDUIT = 1, +__IFLA_DSA_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ovpn_mode { +OVPN_MODE_P2P = 0, +OVPN_MODE_MP = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_57 { +IFLA_OVPN_UNSPEC = 0, +IFLA_OVPN_MODE = 1, +__IFLA_OVPN_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_58 { +IF_PORT_UNKNOWN = 0, +IF_PORT_10BASE2 = 1, +IF_PORT_10BASET = 2, +IF_PORT_AUI = 3, +IF_PORT_100BASET = 4, +IF_PORT_100BASETX = 5, +IF_PORT_100BASEFX = 6, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __kernel_sockaddr_storage__bindgen_ty_1 { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, +pub __align: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union if_settings__bindgen_ty_1 { +pub raw_hdlc: *mut raw_hdlc_proto, +pub cisco: *mut cisco_proto, +pub fr: *mut fr_proto, +pub fr_pvc: *mut fr_proto_pvc, +pub fr_pvc_info: *mut fr_proto_pvc_info, +pub x25: *mut x25_hdlc_proto, +pub sync: *mut sync_serial_settings, +pub te1: *mut te1_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_1 { +pub ifrn_name: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_2 { +pub ifru_addr: sockaddr, +pub ifru_dstaddr: sockaddr, +pub ifru_broadaddr: sockaddr, +pub ifru_netmask: sockaddr, +pub ifru_hwaddr: sockaddr, +pub ifru_flags: crate::ctypes::c_short, +pub ifru_ivalue: crate::ctypes::c_int, +pub ifru_mtu: crate::ctypes::c_int, +pub ifru_map: ifmap, +pub ifru_slave: [crate::ctypes::c_char; 16usize], +pub ifru_newname: [crate::ctypes::c_char; 16usize], +pub ifru_data: *mut crate::ctypes::c_void, +pub ifru_settings: if_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifconf__bindgen_ty_1 { +pub ifcu_buf: *mut crate::ctypes::c_char, +pub ifcu_req: *mut ifreq, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_stats_u { +pub stats1: tpacket_stats, +pub stats3: tpacket_stats_v3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket3_hdr__bindgen_ty_1 { +pub hv1: tpacket_hdr_variant1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_ts__bindgen_ty_1 { +pub ts_usec: crate::ctypes::c_uint, +pub ts_nsec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_header_u { +pub bh1: tpacket_hdr_v1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_req_u { +pub req: tpacket_req, +pub req3: tpacket_req3, +} +impl nlmsgerr_attrs { +pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; +} +impl netlink_policy_type_attr { +pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; +} +impl macsec_validation_type { +pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; +} +impl macsec_offload { +pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; +} +impl ifla_vxlan_df { +pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; +} +impl ifla_vxlan_label_policy { +pub const VXLAN_LABEL_MAX: ifla_vxlan_label_policy = ifla_vxlan_label_policy::VXLAN_LABEL_INHERIT; +} +impl ifla_geneve_df { +pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/if_ether.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/if_ether.rs new file mode 100644 index 0000000000000000000000000000000000000000..5224b4c645740b6017376e393432f0c65a5c7923 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/if_ether.rs @@ -0,0 +1,170 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_longlong; +pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct ethhdr { +pub h_dest: [crate::ctypes::c_uchar; 6usize], +pub h_source: [crate::ctypes::c_uchar; 6usize], +pub h_proto: __be16, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const ETH_ALEN: u32 = 6; +pub const ETH_TLEN: u32 = 2; +pub const ETH_HLEN: u32 = 14; +pub const ETH_ZLEN: u32 = 60; +pub const ETH_DATA_LEN: u32 = 1500; +pub const ETH_FRAME_LEN: u32 = 1514; +pub const ETH_FCS_LEN: u32 = 4; +pub const ETH_MIN_MTU: u32 = 68; +pub const ETH_MAX_MTU: u32 = 65535; +pub const ETH_P_LOOP: u32 = 96; +pub const ETH_P_PUP: u32 = 512; +pub const ETH_P_PUPAT: u32 = 513; +pub const ETH_P_TSN: u32 = 8944; +pub const ETH_P_ERSPAN2: u32 = 8939; +pub const ETH_P_IP: u32 = 2048; +pub const ETH_P_X25: u32 = 2053; +pub const ETH_P_ARP: u32 = 2054; +pub const ETH_P_BPQ: u32 = 2303; +pub const ETH_P_IEEEPUP: u32 = 2560; +pub const ETH_P_IEEEPUPAT: u32 = 2561; +pub const ETH_P_BATMAN: u32 = 17157; +pub const ETH_P_DEC: u32 = 24576; +pub const ETH_P_DNA_DL: u32 = 24577; +pub const ETH_P_DNA_RC: u32 = 24578; +pub const ETH_P_DNA_RT: u32 = 24579; +pub const ETH_P_LAT: u32 = 24580; +pub const ETH_P_DIAG: u32 = 24581; +pub const ETH_P_CUST: u32 = 24582; +pub const ETH_P_SCA: u32 = 24583; +pub const ETH_P_TEB: u32 = 25944; +pub const ETH_P_RARP: u32 = 32821; +pub const ETH_P_ATALK: u32 = 32923; +pub const ETH_P_AARP: u32 = 33011; +pub const ETH_P_8021Q: u32 = 33024; +pub const ETH_P_ERSPAN: u32 = 35006; +pub const ETH_P_IPX: u32 = 33079; +pub const ETH_P_IPV6: u32 = 34525; +pub const ETH_P_PAUSE: u32 = 34824; +pub const ETH_P_SLOW: u32 = 34825; +pub const ETH_P_WCCP: u32 = 34878; +pub const ETH_P_MPLS_UC: u32 = 34887; +pub const ETH_P_MPLS_MC: u32 = 34888; +pub const ETH_P_ATMMPOA: u32 = 34892; +pub const ETH_P_PPP_DISC: u32 = 34915; +pub const ETH_P_PPP_SES: u32 = 34916; +pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_ATMFATE: u32 = 34948; +pub const ETH_P_PAE: u32 = 34958; +pub const ETH_P_PROFINET: u32 = 34962; +pub const ETH_P_REALTEK: u32 = 34969; +pub const ETH_P_AOE: u32 = 34978; +pub const ETH_P_ETHERCAT: u32 = 34980; +pub const ETH_P_8021AD: u32 = 34984; +pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_PREAUTH: u32 = 35015; +pub const ETH_P_TIPC: u32 = 35018; +pub const ETH_P_LLDP: u32 = 35020; +pub const ETH_P_MRP: u32 = 35043; +pub const ETH_P_MACSEC: u32 = 35045; +pub const ETH_P_8021AH: u32 = 35047; +pub const ETH_P_MVRP: u32 = 35061; +pub const ETH_P_1588: u32 = 35063; +pub const ETH_P_NCSI: u32 = 35064; +pub const ETH_P_PRP: u32 = 35067; +pub const ETH_P_CFM: u32 = 35074; +pub const ETH_P_FCOE: u32 = 35078; +pub const ETH_P_IBOE: u32 = 35093; +pub const ETH_P_TDLS: u32 = 35085; +pub const ETH_P_FIP: u32 = 35092; +pub const ETH_P_80221: u32 = 35095; +pub const ETH_P_HSR: u32 = 35119; +pub const ETH_P_NSH: u32 = 35151; +pub const ETH_P_LOOPBACK: u32 = 36864; +pub const ETH_P_QINQ1: u32 = 37120; +pub const ETH_P_QINQ2: u32 = 37376; +pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_EDSA: u32 = 56026; +pub const ETH_P_DSA_8021Q: u32 = 56027; +pub const ETH_P_DSA_A5PSW: u32 = 57345; +pub const ETH_P_IFE: u32 = 60734; +pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_802_3_MIN: u32 = 1536; +pub const ETH_P_802_3: u32 = 1; +pub const ETH_P_AX25: u32 = 2; +pub const ETH_P_ALL: u32 = 3; +pub const ETH_P_802_2: u32 = 4; +pub const ETH_P_SNAP: u32 = 5; +pub const ETH_P_DDCMP: u32 = 6; +pub const ETH_P_WAN_PPP: u32 = 7; +pub const ETH_P_PPP_MP: u32 = 8; +pub const ETH_P_LOCALTALK: u32 = 9; +pub const ETH_P_CAN: u32 = 12; +pub const ETH_P_CANFD: u32 = 13; +pub const ETH_P_CANXL: u32 = 14; +pub const ETH_P_PPPTALK: u32 = 16; +pub const ETH_P_TR_802_2: u32 = 17; +pub const ETH_P_MOBITEX: u32 = 21; +pub const ETH_P_CONTROL: u32 = 22; +pub const ETH_P_IRDA: u32 = 23; +pub const ETH_P_ECONET: u32 = 24; +pub const ETH_P_HDLC: u32 = 25; +pub const ETH_P_ARCNET: u32 = 26; +pub const ETH_P_DSA: u32 = 27; +pub const ETH_P_TRAILER: u32 = 28; +pub const ETH_P_PHONET: u32 = 245; +pub const ETH_P_IEEE802154: u32 = 246; +pub const ETH_P_CAIF: u32 = 247; +pub const ETH_P_XDSA: u32 = 248; +pub const ETH_P_MAP: u32 = 249; +pub const ETH_P_MCTP: u32 = 250; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/if_packet.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/if_packet.rs new file mode 100644 index 0000000000000000000000000000000000000000..cf6136f3b919876db378334eff0776b634eabaaf --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/if_packet.rs @@ -0,0 +1,311 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_longlong; +pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_pkt { +pub spkt_family: crate::ctypes::c_ushort, +pub spkt_device: [crate::ctypes::c_uchar; 14usize], +pub spkt_protocol: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_ll { +pub sll_family: crate::ctypes::c_ushort, +pub sll_protocol: __be16, +pub sll_ifindex: crate::ctypes::c_int, +pub sll_hatype: crate::ctypes::c_ushort, +pub sll_pkttype: crate::ctypes::c_uchar, +pub sll_halen: crate::ctypes::c_uchar, +pub sll_addr: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_stats_v3 { +pub tp_packets: crate::ctypes::c_uint, +pub tp_drops: crate::ctypes::c_uint, +pub tp_freeze_q_cnt: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_rollover_stats { +pub tp_all: __u64, +pub tp_huge: __u64, +pub tp_failed: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_auxdata { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr { +pub tp_status: crate::ctypes::c_ulong, +pub tp_len: crate::ctypes::c_uint, +pub tp_snaplen: crate::ctypes::c_uint, +pub tp_mac: crate::ctypes::c_ushort, +pub tp_net: crate::ctypes::c_ushort, +pub tp_sec: crate::ctypes::c_uint, +pub tp_usec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket2_hdr { +pub tp_status: __u32, +pub tp_len: __u32, +pub tp_snaplen: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_vlan_tci: __u16, +pub tp_vlan_tpid: __u16, +pub tp_padding: [__u8; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_hdr_variant1 { +pub tp_rxhash: __u32, +pub tp_vlan_tci: __u32, +pub tp_vlan_tpid: __u16, +pub tp_padding: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket3_hdr { +pub tp_next_offset: __u32, +pub tp_sec: __u32, +pub tp_nsec: __u32, +pub tp_snaplen: __u32, +pub tp_len: __u32, +pub tp_status: __u32, +pub tp_mac: __u16, +pub tp_net: __u16, +pub __bindgen_anon_1: tpacket3_hdr__bindgen_ty_1, +pub tp_padding: [__u8; 8usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_bd_ts { +pub ts_sec: crate::ctypes::c_uint, +pub __bindgen_anon_1: tpacket_bd_ts__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_hdr_v1 { +pub block_status: __u32, +pub num_pkts: __u32, +pub offset_to_first_pkt: __u32, +pub blk_len: __u32, +pub seq_num: __u64, +pub ts_first_pkt: tpacket_bd_ts, +pub ts_last_pkt: tpacket_bd_ts, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tpacket_block_desc { +pub version: __u32, +pub offset_to_priv: __u32, +pub hdr: tpacket_bd_header_u, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tpacket_req3 { +pub tp_block_size: crate::ctypes::c_uint, +pub tp_block_nr: crate::ctypes::c_uint, +pub tp_frame_size: crate::ctypes::c_uint, +pub tp_frame_nr: crate::ctypes::c_uint, +pub tp_retire_blk_tov: crate::ctypes::c_uint, +pub tp_sizeof_priv: crate::ctypes::c_uint, +pub tp_feature_req_word: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct packet_mreq { +pub mr_ifindex: crate::ctypes::c_int, +pub mr_type: crate::ctypes::c_ushort, +pub mr_alen: crate::ctypes::c_ushort, +pub mr_address: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fanout_args { +pub id: __u16, +pub type_flags: __u16, +pub max_num_members: __u32, +} +pub const __LITTLE_ENDIAN: u32 = 1234; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const PACKET_HOST: u32 = 0; +pub const PACKET_BROADCAST: u32 = 1; +pub const PACKET_MULTICAST: u32 = 2; +pub const PACKET_OTHERHOST: u32 = 3; +pub const PACKET_OUTGOING: u32 = 4; +pub const PACKET_LOOPBACK: u32 = 5; +pub const PACKET_USER: u32 = 6; +pub const PACKET_KERNEL: u32 = 7; +pub const PACKET_FASTROUTE: u32 = 6; +pub const PACKET_ADD_MEMBERSHIP: u32 = 1; +pub const PACKET_DROP_MEMBERSHIP: u32 = 2; +pub const PACKET_RECV_OUTPUT: u32 = 3; +pub const PACKET_RX_RING: u32 = 5; +pub const PACKET_STATISTICS: u32 = 6; +pub const PACKET_COPY_THRESH: u32 = 7; +pub const PACKET_AUXDATA: u32 = 8; +pub const PACKET_ORIGDEV: u32 = 9; +pub const PACKET_VERSION: u32 = 10; +pub const PACKET_HDRLEN: u32 = 11; +pub const PACKET_RESERVE: u32 = 12; +pub const PACKET_TX_RING: u32 = 13; +pub const PACKET_LOSS: u32 = 14; +pub const PACKET_VNET_HDR: u32 = 15; +pub const PACKET_TX_TIMESTAMP: u32 = 16; +pub const PACKET_TIMESTAMP: u32 = 17; +pub const PACKET_FANOUT: u32 = 18; +pub const PACKET_TX_HAS_OFF: u32 = 19; +pub const PACKET_QDISC_BYPASS: u32 = 20; +pub const PACKET_ROLLOVER_STATS: u32 = 21; +pub const PACKET_FANOUT_DATA: u32 = 22; +pub const PACKET_IGNORE_OUTGOING: u32 = 23; +pub const PACKET_VNET_HDR_SZ: u32 = 24; +pub const PACKET_FANOUT_HASH: u32 = 0; +pub const PACKET_FANOUT_LB: u32 = 1; +pub const PACKET_FANOUT_CPU: u32 = 2; +pub const PACKET_FANOUT_ROLLOVER: u32 = 3; +pub const PACKET_FANOUT_RND: u32 = 4; +pub const PACKET_FANOUT_QM: u32 = 5; +pub const PACKET_FANOUT_CBPF: u32 = 6; +pub const PACKET_FANOUT_EBPF: u32 = 7; +pub const PACKET_FANOUT_FLAG_ROLLOVER: u32 = 4096; +pub const PACKET_FANOUT_FLAG_UNIQUEID: u32 = 8192; +pub const PACKET_FANOUT_FLAG_IGNORE_OUTGOING: u32 = 16384; +pub const PACKET_FANOUT_FLAG_DEFRAG: u32 = 32768; +pub const TP_STATUS_KERNEL: u32 = 0; +pub const TP_STATUS_USER: u32 = 1; +pub const TP_STATUS_COPY: u32 = 2; +pub const TP_STATUS_LOSING: u32 = 4; +pub const TP_STATUS_CSUMNOTREADY: u32 = 8; +pub const TP_STATUS_VLAN_VALID: u32 = 16; +pub const TP_STATUS_BLK_TMO: u32 = 32; +pub const TP_STATUS_VLAN_TPID_VALID: u32 = 64; +pub const TP_STATUS_CSUM_VALID: u32 = 128; +pub const TP_STATUS_GSO_TCP: u32 = 256; +pub const TP_STATUS_AVAILABLE: u32 = 0; +pub const TP_STATUS_SEND_REQUEST: u32 = 1; +pub const TP_STATUS_SENDING: u32 = 2; +pub const TP_STATUS_WRONG_FORMAT: u32 = 4; +pub const TP_STATUS_TS_SOFTWARE: u32 = 536870912; +pub const TP_STATUS_TS_SYS_HARDWARE: u32 = 1073741824; +pub const TP_STATUS_TS_RAW_HARDWARE: u32 = 2147483648; +pub const TP_FT_REQ_FILL_RXHASH: u32 = 1; +pub const TPACKET_ALIGNMENT: u32 = 16; +pub const PACKET_MR_MULTICAST: u32 = 0; +pub const PACKET_MR_PROMISC: u32 = 1; +pub const PACKET_MR_ALLMULTI: u32 = 2; +pub const PACKET_MR_UNICAST: u32 = 3; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tpacket_versions { +TPACKET_V1 = 0, +TPACKET_V2 = 1, +TPACKET_V3 = 2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_stats_u { +pub stats1: tpacket_stats, +pub stats3: tpacket_stats_v3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket3_hdr__bindgen_ty_1 { +pub hv1: tpacket_hdr_variant1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_ts__bindgen_ty_1 { +pub ts_usec: crate::ctypes::c_uint, +pub ts_nsec: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_bd_header_u { +pub bh1: tpacket_hdr_v1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tpacket_req_u { +pub req: tpacket_req, +pub req3: tpacket_req3, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/image.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/image.rs new file mode 100644 index 0000000000000000000000000000000000000000..bff15e373cd12fce9e91f11af9ee8efb9065775b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/image.rs @@ -0,0 +1,3 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + + diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/io_uring.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/io_uring.rs new file mode 100644 index 0000000000000000000000000000000000000000..70b134e23a7f356af882010eefd23cb3eabe1f98 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/io_uring.rs @@ -0,0 +1,1440 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_longlong; +pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_rwf_t = crate::ctypes::c_int; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +pub struct __BindgenUnionField(::core::marker::PhantomData); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v1 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub master_key_descriptor: [__u8; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_key { +pub mode: __u32, +pub raw: [__u8; 64usize], +pub size: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v2 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub log2_data_unit_size: __u8, +pub __reserved: [__u8; 3usize], +pub master_key_identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_policy_ex_arg { +pub policy_size: __u64, +pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_key_specifier { +pub type_: __u32, +pub __reserved: __u32, +pub u: fscrypt_key_specifier__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct fscrypt_provisioning_key_payload { +pub type_: __u32, +pub flags: __u32, +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +pub struct fscrypt_add_key_arg { +pub key_spec: fscrypt_key_specifier, +pub raw_size: __u32, +pub key_id: __u32, +pub flags: __u32, +pub __reserved: [__u32; 7usize], +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_remove_key_arg { +pub key_spec: fscrypt_key_specifier, +pub removal_status_flags: __u32, +pub __reserved: [__u32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_key_status_arg { +pub key_spec: fscrypt_key_specifier, +pub __reserved: [__u32; 6usize], +pub status: __u32, +pub status_flags: __u32, +pub user_count: __u32, +pub __out_reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mount_attr { +pub attr_set: __u64, +pub attr_clr: __u64, +pub propagation: __u64, +pub userns_fd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct statmount { +pub size: __u32, +pub mnt_opts: __u32, +pub mask: __u64, +pub sb_dev_major: __u32, +pub sb_dev_minor: __u32, +pub sb_magic: __u64, +pub sb_flags: __u32, +pub fs_type: __u32, +pub mnt_id: __u64, +pub mnt_parent_id: __u64, +pub mnt_id_old: __u32, +pub mnt_parent_id_old: __u32, +pub mnt_attr: __u64, +pub mnt_propagation: __u64, +pub mnt_peer_group: __u64, +pub mnt_master: __u64, +pub propagate_from: __u64, +pub mnt_root: __u32, +pub mnt_point: __u32, +pub mnt_ns_id: __u64, +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub supported_mask: __u64, +pub mnt_uidmap_num: __u32, +pub mnt_uidmap: __u32, +pub mnt_gidmap_num: __u32, +pub mnt_gidmap: __u32, +pub __spare2: [__u64; 43usize], +pub str_: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mnt_id_req { +pub size: __u32, +pub spare: __u32, +pub mnt_id: __u64, +pub param: __u64, +pub mnt_ns_id: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_clone_range { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fstrim_range { +pub start: __u64, +pub len: __u64, +pub minlen: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsuuid2 { +pub len: __u8, +pub uuid: [__u8; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fs_sysfs_path { +pub len: __u8, +pub name: [__u8; 128usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_dedupe_range_info { +pub dest_fd: __s64, +pub dest_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct file_dedupe_range { +pub src_offset: __u64, +pub src_length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct files_stat_struct { +pub nr_files: crate::ctypes::c_ulong, +pub nr_free_files: crate::ctypes::c_ulong, +pub max_files: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct inodes_stat_t { +pub nr_inodes: crate::ctypes::c_long, +pub nr_unused: crate::ctypes::c_long, +pub dummy: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsxattr { +pub fsx_xflags: __u32, +pub fsx_extsize: __u32, +pub fsx_nextents: __u32, +pub fsx_projid: __u32, +pub fsx_cowextsize: __u32, +pub fsx_pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct page_region { +pub start: __u64, +pub end: __u64, +pub categories: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pm_scan_arg { +pub size: __u64, +pub flags: __u64, +pub start: __u64, +pub end: __u64, +pub walk_end: __u64, +pub vec: __u64, +pub vec_len: __u64, +pub max_pages: __u64, +pub category_inverted: __u64, +pub category_mask: __u64, +pub category_anyof_mask: __u64, +pub return_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct procmap_query { +pub size: __u64, +pub query_flags: __u64, +pub query_addr: __u64, +pub vma_start: __u64, +pub vma_end: __u64, +pub vma_flags: __u64, +pub vma_page_size: __u64, +pub vma_offset: __u64, +pub inode: __u64, +pub dev_major: __u32, +pub dev_minor: __u32, +pub vma_name_size: __u32, +pub build_id_size: __u32, +pub vma_name_addr: __u64, +pub build_id_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_timespec { +pub tv_sec: __kernel_time64_t, +pub tv_nsec: crate::ctypes::c_longlong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_itimerspec { +pub it_interval: __kernel_timespec, +pub it_value: __kernel_timespec, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_long_t, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timespec { +pub tv_sec: __kernel_old_time_t, +pub tv_nsec: crate::ctypes::c_long, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_itimerval { +pub it_interval: __kernel_old_timeval, +pub it_value: __kernel_old_timeval, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sock_timeval { +pub tv_sec: __s64, +pub tv_usec: __s64, +} +#[repr(C)] +pub struct io_uring_sqe { +pub opcode: __u8, +pub flags: __u8, +pub ioprio: __u16, +pub fd: __s32, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1, +pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_2, +pub len: __u32, +pub __bindgen_anon_3: io_uring_sqe__bindgen_ty_3, +pub user_data: __u64, +pub __bindgen_anon_4: io_uring_sqe__bindgen_ty_4, +pub personality: __u16, +pub __bindgen_anon_5: io_uring_sqe__bindgen_ty_5, +pub __bindgen_anon_6: io_uring_sqe__bindgen_ty_6, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_1__bindgen_ty_1 { +pub cmd_op: __u32, +pub __pad1: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_2__bindgen_ty_1 { +pub level: __u32, +pub optname: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_1 { +pub addr_len: __u16, +pub __pad3: [__u16; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_5__bindgen_ty_2 { +pub write_stream: __u8, +pub __pad4: [__u8; 3usize], +} +#[repr(C)] +pub struct io_uring_sqe__bindgen_ty_6 { +pub __bindgen_anon_1: __BindgenUnionField, +pub __bindgen_anon_2: __BindgenUnionField, +pub optval: __BindgenUnionField<__u64>, +pub cmd: __BindgenUnionField<[__u8; 0usize]>, +pub bindgen_union_field: [u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_1 { +pub addr3: __u64, +pub __pad2: [__u64; 1usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sqe__bindgen_ty_6__bindgen_ty_2 { +pub attr_ptr: __u64, +pub attr_type_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_attr_pi { +pub flags: __u16, +pub app_tag: __u16, +pub len: __u32, +pub addr: __u64, +pub seed: __u64, +pub rsvd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct io_uring_cqe { +pub user_data: __u64, +pub res: __s32, +pub flags: __u32, +pub big_cqe: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_sqring_offsets { +pub head: __u32, +pub tail: __u32, +pub ring_mask: __u32, +pub ring_entries: __u32, +pub flags: __u32, +pub dropped: __u32, +pub array: __u32, +pub resv1: __u32, +pub user_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_cqring_offsets { +pub head: __u32, +pub tail: __u32, +pub ring_mask: __u32, +pub ring_entries: __u32, +pub overflow: __u32, +pub cqes: __u32, +pub flags: __u32, +pub resv1: __u32, +pub user_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_params { +pub sq_entries: __u32, +pub cq_entries: __u32, +pub flags: __u32, +pub sq_thread_cpu: __u32, +pub sq_thread_idle: __u32, +pub features: __u32, +pub wq_fd: __u32, +pub resv: [__u32; 3usize], +pub sq_off: io_sqring_offsets, +pub cq_off: io_cqring_offsets, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_files_update { +pub offset: __u32, +pub resv: __u32, +pub fds: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_region_desc { +pub user_addr: __u64, +pub size: __u64, +pub flags: __u32, +pub id: __u32, +pub mmap_offset: __u64, +pub __resv: [__u64; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_mem_region_reg { +pub region_uptr: __u64, +pub flags: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_rsrc_register { +pub nr: __u32, +pub flags: __u32, +pub resv2: __u64, +pub data: __u64, +pub tags: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_rsrc_update { +pub offset: __u32, +pub resv: __u32, +pub data: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_rsrc_update2 { +pub offset: __u32, +pub resv: __u32, +pub data: __u64, +pub tags: __u64, +pub nr: __u32, +pub resv2: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_probe_op { +pub op: __u8, +pub resv: __u8, +pub flags: __u16, +pub resv2: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct io_uring_probe { +pub last_op: __u8, +pub ops_len: __u8, +pub resv: __u16, +pub resv2: [__u32; 3usize], +pub ops: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct io_uring_restriction { +pub opcode: __u16, +pub __bindgen_anon_1: io_uring_restriction__bindgen_ty_1, +pub resv: __u8, +pub resv2: [__u32; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_clock_register { +pub clockid: __u32, +pub __resv: [__u32; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_clone_buffers { +pub src_fd: __u32, +pub flags: __u32, +pub src_off: __u32, +pub dst_off: __u32, +pub nr: __u32, +pub pad: [__u32; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf { +pub addr: __u64, +pub len: __u32, +pub bid: __u16, +pub resv: __u16, +} +#[repr(C)] +pub struct io_uring_buf_ring { +pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_buf_ring__bindgen_ty_1 { +pub __bindgen_anon_1: __BindgenUnionField, +pub __bindgen_anon_2: __BindgenUnionField, +pub bindgen_union_field: [u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 { +pub resv1: __u64, +pub resv2: __u32, +pub resv3: __u16, +pub tail: __u16, +} +#[repr(C)] +#[derive(Debug)] +pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 { +pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1, +pub bufs: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_reg { +pub ring_addr: __u64, +pub ring_entries: __u32, +pub bgid: __u16, +pub flags: __u16, +pub resv: [__u64; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_buf_status { +pub buf_group: __u32, +pub head: __u32, +pub resv: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_napi { +pub busy_poll_to: __u32, +pub prefer_busy_poll: __u8, +pub opcode: __u8, +pub pad: [__u8; 2usize], +pub op_param: __u32, +pub resv: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_reg_wait { +pub ts: __kernel_timespec, +pub min_wait_usec: __u32, +pub flags: __u32, +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub pad: [__u32; 3usize], +pub pad2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_getevents_arg { +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub min_wait_usec: __u32, +pub ts: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_sync_cancel_reg { +pub addr: __u64, +pub fd: __s32, +pub flags: __u32, +pub timeout: __kernel_timespec, +pub opcode: __u8, +pub pad: [__u8; 7usize], +pub pad2: [__u64; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_file_index_range { +pub off: __u32, +pub len: __u32, +pub resv: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_recvmsg_out { +pub namelen: __u32, +pub controllen: __u32, +pub payloadlen: __u32, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 3usize], +} +pub const NR_OPEN: u32 = 1024; +pub const NGROUPS_MAX: u32 = 65536; +pub const ARG_MAX: u32 = 131072; +pub const LINK_MAX: u32 = 127; +pub const MAX_CANON: u32 = 255; +pub const MAX_INPUT: u32 = 255; +pub const NAME_MAX: u32 = 255; +pub const PATH_MAX: u32 = 4096; +pub const PIPE_BUF: u32 = 4096; +pub const XATTR_NAME_MAX: u32 = 255; +pub const XATTR_SIZE_MAX: u32 = 65536; +pub const XATTR_LIST_MAX: u32 = 65536; +pub const RTSIG_MAX: u32 = 32; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_SIZEBITS: u32 = 14; +pub const _IOC_DIRBITS: u32 = 2; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 16383; +pub const _IOC_DIRMASK: u32 = 3; +pub const _IOC_NRSHIFT: u32 = 0; +pub const _IOC_TYPESHIFT: u32 = 8; +pub const _IOC_SIZESHIFT: u32 = 16; +pub const _IOC_DIRSHIFT: u32 = 30; +pub const _IOC_NONE: u32 = 0; +pub const _IOC_WRITE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const IOC_IN: u32 = 1073741824; +pub const IOC_OUT: u32 = 2147483648; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 1073676288; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; +pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; +pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; +pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; +pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; +pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; +pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; +pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; +pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; +pub const FSCRYPT_POLICY_V1: u32 = 0; +pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; +pub const FSCRYPT_POLICY_V2: u32 = 2; +pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; +pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; +pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; +pub const FSCRYPT_ADD_KEY_FLAG_HW_WRAPPED: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; +pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; +pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; +pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; +pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; +pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FS_POLICY_FLAGS_VALID: u32 = 7; +pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; +pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; +pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; +pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; +pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; +pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; +pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; +pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; +pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FS_MAX_KEY_SIZE: u32 = 64; +pub const MS_RDONLY: u32 = 1; +pub const MS_NOSUID: u32 = 2; +pub const MS_NODEV: u32 = 4; +pub const MS_NOEXEC: u32 = 8; +pub const MS_SYNCHRONOUS: u32 = 16; +pub const MS_REMOUNT: u32 = 32; +pub const MS_MANDLOCK: u32 = 64; +pub const MS_DIRSYNC: u32 = 128; +pub const MS_NOSYMFOLLOW: u32 = 256; +pub const MS_NOATIME: u32 = 1024; +pub const MS_NODIRATIME: u32 = 2048; +pub const MS_BIND: u32 = 4096; +pub const MS_MOVE: u32 = 8192; +pub const MS_REC: u32 = 16384; +pub const MS_VERBOSE: u32 = 32768; +pub const MS_SILENT: u32 = 32768; +pub const MS_POSIXACL: u32 = 65536; +pub const MS_UNBINDABLE: u32 = 131072; +pub const MS_PRIVATE: u32 = 262144; +pub const MS_SLAVE: u32 = 524288; +pub const MS_SHARED: u32 = 1048576; +pub const MS_RELATIME: u32 = 2097152; +pub const MS_KERNMOUNT: u32 = 4194304; +pub const MS_I_VERSION: u32 = 8388608; +pub const MS_STRICTATIME: u32 = 16777216; +pub const MS_LAZYTIME: u32 = 33554432; +pub const MS_SUBMOUNT: u32 = 67108864; +pub const MS_NOREMOTELOCK: u32 = 134217728; +pub const MS_NOSEC: u32 = 268435456; +pub const MS_BORN: u32 = 536870912; +pub const MS_ACTIVE: u32 = 1073741824; +pub const MS_NOUSER: u32 = 2147483648; +pub const MS_RMT_MASK: u32 = 41943121; +pub const MS_MGC_VAL: u32 = 3236757504; +pub const MS_MGC_MSK: u32 = 4294901760; +pub const OPEN_TREE_CLONE: u32 = 1; +pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; +pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; +pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; +pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; +pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; +pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; +pub const MOVE_MOUNT_SET_GROUP: u32 = 256; +pub const MOVE_MOUNT_BENEATH: u32 = 512; +pub const MOVE_MOUNT__MASK: u32 = 887; +pub const FSOPEN_CLOEXEC: u32 = 1; +pub const FSPICK_CLOEXEC: u32 = 1; +pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; +pub const FSPICK_NO_AUTOMOUNT: u32 = 4; +pub const FSPICK_EMPTY_PATH: u32 = 8; +pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const MOUNT_ATTR_RDONLY: u32 = 1; +pub const MOUNT_ATTR_NOSUID: u32 = 2; +pub const MOUNT_ATTR_NODEV: u32 = 4; +pub const MOUNT_ATTR_NOEXEC: u32 = 8; +pub const MOUNT_ATTR__ATIME: u32 = 112; +pub const MOUNT_ATTR_RELATIME: u32 = 0; +pub const MOUNT_ATTR_NOATIME: u32 = 16; +pub const MOUNT_ATTR_STRICTATIME: u32 = 32; +pub const MOUNT_ATTR_NODIRATIME: u32 = 128; +pub const MOUNT_ATTR_IDMAP: u32 = 1048576; +pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; +pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; +pub const MNT_ID_REQ_SIZE_VER0: u32 = 24; +pub const MNT_ID_REQ_SIZE_VER1: u32 = 32; +pub const STATMOUNT_SB_BASIC: u32 = 1; +pub const STATMOUNT_MNT_BASIC: u32 = 2; +pub const STATMOUNT_PROPAGATE_FROM: u32 = 4; +pub const STATMOUNT_MNT_ROOT: u32 = 8; +pub const STATMOUNT_MNT_POINT: u32 = 16; +pub const STATMOUNT_FS_TYPE: u32 = 32; +pub const STATMOUNT_MNT_NS_ID: u32 = 64; +pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; +pub const STATMOUNT_SUPPORTED_MASK: u32 = 4096; +pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; +pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; +pub const LSMT_ROOT: i32 = -1; +pub const LISTMOUNT_REVERSE: u32 = 1; +pub const INR_OPEN_CUR: u32 = 1024; +pub const INR_OPEN_MAX: u32 = 4096; +pub const BLOCK_SIZE_BITS: u32 = 10; +pub const BLOCK_SIZE: u32 = 1024; +pub const IO_INTEGRITY_CHK_GUARD: u32 = 1; +pub const IO_INTEGRITY_CHK_REFTAG: u32 = 2; +pub const IO_INTEGRITY_CHK_APPTAG: u32 = 4; +pub const IO_INTEGRITY_VALID_FLAGS: u32 = 7; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const SEEK_DATA: u32 = 3; +pub const SEEK_HOLE: u32 = 4; +pub const SEEK_MAX: u32 = 4; +pub const RENAME_NOREPLACE: u32 = 1; +pub const RENAME_EXCHANGE: u32 = 2; +pub const RENAME_WHITEOUT: u32 = 4; +pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; +pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; +pub const NR_FILE: u32 = 8192; +pub const FS_XFLAG_REALTIME: u32 = 1; +pub const FS_XFLAG_PREALLOC: u32 = 2; +pub const FS_XFLAG_IMMUTABLE: u32 = 8; +pub const FS_XFLAG_APPEND: u32 = 16; +pub const FS_XFLAG_SYNC: u32 = 32; +pub const FS_XFLAG_NOATIME: u32 = 64; +pub const FS_XFLAG_NODUMP: u32 = 128; +pub const FS_XFLAG_RTINHERIT: u32 = 256; +pub const FS_XFLAG_PROJINHERIT: u32 = 512; +pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; +pub const FS_XFLAG_EXTSIZE: u32 = 2048; +pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; +pub const FS_XFLAG_NODEFRAG: u32 = 8192; +pub const FS_XFLAG_FILESTREAM: u32 = 16384; +pub const FS_XFLAG_DAX: u32 = 32768; +pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_HASATTR: u32 = 2147483648; +pub const BMAP_IOCTL: u32 = 1; +pub const FSLABEL_MAX: u32 = 256; +pub const FS_SECRM_FL: u32 = 1; +pub const FS_UNRM_FL: u32 = 2; +pub const FS_COMPR_FL: u32 = 4; +pub const FS_SYNC_FL: u32 = 8; +pub const FS_IMMUTABLE_FL: u32 = 16; +pub const FS_APPEND_FL: u32 = 32; +pub const FS_NODUMP_FL: u32 = 64; +pub const FS_NOATIME_FL: u32 = 128; +pub const FS_DIRTY_FL: u32 = 256; +pub const FS_COMPRBLK_FL: u32 = 512; +pub const FS_NOCOMP_FL: u32 = 1024; +pub const FS_ENCRYPT_FL: u32 = 2048; +pub const FS_BTREE_FL: u32 = 4096; +pub const FS_INDEX_FL: u32 = 4096; +pub const FS_IMAGIC_FL: u32 = 8192; +pub const FS_JOURNAL_DATA_FL: u32 = 16384; +pub const FS_NOTAIL_FL: u32 = 32768; +pub const FS_DIRSYNC_FL: u32 = 65536; +pub const FS_TOPDIR_FL: u32 = 131072; +pub const FS_HUGE_FILE_FL: u32 = 262144; +pub const FS_EXTENT_FL: u32 = 524288; +pub const FS_VERITY_FL: u32 = 1048576; +pub const FS_EA_INODE_FL: u32 = 2097152; +pub const FS_EOFBLOCKS_FL: u32 = 4194304; +pub const FS_NOCOW_FL: u32 = 8388608; +pub const FS_DAX_FL: u32 = 33554432; +pub const FS_INLINE_DATA_FL: u32 = 268435456; +pub const FS_PROJINHERIT_FL: u32 = 536870912; +pub const FS_CASEFOLD_FL: u32 = 1073741824; +pub const FS_RESERVED_FL: u32 = 2147483648; +pub const FS_FL_USER_VISIBLE: u32 = 253951; +pub const FS_FL_USER_MODIFIABLE: u32 = 229631; +pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; +pub const SYNC_FILE_RANGE_WRITE: u32 = 2; +pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; +pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; +pub const PROCFS_IOCTL_MAGIC: u8 = 102u8; +pub const PAGE_IS_WPALLOWED: u32 = 1; +pub const PAGE_IS_WRITTEN: u32 = 2; +pub const PAGE_IS_FILE: u32 = 4; +pub const PAGE_IS_PRESENT: u32 = 8; +pub const PAGE_IS_SWAPPED: u32 = 16; +pub const PAGE_IS_PFNZERO: u32 = 32; +pub const PAGE_IS_HUGE: u32 = 64; +pub const PAGE_IS_SOFT_DIRTY: u32 = 128; +pub const PAGE_IS_GUARD: u32 = 256; +pub const PM_SCAN_WP_MATCHING: u32 = 1; +pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; +pub const IORING_FILE_INDEX_ALLOC: i32 = -1; +pub const IORING_SETUP_IOPOLL: u32 = 1; +pub const IORING_SETUP_SQPOLL: u32 = 2; +pub const IORING_SETUP_SQ_AFF: u32 = 4; +pub const IORING_SETUP_CQSIZE: u32 = 8; +pub const IORING_SETUP_CLAMP: u32 = 16; +pub const IORING_SETUP_ATTACH_WQ: u32 = 32; +pub const IORING_SETUP_R_DISABLED: u32 = 64; +pub const IORING_SETUP_SUBMIT_ALL: u32 = 128; +pub const IORING_SETUP_COOP_TASKRUN: u32 = 256; +pub const IORING_SETUP_TASKRUN_FLAG: u32 = 512; +pub const IORING_SETUP_SQE128: u32 = 1024; +pub const IORING_SETUP_CQE32: u32 = 2048; +pub const IORING_SETUP_SINGLE_ISSUER: u32 = 4096; +pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; +pub const IORING_SETUP_NO_MMAP: u32 = 16384; +pub const IORING_SETUP_REGISTERED_FD_ONLY: u32 = 32768; +pub const IORING_SETUP_NO_SQARRAY: u32 = 65536; +pub const IORING_SETUP_HYBRID_IOPOLL: u32 = 131072; +pub const IORING_URING_CMD_FIXED: u32 = 1; +pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_FSYNC_DATASYNC: u32 = 1; +pub const IORING_TIMEOUT_ABS: u32 = 1; +pub const IORING_TIMEOUT_UPDATE: u32 = 2; +pub const IORING_TIMEOUT_BOOTTIME: u32 = 4; +pub const IORING_TIMEOUT_REALTIME: u32 = 8; +pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; +pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; +pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; +pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; +pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; +pub const IORING_POLL_ADD_MULTI: u32 = 1; +pub const IORING_POLL_UPDATE_EVENTS: u32 = 2; +pub const IORING_POLL_UPDATE_USER_DATA: u32 = 4; +pub const IORING_POLL_ADD_LEVEL: u32 = 8; +pub const IORING_ASYNC_CANCEL_ALL: u32 = 1; +pub const IORING_ASYNC_CANCEL_FD: u32 = 2; +pub const IORING_ASYNC_CANCEL_ANY: u32 = 4; +pub const IORING_ASYNC_CANCEL_FD_FIXED: u32 = 8; +pub const IORING_ASYNC_CANCEL_USERDATA: u32 = 16; +pub const IORING_ASYNC_CANCEL_OP: u32 = 32; +pub const IORING_RECVSEND_POLL_FIRST: u32 = 1; +pub const IORING_RECV_MULTISHOT: u32 = 2; +pub const IORING_RECVSEND_FIXED_BUF: u32 = 4; +pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8; +pub const IORING_RECVSEND_BUNDLE: u32 = 16; +pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648; +pub const IORING_ACCEPT_MULTISHOT: u32 = 1; +pub const IORING_ACCEPT_DONTWAIT: u32 = 2; +pub const IORING_ACCEPT_POLL_FIRST: u32 = 4; +pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; +pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; +pub const IORING_FIXED_FD_NO_CLOEXEC: u32 = 1; +pub const IORING_NOP_INJECT_RESULT: u32 = 1; +pub const IORING_NOP_FILE: u32 = 2; +pub const IORING_NOP_FIXED_FILE: u32 = 4; +pub const IORING_NOP_FIXED_BUFFER: u32 = 8; +pub const IORING_CQE_F_BUFFER: u32 = 1; +pub const IORING_CQE_F_MORE: u32 = 2; +pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; +pub const IORING_CQE_F_NOTIF: u32 = 8; +pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; +pub const IORING_OFF_SQ_RING: u32 = 0; +pub const IORING_OFF_CQ_RING: u32 = 134217728; +pub const IORING_OFF_SQES: u32 = 268435456; +pub const IORING_OFF_PBUF_RING: u32 = 2147483648; +pub const IORING_OFF_PBUF_SHIFT: u32 = 16; +pub const IORING_OFF_MMAP_MASK: u32 = 4160749568; +pub const IORING_SQ_NEED_WAKEUP: u32 = 1; +pub const IORING_SQ_CQ_OVERFLOW: u32 = 2; +pub const IORING_SQ_TASKRUN: u32 = 4; +pub const IORING_CQ_EVENTFD_DISABLED: u32 = 1; +pub const IORING_ENTER_GETEVENTS: u32 = 1; +pub const IORING_ENTER_SQ_WAKEUP: u32 = 2; +pub const IORING_ENTER_SQ_WAIT: u32 = 4; +pub const IORING_ENTER_EXT_ARG: u32 = 8; +pub const IORING_ENTER_REGISTERED_RING: u32 = 16; +pub const IORING_ENTER_ABS_TIMER: u32 = 32; +pub const IORING_ENTER_EXT_ARG_REG: u32 = 64; +pub const IORING_ENTER_NO_IOWAIT: u32 = 128; +pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; +pub const IORING_FEAT_NODROP: u32 = 2; +pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; +pub const IORING_FEAT_RW_CUR_POS: u32 = 8; +pub const IORING_FEAT_CUR_PERSONALITY: u32 = 16; +pub const IORING_FEAT_FAST_POLL: u32 = 32; +pub const IORING_FEAT_POLL_32BITS: u32 = 64; +pub const IORING_FEAT_SQPOLL_NONFIXED: u32 = 128; +pub const IORING_FEAT_EXT_ARG: u32 = 256; +pub const IORING_FEAT_NATIVE_WORKERS: u32 = 512; +pub const IORING_FEAT_RSRC_TAGS: u32 = 1024; +pub const IORING_FEAT_CQE_SKIP: u32 = 2048; +pub const IORING_FEAT_LINKED_FILE: u32 = 4096; +pub const IORING_FEAT_REG_REG_RING: u32 = 8192; +pub const IORING_FEAT_RECVSEND_BUNDLE: u32 = 16384; +pub const IORING_FEAT_MIN_TIMEOUT: u32 = 32768; +pub const IORING_FEAT_RW_ATTR: u32 = 65536; +pub const IORING_FEAT_NO_IOWAIT: u32 = 131072; +pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; +pub const IORING_REGISTER_FILES_SKIP: i32 = -2; +pub const IO_URING_OP_SUPPORTED: u32 = 1; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; +pub const IORING_MEM_REGION_TYPE_USER: _bindgen_ty_1 = _bindgen_ty_1::IORING_MEM_REGION_TYPE_USER; +pub const IORING_MEM_REGION_REG_WAIT_ARG: _bindgen_ty_2 = _bindgen_ty_2::IORING_MEM_REGION_REG_WAIT_ARG; +pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_REGISTER_DST_REPLACE: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_DST_REPLACE; +pub const IORING_REG_WAIT_TS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REG_WAIT_TS; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum fsconfig_command { +FSCONFIG_SET_FLAG = 0, +FSCONFIG_SET_STRING = 1, +FSCONFIG_SET_BINARY = 2, +FSCONFIG_SET_PATH = 3, +FSCONFIG_SET_PATH_EMPTY = 4, +FSCONFIG_SET_FD = 5, +FSCONFIG_CMD_CREATE = 6, +FSCONFIG_CMD_RECONFIGURE = 7, +FSCONFIG_CMD_CREATE_EXCL = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum procmap_query_flags { +PROCMAP_QUERY_VMA_READABLE = 1, +PROCMAP_QUERY_VMA_WRITABLE = 2, +PROCMAP_QUERY_VMA_EXECUTABLE = 4, +PROCMAP_QUERY_VMA_SHARED = 8, +PROCMAP_QUERY_COVERING_OR_NEXT_VMA = 16, +PROCMAP_QUERY_FILE_BACKED_VMA = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_sqe_flags_bit { +IOSQE_FIXED_FILE_BIT = 0, +IOSQE_IO_DRAIN_BIT = 1, +IOSQE_IO_LINK_BIT = 2, +IOSQE_IO_HARDLINK_BIT = 3, +IOSQE_ASYNC_BIT = 4, +IOSQE_BUFFER_SELECT_BIT = 5, +IOSQE_CQE_SKIP_SUCCESS_BIT = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_op { +IORING_OP_NOP = 0, +IORING_OP_READV = 1, +IORING_OP_WRITEV = 2, +IORING_OP_FSYNC = 3, +IORING_OP_READ_FIXED = 4, +IORING_OP_WRITE_FIXED = 5, +IORING_OP_POLL_ADD = 6, +IORING_OP_POLL_REMOVE = 7, +IORING_OP_SYNC_FILE_RANGE = 8, +IORING_OP_SENDMSG = 9, +IORING_OP_RECVMSG = 10, +IORING_OP_TIMEOUT = 11, +IORING_OP_TIMEOUT_REMOVE = 12, +IORING_OP_ACCEPT = 13, +IORING_OP_ASYNC_CANCEL = 14, +IORING_OP_LINK_TIMEOUT = 15, +IORING_OP_CONNECT = 16, +IORING_OP_FALLOCATE = 17, +IORING_OP_OPENAT = 18, +IORING_OP_CLOSE = 19, +IORING_OP_FILES_UPDATE = 20, +IORING_OP_STATX = 21, +IORING_OP_READ = 22, +IORING_OP_WRITE = 23, +IORING_OP_FADVISE = 24, +IORING_OP_MADVISE = 25, +IORING_OP_SEND = 26, +IORING_OP_RECV = 27, +IORING_OP_OPENAT2 = 28, +IORING_OP_EPOLL_CTL = 29, +IORING_OP_SPLICE = 30, +IORING_OP_PROVIDE_BUFFERS = 31, +IORING_OP_REMOVE_BUFFERS = 32, +IORING_OP_TEE = 33, +IORING_OP_SHUTDOWN = 34, +IORING_OP_RENAMEAT = 35, +IORING_OP_UNLINKAT = 36, +IORING_OP_MKDIRAT = 37, +IORING_OP_SYMLINKAT = 38, +IORING_OP_LINKAT = 39, +IORING_OP_MSG_RING = 40, +IORING_OP_FSETXATTR = 41, +IORING_OP_SETXATTR = 42, +IORING_OP_FGETXATTR = 43, +IORING_OP_GETXATTR = 44, +IORING_OP_SOCKET = 45, +IORING_OP_URING_CMD = 46, +IORING_OP_SEND_ZC = 47, +IORING_OP_SENDMSG_ZC = 48, +IORING_OP_READ_MULTISHOT = 49, +IORING_OP_WAITID = 50, +IORING_OP_FUTEX_WAIT = 51, +IORING_OP_FUTEX_WAKE = 52, +IORING_OP_FUTEX_WAITV = 53, +IORING_OP_FIXED_FD_INSTALL = 54, +IORING_OP_FTRUNCATE = 55, +IORING_OP_BIND = 56, +IORING_OP_LISTEN = 57, +IORING_OP_RECV_ZC = 58, +IORING_OP_EPOLL_WAIT = 59, +IORING_OP_READV_FIXED = 60, +IORING_OP_WRITEV_FIXED = 61, +IORING_OP_PIPE = 62, +IORING_OP_LAST = 63, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_msg_ring_flags { +IORING_MSG_DATA = 0, +IORING_MSG_SEND_FD = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_register_op { +IORING_REGISTER_BUFFERS = 0, +IORING_UNREGISTER_BUFFERS = 1, +IORING_REGISTER_FILES = 2, +IORING_UNREGISTER_FILES = 3, +IORING_REGISTER_EVENTFD = 4, +IORING_UNREGISTER_EVENTFD = 5, +IORING_REGISTER_FILES_UPDATE = 6, +IORING_REGISTER_EVENTFD_ASYNC = 7, +IORING_REGISTER_PROBE = 8, +IORING_REGISTER_PERSONALITY = 9, +IORING_UNREGISTER_PERSONALITY = 10, +IORING_REGISTER_RESTRICTIONS = 11, +IORING_REGISTER_ENABLE_RINGS = 12, +IORING_REGISTER_FILES2 = 13, +IORING_REGISTER_FILES_UPDATE2 = 14, +IORING_REGISTER_BUFFERS2 = 15, +IORING_REGISTER_BUFFERS_UPDATE = 16, +IORING_REGISTER_IOWQ_AFF = 17, +IORING_UNREGISTER_IOWQ_AFF = 18, +IORING_REGISTER_IOWQ_MAX_WORKERS = 19, +IORING_REGISTER_RING_FDS = 20, +IORING_UNREGISTER_RING_FDS = 21, +IORING_REGISTER_PBUF_RING = 22, +IORING_UNREGISTER_PBUF_RING = 23, +IORING_REGISTER_SYNC_CANCEL = 24, +IORING_REGISTER_FILE_ALLOC_RANGE = 25, +IORING_REGISTER_PBUF_STATUS = 26, +IORING_REGISTER_NAPI = 27, +IORING_UNREGISTER_NAPI = 28, +IORING_REGISTER_CLOCK = 29, +IORING_REGISTER_CLONE_BUFFERS = 30, +IORING_REGISTER_SEND_MSG_RING = 31, +IORING_REGISTER_ZCRX_IFQ = 32, +IORING_REGISTER_RESIZE_RINGS = 33, +IORING_REGISTER_MEM_REGION = 34, +IORING_REGISTER_LAST = 35, +IORING_REGISTER_USE_REGISTERED_RING = 2147483648, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_wq_type { +IO_WQ_BOUND = 0, +IO_WQ_UNBOUND = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +IORING_MEM_REGION_TYPE_USER = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IORING_MEM_REGION_REG_WAIT_ARG = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +IORING_REGISTER_SRC_REGISTERED = 1, +IORING_REGISTER_DST_REPLACE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_register_pbuf_ring_flags { +IOU_PBUF_RING_MMAP = 1, +IOU_PBUF_RING_INC = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_op { +IO_URING_NAPI_REGISTER_OP = 0, +IO_URING_NAPI_STATIC_ADD_ID = 1, +IO_URING_NAPI_STATIC_DEL_ID = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_tracking_strategy { +IO_URING_NAPI_TRACKING_DYNAMIC = 0, +IO_URING_NAPI_TRACKING_STATIC = 1, +IO_URING_NAPI_TRACKING_INACTIVE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_register_restriction_op { +IORING_RESTRICTION_REGISTER_OP = 0, +IORING_RESTRICTION_SQE_OP = 1, +IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2, +IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3, +IORING_RESTRICTION_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IORING_REG_WAIT_TS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_socket_op { +SOCKET_URING_OP_SIOCINQ = 0, +SOCKET_URING_OP_SIOCOUTQ = 1, +SOCKET_URING_OP_GETSOCKOPT = 2, +SOCKET_URING_OP_SETSOCKOPT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { +pub version: __u8, +pub v1: fscrypt_policy_v1, +pub v2: fscrypt_policy_v2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_key_specifier__bindgen_ty_1 { +pub __reserved: [__u8; 32usize], +pub descriptor: [__u8; 8usize], +pub identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_1 { +pub off: __u64, +pub addr2: __u64, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_2 { +pub addr: __u64, +pub splice_off_in: __u64, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_2__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_3 { +pub rw_flags: __kernel_rwf_t, +pub fsync_flags: __u32, +pub poll_events: __u16, +pub poll32_events: __u32, +pub sync_range_flags: __u32, +pub msg_flags: __u32, +pub timeout_flags: __u32, +pub accept_flags: __u32, +pub cancel_flags: __u32, +pub open_flags: __u32, +pub statx_flags: __u32, +pub fadvise_advice: __u32, +pub splice_flags: __u32, +pub rename_flags: __u32, +pub unlink_flags: __u32, +pub hardlink_flags: __u32, +pub xattr_flags: __u32, +pub msg_ring_flags: __u32, +pub uring_cmd_flags: __u32, +pub waitid_flags: __u32, +pub futex_flags: __u32, +pub install_fd_flags: __u32, +pub nop_flags: __u32, +pub pipe_flags: __u32, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_4 { +pub buf_index: __u16, +pub buf_group: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_sqe__bindgen_ty_5 { +pub splice_fd_in: __s32, +pub file_index: __u32, +pub zcrx_ifq_idx: __u32, +pub optlen: __u32, +pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_5__bindgen_ty_1, +pub __bindgen_anon_2: io_uring_sqe__bindgen_ty_5__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_restriction__bindgen_ty_1 { +pub register_op: __u8, +pub sqe_op: __u8, +pub sqe_flags: __u8, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl __BindgenUnionField { +#[inline] +pub const fn new() -> Self { +__BindgenUnionField(::core::marker::PhantomData) +} +#[inline] +pub unsafe fn as_ref(&self) -> &T { +::core::mem::transmute(self) +} +#[inline] +pub unsafe fn as_mut(&mut self) -> &mut T { +::core::mem::transmute(self) +} +} +impl ::core::default::Default for __BindgenUnionField { +#[inline] +fn default() -> Self { +Self::new() +} +} +impl ::core::clone::Clone for __BindgenUnionField { +#[inline] +fn clone(&self) -> Self { +*self +} +} +impl ::core::marker::Copy for __BindgenUnionField {} +impl ::core::fmt::Debug for __BindgenUnionField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__BindgenUnionField") +} +} +impl ::core::hash::Hash for __BindgenUnionField { +fn hash(&self, _state: &mut H) {} +} +impl ::core::cmp::PartialEq for __BindgenUnionField { +fn eq(&self, _other: &__BindgenUnionField) -> bool { +true +} +} +impl ::core::cmp::Eq for __BindgenUnionField {} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/ioctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/ioctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..13aef4bb2117a4c0a3377e5f05ecab3a7b17e77b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/ioctl.rs @@ -0,0 +1,1502 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const FIONREAD: u32 = 21531; +pub const FIONBIO: u32 = 21537; +pub const FIOCLEX: u32 = 21585; +pub const FIONCLEX: u32 = 21584; +pub const FIOASYNC: u32 = 21586; +pub const FIOQSIZE: u32 = 21600; +pub const TCXONC: u32 = 21514; +pub const TCFLSH: u32 = 21515; +pub const TIOCSCTTY: u32 = 21518; +pub const TIOCSPGRP: u32 = 21520; +pub const TIOCOUTQ: u32 = 21521; +pub const TIOCSTI: u32 = 21522; +pub const TIOCSWINSZ: u32 = 21524; +pub const TIOCMGET: u32 = 21525; +pub const TIOCMBIS: u32 = 21526; +pub const TIOCMBIC: u32 = 21527; +pub const TIOCMSET: u32 = 21528; +pub const TIOCSSOFTCAR: u32 = 21530; +pub const TIOCLINUX: u32 = 21532; +pub const TIOCCONS: u32 = 21533; +pub const TIOCSSERIAL: u32 = 21535; +pub const TIOCPKT: u32 = 21536; +pub const TIOCNOTTY: u32 = 21538; +pub const TIOCSETD: u32 = 21539; +pub const TIOCSBRK: u32 = 21543; +pub const TIOCCBRK: u32 = 21544; +pub const TIOCSRS485: u32 = 21551; +pub const TIOCSPTLCK: u32 = 1074025521; +pub const TIOCSIG: u32 = 1074025526; +pub const TIOCVHANGUP: u32 = 21559; +pub const TIOCSERCONFIG: u32 = 21587; +pub const TIOCSERGWILD: u32 = 21588; +pub const TIOCSERSWILD: u32 = 21589; +pub const TIOCSLCKTRMIOS: u32 = 21591; +pub const TIOCSERGSTRUCT: u32 = 21592; +pub const TIOCSERGETLSR: u32 = 21593; +pub const TIOCSERGETMULTI: u32 = 21594; +pub const TIOCSERSETMULTI: u32 = 21595; +pub const TIOCMIWAIT: u32 = 21596; +pub const TCGETS: u32 = 21505; +pub const TCGETA: u32 = 21509; +pub const TCSBRK: u32 = 21513; +pub const TCSBRKP: u32 = 21541; +pub const TCSETA: u32 = 21510; +pub const TCSETAF: u32 = 21512; +pub const TCSETAW: u32 = 21511; +pub const TIOCEXCL: u32 = 21516; +pub const TIOCNXCL: u32 = 21517; +pub const TIOCGDEV: u32 = 2147767346; +pub const TIOCGEXCL: u32 = 2147767360; +pub const TIOCGICOUNT: u32 = 21597; +pub const TIOCGLCKTRMIOS: u32 = 21590; +pub const TIOCGPGRP: u32 = 21519; +pub const TIOCGPKT: u32 = 2147767352; +pub const TIOCGPTLCK: u32 = 2147767353; +pub const TIOCGPTN: u32 = 2147767344; +pub const TIOCGPTPEER: u32 = 21569; +pub const TIOCGRS485: u32 = 21550; +pub const TIOCGSERIAL: u32 = 21534; +pub const TIOCGSID: u32 = 21545; +pub const TIOCGSOFTCAR: u32 = 21529; +pub const TIOCGWINSZ: u32 = 21523; +pub const TCGETS2: u32 = 2150388778; +pub const TCGETX: u32 = 21554; +pub const TCSETS: u32 = 21506; +pub const TCSETS2: u32 = 1076646955; +pub const TCSETSF: u32 = 21508; +pub const TCSETSF2: u32 = 1076646957; +pub const TCSETSW: u32 = 21507; +pub const TCSETSW2: u32 = 1076646956; +pub const TCSETX: u32 = 21555; +pub const TCSETXF: u32 = 21556; +pub const TCSETXW: u32 = 21557; +pub const TIOCGETD: u32 = 21540; +pub const MTIOCGET: u32 = 2150657282; +pub const BLKSSZGET: u32 = 4712; +pub const BLKPBSZGET: u32 = 4731; +pub const BLKROSET: u32 = 4701; +pub const BLKROGET: u32 = 4702; +pub const BLKRRPART: u32 = 4703; +pub const BLKGETSIZE: u32 = 4704; +pub const BLKFLSBUF: u32 = 4705; +pub const BLKRASET: u32 = 4706; +pub const BLKRAGET: u32 = 4707; +pub const BLKFRASET: u32 = 4708; +pub const BLKFRAGET: u32 = 4709; +pub const BLKSECTSET: u32 = 4710; +pub const BLKSECTGET: u32 = 4711; +pub const BLKPG: u32 = 4713; +pub const BLKBSZGET: u32 = 2148012656; +pub const BLKBSZSET: u32 = 1074270833; +pub const BLKGETSIZE64: u32 = 2148012658; +pub const BLKTRACESETUP: u32 = 3225948787; +pub const BLKTRACESTART: u32 = 4724; +pub const BLKTRACESTOP: u32 = 4725; +pub const BLKTRACETEARDOWN: u32 = 4726; +pub const BLKDISCARD: u32 = 4727; +pub const BLKIOMIN: u32 = 4728; +pub const BLKIOOPT: u32 = 4729; +pub const BLKALIGNOFF: u32 = 4730; +pub const BLKDISCARDZEROES: u32 = 4732; +pub const BLKSECDISCARD: u32 = 4733; +pub const BLKROTATIONAL: u32 = 4734; +pub const BLKZEROOUT: u32 = 4735; +pub const FIEMAP_MAX_OFFSET: i32 = -1; +pub const FIEMAP_FLAG_SYNC: u32 = 1; +pub const FIEMAP_FLAG_XATTR: u32 = 2; +pub const FIEMAP_FLAG_CACHE: u32 = 4; +pub const FIEMAP_FLAGS_COMPAT: u32 = 3; +pub const FIEMAP_EXTENT_LAST: u32 = 1; +pub const FIEMAP_EXTENT_UNKNOWN: u32 = 2; +pub const FIEMAP_EXTENT_DELALLOC: u32 = 4; +pub const FIEMAP_EXTENT_ENCODED: u32 = 8; +pub const FIEMAP_EXTENT_DATA_ENCRYPTED: u32 = 128; +pub const FIEMAP_EXTENT_NOT_ALIGNED: u32 = 256; +pub const FIEMAP_EXTENT_DATA_INLINE: u32 = 512; +pub const FIEMAP_EXTENT_DATA_TAIL: u32 = 1024; +pub const FIEMAP_EXTENT_UNWRITTEN: u32 = 2048; +pub const FIEMAP_EXTENT_MERGED: u32 = 4096; +pub const FIEMAP_EXTENT_SHARED: u32 = 8192; +pub const UFFDIO_REGISTER: u32 = 3223366144; +pub const UFFDIO_UNREGISTER: u32 = 2148575745; +pub const UFFDIO_WAKE: u32 = 2148575746; +pub const UFFDIO_COPY: u32 = 3223890435; +pub const UFFDIO_ZEROPAGE: u32 = 3223366148; +pub const UFFDIO_WRITEPROTECT: u32 = 3222841862; +pub const UFFDIO_API: u32 = 3222841919; +pub const NS_GET_USERNS: u32 = 46849; +pub const NS_GET_PARENT: u32 = 46850; +pub const NS_GET_NSTYPE: u32 = 46851; +pub const KDGETLED: u32 = 19249; +pub const KDSETLED: u32 = 19250; +pub const KDGKBLED: u32 = 19300; +pub const KDSKBLED: u32 = 19301; +pub const KDGKBTYPE: u32 = 19251; +pub const KDADDIO: u32 = 19252; +pub const KDDELIO: u32 = 19253; +pub const KDENABIO: u32 = 19254; +pub const KDDISABIO: u32 = 19255; +pub const KDSETMODE: u32 = 19258; +pub const KDGETMODE: u32 = 19259; +pub const KDMKTONE: u32 = 19248; +pub const KIOCSOUND: u32 = 19247; +pub const GIO_CMAP: u32 = 19312; +pub const PIO_CMAP: u32 = 19313; +pub const GIO_FONT: u32 = 19296; +pub const GIO_FONTX: u32 = 19307; +pub const PIO_FONT: u32 = 19297; +pub const PIO_FONTX: u32 = 19308; +pub const PIO_FONTRESET: u32 = 19309; +pub const GIO_SCRNMAP: u32 = 19264; +pub const GIO_UNISCRNMAP: u32 = 19305; +pub const PIO_SCRNMAP: u32 = 19265; +pub const PIO_UNISCRNMAP: u32 = 19306; +pub const GIO_UNIMAP: u32 = 19302; +pub const PIO_UNIMAP: u32 = 19303; +pub const PIO_UNIMAPCLR: u32 = 19304; +pub const KDGKBMODE: u32 = 19268; +pub const KDSKBMODE: u32 = 19269; +pub const KDGKBMETA: u32 = 19298; +pub const KDSKBMETA: u32 = 19299; +pub const KDGKBENT: u32 = 19270; +pub const KDSKBENT: u32 = 19271; +pub const KDGKBSENT: u32 = 19272; +pub const KDSKBSENT: u32 = 19273; +pub const KDGKBDIACR: u32 = 19274; +pub const KDGETKEYCODE: u32 = 19276; +pub const KDSETKEYCODE: u32 = 19277; +pub const KDSIGACCEPT: u32 = 19278; +pub const VT_OPENQRY: u32 = 22016; +pub const VT_GETMODE: u32 = 22017; +pub const VT_SETMODE: u32 = 22018; +pub const VT_GETSTATE: u32 = 22019; +pub const VT_RELDISP: u32 = 22021; +pub const VT_ACTIVATE: u32 = 22022; +pub const VT_WAITACTIVE: u32 = 22023; +pub const VT_DISALLOCATE: u32 = 22024; +pub const VT_RESIZE: u32 = 22025; +pub const VT_RESIZEX: u32 = 22026; +pub const FIOSETOWN: u32 = 35073; +pub const SIOCSPGRP: u32 = 35074; +pub const FIOGETOWN: u32 = 35075; +pub const SIOCGPGRP: u32 = 35076; +pub const SIOCATMARK: u32 = 35077; +pub const SIOCGSTAMP: u32 = 35078; +pub const TIOCINQ: u32 = 21531; +pub const SIOCADDRT: u32 = 35083; +pub const SIOCDELRT: u32 = 35084; +pub const SIOCGIFNAME: u32 = 35088; +pub const SIOCSIFLINK: u32 = 35089; +pub const SIOCGIFCONF: u32 = 35090; +pub const SIOCGIFFLAGS: u32 = 35091; +pub const SIOCSIFFLAGS: u32 = 35092; +pub const SIOCGIFADDR: u32 = 35093; +pub const SIOCSIFADDR: u32 = 35094; +pub const SIOCGIFDSTADDR: u32 = 35095; +pub const SIOCSIFDSTADDR: u32 = 35096; +pub const SIOCGIFBRDADDR: u32 = 35097; +pub const SIOCSIFBRDADDR: u32 = 35098; +pub const SIOCGIFNETMASK: u32 = 35099; +pub const SIOCSIFNETMASK: u32 = 35100; +pub const SIOCGIFMETRIC: u32 = 35101; +pub const SIOCSIFMETRIC: u32 = 35102; +pub const SIOCGIFMEM: u32 = 35103; +pub const SIOCSIFMEM: u32 = 35104; +pub const SIOCGIFMTU: u32 = 35105; +pub const SIOCSIFMTU: u32 = 35106; +pub const SIOCSIFHWADDR: u32 = 35108; +pub const SIOCGIFENCAP: u32 = 35109; +pub const SIOCSIFENCAP: u32 = 35110; +pub const SIOCGIFHWADDR: u32 = 35111; +pub const SIOCGIFSLAVE: u32 = 35113; +pub const SIOCSIFSLAVE: u32 = 35120; +pub const SIOCADDMULTI: u32 = 35121; +pub const SIOCDELMULTI: u32 = 35122; +pub const SIOCDARP: u32 = 35155; +pub const SIOCGARP: u32 = 35156; +pub const SIOCSARP: u32 = 35157; +pub const SIOCDRARP: u32 = 35168; +pub const SIOCGRARP: u32 = 35169; +pub const SIOCSRARP: u32 = 35170; +pub const SIOCGIFMAP: u32 = 35184; +pub const SIOCSIFMAP: u32 = 35185; +pub const SIOCRTMSG: u32 = 35085; +pub const SIOCSIFNAME: u32 = 35107; +pub const SIOCGIFINDEX: u32 = 35123; +pub const SIOGIFINDEX: u32 = 35123; +pub const SIOCSIFPFLAGS: u32 = 35124; +pub const SIOCGIFPFLAGS: u32 = 35125; +pub const SIOCDIFADDR: u32 = 35126; +pub const SIOCSIFHWBROADCAST: u32 = 35127; +pub const SIOCGIFCOUNT: u32 = 35128; +pub const SIOCGIFBR: u32 = 35136; +pub const SIOCSIFBR: u32 = 35137; +pub const SIOCGIFTXQLEN: u32 = 35138; +pub const SIOCSIFTXQLEN: u32 = 35139; +pub const SIOCADDDLCI: u32 = 35200; +pub const SIOCDELDLCI: u32 = 35201; +pub const SIOCDEVPRIVATE: u32 = 35312; +pub const SIOCPROTOPRIVATE: u32 = 35296; +pub const FIBMAP: u32 = 1; +pub const FIGETBSZ: u32 = 2; +pub const FIFREEZE: u32 = 3221510263; +pub const FITHAW: u32 = 3221510264; +pub const FITRIM: u32 = 3222820985; +pub const FICLONE: u32 = 1074041865; +pub const FICLONERANGE: u32 = 1075876877; +pub const FIDEDUPERANGE: u32 = 3222836278; +pub const FS_IOC_GETFLAGS: u32 = 2148034049; +pub const FS_IOC_SETFLAGS: u32 = 1074292226; +pub const FS_IOC_GETVERSION: u32 = 2148038145; +pub const FS_IOC_SETVERSION: u32 = 1074296322; +pub const FS_IOC_FIEMAP: u32 = 3223348747; +pub const FS_IOC32_GETFLAGS: u32 = 2147771905; +pub const FS_IOC32_SETFLAGS: u32 = 1074030082; +pub const FS_IOC32_GETVERSION: u32 = 2147776001; +pub const FS_IOC32_SETVERSION: u32 = 1074034178; +pub const FS_IOC_FSGETXATTR: u32 = 2149341215; +pub const FS_IOC_FSSETXATTR: u32 = 1075599392; +pub const FS_IOC_GETFSLABEL: u32 = 2164298801; +pub const FS_IOC_SETFSLABEL: u32 = 1090556978; +pub const EXT4_IOC_GETVERSION: u32 = 2148034051; +pub const EXT4_IOC_SETVERSION: u32 = 1074292228; +pub const EXT4_IOC_GETVERSION_OLD: u32 = 2148038145; +pub const EXT4_IOC_SETVERSION_OLD: u32 = 1074296322; +pub const EXT4_IOC_GETRSVSZ: u32 = 2148034053; +pub const EXT4_IOC_SETRSVSZ: u32 = 1074292230; +pub const EXT4_IOC_GROUP_EXTEND: u32 = 1074292231; +pub const EXT4_IOC_MIGRATE: u32 = 26121; +pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 26124; +pub const EXT4_IOC_RESIZE_FS: u32 = 1074292240; +pub const EXT4_IOC_SWAP_BOOT: u32 = 26129; +pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 26130; +pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 26152; +pub const EXT4_IOC_GETSTATE: u32 = 1074030121; +pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; +pub const EXT4_IOC_CHECKPOINT: u32 = 1074030123; +pub const EXT4_IOC_SHUTDOWN: u32 = 2147768445; +pub const EXT4_IOC32_GETVERSION: u32 = 2147771907; +pub const EXT4_IOC32_SETVERSION: u32 = 1074030084; +pub const EXT4_IOC32_GETRSVSZ: u32 = 2147771909; +pub const EXT4_IOC32_SETRSVSZ: u32 = 1074030086; +pub const EXT4_IOC32_GROUP_EXTEND: u32 = 1074030087; +pub const EXT4_IOC32_GETVERSION_OLD: u32 = 2147776001; +pub const EXT4_IOC32_SETVERSION_OLD: u32 = 1074034178; +pub const VIDIOC_SUBDEV_QUERYSTD: u32 = 2148030015; +pub const AUTOFS_DEV_IOCTL_CLOSEMOUNT: u32 = 3222836085; +pub const LIRC_SET_SEND_CARRIER: u32 = 1074030867; +pub const AUTOFS_IOC_PROTOSUBVER: u32 = 2147783527; +pub const PTP_SYS_OFFSET_PRECISE: u32 = 3225435400; +pub const FSI_SCOM_WRITE: u32 = 3223352066; +pub const ATM_GETCIRANGE: u32 = 1074815370; +pub const DMA_BUF_SET_NAME_B: u32 = 1074291201; +pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; +pub const TUNSETPERSIST: u32 = 1074025675; +pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 1074554389; +pub const CEC_RECEIVE: u32 = 3224920326; +pub const MGSL_IOCGPARAMS: u32 = 2150657281; +pub const ENI_SETMULT: u32 = 1074815335; +pub const RIO_GET_EVENT_MASK: u32 = 2147773710; +pub const LIRC_GET_MAX_TIMEOUT: u32 = 2147772681; +pub const USBDEVFS_CLAIMINTERFACE: u32 = 2147767567; +pub const CHIOMOVE: u32 = 1075077889; +pub const SONYPI_IOCGBATFLAGS: u32 = 2147579399; +pub const BTRFS_IOC_SYNC: u32 = 37896; +pub const VIDIOC_TRY_FMT: u32 = 3234879040; +pub const LIRC_SET_REC_MODE: u32 = 1074030866; +pub const VIDIOC_DQEVENT: u32 = 2156418649; +pub const RPMSG_DESTROY_EPT_IOCTL: u32 = 46338; +pub const UVCIOC_CTRL_MAP: u32 = 3227546912; +pub const VHOST_SET_BACKEND_FEATURES: u32 = 1074310949; +pub const VHOST_VSOCK_SET_GUEST_CID: u32 = 1074311008; +pub const UI_SET_KEYBIT: u32 = 1074025829; +pub const LIRC_SET_REC_TIMEOUT: u32 = 1074030872; +pub const FS_IOC_GET_ENCRYPTION_KEY_STATUS: u32 = 3229640218; +pub const BTRFS_IOC_TREE_SEARCH_V2: u32 = 3228603409; +pub const VHOST_SET_VRING_BASE: u32 = 1074310930; +pub const RIO_ENABLE_DOORBELL_RANGE: u32 = 1074294025; +pub const VIDIOC_TRY_EXT_CTRLS: u32 = 3223344713; +pub const LIRC_GET_REC_MODE: u32 = 2147772674; +pub const PPGETTIME: u32 = 2148561045; +pub const BTRFS_IOC_RM_DEV: u32 = 1342215179; +pub const ATM_SETBACKEND: u32 = 1073897970; +pub const FSL_HV_IOCTL_PARTITION_START: u32 = 3222318851; +pub const FBIO_WAITEVENT: u32 = 18056; +pub const SWITCHTEC_IOCTL_PORT_TO_PFF: u32 = 3222034245; +pub const NVME_IOCTL_IO_CMD: u32 = 3225964099; +pub const IPMICTL_RECEIVE_MSG_TRUNC: u32 = 3224398091; +pub const FDTWADDLE: u32 = 601; +pub const NVME_IOCTL_SUBMIT_IO: u32 = 1076907586; +pub const NILFS_IOCTL_SYNC: u32 = 2148036234; +pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; +pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; +pub const DM_DEV_STATUS: u32 = 3241737479; +pub const TEE_IOC_CLOSE_SESSION: u32 = 2147787781; +pub const NS_GETPSTAT: u32 = 3222298977; +pub const UI_SET_PROPBIT: u32 = 1074025838; +pub const TUNSETFILTEREBPF: u32 = 2147767521; +pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 1074031874; +pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; +pub const WDIOC_SETOPTIONS: u32 = 2147768068; +pub const VHOST_SCSI_SET_ENDPOINT: u32 = 1088991040; +pub const MGSL_IOCGTXIDLE: u32 = 27907; +pub const ATM_ADDLECSADDR: u32 = 1074815374; +pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; +pub const FDGETPRM: u32 = 2149581316; +pub const HIDIOCAPPLICATION: u32 = 18434; +pub const ENI_MEMDUMP: u32 = 1074815328; +pub const PTP_SYS_OFFSET2: u32 = 1128283406; +pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; +pub const DMA_BUF_SET_NAME_A: u32 = 1074029057; +pub const PTP_PIN_GETFUNC: u32 = 3227532550; +pub const PTP_SYS_OFFSET_EXTENDED: u32 = 3300932873; +pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 1074312776; +pub const RTC_EPOCH_READ: u32 = 2148036621; +pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; +pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; +pub const ATM_GETLECSADDR: u32 = 1074815376; +pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; +pub const SONET_GETDIAG: u32 = 2147770644; +pub const ATMMPC_DATA: u32 = 25049; +pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 2148296989; +pub const HIDIOCGCOLLECTIONINDEX: u32 = 1075333136; +pub const RPMSG_CREATE_EPT_IOCTL: u32 = 1076409601; +pub const GPIOHANDLE_GET_LINE_VALUES_IOCTL: u32 = 3225465864; +pub const UI_DEV_SETUP: u32 = 1079792899; +pub const ISST_IF_IO_CMD: u32 = 1074331138; +pub const RIO_MPORT_MAINT_READ_REMOTE: u32 = 2149084423; +pub const VIDIOC_OMAP3ISP_HIST_CFG: u32 = 3224393412; +pub const BLKGETNRZONES: u32 = 2147750533; +pub const VIDIOC_G_MODULATOR: u32 = 3225703990; +pub const VBG_IOCTL_WRITE_CORE_DUMP: u32 = 3223082515; +pub const USBDEVFS_SETINTERFACE: u32 = 2148029700; +pub const PPPIOCGCHAN: u32 = 2147775543; +pub const EVIOCGVERSION: u32 = 2147763457; +pub const VHOST_NET_SET_BACKEND: u32 = 1074310960; +pub const USBDEVFS_REAPURBNDELAY: u32 = 1074287885; +pub const RNDZAPENTCNT: u32 = 20996; +pub const VIDIOC_G_PARM: u32 = 3234616853; +pub const TUNGETDEVNETNS: u32 = 21731; +pub const LIRC_SET_MEASURE_CARRIER_MODE: u32 = 1074030877; +pub const VHOST_SET_VRING_ERR: u32 = 1074310946; +pub const VDUSE_VQ_SETUP: u32 = 1075872020; +pub const AUTOFS_IOC_SETTIMEOUT: u32 = 3221787492; +pub const VIDIOC_S_FREQUENCY: u32 = 1076647481; +pub const F2FS_IOC_SEC_TRIM_FILE: u32 = 1075377428; +pub const FS_IOC_REMOVE_ENCRYPTION_KEY: u32 = 3225445912; +pub const WDIOC_GETPRETIMEOUT: u32 = 2147768073; +pub const USBDEVFS_DROP_PRIVILEGES: u32 = 1074025758; +pub const BTRFS_IOC_SNAP_CREATE_V2: u32 = 1342215191; +pub const VHOST_VSOCK_SET_RUNNING: u32 = 1074048865; +pub const STP_SET_OPTIONS: u32 = 1074275586; +pub const FBIO_RADEON_GET_MIRROR: u32 = 2148024323; +pub const IVTVFB_IOC_DMA_FRAME: u32 = 1075336896; +pub const IPMICTL_SEND_COMMAND: u32 = 2150131981; +pub const VIDIOC_G_ENC_INDEX: u32 = 2283296332; +pub const DFL_FPGA_FME_PORT_PR: u32 = 46720; +pub const CHIOSVOLTAG: u32 = 1076912914; +pub const ATM_SETESIF: u32 = 1074815373; +pub const FW_CDEV_IOC_SEND_RESPONSE: u32 = 1075323652; +pub const PMU_IOC_GET_MODEL: u32 = 2148024835; +pub const JSIOCGBTNMAP: u32 = 2214619700; +pub const USBDEVFS_HUB_PORTINFO: u32 = 2155894035; +pub const VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS: u32 = 3222820363; +pub const FDCLRPRM: u32 = 577; +pub const BTRFS_IOC_SCRUB: u32 = 3288372251; +pub const USBDEVFS_DISCONNECT: u32 = 21782; +pub const TUNSETVNETBE: u32 = 1074025694; +pub const ATMTCP_REMOVE: u32 = 24975; +pub const VHOST_VDPA_GET_CONFIG: u32 = 2148052851; +pub const PPPIOCGNPMODE: u32 = 3221779532; +pub const FDGETDRVPRM: u32 = 2155872785; +pub const TUNSETVNETLE: u32 = 1074025692; +pub const PHN_SETREG: u32 = 1074294790; +pub const PPPIOCDETACH: u32 = 1074033724; +pub const MMTIMER_GETRES: u32 = 2148035841; +pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; +pub const PPGETFLAGS: u32 = 2147774618; +pub const VDUSE_DEV_GET_FEATURES: u32 = 2148040977; +pub const CAPI_MANUFACTURER_CMD: u32 = 3222291232; +pub const VIDIOC_G_TUNER: u32 = 3226752541; +pub const DM_TABLE_STATUS: u32 = 3241737484; +pub const DM_DEV_ARM_POLL: u32 = 3241737488; +pub const NE_CREATE_VM: u32 = 2148052512; +pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; +pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 62735; +pub const DFL_FPGA_PORT_DMA_MAP: u32 = 46659; +pub const MGSL_IOCGXCTRL: u32 = 27926; +pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 1076372225; +pub const SONYPI_IOCGBLUE: u32 = 2147579400; +pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 62743; +pub const I2OHTML: u32 = 3224398089; +pub const VFIO_GET_API_VERSION: u32 = 15204; +pub const IDT77105_GETSTATZ: u32 = 1074815283; +pub const I2OPARMSET: u32 = 3223873795; +pub const TEE_IOC_CANCEL: u32 = 2148049924; +pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; +pub const DFL_FPGA_PORT_RESET: u32 = 46656; +pub const PPPIOCGASYNCMAP: u32 = 2147775576; +pub const EVIOCGKEYCODE_V2: u32 = 2150122756; +pub const DM_DEV_SET_GEOMETRY: u32 = 3241737487; +pub const HIDIOCSUSAGE: u32 = 1075333132; +pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323664; +pub const PTP_EXTTS_REQUEST: u32 = 1074806018; +pub const SWITCHTEC_IOCTL_EVENT_CTL: u32 = 3223869251; +pub const WDIOC_SETPRETIMEOUT: u32 = 3221509896; +pub const VHOST_SCSI_CLEAR_ENDPOINT: u32 = 1088991041; +pub const JSIOCGAXES: u32 = 2147576337; +pub const HIDIOCSFLAG: u32 = 1074022415; +pub const PTP_PEROUT_REQUEST2: u32 = 1077427468; +pub const PPWDATA: u32 = 1073836166; +pub const PTP_CLOCK_GETCAPS: u32 = 2152742145; +pub const FDGETMAXERRS: u32 = 2148794894; +pub const TUNSETQUEUE: u32 = 1074025689; +pub const PTP_ENABLE_PPS: u32 = 1074019588; +pub const SIOCSIFATMTCP: u32 = 24960; +pub const CEC_ADAP_G_LOG_ADDRS: u32 = 2153537795; +pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; +pub const NBD_SET_BLKSIZE: u32 = 43777; +pub const NBD_SET_TIMEOUT: u32 = 43785; +pub const VHOST_SCSI_GET_ABI_VERSION: u32 = 1074048834; +pub const RIO_UNMAP_INBOUND: u32 = 1074294034; +pub const ATM_QUERYLOOP: u32 = 1074815316; +pub const DFL_FPGA_GET_API_VERSION: u32 = 46592; +pub const USBDEVFS_WAIT_FOR_RESUME: u32 = 21795; +pub const FBIO_CURSOR: u32 = 3228059144; +pub const RNDCLEARPOOL: u32 = 20998; +pub const VIDIOC_QUERYSTD: u32 = 2148030015; +pub const DMA_BUF_IOCTL_SYNC: u32 = 1074291200; +pub const SCIF_RECV: u32 = 3222827783; +pub const PTP_PIN_GETFUNC2: u32 = 3227532559; +pub const FW_CDEV_IOC_ALLOCATE: u32 = 3223331586; +pub const CEC_ADAP_G_CAPS: u32 = 3226231040; +pub const VIDIOC_G_FBUF: u32 = 2150651402; +pub const PTP_ENABLE_PPS2: u32 = 1074019597; +pub const PCITEST_CLEAR_IRQ: u32 = 20496; +pub const IPMICTL_SET_GETS_EVENTS_CMD: u32 = 2147772688; +pub const BTRFS_IOC_DEVICES_READY: u32 = 2415957031; +pub const JSIOCGAXMAP: u32 = 2151705138; +pub const FW_CDEV_IOC_GET_CYCLE_TIMER: u32 = 2148541196; +pub const FW_CDEV_IOC_SET_ISO_CHANNELS: u32 = 1074799383; +pub const RTC_WIE_OFF: u32 = 28688; +pub const PPGETMODE: u32 = 2147774616; +pub const VIDIOC_DBG_G_REGISTER: u32 = 3224917584; +pub const PTP_SYS_OFFSET: u32 = 1128283397; +pub const BTRFS_IOC_SPACE_INFO: u32 = 3222311956; +pub const VIDIOC_SUBDEV_ENUM_FRAME_SIZE: u32 = 3225441866; +pub const ND_IOCTL_VENDOR: u32 = 3221769737; +pub const SCIF_VREADFROM: u32 = 3223876364; +pub const BTRFS_IOC_TRANS_START: u32 = 37894; +pub const INOTIFY_IOC_SETNEXTWD: u32 = 1074022656; +pub const SNAPSHOT_GET_IMAGE_SIZE: u32 = 2148021006; +pub const TUNDETACHFILTER: u32 = 1074812118; +pub const ND_IOCTL_CLEAR_ERROR: u32 = 3223342596; +pub const IOC_PR_CLEAR: u32 = 1074819277; +pub const SCIF_READFROM: u32 = 3223876362; +pub const PPPIOCGDEBUG: u32 = 2147775553; +pub const BLKGETZONESZ: u32 = 2147750532; +pub const HIDIOCGUSAGES: u32 = 3491514387; +pub const SONYPI_IOCGTEMP: u32 = 2147579404; +pub const UI_SET_MSCBIT: u32 = 1074025832; +pub const APM_IOC_SUSPEND: u32 = 16642; +pub const BTRFS_IOC_TREE_SEARCH: u32 = 3489698833; +pub const RTC_PLL_GET: u32 = 2149609489; +pub const RIO_CM_EP_GET_LIST: u32 = 3221512962; +pub const USBDEVFS_DISCSIGNAL: u32 = 2148553998; +pub const LIRC_GET_MIN_TIMEOUT: u32 = 2147772680; +pub const SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY: u32 = 2174244674; +pub const DM_TARGET_MSG: u32 = 3241737486; +pub const SONYPI_IOCGBAT1REM: u32 = 2147644931; +pub const EVIOCSFF: u32 = 1076905344; +pub const TUNSETGROUP: u32 = 1074025678; +pub const EVIOCGKEYCODE: u32 = 2148025604; +pub const KCOV_REMOTE_ENABLE: u32 = 1075340134; +pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; +pub const FDEJECT: u32 = 602; +pub const TUNSETOFFLOAD: u32 = 1074025680; +pub const PPPIOCCONNECT: u32 = 1074033722; +pub const ATM_ADDADDR: u32 = 1074815368; +pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 33043; +pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; +pub const VHOST_VDPA_GET_STATUS: u32 = 2147594097; +pub const CCISS_PASSTHRU: u32 = 3227009547; +pub const MGSL_IOCCLRMODCOUNT: u32 = 27919; +pub const TEE_IOC_SUPPL_SEND: u32 = 2148574215; +pub const ATMARPD_CTRL: u32 = 25057; +pub const UI_ABS_SETUP: u32 = 1075598596; +pub const UI_DEV_DESTROY: u32 = 21762; +pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; +pub const RTC_AIE_ON: u32 = 28673; +pub const AUTOFS_IOC_EXPIRE: u32 = 2165085029; +pub const PPPIOCSDEBUG: u32 = 1074033728; +pub const GPIO_V2_LINE_SET_VALUES_IOCTL: u32 = 3222320143; +pub const PPPIOCSMRU: u32 = 1074033746; +pub const CCISS_DEREGDISK: u32 = 16908; +pub const UI_DEV_CREATE: u32 = 21761; +pub const FUSE_DEV_IOC_CLONE: u32 = 2147804416; +pub const BTRFS_IOC_START_SYNC: u32 = 2148045848; +pub const NILFS_IOCTL_DELETE_CHECKPOINT: u32 = 1074294401; +pub const SNAPSHOT_AVAIL_SWAP_SIZE: u32 = 2148021011; +pub const DM_TABLE_CLEAR: u32 = 3241737482; +pub const CCISS_GETINTINFO: u32 = 2148024834; +pub const PPPIOCSASYNCMAP: u32 = 1074033751; +pub const I2OEVTGET: u32 = 2154326283; +pub const NVME_IOCTL_RESET: u32 = 20036; +pub const PPYIELD: u32 = 28813; +pub const NVME_IOCTL_IO64_CMD: u32 = 3226488392; +pub const TUNSETCARRIER: u32 = 1074025698; +pub const DM_DEV_WAIT: u32 = 3241737480; +pub const RTC_WIE_ON: u32 = 28687; +pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; +pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; +pub const MGSL_IOCSPARAMS: u32 = 1076915456; +pub const RTC_SET_TIME: u32 = 1076129802; +pub const VHOST_RESET_OWNER: u32 = 44802; +pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 1091072232; +pub const AUTOFS_DEV_IOCTL_OPENMOUNT: u32 = 3222836084; +pub const UDF_GETEABLOCK: u32 = 2148035649; +pub const VFIO_IOMMU_MAP_DMA: u32 = 15217; +pub const VIDIOC_SUBSCRIBE_EVENT: u32 = 1075861082; +pub const HIDIOCGFLAG: u32 = 2147764238; +pub const HIDIOCGUCODE: u32 = 3222816781; +pub const VIDIOC_OMAP3ISP_AF_CFG: u32 = 3226228421; +pub const DM_REMOVE_ALL: u32 = 3241737473; +pub const ASPEED_LPC_CTRL_IOCTL_MAP: u32 = 1074835969; +pub const CCISS_GETFIRMVER: u32 = 2147762696; +pub const ND_IOCTL_ARS_START: u32 = 3223342594; +pub const PPPIOCSMRRU: u32 = 1074033723; +pub const CEC_ADAP_S_LOG_ADDRS: u32 = 3227279620; +pub const RPROC_GET_SHUTDOWN_ON_RELEASE: u32 = 2147792642; +pub const DMA_HEAP_IOCTL_ALLOC: u32 = 3222816768; +pub const PPSETTIME: u32 = 1074819222; +pub const RTC_ALM_READ: u32 = 2149871624; +pub const VDUSE_SET_API_VERSION: u32 = 1074299137; +pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 1075342600; +pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; +pub const USBDEVFS_CONNECT: u32 = 21783; +pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; +pub const ATMARP_MKIP: u32 = 25058; +pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 15216; +pub const CCISS_GETHEARTBEAT: u32 = 2147762694; +pub const ATM_RSTADDR: u32 = 1074815367; +pub const NBD_SET_SIZE: u32 = 43778; +pub const UDF_GETVOLIDENT: u32 = 2148035650; +pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; +pub const MGSL_IOCSTXIDLE: u32 = 27906; +pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; +pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; +pub const PPRSTATUS: u32 = 2147577985; +pub const MGSL_IOCTXENABLE: u32 = 27908; +pub const UDF_GETEASIZE: u32 = 2147773504; +pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; +pub const VHOST_SET_OWNER: u32 = 44801; +pub const RIO_ALLOC_DMA: u32 = 3222826259; +pub const RIO_CM_CHAN_ACCEPT: u32 = 3221775111; +pub const I2OHRTGET: u32 = 3222825217; +pub const ATM_SETCIRANGE: u32 = 1074815371; +pub const HPET_IE_ON: u32 = 26625; +pub const PERF_EVENT_IOC_ID: u32 = 2148017159; +pub const TUNSETSNDBUF: u32 = 1074025684; +pub const PTP_PIN_SETFUNC: u32 = 1080048903; +pub const PPPIOCDISCONN: u32 = 29753; +pub const VIDIOC_QUERYCTRL: u32 = 3225703972; +pub const PPEXCL: u32 = 28815; +pub const PCITEST_MSI: u32 = 1074024451; +pub const FDWERRORCLR: u32 = 598; +pub const AUTOFS_IOC_FAIL: u32 = 37729; +pub const USBDEVFS_IOCTL: u32 = 3222295826; +pub const VIDIOC_S_STD: u32 = 1074288152; +pub const F2FS_IOC_RESIZE_FS: u32 = 1074328848; +pub const SONET_SETDIAG: u32 = 3221512466; +pub const BTRFS_IOC_DEFRAG: u32 = 1342215170; +pub const CCISS_GETDRIVVER: u32 = 2147762697; +pub const IPMICTL_GET_TIMING_PARMS_CMD: u32 = 2148034839; +pub const HPET_IRQFREQ: u32 = 1074292742; +pub const ATM_GETESI: u32 = 1074815365; +pub const CCISS_GETLUNINFO: u32 = 2148286993; +pub const AUTOFS_DEV_IOCTL_ISMOUNTPOINT: u32 = 3222836094; +pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; +pub const PERF_EVENT_IOC_SET_BPF: u32 = 1074013192; +pub const UDMABUF_CREATE_LIST: u32 = 1074296131; +pub const VHOST_SET_LOG_BASE: u32 = 1074310916; +pub const ZATM_GETPOOL: u32 = 1074815329; +pub const BR2684_SETFILT: u32 = 1075601808; +pub const RNDGETPOOL: u32 = 2148028930; +pub const PPS_GETPARAMS: u32 = 2148036769; +pub const IOC_PR_RESERVE: u32 = 1074819273; +pub const VIDIOC_TRY_DECODER_CMD: u32 = 3225966177; +pub const RIO_CM_CHAN_CLOSE: u32 = 1073898244; +pub const VIDIOC_DV_TIMINGS_CAP: u32 = 3230684772; +pub const IOCTL_MEI_CONNECT_CLIENT_VTAG: u32 = 3222554628; +pub const PMU_IOC_GET_BACKLIGHT: u32 = 2148024833; +pub const USBDEVFS_GET_CAPABILITIES: u32 = 2147767578; +pub const SCIF_WRITETO: u32 = 3223876363; +pub const UDF_RELOCATE_BLOCKS: u32 = 3221777475; +pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; +pub const CCISS_REGNEWD: u32 = 16910; +pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 1074033169; +pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; +pub const CAPI_GET_VERSION: u32 = 3222291207; +pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 2228770626; +pub const VFIO_EEH_PE_OP: u32 = 15225; +pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; +pub const F2FS_IOC_RELEASE_COMPRESS_BLOCKS: u32 = 2148070674; +pub const NBD_SET_SIZE_BLOCKS: u32 = 43783; +pub const IPMI_BMC_IOCTL_SET_SMS_ATN: u32 = 45312; +pub const ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG: u32 = 3222319873; +pub const VIDIOC_S_AUDOUT: u32 = 1077171762; +pub const VIDIOC_S_FMT: u32 = 3234878981; +pub const PPPIOCATTACH: u32 = 1074033725; +pub const VHOST_GET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310948; +pub const FS_IOC_MEASURE_VERITY: u32 = 3221513862; +pub const CCISS_BIG_PASSTHRU: u32 = 3227533842; +pub const IPMICTL_SET_MY_LUN_CMD: u32 = 2147772691; +pub const PCITEST_LEGACY_IRQ: u32 = 20482; +pub const USBDEVFS_SUBMITURB: u32 = 2151175434; +pub const AUTOFS_IOC_READY: u32 = 37728; +pub const BTRFS_IOC_SEND: u32 = 1078498342; +pub const VIDIOC_G_EXT_CTRLS: u32 = 3223344711; +pub const JSIOCSBTNMAP: u32 = 1140877875; +pub const PPPIOCSFLAGS: u32 = 1074033753; +pub const NVRAM_INIT: u32 = 28736; +pub const RFKILL_IOCTL_NOINPUT: u32 = 20993; +pub const BTRFS_IOC_BALANCE: u32 = 1342215180; +pub const FS_IOC_GETFSMAP: u32 = 3233830971; +pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 2147772699; +pub const STP_POLICY_ID_GET: u32 = 2148541697; +pub const PPSETFLAGS: u32 = 1074032795; +pub const CEC_ADAP_S_PHYS_ADDR: u32 = 1073897730; +pub const ATMTCP_CREATE: u32 = 24974; +pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 45314; +pub const PPPIOCGXASYNCMAP: u32 = 2149610576; +pub const VHOST_SET_VRING_CALL: u32 = 1074310945; +pub const LIRC_GET_FEATURES: u32 = 2147772672; +pub const GSMIOC_DISABLE_NET: u32 = 18179; +pub const AUTOFS_IOC_CATATONIC: u32 = 37730; +pub const NBD_DO_IT: u32 = 43779; +pub const LIRC_SET_REC_CARRIER_RANGE: u32 = 1074030879; +pub const IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772697; +pub const EVIOCSCLOCKID: u32 = 1074021792; +pub const USBDEVFS_FREE_STREAMS: u32 = 2148029725; +pub const FSI_SCOM_RESET: u32 = 1074033411; +pub const PMU_IOC_GRAB_BACKLIGHT: u32 = 2148024838; +pub const VIDIOC_SUBDEV_S_FMT: u32 = 3227014661; +pub const FDDEFPRM: u32 = 1075839555; +pub const TEE_IOC_INVOKE: u32 = 2148574211; +pub const USBDEVFS_BULK: u32 = 3222820098; +pub const SCIF_VWRITETO: u32 = 3223876365; +pub const SONYPI_IOCSBRT: u32 = 1073837568; +pub const BTRFS_IOC_FILE_EXTENT_SAME: u32 = 3222836278; +pub const RTC_PIE_ON: u32 = 28677; +pub const BTRFS_IOC_SCAN_DEV: u32 = 1342215172; +pub const PPPIOCXFERUNIT: u32 = 29774; +pub const WDIOC_GETTIMEOUT: u32 = 2147768071; +pub const BTRFS_IOC_SET_RECEIVED_SUBVOL: u32 = 3234370597; +pub const DFL_FPGA_PORT_ERR_SET_IRQ: u32 = 1074312774; +pub const FBIO_WAITFORVSYNC: u32 = 1074021920; +pub const RTC_PIE_OFF: u32 = 28678; +pub const EVIOCGRAB: u32 = 1074021776; +pub const PMU_IOC_SET_BACKLIGHT: u32 = 1074283010; +pub const EVIOCGREP: u32 = 2148025603; +pub const PERF_EVENT_IOC_MODIFY_ATTRIBUTES: u32 = 1074275339; +pub const UFFDIO_CONTINUE: u32 = 3223366151; +pub const VDUSE_GET_API_VERSION: u32 = 2148040960; +pub const RTC_RD_TIME: u32 = 2149871625; +pub const FDMSGOFF: u32 = 582; +pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 2148296988; +pub const CAPI_GET_ERRCODE: u32 = 2147631905; +pub const PCITEST_SET_IRQTYPE: u32 = 1074024456; +pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; +pub const MATROXFB_SET_OUTPUT_MODE: u32 = 1074294522; +pub const RIO_DEV_ADD: u32 = 1075866903; +pub const VIDIOC_ENUM_FREQ_BANDS: u32 = 3225441893; +pub const FBIO_RADEON_SET_MIRROR: u32 = 1074282500; +pub const PCITEST_GET_IRQTYPE: u32 = 20489; +pub const JSIOCGVERSION: u32 = 2147772929; +pub const SONYPI_IOCSBLUE: u32 = 1073837577; +pub const SNAPSHOT_PREF_IMAGE_SIZE: u32 = 13074; +pub const F2FS_IOC_GET_FEATURES: u32 = 2147808524; +pub const SCIF_REG: u32 = 3223876360; +pub const NILFS_IOCTL_CLEAN_SEGMENTS: u32 = 1081634440; +pub const FW_CDEV_IOC_INITIATE_BUS_RESET: u32 = 1074012933; +pub const RIO_WAIT_FOR_ASYNC: u32 = 1074294038; +pub const VHOST_SET_VRING_NUM: u32 = 1074310928; +pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; +pub const RIO_FREE_DMA: u32 = 1074294036; +pub const MGSL_IOCRXENABLE: u32 = 27909; +pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 1977; +pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 2148034838; +pub const PPPIOCGL2TPSTATS: u32 = 2152231990; +pub const PERF_EVENT_IOC_PERIOD: u32 = 1074275332; +pub const PTP_PIN_SETFUNC2: u32 = 1080048912; +pub const CHIOEXCHANGE: u32 = 1075602178; +pub const NILFS_IOCTL_GET_SUINFO: u32 = 2149084804; +pub const CEC_DQEVENT: u32 = 3226493191; +pub const UI_SET_SWBIT: u32 = 1074025837; +pub const VHOST_VDPA_SET_CONFIG: u32 = 1074311028; +pub const TUNSETIFF: u32 = 1074025674; +pub const CHIOPOSITION: u32 = 1074553603; +pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 1074030879; +pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 1074304019; +pub const RIO_UNMAP_OUTBOUND: u32 = 1076391184; +pub const CAPI_CLR_FLAGS: u32 = 2147762981; +pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323663; +pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 2148036344; +pub const EVIOCSMASK: u32 = 1074808211; +pub const BTRFS_IOC_FORGET_DEV: u32 = 1342215173; +pub const CXL_MEM_QUERY_COMMANDS: u32 = 2148060673; +pub const CEC_S_MODE: u32 = 1074028809; +pub const MGSL_IOCSIF: u32 = 27914; +pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; +pub const PPSETMODE: u32 = 1074032768; +pub const VFIO_DEVICE_SET_IRQS: u32 = 15214; +pub const VIDIOC_PREPARE_BUF: u32 = 3227014749; +pub const CEC_ADAP_G_CONNECTOR_INFO: u32 = 2151964938; +pub const IOC_OPAL_WRITE_SHADOW_MBR: u32 = 1092645098; +pub const VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL: u32 = 3225441867; +pub const UDMABUF_CREATE: u32 = 1075344706; +pub const SONET_CLRDIAG: u32 = 3221512467; +pub const PHN_SET_REG: u32 = 1074294785; +pub const RNDADDTOENTCNT: u32 = 1074024961; +pub const VBG_IOCTL_CHECK_BALLOON: u32 = 3223344657; +pub const VIDIOC_OMAP3ISP_STAT_REQ: u32 = 3223869126; +pub const PPS_FETCH: u32 = 3221778596; +pub const RTC_AIE_OFF: u32 = 28674; +pub const VFIO_GROUP_SET_CONTAINER: u32 = 15208; +pub const FW_CDEV_IOC_RECEIVE_PHY_PACKETS: u32 = 1074275094; +pub const VFIO_IOMMU_SPAPR_TCE_REMOVE: u32 = 15224; +pub const VFIO_IOMMU_GET_INFO: u32 = 15216; +pub const DM_DEV_SUSPEND: u32 = 3241737478; +pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 2147677461; +pub const FW_CDEV_IOC_STOP_ISO: u32 = 1074012939; +pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; +pub const ATMMPC_CTRL: u32 = 25048; +pub const PPPIOCSXASYNCMAP: u32 = 1075868751; +pub const CHIOGSTATUS: u32 = 1074815752; +pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; +pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 2147773699; +pub const CAPI_SET_FLAGS: u32 = 2147762980; +pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 15210; +pub const VHOST_SET_MEM_TABLE: u32 = 1074310915; +pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 1074294520; +pub const DFL_FPGA_PORT_GET_REGION_INFO: u32 = 46658; +pub const VHOST_GET_FEATURES: u32 = 2148052736; +pub const LIRC_GET_REC_RESOLUTION: u32 = 2147772679; +pub const PACKET_CTRL_CMD: u32 = 3222820865; +pub const LIRC_SET_TRANSMITTER_MASK: u32 = 1074030871; +pub const BTRFS_IOC_ADD_DEV: u32 = 1342215178; +pub const JSIOCGCORR: u32 = 2149870114; +pub const VIDIOC_G_FMT: u32 = 3234878980; +pub const RTC_EPOCH_SET: u32 = 1074294798; +pub const CAPI_GET_PROFILE: u32 = 3225436937; +pub const ATM_GETLOOP: u32 = 1074815314; +pub const SCIF_LISTEN: u32 = 1074033410; +pub const NBD_CLEAR_QUE: u32 = 43781; +pub const F2FS_IOC_MOVE_RANGE: u32 = 3223385353; +pub const LIRC_GET_LENGTH: u32 = 2147772687; +pub const I8K_SET_FAN: u32 = 3221776775; +pub const FDSETMAXERRS: u32 = 1075053132; +pub const VIDIOC_SUBDEV_QUERYCAP: u32 = 2151699968; +pub const SNAPSHOT_SET_SWAP_AREA: u32 = 1074541325; +pub const LIRC_GET_REC_TIMEOUT: u32 = 2147772708; +pub const EVIOCRMFF: u32 = 1074021761; +pub const GPIO_GET_LINEEVENT_IOCTL: u32 = 3224417284; +pub const PPRDATA: u32 = 2147577989; +pub const RIO_MPORT_GET_PROPERTIES: u32 = 2150657284; +pub const TUNSETVNETHDRSZ: u32 = 1074025688; +pub const GPIO_GET_LINEINFO_IOCTL: u32 = 3225990146; +pub const GSMIOC_GETCONF: u32 = 2152482560; +pub const LIRC_GET_SEND_MODE: u32 = 2147772673; +pub const PPPIOCSACTIVE: u32 = 1074820166; +pub const SIOCGSTAMPNS_NEW: u32 = 2148567303; +pub const IPMICTL_RECEIVE_MSG: u32 = 3224398092; +pub const LIRC_SET_SEND_DUTY_CYCLE: u32 = 1074030869; +pub const UI_END_FF_ERASE: u32 = 1074550219; +pub const SWITCHTEC_IOCTL_FLASH_PART_INFO: u32 = 3222296385; +pub const FW_CDEV_IOC_SEND_PHY_PACKET: u32 = 3222807317; +pub const NBD_SET_FLAGS: u32 = 43786; +pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 15212; +pub const REISERFS_IOC_UNPACK: u32 = 1074318593; +pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 1074012935; +pub const RIO_SET_EVENT_MASK: u32 = 1074031885; +pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 2148021012; +pub const VDUSE_VQ_INJECT_IRQ: u32 = 1074037015; +pub const I2OPASSTHRU: u32 = 2148559116; +pub const IOC_OPAL_SET_PW: u32 = 1109422304; +pub const FSI_SCOM_READ: u32 = 3223352065; +pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 2147790704; +pub const VIDIOC_QBUF: u32 = 3227014671; +pub const VIDIOC_S_TUNER: u32 = 1079268894; +pub const TUNGETVNETHDRSZ: u32 = 2147767511; +pub const CAPI_NCCI_GETUNIT: u32 = 2147762983; +pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 2147792455; +pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; +pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; +pub const TEE_IOC_VERSION: u32 = 2148312064; +pub const VIDIOC_LOG_STATUS: u32 = 22086; +pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 2150656277; +pub const VHOST_SET_LOG_FD: u32 = 1074048775; +pub const SCIF_SEND: u32 = 3222827782; +pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; +pub const NS_ADJBUFLEV: u32 = 24931; +pub const VIDIOC_DBG_S_REGISTER: u32 = 1077433935; +pub const NILFS_IOCTL_RESIZE: u32 = 1074294411; +pub const PHN_GETREG: u32 = 3221778437; +pub const I2OSWDL: u32 = 3224398085; +pub const VBG_IOCTL_VMMDEV_REQUEST_BIG: u32 = 22019; +pub const JSIOCGBUTTONS: u32 = 2147576338; +pub const VFIO_IOMMU_ENABLE: u32 = 15219; +pub const DM_DEV_RENAME: u32 = 3241737477; +pub const MEDIA_IOC_SETUP_LINK: u32 = 3224665091; +pub const VIDIOC_ENUMOUTPUT: u32 = 3225966128; +pub const STP_POLICY_ID_SET: u32 = 3222283520; +pub const VHOST_VDPA_SET_CONFIG_CALL: u32 = 1074048887; +pub const VIDIOC_SUBDEV_G_CROP: u32 = 3224917563; +pub const VIDIOC_S_CROP: u32 = 1075074620; +pub const WDIOC_GETTEMP: u32 = 2147768067; +pub const IOC_OPAL_ADD_USR_TO_LR: u32 = 1092120804; +pub const UI_SET_LEDBIT: u32 = 1074025833; +pub const NBD_SET_SOCK: u32 = 43776; +pub const BTRFS_IOC_SNAP_DESTROY_V2: u32 = 1342215231; +pub const HIDIOCGCOLLECTIONINFO: u32 = 3222292497; +pub const I2OSWUL: u32 = 3224398086; +pub const IOCTL_MEI_NOTIFY_GET: u32 = 2147764227; +pub const FDFMTTRK: u32 = 1074528840; +pub const MMTIMER_GETBITS: u32 = 27908; +pub const VIDIOC_ENUMSTD: u32 = 3225966105; +pub const VHOST_GET_VRING_BASE: u32 = 3221794578; +pub const VFIO_DEVICE_IOEVENTFD: u32 = 15220; +pub const ATMARP_SETENTRY: u32 = 25059; +pub const CCISS_REVALIDVOLS: u32 = 16906; +pub const MGSL_IOCLOOPTXDONE: u32 = 27913; +pub const RTC_VL_READ: u32 = 2147774483; +pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; +pub const RIO_DEV_DEL: u32 = 1075866904; +pub const VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES: u32 = 3223606797; +pub const VIDIOC_SUBDEV_DV_TIMINGS_CAP: u32 = 3230684772; +pub const SONYPI_IOCSFAN: u32 = 1073837579; +pub const SPIOCSTYPE: u32 = 1074295041; +pub const IPMICTL_REGISTER_FOR_CMD: u32 = 2147641614; +pub const I8K_GET_FAN: u32 = 3221776774; +pub const TUNGETVNETBE: u32 = 2147767519; +pub const AUTOFS_DEV_IOCTL_FAIL: u32 = 3222836087; +pub const UI_END_FF_UPLOAD: u32 = 1080579529; +pub const TOSH_SMM: u32 = 3222828176; +pub const SONYPI_IOCGBAT2REM: u32 = 2147644933; +pub const F2FS_IOC_GET_COMPRESS_BLOCKS: u32 = 2148070673; +pub const PPPIOCSNPMODE: u32 = 1074295883; +pub const USBDEVFS_CONTROL: u32 = 3222820096; +pub const HIDIOCGUSAGE: u32 = 3222816779; +pub const TUNSETTXFILTER: u32 = 1074025681; +pub const TUNGETVNETLE: u32 = 2147767517; +pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; +pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; +pub const MGSL_IOCGXSYNC: u32 = 27924; +pub const HIDIOCGFIELDINFO: u32 = 3224913930; +pub const VIDIOC_SUBDEV_G_STD: u32 = 2148029975; +pub const I2OVALIDATE: u32 = 2147772680; +pub const VIDIOC_TRY_ENCODER_CMD: u32 = 3223869006; +pub const NILFS_IOCTL_GET_CPINFO: u32 = 2149084802; +pub const VIDIOC_G_FREQUENCY: u32 = 3224131128; +pub const VFAT_IOCTL_READDIR_SHORT: u32 = 2184212994; +pub const ND_IOCTL_GET_CONFIG_DATA: u32 = 3222031877; +pub const F2FS_IOC_RESERVE_COMPRESS_BLOCKS: u32 = 2148070675; +pub const FDGETDRVSTAT: u32 = 2152727058; +pub const SYNC_IOC_MERGE: u32 = 3224387075; +pub const VIDIOC_S_DV_TIMINGS: u32 = 3229898327; +pub const PPPIOCBRIDGECHAN: u32 = 1074033717; +pub const LIRC_SET_SEND_MODE: u32 = 1074030865; +pub const RIO_ENABLE_PORTWRITE_RANGE: u32 = 1074818315; +pub const ATM_GETTYPE: u32 = 1074815364; +pub const PHN_GETREGS: u32 = 3223875591; +pub const FDSETEMSGTRESH: u32 = 586; +pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; +pub const MGSL_IOCWAITEVENT: u32 = 3221515528; +pub const CAPI_INSTALLED: u32 = 2147631906; +pub const EVIOCGMASK: u32 = 2148550034; +pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 2148045849; +pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; +pub const MEDIA_IOC_ENUM_ENTITIES: u32 = 3238034433; +pub const GSMIOC_GETFIRST: u32 = 2147763972; +pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 1074012952; +pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; +pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 62724; +pub const CAPI_GET_SERIAL: u32 = 3221504776; +pub const FDSETDRVPRM: u32 = 1082131088; +pub const IOC_OPAL_SAVE: u32 = 1092120796; +pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; +pub const TUNSETIFINDEX: u32 = 1074025690; +pub const CCISS_SETINTINFO: u32 = 1074283011; +pub const RTC_VL_CLR: u32 = 28692; +pub const VIDIOC_REQBUFS: u32 = 3222558216; +pub const USBDEVFS_REAPURBNDELAY32: u32 = 1074025741; +pub const TEE_IOC_SHM_REGISTER: u32 = 3222840329; +pub const USBDEVFS_SETCONFIGURATION: u32 = 2147767557; +pub const CCISS_GETNODENAME: u32 = 2148549124; +pub const VIDIOC_SUBDEV_S_FRAME_INTERVAL: u32 = 3224393238; +pub const VIDIOC_ENUM_FRAMESIZES: u32 = 3224131146; +pub const VFIO_DEVICE_PCI_HOT_RESET: u32 = 15217; +pub const FW_CDEV_IOC_SEND_BROADCAST_REQUEST: u32 = 1076372242; +pub const LPSETTIMEOUT_NEW: u32 = 1074791951; +pub const RIO_CM_MPORT_GET_LIST: u32 = 3221512971; +pub const FW_CDEV_IOC_QUEUE_ISO: u32 = 3222807305; +pub const FDRAWCMD: u32 = 600; +pub const SCIF_UNREG: u32 = 3222303497; +pub const PPPIOCGIDLE64: u32 = 2148561983; +pub const USBDEVFS_RELEASEINTERFACE: u32 = 2147767568; +pub const VIDIOC_CROPCAP: u32 = 3224131130; +pub const DFL_FPGA_PORT_GET_INFO: u32 = 46657; +pub const PHN_SET_REGS: u32 = 1074294787; +pub const ATMLEC_DATA: u32 = 25041; +pub const PPPOEIOCDFWD: u32 = 45313; +pub const VIDIOC_S_SELECTION: u32 = 3225441887; +pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 13065; +pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; +pub const VIDIOC_S_CTRL: u32 = 3221771804; +pub const ZATM_SETPOOL: u32 = 1074815331; +pub const MTIOCPOS: u32 = 2148035843; +pub const PMU_IOC_SLEEP: u32 = 16896; +pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; +pub const VBG_IOCTL_CHANGE_FILTER_MASK: u32 = 3223344652; +pub const NILFS_IOCTL_GET_SUSTAT: u32 = 2150657669; +pub const VIDIOC_QUERYCAP: u32 = 2154321408; +pub const HPET_INFO: u32 = 2149083139; +pub const VIDIOC_AM437X_CCDC_CFG: u32 = 1074288321; +pub const DM_LIST_DEVICES: u32 = 3241737474; +pub const TUNSETOWNER: u32 = 1074025676; +pub const VBG_IOCTL_CHANGE_GUEST_CAPABILITIES: u32 = 3223344654; +pub const RNDADDENTROPY: u32 = 1074287107; +pub const USBDEVFS_RESET: u32 = 21780; +pub const BTRFS_IOC_SUBVOL_CREATE: u32 = 1342215182; +pub const USBDEVFS_FORBID_SUSPEND: u32 = 21793; +pub const FDGETDRVTYP: u32 = 2148532751; +pub const PPWCONTROL: u32 = 1073836164; +pub const VIDIOC_ENUM_FRAMEINTERVALS: u32 = 3224655435; +pub const KCOV_DISABLE: u32 = 25445; +pub const IOC_OPAL_ACTIVATE_LSP: u32 = 1092120799; +pub const VHOST_VDPA_GET_IOVA_RANGE: u32 = 2148577144; +pub const PPPIOCSPASS: u32 = 1074820167; +pub const RIO_CM_CHAN_CONNECT: u32 = 1074291464; +pub const I2OSWDEL: u32 = 3224398087; +pub const FS_IOC_SET_ENCRYPTION_POLICY: u32 = 2148296211; +pub const IOC_OPAL_MBR_DONE: u32 = 1091596521; +pub const PPPIOCSMAXCID: u32 = 1074033745; +pub const PPSETPHASE: u32 = 1074032788; +pub const VHOST_VDPA_SET_VRING_ENABLE: u32 = 1074311029; +pub const USBDEVFS_GET_SPEED: u32 = 21791; +pub const SONET_GETFRAMING: u32 = 2147770646; +pub const VIDIOC_QUERYBUF: u32 = 3227014665; +pub const VIDIOC_S_EDID: u32 = 3223868969; +pub const BTRFS_IOC_QGROUP_ASSIGN: u32 = 1075352617; +pub const PPS_GETCAP: u32 = 2148036771; +pub const SNAPSHOT_PLATFORM_SUPPORT: u32 = 13071; +pub const LIRC_SET_REC_TIMEOUT_REPORTS: u32 = 1074030873; +pub const SCIF_GET_NODEIDS: u32 = 3222827790; +pub const NBD_DISCONNECT: u32 = 43784; +pub const VIDIOC_SUBDEV_G_FRAME_INTERVAL: u32 = 3224393237; +pub const VFIO_IOMMU_DISABLE: u32 = 15220; +pub const SNAPSHOT_CREATE_IMAGE: u32 = 1074017041; +pub const SNAPSHOT_POWER_OFF: u32 = 13072; +pub const APM_IOC_STANDBY: u32 = 16641; +pub const PPPIOCGUNIT: u32 = 2147775574; +pub const AUTOFS_IOC_EXPIRE_MULTI: u32 = 1074041702; +pub const SCIF_BIND: u32 = 3221779201; +pub const IOC_WATCH_QUEUE_SET_SIZE: u32 = 22368; +pub const NILFS_IOCTL_CHANGE_CPMODE: u32 = 1074818688; +pub const IOC_OPAL_LOCK_UNLOCK: u32 = 1092120797; +pub const F2FS_IOC_SET_PIN_FILE: u32 = 1074066701; +pub const PPPIOCGRASYNCMAP: u32 = 2147775573; +pub const MMTIMER_MMAPAVAIL: u32 = 27910; +pub const I2OPASSTHRU32: u32 = 2148034828; +pub const DFL_FPGA_FME_PORT_RELEASE: u32 = 1074050689; +pub const VIDIOC_SUBDEV_QUERY_DV_TIMINGS: u32 = 2156156515; +pub const UI_SET_SNDBIT: u32 = 1074025834; +pub const VIDIOC_G_AUDOUT: u32 = 2150913585; +pub const RTC_PLL_SET: u32 = 1075867666; +pub const VIDIOC_ENUMAUDIO: u32 = 3224655425; +pub const AUTOFS_DEV_IOCTL_TIMEOUT: u32 = 3222836090; +pub const VBG_IOCTL_DRIVER_VERSION_INFO: u32 = 3224131072; +pub const VHOST_SCSI_GET_EVENTS_MISSED: u32 = 1074048836; +pub const VHOST_SET_VRING_ADDR: u32 = 1076408081; +pub const VDUSE_CREATE_DEV: u32 = 1095794946; +pub const FDFLUSH: u32 = 587; +pub const VBG_IOCTL_WAIT_FOR_EVENTS: u32 = 3223344650; +pub const DFL_FPGA_FME_ERR_SET_IRQ: u32 = 1074312836; +pub const F2FS_IOC_GET_PIN_FILE: u32 = 2147808526; +pub const SCIF_CONNECT: u32 = 3221779203; +pub const BLKREPORTZONE: u32 = 3222278786; +pub const AUTOFS_IOC_ASKUMOUNT: u32 = 2147783536; +pub const ATM_ADDPARTY: u32 = 1074815476; +pub const FDSETPRM: u32 = 1075839554; +pub const ATM_GETSTATZ: u32 = 1074815313; +pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; +pub const BTRFS_IOC_GET_SUBVOL_INFO: u32 = 2180551740; +pub const VIDIOC_UNSUBSCRIBE_EVENT: u32 = 1075861083; +pub const SEV_ISSUE_CMD: u32 = 3222295296; +pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; +pub const PCITEST_COPY: u32 = 1074286598; +pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 2147772690; +pub const CHIOGPICKER: u32 = 2147771140; +pub const CAPI_NCCI_OPENCOUNT: u32 = 2147762982; +pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; +pub const PERF_EVENT_IOC_SET_FILTER: u32 = 1074275334; +pub const IOC_OPAL_REVERT_TPR: u32 = 1091072226; +pub const CHIOGVPARAMS: u32 = 2154849043; +pub const PTP_PEROUT_REQUEST: u32 = 1077427459; +pub const FSI_SCOM_CHECK: u32 = 2147775232; +pub const RTC_IRQP_READ: u32 = 2148036619; +pub const RIO_MPORT_MAINT_READ_LOCAL: u32 = 2149084421; +pub const HIDIOCGRDESCSIZE: u32 = 2147764225; +pub const UI_GET_VERSION: u32 = 2147767597; +pub const NILFS_IOCTL_GET_CPSTAT: u32 = 2149084803; +pub const CCISS_GETBUSTYPES: u32 = 2147762695; +pub const VFIO_IOMMU_SPAPR_TCE_CREATE: u32 = 15223; +pub const VIDIOC_EXPBUF: u32 = 3225441808; +pub const UI_SET_RELBIT: u32 = 1074025830; +pub const VFIO_SET_IOMMU: u32 = 15206; +pub const VIDIOC_S_MODULATOR: u32 = 1078220343; +pub const TUNGETFILTER: u32 = 2148553947; +pub const CCISS_SETNODENAME: u32 = 1074807301; +pub const FBIO_GETCONTROL2: u32 = 2148025993; +pub const TUNSETDEBUG: u32 = 1074025673; +pub const DM_DEV_REMOVE: u32 = 3241737476; +pub const HIDIOCSUSAGES: u32 = 1344030740; +pub const FS_IOC_ADD_ENCRYPTION_KEY: u32 = 3226494487; +pub const FBIOGET_VBLANK: u32 = 2149598738; +pub const ATM_GETSTAT: u32 = 1074815312; +pub const VIDIOC_G_JPEGCOMP: u32 = 2156680765; +pub const TUNATTACHFILTER: u32 = 1074812117; +pub const UI_SET_ABSBIT: u32 = 1074025831; +pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 2147792453; +pub const USBDEVFS_REAPURB32: u32 = 1074025740; +pub const BTRFS_IOC_TRANS_END: u32 = 37895; +pub const CAPI_REGISTER: u32 = 1074545409; +pub const F2FS_IOC_COMPRESS_FILE: u32 = 62744; +pub const USBDEVFS_DISCARDURB: u32 = 21771; +pub const HE_GET_REG: u32 = 1074815328; +pub const ATM_SETLOOP: u32 = 1074815315; +pub const ATMSIGD_CTRL: u32 = 25072; +pub const CIOC_KERNEL_VERSION: u32 = 3221775114; +pub const BTRFS_IOC_CLONE_RANGE: u32 = 1075876877; +pub const SNAPSHOT_UNFREEZE: u32 = 13058; +pub const F2FS_IOC_START_VOLATILE_WRITE: u32 = 62723; +pub const PMU_IOC_HAS_ADB: u32 = 2148024836; +pub const I2OGETIOPS: u32 = 2149607680; +pub const VIDIOC_S_FBUF: u32 = 1076909579; +pub const PPRCONTROL: u32 = 2147577987; +pub const CHIOSPICKER: u32 = 1074029317; +pub const VFIO_IOMMU_SPAPR_REGISTER_MEMORY: u32 = 15221; +pub const TUNGETSNDBUF: u32 = 2147767507; +pub const GSMIOC_SETCONF: u32 = 1078740737; +pub const IOC_PR_PREEMPT: u32 = 1075343563; +pub const KCOV_INIT_TRACE: u32 = 2148033281; +pub const SONYPI_IOCGBAT1CAP: u32 = 2147644930; +pub const SWITCHTEC_IOCTL_FLASH_INFO: u32 = 2148554560; +pub const MTIOCTOP: u32 = 1074294017; +pub const VHOST_VDPA_SET_STATUS: u32 = 1073852274; +pub const VHOST_SCSI_SET_EVENTS_MISSED: u32 = 1074048835; +pub const VFIO_IOMMU_DIRTY_PAGES: u32 = 15221; +pub const BTRFS_IOC_SCRUB_PROGRESS: u32 = 3288372253; +pub const PPPIOCGMRU: u32 = 2147775571; +pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; +pub const PPPIOCGFLAGS: u32 = 2147775578; +pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; +pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; +pub const ATM_DELLECSADDR: u32 = 1074815375; +pub const FW_CDEV_IOC_GET_SPEED: u32 = 8977; +pub const PPPIOCGIDLE32: u32 = 2148037695; +pub const VFIO_DEVICE_RESET: u32 = 15215; +pub const GPIO_GET_LINEINFO_UNWATCH_IOCTL: u32 = 3221533708; +pub const WDIOC_GETSTATUS: u32 = 2147768065; +pub const BTRFS_IOC_SET_FEATURES: u32 = 1076925497; +pub const IOCTL_MEI_CONNECT_CLIENT: u32 = 3222292481; +pub const VIDIOC_OMAP3ISP_AEWB_CFG: u32 = 3223344835; +pub const PCITEST_READ: u32 = 1074286597; +pub const VFIO_GROUP_GET_STATUS: u32 = 15207; +pub const MATROXFB_GET_ALL_OUTPUTS: u32 = 2148036347; +pub const USBDEVFS_CLEAR_HALT: u32 = 2147767573; +pub const VIDIOC_DECODER_CMD: u32 = 3225966176; +pub const VIDIOC_G_AUDIO: u32 = 2150913569; +pub const CCISS_RESCANDISK: u32 = 16912; +pub const RIO_DISABLE_PORTWRITE_RANGE: u32 = 1074818316; +pub const IOC_OPAL_SECURE_ERASE_LR: u32 = 1091596519; +pub const USBDEVFS_REAPURB: u32 = 1074287884; +pub const DFL_FPGA_CHECK_EXTENSION: u32 = 46593; +pub const AUTOFS_IOC_PROTOVER: u32 = 2147783523; +pub const FSL_HV_IOCTL_MEMCPY: u32 = 3223891717; +pub const BTRFS_IOC_GET_FEATURES: u32 = 2149094457; +pub const PCITEST_MSIX: u32 = 1074024455; +pub const BTRFS_IOC_DEFRAG_RANGE: u32 = 1076925456; +pub const UI_BEGIN_FF_ERASE: u32 = 3222033866; +pub const DM_GET_TARGET_VERSION: u32 = 3241737489; +pub const PPPIOCGIDLE: u32 = 2148561983; +pub const NVRAM_SETCKS: u32 = 28737; +pub const WDIOC_GETSUPPORT: u32 = 2150127360; +pub const GSMIOC_ENABLE_NET: u32 = 1077167874; +pub const GPIO_GET_CHIPINFO_IOCTL: u32 = 2151986177; +pub const NE_ADD_VCPU: u32 = 3221532193; +pub const EVIOCSKEYCODE_V2: u32 = 1076380932; +pub const PTP_SYS_OFFSET_EXTENDED2: u32 = 3300932882; +pub const SCIF_FENCE_WAIT: u32 = 3221517072; +pub const RIO_TRANSFER: u32 = 3222826261; +pub const FSL_HV_IOCTL_DOORBELL: u32 = 3221794566; +pub const RIO_MPORT_MAINT_WRITE_LOCAL: u32 = 1075342598; +pub const I2OEVTREG: u32 = 1074555146; +pub const I2OPARMGET: u32 = 3223873796; +pub const EVIOCGID: u32 = 2148025602; +pub const BTRFS_IOC_QGROUP_CREATE: u32 = 1074828330; +pub const AUTOFS_DEV_IOCTL_SETPIPEFD: u32 = 3222836088; +pub const VIDIOC_S_PARM: u32 = 3234616854; +pub const TUNSETSTEERINGEBPF: u32 = 2147767520; +pub const ATM_GETNAMES: u32 = 1074815363; +pub const VIDIOC_QUERYMENU: u32 = 3224131109; +pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 46660; +pub const I2OLCTGET: u32 = 3222825218; +pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 1074816532; +pub const NS_SETBUFLEV: u32 = 1074815330; +pub const BLKCLOSEZONE: u32 = 1074795143; +pub const SONET_GETFRSENSE: u32 = 2147901719; +pub const UI_SET_EVBIT: u32 = 1074025828; +pub const DM_LIST_VERSIONS: u32 = 3241737485; +pub const HIDIOCGSTRING: u32 = 2164541444; +pub const PPPIOCATTCHAN: u32 = 1074033720; +pub const VDUSE_DEV_SET_CONFIG: u32 = 1074299154; +pub const TUNGETFEATURES: u32 = 2147767503; +pub const VFIO_GROUP_UNSET_CONTAINER: u32 = 15209; +pub const IPMICTL_SET_MY_ADDRESS_CMD: u32 = 2147772689; +pub const CCISS_REGNEWDISK: u32 = 1074020877; +pub const VIDIOC_QUERY_DV_TIMINGS: u32 = 2156156515; +pub const PHN_SETREGS: u32 = 1076391944; +pub const FAT_IOCTL_GET_ATTRIBUTES: u32 = 2147774992; +pub const FSL_MC_SEND_MC_COMMAND: u32 = 3225440992; +pub const TUNGETIFF: u32 = 2147767506; +pub const PTP_CLOCK_GETCAPS2: u32 = 2152742154; +pub const BTRFS_IOC_RESIZE: u32 = 1342215171; +pub const VHOST_SET_VRING_ENDIAN: u32 = 1074310931; +pub const PPS_KC_BIND: u32 = 1074294949; +pub const F2FS_IOC_WRITE_CHECKPOINT: u32 = 62727; +pub const UI_SET_FFBIT: u32 = 1074025835; +pub const IPMICTL_GET_MY_LUN_CMD: u32 = 2147772692; +pub const CEC_ADAP_G_PHYS_ADDR: u32 = 2147639553; +pub const CEC_G_MODE: u32 = 2147770632; +pub const USBDEVFS_RESETEP: u32 = 2147767555; +pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 31872; +pub const USBDEVFS_ALLOC_STREAMS: u32 = 2148029724; +pub const MGSL_IOCSXCTRL: u32 = 27925; +pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; +pub const PPPIOCUNBRIDGECHAN: u32 = 29748; +pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 62722; +pub const ISST_IF_GET_PLATFORM_INFO: u32 = 2148072960; +pub const SCIF_FENCE_MARK: u32 = 3222303503; +pub const USBDEVFS_RELEASE_PORT: u32 = 2147767577; +pub const VFIO_CHECK_EXTENSION: u32 = 15205; +pub const BTRFS_IOC_QGROUP_LIMIT: u32 = 2150667307; +pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 2147774995; +pub const UI_SET_PHYS: u32 = 1074287980; +pub const FDWERRORGET: u32 = 2150105623; +pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; +pub const MGSL_IOCGSTATS: u32 = 27911; +pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 1074050817; +pub const SIOCGSTAMP_NEW: u32 = 2148567302; +pub const RTC_WKALM_RD: u32 = 2150133776; +pub const PHN_GET_REG: u32 = 3221778432; +pub const DELL_WMI_SMBIOS_CMD: u32 = 3224655616; +pub const PHN_NOT_OH: u32 = 28676; +pub const PPGETMODES: u32 = 2147774615; +pub const CHIOGPARAMS: u32 = 2148819718; +pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 15219; +pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310947; +pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; +pub const BTRFS_IOC_RM_DEV_V2: u32 = 1342215226; +pub const MGSL_IOCWAITGPIO: u32 = 3222301970; +pub const PMU_IOC_CAN_SLEEP: u32 = 2148024837; +pub const KCOV_ENABLE: u32 = 25444; +pub const BTRFS_IOC_CLONE: u32 = 1074041865; +pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; +pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 1074012942; +pub const AGPIOC_ALLOCATE: u32 = 3221766406; +pub const NE_SET_USER_MEMORY_REGION: u32 = 1075359267; +pub const MGSL_IOCTXABORT: u32 = 27910; +pub const MGSL_IOCSGPIO: u32 = 1074818320; +pub const LIRC_SET_REC_CARRIER: u32 = 1074030868; +pub const F2FS_IOC_FLUSH_DEVICE: u32 = 1074328842; +pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 13060; +pub const RTC_UIE_OFF: u32 = 28676; +pub const BT_BMC_IOCTL_SMS_ATN: u32 = 45312; +pub const NVME_IOCTL_ID: u32 = 20032; +pub const NE_START_ENCLAVE: u32 = 3222318628; +pub const VIDIOC_STREAMON: u32 = 1074026002; +pub const FDPOLLDRVSTAT: u32 = 2152727059; +pub const AUTOFS_DEV_IOCTL_READY: u32 = 3222836086; +pub const VIDIOC_ENUMAUDOUT: u32 = 3224655426; +pub const VIDIOC_SUBDEV_S_STD: u32 = 1074288152; +pub const WDIOC_GETTIMELEFT: u32 = 2147768074; +pub const ATM_GETLINKRATE: u32 = 1074815361; +pub const RTC_WKALM_SET: u32 = 1076391951; +pub const VHOST_GET_BACKEND_FEATURES: u32 = 2148052774; +pub const ATMARP_ENCAP: u32 = 25061; +pub const CAPI_GET_FLAGS: u32 = 2147762979; +pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772696; +pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 1074050690; +pub const NS_GET_OWNER_UID: u32 = 46852; +pub const VIDIOC_OVERLAY: u32 = 1074025998; +pub const BTRFS_IOC_WAIT_SYNC: u32 = 1074304022; +pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; +pub const VHOST_GET_VRING_ENDIAN: u32 = 1074310932; +pub const ATM_GETADDR: u32 = 1074815366; +pub const PHN_GET_REGS: u32 = 3221778434; +pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; +pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; +pub const SNAPSHOT_S2RAM: u32 = 13067; +pub const JSIOCSAXMAP: u32 = 1077963313; +pub const F2FS_IOC_SET_COMPRESS_OPTION: u32 = 1073935638; +pub const VBG_IOCTL_HGCM_DISCONNECT: u32 = 3223082501; +pub const SCIF_FENCE_SIGNAL: u32 = 3223876369; +pub const VFIO_DEVICE_GET_PCI_HOT_RESET_INFO: u32 = 15216; +pub const VIDIOC_SUBDEV_ENUM_MBUS_CODE: u32 = 3224393218; +pub const MMTIMER_GETOFFSET: u32 = 27904; +pub const RIO_CM_CHAN_LISTEN: u32 = 1073898246; +pub const ATM_SETSC: u32 = 1074029041; +pub const F2FS_IOC_SHUTDOWN: u32 = 2147768445; +pub const NVME_IOCTL_RESCAN: u32 = 20038; +pub const BLKOPENZONE: u32 = 1074795142; +pub const DM_VERSION: u32 = 3241737472; +pub const CEC_TRANSMIT: u32 = 3224920325; +pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; +pub const SIOCMKCLIP: u32 = 25056; +pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 45313; +pub const HIDIOCGVERSION: u32 = 2147764225; +pub const VIDIOC_S_INPUT: u32 = 3221509671; +pub const VIDIOC_G_CROP: u32 = 3222558267; +pub const LIRC_SET_WIDEBAND_RECEIVER: u32 = 1074030883; +pub const EVIOCGEFFECTS: u32 = 2147763588; +pub const UVCIOC_CTRL_QUERY: u32 = 3222304033; +pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 1094217963; +pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; +pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; +pub const USBDEVFS_GETDRIVER: u32 = 1090802952; +pub const IDT77105_GETSTAT: u32 = 1074815282; +pub const HIDIOCINITREPORT: u32 = 18437; +pub const VFIO_DEVICE_GET_INFO: u32 = 15211; +pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; +pub const RNDGETENTCNT: u32 = 2147766784; +pub const PPPIOCNEWUNIT: u32 = 3221517374; +pub const BTRFS_IOC_INO_LOOKUP: u32 = 3489698834; +pub const FDRESET: u32 = 596; +pub const IOC_PR_REGISTER: u32 = 1075343560; +pub const HIDIOCSREPORT: u32 = 1074546696; +pub const TEE_IOC_OPEN_SESSION: u32 = 2148574210; +pub const TEE_IOC_SUPPL_RECV: u32 = 2148574214; +pub const BTRFS_IOC_BALANCE_CTL: u32 = 1074041889; +pub const GPIO_GET_LINEINFO_WATCH_IOCTL: u32 = 3225990155; +pub const HIDIOCGRAWINFO: u32 = 2148026371; +pub const PPPIOCSCOMPRESS: u32 = 1074820173; +pub const USBDEVFS_CONNECTINFO: u32 = 1074287889; +pub const BLKRESETZONE: u32 = 1074795139; +pub const CHIOINITELEM: u32 = 25361; +pub const NILFS_IOCTL_SET_ALLOC_RANGE: u32 = 1074818700; +pub const AUTOFS_DEV_IOCTL_CATATONIC: u32 = 3222836089; +pub const RIO_MPORT_MAINT_HDID_SET: u32 = 1073900801; +pub const PPGETPHASE: u32 = 2147774617; +pub const USBDEVFS_DISCONNECT_CLAIM: u32 = 2164806939; +pub const FDMSGON: u32 = 581; +pub const VIDIOC_G_SLICED_VBI_CAP: u32 = 3228849733; +pub const BTRFS_IOC_BALANCE_V2: u32 = 3288372256; +pub const MEDIA_REQUEST_IOC_REINIT: u32 = 31873; +pub const IOC_OPAL_ERASE_LR: u32 = 1091596518; +pub const FDFMTBEG: u32 = 583; +pub const RNDRESEEDCRNG: u32 = 20999; +pub const ISST_IF_GET_PHY_ID: u32 = 3221814785; +pub const TUNSETNOCSUM: u32 = 1074025672; +pub const SONET_GETSTAT: u32 = 2149867792; +pub const TFD_IOC_SET_TICKS: u32 = 1074287616; +pub const PPDATADIR: u32 = 1074032784; +pub const IOC_OPAL_ENABLE_DISABLE_MBR: u32 = 1091596517; +pub const GPIO_V2_GET_LINE_IOCTL: u32 = 3260068871; +pub const RIO_CM_CHAN_SEND: u32 = 1074815753; +pub const PPWCTLONIRQ: u32 = 1073836178; +pub const SONYPI_IOCGBRT: u32 = 2147579392; +pub const IOC_PR_RELEASE: u32 = 1074819274; +pub const PPCLRIRQ: u32 = 2147774611; +pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 2147772698; +pub const MGSL_IOCSXSYNC: u32 = 27923; +pub const HPET_IE_OFF: u32 = 26626; +pub const IOC_OPAL_ACTIVATE_USR: u32 = 1091596513; +pub const SONET_SETFRAMING: u32 = 1074028821; +pub const PERF_EVENT_IOC_PAUSE_OUTPUT: u32 = 1074013193; +pub const BTRFS_IOC_LOGICAL_INO_V2: u32 = 3224933435; +pub const VBG_IOCTL_HGCM_CONNECT: u32 = 3231471108; +pub const BLKFINISHZONE: u32 = 1074795144; +pub const EVIOCREVOKE: u32 = 1074021777; +pub const VFIO_DEVICE_FEATURE: u32 = 15221; +pub const CCISS_GETPCIINFO: u32 = 2148024833; +pub const ISST_IF_MBOX_COMMAND: u32 = 3221814787; +pub const SCIF_ACCEPTREQ: u32 = 3222303492; +pub const PERF_EVENT_IOC_QUERY_BPF: u32 = 3221758986; +pub const VIDIOC_STREAMOFF: u32 = 1074026003; +pub const VDUSE_DESTROY_DEV: u32 = 1090552067; +pub const FDGETFDCSTAT: u32 = 2150105621; +pub const VIDIOC_S_PRIORITY: u32 = 1074026052; +pub const SNAPSHOT_FREEZE: u32 = 13057; +pub const VIDIOC_ENUMINPUT: u32 = 3226490394; +pub const ZATM_GETPOOLZ: u32 = 1074815330; +pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 1074294026; +pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; +pub const VIDIOC_G_STD: u32 = 2148029975; +pub const USBDEVFS_ALLOW_SUSPEND: u32 = 21794; +pub const SONET_GETSTATZ: u32 = 2149867793; +pub const SCIF_ACCEPTREG: u32 = 3221779205; +pub const VIDIOC_ENCODER_CMD: u32 = 3223869005; +pub const PPPIOCSRASYNCMAP: u32 = 1074033748; +pub const IOCTL_MEI_NOTIFY_SET: u32 = 1074022402; +pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 2151715885; +pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 1074066694; +pub const ATMLEC_CTRL: u32 = 25040; +pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 2148036345; +pub const DM_DEV_CREATE: u32 = 3241737475; +pub const VHOST_VDPA_GET_VRING_NUM: u32 = 2147659638; +pub const VIDIOC_G_CTRL: u32 = 3221771803; +pub const NBD_CLEAR_SOCK: u32 = 43780; +pub const VFIO_DEVICE_QUERY_GFX_PLANE: u32 = 15218; +pub const WDIOC_KEEPALIVE: u32 = 2147768069; +pub const NVME_IOCTL_SUBSYS_RESET: u32 = 20037; +pub const PTP_EXTTS_REQUEST2: u32 = 1074806027; +pub const PCITEST_BAR: u32 = 20481; +pub const MGSL_IOCGGPIO: u32 = 2148560145; +pub const EVIOCSREP: u32 = 1074283779; +pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 15213; +pub const HPET_DPI: u32 = 26629; +pub const VDUSE_VQ_SETUP_KICKFD: u32 = 1074299158; +pub const ND_IOCTL_CALL: u32 = 3225439754; +pub const HIDIOCGDEVINFO: u32 = 2149337091; +pub const DM_TABLE_DEPS: u32 = 3241737483; +pub const BTRFS_IOC_DEV_INFO: u32 = 3489698846; +pub const VDUSE_IOTLB_GET_FD: u32 = 3223355664; +pub const FW_CDEV_IOC_GET_INFO: u32 = 3223855872; +pub const VIDIOC_G_PRIORITY: u32 = 2147767875; +pub const ATM_NEWBACKENDIF: u32 = 1073897971; +pub const VIDIOC_S_EXT_CTRLS: u32 = 3223344712; +pub const VIDIOC_SUBDEV_ENUM_DV_TIMINGS: u32 = 3230946914; +pub const VIDIOC_OMAP3ISP_CCDC_CFG: u32 = 3224917697; +pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 1076909650; +pub const DM_TABLE_LOAD: u32 = 3241737481; +pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 62721; +pub const VIDIOC_G_OUTPUT: u32 = 2147767854; +pub const ATM_DROPPARTY: u32 = 1074029045; +pub const CHIOGELEM: u32 = 1080845072; +pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 2152240185; +pub const EVIOCSKEYCODE: u32 = 1074283780; +pub const NE_GET_IMAGE_LOAD_INFO: u32 = 3222318626; +pub const TUNSETLINK: u32 = 1074025677; +pub const FW_CDEV_IOC_ADD_DESCRIPTOR: u32 = 3222807302; +pub const BTRFS_IOC_SCRUB_CANCEL: u32 = 37916; +pub const PPS_SETPARAMS: u32 = 1074294946; +pub const IOC_OPAL_LR_SETUP: u32 = 1093169379; +pub const FW_CDEV_IOC_DEALLOCATE: u32 = 1074012931; +pub const WDIOC_SETTIMEOUT: u32 = 3221509894; +pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 22369; +pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; +pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 15222; +pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 1074836224; +pub const VIDIOC_G_EDID: u32 = 3223868968; +pub const F2FS_IOC_GARBAGE_COLLECT_RANGE: u32 = 1075377419; +pub const RIO_MAP_INBOUND: u32 = 3223874833; +pub const IOC_OPAL_TAKE_OWNERSHIP: u32 = 1091072222; +pub const USBDEVFS_CLAIM_PORT: u32 = 2147767576; +pub const VIDIOC_S_AUDIO: u32 = 1077171746; +pub const FS_IOC_GET_ENCRYPTION_NONCE: u32 = 2148558363; +pub const FW_CDEV_IOC_SEND_STREAM_PACKET: u32 = 1076372243; +pub const BTRFS_IOC_SNAP_DESTROY: u32 = 1342215183; +pub const SNAPSHOT_FREE: u32 = 13061; +pub const I8K_GET_SPEED: u32 = 3221776773; +pub const HIDIOCGREPORT: u32 = 1074546695; +pub const HPET_EPI: u32 = 26628; +pub const JSIOCSCORR: u32 = 1076128289; +pub const IOC_PR_PREEMPT_ABORT: u32 = 1075343564; +pub const RIO_MAP_OUTBOUND: u32 = 3223874831; +pub const ATM_SETESI: u32 = 1074815372; +pub const FW_CDEV_IOC_START_ISO: u32 = 1074799370; +pub const ATM_DELADDR: u32 = 1074815369; +pub const PPFCONTROL: u32 = 1073901710; +pub const SONYPI_IOCGFAN: u32 = 2147579402; +pub const RTC_IRQP_SET: u32 = 1074294796; +pub const PCITEST_WRITE: u32 = 1074286596; +pub const PPCLAIM: u32 = 28811; +pub const VIDIOC_S_JPEGCOMP: u32 = 1082938942; +pub const IPMICTL_UNREGISTER_FOR_CMD: u32 = 2147641615; +pub const VHOST_SET_FEATURES: u32 = 1074310912; +pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; +pub const VIDIOC_DQBUF: u32 = 3227014673; +pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 2214630434; +pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 1074304026; +pub const ATMLEC_MCAST: u32 = 25042; +pub const MMTIMER_GETFREQ: u32 = 2148035842; +pub const VIDIOC_G_SELECTION: u32 = 3225441886; +pub const RTC_ALM_SET: u32 = 1076129799; +pub const PPPOEIOCSFWD: u32 = 1074311424; +pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 2147772702; +pub const FS_IOC_ENABLE_VERITY: u32 = 1082156677; +pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; +pub const FDFMTEND: u32 = 585; +pub const DMA_BUF_SET_NAME: u32 = 1074291201; +pub const UI_BEGIN_FF_UPLOAD: u32 = 3228063176; +pub const RTC_UIE_ON: u32 = 28675; +pub const PPRELEASE: u32 = 28812; +pub const VFIO_IOMMU_UNMAP_DMA: u32 = 15218; +pub const VIDIOC_OMAP3ISP_PRV_CFG: u32 = 3228587714; +pub const GPIO_GET_LINEHANDLE_IOCTL: u32 = 3245126659; +pub const VFAT_IOCTL_READDIR_BOTH: u32 = 2184212993; +pub const NVME_IOCTL_ADMIN_CMD: u32 = 3225964097; +pub const VHOST_SET_VRING_KICK: u32 = 1074310944; +pub const BTRFS_IOC_SUBVOL_CREATE_V2: u32 = 1342215192; +pub const BTRFS_IOC_SNAP_CREATE: u32 = 1342215169; +pub const SONYPI_IOCGBAT2CAP: u32 = 2147644932; +pub const PPNEGOT: u32 = 1074032785; +pub const NBD_PRINT_DEBUG: u32 = 43782; +pub const BTRFS_IOC_INO_LOOKUP_USER: u32 = 3489698878; +pub const BTRFS_IOC_GET_SUBVOL_ROOTREF: u32 = 3489698877; +pub const FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS: u32 = 3225445913; +pub const BTRFS_IOC_FS_INFO: u32 = 2214630431; +pub const VIDIOC_ENUM_FMT: u32 = 3225441794; +pub const VIDIOC_G_INPUT: u32 = 2147767846; +pub const VTPM_PROXY_IOC_NEW_DEV: u32 = 3222577408; +pub const DFL_FPGA_FME_ERR_GET_IRQ_NUM: u32 = 2147792515; +pub const ND_IOCTL_DIMM_FLAGS: u32 = 3221769731; +pub const BTRFS_IOC_QUOTA_RESCAN: u32 = 1077974060; +pub const MMTIMER_GETCOUNTER: u32 = 2148035849; +pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; +pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 37934; +pub const RIO_CM_CHAN_BIND: u32 = 1074291461; +pub const HIDIOCGRDESC: u32 = 2416199682; +pub const MGSL_IOCGIF: u32 = 27915; +pub const VIDIOC_S_OUTPUT: u32 = 3221509679; +pub const HIDIOCGREPORTINFO: u32 = 3222030345; +pub const WDIOC_GETBOOTSTATUS: u32 = 2147768066; +pub const VDUSE_VQ_GET_INFO: u32 = 3224404245; +pub const ACRN_IOCTL_ASSIGN_PCIDEV: u32 = 1076142677; +pub const BLKGETDISKSEQ: u32 = 2148012672; +pub const ACRN_IOCTL_PM_GET_CPU_STATE: u32 = 3221791328; +pub const ACRN_IOCTL_DESTROY_VM: u32 = 41489; +pub const ACRN_IOCTL_SET_PTDEV_INTR: u32 = 1075094099; +pub const ACRN_IOCTL_CREATE_IOREQ_CLIENT: u32 = 41522; +pub const ACRN_IOCTL_IRQFD: u32 = 1075356273; +pub const ACRN_IOCTL_CREATE_VM: u32 = 3224412688; +pub const ACRN_IOCTL_INJECT_MSI: u32 = 1074831907; +pub const ACRN_IOCTL_ATTACH_IOREQ_CLIENT: u32 = 41523; +pub const ACRN_IOCTL_RESET_PTDEV_INTR: u32 = 1075094100; +pub const ACRN_IOCTL_NOTIFY_REQUEST_FINISH: u32 = 1074307633; +pub const ACRN_IOCTL_SET_IRQLINE: u32 = 1074307621; +pub const ACRN_IOCTL_START_VM: u32 = 41490; +pub const ACRN_IOCTL_SET_VCPU_REGS: u32 = 1093181974; +pub const ACRN_IOCTL_SET_MEMSEG: u32 = 1075880513; +pub const ACRN_IOCTL_PAUSE_VM: u32 = 41491; +pub const ACRN_IOCTL_CLEAR_VM_IOREQ: u32 = 41525; +pub const ACRN_IOCTL_UNSET_MEMSEG: u32 = 1075880514; +pub const ACRN_IOCTL_IOEVENTFD: u32 = 1075880560; +pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 1076142678; +pub const ACRN_IOCTL_RESET_VM: u32 = 41493; +pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 41524; +pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 1074307620; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/landlock.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/landlock.rs new file mode 100644 index 0000000000000000000000000000000000000000..99228e47c1c7313ee0aea1d490385af4a133176f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/landlock.rs @@ -0,0 +1,104 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_longlong; +pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct landlock_ruleset_attr { +pub handled_access_fs: __u64, +pub handled_access_net: __u64, +pub scoped: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct landlock_path_beneath_attr { +pub allowed_access: __u64, +pub parent_fd: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct landlock_net_port_attr { +pub allowed_access: __u64, +pub port: __u64, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; +pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; +pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; +pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; +pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; +pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; +pub const LANDLOCK_ACCESS_FS_READ_DIR: u32 = 8; +pub const LANDLOCK_ACCESS_FS_REMOVE_DIR: u32 = 16; +pub const LANDLOCK_ACCESS_FS_REMOVE_FILE: u32 = 32; +pub const LANDLOCK_ACCESS_FS_MAKE_CHAR: u32 = 64; +pub const LANDLOCK_ACCESS_FS_MAKE_DIR: u32 = 128; +pub const LANDLOCK_ACCESS_FS_MAKE_REG: u32 = 256; +pub const LANDLOCK_ACCESS_FS_MAKE_SOCK: u32 = 512; +pub const LANDLOCK_ACCESS_FS_MAKE_FIFO: u32 = 1024; +pub const LANDLOCK_ACCESS_FS_MAKE_BLOCK: u32 = 2048; +pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; +pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; +pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; +pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; +pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; +pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum landlock_rule_type { +LANDLOCK_RULE_PATH_BENEATH = 1, +LANDLOCK_RULE_NET_PORT = 2, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/loop_device.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/loop_device.rs new file mode 100644 index 0000000000000000000000000000000000000000..d27e64deed3751d2ddd5c59a27ed780ee4b76194 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/loop_device.rs @@ -0,0 +1,134 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __kernel_long_t = crate::ctypes::c_longlong; +pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct loop_info { +pub lo_number: crate::ctypes::c_int, +pub lo_device: __kernel_old_dev_t, +pub lo_inode: crate::ctypes::c_ulong, +pub lo_rdevice: __kernel_old_dev_t, +pub lo_offset: crate::ctypes::c_int, +pub lo_encrypt_type: crate::ctypes::c_int, +pub lo_encrypt_key_size: crate::ctypes::c_int, +pub lo_flags: crate::ctypes::c_int, +pub lo_name: [crate::ctypes::c_char; 64usize], +pub lo_encrypt_key: [crate::ctypes::c_uchar; 32usize], +pub lo_init: [crate::ctypes::c_ulong; 2usize], +pub reserved: [crate::ctypes::c_char; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct loop_info64 { +pub lo_device: __u64, +pub lo_inode: __u64, +pub lo_rdevice: __u64, +pub lo_offset: __u64, +pub lo_sizelimit: __u64, +pub lo_number: __u32, +pub lo_encrypt_type: __u32, +pub lo_encrypt_key_size: __u32, +pub lo_flags: __u32, +pub lo_file_name: [__u8; 64usize], +pub lo_crypt_name: [__u8; 64usize], +pub lo_encrypt_key: [__u8; 32usize], +pub lo_init: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct loop_config { +pub fd: __u32, +pub block_size: __u32, +pub info: loop_info64, +pub __reserved: [__u64; 8usize], +} +pub const LO_NAME_SIZE: u32 = 64; +pub const LO_KEY_SIZE: u32 = 32; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const LO_CRYPT_NONE: u32 = 0; +pub const LO_CRYPT_XOR: u32 = 1; +pub const LO_CRYPT_DES: u32 = 2; +pub const LO_CRYPT_FISH2: u32 = 3; +pub const LO_CRYPT_BLOW: u32 = 4; +pub const LO_CRYPT_CAST128: u32 = 5; +pub const LO_CRYPT_IDEA: u32 = 6; +pub const LO_CRYPT_DUMMY: u32 = 9; +pub const LO_CRYPT_SKIPJACK: u32 = 10; +pub const LO_CRYPT_CRYPTOAPI: u32 = 18; +pub const MAX_LO_CRYPT: u32 = 20; +pub const LOOP_SET_FD: u32 = 19456; +pub const LOOP_CLR_FD: u32 = 19457; +pub const LOOP_SET_STATUS: u32 = 19458; +pub const LOOP_GET_STATUS: u32 = 19459; +pub const LOOP_SET_STATUS64: u32 = 19460; +pub const LOOP_GET_STATUS64: u32 = 19461; +pub const LOOP_CHANGE_FD: u32 = 19462; +pub const LOOP_SET_CAPACITY: u32 = 19463; +pub const LOOP_SET_DIRECT_IO: u32 = 19464; +pub const LOOP_SET_BLOCK_SIZE: u32 = 19465; +pub const LOOP_CONFIGURE: u32 = 19466; +pub const LOOP_CTL_ADD: u32 = 19584; +pub const LOOP_CTL_REMOVE: u32 = 19585; +pub const LOOP_CTL_GET_FREE: u32 = 19586; +pub const LO_FLAGS_READ_ONLY: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_READ_ONLY; +pub const LO_FLAGS_AUTOCLEAR: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_AUTOCLEAR; +pub const LO_FLAGS_PARTSCAN: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_PARTSCAN; +pub const LO_FLAGS_DIRECT_IO: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_DIRECT_IO; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +LO_FLAGS_READ_ONLY = 1, +LO_FLAGS_AUTOCLEAR = 4, +LO_FLAGS_PARTSCAN = 8, +LO_FLAGS_DIRECT_IO = 16, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/mempolicy.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/mempolicy.rs new file mode 100644 index 0000000000000000000000000000000000000000..51914ccda4aae99462299b196a931dd5feea3a80 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/mempolicy.rs @@ -0,0 +1,175 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EDEADLK: u32 = 35; +pub const ENAMETOOLONG: u32 = 36; +pub const ENOLCK: u32 = 37; +pub const ENOSYS: u32 = 38; +pub const ENOTEMPTY: u32 = 39; +pub const ELOOP: u32 = 40; +pub const EWOULDBLOCK: u32 = 11; +pub const ENOMSG: u32 = 42; +pub const EIDRM: u32 = 43; +pub const ECHRNG: u32 = 44; +pub const EL2NSYNC: u32 = 45; +pub const EL3HLT: u32 = 46; +pub const EL3RST: u32 = 47; +pub const ELNRNG: u32 = 48; +pub const EUNATCH: u32 = 49; +pub const ENOCSI: u32 = 50; +pub const EL2HLT: u32 = 51; +pub const EBADE: u32 = 52; +pub const EBADR: u32 = 53; +pub const EXFULL: u32 = 54; +pub const ENOANO: u32 = 55; +pub const EBADRQC: u32 = 56; +pub const EBADSLT: u32 = 57; +pub const EDEADLOCK: u32 = 35; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EMULTIHOP: u32 = 72; +pub const EDOTDOT: u32 = 73; +pub const EBADMSG: u32 = 74; +pub const EOVERFLOW: u32 = 75; +pub const ENOTUNIQ: u32 = 76; +pub const EBADFD: u32 = 77; +pub const EREMCHG: u32 = 78; +pub const ELIBACC: u32 = 79; +pub const ELIBBAD: u32 = 80; +pub const ELIBSCN: u32 = 81; +pub const ELIBMAX: u32 = 82; +pub const ELIBEXEC: u32 = 83; +pub const EILSEQ: u32 = 84; +pub const ERESTART: u32 = 85; +pub const ESTRPIPE: u32 = 86; +pub const EUSERS: u32 = 87; +pub const ENOTSOCK: u32 = 88; +pub const EDESTADDRREQ: u32 = 89; +pub const EMSGSIZE: u32 = 90; +pub const EPROTOTYPE: u32 = 91; +pub const ENOPROTOOPT: u32 = 92; +pub const EPROTONOSUPPORT: u32 = 93; +pub const ESOCKTNOSUPPORT: u32 = 94; +pub const EOPNOTSUPP: u32 = 95; +pub const EPFNOSUPPORT: u32 = 96; +pub const EAFNOSUPPORT: u32 = 97; +pub const EADDRINUSE: u32 = 98; +pub const EADDRNOTAVAIL: u32 = 99; +pub const ENETDOWN: u32 = 100; +pub const ENETUNREACH: u32 = 101; +pub const ENETRESET: u32 = 102; +pub const ECONNABORTED: u32 = 103; +pub const ECONNRESET: u32 = 104; +pub const ENOBUFS: u32 = 105; +pub const EISCONN: u32 = 106; +pub const ENOTCONN: u32 = 107; +pub const ESHUTDOWN: u32 = 108; +pub const ETOOMANYREFS: u32 = 109; +pub const ETIMEDOUT: u32 = 110; +pub const ECONNREFUSED: u32 = 111; +pub const EHOSTDOWN: u32 = 112; +pub const EHOSTUNREACH: u32 = 113; +pub const EALREADY: u32 = 114; +pub const EINPROGRESS: u32 = 115; +pub const ESTALE: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EDQUOT: u32 = 122; +pub const ENOMEDIUM: u32 = 123; +pub const EMEDIUMTYPE: u32 = 124; +pub const ECANCELED: u32 = 125; +pub const ENOKEY: u32 = 126; +pub const EKEYEXPIRED: u32 = 127; +pub const EKEYREVOKED: u32 = 128; +pub const EKEYREJECTED: u32 = 129; +pub const EOWNERDEAD: u32 = 130; +pub const ENOTRECOVERABLE: u32 = 131; +pub const ERFKILL: u32 = 132; +pub const EHWPOISON: u32 = 133; +pub const MPOL_F_STATIC_NODES: u32 = 32768; +pub const MPOL_F_RELATIVE_NODES: u32 = 16384; +pub const MPOL_F_NUMA_BALANCING: u32 = 8192; +pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_F_NODE: u32 = 1; +pub const MPOL_F_ADDR: u32 = 2; +pub const MPOL_F_MEMS_ALLOWED: u32 = 4; +pub const MPOL_MF_STRICT: u32 = 1; +pub const MPOL_MF_MOVE: u32 = 2; +pub const MPOL_MF_MOVE_ALL: u32 = 4; +pub const MPOL_MF_LAZY: u32 = 8; +pub const MPOL_MF_INTERNAL: u32 = 16; +pub const MPOL_MF_VALID: u32 = 7; +pub const MPOL_F_SHARED: u32 = 1; +pub const MPOL_F_MOF: u32 = 8; +pub const MPOL_F_MORON: u32 = 16; +pub const RECLAIM_ZONE: u32 = 1; +pub const RECLAIM_WRITE: u32 = 2; +pub const RECLAIM_UNMAP: u32 = 4; +pub const MPOL_DEFAULT: _bindgen_ty_1 = _bindgen_ty_1::MPOL_DEFAULT; +pub const MPOL_PREFERRED: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED; +pub const MPOL_BIND: _bindgen_ty_1 = _bindgen_ty_1::MPOL_BIND; +pub const MPOL_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_INTERLEAVE; +pub const MPOL_LOCAL: _bindgen_ty_1 = _bindgen_ty_1::MPOL_LOCAL; +pub const MPOL_PREFERRED_MANY: _bindgen_ty_1 = _bindgen_ty_1::MPOL_PREFERRED_MANY; +pub const MPOL_WEIGHTED_INTERLEAVE: _bindgen_ty_1 = _bindgen_ty_1::MPOL_WEIGHTED_INTERLEAVE; +pub const MPOL_MAX: _bindgen_ty_1 = _bindgen_ty_1::MPOL_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +MPOL_DEFAULT = 0, +MPOL_PREFERRED = 1, +MPOL_BIND = 2, +MPOL_INTERLEAVE = 3, +MPOL_LOCAL = 4, +MPOL_PREFERRED_MANY = 5, +MPOL_WEIGHTED_INTERLEAVE = 6, +MPOL_MAX = 7, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/net.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/net.rs new file mode 100644 index 0000000000000000000000000000000000000000..0c5a798e0f4876cef401b68bf51ada152e60fcbc --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/net.rs @@ -0,0 +1,3493 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_longlong; +pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_sa_family_t = crate::ctypes::c_ushort; +pub type socklen_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] +pub struct __BindgenBitfieldUnit { +storage: Storage, +} +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +pub struct __BindgenUnionField(::core::marker::PhantomData); +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __kernel_sockaddr_storage { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { +pub ss_family: __kernel_sa_family_t, +pub __data: [crate::ctypes::c_char; 126usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct in_addr { +pub s_addr: __be32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_mreq { +pub imr_multiaddr: in_addr, +pub imr_interface: in_addr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_mreqn { +pub imr_multiaddr: in_addr, +pub imr_address: in_addr, +pub imr_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_mreq_source { +pub imr_multiaddr: __be32, +pub imr_interface: __be32, +pub imr_sourceaddr: __be32, +} +#[repr(C)] +pub struct ip_msfilter { +pub imsf_multiaddr: __be32, +pub imsf_interface: __be32, +pub imsf_fmode: __u32, +pub imsf_numsrc: __u32, +pub __bindgen_anon_1: ip_msfilter__bindgen_ty_1, +} +#[repr(C)] +pub struct ip_msfilter__bindgen_ty_1 { +pub imsf_slist: __BindgenUnionField<[__be32; 1usize]>, +pub __bindgen_anon_1: __BindgenUnionField, +pub bindgen_union_field: u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1 { +pub __empty_imsf_slist_flex: ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1, +pub imsf_slist_flex: __IncompleteArrayField<__be32>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_msfilter__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct group_req { +pub gr_interface: __u32, +pub gr_group: __kernel_sockaddr_storage, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct group_source_req { +pub gsr_interface: __u32, +pub gsr_group: __kernel_sockaddr_storage, +pub gsr_source: __kernel_sockaddr_storage, +} +#[repr(C)] +pub struct group_filter { +pub __bindgen_anon_1: group_filter__bindgen_ty_1, +} +#[repr(C)] +pub struct group_filter__bindgen_ty_1 { +pub __bindgen_anon_1: __BindgenUnionField, +pub __bindgen_anon_2: __BindgenUnionField, +pub bindgen_union_field: [u32; 67usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct group_filter__bindgen_ty_1__bindgen_ty_1 { +pub gf_interface_aux: __u32, +pub gf_group_aux: __kernel_sockaddr_storage, +pub gf_fmode_aux: __u32, +pub gf_numsrc_aux: __u32, +pub gf_slist: [__kernel_sockaddr_storage; 1usize], +} +#[repr(C)] +pub struct group_filter__bindgen_ty_1__bindgen_ty_2 { +pub gf_interface: __u32, +pub gf_group: __kernel_sockaddr_storage, +pub gf_fmode: __u32, +pub gf_numsrc: __u32, +pub gf_slist_flex: __IncompleteArrayField<__kernel_sockaddr_storage>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct in_pktinfo { +pub ipi_ifindex: crate::ctypes::c_int, +pub ipi_spec_dst: in_addr, +pub ipi_addr: in_addr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_in { +pub sin_family: __kernel_sa_family_t, +pub sin_port: __be16, +pub sin_addr: in_addr, +pub __pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct iphdr { +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, +pub tos: __u8, +pub tot_len: __be16, +pub id: __be16, +pub frag_off: __be16, +pub ttl: __u8, +pub protocol: __u8, +pub check: __sum16, +pub __bindgen_anon_1: iphdr__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iphdr__bindgen_ty_1__bindgen_ty_1 { +pub saddr: __be32, +pub daddr: __be32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iphdr__bindgen_ty_1__bindgen_ty_2 { +pub saddr: __be32, +pub daddr: __be32, +} +#[repr(C)] +#[derive(Debug)] +pub struct ip_auth_hdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +pub reserved: __be16, +pub spi: __be32, +pub seq_no: __be32, +pub auth_data: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug)] +pub struct ip_esp_hdr { +pub spi: __be32, +pub seq_no: __be32, +pub enc_data: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_comp_hdr { +pub nexthdr: __u8, +pub flags: __u8, +pub cpi: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_beet_phdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +pub padlen: __u8, +pub reserved: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_iptfs_hdr { +pub subtype: __u8, +pub flags: __u8, +pub block_offset: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip_iptfs_cc_hdr { +pub subtype: __u8, +pub flags: __u8, +pub block_offset: __be16, +pub loss_rate: __be32, +pub rtt_adelay_xdelay: __be64, +pub tval: __be32, +pub techo: __be32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_addr { +pub in6_u: in6_addr__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sockaddr_in6 { +pub sin6_family: crate::ctypes::c_ushort, +pub sin6_port: __be16, +pub sin6_flowinfo: __be32, +pub sin6_addr: in6_addr, +pub sin6_scope_id: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6_mreq { +pub ipv6mr_multiaddr: in6_addr, +pub ipv6mr_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_flowlabel_req { +pub flr_dst: in6_addr, +pub flr_label: __be32, +pub flr_action: __u8, +pub flr_share: __u8, +pub flr_flags: __u16, +pub flr_expires: __u16, +pub flr_linger: __u16, +pub __flr_pad: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_pktinfo { +pub ipi6_addr: in6_addr, +pub ipi6_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ip6_mtuinfo { +pub ip6m_addr: sockaddr_in6, +pub ip6m_mtu: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct in6_ifreq { +pub ifr6_addr: in6_addr, +pub ifr6_prefixlen: __u32, +pub ifr6_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ipv6_rt_hdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +pub type_: __u8, +pub segments_left: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct ipv6_opt_hdr { +pub nexthdr: __u8, +pub hdrlen: __u8, +} +#[repr(C)] +pub struct rt0_hdr { +pub rt_hdr: ipv6_rt_hdr, +pub reserved: __u32, +pub addr: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct rt2_hdr { +pub rt_hdr: ipv6_rt_hdr, +pub reserved: __u32, +pub addr: in6_addr, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct ipv6_destopt_hao { +pub type_: __u8, +pub length: __u8, +pub addr: in6_addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6hdr { +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, +pub flow_lbl: [__u8; 3usize], +pub payload_len: __be16, +pub nexthdr: __u8, +pub hop_limit: __u8, +pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_1 { +pub saddr: in6_addr, +pub daddr: in6_addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ipv6hdr__bindgen_ty_1__bindgen_ty_2 { +pub saddr: in6_addr, +pub daddr: in6_addr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcphdr { +pub source: __be16, +pub dest: __be16, +pub seq: __be32, +pub ack_seq: __be32, +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +pub window: __be16, +pub check: __sum16, +pub urg_ptr: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_repair_opt { +pub opt_code: __u32, +pub opt_val: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_repair_window { +pub snd_wl1: __u32, +pub snd_wnd: __u32, +pub max_window: __u32, +pub rcv_wnd: __u32, +pub rcv_wup: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_info { +pub tcpi_state: __u8, +pub tcpi_ca_state: __u8, +pub tcpi_retransmits: __u8, +pub tcpi_probes: __u8, +pub tcpi_backoff: __u8, +pub tcpi_options: __u8, +pub _bitfield_align_1: [u8; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +pub tcpi_rto: __u32, +pub tcpi_ato: __u32, +pub tcpi_snd_mss: __u32, +pub tcpi_rcv_mss: __u32, +pub tcpi_unacked: __u32, +pub tcpi_sacked: __u32, +pub tcpi_lost: __u32, +pub tcpi_retrans: __u32, +pub tcpi_fackets: __u32, +pub tcpi_last_data_sent: __u32, +pub tcpi_last_ack_sent: __u32, +pub tcpi_last_data_recv: __u32, +pub tcpi_last_ack_recv: __u32, +pub tcpi_pmtu: __u32, +pub tcpi_rcv_ssthresh: __u32, +pub tcpi_rtt: __u32, +pub tcpi_rttvar: __u32, +pub tcpi_snd_ssthresh: __u32, +pub tcpi_snd_cwnd: __u32, +pub tcpi_advmss: __u32, +pub tcpi_reordering: __u32, +pub tcpi_rcv_rtt: __u32, +pub tcpi_rcv_space: __u32, +pub tcpi_total_retrans: __u32, +pub tcpi_pacing_rate: __u64, +pub tcpi_max_pacing_rate: __u64, +pub tcpi_bytes_acked: __u64, +pub tcpi_bytes_received: __u64, +pub tcpi_segs_out: __u32, +pub tcpi_segs_in: __u32, +pub tcpi_notsent_bytes: __u32, +pub tcpi_min_rtt: __u32, +pub tcpi_data_segs_in: __u32, +pub tcpi_data_segs_out: __u32, +pub tcpi_delivery_rate: __u64, +pub tcpi_busy_time: __u64, +pub tcpi_rwnd_limited: __u64, +pub tcpi_sndbuf_limited: __u64, +pub tcpi_delivered: __u32, +pub tcpi_delivered_ce: __u32, +pub tcpi_bytes_sent: __u64, +pub tcpi_bytes_retrans: __u64, +pub tcpi_dsack_dups: __u32, +pub tcpi_reord_seen: __u32, +pub tcpi_rcv_ooopack: __u32, +pub tcpi_snd_wnd: __u32, +pub tcpi_rcv_wnd: __u32, +pub tcpi_rehash: __u32, +pub tcpi_total_rto: __u16, +pub tcpi_total_rto_recoveries: __u16, +pub tcpi_total_rto_time: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tcp_md5sig { +pub tcpm_addr: __kernel_sockaddr_storage, +pub tcpm_flags: __u8, +pub tcpm_prefixlen: __u8, +pub tcpm_keylen: __u16, +pub tcpm_ifindex: crate::ctypes::c_int, +pub tcpm_key: [__u8; 80usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_diag_md5sig { +pub tcpm_family: __u8, +pub tcpm_prefixlen: __u8, +pub tcpm_keylen: __u16, +pub tcpm_addr: [__be32; 4usize], +pub tcpm_key: [__u8; 80usize], +} +#[repr(C)] +#[repr(align(8))] +#[derive(Copy, Clone)] +pub struct tcp_ao_add { +pub addr: __kernel_sockaddr_storage, +pub alg_name: [crate::ctypes::c_char; 64usize], +pub ifindex: __s32, +pub _bitfield_align_1: [u32; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +pub reserved2: __u16, +pub prefix: __u8, +pub sndid: __u8, +pub rcvid: __u8, +pub maclen: __u8, +pub keyflags: __u8, +pub keylen: __u8, +pub key: [__u8; 80usize], +} +#[repr(C)] +#[repr(align(8))] +#[derive(Copy, Clone)] +pub struct tcp_ao_del { +pub addr: __kernel_sockaddr_storage, +pub ifindex: __s32, +pub _bitfield_align_1: [u32; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +pub reserved2: __u16, +pub prefix: __u8, +pub sndid: __u8, +pub rcvid: __u8, +pub current_key: __u8, +pub rnext: __u8, +pub keyflags: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_ao_info_opt { +pub _bitfield_align_1: [u32; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +pub reserved2: __u16, +pub current_key: __u8, +pub rnext: __u8, +pub pkt_good: __u64, +pub pkt_bad: __u64, +pub pkt_key_not_found: __u64, +pub pkt_ao_required: __u64, +pub pkt_dropped_icmp: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct tcp_ao_getsockopt { +pub addr: __kernel_sockaddr_storage, +pub alg_name: [crate::ctypes::c_char; 64usize], +pub key: [__u8; 80usize], +pub nkeys: __u32, +pub _bitfield_align_1: [u16; 0], +pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, +pub sndid: __u8, +pub rcvid: __u8, +pub prefix: __u8, +pub maclen: __u8, +pub keyflags: __u8, +pub keylen: __u8, +pub ifindex: __s32, +pub pkt_good: __u64, +pub pkt_bad: __u64, +} +#[repr(C)] +#[repr(align(8))] +#[derive(Debug, Copy, Clone)] +pub struct tcp_ao_repair { +pub snt_isn: __be32, +pub rcv_isn: __be32, +pub snd_sne: __u32, +pub rcv_sne: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcp_zerocopy_receive { +pub address: __u64, +pub length: __u32, +pub recv_skip_hint: __u32, +pub inq: __u32, +pub err: __s32, +pub copybuf_address: __u64, +pub copybuf_len: __s32, +pub flags: __u32, +pub msg_control: __u64, +pub msg_controllen: __u64, +pub msg_flags: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_un { +pub sun_family: __kernel_sa_family_t, +pub sun_path: [crate::ctypes::c_char; 108usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct sockaddr { +pub __storage: __kernel_sockaddr_storage, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sync_serial_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct te1_settings { +pub clock_rate: crate::ctypes::c_uint, +pub clock_type: crate::ctypes::c_uint, +pub loopback: crate::ctypes::c_ushort, +pub slot_map: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct raw_hdlc_proto { +pub encoding: crate::ctypes::c_ushort, +pub parity: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto { +pub t391: crate::ctypes::c_uint, +pub t392: crate::ctypes::c_uint, +pub n391: crate::ctypes::c_uint, +pub n392: crate::ctypes::c_uint, +pub n393: crate::ctypes::c_uint, +pub lmi: crate::ctypes::c_ushort, +pub dce: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc { +pub dlci: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fr_proto_pvc_info { +pub dlci: crate::ctypes::c_uint, +pub master: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cisco_proto { +pub interval: crate::ctypes::c_uint, +pub timeout: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct x25_hdlc_proto { +pub dce: crate::ctypes::c_ushort, +pub modulo: crate::ctypes::c_uint, +pub window: crate::ctypes::c_uint, +pub t1: crate::ctypes::c_uint, +pub t2: crate::ctypes::c_uint, +pub n2: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifmap { +pub mem_start: crate::ctypes::c_ulong, +pub mem_end: crate::ctypes::c_ulong, +pub base_addr: crate::ctypes::c_ushort, +pub irq: crate::ctypes::c_uchar, +pub dma: crate::ctypes::c_uchar, +pub port: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct if_settings { +pub type_: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +pub ifs_ifsu: if_settings__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifreq { +pub ifr_ifrn: ifreq__bindgen_ty_1, +pub ifr_ifru: ifreq__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ifconf { +pub ifc_len: crate::ctypes::c_int, +pub ifc_ifcu: ifconf__bindgen_ty_1, +} +#[repr(C)] +pub struct xt_entry_match { +pub u: xt_entry_match__bindgen_ty_1, +pub data: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_1 { +pub match_size: __u16, +pub name: [crate::ctypes::c_char; 29usize], +pub revision: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_match__bindgen_ty_1__bindgen_ty_2 { +pub match_size: __u16, +pub match_: *mut xt_match, +} +#[repr(C)] +pub struct xt_entry_target { +pub u: xt_entry_target__bindgen_ty_1, +pub data: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_1 { +pub target_size: __u16, +pub name: [crate::ctypes::c_char; 29usize], +pub revision: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_entry_target__bindgen_ty_1__bindgen_ty_2 { +pub target_size: __u16, +pub target: *mut xt_target, +} +#[repr(C)] +pub struct xt_standard_target { +pub target: xt_entry_target, +pub verdict: crate::ctypes::c_int, +} +#[repr(C)] +pub struct xt_error_target { +pub target: xt_entry_target, +pub errorname: [crate::ctypes::c_char; 30usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_get_revision { +pub name: [crate::ctypes::c_char; 29usize], +pub revision: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _xt_align { +pub u8_: __u8, +pub u16_: __u16, +pub u32_: __u32, +pub u64_: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_counters { +pub pcnt: __u64, +pub bcnt: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct xt_counters_info { +pub name: [crate::ctypes::c_char; 32usize], +pub num_counters: crate::ctypes::c_uint, +pub counters: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_tcp { +pub spts: [__u16; 2usize], +pub dpts: [__u16; 2usize], +pub option: __u8, +pub flg_mask: __u8, +pub flg_cmp: __u8, +pub invflags: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_udp { +pub spts: [__u16; 2usize], +pub dpts: [__u16; 2usize], +pub invflags: __u8, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ip6t_ip6 { +pub src: in6_addr, +pub dst: in6_addr, +pub smsk: in6_addr, +pub dmsk: in6_addr, +pub iniface: [crate::ctypes::c_char; 16usize], +pub outiface: [crate::ctypes::c_char; 16usize], +pub iniface_mask: [crate::ctypes::c_uchar; 16usize], +pub outiface_mask: [crate::ctypes::c_uchar; 16usize], +pub proto: __u16, +pub tos: __u8, +pub flags: __u8, +pub invflags: __u8, +} +#[repr(C)] +pub struct ip6t_entry { +pub ipv6: ip6t_ip6, +pub nfcache: crate::ctypes::c_uint, +pub target_offset: __u16, +pub next_offset: __u16, +pub comefrom: crate::ctypes::c_uint, +pub counters: xt_counters, +pub elems: __IncompleteArrayField, +} +#[repr(C)] +pub struct ip6t_standard { +pub entry: ip6t_entry, +pub target: xt_standard_target, +} +#[repr(C)] +pub struct ip6t_error { +pub entry: ip6t_entry, +pub target: xt_error_target, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip6t_icmp { +pub type_: __u8, +pub code: [__u8; 2usize], +pub invflags: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ip6t_getinfo { +pub name: [crate::ctypes::c_char; 32usize], +pub valid_hooks: crate::ctypes::c_uint, +pub hook_entry: [crate::ctypes::c_uint; 5usize], +pub underflow: [crate::ctypes::c_uint; 5usize], +pub num_entries: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +} +#[repr(C)] +pub struct ip6t_replace { +pub name: [crate::ctypes::c_char; 32usize], +pub valid_hooks: crate::ctypes::c_uint, +pub num_entries: crate::ctypes::c_uint, +pub size: crate::ctypes::c_uint, +pub hook_entry: [crate::ctypes::c_uint; 5usize], +pub underflow: [crate::ctypes::c_uint; 5usize], +pub num_counters: crate::ctypes::c_uint, +pub counters: *mut xt_counters, +pub entries: __IncompleteArrayField, +} +#[repr(C)] +pub struct ip6t_get_entries { +pub name: [crate::ctypes::c_char; 32usize], +pub size: crate::ctypes::c_uint, +pub entrytable: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct so_timestamping { +pub flags: crate::ctypes::c_int, +pub bind_phc: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hwtstamp_config { +pub flags: crate::ctypes::c_int, +pub tx_type: crate::ctypes::c_int, +pub rx_filter: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct scm_ts_pktinfo { +pub if_index: __u32, +pub pkt_length: __u32, +pub reserved: [__u32; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sock_txtime { +pub clockid: __kernel_clockid_t, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct linger { +pub l_onoff: crate::ctypes::c_int, +pub l_linger: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct msghdr { +pub msg_name: *mut crate::ctypes::c_void, +pub msg_namelen: crate::ctypes::c_int, +pub msg_iov: *mut iovec, +pub msg_iovlen: usize, +pub msg_control: *mut crate::ctypes::c_void, +pub msg_controllen: usize, +pub msg_flags: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct cmsghdr { +pub cmsg_len: usize, +pub cmsg_level: crate::ctypes::c_int, +pub cmsg_type: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ucred { +pub pid: __u32, +pub uid: __u32, +pub gid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mmsghdr { +pub msg_hdr: msghdr, +pub msg_len: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_match { +pub _address: u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xt_target { +pub _address: u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iovec { +pub _address: u8, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _K_SS_MAXSIZE: u32 = 128; +pub const SOCK_SNDBUF_LOCK: u32 = 1; +pub const SOCK_RCVBUF_LOCK: u32 = 2; +pub const SOCK_BUF_LOCK_MASK: u32 = 3; +pub const SOCK_TXREHASH_DEFAULT: u32 = 255; +pub const SOCK_TXREHASH_DISABLED: u32 = 0; +pub const SOCK_TXREHASH_ENABLED: u32 = 1; +pub const IP_TOS: u32 = 1; +pub const IP_TTL: u32 = 2; +pub const IP_HDRINCL: u32 = 3; +pub const IP_OPTIONS: u32 = 4; +pub const IP_ROUTER_ALERT: u32 = 5; +pub const IP_RECVOPTS: u32 = 6; +pub const IP_RETOPTS: u32 = 7; +pub const IP_PKTINFO: u32 = 8; +pub const IP_PKTOPTIONS: u32 = 9; +pub const IP_MTU_DISCOVER: u32 = 10; +pub const IP_RECVERR: u32 = 11; +pub const IP_RECVTTL: u32 = 12; +pub const IP_RECVTOS: u32 = 13; +pub const IP_MTU: u32 = 14; +pub const IP_FREEBIND: u32 = 15; +pub const IP_IPSEC_POLICY: u32 = 16; +pub const IP_XFRM_POLICY: u32 = 17; +pub const IP_PASSSEC: u32 = 18; +pub const IP_TRANSPARENT: u32 = 19; +pub const IP_RECVRETOPTS: u32 = 7; +pub const IP_ORIGDSTADDR: u32 = 20; +pub const IP_RECVORIGDSTADDR: u32 = 20; +pub const IP_MINTTL: u32 = 21; +pub const IP_NODEFRAG: u32 = 22; +pub const IP_CHECKSUM: u32 = 23; +pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; +pub const IP_RECVFRAGSIZE: u32 = 25; +pub const IP_RECVERR_RFC4884: u32 = 26; +pub const IP_PMTUDISC_DONT: u32 = 0; +pub const IP_PMTUDISC_WANT: u32 = 1; +pub const IP_PMTUDISC_DO: u32 = 2; +pub const IP_PMTUDISC_PROBE: u32 = 3; +pub const IP_PMTUDISC_INTERFACE: u32 = 4; +pub const IP_PMTUDISC_OMIT: u32 = 5; +pub const IP_MULTICAST_IF: u32 = 32; +pub const IP_MULTICAST_TTL: u32 = 33; +pub const IP_MULTICAST_LOOP: u32 = 34; +pub const IP_ADD_MEMBERSHIP: u32 = 35; +pub const IP_DROP_MEMBERSHIP: u32 = 36; +pub const IP_UNBLOCK_SOURCE: u32 = 37; +pub const IP_BLOCK_SOURCE: u32 = 38; +pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; +pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; +pub const IP_MSFILTER: u32 = 41; +pub const MCAST_JOIN_GROUP: u32 = 42; +pub const MCAST_BLOCK_SOURCE: u32 = 43; +pub const MCAST_UNBLOCK_SOURCE: u32 = 44; +pub const MCAST_LEAVE_GROUP: u32 = 45; +pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; +pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; +pub const MCAST_MSFILTER: u32 = 48; +pub const IP_MULTICAST_ALL: u32 = 49; +pub const IP_UNICAST_IF: u32 = 50; +pub const IP_LOCAL_PORT_RANGE: u32 = 51; +pub const IP_PROTOCOL: u32 = 52; +pub const MCAST_EXCLUDE: u32 = 0; +pub const MCAST_INCLUDE: u32 = 1; +pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; +pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; +pub const __SOCK_SIZE__: u32 = 16; +pub const IN_CLASSA_NET: u32 = 4278190080; +pub const IN_CLASSA_NSHIFT: u32 = 24; +pub const IN_CLASSA_HOST: u32 = 16777215; +pub const IN_CLASSA_MAX: u32 = 128; +pub const IN_CLASSB_NET: u32 = 4294901760; +pub const IN_CLASSB_NSHIFT: u32 = 16; +pub const IN_CLASSB_HOST: u32 = 65535; +pub const IN_CLASSB_MAX: u32 = 65536; +pub const IN_CLASSC_NET: u32 = 4294967040; +pub const IN_CLASSC_NSHIFT: u32 = 8; +pub const IN_CLASSC_HOST: u32 = 255; +pub const IN_MULTICAST_NET: u32 = 3758096384; +pub const IN_CLASSE_NET: u32 = 4294967295; +pub const IN_CLASSE_NSHIFT: u32 = 0; +pub const IN_LOOPBACKNET: u32 = 127; +pub const INADDR_LOOPBACK: u32 = 2130706433; +pub const INADDR_UNSPEC_GROUP: u32 = 3758096384; +pub const INADDR_ALLHOSTS_GROUP: u32 = 3758096385; +pub const INADDR_ALLRTRS_GROUP: u32 = 3758096386; +pub const INADDR_ALLSNOOPERS_GROUP: u32 = 3758096490; +pub const INADDR_MAX_LOCAL_GROUP: u32 = 3758096639; +pub const __LITTLE_ENDIAN: u32 = 1234; +pub const IPTOS_TOS_MASK: u32 = 30; +pub const IPTOS_LOWDELAY: u32 = 16; +pub const IPTOS_THROUGHPUT: u32 = 8; +pub const IPTOS_RELIABILITY: u32 = 4; +pub const IPTOS_MINCOST: u32 = 2; +pub const IPTOS_PREC_MASK: u32 = 224; +pub const IPTOS_PREC_NETCONTROL: u32 = 224; +pub const IPTOS_PREC_INTERNETCONTROL: u32 = 192; +pub const IPTOS_PREC_CRITIC_ECP: u32 = 160; +pub const IPTOS_PREC_FLASHOVERRIDE: u32 = 128; +pub const IPTOS_PREC_FLASH: u32 = 96; +pub const IPTOS_PREC_IMMEDIATE: u32 = 64; +pub const IPTOS_PREC_PRIORITY: u32 = 32; +pub const IPTOS_PREC_ROUTINE: u32 = 0; +pub const IPOPT_COPY: u32 = 128; +pub const IPOPT_CLASS_MASK: u32 = 96; +pub const IPOPT_NUMBER_MASK: u32 = 31; +pub const IPOPT_CONTROL: u32 = 0; +pub const IPOPT_RESERVED1: u32 = 32; +pub const IPOPT_MEASUREMENT: u32 = 64; +pub const IPOPT_RESERVED2: u32 = 96; +pub const IPOPT_END: u32 = 0; +pub const IPOPT_NOOP: u32 = 1; +pub const IPOPT_SEC: u32 = 130; +pub const IPOPT_LSRR: u32 = 131; +pub const IPOPT_TIMESTAMP: u32 = 68; +pub const IPOPT_CIPSO: u32 = 134; +pub const IPOPT_RR: u32 = 7; +pub const IPOPT_SID: u32 = 136; +pub const IPOPT_SSRR: u32 = 137; +pub const IPOPT_RA: u32 = 148; +pub const IPVERSION: u32 = 4; +pub const MAXTTL: u32 = 255; +pub const IPDEFTTL: u32 = 64; +pub const IPOPT_OPTVAL: u32 = 0; +pub const IPOPT_OLEN: u32 = 1; +pub const IPOPT_OFFSET: u32 = 2; +pub const IPOPT_MINOFF: u32 = 4; +pub const MAX_IPOPTLEN: u32 = 40; +pub const IPOPT_NOP: u32 = 1; +pub const IPOPT_EOL: u32 = 0; +pub const IPOPT_TS: u32 = 68; +pub const IPOPT_TS_TSONLY: u32 = 0; +pub const IPOPT_TS_TSANDADDR: u32 = 1; +pub const IPOPT_TS_PRESPEC: u32 = 3; +pub const IPV4_BEET_PHMAXLEN: u32 = 8; +pub const IPV6_FL_A_GET: u32 = 0; +pub const IPV6_FL_A_PUT: u32 = 1; +pub const IPV6_FL_A_RENEW: u32 = 2; +pub const IPV6_FL_F_CREATE: u32 = 1; +pub const IPV6_FL_F_EXCL: u32 = 2; +pub const IPV6_FL_F_REFLECT: u32 = 4; +pub const IPV6_FL_F_REMOTE: u32 = 8; +pub const IPV6_FL_S_NONE: u32 = 0; +pub const IPV6_FL_S_EXCL: u32 = 1; +pub const IPV6_FL_S_PROCESS: u32 = 2; +pub const IPV6_FL_S_USER: u32 = 3; +pub const IPV6_FL_S_ANY: u32 = 255; +pub const IPV6_FLOWINFO_FLOWLABEL: u32 = 1048575; +pub const IPV6_FLOWINFO_PRIORITY: u32 = 267386880; +pub const IPV6_PRIORITY_UNCHARACTERIZED: u32 = 0; +pub const IPV6_PRIORITY_FILLER: u32 = 256; +pub const IPV6_PRIORITY_UNATTENDED: u32 = 512; +pub const IPV6_PRIORITY_RESERVED1: u32 = 768; +pub const IPV6_PRIORITY_BULK: u32 = 1024; +pub const IPV6_PRIORITY_RESERVED2: u32 = 1280; +pub const IPV6_PRIORITY_INTERACTIVE: u32 = 1536; +pub const IPV6_PRIORITY_CONTROL: u32 = 1792; +pub const IPV6_PRIORITY_8: u32 = 2048; +pub const IPV6_PRIORITY_9: u32 = 2304; +pub const IPV6_PRIORITY_10: u32 = 2560; +pub const IPV6_PRIORITY_11: u32 = 2816; +pub const IPV6_PRIORITY_12: u32 = 3072; +pub const IPV6_PRIORITY_13: u32 = 3328; +pub const IPV6_PRIORITY_14: u32 = 3584; +pub const IPV6_PRIORITY_15: u32 = 3840; +pub const IPPROTO_HOPOPTS: u32 = 0; +pub const IPPROTO_ROUTING: u32 = 43; +pub const IPPROTO_FRAGMENT: u32 = 44; +pub const IPPROTO_ICMPV6: u32 = 58; +pub const IPPROTO_NONE: u32 = 59; +pub const IPPROTO_DSTOPTS: u32 = 60; +pub const IPPROTO_MH: u32 = 135; +pub const IPV6_TLV_PAD1: u32 = 0; +pub const IPV6_TLV_PADN: u32 = 1; +pub const IPV6_TLV_ROUTERALERT: u32 = 5; +pub const IPV6_TLV_CALIPSO: u32 = 7; +pub const IPV6_TLV_IOAM: u32 = 49; +pub const IPV6_TLV_JUMBO: u32 = 194; +pub const IPV6_TLV_HAO: u32 = 201; +pub const IPV6_ADDRFORM: u32 = 1; +pub const IPV6_2292PKTINFO: u32 = 2; +pub const IPV6_2292HOPOPTS: u32 = 3; +pub const IPV6_2292DSTOPTS: u32 = 4; +pub const IPV6_2292RTHDR: u32 = 5; +pub const IPV6_2292PKTOPTIONS: u32 = 6; +pub const IPV6_CHECKSUM: u32 = 7; +pub const IPV6_2292HOPLIMIT: u32 = 8; +pub const IPV6_NEXTHOP: u32 = 9; +pub const IPV6_AUTHHDR: u32 = 10; +pub const IPV6_FLOWINFO: u32 = 11; +pub const IPV6_UNICAST_HOPS: u32 = 16; +pub const IPV6_MULTICAST_IF: u32 = 17; +pub const IPV6_MULTICAST_HOPS: u32 = 18; +pub const IPV6_MULTICAST_LOOP: u32 = 19; +pub const IPV6_ADD_MEMBERSHIP: u32 = 20; +pub const IPV6_DROP_MEMBERSHIP: u32 = 21; +pub const IPV6_ROUTER_ALERT: u32 = 22; +pub const IPV6_MTU_DISCOVER: u32 = 23; +pub const IPV6_MTU: u32 = 24; +pub const IPV6_RECVERR: u32 = 25; +pub const IPV6_V6ONLY: u32 = 26; +pub const IPV6_JOIN_ANYCAST: u32 = 27; +pub const IPV6_LEAVE_ANYCAST: u32 = 28; +pub const IPV6_MULTICAST_ALL: u32 = 29; +pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; +pub const IPV6_RECVERR_RFC4884: u32 = 31; +pub const IPV6_PMTUDISC_DONT: u32 = 0; +pub const IPV6_PMTUDISC_WANT: u32 = 1; +pub const IPV6_PMTUDISC_DO: u32 = 2; +pub const IPV6_PMTUDISC_PROBE: u32 = 3; +pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; +pub const IPV6_PMTUDISC_OMIT: u32 = 5; +pub const IPV6_FLOWLABEL_MGR: u32 = 32; +pub const IPV6_FLOWINFO_SEND: u32 = 33; +pub const IPV6_IPSEC_POLICY: u32 = 34; +pub const IPV6_XFRM_POLICY: u32 = 35; +pub const IPV6_HDRINCL: u32 = 36; +pub const IPV6_RECVPKTINFO: u32 = 49; +pub const IPV6_PKTINFO: u32 = 50; +pub const IPV6_RECVHOPLIMIT: u32 = 51; +pub const IPV6_HOPLIMIT: u32 = 52; +pub const IPV6_RECVHOPOPTS: u32 = 53; +pub const IPV6_HOPOPTS: u32 = 54; +pub const IPV6_RTHDRDSTOPTS: u32 = 55; +pub const IPV6_RECVRTHDR: u32 = 56; +pub const IPV6_RTHDR: u32 = 57; +pub const IPV6_RECVDSTOPTS: u32 = 58; +pub const IPV6_DSTOPTS: u32 = 59; +pub const IPV6_RECVPATHMTU: u32 = 60; +pub const IPV6_PATHMTU: u32 = 61; +pub const IPV6_DONTFRAG: u32 = 62; +pub const IPV6_RECVTCLASS: u32 = 66; +pub const IPV6_TCLASS: u32 = 67; +pub const IPV6_AUTOFLOWLABEL: u32 = 70; +pub const IPV6_ADDR_PREFERENCES: u32 = 72; +pub const IPV6_PREFER_SRC_TMP: u32 = 1; +pub const IPV6_PREFER_SRC_PUBLIC: u32 = 2; +pub const IPV6_PREFER_SRC_PUBTMP_DEFAULT: u32 = 256; +pub const IPV6_PREFER_SRC_COA: u32 = 4; +pub const IPV6_PREFER_SRC_HOME: u32 = 1024; +pub const IPV6_PREFER_SRC_CGA: u32 = 8; +pub const IPV6_PREFER_SRC_NONCGA: u32 = 2048; +pub const IPV6_MINHOPCOUNT: u32 = 73; +pub const IPV6_ORIGDSTADDR: u32 = 74; +pub const IPV6_RECVORIGDSTADDR: u32 = 74; +pub const IPV6_TRANSPARENT: u32 = 75; +pub const IPV6_UNICAST_IF: u32 = 76; +pub const IPV6_RECVFRAGSIZE: u32 = 77; +pub const IPV6_FREEBIND: u32 = 78; +pub const IPV6_MIN_MTU: u32 = 1280; +pub const IPV6_SRCRT_STRICT: u32 = 1; +pub const IPV6_SRCRT_TYPE_0: u32 = 0; +pub const IPV6_SRCRT_TYPE_2: u32 = 2; +pub const IPV6_SRCRT_TYPE_3: u32 = 3; +pub const IPV6_SRCRT_TYPE_4: u32 = 4; +pub const IPV6_OPT_ROUTERALERT_MLD: u32 = 0; +pub const SIOCGSTAMP_OLD: u32 = 35078; +pub const SIOCGSTAMPNS_OLD: u32 = 35079; +pub const SOL_SOCKET: u32 = 1; +pub const SO_DEBUG: u32 = 1; +pub const SO_REUSEADDR: u32 = 2; +pub const SO_TYPE: u32 = 3; +pub const SO_ERROR: u32 = 4; +pub const SO_DONTROUTE: u32 = 5; +pub const SO_BROADCAST: u32 = 6; +pub const SO_SNDBUF: u32 = 7; +pub const SO_RCVBUF: u32 = 8; +pub const SO_SNDBUFFORCE: u32 = 32; +pub const SO_RCVBUFFORCE: u32 = 33; +pub const SO_KEEPALIVE: u32 = 9; +pub const SO_OOBINLINE: u32 = 10; +pub const SO_NO_CHECK: u32 = 11; +pub const SO_PRIORITY: u32 = 12; +pub const SO_LINGER: u32 = 13; +pub const SO_BSDCOMPAT: u32 = 14; +pub const SO_REUSEPORT: u32 = 15; +pub const SO_PASSCRED: u32 = 16; +pub const SO_PEERCRED: u32 = 17; +pub const SO_RCVLOWAT: u32 = 18; +pub const SO_SNDLOWAT: u32 = 19; +pub const SO_RCVTIMEO_OLD: u32 = 20; +pub const SO_SNDTIMEO_OLD: u32 = 21; +pub const SO_SECURITY_AUTHENTICATION: u32 = 22; +pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; +pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; +pub const SO_BINDTODEVICE: u32 = 25; +pub const SO_ATTACH_FILTER: u32 = 26; +pub const SO_DETACH_FILTER: u32 = 27; +pub const SO_GET_FILTER: u32 = 26; +pub const SO_PEERNAME: u32 = 28; +pub const SO_ACCEPTCONN: u32 = 30; +pub const SO_PEERSEC: u32 = 31; +pub const SO_PASSSEC: u32 = 34; +pub const SO_MARK: u32 = 36; +pub const SO_PROTOCOL: u32 = 38; +pub const SO_DOMAIN: u32 = 39; +pub const SO_RXQ_OVFL: u32 = 40; +pub const SO_WIFI_STATUS: u32 = 41; +pub const SCM_WIFI_STATUS: u32 = 41; +pub const SO_PEEK_OFF: u32 = 42; +pub const SO_NOFCS: u32 = 43; +pub const SO_LOCK_FILTER: u32 = 44; +pub const SO_SELECT_ERR_QUEUE: u32 = 45; +pub const SO_BUSY_POLL: u32 = 46; +pub const SO_MAX_PACING_RATE: u32 = 47; +pub const SO_BPF_EXTENSIONS: u32 = 48; +pub const SO_INCOMING_CPU: u32 = 49; +pub const SO_ATTACH_BPF: u32 = 50; +pub const SO_DETACH_BPF: u32 = 27; +pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; +pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; +pub const SO_CNX_ADVICE: u32 = 53; +pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; +pub const SO_MEMINFO: u32 = 55; +pub const SO_INCOMING_NAPI_ID: u32 = 56; +pub const SO_COOKIE: u32 = 57; +pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; +pub const SO_PEERGROUPS: u32 = 59; +pub const SO_ZEROCOPY: u32 = 60; +pub const SO_TXTIME: u32 = 61; +pub const SCM_TXTIME: u32 = 61; +pub const SO_BINDTOIFINDEX: u32 = 62; +pub const SO_TIMESTAMP_OLD: u32 = 29; +pub const SO_TIMESTAMPNS_OLD: u32 = 35; +pub const SO_TIMESTAMPING_OLD: u32 = 37; +pub const SO_TIMESTAMP_NEW: u32 = 63; +pub const SO_TIMESTAMPNS_NEW: u32 = 64; +pub const SO_TIMESTAMPING_NEW: u32 = 65; +pub const SO_RCVTIMEO_NEW: u32 = 66; +pub const SO_SNDTIMEO_NEW: u32 = 67; +pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; +pub const SO_PREFER_BUSY_POLL: u32 = 69; +pub const SO_BUSY_POLL_BUDGET: u32 = 70; +pub const SO_NETNS_COOKIE: u32 = 71; +pub const SO_BUF_LOCK: u32 = 72; +pub const SO_RESERVE_MEM: u32 = 73; +pub const SO_TXREHASH: u32 = 74; +pub const SO_RCVMARK: u32 = 75; +pub const SO_PASSPIDFD: u32 = 76; +pub const SO_PEERPIDFD: u32 = 77; +pub const SO_DEVMEM_LINEAR: u32 = 78; +pub const SCM_DEVMEM_LINEAR: u32 = 78; +pub const SO_DEVMEM_DMABUF: u32 = 79; +pub const SCM_DEVMEM_DMABUF: u32 = 79; +pub const SO_DEVMEM_DONTNEED: u32 = 80; +pub const SCM_TS_OPT_ID: u32 = 81; +pub const SO_RCVPRIORITY: u32 = 82; +pub const SO_PASSRIGHTS: u32 = 83; +pub const SO_TIMESTAMP: u32 = 29; +pub const SO_TIMESTAMPNS: u32 = 35; +pub const SO_TIMESTAMPING: u32 = 37; +pub const SO_RCVTIMEO: u32 = 20; +pub const SO_SNDTIMEO: u32 = 21; +pub const SCM_TIMESTAMP: u32 = 29; +pub const SCM_TIMESTAMPNS: u32 = 35; +pub const SCM_TIMESTAMPING: u32 = 37; +pub const SYS_SOCKET: u32 = 1; +pub const SYS_BIND: u32 = 2; +pub const SYS_CONNECT: u32 = 3; +pub const SYS_LISTEN: u32 = 4; +pub const SYS_ACCEPT: u32 = 5; +pub const SYS_GETSOCKNAME: u32 = 6; +pub const SYS_GETPEERNAME: u32 = 7; +pub const SYS_SOCKETPAIR: u32 = 8; +pub const SYS_SEND: u32 = 9; +pub const SYS_RECV: u32 = 10; +pub const SYS_SENDTO: u32 = 11; +pub const SYS_RECVFROM: u32 = 12; +pub const SYS_SHUTDOWN: u32 = 13; +pub const SYS_SETSOCKOPT: u32 = 14; +pub const SYS_GETSOCKOPT: u32 = 15; +pub const SYS_SENDMSG: u32 = 16; +pub const SYS_RECVMSG: u32 = 17; +pub const SYS_ACCEPT4: u32 = 18; +pub const SYS_RECVMMSG: u32 = 19; +pub const SYS_SENDMMSG: u32 = 20; +pub const __SO_ACCEPTCON: u32 = 65536; +pub const TCP_MSS_DEFAULT: u32 = 536; +pub const TCP_MSS_DESIRED: u32 = 1220; +pub const TCP_NODELAY: u32 = 1; +pub const TCP_MAXSEG: u32 = 2; +pub const TCP_CORK: u32 = 3; +pub const TCP_KEEPIDLE: u32 = 4; +pub const TCP_KEEPINTVL: u32 = 5; +pub const TCP_KEEPCNT: u32 = 6; +pub const TCP_SYNCNT: u32 = 7; +pub const TCP_LINGER2: u32 = 8; +pub const TCP_DEFER_ACCEPT: u32 = 9; +pub const TCP_WINDOW_CLAMP: u32 = 10; +pub const TCP_INFO: u32 = 11; +pub const TCP_QUICKACK: u32 = 12; +pub const TCP_CONGESTION: u32 = 13; +pub const TCP_MD5SIG: u32 = 14; +pub const TCP_THIN_LINEAR_TIMEOUTS: u32 = 16; +pub const TCP_THIN_DUPACK: u32 = 17; +pub const TCP_USER_TIMEOUT: u32 = 18; +pub const TCP_REPAIR: u32 = 19; +pub const TCP_REPAIR_QUEUE: u32 = 20; +pub const TCP_QUEUE_SEQ: u32 = 21; +pub const TCP_REPAIR_OPTIONS: u32 = 22; +pub const TCP_FASTOPEN: u32 = 23; +pub const TCP_TIMESTAMP: u32 = 24; +pub const TCP_NOTSENT_LOWAT: u32 = 25; +pub const TCP_CC_INFO: u32 = 26; +pub const TCP_SAVE_SYN: u32 = 27; +pub const TCP_SAVED_SYN: u32 = 28; +pub const TCP_REPAIR_WINDOW: u32 = 29; +pub const TCP_FASTOPEN_CONNECT: u32 = 30; +pub const TCP_ULP: u32 = 31; +pub const TCP_MD5SIG_EXT: u32 = 32; +pub const TCP_FASTOPEN_KEY: u32 = 33; +pub const TCP_FASTOPEN_NO_COOKIE: u32 = 34; +pub const TCP_ZEROCOPY_RECEIVE: u32 = 35; +pub const TCP_INQ: u32 = 36; +pub const TCP_CM_INQ: u32 = 36; +pub const TCP_TX_DELAY: u32 = 37; +pub const TCP_AO_ADD_KEY: u32 = 38; +pub const TCP_AO_DEL_KEY: u32 = 39; +pub const TCP_AO_INFO: u32 = 40; +pub const TCP_AO_GET_KEYS: u32 = 41; +pub const TCP_AO_REPAIR: u32 = 42; +pub const TCP_IS_MPTCP: u32 = 43; +pub const TCP_RTO_MAX_MS: u32 = 44; +pub const TCP_RTO_MIN_US: u32 = 45; +pub const TCP_DELACK_MAX_US: u32 = 46; +pub const TCP_REPAIR_ON: u32 = 1; +pub const TCP_REPAIR_OFF: u32 = 0; +pub const TCP_REPAIR_OFF_NO_WP: i32 = -1; +pub const TCPI_OPT_TIMESTAMPS: u32 = 1; +pub const TCPI_OPT_SACK: u32 = 2; +pub const TCPI_OPT_WSCALE: u32 = 4; +pub const TCPI_OPT_ECN: u32 = 8; +pub const TCPI_OPT_ECN_SEEN: u32 = 16; +pub const TCPI_OPT_SYN_DATA: u32 = 32; +pub const TCPI_OPT_USEC_TS: u32 = 64; +pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; +pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; +pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; +pub const TCP_AO_MAXKEYLEN: u32 = 80; +pub const TCP_AO_KEYF_IFINDEX: u32 = 1; +pub const TCP_AO_KEYF_EXCLUDE_OPT: u32 = 2; +pub const TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT: u32 = 1; +pub const UNIX_PATH_MAX: u32 = 108; +pub const IFNAMSIZ: u32 = 16; +pub const IFALIASZ: u32 = 256; +pub const ALTIFNAMSIZ: u32 = 128; +pub const GENERIC_HDLC_VERSION: u32 = 4; +pub const CLOCK_DEFAULT: u32 = 0; +pub const CLOCK_EXT: u32 = 1; +pub const CLOCK_INT: u32 = 2; +pub const CLOCK_TXINT: u32 = 3; +pub const CLOCK_TXFROMRX: u32 = 4; +pub const ENCODING_DEFAULT: u32 = 0; +pub const ENCODING_NRZ: u32 = 1; +pub const ENCODING_NRZI: u32 = 2; +pub const ENCODING_FM_MARK: u32 = 3; +pub const ENCODING_FM_SPACE: u32 = 4; +pub const ENCODING_MANCHESTER: u32 = 5; +pub const PARITY_DEFAULT: u32 = 0; +pub const PARITY_NONE: u32 = 1; +pub const PARITY_CRC16_PR0: u32 = 2; +pub const PARITY_CRC16_PR1: u32 = 3; +pub const PARITY_CRC16_PR0_CCITT: u32 = 4; +pub const PARITY_CRC16_PR1_CCITT: u32 = 5; +pub const PARITY_CRC32_PR0_CCITT: u32 = 6; +pub const PARITY_CRC32_PR1_CCITT: u32 = 7; +pub const LMI_DEFAULT: u32 = 0; +pub const LMI_NONE: u32 = 1; +pub const LMI_ANSI: u32 = 2; +pub const LMI_CCITT: u32 = 3; +pub const LMI_CISCO: u32 = 4; +pub const IF_GET_IFACE: u32 = 1; +pub const IF_GET_PROTO: u32 = 2; +pub const IF_IFACE_V35: u32 = 4096; +pub const IF_IFACE_V24: u32 = 4097; +pub const IF_IFACE_X21: u32 = 4098; +pub const IF_IFACE_T1: u32 = 4099; +pub const IF_IFACE_E1: u32 = 4100; +pub const IF_IFACE_SYNC_SERIAL: u32 = 4101; +pub const IF_IFACE_X21D: u32 = 4102; +pub const IF_PROTO_HDLC: u32 = 8192; +pub const IF_PROTO_PPP: u32 = 8193; +pub const IF_PROTO_CISCO: u32 = 8194; +pub const IF_PROTO_FR: u32 = 8195; +pub const IF_PROTO_FR_ADD_PVC: u32 = 8196; +pub const IF_PROTO_FR_DEL_PVC: u32 = 8197; +pub const IF_PROTO_X25: u32 = 8198; +pub const IF_PROTO_HDLC_ETH: u32 = 8199; +pub const IF_PROTO_FR_ADD_ETH_PVC: u32 = 8200; +pub const IF_PROTO_FR_DEL_ETH_PVC: u32 = 8201; +pub const IF_PROTO_FR_PVC: u32 = 8202; +pub const IF_PROTO_FR_ETH_PVC: u32 = 8203; +pub const IF_PROTO_RAW: u32 = 8204; +pub const IFHWADDRLEN: u32 = 6; +pub const NF_DROP: u32 = 0; +pub const NF_ACCEPT: u32 = 1; +pub const NF_STOLEN: u32 = 2; +pub const NF_QUEUE: u32 = 3; +pub const NF_REPEAT: u32 = 4; +pub const NF_STOP: u32 = 5; +pub const NF_MAX_VERDICT: u32 = 5; +pub const NF_VERDICT_MASK: u32 = 255; +pub const NF_VERDICT_FLAG_QUEUE_BYPASS: u32 = 32768; +pub const NF_VERDICT_QMASK: u32 = 4294901760; +pub const NF_VERDICT_QBITS: u32 = 16; +pub const NF_VERDICT_BITS: u32 = 16; +pub const NF_IP6_PRE_ROUTING: u32 = 0; +pub const NF_IP6_LOCAL_IN: u32 = 1; +pub const NF_IP6_FORWARD: u32 = 2; +pub const NF_IP6_LOCAL_OUT: u32 = 3; +pub const NF_IP6_POST_ROUTING: u32 = 4; +pub const NF_IP6_NUMHOOKS: u32 = 5; +pub const XT_FUNCTION_MAXNAMELEN: u32 = 30; +pub const XT_EXTENSION_MAXNAMELEN: u32 = 29; +pub const XT_TABLE_MAXNAMELEN: u32 = 32; +pub const XT_CONTINUE: u32 = 4294967295; +pub const XT_RETURN: i32 = -5; +pub const XT_STANDARD_TARGET: &[u8; 1] = b"\0"; +pub const XT_ERROR_TARGET: &[u8; 6] = b"ERROR\0"; +pub const XT_INV_PROTO: u32 = 64; +pub const IP6T_FUNCTION_MAXNAMELEN: u32 = 30; +pub const IP6T_TABLE_MAXNAMELEN: u32 = 32; +pub const IP6T_CONTINUE: u32 = 4294967295; +pub const IP6T_RETURN: i32 = -5; +pub const XT_TCP_INV_SRCPT: u32 = 1; +pub const XT_TCP_INV_DSTPT: u32 = 2; +pub const XT_TCP_INV_FLAGS: u32 = 4; +pub const XT_TCP_INV_OPTION: u32 = 8; +pub const XT_TCP_INV_MASK: u32 = 15; +pub const XT_UDP_INV_SRCPT: u32 = 1; +pub const XT_UDP_INV_DSTPT: u32 = 2; +pub const XT_UDP_INV_MASK: u32 = 3; +pub const IP6T_TCP_INV_SRCPT: u32 = 1; +pub const IP6T_TCP_INV_DSTPT: u32 = 2; +pub const IP6T_TCP_INV_FLAGS: u32 = 4; +pub const IP6T_TCP_INV_OPTION: u32 = 8; +pub const IP6T_TCP_INV_MASK: u32 = 15; +pub const IP6T_UDP_INV_SRCPT: u32 = 1; +pub const IP6T_UDP_INV_DSTPT: u32 = 2; +pub const IP6T_UDP_INV_MASK: u32 = 3; +pub const IP6T_STANDARD_TARGET: &[u8; 1] = b"\0"; +pub const IP6T_ERROR_TARGET: &[u8; 6] = b"ERROR\0"; +pub const IP6T_F_PROTO: u32 = 1; +pub const IP6T_F_TOS: u32 = 2; +pub const IP6T_F_GOTO: u32 = 4; +pub const IP6T_F_MASK: u32 = 7; +pub const IP6T_INV_VIA_IN: u32 = 1; +pub const IP6T_INV_VIA_OUT: u32 = 2; +pub const IP6T_INV_TOS: u32 = 4; +pub const IP6T_INV_SRCIP: u32 = 8; +pub const IP6T_INV_DSTIP: u32 = 16; +pub const IP6T_INV_FRAG: u32 = 32; +pub const IP6T_INV_PROTO: u32 = 64; +pub const IP6T_INV_MASK: u32 = 127; +pub const IP6T_BASE_CTL: u32 = 64; +pub const IP6T_SO_SET_REPLACE: u32 = 64; +pub const IP6T_SO_SET_ADD_COUNTERS: u32 = 65; +pub const IP6T_SO_SET_MAX: u32 = 65; +pub const IP6T_SO_GET_INFO: u32 = 64; +pub const IP6T_SO_GET_ENTRIES: u32 = 65; +pub const IP6T_SO_GET_REVISION_MATCH: u32 = 68; +pub const IP6T_SO_GET_REVISION_TARGET: u32 = 69; +pub const IP6T_SO_GET_MAX: u32 = 69; +pub const IP6T_SO_ORIGINAL_DST: u32 = 80; +pub const IP6T_ICMP_INV: u32 = 1; +pub const NF_IP_PRE_ROUTING: u32 = 0; +pub const NF_IP_LOCAL_IN: u32 = 1; +pub const NF_IP_FORWARD: u32 = 2; +pub const NF_IP_LOCAL_OUT: u32 = 3; +pub const NF_IP_POST_ROUTING: u32 = 4; +pub const NF_IP_NUMHOOKS: u32 = 5; +pub const SO_ORIGINAL_DST: u32 = 80; +pub const SHUT_RD: u32 = 0; +pub const SHUT_WR: u32 = 1; +pub const SHUT_RDWR: u32 = 2; +pub const SOCK_STREAM: u32 = 1; +pub const SOCK_DGRAM: u32 = 2; +pub const SOCK_RAW: u32 = 3; +pub const SOCK_RDM: u32 = 4; +pub const SOCK_SEQPACKET: u32 = 5; +pub const MSG_DONTWAIT: u32 = 64; +pub const AF_UNSPEC: u32 = 0; +pub const AF_UNIX: u32 = 1; +pub const AF_INET: u32 = 2; +pub const AF_AX25: u32 = 3; +pub const AF_IPX: u32 = 4; +pub const AF_APPLETALK: u32 = 5; +pub const AF_NETROM: u32 = 6; +pub const AF_BRIDGE: u32 = 7; +pub const AF_ATMPVC: u32 = 8; +pub const AF_X25: u32 = 9; +pub const AF_INET6: u32 = 10; +pub const AF_ROSE: u32 = 11; +pub const AF_DECnet: u32 = 12; +pub const AF_NETBEUI: u32 = 13; +pub const AF_SECURITY: u32 = 14; +pub const AF_KEY: u32 = 15; +pub const AF_NETLINK: u32 = 16; +pub const AF_PACKET: u32 = 17; +pub const AF_ASH: u32 = 18; +pub const AF_ECONET: u32 = 19; +pub const AF_ATMSVC: u32 = 20; +pub const AF_RDS: u32 = 21; +pub const AF_SNA: u32 = 22; +pub const AF_IRDA: u32 = 23; +pub const AF_PPPOX: u32 = 24; +pub const AF_WANPIPE: u32 = 25; +pub const AF_LLC: u32 = 26; +pub const AF_CAN: u32 = 29; +pub const AF_TIPC: u32 = 30; +pub const AF_BLUETOOTH: u32 = 31; +pub const AF_IUCV: u32 = 32; +pub const AF_RXRPC: u32 = 33; +pub const AF_ISDN: u32 = 34; +pub const AF_PHONET: u32 = 35; +pub const AF_IEEE802154: u32 = 36; +pub const AF_CAIF: u32 = 37; +pub const AF_ALG: u32 = 38; +pub const AF_NFC: u32 = 39; +pub const AF_VSOCK: u32 = 40; +pub const AF_KCM: u32 = 41; +pub const AF_QIPCRTR: u32 = 42; +pub const AF_SMC: u32 = 43; +pub const AF_XDP: u32 = 44; +pub const AF_MCTP: u32 = 45; +pub const AF_MAX: u32 = 46; +pub const MSG_OOB: u32 = 1; +pub const MSG_PEEK: u32 = 2; +pub const MSG_DONTROUTE: u32 = 4; +pub const MSG_CTRUNC: u32 = 8; +pub const MSG_PROBE: u32 = 16; +pub const MSG_TRUNC: u32 = 32; +pub const MSG_EOR: u32 = 128; +pub const MSG_WAITALL: u32 = 256; +pub const MSG_FIN: u32 = 512; +pub const MSG_SYN: u32 = 1024; +pub const MSG_CONFIRM: u32 = 2048; +pub const MSG_RST: u32 = 4096; +pub const MSG_ERRQUEUE: u32 = 8192; +pub const MSG_NOSIGNAL: u32 = 16384; +pub const MSG_MORE: u32 = 32768; +pub const MSG_CMSG_CLOEXEC: u32 = 1073741824; +pub const SCM_RIGHTS: u32 = 1; +pub const SCM_CREDENTIALS: u32 = 2; +pub const SCM_SECURITY: u32 = 3; +pub const SOL_IP: u32 = 0; +pub const SOL_TCP: u32 = 6; +pub const SOL_UDP: u32 = 17; +pub const SOL_IPV6: u32 = 41; +pub const SOL_ICMPV6: u32 = 58; +pub const SOL_SCTP: u32 = 132; +pub const SOL_UDPLITE: u32 = 136; +pub const SOL_RAW: u32 = 255; +pub const SOL_IPX: u32 = 256; +pub const SOL_AX25: u32 = 257; +pub const SOL_ATALK: u32 = 258; +pub const SOL_NETROM: u32 = 259; +pub const SOL_ROSE: u32 = 260; +pub const SOL_DECNET: u32 = 261; +pub const SOL_X25: u32 = 262; +pub const SOL_PACKET: u32 = 263; +pub const SOL_ATM: u32 = 264; +pub const SOL_AAL: u32 = 265; +pub const SOL_IRDA: u32 = 266; +pub const SOL_NETBEUI: u32 = 267; +pub const SOL_LLC: u32 = 268; +pub const SOL_DCCP: u32 = 269; +pub const SOL_NETLINK: u32 = 270; +pub const SOL_TIPC: u32 = 271; +pub const SOL_RXRPC: u32 = 272; +pub const SOL_PPPOL2TP: u32 = 273; +pub const SOL_BLUETOOTH: u32 = 274; +pub const SOL_PNPIPE: u32 = 275; +pub const SOL_RDS: u32 = 276; +pub const SOL_IUCV: u32 = 277; +pub const SOL_CAIF: u32 = 278; +pub const SOL_ALG: u32 = 279; +pub const SOL_NFC: u32 = 280; +pub const SOL_KCM: u32 = 281; +pub const SOL_TLS: u32 = 282; +pub const SOL_XDP: u32 = 283; +pub const SOL_MPTCP: u32 = 284; +pub const SOL_MCTP: u32 = 285; +pub const SOL_SMC: u32 = 286; +pub const IPPROTO_IP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IP; +pub const IPPROTO_ICMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ICMP; +pub const IPPROTO_IGMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IGMP; +pub const IPPROTO_IPIP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPIP; +pub const IPPROTO_TCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TCP; +pub const IPPROTO_EGP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_EGP; +pub const IPPROTO_PUP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PUP; +pub const IPPROTO_UDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDP; +pub const IPPROTO_IDP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IDP; +pub const IPPROTO_TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_TP; +pub const IPPROTO_DCCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_DCCP; +pub const IPPROTO_IPV6: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_IPV6; +pub const IPPROTO_RSVP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RSVP; +pub const IPPROTO_GRE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_GRE; +pub const IPPROTO_ESP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ESP; +pub const IPPROTO_AH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AH; +pub const IPPROTO_MTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MTP; +pub const IPPROTO_BEETPH: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_BEETPH; +pub const IPPROTO_ENCAP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ENCAP; +pub const IPPROTO_PIM: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_PIM; +pub const IPPROTO_COMP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_COMP; +pub const IPPROTO_L2TP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_L2TP; +pub const IPPROTO_SCTP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SCTP; +pub const IPPROTO_UDPLITE: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_UDPLITE; +pub const IPPROTO_MPLS: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPLS; +pub const IPPROTO_ETHERNET: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_ETHERNET; +pub const IPPROTO_AGGFRAG: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_AGGFRAG; +pub const IPPROTO_RAW: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_RAW; +pub const IPPROTO_SMC: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_SMC; +pub const IPPROTO_MPTCP: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MPTCP; +pub const IPPROTO_MAX: _bindgen_ty_1 = _bindgen_ty_1::IPPROTO_MAX; +pub const IPV4_DEVCONF_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORWARDING; +pub const IPV4_DEVCONF_MC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MC_FORWARDING; +pub const IPV4_DEVCONF_PROXY_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP; +pub const IPV4_DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_REDIRECTS; +pub const IPV4_DEVCONF_SECURE_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SECURE_REDIRECTS; +pub const IPV4_DEVCONF_SEND_REDIRECTS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SEND_REDIRECTS; +pub const IPV4_DEVCONF_SHARED_MEDIA: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SHARED_MEDIA; +pub const IPV4_DEVCONF_RP_FILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_RP_FILTER; +pub const IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE; +pub const IPV4_DEVCONF_BOOTP_RELAY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BOOTP_RELAY; +pub const IPV4_DEVCONF_LOG_MARTIANS: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_LOG_MARTIANS; +pub const IPV4_DEVCONF_TAG: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_TAG; +pub const IPV4_DEVCONF_ARPFILTER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARPFILTER; +pub const IPV4_DEVCONF_MEDIUM_ID: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_MEDIUM_ID; +pub const IPV4_DEVCONF_NOXFRM: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOXFRM; +pub const IPV4_DEVCONF_NOPOLICY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_NOPOLICY; +pub const IPV4_DEVCONF_FORCE_IGMP_VERSION: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_FORCE_IGMP_VERSION; +pub const IPV4_DEVCONF_ARP_ANNOUNCE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ANNOUNCE; +pub const IPV4_DEVCONF_ARP_IGNORE: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_IGNORE; +pub const IPV4_DEVCONF_PROMOTE_SECONDARIES: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROMOTE_SECONDARIES; +pub const IPV4_DEVCONF_ARP_ACCEPT: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_ACCEPT; +pub const IPV4_DEVCONF_ARP_NOTIFY: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_NOTIFY; +pub const IPV4_DEVCONF_ACCEPT_LOCAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ACCEPT_LOCAL; +pub const IPV4_DEVCONF_SRC_VMARK: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_SRC_VMARK; +pub const IPV4_DEVCONF_PROXY_ARP_PVLAN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_PROXY_ARP_PVLAN; +pub const IPV4_DEVCONF_ROUTE_LOCALNET: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ROUTE_LOCALNET; +pub const IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL; +pub const IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL; +pub const IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; +pub const IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; +pub const IPV4_DEVCONF_DROP_GRATUITOUS_ARP: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_DROP_GRATUITOUS_ARP; +pub const IPV4_DEVCONF_BC_FORWARDING: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_BC_FORWARDING; +pub const IPV4_DEVCONF_ARP_EVICT_NOCARRIER: _bindgen_ty_2 = _bindgen_ty_2::IPV4_DEVCONF_ARP_EVICT_NOCARRIER; +pub const __IPV4_DEVCONF_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IPV4_DEVCONF_MAX; +pub const DEVCONF_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORWARDING; +pub const DEVCONF_HOPLIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_HOPLIMIT; +pub const DEVCONF_MTU6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MTU6; +pub const DEVCONF_ACCEPT_RA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA; +pub const DEVCONF_ACCEPT_REDIRECTS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_REDIRECTS; +pub const DEVCONF_AUTOCONF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_AUTOCONF; +pub const DEVCONF_DAD_TRANSMITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DAD_TRANSMITS; +pub const DEVCONF_RTR_SOLICITS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICITS; +pub const DEVCONF_RTR_SOLICIT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_INTERVAL; +pub const DEVCONF_RTR_SOLICIT_DELAY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_DELAY; +pub const DEVCONF_USE_TEMPADDR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_TEMPADDR; +pub const DEVCONF_TEMP_VALID_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_VALID_LFT; +pub const DEVCONF_TEMP_PREFERED_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_TEMP_PREFERED_LFT; +pub const DEVCONF_REGEN_MAX_RETRY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_REGEN_MAX_RETRY; +pub const DEVCONF_MAX_DESYNC_FACTOR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_DESYNC_FACTOR; +pub const DEVCONF_MAX_ADDRESSES: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX_ADDRESSES; +pub const DEVCONF_FORCE_MLD_VERSION: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_MLD_VERSION; +pub const DEVCONF_ACCEPT_RA_DEFRTR: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_DEFRTR; +pub const DEVCONF_ACCEPT_RA_PINFO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_PINFO; +pub const DEVCONF_ACCEPT_RA_RTR_PREF: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RTR_PREF; +pub const DEVCONF_RTR_PROBE_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_PROBE_INTERVAL; +pub const DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN; +pub const DEVCONF_PROXY_NDP: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_PROXY_NDP; +pub const DEVCONF_OPTIMISTIC_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_OPTIMISTIC_DAD; +pub const DEVCONF_ACCEPT_SOURCE_ROUTE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_SOURCE_ROUTE; +pub const DEVCONF_MC_FORWARDING: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MC_FORWARDING; +pub const DEVCONF_DISABLE_IPV6: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_IPV6; +pub const DEVCONF_ACCEPT_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_DAD; +pub const DEVCONF_FORCE_TLLAO: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_FORCE_TLLAO; +pub const DEVCONF_NDISC_NOTIFY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_NOTIFY; +pub const DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL; +pub const DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL; +pub const DEVCONF_SUPPRESS_FRAG_NDISC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SUPPRESS_FRAG_NDISC; +pub const DEVCONF_ACCEPT_RA_FROM_LOCAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_FROM_LOCAL; +pub const DEVCONF_USE_OPTIMISTIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OPTIMISTIC; +pub const DEVCONF_ACCEPT_RA_MTU: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MTU; +pub const DEVCONF_STABLE_SECRET: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_STABLE_SECRET; +pub const DEVCONF_USE_OIF_ADDRS_ONLY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_USE_OIF_ADDRS_ONLY; +pub const DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT; +pub const DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN; +pub const DEVCONF_DROP_UNICAST_IN_L2_MULTICAST: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNICAST_IN_L2_MULTICAST; +pub const DEVCONF_DROP_UNSOLICITED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DROP_UNSOLICITED_NA; +pub const DEVCONF_KEEP_ADDR_ON_DOWN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_KEEP_ADDR_ON_DOWN; +pub const DEVCONF_RTR_SOLICIT_MAX_INTERVAL: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RTR_SOLICIT_MAX_INTERVAL; +pub const DEVCONF_SEG6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_ENABLED; +pub const DEVCONF_SEG6_REQUIRE_HMAC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_SEG6_REQUIRE_HMAC; +pub const DEVCONF_ENHANCED_DAD: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ENHANCED_DAD; +pub const DEVCONF_ADDR_GEN_MODE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ADDR_GEN_MODE; +pub const DEVCONF_DISABLE_POLICY: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_DISABLE_POLICY; +pub const DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN; +pub const DEVCONF_NDISC_TCLASS: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_TCLASS; +pub const DEVCONF_RPL_SEG_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RPL_SEG_ENABLED; +pub const DEVCONF_RA_DEFRTR_METRIC: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_RA_DEFRTR_METRIC; +pub const DEVCONF_IOAM6_ENABLED: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ENABLED; +pub const DEVCONF_IOAM6_ID: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID; +pub const DEVCONF_IOAM6_ID_WIDE: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_IOAM6_ID_WIDE; +pub const DEVCONF_NDISC_EVICT_NOCARRIER: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_NDISC_EVICT_NOCARRIER; +pub const DEVCONF_ACCEPT_UNTRACKED_NA: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_UNTRACKED_NA; +pub const DEVCONF_ACCEPT_RA_MIN_LFT: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_ACCEPT_RA_MIN_LFT; +pub const DEVCONF_MAX: _bindgen_ty_3 = _bindgen_ty_3::DEVCONF_MAX; +pub const TCP_FLAG_AE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_AE; +pub const TCP_FLAG_CWR: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_CWR; +pub const TCP_FLAG_ECE: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ECE; +pub const TCP_FLAG_URG: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_URG; +pub const TCP_FLAG_ACK: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_ACK; +pub const TCP_FLAG_PSH: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_PSH; +pub const TCP_FLAG_RST: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_RST; +pub const TCP_FLAG_SYN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_SYN; +pub const TCP_FLAG_FIN: _bindgen_ty_4 = _bindgen_ty_4::TCP_FLAG_FIN; +pub const TCP_RESERVED_BITS: _bindgen_ty_4 = _bindgen_ty_4::TCP_RESERVED_BITS; +pub const TCP_DATA_OFFSET: _bindgen_ty_4 = _bindgen_ty_4::TCP_DATA_OFFSET; +pub const TCP_NO_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_NO_QUEUE; +pub const TCP_RECV_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_RECV_QUEUE; +pub const TCP_SEND_QUEUE: _bindgen_ty_5 = _bindgen_ty_5::TCP_SEND_QUEUE; +pub const TCP_QUEUES_NR: _bindgen_ty_5 = _bindgen_ty_5::TCP_QUEUES_NR; +pub const TCP_NLA_PAD: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PAD; +pub const TCP_NLA_BUSY: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BUSY; +pub const TCP_NLA_RWND_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RWND_LIMITED; +pub const TCP_NLA_SNDBUF_LIMITED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDBUF_LIMITED; +pub const TCP_NLA_DATA_SEGS_OUT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DATA_SEGS_OUT; +pub const TCP_NLA_TOTAL_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TOTAL_RETRANS; +pub const TCP_NLA_PACING_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_PACING_RATE; +pub const TCP_NLA_DELIVERY_RATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE; +pub const TCP_NLA_SND_CWND: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_CWND; +pub const TCP_NLA_REORDERING: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORDERING; +pub const TCP_NLA_MIN_RTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_MIN_RTT; +pub const TCP_NLA_RECUR_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_RECUR_RETRANS; +pub const TCP_NLA_DELIVERY_RATE_APP_LMT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERY_RATE_APP_LMT; +pub const TCP_NLA_SNDQ_SIZE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SNDQ_SIZE; +pub const TCP_NLA_CA_STATE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_CA_STATE; +pub const TCP_NLA_SND_SSTHRESH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SND_SSTHRESH; +pub const TCP_NLA_DELIVERED: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED; +pub const TCP_NLA_DELIVERED_CE: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DELIVERED_CE; +pub const TCP_NLA_BYTES_SENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_SENT; +pub const TCP_NLA_BYTES_RETRANS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_RETRANS; +pub const TCP_NLA_DSACK_DUPS: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_DSACK_DUPS; +pub const TCP_NLA_REORD_SEEN: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REORD_SEEN; +pub const TCP_NLA_SRTT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_SRTT; +pub const TCP_NLA_TIMEOUT_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TIMEOUT_REHASH; +pub const TCP_NLA_BYTES_NOTSENT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_BYTES_NOTSENT; +pub const TCP_NLA_EDT: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_EDT; +pub const TCP_NLA_TTL: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_TTL; +pub const TCP_NLA_REHASH: _bindgen_ty_6 = _bindgen_ty_6::TCP_NLA_REHASH; +pub const IF_OPER_UNKNOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UNKNOWN; +pub const IF_OPER_NOTPRESENT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_NOTPRESENT; +pub const IF_OPER_DOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DOWN; +pub const IF_OPER_LOWERLAYERDOWN: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_LOWERLAYERDOWN; +pub const IF_OPER_TESTING: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_TESTING; +pub const IF_OPER_DORMANT: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_DORMANT; +pub const IF_OPER_UP: _bindgen_ty_7 = _bindgen_ty_7::IF_OPER_UP; +pub const IF_LINK_MODE_DEFAULT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DEFAULT; +pub const IF_LINK_MODE_DORMANT: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_DORMANT; +pub const IF_LINK_MODE_TESTING: _bindgen_ty_8 = _bindgen_ty_8::IF_LINK_MODE_TESTING; +pub const NFPROTO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_UNSPEC; +pub const NFPROTO_INET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_INET; +pub const NFPROTO_IPV4: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV4; +pub const NFPROTO_ARP: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_ARP; +pub const NFPROTO_NETDEV: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NETDEV; +pub const NFPROTO_BRIDGE: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_BRIDGE; +pub const NFPROTO_IPV6: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_IPV6; +pub const NFPROTO_DECNET: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_DECNET; +pub const NFPROTO_NUMPROTO: _bindgen_ty_9 = _bindgen_ty_9::NFPROTO_NUMPROTO; +pub const SOF_TIMESTAMPING_TX_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_HARDWARE; +pub const SOF_TIMESTAMPING_TX_SOFTWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_SOFTWARE; +pub const SOF_TIMESTAMPING_RX_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_RX_HARDWARE; +pub const SOF_TIMESTAMPING_RX_SOFTWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_RX_SOFTWARE; +pub const SOF_TIMESTAMPING_SOFTWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_SOFTWARE; +pub const SOF_TIMESTAMPING_SYS_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_SYS_HARDWARE; +pub const SOF_TIMESTAMPING_RAW_HARDWARE: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_RAW_HARDWARE; +pub const SOF_TIMESTAMPING_OPT_ID: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_ID; +pub const SOF_TIMESTAMPING_TX_SCHED: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_SCHED; +pub const SOF_TIMESTAMPING_TX_ACK: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_ACK; +pub const SOF_TIMESTAMPING_OPT_CMSG: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_CMSG; +pub const SOF_TIMESTAMPING_OPT_TSONLY: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_TSONLY; +pub const SOF_TIMESTAMPING_OPT_STATS: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_STATS; +pub const SOF_TIMESTAMPING_OPT_PKTINFO: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_PKTINFO; +pub const SOF_TIMESTAMPING_OPT_TX_SWHW: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_TX_SWHW; +pub const SOF_TIMESTAMPING_BIND_PHC: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_BIND_PHC; +pub const SOF_TIMESTAMPING_OPT_ID_TCP: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_ID_TCP; +pub const SOF_TIMESTAMPING_OPT_RX_FILTER: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_OPT_RX_FILTER; +pub const SOF_TIMESTAMPING_TX_COMPLETION: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_COMPLETION; +pub const SOF_TIMESTAMPING_LAST: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_TX_COMPLETION; +pub const SOF_TIMESTAMPING_MASK: _bindgen_ty_10 = _bindgen_ty_10::SOF_TIMESTAMPING_MASK; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +IPPROTO_IP = 0, +IPPROTO_ICMP = 1, +IPPROTO_IGMP = 2, +IPPROTO_IPIP = 4, +IPPROTO_TCP = 6, +IPPROTO_EGP = 8, +IPPROTO_PUP = 12, +IPPROTO_UDP = 17, +IPPROTO_IDP = 22, +IPPROTO_TP = 29, +IPPROTO_DCCP = 33, +IPPROTO_IPV6 = 41, +IPPROTO_RSVP = 46, +IPPROTO_GRE = 47, +IPPROTO_ESP = 50, +IPPROTO_AH = 51, +IPPROTO_MTP = 92, +IPPROTO_BEETPH = 94, +IPPROTO_ENCAP = 98, +IPPROTO_PIM = 103, +IPPROTO_COMP = 108, +IPPROTO_L2TP = 115, +IPPROTO_SCTP = 132, +IPPROTO_UDPLITE = 136, +IPPROTO_MPLS = 137, +IPPROTO_ETHERNET = 143, +IPPROTO_AGGFRAG = 144, +IPPROTO_RAW = 255, +IPPROTO_SMC = 256, +IPPROTO_MPTCP = 262, +IPPROTO_MAX = 263, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IPV4_DEVCONF_FORWARDING = 1, +IPV4_DEVCONF_MC_FORWARDING = 2, +IPV4_DEVCONF_PROXY_ARP = 3, +IPV4_DEVCONF_ACCEPT_REDIRECTS = 4, +IPV4_DEVCONF_SECURE_REDIRECTS = 5, +IPV4_DEVCONF_SEND_REDIRECTS = 6, +IPV4_DEVCONF_SHARED_MEDIA = 7, +IPV4_DEVCONF_RP_FILTER = 8, +IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE = 9, +IPV4_DEVCONF_BOOTP_RELAY = 10, +IPV4_DEVCONF_LOG_MARTIANS = 11, +IPV4_DEVCONF_TAG = 12, +IPV4_DEVCONF_ARPFILTER = 13, +IPV4_DEVCONF_MEDIUM_ID = 14, +IPV4_DEVCONF_NOXFRM = 15, +IPV4_DEVCONF_NOPOLICY = 16, +IPV4_DEVCONF_FORCE_IGMP_VERSION = 17, +IPV4_DEVCONF_ARP_ANNOUNCE = 18, +IPV4_DEVCONF_ARP_IGNORE = 19, +IPV4_DEVCONF_PROMOTE_SECONDARIES = 20, +IPV4_DEVCONF_ARP_ACCEPT = 21, +IPV4_DEVCONF_ARP_NOTIFY = 22, +IPV4_DEVCONF_ACCEPT_LOCAL = 23, +IPV4_DEVCONF_SRC_VMARK = 24, +IPV4_DEVCONF_PROXY_ARP_PVLAN = 25, +IPV4_DEVCONF_ROUTE_LOCALNET = 26, +IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL = 27, +IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL = 28, +IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 29, +IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 30, +IPV4_DEVCONF_DROP_GRATUITOUS_ARP = 31, +IPV4_DEVCONF_BC_FORWARDING = 32, +IPV4_DEVCONF_ARP_EVICT_NOCARRIER = 33, +__IPV4_DEVCONF_MAX = 34, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +DEVCONF_FORWARDING = 0, +DEVCONF_HOPLIMIT = 1, +DEVCONF_MTU6 = 2, +DEVCONF_ACCEPT_RA = 3, +DEVCONF_ACCEPT_REDIRECTS = 4, +DEVCONF_AUTOCONF = 5, +DEVCONF_DAD_TRANSMITS = 6, +DEVCONF_RTR_SOLICITS = 7, +DEVCONF_RTR_SOLICIT_INTERVAL = 8, +DEVCONF_RTR_SOLICIT_DELAY = 9, +DEVCONF_USE_TEMPADDR = 10, +DEVCONF_TEMP_VALID_LFT = 11, +DEVCONF_TEMP_PREFERED_LFT = 12, +DEVCONF_REGEN_MAX_RETRY = 13, +DEVCONF_MAX_DESYNC_FACTOR = 14, +DEVCONF_MAX_ADDRESSES = 15, +DEVCONF_FORCE_MLD_VERSION = 16, +DEVCONF_ACCEPT_RA_DEFRTR = 17, +DEVCONF_ACCEPT_RA_PINFO = 18, +DEVCONF_ACCEPT_RA_RTR_PREF = 19, +DEVCONF_RTR_PROBE_INTERVAL = 20, +DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN = 21, +DEVCONF_PROXY_NDP = 22, +DEVCONF_OPTIMISTIC_DAD = 23, +DEVCONF_ACCEPT_SOURCE_ROUTE = 24, +DEVCONF_MC_FORWARDING = 25, +DEVCONF_DISABLE_IPV6 = 26, +DEVCONF_ACCEPT_DAD = 27, +DEVCONF_FORCE_TLLAO = 28, +DEVCONF_NDISC_NOTIFY = 29, +DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL = 30, +DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL = 31, +DEVCONF_SUPPRESS_FRAG_NDISC = 32, +DEVCONF_ACCEPT_RA_FROM_LOCAL = 33, +DEVCONF_USE_OPTIMISTIC = 34, +DEVCONF_ACCEPT_RA_MTU = 35, +DEVCONF_STABLE_SECRET = 36, +DEVCONF_USE_OIF_ADDRS_ONLY = 37, +DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT = 38, +DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN = 39, +DEVCONF_DROP_UNICAST_IN_L2_MULTICAST = 40, +DEVCONF_DROP_UNSOLICITED_NA = 41, +DEVCONF_KEEP_ADDR_ON_DOWN = 42, +DEVCONF_RTR_SOLICIT_MAX_INTERVAL = 43, +DEVCONF_SEG6_ENABLED = 44, +DEVCONF_SEG6_REQUIRE_HMAC = 45, +DEVCONF_ENHANCED_DAD = 46, +DEVCONF_ADDR_GEN_MODE = 47, +DEVCONF_DISABLE_POLICY = 48, +DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN = 49, +DEVCONF_NDISC_TCLASS = 50, +DEVCONF_RPL_SEG_ENABLED = 51, +DEVCONF_RA_DEFRTR_METRIC = 52, +DEVCONF_IOAM6_ENABLED = 53, +DEVCONF_IOAM6_ID = 54, +DEVCONF_IOAM6_ID_WIDE = 55, +DEVCONF_NDISC_EVICT_NOCARRIER = 56, +DEVCONF_ACCEPT_UNTRACKED_NA = 57, +DEVCONF_ACCEPT_RA_MIN_LFT = 58, +DEVCONF_MAX = 59, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum socket_state { +SS_FREE = 0, +SS_UNCONNECTED = 1, +SS_CONNECTING = 2, +SS_CONNECTED = 3, +SS_DISCONNECTING = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +TCP_FLAG_AE = 1, +TCP_FLAG_CWR = 32768, +TCP_FLAG_ECE = 16384, +TCP_FLAG_URG = 8192, +TCP_FLAG_ACK = 4096, +TCP_FLAG_PSH = 2048, +TCP_FLAG_RST = 1024, +TCP_FLAG_SYN = 512, +TCP_FLAG_FIN = 256, +TCP_RESERVED_BITS = 14, +TCP_DATA_OFFSET = 240, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_5 { +TCP_NO_QUEUE = 0, +TCP_RECV_QUEUE = 1, +TCP_SEND_QUEUE = 2, +TCP_QUEUES_NR = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tcp_fastopen_client_fail { +TFO_STATUS_UNSPEC = 0, +TFO_COOKIE_UNAVAILABLE = 1, +TFO_DATA_NOT_ACKED = 2, +TFO_SYN_RETRANSMITTED = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum tcp_ca_state { +TCP_CA_Open = 0, +TCP_CA_Disorder = 1, +TCP_CA_CWR = 2, +TCP_CA_Recovery = 3, +TCP_CA_Loss = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_6 { +TCP_NLA_PAD = 0, +TCP_NLA_BUSY = 1, +TCP_NLA_RWND_LIMITED = 2, +TCP_NLA_SNDBUF_LIMITED = 3, +TCP_NLA_DATA_SEGS_OUT = 4, +TCP_NLA_TOTAL_RETRANS = 5, +TCP_NLA_PACING_RATE = 6, +TCP_NLA_DELIVERY_RATE = 7, +TCP_NLA_SND_CWND = 8, +TCP_NLA_REORDERING = 9, +TCP_NLA_MIN_RTT = 10, +TCP_NLA_RECUR_RETRANS = 11, +TCP_NLA_DELIVERY_RATE_APP_LMT = 12, +TCP_NLA_SNDQ_SIZE = 13, +TCP_NLA_CA_STATE = 14, +TCP_NLA_SND_SSTHRESH = 15, +TCP_NLA_DELIVERED = 16, +TCP_NLA_DELIVERED_CE = 17, +TCP_NLA_BYTES_SENT = 18, +TCP_NLA_BYTES_RETRANS = 19, +TCP_NLA_DSACK_DUPS = 20, +TCP_NLA_REORD_SEEN = 21, +TCP_NLA_SRTT = 22, +TCP_NLA_TIMEOUT_REHASH = 23, +TCP_NLA_BYTES_NOTSENT = 24, +TCP_NLA_EDT = 25, +TCP_NLA_TTL = 26, +TCP_NLA_REHASH = 27, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum net_device_flags { +IFF_UP = 1, +IFF_BROADCAST = 2, +IFF_DEBUG = 4, +IFF_LOOPBACK = 8, +IFF_POINTOPOINT = 16, +IFF_NOTRAILERS = 32, +IFF_RUNNING = 64, +IFF_NOARP = 128, +IFF_PROMISC = 256, +IFF_ALLMULTI = 512, +IFF_MASTER = 1024, +IFF_SLAVE = 2048, +IFF_MULTICAST = 4096, +IFF_PORTSEL = 8192, +IFF_AUTOMEDIA = 16384, +IFF_DYNAMIC = 32768, +IFF_LOWER_UP = 65536, +IFF_DORMANT = 131072, +IFF_ECHO = 262144, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_7 { +IF_OPER_UNKNOWN = 0, +IF_OPER_NOTPRESENT = 1, +IF_OPER_DOWN = 2, +IF_OPER_LOWERLAYERDOWN = 3, +IF_OPER_TESTING = 4, +IF_OPER_DORMANT = 5, +IF_OPER_UP = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_8 { +IF_LINK_MODE_DEFAULT = 0, +IF_LINK_MODE_DORMANT = 1, +IF_LINK_MODE_TESTING = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_inet_hooks { +NF_INET_PRE_ROUTING = 0, +NF_INET_LOCAL_IN = 1, +NF_INET_FORWARD = 2, +NF_INET_LOCAL_OUT = 3, +NF_INET_POST_ROUTING = 4, +NF_INET_NUMHOOKS = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_dev_hooks { +NF_NETDEV_INGRESS = 0, +NF_NETDEV_EGRESS = 1, +NF_NETDEV_NUMHOOKS = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_9 { +NFPROTO_UNSPEC = 0, +NFPROTO_INET = 1, +NFPROTO_IPV4 = 2, +NFPROTO_ARP = 3, +NFPROTO_NETDEV = 5, +NFPROTO_BRIDGE = 7, +NFPROTO_IPV6 = 10, +NFPROTO_DECNET = 12, +NFPROTO_NUMPROTO = 13, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_ip6_hook_priorities { +NF_IP6_PRI_FIRST = -2147483648, +NF_IP6_PRI_RAW_BEFORE_DEFRAG = -450, +NF_IP6_PRI_CONNTRACK_DEFRAG = -400, +NF_IP6_PRI_RAW = -300, +NF_IP6_PRI_SELINUX_FIRST = -225, +NF_IP6_PRI_CONNTRACK = -200, +NF_IP6_PRI_MANGLE = -150, +NF_IP6_PRI_NAT_DST = -100, +NF_IP6_PRI_FILTER = 0, +NF_IP6_PRI_SECURITY = 50, +NF_IP6_PRI_NAT_SRC = 100, +NF_IP6_PRI_SELINUX_LAST = 225, +NF_IP6_PRI_CONNTRACK_HELPER = 300, +NF_IP6_PRI_LAST = 2147483647, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nf_ip_hook_priorities { +NF_IP_PRI_FIRST = -2147483648, +NF_IP_PRI_RAW_BEFORE_DEFRAG = -450, +NF_IP_PRI_CONNTRACK_DEFRAG = -400, +NF_IP_PRI_RAW = -300, +NF_IP_PRI_SELINUX_FIRST = -225, +NF_IP_PRI_CONNTRACK = -200, +NF_IP_PRI_MANGLE = -150, +NF_IP_PRI_NAT_DST = -100, +NF_IP_PRI_FILTER = 0, +NF_IP_PRI_SECURITY = 50, +NF_IP_PRI_NAT_SRC = 100, +NF_IP_PRI_SELINUX_LAST = 225, +NF_IP_PRI_CONNTRACK_HELPER = 300, +NF_IP_PRI_CONNTRACK_CONFIRM = 2147483647, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_provider_qualifier { +HWTSTAMP_PROVIDER_QUALIFIER_PRECISE = 0, +HWTSTAMP_PROVIDER_QUALIFIER_APPROX = 1, +HWTSTAMP_PROVIDER_QUALIFIER_CNT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_10 { +SOF_TIMESTAMPING_TX_HARDWARE = 1, +SOF_TIMESTAMPING_TX_SOFTWARE = 2, +SOF_TIMESTAMPING_RX_HARDWARE = 4, +SOF_TIMESTAMPING_RX_SOFTWARE = 8, +SOF_TIMESTAMPING_SOFTWARE = 16, +SOF_TIMESTAMPING_SYS_HARDWARE = 32, +SOF_TIMESTAMPING_RAW_HARDWARE = 64, +SOF_TIMESTAMPING_OPT_ID = 128, +SOF_TIMESTAMPING_TX_SCHED = 256, +SOF_TIMESTAMPING_TX_ACK = 512, +SOF_TIMESTAMPING_OPT_CMSG = 1024, +SOF_TIMESTAMPING_OPT_TSONLY = 2048, +SOF_TIMESTAMPING_OPT_STATS = 4096, +SOF_TIMESTAMPING_OPT_PKTINFO = 8192, +SOF_TIMESTAMPING_OPT_TX_SWHW = 16384, +SOF_TIMESTAMPING_BIND_PHC = 32768, +SOF_TIMESTAMPING_OPT_ID_TCP = 65536, +SOF_TIMESTAMPING_OPT_RX_FILTER = 131072, +SOF_TIMESTAMPING_TX_COMPLETION = 262144, +SOF_TIMESTAMPING_MASK = 524287, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_flags { +HWTSTAMP_FLAG_BONDED_PHC_INDEX = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_tx_types { +HWTSTAMP_TX_OFF = 0, +HWTSTAMP_TX_ON = 1, +HWTSTAMP_TX_ONESTEP_SYNC = 2, +HWTSTAMP_TX_ONESTEP_P2P = 3, +__HWTSTAMP_TX_CNT = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum hwtstamp_rx_filters { +HWTSTAMP_FILTER_NONE = 0, +HWTSTAMP_FILTER_ALL = 1, +HWTSTAMP_FILTER_SOME = 2, +HWTSTAMP_FILTER_PTP_V1_L4_EVENT = 3, +HWTSTAMP_FILTER_PTP_V1_L4_SYNC = 4, +HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ = 5, +HWTSTAMP_FILTER_PTP_V2_L4_EVENT = 6, +HWTSTAMP_FILTER_PTP_V2_L4_SYNC = 7, +HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ = 8, +HWTSTAMP_FILTER_PTP_V2_L2_EVENT = 9, +HWTSTAMP_FILTER_PTP_V2_L2_SYNC = 10, +HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ = 11, +HWTSTAMP_FILTER_PTP_V2_EVENT = 12, +HWTSTAMP_FILTER_PTP_V2_SYNC = 13, +HWTSTAMP_FILTER_PTP_V2_DELAY_REQ = 14, +HWTSTAMP_FILTER_NTP_ALL = 15, +__HWTSTAMP_FILTER_CNT = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum txtime_flags { +SOF_TXTIME_DEADLINE_MODE = 1, +SOF_TXTIME_REPORT_ERRORS = 2, +SOF_TXTIME_FLAGS_MASK = 3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __kernel_sockaddr_storage__bindgen_ty_1 { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, +pub __align: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union iphdr__bindgen_ty_1 { +pub __bindgen_anon_1: iphdr__bindgen_ty_1__bindgen_ty_1, +pub addrs: iphdr__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union in6_addr__bindgen_ty_1 { +pub u6_addr8: [__u8; 16usize], +pub u6_addr16: [__be16; 8usize], +pub u6_addr32: [__be32; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ipv6hdr__bindgen_ty_1 { +pub __bindgen_anon_1: ipv6hdr__bindgen_ty_1__bindgen_ty_1, +pub addrs: ipv6hdr__bindgen_ty_1__bindgen_ty_2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union tcp_word_hdr { +pub hdr: tcphdr, +pub words: [__be32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union if_settings__bindgen_ty_1 { +pub raw_hdlc: *mut raw_hdlc_proto, +pub cisco: *mut cisco_proto, +pub fr: *mut fr_proto, +pub fr_pvc: *mut fr_proto_pvc, +pub fr_pvc_info: *mut fr_proto_pvc_info, +pub x25: *mut x25_hdlc_proto, +pub sync: *mut sync_serial_settings, +pub te1: *mut te1_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_1 { +pub ifrn_name: [crate::ctypes::c_char; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifreq__bindgen_ty_2 { +pub ifru_addr: sockaddr, +pub ifru_dstaddr: sockaddr, +pub ifru_broadaddr: sockaddr, +pub ifru_netmask: sockaddr, +pub ifru_hwaddr: sockaddr, +pub ifru_flags: crate::ctypes::c_short, +pub ifru_ivalue: crate::ctypes::c_int, +pub ifru_mtu: crate::ctypes::c_int, +pub ifru_map: ifmap, +pub ifru_slave: [crate::ctypes::c_char; 16usize], +pub ifru_newname: [crate::ctypes::c_char; 16usize], +pub ifru_data: *mut crate::ctypes::c_void, +pub ifru_settings: if_settings, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ifconf__bindgen_ty_1 { +pub ifcu_buf: *mut crate::ctypes::c_char, +pub ifcu_req: *mut ifreq, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union nf_inet_addr { +pub all: [__u32; 4usize], +pub ip: __be32, +pub ip6: [__be32; 4usize], +pub in_: in_addr, +pub in6: in6_addr, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union xt_entry_match__bindgen_ty_1 { +pub user: xt_entry_match__bindgen_ty_1__bindgen_ty_1, +pub kernel: xt_entry_match__bindgen_ty_1__bindgen_ty_2, +pub match_size: __u16, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union xt_entry_target__bindgen_ty_1 { +pub user: xt_entry_target__bindgen_ty_1__bindgen_ty_1, +pub kernel: xt_entry_target__bindgen_ty_1__bindgen_ty_2, +pub target_size: __u16, +} +impl __BindgenBitfieldUnit { +#[inline] +pub const fn new(storage: Storage) -> Self { +Self { storage } +} +} +impl __BindgenBitfieldUnit +where +Storage: AsRef<[u8]> + AsMut<[u8]>, +{ +#[inline] +fn extract_bit(byte: u8, index: usize) -> bool { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +byte & mask == mask +} +#[inline] +pub fn get_bit(&self, index: usize) -> bool { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = self.storage.as_ref()[byte_index]; +Self::extract_bit(byte, index) +} +#[inline] +pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize) }; +Self::extract_bit(byte, index) +} +#[inline] +fn change_bit(byte: u8, index: usize, val: bool) -> u8 { +let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; +let mask = 1 << bit_index; +if val { +byte | mask +} else { +byte & !mask +} +} +#[inline] +pub fn set_bit(&mut self, index: usize, val: bool) { +debug_assert!(index / 8 < self.storage.as_ref().len()); +let byte_index = index / 8; +let byte = &mut self.storage.as_mut()[byte_index]; +*byte = Self::change_bit(*byte, index, val); +} +#[inline] +pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { +debug_assert!(index / 8 < core::mem::size_of::()); +let byte_index = index / 8; +let byte = unsafe { (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize) }; +unsafe { *byte = Self::change_bit(*byte, index, val) }; +} +#[inline] +pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if self.get_bit(i + bit_offset) { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +let mut val = 0; +for i in 0..(bit_width as usize) { +if unsafe { Self::raw_get_bit(this, i + bit_offset) } { +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +val |= 1 << index; +} +} +val +} +#[inline] +pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +self.set_bit(index + bit_offset, val_bit_is_set); +} +} +#[inline] +pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { +debug_assert!(bit_width <= 64); +debug_assert!(bit_offset / 8 < core::mem::size_of::()); +debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); +for i in 0..(bit_width as usize) { +let mask = 1 << i; +let val_bit_is_set = val & mask == mask; +let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; +unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +} +} +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl __BindgenUnionField { +#[inline] +pub const fn new() -> Self { +__BindgenUnionField(::core::marker::PhantomData) +} +#[inline] +pub unsafe fn as_ref(&self) -> &T { +::core::mem::transmute(self) +} +#[inline] +pub unsafe fn as_mut(&mut self) -> &mut T { +::core::mem::transmute(self) +} +} +impl ::core::default::Default for __BindgenUnionField { +#[inline] +fn default() -> Self { +Self::new() +} +} +impl ::core::clone::Clone for __BindgenUnionField { +#[inline] +fn clone(&self) -> Self { +*self +} +} +impl ::core::marker::Copy for __BindgenUnionField {} +impl ::core::fmt::Debug for __BindgenUnionField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__BindgenUnionField") +} +} +impl ::core::hash::Hash for __BindgenUnionField { +fn hash(&self, _state: &mut H) {} +} +impl ::core::cmp::PartialEq for __BindgenUnionField { +fn eq(&self, _other: &__BindgenUnionField) -> bool { +true +} +} +impl ::core::cmp::Eq for __BindgenUnionField {} +impl iphdr { +#[inline] +pub fn ihl(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +} +#[inline] +pub fn set_ihl(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn ihl_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +} +} +#[inline] +pub fn version(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +} +#[inline] +pub fn set_version(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn version_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 4u8, { +let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; +ihl as u64 +}); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let version: u8 = unsafe { ::core::mem::transmute(version) }; +version as u64 +}); +__bindgen_bitfield_unit +} +} +impl ipv6hdr { +#[inline] +pub fn priority(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +} +#[inline] +pub fn set_priority(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn priority_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +} +} +#[inline] +pub fn version(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +} +#[inline] +pub fn set_version(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn version_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 4u8, { +let priority: u8 = unsafe { ::core::mem::transmute(priority) }; +priority as u64 +}); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let version: u8 = unsafe { ::core::mem::transmute(version) }; +version as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcphdr { +#[inline] +pub fn ae(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +} +#[inline] +pub fn set_ae(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ae_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn res1(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 3u8) as u16) } +} +#[inline] +pub fn set_res1(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 3u8, val as u64) +} +} +#[inline] +pub unsafe fn res1_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 3u8) as u16) } +} +#[inline] +pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 3u8, val as u64) +} +} +#[inline] +pub fn doff(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } +} +#[inline] +pub fn set_doff(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn doff_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u16) } +} +#[inline] +pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn fin(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +} +#[inline] +pub fn set_fin(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(8usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn fin_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +} +} +#[inline] +pub fn syn(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +} +#[inline] +pub fn set_syn(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(9usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn syn_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +} +} +#[inline] +pub fn rst(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +} +#[inline] +pub fn set_rst(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(10usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn rst_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +} +} +#[inline] +pub fn psh(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +} +#[inline] +pub fn set_psh(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(11usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn psh_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +} +} +#[inline] +pub fn ack(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +} +#[inline] +pub fn set_ack(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(12usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ack_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +} +} +#[inline] +pub fn urg(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +} +#[inline] +pub fn set_urg(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(13usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn urg_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +} +} +#[inline] +pub fn ece(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +} +#[inline] +pub fn set_ece(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(14usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ece_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +} +} +#[inline] +pub fn cwr(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +} +#[inline] +pub fn set_cwr(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(15usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn cwr_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(ae: __u16, res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let ae: u16 = unsafe { ::core::mem::transmute(ae) }; +ae as u64 +}); +__bindgen_bitfield_unit.set(1usize, 3u8, { +let res1: u16 = unsafe { ::core::mem::transmute(res1) }; +res1 as u64 +}); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let doff: u16 = unsafe { ::core::mem::transmute(doff) }; +doff as u64 +}); +__bindgen_bitfield_unit.set(8usize, 1u8, { +let fin: u16 = unsafe { ::core::mem::transmute(fin) }; +fin as u64 +}); +__bindgen_bitfield_unit.set(9usize, 1u8, { +let syn: u16 = unsafe { ::core::mem::transmute(syn) }; +syn as u64 +}); +__bindgen_bitfield_unit.set(10usize, 1u8, { +let rst: u16 = unsafe { ::core::mem::transmute(rst) }; +rst as u64 +}); +__bindgen_bitfield_unit.set(11usize, 1u8, { +let psh: u16 = unsafe { ::core::mem::transmute(psh) }; +psh as u64 +}); +__bindgen_bitfield_unit.set(12usize, 1u8, { +let ack: u16 = unsafe { ::core::mem::transmute(ack) }; +ack as u64 +}); +__bindgen_bitfield_unit.set(13usize, 1u8, { +let urg: u16 = unsafe { ::core::mem::transmute(urg) }; +urg as u64 +}); +__bindgen_bitfield_unit.set(14usize, 1u8, { +let ece: u16 = unsafe { ::core::mem::transmute(ece) }; +ece as u64 +}); +__bindgen_bitfield_unit.set(15usize, 1u8, { +let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; +cwr as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_info { +#[inline] +pub fn tcpi_snd_wscale(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +} +#[inline] +pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +} +} +#[inline] +pub fn tcpi_rcv_wscale(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +} +#[inline] +pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 4u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +} +} +#[inline] +pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +} +#[inline] +pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(8usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +} +} +#[inline] +pub fn tcpi_fastopen_client_fail(&self) -> __u8 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +} +#[inline] +pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +self._bitfield_1.set(9usize, 2u8, val as u64) +} +} +#[inline] +pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +} +#[inline] +pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { +unsafe { +let val: u8 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 4u8, { +let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; +tcpi_snd_wscale as u64 +}); +__bindgen_bitfield_unit.set(4usize, 4u8, { +let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; +tcpi_rcv_wscale as u64 +}); +__bindgen_bitfield_unit.set(8usize, 1u8, { +let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; +tcpi_delivery_rate_app_limited as u64 +}); +__bindgen_bitfield_unit.set(9usize, 2u8, { +let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; +tcpi_fastopen_client_fail as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_add { +#[inline] +pub fn set_current(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_current(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_current_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_rnext(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_rnext(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 30u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; +set_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; +set_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 30u8, { +let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_del { +#[inline] +pub fn set_current(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_current(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_current_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_rnext(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_rnext(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn del_async(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +} +#[inline] +pub fn set_del_async(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn del_async_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 29u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; +set_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; +set_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 1u8, { +let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; +del_async as u64 +}); +__bindgen_bitfield_unit.set(3usize, 29u8, { +let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_info_opt { +#[inline] +pub fn set_current(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_current(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_current_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_rnext(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_rnext(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn ao_required(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +} +#[inline] +pub fn set_ao_required(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +} +} +#[inline] +pub fn set_counters(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +} +#[inline] +pub fn set_set_counters(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +} +} +#[inline] +pub fn accept_icmps(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +} +#[inline] +pub fn set_accept_icmps(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(4usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +} +#[inline] +pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_1.set(5usize, 27u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; +set_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; +set_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 1u8, { +let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; +ao_required as u64 +}); +__bindgen_bitfield_unit.set(3usize, 1u8, { +let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; +set_counters as u64 +}); +__bindgen_bitfield_unit.set(4usize, 1u8, { +let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; +accept_icmps as u64 +}); +__bindgen_bitfield_unit.set(5usize, 27u8, { +let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl tcp_ao_getsockopt { +#[inline] +pub fn is_current(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +} +#[inline] +pub fn set_is_current(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(0usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn is_current_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +} +} +#[inline] +pub fn is_rnext(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +} +#[inline] +pub fn set_is_rnext(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(1usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +} +} +#[inline] +pub fn get_all(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +} +#[inline] +pub fn set_get_all(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(2usize, 1u8, val as u64) +} +} +#[inline] +pub unsafe fn get_all_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +} +#[inline] +pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +} +} +#[inline] +pub fn reserved(&self) -> __u16 { +unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +} +#[inline] +pub fn set_reserved(&mut self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +self._bitfield_1.set(3usize, 13u8, val as u64) +} +} +#[inline] +pub unsafe fn reserved_raw(this: *const Self) -> __u16 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +} +#[inline] +pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { +unsafe { +let val: u16 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +} +} +#[inline] +pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); +__bindgen_bitfield_unit.set(0usize, 1u8, { +let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; +is_current as u64 +}); +__bindgen_bitfield_unit.set(1usize, 1u8, { +let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; +is_rnext as u64 +}); +__bindgen_bitfield_unit.set(2usize, 1u8, { +let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; +get_all as u64 +}); +__bindgen_bitfield_unit.set(3usize, 13u8, { +let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; +reserved as u64 +}); +__bindgen_bitfield_unit +} +} +impl nf_inet_hooks { +pub const NF_INET_INGRESS: nf_inet_hooks = nf_inet_hooks::NF_INET_NUMHOOKS; +} +impl nf_ip_hook_priorities { +pub const NF_IP_PRI_LAST: nf_ip_hook_priorities = nf_ip_hook_priorities::NF_IP_PRI_CONNTRACK_CONFIRM; +} +impl hwtstamp_flags { +pub const HWTSTAMP_FLAG_LAST: hwtstamp_flags = hwtstamp_flags::HWTSTAMP_FLAG_BONDED_PHC_INDEX; +} +impl hwtstamp_flags { +pub const HWTSTAMP_FLAG_MASK: hwtstamp_flags = hwtstamp_flags::HWTSTAMP_FLAG_BONDED_PHC_INDEX; +} +impl txtime_flags { +pub const SOF_TXTIME_FLAGS_LAST: txtime_flags = txtime_flags::SOF_TXTIME_REPORT_ERRORS; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/netlink.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/netlink.rs new file mode 100644 index 0000000000000000000000000000000000000000..d7f0e81900a69c0e1aea33a4fc1a6ff0945ebdef --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/netlink.rs @@ -0,0 +1,5461 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __kernel_sa_family_t = crate::ctypes::c_ushort; +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_longlong; +pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __kernel_sockaddr_storage { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 { +pub ss_family: __kernel_sa_family_t, +pub __data: [crate::ctypes::c_char; 126usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_nl { +pub nl_family: __kernel_sa_family_t, +pub nl_pad: crate::ctypes::c_ushort, +pub nl_pid: __u32, +pub nl_groups: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsghdr { +pub nlmsg_len: __u32, +pub nlmsg_type: __u16, +pub nlmsg_flags: __u16, +pub nlmsg_seq: __u32, +pub nlmsg_pid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlmsgerr { +pub error: crate::ctypes::c_int, +pub msg: nlmsghdr, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_pktinfo { +pub group: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_req { +pub nm_block_size: crate::ctypes::c_uint, +pub nm_block_nr: crate::ctypes::c_uint, +pub nm_frame_size: crate::ctypes::c_uint, +pub nm_frame_nr: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl_mmap_hdr { +pub nm_status: crate::ctypes::c_uint, +pub nm_len: crate::ctypes::c_uint, +pub nm_group: __u32, +pub nm_pid: __u32, +pub nm_uid: __u32, +pub nm_gid: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nlattr { +pub nla_len: __u16, +pub nla_type: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nla_bitfield32 { +pub value: __u32, +pub selector: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_sta_flag_update { +pub mask: __u32, +pub set: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_vht { +pub mcs: [__u16; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_he { +pub mcs: [__u16; 8usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_pattern_support { +pub max_patterns: __u32, +pub min_pattern_len: __u32, +pub max_pattern_len: __u32, +pub max_pkt_offset: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_wowlan_tcp_data_seq { +pub start: __u32, +pub offset: __u32, +pub len: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct nl80211_wowlan_tcp_data_token { +pub offset: __u32, +pub len: __u32, +pub token_stream: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_wowlan_tcp_data_token_feature { +pub min_len: __u32, +pub max_len: __u32, +pub bufsize: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_coalesce_rule_support { +pub max_rules: __u32, +pub pat: nl80211_pattern_support, +pub max_delay: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_vendor_cmd_info { +pub vendor_id: __u32, +pub subcmd: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_bss_select_rssi_adjust { +pub band: __u8, +pub delta: __s8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats { +pub rx_packets: __u32, +pub tx_packets: __u32, +pub rx_bytes: __u32, +pub tx_bytes: __u32, +pub rx_errors: __u32, +pub tx_errors: __u32, +pub rx_dropped: __u32, +pub tx_dropped: __u32, +pub multicast: __u32, +pub collisions: __u32, +pub rx_length_errors: __u32, +pub rx_over_errors: __u32, +pub rx_crc_errors: __u32, +pub rx_frame_errors: __u32, +pub rx_fifo_errors: __u32, +pub rx_missed_errors: __u32, +pub tx_aborted_errors: __u32, +pub tx_carrier_errors: __u32, +pub tx_fifo_errors: __u32, +pub tx_heartbeat_errors: __u32, +pub tx_window_errors: __u32, +pub rx_compressed: __u32, +pub tx_compressed: __u32, +pub rx_nohandler: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +pub collisions: __u64, +pub rx_length_errors: __u64, +pub rx_over_errors: __u64, +pub rx_crc_errors: __u64, +pub rx_frame_errors: __u64, +pub rx_fifo_errors: __u64, +pub rx_missed_errors: __u64, +pub tx_aborted_errors: __u64, +pub tx_carrier_errors: __u64, +pub tx_fifo_errors: __u64, +pub tx_heartbeat_errors: __u64, +pub tx_window_errors: __u64, +pub rx_compressed: __u64, +pub tx_compressed: __u64, +pub rx_nohandler: __u64, +pub rx_otherhost_dropped: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_hw_stats64 { +pub rx_packets: __u64, +pub tx_packets: __u64, +pub rx_bytes: __u64, +pub tx_bytes: __u64, +pub rx_errors: __u64, +pub tx_errors: __u64, +pub rx_dropped: __u64, +pub tx_dropped: __u64, +pub multicast: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnl_link_ifmap { +pub mem_start: __u64, +pub mem_end: __u64, +pub base_addr: __u64, +pub irq: __u16, +pub dma: __u8, +pub port: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_bridge_id { +pub prio: [__u8; 2usize], +pub addr: [__u8; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_cacheinfo { +pub max_reasm_len: __u32, +pub tstamp: __u32, +pub reachable_time: __u32, +pub retrans_time: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vlan_qos_mapping { +pub from: __u32, +pub to: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tunnel_msg { +pub family: __u8, +pub flags: __u8, +pub reserved2: __u16, +pub ifindex: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vxlan_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_geneve_port_range { +pub low: __be16, +pub high: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_mac { +pub vf: __u32, +pub mac: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_broadcast { +pub broadcast: [__u8; 32usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_vlan_info { +pub vf: __u32, +pub vlan: __u32, +pub qos: __u32, +pub vlan_proto: __be16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_tx_rate { +pub vf: __u32, +pub rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rate { +pub vf: __u32, +pub min_tx_rate: __u32, +pub max_tx_rate: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_spoofchk { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_guid { +pub vf: __u32, +pub guid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_link_state { +pub vf: __u32, +pub link_state: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_rss_query_en { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_vf_trust { +pub vf: __u32, +pub setting: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_port_vsi { +pub vsi_mgr_id: __u8, +pub vsi_type_id: [__u8; 3usize], +pub vsi_type_version: __u8, +pub pad: [__u8; 3usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct if_stats_msg { +pub family: __u8, +pub pad1: __u8, +pub pad2: __u16, +pub ifindex: __u32, +pub filter_mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifla_rmnet_flags { +pub flags: __u32, +pub mask: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifaddrmsg { +pub ifa_family: __u8, +pub ifa_prefixlen: __u8, +pub ifa_flags: __u8, +pub ifa_scope: __u8, +pub ifa_index: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifa_cacheinfo { +pub ifa_prefered: __u32, +pub ifa_valid: __u32, +pub cstamp: __u32, +pub tstamp: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ndmsg { +pub ndm_family: __u8, +pub ndm_pad1: __u8, +pub ndm_pad2: __u16, +pub ndm_ifindex: __s32, +pub ndm_state: __u16, +pub ndm_flags: __u8, +pub ndm_type: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nda_cacheinfo { +pub ndm_confirmed: __u32, +pub ndm_used: __u32, +pub ndm_updated: __u32, +pub ndm_refcnt: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ndt_stats { +pub ndts_allocs: __u64, +pub ndts_destroys: __u64, +pub ndts_hash_grows: __u64, +pub ndts_res_failed: __u64, +pub ndts_lookups: __u64, +pub ndts_hits: __u64, +pub ndts_rcv_probes_mcast: __u64, +pub ndts_rcv_probes_ucast: __u64, +pub ndts_periodic_gc_runs: __u64, +pub ndts_forced_gc_runs: __u64, +pub ndts_table_fulls: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ndtmsg { +pub ndtm_family: __u8, +pub ndtm_pad1: __u8, +pub ndtm_pad2: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ndt_config { +pub ndtc_key_len: __u16, +pub ndtc_entry_size: __u16, +pub ndtc_entries: __u32, +pub ndtc_last_flush: __u32, +pub ndtc_last_rand: __u32, +pub ndtc_hash_rnd: __u32, +pub ndtc_hash_mask: __u32, +pub ndtc_hash_chain_gc: __u32, +pub ndtc_proxy_qlen: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtattr { +pub rta_len: crate::ctypes::c_ushort, +pub rta_type: crate::ctypes::c_ushort, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtmsg { +pub rtm_family: crate::ctypes::c_uchar, +pub rtm_dst_len: crate::ctypes::c_uchar, +pub rtm_src_len: crate::ctypes::c_uchar, +pub rtm_tos: crate::ctypes::c_uchar, +pub rtm_table: crate::ctypes::c_uchar, +pub rtm_protocol: crate::ctypes::c_uchar, +pub rtm_scope: crate::ctypes::c_uchar, +pub rtm_type: crate::ctypes::c_uchar, +pub rtm_flags: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtnexthop { +pub rtnh_len: crate::ctypes::c_ushort, +pub rtnh_flags: crate::ctypes::c_uchar, +pub rtnh_hops: crate::ctypes::c_uchar, +pub rtnh_ifindex: crate::ctypes::c_int, +} +#[repr(C)] +#[derive(Debug)] +pub struct rtvia { +pub rtvia_family: __kernel_sa_family_t, +pub rtvia_addr: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rta_cacheinfo { +pub rta_clntref: __u32, +pub rta_lastuse: __u32, +pub rta_expires: __s32, +pub rta_error: __u32, +pub rta_used: __u32, +pub rta_id: __u32, +pub rta_ts: __u32, +pub rta_tsage: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct rta_session { +pub proto: __u8, +pub pad1: __u8, +pub pad2: __u16, +pub u: rta_session__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rta_session__bindgen_ty_1__bindgen_ty_1 { +pub sport: __u16, +pub dport: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rta_session__bindgen_ty_1__bindgen_ty_2 { +pub type_: __u8, +pub code: __u8, +pub ident: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rta_mfc_stats { +pub mfcs_packets: __u64, +pub mfcs_bytes: __u64, +pub mfcs_wrong_if: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct rtgenmsg { +pub rtgen_family: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ifinfomsg { +pub ifi_family: crate::ctypes::c_uchar, +pub __ifi_pad: crate::ctypes::c_uchar, +pub ifi_type: crate::ctypes::c_ushort, +pub ifi_index: crate::ctypes::c_int, +pub ifi_flags: crate::ctypes::c_uint, +pub ifi_change: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct prefixmsg { +pub prefix_family: crate::ctypes::c_uchar, +pub prefix_pad1: crate::ctypes::c_uchar, +pub prefix_pad2: crate::ctypes::c_ushort, +pub prefix_ifindex: crate::ctypes::c_int, +pub prefix_type: crate::ctypes::c_uchar, +pub prefix_len: crate::ctypes::c_uchar, +pub prefix_flags: crate::ctypes::c_uchar, +pub prefix_pad3: crate::ctypes::c_uchar, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct prefix_cacheinfo { +pub preferred_time: __u32, +pub valid_time: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcmsg { +pub tcm_family: crate::ctypes::c_uchar, +pub tcm__pad1: crate::ctypes::c_uchar, +pub tcm__pad2: crate::ctypes::c_ushort, +pub tcm_ifindex: crate::ctypes::c_int, +pub tcm_handle: __u32, +pub tcm_parent: __u32, +pub tcm_info: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nduseroptmsg { +pub nduseropt_family: crate::ctypes::c_uchar, +pub nduseropt_pad1: crate::ctypes::c_uchar, +pub nduseropt_opts_len: crate::ctypes::c_ushort, +pub nduseropt_ifindex: crate::ctypes::c_int, +pub nduseropt_icmp_type: __u8, +pub nduseropt_icmp_code: __u8, +pub nduseropt_pad2: crate::ctypes::c_ushort, +pub nduseropt_pad3: crate::ctypes::c_uint, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tcamsg { +pub tca_family: crate::ctypes::c_uchar, +pub tca__pad1: crate::ctypes::c_uchar, +pub tca__pad2: crate::ctypes::c_ushort, +} +pub const _K_SS_MAXSIZE: u32 = 128; +pub const SOCK_SNDBUF_LOCK: u32 = 1; +pub const SOCK_RCVBUF_LOCK: u32 = 2; +pub const SOCK_BUF_LOCK_MASK: u32 = 3; +pub const SOCK_TXREHASH_DEFAULT: u32 = 255; +pub const SOCK_TXREHASH_DISABLED: u32 = 0; +pub const SOCK_TXREHASH_ENABLED: u32 = 1; +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const NETLINK_ROUTE: u32 = 0; +pub const NETLINK_UNUSED: u32 = 1; +pub const NETLINK_USERSOCK: u32 = 2; +pub const NETLINK_FIREWALL: u32 = 3; +pub const NETLINK_SOCK_DIAG: u32 = 4; +pub const NETLINK_NFLOG: u32 = 5; +pub const NETLINK_XFRM: u32 = 6; +pub const NETLINK_SELINUX: u32 = 7; +pub const NETLINK_ISCSI: u32 = 8; +pub const NETLINK_AUDIT: u32 = 9; +pub const NETLINK_FIB_LOOKUP: u32 = 10; +pub const NETLINK_CONNECTOR: u32 = 11; +pub const NETLINK_NETFILTER: u32 = 12; +pub const NETLINK_IP6_FW: u32 = 13; +pub const NETLINK_DNRTMSG: u32 = 14; +pub const NETLINK_KOBJECT_UEVENT: u32 = 15; +pub const NETLINK_GENERIC: u32 = 16; +pub const NETLINK_SCSITRANSPORT: u32 = 18; +pub const NETLINK_ECRYPTFS: u32 = 19; +pub const NETLINK_RDMA: u32 = 20; +pub const NETLINK_CRYPTO: u32 = 21; +pub const NETLINK_SMC: u32 = 22; +pub const NETLINK_INET_DIAG: u32 = 4; +pub const MAX_LINKS: u32 = 32; +pub const NLM_F_REQUEST: u32 = 1; +pub const NLM_F_MULTI: u32 = 2; +pub const NLM_F_ACK: u32 = 4; +pub const NLM_F_ECHO: u32 = 8; +pub const NLM_F_DUMP_INTR: u32 = 16; +pub const NLM_F_DUMP_FILTERED: u32 = 32; +pub const NLM_F_ROOT: u32 = 256; +pub const NLM_F_MATCH: u32 = 512; +pub const NLM_F_ATOMIC: u32 = 1024; +pub const NLM_F_DUMP: u32 = 768; +pub const NLM_F_REPLACE: u32 = 256; +pub const NLM_F_EXCL: u32 = 512; +pub const NLM_F_CREATE: u32 = 1024; +pub const NLM_F_APPEND: u32 = 2048; +pub const NLM_F_NONREC: u32 = 256; +pub const NLM_F_BULK: u32 = 512; +pub const NLM_F_CAPPED: u32 = 256; +pub const NLM_F_ACK_TLVS: u32 = 512; +pub const NLMSG_ALIGNTO: u32 = 4; +pub const NLMSG_NOOP: u32 = 1; +pub const NLMSG_ERROR: u32 = 2; +pub const NLMSG_DONE: u32 = 3; +pub const NLMSG_OVERRUN: u32 = 4; +pub const NLMSG_MIN_TYPE: u32 = 16; +pub const NETLINK_ADD_MEMBERSHIP: u32 = 1; +pub const NETLINK_DROP_MEMBERSHIP: u32 = 2; +pub const NETLINK_PKTINFO: u32 = 3; +pub const NETLINK_BROADCAST_ERROR: u32 = 4; +pub const NETLINK_NO_ENOBUFS: u32 = 5; +pub const NETLINK_RX_RING: u32 = 6; +pub const NETLINK_TX_RING: u32 = 7; +pub const NETLINK_LISTEN_ALL_NSID: u32 = 8; +pub const NETLINK_LIST_MEMBERSHIPS: u32 = 9; +pub const NETLINK_CAP_ACK: u32 = 10; +pub const NETLINK_EXT_ACK: u32 = 11; +pub const NETLINK_GET_STRICT_CHK: u32 = 12; +pub const NL_MMAP_MSG_ALIGNMENT: u32 = 4; +pub const NET_MAJOR: u32 = 36; +pub const NLA_F_NESTED: u32 = 32768; +pub const NLA_F_NET_BYTEORDER: u32 = 16384; +pub const NLA_TYPE_MASK: i32 = -49153; +pub const NLA_ALIGNTO: u32 = 4; +pub const NL80211_GENL_NAME: &[u8; 8] = b"nl80211\0"; +pub const NL80211_MULTICAST_GROUP_CONFIG: &[u8; 7] = b"config\0"; +pub const NL80211_MULTICAST_GROUP_SCAN: &[u8; 5] = b"scan\0"; +pub const NL80211_MULTICAST_GROUP_REG: &[u8; 11] = b"regulatory\0"; +pub const NL80211_MULTICAST_GROUP_MLME: &[u8; 5] = b"mlme\0"; +pub const NL80211_MULTICAST_GROUP_VENDOR: &[u8; 7] = b"vendor\0"; +pub const NL80211_MULTICAST_GROUP_NAN: &[u8; 4] = b"nan\0"; +pub const NL80211_MULTICAST_GROUP_TESTMODE: &[u8; 9] = b"testmode\0"; +pub const NL80211_EDMG_BW_CONFIG_MIN: u32 = 4; +pub const NL80211_EDMG_BW_CONFIG_MAX: u32 = 15; +pub const NL80211_EDMG_CHANNELS_MIN: u32 = 1; +pub const NL80211_EDMG_CHANNELS_MAX: u32 = 60; +pub const NL80211_WIPHY_NAME_MAXLEN: u32 = 64; +pub const NL80211_MAX_SUPP_RATES: u32 = 32; +pub const NL80211_MAX_SUPP_SELECTORS: u32 = 128; +pub const NL80211_MAX_SUPP_HT_RATES: u32 = 77; +pub const NL80211_MAX_SUPP_REG_RULES: u32 = 128; +pub const NL80211_TKIP_DATA_OFFSET_ENCR_KEY: u32 = 0; +pub const NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY: u32 = 16; +pub const NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY: u32 = 24; +pub const NL80211_HT_CAPABILITY_LEN: u32 = 26; +pub const NL80211_VHT_CAPABILITY_LEN: u32 = 12; +pub const NL80211_HE_MIN_CAPABILITY_LEN: u32 = 16; +pub const NL80211_HE_MAX_CAPABILITY_LEN: u32 = 54; +pub const NL80211_MAX_NR_CIPHER_SUITES: u32 = 5; +pub const NL80211_MAX_NR_AKM_SUITES: u32 = 2; +pub const NL80211_EHT_MIN_CAPABILITY_LEN: u32 = 13; +pub const NL80211_EHT_MAX_CAPABILITY_LEN: u32 = 51; +pub const NL80211_MIN_REMAIN_ON_CHANNEL_TIME: u32 = 10; +pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; +pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; +pub const NL80211_VHT_NSS_MAX: u32 = 8; +pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_KCK_LEN: u32 = 16; +pub const NL80211_KEK_LEN: u32 = 16; +pub const NL80211_KCK_EXT_LEN: u32 = 24; +pub const NL80211_KEK_EXT_LEN: u32 = 32; +pub const NL80211_KCK_EXT_LEN_32: u32 = 32; +pub const NL80211_REPLAY_CTR_LEN: u32 = 8; +pub const NL80211_CRIT_PROTO_MAX_DURATION: u32 = 5000; +pub const NL80211_VENDOR_ID_IS_LINUX: u32 = 2147483648; +pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; +pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; +pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; +pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; +pub const MACVLAN_FLAG_NODST: u32 = 2; +pub const IPVLAN_F_PRIVATE: u32 = 1; +pub const IPVLAN_F_VEPA: u32 = 2; +pub const TUNNEL_MSG_FLAG_STATS: u32 = 1; +pub const TUNNEL_MSG_VALID_USER_FLAGS: u32 = 1; +pub const MAX_VLAN_LIST_LEN: u32 = 1; +pub const PORT_PROFILE_MAX: u32 = 40; +pub const PORT_UUID_MAX: u32 = 16; +pub const PORT_SELF_VF: i32 = -1; +pub const XDP_FLAGS_UPDATE_IF_NOEXIST: u32 = 1; +pub const XDP_FLAGS_SKB_MODE: u32 = 2; +pub const XDP_FLAGS_DRV_MODE: u32 = 4; +pub const XDP_FLAGS_HW_MODE: u32 = 8; +pub const XDP_FLAGS_REPLACE: u32 = 16; +pub const XDP_FLAGS_MODES: u32 = 14; +pub const XDP_FLAGS_MASK: u32 = 31; +pub const RMNET_FLAGS_INGRESS_DEAGGREGATION: u32 = 1; +pub const RMNET_FLAGS_INGRESS_MAP_COMMANDS: u32 = 2; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV4: u32 = 4; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV4: u32 = 8; +pub const RMNET_FLAGS_INGRESS_MAP_CKSUMV5: u32 = 16; +pub const RMNET_FLAGS_EGRESS_MAP_CKSUMV5: u32 = 32; +pub const IFA_F_SECONDARY: u32 = 1; +pub const IFA_F_TEMPORARY: u32 = 1; +pub const IFA_F_NODAD: u32 = 2; +pub const IFA_F_OPTIMISTIC: u32 = 4; +pub const IFA_F_DADFAILED: u32 = 8; +pub const IFA_F_HOMEADDRESS: u32 = 16; +pub const IFA_F_DEPRECATED: u32 = 32; +pub const IFA_F_TENTATIVE: u32 = 64; +pub const IFA_F_PERMANENT: u32 = 128; +pub const IFA_F_MANAGETEMPADDR: u32 = 256; +pub const IFA_F_NOPREFIXROUTE: u32 = 512; +pub const IFA_F_MCAUTOJOIN: u32 = 1024; +pub const IFA_F_STABLE_PRIVACY: u32 = 2048; +pub const IFAPROT_UNSPEC: u32 = 0; +pub const IFAPROT_KERNEL_LO: u32 = 1; +pub const IFAPROT_KERNEL_RA: u32 = 2; +pub const IFAPROT_KERNEL_LL: u32 = 3; +pub const NTF_USE: u32 = 1; +pub const NTF_SELF: u32 = 2; +pub const NTF_MASTER: u32 = 4; +pub const NTF_PROXY: u32 = 8; +pub const NTF_EXT_LEARNED: u32 = 16; +pub const NTF_OFFLOADED: u32 = 32; +pub const NTF_STICKY: u32 = 64; +pub const NTF_ROUTER: u32 = 128; +pub const NTF_EXT_MANAGED: u32 = 1; +pub const NTF_EXT_LOCKED: u32 = 2; +pub const NUD_INCOMPLETE: u32 = 1; +pub const NUD_REACHABLE: u32 = 2; +pub const NUD_STALE: u32 = 4; +pub const NUD_DELAY: u32 = 8; +pub const NUD_PROBE: u32 = 16; +pub const NUD_FAILED: u32 = 32; +pub const NUD_NOARP: u32 = 64; +pub const NUD_PERMANENT: u32 = 128; +pub const NUD_NONE: u32 = 0; +pub const RTNL_FAMILY_IPMR: u32 = 128; +pub const RTNL_FAMILY_IP6MR: u32 = 129; +pub const RTNL_FAMILY_MAX: u32 = 129; +pub const RTA_ALIGNTO: u32 = 4; +pub const RTPROT_UNSPEC: u32 = 0; +pub const RTPROT_REDIRECT: u32 = 1; +pub const RTPROT_KERNEL: u32 = 2; +pub const RTPROT_BOOT: u32 = 3; +pub const RTPROT_STATIC: u32 = 4; +pub const RTPROT_GATED: u32 = 8; +pub const RTPROT_RA: u32 = 9; +pub const RTPROT_MRT: u32 = 10; +pub const RTPROT_ZEBRA: u32 = 11; +pub const RTPROT_BIRD: u32 = 12; +pub const RTPROT_DNROUTED: u32 = 13; +pub const RTPROT_XORP: u32 = 14; +pub const RTPROT_NTK: u32 = 15; +pub const RTPROT_DHCP: u32 = 16; +pub const RTPROT_MROUTED: u32 = 17; +pub const RTPROT_KEEPALIVED: u32 = 18; +pub const RTPROT_BABEL: u32 = 42; +pub const RTPROT_OVN: u32 = 84; +pub const RTPROT_OPENR: u32 = 99; +pub const RTPROT_BGP: u32 = 186; +pub const RTPROT_ISIS: u32 = 187; +pub const RTPROT_OSPF: u32 = 188; +pub const RTPROT_RIP: u32 = 189; +pub const RTPROT_EIGRP: u32 = 192; +pub const RTM_F_NOTIFY: u32 = 256; +pub const RTM_F_CLONED: u32 = 512; +pub const RTM_F_EQUALIZE: u32 = 1024; +pub const RTM_F_PREFIX: u32 = 2048; +pub const RTM_F_LOOKUP_TABLE: u32 = 4096; +pub const RTM_F_FIB_MATCH: u32 = 8192; +pub const RTM_F_OFFLOAD: u32 = 16384; +pub const RTM_F_TRAP: u32 = 32768; +pub const RTM_F_OFFLOAD_FAILED: u32 = 536870912; +pub const RTNH_F_DEAD: u32 = 1; +pub const RTNH_F_PERVASIVE: u32 = 2; +pub const RTNH_F_ONLINK: u32 = 4; +pub const RTNH_F_OFFLOAD: u32 = 8; +pub const RTNH_F_LINKDOWN: u32 = 16; +pub const RTNH_F_UNRESOLVED: u32 = 32; +pub const RTNH_F_TRAP: u32 = 64; +pub const RTNH_COMPARE_MASK: u32 = 89; +pub const RTNH_ALIGNTO: u32 = 4; +pub const RTNETLINK_HAVE_PEERINFO: u32 = 1; +pub const RTAX_FEATURE_ECN: u32 = 1; +pub const RTAX_FEATURE_SACK: u32 = 2; +pub const RTAX_FEATURE_TIMESTAMP: u32 = 4; +pub const RTAX_FEATURE_ALLFRAG: u32 = 8; +pub const RTAX_FEATURE_TCP_USEC_TS: u32 = 16; +pub const RTAX_FEATURE_MASK: u32 = 31; +pub const TCM_IFINDEX_MAGIC_BLOCK: u32 = 4294967295; +pub const TCA_DUMP_FLAGS_TERSE: u32 = 1; +pub const RTMGRP_LINK: u32 = 1; +pub const RTMGRP_NOTIFY: u32 = 2; +pub const RTMGRP_NEIGH: u32 = 4; +pub const RTMGRP_TC: u32 = 8; +pub const RTMGRP_IPV4_IFADDR: u32 = 16; +pub const RTMGRP_IPV4_MROUTE: u32 = 32; +pub const RTMGRP_IPV4_ROUTE: u32 = 64; +pub const RTMGRP_IPV4_RULE: u32 = 128; +pub const RTMGRP_IPV6_IFADDR: u32 = 256; +pub const RTMGRP_IPV6_MROUTE: u32 = 512; +pub const RTMGRP_IPV6_ROUTE: u32 = 1024; +pub const RTMGRP_IPV6_IFINFO: u32 = 2048; +pub const RTMGRP_DECnet_IFADDR: u32 = 4096; +pub const RTMGRP_DECnet_ROUTE: u32 = 16384; +pub const RTMGRP_IPV6_PREFIX: u32 = 131072; +pub const TCA_FLAG_LARGE_DUMP_ON: u32 = 1; +pub const TCA_ACT_FLAG_LARGE_DUMP_ON: u32 = 1; +pub const TCA_ACT_FLAG_TERSE_DUMP: u32 = 2; +pub const RTEXT_FILTER_VF: u32 = 1; +pub const RTEXT_FILTER_BRVLAN: u32 = 2; +pub const RTEXT_FILTER_BRVLAN_COMPRESSED: u32 = 4; +pub const RTEXT_FILTER_SKIP_STATS: u32 = 8; +pub const RTEXT_FILTER_MRP: u32 = 16; +pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; +pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; +pub const RTEXT_FILTER_MST: u32 = 128; +pub const NETLINK_UNCONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_UNCONNECTED; +pub const NETLINK_CONNECTED: _bindgen_ty_1 = _bindgen_ty_1::NETLINK_CONNECTED; +pub const IFLA_UNSPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_UNSPEC; +pub const IFLA_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ADDRESS; +pub const IFLA_BROADCAST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_BROADCAST; +pub const IFLA_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFNAME; +pub const IFLA_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MTU; +pub const IFLA_LINK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK; +pub const IFLA_QDISC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_QDISC; +pub const IFLA_STATS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS; +pub const IFLA_COST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_COST; +pub const IFLA_PRIORITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PRIORITY; +pub const IFLA_MASTER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MASTER; +pub const IFLA_WIRELESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WIRELESS; +pub const IFLA_PROTINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTINFO; +pub const IFLA_TXQLEN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TXQLEN; +pub const IFLA_MAP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAP; +pub const IFLA_WEIGHT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_WEIGHT; +pub const IFLA_OPERSTATE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_OPERSTATE; +pub const IFLA_LINKMODE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKMODE; +pub const IFLA_LINKINFO: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINKINFO; +pub const IFLA_NET_NS_PID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_PID; +pub const IFLA_IFALIAS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IFALIAS; +pub const IFLA_NUM_VF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_VF; +pub const IFLA_VFINFO_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VFINFO_LIST; +pub const IFLA_STATS64: _bindgen_ty_2 = _bindgen_ty_2::IFLA_STATS64; +pub const IFLA_VF_PORTS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_VF_PORTS; +pub const IFLA_PORT_SELF: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PORT_SELF; +pub const IFLA_AF_SPEC: _bindgen_ty_2 = _bindgen_ty_2::IFLA_AF_SPEC; +pub const IFLA_GROUP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GROUP; +pub const IFLA_NET_NS_FD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NET_NS_FD; +pub const IFLA_EXT_MASK: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EXT_MASK; +pub const IFLA_PROMISCUITY: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROMISCUITY; +pub const IFLA_NUM_TX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_TX_QUEUES; +pub const IFLA_NUM_RX_QUEUES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NUM_RX_QUEUES; +pub const IFLA_CARRIER: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER; +pub const IFLA_PHYS_PORT_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_ID; +pub const IFLA_CARRIER_CHANGES: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_CHANGES; +pub const IFLA_PHYS_SWITCH_ID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_SWITCH_ID; +pub const IFLA_LINK_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_LINK_NETNSID; +pub const IFLA_PHYS_PORT_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PHYS_PORT_NAME; +pub const IFLA_PROTO_DOWN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN; +pub const IFLA_GSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SEGS; +pub const IFLA_GSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_MAX_SIZE; +pub const IFLA_PAD: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PAD; +pub const IFLA_XDP: _bindgen_ty_2 = _bindgen_ty_2::IFLA_XDP; +pub const IFLA_EVENT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_EVENT; +pub const IFLA_NEW_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_NETNSID; +pub const IFLA_IF_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; +pub const IFLA_TARGET_NETNSID: _bindgen_ty_2 = _bindgen_ty_2::IFLA_IF_NETNSID; +pub const IFLA_CARRIER_UP_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_UP_COUNT; +pub const IFLA_CARRIER_DOWN_COUNT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_CARRIER_DOWN_COUNT; +pub const IFLA_NEW_IFINDEX: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NEW_IFINDEX; +pub const IFLA_MIN_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MIN_MTU; +pub const IFLA_MAX_MTU: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_MTU; +pub const IFLA_PROP_LIST: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROP_LIST; +pub const IFLA_ALT_IFNAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALT_IFNAME; +pub const IFLA_PERM_ADDRESS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PERM_ADDRESS; +pub const IFLA_PROTO_DOWN_REASON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PROTO_DOWN_REASON; +pub const IFLA_PARENT_DEV_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_NAME; +pub const IFLA_PARENT_DEV_BUS_NAME: _bindgen_ty_2 = _bindgen_ty_2::IFLA_PARENT_DEV_BUS_NAME; +pub const IFLA_GRO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_MAX_SIZE; +pub const IFLA_TSO_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SIZE; +pub const IFLA_TSO_MAX_SEGS: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TSO_MAX_SEGS; +pub const IFLA_ALLMULTI: _bindgen_ty_2 = _bindgen_ty_2::IFLA_ALLMULTI; +pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; +pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; +pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; +pub const IFLA_DPLL_PIN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_PACING_OFFLOAD_HORIZON; +pub const IFLA_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; +pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; +pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; +pub const IFLA_PROTO_DOWN_REASON_VALUE: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; +pub const __IFLA_PROTO_DOWN_REASON_CNT: _bindgen_ty_3 = _bindgen_ty_3::__IFLA_PROTO_DOWN_REASON_CNT; +pub const IFLA_PROTO_DOWN_REASON_MAX: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_VALUE; +pub const IFLA_INET_UNSPEC: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_UNSPEC; +pub const IFLA_INET_CONF: _bindgen_ty_4 = _bindgen_ty_4::IFLA_INET_CONF; +pub const __IFLA_INET_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_INET_MAX; +pub const IFLA_INET6_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_UNSPEC; +pub const IFLA_INET6_FLAGS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_FLAGS; +pub const IFLA_INET6_CONF: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CONF; +pub const IFLA_INET6_STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_STATS; +pub const IFLA_INET6_MCAST: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_MCAST; +pub const IFLA_INET6_CACHEINFO: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_CACHEINFO; +pub const IFLA_INET6_ICMP6STATS: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ICMP6STATS; +pub const IFLA_INET6_TOKEN: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_TOKEN; +pub const IFLA_INET6_ADDR_GEN_MODE: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_ADDR_GEN_MODE; +pub const IFLA_INET6_RA_MTU: _bindgen_ty_5 = _bindgen_ty_5::IFLA_INET6_RA_MTU; +pub const __IFLA_INET6_MAX: _bindgen_ty_5 = _bindgen_ty_5::__IFLA_INET6_MAX; +pub const IFLA_BR_UNSPEC: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_UNSPEC; +pub const IFLA_BR_FORWARD_DELAY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FORWARD_DELAY; +pub const IFLA_BR_HELLO_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIME; +pub const IFLA_BR_MAX_AGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MAX_AGE; +pub const IFLA_BR_AGEING_TIME: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_AGEING_TIME; +pub const IFLA_BR_STP_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_STATE; +pub const IFLA_BR_PRIORITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PRIORITY; +pub const IFLA_BR_VLAN_FILTERING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_FILTERING; +pub const IFLA_BR_VLAN_PROTOCOL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_PROTOCOL; +pub const IFLA_BR_GROUP_FWD_MASK: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_FWD_MASK; +pub const IFLA_BR_ROOT_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_ID; +pub const IFLA_BR_BRIDGE_ID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_BRIDGE_ID; +pub const IFLA_BR_ROOT_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PORT; +pub const IFLA_BR_ROOT_PATH_COST: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_ROOT_PATH_COST; +pub const IFLA_BR_TOPOLOGY_CHANGE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE; +pub const IFLA_BR_TOPOLOGY_CHANGE_DETECTED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_DETECTED; +pub const IFLA_BR_HELLO_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_HELLO_TIMER; +pub const IFLA_BR_TCN_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TCN_TIMER; +pub const IFLA_BR_TOPOLOGY_CHANGE_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_TOPOLOGY_CHANGE_TIMER; +pub const IFLA_BR_GC_TIMER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GC_TIMER; +pub const IFLA_BR_GROUP_ADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_GROUP_ADDR; +pub const IFLA_BR_FDB_FLUSH: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_FLUSH; +pub const IFLA_BR_MCAST_ROUTER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_ROUTER; +pub const IFLA_BR_MCAST_SNOOPING: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_SNOOPING; +pub const IFLA_BR_MCAST_QUERY_USE_IFADDR: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_USE_IFADDR; +pub const IFLA_BR_MCAST_QUERIER: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER; +pub const IFLA_BR_MCAST_HASH_ELASTICITY: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_ELASTICITY; +pub const IFLA_BR_MCAST_HASH_MAX: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_HASH_MAX; +pub const IFLA_BR_MCAST_LAST_MEMBER_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_CNT; +pub const IFLA_BR_MCAST_STARTUP_QUERY_CNT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_CNT; +pub const IFLA_BR_MCAST_LAST_MEMBER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_LAST_MEMBER_INTVL; +pub const IFLA_BR_MCAST_MEMBERSHIP_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MEMBERSHIP_INTVL; +pub const IFLA_BR_MCAST_QUERIER_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_INTVL; +pub const IFLA_BR_MCAST_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_INTVL; +pub const IFLA_BR_MCAST_QUERY_RESPONSE_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERY_RESPONSE_INTVL; +pub const IFLA_BR_MCAST_STARTUP_QUERY_INTVL: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STARTUP_QUERY_INTVL; +pub const IFLA_BR_NF_CALL_IPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IPTABLES; +pub const IFLA_BR_NF_CALL_IP6TABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_IP6TABLES; +pub const IFLA_BR_NF_CALL_ARPTABLES: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_NF_CALL_ARPTABLES; +pub const IFLA_BR_VLAN_DEFAULT_PVID: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_DEFAULT_PVID; +pub const IFLA_BR_PAD: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_PAD; +pub const IFLA_BR_VLAN_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_ENABLED; +pub const IFLA_BR_MCAST_STATS_ENABLED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_STATS_ENABLED; +pub const IFLA_BR_MCAST_IGMP_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_IGMP_VERSION; +pub const IFLA_BR_MCAST_MLD_VERSION: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_MLD_VERSION; +pub const IFLA_BR_VLAN_STATS_PER_PORT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_VLAN_STATS_PER_PORT; +pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BOOLOPT; +pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; +pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; +pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; +pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; +pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; +pub const IFLA_BRPORT_UNSPEC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNSPEC; +pub const IFLA_BRPORT_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_STATE; +pub const IFLA_BRPORT_PRIORITY: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PRIORITY; +pub const IFLA_BRPORT_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_COST; +pub const IFLA_BRPORT_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MODE; +pub const IFLA_BRPORT_GUARD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GUARD; +pub const IFLA_BRPORT_PROTECT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROTECT; +pub const IFLA_BRPORT_FAST_LEAVE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FAST_LEAVE; +pub const IFLA_BRPORT_LEARNING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING; +pub const IFLA_BRPORT_UNICAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_UNICAST_FLOOD; +pub const IFLA_BRPORT_PROXYARP: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP; +pub const IFLA_BRPORT_LEARNING_SYNC: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LEARNING_SYNC; +pub const IFLA_BRPORT_PROXYARP_WIFI: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PROXYARP_WIFI; +pub const IFLA_BRPORT_ROOT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ROOT_ID; +pub const IFLA_BRPORT_BRIDGE_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BRIDGE_ID; +pub const IFLA_BRPORT_DESIGNATED_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_PORT; +pub const IFLA_BRPORT_DESIGNATED_COST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_DESIGNATED_COST; +pub const IFLA_BRPORT_ID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ID; +pub const IFLA_BRPORT_NO: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NO; +pub const IFLA_BRPORT_TOPOLOGY_CHANGE_ACK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_TOPOLOGY_CHANGE_ACK; +pub const IFLA_BRPORT_CONFIG_PENDING: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_CONFIG_PENDING; +pub const IFLA_BRPORT_MESSAGE_AGE_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MESSAGE_AGE_TIMER; +pub const IFLA_BRPORT_FORWARD_DELAY_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FORWARD_DELAY_TIMER; +pub const IFLA_BRPORT_HOLD_TIMER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_HOLD_TIMER; +pub const IFLA_BRPORT_FLUSH: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_FLUSH; +pub const IFLA_BRPORT_MULTICAST_ROUTER: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MULTICAST_ROUTER; +pub const IFLA_BRPORT_PAD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_PAD; +pub const IFLA_BRPORT_MCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_FLOOD; +pub const IFLA_BRPORT_MCAST_TO_UCAST: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_TO_UCAST; +pub const IFLA_BRPORT_VLAN_TUNNEL: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_VLAN_TUNNEL; +pub const IFLA_BRPORT_BCAST_FLOOD: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BCAST_FLOOD; +pub const IFLA_BRPORT_GROUP_FWD_MASK: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_GROUP_FWD_MASK; +pub const IFLA_BRPORT_NEIGH_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_SUPPRESS; +pub const IFLA_BRPORT_ISOLATED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_ISOLATED; +pub const IFLA_BRPORT_BACKUP_PORT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_PORT; +pub const IFLA_BRPORT_MRP_RING_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_RING_OPEN; +pub const IFLA_BRPORT_MRP_IN_OPEN: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MRP_IN_OPEN; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT; +pub const IFLA_BRPORT_MCAST_EHT_HOSTS_CNT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_EHT_HOSTS_CNT; +pub const IFLA_BRPORT_LOCKED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_LOCKED; +pub const IFLA_BRPORT_MAB: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MAB; +pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_N_GROUPS; +pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; +pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; +pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; +pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; +pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; +pub const IFLA_INFO_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_DATA; +pub const IFLA_INFO_XSTATS: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_XSTATS; +pub const IFLA_INFO_SLAVE_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_KIND; +pub const IFLA_INFO_SLAVE_DATA: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_SLAVE_DATA; +pub const __IFLA_INFO_MAX: _bindgen_ty_9 = _bindgen_ty_9::__IFLA_INFO_MAX; +pub const IFLA_VLAN_UNSPEC: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_UNSPEC; +pub const IFLA_VLAN_ID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_ID; +pub const IFLA_VLAN_FLAGS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_FLAGS; +pub const IFLA_VLAN_EGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_EGRESS_QOS; +pub const IFLA_VLAN_INGRESS_QOS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_INGRESS_QOS; +pub const IFLA_VLAN_PROTOCOL: _bindgen_ty_10 = _bindgen_ty_10::IFLA_VLAN_PROTOCOL; +pub const __IFLA_VLAN_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_VLAN_MAX; +pub const IFLA_VLAN_QOS_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_UNSPEC; +pub const IFLA_VLAN_QOS_MAPPING: _bindgen_ty_11 = _bindgen_ty_11::IFLA_VLAN_QOS_MAPPING; +pub const __IFLA_VLAN_QOS_MAX: _bindgen_ty_11 = _bindgen_ty_11::__IFLA_VLAN_QOS_MAX; +pub const IFLA_MACVLAN_UNSPEC: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_UNSPEC; +pub const IFLA_MACVLAN_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MODE; +pub const IFLA_MACVLAN_FLAGS: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_FLAGS; +pub const IFLA_MACVLAN_MACADDR_MODE: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_MODE; +pub const IFLA_MACVLAN_MACADDR: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR; +pub const IFLA_MACVLAN_MACADDR_DATA: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_DATA; +pub const IFLA_MACVLAN_MACADDR_COUNT: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_MACADDR_COUNT; +pub const IFLA_MACVLAN_BC_QUEUE_LEN: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN; +pub const IFLA_MACVLAN_BC_QUEUE_LEN_USED: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_QUEUE_LEN_USED; +pub const IFLA_MACVLAN_BC_CUTOFF: _bindgen_ty_12 = _bindgen_ty_12::IFLA_MACVLAN_BC_CUTOFF; +pub const __IFLA_MACVLAN_MAX: _bindgen_ty_12 = _bindgen_ty_12::__IFLA_MACVLAN_MAX; +pub const IFLA_VRF_UNSPEC: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_UNSPEC; +pub const IFLA_VRF_TABLE: _bindgen_ty_13 = _bindgen_ty_13::IFLA_VRF_TABLE; +pub const __IFLA_VRF_MAX: _bindgen_ty_13 = _bindgen_ty_13::__IFLA_VRF_MAX; +pub const IFLA_VRF_PORT_UNSPEC: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_UNSPEC; +pub const IFLA_VRF_PORT_TABLE: _bindgen_ty_14 = _bindgen_ty_14::IFLA_VRF_PORT_TABLE; +pub const __IFLA_VRF_PORT_MAX: _bindgen_ty_14 = _bindgen_ty_14::__IFLA_VRF_PORT_MAX; +pub const IFLA_MACSEC_UNSPEC: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_UNSPEC; +pub const IFLA_MACSEC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCI; +pub const IFLA_MACSEC_PORT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PORT; +pub const IFLA_MACSEC_ICV_LEN: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ICV_LEN; +pub const IFLA_MACSEC_CIPHER_SUITE: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_CIPHER_SUITE; +pub const IFLA_MACSEC_WINDOW: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_WINDOW; +pub const IFLA_MACSEC_ENCODING_SA: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCODING_SA; +pub const IFLA_MACSEC_ENCRYPT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ENCRYPT; +pub const IFLA_MACSEC_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PROTECT; +pub const IFLA_MACSEC_INC_SCI: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_INC_SCI; +pub const IFLA_MACSEC_ES: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_ES; +pub const IFLA_MACSEC_SCB: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_SCB; +pub const IFLA_MACSEC_REPLAY_PROTECT: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_REPLAY_PROTECT; +pub const IFLA_MACSEC_VALIDATION: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_VALIDATION; +pub const IFLA_MACSEC_PAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_PAD; +pub const IFLA_MACSEC_OFFLOAD: _bindgen_ty_15 = _bindgen_ty_15::IFLA_MACSEC_OFFLOAD; +pub const __IFLA_MACSEC_MAX: _bindgen_ty_15 = _bindgen_ty_15::__IFLA_MACSEC_MAX; +pub const IFLA_XFRM_UNSPEC: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_UNSPEC; +pub const IFLA_XFRM_LINK: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_LINK; +pub const IFLA_XFRM_IF_ID: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_IF_ID; +pub const IFLA_XFRM_COLLECT_METADATA: _bindgen_ty_16 = _bindgen_ty_16::IFLA_XFRM_COLLECT_METADATA; +pub const __IFLA_XFRM_MAX: _bindgen_ty_16 = _bindgen_ty_16::__IFLA_XFRM_MAX; +pub const IFLA_IPVLAN_UNSPEC: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_UNSPEC; +pub const IFLA_IPVLAN_MODE: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_MODE; +pub const IFLA_IPVLAN_FLAGS: _bindgen_ty_17 = _bindgen_ty_17::IFLA_IPVLAN_FLAGS; +pub const __IFLA_IPVLAN_MAX: _bindgen_ty_17 = _bindgen_ty_17::__IFLA_IPVLAN_MAX; +pub const IFLA_NETKIT_UNSPEC: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_UNSPEC; +pub const IFLA_NETKIT_PEER_INFO: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_INFO; +pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PRIMARY; +pub const IFLA_NETKIT_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_POLICY; +pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_POLICY; +pub const IFLA_NETKIT_MODE: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_SCRUB; +pub const IFLA_NETKIT_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; +pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const __IFLA_NETKIT_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_NETKIT_MAX; +pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_UNSPEC; +pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_BYTES; +pub const VNIFILTER_ENTRY_STATS_RX_PKTS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_PKTS; +pub const VNIFILTER_ENTRY_STATS_RX_DROPS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_DROPS; +pub const VNIFILTER_ENTRY_STATS_RX_ERRORS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_TX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_TX_BYTES; +pub const VNIFILTER_ENTRY_STATS_TX_PKTS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_TX_PKTS; +pub const VNIFILTER_ENTRY_STATS_TX_DROPS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_TX_DROPS; +pub const VNIFILTER_ENTRY_STATS_TX_ERRORS: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_TX_ERRORS; +pub const VNIFILTER_ENTRY_STATS_PAD: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_PAD; +pub const __VNIFILTER_ENTRY_STATS_MAX: _bindgen_ty_19 = _bindgen_ty_19::__VNIFILTER_ENTRY_STATS_MAX; +pub const VXLAN_VNIFILTER_ENTRY_UNSPEC: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY_START: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_START; +pub const VXLAN_VNIFILTER_ENTRY_END: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_END; +pub const VXLAN_VNIFILTER_ENTRY_GROUP: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_GROUP; +pub const VXLAN_VNIFILTER_ENTRY_GROUP6: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_GROUP6; +pub const VXLAN_VNIFILTER_ENTRY_STATS: _bindgen_ty_20 = _bindgen_ty_20::VXLAN_VNIFILTER_ENTRY_STATS; +pub const __VXLAN_VNIFILTER_ENTRY_MAX: _bindgen_ty_20 = _bindgen_ty_20::__VXLAN_VNIFILTER_ENTRY_MAX; +pub const VXLAN_VNIFILTER_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VXLAN_VNIFILTER_UNSPEC; +pub const VXLAN_VNIFILTER_ENTRY: _bindgen_ty_21 = _bindgen_ty_21::VXLAN_VNIFILTER_ENTRY; +pub const __VXLAN_VNIFILTER_MAX: _bindgen_ty_21 = _bindgen_ty_21::__VXLAN_VNIFILTER_MAX; +pub const IFLA_VXLAN_UNSPEC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_UNSPEC; +pub const IFLA_VXLAN_ID: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_ID; +pub const IFLA_VXLAN_GROUP: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_GROUP; +pub const IFLA_VXLAN_LINK: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LINK; +pub const IFLA_VXLAN_LOCAL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LOCAL; +pub const IFLA_VXLAN_TTL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_TTL; +pub const IFLA_VXLAN_TOS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_TOS; +pub const IFLA_VXLAN_LEARNING: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LEARNING; +pub const IFLA_VXLAN_AGEING: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_AGEING; +pub const IFLA_VXLAN_LIMIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LIMIT; +pub const IFLA_VXLAN_PORT_RANGE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_PORT_RANGE; +pub const IFLA_VXLAN_PROXY: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_PROXY; +pub const IFLA_VXLAN_RSC: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_RSC; +pub const IFLA_VXLAN_L2MISS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_L2MISS; +pub const IFLA_VXLAN_L3MISS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_L3MISS; +pub const IFLA_VXLAN_PORT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_PORT; +pub const IFLA_VXLAN_GROUP6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_GROUP6; +pub const IFLA_VXLAN_LOCAL6: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LOCAL6; +pub const IFLA_VXLAN_UDP_CSUM: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_UDP_CSUM; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_UDP_ZERO_CSUM6_TX; +pub const IFLA_VXLAN_UDP_ZERO_CSUM6_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_UDP_ZERO_CSUM6_RX; +pub const IFLA_VXLAN_REMCSUM_TX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_REMCSUM_TX; +pub const IFLA_VXLAN_REMCSUM_RX: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_REMCSUM_RX; +pub const IFLA_VXLAN_GBP: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_GBP; +pub const IFLA_VXLAN_REMCSUM_NOPARTIAL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_REMCSUM_NOPARTIAL; +pub const IFLA_VXLAN_COLLECT_METADATA: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_COLLECT_METADATA; +pub const IFLA_VXLAN_LABEL: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LABEL; +pub const IFLA_VXLAN_GPE: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_GPE; +pub const IFLA_VXLAN_TTL_INHERIT: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_TTL_INHERIT; +pub const IFLA_VXLAN_DF: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_DF; +pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_VNIFILTER; +pub const IFLA_VXLAN_LOCALBYPASS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LOCALBYPASS; +pub const IFLA_VXLAN_LABEL_POLICY: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_LABEL_POLICY; +pub const IFLA_VXLAN_RESERVED_BITS: _bindgen_ty_22 = _bindgen_ty_22::IFLA_VXLAN_RESERVED_BITS; +pub const __IFLA_VXLAN_MAX: _bindgen_ty_22 = _bindgen_ty_22::__IFLA_VXLAN_MAX; +pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_UNSPEC; +pub const IFLA_GENEVE_ID: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ID; +pub const IFLA_GENEVE_REMOTE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_REMOTE; +pub const IFLA_GENEVE_TTL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_TTL; +pub const IFLA_GENEVE_TOS: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_TOS; +pub const IFLA_GENEVE_PORT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT; +pub const IFLA_GENEVE_COLLECT_METADATA: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_COLLECT_METADATA; +pub const IFLA_GENEVE_REMOTE6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_REMOTE6; +pub const IFLA_GENEVE_UDP_CSUM: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_UDP_CSUM; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_TX: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_UDP_ZERO_CSUM6_TX; +pub const IFLA_GENEVE_UDP_ZERO_CSUM6_RX: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_UDP_ZERO_CSUM6_RX; +pub const IFLA_GENEVE_LABEL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LABEL; +pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_TTL_INHERIT; +pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; +pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; +pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; +pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; +pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; +pub const IFLA_BAREUDP_ETHERTYPE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_ETHERTYPE; +pub const IFLA_BAREUDP_SRCPORT_MIN: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_SRCPORT_MIN; +pub const IFLA_BAREUDP_MULTIPROTO_MODE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_MULTIPROTO_MODE; +pub const __IFLA_BAREUDP_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_BAREUDP_MAX; +pub const IFLA_PPP_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_PPP_UNSPEC; +pub const IFLA_PPP_DEV_FD: _bindgen_ty_25 = _bindgen_ty_25::IFLA_PPP_DEV_FD; +pub const __IFLA_PPP_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_PPP_MAX; +pub const IFLA_GTP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_UNSPEC; +pub const IFLA_GTP_FD0: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_FD0; +pub const IFLA_GTP_FD1: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_FD1; +pub const IFLA_GTP_PDP_HASHSIZE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_PDP_HASHSIZE; +pub const IFLA_GTP_ROLE: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_ROLE; +pub const IFLA_GTP_CREATE_SOCKETS: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_CREATE_SOCKETS; +pub const IFLA_GTP_RESTART_COUNT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_RESTART_COUNT; +pub const IFLA_GTP_LOCAL: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_LOCAL; +pub const IFLA_GTP_LOCAL6: _bindgen_ty_26 = _bindgen_ty_26::IFLA_GTP_LOCAL6; +pub const __IFLA_GTP_MAX: _bindgen_ty_26 = _bindgen_ty_26::__IFLA_GTP_MAX; +pub const IFLA_BOND_UNSPEC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_UNSPEC; +pub const IFLA_BOND_MODE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MODE; +pub const IFLA_BOND_ACTIVE_SLAVE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ACTIVE_SLAVE; +pub const IFLA_BOND_MIIMON: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MIIMON; +pub const IFLA_BOND_UPDELAY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_UPDELAY; +pub const IFLA_BOND_DOWNDELAY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_DOWNDELAY; +pub const IFLA_BOND_USE_CARRIER: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_USE_CARRIER; +pub const IFLA_BOND_ARP_INTERVAL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ARP_INTERVAL; +pub const IFLA_BOND_ARP_IP_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ARP_IP_TARGET; +pub const IFLA_BOND_ARP_VALIDATE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ARP_VALIDATE; +pub const IFLA_BOND_ARP_ALL_TARGETS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ARP_ALL_TARGETS; +pub const IFLA_BOND_PRIMARY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_PRIMARY; +pub const IFLA_BOND_PRIMARY_RESELECT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_PRIMARY_RESELECT; +pub const IFLA_BOND_FAIL_OVER_MAC: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_FAIL_OVER_MAC; +pub const IFLA_BOND_XMIT_HASH_POLICY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_XMIT_HASH_POLICY; +pub const IFLA_BOND_RESEND_IGMP: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_RESEND_IGMP; +pub const IFLA_BOND_NUM_PEER_NOTIF: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NUM_PEER_NOTIF; +pub const IFLA_BOND_ALL_SLAVES_ACTIVE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_ALL_SLAVES_ACTIVE; +pub const IFLA_BOND_MIN_LINKS: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MIN_LINKS; +pub const IFLA_BOND_LP_INTERVAL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LP_INTERVAL; +pub const IFLA_BOND_PACKETS_PER_SLAVE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_PACKETS_PER_SLAVE; +pub const IFLA_BOND_AD_LACP_RATE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_LACP_RATE; +pub const IFLA_BOND_AD_SELECT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_SELECT; +pub const IFLA_BOND_AD_INFO: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_INFO; +pub const IFLA_BOND_AD_ACTOR_SYS_PRIO: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_ACTOR_SYS_PRIO; +pub const IFLA_BOND_AD_USER_PORT_KEY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_USER_PORT_KEY; +pub const IFLA_BOND_AD_ACTOR_SYSTEM: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_ACTOR_SYSTEM; +pub const IFLA_BOND_TLB_DYNAMIC_LB: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_TLB_DYNAMIC_LB; +pub const IFLA_BOND_PEER_NOTIF_DELAY: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_PEER_NOTIF_DELAY; +pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_AD_LACP_ACTIVE; +pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSED_MAX; +pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; +pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; +pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; +pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; +pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; +pub const IFLA_BOND_AD_INFO_NUM_PORTS: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_NUM_PORTS; +pub const IFLA_BOND_AD_INFO_ACTOR_KEY: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_ACTOR_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_KEY: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_PARTNER_KEY; +pub const IFLA_BOND_AD_INFO_PARTNER_MAC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_PARTNER_MAC; +pub const __IFLA_BOND_AD_INFO_MAX: _bindgen_ty_28 = _bindgen_ty_28::__IFLA_BOND_AD_INFO_MAX; +pub const IFLA_BOND_SLAVE_UNSPEC: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_UNSPEC; +pub const IFLA_BOND_SLAVE_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_STATE; +pub const IFLA_BOND_SLAVE_MII_STATUS: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_MII_STATUS; +pub const IFLA_BOND_SLAVE_LINK_FAILURE_COUNT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_LINK_FAILURE_COUNT; +pub const IFLA_BOND_SLAVE_PERM_HWADDR: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PERM_HWADDR; +pub const IFLA_BOND_SLAVE_QUEUE_ID: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_QUEUE_ID; +pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_AGGREGATOR_ID; +pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; +pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; +pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; +pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; +pub const __IFLA_VF_INFO_MAX: _bindgen_ty_30 = _bindgen_ty_30::__IFLA_VF_INFO_MAX; +pub const IFLA_VF_UNSPEC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_UNSPEC; +pub const IFLA_VF_MAC: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_MAC; +pub const IFLA_VF_VLAN: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN; +pub const IFLA_VF_TX_RATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_TX_RATE; +pub const IFLA_VF_SPOOFCHK: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_SPOOFCHK; +pub const IFLA_VF_LINK_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_LINK_STATE; +pub const IFLA_VF_RATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_RATE; +pub const IFLA_VF_RSS_QUERY_EN: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_RSS_QUERY_EN; +pub const IFLA_VF_STATS: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_STATS; +pub const IFLA_VF_TRUST: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_TRUST; +pub const IFLA_VF_IB_NODE_GUID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_IB_NODE_GUID; +pub const IFLA_VF_IB_PORT_GUID: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_IB_PORT_GUID; +pub const IFLA_VF_VLAN_LIST: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_VLAN_LIST; +pub const IFLA_VF_BROADCAST: _bindgen_ty_31 = _bindgen_ty_31::IFLA_VF_BROADCAST; +pub const __IFLA_VF_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_VF_MAX; +pub const IFLA_VF_VLAN_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_VLAN_INFO_UNSPEC; +pub const IFLA_VF_VLAN_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_VLAN_INFO; +pub const __IFLA_VF_VLAN_INFO_MAX: _bindgen_ty_32 = _bindgen_ty_32::__IFLA_VF_VLAN_INFO_MAX; +pub const IFLA_VF_LINK_STATE_AUTO: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_LINK_STATE_AUTO; +pub const IFLA_VF_LINK_STATE_ENABLE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_LINK_STATE_ENABLE; +pub const IFLA_VF_LINK_STATE_DISABLE: _bindgen_ty_33 = _bindgen_ty_33::IFLA_VF_LINK_STATE_DISABLE; +pub const __IFLA_VF_LINK_STATE_MAX: _bindgen_ty_33 = _bindgen_ty_33::__IFLA_VF_LINK_STATE_MAX; +pub const IFLA_VF_STATS_RX_PACKETS: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_RX_PACKETS; +pub const IFLA_VF_STATS_TX_PACKETS: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_TX_PACKETS; +pub const IFLA_VF_STATS_RX_BYTES: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_RX_BYTES; +pub const IFLA_VF_STATS_TX_BYTES: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_TX_BYTES; +pub const IFLA_VF_STATS_BROADCAST: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_BROADCAST; +pub const IFLA_VF_STATS_MULTICAST: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_MULTICAST; +pub const IFLA_VF_STATS_PAD: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_PAD; +pub const IFLA_VF_STATS_RX_DROPPED: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_RX_DROPPED; +pub const IFLA_VF_STATS_TX_DROPPED: _bindgen_ty_34 = _bindgen_ty_34::IFLA_VF_STATS_TX_DROPPED; +pub const __IFLA_VF_STATS_MAX: _bindgen_ty_34 = _bindgen_ty_34::__IFLA_VF_STATS_MAX; +pub const IFLA_VF_PORT_UNSPEC: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_PORT_UNSPEC; +pub const IFLA_VF_PORT: _bindgen_ty_35 = _bindgen_ty_35::IFLA_VF_PORT; +pub const __IFLA_VF_PORT_MAX: _bindgen_ty_35 = _bindgen_ty_35::__IFLA_VF_PORT_MAX; +pub const IFLA_PORT_UNSPEC: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_UNSPEC; +pub const IFLA_PORT_VF: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_VF; +pub const IFLA_PORT_PROFILE: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_PROFILE; +pub const IFLA_PORT_VSI_TYPE: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_VSI_TYPE; +pub const IFLA_PORT_INSTANCE_UUID: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_INSTANCE_UUID; +pub const IFLA_PORT_HOST_UUID: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_HOST_UUID; +pub const IFLA_PORT_REQUEST: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_REQUEST; +pub const IFLA_PORT_RESPONSE: _bindgen_ty_36 = _bindgen_ty_36::IFLA_PORT_RESPONSE; +pub const __IFLA_PORT_MAX: _bindgen_ty_36 = _bindgen_ty_36::__IFLA_PORT_MAX; +pub const PORT_REQUEST_PREASSOCIATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_REQUEST_PREASSOCIATE; +pub const PORT_REQUEST_PREASSOCIATE_RR: _bindgen_ty_37 = _bindgen_ty_37::PORT_REQUEST_PREASSOCIATE_RR; +pub const PORT_REQUEST_ASSOCIATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_REQUEST_ASSOCIATE; +pub const PORT_REQUEST_DISASSOCIATE: _bindgen_ty_37 = _bindgen_ty_37::PORT_REQUEST_DISASSOCIATE; +pub const PORT_VDP_RESPONSE_SUCCESS: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_SUCCESS; +pub const PORT_VDP_RESPONSE_INVALID_FORMAT: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_INVALID_FORMAT; +pub const PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_VDP_RESPONSE_UNUSED_VTID: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_UNUSED_VTID; +pub const PORT_VDP_RESPONSE_VTID_VIOLATION: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_VTID_VIOLATION; +pub const PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION; +pub const PORT_VDP_RESPONSE_OUT_OF_SYNC: _bindgen_ty_38 = _bindgen_ty_38::PORT_VDP_RESPONSE_OUT_OF_SYNC; +pub const PORT_PROFILE_RESPONSE_SUCCESS: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_SUCCESS; +pub const PORT_PROFILE_RESPONSE_INPROGRESS: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_INPROGRESS; +pub const PORT_PROFILE_RESPONSE_INVALID: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_INVALID; +pub const PORT_PROFILE_RESPONSE_BADSTATE: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_BADSTATE; +pub const PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES; +pub const PORT_PROFILE_RESPONSE_ERROR: _bindgen_ty_38 = _bindgen_ty_38::PORT_PROFILE_RESPONSE_ERROR; +pub const IFLA_IPOIB_UNSPEC: _bindgen_ty_39 = _bindgen_ty_39::IFLA_IPOIB_UNSPEC; +pub const IFLA_IPOIB_PKEY: _bindgen_ty_39 = _bindgen_ty_39::IFLA_IPOIB_PKEY; +pub const IFLA_IPOIB_MODE: _bindgen_ty_39 = _bindgen_ty_39::IFLA_IPOIB_MODE; +pub const IFLA_IPOIB_UMCAST: _bindgen_ty_39 = _bindgen_ty_39::IFLA_IPOIB_UMCAST; +pub const __IFLA_IPOIB_MAX: _bindgen_ty_39 = _bindgen_ty_39::__IFLA_IPOIB_MAX; +pub const IPOIB_MODE_DATAGRAM: _bindgen_ty_40 = _bindgen_ty_40::IPOIB_MODE_DATAGRAM; +pub const IPOIB_MODE_CONNECTED: _bindgen_ty_40 = _bindgen_ty_40::IPOIB_MODE_CONNECTED; +pub const HSR_PROTOCOL_HSR: _bindgen_ty_41 = _bindgen_ty_41::HSR_PROTOCOL_HSR; +pub const HSR_PROTOCOL_PRP: _bindgen_ty_41 = _bindgen_ty_41::HSR_PROTOCOL_PRP; +pub const HSR_PROTOCOL_MAX: _bindgen_ty_41 = _bindgen_ty_41::HSR_PROTOCOL_MAX; +pub const IFLA_HSR_UNSPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_UNSPEC; +pub const IFLA_HSR_SLAVE1: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_SLAVE1; +pub const IFLA_HSR_SLAVE2: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_SLAVE2; +pub const IFLA_HSR_MULTICAST_SPEC: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_MULTICAST_SPEC; +pub const IFLA_HSR_SUPERVISION_ADDR: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_SUPERVISION_ADDR; +pub const IFLA_HSR_SEQ_NR: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_SEQ_NR; +pub const IFLA_HSR_VERSION: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_VERSION; +pub const IFLA_HSR_PROTOCOL: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_PROTOCOL; +pub const IFLA_HSR_INTERLINK: _bindgen_ty_42 = _bindgen_ty_42::IFLA_HSR_INTERLINK; +pub const __IFLA_HSR_MAX: _bindgen_ty_42 = _bindgen_ty_42::__IFLA_HSR_MAX; +pub const IFLA_STATS_UNSPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_UNSPEC; +pub const IFLA_STATS_LINK_64: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_LINK_64; +pub const IFLA_STATS_LINK_XSTATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_LINK_XSTATS; +pub const IFLA_STATS_LINK_XSTATS_SLAVE: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_LINK_XSTATS_SLAVE; +pub const IFLA_STATS_LINK_OFFLOAD_XSTATS: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_LINK_OFFLOAD_XSTATS; +pub const IFLA_STATS_AF_SPEC: _bindgen_ty_43 = _bindgen_ty_43::IFLA_STATS_AF_SPEC; +pub const __IFLA_STATS_MAX: _bindgen_ty_43 = _bindgen_ty_43::__IFLA_STATS_MAX; +pub const IFLA_STATS_GETSET_UNSPEC: _bindgen_ty_44 = _bindgen_ty_44::IFLA_STATS_GETSET_UNSPEC; +pub const IFLA_STATS_GET_FILTERS: _bindgen_ty_44 = _bindgen_ty_44::IFLA_STATS_GET_FILTERS; +pub const IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_44 = _bindgen_ty_44::IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_STATS_GETSET_MAX: _bindgen_ty_44 = _bindgen_ty_44::__IFLA_STATS_GETSET_MAX; +pub const LINK_XSTATS_TYPE_UNSPEC: _bindgen_ty_45 = _bindgen_ty_45::LINK_XSTATS_TYPE_UNSPEC; +pub const LINK_XSTATS_TYPE_BRIDGE: _bindgen_ty_45 = _bindgen_ty_45::LINK_XSTATS_TYPE_BRIDGE; +pub const LINK_XSTATS_TYPE_BOND: _bindgen_ty_45 = _bindgen_ty_45::LINK_XSTATS_TYPE_BOND; +pub const __LINK_XSTATS_TYPE_MAX: _bindgen_ty_45 = _bindgen_ty_45::__LINK_XSTATS_TYPE_MAX; +pub const IFLA_OFFLOAD_XSTATS_UNSPEC: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_CPU_HIT: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_CPU_HIT; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_HW_S_INFO; +pub const IFLA_OFFLOAD_XSTATS_L3_STATS: _bindgen_ty_46 = _bindgen_ty_46::IFLA_OFFLOAD_XSTATS_L3_STATS; +pub const __IFLA_OFFLOAD_XSTATS_MAX: _bindgen_ty_46 = _bindgen_ty_46::__IFLA_OFFLOAD_XSTATS_MAX; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC: _bindgen_ty_47 = _bindgen_ty_47::IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST: _bindgen_ty_47 = _bindgen_ty_47::IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST; +pub const IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED: _bindgen_ty_47 = _bindgen_ty_47::IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED; +pub const __IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX: _bindgen_ty_47 = _bindgen_ty_47::__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX; +pub const XDP_ATTACHED_NONE: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_NONE; +pub const XDP_ATTACHED_DRV: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_DRV; +pub const XDP_ATTACHED_SKB: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_SKB; +pub const XDP_ATTACHED_HW: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_HW; +pub const XDP_ATTACHED_MULTI: _bindgen_ty_48 = _bindgen_ty_48::XDP_ATTACHED_MULTI; +pub const IFLA_XDP_UNSPEC: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_UNSPEC; +pub const IFLA_XDP_FD: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_FD; +pub const IFLA_XDP_ATTACHED: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_ATTACHED; +pub const IFLA_XDP_FLAGS: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_FLAGS; +pub const IFLA_XDP_PROG_ID: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_PROG_ID; +pub const IFLA_XDP_DRV_PROG_ID: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_DRV_PROG_ID; +pub const IFLA_XDP_SKB_PROG_ID: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_SKB_PROG_ID; +pub const IFLA_XDP_HW_PROG_ID: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_HW_PROG_ID; +pub const IFLA_XDP_EXPECTED_FD: _bindgen_ty_49 = _bindgen_ty_49::IFLA_XDP_EXPECTED_FD; +pub const __IFLA_XDP_MAX: _bindgen_ty_49 = _bindgen_ty_49::__IFLA_XDP_MAX; +pub const IFLA_EVENT_NONE: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_NONE; +pub const IFLA_EVENT_REBOOT: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_REBOOT; +pub const IFLA_EVENT_FEATURES: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_FEATURES; +pub const IFLA_EVENT_BONDING_FAILOVER: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_BONDING_FAILOVER; +pub const IFLA_EVENT_NOTIFY_PEERS: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_NOTIFY_PEERS; +pub const IFLA_EVENT_IGMP_RESEND: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_IGMP_RESEND; +pub const IFLA_EVENT_BONDING_OPTIONS: _bindgen_ty_50 = _bindgen_ty_50::IFLA_EVENT_BONDING_OPTIONS; +pub const IFLA_TUN_UNSPEC: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_UNSPEC; +pub const IFLA_TUN_OWNER: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_OWNER; +pub const IFLA_TUN_GROUP: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_GROUP; +pub const IFLA_TUN_TYPE: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_TYPE; +pub const IFLA_TUN_PI: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_PI; +pub const IFLA_TUN_VNET_HDR: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_VNET_HDR; +pub const IFLA_TUN_PERSIST: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_PERSIST; +pub const IFLA_TUN_MULTI_QUEUE: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_MULTI_QUEUE; +pub const IFLA_TUN_NUM_QUEUES: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_NUM_QUEUES; +pub const IFLA_TUN_NUM_DISABLED_QUEUES: _bindgen_ty_51 = _bindgen_ty_51::IFLA_TUN_NUM_DISABLED_QUEUES; +pub const __IFLA_TUN_MAX: _bindgen_ty_51 = _bindgen_ty_51::__IFLA_TUN_MAX; +pub const IFLA_RMNET_UNSPEC: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_UNSPEC; +pub const IFLA_RMNET_MUX_ID: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_MUX_ID; +pub const IFLA_RMNET_FLAGS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_FLAGS; +pub const __IFLA_RMNET_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_RMNET_MAX; +pub const IFLA_MCTP_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_UNSPEC; +pub const IFLA_MCTP_NET: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_PHYS_BINDING; +pub const __IFLA_MCTP_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_MCTP_MAX; +pub const IFLA_DSA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_UNSPEC; +pub const IFLA_DSA_CONDUIT: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; +pub const IFLA_DSA_MASTER: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; +pub const __IFLA_DSA_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_DSA_MAX; +pub const IFLA_OVPN_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_OVPN_UNSPEC; +pub const IFLA_OVPN_MODE: _bindgen_ty_55 = _bindgen_ty_55::IFLA_OVPN_MODE; +pub const __IFLA_OVPN_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_OVPN_MAX; +pub const IFA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFA_UNSPEC; +pub const IFA_ADDRESS: _bindgen_ty_56 = _bindgen_ty_56::IFA_ADDRESS; +pub const IFA_LOCAL: _bindgen_ty_56 = _bindgen_ty_56::IFA_LOCAL; +pub const IFA_LABEL: _bindgen_ty_56 = _bindgen_ty_56::IFA_LABEL; +pub const IFA_BROADCAST: _bindgen_ty_56 = _bindgen_ty_56::IFA_BROADCAST; +pub const IFA_ANYCAST: _bindgen_ty_56 = _bindgen_ty_56::IFA_ANYCAST; +pub const IFA_CACHEINFO: _bindgen_ty_56 = _bindgen_ty_56::IFA_CACHEINFO; +pub const IFA_MULTICAST: _bindgen_ty_56 = _bindgen_ty_56::IFA_MULTICAST; +pub const IFA_FLAGS: _bindgen_ty_56 = _bindgen_ty_56::IFA_FLAGS; +pub const IFA_RT_PRIORITY: _bindgen_ty_56 = _bindgen_ty_56::IFA_RT_PRIORITY; +pub const IFA_TARGET_NETNSID: _bindgen_ty_56 = _bindgen_ty_56::IFA_TARGET_NETNSID; +pub const IFA_PROTO: _bindgen_ty_56 = _bindgen_ty_56::IFA_PROTO; +pub const __IFA_MAX: _bindgen_ty_56 = _bindgen_ty_56::__IFA_MAX; +pub const NDA_UNSPEC: _bindgen_ty_57 = _bindgen_ty_57::NDA_UNSPEC; +pub const NDA_DST: _bindgen_ty_57 = _bindgen_ty_57::NDA_DST; +pub const NDA_LLADDR: _bindgen_ty_57 = _bindgen_ty_57::NDA_LLADDR; +pub const NDA_CACHEINFO: _bindgen_ty_57 = _bindgen_ty_57::NDA_CACHEINFO; +pub const NDA_PROBES: _bindgen_ty_57 = _bindgen_ty_57::NDA_PROBES; +pub const NDA_VLAN: _bindgen_ty_57 = _bindgen_ty_57::NDA_VLAN; +pub const NDA_PORT: _bindgen_ty_57 = _bindgen_ty_57::NDA_PORT; +pub const NDA_VNI: _bindgen_ty_57 = _bindgen_ty_57::NDA_VNI; +pub const NDA_IFINDEX: _bindgen_ty_57 = _bindgen_ty_57::NDA_IFINDEX; +pub const NDA_MASTER: _bindgen_ty_57 = _bindgen_ty_57::NDA_MASTER; +pub const NDA_LINK_NETNSID: _bindgen_ty_57 = _bindgen_ty_57::NDA_LINK_NETNSID; +pub const NDA_SRC_VNI: _bindgen_ty_57 = _bindgen_ty_57::NDA_SRC_VNI; +pub const NDA_PROTOCOL: _bindgen_ty_57 = _bindgen_ty_57::NDA_PROTOCOL; +pub const NDA_NH_ID: _bindgen_ty_57 = _bindgen_ty_57::NDA_NH_ID; +pub const NDA_FDB_EXT_ATTRS: _bindgen_ty_57 = _bindgen_ty_57::NDA_FDB_EXT_ATTRS; +pub const NDA_FLAGS_EXT: _bindgen_ty_57 = _bindgen_ty_57::NDA_FLAGS_EXT; +pub const NDA_NDM_STATE_MASK: _bindgen_ty_57 = _bindgen_ty_57::NDA_NDM_STATE_MASK; +pub const NDA_NDM_FLAGS_MASK: _bindgen_ty_57 = _bindgen_ty_57::NDA_NDM_FLAGS_MASK; +pub const __NDA_MAX: _bindgen_ty_57 = _bindgen_ty_57::__NDA_MAX; +pub const NDTPA_UNSPEC: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_UNSPEC; +pub const NDTPA_IFINDEX: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_IFINDEX; +pub const NDTPA_REFCNT: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_REFCNT; +pub const NDTPA_REACHABLE_TIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_REACHABLE_TIME; +pub const NDTPA_BASE_REACHABLE_TIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_BASE_REACHABLE_TIME; +pub const NDTPA_RETRANS_TIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_RETRANS_TIME; +pub const NDTPA_GC_STALETIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_GC_STALETIME; +pub const NDTPA_DELAY_PROBE_TIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_DELAY_PROBE_TIME; +pub const NDTPA_QUEUE_LEN: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_QUEUE_LEN; +pub const NDTPA_APP_PROBES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_APP_PROBES; +pub const NDTPA_UCAST_PROBES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_UCAST_PROBES; +pub const NDTPA_MCAST_PROBES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_MCAST_PROBES; +pub const NDTPA_ANYCAST_DELAY: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_ANYCAST_DELAY; +pub const NDTPA_PROXY_DELAY: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_PROXY_DELAY; +pub const NDTPA_PROXY_QLEN: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_PROXY_QLEN; +pub const NDTPA_LOCKTIME: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_LOCKTIME; +pub const NDTPA_QUEUE_LENBYTES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_QUEUE_LENBYTES; +pub const NDTPA_MCAST_REPROBES: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_MCAST_REPROBES; +pub const NDTPA_PAD: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_PAD; +pub const NDTPA_INTERVAL_PROBE_TIME_MS: _bindgen_ty_58 = _bindgen_ty_58::NDTPA_INTERVAL_PROBE_TIME_MS; +pub const __NDTPA_MAX: _bindgen_ty_58 = _bindgen_ty_58::__NDTPA_MAX; +pub const NDTA_UNSPEC: _bindgen_ty_59 = _bindgen_ty_59::NDTA_UNSPEC; +pub const NDTA_NAME: _bindgen_ty_59 = _bindgen_ty_59::NDTA_NAME; +pub const NDTA_THRESH1: _bindgen_ty_59 = _bindgen_ty_59::NDTA_THRESH1; +pub const NDTA_THRESH2: _bindgen_ty_59 = _bindgen_ty_59::NDTA_THRESH2; +pub const NDTA_THRESH3: _bindgen_ty_59 = _bindgen_ty_59::NDTA_THRESH3; +pub const NDTA_CONFIG: _bindgen_ty_59 = _bindgen_ty_59::NDTA_CONFIG; +pub const NDTA_PARMS: _bindgen_ty_59 = _bindgen_ty_59::NDTA_PARMS; +pub const NDTA_STATS: _bindgen_ty_59 = _bindgen_ty_59::NDTA_STATS; +pub const NDTA_GC_INTERVAL: _bindgen_ty_59 = _bindgen_ty_59::NDTA_GC_INTERVAL; +pub const NDTA_PAD: _bindgen_ty_59 = _bindgen_ty_59::NDTA_PAD; +pub const __NDTA_MAX: _bindgen_ty_59 = _bindgen_ty_59::__NDTA_MAX; +pub const FDB_NOTIFY_BIT: _bindgen_ty_60 = _bindgen_ty_60::FDB_NOTIFY_BIT; +pub const FDB_NOTIFY_INACTIVE_BIT: _bindgen_ty_60 = _bindgen_ty_60::FDB_NOTIFY_INACTIVE_BIT; +pub const NFEA_UNSPEC: _bindgen_ty_61 = _bindgen_ty_61::NFEA_UNSPEC; +pub const NFEA_ACTIVITY_NOTIFY: _bindgen_ty_61 = _bindgen_ty_61::NFEA_ACTIVITY_NOTIFY; +pub const NFEA_DONT_REFRESH: _bindgen_ty_61 = _bindgen_ty_61::NFEA_DONT_REFRESH; +pub const __NFEA_MAX: _bindgen_ty_61 = _bindgen_ty_61::__NFEA_MAX; +pub const RTM_BASE: _bindgen_ty_62 = _bindgen_ty_62::RTM_BASE; +pub const RTM_NEWLINK: _bindgen_ty_62 = _bindgen_ty_62::RTM_BASE; +pub const RTM_DELLINK: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELLINK; +pub const RTM_GETLINK: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETLINK; +pub const RTM_SETLINK: _bindgen_ty_62 = _bindgen_ty_62::RTM_SETLINK; +pub const RTM_NEWADDR: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWADDR; +pub const RTM_DELADDR: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELADDR; +pub const RTM_GETADDR: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETADDR; +pub const RTM_NEWROUTE: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWROUTE; +pub const RTM_DELROUTE: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELROUTE; +pub const RTM_GETROUTE: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETROUTE; +pub const RTM_NEWNEIGH: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNEIGH; +pub const RTM_DELNEIGH: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNEIGH; +pub const RTM_GETNEIGH: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNEIGH; +pub const RTM_NEWRULE: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWRULE; +pub const RTM_DELRULE: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELRULE; +pub const RTM_GETRULE: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETRULE; +pub const RTM_NEWQDISC: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWQDISC; +pub const RTM_DELQDISC: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELQDISC; +pub const RTM_GETQDISC: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETQDISC; +pub const RTM_NEWTCLASS: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWTCLASS; +pub const RTM_DELTCLASS: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELTCLASS; +pub const RTM_GETTCLASS: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETTCLASS; +pub const RTM_NEWTFILTER: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWTFILTER; +pub const RTM_DELTFILTER: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELTFILTER; +pub const RTM_GETTFILTER: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETTFILTER; +pub const RTM_NEWACTION: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWACTION; +pub const RTM_DELACTION: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELACTION; +pub const RTM_GETACTION: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETACTION; +pub const RTM_NEWPREFIX: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWPREFIX; +pub const RTM_NEWMULTICAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWMULTICAST; +pub const RTM_DELMULTICAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELMULTICAST; +pub const RTM_GETMULTICAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETMULTICAST; +pub const RTM_NEWANYCAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWANYCAST; +pub const RTM_DELANYCAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELANYCAST; +pub const RTM_GETANYCAST: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETANYCAST; +pub const RTM_NEWNEIGHTBL: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNEIGHTBL; +pub const RTM_GETNEIGHTBL: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNEIGHTBL; +pub const RTM_SETNEIGHTBL: _bindgen_ty_62 = _bindgen_ty_62::RTM_SETNEIGHTBL; +pub const RTM_NEWNDUSEROPT: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNDUSEROPT; +pub const RTM_NEWADDRLABEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWADDRLABEL; +pub const RTM_DELADDRLABEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELADDRLABEL; +pub const RTM_GETADDRLABEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETADDRLABEL; +pub const RTM_GETDCB: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETDCB; +pub const RTM_SETDCB: _bindgen_ty_62 = _bindgen_ty_62::RTM_SETDCB; +pub const RTM_NEWNETCONF: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNETCONF; +pub const RTM_DELNETCONF: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNETCONF; +pub const RTM_GETNETCONF: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNETCONF; +pub const RTM_NEWMDB: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWMDB; +pub const RTM_DELMDB: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELMDB; +pub const RTM_GETMDB: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETMDB; +pub const RTM_NEWNSID: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNSID; +pub const RTM_DELNSID: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNSID; +pub const RTM_GETNSID: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNSID; +pub const RTM_NEWSTATS: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWSTATS; +pub const RTM_GETSTATS: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETSTATS; +pub const RTM_SETSTATS: _bindgen_ty_62 = _bindgen_ty_62::RTM_SETSTATS; +pub const RTM_NEWCACHEREPORT: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWCACHEREPORT; +pub const RTM_NEWCHAIN: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWCHAIN; +pub const RTM_DELCHAIN: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELCHAIN; +pub const RTM_GETCHAIN: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETCHAIN; +pub const RTM_NEWNEXTHOP: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNEXTHOP; +pub const RTM_DELNEXTHOP: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNEXTHOP; +pub const RTM_GETNEXTHOP: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNEXTHOP; +pub const RTM_NEWLINKPROP: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWLINKPROP; +pub const RTM_DELLINKPROP: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELLINKPROP; +pub const RTM_GETLINKPROP: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETLINKPROP; +pub const RTM_NEWVLAN: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWVLAN; +pub const RTM_DELVLAN: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELVLAN; +pub const RTM_GETVLAN: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETVLAN; +pub const RTM_NEWNEXTHOPBUCKET: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWNEXTHOPBUCKET; +pub const RTM_DELNEXTHOPBUCKET: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELNEXTHOPBUCKET; +pub const RTM_GETNEXTHOPBUCKET: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETNEXTHOPBUCKET; +pub const RTM_NEWTUNNEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_NEWTUNNEL; +pub const RTM_DELTUNNEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_DELTUNNEL; +pub const RTM_GETTUNNEL: _bindgen_ty_62 = _bindgen_ty_62::RTM_GETTUNNEL; +pub const __RTM_MAX: _bindgen_ty_62 = _bindgen_ty_62::__RTM_MAX; +pub const RTN_UNSPEC: _bindgen_ty_63 = _bindgen_ty_63::RTN_UNSPEC; +pub const RTN_UNICAST: _bindgen_ty_63 = _bindgen_ty_63::RTN_UNICAST; +pub const RTN_LOCAL: _bindgen_ty_63 = _bindgen_ty_63::RTN_LOCAL; +pub const RTN_BROADCAST: _bindgen_ty_63 = _bindgen_ty_63::RTN_BROADCAST; +pub const RTN_ANYCAST: _bindgen_ty_63 = _bindgen_ty_63::RTN_ANYCAST; +pub const RTN_MULTICAST: _bindgen_ty_63 = _bindgen_ty_63::RTN_MULTICAST; +pub const RTN_BLACKHOLE: _bindgen_ty_63 = _bindgen_ty_63::RTN_BLACKHOLE; +pub const RTN_UNREACHABLE: _bindgen_ty_63 = _bindgen_ty_63::RTN_UNREACHABLE; +pub const RTN_PROHIBIT: _bindgen_ty_63 = _bindgen_ty_63::RTN_PROHIBIT; +pub const RTN_THROW: _bindgen_ty_63 = _bindgen_ty_63::RTN_THROW; +pub const RTN_NAT: _bindgen_ty_63 = _bindgen_ty_63::RTN_NAT; +pub const RTN_XRESOLVE: _bindgen_ty_63 = _bindgen_ty_63::RTN_XRESOLVE; +pub const __RTN_MAX: _bindgen_ty_63 = _bindgen_ty_63::__RTN_MAX; +pub const RTAX_UNSPEC: _bindgen_ty_64 = _bindgen_ty_64::RTAX_UNSPEC; +pub const RTAX_LOCK: _bindgen_ty_64 = _bindgen_ty_64::RTAX_LOCK; +pub const RTAX_MTU: _bindgen_ty_64 = _bindgen_ty_64::RTAX_MTU; +pub const RTAX_WINDOW: _bindgen_ty_64 = _bindgen_ty_64::RTAX_WINDOW; +pub const RTAX_RTT: _bindgen_ty_64 = _bindgen_ty_64::RTAX_RTT; +pub const RTAX_RTTVAR: _bindgen_ty_64 = _bindgen_ty_64::RTAX_RTTVAR; +pub const RTAX_SSTHRESH: _bindgen_ty_64 = _bindgen_ty_64::RTAX_SSTHRESH; +pub const RTAX_CWND: _bindgen_ty_64 = _bindgen_ty_64::RTAX_CWND; +pub const RTAX_ADVMSS: _bindgen_ty_64 = _bindgen_ty_64::RTAX_ADVMSS; +pub const RTAX_REORDERING: _bindgen_ty_64 = _bindgen_ty_64::RTAX_REORDERING; +pub const RTAX_HOPLIMIT: _bindgen_ty_64 = _bindgen_ty_64::RTAX_HOPLIMIT; +pub const RTAX_INITCWND: _bindgen_ty_64 = _bindgen_ty_64::RTAX_INITCWND; +pub const RTAX_FEATURES: _bindgen_ty_64 = _bindgen_ty_64::RTAX_FEATURES; +pub const RTAX_RTO_MIN: _bindgen_ty_64 = _bindgen_ty_64::RTAX_RTO_MIN; +pub const RTAX_INITRWND: _bindgen_ty_64 = _bindgen_ty_64::RTAX_INITRWND; +pub const RTAX_QUICKACK: _bindgen_ty_64 = _bindgen_ty_64::RTAX_QUICKACK; +pub const RTAX_CC_ALGO: _bindgen_ty_64 = _bindgen_ty_64::RTAX_CC_ALGO; +pub const RTAX_FASTOPEN_NO_COOKIE: _bindgen_ty_64 = _bindgen_ty_64::RTAX_FASTOPEN_NO_COOKIE; +pub const __RTAX_MAX: _bindgen_ty_64 = _bindgen_ty_64::__RTAX_MAX; +pub const PREFIX_UNSPEC: _bindgen_ty_65 = _bindgen_ty_65::PREFIX_UNSPEC; +pub const PREFIX_ADDRESS: _bindgen_ty_65 = _bindgen_ty_65::PREFIX_ADDRESS; +pub const PREFIX_CACHEINFO: _bindgen_ty_65 = _bindgen_ty_65::PREFIX_CACHEINFO; +pub const __PREFIX_MAX: _bindgen_ty_65 = _bindgen_ty_65::__PREFIX_MAX; +pub const TCA_UNSPEC: _bindgen_ty_66 = _bindgen_ty_66::TCA_UNSPEC; +pub const TCA_KIND: _bindgen_ty_66 = _bindgen_ty_66::TCA_KIND; +pub const TCA_OPTIONS: _bindgen_ty_66 = _bindgen_ty_66::TCA_OPTIONS; +pub const TCA_STATS: _bindgen_ty_66 = _bindgen_ty_66::TCA_STATS; +pub const TCA_XSTATS: _bindgen_ty_66 = _bindgen_ty_66::TCA_XSTATS; +pub const TCA_RATE: _bindgen_ty_66 = _bindgen_ty_66::TCA_RATE; +pub const TCA_FCNT: _bindgen_ty_66 = _bindgen_ty_66::TCA_FCNT; +pub const TCA_STATS2: _bindgen_ty_66 = _bindgen_ty_66::TCA_STATS2; +pub const TCA_STAB: _bindgen_ty_66 = _bindgen_ty_66::TCA_STAB; +pub const TCA_PAD: _bindgen_ty_66 = _bindgen_ty_66::TCA_PAD; +pub const TCA_DUMP_INVISIBLE: _bindgen_ty_66 = _bindgen_ty_66::TCA_DUMP_INVISIBLE; +pub const TCA_CHAIN: _bindgen_ty_66 = _bindgen_ty_66::TCA_CHAIN; +pub const TCA_HW_OFFLOAD: _bindgen_ty_66 = _bindgen_ty_66::TCA_HW_OFFLOAD; +pub const TCA_INGRESS_BLOCK: _bindgen_ty_66 = _bindgen_ty_66::TCA_INGRESS_BLOCK; +pub const TCA_EGRESS_BLOCK: _bindgen_ty_66 = _bindgen_ty_66::TCA_EGRESS_BLOCK; +pub const TCA_DUMP_FLAGS: _bindgen_ty_66 = _bindgen_ty_66::TCA_DUMP_FLAGS; +pub const TCA_EXT_WARN_MSG: _bindgen_ty_66 = _bindgen_ty_66::TCA_EXT_WARN_MSG; +pub const __TCA_MAX: _bindgen_ty_66 = _bindgen_ty_66::__TCA_MAX; +pub const NDUSEROPT_UNSPEC: _bindgen_ty_67 = _bindgen_ty_67::NDUSEROPT_UNSPEC; +pub const NDUSEROPT_SRCADDR: _bindgen_ty_67 = _bindgen_ty_67::NDUSEROPT_SRCADDR; +pub const __NDUSEROPT_MAX: _bindgen_ty_67 = _bindgen_ty_67::__NDUSEROPT_MAX; +pub const TCA_ROOT_UNSPEC: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_UNSPEC; +pub const TCA_ROOT_TAB: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_TAB; +pub const TCA_ROOT_FLAGS: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_FLAGS; +pub const TCA_ROOT_COUNT: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_COUNT; +pub const TCA_ROOT_TIME_DELTA: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_TIME_DELTA; +pub const TCA_ROOT_EXT_WARN_MSG: _bindgen_ty_68 = _bindgen_ty_68::TCA_ROOT_EXT_WARN_MSG; +pub const __TCA_ROOT_MAX: _bindgen_ty_68 = _bindgen_ty_68::__TCA_ROOT_MAX; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nlmsgerr_attrs { +NLMSGERR_ATTR_UNUSED = 0, +NLMSGERR_ATTR_MSG = 1, +NLMSGERR_ATTR_OFFS = 2, +NLMSGERR_ATTR_COOKIE = 3, +NLMSGERR_ATTR_POLICY = 4, +NLMSGERR_ATTR_MISS_TYPE = 5, +NLMSGERR_ATTR_MISS_NEST = 6, +__NLMSGERR_ATTR_MAX = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl_mmap_status { +NL_MMAP_STATUS_UNUSED = 0, +NL_MMAP_STATUS_RESERVED = 1, +NL_MMAP_STATUS_VALID = 2, +NL_MMAP_STATUS_COPY = 3, +NL_MMAP_STATUS_SKIP = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +NETLINK_UNCONNECTED = 0, +NETLINK_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_attribute_type { +NL_ATTR_TYPE_INVALID = 0, +NL_ATTR_TYPE_FLAG = 1, +NL_ATTR_TYPE_U8 = 2, +NL_ATTR_TYPE_U16 = 3, +NL_ATTR_TYPE_U32 = 4, +NL_ATTR_TYPE_U64 = 5, +NL_ATTR_TYPE_S8 = 6, +NL_ATTR_TYPE_S16 = 7, +NL_ATTR_TYPE_S32 = 8, +NL_ATTR_TYPE_S64 = 9, +NL_ATTR_TYPE_BINARY = 10, +NL_ATTR_TYPE_STRING = 11, +NL_ATTR_TYPE_NUL_STRING = 12, +NL_ATTR_TYPE_NESTED = 13, +NL_ATTR_TYPE_NESTED_ARRAY = 14, +NL_ATTR_TYPE_BITFIELD32 = 15, +NL_ATTR_TYPE_SINT = 16, +NL_ATTR_TYPE_UINT = 17, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netlink_policy_type_attr { +NL_POLICY_TYPE_ATTR_UNSPEC = 0, +NL_POLICY_TYPE_ATTR_TYPE = 1, +NL_POLICY_TYPE_ATTR_MIN_VALUE_S = 2, +NL_POLICY_TYPE_ATTR_MAX_VALUE_S = 3, +NL_POLICY_TYPE_ATTR_MIN_VALUE_U = 4, +NL_POLICY_TYPE_ATTR_MAX_VALUE_U = 5, +NL_POLICY_TYPE_ATTR_MIN_LENGTH = 6, +NL_POLICY_TYPE_ATTR_MAX_LENGTH = 7, +NL_POLICY_TYPE_ATTR_POLICY_IDX = 8, +NL_POLICY_TYPE_ATTR_POLICY_MAXTYPE = 9, +NL_POLICY_TYPE_ATTR_BITFIELD32_MASK = 10, +NL_POLICY_TYPE_ATTR_PAD = 11, +NL_POLICY_TYPE_ATTR_MASK = 12, +__NL_POLICY_TYPE_ATTR_MAX = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_commands { +NL80211_CMD_UNSPEC = 0, +NL80211_CMD_GET_WIPHY = 1, +NL80211_CMD_SET_WIPHY = 2, +NL80211_CMD_NEW_WIPHY = 3, +NL80211_CMD_DEL_WIPHY = 4, +NL80211_CMD_GET_INTERFACE = 5, +NL80211_CMD_SET_INTERFACE = 6, +NL80211_CMD_NEW_INTERFACE = 7, +NL80211_CMD_DEL_INTERFACE = 8, +NL80211_CMD_GET_KEY = 9, +NL80211_CMD_SET_KEY = 10, +NL80211_CMD_NEW_KEY = 11, +NL80211_CMD_DEL_KEY = 12, +NL80211_CMD_GET_BEACON = 13, +NL80211_CMD_SET_BEACON = 14, +NL80211_CMD_START_AP = 15, +NL80211_CMD_STOP_AP = 16, +NL80211_CMD_GET_STATION = 17, +NL80211_CMD_SET_STATION = 18, +NL80211_CMD_NEW_STATION = 19, +NL80211_CMD_DEL_STATION = 20, +NL80211_CMD_GET_MPATH = 21, +NL80211_CMD_SET_MPATH = 22, +NL80211_CMD_NEW_MPATH = 23, +NL80211_CMD_DEL_MPATH = 24, +NL80211_CMD_SET_BSS = 25, +NL80211_CMD_SET_REG = 26, +NL80211_CMD_REQ_SET_REG = 27, +NL80211_CMD_GET_MESH_CONFIG = 28, +NL80211_CMD_SET_MESH_CONFIG = 29, +NL80211_CMD_SET_MGMT_EXTRA_IE = 30, +NL80211_CMD_GET_REG = 31, +NL80211_CMD_GET_SCAN = 32, +NL80211_CMD_TRIGGER_SCAN = 33, +NL80211_CMD_NEW_SCAN_RESULTS = 34, +NL80211_CMD_SCAN_ABORTED = 35, +NL80211_CMD_REG_CHANGE = 36, +NL80211_CMD_AUTHENTICATE = 37, +NL80211_CMD_ASSOCIATE = 38, +NL80211_CMD_DEAUTHENTICATE = 39, +NL80211_CMD_DISASSOCIATE = 40, +NL80211_CMD_MICHAEL_MIC_FAILURE = 41, +NL80211_CMD_REG_BEACON_HINT = 42, +NL80211_CMD_JOIN_IBSS = 43, +NL80211_CMD_LEAVE_IBSS = 44, +NL80211_CMD_TESTMODE = 45, +NL80211_CMD_CONNECT = 46, +NL80211_CMD_ROAM = 47, +NL80211_CMD_DISCONNECT = 48, +NL80211_CMD_SET_WIPHY_NETNS = 49, +NL80211_CMD_GET_SURVEY = 50, +NL80211_CMD_NEW_SURVEY_RESULTS = 51, +NL80211_CMD_SET_PMKSA = 52, +NL80211_CMD_DEL_PMKSA = 53, +NL80211_CMD_FLUSH_PMKSA = 54, +NL80211_CMD_REMAIN_ON_CHANNEL = 55, +NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL = 56, +NL80211_CMD_SET_TX_BITRATE_MASK = 57, +NL80211_CMD_REGISTER_FRAME = 58, +NL80211_CMD_FRAME = 59, +NL80211_CMD_FRAME_TX_STATUS = 60, +NL80211_CMD_SET_POWER_SAVE = 61, +NL80211_CMD_GET_POWER_SAVE = 62, +NL80211_CMD_SET_CQM = 63, +NL80211_CMD_NOTIFY_CQM = 64, +NL80211_CMD_SET_CHANNEL = 65, +NL80211_CMD_SET_WDS_PEER = 66, +NL80211_CMD_FRAME_WAIT_CANCEL = 67, +NL80211_CMD_JOIN_MESH = 68, +NL80211_CMD_LEAVE_MESH = 69, +NL80211_CMD_UNPROT_DEAUTHENTICATE = 70, +NL80211_CMD_UNPROT_DISASSOCIATE = 71, +NL80211_CMD_NEW_PEER_CANDIDATE = 72, +NL80211_CMD_GET_WOWLAN = 73, +NL80211_CMD_SET_WOWLAN = 74, +NL80211_CMD_START_SCHED_SCAN = 75, +NL80211_CMD_STOP_SCHED_SCAN = 76, +NL80211_CMD_SCHED_SCAN_RESULTS = 77, +NL80211_CMD_SCHED_SCAN_STOPPED = 78, +NL80211_CMD_SET_REKEY_OFFLOAD = 79, +NL80211_CMD_PMKSA_CANDIDATE = 80, +NL80211_CMD_TDLS_OPER = 81, +NL80211_CMD_TDLS_MGMT = 82, +NL80211_CMD_UNEXPECTED_FRAME = 83, +NL80211_CMD_PROBE_CLIENT = 84, +NL80211_CMD_REGISTER_BEACONS = 85, +NL80211_CMD_UNEXPECTED_4ADDR_FRAME = 86, +NL80211_CMD_SET_NOACK_MAP = 87, +NL80211_CMD_CH_SWITCH_NOTIFY = 88, +NL80211_CMD_START_P2P_DEVICE = 89, +NL80211_CMD_STOP_P2P_DEVICE = 90, +NL80211_CMD_CONN_FAILED = 91, +NL80211_CMD_SET_MCAST_RATE = 92, +NL80211_CMD_SET_MAC_ACL = 93, +NL80211_CMD_RADAR_DETECT = 94, +NL80211_CMD_GET_PROTOCOL_FEATURES = 95, +NL80211_CMD_UPDATE_FT_IES = 96, +NL80211_CMD_FT_EVENT = 97, +NL80211_CMD_CRIT_PROTOCOL_START = 98, +NL80211_CMD_CRIT_PROTOCOL_STOP = 99, +NL80211_CMD_GET_COALESCE = 100, +NL80211_CMD_SET_COALESCE = 101, +NL80211_CMD_CHANNEL_SWITCH = 102, +NL80211_CMD_VENDOR = 103, +NL80211_CMD_SET_QOS_MAP = 104, +NL80211_CMD_ADD_TX_TS = 105, +NL80211_CMD_DEL_TX_TS = 106, +NL80211_CMD_GET_MPP = 107, +NL80211_CMD_JOIN_OCB = 108, +NL80211_CMD_LEAVE_OCB = 109, +NL80211_CMD_CH_SWITCH_STARTED_NOTIFY = 110, +NL80211_CMD_TDLS_CHANNEL_SWITCH = 111, +NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH = 112, +NL80211_CMD_WIPHY_REG_CHANGE = 113, +NL80211_CMD_ABORT_SCAN = 114, +NL80211_CMD_START_NAN = 115, +NL80211_CMD_STOP_NAN = 116, +NL80211_CMD_ADD_NAN_FUNCTION = 117, +NL80211_CMD_DEL_NAN_FUNCTION = 118, +NL80211_CMD_CHANGE_NAN_CONFIG = 119, +NL80211_CMD_NAN_MATCH = 120, +NL80211_CMD_SET_MULTICAST_TO_UNICAST = 121, +NL80211_CMD_UPDATE_CONNECT_PARAMS = 122, +NL80211_CMD_SET_PMK = 123, +NL80211_CMD_DEL_PMK = 124, +NL80211_CMD_PORT_AUTHORIZED = 125, +NL80211_CMD_RELOAD_REGDB = 126, +NL80211_CMD_EXTERNAL_AUTH = 127, +NL80211_CMD_STA_OPMODE_CHANGED = 128, +NL80211_CMD_CONTROL_PORT_FRAME = 129, +NL80211_CMD_GET_FTM_RESPONDER_STATS = 130, +NL80211_CMD_PEER_MEASUREMENT_START = 131, +NL80211_CMD_PEER_MEASUREMENT_RESULT = 132, +NL80211_CMD_PEER_MEASUREMENT_COMPLETE = 133, +NL80211_CMD_NOTIFY_RADAR = 134, +NL80211_CMD_UPDATE_OWE_INFO = 135, +NL80211_CMD_PROBE_MESH_LINK = 136, +NL80211_CMD_SET_TID_CONFIG = 137, +NL80211_CMD_UNPROT_BEACON = 138, +NL80211_CMD_CONTROL_PORT_FRAME_TX_STATUS = 139, +NL80211_CMD_SET_SAR_SPECS = 140, +NL80211_CMD_OBSS_COLOR_COLLISION = 141, +NL80211_CMD_COLOR_CHANGE_REQUEST = 142, +NL80211_CMD_COLOR_CHANGE_STARTED = 143, +NL80211_CMD_COLOR_CHANGE_ABORTED = 144, +NL80211_CMD_COLOR_CHANGE_COMPLETED = 145, +NL80211_CMD_SET_FILS_AAD = 146, +NL80211_CMD_ASSOC_COMEBACK = 147, +NL80211_CMD_ADD_LINK = 148, +NL80211_CMD_REMOVE_LINK = 149, +NL80211_CMD_ADD_LINK_STA = 150, +NL80211_CMD_MODIFY_LINK_STA = 151, +NL80211_CMD_REMOVE_LINK_STA = 152, +NL80211_CMD_SET_HW_TIMESTAMP = 153, +NL80211_CMD_LINKS_REMOVED = 154, +NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, +NL80211_CMD_ASSOC_MLO_RECONF = 156, +NL80211_CMD_EPCS_CFG = 157, +__NL80211_CMD_AFTER_LAST = 158, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_attrs { +NL80211_ATTR_UNSPEC = 0, +NL80211_ATTR_WIPHY = 1, +NL80211_ATTR_WIPHY_NAME = 2, +NL80211_ATTR_IFINDEX = 3, +NL80211_ATTR_IFNAME = 4, +NL80211_ATTR_IFTYPE = 5, +NL80211_ATTR_MAC = 6, +NL80211_ATTR_KEY_DATA = 7, +NL80211_ATTR_KEY_IDX = 8, +NL80211_ATTR_KEY_CIPHER = 9, +NL80211_ATTR_KEY_SEQ = 10, +NL80211_ATTR_KEY_DEFAULT = 11, +NL80211_ATTR_BEACON_INTERVAL = 12, +NL80211_ATTR_DTIM_PERIOD = 13, +NL80211_ATTR_BEACON_HEAD = 14, +NL80211_ATTR_BEACON_TAIL = 15, +NL80211_ATTR_STA_AID = 16, +NL80211_ATTR_STA_FLAGS = 17, +NL80211_ATTR_STA_LISTEN_INTERVAL = 18, +NL80211_ATTR_STA_SUPPORTED_RATES = 19, +NL80211_ATTR_STA_VLAN = 20, +NL80211_ATTR_STA_INFO = 21, +NL80211_ATTR_WIPHY_BANDS = 22, +NL80211_ATTR_MNTR_FLAGS = 23, +NL80211_ATTR_MESH_ID = 24, +NL80211_ATTR_STA_PLINK_ACTION = 25, +NL80211_ATTR_MPATH_NEXT_HOP = 26, +NL80211_ATTR_MPATH_INFO = 27, +NL80211_ATTR_BSS_CTS_PROT = 28, +NL80211_ATTR_BSS_SHORT_PREAMBLE = 29, +NL80211_ATTR_BSS_SHORT_SLOT_TIME = 30, +NL80211_ATTR_HT_CAPABILITY = 31, +NL80211_ATTR_SUPPORTED_IFTYPES = 32, +NL80211_ATTR_REG_ALPHA2 = 33, +NL80211_ATTR_REG_RULES = 34, +NL80211_ATTR_MESH_CONFIG = 35, +NL80211_ATTR_BSS_BASIC_RATES = 36, +NL80211_ATTR_WIPHY_TXQ_PARAMS = 37, +NL80211_ATTR_WIPHY_FREQ = 38, +NL80211_ATTR_WIPHY_CHANNEL_TYPE = 39, +NL80211_ATTR_KEY_DEFAULT_MGMT = 40, +NL80211_ATTR_MGMT_SUBTYPE = 41, +NL80211_ATTR_IE = 42, +NL80211_ATTR_MAX_NUM_SCAN_SSIDS = 43, +NL80211_ATTR_SCAN_FREQUENCIES = 44, +NL80211_ATTR_SCAN_SSIDS = 45, +NL80211_ATTR_GENERATION = 46, +NL80211_ATTR_BSS = 47, +NL80211_ATTR_REG_INITIATOR = 48, +NL80211_ATTR_REG_TYPE = 49, +NL80211_ATTR_SUPPORTED_COMMANDS = 50, +NL80211_ATTR_FRAME = 51, +NL80211_ATTR_SSID = 52, +NL80211_ATTR_AUTH_TYPE = 53, +NL80211_ATTR_REASON_CODE = 54, +NL80211_ATTR_KEY_TYPE = 55, +NL80211_ATTR_MAX_SCAN_IE_LEN = 56, +NL80211_ATTR_CIPHER_SUITES = 57, +NL80211_ATTR_FREQ_BEFORE = 58, +NL80211_ATTR_FREQ_AFTER = 59, +NL80211_ATTR_FREQ_FIXED = 60, +NL80211_ATTR_WIPHY_RETRY_SHORT = 61, +NL80211_ATTR_WIPHY_RETRY_LONG = 62, +NL80211_ATTR_WIPHY_FRAG_THRESHOLD = 63, +NL80211_ATTR_WIPHY_RTS_THRESHOLD = 64, +NL80211_ATTR_TIMED_OUT = 65, +NL80211_ATTR_USE_MFP = 66, +NL80211_ATTR_STA_FLAGS2 = 67, +NL80211_ATTR_CONTROL_PORT = 68, +NL80211_ATTR_TESTDATA = 69, +NL80211_ATTR_PRIVACY = 70, +NL80211_ATTR_DISCONNECTED_BY_AP = 71, +NL80211_ATTR_STATUS_CODE = 72, +NL80211_ATTR_CIPHER_SUITES_PAIRWISE = 73, +NL80211_ATTR_CIPHER_SUITE_GROUP = 74, +NL80211_ATTR_WPA_VERSIONS = 75, +NL80211_ATTR_AKM_SUITES = 76, +NL80211_ATTR_REQ_IE = 77, +NL80211_ATTR_RESP_IE = 78, +NL80211_ATTR_PREV_BSSID = 79, +NL80211_ATTR_KEY = 80, +NL80211_ATTR_KEYS = 81, +NL80211_ATTR_PID = 82, +NL80211_ATTR_4ADDR = 83, +NL80211_ATTR_SURVEY_INFO = 84, +NL80211_ATTR_PMKID = 85, +NL80211_ATTR_MAX_NUM_PMKIDS = 86, +NL80211_ATTR_DURATION = 87, +NL80211_ATTR_COOKIE = 88, +NL80211_ATTR_WIPHY_COVERAGE_CLASS = 89, +NL80211_ATTR_TX_RATES = 90, +NL80211_ATTR_FRAME_MATCH = 91, +NL80211_ATTR_ACK = 92, +NL80211_ATTR_PS_STATE = 93, +NL80211_ATTR_CQM = 94, +NL80211_ATTR_LOCAL_STATE_CHANGE = 95, +NL80211_ATTR_AP_ISOLATE = 96, +NL80211_ATTR_WIPHY_TX_POWER_SETTING = 97, +NL80211_ATTR_WIPHY_TX_POWER_LEVEL = 98, +NL80211_ATTR_TX_FRAME_TYPES = 99, +NL80211_ATTR_RX_FRAME_TYPES = 100, +NL80211_ATTR_FRAME_TYPE = 101, +NL80211_ATTR_CONTROL_PORT_ETHERTYPE = 102, +NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT = 103, +NL80211_ATTR_SUPPORT_IBSS_RSN = 104, +NL80211_ATTR_WIPHY_ANTENNA_TX = 105, +NL80211_ATTR_WIPHY_ANTENNA_RX = 106, +NL80211_ATTR_MCAST_RATE = 107, +NL80211_ATTR_OFFCHANNEL_TX_OK = 108, +NL80211_ATTR_BSS_HT_OPMODE = 109, +NL80211_ATTR_KEY_DEFAULT_TYPES = 110, +NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION = 111, +NL80211_ATTR_MESH_SETUP = 112, +NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX = 113, +NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX = 114, +NL80211_ATTR_SUPPORT_MESH_AUTH = 115, +NL80211_ATTR_STA_PLINK_STATE = 116, +NL80211_ATTR_WOWLAN_TRIGGERS = 117, +NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED = 118, +NL80211_ATTR_SCHED_SCAN_INTERVAL = 119, +NL80211_ATTR_INTERFACE_COMBINATIONS = 120, +NL80211_ATTR_SOFTWARE_IFTYPES = 121, +NL80211_ATTR_REKEY_DATA = 122, +NL80211_ATTR_MAX_NUM_SCHED_SCAN_SSIDS = 123, +NL80211_ATTR_MAX_SCHED_SCAN_IE_LEN = 124, +NL80211_ATTR_SCAN_SUPP_RATES = 125, +NL80211_ATTR_HIDDEN_SSID = 126, +NL80211_ATTR_IE_PROBE_RESP = 127, +NL80211_ATTR_IE_ASSOC_RESP = 128, +NL80211_ATTR_STA_WME = 129, +NL80211_ATTR_SUPPORT_AP_UAPSD = 130, +NL80211_ATTR_ROAM_SUPPORT = 131, +NL80211_ATTR_SCHED_SCAN_MATCH = 132, +NL80211_ATTR_MAX_MATCH_SETS = 133, +NL80211_ATTR_PMKSA_CANDIDATE = 134, +NL80211_ATTR_TX_NO_CCK_RATE = 135, +NL80211_ATTR_TDLS_ACTION = 136, +NL80211_ATTR_TDLS_DIALOG_TOKEN = 137, +NL80211_ATTR_TDLS_OPERATION = 138, +NL80211_ATTR_TDLS_SUPPORT = 139, +NL80211_ATTR_TDLS_EXTERNAL_SETUP = 140, +NL80211_ATTR_DEVICE_AP_SME = 141, +NL80211_ATTR_DONT_WAIT_FOR_ACK = 142, +NL80211_ATTR_FEATURE_FLAGS = 143, +NL80211_ATTR_PROBE_RESP_OFFLOAD = 144, +NL80211_ATTR_PROBE_RESP = 145, +NL80211_ATTR_DFS_REGION = 146, +NL80211_ATTR_DISABLE_HT = 147, +NL80211_ATTR_HT_CAPABILITY_MASK = 148, +NL80211_ATTR_NOACK_MAP = 149, +NL80211_ATTR_INACTIVITY_TIMEOUT = 150, +NL80211_ATTR_RX_SIGNAL_DBM = 151, +NL80211_ATTR_BG_SCAN_PERIOD = 152, +NL80211_ATTR_WDEV = 153, +NL80211_ATTR_USER_REG_HINT_TYPE = 154, +NL80211_ATTR_CONN_FAILED_REASON = 155, +NL80211_ATTR_AUTH_DATA = 156, +NL80211_ATTR_VHT_CAPABILITY = 157, +NL80211_ATTR_SCAN_FLAGS = 158, +NL80211_ATTR_CHANNEL_WIDTH = 159, +NL80211_ATTR_CENTER_FREQ1 = 160, +NL80211_ATTR_CENTER_FREQ2 = 161, +NL80211_ATTR_P2P_CTWINDOW = 162, +NL80211_ATTR_P2P_OPPPS = 163, +NL80211_ATTR_LOCAL_MESH_POWER_MODE = 164, +NL80211_ATTR_ACL_POLICY = 165, +NL80211_ATTR_MAC_ADDRS = 166, +NL80211_ATTR_MAC_ACL_MAX = 167, +NL80211_ATTR_RADAR_EVENT = 168, +NL80211_ATTR_EXT_CAPA = 169, +NL80211_ATTR_EXT_CAPA_MASK = 170, +NL80211_ATTR_STA_CAPABILITY = 171, +NL80211_ATTR_STA_EXT_CAPABILITY = 172, +NL80211_ATTR_PROTOCOL_FEATURES = 173, +NL80211_ATTR_SPLIT_WIPHY_DUMP = 174, +NL80211_ATTR_DISABLE_VHT = 175, +NL80211_ATTR_VHT_CAPABILITY_MASK = 176, +NL80211_ATTR_MDID = 177, +NL80211_ATTR_IE_RIC = 178, +NL80211_ATTR_CRIT_PROT_ID = 179, +NL80211_ATTR_MAX_CRIT_PROT_DURATION = 180, +NL80211_ATTR_PEER_AID = 181, +NL80211_ATTR_COALESCE_RULE = 182, +NL80211_ATTR_CH_SWITCH_COUNT = 183, +NL80211_ATTR_CH_SWITCH_BLOCK_TX = 184, +NL80211_ATTR_CSA_IES = 185, +NL80211_ATTR_CNTDWN_OFFS_BEACON = 186, +NL80211_ATTR_CNTDWN_OFFS_PRESP = 187, +NL80211_ATTR_RXMGMT_FLAGS = 188, +NL80211_ATTR_STA_SUPPORTED_CHANNELS = 189, +NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES = 190, +NL80211_ATTR_HANDLE_DFS = 191, +NL80211_ATTR_SUPPORT_5_MHZ = 192, +NL80211_ATTR_SUPPORT_10_MHZ = 193, +NL80211_ATTR_OPMODE_NOTIF = 194, +NL80211_ATTR_VENDOR_ID = 195, +NL80211_ATTR_VENDOR_SUBCMD = 196, +NL80211_ATTR_VENDOR_DATA = 197, +NL80211_ATTR_VENDOR_EVENTS = 198, +NL80211_ATTR_QOS_MAP = 199, +NL80211_ATTR_MAC_HINT = 200, +NL80211_ATTR_WIPHY_FREQ_HINT = 201, +NL80211_ATTR_MAX_AP_ASSOC_STA = 202, +NL80211_ATTR_TDLS_PEER_CAPABILITY = 203, +NL80211_ATTR_SOCKET_OWNER = 204, +NL80211_ATTR_CSA_C_OFFSETS_TX = 205, +NL80211_ATTR_MAX_CSA_COUNTERS = 206, +NL80211_ATTR_TDLS_INITIATOR = 207, +NL80211_ATTR_USE_RRM = 208, +NL80211_ATTR_WIPHY_DYN_ACK = 209, +NL80211_ATTR_TSID = 210, +NL80211_ATTR_USER_PRIO = 211, +NL80211_ATTR_ADMITTED_TIME = 212, +NL80211_ATTR_SMPS_MODE = 213, +NL80211_ATTR_OPER_CLASS = 214, +NL80211_ATTR_MAC_MASK = 215, +NL80211_ATTR_WIPHY_SELF_MANAGED_REG = 216, +NL80211_ATTR_EXT_FEATURES = 217, +NL80211_ATTR_SURVEY_RADIO_STATS = 218, +NL80211_ATTR_NETNS_FD = 219, +NL80211_ATTR_SCHED_SCAN_DELAY = 220, +NL80211_ATTR_REG_INDOOR = 221, +NL80211_ATTR_MAX_NUM_SCHED_SCAN_PLANS = 222, +NL80211_ATTR_MAX_SCAN_PLAN_INTERVAL = 223, +NL80211_ATTR_MAX_SCAN_PLAN_ITERATIONS = 224, +NL80211_ATTR_SCHED_SCAN_PLANS = 225, +NL80211_ATTR_PBSS = 226, +NL80211_ATTR_BSS_SELECT = 227, +NL80211_ATTR_STA_SUPPORT_P2P_PS = 228, +NL80211_ATTR_PAD = 229, +NL80211_ATTR_IFTYPE_EXT_CAPA = 230, +NL80211_ATTR_MU_MIMO_GROUP_DATA = 231, +NL80211_ATTR_MU_MIMO_FOLLOW_MAC_ADDR = 232, +NL80211_ATTR_SCAN_START_TIME_TSF = 233, +NL80211_ATTR_SCAN_START_TIME_TSF_BSSID = 234, +NL80211_ATTR_MEASUREMENT_DURATION = 235, +NL80211_ATTR_MEASUREMENT_DURATION_MANDATORY = 236, +NL80211_ATTR_MESH_PEER_AID = 237, +NL80211_ATTR_NAN_MASTER_PREF = 238, +NL80211_ATTR_BANDS = 239, +NL80211_ATTR_NAN_FUNC = 240, +NL80211_ATTR_NAN_MATCH = 241, +NL80211_ATTR_FILS_KEK = 242, +NL80211_ATTR_FILS_NONCES = 243, +NL80211_ATTR_MULTICAST_TO_UNICAST_ENABLED = 244, +NL80211_ATTR_BSSID = 245, +NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI = 246, +NL80211_ATTR_SCHED_SCAN_RSSI_ADJUST = 247, +NL80211_ATTR_TIMEOUT_REASON = 248, +NL80211_ATTR_FILS_ERP_USERNAME = 249, +NL80211_ATTR_FILS_ERP_REALM = 250, +NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM = 251, +NL80211_ATTR_FILS_ERP_RRK = 252, +NL80211_ATTR_FILS_CACHE_ID = 253, +NL80211_ATTR_PMK = 254, +NL80211_ATTR_SCHED_SCAN_MULTI = 255, +NL80211_ATTR_SCHED_SCAN_MAX_REQS = 256, +NL80211_ATTR_WANT_1X_4WAY_HS = 257, +NL80211_ATTR_PMKR0_NAME = 258, +NL80211_ATTR_PORT_AUTHORIZED = 259, +NL80211_ATTR_EXTERNAL_AUTH_ACTION = 260, +NL80211_ATTR_EXTERNAL_AUTH_SUPPORT = 261, +NL80211_ATTR_NSS = 262, +NL80211_ATTR_ACK_SIGNAL = 263, +NL80211_ATTR_CONTROL_PORT_OVER_NL80211 = 264, +NL80211_ATTR_TXQ_STATS = 265, +NL80211_ATTR_TXQ_LIMIT = 266, +NL80211_ATTR_TXQ_MEMORY_LIMIT = 267, +NL80211_ATTR_TXQ_QUANTUM = 268, +NL80211_ATTR_HE_CAPABILITY = 269, +NL80211_ATTR_FTM_RESPONDER = 270, +NL80211_ATTR_FTM_RESPONDER_STATS = 271, +NL80211_ATTR_TIMEOUT = 272, +NL80211_ATTR_PEER_MEASUREMENTS = 273, +NL80211_ATTR_AIRTIME_WEIGHT = 274, +NL80211_ATTR_STA_TX_POWER_SETTING = 275, +NL80211_ATTR_STA_TX_POWER = 276, +NL80211_ATTR_SAE_PASSWORD = 277, +NL80211_ATTR_TWT_RESPONDER = 278, +NL80211_ATTR_HE_OBSS_PD = 279, +NL80211_ATTR_WIPHY_EDMG_CHANNELS = 280, +NL80211_ATTR_WIPHY_EDMG_BW_CONFIG = 281, +NL80211_ATTR_VLAN_ID = 282, +NL80211_ATTR_HE_BSS_COLOR = 283, +NL80211_ATTR_IFTYPE_AKM_SUITES = 284, +NL80211_ATTR_TID_CONFIG = 285, +NL80211_ATTR_CONTROL_PORT_NO_PREAUTH = 286, +NL80211_ATTR_PMK_LIFETIME = 287, +NL80211_ATTR_PMK_REAUTH_THRESHOLD = 288, +NL80211_ATTR_RECEIVE_MULTICAST = 289, +NL80211_ATTR_WIPHY_FREQ_OFFSET = 290, +NL80211_ATTR_CENTER_FREQ1_OFFSET = 291, +NL80211_ATTR_SCAN_FREQ_KHZ = 292, +NL80211_ATTR_HE_6GHZ_CAPABILITY = 293, +NL80211_ATTR_FILS_DISCOVERY = 294, +NL80211_ATTR_UNSOL_BCAST_PROBE_RESP = 295, +NL80211_ATTR_S1G_CAPABILITY = 296, +NL80211_ATTR_S1G_CAPABILITY_MASK = 297, +NL80211_ATTR_SAE_PWE = 298, +NL80211_ATTR_RECONNECT_REQUESTED = 299, +NL80211_ATTR_SAR_SPEC = 300, +NL80211_ATTR_DISABLE_HE = 301, +NL80211_ATTR_OBSS_COLOR_BITMAP = 302, +NL80211_ATTR_COLOR_CHANGE_COUNT = 303, +NL80211_ATTR_COLOR_CHANGE_COLOR = 304, +NL80211_ATTR_COLOR_CHANGE_ELEMS = 305, +NL80211_ATTR_MBSSID_CONFIG = 306, +NL80211_ATTR_MBSSID_ELEMS = 307, +NL80211_ATTR_RADAR_BACKGROUND = 308, +NL80211_ATTR_AP_SETTINGS_FLAGS = 309, +NL80211_ATTR_EHT_CAPABILITY = 310, +NL80211_ATTR_DISABLE_EHT = 311, +NL80211_ATTR_MLO_LINKS = 312, +NL80211_ATTR_MLO_LINK_ID = 313, +NL80211_ATTR_MLD_ADDR = 314, +NL80211_ATTR_MLO_SUPPORT = 315, +NL80211_ATTR_MAX_NUM_AKM_SUITES = 316, +NL80211_ATTR_EML_CAPABILITY = 317, +NL80211_ATTR_MLD_CAPA_AND_OPS = 318, +NL80211_ATTR_TX_HW_TIMESTAMP = 319, +NL80211_ATTR_RX_HW_TIMESTAMP = 320, +NL80211_ATTR_TD_BITMAP = 321, +NL80211_ATTR_PUNCT_BITMAP = 322, +NL80211_ATTR_MAX_HW_TIMESTAMP_PEERS = 323, +NL80211_ATTR_HW_TIMESTAMP_ENABLED = 324, +NL80211_ATTR_EMA_RNR_ELEMS = 325, +NL80211_ATTR_MLO_LINK_DISABLED = 326, +NL80211_ATTR_BSS_DUMP_INCLUDE_USE_DATA = 327, +NL80211_ATTR_MLO_TTLM_DLINK = 328, +NL80211_ATTR_MLO_TTLM_ULINK = 329, +NL80211_ATTR_ASSOC_SPP_AMSDU = 330, +NL80211_ATTR_WIPHY_RADIOS = 331, +NL80211_ATTR_WIPHY_INTERFACE_COMBINATIONS = 332, +NL80211_ATTR_VIF_RADIO_MASK = 333, +NL80211_ATTR_SUPPORTED_SELECTORS = 334, +NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, +NL80211_ATTR_EPCS = 336, +NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +__NL80211_ATTR_AFTER_LAST = 338, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_iftype { +NL80211_IFTYPE_UNSPECIFIED = 0, +NL80211_IFTYPE_ADHOC = 1, +NL80211_IFTYPE_STATION = 2, +NL80211_IFTYPE_AP = 3, +NL80211_IFTYPE_AP_VLAN = 4, +NL80211_IFTYPE_WDS = 5, +NL80211_IFTYPE_MONITOR = 6, +NL80211_IFTYPE_MESH_POINT = 7, +NL80211_IFTYPE_P2P_CLIENT = 8, +NL80211_IFTYPE_P2P_GO = 9, +NL80211_IFTYPE_P2P_DEVICE = 10, +NL80211_IFTYPE_OCB = 11, +NL80211_IFTYPE_NAN = 12, +NUM_NL80211_IFTYPES = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_flags { +__NL80211_STA_FLAG_INVALID = 0, +NL80211_STA_FLAG_AUTHORIZED = 1, +NL80211_STA_FLAG_SHORT_PREAMBLE = 2, +NL80211_STA_FLAG_WME = 3, +NL80211_STA_FLAG_MFP = 4, +NL80211_STA_FLAG_AUTHENTICATED = 5, +NL80211_STA_FLAG_TDLS_PEER = 6, +NL80211_STA_FLAG_ASSOCIATED = 7, +NL80211_STA_FLAG_SPP_AMSDU = 8, +__NL80211_STA_FLAG_AFTER_LAST = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_p2p_ps_status { +NL80211_P2P_PS_UNSUPPORTED = 0, +NL80211_P2P_PS_SUPPORTED = 1, +NUM_NL80211_P2P_PS_STATUS = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_he_gi { +NL80211_RATE_INFO_HE_GI_0_8 = 0, +NL80211_RATE_INFO_HE_GI_1_6 = 1, +NL80211_RATE_INFO_HE_GI_3_2 = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_he_ltf { +NL80211_RATE_INFO_HE_1XLTF = 0, +NL80211_RATE_INFO_HE_2XLTF = 1, +NL80211_RATE_INFO_HE_4XLTF = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_he_ru_alloc { +NL80211_RATE_INFO_HE_RU_ALLOC_26 = 0, +NL80211_RATE_INFO_HE_RU_ALLOC_52 = 1, +NL80211_RATE_INFO_HE_RU_ALLOC_106 = 2, +NL80211_RATE_INFO_HE_RU_ALLOC_242 = 3, +NL80211_RATE_INFO_HE_RU_ALLOC_484 = 4, +NL80211_RATE_INFO_HE_RU_ALLOC_996 = 5, +NL80211_RATE_INFO_HE_RU_ALLOC_2x996 = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_gi { +NL80211_RATE_INFO_EHT_GI_0_8 = 0, +NL80211_RATE_INFO_EHT_GI_1_6 = 1, +NL80211_RATE_INFO_EHT_GI_3_2 = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ru_alloc { +NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, +NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, +NL80211_RATE_INFO_EHT_RU_ALLOC_52P26 = 2, +NL80211_RATE_INFO_EHT_RU_ALLOC_106 = 3, +NL80211_RATE_INFO_EHT_RU_ALLOC_106P26 = 4, +NL80211_RATE_INFO_EHT_RU_ALLOC_242 = 5, +NL80211_RATE_INFO_EHT_RU_ALLOC_484 = 6, +NL80211_RATE_INFO_EHT_RU_ALLOC_484P242 = 7, +NL80211_RATE_INFO_EHT_RU_ALLOC_996 = 8, +NL80211_RATE_INFO_EHT_RU_ALLOC_996P484 = 9, +NL80211_RATE_INFO_EHT_RU_ALLOC_996P484P242 = 10, +NL80211_RATE_INFO_EHT_RU_ALLOC_2x996 = 11, +NL80211_RATE_INFO_EHT_RU_ALLOC_2x996P484 = 12, +NL80211_RATE_INFO_EHT_RU_ALLOC_3x996 = 13, +NL80211_RATE_INFO_EHT_RU_ALLOC_3x996P484 = 14, +NL80211_RATE_INFO_EHT_RU_ALLOC_4x996 = 15, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_rate_info { +__NL80211_RATE_INFO_INVALID = 0, +NL80211_RATE_INFO_BITRATE = 1, +NL80211_RATE_INFO_MCS = 2, +NL80211_RATE_INFO_40_MHZ_WIDTH = 3, +NL80211_RATE_INFO_SHORT_GI = 4, +NL80211_RATE_INFO_BITRATE32 = 5, +NL80211_RATE_INFO_VHT_MCS = 6, +NL80211_RATE_INFO_VHT_NSS = 7, +NL80211_RATE_INFO_80_MHZ_WIDTH = 8, +NL80211_RATE_INFO_80P80_MHZ_WIDTH = 9, +NL80211_RATE_INFO_160_MHZ_WIDTH = 10, +NL80211_RATE_INFO_10_MHZ_WIDTH = 11, +NL80211_RATE_INFO_5_MHZ_WIDTH = 12, +NL80211_RATE_INFO_HE_MCS = 13, +NL80211_RATE_INFO_HE_NSS = 14, +NL80211_RATE_INFO_HE_GI = 15, +NL80211_RATE_INFO_HE_DCM = 16, +NL80211_RATE_INFO_HE_RU_ALLOC = 17, +NL80211_RATE_INFO_320_MHZ_WIDTH = 18, +NL80211_RATE_INFO_EHT_MCS = 19, +NL80211_RATE_INFO_EHT_NSS = 20, +NL80211_RATE_INFO_EHT_GI = 21, +NL80211_RATE_INFO_EHT_RU_ALLOC = 22, +NL80211_RATE_INFO_S1G_MCS = 23, +NL80211_RATE_INFO_S1G_NSS = 24, +NL80211_RATE_INFO_1_MHZ_WIDTH = 25, +NL80211_RATE_INFO_2_MHZ_WIDTH = 26, +NL80211_RATE_INFO_4_MHZ_WIDTH = 27, +NL80211_RATE_INFO_8_MHZ_WIDTH = 28, +NL80211_RATE_INFO_16_MHZ_WIDTH = 29, +__NL80211_RATE_INFO_AFTER_LAST = 30, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_bss_param { +__NL80211_STA_BSS_PARAM_INVALID = 0, +NL80211_STA_BSS_PARAM_CTS_PROT = 1, +NL80211_STA_BSS_PARAM_SHORT_PREAMBLE = 2, +NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME = 3, +NL80211_STA_BSS_PARAM_DTIM_PERIOD = 4, +NL80211_STA_BSS_PARAM_BEACON_INTERVAL = 5, +__NL80211_STA_BSS_PARAM_AFTER_LAST = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_info { +__NL80211_STA_INFO_INVALID = 0, +NL80211_STA_INFO_INACTIVE_TIME = 1, +NL80211_STA_INFO_RX_BYTES = 2, +NL80211_STA_INFO_TX_BYTES = 3, +NL80211_STA_INFO_LLID = 4, +NL80211_STA_INFO_PLID = 5, +NL80211_STA_INFO_PLINK_STATE = 6, +NL80211_STA_INFO_SIGNAL = 7, +NL80211_STA_INFO_TX_BITRATE = 8, +NL80211_STA_INFO_RX_PACKETS = 9, +NL80211_STA_INFO_TX_PACKETS = 10, +NL80211_STA_INFO_TX_RETRIES = 11, +NL80211_STA_INFO_TX_FAILED = 12, +NL80211_STA_INFO_SIGNAL_AVG = 13, +NL80211_STA_INFO_RX_BITRATE = 14, +NL80211_STA_INFO_BSS_PARAM = 15, +NL80211_STA_INFO_CONNECTED_TIME = 16, +NL80211_STA_INFO_STA_FLAGS = 17, +NL80211_STA_INFO_BEACON_LOSS = 18, +NL80211_STA_INFO_T_OFFSET = 19, +NL80211_STA_INFO_LOCAL_PM = 20, +NL80211_STA_INFO_PEER_PM = 21, +NL80211_STA_INFO_NONPEER_PM = 22, +NL80211_STA_INFO_RX_BYTES64 = 23, +NL80211_STA_INFO_TX_BYTES64 = 24, +NL80211_STA_INFO_CHAIN_SIGNAL = 25, +NL80211_STA_INFO_CHAIN_SIGNAL_AVG = 26, +NL80211_STA_INFO_EXPECTED_THROUGHPUT = 27, +NL80211_STA_INFO_RX_DROP_MISC = 28, +NL80211_STA_INFO_BEACON_RX = 29, +NL80211_STA_INFO_BEACON_SIGNAL_AVG = 30, +NL80211_STA_INFO_TID_STATS = 31, +NL80211_STA_INFO_RX_DURATION = 32, +NL80211_STA_INFO_PAD = 33, +NL80211_STA_INFO_ACK_SIGNAL = 34, +NL80211_STA_INFO_ACK_SIGNAL_AVG = 35, +NL80211_STA_INFO_RX_MPDUS = 36, +NL80211_STA_INFO_FCS_ERROR_COUNT = 37, +NL80211_STA_INFO_CONNECTED_TO_GATE = 38, +NL80211_STA_INFO_TX_DURATION = 39, +NL80211_STA_INFO_AIRTIME_WEIGHT = 40, +NL80211_STA_INFO_AIRTIME_LINK_METRIC = 41, +NL80211_STA_INFO_ASSOC_AT_BOOTTIME = 42, +NL80211_STA_INFO_CONNECTED_TO_AS = 43, +__NL80211_STA_INFO_AFTER_LAST = 44, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tid_stats { +__NL80211_TID_STATS_INVALID = 0, +NL80211_TID_STATS_RX_MSDU = 1, +NL80211_TID_STATS_TX_MSDU = 2, +NL80211_TID_STATS_TX_MSDU_RETRIES = 3, +NL80211_TID_STATS_TX_MSDU_FAILED = 4, +NL80211_TID_STATS_PAD = 5, +NL80211_TID_STATS_TXQ_STATS = 6, +NUM_NL80211_TID_STATS = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_txq_stats { +__NL80211_TXQ_STATS_INVALID = 0, +NL80211_TXQ_STATS_BACKLOG_BYTES = 1, +NL80211_TXQ_STATS_BACKLOG_PACKETS = 2, +NL80211_TXQ_STATS_FLOWS = 3, +NL80211_TXQ_STATS_DROPS = 4, +NL80211_TXQ_STATS_ECN_MARKS = 5, +NL80211_TXQ_STATS_OVERLIMIT = 6, +NL80211_TXQ_STATS_OVERMEMORY = 7, +NL80211_TXQ_STATS_COLLISIONS = 8, +NL80211_TXQ_STATS_TX_BYTES = 9, +NL80211_TXQ_STATS_TX_PACKETS = 10, +NL80211_TXQ_STATS_MAX_FLOWS = 11, +NUM_NL80211_TXQ_STATS = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mpath_flags { +NL80211_MPATH_FLAG_ACTIVE = 1, +NL80211_MPATH_FLAG_RESOLVING = 2, +NL80211_MPATH_FLAG_SN_VALID = 4, +NL80211_MPATH_FLAG_FIXED = 8, +NL80211_MPATH_FLAG_RESOLVED = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mpath_info { +__NL80211_MPATH_INFO_INVALID = 0, +NL80211_MPATH_INFO_FRAME_QLEN = 1, +NL80211_MPATH_INFO_SN = 2, +NL80211_MPATH_INFO_METRIC = 3, +NL80211_MPATH_INFO_EXPTIME = 4, +NL80211_MPATH_INFO_FLAGS = 5, +NL80211_MPATH_INFO_DISCOVERY_TIMEOUT = 6, +NL80211_MPATH_INFO_DISCOVERY_RETRIES = 7, +NL80211_MPATH_INFO_HOP_COUNT = 8, +NL80211_MPATH_INFO_PATH_CHANGE = 9, +__NL80211_MPATH_INFO_AFTER_LAST = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_band_iftype_attr { +__NL80211_BAND_IFTYPE_ATTR_INVALID = 0, +NL80211_BAND_IFTYPE_ATTR_IFTYPES = 1, +NL80211_BAND_IFTYPE_ATTR_HE_CAP_MAC = 2, +NL80211_BAND_IFTYPE_ATTR_HE_CAP_PHY = 3, +NL80211_BAND_IFTYPE_ATTR_HE_CAP_MCS_SET = 4, +NL80211_BAND_IFTYPE_ATTR_HE_CAP_PPE = 5, +NL80211_BAND_IFTYPE_ATTR_HE_6GHZ_CAPA = 6, +NL80211_BAND_IFTYPE_ATTR_VENDOR_ELEMS = 7, +NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, +NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, +NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, +NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_band_attr { +__NL80211_BAND_ATTR_INVALID = 0, +NL80211_BAND_ATTR_FREQS = 1, +NL80211_BAND_ATTR_RATES = 2, +NL80211_BAND_ATTR_HT_MCS_SET = 3, +NL80211_BAND_ATTR_HT_CAPA = 4, +NL80211_BAND_ATTR_HT_AMPDU_FACTOR = 5, +NL80211_BAND_ATTR_HT_AMPDU_DENSITY = 6, +NL80211_BAND_ATTR_VHT_MCS_SET = 7, +NL80211_BAND_ATTR_VHT_CAPA = 8, +NL80211_BAND_ATTR_IFTYPE_DATA = 9, +NL80211_BAND_ATTR_EDMG_CHANNELS = 10, +NL80211_BAND_ATTR_EDMG_BW_CONFIG = 11, +NL80211_BAND_ATTR_S1G_MCS_NSS_SET = 12, +NL80211_BAND_ATTR_S1G_CAPA = 13, +__NL80211_BAND_ATTR_AFTER_LAST = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wmm_rule { +__NL80211_WMMR_INVALID = 0, +NL80211_WMMR_CW_MIN = 1, +NL80211_WMMR_CW_MAX = 2, +NL80211_WMMR_AIFSN = 3, +NL80211_WMMR_TXOP = 4, +__NL80211_WMMR_LAST = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_frequency_attr { +__NL80211_FREQUENCY_ATTR_INVALID = 0, +NL80211_FREQUENCY_ATTR_FREQ = 1, +NL80211_FREQUENCY_ATTR_DISABLED = 2, +NL80211_FREQUENCY_ATTR_NO_IR = 3, +__NL80211_FREQUENCY_ATTR_NO_IBSS = 4, +NL80211_FREQUENCY_ATTR_RADAR = 5, +NL80211_FREQUENCY_ATTR_MAX_TX_POWER = 6, +NL80211_FREQUENCY_ATTR_DFS_STATE = 7, +NL80211_FREQUENCY_ATTR_DFS_TIME = 8, +NL80211_FREQUENCY_ATTR_NO_HT40_MINUS = 9, +NL80211_FREQUENCY_ATTR_NO_HT40_PLUS = 10, +NL80211_FREQUENCY_ATTR_NO_80MHZ = 11, +NL80211_FREQUENCY_ATTR_NO_160MHZ = 12, +NL80211_FREQUENCY_ATTR_DFS_CAC_TIME = 13, +NL80211_FREQUENCY_ATTR_INDOOR_ONLY = 14, +NL80211_FREQUENCY_ATTR_IR_CONCURRENT = 15, +NL80211_FREQUENCY_ATTR_NO_20MHZ = 16, +NL80211_FREQUENCY_ATTR_NO_10MHZ = 17, +NL80211_FREQUENCY_ATTR_WMM = 18, +NL80211_FREQUENCY_ATTR_NO_HE = 19, +NL80211_FREQUENCY_ATTR_OFFSET = 20, +NL80211_FREQUENCY_ATTR_1MHZ = 21, +NL80211_FREQUENCY_ATTR_2MHZ = 22, +NL80211_FREQUENCY_ATTR_4MHZ = 23, +NL80211_FREQUENCY_ATTR_8MHZ = 24, +NL80211_FREQUENCY_ATTR_16MHZ = 25, +NL80211_FREQUENCY_ATTR_NO_320MHZ = 26, +NL80211_FREQUENCY_ATTR_NO_EHT = 27, +NL80211_FREQUENCY_ATTR_PSD = 28, +NL80211_FREQUENCY_ATTR_DFS_CONCURRENT = 29, +NL80211_FREQUENCY_ATTR_NO_6GHZ_VLP_CLIENT = 30, +NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, +NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, +NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, +NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bitrate_attr { +__NL80211_BITRATE_ATTR_INVALID = 0, +NL80211_BITRATE_ATTR_RATE = 1, +NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE = 2, +__NL80211_BITRATE_ATTR_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_reg_initiator { +NL80211_REGDOM_SET_BY_CORE = 0, +NL80211_REGDOM_SET_BY_USER = 1, +NL80211_REGDOM_SET_BY_DRIVER = 2, +NL80211_REGDOM_SET_BY_COUNTRY_IE = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_reg_type { +NL80211_REGDOM_TYPE_COUNTRY = 0, +NL80211_REGDOM_TYPE_WORLD = 1, +NL80211_REGDOM_TYPE_CUSTOM_WORLD = 2, +NL80211_REGDOM_TYPE_INTERSECTION = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_reg_rule_attr { +__NL80211_REG_RULE_ATTR_INVALID = 0, +NL80211_ATTR_REG_RULE_FLAGS = 1, +NL80211_ATTR_FREQ_RANGE_START = 2, +NL80211_ATTR_FREQ_RANGE_END = 3, +NL80211_ATTR_FREQ_RANGE_MAX_BW = 4, +NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN = 5, +NL80211_ATTR_POWER_RULE_MAX_EIRP = 6, +NL80211_ATTR_DFS_CAC_TIME = 7, +NL80211_ATTR_POWER_RULE_PSD = 8, +__NL80211_REG_RULE_ATTR_AFTER_LAST = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sched_scan_match_attr { +__NL80211_SCHED_SCAN_MATCH_ATTR_INVALID = 0, +NL80211_SCHED_SCAN_MATCH_ATTR_SSID = 1, +NL80211_SCHED_SCAN_MATCH_ATTR_RSSI = 2, +NL80211_SCHED_SCAN_MATCH_ATTR_RELATIVE_RSSI = 3, +NL80211_SCHED_SCAN_MATCH_ATTR_RSSI_ADJUST = 4, +NL80211_SCHED_SCAN_MATCH_ATTR_BSSID = 5, +NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI = 6, +__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_reg_rule_flags { +NL80211_RRF_NO_OFDM = 1, +NL80211_RRF_NO_CCK = 2, +NL80211_RRF_NO_INDOOR = 4, +NL80211_RRF_NO_OUTDOOR = 8, +NL80211_RRF_DFS = 16, +NL80211_RRF_PTP_ONLY = 32, +NL80211_RRF_PTMP_ONLY = 64, +NL80211_RRF_NO_IR = 128, +__NL80211_RRF_NO_IBSS = 256, +NL80211_RRF_AUTO_BW = 2048, +NL80211_RRF_IR_CONCURRENT = 4096, +NL80211_RRF_NO_HT40MINUS = 8192, +NL80211_RRF_NO_HT40PLUS = 16384, +NL80211_RRF_NO_80MHZ = 32768, +NL80211_RRF_NO_160MHZ = 65536, +NL80211_RRF_NO_HE = 131072, +NL80211_RRF_NO_320MHZ = 262144, +NL80211_RRF_NO_EHT = 524288, +NL80211_RRF_PSD = 1048576, +NL80211_RRF_DFS_CONCURRENT = 2097152, +NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, +NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, +NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, +NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_dfs_regions { +NL80211_DFS_UNSET = 0, +NL80211_DFS_FCC = 1, +NL80211_DFS_ETSI = 2, +NL80211_DFS_JP = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_user_reg_hint_type { +NL80211_USER_REG_HINT_USER = 0, +NL80211_USER_REG_HINT_CELL_BASE = 1, +NL80211_USER_REG_HINT_INDOOR = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_survey_info { +__NL80211_SURVEY_INFO_INVALID = 0, +NL80211_SURVEY_INFO_FREQUENCY = 1, +NL80211_SURVEY_INFO_NOISE = 2, +NL80211_SURVEY_INFO_IN_USE = 3, +NL80211_SURVEY_INFO_TIME = 4, +NL80211_SURVEY_INFO_TIME_BUSY = 5, +NL80211_SURVEY_INFO_TIME_EXT_BUSY = 6, +NL80211_SURVEY_INFO_TIME_RX = 7, +NL80211_SURVEY_INFO_TIME_TX = 8, +NL80211_SURVEY_INFO_TIME_SCAN = 9, +NL80211_SURVEY_INFO_PAD = 10, +NL80211_SURVEY_INFO_TIME_BSS_RX = 11, +NL80211_SURVEY_INFO_FREQUENCY_OFFSET = 12, +__NL80211_SURVEY_INFO_AFTER_LAST = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mntr_flags { +__NL80211_MNTR_FLAG_INVALID = 0, +NL80211_MNTR_FLAG_FCSFAIL = 1, +NL80211_MNTR_FLAG_PLCPFAIL = 2, +NL80211_MNTR_FLAG_CONTROL = 3, +NL80211_MNTR_FLAG_OTHER_BSS = 4, +NL80211_MNTR_FLAG_COOK_FRAMES = 5, +NL80211_MNTR_FLAG_ACTIVE = 6, +NL80211_MNTR_FLAG_SKIP_TX = 7, +__NL80211_MNTR_FLAG_AFTER_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mesh_power_mode { +NL80211_MESH_POWER_UNKNOWN = 0, +NL80211_MESH_POWER_ACTIVE = 1, +NL80211_MESH_POWER_LIGHT_SLEEP = 2, +NL80211_MESH_POWER_DEEP_SLEEP = 3, +__NL80211_MESH_POWER_AFTER_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_meshconf_params { +__NL80211_MESHCONF_INVALID = 0, +NL80211_MESHCONF_RETRY_TIMEOUT = 1, +NL80211_MESHCONF_CONFIRM_TIMEOUT = 2, +NL80211_MESHCONF_HOLDING_TIMEOUT = 3, +NL80211_MESHCONF_MAX_PEER_LINKS = 4, +NL80211_MESHCONF_MAX_RETRIES = 5, +NL80211_MESHCONF_TTL = 6, +NL80211_MESHCONF_AUTO_OPEN_PLINKS = 7, +NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES = 8, +NL80211_MESHCONF_PATH_REFRESH_TIME = 9, +NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT = 10, +NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT = 11, +NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL = 12, +NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME = 13, +NL80211_MESHCONF_HWMP_ROOTMODE = 14, +NL80211_MESHCONF_ELEMENT_TTL = 15, +NL80211_MESHCONF_HWMP_RANN_INTERVAL = 16, +NL80211_MESHCONF_GATE_ANNOUNCEMENTS = 17, +NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL = 18, +NL80211_MESHCONF_FORWARDING = 19, +NL80211_MESHCONF_RSSI_THRESHOLD = 20, +NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR = 21, +NL80211_MESHCONF_HT_OPMODE = 22, +NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT = 23, +NL80211_MESHCONF_HWMP_ROOT_INTERVAL = 24, +NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL = 25, +NL80211_MESHCONF_POWER_MODE = 26, +NL80211_MESHCONF_AWAKE_WINDOW = 27, +NL80211_MESHCONF_PLINK_TIMEOUT = 28, +NL80211_MESHCONF_CONNECTED_TO_GATE = 29, +NL80211_MESHCONF_NOLEARN = 30, +NL80211_MESHCONF_CONNECTED_TO_AS = 31, +__NL80211_MESHCONF_ATTR_AFTER_LAST = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mesh_setup_params { +__NL80211_MESH_SETUP_INVALID = 0, +NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL = 1, +NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC = 2, +NL80211_MESH_SETUP_IE = 3, +NL80211_MESH_SETUP_USERSPACE_AUTH = 4, +NL80211_MESH_SETUP_USERSPACE_AMPE = 5, +NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC = 6, +NL80211_MESH_SETUP_USERSPACE_MPM = 7, +NL80211_MESH_SETUP_AUTH_PROTOCOL = 8, +__NL80211_MESH_SETUP_ATTR_AFTER_LAST = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_txq_attr { +__NL80211_TXQ_ATTR_INVALID = 0, +NL80211_TXQ_ATTR_AC = 1, +NL80211_TXQ_ATTR_TXOP = 2, +NL80211_TXQ_ATTR_CWMIN = 3, +NL80211_TXQ_ATTR_CWMAX = 4, +NL80211_TXQ_ATTR_AIFS = 5, +__NL80211_TXQ_ATTR_AFTER_LAST = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ac { +NL80211_AC_VO = 0, +NL80211_AC_VI = 1, +NL80211_AC_BE = 2, +NL80211_AC_BK = 3, +NL80211_NUM_ACS = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_channel_type { +NL80211_CHAN_NO_HT = 0, +NL80211_CHAN_HT20 = 1, +NL80211_CHAN_HT40MINUS = 2, +NL80211_CHAN_HT40PLUS = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_key_mode { +NL80211_KEY_RX_TX = 0, +NL80211_KEY_NO_TX = 1, +NL80211_KEY_SET_TX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_chan_width { +NL80211_CHAN_WIDTH_20_NOHT = 0, +NL80211_CHAN_WIDTH_20 = 1, +NL80211_CHAN_WIDTH_40 = 2, +NL80211_CHAN_WIDTH_80 = 3, +NL80211_CHAN_WIDTH_80P80 = 4, +NL80211_CHAN_WIDTH_160 = 5, +NL80211_CHAN_WIDTH_5 = 6, +NL80211_CHAN_WIDTH_10 = 7, +NL80211_CHAN_WIDTH_1 = 8, +NL80211_CHAN_WIDTH_2 = 9, +NL80211_CHAN_WIDTH_4 = 10, +NL80211_CHAN_WIDTH_8 = 11, +NL80211_CHAN_WIDTH_16 = 12, +NL80211_CHAN_WIDTH_320 = 13, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_scan_width { +NL80211_BSS_CHAN_WIDTH_20 = 0, +NL80211_BSS_CHAN_WIDTH_10 = 1, +NL80211_BSS_CHAN_WIDTH_5 = 2, +NL80211_BSS_CHAN_WIDTH_1 = 3, +NL80211_BSS_CHAN_WIDTH_2 = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_use_for { +NL80211_BSS_USE_FOR_NORMAL = 1, +NL80211_BSS_USE_FOR_MLD_LINK = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_cannot_use_reasons { +NL80211_BSS_CANNOT_USE_NSTR_NONPRIMARY = 1, +NL80211_BSS_CANNOT_USE_6GHZ_PWR_MISMATCH = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss { +__NL80211_BSS_INVALID = 0, +NL80211_BSS_BSSID = 1, +NL80211_BSS_FREQUENCY = 2, +NL80211_BSS_TSF = 3, +NL80211_BSS_BEACON_INTERVAL = 4, +NL80211_BSS_CAPABILITY = 5, +NL80211_BSS_INFORMATION_ELEMENTS = 6, +NL80211_BSS_SIGNAL_MBM = 7, +NL80211_BSS_SIGNAL_UNSPEC = 8, +NL80211_BSS_STATUS = 9, +NL80211_BSS_SEEN_MS_AGO = 10, +NL80211_BSS_BEACON_IES = 11, +NL80211_BSS_CHAN_WIDTH = 12, +NL80211_BSS_BEACON_TSF = 13, +NL80211_BSS_PRESP_DATA = 14, +NL80211_BSS_LAST_SEEN_BOOTTIME = 15, +NL80211_BSS_PAD = 16, +NL80211_BSS_PARENT_TSF = 17, +NL80211_BSS_PARENT_BSSID = 18, +NL80211_BSS_CHAIN_SIGNAL = 19, +NL80211_BSS_FREQUENCY_OFFSET = 20, +NL80211_BSS_MLO_LINK_ID = 21, +NL80211_BSS_MLD_ADDR = 22, +NL80211_BSS_USE_FOR = 23, +NL80211_BSS_CANNOT_USE_REASONS = 24, +__NL80211_BSS_AFTER_LAST = 25, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_status { +NL80211_BSS_STATUS_AUTHENTICATED = 0, +NL80211_BSS_STATUS_ASSOCIATED = 1, +NL80211_BSS_STATUS_IBSS_JOINED = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_auth_type { +NL80211_AUTHTYPE_OPEN_SYSTEM = 0, +NL80211_AUTHTYPE_SHARED_KEY = 1, +NL80211_AUTHTYPE_FT = 2, +NL80211_AUTHTYPE_NETWORK_EAP = 3, +NL80211_AUTHTYPE_SAE = 4, +NL80211_AUTHTYPE_FILS_SK = 5, +NL80211_AUTHTYPE_FILS_SK_PFS = 6, +NL80211_AUTHTYPE_FILS_PK = 7, +__NL80211_AUTHTYPE_NUM = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_key_type { +NL80211_KEYTYPE_GROUP = 0, +NL80211_KEYTYPE_PAIRWISE = 1, +NL80211_KEYTYPE_PEERKEY = 2, +NUM_NL80211_KEYTYPES = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mfp { +NL80211_MFP_NO = 0, +NL80211_MFP_REQUIRED = 1, +NL80211_MFP_OPTIONAL = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wpa_versions { +NL80211_WPA_VERSION_1 = 1, +NL80211_WPA_VERSION_2 = 2, +NL80211_WPA_VERSION_3 = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_key_default_types { +__NL80211_KEY_DEFAULT_TYPE_INVALID = 0, +NL80211_KEY_DEFAULT_TYPE_UNICAST = 1, +NL80211_KEY_DEFAULT_TYPE_MULTICAST = 2, +NUM_NL80211_KEY_DEFAULT_TYPES = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_key_attributes { +__NL80211_KEY_INVALID = 0, +NL80211_KEY_DATA = 1, +NL80211_KEY_IDX = 2, +NL80211_KEY_CIPHER = 3, +NL80211_KEY_SEQ = 4, +NL80211_KEY_DEFAULT = 5, +NL80211_KEY_DEFAULT_MGMT = 6, +NL80211_KEY_TYPE = 7, +NL80211_KEY_DEFAULT_TYPES = 8, +NL80211_KEY_MODE = 9, +NL80211_KEY_DEFAULT_BEACON = 10, +__NL80211_KEY_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tx_rate_attributes { +__NL80211_TXRATE_INVALID = 0, +NL80211_TXRATE_LEGACY = 1, +NL80211_TXRATE_HT = 2, +NL80211_TXRATE_VHT = 3, +NL80211_TXRATE_GI = 4, +NL80211_TXRATE_HE = 5, +NL80211_TXRATE_HE_GI = 6, +NL80211_TXRATE_HE_LTF = 7, +__NL80211_TXRATE_AFTER_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_txrate_gi { +NL80211_TXRATE_DEFAULT_GI = 0, +NL80211_TXRATE_FORCE_SGI = 1, +NL80211_TXRATE_FORCE_LGI = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_band { +NL80211_BAND_2GHZ = 0, +NL80211_BAND_5GHZ = 1, +NL80211_BAND_60GHZ = 2, +NL80211_BAND_6GHZ = 3, +NL80211_BAND_S1GHZ = 4, +NL80211_BAND_LC = 5, +NUM_NL80211_BANDS = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ps_state { +NL80211_PS_DISABLED = 0, +NL80211_PS_ENABLED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_attr_cqm { +__NL80211_ATTR_CQM_INVALID = 0, +NL80211_ATTR_CQM_RSSI_THOLD = 1, +NL80211_ATTR_CQM_RSSI_HYST = 2, +NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT = 3, +NL80211_ATTR_CQM_PKT_LOSS_EVENT = 4, +NL80211_ATTR_CQM_TXE_RATE = 5, +NL80211_ATTR_CQM_TXE_PKTS = 6, +NL80211_ATTR_CQM_TXE_INTVL = 7, +NL80211_ATTR_CQM_BEACON_LOSS_EVENT = 8, +NL80211_ATTR_CQM_RSSI_LEVEL = 9, +__NL80211_ATTR_CQM_AFTER_LAST = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_cqm_rssi_threshold_event { +NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW = 0, +NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH = 1, +NL80211_CQM_RSSI_BEACON_LOSS_EVENT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tx_power_setting { +NL80211_TX_POWER_AUTOMATIC = 0, +NL80211_TX_POWER_LIMITED = 1, +NL80211_TX_POWER_FIXED = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tid_config { +NL80211_TID_CONFIG_ENABLE = 0, +NL80211_TID_CONFIG_DISABLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tx_rate_setting { +NL80211_TX_RATE_AUTOMATIC = 0, +NL80211_TX_RATE_LIMITED = 1, +NL80211_TX_RATE_FIXED = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tid_config_attr { +__NL80211_TID_CONFIG_ATTR_INVALID = 0, +NL80211_TID_CONFIG_ATTR_PAD = 1, +NL80211_TID_CONFIG_ATTR_VIF_SUPP = 2, +NL80211_TID_CONFIG_ATTR_PEER_SUPP = 3, +NL80211_TID_CONFIG_ATTR_OVERRIDE = 4, +NL80211_TID_CONFIG_ATTR_TIDS = 5, +NL80211_TID_CONFIG_ATTR_NOACK = 6, +NL80211_TID_CONFIG_ATTR_RETRY_SHORT = 7, +NL80211_TID_CONFIG_ATTR_RETRY_LONG = 8, +NL80211_TID_CONFIG_ATTR_AMPDU_CTRL = 9, +NL80211_TID_CONFIG_ATTR_RTSCTS_CTRL = 10, +NL80211_TID_CONFIG_ATTR_AMSDU_CTRL = 11, +NL80211_TID_CONFIG_ATTR_TX_RATE_TYPE = 12, +NL80211_TID_CONFIG_ATTR_TX_RATE = 13, +__NL80211_TID_CONFIG_ATTR_AFTER_LAST = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_packet_pattern_attr { +__NL80211_PKTPAT_INVALID = 0, +NL80211_PKTPAT_MASK = 1, +NL80211_PKTPAT_PATTERN = 2, +NL80211_PKTPAT_OFFSET = 3, +NUM_NL80211_PKTPAT = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wowlan_triggers { +__NL80211_WOWLAN_TRIG_INVALID = 0, +NL80211_WOWLAN_TRIG_ANY = 1, +NL80211_WOWLAN_TRIG_DISCONNECT = 2, +NL80211_WOWLAN_TRIG_MAGIC_PKT = 3, +NL80211_WOWLAN_TRIG_PKT_PATTERN = 4, +NL80211_WOWLAN_TRIG_GTK_REKEY_SUPPORTED = 5, +NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE = 6, +NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST = 7, +NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE = 8, +NL80211_WOWLAN_TRIG_RFKILL_RELEASE = 9, +NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211 = 10, +NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN = 11, +NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023 = 12, +NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN = 13, +NL80211_WOWLAN_TRIG_TCP_CONNECTION = 14, +NL80211_WOWLAN_TRIG_WAKEUP_TCP_MATCH = 15, +NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST = 16, +NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS = 17, +NL80211_WOWLAN_TRIG_NET_DETECT = 18, +NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS = 19, +NL80211_WOWLAN_TRIG_UNPROTECTED_DEAUTH_DISASSOC = 20, +NUM_NL80211_WOWLAN_TRIG = 21, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wowlan_tcp_attrs { +__NL80211_WOWLAN_TCP_INVALID = 0, +NL80211_WOWLAN_TCP_SRC_IPV4 = 1, +NL80211_WOWLAN_TCP_DST_IPV4 = 2, +NL80211_WOWLAN_TCP_DST_MAC = 3, +NL80211_WOWLAN_TCP_SRC_PORT = 4, +NL80211_WOWLAN_TCP_DST_PORT = 5, +NL80211_WOWLAN_TCP_DATA_PAYLOAD = 6, +NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ = 7, +NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN = 8, +NL80211_WOWLAN_TCP_DATA_INTERVAL = 9, +NL80211_WOWLAN_TCP_WAKE_PAYLOAD = 10, +NL80211_WOWLAN_TCP_WAKE_MASK = 11, +NUM_NL80211_WOWLAN_TCP = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_attr_coalesce_rule { +__NL80211_COALESCE_RULE_INVALID = 0, +NL80211_ATTR_COALESCE_RULE_DELAY = 1, +NL80211_ATTR_COALESCE_RULE_CONDITION = 2, +NL80211_ATTR_COALESCE_RULE_PKT_PATTERN = 3, +NUM_NL80211_ATTR_COALESCE_RULE = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_coalesce_condition { +NL80211_COALESCE_CONDITION_MATCH = 0, +NL80211_COALESCE_CONDITION_NO_MATCH = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_iface_limit_attrs { +NL80211_IFACE_LIMIT_UNSPEC = 0, +NL80211_IFACE_LIMIT_MAX = 1, +NL80211_IFACE_LIMIT_TYPES = 2, +NUM_NL80211_IFACE_LIMIT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_if_combination_attrs { +NL80211_IFACE_COMB_UNSPEC = 0, +NL80211_IFACE_COMB_LIMITS = 1, +NL80211_IFACE_COMB_MAXNUM = 2, +NL80211_IFACE_COMB_STA_AP_BI_MATCH = 3, +NL80211_IFACE_COMB_NUM_CHANNELS = 4, +NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS = 5, +NL80211_IFACE_COMB_RADAR_DETECT_REGIONS = 6, +NL80211_IFACE_COMB_BI_MIN_GCD = 7, +NUM_NL80211_IFACE_COMB = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_plink_state { +NL80211_PLINK_LISTEN = 0, +NL80211_PLINK_OPN_SNT = 1, +NL80211_PLINK_OPN_RCVD = 2, +NL80211_PLINK_CNF_RCVD = 3, +NL80211_PLINK_ESTAB = 4, +NL80211_PLINK_HOLDING = 5, +NL80211_PLINK_BLOCKED = 6, +NUM_NL80211_PLINK_STATES = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_plink_action { +NL80211_PLINK_ACTION_NO_ACTION = 0, +NL80211_PLINK_ACTION_OPEN = 1, +NL80211_PLINK_ACTION_BLOCK = 2, +NUM_NL80211_PLINK_ACTIONS = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_rekey_data { +__NL80211_REKEY_DATA_INVALID = 0, +NL80211_REKEY_DATA_KEK = 1, +NL80211_REKEY_DATA_KCK = 2, +NL80211_REKEY_DATA_REPLAY_CTR = 3, +NL80211_REKEY_DATA_AKM = 4, +NUM_NL80211_REKEY_DATA = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_hidden_ssid { +NL80211_HIDDEN_SSID_NOT_IN_USE = 0, +NL80211_HIDDEN_SSID_ZERO_LEN = 1, +NL80211_HIDDEN_SSID_ZERO_CONTENTS = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sta_wme_attr { +__NL80211_STA_WME_INVALID = 0, +NL80211_STA_WME_UAPSD_QUEUES = 1, +NL80211_STA_WME_MAX_SP = 2, +__NL80211_STA_WME_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_pmksa_candidate_attr { +__NL80211_PMKSA_CANDIDATE_INVALID = 0, +NL80211_PMKSA_CANDIDATE_INDEX = 1, +NL80211_PMKSA_CANDIDATE_BSSID = 2, +NL80211_PMKSA_CANDIDATE_PREAUTH = 3, +NUM_NL80211_PMKSA_CANDIDATE = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tdls_operation { +NL80211_TDLS_DISCOVERY_REQ = 0, +NL80211_TDLS_SETUP = 1, +NL80211_TDLS_TEARDOWN = 2, +NL80211_TDLS_ENABLE_LINK = 3, +NL80211_TDLS_DISABLE_LINK = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ap_sme_features { +NL80211_AP_SME_SA_QUERY_OFFLOAD = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_feature_flags { +NL80211_FEATURE_SK_TX_STATUS = 1, +NL80211_FEATURE_HT_IBSS = 2, +NL80211_FEATURE_INACTIVITY_TIMER = 4, +NL80211_FEATURE_CELL_BASE_REG_HINTS = 8, +NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL = 16, +NL80211_FEATURE_SAE = 32, +NL80211_FEATURE_LOW_PRIORITY_SCAN = 64, +NL80211_FEATURE_SCAN_FLUSH = 128, +NL80211_FEATURE_AP_SCAN = 256, +NL80211_FEATURE_VIF_TXPOWER = 512, +NL80211_FEATURE_NEED_OBSS_SCAN = 1024, +NL80211_FEATURE_P2P_GO_CTWIN = 2048, +NL80211_FEATURE_P2P_GO_OPPPS = 4096, +NL80211_FEATURE_ADVERTISE_CHAN_LIMITS = 16384, +NL80211_FEATURE_FULL_AP_CLIENT_STATE = 32768, +NL80211_FEATURE_USERSPACE_MPM = 65536, +NL80211_FEATURE_ACTIVE_MONITOR = 131072, +NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE = 262144, +NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES = 524288, +NL80211_FEATURE_WFA_TPC_IE_IN_PROBES = 1048576, +NL80211_FEATURE_QUIET = 2097152, +NL80211_FEATURE_TX_POWER_INSERTION = 4194304, +NL80211_FEATURE_ACKTO_ESTIMATION = 8388608, +NL80211_FEATURE_STATIC_SMPS = 16777216, +NL80211_FEATURE_DYNAMIC_SMPS = 33554432, +NL80211_FEATURE_SUPPORTS_WMM_ADMISSION = 67108864, +NL80211_FEATURE_MAC_ON_CREATE = 134217728, +NL80211_FEATURE_TDLS_CHANNEL_SWITCH = 268435456, +NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR = 536870912, +NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR = 1073741824, +NL80211_FEATURE_ND_RANDOM_MAC_ADDR = 2147483648, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ext_feature_index { +NL80211_EXT_FEATURE_VHT_IBSS = 0, +NL80211_EXT_FEATURE_RRM = 1, +NL80211_EXT_FEATURE_MU_MIMO_AIR_SNIFFER = 2, +NL80211_EXT_FEATURE_SCAN_START_TIME = 3, +NL80211_EXT_FEATURE_BSS_PARENT_TSF = 4, +NL80211_EXT_FEATURE_SET_SCAN_DWELL = 5, +NL80211_EXT_FEATURE_BEACON_RATE_LEGACY = 6, +NL80211_EXT_FEATURE_BEACON_RATE_HT = 7, +NL80211_EXT_FEATURE_BEACON_RATE_VHT = 8, +NL80211_EXT_FEATURE_FILS_STA = 9, +NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA = 10, +NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED = 11, +NL80211_EXT_FEATURE_SCHED_SCAN_RELATIVE_RSSI = 12, +NL80211_EXT_FEATURE_CQM_RSSI_LIST = 13, +NL80211_EXT_FEATURE_FILS_SK_OFFLOAD = 14, +NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_PSK = 15, +NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X = 16, +NL80211_EXT_FEATURE_FILS_MAX_CHANNEL_TIME = 17, +NL80211_EXT_FEATURE_ACCEPT_BCAST_PROBE_RESP = 18, +NL80211_EXT_FEATURE_OCE_PROBE_REQ_HIGH_TX_RATE = 19, +NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION = 20, +NL80211_EXT_FEATURE_MFP_OPTIONAL = 21, +NL80211_EXT_FEATURE_LOW_SPAN_SCAN = 22, +NL80211_EXT_FEATURE_LOW_POWER_SCAN = 23, +NL80211_EXT_FEATURE_HIGH_ACCURACY_SCAN = 24, +NL80211_EXT_FEATURE_DFS_OFFLOAD = 25, +NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211 = 26, +NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT = 27, +NL80211_EXT_FEATURE_TXQS = 28, +NL80211_EXT_FEATURE_SCAN_RANDOM_SN = 29, +NL80211_EXT_FEATURE_SCAN_MIN_PREQ_CONTENT = 30, +NL80211_EXT_FEATURE_CAN_REPLACE_PTK0 = 31, +NL80211_EXT_FEATURE_ENABLE_FTM_RESPONDER = 32, +NL80211_EXT_FEATURE_AIRTIME_FAIRNESS = 33, +NL80211_EXT_FEATURE_AP_PMKSA_CACHING = 34, +NL80211_EXT_FEATURE_SCHED_SCAN_BAND_SPECIFIC_RSSI_THOLD = 35, +NL80211_EXT_FEATURE_EXT_KEY_ID = 36, +NL80211_EXT_FEATURE_STA_TX_PWR = 37, +NL80211_EXT_FEATURE_SAE_OFFLOAD = 38, +NL80211_EXT_FEATURE_VLAN_OFFLOAD = 39, +NL80211_EXT_FEATURE_AQL = 40, +NL80211_EXT_FEATURE_BEACON_PROTECTION = 41, +NL80211_EXT_FEATURE_CONTROL_PORT_NO_PREAUTH = 42, +NL80211_EXT_FEATURE_PROTECTED_TWT = 43, +NL80211_EXT_FEATURE_DEL_IBSS_STA = 44, +NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS = 45, +NL80211_EXT_FEATURE_BEACON_PROTECTION_CLIENT = 46, +NL80211_EXT_FEATURE_SCAN_FREQ_KHZ = 47, +NL80211_EXT_FEATURE_CONTROL_PORT_OVER_NL80211_TX_STATUS = 48, +NL80211_EXT_FEATURE_OPERATING_CHANNEL_VALIDATION = 49, +NL80211_EXT_FEATURE_4WAY_HANDSHAKE_AP_PSK = 50, +NL80211_EXT_FEATURE_SAE_OFFLOAD_AP = 51, +NL80211_EXT_FEATURE_FILS_DISCOVERY = 52, +NL80211_EXT_FEATURE_UNSOL_BCAST_PROBE_RESP = 53, +NL80211_EXT_FEATURE_BEACON_RATE_HE = 54, +NL80211_EXT_FEATURE_SECURE_LTF = 55, +NL80211_EXT_FEATURE_SECURE_RTT = 56, +NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE = 57, +NL80211_EXT_FEATURE_BSS_COLOR = 58, +NL80211_EXT_FEATURE_FILS_CRYPTO_OFFLOAD = 59, +NL80211_EXT_FEATURE_RADAR_BACKGROUND = 60, +NL80211_EXT_FEATURE_POWERED_ADDR_CHANGE = 61, +NL80211_EXT_FEATURE_PUNCT = 62, +NL80211_EXT_FEATURE_SECURE_NAN = 63, +NL80211_EXT_FEATURE_AUTH_AND_DEAUTH_RANDOM_TA = 64, +NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, +NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, +NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, +NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, +NUM_NL80211_EXT_FEATURES = 69, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_probe_resp_offload_support_attr { +NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS = 1, +NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2 = 2, +NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P = 4, +NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_connect_failed_reason { +NL80211_CONN_FAIL_MAX_CLIENTS = 0, +NL80211_CONN_FAIL_BLOCKED_CLIENT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_timeout_reason { +NL80211_TIMEOUT_UNSPECIFIED = 0, +NL80211_TIMEOUT_SCAN = 1, +NL80211_TIMEOUT_AUTH = 2, +NL80211_TIMEOUT_ASSOC = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_scan_flags { +NL80211_SCAN_FLAG_LOW_PRIORITY = 1, +NL80211_SCAN_FLAG_FLUSH = 2, +NL80211_SCAN_FLAG_AP = 4, +NL80211_SCAN_FLAG_RANDOM_ADDR = 8, +NL80211_SCAN_FLAG_FILS_MAX_CHANNEL_TIME = 16, +NL80211_SCAN_FLAG_ACCEPT_BCAST_PROBE_RESP = 32, +NL80211_SCAN_FLAG_OCE_PROBE_REQ_HIGH_TX_RATE = 64, +NL80211_SCAN_FLAG_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION = 128, +NL80211_SCAN_FLAG_LOW_SPAN = 256, +NL80211_SCAN_FLAG_LOW_POWER = 512, +NL80211_SCAN_FLAG_HIGH_ACCURACY = 1024, +NL80211_SCAN_FLAG_RANDOM_SN = 2048, +NL80211_SCAN_FLAG_MIN_PREQ_CONTENT = 4096, +NL80211_SCAN_FLAG_FREQ_KHZ = 8192, +NL80211_SCAN_FLAG_COLOCATED_6GHZ = 16384, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_acl_policy { +NL80211_ACL_POLICY_ACCEPT_UNLESS_LISTED = 0, +NL80211_ACL_POLICY_DENY_UNLESS_LISTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_smps_mode { +NL80211_SMPS_OFF = 0, +NL80211_SMPS_STATIC = 1, +NL80211_SMPS_DYNAMIC = 2, +__NL80211_SMPS_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_radar_event { +NL80211_RADAR_DETECTED = 0, +NL80211_RADAR_CAC_FINISHED = 1, +NL80211_RADAR_CAC_ABORTED = 2, +NL80211_RADAR_NOP_FINISHED = 3, +NL80211_RADAR_PRE_CAC_EXPIRED = 4, +NL80211_RADAR_CAC_STARTED = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_dfs_state { +NL80211_DFS_USABLE = 0, +NL80211_DFS_UNAVAILABLE = 1, +NL80211_DFS_AVAILABLE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_protocol_features { +NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_crit_proto_id { +NL80211_CRIT_PROTO_UNSPEC = 0, +NL80211_CRIT_PROTO_DHCP = 1, +NL80211_CRIT_PROTO_EAPOL = 2, +NL80211_CRIT_PROTO_APIPA = 3, +NUM_NL80211_CRIT_PROTO = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_rxmgmt_flags { +NL80211_RXMGMT_FLAG_ANSWERED = 1, +NL80211_RXMGMT_FLAG_EXTERNAL_AUTH = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_tdls_peer_capability { +NL80211_TDLS_PEER_HT = 1, +NL80211_TDLS_PEER_VHT = 2, +NL80211_TDLS_PEER_WMM = 4, +NL80211_TDLS_PEER_HE = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sched_scan_plan { +__NL80211_SCHED_SCAN_PLAN_INVALID = 0, +NL80211_SCHED_SCAN_PLAN_INTERVAL = 1, +NL80211_SCHED_SCAN_PLAN_ITERATIONS = 2, +__NL80211_SCHED_SCAN_PLAN_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_select_attr { +__NL80211_BSS_SELECT_ATTR_INVALID = 0, +NL80211_BSS_SELECT_ATTR_RSSI = 1, +NL80211_BSS_SELECT_ATTR_BAND_PREF = 2, +NL80211_BSS_SELECT_ATTR_RSSI_ADJUST = 3, +__NL80211_BSS_SELECT_ATTR_AFTER_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_function_type { +NL80211_NAN_FUNC_PUBLISH = 0, +NL80211_NAN_FUNC_SUBSCRIBE = 1, +NL80211_NAN_FUNC_FOLLOW_UP = 2, +__NL80211_NAN_FUNC_TYPE_AFTER_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_publish_type { +NL80211_NAN_SOLICITED_PUBLISH = 1, +NL80211_NAN_UNSOLICITED_PUBLISH = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_func_term_reason { +NL80211_NAN_FUNC_TERM_REASON_USER_REQUEST = 0, +NL80211_NAN_FUNC_TERM_REASON_TTL_EXPIRED = 1, +NL80211_NAN_FUNC_TERM_REASON_ERROR = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_func_attributes { +__NL80211_NAN_FUNC_INVALID = 0, +NL80211_NAN_FUNC_TYPE = 1, +NL80211_NAN_FUNC_SERVICE_ID = 2, +NL80211_NAN_FUNC_PUBLISH_TYPE = 3, +NL80211_NAN_FUNC_PUBLISH_BCAST = 4, +NL80211_NAN_FUNC_SUBSCRIBE_ACTIVE = 5, +NL80211_NAN_FUNC_FOLLOW_UP_ID = 6, +NL80211_NAN_FUNC_FOLLOW_UP_REQ_ID = 7, +NL80211_NAN_FUNC_FOLLOW_UP_DEST = 8, +NL80211_NAN_FUNC_CLOSE_RANGE = 9, +NL80211_NAN_FUNC_TTL = 10, +NL80211_NAN_FUNC_SERVICE_INFO = 11, +NL80211_NAN_FUNC_SRF = 12, +NL80211_NAN_FUNC_RX_MATCH_FILTER = 13, +NL80211_NAN_FUNC_TX_MATCH_FILTER = 14, +NL80211_NAN_FUNC_INSTANCE_ID = 15, +NL80211_NAN_FUNC_TERM_REASON = 16, +NUM_NL80211_NAN_FUNC_ATTR = 17, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_srf_attributes { +__NL80211_NAN_SRF_INVALID = 0, +NL80211_NAN_SRF_INCLUDE = 1, +NL80211_NAN_SRF_BF = 2, +NL80211_NAN_SRF_BF_IDX = 3, +NL80211_NAN_SRF_MAC_ADDRS = 4, +NUM_NL80211_NAN_SRF_ATTR = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_match_attributes { +__NL80211_NAN_MATCH_INVALID = 0, +NL80211_NAN_MATCH_FUNC_LOCAL = 1, +NL80211_NAN_MATCH_FUNC_PEER = 2, +NUM_NL80211_NAN_MATCH_ATTR = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_external_auth_action { +NL80211_EXTERNAL_AUTH_START = 0, +NL80211_EXTERNAL_AUTH_ABORT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ftm_responder_attributes { +__NL80211_FTM_RESP_ATTR_INVALID = 0, +NL80211_FTM_RESP_ATTR_ENABLED = 1, +NL80211_FTM_RESP_ATTR_LCI = 2, +NL80211_FTM_RESP_ATTR_CIVICLOC = 3, +__NL80211_FTM_RESP_ATTR_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ftm_responder_stats { +__NL80211_FTM_STATS_INVALID = 0, +NL80211_FTM_STATS_SUCCESS_NUM = 1, +NL80211_FTM_STATS_PARTIAL_NUM = 2, +NL80211_FTM_STATS_FAILED_NUM = 3, +NL80211_FTM_STATS_ASAP_NUM = 4, +NL80211_FTM_STATS_NON_ASAP_NUM = 5, +NL80211_FTM_STATS_TOTAL_DURATION_MSEC = 6, +NL80211_FTM_STATS_UNKNOWN_TRIGGERS_NUM = 7, +NL80211_FTM_STATS_RESCHEDULE_REQUESTS_NUM = 8, +NL80211_FTM_STATS_OUT_OF_WINDOW_TRIGGERS_NUM = 9, +NL80211_FTM_STATS_PAD = 10, +__NL80211_FTM_STATS_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_preamble { +NL80211_PREAMBLE_LEGACY = 0, +NL80211_PREAMBLE_HT = 1, +NL80211_PREAMBLE_VHT = 2, +NL80211_PREAMBLE_DMG = 3, +NL80211_PREAMBLE_HE = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_type { +NL80211_PMSR_TYPE_INVALID = 0, +NL80211_PMSR_TYPE_FTM = 1, +NUM_NL80211_PMSR_TYPES = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_status { +NL80211_PMSR_STATUS_SUCCESS = 0, +NL80211_PMSR_STATUS_REFUSED = 1, +NL80211_PMSR_STATUS_TIMEOUT = 2, +NL80211_PMSR_STATUS_FAILURE = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_req { +__NL80211_PMSR_REQ_ATTR_INVALID = 0, +NL80211_PMSR_REQ_ATTR_DATA = 1, +NL80211_PMSR_REQ_ATTR_GET_AP_TSF = 2, +NUM_NL80211_PMSR_REQ_ATTRS = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_resp { +__NL80211_PMSR_RESP_ATTR_INVALID = 0, +NL80211_PMSR_RESP_ATTR_DATA = 1, +NL80211_PMSR_RESP_ATTR_STATUS = 2, +NL80211_PMSR_RESP_ATTR_HOST_TIME = 3, +NL80211_PMSR_RESP_ATTR_AP_TSF = 4, +NL80211_PMSR_RESP_ATTR_FINAL = 5, +NL80211_PMSR_RESP_ATTR_PAD = 6, +NUM_NL80211_PMSR_RESP_ATTRS = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_peer_attrs { +__NL80211_PMSR_PEER_ATTR_INVALID = 0, +NL80211_PMSR_PEER_ATTR_ADDR = 1, +NL80211_PMSR_PEER_ATTR_CHAN = 2, +NL80211_PMSR_PEER_ATTR_REQ = 3, +NL80211_PMSR_PEER_ATTR_RESP = 4, +NUM_NL80211_PMSR_PEER_ATTRS = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_attrs { +__NL80211_PMSR_ATTR_INVALID = 0, +NL80211_PMSR_ATTR_MAX_PEERS = 1, +NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, +NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, +NL80211_PMSR_ATTR_TYPE_CAPA = 4, +NL80211_PMSR_ATTR_PEERS = 5, +NUM_NL80211_PMSR_ATTR = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_capa { +__NL80211_PMSR_FTM_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_CAPA_ATTR_ASAP = 1, +NL80211_PMSR_FTM_CAPA_ATTR_NON_ASAP = 2, +NL80211_PMSR_FTM_CAPA_ATTR_REQ_LCI = 3, +NL80211_PMSR_FTM_CAPA_ATTR_REQ_CIVICLOC = 4, +NL80211_PMSR_FTM_CAPA_ATTR_PREAMBLES = 5, +NL80211_PMSR_FTM_CAPA_ATTR_BANDWIDTHS = 6, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, +NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, +NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req { +__NL80211_PMSR_FTM_REQ_ATTR_INVALID = 0, +NL80211_PMSR_FTM_REQ_ATTR_ASAP = 1, +NL80211_PMSR_FTM_REQ_ATTR_PREAMBLE = 2, +NL80211_PMSR_FTM_REQ_ATTR_NUM_BURSTS_EXP = 3, +NL80211_PMSR_FTM_REQ_ATTR_BURST_PERIOD = 4, +NL80211_PMSR_FTM_REQ_ATTR_BURST_DURATION = 5, +NL80211_PMSR_FTM_REQ_ATTR_FTMS_PER_BURST = 6, +NL80211_PMSR_FTM_REQ_ATTR_NUM_FTMR_RETRIES = 7, +NL80211_PMSR_FTM_REQ_ATTR_REQUEST_LCI = 8, +NL80211_PMSR_FTM_REQ_ATTR_REQUEST_CIVICLOC = 9, +NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, +NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, +NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, +NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_failure_reasons { +NL80211_PMSR_FTM_FAILURE_UNSPECIFIED = 0, +NL80211_PMSR_FTM_FAILURE_NO_RESPONSE = 1, +NL80211_PMSR_FTM_FAILURE_REJECTED = 2, +NL80211_PMSR_FTM_FAILURE_WRONG_CHANNEL = 3, +NL80211_PMSR_FTM_FAILURE_PEER_NOT_CAPABLE = 4, +NL80211_PMSR_FTM_FAILURE_INVALID_TIMESTAMP = 5, +NL80211_PMSR_FTM_FAILURE_PEER_BUSY = 6, +NL80211_PMSR_FTM_FAILURE_BAD_CHANGED_PARAMS = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_resp { +__NL80211_PMSR_FTM_RESP_ATTR_INVALID = 0, +NL80211_PMSR_FTM_RESP_ATTR_FAIL_REASON = 1, +NL80211_PMSR_FTM_RESP_ATTR_BURST_INDEX = 2, +NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_ATTEMPTS = 3, +NL80211_PMSR_FTM_RESP_ATTR_NUM_FTMR_SUCCESSES = 4, +NL80211_PMSR_FTM_RESP_ATTR_BUSY_RETRY_TIME = 5, +NL80211_PMSR_FTM_RESP_ATTR_NUM_BURSTS_EXP = 6, +NL80211_PMSR_FTM_RESP_ATTR_BURST_DURATION = 7, +NL80211_PMSR_FTM_RESP_ATTR_FTMS_PER_BURST = 8, +NL80211_PMSR_FTM_RESP_ATTR_RSSI_AVG = 9, +NL80211_PMSR_FTM_RESP_ATTR_RSSI_SPREAD = 10, +NL80211_PMSR_FTM_RESP_ATTR_TX_RATE = 11, +NL80211_PMSR_FTM_RESP_ATTR_RX_RATE = 12, +NL80211_PMSR_FTM_RESP_ATTR_RTT_AVG = 13, +NL80211_PMSR_FTM_RESP_ATTR_RTT_VARIANCE = 14, +NL80211_PMSR_FTM_RESP_ATTR_RTT_SPREAD = 15, +NL80211_PMSR_FTM_RESP_ATTR_DIST_AVG = 16, +NL80211_PMSR_FTM_RESP_ATTR_DIST_VARIANCE = 17, +NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, +NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, +NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, +NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_obss_pd_attributes { +__NL80211_HE_OBSS_PD_ATTR_INVALID = 0, +NL80211_HE_OBSS_PD_ATTR_MIN_OFFSET = 1, +NL80211_HE_OBSS_PD_ATTR_MAX_OFFSET = 2, +NL80211_HE_OBSS_PD_ATTR_NON_SRG_MAX_OFFSET = 3, +NL80211_HE_OBSS_PD_ATTR_BSS_COLOR_BITMAP = 4, +NL80211_HE_OBSS_PD_ATTR_PARTIAL_BSSID_BITMAP = 5, +NL80211_HE_OBSS_PD_ATTR_SR_CTRL = 6, +__NL80211_HE_OBSS_PD_ATTR_LAST = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_bss_color_attributes { +__NL80211_HE_BSS_COLOR_ATTR_INVALID = 0, +NL80211_HE_BSS_COLOR_ATTR_COLOR = 1, +NL80211_HE_BSS_COLOR_ATTR_DISABLED = 2, +NL80211_HE_BSS_COLOR_ATTR_PARTIAL = 3, +__NL80211_HE_BSS_COLOR_ATTR_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_iftype_akm_attributes { +__NL80211_IFTYPE_AKM_ATTR_INVALID = 0, +NL80211_IFTYPE_AKM_ATTR_IFTYPES = 1, +NL80211_IFTYPE_AKM_ATTR_SUITES = 2, +__NL80211_IFTYPE_AKM_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_fils_discovery_attributes { +__NL80211_FILS_DISCOVERY_ATTR_INVALID = 0, +NL80211_FILS_DISCOVERY_ATTR_INT_MIN = 1, +NL80211_FILS_DISCOVERY_ATTR_INT_MAX = 2, +NL80211_FILS_DISCOVERY_ATTR_TMPL = 3, +__NL80211_FILS_DISCOVERY_ATTR_LAST = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_unsol_bcast_probe_resp_attributes { +__NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INVALID = 0, +NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_INT = 1, +NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_TMPL = 2, +__NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sae_pwe_mechanism { +NL80211_SAE_PWE_UNSPECIFIED = 0, +NL80211_SAE_PWE_HUNT_AND_PECK = 1, +NL80211_SAE_PWE_HASH_TO_ELEMENT = 2, +NL80211_SAE_PWE_BOTH = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sar_type { +NL80211_SAR_TYPE_POWER = 0, +NUM_NL80211_SAR_TYPE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sar_attrs { +__NL80211_SAR_ATTR_INVALID = 0, +NL80211_SAR_ATTR_TYPE = 1, +NL80211_SAR_ATTR_SPECS = 2, +__NL80211_SAR_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_sar_specs_attrs { +__NL80211_SAR_ATTR_SPECS_INVALID = 0, +NL80211_SAR_ATTR_SPECS_POWER = 1, +NL80211_SAR_ATTR_SPECS_RANGE_INDEX = 2, +NL80211_SAR_ATTR_SPECS_START_FREQ = 3, +NL80211_SAR_ATTR_SPECS_END_FREQ = 4, +__NL80211_SAR_ATTR_SPECS_LAST = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_mbssid_config_attributes { +__NL80211_MBSSID_CONFIG_ATTR_INVALID = 0, +NL80211_MBSSID_CONFIG_ATTR_MAX_INTERFACES = 1, +NL80211_MBSSID_CONFIG_ATTR_MAX_EMA_PROFILE_PERIODICITY = 2, +NL80211_MBSSID_CONFIG_ATTR_INDEX = 3, +NL80211_MBSSID_CONFIG_ATTR_TX_IFINDEX = 4, +NL80211_MBSSID_CONFIG_ATTR_EMA = 5, +NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID = 6, +__NL80211_MBSSID_CONFIG_ATTR_LAST = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_ap_settings_flags { +NL80211_AP_SETTINGS_EXTERNAL_AUTH_SUPPORT = 1, +NL80211_AP_SETTINGS_SA_QUERY_OFFLOAD_SUPPORT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wiphy_radio_attrs { +__NL80211_WIPHY_RADIO_ATTR_INVALID = 0, +NL80211_WIPHY_RADIO_ATTR_INDEX = 1, +NL80211_WIPHY_RADIO_ATTR_FREQ_RANGE = 2, +NL80211_WIPHY_RADIO_ATTR_INTERFACE_COMBINATION = 3, +NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK = 4, +__NL80211_WIPHY_RADIO_ATTR_LAST = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_wiphy_radio_freq_range { +__NL80211_WIPHY_RADIO_FREQ_ATTR_INVALID = 0, +NL80211_WIPHY_RADIO_FREQ_ATTR_START = 1, +NL80211_WIPHY_RADIO_FREQ_ATTR_END = 2, +__NL80211_WIPHY_RADIO_FREQ_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IFLA_UNSPEC = 0, +IFLA_ADDRESS = 1, +IFLA_BROADCAST = 2, +IFLA_IFNAME = 3, +IFLA_MTU = 4, +IFLA_LINK = 5, +IFLA_QDISC = 6, +IFLA_STATS = 7, +IFLA_COST = 8, +IFLA_PRIORITY = 9, +IFLA_MASTER = 10, +IFLA_WIRELESS = 11, +IFLA_PROTINFO = 12, +IFLA_TXQLEN = 13, +IFLA_MAP = 14, +IFLA_WEIGHT = 15, +IFLA_OPERSTATE = 16, +IFLA_LINKMODE = 17, +IFLA_LINKINFO = 18, +IFLA_NET_NS_PID = 19, +IFLA_IFALIAS = 20, +IFLA_NUM_VF = 21, +IFLA_VFINFO_LIST = 22, +IFLA_STATS64 = 23, +IFLA_VF_PORTS = 24, +IFLA_PORT_SELF = 25, +IFLA_AF_SPEC = 26, +IFLA_GROUP = 27, +IFLA_NET_NS_FD = 28, +IFLA_EXT_MASK = 29, +IFLA_PROMISCUITY = 30, +IFLA_NUM_TX_QUEUES = 31, +IFLA_NUM_RX_QUEUES = 32, +IFLA_CARRIER = 33, +IFLA_PHYS_PORT_ID = 34, +IFLA_CARRIER_CHANGES = 35, +IFLA_PHYS_SWITCH_ID = 36, +IFLA_LINK_NETNSID = 37, +IFLA_PHYS_PORT_NAME = 38, +IFLA_PROTO_DOWN = 39, +IFLA_GSO_MAX_SEGS = 40, +IFLA_GSO_MAX_SIZE = 41, +IFLA_PAD = 42, +IFLA_XDP = 43, +IFLA_EVENT = 44, +IFLA_NEW_NETNSID = 45, +IFLA_IF_NETNSID = 46, +IFLA_CARRIER_UP_COUNT = 47, +IFLA_CARRIER_DOWN_COUNT = 48, +IFLA_NEW_IFINDEX = 49, +IFLA_MIN_MTU = 50, +IFLA_MAX_MTU = 51, +IFLA_PROP_LIST = 52, +IFLA_ALT_IFNAME = 53, +IFLA_PERM_ADDRESS = 54, +IFLA_PROTO_DOWN_REASON = 55, +IFLA_PARENT_DEV_NAME = 56, +IFLA_PARENT_DEV_BUS_NAME = 57, +IFLA_GRO_MAX_SIZE = 58, +IFLA_TSO_MAX_SIZE = 59, +IFLA_TSO_MAX_SEGS = 60, +IFLA_ALLMULTI = 61, +IFLA_DEVLINK_PORT = 62, +IFLA_GSO_IPV4_MAX_SIZE = 63, +IFLA_GRO_IPV4_MAX_SIZE = 64, +IFLA_DPLL_PIN = 65, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +IFLA_NETNS_IMMUTABLE = 67, +__IFLA_MAX = 68, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { +IFLA_PROTO_DOWN_REASON_UNSPEC = 0, +IFLA_PROTO_DOWN_REASON_MASK = 1, +IFLA_PROTO_DOWN_REASON_VALUE = 2, +__IFLA_PROTO_DOWN_REASON_CNT = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IFLA_INET_UNSPEC = 0, +IFLA_INET_CONF = 1, +__IFLA_INET_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_5 { +IFLA_INET6_UNSPEC = 0, +IFLA_INET6_FLAGS = 1, +IFLA_INET6_CONF = 2, +IFLA_INET6_STATS = 3, +IFLA_INET6_MCAST = 4, +IFLA_INET6_CACHEINFO = 5, +IFLA_INET6_ICMP6STATS = 6, +IFLA_INET6_TOKEN = 7, +IFLA_INET6_ADDR_GEN_MODE = 8, +IFLA_INET6_RA_MTU = 9, +__IFLA_INET6_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum in6_addr_gen_mode { +IN6_ADDR_GEN_MODE_EUI64 = 0, +IN6_ADDR_GEN_MODE_NONE = 1, +IN6_ADDR_GEN_MODE_STABLE_PRIVACY = 2, +IN6_ADDR_GEN_MODE_RANDOM = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_6 { +IFLA_BR_UNSPEC = 0, +IFLA_BR_FORWARD_DELAY = 1, +IFLA_BR_HELLO_TIME = 2, +IFLA_BR_MAX_AGE = 3, +IFLA_BR_AGEING_TIME = 4, +IFLA_BR_STP_STATE = 5, +IFLA_BR_PRIORITY = 6, +IFLA_BR_VLAN_FILTERING = 7, +IFLA_BR_VLAN_PROTOCOL = 8, +IFLA_BR_GROUP_FWD_MASK = 9, +IFLA_BR_ROOT_ID = 10, +IFLA_BR_BRIDGE_ID = 11, +IFLA_BR_ROOT_PORT = 12, +IFLA_BR_ROOT_PATH_COST = 13, +IFLA_BR_TOPOLOGY_CHANGE = 14, +IFLA_BR_TOPOLOGY_CHANGE_DETECTED = 15, +IFLA_BR_HELLO_TIMER = 16, +IFLA_BR_TCN_TIMER = 17, +IFLA_BR_TOPOLOGY_CHANGE_TIMER = 18, +IFLA_BR_GC_TIMER = 19, +IFLA_BR_GROUP_ADDR = 20, +IFLA_BR_FDB_FLUSH = 21, +IFLA_BR_MCAST_ROUTER = 22, +IFLA_BR_MCAST_SNOOPING = 23, +IFLA_BR_MCAST_QUERY_USE_IFADDR = 24, +IFLA_BR_MCAST_QUERIER = 25, +IFLA_BR_MCAST_HASH_ELASTICITY = 26, +IFLA_BR_MCAST_HASH_MAX = 27, +IFLA_BR_MCAST_LAST_MEMBER_CNT = 28, +IFLA_BR_MCAST_STARTUP_QUERY_CNT = 29, +IFLA_BR_MCAST_LAST_MEMBER_INTVL = 30, +IFLA_BR_MCAST_MEMBERSHIP_INTVL = 31, +IFLA_BR_MCAST_QUERIER_INTVL = 32, +IFLA_BR_MCAST_QUERY_INTVL = 33, +IFLA_BR_MCAST_QUERY_RESPONSE_INTVL = 34, +IFLA_BR_MCAST_STARTUP_QUERY_INTVL = 35, +IFLA_BR_NF_CALL_IPTABLES = 36, +IFLA_BR_NF_CALL_IP6TABLES = 37, +IFLA_BR_NF_CALL_ARPTABLES = 38, +IFLA_BR_VLAN_DEFAULT_PVID = 39, +IFLA_BR_PAD = 40, +IFLA_BR_VLAN_STATS_ENABLED = 41, +IFLA_BR_MCAST_STATS_ENABLED = 42, +IFLA_BR_MCAST_IGMP_VERSION = 43, +IFLA_BR_MCAST_MLD_VERSION = 44, +IFLA_BR_VLAN_STATS_PER_PORT = 45, +IFLA_BR_MULTI_BOOLOPT = 46, +IFLA_BR_MCAST_QUERIER_STATE = 47, +IFLA_BR_FDB_N_LEARNED = 48, +IFLA_BR_FDB_MAX_LEARNED = 49, +__IFLA_BR_MAX = 50, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_7 { +BRIDGE_MODE_UNSPEC = 0, +BRIDGE_MODE_HAIRPIN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_8 { +IFLA_BRPORT_UNSPEC = 0, +IFLA_BRPORT_STATE = 1, +IFLA_BRPORT_PRIORITY = 2, +IFLA_BRPORT_COST = 3, +IFLA_BRPORT_MODE = 4, +IFLA_BRPORT_GUARD = 5, +IFLA_BRPORT_PROTECT = 6, +IFLA_BRPORT_FAST_LEAVE = 7, +IFLA_BRPORT_LEARNING = 8, +IFLA_BRPORT_UNICAST_FLOOD = 9, +IFLA_BRPORT_PROXYARP = 10, +IFLA_BRPORT_LEARNING_SYNC = 11, +IFLA_BRPORT_PROXYARP_WIFI = 12, +IFLA_BRPORT_ROOT_ID = 13, +IFLA_BRPORT_BRIDGE_ID = 14, +IFLA_BRPORT_DESIGNATED_PORT = 15, +IFLA_BRPORT_DESIGNATED_COST = 16, +IFLA_BRPORT_ID = 17, +IFLA_BRPORT_NO = 18, +IFLA_BRPORT_TOPOLOGY_CHANGE_ACK = 19, +IFLA_BRPORT_CONFIG_PENDING = 20, +IFLA_BRPORT_MESSAGE_AGE_TIMER = 21, +IFLA_BRPORT_FORWARD_DELAY_TIMER = 22, +IFLA_BRPORT_HOLD_TIMER = 23, +IFLA_BRPORT_FLUSH = 24, +IFLA_BRPORT_MULTICAST_ROUTER = 25, +IFLA_BRPORT_PAD = 26, +IFLA_BRPORT_MCAST_FLOOD = 27, +IFLA_BRPORT_MCAST_TO_UCAST = 28, +IFLA_BRPORT_VLAN_TUNNEL = 29, +IFLA_BRPORT_BCAST_FLOOD = 30, +IFLA_BRPORT_GROUP_FWD_MASK = 31, +IFLA_BRPORT_NEIGH_SUPPRESS = 32, +IFLA_BRPORT_ISOLATED = 33, +IFLA_BRPORT_BACKUP_PORT = 34, +IFLA_BRPORT_MRP_RING_OPEN = 35, +IFLA_BRPORT_MRP_IN_OPEN = 36, +IFLA_BRPORT_MCAST_EHT_HOSTS_LIMIT = 37, +IFLA_BRPORT_MCAST_EHT_HOSTS_CNT = 38, +IFLA_BRPORT_LOCKED = 39, +IFLA_BRPORT_MAB = 40, +IFLA_BRPORT_MCAST_N_GROUPS = 41, +IFLA_BRPORT_MCAST_MAX_GROUPS = 42, +IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, +IFLA_BRPORT_BACKUP_NHID = 44, +__IFLA_BRPORT_MAX = 45, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_9 { +IFLA_INFO_UNSPEC = 0, +IFLA_INFO_KIND = 1, +IFLA_INFO_DATA = 2, +IFLA_INFO_XSTATS = 3, +IFLA_INFO_SLAVE_KIND = 4, +IFLA_INFO_SLAVE_DATA = 5, +__IFLA_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_10 { +IFLA_VLAN_UNSPEC = 0, +IFLA_VLAN_ID = 1, +IFLA_VLAN_FLAGS = 2, +IFLA_VLAN_EGRESS_QOS = 3, +IFLA_VLAN_INGRESS_QOS = 4, +IFLA_VLAN_PROTOCOL = 5, +__IFLA_VLAN_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_11 { +IFLA_VLAN_QOS_UNSPEC = 0, +IFLA_VLAN_QOS_MAPPING = 1, +__IFLA_VLAN_QOS_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_12 { +IFLA_MACVLAN_UNSPEC = 0, +IFLA_MACVLAN_MODE = 1, +IFLA_MACVLAN_FLAGS = 2, +IFLA_MACVLAN_MACADDR_MODE = 3, +IFLA_MACVLAN_MACADDR = 4, +IFLA_MACVLAN_MACADDR_DATA = 5, +IFLA_MACVLAN_MACADDR_COUNT = 6, +IFLA_MACVLAN_BC_QUEUE_LEN = 7, +IFLA_MACVLAN_BC_QUEUE_LEN_USED = 8, +IFLA_MACVLAN_BC_CUTOFF = 9, +__IFLA_MACVLAN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_mode { +MACVLAN_MODE_PRIVATE = 1, +MACVLAN_MODE_VEPA = 2, +MACVLAN_MODE_BRIDGE = 4, +MACVLAN_MODE_PASSTHRU = 8, +MACVLAN_MODE_SOURCE = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macvlan_macaddr_mode { +MACVLAN_MACADDR_ADD = 0, +MACVLAN_MACADDR_DEL = 1, +MACVLAN_MACADDR_FLUSH = 2, +MACVLAN_MACADDR_SET = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_13 { +IFLA_VRF_UNSPEC = 0, +IFLA_VRF_TABLE = 1, +__IFLA_VRF_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_14 { +IFLA_VRF_PORT_UNSPEC = 0, +IFLA_VRF_PORT_TABLE = 1, +__IFLA_VRF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_15 { +IFLA_MACSEC_UNSPEC = 0, +IFLA_MACSEC_SCI = 1, +IFLA_MACSEC_PORT = 2, +IFLA_MACSEC_ICV_LEN = 3, +IFLA_MACSEC_CIPHER_SUITE = 4, +IFLA_MACSEC_WINDOW = 5, +IFLA_MACSEC_ENCODING_SA = 6, +IFLA_MACSEC_ENCRYPT = 7, +IFLA_MACSEC_PROTECT = 8, +IFLA_MACSEC_INC_SCI = 9, +IFLA_MACSEC_ES = 10, +IFLA_MACSEC_SCB = 11, +IFLA_MACSEC_REPLAY_PROTECT = 12, +IFLA_MACSEC_VALIDATION = 13, +IFLA_MACSEC_PAD = 14, +IFLA_MACSEC_OFFLOAD = 15, +__IFLA_MACSEC_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_16 { +IFLA_XFRM_UNSPEC = 0, +IFLA_XFRM_LINK = 1, +IFLA_XFRM_IF_ID = 2, +IFLA_XFRM_COLLECT_METADATA = 3, +__IFLA_XFRM_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_validation_type { +MACSEC_VALIDATE_DISABLED = 0, +MACSEC_VALIDATE_CHECK = 1, +MACSEC_VALIDATE_STRICT = 2, +__MACSEC_VALIDATE_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum macsec_offload { +MACSEC_OFFLOAD_OFF = 0, +MACSEC_OFFLOAD_PHY = 1, +MACSEC_OFFLOAD_MAC = 2, +__MACSEC_OFFLOAD_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_17 { +IFLA_IPVLAN_UNSPEC = 0, +IFLA_IPVLAN_MODE = 1, +IFLA_IPVLAN_FLAGS = 2, +__IFLA_IPVLAN_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ipvlan_mode { +IPVLAN_MODE_L2 = 0, +IPVLAN_MODE_L3 = 1, +IPVLAN_MODE_L3S = 2, +IPVLAN_MODE_MAX = 3, +} +#[repr(i32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_action { +NETKIT_NEXT = -1, +NETKIT_PASS = 0, +NETKIT_DROP = 2, +NETKIT_REDIRECT = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_mode { +NETKIT_L2 = 0, +NETKIT_L3 = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_18 { +IFLA_NETKIT_UNSPEC = 0, +IFLA_NETKIT_PEER_INFO = 1, +IFLA_NETKIT_PRIMARY = 2, +IFLA_NETKIT_POLICY = 3, +IFLA_NETKIT_PEER_POLICY = 4, +IFLA_NETKIT_MODE = 5, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +IFLA_NETKIT_HEADROOM = 8, +IFLA_NETKIT_TAILROOM = 9, +__IFLA_NETKIT_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_19 { +VNIFILTER_ENTRY_STATS_UNSPEC = 0, +VNIFILTER_ENTRY_STATS_RX_BYTES = 1, +VNIFILTER_ENTRY_STATS_RX_PKTS = 2, +VNIFILTER_ENTRY_STATS_RX_DROPS = 3, +VNIFILTER_ENTRY_STATS_RX_ERRORS = 4, +VNIFILTER_ENTRY_STATS_TX_BYTES = 5, +VNIFILTER_ENTRY_STATS_TX_PKTS = 6, +VNIFILTER_ENTRY_STATS_TX_DROPS = 7, +VNIFILTER_ENTRY_STATS_TX_ERRORS = 8, +VNIFILTER_ENTRY_STATS_PAD = 9, +__VNIFILTER_ENTRY_STATS_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_20 { +VXLAN_VNIFILTER_ENTRY_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY_START = 1, +VXLAN_VNIFILTER_ENTRY_END = 2, +VXLAN_VNIFILTER_ENTRY_GROUP = 3, +VXLAN_VNIFILTER_ENTRY_GROUP6 = 4, +VXLAN_VNIFILTER_ENTRY_STATS = 5, +__VXLAN_VNIFILTER_ENTRY_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_21 { +VXLAN_VNIFILTER_UNSPEC = 0, +VXLAN_VNIFILTER_ENTRY = 1, +__VXLAN_VNIFILTER_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_22 { +IFLA_VXLAN_UNSPEC = 0, +IFLA_VXLAN_ID = 1, +IFLA_VXLAN_GROUP = 2, +IFLA_VXLAN_LINK = 3, +IFLA_VXLAN_LOCAL = 4, +IFLA_VXLAN_TTL = 5, +IFLA_VXLAN_TOS = 6, +IFLA_VXLAN_LEARNING = 7, +IFLA_VXLAN_AGEING = 8, +IFLA_VXLAN_LIMIT = 9, +IFLA_VXLAN_PORT_RANGE = 10, +IFLA_VXLAN_PROXY = 11, +IFLA_VXLAN_RSC = 12, +IFLA_VXLAN_L2MISS = 13, +IFLA_VXLAN_L3MISS = 14, +IFLA_VXLAN_PORT = 15, +IFLA_VXLAN_GROUP6 = 16, +IFLA_VXLAN_LOCAL6 = 17, +IFLA_VXLAN_UDP_CSUM = 18, +IFLA_VXLAN_UDP_ZERO_CSUM6_TX = 19, +IFLA_VXLAN_UDP_ZERO_CSUM6_RX = 20, +IFLA_VXLAN_REMCSUM_TX = 21, +IFLA_VXLAN_REMCSUM_RX = 22, +IFLA_VXLAN_GBP = 23, +IFLA_VXLAN_REMCSUM_NOPARTIAL = 24, +IFLA_VXLAN_COLLECT_METADATA = 25, +IFLA_VXLAN_LABEL = 26, +IFLA_VXLAN_GPE = 27, +IFLA_VXLAN_TTL_INHERIT = 28, +IFLA_VXLAN_DF = 29, +IFLA_VXLAN_VNIFILTER = 30, +IFLA_VXLAN_LOCALBYPASS = 31, +IFLA_VXLAN_LABEL_POLICY = 32, +IFLA_VXLAN_RESERVED_BITS = 33, +__IFLA_VXLAN_MAX = 34, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_df { +VXLAN_DF_UNSET = 0, +VXLAN_DF_SET = 1, +VXLAN_DF_INHERIT = 2, +__VXLAN_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_vxlan_label_policy { +VXLAN_LABEL_FIXED = 0, +VXLAN_LABEL_INHERIT = 1, +__VXLAN_LABEL_END = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_23 { +IFLA_GENEVE_UNSPEC = 0, +IFLA_GENEVE_ID = 1, +IFLA_GENEVE_REMOTE = 2, +IFLA_GENEVE_TTL = 3, +IFLA_GENEVE_TOS = 4, +IFLA_GENEVE_PORT = 5, +IFLA_GENEVE_COLLECT_METADATA = 6, +IFLA_GENEVE_REMOTE6 = 7, +IFLA_GENEVE_UDP_CSUM = 8, +IFLA_GENEVE_UDP_ZERO_CSUM6_TX = 9, +IFLA_GENEVE_UDP_ZERO_CSUM6_RX = 10, +IFLA_GENEVE_LABEL = 11, +IFLA_GENEVE_TTL_INHERIT = 12, +IFLA_GENEVE_DF = 13, +IFLA_GENEVE_INNER_PROTO_INHERIT = 14, +IFLA_GENEVE_PORT_RANGE = 15, +__IFLA_GENEVE_MAX = 16, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_geneve_df { +GENEVE_DF_UNSET = 0, +GENEVE_DF_SET = 1, +GENEVE_DF_INHERIT = 2, +__GENEVE_DF_END = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_24 { +IFLA_BAREUDP_UNSPEC = 0, +IFLA_BAREUDP_PORT = 1, +IFLA_BAREUDP_ETHERTYPE = 2, +IFLA_BAREUDP_SRCPORT_MIN = 3, +IFLA_BAREUDP_MULTIPROTO_MODE = 4, +__IFLA_BAREUDP_MAX = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_25 { +IFLA_PPP_UNSPEC = 0, +IFLA_PPP_DEV_FD = 1, +__IFLA_PPP_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ifla_gtp_role { +GTP_ROLE_GGSN = 0, +GTP_ROLE_SGSN = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_26 { +IFLA_GTP_UNSPEC = 0, +IFLA_GTP_FD0 = 1, +IFLA_GTP_FD1 = 2, +IFLA_GTP_PDP_HASHSIZE = 3, +IFLA_GTP_ROLE = 4, +IFLA_GTP_CREATE_SOCKETS = 5, +IFLA_GTP_RESTART_COUNT = 6, +IFLA_GTP_LOCAL = 7, +IFLA_GTP_LOCAL6 = 8, +__IFLA_GTP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_27 { +IFLA_BOND_UNSPEC = 0, +IFLA_BOND_MODE = 1, +IFLA_BOND_ACTIVE_SLAVE = 2, +IFLA_BOND_MIIMON = 3, +IFLA_BOND_UPDELAY = 4, +IFLA_BOND_DOWNDELAY = 5, +IFLA_BOND_USE_CARRIER = 6, +IFLA_BOND_ARP_INTERVAL = 7, +IFLA_BOND_ARP_IP_TARGET = 8, +IFLA_BOND_ARP_VALIDATE = 9, +IFLA_BOND_ARP_ALL_TARGETS = 10, +IFLA_BOND_PRIMARY = 11, +IFLA_BOND_PRIMARY_RESELECT = 12, +IFLA_BOND_FAIL_OVER_MAC = 13, +IFLA_BOND_XMIT_HASH_POLICY = 14, +IFLA_BOND_RESEND_IGMP = 15, +IFLA_BOND_NUM_PEER_NOTIF = 16, +IFLA_BOND_ALL_SLAVES_ACTIVE = 17, +IFLA_BOND_MIN_LINKS = 18, +IFLA_BOND_LP_INTERVAL = 19, +IFLA_BOND_PACKETS_PER_SLAVE = 20, +IFLA_BOND_AD_LACP_RATE = 21, +IFLA_BOND_AD_SELECT = 22, +IFLA_BOND_AD_INFO = 23, +IFLA_BOND_AD_ACTOR_SYS_PRIO = 24, +IFLA_BOND_AD_USER_PORT_KEY = 25, +IFLA_BOND_AD_ACTOR_SYSTEM = 26, +IFLA_BOND_TLB_DYNAMIC_LB = 27, +IFLA_BOND_PEER_NOTIF_DELAY = 28, +IFLA_BOND_AD_LACP_ACTIVE = 29, +IFLA_BOND_MISSED_MAX = 30, +IFLA_BOND_NS_IP6_TARGET = 31, +IFLA_BOND_COUPLED_CONTROL = 32, +__IFLA_BOND_MAX = 33, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_28 { +IFLA_BOND_AD_INFO_UNSPEC = 0, +IFLA_BOND_AD_INFO_AGGREGATOR = 1, +IFLA_BOND_AD_INFO_NUM_PORTS = 2, +IFLA_BOND_AD_INFO_ACTOR_KEY = 3, +IFLA_BOND_AD_INFO_PARTNER_KEY = 4, +IFLA_BOND_AD_INFO_PARTNER_MAC = 5, +__IFLA_BOND_AD_INFO_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_29 { +IFLA_BOND_SLAVE_UNSPEC = 0, +IFLA_BOND_SLAVE_STATE = 1, +IFLA_BOND_SLAVE_MII_STATUS = 2, +IFLA_BOND_SLAVE_LINK_FAILURE_COUNT = 3, +IFLA_BOND_SLAVE_PERM_HWADDR = 4, +IFLA_BOND_SLAVE_QUEUE_ID = 5, +IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, +IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, +IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, +IFLA_BOND_SLAVE_PRIO = 9, +__IFLA_BOND_SLAVE_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_30 { +IFLA_VF_INFO_UNSPEC = 0, +IFLA_VF_INFO = 1, +__IFLA_VF_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_31 { +IFLA_VF_UNSPEC = 0, +IFLA_VF_MAC = 1, +IFLA_VF_VLAN = 2, +IFLA_VF_TX_RATE = 3, +IFLA_VF_SPOOFCHK = 4, +IFLA_VF_LINK_STATE = 5, +IFLA_VF_RATE = 6, +IFLA_VF_RSS_QUERY_EN = 7, +IFLA_VF_STATS = 8, +IFLA_VF_TRUST = 9, +IFLA_VF_IB_NODE_GUID = 10, +IFLA_VF_IB_PORT_GUID = 11, +IFLA_VF_VLAN_LIST = 12, +IFLA_VF_BROADCAST = 13, +__IFLA_VF_MAX = 14, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_32 { +IFLA_VF_VLAN_INFO_UNSPEC = 0, +IFLA_VF_VLAN_INFO = 1, +__IFLA_VF_VLAN_INFO_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_33 { +IFLA_VF_LINK_STATE_AUTO = 0, +IFLA_VF_LINK_STATE_ENABLE = 1, +IFLA_VF_LINK_STATE_DISABLE = 2, +__IFLA_VF_LINK_STATE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_34 { +IFLA_VF_STATS_RX_PACKETS = 0, +IFLA_VF_STATS_TX_PACKETS = 1, +IFLA_VF_STATS_RX_BYTES = 2, +IFLA_VF_STATS_TX_BYTES = 3, +IFLA_VF_STATS_BROADCAST = 4, +IFLA_VF_STATS_MULTICAST = 5, +IFLA_VF_STATS_PAD = 6, +IFLA_VF_STATS_RX_DROPPED = 7, +IFLA_VF_STATS_TX_DROPPED = 8, +__IFLA_VF_STATS_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_35 { +IFLA_VF_PORT_UNSPEC = 0, +IFLA_VF_PORT = 1, +__IFLA_VF_PORT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_36 { +IFLA_PORT_UNSPEC = 0, +IFLA_PORT_VF = 1, +IFLA_PORT_PROFILE = 2, +IFLA_PORT_VSI_TYPE = 3, +IFLA_PORT_INSTANCE_UUID = 4, +IFLA_PORT_HOST_UUID = 5, +IFLA_PORT_REQUEST = 6, +IFLA_PORT_RESPONSE = 7, +__IFLA_PORT_MAX = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_37 { +PORT_REQUEST_PREASSOCIATE = 0, +PORT_REQUEST_PREASSOCIATE_RR = 1, +PORT_REQUEST_ASSOCIATE = 2, +PORT_REQUEST_DISASSOCIATE = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_38 { +PORT_VDP_RESPONSE_SUCCESS = 0, +PORT_VDP_RESPONSE_INVALID_FORMAT = 1, +PORT_VDP_RESPONSE_INSUFFICIENT_RESOURCES = 2, +PORT_VDP_RESPONSE_UNUSED_VTID = 3, +PORT_VDP_RESPONSE_VTID_VIOLATION = 4, +PORT_VDP_RESPONSE_VTID_VERSION_VIOALTION = 5, +PORT_VDP_RESPONSE_OUT_OF_SYNC = 6, +PORT_PROFILE_RESPONSE_SUCCESS = 256, +PORT_PROFILE_RESPONSE_INPROGRESS = 257, +PORT_PROFILE_RESPONSE_INVALID = 258, +PORT_PROFILE_RESPONSE_BADSTATE = 259, +PORT_PROFILE_RESPONSE_INSUFFICIENT_RESOURCES = 260, +PORT_PROFILE_RESPONSE_ERROR = 261, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_39 { +IFLA_IPOIB_UNSPEC = 0, +IFLA_IPOIB_PKEY = 1, +IFLA_IPOIB_MODE = 2, +IFLA_IPOIB_UMCAST = 3, +__IFLA_IPOIB_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_40 { +IPOIB_MODE_DATAGRAM = 0, +IPOIB_MODE_CONNECTED = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_41 { +HSR_PROTOCOL_HSR = 0, +HSR_PROTOCOL_PRP = 1, +HSR_PROTOCOL_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_42 { +IFLA_HSR_UNSPEC = 0, +IFLA_HSR_SLAVE1 = 1, +IFLA_HSR_SLAVE2 = 2, +IFLA_HSR_MULTICAST_SPEC = 3, +IFLA_HSR_SUPERVISION_ADDR = 4, +IFLA_HSR_SEQ_NR = 5, +IFLA_HSR_VERSION = 6, +IFLA_HSR_PROTOCOL = 7, +IFLA_HSR_INTERLINK = 8, +__IFLA_HSR_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_43 { +IFLA_STATS_UNSPEC = 0, +IFLA_STATS_LINK_64 = 1, +IFLA_STATS_LINK_XSTATS = 2, +IFLA_STATS_LINK_XSTATS_SLAVE = 3, +IFLA_STATS_LINK_OFFLOAD_XSTATS = 4, +IFLA_STATS_AF_SPEC = 5, +__IFLA_STATS_MAX = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_44 { +IFLA_STATS_GETSET_UNSPEC = 0, +IFLA_STATS_GET_FILTERS = 1, +IFLA_STATS_SET_OFFLOAD_XSTATS_L3_STATS = 2, +__IFLA_STATS_GETSET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_45 { +LINK_XSTATS_TYPE_UNSPEC = 0, +LINK_XSTATS_TYPE_BRIDGE = 1, +LINK_XSTATS_TYPE_BOND = 2, +__LINK_XSTATS_TYPE_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_46 { +IFLA_OFFLOAD_XSTATS_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_CPU_HIT = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO = 2, +IFLA_OFFLOAD_XSTATS_L3_STATS = 3, +__IFLA_OFFLOAD_XSTATS_MAX = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_47 { +IFLA_OFFLOAD_XSTATS_HW_S_INFO_UNSPEC = 0, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_REQUEST = 1, +IFLA_OFFLOAD_XSTATS_HW_S_INFO_USED = 2, +__IFLA_OFFLOAD_XSTATS_HW_S_INFO_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_48 { +XDP_ATTACHED_NONE = 0, +XDP_ATTACHED_DRV = 1, +XDP_ATTACHED_SKB = 2, +XDP_ATTACHED_HW = 3, +XDP_ATTACHED_MULTI = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_49 { +IFLA_XDP_UNSPEC = 0, +IFLA_XDP_FD = 1, +IFLA_XDP_ATTACHED = 2, +IFLA_XDP_FLAGS = 3, +IFLA_XDP_PROG_ID = 4, +IFLA_XDP_DRV_PROG_ID = 5, +IFLA_XDP_SKB_PROG_ID = 6, +IFLA_XDP_HW_PROG_ID = 7, +IFLA_XDP_EXPECTED_FD = 8, +__IFLA_XDP_MAX = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_50 { +IFLA_EVENT_NONE = 0, +IFLA_EVENT_REBOOT = 1, +IFLA_EVENT_FEATURES = 2, +IFLA_EVENT_BONDING_FAILOVER = 3, +IFLA_EVENT_NOTIFY_PEERS = 4, +IFLA_EVENT_IGMP_RESEND = 5, +IFLA_EVENT_BONDING_OPTIONS = 6, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_51 { +IFLA_TUN_UNSPEC = 0, +IFLA_TUN_OWNER = 1, +IFLA_TUN_GROUP = 2, +IFLA_TUN_TYPE = 3, +IFLA_TUN_PI = 4, +IFLA_TUN_VNET_HDR = 5, +IFLA_TUN_PERSIST = 6, +IFLA_TUN_MULTI_QUEUE = 7, +IFLA_TUN_NUM_QUEUES = 8, +IFLA_TUN_NUM_DISABLED_QUEUES = 9, +__IFLA_TUN_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_52 { +IFLA_RMNET_UNSPEC = 0, +IFLA_RMNET_MUX_ID = 1, +IFLA_RMNET_FLAGS = 2, +__IFLA_RMNET_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_53 { +IFLA_MCTP_UNSPEC = 0, +IFLA_MCTP_NET = 1, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_54 { +IFLA_DSA_UNSPEC = 0, +IFLA_DSA_CONDUIT = 1, +__IFLA_DSA_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum ovpn_mode { +OVPN_MODE_P2P = 0, +OVPN_MODE_MP = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_55 { +IFLA_OVPN_UNSPEC = 0, +IFLA_OVPN_MODE = 1, +__IFLA_OVPN_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_56 { +IFA_UNSPEC = 0, +IFA_ADDRESS = 1, +IFA_LOCAL = 2, +IFA_LABEL = 3, +IFA_BROADCAST = 4, +IFA_ANYCAST = 5, +IFA_CACHEINFO = 6, +IFA_MULTICAST = 7, +IFA_FLAGS = 8, +IFA_RT_PRIORITY = 9, +IFA_TARGET_NETNSID = 10, +IFA_PROTO = 11, +__IFA_MAX = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_57 { +NDA_UNSPEC = 0, +NDA_DST = 1, +NDA_LLADDR = 2, +NDA_CACHEINFO = 3, +NDA_PROBES = 4, +NDA_VLAN = 5, +NDA_PORT = 6, +NDA_VNI = 7, +NDA_IFINDEX = 8, +NDA_MASTER = 9, +NDA_LINK_NETNSID = 10, +NDA_SRC_VNI = 11, +NDA_PROTOCOL = 12, +NDA_NH_ID = 13, +NDA_FDB_EXT_ATTRS = 14, +NDA_FLAGS_EXT = 15, +NDA_NDM_STATE_MASK = 16, +NDA_NDM_FLAGS_MASK = 17, +__NDA_MAX = 18, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_58 { +NDTPA_UNSPEC = 0, +NDTPA_IFINDEX = 1, +NDTPA_REFCNT = 2, +NDTPA_REACHABLE_TIME = 3, +NDTPA_BASE_REACHABLE_TIME = 4, +NDTPA_RETRANS_TIME = 5, +NDTPA_GC_STALETIME = 6, +NDTPA_DELAY_PROBE_TIME = 7, +NDTPA_QUEUE_LEN = 8, +NDTPA_APP_PROBES = 9, +NDTPA_UCAST_PROBES = 10, +NDTPA_MCAST_PROBES = 11, +NDTPA_ANYCAST_DELAY = 12, +NDTPA_PROXY_DELAY = 13, +NDTPA_PROXY_QLEN = 14, +NDTPA_LOCKTIME = 15, +NDTPA_QUEUE_LENBYTES = 16, +NDTPA_MCAST_REPROBES = 17, +NDTPA_PAD = 18, +NDTPA_INTERVAL_PROBE_TIME_MS = 19, +__NDTPA_MAX = 20, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_59 { +NDTA_UNSPEC = 0, +NDTA_NAME = 1, +NDTA_THRESH1 = 2, +NDTA_THRESH2 = 3, +NDTA_THRESH3 = 4, +NDTA_CONFIG = 5, +NDTA_PARMS = 6, +NDTA_STATS = 7, +NDTA_GC_INTERVAL = 8, +NDTA_PAD = 9, +__NDTA_MAX = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_60 { +FDB_NOTIFY_BIT = 1, +FDB_NOTIFY_INACTIVE_BIT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_61 { +NFEA_UNSPEC = 0, +NFEA_ACTIVITY_NOTIFY = 1, +NFEA_DONT_REFRESH = 2, +__NFEA_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_62 { +RTM_BASE = 16, +RTM_DELLINK = 17, +RTM_GETLINK = 18, +RTM_SETLINK = 19, +RTM_NEWADDR = 20, +RTM_DELADDR = 21, +RTM_GETADDR = 22, +RTM_NEWROUTE = 24, +RTM_DELROUTE = 25, +RTM_GETROUTE = 26, +RTM_NEWNEIGH = 28, +RTM_DELNEIGH = 29, +RTM_GETNEIGH = 30, +RTM_NEWRULE = 32, +RTM_DELRULE = 33, +RTM_GETRULE = 34, +RTM_NEWQDISC = 36, +RTM_DELQDISC = 37, +RTM_GETQDISC = 38, +RTM_NEWTCLASS = 40, +RTM_DELTCLASS = 41, +RTM_GETTCLASS = 42, +RTM_NEWTFILTER = 44, +RTM_DELTFILTER = 45, +RTM_GETTFILTER = 46, +RTM_NEWACTION = 48, +RTM_DELACTION = 49, +RTM_GETACTION = 50, +RTM_NEWPREFIX = 52, +RTM_NEWMULTICAST = 56, +RTM_DELMULTICAST = 57, +RTM_GETMULTICAST = 58, +RTM_NEWANYCAST = 60, +RTM_DELANYCAST = 61, +RTM_GETANYCAST = 62, +RTM_NEWNEIGHTBL = 64, +RTM_GETNEIGHTBL = 66, +RTM_SETNEIGHTBL = 67, +RTM_NEWNDUSEROPT = 68, +RTM_NEWADDRLABEL = 72, +RTM_DELADDRLABEL = 73, +RTM_GETADDRLABEL = 74, +RTM_GETDCB = 78, +RTM_SETDCB = 79, +RTM_NEWNETCONF = 80, +RTM_DELNETCONF = 81, +RTM_GETNETCONF = 82, +RTM_NEWMDB = 84, +RTM_DELMDB = 85, +RTM_GETMDB = 86, +RTM_NEWNSID = 88, +RTM_DELNSID = 89, +RTM_GETNSID = 90, +RTM_NEWSTATS = 92, +RTM_GETSTATS = 94, +RTM_SETSTATS = 95, +RTM_NEWCACHEREPORT = 96, +RTM_NEWCHAIN = 100, +RTM_DELCHAIN = 101, +RTM_GETCHAIN = 102, +RTM_NEWNEXTHOP = 104, +RTM_DELNEXTHOP = 105, +RTM_GETNEXTHOP = 106, +RTM_NEWLINKPROP = 108, +RTM_DELLINKPROP = 109, +RTM_GETLINKPROP = 110, +RTM_NEWVLAN = 112, +RTM_DELVLAN = 113, +RTM_GETVLAN = 114, +RTM_NEWNEXTHOPBUCKET = 116, +RTM_DELNEXTHOPBUCKET = 117, +RTM_GETNEXTHOPBUCKET = 118, +RTM_NEWTUNNEL = 120, +RTM_DELTUNNEL = 121, +RTM_GETTUNNEL = 122, +__RTM_MAX = 123, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_63 { +RTN_UNSPEC = 0, +RTN_UNICAST = 1, +RTN_LOCAL = 2, +RTN_BROADCAST = 3, +RTN_ANYCAST = 4, +RTN_MULTICAST = 5, +RTN_BLACKHOLE = 6, +RTN_UNREACHABLE = 7, +RTN_PROHIBIT = 8, +RTN_THROW = 9, +RTN_NAT = 10, +RTN_XRESOLVE = 11, +__RTN_MAX = 12, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum rt_scope_t { +RT_SCOPE_UNIVERSE = 0, +RT_SCOPE_SITE = 200, +RT_SCOPE_LINK = 253, +RT_SCOPE_HOST = 254, +RT_SCOPE_NOWHERE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum rt_class_t { +RT_TABLE_UNSPEC = 0, +RT_TABLE_COMPAT = 252, +RT_TABLE_DEFAULT = 253, +RT_TABLE_MAIN = 254, +RT_TABLE_LOCAL = 255, +RT_TABLE_MAX = 4294967295, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum rtattr_type_t { +RTA_UNSPEC = 0, +RTA_DST = 1, +RTA_SRC = 2, +RTA_IIF = 3, +RTA_OIF = 4, +RTA_GATEWAY = 5, +RTA_PRIORITY = 6, +RTA_PREFSRC = 7, +RTA_METRICS = 8, +RTA_MULTIPATH = 9, +RTA_PROTOINFO = 10, +RTA_FLOW = 11, +RTA_CACHEINFO = 12, +RTA_SESSION = 13, +RTA_MP_ALGO = 14, +RTA_TABLE = 15, +RTA_MARK = 16, +RTA_MFC_STATS = 17, +RTA_VIA = 18, +RTA_NEWDST = 19, +RTA_PREF = 20, +RTA_ENCAP_TYPE = 21, +RTA_ENCAP = 22, +RTA_EXPIRES = 23, +RTA_PAD = 24, +RTA_UID = 25, +RTA_TTL_PROPAGATE = 26, +RTA_IP_PROTO = 27, +RTA_SPORT = 28, +RTA_DPORT = 29, +RTA_NH_ID = 30, +RTA_FLOWLABEL = 31, +__RTA_MAX = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_64 { +RTAX_UNSPEC = 0, +RTAX_LOCK = 1, +RTAX_MTU = 2, +RTAX_WINDOW = 3, +RTAX_RTT = 4, +RTAX_RTTVAR = 5, +RTAX_SSTHRESH = 6, +RTAX_CWND = 7, +RTAX_ADVMSS = 8, +RTAX_REORDERING = 9, +RTAX_HOPLIMIT = 10, +RTAX_INITCWND = 11, +RTAX_FEATURES = 12, +RTAX_RTO_MIN = 13, +RTAX_INITRWND = 14, +RTAX_QUICKACK = 15, +RTAX_CC_ALGO = 16, +RTAX_FASTOPEN_NO_COOKIE = 17, +__RTAX_MAX = 18, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_65 { +PREFIX_UNSPEC = 0, +PREFIX_ADDRESS = 1, +PREFIX_CACHEINFO = 2, +__PREFIX_MAX = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_66 { +TCA_UNSPEC = 0, +TCA_KIND = 1, +TCA_OPTIONS = 2, +TCA_STATS = 3, +TCA_XSTATS = 4, +TCA_RATE = 5, +TCA_FCNT = 6, +TCA_STATS2 = 7, +TCA_STAB = 8, +TCA_PAD = 9, +TCA_DUMP_INVISIBLE = 10, +TCA_CHAIN = 11, +TCA_HW_OFFLOAD = 12, +TCA_INGRESS_BLOCK = 13, +TCA_EGRESS_BLOCK = 14, +TCA_DUMP_FLAGS = 15, +TCA_EXT_WARN_MSG = 16, +__TCA_MAX = 17, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_67 { +NDUSEROPT_UNSPEC = 0, +NDUSEROPT_SRCADDR = 1, +__NDUSEROPT_MAX = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum rtnetlink_groups { +RTNLGRP_NONE = 0, +RTNLGRP_LINK = 1, +RTNLGRP_NOTIFY = 2, +RTNLGRP_NEIGH = 3, +RTNLGRP_TC = 4, +RTNLGRP_IPV4_IFADDR = 5, +RTNLGRP_IPV4_MROUTE = 6, +RTNLGRP_IPV4_ROUTE = 7, +RTNLGRP_IPV4_RULE = 8, +RTNLGRP_IPV6_IFADDR = 9, +RTNLGRP_IPV6_MROUTE = 10, +RTNLGRP_IPV6_ROUTE = 11, +RTNLGRP_IPV6_IFINFO = 12, +RTNLGRP_DECnet_IFADDR = 13, +RTNLGRP_NOP2 = 14, +RTNLGRP_DECnet_ROUTE = 15, +RTNLGRP_DECnet_RULE = 16, +RTNLGRP_NOP4 = 17, +RTNLGRP_IPV6_PREFIX = 18, +RTNLGRP_IPV6_RULE = 19, +RTNLGRP_ND_USEROPT = 20, +RTNLGRP_PHONET_IFADDR = 21, +RTNLGRP_PHONET_ROUTE = 22, +RTNLGRP_DCB = 23, +RTNLGRP_IPV4_NETCONF = 24, +RTNLGRP_IPV6_NETCONF = 25, +RTNLGRP_MDB = 26, +RTNLGRP_MPLS_ROUTE = 27, +RTNLGRP_NSID = 28, +RTNLGRP_MPLS_NETCONF = 29, +RTNLGRP_IPV4_MROUTE_R = 30, +RTNLGRP_IPV6_MROUTE_R = 31, +RTNLGRP_NEXTHOP = 32, +RTNLGRP_BRVLAN = 33, +RTNLGRP_MCTP_IFADDR = 34, +RTNLGRP_TUNNEL = 35, +RTNLGRP_STATS = 36, +RTNLGRP_IPV4_MCADDR = 37, +RTNLGRP_IPV6_MCADDR = 38, +RTNLGRP_IPV6_ACADDR = 39, +__RTNLGRP_MAX = 40, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_68 { +TCA_ROOT_UNSPEC = 0, +TCA_ROOT_TAB = 1, +TCA_ROOT_FLAGS = 2, +TCA_ROOT_COUNT = 3, +TCA_ROOT_TIME_DELTA = 4, +TCA_ROOT_EXT_WARN_MSG = 5, +__TCA_ROOT_MAX = 6, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union __kernel_sockaddr_storage__bindgen_ty_1 { +pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1, +pub __align: *mut crate::ctypes::c_void, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union rta_session__bindgen_ty_1 { +pub ports: rta_session__bindgen_ty_1__bindgen_ty_1, +pub icmpt: rta_session__bindgen_ty_1__bindgen_ty_2, +pub spi: __u32, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} +impl nlmsgerr_attrs { +pub const NLMSGERR_ATTR_MAX: nlmsgerr_attrs = nlmsgerr_attrs::NLMSGERR_ATTR_MISS_NEST; +} +impl netlink_policy_type_attr { +pub const NL_POLICY_TYPE_ATTR_MAX: netlink_policy_type_attr = netlink_policy_type_attr::NL_POLICY_TYPE_ATTR_MASK; +} +impl nl80211_commands { +pub const NL80211_CMD_NEW_BEACON: nl80211_commands = nl80211_commands::NL80211_CMD_START_AP; +} +impl nl80211_commands { +pub const NL80211_CMD_DEL_BEACON: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_AP; +} +impl nl80211_commands { +pub const NL80211_CMD_REGISTER_ACTION: nl80211_commands = nl80211_commands::NL80211_CMD_REGISTER_FRAME; +} +impl nl80211_commands { +pub const NL80211_CMD_ACTION: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME; +} +impl nl80211_commands { +pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; +} +impl nl80211_commands { +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +} +impl nl80211_attrs { +pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; +} +impl nl80211_attrs { +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS; +} +impl nl80211_iftype { +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +} +impl nl80211_sta_flags { +pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; +} +impl nl80211_rate_info { +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +} +impl nl80211_sta_bss_param { +pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; +} +impl nl80211_sta_info { +pub const NL80211_STA_INFO_MAX: nl80211_sta_info = nl80211_sta_info::NL80211_STA_INFO_CONNECTED_TO_AS; +} +impl nl80211_tid_stats { +pub const NL80211_TID_STATS_MAX: nl80211_tid_stats = nl80211_tid_stats::NL80211_TID_STATS_TXQ_STATS; +} +impl nl80211_txq_stats { +pub const NL80211_TXQ_STATS_MAX: nl80211_txq_stats = nl80211_txq_stats::NL80211_TXQ_STATS_MAX_FLOWS; +} +impl nl80211_mpath_info { +pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; +} +impl nl80211_band_iftype_attr { +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +} +impl nl80211_band_attr { +pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; +} +impl nl80211_wmm_rule { +pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; +} +impl nl80211_frequency_attr { +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +} +impl nl80211_bitrate_attr { +pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; +} +impl nl80211_reg_rule_attr { +pub const NL80211_REG_RULE_ATTR_MAX: nl80211_reg_rule_attr = nl80211_reg_rule_attr::NL80211_ATTR_POWER_RULE_PSD; +} +impl nl80211_sched_scan_match_attr { +pub const NL80211_SCHED_SCAN_MATCH_ATTR_MAX: nl80211_sched_scan_match_attr = nl80211_sched_scan_match_attr::NL80211_SCHED_SCAN_MATCH_PER_BAND_RSSI; +} +impl nl80211_survey_info { +pub const NL80211_SURVEY_INFO_MAX: nl80211_survey_info = nl80211_survey_info::NL80211_SURVEY_INFO_FREQUENCY_OFFSET; +} +impl nl80211_mntr_flags { +pub const NL80211_MNTR_FLAG_MAX: nl80211_mntr_flags = nl80211_mntr_flags::NL80211_MNTR_FLAG_SKIP_TX; +} +impl nl80211_mesh_power_mode { +pub const NL80211_MESH_POWER_MAX: nl80211_mesh_power_mode = nl80211_mesh_power_mode::NL80211_MESH_POWER_DEEP_SLEEP; +} +impl nl80211_meshconf_params { +pub const NL80211_MESHCONF_ATTR_MAX: nl80211_meshconf_params = nl80211_meshconf_params::NL80211_MESHCONF_CONNECTED_TO_AS; +} +impl nl80211_mesh_setup_params { +pub const NL80211_MESH_SETUP_ATTR_MAX: nl80211_mesh_setup_params = nl80211_mesh_setup_params::NL80211_MESH_SETUP_AUTH_PROTOCOL; +} +impl nl80211_txq_attr { +pub const NL80211_TXQ_ATTR_MAX: nl80211_txq_attr = nl80211_txq_attr::NL80211_TXQ_ATTR_AIFS; +} +impl nl80211_bss { +pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; +} +impl nl80211_auth_type { +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +} +impl nl80211_auth_type { +pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; +} +impl nl80211_key_attributes { +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +} +impl nl80211_tx_rate_attributes { +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +} +impl nl80211_attr_cqm { +pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; +} +impl nl80211_tid_config_attr { +pub const NL80211_TID_CONFIG_ATTR_MAX: nl80211_tid_config_attr = nl80211_tid_config_attr::NL80211_TID_CONFIG_ATTR_TX_RATE; +} +impl nl80211_packet_pattern_attr { +pub const MAX_NL80211_PKTPAT: nl80211_packet_pattern_attr = nl80211_packet_pattern_attr::NL80211_PKTPAT_OFFSET; +} +impl nl80211_wowlan_triggers { +pub const MAX_NL80211_WOWLAN_TRIG: nl80211_wowlan_triggers = nl80211_wowlan_triggers::NL80211_WOWLAN_TRIG_UNPROTECTED_DEAUTH_DISASSOC; +} +impl nl80211_wowlan_tcp_attrs { +pub const MAX_NL80211_WOWLAN_TCP: nl80211_wowlan_tcp_attrs = nl80211_wowlan_tcp_attrs::NL80211_WOWLAN_TCP_WAKE_MASK; +} +impl nl80211_attr_coalesce_rule { +pub const NL80211_ATTR_COALESCE_RULE_MAX: nl80211_attr_coalesce_rule = nl80211_attr_coalesce_rule::NL80211_ATTR_COALESCE_RULE_PKT_PATTERN; +} +impl nl80211_iface_limit_attrs { +pub const MAX_NL80211_IFACE_LIMIT: nl80211_iface_limit_attrs = nl80211_iface_limit_attrs::NL80211_IFACE_LIMIT_TYPES; +} +impl nl80211_if_combination_attrs { +pub const MAX_NL80211_IFACE_COMB: nl80211_if_combination_attrs = nl80211_if_combination_attrs::NL80211_IFACE_COMB_BI_MIN_GCD; +} +impl nl80211_plink_state { +pub const MAX_NL80211_PLINK_STATES: nl80211_plink_state = nl80211_plink_state::NL80211_PLINK_BLOCKED; +} +impl nl80211_rekey_data { +pub const MAX_NL80211_REKEY_DATA: nl80211_rekey_data = nl80211_rekey_data::NL80211_REKEY_DATA_AKM; +} +impl nl80211_sta_wme_attr { +pub const NL80211_STA_WME_MAX: nl80211_sta_wme_attr = nl80211_sta_wme_attr::NL80211_STA_WME_MAX_SP; +} +impl nl80211_pmksa_candidate_attr { +pub const MAX_NL80211_PMKSA_CANDIDATE: nl80211_pmksa_candidate_attr = nl80211_pmksa_candidate_attr::NL80211_PMKSA_CANDIDATE_PREAUTH; +} +impl nl80211_ext_feature_index { +pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; +} +impl nl80211_ext_feature_index { +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +} +impl nl80211_smps_mode { +pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; +} +impl nl80211_sched_scan_plan { +pub const NL80211_SCHED_SCAN_PLAN_MAX: nl80211_sched_scan_plan = nl80211_sched_scan_plan::NL80211_SCHED_SCAN_PLAN_ITERATIONS; +} +impl nl80211_bss_select_attr { +pub const NL80211_BSS_SELECT_ATTR_MAX: nl80211_bss_select_attr = nl80211_bss_select_attr::NL80211_BSS_SELECT_ATTR_RSSI_ADJUST; +} +impl nl80211_nan_function_type { +pub const NL80211_NAN_FUNC_MAX_TYPE: nl80211_nan_function_type = nl80211_nan_function_type::NL80211_NAN_FUNC_FOLLOW_UP; +} +impl nl80211_nan_func_attributes { +pub const NL80211_NAN_FUNC_ATTR_MAX: nl80211_nan_func_attributes = nl80211_nan_func_attributes::NL80211_NAN_FUNC_TERM_REASON; +} +impl nl80211_nan_srf_attributes { +pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf_attributes::NL80211_NAN_SRF_MAC_ADDRS; +} +impl nl80211_nan_match_attributes { +pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; +} +impl nl80211_ftm_responder_attributes { +pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; +} +impl nl80211_ftm_responder_stats { +pub const NL80211_FTM_STATS_MAX: nl80211_ftm_responder_stats = nl80211_ftm_responder_stats::NL80211_FTM_STATS_PAD; +} +impl nl80211_peer_measurement_type { +pub const NL80211_PMSR_TYPE_MAX: nl80211_peer_measurement_type = nl80211_peer_measurement_type::NL80211_PMSR_TYPE_FTM; +} +impl nl80211_peer_measurement_req { +pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer_measurement_req::NL80211_PMSR_REQ_ATTR_GET_AP_TSF; +} +impl nl80211_peer_measurement_resp { +pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; +} +impl nl80211_peer_measurement_peer_attrs { +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +} +impl nl80211_peer_measurement_attrs { +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +} +impl nl80211_peer_measurement_ftm_capa { +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +} +impl nl80211_peer_measurement_ftm_req { +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +} +impl nl80211_peer_measurement_ftm_resp { +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +} +impl nl80211_obss_pd_attributes { +pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; +} +impl nl80211_bss_color_attributes { +pub const NL80211_HE_BSS_COLOR_ATTR_MAX: nl80211_bss_color_attributes = nl80211_bss_color_attributes::NL80211_HE_BSS_COLOR_ATTR_PARTIAL; +} +impl nl80211_iftype_akm_attributes { +pub const NL80211_IFTYPE_AKM_ATTR_MAX: nl80211_iftype_akm_attributes = nl80211_iftype_akm_attributes::NL80211_IFTYPE_AKM_ATTR_SUITES; +} +impl nl80211_fils_discovery_attributes { +pub const NL80211_FILS_DISCOVERY_ATTR_MAX: nl80211_fils_discovery_attributes = nl80211_fils_discovery_attributes::NL80211_FILS_DISCOVERY_ATTR_TMPL; +} +impl nl80211_unsol_bcast_probe_resp_attributes { +pub const NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_MAX: nl80211_unsol_bcast_probe_resp_attributes = nl80211_unsol_bcast_probe_resp_attributes::NL80211_UNSOL_BCAST_PROBE_RESP_ATTR_TMPL; +} +impl nl80211_sar_attrs { +pub const NL80211_SAR_ATTR_MAX: nl80211_sar_attrs = nl80211_sar_attrs::NL80211_SAR_ATTR_SPECS; +} +impl nl80211_sar_specs_attrs { +pub const NL80211_SAR_ATTR_SPECS_MAX: nl80211_sar_specs_attrs = nl80211_sar_specs_attrs::NL80211_SAR_ATTR_SPECS_END_FREQ; +} +impl nl80211_mbssid_config_attributes { +pub const NL80211_MBSSID_CONFIG_ATTR_MAX: nl80211_mbssid_config_attributes = nl80211_mbssid_config_attributes::NL80211_MBSSID_CONFIG_ATTR_TX_LINK_ID; +} +impl nl80211_wiphy_radio_attrs { +pub const NL80211_WIPHY_RADIO_ATTR_MAX: nl80211_wiphy_radio_attrs = nl80211_wiphy_radio_attrs::NL80211_WIPHY_RADIO_ATTR_ANTENNA_MASK; +} +impl nl80211_wiphy_radio_freq_range { +pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl80211_wiphy_radio_freq_range::NL80211_WIPHY_RADIO_FREQ_ATTR_END; +} +impl macsec_validation_type { +pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; +} +impl macsec_offload { +pub const MACSEC_OFFLOAD_MAX: macsec_offload = macsec_offload::MACSEC_OFFLOAD_MAC; +} +impl ifla_vxlan_df { +pub const VXLAN_DF_MAX: ifla_vxlan_df = ifla_vxlan_df::VXLAN_DF_INHERIT; +} +impl ifla_vxlan_label_policy { +pub const VXLAN_LABEL_MAX: ifla_vxlan_label_policy = ifla_vxlan_label_policy::VXLAN_LABEL_INHERIT; +} +impl ifla_geneve_df { +pub const GENEVE_DF_MAX: ifla_geneve_df = ifla_geneve_df::GENEVE_DF_INHERIT; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/prctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/prctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..3936715f62831daf2d644db4a21590bb42ad9ba9 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/prctl.rs @@ -0,0 +1,271 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_longlong; +pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct prctl_mm_map { +pub start_code: __u64, +pub end_code: __u64, +pub start_data: __u64, +pub end_data: __u64, +pub start_brk: __u64, +pub brk: __u64, +pub start_stack: __u64, +pub arg_start: __u64, +pub arg_end: __u64, +pub env_start: __u64, +pub env_end: __u64, +pub auxv: *mut __u64, +pub auxv_size: __u32, +pub exe_fd: __u32, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const PR_SET_PDEATHSIG: u32 = 1; +pub const PR_GET_PDEATHSIG: u32 = 2; +pub const PR_GET_DUMPABLE: u32 = 3; +pub const PR_SET_DUMPABLE: u32 = 4; +pub const PR_GET_UNALIGN: u32 = 5; +pub const PR_SET_UNALIGN: u32 = 6; +pub const PR_UNALIGN_NOPRINT: u32 = 1; +pub const PR_UNALIGN_SIGBUS: u32 = 2; +pub const PR_GET_KEEPCAPS: u32 = 7; +pub const PR_SET_KEEPCAPS: u32 = 8; +pub const PR_GET_FPEMU: u32 = 9; +pub const PR_SET_FPEMU: u32 = 10; +pub const PR_FPEMU_NOPRINT: u32 = 1; +pub const PR_FPEMU_SIGFPE: u32 = 2; +pub const PR_GET_FPEXC: u32 = 11; +pub const PR_SET_FPEXC: u32 = 12; +pub const PR_FP_EXC_SW_ENABLE: u32 = 128; +pub const PR_FP_EXC_DIV: u32 = 65536; +pub const PR_FP_EXC_OVF: u32 = 131072; +pub const PR_FP_EXC_UND: u32 = 262144; +pub const PR_FP_EXC_RES: u32 = 524288; +pub const PR_FP_EXC_INV: u32 = 1048576; +pub const PR_FP_EXC_DISABLED: u32 = 0; +pub const PR_FP_EXC_NONRECOV: u32 = 1; +pub const PR_FP_EXC_ASYNC: u32 = 2; +pub const PR_FP_EXC_PRECISE: u32 = 3; +pub const PR_GET_TIMING: u32 = 13; +pub const PR_SET_TIMING: u32 = 14; +pub const PR_TIMING_STATISTICAL: u32 = 0; +pub const PR_TIMING_TIMESTAMP: u32 = 1; +pub const PR_SET_NAME: u32 = 15; +pub const PR_GET_NAME: u32 = 16; +pub const PR_GET_ENDIAN: u32 = 19; +pub const PR_SET_ENDIAN: u32 = 20; +pub const PR_ENDIAN_BIG: u32 = 0; +pub const PR_ENDIAN_LITTLE: u32 = 1; +pub const PR_ENDIAN_PPC_LITTLE: u32 = 2; +pub const PR_GET_SECCOMP: u32 = 21; +pub const PR_SET_SECCOMP: u32 = 22; +pub const PR_CAPBSET_READ: u32 = 23; +pub const PR_CAPBSET_DROP: u32 = 24; +pub const PR_GET_TSC: u32 = 25; +pub const PR_SET_TSC: u32 = 26; +pub const PR_TSC_ENABLE: u32 = 1; +pub const PR_TSC_SIGSEGV: u32 = 2; +pub const PR_GET_SECUREBITS: u32 = 27; +pub const PR_SET_SECUREBITS: u32 = 28; +pub const PR_SET_TIMERSLACK: u32 = 29; +pub const PR_GET_TIMERSLACK: u32 = 30; +pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31; +pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32; +pub const PR_MCE_KILL: u32 = 33; +pub const PR_MCE_KILL_CLEAR: u32 = 0; +pub const PR_MCE_KILL_SET: u32 = 1; +pub const PR_MCE_KILL_LATE: u32 = 0; +pub const PR_MCE_KILL_EARLY: u32 = 1; +pub const PR_MCE_KILL_DEFAULT: u32 = 2; +pub const PR_MCE_KILL_GET: u32 = 34; +pub const PR_SET_MM: u32 = 35; +pub const PR_SET_MM_START_CODE: u32 = 1; +pub const PR_SET_MM_END_CODE: u32 = 2; +pub const PR_SET_MM_START_DATA: u32 = 3; +pub const PR_SET_MM_END_DATA: u32 = 4; +pub const PR_SET_MM_START_STACK: u32 = 5; +pub const PR_SET_MM_START_BRK: u32 = 6; +pub const PR_SET_MM_BRK: u32 = 7; +pub const PR_SET_MM_ARG_START: u32 = 8; +pub const PR_SET_MM_ARG_END: u32 = 9; +pub const PR_SET_MM_ENV_START: u32 = 10; +pub const PR_SET_MM_ENV_END: u32 = 11; +pub const PR_SET_MM_AUXV: u32 = 12; +pub const PR_SET_MM_EXE_FILE: u32 = 13; +pub const PR_SET_MM_MAP: u32 = 14; +pub const PR_SET_MM_MAP_SIZE: u32 = 15; +pub const PR_SET_PTRACER: u32 = 1499557217; +pub const PR_SET_CHILD_SUBREAPER: u32 = 36; +pub const PR_GET_CHILD_SUBREAPER: u32 = 37; +pub const PR_SET_NO_NEW_PRIVS: u32 = 38; +pub const PR_GET_NO_NEW_PRIVS: u32 = 39; +pub const PR_GET_TID_ADDRESS: u32 = 40; +pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_GET_THP_DISABLE: u32 = 42; +pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; +pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; +pub const PR_SET_FP_MODE: u32 = 45; +pub const PR_GET_FP_MODE: u32 = 46; +pub const PR_FP_MODE_FR: u32 = 1; +pub const PR_FP_MODE_FRE: u32 = 2; +pub const PR_CAP_AMBIENT: u32 = 47; +pub const PR_CAP_AMBIENT_IS_SET: u32 = 1; +pub const PR_CAP_AMBIENT_RAISE: u32 = 2; +pub const PR_CAP_AMBIENT_LOWER: u32 = 3; +pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4; +pub const PR_SVE_SET_VL: u32 = 50; +pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SVE_GET_VL: u32 = 51; +pub const PR_SVE_VL_LEN_MASK: u32 = 65535; +pub const PR_SVE_VL_INHERIT: u32 = 131072; +pub const PR_GET_SPECULATION_CTRL: u32 = 52; +pub const PR_SET_SPECULATION_CTRL: u32 = 53; +pub const PR_SPEC_STORE_BYPASS: u32 = 0; +pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1; +pub const PR_SPEC_L1D_FLUSH: u32 = 2; +pub const PR_SPEC_NOT_AFFECTED: u32 = 0; +pub const PR_SPEC_PRCTL: u32 = 1; +pub const PR_SPEC_ENABLE: u32 = 2; +pub const PR_SPEC_DISABLE: u32 = 4; +pub const PR_SPEC_FORCE_DISABLE: u32 = 8; +pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16; +pub const PR_PAC_RESET_KEYS: u32 = 54; +pub const PR_PAC_APIAKEY: u32 = 1; +pub const PR_PAC_APIBKEY: u32 = 2; +pub const PR_PAC_APDAKEY: u32 = 4; +pub const PR_PAC_APDBKEY: u32 = 8; +pub const PR_PAC_APGAKEY: u32 = 16; +pub const PR_SET_TAGGED_ADDR_CTRL: u32 = 55; +pub const PR_GET_TAGGED_ADDR_CTRL: u32 = 56; +pub const PR_TAGGED_ADDR_ENABLE: u32 = 1; +pub const PR_MTE_TCF_NONE: u32 = 0; +pub const PR_MTE_TCF_SYNC: u32 = 2; +pub const PR_MTE_TCF_ASYNC: u32 = 4; +pub const PR_MTE_TCF_MASK: u32 = 6; +pub const PR_MTE_TAG_SHIFT: u32 = 3; +pub const PR_MTE_TAG_MASK: u32 = 524280; +pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_PMLEN_SHIFT: u32 = 24; +pub const PR_PMLEN_MASK: u32 = 2130706432; +pub const PR_SET_IO_FLUSHER: u32 = 57; +pub const PR_GET_IO_FLUSHER: u32 = 58; +pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; +pub const PR_SYS_DISPATCH_OFF: u32 = 0; +pub const PR_SYS_DISPATCH_ON: u32 = 1; +pub const SYSCALL_DISPATCH_FILTER_ALLOW: u32 = 0; +pub const SYSCALL_DISPATCH_FILTER_BLOCK: u32 = 1; +pub const PR_PAC_SET_ENABLED_KEYS: u32 = 60; +pub const PR_PAC_GET_ENABLED_KEYS: u32 = 61; +pub const PR_SCHED_CORE: u32 = 62; +pub const PR_SCHED_CORE_GET: u32 = 0; +pub const PR_SCHED_CORE_CREATE: u32 = 1; +pub const PR_SCHED_CORE_SHARE_TO: u32 = 2; +pub const PR_SCHED_CORE_SHARE_FROM: u32 = 3; +pub const PR_SCHED_CORE_MAX: u32 = 4; +pub const PR_SCHED_CORE_SCOPE_THREAD: u32 = 0; +pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: u32 = 1; +pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: u32 = 2; +pub const PR_SME_SET_VL: u32 = 63; +pub const PR_SME_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SME_GET_VL: u32 = 64; +pub const PR_SME_VL_LEN_MASK: u32 = 65535; +pub const PR_SME_VL_INHERIT: u32 = 131072; +pub const PR_SET_MDWE: u32 = 65; +pub const PR_MDWE_REFUSE_EXEC_GAIN: u32 = 1; +pub const PR_MDWE_NO_INHERIT: u32 = 2; +pub const PR_GET_MDWE: u32 = 66; +pub const PR_SET_VMA: u32 = 1398164801; +pub const PR_SET_VMA_ANON_NAME: u32 = 0; +pub const PR_GET_AUXV: u32 = 1096112214; +pub const PR_SET_MEMORY_MERGE: u32 = 67; +pub const PR_GET_MEMORY_MERGE: u32 = 68; +pub const PR_RISCV_V_SET_CONTROL: u32 = 69; +pub const PR_RISCV_V_GET_CONTROL: u32 = 70; +pub const PR_RISCV_V_VSTATE_CTRL_DEFAULT: u32 = 0; +pub const PR_RISCV_V_VSTATE_CTRL_OFF: u32 = 1; +pub const PR_RISCV_V_VSTATE_CTRL_ON: u32 = 2; +pub const PR_RISCV_V_VSTATE_CTRL_INHERIT: u32 = 16; +pub const PR_RISCV_V_VSTATE_CTRL_CUR_MASK: u32 = 3; +pub const PR_RISCV_V_VSTATE_CTRL_NEXT_MASK: u32 = 12; +pub const PR_RISCV_V_VSTATE_CTRL_MASK: u32 = 31; +pub const PR_RISCV_SET_ICACHE_FLUSH_CTX: u32 = 71; +pub const PR_RISCV_CTX_SW_FENCEI_ON: u32 = 0; +pub const PR_RISCV_CTX_SW_FENCEI_OFF: u32 = 1; +pub const PR_RISCV_SCOPE_PER_PROCESS: u32 = 0; +pub const PR_RISCV_SCOPE_PER_THREAD: u32 = 1; +pub const PR_PPC_GET_DEXCR: u32 = 72; +pub const PR_PPC_SET_DEXCR: u32 = 73; +pub const PR_PPC_DEXCR_SBHE: u32 = 0; +pub const PR_PPC_DEXCR_IBRTPD: u32 = 1; +pub const PR_PPC_DEXCR_SRAPD: u32 = 2; +pub const PR_PPC_DEXCR_NPHIE: u32 = 3; +pub const PR_PPC_DEXCR_CTRL_EDITABLE: u32 = 1; +pub const PR_PPC_DEXCR_CTRL_SET: u32 = 2; +pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; +pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; +pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; +pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; +pub const PR_GET_SHADOW_STACK_STATUS: u32 = 74; +pub const PR_SET_SHADOW_STACK_STATUS: u32 = 75; +pub const PR_SHADOW_STACK_ENABLE: u32 = 1; +pub const PR_SHADOW_STACK_WRITE: u32 = 2; +pub const PR_SHADOW_STACK_PUSH: u32 = 4; +pub const PR_LOCK_SHADOW_STACK_STATUS: u32 = 76; +pub const PR_TIMER_CREATE_RESTORE_IDS: u32 = 77; +pub const PR_TIMER_CREATE_RESTORE_IDS_OFF: u32 = 0; +pub const PR_TIMER_CREATE_RESTORE_IDS_ON: u32 = 1; +pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; +pub const PR_FUTEX_HASH: u32 = 78; +pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; +pub const FH_FLAG_IMMUTABLE: u32 = 1; +pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_FUTEX_HASH_GET_IMMUTABLE: u32 = 3; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/ptrace.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/ptrace.rs new file mode 100644 index 0000000000000000000000000000000000000000..c8174cea9e4f2340c6719a3f7d27fdb645a41c4f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/ptrace.rs @@ -0,0 +1,905 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_longlong; +pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Copy, Clone)] +pub struct audit_status { +pub mask: __u32, +pub enabled: __u32, +pub failure: __u32, +pub pid: __u32, +pub rate_limit: __u32, +pub backlog_limit: __u32, +pub lost: __u32, +pub backlog: __u32, +pub __bindgen_anon_1: audit_status__bindgen_ty_1, +pub backlog_wait_time: __u32, +pub backlog_wait_time_actual: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct audit_features { +pub vers: __u32, +pub mask: __u32, +pub features: __u32, +pub lock: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct audit_tty_status { +pub enabled: __u32, +pub log_passwd: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct audit_rule_data { +pub flags: __u32, +pub action: __u32, +pub field_count: __u32, +pub mask: [__u32; 64usize], +pub fields: [__u32; 64usize], +pub values: [__u32; 64usize], +pub fieldflags: [__u32; 64usize], +pub buflen: __u32, +pub buf: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sock_filter { +pub code: __u16, +pub jt: __u8, +pub jf: __u8, +pub k: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sock_fprog { +pub len: crate::ctypes::c_ushort, +pub filter: *mut sock_filter, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_peeksiginfo_args { +pub off: __u64, +pub flags: __u32, +pub nr: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_metadata { +pub filter_off: __u64, +pub flags: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ptrace_syscall_info { +pub op: __u8, +pub reserved: __u8, +pub flags: __u16, +pub arch: __u32, +pub instruction_pointer: __u64, +pub stack_pointer: __u64, +pub __bindgen_anon_1: ptrace_syscall_info__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_syscall_info__bindgen_ty_1__bindgen_ty_1 { +pub nr: __u64, +pub args: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_syscall_info__bindgen_ty_1__bindgen_ty_2 { +pub rval: __s64, +pub is_error: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_syscall_info__bindgen_ty_1__bindgen_ty_3 { +pub nr: __u64, +pub args: [__u64; 6usize], +pub ret_data: __u32, +pub reserved2: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_rseq_configuration { +pub rseq_abi_pointer: __u64, +pub rseq_abi_size: __u32, +pub signature: __u32, +pub flags: __u32, +pub pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ptrace_sud_config { +pub mode: __u64, +pub selector: __u64, +pub offset: __u64, +pub len: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pt_regs { +pub r15: crate::ctypes::c_ulong, +pub r14: crate::ctypes::c_ulong, +pub r13: crate::ctypes::c_ulong, +pub r12: crate::ctypes::c_ulong, +pub rbp: crate::ctypes::c_ulong, +pub rbx: crate::ctypes::c_ulong, +pub r11: crate::ctypes::c_ulong, +pub r10: crate::ctypes::c_ulong, +pub r9: crate::ctypes::c_ulong, +pub r8: crate::ctypes::c_ulong, +pub rax: crate::ctypes::c_ulong, +pub rcx: crate::ctypes::c_ulong, +pub rdx: crate::ctypes::c_ulong, +pub rsi: crate::ctypes::c_ulong, +pub rdi: crate::ctypes::c_ulong, +pub orig_rax: crate::ctypes::c_ulong, +pub rip: crate::ctypes::c_ulong, +pub cs: crate::ctypes::c_ulong, +pub eflags: crate::ctypes::c_ulong, +pub rsp: crate::ctypes::c_ulong, +pub ss: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_data { +pub nr: crate::ctypes::c_int, +pub arch: __u32, +pub instruction_pointer: __u64, +pub args: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif_sizes { +pub seccomp_notif: __u16, +pub seccomp_notif_resp: __u16, +pub seccomp_data: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif { +pub id: __u64, +pub pid: __u32, +pub flags: __u32, +pub data: seccomp_data, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif_resp { +pub id: __u64, +pub val: __s64, +pub error: __s32, +pub flags: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct seccomp_notif_addfd { +pub id: __u64, +pub flags: __u32, +pub srcfd: __u32, +pub newfd: __u32, +pub newfd_flags: __u32, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const EM_NONE: u32 = 0; +pub const EM_M32: u32 = 1; +pub const EM_SPARC: u32 = 2; +pub const EM_386: u32 = 3; +pub const EM_68K: u32 = 4; +pub const EM_88K: u32 = 5; +pub const EM_486: u32 = 6; +pub const EM_860: u32 = 7; +pub const EM_MIPS: u32 = 8; +pub const EM_MIPS_RS3_LE: u32 = 10; +pub const EM_MIPS_RS4_BE: u32 = 10; +pub const EM_PARISC: u32 = 15; +pub const EM_SPARC32PLUS: u32 = 18; +pub const EM_PPC: u32 = 20; +pub const EM_PPC64: u32 = 21; +pub const EM_SPU: u32 = 23; +pub const EM_ARM: u32 = 40; +pub const EM_SH: u32 = 42; +pub const EM_SPARCV9: u32 = 43; +pub const EM_H8_300: u32 = 46; +pub const EM_IA_64: u32 = 50; +pub const EM_X86_64: u32 = 62; +pub const EM_S390: u32 = 22; +pub const EM_CRIS: u32 = 76; +pub const EM_M32R: u32 = 88; +pub const EM_MN10300: u32 = 89; +pub const EM_OPENRISC: u32 = 92; +pub const EM_ARCOMPACT: u32 = 93; +pub const EM_XTENSA: u32 = 94; +pub const EM_BLACKFIN: u32 = 106; +pub const EM_UNICORE: u32 = 110; +pub const EM_ALTERA_NIOS2: u32 = 113; +pub const EM_TI_C6000: u32 = 140; +pub const EM_HEXAGON: u32 = 164; +pub const EM_NDS32: u32 = 167; +pub const EM_AARCH64: u32 = 183; +pub const EM_TILEPRO: u32 = 188; +pub const EM_MICROBLAZE: u32 = 189; +pub const EM_TILEGX: u32 = 191; +pub const EM_ARCV2: u32 = 195; +pub const EM_RISCV: u32 = 243; +pub const EM_BPF: u32 = 247; +pub const EM_CSKY: u32 = 252; +pub const EM_LOONGARCH: u32 = 258; +pub const EM_FRV: u32 = 21569; +pub const EM_ALPHA: u32 = 36902; +pub const EM_CYGNUS_M32R: u32 = 36929; +pub const EM_S390_OLD: u32 = 41872; +pub const EM_CYGNUS_MN10300: u32 = 48879; +pub const AUDIT_GET: u32 = 1000; +pub const AUDIT_SET: u32 = 1001; +pub const AUDIT_LIST: u32 = 1002; +pub const AUDIT_ADD: u32 = 1003; +pub const AUDIT_DEL: u32 = 1004; +pub const AUDIT_USER: u32 = 1005; +pub const AUDIT_LOGIN: u32 = 1006; +pub const AUDIT_WATCH_INS: u32 = 1007; +pub const AUDIT_WATCH_REM: u32 = 1008; +pub const AUDIT_WATCH_LIST: u32 = 1009; +pub const AUDIT_SIGNAL_INFO: u32 = 1010; +pub const AUDIT_ADD_RULE: u32 = 1011; +pub const AUDIT_DEL_RULE: u32 = 1012; +pub const AUDIT_LIST_RULES: u32 = 1013; +pub const AUDIT_TRIM: u32 = 1014; +pub const AUDIT_MAKE_EQUIV: u32 = 1015; +pub const AUDIT_TTY_GET: u32 = 1016; +pub const AUDIT_TTY_SET: u32 = 1017; +pub const AUDIT_SET_FEATURE: u32 = 1018; +pub const AUDIT_GET_FEATURE: u32 = 1019; +pub const AUDIT_FIRST_USER_MSG: u32 = 1100; +pub const AUDIT_USER_AVC: u32 = 1107; +pub const AUDIT_USER_TTY: u32 = 1124; +pub const AUDIT_LAST_USER_MSG: u32 = 1199; +pub const AUDIT_FIRST_USER_MSG2: u32 = 2100; +pub const AUDIT_LAST_USER_MSG2: u32 = 2999; +pub const AUDIT_DAEMON_START: u32 = 1200; +pub const AUDIT_DAEMON_END: u32 = 1201; +pub const AUDIT_DAEMON_ABORT: u32 = 1202; +pub const AUDIT_DAEMON_CONFIG: u32 = 1203; +pub const AUDIT_SYSCALL: u32 = 1300; +pub const AUDIT_PATH: u32 = 1302; +pub const AUDIT_IPC: u32 = 1303; +pub const AUDIT_SOCKETCALL: u32 = 1304; +pub const AUDIT_CONFIG_CHANGE: u32 = 1305; +pub const AUDIT_SOCKADDR: u32 = 1306; +pub const AUDIT_CWD: u32 = 1307; +pub const AUDIT_EXECVE: u32 = 1309; +pub const AUDIT_IPC_SET_PERM: u32 = 1311; +pub const AUDIT_MQ_OPEN: u32 = 1312; +pub const AUDIT_MQ_SENDRECV: u32 = 1313; +pub const AUDIT_MQ_NOTIFY: u32 = 1314; +pub const AUDIT_MQ_GETSETATTR: u32 = 1315; +pub const AUDIT_KERNEL_OTHER: u32 = 1316; +pub const AUDIT_FD_PAIR: u32 = 1317; +pub const AUDIT_OBJ_PID: u32 = 1318; +pub const AUDIT_TTY: u32 = 1319; +pub const AUDIT_EOE: u32 = 1320; +pub const AUDIT_BPRM_FCAPS: u32 = 1321; +pub const AUDIT_CAPSET: u32 = 1322; +pub const AUDIT_MMAP: u32 = 1323; +pub const AUDIT_NETFILTER_PKT: u32 = 1324; +pub const AUDIT_NETFILTER_CFG: u32 = 1325; +pub const AUDIT_SECCOMP: u32 = 1326; +pub const AUDIT_PROCTITLE: u32 = 1327; +pub const AUDIT_FEATURE_CHANGE: u32 = 1328; +pub const AUDIT_REPLACE: u32 = 1329; +pub const AUDIT_KERN_MODULE: u32 = 1330; +pub const AUDIT_FANOTIFY: u32 = 1331; +pub const AUDIT_TIME_INJOFFSET: u32 = 1332; +pub const AUDIT_TIME_ADJNTPVAL: u32 = 1333; +pub const AUDIT_BPF: u32 = 1334; +pub const AUDIT_EVENT_LISTENER: u32 = 1335; +pub const AUDIT_URINGOP: u32 = 1336; +pub const AUDIT_OPENAT2: u32 = 1337; +pub const AUDIT_DM_CTRL: u32 = 1338; +pub const AUDIT_DM_EVENT: u32 = 1339; +pub const AUDIT_AVC: u32 = 1400; +pub const AUDIT_SELINUX_ERR: u32 = 1401; +pub const AUDIT_AVC_PATH: u32 = 1402; +pub const AUDIT_MAC_POLICY_LOAD: u32 = 1403; +pub const AUDIT_MAC_STATUS: u32 = 1404; +pub const AUDIT_MAC_CONFIG_CHANGE: u32 = 1405; +pub const AUDIT_MAC_UNLBL_ALLOW: u32 = 1406; +pub const AUDIT_MAC_CIPSOV4_ADD: u32 = 1407; +pub const AUDIT_MAC_CIPSOV4_DEL: u32 = 1408; +pub const AUDIT_MAC_MAP_ADD: u32 = 1409; +pub const AUDIT_MAC_MAP_DEL: u32 = 1410; +pub const AUDIT_MAC_IPSEC_ADDSA: u32 = 1411; +pub const AUDIT_MAC_IPSEC_DELSA: u32 = 1412; +pub const AUDIT_MAC_IPSEC_ADDSPD: u32 = 1413; +pub const AUDIT_MAC_IPSEC_DELSPD: u32 = 1414; +pub const AUDIT_MAC_IPSEC_EVENT: u32 = 1415; +pub const AUDIT_MAC_UNLBL_STCADD: u32 = 1416; +pub const AUDIT_MAC_UNLBL_STCDEL: u32 = 1417; +pub const AUDIT_MAC_CALIPSO_ADD: u32 = 1418; +pub const AUDIT_MAC_CALIPSO_DEL: u32 = 1419; +pub const AUDIT_IPE_ACCESS: u32 = 1420; +pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; +pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; +pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; +pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; +pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; +pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; +pub const AUDIT_ANOM_ABEND: u32 = 1701; +pub const AUDIT_ANOM_LINK: u32 = 1702; +pub const AUDIT_ANOM_CREAT: u32 = 1703; +pub const AUDIT_INTEGRITY_DATA: u32 = 1800; +pub const AUDIT_INTEGRITY_METADATA: u32 = 1801; +pub const AUDIT_INTEGRITY_STATUS: u32 = 1802; +pub const AUDIT_INTEGRITY_HASH: u32 = 1803; +pub const AUDIT_INTEGRITY_PCR: u32 = 1804; +pub const AUDIT_INTEGRITY_RULE: u32 = 1805; +pub const AUDIT_INTEGRITY_EVM_XATTR: u32 = 1806; +pub const AUDIT_INTEGRITY_POLICY_RULE: u32 = 1807; +pub const AUDIT_INTEGRITY_USERSPACE: u32 = 1808; +pub const AUDIT_KERNEL: u32 = 2000; +pub const AUDIT_FILTER_USER: u32 = 0; +pub const AUDIT_FILTER_TASK: u32 = 1; +pub const AUDIT_FILTER_ENTRY: u32 = 2; +pub const AUDIT_FILTER_WATCH: u32 = 3; +pub const AUDIT_FILTER_EXIT: u32 = 4; +pub const AUDIT_FILTER_EXCLUDE: u32 = 5; +pub const AUDIT_FILTER_TYPE: u32 = 5; +pub const AUDIT_FILTER_FS: u32 = 6; +pub const AUDIT_FILTER_URING_EXIT: u32 = 7; +pub const AUDIT_NR_FILTERS: u32 = 8; +pub const AUDIT_FILTER_PREPEND: u32 = 16; +pub const AUDIT_NEVER: u32 = 0; +pub const AUDIT_POSSIBLE: u32 = 1; +pub const AUDIT_ALWAYS: u32 = 2; +pub const AUDIT_MAX_FIELDS: u32 = 64; +pub const AUDIT_MAX_KEY_LEN: u32 = 256; +pub const AUDIT_BITMASK_SIZE: u32 = 64; +pub const AUDIT_SYSCALL_CLASSES: u32 = 16; +pub const AUDIT_CLASS_DIR_WRITE: u32 = 0; +pub const AUDIT_CLASS_DIR_WRITE_32: u32 = 1; +pub const AUDIT_CLASS_CHATTR: u32 = 2; +pub const AUDIT_CLASS_CHATTR_32: u32 = 3; +pub const AUDIT_CLASS_READ: u32 = 4; +pub const AUDIT_CLASS_READ_32: u32 = 5; +pub const AUDIT_CLASS_WRITE: u32 = 6; +pub const AUDIT_CLASS_WRITE_32: u32 = 7; +pub const AUDIT_CLASS_SIGNAL: u32 = 8; +pub const AUDIT_CLASS_SIGNAL_32: u32 = 9; +pub const AUDIT_UNUSED_BITS: u32 = 134216704; +pub const AUDIT_COMPARE_UID_TO_OBJ_UID: u32 = 1; +pub const AUDIT_COMPARE_GID_TO_OBJ_GID: u32 = 2; +pub const AUDIT_COMPARE_EUID_TO_OBJ_UID: u32 = 3; +pub const AUDIT_COMPARE_EGID_TO_OBJ_GID: u32 = 4; +pub const AUDIT_COMPARE_AUID_TO_OBJ_UID: u32 = 5; +pub const AUDIT_COMPARE_SUID_TO_OBJ_UID: u32 = 6; +pub const AUDIT_COMPARE_SGID_TO_OBJ_GID: u32 = 7; +pub const AUDIT_COMPARE_FSUID_TO_OBJ_UID: u32 = 8; +pub const AUDIT_COMPARE_FSGID_TO_OBJ_GID: u32 = 9; +pub const AUDIT_COMPARE_UID_TO_AUID: u32 = 10; +pub const AUDIT_COMPARE_UID_TO_EUID: u32 = 11; +pub const AUDIT_COMPARE_UID_TO_FSUID: u32 = 12; +pub const AUDIT_COMPARE_UID_TO_SUID: u32 = 13; +pub const AUDIT_COMPARE_AUID_TO_FSUID: u32 = 14; +pub const AUDIT_COMPARE_AUID_TO_SUID: u32 = 15; +pub const AUDIT_COMPARE_AUID_TO_EUID: u32 = 16; +pub const AUDIT_COMPARE_EUID_TO_SUID: u32 = 17; +pub const AUDIT_COMPARE_EUID_TO_FSUID: u32 = 18; +pub const AUDIT_COMPARE_SUID_TO_FSUID: u32 = 19; +pub const AUDIT_COMPARE_GID_TO_EGID: u32 = 20; +pub const AUDIT_COMPARE_GID_TO_FSGID: u32 = 21; +pub const AUDIT_COMPARE_GID_TO_SGID: u32 = 22; +pub const AUDIT_COMPARE_EGID_TO_FSGID: u32 = 23; +pub const AUDIT_COMPARE_EGID_TO_SGID: u32 = 24; +pub const AUDIT_COMPARE_SGID_TO_FSGID: u32 = 25; +pub const AUDIT_MAX_FIELD_COMPARE: u32 = 25; +pub const AUDIT_PID: u32 = 0; +pub const AUDIT_UID: u32 = 1; +pub const AUDIT_EUID: u32 = 2; +pub const AUDIT_SUID: u32 = 3; +pub const AUDIT_FSUID: u32 = 4; +pub const AUDIT_GID: u32 = 5; +pub const AUDIT_EGID: u32 = 6; +pub const AUDIT_SGID: u32 = 7; +pub const AUDIT_FSGID: u32 = 8; +pub const AUDIT_LOGINUID: u32 = 9; +pub const AUDIT_PERS: u32 = 10; +pub const AUDIT_ARCH: u32 = 11; +pub const AUDIT_MSGTYPE: u32 = 12; +pub const AUDIT_SUBJ_USER: u32 = 13; +pub const AUDIT_SUBJ_ROLE: u32 = 14; +pub const AUDIT_SUBJ_TYPE: u32 = 15; +pub const AUDIT_SUBJ_SEN: u32 = 16; +pub const AUDIT_SUBJ_CLR: u32 = 17; +pub const AUDIT_PPID: u32 = 18; +pub const AUDIT_OBJ_USER: u32 = 19; +pub const AUDIT_OBJ_ROLE: u32 = 20; +pub const AUDIT_OBJ_TYPE: u32 = 21; +pub const AUDIT_OBJ_LEV_LOW: u32 = 22; +pub const AUDIT_OBJ_LEV_HIGH: u32 = 23; +pub const AUDIT_LOGINUID_SET: u32 = 24; +pub const AUDIT_SESSIONID: u32 = 25; +pub const AUDIT_FSTYPE: u32 = 26; +pub const AUDIT_DEVMAJOR: u32 = 100; +pub const AUDIT_DEVMINOR: u32 = 101; +pub const AUDIT_INODE: u32 = 102; +pub const AUDIT_EXIT: u32 = 103; +pub const AUDIT_SUCCESS: u32 = 104; +pub const AUDIT_WATCH: u32 = 105; +pub const AUDIT_PERM: u32 = 106; +pub const AUDIT_DIR: u32 = 107; +pub const AUDIT_FILETYPE: u32 = 108; +pub const AUDIT_OBJ_UID: u32 = 109; +pub const AUDIT_OBJ_GID: u32 = 110; +pub const AUDIT_FIELD_COMPARE: u32 = 111; +pub const AUDIT_EXE: u32 = 112; +pub const AUDIT_SADDR_FAM: u32 = 113; +pub const AUDIT_ARG0: u32 = 200; +pub const AUDIT_ARG1: u32 = 201; +pub const AUDIT_ARG2: u32 = 202; +pub const AUDIT_ARG3: u32 = 203; +pub const AUDIT_FILTERKEY: u32 = 210; +pub const AUDIT_NEGATE: u32 = 2147483648; +pub const AUDIT_BIT_MASK: u32 = 134217728; +pub const AUDIT_LESS_THAN: u32 = 268435456; +pub const AUDIT_GREATER_THAN: u32 = 536870912; +pub const AUDIT_NOT_EQUAL: u32 = 805306368; +pub const AUDIT_EQUAL: u32 = 1073741824; +pub const AUDIT_BIT_TEST: u32 = 1207959552; +pub const AUDIT_LESS_THAN_OR_EQUAL: u32 = 1342177280; +pub const AUDIT_GREATER_THAN_OR_EQUAL: u32 = 1610612736; +pub const AUDIT_OPERATORS: u32 = 2013265920; +pub const AUDIT_STATUS_ENABLED: u32 = 1; +pub const AUDIT_STATUS_FAILURE: u32 = 2; +pub const AUDIT_STATUS_PID: u32 = 4; +pub const AUDIT_STATUS_RATE_LIMIT: u32 = 8; +pub const AUDIT_STATUS_BACKLOG_LIMIT: u32 = 16; +pub const AUDIT_STATUS_BACKLOG_WAIT_TIME: u32 = 32; +pub const AUDIT_STATUS_LOST: u32 = 64; +pub const AUDIT_STATUS_BACKLOG_WAIT_TIME_ACTUAL: u32 = 128; +pub const AUDIT_FEATURE_BITMAP_BACKLOG_LIMIT: u32 = 1; +pub const AUDIT_FEATURE_BITMAP_BACKLOG_WAIT_TIME: u32 = 2; +pub const AUDIT_FEATURE_BITMAP_EXECUTABLE_PATH: u32 = 4; +pub const AUDIT_FEATURE_BITMAP_EXCLUDE_EXTEND: u32 = 8; +pub const AUDIT_FEATURE_BITMAP_SESSIONID_FILTER: u32 = 16; +pub const AUDIT_FEATURE_BITMAP_LOST_RESET: u32 = 32; +pub const AUDIT_FEATURE_BITMAP_FILTER_FS: u32 = 64; +pub const AUDIT_FEATURE_BITMAP_ALL: u32 = 127; +pub const AUDIT_VERSION_LATEST: u32 = 127; +pub const AUDIT_VERSION_BACKLOG_LIMIT: u32 = 1; +pub const AUDIT_VERSION_BACKLOG_WAIT_TIME: u32 = 2; +pub const AUDIT_FAIL_SILENT: u32 = 0; +pub const AUDIT_FAIL_PRINTK: u32 = 1; +pub const AUDIT_FAIL_PANIC: u32 = 2; +pub const __AUDIT_ARCH_CONVENTION_MASK: u32 = 805306368; +pub const __AUDIT_ARCH_CONVENTION_MIPS64_N32: u32 = 536870912; +pub const __AUDIT_ARCH_64BIT: u32 = 2147483648; +pub const __AUDIT_ARCH_LE: u32 = 1073741824; +pub const AUDIT_ARCH_AARCH64: u32 = 3221225655; +pub const AUDIT_ARCH_ALPHA: u32 = 3221262374; +pub const AUDIT_ARCH_ARCOMPACT: u32 = 1073741917; +pub const AUDIT_ARCH_ARCOMPACTBE: u32 = 93; +pub const AUDIT_ARCH_ARCV2: u32 = 1073742019; +pub const AUDIT_ARCH_ARCV2BE: u32 = 195; +pub const AUDIT_ARCH_ARM: u32 = 1073741864; +pub const AUDIT_ARCH_ARMEB: u32 = 40; +pub const AUDIT_ARCH_C6X: u32 = 1073741964; +pub const AUDIT_ARCH_C6XBE: u32 = 140; +pub const AUDIT_ARCH_CRIS: u32 = 1073741900; +pub const AUDIT_ARCH_CSKY: u32 = 1073742076; +pub const AUDIT_ARCH_FRV: u32 = 21569; +pub const AUDIT_ARCH_H8300: u32 = 46; +pub const AUDIT_ARCH_HEXAGON: u32 = 164; +pub const AUDIT_ARCH_I386: u32 = 1073741827; +pub const AUDIT_ARCH_IA64: u32 = 3221225522; +pub const AUDIT_ARCH_M32R: u32 = 88; +pub const AUDIT_ARCH_M68K: u32 = 4; +pub const AUDIT_ARCH_MICROBLAZE: u32 = 189; +pub const AUDIT_ARCH_MIPS: u32 = 8; +pub const AUDIT_ARCH_MIPSEL: u32 = 1073741832; +pub const AUDIT_ARCH_MIPS64: u32 = 2147483656; +pub const AUDIT_ARCH_MIPS64N32: u32 = 2684354568; +pub const AUDIT_ARCH_MIPSEL64: u32 = 3221225480; +pub const AUDIT_ARCH_MIPSEL64N32: u32 = 3758096392; +pub const AUDIT_ARCH_NDS32: u32 = 1073741991; +pub const AUDIT_ARCH_NDS32BE: u32 = 167; +pub const AUDIT_ARCH_NIOS2: u32 = 1073741937; +pub const AUDIT_ARCH_OPENRISC: u32 = 92; +pub const AUDIT_ARCH_PARISC: u32 = 15; +pub const AUDIT_ARCH_PARISC64: u32 = 2147483663; +pub const AUDIT_ARCH_PPC: u32 = 20; +pub const AUDIT_ARCH_PPC64: u32 = 2147483669; +pub const AUDIT_ARCH_PPC64LE: u32 = 3221225493; +pub const AUDIT_ARCH_RISCV32: u32 = 1073742067; +pub const AUDIT_ARCH_RISCV64: u32 = 3221225715; +pub const AUDIT_ARCH_S390: u32 = 22; +pub const AUDIT_ARCH_S390X: u32 = 2147483670; +pub const AUDIT_ARCH_SH: u32 = 42; +pub const AUDIT_ARCH_SHEL: u32 = 1073741866; +pub const AUDIT_ARCH_SH64: u32 = 2147483690; +pub const AUDIT_ARCH_SHEL64: u32 = 3221225514; +pub const AUDIT_ARCH_SPARC: u32 = 2; +pub const AUDIT_ARCH_SPARC64: u32 = 2147483691; +pub const AUDIT_ARCH_TILEGX: u32 = 3221225663; +pub const AUDIT_ARCH_TILEGX32: u32 = 1073742015; +pub const AUDIT_ARCH_TILEPRO: u32 = 1073742012; +pub const AUDIT_ARCH_UNICORE: u32 = 1073741934; +pub const AUDIT_ARCH_X86_64: u32 = 3221225534; +pub const AUDIT_ARCH_XTENSA: u32 = 94; +pub const AUDIT_ARCH_LOONGARCH32: u32 = 1073742082; +pub const AUDIT_ARCH_LOONGARCH64: u32 = 3221225730; +pub const AUDIT_PERM_EXEC: u32 = 1; +pub const AUDIT_PERM_WRITE: u32 = 2; +pub const AUDIT_PERM_READ: u32 = 4; +pub const AUDIT_PERM_ATTR: u32 = 8; +pub const AUDIT_MESSAGE_TEXT_MAX: u32 = 8560; +pub const AUDIT_FEATURE_VERSION: u32 = 1; +pub const AUDIT_FEATURE_ONLY_UNSET_LOGINUID: u32 = 0; +pub const AUDIT_FEATURE_LOGINUID_IMMUTABLE: u32 = 1; +pub const AUDIT_LAST_FEATURE: u32 = 1; +pub const BPF_LD: u32 = 0; +pub const BPF_LDX: u32 = 1; +pub const BPF_ST: u32 = 2; +pub const BPF_STX: u32 = 3; +pub const BPF_ALU: u32 = 4; +pub const BPF_JMP: u32 = 5; +pub const BPF_RET: u32 = 6; +pub const BPF_MISC: u32 = 7; +pub const BPF_W: u32 = 0; +pub const BPF_H: u32 = 8; +pub const BPF_B: u32 = 16; +pub const BPF_IMM: u32 = 0; +pub const BPF_ABS: u32 = 32; +pub const BPF_IND: u32 = 64; +pub const BPF_MEM: u32 = 96; +pub const BPF_LEN: u32 = 128; +pub const BPF_MSH: u32 = 160; +pub const BPF_ADD: u32 = 0; +pub const BPF_SUB: u32 = 16; +pub const BPF_MUL: u32 = 32; +pub const BPF_DIV: u32 = 48; +pub const BPF_OR: u32 = 64; +pub const BPF_AND: u32 = 80; +pub const BPF_LSH: u32 = 96; +pub const BPF_RSH: u32 = 112; +pub const BPF_NEG: u32 = 128; +pub const BPF_MOD: u32 = 144; +pub const BPF_XOR: u32 = 160; +pub const BPF_JA: u32 = 0; +pub const BPF_JEQ: u32 = 16; +pub const BPF_JGT: u32 = 32; +pub const BPF_JGE: u32 = 48; +pub const BPF_JSET: u32 = 64; +pub const BPF_K: u32 = 0; +pub const BPF_X: u32 = 8; +pub const BPF_MAXINSNS: u32 = 4096; +pub const BPF_MAJOR_VERSION: u32 = 1; +pub const BPF_MINOR_VERSION: u32 = 1; +pub const BPF_A: u32 = 16; +pub const BPF_TAX: u32 = 0; +pub const BPF_TXA: u32 = 128; +pub const BPF_MEMWORDS: u32 = 16; +pub const SKF_AD_OFF: i32 = -4096; +pub const SKF_AD_PROTOCOL: u32 = 0; +pub const SKF_AD_PKTTYPE: u32 = 4; +pub const SKF_AD_IFINDEX: u32 = 8; +pub const SKF_AD_NLATTR: u32 = 12; +pub const SKF_AD_NLATTR_NEST: u32 = 16; +pub const SKF_AD_MARK: u32 = 20; +pub const SKF_AD_QUEUE: u32 = 24; +pub const SKF_AD_HATYPE: u32 = 28; +pub const SKF_AD_RXHASH: u32 = 32; +pub const SKF_AD_CPU: u32 = 36; +pub const SKF_AD_ALU_XOR_X: u32 = 40; +pub const SKF_AD_VLAN_TAG: u32 = 44; +pub const SKF_AD_VLAN_TAG_PRESENT: u32 = 48; +pub const SKF_AD_PAY_OFFSET: u32 = 52; +pub const SKF_AD_RANDOM: u32 = 56; +pub const SKF_AD_VLAN_TPID: u32 = 60; +pub const SKF_AD_MAX: u32 = 64; +pub const SKF_NET_OFF: i32 = -1048576; +pub const SKF_LL_OFF: i32 = -2097152; +pub const BPF_NET_OFF: i32 = -1048576; +pub const BPF_LL_OFF: i32 = -2097152; +pub const PTRACE_TRACEME: u32 = 0; +pub const PTRACE_PEEKTEXT: u32 = 1; +pub const PTRACE_PEEKDATA: u32 = 2; +pub const PTRACE_PEEKUSR: u32 = 3; +pub const PTRACE_POKETEXT: u32 = 4; +pub const PTRACE_POKEDATA: u32 = 5; +pub const PTRACE_POKEUSR: u32 = 6; +pub const PTRACE_CONT: u32 = 7; +pub const PTRACE_KILL: u32 = 8; +pub const PTRACE_SINGLESTEP: u32 = 9; +pub const PTRACE_ATTACH: u32 = 16; +pub const PTRACE_DETACH: u32 = 17; +pub const PTRACE_SYSCALL: u32 = 24; +pub const PTRACE_SETOPTIONS: u32 = 16896; +pub const PTRACE_GETEVENTMSG: u32 = 16897; +pub const PTRACE_GETSIGINFO: u32 = 16898; +pub const PTRACE_SETSIGINFO: u32 = 16899; +pub const PTRACE_GETREGSET: u32 = 16900; +pub const PTRACE_SETREGSET: u32 = 16901; +pub const PTRACE_SEIZE: u32 = 16902; +pub const PTRACE_INTERRUPT: u32 = 16903; +pub const PTRACE_LISTEN: u32 = 16904; +pub const PTRACE_PEEKSIGINFO: u32 = 16905; +pub const PTRACE_GETSIGMASK: u32 = 16906; +pub const PTRACE_SETSIGMASK: u32 = 16907; +pub const PTRACE_SECCOMP_GET_FILTER: u32 = 16908; +pub const PTRACE_SECCOMP_GET_METADATA: u32 = 16909; +pub const PTRACE_GET_SYSCALL_INFO: u32 = 16910; +pub const PTRACE_SET_SYSCALL_INFO: u32 = 16914; +pub const PTRACE_SYSCALL_INFO_NONE: u32 = 0; +pub const PTRACE_SYSCALL_INFO_ENTRY: u32 = 1; +pub const PTRACE_SYSCALL_INFO_EXIT: u32 = 2; +pub const PTRACE_SYSCALL_INFO_SECCOMP: u32 = 3; +pub const PTRACE_GET_RSEQ_CONFIGURATION: u32 = 16911; +pub const PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG: u32 = 16912; +pub const PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG: u32 = 16913; +pub const PTRACE_EVENTMSG_SYSCALL_ENTRY: u32 = 1; +pub const PTRACE_EVENTMSG_SYSCALL_EXIT: u32 = 2; +pub const PTRACE_PEEKSIGINFO_SHARED: u32 = 1; +pub const PTRACE_EVENT_FORK: u32 = 1; +pub const PTRACE_EVENT_VFORK: u32 = 2; +pub const PTRACE_EVENT_CLONE: u32 = 3; +pub const PTRACE_EVENT_EXEC: u32 = 4; +pub const PTRACE_EVENT_VFORK_DONE: u32 = 5; +pub const PTRACE_EVENT_EXIT: u32 = 6; +pub const PTRACE_EVENT_SECCOMP: u32 = 7; +pub const PTRACE_EVENT_STOP: u32 = 128; +pub const PTRACE_O_TRACESYSGOOD: u32 = 1; +pub const PTRACE_O_TRACEFORK: u32 = 2; +pub const PTRACE_O_TRACEVFORK: u32 = 4; +pub const PTRACE_O_TRACECLONE: u32 = 8; +pub const PTRACE_O_TRACEEXEC: u32 = 16; +pub const PTRACE_O_TRACEVFORKDONE: u32 = 32; +pub const PTRACE_O_TRACEEXIT: u32 = 64; +pub const PTRACE_O_TRACESECCOMP: u32 = 128; +pub const PTRACE_O_EXITKILL: u32 = 1048576; +pub const PTRACE_O_SUSPEND_SECCOMP: u32 = 2097152; +pub const PTRACE_O_MASK: u32 = 3145983; +pub const FRAME_SIZE: u32 = 168; +pub const PTRACE_GETREGS: u32 = 12; +pub const PTRACE_SETREGS: u32 = 13; +pub const PTRACE_GETFPREGS: u32 = 14; +pub const PTRACE_SETFPREGS: u32 = 15; +pub const PTRACE_GETFPXREGS: u32 = 18; +pub const PTRACE_SETFPXREGS: u32 = 19; +pub const PTRACE_OLDSETOPTIONS: u32 = 21; +pub const PTRACE_GET_THREAD_AREA: u32 = 25; +pub const PTRACE_SET_THREAD_AREA: u32 = 26; +pub const PTRACE_ARCH_PRCTL: u32 = 30; +pub const PTRACE_SYSEMU: u32 = 31; +pub const PTRACE_SYSEMU_SINGLESTEP: u32 = 32; +pub const PTRACE_SINGLEBLOCK: u32 = 33; +pub const X86_EFLAGS_CF_BIT: u32 = 0; +pub const X86_EFLAGS_FIXED_BIT: u32 = 1; +pub const X86_EFLAGS_PF_BIT: u32 = 2; +pub const X86_EFLAGS_AF_BIT: u32 = 4; +pub const X86_EFLAGS_ZF_BIT: u32 = 6; +pub const X86_EFLAGS_SF_BIT: u32 = 7; +pub const X86_EFLAGS_TF_BIT: u32 = 8; +pub const X86_EFLAGS_IF_BIT: u32 = 9; +pub const X86_EFLAGS_DF_BIT: u32 = 10; +pub const X86_EFLAGS_OF_BIT: u32 = 11; +pub const X86_EFLAGS_IOPL_BIT: u32 = 12; +pub const X86_EFLAGS_NT_BIT: u32 = 14; +pub const X86_EFLAGS_RF_BIT: u32 = 16; +pub const X86_EFLAGS_VM_BIT: u32 = 17; +pub const X86_EFLAGS_AC_BIT: u32 = 18; +pub const X86_EFLAGS_VIF_BIT: u32 = 19; +pub const X86_EFLAGS_VIP_BIT: u32 = 20; +pub const X86_EFLAGS_ID_BIT: u32 = 21; +pub const X86_CR0_PE_BIT: u32 = 0; +pub const X86_CR0_MP_BIT: u32 = 1; +pub const X86_CR0_EM_BIT: u32 = 2; +pub const X86_CR0_TS_BIT: u32 = 3; +pub const X86_CR0_ET_BIT: u32 = 4; +pub const X86_CR0_NE_BIT: u32 = 5; +pub const X86_CR0_WP_BIT: u32 = 16; +pub const X86_CR0_AM_BIT: u32 = 18; +pub const X86_CR0_NW_BIT: u32 = 29; +pub const X86_CR0_CD_BIT: u32 = 30; +pub const X86_CR0_PG_BIT: u32 = 31; +pub const X86_CR3_PWT_BIT: u32 = 3; +pub const X86_CR3_PCD_BIT: u32 = 4; +pub const X86_CR3_PCID_BITS: u32 = 12; +pub const X86_CR3_LAM_U57_BIT: u32 = 61; +pub const X86_CR3_LAM_U48_BIT: u32 = 62; +pub const X86_CR3_PCID_NOFLUSH_BIT: u32 = 63; +pub const X86_CR4_VME_BIT: u32 = 0; +pub const X86_CR4_PVI_BIT: u32 = 1; +pub const X86_CR4_TSD_BIT: u32 = 2; +pub const X86_CR4_DE_BIT: u32 = 3; +pub const X86_CR4_PSE_BIT: u32 = 4; +pub const X86_CR4_PAE_BIT: u32 = 5; +pub const X86_CR4_MCE_BIT: u32 = 6; +pub const X86_CR4_PGE_BIT: u32 = 7; +pub const X86_CR4_PCE_BIT: u32 = 8; +pub const X86_CR4_OSFXSR_BIT: u32 = 9; +pub const X86_CR4_OSXMMEXCPT_BIT: u32 = 10; +pub const X86_CR4_UMIP_BIT: u32 = 11; +pub const X86_CR4_LA57_BIT: u32 = 12; +pub const X86_CR4_VMXE_BIT: u32 = 13; +pub const X86_CR4_SMXE_BIT: u32 = 14; +pub const X86_CR4_FSGSBASE_BIT: u32 = 16; +pub const X86_CR4_PCIDE_BIT: u32 = 17; +pub const X86_CR4_OSXSAVE_BIT: u32 = 18; +pub const X86_CR4_SMEP_BIT: u32 = 20; +pub const X86_CR4_SMAP_BIT: u32 = 21; +pub const X86_CR4_PKE_BIT: u32 = 22; +pub const X86_CR4_CET_BIT: u32 = 23; +pub const X86_CR4_LAM_SUP_BIT: u32 = 28; +pub const X86_CR4_FRED_BIT: u32 = 32; +pub const CX86_PCR0: u32 = 32; +pub const CX86_GCR: u32 = 184; +pub const CX86_CCR0: u32 = 192; +pub const CX86_CCR1: u32 = 193; +pub const CX86_CCR2: u32 = 194; +pub const CX86_CCR3: u32 = 195; +pub const CX86_CCR4: u32 = 232; +pub const CX86_CCR5: u32 = 233; +pub const CX86_CCR6: u32 = 234; +pub const CX86_CCR7: u32 = 235; +pub const CX86_PCR1: u32 = 240; +pub const CX86_DIR0: u32 = 254; +pub const CX86_DIR1: u32 = 255; +pub const CX86_ARR_BASE: u32 = 196; +pub const CX86_RCR_BASE: u32 = 220; +pub const SECCOMP_MODE_DISABLED: u32 = 0; +pub const SECCOMP_MODE_STRICT: u32 = 1; +pub const SECCOMP_MODE_FILTER: u32 = 2; +pub const SECCOMP_SET_MODE_STRICT: u32 = 0; +pub const SECCOMP_SET_MODE_FILTER: u32 = 1; +pub const SECCOMP_GET_ACTION_AVAIL: u32 = 2; +pub const SECCOMP_GET_NOTIF_SIZES: u32 = 3; +pub const SECCOMP_FILTER_FLAG_TSYNC: u32 = 1; +pub const SECCOMP_FILTER_FLAG_LOG: u32 = 2; +pub const SECCOMP_FILTER_FLAG_SPEC_ALLOW: u32 = 4; +pub const SECCOMP_FILTER_FLAG_NEW_LISTENER: u32 = 8; +pub const SECCOMP_FILTER_FLAG_TSYNC_ESRCH: u32 = 16; +pub const SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV: u32 = 32; +pub const SECCOMP_RET_KILL_PROCESS: u32 = 2147483648; +pub const SECCOMP_RET_KILL_THREAD: u32 = 0; +pub const SECCOMP_RET_KILL: u32 = 0; +pub const SECCOMP_RET_TRAP: u32 = 196608; +pub const SECCOMP_RET_ERRNO: u32 = 327680; +pub const SECCOMP_RET_USER_NOTIF: u32 = 2143289344; +pub const SECCOMP_RET_TRACE: u32 = 2146435072; +pub const SECCOMP_RET_LOG: u32 = 2147221504; +pub const SECCOMP_RET_ALLOW: u32 = 2147418112; +pub const SECCOMP_RET_ACTION_FULL: u32 = 4294901760; +pub const SECCOMP_RET_ACTION: u32 = 2147418112; +pub const SECCOMP_RET_DATA: u32 = 65535; +pub const SECCOMP_USER_NOTIF_FLAG_CONTINUE: u32 = 1; +pub const SECCOMP_USER_NOTIF_FD_SYNC_WAKE_UP: u32 = 1; +pub const SECCOMP_ADDFD_FLAG_SETFD: u32 = 1; +pub const SECCOMP_ADDFD_FLAG_SEND: u32 = 2; +pub const SECCOMP_IOC_MAGIC: u8 = 33u8; +pub const Audit_equal: _bindgen_ty_1 = _bindgen_ty_1::Audit_equal; +pub const Audit_not_equal: _bindgen_ty_1 = _bindgen_ty_1::Audit_not_equal; +pub const Audit_bitmask: _bindgen_ty_1 = _bindgen_ty_1::Audit_bitmask; +pub const Audit_bittest: _bindgen_ty_1 = _bindgen_ty_1::Audit_bittest; +pub const Audit_lt: _bindgen_ty_1 = _bindgen_ty_1::Audit_lt; +pub const Audit_gt: _bindgen_ty_1 = _bindgen_ty_1::Audit_gt; +pub const Audit_le: _bindgen_ty_1 = _bindgen_ty_1::Audit_le; +pub const Audit_ge: _bindgen_ty_1 = _bindgen_ty_1::Audit_ge; +pub const Audit_bad: _bindgen_ty_1 = _bindgen_ty_1::Audit_bad; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +Audit_equal = 0, +Audit_not_equal = 1, +Audit_bitmask = 2, +Audit_bittest = 3, +Audit_lt = 4, +Audit_gt = 5, +Audit_le = 6, +Audit_ge = 7, +Audit_bad = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum audit_nlgrps { +AUDIT_NLGRP_NONE = 0, +AUDIT_NLGRP_READLOG = 1, +__AUDIT_NLGRP_MAX = 2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union audit_status__bindgen_ty_1 { +pub version: __u32, +pub feature_bitmap: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ptrace_syscall_info__bindgen_ty_1 { +pub entry: ptrace_syscall_info__bindgen_ty_1__bindgen_ty_1, +pub exit: ptrace_syscall_info__bindgen_ty_1__bindgen_ty_2, +pub seccomp: ptrace_syscall_info__bindgen_ty_1__bindgen_ty_3, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/system.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/system.rs new file mode 100644 index 0000000000000000000000000000000000000000..2eeaadd62fd6db5ac956d78060a5956d51b0767f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/system.rs @@ -0,0 +1,132 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_longlong; +pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Debug)] +pub struct sysinfo { +pub uptime: __kernel_long_t, +pub loads: [__kernel_ulong_t; 3usize], +pub totalram: __kernel_ulong_t, +pub freeram: __kernel_ulong_t, +pub sharedram: __kernel_ulong_t, +pub bufferram: __kernel_ulong_t, +pub totalswap: __kernel_ulong_t, +pub freeswap: __kernel_ulong_t, +pub procs: __u16, +pub pad: __u16, +pub totalhigh: __kernel_ulong_t, +pub freehigh: __kernel_ulong_t, +pub mem_unit: __u32, +pub _f: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct oldold_utsname { +pub sysname: [crate::ctypes::c_char; 9usize], +pub nodename: [crate::ctypes::c_char; 9usize], +pub release: [crate::ctypes::c_char; 9usize], +pub version: [crate::ctypes::c_char; 9usize], +pub machine: [crate::ctypes::c_char; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct old_utsname { +pub sysname: [crate::ctypes::c_char; 65usize], +pub nodename: [crate::ctypes::c_char; 65usize], +pub release: [crate::ctypes::c_char; 65usize], +pub version: [crate::ctypes::c_char; 65usize], +pub machine: [crate::ctypes::c_char; 65usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct new_utsname { +pub sysname: [crate::ctypes::c_char; 65usize], +pub nodename: [crate::ctypes::c_char; 65usize], +pub release: [crate::ctypes::c_char; 65usize], +pub version: [crate::ctypes::c_char; 65usize], +pub machine: [crate::ctypes::c_char; 65usize], +pub domainname: [crate::ctypes::c_char; 65usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const SI_LOAD_SHIFT: u32 = 16; +pub const __OLD_UTS_LEN: u32 = 8; +pub const __NEW_UTS_LEN: u32 = 64; +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/xdp.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/xdp.rs new file mode 100644 index 0000000000000000000000000000000000000000..179666441b65d5683582be5ea491e4c0df276220 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x32/xdp.rs @@ -0,0 +1,193 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_longlong; +pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_xdp { +pub sxdp_family: __u16, +pub sxdp_flags: __u16, +pub sxdp_ifindex: __u32, +pub sxdp_queue_id: __u32, +pub sxdp_shared_umem_fd: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_ring_offset { +pub producer: __u64, +pub consumer: __u64, +pub desc: __u64, +pub flags: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_mmap_offsets { +pub rx: xdp_ring_offset, +pub tx: xdp_ring_offset, +pub fr: xdp_ring_offset, +pub cr: xdp_ring_offset, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_umem_reg { +pub addr: __u64, +pub len: __u64, +pub chunk_size: __u32, +pub headroom: __u32, +pub flags: __u32, +pub tx_metadata_len: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_statistics { +pub rx_dropped: __u64, +pub rx_invalid_descs: __u64, +pub tx_invalid_descs: __u64, +pub rx_ring_full: __u64, +pub rx_fill_ring_empty_descs: __u64, +pub tx_ring_empty_descs: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_options { +pub flags: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct xsk_tx_metadata { +pub flags: __u64, +pub __bindgen_anon_1: xsk_tx_metadata__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xsk_tx_metadata__bindgen_ty_1__bindgen_ty_1 { +pub csum_start: __u16, +pub csum_offset: __u16, +pub launch_time: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xsk_tx_metadata__bindgen_ty_1__bindgen_ty_2 { +pub tx_timestamp: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_desc { +pub addr: __u64, +pub len: __u32, +pub options: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_ring_offset_v1 { +pub producer: __u64, +pub consumer: __u64, +pub desc: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_mmap_offsets_v1 { +pub rx: xdp_ring_offset_v1, +pub tx: xdp_ring_offset_v1, +pub fr: xdp_ring_offset_v1, +pub cr: xdp_ring_offset_v1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_umem_reg_v1 { +pub addr: __u64, +pub len: __u64, +pub chunk_size: __u32, +pub headroom: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xdp_statistics_v1 { +pub rx_dropped: __u64, +pub rx_invalid_descs: __u64, +pub tx_invalid_descs: __u64, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const XDP_SHARED_UMEM: u32 = 1; +pub const XDP_COPY: u32 = 2; +pub const XDP_ZEROCOPY: u32 = 4; +pub const XDP_USE_NEED_WAKEUP: u32 = 8; +pub const XDP_USE_SG: u32 = 16; +pub const XDP_UMEM_UNALIGNED_CHUNK_FLAG: u32 = 1; +pub const XDP_UMEM_TX_SW_CSUM: u32 = 2; +pub const XDP_UMEM_TX_METADATA_LEN: u32 = 4; +pub const XDP_RING_NEED_WAKEUP: u32 = 1; +pub const XDP_MMAP_OFFSETS: u32 = 1; +pub const XDP_RX_RING: u32 = 2; +pub const XDP_TX_RING: u32 = 3; +pub const XDP_UMEM_REG: u32 = 4; +pub const XDP_UMEM_FILL_RING: u32 = 5; +pub const XDP_UMEM_COMPLETION_RING: u32 = 6; +pub const XDP_STATISTICS: u32 = 7; +pub const XDP_OPTIONS: u32 = 8; +pub const XDP_OPTIONS_ZEROCOPY: u32 = 1; +pub const XDP_PGOFF_RX_RING: u32 = 0; +pub const XDP_PGOFF_TX_RING: u32 = 2147483648; +pub const XDP_UMEM_PGOFF_FILL_RING: u64 = 4294967296; +pub const XDP_UMEM_PGOFF_COMPLETION_RING: u64 = 6442450944; +pub const XSK_UNALIGNED_BUF_OFFSET_SHIFT: u32 = 48; +pub const XSK_UNALIGNED_BUF_ADDR_MASK: u64 = 281474976710655; +pub const XDP_TXMD_FLAGS_TIMESTAMP: u32 = 1; +pub const XDP_TXMD_FLAGS_CHECKSUM: u32 = 2; +pub const XDP_TXMD_FLAGS_LAUNCH_TIME: u32 = 4; +pub const XDP_PKT_CONTD: u32 = 1; +pub const XDP_TX_METADATA: u32 = 2; +#[repr(C)] +#[derive(Copy, Clone)] +pub union xsk_tx_metadata__bindgen_ty_1 { +pub request: xsk_tx_metadata__bindgen_ty_1__bindgen_ty_1, +pub completion: xsk_tx_metadata__bindgen_ty_1__bindgen_ty_2, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/auxvec.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/auxvec.rs new file mode 100644 index 0000000000000000000000000000000000000000..175aeefbdd0b6e4876f8c5178d557bf1684dad59 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/auxvec.rs @@ -0,0 +1,33 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const AT_SYSINFO: u32 = 32; +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_VECTOR_SIZE_ARCH: u32 = 3; +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_PLATFORM: u32 = 15; +pub const AT_HWCAP: u32 = 16; +pub const AT_CLKTCK: u32 = 17; +pub const AT_SECURE: u32 = 23; +pub const AT_BASE_PLATFORM: u32 = 24; +pub const AT_RANDOM: u32 = 25; +pub const AT_HWCAP2: u32 = 26; +pub const AT_RSEQ_FEATURE_SIZE: u32 = 27; +pub const AT_RSEQ_ALIGN: u32 = 28; +pub const AT_HWCAP3: u32 = 29; +pub const AT_HWCAP4: u32 = 30; +pub const AT_EXECFN: u32 = 31; +pub const AT_MINSIGSTKSZ: u32 = 51; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/btrfs.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/btrfs.rs new file mode 100644 index 0000000000000000000000000000000000000000..4bd7dc0983841d723e1e86edf2b74e4df74d356a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/btrfs.rs @@ -0,0 +1,1894 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +pub type __kernel_rwf_t = crate::ctypes::c_int; +#[repr(C)] +#[derive(Default)] +pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v1 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub master_key_descriptor: [__u8; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_key { +pub mode: __u32, +pub raw: [__u8; 64usize], +pub size: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fscrypt_policy_v2 { +pub version: __u8, +pub contents_encryption_mode: __u8, +pub filenames_encryption_mode: __u8, +pub flags: __u8, +pub log2_data_unit_size: __u8, +pub __reserved: [__u8; 3usize], +pub master_key_identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_policy_ex_arg { +pub policy_size: __u64, +pub policy: fscrypt_get_policy_ex_arg__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_key_specifier { +pub type_: __u32, +pub __reserved: __u32, +pub u: fscrypt_key_specifier__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct fscrypt_provisioning_key_payload { +pub type_: __u32, +pub flags: __u32, +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +pub struct fscrypt_add_key_arg { +pub key_spec: fscrypt_key_specifier, +pub raw_size: __u32, +pub key_id: __u32, +pub flags: __u32, +pub __reserved: [__u32; 7usize], +pub raw: __IncompleteArrayField<__u8>, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_remove_key_arg { +pub key_spec: fscrypt_key_specifier, +pub removal_status_flags: __u32, +pub __reserved: [__u32; 5usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct fscrypt_get_key_status_arg { +pub key_spec: fscrypt_key_specifier, +pub __reserved: [__u32; 6usize], +pub status: __u32, +pub status_flags: __u32, +pub user_count: __u32, +pub __out_reserved: [__u32; 13usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mount_attr { +pub attr_set: __u64, +pub attr_clr: __u64, +pub propagation: __u64, +pub userns_fd: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct statmount { +pub size: __u32, +pub mnt_opts: __u32, +pub mask: __u64, +pub sb_dev_major: __u32, +pub sb_dev_minor: __u32, +pub sb_magic: __u64, +pub sb_flags: __u32, +pub fs_type: __u32, +pub mnt_id: __u64, +pub mnt_parent_id: __u64, +pub mnt_id_old: __u32, +pub mnt_parent_id_old: __u32, +pub mnt_attr: __u64, +pub mnt_propagation: __u64, +pub mnt_peer_group: __u64, +pub mnt_master: __u64, +pub propagate_from: __u64, +pub mnt_root: __u32, +pub mnt_point: __u32, +pub mnt_ns_id: __u64, +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub supported_mask: __u64, +pub mnt_uidmap_num: __u32, +pub mnt_uidmap: __u32, +pub mnt_gidmap_num: __u32, +pub mnt_gidmap: __u32, +pub __spare2: [__u64; 43usize], +pub str_: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct mnt_id_req { +pub size: __u32, +pub spare: __u32, +pub mnt_id: __u64, +pub param: __u64, +pub mnt_ns_id: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_clone_range { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fstrim_range { +pub start: __u64, +pub len: __u64, +pub minlen: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsuuid2 { +pub len: __u8, +pub uuid: [__u8; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fs_sysfs_path { +pub len: __u8, +pub name: [__u8; 128usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct file_dedupe_range_info { +pub dest_fd: __s64, +pub dest_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct file_dedupe_range { +pub src_offset: __u64, +pub src_length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct files_stat_struct { +pub nr_files: crate::ctypes::c_ulong, +pub nr_free_files: crate::ctypes::c_ulong, +pub max_files: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct inodes_stat_t { +pub nr_inodes: crate::ctypes::c_long, +pub nr_unused: crate::ctypes::c_long, +pub dummy: [crate::ctypes::c_long; 5usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct fsxattr { +pub fsx_xflags: __u32, +pub fsx_extsize: __u32, +pub fsx_nextents: __u32, +pub fsx_projid: __u32, +pub fsx_cowextsize: __u32, +pub fsx_pad: [crate::ctypes::c_uchar; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct page_region { +pub start: __u64, +pub end: __u64, +pub categories: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pm_scan_arg { +pub size: __u64, +pub flags: __u64, +pub start: __u64, +pub end: __u64, +pub walk_end: __u64, +pub vec: __u64, +pub vec_len: __u64, +pub max_pages: __u64, +pub category_inverted: __u64, +pub category_mask: __u64, +pub category_anyof_mask: __u64, +pub return_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct procmap_query { +pub size: __u64, +pub query_flags: __u64, +pub query_addr: __u64, +pub vma_start: __u64, +pub vma_end: __u64, +pub vma_flags: __u64, +pub vma_page_size: __u64, +pub vma_offset: __u64, +pub inode: __u64, +pub dev_major: __u32, +pub dev_minor: __u32, +pub vma_name_size: __u32, +pub build_id_size: __u32, +pub vma_name_addr: __u64, +pub build_id_addr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_vol_args { +pub fd: __s64, +pub name: [crate::ctypes::c_char; 4088usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_limit { +pub flags: __u64, +pub max_rfer: __u64, +pub max_excl: __u64, +pub rsv_rfer: __u64, +pub rsv_excl: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_qgroup_inherit { +pub flags: __u64, +pub num_qgroups: __u64, +pub num_ref_copies: __u64, +pub num_excl_copies: __u64, +pub lim: btrfs_qgroup_limit, +pub qgroups: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_qgroup_limit_args { +pub qgroupid: __u64, +pub lim: btrfs_qgroup_limit, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_vol_args_v2 { +pub fd: __s64, +pub transid: __u64, +pub flags: __u64, +pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1, +pub __bindgen_anon_2: btrfs_ioctl_vol_args_v2__bindgen_ty_2, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1 { +pub size: __u64, +pub qgroup_inherit: *mut btrfs_qgroup_inherit, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_scrub_progress { +pub data_extents_scrubbed: __u64, +pub tree_extents_scrubbed: __u64, +pub data_bytes_scrubbed: __u64, +pub tree_bytes_scrubbed: __u64, +pub read_errors: __u64, +pub csum_errors: __u64, +pub verify_errors: __u64, +pub no_csum: __u64, +pub csum_discards: __u64, +pub super_errors: __u64, +pub malloc_errors: __u64, +pub uncorrectable_errors: __u64, +pub corrected_errors: __u64, +pub last_physical: __u64, +pub unverified_errors: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_scrub_args { +pub devid: __u64, +pub start: __u64, +pub end: __u64, +pub flags: __u64, +pub progress: btrfs_scrub_progress, +pub unused: [__u64; 109usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_dev_replace_start_params { +pub srcdevid: __u64, +pub cont_reading_from_srcdev_mode: __u64, +pub srcdev_name: [__u8; 1025usize], +pub tgtdev_name: [__u8; 1025usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_dev_replace_status_params { +pub replace_state: __u64, +pub progress_1000: __u64, +pub time_started: __u64, +pub time_stopped: __u64, +pub num_write_errors: __u64, +pub num_uncorrectable_read_errors: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_dev_replace_args { +pub cmd: __u64, +pub result: __u64, +pub __bindgen_anon_1: btrfs_ioctl_dev_replace_args__bindgen_ty_1, +pub spare: [__u64; 64usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_dev_info_args { +pub devid: __u64, +pub uuid: [__u8; 16usize], +pub bytes_used: __u64, +pub total_bytes: __u64, +pub fsid: [__u8; 16usize], +pub unused: [__u64; 377usize], +pub path: [__u8; 1024usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_fs_info_args { +pub max_id: __u64, +pub num_devices: __u64, +pub fsid: [__u8; 16usize], +pub nodesize: __u32, +pub sectorsize: __u32, +pub clone_alignment: __u32, +pub csum_type: __u16, +pub csum_size: __u16, +pub flags: __u64, +pub generation: __u64, +pub metadata_uuid: [__u8; 16usize], +pub reserved: [__u8; 944usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_feature_flags { +pub compat_flags: __u64, +pub compat_ro_flags: __u64, +pub incompat_flags: __u64, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct btrfs_balance_args { +pub profiles: __u64, +pub __bindgen_anon_1: btrfs_balance_args__bindgen_ty_1, +pub devid: __u64, +pub pstart: __u64, +pub pend: __u64, +pub vstart: __u64, +pub vend: __u64, +pub target: __u64, +pub flags: __u64, +pub __bindgen_anon_2: btrfs_balance_args__bindgen_ty_2, +pub stripes_min: __u32, +pub stripes_max: __u32, +pub unused: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_balance_args__bindgen_ty_1__bindgen_ty_1 { +pub usage_min: __u32, +pub usage_max: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_balance_args__bindgen_ty_2__bindgen_ty_1 { +pub limit_min: __u32, +pub limit_max: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_balance_progress { +pub expected: __u64, +pub considered: __u64, +pub completed: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_balance_args { +pub flags: __u64, +pub state: __u64, +pub data: btrfs_balance_args, +pub meta: btrfs_balance_args, +pub sys: btrfs_balance_args, +pub stat: btrfs_balance_progress, +pub unused: [__u64; 72usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_ino_lookup_args { +pub treeid: __u64, +pub objectid: __u64, +pub name: [crate::ctypes::c_char; 4080usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_ino_lookup_user_args { +pub dirid: __u64, +pub treeid: __u64, +pub name: [crate::ctypes::c_char; 256usize], +pub path: [crate::ctypes::c_char; 3824usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_search_key { +pub tree_id: __u64, +pub min_objectid: __u64, +pub max_objectid: __u64, +pub min_offset: __u64, +pub max_offset: __u64, +pub min_transid: __u64, +pub max_transid: __u64, +pub min_type: __u32, +pub max_type: __u32, +pub nr_items: __u32, +pub unused: __u32, +pub unused1: __u64, +pub unused2: __u64, +pub unused3: __u64, +pub unused4: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_search_header { +pub transid: __u64, +pub objectid: __u64, +pub offset: __u64, +pub type_: __u32, +pub len: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_search_args { +pub key: btrfs_ioctl_search_key, +pub buf: [crate::ctypes::c_char; 3992usize], +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_search_args_v2 { +pub key: btrfs_ioctl_search_key, +pub buf_size: __u64, +pub buf: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_clone_range_args { +pub src_fd: __s64, +pub src_offset: __u64, +pub src_length: __u64, +pub dest_offset: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct btrfs_ioctl_defrag_range_args { +pub start: __u64, +pub len: __u64, +pub flags: __u64, +pub extent_thresh: __u32, +pub __bindgen_anon_1: btrfs_ioctl_defrag_range_args__bindgen_ty_1, +pub unused: [__u32; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_defrag_range_args__bindgen_ty_1__bindgen_ty_1 { +pub type_: __u8, +pub level: __s8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_same_extent_info { +pub fd: __s64, +pub logical_offset: __u64, +pub bytes_deduped: __u64, +pub status: __s32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_same_args { +pub logical_offset: __u64, +pub length: __u64, +pub dest_count: __u16, +pub reserved1: __u16, +pub reserved2: __u32, +pub info: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_space_info { +pub flags: __u64, +pub total_bytes: __u64, +pub used_bytes: __u64, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_space_args { +pub space_slots: __u64, +pub total_spaces: __u64, +pub spaces: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_data_container { +pub bytes_left: __u32, +pub bytes_missing: __u32, +pub elem_cnt: __u32, +pub elem_missed: __u32, +pub val: __IncompleteArrayField<__u64>, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_ino_path_args { +pub inum: __u64, +pub size: __u64, +pub reserved: [__u64; 4usize], +pub fspath: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_logical_ino_args { +pub logical: __u64, +pub size: __u64, +pub reserved: [__u64; 3usize], +pub flags: __u64, +pub inodes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_dev_stats { +pub devid: __u64, +pub nr_items: __u64, +pub flags: __u64, +pub values: [__u64; 5usize], +pub unused: [__u64; 121usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_quota_ctl_args { +pub cmd: __u64, +pub status: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_quota_rescan_args { +pub flags: __u64, +pub progress: __u64, +pub reserved: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_qgroup_assign_args { +pub assign: __u64, +pub src: __u64, +pub dst: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_qgroup_create_args { +pub create: __u64, +pub qgroupid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_timespec { +pub sec: __u64, +pub nsec: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_received_subvol_args { +pub uuid: [crate::ctypes::c_char; 16usize], +pub stransid: __u64, +pub rtransid: __u64, +pub stime: btrfs_ioctl_timespec, +pub rtime: btrfs_ioctl_timespec, +pub flags: __u64, +pub reserved: [__u64; 16usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_send_args { +pub send_fd: __s64, +pub clone_sources_count: __u64, +pub clone_sources: *mut __u64, +pub parent_root: __u64, +pub flags: __u64, +pub version: __u32, +pub reserved: [__u8; 28usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_subvol_info_args { +pub treeid: __u64, +pub name: [crate::ctypes::c_char; 256usize], +pub parent_id: __u64, +pub dirid: __u64, +pub generation: __u64, +pub flags: __u64, +pub uuid: [__u8; 16usize], +pub parent_uuid: [__u8; 16usize], +pub received_uuid: [__u8; 16usize], +pub ctransid: __u64, +pub otransid: __u64, +pub stransid: __u64, +pub rtransid: __u64, +pub ctime: btrfs_ioctl_timespec, +pub otime: btrfs_ioctl_timespec, +pub stime: btrfs_ioctl_timespec, +pub rtime: btrfs_ioctl_timespec, +pub reserved: [__u64; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_subvol_rootref_args { +pub min_treeid: __u64, +pub rootref: [btrfs_ioctl_get_subvol_rootref_args__bindgen_ty_1; 255usize], +pub num_items: __u8, +pub align: [__u8; 7usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_subvol_rootref_args__bindgen_ty_1 { +pub treeid: __u64, +pub dirid: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_encoded_io_args { +pub iov: *const iovec, +pub iovcnt: crate::ctypes::c_ulong, +pub offset: __s64, +pub flags: __u64, +pub len: __u64, +pub unencoded_len: __u64, +pub unencoded_offset: __u64, +pub compression: __u32, +pub encryption: __u32, +pub reserved: [__u8; 64usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_subvol_wait { +pub subvolid: __u64, +pub mode: __u32, +pub count: __u32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_disk_key { +pub objectid: __le64, +pub type_: __u8, +pub offset: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_key { +pub objectid: __u64, +pub type_: __u8, +pub offset: __u64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_header { +pub csum: [__u8; 32usize], +pub fsid: [__u8; 16usize], +pub bytenr: __le64, +pub flags: __le64, +pub chunk_tree_uuid: [__u8; 16usize], +pub generation: __le64, +pub owner: __le64, +pub nritems: __le32, +pub level: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_root_backup { +pub tree_root: __le64, +pub tree_root_gen: __le64, +pub chunk_root: __le64, +pub chunk_root_gen: __le64, +pub extent_root: __le64, +pub extent_root_gen: __le64, +pub fs_root: __le64, +pub fs_root_gen: __le64, +pub dev_root: __le64, +pub dev_root_gen: __le64, +pub csum_root: __le64, +pub csum_root_gen: __le64, +pub total_bytes: __le64, +pub bytes_used: __le64, +pub num_devices: __le64, +pub unused_64: [__le64; 4usize], +pub tree_root_level: __u8, +pub chunk_root_level: __u8, +pub extent_root_level: __u8, +pub fs_root_level: __u8, +pub dev_root_level: __u8, +pub csum_root_level: __u8, +pub unused_8: [__u8; 10usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_item { +pub key: btrfs_disk_key, +pub offset: __le32, +pub size: __le32, +} +#[repr(C, packed)] +pub struct btrfs_leaf { +pub header: btrfs_header, +pub items: __IncompleteArrayField, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_key_ptr { +pub key: btrfs_disk_key, +pub blockptr: __le64, +pub generation: __le64, +} +#[repr(C, packed)] +pub struct btrfs_node { +pub header: btrfs_header, +pub ptrs: __IncompleteArrayField, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_item { +pub devid: __le64, +pub total_bytes: __le64, +pub bytes_used: __le64, +pub io_align: __le32, +pub io_width: __le32, +pub sector_size: __le32, +pub type_: __le64, +pub generation: __le64, +pub start_offset: __le64, +pub dev_group: __le32, +pub seek_speed: __u8, +pub bandwidth: __u8, +pub uuid: [__u8; 16usize], +pub fsid: [__u8; 16usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_stripe { +pub devid: __le64, +pub offset: __le64, +pub dev_uuid: [__u8; 16usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_chunk { +pub length: __le64, +pub owner: __le64, +pub stripe_len: __le64, +pub type_: __le64, +pub io_align: __le32, +pub io_width: __le32, +pub sector_size: __le32, +pub num_stripes: __le16, +pub sub_stripes: __le16, +pub stripe: btrfs_stripe, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_super_block { +pub csum: [__u8; 32usize], +pub fsid: [__u8; 16usize], +pub bytenr: __le64, +pub flags: __le64, +pub magic: __le64, +pub generation: __le64, +pub root: __le64, +pub chunk_root: __le64, +pub log_root: __le64, +pub __unused_log_root_transid: __le64, +pub total_bytes: __le64, +pub bytes_used: __le64, +pub root_dir_objectid: __le64, +pub num_devices: __le64, +pub sectorsize: __le32, +pub nodesize: __le32, +pub __unused_leafsize: __le32, +pub stripesize: __le32, +pub sys_chunk_array_size: __le32, +pub chunk_root_generation: __le64, +pub compat_flags: __le64, +pub compat_ro_flags: __le64, +pub incompat_flags: __le64, +pub csum_type: __le16, +pub root_level: __u8, +pub chunk_root_level: __u8, +pub log_root_level: __u8, +pub dev_item: btrfs_dev_item, +pub label: [crate::ctypes::c_char; 256usize], +pub cache_generation: __le64, +pub uuid_tree_generation: __le64, +pub metadata_uuid: [__u8; 16usize], +pub nr_global_roots: __u64, +pub reserved: [__le64; 27usize], +pub sys_chunk_array: [__u8; 2048usize], +pub super_roots: [btrfs_root_backup; 4usize], +pub padding: [__u8; 565usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_free_space_entry { +pub offset: __le64, +pub bytes: __le64, +pub type_: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_free_space_header { +pub location: btrfs_disk_key, +pub generation: __le64, +pub num_entries: __le64, +pub num_bitmaps: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_raid_stride { +pub devid: __le64, +pub physical: __le64, +} +#[repr(C, packed)] +pub struct btrfs_stripe_extent { +pub __bindgen_anon_1: btrfs_stripe_extent__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_stripe_extent__bindgen_ty_1 { +pub __empty_strides: btrfs_stripe_extent__bindgen_ty_1__bindgen_ty_1, +pub strides: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_stripe_extent__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_item { +pub refs: __le64, +pub generation: __le64, +pub flags: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_item_v0 { +pub refs: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_tree_block_info { +pub key: btrfs_disk_key, +pub level: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_data_ref { +pub root: __le64, +pub objectid: __le64, +pub offset: __le64, +pub count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_shared_data_ref { +pub count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_owner_ref { +pub root_id: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_extent_inline_ref { +pub type_: __u8, +pub offset: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_extent { +pub chunk_tree: __le64, +pub chunk_objectid: __le64, +pub chunk_offset: __le64, +pub length: __le64, +pub chunk_tree_uuid: [__u8; 16usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_inode_ref { +pub index: __le64, +pub name_len: __le16, +} +#[repr(C, packed)] +pub struct btrfs_inode_extref { +pub parent_objectid: __le64, +pub index: __le64, +pub name_len: __le16, +pub name: __IncompleteArrayField<__u8>, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_timespec { +pub sec: __le64, +pub nsec: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_inode_item { +pub generation: __le64, +pub transid: __le64, +pub size: __le64, +pub nbytes: __le64, +pub block_group: __le64, +pub nlink: __le32, +pub uid: __le32, +pub gid: __le32, +pub mode: __le32, +pub rdev: __le64, +pub flags: __le64, +pub sequence: __le64, +pub reserved: [__le64; 4usize], +pub atime: btrfs_timespec, +pub ctime: btrfs_timespec, +pub mtime: btrfs_timespec, +pub otime: btrfs_timespec, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dir_log_item { +pub end: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dir_item { +pub location: btrfs_disk_key, +pub transid: __le64, +pub data_len: __le16, +pub name_len: __le16, +pub type_: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_root_item { +pub inode: btrfs_inode_item, +pub generation: __le64, +pub root_dirid: __le64, +pub bytenr: __le64, +pub byte_limit: __le64, +pub bytes_used: __le64, +pub last_snapshot: __le64, +pub flags: __le64, +pub refs: __le32, +pub drop_progress: btrfs_disk_key, +pub drop_level: __u8, +pub level: __u8, +pub generation_v2: __le64, +pub uuid: [__u8; 16usize], +pub parent_uuid: [__u8; 16usize], +pub received_uuid: [__u8; 16usize], +pub ctransid: __le64, +pub otransid: __le64, +pub stransid: __le64, +pub rtransid: __le64, +pub ctime: btrfs_timespec, +pub otime: btrfs_timespec, +pub stime: btrfs_timespec, +pub rtime: btrfs_timespec, +pub reserved: [__le64; 8usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_root_ref { +pub dirid: __le64, +pub sequence: __le64, +pub name_len: __le16, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct btrfs_disk_balance_args { +pub profiles: __le64, +pub __bindgen_anon_1: btrfs_disk_balance_args__bindgen_ty_1, +pub devid: __le64, +pub pstart: __le64, +pub pend: __le64, +pub vstart: __le64, +pub vend: __le64, +pub target: __le64, +pub flags: __le64, +pub __bindgen_anon_2: btrfs_disk_balance_args__bindgen_ty_2, +pub stripes_min: __le32, +pub stripes_max: __le32, +pub unused: [__le64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_disk_balance_args__bindgen_ty_1__bindgen_ty_1 { +pub usage_min: __le32, +pub usage_max: __le32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_disk_balance_args__bindgen_ty_2__bindgen_ty_1 { +pub limit_min: __le32, +pub limit_max: __le32, +} +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub struct btrfs_balance_item { +pub flags: __le64, +pub data: btrfs_disk_balance_args, +pub meta: btrfs_disk_balance_args, +pub sys: btrfs_disk_balance_args, +pub unused: [__le64; 4usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_file_extent_item { +pub generation: __le64, +pub ram_bytes: __le64, +pub compression: __u8, +pub encryption: __u8, +pub other_encoding: __le16, +pub type_: __u8, +pub disk_bytenr: __le64, +pub disk_num_bytes: __le64, +pub offset: __le64, +pub num_bytes: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_csum_item { +pub csum: __u8, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_stats_item { +pub values: [__le64; 5usize], +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_dev_replace_item { +pub src_devid: __le64, +pub cursor_left: __le64, +pub cursor_right: __le64, +pub cont_reading_from_srcdev_mode: __le64, +pub replace_state: __le64, +pub time_started: __le64, +pub time_stopped: __le64, +pub num_write_errors: __le64, +pub num_uncorrectable_read_errors: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_free_space_info { +pub extent_count: __le32, +pub flags: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_status_item { +pub version: __le64, +pub generation: __le64, +pub flags: __le64, +pub rescan: __le64, +pub enable_gen: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_info_item { +pub generation: __le64, +pub rfer: __le64, +pub rfer_cmpr: __le64, +pub excl: __le64, +pub excl_cmpr: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_qgroup_limit_item { +pub flags: __le64, +pub max_rfer: __le64, +pub max_excl: __le64, +pub rsv_rfer: __le64, +pub rsv_excl: __le64, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_verity_descriptor_item { +pub size: __le64, +pub reserved: [__le64; 2usize], +pub encryption: __u8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iovec { +pub _address: u8, +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _IOC_NRBITS: u32 = 8; +pub const _IOC_TYPEBITS: u32 = 8; +pub const _IOC_SIZEBITS: u32 = 14; +pub const _IOC_DIRBITS: u32 = 2; +pub const _IOC_NRMASK: u32 = 255; +pub const _IOC_TYPEMASK: u32 = 255; +pub const _IOC_SIZEMASK: u32 = 16383; +pub const _IOC_DIRMASK: u32 = 3; +pub const _IOC_NRSHIFT: u32 = 0; +pub const _IOC_TYPESHIFT: u32 = 8; +pub const _IOC_SIZESHIFT: u32 = 16; +pub const _IOC_DIRSHIFT: u32 = 30; +pub const _IOC_NONE: u32 = 0; +pub const _IOC_WRITE: u32 = 1; +pub const _IOC_READ: u32 = 2; +pub const IOC_IN: u32 = 1073741824; +pub const IOC_OUT: u32 = 2147483648; +pub const IOC_INOUT: u32 = 3221225472; +pub const IOCSIZE_MASK: u32 = 1073676288; +pub const IOCSIZE_SHIFT: u32 = 16; +pub const NR_OPEN: u32 = 1024; +pub const NGROUPS_MAX: u32 = 65536; +pub const ARG_MAX: u32 = 131072; +pub const LINK_MAX: u32 = 127; +pub const MAX_CANON: u32 = 255; +pub const MAX_INPUT: u32 = 255; +pub const NAME_MAX: u32 = 255; +pub const PATH_MAX: u32 = 4096; +pub const PIPE_BUF: u32 = 4096; +pub const XATTR_NAME_MAX: u32 = 255; +pub const XATTR_SIZE_MAX: u32 = 65536; +pub const XATTR_LIST_MAX: u32 = 65536; +pub const RTSIG_MAX: u32 = 32; +pub const FSCRYPT_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FSCRYPT_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FSCRYPT_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FSCRYPT_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FSCRYPT_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FSCRYPT_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64: u32 = 8; +pub const FSCRYPT_POLICY_FLAG_IV_INO_LBLK_32: u32 = 16; +pub const FSCRYPT_MODE_AES_256_XTS: u32 = 1; +pub const FSCRYPT_MODE_AES_256_CTS: u32 = 4; +pub const FSCRYPT_MODE_AES_128_CBC: u32 = 5; +pub const FSCRYPT_MODE_AES_128_CTS: u32 = 6; +pub const FSCRYPT_MODE_SM4_XTS: u32 = 7; +pub const FSCRYPT_MODE_SM4_CTS: u32 = 8; +pub const FSCRYPT_MODE_ADIANTUM: u32 = 9; +pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10; +pub const FSCRYPT_POLICY_V1: u32 = 0; +pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64; +pub const FSCRYPT_POLICY_V2: u32 = 2; +pub const FSCRYPT_KEY_IDENTIFIER_SIZE: u32 = 16; +pub const FSCRYPT_KEY_SPEC_TYPE_DESCRIPTOR: u32 = 1; +pub const FSCRYPT_KEY_SPEC_TYPE_IDENTIFIER: u32 = 2; +pub const FSCRYPT_ADD_KEY_FLAG_HW_WRAPPED: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_FILES_BUSY: u32 = 1; +pub const FSCRYPT_KEY_REMOVAL_STATUS_FLAG_OTHER_USERS: u32 = 2; +pub const FSCRYPT_KEY_STATUS_ABSENT: u32 = 1; +pub const FSCRYPT_KEY_STATUS_PRESENT: u32 = 2; +pub const FSCRYPT_KEY_STATUS_INCOMPLETELY_REMOVED: u32 = 3; +pub const FSCRYPT_KEY_STATUS_FLAG_ADDED_BY_SELF: u32 = 1; +pub const FS_KEY_DESCRIPTOR_SIZE: u32 = 8; +pub const FS_POLICY_FLAGS_PAD_4: u32 = 0; +pub const FS_POLICY_FLAGS_PAD_8: u32 = 1; +pub const FS_POLICY_FLAGS_PAD_16: u32 = 2; +pub const FS_POLICY_FLAGS_PAD_32: u32 = 3; +pub const FS_POLICY_FLAGS_PAD_MASK: u32 = 3; +pub const FS_POLICY_FLAG_DIRECT_KEY: u32 = 4; +pub const FS_POLICY_FLAGS_VALID: u32 = 7; +pub const FS_ENCRYPTION_MODE_INVALID: u32 = 0; +pub const FS_ENCRYPTION_MODE_AES_256_XTS: u32 = 1; +pub const FS_ENCRYPTION_MODE_AES_256_GCM: u32 = 2; +pub const FS_ENCRYPTION_MODE_AES_256_CBC: u32 = 3; +pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4; +pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5; +pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6; +pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9; +pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0"; +pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8; +pub const FS_MAX_KEY_SIZE: u32 = 64; +pub const MS_RDONLY: u32 = 1; +pub const MS_NOSUID: u32 = 2; +pub const MS_NODEV: u32 = 4; +pub const MS_NOEXEC: u32 = 8; +pub const MS_SYNCHRONOUS: u32 = 16; +pub const MS_REMOUNT: u32 = 32; +pub const MS_MANDLOCK: u32 = 64; +pub const MS_DIRSYNC: u32 = 128; +pub const MS_NOSYMFOLLOW: u32 = 256; +pub const MS_NOATIME: u32 = 1024; +pub const MS_NODIRATIME: u32 = 2048; +pub const MS_BIND: u32 = 4096; +pub const MS_MOVE: u32 = 8192; +pub const MS_REC: u32 = 16384; +pub const MS_VERBOSE: u32 = 32768; +pub const MS_SILENT: u32 = 32768; +pub const MS_POSIXACL: u32 = 65536; +pub const MS_UNBINDABLE: u32 = 131072; +pub const MS_PRIVATE: u32 = 262144; +pub const MS_SLAVE: u32 = 524288; +pub const MS_SHARED: u32 = 1048576; +pub const MS_RELATIME: u32 = 2097152; +pub const MS_KERNMOUNT: u32 = 4194304; +pub const MS_I_VERSION: u32 = 8388608; +pub const MS_STRICTATIME: u32 = 16777216; +pub const MS_LAZYTIME: u32 = 33554432; +pub const MS_SUBMOUNT: u32 = 67108864; +pub const MS_NOREMOTELOCK: u32 = 134217728; +pub const MS_NOSEC: u32 = 268435456; +pub const MS_BORN: u32 = 536870912; +pub const MS_ACTIVE: u32 = 1073741824; +pub const MS_NOUSER: u32 = 2147483648; +pub const MS_RMT_MASK: u32 = 41943121; +pub const MS_MGC_VAL: u32 = 3236757504; +pub const MS_MGC_MSK: u32 = 4294901760; +pub const OPEN_TREE_CLONE: u32 = 1; +pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; +pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; +pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; +pub const MOVE_MOUNT_T_SYMLINKS: u32 = 16; +pub const MOVE_MOUNT_T_AUTOMOUNTS: u32 = 32; +pub const MOVE_MOUNT_T_EMPTY_PATH: u32 = 64; +pub const MOVE_MOUNT_SET_GROUP: u32 = 256; +pub const MOVE_MOUNT_BENEATH: u32 = 512; +pub const MOVE_MOUNT__MASK: u32 = 887; +pub const FSOPEN_CLOEXEC: u32 = 1; +pub const FSPICK_CLOEXEC: u32 = 1; +pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; +pub const FSPICK_NO_AUTOMOUNT: u32 = 4; +pub const FSPICK_EMPTY_PATH: u32 = 8; +pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const MOUNT_ATTR_RDONLY: u32 = 1; +pub const MOUNT_ATTR_NOSUID: u32 = 2; +pub const MOUNT_ATTR_NODEV: u32 = 4; +pub const MOUNT_ATTR_NOEXEC: u32 = 8; +pub const MOUNT_ATTR__ATIME: u32 = 112; +pub const MOUNT_ATTR_RELATIME: u32 = 0; +pub const MOUNT_ATTR_NOATIME: u32 = 16; +pub const MOUNT_ATTR_STRICTATIME: u32 = 32; +pub const MOUNT_ATTR_NODIRATIME: u32 = 128; +pub const MOUNT_ATTR_IDMAP: u32 = 1048576; +pub const MOUNT_ATTR_NOSYMFOLLOW: u32 = 2097152; +pub const MOUNT_ATTR_SIZE_VER0: u32 = 32; +pub const MNT_ID_REQ_SIZE_VER0: u32 = 24; +pub const MNT_ID_REQ_SIZE_VER1: u32 = 32; +pub const STATMOUNT_SB_BASIC: u32 = 1; +pub const STATMOUNT_MNT_BASIC: u32 = 2; +pub const STATMOUNT_PROPAGATE_FROM: u32 = 4; +pub const STATMOUNT_MNT_ROOT: u32 = 8; +pub const STATMOUNT_MNT_POINT: u32 = 16; +pub const STATMOUNT_FS_TYPE: u32 = 32; +pub const STATMOUNT_MNT_NS_ID: u32 = 64; +pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; +pub const STATMOUNT_SUPPORTED_MASK: u32 = 4096; +pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; +pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; +pub const LSMT_ROOT: i32 = -1; +pub const LISTMOUNT_REVERSE: u32 = 1; +pub const INR_OPEN_CUR: u32 = 1024; +pub const INR_OPEN_MAX: u32 = 4096; +pub const BLOCK_SIZE_BITS: u32 = 10; +pub const BLOCK_SIZE: u32 = 1024; +pub const IO_INTEGRITY_CHK_GUARD: u32 = 1; +pub const IO_INTEGRITY_CHK_REFTAG: u32 = 2; +pub const IO_INTEGRITY_CHK_APPTAG: u32 = 4; +pub const IO_INTEGRITY_VALID_FLAGS: u32 = 7; +pub const SEEK_SET: u32 = 0; +pub const SEEK_CUR: u32 = 1; +pub const SEEK_END: u32 = 2; +pub const SEEK_DATA: u32 = 3; +pub const SEEK_HOLE: u32 = 4; +pub const SEEK_MAX: u32 = 4; +pub const RENAME_NOREPLACE: u32 = 1; +pub const RENAME_EXCHANGE: u32 = 2; +pub const RENAME_WHITEOUT: u32 = 4; +pub const FILE_DEDUPE_RANGE_SAME: u32 = 0; +pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1; +pub const NR_FILE: u32 = 8192; +pub const FS_XFLAG_REALTIME: u32 = 1; +pub const FS_XFLAG_PREALLOC: u32 = 2; +pub const FS_XFLAG_IMMUTABLE: u32 = 8; +pub const FS_XFLAG_APPEND: u32 = 16; +pub const FS_XFLAG_SYNC: u32 = 32; +pub const FS_XFLAG_NOATIME: u32 = 64; +pub const FS_XFLAG_NODUMP: u32 = 128; +pub const FS_XFLAG_RTINHERIT: u32 = 256; +pub const FS_XFLAG_PROJINHERIT: u32 = 512; +pub const FS_XFLAG_NOSYMLINKS: u32 = 1024; +pub const FS_XFLAG_EXTSIZE: u32 = 2048; +pub const FS_XFLAG_EXTSZINHERIT: u32 = 4096; +pub const FS_XFLAG_NODEFRAG: u32 = 8192; +pub const FS_XFLAG_FILESTREAM: u32 = 16384; +pub const FS_XFLAG_DAX: u32 = 32768; +pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_HASATTR: u32 = 2147483648; +pub const BMAP_IOCTL: u32 = 1; +pub const FSLABEL_MAX: u32 = 256; +pub const FS_SECRM_FL: u32 = 1; +pub const FS_UNRM_FL: u32 = 2; +pub const FS_COMPR_FL: u32 = 4; +pub const FS_SYNC_FL: u32 = 8; +pub const FS_IMMUTABLE_FL: u32 = 16; +pub const FS_APPEND_FL: u32 = 32; +pub const FS_NODUMP_FL: u32 = 64; +pub const FS_NOATIME_FL: u32 = 128; +pub const FS_DIRTY_FL: u32 = 256; +pub const FS_COMPRBLK_FL: u32 = 512; +pub const FS_NOCOMP_FL: u32 = 1024; +pub const FS_ENCRYPT_FL: u32 = 2048; +pub const FS_BTREE_FL: u32 = 4096; +pub const FS_INDEX_FL: u32 = 4096; +pub const FS_IMAGIC_FL: u32 = 8192; +pub const FS_JOURNAL_DATA_FL: u32 = 16384; +pub const FS_NOTAIL_FL: u32 = 32768; +pub const FS_DIRSYNC_FL: u32 = 65536; +pub const FS_TOPDIR_FL: u32 = 131072; +pub const FS_HUGE_FILE_FL: u32 = 262144; +pub const FS_EXTENT_FL: u32 = 524288; +pub const FS_VERITY_FL: u32 = 1048576; +pub const FS_EA_INODE_FL: u32 = 2097152; +pub const FS_EOFBLOCKS_FL: u32 = 4194304; +pub const FS_NOCOW_FL: u32 = 8388608; +pub const FS_DAX_FL: u32 = 33554432; +pub const FS_INLINE_DATA_FL: u32 = 268435456; +pub const FS_PROJINHERIT_FL: u32 = 536870912; +pub const FS_CASEFOLD_FL: u32 = 1073741824; +pub const FS_RESERVED_FL: u32 = 2147483648; +pub const FS_FL_USER_VISIBLE: u32 = 253951; +pub const FS_FL_USER_MODIFIABLE: u32 = 229631; +pub const SYNC_FILE_RANGE_WAIT_BEFORE: u32 = 1; +pub const SYNC_FILE_RANGE_WRITE: u32 = 2; +pub const SYNC_FILE_RANGE_WAIT_AFTER: u32 = 4; +pub const SYNC_FILE_RANGE_WRITE_AND_WAIT: u32 = 7; +pub const PROCFS_IOCTL_MAGIC: u8 = 102u8; +pub const PAGE_IS_WPALLOWED: u32 = 1; +pub const PAGE_IS_WRITTEN: u32 = 2; +pub const PAGE_IS_FILE: u32 = 4; +pub const PAGE_IS_PRESENT: u32 = 8; +pub const PAGE_IS_SWAPPED: u32 = 16; +pub const PAGE_IS_PFNZERO: u32 = 32; +pub const PAGE_IS_HUGE: u32 = 64; +pub const PAGE_IS_SOFT_DIRTY: u32 = 128; +pub const PAGE_IS_GUARD: u32 = 256; +pub const PM_SCAN_WP_MATCHING: u32 = 1; +pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const BTRFS_IOCTL_MAGIC: u32 = 148; +pub const BTRFS_VOL_NAME_MAX: u32 = 255; +pub const BTRFS_LABEL_SIZE: u32 = 256; +pub const BTRFS_PATH_NAME_MAX: u32 = 4087; +pub const BTRFS_DEVICE_PATH_NAME_MAX: u32 = 1024; +pub const BTRFS_SUBVOL_NAME_MAX: u32 = 4039; +pub const BTRFS_SUBVOL_CREATE_ASYNC: u32 = 1; +pub const BTRFS_SUBVOL_RDONLY: u32 = 2; +pub const BTRFS_SUBVOL_QGROUP_INHERIT: u32 = 4; +pub const BTRFS_DEVICE_SPEC_BY_ID: u32 = 8; +pub const BTRFS_SUBVOL_SPEC_BY_ID: u32 = 16; +pub const BTRFS_VOL_ARG_V2_FLAGS_SUPPORTED: u32 = 30; +pub const BTRFS_FSID_SIZE: u32 = 16; +pub const BTRFS_UUID_SIZE: u32 = 16; +pub const BTRFS_UUID_UNPARSED_SIZE: u32 = 37; +pub const BTRFS_QGROUP_LIMIT_MAX_RFER: u32 = 1; +pub const BTRFS_QGROUP_LIMIT_MAX_EXCL: u32 = 2; +pub const BTRFS_QGROUP_LIMIT_RSV_RFER: u32 = 4; +pub const BTRFS_QGROUP_LIMIT_RSV_EXCL: u32 = 8; +pub const BTRFS_QGROUP_LIMIT_RFER_CMPR: u32 = 16; +pub const BTRFS_QGROUP_LIMIT_EXCL_CMPR: u32 = 32; +pub const BTRFS_QGROUP_INHERIT_SET_LIMITS: u32 = 1; +pub const BTRFS_QGROUP_INHERIT_FLAGS_SUPP: u32 = 1; +pub const BTRFS_DEVICE_REMOVE_ARGS_MASK: u32 = 8; +pub const BTRFS_SUBVOL_CREATE_ARGS_MASK: u32 = 6; +pub const BTRFS_SUBVOL_DELETE_ARGS_MASK: u32 = 16; +pub const BTRFS_SCRUB_READONLY: u32 = 1; +pub const BTRFS_SCRUB_SUPPORTED_FLAGS: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_CONT_READING_FROM_SRCDEV_MODE_ALWAYS: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_CONT_READING_FROM_SRCDEV_MODE_AVOID: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_NEVER_STARTED: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_STARTED: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_FINISHED: u32 = 2; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_CANCELED: u32 = 3; +pub const BTRFS_IOCTL_DEV_REPLACE_STATE_SUSPENDED: u32 = 4; +pub const BTRFS_IOCTL_DEV_REPLACE_CMD_START: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_CMD_STATUS: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_CMD_CANCEL: u32 = 2; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_NO_ERROR: u32 = 0; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_NOT_STARTED: u32 = 1; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_ALREADY_STARTED: u32 = 2; +pub const BTRFS_IOCTL_DEV_REPLACE_RESULT_SCRUB_INPROGRESS: u32 = 3; +pub const BTRFS_FS_INFO_FLAG_CSUM_INFO: u32 = 1; +pub const BTRFS_FS_INFO_FLAG_GENERATION: u32 = 2; +pub const BTRFS_FS_INFO_FLAG_METADATA_UUID: u32 = 4; +pub const BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE: u32 = 1; +pub const BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE_VALID: u32 = 2; +pub const BTRFS_FEATURE_COMPAT_RO_VERITY: u32 = 4; +pub const BTRFS_FEATURE_COMPAT_RO_BLOCK_GROUP_TREE: u32 = 8; +pub const BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF: u32 = 1; +pub const BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL: u32 = 2; +pub const BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS: u32 = 4; +pub const BTRFS_FEATURE_INCOMPAT_COMPRESS_LZO: u32 = 8; +pub const BTRFS_FEATURE_INCOMPAT_COMPRESS_ZSTD: u32 = 16; +pub const BTRFS_FEATURE_INCOMPAT_BIG_METADATA: u32 = 32; +pub const BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF: u32 = 64; +pub const BTRFS_FEATURE_INCOMPAT_RAID56: u32 = 128; +pub const BTRFS_FEATURE_INCOMPAT_SKINNY_METADATA: u32 = 256; +pub const BTRFS_FEATURE_INCOMPAT_NO_HOLES: u32 = 512; +pub const BTRFS_FEATURE_INCOMPAT_METADATA_UUID: u32 = 1024; +pub const BTRFS_FEATURE_INCOMPAT_RAID1C34: u32 = 2048; +pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; +pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; +pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; +pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; +pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; +pub const BTRFS_BALANCE_DATA: u32 = 1; +pub const BTRFS_BALANCE_SYSTEM: u32 = 2; +pub const BTRFS_BALANCE_METADATA: u32 = 4; +pub const BTRFS_BALANCE_TYPE_MASK: u32 = 7; +pub const BTRFS_BALANCE_FORCE: u32 = 8; +pub const BTRFS_BALANCE_RESUME: u32 = 16; +pub const BTRFS_BALANCE_ARGS_PROFILES: u32 = 1; +pub const BTRFS_BALANCE_ARGS_USAGE: u32 = 2; +pub const BTRFS_BALANCE_ARGS_DEVID: u32 = 4; +pub const BTRFS_BALANCE_ARGS_DRANGE: u32 = 8; +pub const BTRFS_BALANCE_ARGS_VRANGE: u32 = 16; +pub const BTRFS_BALANCE_ARGS_LIMIT: u32 = 32; +pub const BTRFS_BALANCE_ARGS_LIMIT_RANGE: u32 = 64; +pub const BTRFS_BALANCE_ARGS_STRIPES_RANGE: u32 = 128; +pub const BTRFS_BALANCE_ARGS_USAGE_RANGE: u32 = 1024; +pub const BTRFS_BALANCE_ARGS_MASK: u32 = 1279; +pub const BTRFS_BALANCE_ARGS_CONVERT: u32 = 256; +pub const BTRFS_BALANCE_ARGS_SOFT: u32 = 512; +pub const BTRFS_BALANCE_STATE_RUNNING: u32 = 1; +pub const BTRFS_BALANCE_STATE_PAUSE_REQ: u32 = 2; +pub const BTRFS_BALANCE_STATE_CANCEL_REQ: u32 = 4; +pub const BTRFS_INO_LOOKUP_PATH_MAX: u32 = 4080; +pub const BTRFS_INO_LOOKUP_USER_PATH_MAX: u32 = 3824; +pub const BTRFS_DEFRAG_RANGE_COMPRESS: u32 = 1; +pub const BTRFS_DEFRAG_RANGE_START_IO: u32 = 2; +pub const BTRFS_DEFRAG_RANGE_COMPRESS_LEVEL: u32 = 4; +pub const BTRFS_DEFRAG_RANGE_FLAGS_SUPP: u32 = 7; +pub const BTRFS_SAME_DATA_DIFFERS: u32 = 1; +pub const BTRFS_LOGICAL_INO_ARGS_IGNORE_OFFSET: u32 = 1; +pub const BTRFS_DEV_STATS_RESET: u32 = 1; +pub const BTRFS_QUOTA_CTL_ENABLE: u32 = 1; +pub const BTRFS_QUOTA_CTL_DISABLE: u32 = 2; +pub const BTRFS_QUOTA_CTL_RESCAN__NOTUSED: u32 = 3; +pub const BTRFS_QUOTA_CTL_ENABLE_SIMPLE_QUOTA: u32 = 4; +pub const BTRFS_SEND_FLAG_NO_FILE_DATA: u32 = 1; +pub const BTRFS_SEND_FLAG_OMIT_STREAM_HEADER: u32 = 2; +pub const BTRFS_SEND_FLAG_OMIT_END_CMD: u32 = 4; +pub const BTRFS_SEND_FLAG_VERSION: u32 = 8; +pub const BTRFS_SEND_FLAG_COMPRESSED: u32 = 16; +pub const BTRFS_SEND_FLAG_MASK: u32 = 31; +pub const BTRFS_MAX_ROOTREF_BUFFER_NUM: u32 = 255; +pub const BTRFS_ENCODED_IO_COMPRESSION_NONE: u32 = 0; +pub const BTRFS_ENCODED_IO_COMPRESSION_ZLIB: u32 = 1; +pub const BTRFS_ENCODED_IO_COMPRESSION_ZSTD: u32 = 2; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_4K: u32 = 3; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_8K: u32 = 4; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_16K: u32 = 5; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_32K: u32 = 6; +pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7; +pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8; +pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0; +pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2; +pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3; +pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4; +pub const BTRFS_MAGIC: u64 = 5575266562640200287; +pub const BTRFS_MAX_LEVEL: u32 = 8; +pub const BTRFS_NAME_LEN: u32 = 255; +pub const BTRFS_LINK_MAX: u32 = 65535; +pub const BTRFS_ROOT_TREE_OBJECTID: u32 = 1; +pub const BTRFS_EXTENT_TREE_OBJECTID: u32 = 2; +pub const BTRFS_CHUNK_TREE_OBJECTID: u32 = 3; +pub const BTRFS_DEV_TREE_OBJECTID: u32 = 4; +pub const BTRFS_FS_TREE_OBJECTID: u32 = 5; +pub const BTRFS_ROOT_TREE_DIR_OBJECTID: u32 = 6; +pub const BTRFS_CSUM_TREE_OBJECTID: u32 = 7; +pub const BTRFS_QUOTA_TREE_OBJECTID: u32 = 8; +pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; +pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; +pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; +pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; +pub const BTRFS_BALANCE_OBJECTID: i32 = -4; +pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; +pub const BTRFS_TREE_LOG_OBJECTID: i32 = -6; +pub const BTRFS_TREE_LOG_FIXUP_OBJECTID: i32 = -7; +pub const BTRFS_TREE_RELOC_OBJECTID: i32 = -8; +pub const BTRFS_DATA_RELOC_TREE_OBJECTID: i32 = -9; +pub const BTRFS_EXTENT_CSUM_OBJECTID: i32 = -10; +pub const BTRFS_FREE_SPACE_OBJECTID: i32 = -11; +pub const BTRFS_FREE_INO_OBJECTID: i32 = -12; +pub const BTRFS_MULTIPLE_OBJECTIDS: i32 = -255; +pub const BTRFS_FIRST_FREE_OBJECTID: u32 = 256; +pub const BTRFS_LAST_FREE_OBJECTID: i32 = -256; +pub const BTRFS_FIRST_CHUNK_TREE_OBJECTID: u32 = 256; +pub const BTRFS_DEV_ITEMS_OBJECTID: u32 = 1; +pub const BTRFS_BTREE_INODE_OBJECTID: u32 = 1; +pub const BTRFS_EMPTY_SUBVOL_DIR_OBJECTID: u32 = 2; +pub const BTRFS_DEV_REPLACE_DEVID: u32 = 0; +pub const BTRFS_INODE_ITEM_KEY: u32 = 1; +pub const BTRFS_INODE_REF_KEY: u32 = 12; +pub const BTRFS_INODE_EXTREF_KEY: u32 = 13; +pub const BTRFS_XATTR_ITEM_KEY: u32 = 24; +pub const BTRFS_VERITY_DESC_ITEM_KEY: u32 = 36; +pub const BTRFS_VERITY_MERKLE_ITEM_KEY: u32 = 37; +pub const BTRFS_ORPHAN_ITEM_KEY: u32 = 48; +pub const BTRFS_DIR_LOG_ITEM_KEY: u32 = 60; +pub const BTRFS_DIR_LOG_INDEX_KEY: u32 = 72; +pub const BTRFS_DIR_ITEM_KEY: u32 = 84; +pub const BTRFS_DIR_INDEX_KEY: u32 = 96; +pub const BTRFS_EXTENT_DATA_KEY: u32 = 108; +pub const BTRFS_EXTENT_CSUM_KEY: u32 = 128; +pub const BTRFS_ROOT_ITEM_KEY: u32 = 132; +pub const BTRFS_ROOT_BACKREF_KEY: u32 = 144; +pub const BTRFS_ROOT_REF_KEY: u32 = 156; +pub const BTRFS_EXTENT_ITEM_KEY: u32 = 168; +pub const BTRFS_METADATA_ITEM_KEY: u32 = 169; +pub const BTRFS_EXTENT_OWNER_REF_KEY: u32 = 172; +pub const BTRFS_TREE_BLOCK_REF_KEY: u32 = 176; +pub const BTRFS_EXTENT_DATA_REF_KEY: u32 = 178; +pub const BTRFS_SHARED_BLOCK_REF_KEY: u32 = 182; +pub const BTRFS_SHARED_DATA_REF_KEY: u32 = 184; +pub const BTRFS_BLOCK_GROUP_ITEM_KEY: u32 = 192; +pub const BTRFS_FREE_SPACE_INFO_KEY: u32 = 198; +pub const BTRFS_FREE_SPACE_EXTENT_KEY: u32 = 199; +pub const BTRFS_FREE_SPACE_BITMAP_KEY: u32 = 200; +pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; +pub const BTRFS_DEV_ITEM_KEY: u32 = 216; +pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; +pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; +pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; +pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; +pub const BTRFS_QGROUP_RELATION_KEY: u32 = 246; +pub const BTRFS_BALANCE_ITEM_KEY: u32 = 248; +pub const BTRFS_TEMPORARY_ITEM_KEY: u32 = 248; +pub const BTRFS_DEV_STATS_KEY: u32 = 249; +pub const BTRFS_PERSISTENT_ITEM_KEY: u32 = 249; +pub const BTRFS_DEV_REPLACE_KEY: u32 = 250; +pub const BTRFS_UUID_KEY_SUBVOL: u32 = 251; +pub const BTRFS_UUID_KEY_RECEIVED_SUBVOL: u32 = 252; +pub const BTRFS_STRING_ITEM_KEY: u32 = 253; +pub const BTRFS_MAX_METADATA_BLOCKSIZE: u32 = 65536; +pub const BTRFS_CSUM_SIZE: u32 = 32; +pub const BTRFS_FT_UNKNOWN: u32 = 0; +pub const BTRFS_FT_REG_FILE: u32 = 1; +pub const BTRFS_FT_DIR: u32 = 2; +pub const BTRFS_FT_CHRDEV: u32 = 3; +pub const BTRFS_FT_BLKDEV: u32 = 4; +pub const BTRFS_FT_FIFO: u32 = 5; +pub const BTRFS_FT_SOCK: u32 = 6; +pub const BTRFS_FT_SYMLINK: u32 = 7; +pub const BTRFS_FT_XATTR: u32 = 8; +pub const BTRFS_FT_MAX: u32 = 9; +pub const BTRFS_FT_ENCRYPTED: u32 = 128; +pub const BTRFS_INODE_NODATASUM: u32 = 1; +pub const BTRFS_INODE_NODATACOW: u32 = 2; +pub const BTRFS_INODE_READONLY: u32 = 4; +pub const BTRFS_INODE_NOCOMPRESS: u32 = 8; +pub const BTRFS_INODE_PREALLOC: u32 = 16; +pub const BTRFS_INODE_SYNC: u32 = 32; +pub const BTRFS_INODE_IMMUTABLE: u32 = 64; +pub const BTRFS_INODE_APPEND: u32 = 128; +pub const BTRFS_INODE_NODUMP: u32 = 256; +pub const BTRFS_INODE_NOATIME: u32 = 512; +pub const BTRFS_INODE_DIRSYNC: u32 = 1024; +pub const BTRFS_INODE_COMPRESS: u32 = 2048; +pub const BTRFS_INODE_ROOT_ITEM_INIT: u32 = 2147483648; +pub const BTRFS_INODE_FLAG_MASK: u32 = 2147487743; +pub const BTRFS_INODE_RO_VERITY: u32 = 1; +pub const BTRFS_INODE_RO_FLAG_MASK: u32 = 1; +pub const BTRFS_SYSTEM_CHUNK_ARRAY_SIZE: u32 = 2048; +pub const BTRFS_NUM_BACKUP_ROOTS: u32 = 4; +pub const BTRFS_FREE_SPACE_EXTENT: u32 = 1; +pub const BTRFS_FREE_SPACE_BITMAP: u32 = 2; +pub const BTRFS_HEADER_FLAG_WRITTEN: u32 = 1; +pub const BTRFS_HEADER_FLAG_RELOC: u32 = 2; +pub const BTRFS_SUPER_FLAG_ERROR: u32 = 4; +pub const BTRFS_SUPER_FLAG_SEEDING: u64 = 4294967296; +pub const BTRFS_SUPER_FLAG_METADUMP: u64 = 8589934592; +pub const BTRFS_SUPER_FLAG_METADUMP_V2: u64 = 17179869184; +pub const BTRFS_SUPER_FLAG_CHANGING_FSID: u64 = 34359738368; +pub const BTRFS_SUPER_FLAG_CHANGING_FSID_V2: u64 = 68719476736; +pub const BTRFS_SUPER_FLAG_CHANGING_BG_TREE: u64 = 274877906944; +pub const BTRFS_SUPER_FLAG_CHANGING_DATA_CSUM: u64 = 549755813888; +pub const BTRFS_SUPER_FLAG_CHANGING_META_CSUM: u64 = 1099511627776; +pub const BTRFS_EXTENT_FLAG_DATA: u32 = 1; +pub const BTRFS_EXTENT_FLAG_TREE_BLOCK: u32 = 2; +pub const BTRFS_BLOCK_FLAG_FULL_BACKREF: u32 = 256; +pub const BTRFS_BACKREF_REV_MAX: u32 = 256; +pub const BTRFS_BACKREF_REV_SHIFT: u32 = 56; +pub const BTRFS_OLD_BACKREF_REV: u32 = 0; +pub const BTRFS_MIXED_BACKREF_REV: u32 = 1; +pub const BTRFS_EXTENT_FLAG_SUPER: u64 = 281474976710656; +pub const BTRFS_ROOT_SUBVOL_RDONLY: u32 = 1; +pub const BTRFS_ROOT_SUBVOL_DEAD: u64 = 281474976710656; +pub const BTRFS_DEV_REPLACE_ITEM_CONT_READING_FROM_SRCDEV_MODE_ALWAYS: u32 = 0; +pub const BTRFS_DEV_REPLACE_ITEM_CONT_READING_FROM_SRCDEV_MODE_AVOID: u32 = 1; +pub const BTRFS_BLOCK_GROUP_DATA: u32 = 1; +pub const BTRFS_BLOCK_GROUP_SYSTEM: u32 = 2; +pub const BTRFS_BLOCK_GROUP_METADATA: u32 = 4; +pub const BTRFS_BLOCK_GROUP_RAID0: u32 = 8; +pub const BTRFS_BLOCK_GROUP_RAID1: u32 = 16; +pub const BTRFS_BLOCK_GROUP_DUP: u32 = 32; +pub const BTRFS_BLOCK_GROUP_RAID10: u32 = 64; +pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; +pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; +pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; +pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; +pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; +pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; +pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; +pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; +pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; +pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; +pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; +pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; +pub const BTRFS_QGROUP_STATUS_FLAG_INCONSISTENT: u32 = 4; +pub const BTRFS_QGROUP_STATUS_FLAG_SIMPLE_MODE: u32 = 8; +pub const BTRFS_QGROUP_STATUS_FLAGS_MASK: u32 = 15; +pub const BTRFS_QGROUP_STATUS_VERSION: u32 = 1; +pub const BTRFS_FILE_EXTENT_INLINE: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_FILE_EXTENT_INLINE; +pub const BTRFS_FILE_EXTENT_REG: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_FILE_EXTENT_REG; +pub const BTRFS_FILE_EXTENT_PREALLOC: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_FILE_EXTENT_PREALLOC; +pub const BTRFS_NR_FILE_EXTENT_TYPES: _bindgen_ty_1 = _bindgen_ty_1::BTRFS_NR_FILE_EXTENT_TYPES; +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum fsconfig_command { +FSCONFIG_SET_FLAG = 0, +FSCONFIG_SET_STRING = 1, +FSCONFIG_SET_BINARY = 2, +FSCONFIG_SET_PATH = 3, +FSCONFIG_SET_PATH_EMPTY = 4, +FSCONFIG_SET_FD = 5, +FSCONFIG_CMD_CREATE = 6, +FSCONFIG_CMD_RECONFIGURE = 7, +FSCONFIG_CMD_CREATE_EXCL = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum procmap_query_flags { +PROCMAP_QUERY_VMA_READABLE = 1, +PROCMAP_QUERY_VMA_WRITABLE = 2, +PROCMAP_QUERY_VMA_EXECUTABLE = 4, +PROCMAP_QUERY_VMA_SHARED = 8, +PROCMAP_QUERY_COVERING_OR_NEXT_VMA = 16, +PROCMAP_QUERY_FILE_BACKED_VMA = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum btrfs_dev_stat_values { +BTRFS_DEV_STAT_WRITE_ERRS = 0, +BTRFS_DEV_STAT_READ_ERRS = 1, +BTRFS_DEV_STAT_FLUSH_ERRS = 2, +BTRFS_DEV_STAT_CORRUPTION_ERRS = 3, +BTRFS_DEV_STAT_GENERATION_ERRS = 4, +BTRFS_DEV_STAT_VALUES_MAX = 5, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum btrfs_err_code { +BTRFS_ERROR_DEV_RAID1_MIN_NOT_MET = 1, +BTRFS_ERROR_DEV_RAID10_MIN_NOT_MET = 2, +BTRFS_ERROR_DEV_RAID5_MIN_NOT_MET = 3, +BTRFS_ERROR_DEV_RAID6_MIN_NOT_MET = 4, +BTRFS_ERROR_DEV_TGT_REPLACE = 5, +BTRFS_ERROR_DEV_MISSING_NOT_FOUND = 6, +BTRFS_ERROR_DEV_ONLY_WRITABLE = 7, +BTRFS_ERROR_DEV_EXCL_RUN_IN_PROGRESS = 8, +BTRFS_ERROR_DEV_RAID1C3_MIN_NOT_MET = 9, +BTRFS_ERROR_DEV_RAID1C4_MIN_NOT_MET = 10, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum btrfs_csum_type { +BTRFS_CSUM_TYPE_CRC32 = 0, +BTRFS_CSUM_TYPE_XXHASH = 1, +BTRFS_CSUM_TYPE_SHA256 = 2, +BTRFS_CSUM_TYPE_BLAKE2 = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { +BTRFS_FILE_EXTENT_INLINE = 0, +BTRFS_FILE_EXTENT_REG = 1, +BTRFS_FILE_EXTENT_PREALLOC = 2, +BTRFS_NR_FILE_EXTENT_TYPES = 3, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_get_policy_ex_arg__bindgen_ty_1 { +pub version: __u8, +pub v1: fscrypt_policy_v1, +pub v2: fscrypt_policy_v2, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union fscrypt_key_specifier__bindgen_ty_1 { +pub __reserved: [__u8; 32usize], +pub descriptor: [__u8; 8usize], +pub identifier: [__u8; 16usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { +pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, +pub unused: [__u64; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_vol_args_v2__bindgen_ty_2 { +pub name: [crate::ctypes::c_char; 4040usize], +pub devid: __u64, +pub subvolid: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_dev_replace_args__bindgen_ty_1 { +pub start: btrfs_ioctl_dev_replace_start_params, +pub status: btrfs_ioctl_dev_replace_status_params, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_balance_args__bindgen_ty_1 { +pub usage: __u64, +pub __bindgen_anon_1: btrfs_balance_args__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_balance_args__bindgen_ty_2 { +pub limit: __u64, +pub __bindgen_anon_1: btrfs_balance_args__bindgen_ty_2__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_ioctl_defrag_range_args__bindgen_ty_1 { +pub compress_type: __u32, +pub compress: btrfs_ioctl_defrag_range_args__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_disk_balance_args__bindgen_ty_1 { +pub usage: __le64, +pub __bindgen_anon_1: btrfs_disk_balance_args__bindgen_ty_1__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union btrfs_disk_balance_args__bindgen_ty_2 { +pub limit: __le64, +pub __bindgen_anon_1: btrfs_disk_balance_args__bindgen_ty_2__bindgen_ty_1, +} +impl __IncompleteArrayField { +#[inline] +pub const fn new() -> Self { +__IncompleteArrayField(::core::marker::PhantomData, []) +} +#[inline] +pub fn as_ptr(&self) -> *const T { +self as *const _ as *const T +} +#[inline] +pub fn as_mut_ptr(&mut self) -> *mut T { +self as *mut _ as *mut T +} +#[inline] +pub unsafe fn as_slice(&self, len: usize) -> &[T] { +::core::slice::from_raw_parts(self.as_ptr(), len) +} +#[inline] +pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { +::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) +} +} +impl ::core::fmt::Debug for __IncompleteArrayField { +fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { +fmt.write_str("__IncompleteArrayField") +} +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/errno.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/errno.rs new file mode 100644 index 0000000000000000000000000000000000000000..48eaf61f93450ac4c0b622351a597022885ad4bb --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/linux-raw-sys-0.11.0/src/x86/errno.rs @@ -0,0 +1,135 @@ +/* automatically generated by rust-bindgen 0.72.1 */ + +pub const EPERM: u32 = 1; +pub const ENOENT: u32 = 2; +pub const ESRCH: u32 = 3; +pub const EINTR: u32 = 4; +pub const EIO: u32 = 5; +pub const ENXIO: u32 = 6; +pub const E2BIG: u32 = 7; +pub const ENOEXEC: u32 = 8; +pub const EBADF: u32 = 9; +pub const ECHILD: u32 = 10; +pub const EAGAIN: u32 = 11; +pub const ENOMEM: u32 = 12; +pub const EACCES: u32 = 13; +pub const EFAULT: u32 = 14; +pub const ENOTBLK: u32 = 15; +pub const EBUSY: u32 = 16; +pub const EEXIST: u32 = 17; +pub const EXDEV: u32 = 18; +pub const ENODEV: u32 = 19; +pub const ENOTDIR: u32 = 20; +pub const EISDIR: u32 = 21; +pub const EINVAL: u32 = 22; +pub const ENFILE: u32 = 23; +pub const EMFILE: u32 = 24; +pub const ENOTTY: u32 = 25; +pub const ETXTBSY: u32 = 26; +pub const EFBIG: u32 = 27; +pub const ENOSPC: u32 = 28; +pub const ESPIPE: u32 = 29; +pub const EROFS: u32 = 30; +pub const EMLINK: u32 = 31; +pub const EPIPE: u32 = 32; +pub const EDOM: u32 = 33; +pub const ERANGE: u32 = 34; +pub const EDEADLK: u32 = 35; +pub const ENAMETOOLONG: u32 = 36; +pub const ENOLCK: u32 = 37; +pub const ENOSYS: u32 = 38; +pub const ENOTEMPTY: u32 = 39; +pub const ELOOP: u32 = 40; +pub const EWOULDBLOCK: u32 = 11; +pub const ENOMSG: u32 = 42; +pub const EIDRM: u32 = 43; +pub const ECHRNG: u32 = 44; +pub const EL2NSYNC: u32 = 45; +pub const EL3HLT: u32 = 46; +pub const EL3RST: u32 = 47; +pub const ELNRNG: u32 = 48; +pub const EUNATCH: u32 = 49; +pub const ENOCSI: u32 = 50; +pub const EL2HLT: u32 = 51; +pub const EBADE: u32 = 52; +pub const EBADR: u32 = 53; +pub const EXFULL: u32 = 54; +pub const ENOANO: u32 = 55; +pub const EBADRQC: u32 = 56; +pub const EBADSLT: u32 = 57; +pub const EDEADLOCK: u32 = 35; +pub const EBFONT: u32 = 59; +pub const ENOSTR: u32 = 60; +pub const ENODATA: u32 = 61; +pub const ETIME: u32 = 62; +pub const ENOSR: u32 = 63; +pub const ENONET: u32 = 64; +pub const ENOPKG: u32 = 65; +pub const EREMOTE: u32 = 66; +pub const ENOLINK: u32 = 67; +pub const EADV: u32 = 68; +pub const ESRMNT: u32 = 69; +pub const ECOMM: u32 = 70; +pub const EPROTO: u32 = 71; +pub const EMULTIHOP: u32 = 72; +pub const EDOTDOT: u32 = 73; +pub const EBADMSG: u32 = 74; +pub const EOVERFLOW: u32 = 75; +pub const ENOTUNIQ: u32 = 76; +pub const EBADFD: u32 = 77; +pub const EREMCHG: u32 = 78; +pub const ELIBACC: u32 = 79; +pub const ELIBBAD: u32 = 80; +pub const ELIBSCN: u32 = 81; +pub const ELIBMAX: u32 = 82; +pub const ELIBEXEC: u32 = 83; +pub const EILSEQ: u32 = 84; +pub const ERESTART: u32 = 85; +pub const ESTRPIPE: u32 = 86; +pub const EUSERS: u32 = 87; +pub const ENOTSOCK: u32 = 88; +pub const EDESTADDRREQ: u32 = 89; +pub const EMSGSIZE: u32 = 90; +pub const EPROTOTYPE: u32 = 91; +pub const ENOPROTOOPT: u32 = 92; +pub const EPROTONOSUPPORT: u32 = 93; +pub const ESOCKTNOSUPPORT: u32 = 94; +pub const EOPNOTSUPP: u32 = 95; +pub const EPFNOSUPPORT: u32 = 96; +pub const EAFNOSUPPORT: u32 = 97; +pub const EADDRINUSE: u32 = 98; +pub const EADDRNOTAVAIL: u32 = 99; +pub const ENETDOWN: u32 = 100; +pub const ENETUNREACH: u32 = 101; +pub const ENETRESET: u32 = 102; +pub const ECONNABORTED: u32 = 103; +pub const ECONNRESET: u32 = 104; +pub const ENOBUFS: u32 = 105; +pub const EISCONN: u32 = 106; +pub const ENOTCONN: u32 = 107; +pub const ESHUTDOWN: u32 = 108; +pub const ETOOMANYREFS: u32 = 109; +pub const ETIMEDOUT: u32 = 110; +pub const ECONNREFUSED: u32 = 111; +pub const EHOSTDOWN: u32 = 112; +pub const EHOSTUNREACH: u32 = 113; +pub const EALREADY: u32 = 114; +pub const EINPROGRESS: u32 = 115; +pub const ESTALE: u32 = 116; +pub const EUCLEAN: u32 = 117; +pub const ENOTNAM: u32 = 118; +pub const ENAVAIL: u32 = 119; +pub const EISNAM: u32 = 120; +pub const EREMOTEIO: u32 = 121; +pub const EDQUOT: u32 = 122; +pub const ENOMEDIUM: u32 = 123; +pub const EMEDIUMTYPE: u32 = 124; +pub const ECANCELED: u32 = 125; +pub const ENOKEY: u32 = 126; +pub const EKEYEXPIRED: u32 = 127; +pub const EKEYREVOKED: u32 = 128; +pub const EKEYREJECTED: u32 = 129; +pub const EOWNERDEAD: u32 = 130; +pub const ENOTRECOVERABLE: u32 = 131; +pub const ERFKILL: u32 = 132; +pub const EHWPOISON: u32 = 133; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/benches/benches/data.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/benches/benches/data.rs new file mode 100644 index 0000000000000000000000000000000000000000..22dc9f4d4bee544bed04cef3c4c2d19285de74ec --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/benches/benches/data.rs @@ -0,0 +1,37 @@ +use criterion::{criterion_group, Criterion}; +use plotters::data::Quartiles; + +struct Lcg { + state: u32, +} + +impl Lcg { + fn new() -> Lcg { + Lcg { state: 0 } + } +} + +impl Iterator for Lcg { + type Item = u32; + + fn next(&mut self) -> Option { + self.state = self.state.wrapping_mul(1_103_515_245).wrapping_add(12_345); + self.state %= 1 << 31; + Some(self.state) + } +} + +fn quartiles_calc(c: &mut Criterion) { + let src: Vec = Lcg::new().take(100000).collect(); + c.bench_function("data::quartiles_calc", |b| { + b.iter(|| { + Quartiles::new(&src); + }) + }); +} + +criterion_group! { + name = quartiles_group; + config = Criterion::default().sample_size(10); + targets = quartiles_calc +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/benches/benches/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/benches/benches/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..7a345e4c61c8fa206448791b718250828e697794 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/benches/benches/mod.rs @@ -0,0 +1 @@ +pub mod data; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/context/cartesian2d/draw_impl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/context/cartesian2d/draw_impl.rs new file mode 100644 index 0000000000000000000000000000000000000000..174527378283580232d69cc897c61ed963cd5f68 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/context/cartesian2d/draw_impl.rs @@ -0,0 +1,369 @@ +use std::ops::Range; + +use plotters_backend::DrawingBackend; + +use crate::chart::ChartContext; +use crate::coord::{ + cartesian::{Cartesian2d, MeshLine}, + ranged1d::{KeyPointHint, Ranged}, + Shift, +}; +use crate::drawing::{DrawingArea, DrawingAreaErrorKind}; +use crate::element::PathElement; +use crate::style::{ + text_anchor::{HPos, Pos, VPos}, + FontTransform, ShapeStyle, TextStyle, +}; + +impl<'a, DB: DrawingBackend, X: Ranged, Y: Ranged> ChartContext<'a, DB, Cartesian2d> { + /// The actual function that draws the mesh lines. + /// It also returns the label that suppose to be there. + #[allow(clippy::type_complexity)] + fn draw_mesh_lines( + &mut self, + (r, c): (YH, XH), + (x_mesh, y_mesh): (bool, bool), + mesh_line_style: &ShapeStyle, + mut fmt_label: FmtLabel, + ) -> Result<(Vec<(i32, String)>, Vec<(i32, String)>), DrawingAreaErrorKind> + where + FmtLabel: FnMut(&X, &Y, &MeshLine) -> Option, + { + let mut x_labels = vec![]; + let mut y_labels = vec![]; + let xr = self.drawing_area.as_coord_spec().x_spec(); + let yr = self.drawing_area.as_coord_spec().y_spec(); + self.drawing_area.draw_mesh( + |b, l| { + let draw = match l { + MeshLine::XMesh((x, _), _, _) => { + if let Some(label_text) = fmt_label(xr, yr, &l) { + x_labels.push((x, label_text)); + } + x_mesh + } + MeshLine::YMesh((_, y), _, _) => { + if let Some(label_text) = fmt_label(xr, yr, &l) { + y_labels.push((y, label_text)); + } + y_mesh + } + }; + if draw { + l.draw(b, mesh_line_style) + } else { + Ok(()) + } + }, + r, + c, + )?; + Ok((x_labels, y_labels)) + } + + fn draw_axis( + &self, + area: &DrawingArea, + axis_style: Option<&ShapeStyle>, + orientation: (i16, i16), + inward_labels: bool, + ) -> Result, DrawingAreaErrorKind> { + let (x0, y0) = self.drawing_area.get_base_pixel(); + let (tw, th) = area.dim_in_pixel(); + + let mut axis_range = if orientation.0 == 0 { + self.drawing_area.get_x_axis_pixel_range() + } else { + self.drawing_area.get_y_axis_pixel_range() + }; + + // At this point, the coordinate system tells us the pixel range after the translation. + // However, we need to use the logic coordinate system for drawing. + if orientation.0 == 0 { + axis_range.start -= x0; + axis_range.end -= x0; + } else { + axis_range.start -= y0; + axis_range.end -= y0; + } + + if let Some(axis_style) = axis_style { + let mut x0 = if orientation.0 > 0 { 0 } else { tw as i32 - 1 }; + let mut y0 = if orientation.1 > 0 { 0 } else { th as i32 - 1 }; + let mut x1 = if orientation.0 >= 0 { 0 } else { tw as i32 - 1 }; + let mut y1 = if orientation.1 >= 0 { 0 } else { th as i32 - 1 }; + + if inward_labels { + if orientation.0 == 0 { + if y0 == 0 { + y0 = th as i32 - 1; + y1 = th as i32 - 1; + } else { + y0 = 0; + y1 = 0; + } + } else if x0 == 0 { + x0 = tw as i32 - 1; + x1 = tw as i32 - 1; + } else { + x0 = 0; + x1 = 0; + } + } + + if orientation.0 == 0 { + x0 = axis_range.start; + x1 = axis_range.end; + } else { + y0 = axis_range.start; + y1 = axis_range.end; + } + + area.draw(&PathElement::new(vec![(x0, y0), (x1, y1)], *axis_style))?; + } + + Ok(axis_range) + } + + // TODO: consider make this function less complicated + #[allow(clippy::too_many_arguments)] + #[allow(clippy::cognitive_complexity)] + fn draw_axis_and_labels( + &self, + area: Option<&DrawingArea>, + axis_style: Option<&ShapeStyle>, + labels: &[(i32, String)], + label_style: &TextStyle, + label_offset: i32, + orientation: (i16, i16), + axis_desc: Option<(&str, &TextStyle)>, + tick_size: i32, + ) -> Result<(), DrawingAreaErrorKind> { + let area = if let Some(target) = area { + target + } else { + return Ok(()); + }; + + let (x0, y0) = self.drawing_area.get_base_pixel(); + let (tw, th) = area.dim_in_pixel(); + + /* This is the minimal distance from the axis to the box of the labels */ + let label_dist = tick_size.abs() * 2; + + /* Draw the axis and get the axis range so that we can do further label + * and tick mark drawing */ + let axis_range = self.draw_axis(area, axis_style, orientation, tick_size < 0)?; + + /* To make the right label area looks nice, it's a little bit tricky, since for a that is + * very long, we actually prefer left alignment instead of right alignment. + * Otherwise, the right alignment looks better. So we estimate the max and min label width + * So that we are able decide if we should apply right alignment for the text. */ + let label_width: Vec<_> = labels + .iter() + .map(|(_, text)| { + if orientation.0 > 0 && orientation.1 == 0 && tick_size >= 0 { + self.drawing_area + .estimate_text_size(text, label_style) + .map(|(w, _)| w) + .unwrap_or(0) as i32 + } else { + // Don't ever do the layout estimationfor the drawing area that is either not + // the right one or the tick mark is inward. + 0 + } + }) + .collect(); + + let min_width = *label_width.iter().min().unwrap_or(&1).max(&1); + let max_width = *label_width + .iter() + .filter(|&&x| x < min_width * 2) + .max() + .unwrap_or(&min_width); + let right_align_width = (min_width * 2).min(max_width); + + /* Then we need to draw the tick mark and the label */ + for ((p, t), w) in labels.iter().zip(label_width.into_iter()) { + /* Make sure we are actually in the visible range */ + let rp = if orientation.0 == 0 { *p - x0 } else { *p - y0 }; + + if rp < axis_range.start.min(axis_range.end) + || axis_range.end.max(axis_range.start) < rp + { + continue; + } + + let (cx, cy, h_pos, v_pos) = if tick_size >= 0 { + match orientation { + // Right + (dx, dy) if dx > 0 && dy == 0 => { + if w >= right_align_width { + (label_dist, *p - y0, HPos::Left, VPos::Center) + } else { + ( + label_dist + right_align_width, + *p - y0, + HPos::Right, + VPos::Center, + ) + } + } + // Left + (dx, dy) if dx < 0 && dy == 0 => { + (tw as i32 - label_dist, *p - y0, HPos::Right, VPos::Center) + } + // Bottom + (dx, dy) if dx == 0 && dy > 0 => (*p - x0, label_dist, HPos::Center, VPos::Top), + // Top + (dx, dy) if dx == 0 && dy < 0 => { + (*p - x0, th as i32 - label_dist, HPos::Center, VPos::Bottom) + } + _ => panic!("Bug: Invalid orientation specification"), + } + } else { + match orientation { + // Right + (dx, dy) if dx > 0 && dy == 0 => { + (tw as i32 - label_dist, *p - y0, HPos::Right, VPos::Center) + } + // Left + (dx, dy) if dx < 0 && dy == 0 => { + (label_dist, *p - y0, HPos::Left, VPos::Center) + } + // Bottom + (dx, dy) if dx == 0 && dy > 0 => { + (*p - x0, th as i32 - label_dist, HPos::Center, VPos::Bottom) + } + // Top + (dx, dy) if dx == 0 && dy < 0 => (*p - x0, label_dist, HPos::Center, VPos::Top), + _ => panic!("Bug: Invalid orientation specification"), + } + }; + + let (text_x, text_y) = if orientation.0 == 0 { + (cx + label_offset, cy) + } else { + (cx, cy + label_offset) + }; + + let label_style = &label_style.pos(Pos::new(h_pos, v_pos)); + area.draw_text(t, label_style, (text_x, text_y))?; + + if tick_size != 0 { + if let Some(style) = axis_style { + let xmax = tw as i32 - 1; + let ymax = th as i32 - 1; + let (kx0, ky0, kx1, ky1) = if tick_size > 0 { + match orientation { + (dx, dy) if dx > 0 && dy == 0 => (0, *p - y0, tick_size, *p - y0), + (dx, dy) if dx < 0 && dy == 0 => { + (xmax - tick_size, *p - y0, xmax, *p - y0) + } + (dx, dy) if dx == 0 && dy > 0 => (*p - x0, 0, *p - x0, tick_size), + (dx, dy) if dx == 0 && dy < 0 => { + (*p - x0, ymax - tick_size, *p - x0, ymax) + } + _ => panic!("Bug: Invalid orientation specification"), + } + } else { + match orientation { + (dx, dy) if dx > 0 && dy == 0 => { + (xmax, *p - y0, xmax + tick_size, *p - y0) + } + (dx, dy) if dx < 0 && dy == 0 => (0, *p - y0, -tick_size, *p - y0), + (dx, dy) if dx == 0 && dy > 0 => { + (*p - x0, ymax, *p - x0, ymax + tick_size) + } + (dx, dy) if dx == 0 && dy < 0 => (*p - x0, 0, *p - x0, -tick_size), + _ => panic!("Bug: Invalid orientation specification"), + } + }; + let line = PathElement::new(vec![(kx0, ky0), (kx1, ky1)], *style); + area.draw(&line)?; + } + } + } + + if let Some((text, style)) = axis_desc { + let actual_style = if orientation.0 == 0 { + style.clone() + } else if orientation.0 == -1 { + style.transform(FontTransform::Rotate270) + } else { + style.transform(FontTransform::Rotate90) + }; + + let (x0, y0, h_pos, v_pos) = match orientation { + // Right + (dx, dy) if dx > 0 && dy == 0 => (tw, th / 2, HPos::Center, VPos::Top), + // Left + (dx, dy) if dx < 0 && dy == 0 => (0, th / 2, HPos::Center, VPos::Top), + // Bottom + (dx, dy) if dx == 0 && dy > 0 => (tw / 2, th, HPos::Center, VPos::Bottom), + // Top + (dx, dy) if dx == 0 && dy < 0 => (tw / 2, 0, HPos::Center, VPos::Top), + _ => panic!("Bug: Invalid orientation specification"), + }; + + let actual_style = &actual_style.pos(Pos::new(h_pos, v_pos)); + area.draw_text(text, actual_style, (x0 as i32, y0 as i32))?; + } + + Ok(()) + } + + #[allow(clippy::too_many_arguments)] + pub(crate) fn draw_mesh( + &mut self, + (r, c): (YH, XH), + mesh_line_style: &ShapeStyle, + x_label_style: &TextStyle, + y_label_style: &TextStyle, + fmt_label: FmtLabel, + x_mesh: bool, + y_mesh: bool, + x_label_offset: i32, + y_label_offset: i32, + x_axis: bool, + y_axis: bool, + axis_style: &ShapeStyle, + axis_desc_style: &TextStyle, + x_desc: Option, + y_desc: Option, + x_tick_size: [i32; 2], + y_tick_size: [i32; 2], + ) -> Result<(), DrawingAreaErrorKind> + where + FmtLabel: FnMut(&X, &Y, &MeshLine) -> Option, + { + let (x_labels, y_labels) = + self.draw_mesh_lines((r, c), (x_mesh, y_mesh), mesh_line_style, fmt_label)?; + + for idx in 0..2 { + self.draw_axis_and_labels( + self.x_label_area[idx].as_ref(), + if x_axis { Some(axis_style) } else { None }, + &x_labels[..], + x_label_style, + x_label_offset, + (0, -1 + idx as i16 * 2), + x_desc.as_ref().map(|desc| (&desc[..], axis_desc_style)), + x_tick_size[idx], + )?; + + self.draw_axis_and_labels( + self.y_label_area[idx].as_ref(), + if y_axis { Some(axis_style) } else { None }, + &y_labels[..], + y_label_style, + y_label_offset, + (-1 + idx as i16 * 2, 0), + y_desc.as_ref().map(|desc| (&desc[..], axis_desc_style)), + y_tick_size[idx], + )?; + } + + Ok(()) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/context/cartesian2d/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/context/cartesian2d/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..fd1aef2728c43351102f70bccc30f14b50d0ef06 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/context/cartesian2d/mod.rs @@ -0,0 +1,90 @@ +use std::ops::Range; + +use plotters_backend::{BackendCoord, DrawingBackend}; + +use crate::chart::{ChartContext, DualCoordChartContext, MeshStyle}; +use crate::coord::{ + cartesian::Cartesian2d, + ranged1d::{AsRangedCoord, Ranged, ValueFormatter}, + Shift, +}; +use crate::drawing::DrawingArea; + +mod draw_impl; + +impl<'a, DB, XT, YT, X, Y> ChartContext<'a, DB, Cartesian2d> +where + DB: DrawingBackend, + X: Ranged + ValueFormatter, + Y: Ranged + ValueFormatter, +{ + pub(crate) fn is_overlapping_drawing_area( + &self, + area: Option<&DrawingArea>, + ) -> bool { + if let Some(area) = area { + let (x0, y0) = area.get_base_pixel(); + let (w, h) = area.dim_in_pixel(); + let (x1, y1) = (x0 + w as i32, y0 + h as i32); + let (dx0, dy0) = self.drawing_area.get_base_pixel(); + let (w, h) = self.drawing_area.dim_in_pixel(); + let (dx1, dy1) = (dx0 + w as i32, dy0 + h as i32); + + let (ox0, ox1) = (x0.max(dx0), x1.min(dx1)); + let (oy0, oy1) = (y0.max(dy0), y1.min(dy1)); + + ox1 > ox0 && oy1 > oy0 + } else { + false + } + } + + /// Initialize a mesh configuration object and mesh drawing can be finalized by calling + /// the function `MeshStyle::draw`. + pub fn configure_mesh(&mut self) -> MeshStyle<'a, '_, X, Y, DB> { + MeshStyle::new(self) + } +} + +impl<'a, DB: DrawingBackend, X: Ranged, Y: Ranged> ChartContext<'a, DB, Cartesian2d> { + /// Get the range of X axis + pub fn x_range(&self) -> Range { + self.drawing_area.get_x_range() + } + + /// Get range of the Y axis + pub fn y_range(&self) -> Range { + self.drawing_area.get_y_range() + } + + /// Maps the coordinate to the backend coordinate. This is typically used + /// with an interactive chart. + pub fn backend_coord(&self, coord: &(X::ValueType, Y::ValueType)) -> BackendCoord { + self.drawing_area.map_coordinate(coord) + } +} + +impl<'a, DB: DrawingBackend, X: Ranged, Y: Ranged> ChartContext<'a, DB, Cartesian2d> { + /// Convert this chart context into a dual axis chart context and attach a second coordinate spec + /// on the chart context. For more detailed information, see documentation for [struct DualCoordChartContext](struct.DualCoordChartContext.html) + /// + /// - `x_coord`: The coordinate spec for the X axis + /// - `y_coord`: The coordinate spec for the Y axis + /// - **returns** The newly created dual spec chart context + #[allow(clippy::type_complexity)] + pub fn set_secondary_coord( + self, + x_coord: SX, + y_coord: SY, + ) -> DualCoordChartContext< + 'a, + DB, + Cartesian2d, + Cartesian2d, + > { + let mut pixel_range = self.drawing_area.get_pixel_range(); + pixel_range.1 = pixel_range.1.end..pixel_range.1.start; + + DualCoordChartContext::new(self, Cartesian2d::new(x_coord, y_coord, pixel_range)) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/context/cartesian3d/draw_impl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/context/cartesian3d/draw_impl.rs new file mode 100644 index 0000000000000000000000000000000000000000..fcc4c4f7bd89a12cde9dcfc0718a20c20a42cabb --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/context/cartesian3d/draw_impl.rs @@ -0,0 +1,309 @@ +use std::cmp::Ordering; + +use plotters_backend::DrawingBackend; + +use crate::chart::ChartContext; +use crate::coord::{ + cartesian::Cartesian3d, + ranged1d::{KeyPointHint, Ranged}, + CoordTranslate, +}; +use crate::drawing::DrawingAreaErrorKind; +use crate::element::{EmptyElement, PathElement, Polygon, Text}; +use crate::style::{ + text_anchor::{HPos, Pos, VPos}, + ShapeStyle, TextStyle, +}; + +use super::Coord3D; + +pub(crate) struct KeyPoints3d { + pub(crate) x_points: Vec, + pub(crate) y_points: Vec, + pub(crate) z_points: Vec, +} + +impl<'a, DB, X: Ranged, Y: Ranged, Z: Ranged> ChartContext<'a, DB, Cartesian3d> +where + DB: DrawingBackend, + X::ValueType: Clone, + Y::ValueType: Clone, + Z::ValueType: Clone, +{ + pub(crate) fn get_key_points( + &self, + x_hint: XH, + y_hint: YH, + z_hint: ZH, + ) -> KeyPoints3d { + let coord = self.plotting_area().as_coord_spec(); + let x_points = coord.logic_x.key_points(x_hint); + let y_points = coord.logic_y.key_points(y_hint); + let z_points = coord.logic_z.key_points(z_hint); + KeyPoints3d { + x_points, + y_points, + z_points, + } + } + #[allow(clippy::type_complexity)] + pub(crate) fn draw_axis_ticks( + &mut self, + axis: [[Coord3D; 3]; 2], + labels: &[( + [Coord3D; 3], + String, + )], + tick_size: i32, + style: ShapeStyle, + font: TextStyle, + ) -> Result<(), DrawingAreaErrorKind> { + let coord = self.plotting_area().as_coord_spec(); + let begin = coord.translate(&Coord3D::build_coord([ + &axis[0][0], + &axis[0][1], + &axis[0][2], + ])); + let end = coord.translate(&Coord3D::build_coord([ + &axis[1][0], + &axis[1][1], + &axis[1][2], + ])); + let axis_dir = (end.0 - begin.0, end.1 - begin.1); + let (x_range, y_range) = self.plotting_area().get_pixel_range(); + let x_mid = (x_range.start + x_range.end) / 2; + let y_mid = (y_range.start + y_range.end) / 2; + + let x_dir = if begin.0 < x_mid { + (-tick_size, 0) + } else { + (tick_size, 0) + }; + + let y_dir = if begin.1 < y_mid { + (0, -tick_size) + } else { + (0, tick_size) + }; + + let x_score = (x_dir.0 * axis_dir.0 + x_dir.1 * axis_dir.1).abs(); + let y_score = (y_dir.0 * axis_dir.0 + y_dir.1 * axis_dir.1).abs(); + + let dir = if x_score < y_score { x_dir } else { y_dir }; + + for (pos, text) in labels { + let logic_pos = Coord3D::build_coord([&pos[0], &pos[1], &pos[2]]); + let mut font = font.clone(); + + match dir.0.cmp(&0) { + Ordering::Less => font.pos = Pos::new(HPos::Right, VPos::Center), + Ordering::Greater => font.pos = Pos::new(HPos::Left, VPos::Center), + _ => (), + } + + match dir.1.cmp(&0) { + Ordering::Less => font.pos = Pos::new(HPos::Center, VPos::Bottom), + Ordering::Greater => font.pos = Pos::new(HPos::Center, VPos::Top), + _ => (), + } + + let element = EmptyElement::at(logic_pos) + + PathElement::new(vec![(0, 0), dir], style) + + Text::new(text.to_string(), (dir.0 * 2, dir.1 * 2), font); + self.plotting_area().draw(&element)?; + } + Ok(()) + } + #[allow(clippy::type_complexity)] + pub(crate) fn draw_axis( + &mut self, + idx: usize, + panels: &[[[Coord3D; 3]; 2]; 3], + style: ShapeStyle, + ) -> Result< + [[Coord3D; 3]; 2], + DrawingAreaErrorKind, + > { + let coord = self.plotting_area().as_coord_spec(); + let x_range = coord.logic_x.range(); + let y_range = coord.logic_y.range(); + let z_range = coord.logic_z.range(); + + let ranges: [[Coord3D; 2]; 3] = [ + [Coord3D::X(x_range.start), Coord3D::X(x_range.end)], + [Coord3D::Y(y_range.start), Coord3D::Y(y_range.end)], + [Coord3D::Z(z_range.start), Coord3D::Z(z_range.end)], + ]; + + let (start, end) = { + let mut start = [&ranges[0][0], &ranges[1][0], &ranges[2][0]]; + let mut end = [&ranges[0][1], &ranges[1][1], &ranges[2][1]]; + + let mut plan = vec![]; + + for i in 0..3 { + if i == idx { + continue; + } + start[i] = &panels[i][0][i]; + end[i] = &panels[i][0][i]; + for j in 0..3 { + if i != idx && i != j && j != idx { + for k in 0..2 { + start[j] = &panels[i][k][j]; + end[j] = &panels[i][k][j]; + plan.push((start, end)); + } + } + } + } + plan.into_iter() + .min_by_key(|&(s, e)| { + let d = coord.projected_depth(s[0].get_x(), s[1].get_y(), s[2].get_z()); + let d = d + coord.projected_depth(e[0].get_x(), e[1].get_y(), e[2].get_z()); + let (_, y1) = coord.translate(&Coord3D::build_coord(s)); + let (_, y2) = coord.translate(&Coord3D::build_coord(e)); + let y = y1 + y2; + (d, y) + }) + .unwrap() + }; + + self.plotting_area().draw(&PathElement::new( + vec![Coord3D::build_coord(start), Coord3D::build_coord(end)], + style, + ))?; + + Ok([ + [start[0].clone(), start[1].clone(), start[2].clone()], + [end[0].clone(), end[1].clone(), end[2].clone()], + ]) + } + + #[allow(clippy::type_complexity)] + pub(crate) fn draw_axis_panels( + &mut self, + bold_points: &KeyPoints3d, + light_points: &KeyPoints3d, + panel_style: ShapeStyle, + bold_grid_style: ShapeStyle, + light_grid_style: ShapeStyle, + ) -> Result< + [[[Coord3D; 3]; 2]; 3], + DrawingAreaErrorKind, + > { + let mut r_iter = (0..3).map(|idx| { + self.draw_axis_panel( + idx, + bold_points, + light_points, + panel_style, + bold_grid_style, + light_grid_style, + ) + }); + Ok([ + r_iter.next().unwrap()?, + r_iter.next().unwrap()?, + r_iter.next().unwrap()?, + ]) + } + #[allow(clippy::type_complexity)] + fn draw_axis_panel( + &mut self, + idx: usize, + bold_points: &KeyPoints3d, + light_points: &KeyPoints3d, + panel_style: ShapeStyle, + bold_grid_style: ShapeStyle, + light_grid_style: ShapeStyle, + ) -> Result< + [[Coord3D; 3]; 2], + DrawingAreaErrorKind, + > { + let coord = self.plotting_area().as_coord_spec(); + let x_range = coord.logic_x.range(); + let y_range = coord.logic_y.range(); + let z_range = coord.logic_z.range(); + + let ranges: [[Coord3D; 2]; 3] = [ + [Coord3D::X(x_range.start), Coord3D::X(x_range.end)], + [Coord3D::Y(y_range.start), Coord3D::Y(y_range.end)], + [Coord3D::Z(z_range.start), Coord3D::Z(z_range.end)], + ]; + + let (mut panel, start, end) = { + let vert_a = [&ranges[0][0], &ranges[1][0], &ranges[2][0]]; + let mut vert_b = [&ranges[0][1], &ranges[1][1], &ranges[2][1]]; + let mut vert_c = vert_a; + let vert_d = vert_b; + + vert_b[idx] = &ranges[idx][0]; + vert_c[idx] = &ranges[idx][1]; + + let (vert_a, vert_b) = + if coord.projected_depth(vert_a[0].get_x(), vert_a[1].get_y(), vert_a[2].get_z()) + >= coord.projected_depth( + vert_c[0].get_x(), + vert_c[1].get_y(), + vert_c[2].get_z(), + ) + { + (vert_a, vert_b) + } else { + (vert_c, vert_d) + }; + + let mut m = vert_a; + m[(idx + 1) % 3] = vert_b[(idx + 1) % 3]; + let mut n = vert_a; + n[(idx + 2) % 3] = vert_b[(idx + 2) % 3]; + + ( + vec![ + Coord3D::build_coord(vert_a), + Coord3D::build_coord(m), + Coord3D::build_coord(vert_b), + Coord3D::build_coord(n), + ], + vert_a, + vert_b, + ) + }; + self.plotting_area() + .draw(&Polygon::new(panel.clone(), panel_style))?; + panel.push(panel[0].clone()); + self.plotting_area() + .draw(&PathElement::new(panel, bold_grid_style))?; + + for (kps, style) in vec![ + (light_points, light_grid_style), + (bold_points, bold_grid_style), + ] + .into_iter() + { + for idx in (0..3).filter(|&i| i != idx) { + let kps: Vec<_> = match idx { + 0 => kps.x_points.iter().map(|x| Coord3D::X(x.clone())).collect(), + 1 => kps.y_points.iter().map(|y| Coord3D::Y(y.clone())).collect(), + _ => kps.z_points.iter().map(|z| Coord3D::Z(z.clone())).collect(), + }; + for kp in kps.iter() { + let mut kp_start = start; + let mut kp_end = end; + kp_start[idx] = kp; + kp_end[idx] = kp; + self.plotting_area().draw(&PathElement::new( + vec![Coord3D::build_coord(kp_start), Coord3D::build_coord(kp_end)], + style, + ))?; + } + } + } + + Ok([ + [start[0].clone(), start[1].clone(), start[2].clone()], + [end[0].clone(), end[1].clone(), end[2].clone()], + ]) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/context/cartesian3d/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/context/cartesian3d/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..43d74f3857f0899a324c0b489d8ea7bf2f9b3dd0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/chart/context/cartesian3d/mod.rs @@ -0,0 +1,130 @@ +use crate::chart::{axes3d::Axes3dStyle, ChartContext}; +use crate::coord::{ + cartesian::Cartesian3d, + ranged1d::{Ranged, ValueFormatter}, + ranged3d::{ProjectionMatrix, ProjectionMatrixBuilder}, +}; +use plotters_backend::DrawingBackend; + +mod draw_impl; + +#[derive(Clone, Debug)] +pub(crate) enum Coord3D { + X(X), + Y(Y), + Z(Z), +} + +impl Coord3D { + fn get_x(&self) -> &X { + match self { + Coord3D::X(ret) => ret, + _ => panic!("Invalid call!"), + } + } + fn get_y(&self) -> &Y { + match self { + Coord3D::Y(ret) => ret, + _ => panic!("Invalid call!"), + } + } + fn get_z(&self) -> &Z { + match self { + Coord3D::Z(ret) => ret, + _ => panic!("Invalid call!"), + } + } + + fn build_coord([x, y, z]: [&Self; 3]) -> (X, Y, Z) + where + X: Clone, + Y: Clone, + Z: Clone, + { + (x.get_x().clone(), y.get_y().clone(), z.get_z().clone()) + } +} + +impl<'a, DB, X, Y, Z, XT, YT, ZT> ChartContext<'a, DB, Cartesian3d> +where + DB: DrawingBackend, + X: Ranged + ValueFormatter, + Y: Ranged + ValueFormatter, + Z: Ranged + ValueFormatter, +{ + /** + Create an axis configuration object, to set line styles, labels, sizes, etc. + + Default values for axis configuration are set by function `Axes3dStyle::new()`. + + # Example + + ``` + use plotters::prelude::*; + let drawing_area = SVGBackend::new("configure_axes.svg", (300, 200)).into_drawing_area(); + drawing_area.fill(&WHITE).unwrap(); + let mut chart_builder = ChartBuilder::on(&drawing_area); + let mut chart_context = chart_builder.margin_bottom(30).build_cartesian_3d(0.0..4.0, 0.0..3.0, 0.0..2.7).unwrap(); + chart_context.configure_axes().tick_size(8).x_labels(4).y_labels(3).z_labels(2) + .max_light_lines(5).axis_panel_style(GREEN.mix(0.1)).bold_grid_style(BLUE.mix(0.3)) + .light_grid_style(BLUE.mix(0.2)).label_style(("Calibri", 10)) + .x_formatter(&|x| format!("x={x}")).draw().unwrap(); + ``` + + The resulting chart reflects the customizations specified through `configure_axes()`: + + ![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@4c3cef4/apidoc/configure_axes.svg) + + All these customizations are `Axes3dStyle` methods. + + In the chart, `tick_size(8)` produces tick marks 8 pixels long. You can use + `(5u32).percent().max(5).in_pixels(chart.plotting_area()` to tell Plotters to calculate the tick mark + size as a percentage of the dimensions of the figure. See [`crate::style::RelativeSize`] and + [`crate::style::SizeDesc`] for more information. + + `x_labels(4)` specifies a maximum of 4 + tick marks and labels in the X axis. `max_light_lines(5)` specifies a maximum of 5 minor grid lines + between any two tick marks. `axis_panel_style(GREEN.mix(0.1))` specifies the style of the panels in + the background, a light green color. `bold_grid_style(BLUE.mix(0.3))` and `light_grid_style(BLUE.mix(0.2))` + specify the style of the major and minor grid lines, respectively. `label_style()` specifies the text + style of the axis labels, and `x_formatter(|x| format!("x={x}"))` specifies the string format of the X + axis labels. + + # See also + + [`ChartContext::configure_mesh()`], a similar function for 2D plots + */ + pub fn configure_axes(&mut self) -> Axes3dStyle<'a, '_, X, Y, Z, DB> { + Axes3dStyle::new(self) + } +} + +impl<'a, DB, X: Ranged, Y: Ranged, Z: Ranged> ChartContext<'a, DB, Cartesian3d> +where + DB: DrawingBackend, +{ + /// Override the 3D projection matrix. This function allows to override the default projection + /// matrix. + /// - `pf`: A function that takes the default projection matrix configuration and returns the + /// projection matrix. This function will allow you to adjust the pitch, yaw angle and the + /// centeral point of the projection, etc. You can also build a projection matrix which is not + /// relies on the default configuration as well. + pub fn with_projection ProjectionMatrix>( + &mut self, + pf: P, + ) -> &mut Self { + let (actual_x, actual_y) = self.drawing_area.get_pixel_range(); + self.drawing_area + .as_coord_spec_mut() + .set_projection(actual_x, actual_y, pf); + self + } + /// Sets the 3d coordinate pixel range. + pub fn set_3d_pixel_range(&mut self, size: (i32, i32, i32)) -> &mut Self { + let (actual_x, actual_y) = self.drawing_area.get_pixel_range(); + self.drawing_area + .as_coord_spec_mut() + .set_coord_pixel_range(actual_x, actual_y, size); + self + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/combinators/ckps.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/combinators/ckps.rs new file mode 100644 index 0000000000000000000000000000000000000000..402ffd8c364178c2cb5a225435132be681551e16 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/combinators/ckps.rs @@ -0,0 +1,268 @@ +// The customized coordinate combinators. +// This file contains a set of coorindate combinators that allows you determine the +// keypoint by your own code. +use std::ops::Range; + +use crate::coord::ranged1d::{AsRangedCoord, DiscreteRanged, KeyPointHint, Ranged}; + +/// The coordinate decorator that binds a key point vector. +/// Normally, all the ranged coordinate implements its own keypoint algorithm +/// to determine how to render the tick mark and mesh grid. +/// This decorator allows customized tick mark specifiied by vector. +/// See [BindKeyPoints::with_key_points](trait.BindKeyPoints.html#tymethod.with_key_points) +/// for details. +/// Note: For any coordinate spec wrapped by this decorator, the maximum number of labels configured by +/// MeshStyle will be ignored and the key point function will always returns the entire vector +pub struct WithKeyPoints { + inner: Inner, + bold_points: Vec, + light_points: Vec, +} + +impl WithKeyPoints { + /// Specify the light key points, which is used to render the light mesh line + pub fn with_light_points>(mut self, iter: T) -> Self { + self.light_points.clear(); + self.light_points.extend(iter); + self + } + + /// Get a reference to the bold points + pub fn bold_points(&self) -> &[I::ValueType] { + self.bold_points.as_ref() + } + + /// Get a mut reference to the bold points + pub fn bold_points_mut(&mut self) -> &mut [I::ValueType] { + self.bold_points.as_mut() + } + + /// Get a reference to light key points + pub fn light_points(&self) -> &[I::ValueType] { + self.light_points.as_ref() + } + + /// Get a mut reference to the light key points + pub fn light_points_mut(&mut self) -> &mut [I::ValueType] { + self.light_points.as_mut() + } +} + +impl Ranged for WithKeyPoints +where + R::ValueType: Clone, +{ + type ValueType = R::ValueType; + type FormatOption = R::FormatOption; + + fn range(&self) -> Range { + self.inner.range() + } + + fn map(&self, value: &Self::ValueType, limit: (i32, i32)) -> i32 { + self.inner.map(value, limit) + } + + fn key_points(&self, hint: Hint) -> Vec { + if hint.weight().allow_light_points() { + self.light_points.clone() + } else { + self.bold_points.clone() + } + } + + fn axis_pixel_range(&self, limit: (i32, i32)) -> Range { + self.inner.axis_pixel_range(limit) + } +} + +impl DiscreteRanged for WithKeyPoints +where + R::ValueType: Clone, +{ + fn size(&self) -> usize { + self.inner.size() + } + fn index_of(&self, value: &Self::ValueType) -> Option { + self.inner.index_of(value) + } + fn from_index(&self, index: usize) -> Option { + self.inner.from_index(index) + } +} + +/// Bind a existing coordinate spec with a given key points vector. See [WithKeyPoints](struct.WithKeyPoints.html ) for more details. +pub trait BindKeyPoints +where + Self: AsRangedCoord, +{ + /// Bind a existing coordinate spec with a given key points vector. See [WithKeyPoints](struct.WithKeyPoints.html ) for more details. + /// Example: + /// ``` + ///use plotters::prelude::*; + ///use plotters_bitmap::BitMapBackend; + ///let mut buffer = vec![0;1024*768*3]; + /// let root = BitMapBackend::with_buffer(&mut buffer, (1024, 768)).into_drawing_area(); + /// let mut chart = ChartBuilder::on(&root) + /// .build_cartesian_2d( + /// (0..100).with_key_points(vec![1,20,50,90]), // <= This line will make the plot shows 4 tick marks at 1, 20, 50, 90 + /// 0..10 + /// ).unwrap(); + /// chart.configure_mesh().draw().unwrap(); + ///``` + fn with_key_points(self, points: Vec) -> WithKeyPoints { + WithKeyPoints { + inner: self.into(), + bold_points: points, + light_points: vec![], + } + } +} + +impl BindKeyPoints for T {} + +/// The coordinate decorator that allows customized keypoint algorithms. +/// Normally, all the coordinate spec implements its own key point algorithm +/// But this decorator allows you override the pre-defined key point algorithm. +/// +/// To use this decorator, see [BindKeyPointMethod::with_key_point_func](trait.BindKeyPointMethod.html#tymethod.with_key_point_func) +pub struct WithKeyPointMethod { + inner: R, + bold_func: Box Vec>, + light_func: Box Vec>, +} + +/// Bind an existing coordinate spec with a given key points algorithm. See [WithKeyPointMethod](struct.WithKeyMethod.html ) for more details. +pub trait BindKeyPointMethod +where + Self: AsRangedCoord, +{ + /// Bind a existing coordinate spec with a given key points algorithm. See [WithKeyPointMethod](struct.WithKeyMethod.html ) for more details. + /// Example: + /// ``` + ///use plotters::prelude::*; + ///use plotters_bitmap::BitMapBackend; + ///let mut buffer = vec![0;1024*768*3]; + /// let root = BitMapBackend::with_buffer(&mut buffer, (1024, 768)).into_drawing_area(); + /// let mut chart = ChartBuilder::on(&root) + /// .build_cartesian_2d( + /// (0..100).with_key_point_func(|n| (0..100 / n as i32).map(|x| x * 100 / n as i32).collect()), + /// 0..10 + /// ).unwrap(); + /// chart.configure_mesh().draw().unwrap(); + ///``` + fn with_key_point_func Vec + 'static>( + self, + func: F, + ) -> WithKeyPointMethod { + WithKeyPointMethod { + inner: self.into(), + bold_func: Box::new(func), + light_func: Box::new(|_| Vec::new()), + } + } +} + +impl BindKeyPointMethod for T {} + +impl WithKeyPointMethod { + /// Define the light key point algorithm, by default this returns an empty set + pub fn with_light_point_func Vec + 'static>( + mut self, + func: F, + ) -> Self { + self.light_func = Box::new(func); + self + } +} + +impl Ranged for WithKeyPointMethod { + type ValueType = R::ValueType; + type FormatOption = R::FormatOption; + + fn range(&self) -> Range { + self.inner.range() + } + + fn map(&self, value: &Self::ValueType, limit: (i32, i32)) -> i32 { + self.inner.map(value, limit) + } + + fn key_points(&self, hint: Hint) -> Vec { + if hint.weight().allow_light_points() { + (self.light_func)(hint.max_num_points()) + } else { + (self.bold_func)(hint.max_num_points()) + } + } + + fn axis_pixel_range(&self, limit: (i32, i32)) -> Range { + self.inner.axis_pixel_range(limit) + } +} + +impl DiscreteRanged for WithKeyPointMethod { + fn size(&self) -> usize { + self.inner.size() + } + fn index_of(&self, value: &Self::ValueType) -> Option { + self.inner.index_of(value) + } + fn from_index(&self, index: usize) -> Option { + self.inner.from_index(index) + } +} + +#[cfg(test)] +mod test { + use super::*; + use crate::coord::ranged1d::{BoldPoints, LightPoints}; + #[test] + fn test_with_key_points() { + let range = (0..100).with_key_points(vec![1, 2, 3]); + assert_eq!(range.map(&3, (0, 1000)), 30); + assert_eq!(range.range(), 0..100); + assert_eq!(range.key_points(BoldPoints(100)), vec![1, 2, 3]); + assert_eq!(range.key_points(LightPoints::new(100, 100)), vec![]); + let range = range.with_light_points(5..10); + assert_eq!(range.key_points(BoldPoints(10)), vec![1, 2, 3]); + assert_eq!( + range.key_points(LightPoints::new(10, 10)), + (5..10).collect::>() + ); + + assert_eq!(range.size(), 101); + assert_eq!(range.index_of(&10), Some(10)); + assert_eq!(range.from_index(10), Some(10)); + + assert_eq!(range.axis_pixel_range((0, 1000)), 0..1000); + + let mut range = range; + + assert_eq!(range.light_points().len(), 5); + assert_eq!(range.light_points_mut().len(), 5); + assert_eq!(range.bold_points().len(), 3); + assert_eq!(range.bold_points_mut().len(), 3); + } + + #[test] + fn test_with_key_point_method() { + let range = (0..100).with_key_point_func(|_| vec![1, 2, 3]); + assert_eq!(range.map(&3, (0, 1000)), 30); + assert_eq!(range.range(), 0..100); + assert_eq!(range.key_points(BoldPoints(100)), vec![1, 2, 3]); + assert_eq!(range.key_points(LightPoints::new(100, 100)), vec![]); + let range = range.with_light_point_func(|_| (5..10).collect()); + assert_eq!(range.key_points(BoldPoints(10)), vec![1, 2, 3]); + assert_eq!( + range.key_points(LightPoints::new(10, 10)), + (5..10).collect::>() + ); + + assert_eq!(range.size(), 101); + assert_eq!(range.index_of(&10), Some(10)); + assert_eq!(range.from_index(10), Some(10)); + + assert_eq!(range.axis_pixel_range((0, 1000)), 0..1000); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/combinators/group_by.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/combinators/group_by.rs new file mode 100644 index 0000000000000000000000000000000000000000..28e72ee4f6e06a0d9a1c52f7fdfa13ea4ccc42f2 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/combinators/group_by.rs @@ -0,0 +1,118 @@ +use crate::coord::ranged1d::{ + AsRangedCoord, DiscreteRanged, KeyPointHint, NoDefaultFormatting, Ranged, ValueFormatter, +}; +use std::ops::Range; + +/// Grouping the value in the coordinate specification. +/// +/// This combinator doesn't change the coordinate mapping behavior. But it changes how +/// the key point is generated, this coordinate specification will enforce that only the first value in each group +/// can be emitted as the bold key points. +/// +/// This is useful, for example, when we have an X axis is a integer and denotes days. +/// And we are expecting the tick mark denotes weeks, in this way we can make the range +/// spec grouping by 7 elements. +/// With the help of the GroupBy decorator, this can be archived quite easily: +///```rust +///use plotters::prelude::*; +///let mut buf = vec![0;1024*768*3]; +///let area = BitMapBackend::with_buffer(buf.as_mut(), (1024, 768)).into_drawing_area(); +///let chart = ChartBuilder::on(&area) +/// .build_cartesian_2d((0..100).group_by(7), 0..100) +/// .unwrap(); +///``` +/// +/// To apply this combinator, call [ToGroupByRange::group_by](trait.ToGroupByRange.html#tymethod.group_by) method on any discrete coordinate spec. +#[derive(Clone)] +pub struct GroupBy(T, usize); + +/// The trait that provides method `Self::group_by` function which creates a +/// `GroupBy` decorated ranged value. +pub trait ToGroupByRange: AsRangedCoord + Sized +where + Self::CoordDescType: DiscreteRanged, +{ + /// Make a grouping ranged value, see the documentation for `GroupBy` for details. + /// + /// - `value`: The number of values we want to group it + /// - **return**: The newly created grouping range specification + fn group_by(self, value: usize) -> GroupBy<::CoordDescType> { + GroupBy(self.into(), value) + } +} + +impl ToGroupByRange for T where T::CoordDescType: DiscreteRanged {} + +impl DiscreteRanged for GroupBy { + fn size(&self) -> usize { + (self.0.size() + self.1 - 1) / self.1 + } + fn index_of(&self, value: &Self::ValueType) -> Option { + self.0.index_of(value).map(|idx| idx / self.1) + } + fn from_index(&self, index: usize) -> Option { + self.0.from_index(index * self.1) + } +} + +impl + ValueFormatter> ValueFormatter for GroupBy { + fn format(value: &T) -> String { + R::format(value) + } +} + +impl Ranged for GroupBy { + type FormatOption = NoDefaultFormatting; + type ValueType = T::ValueType; + fn map(&self, value: &T::ValueType, limit: (i32, i32)) -> i32 { + self.0.map(value, limit) + } + fn range(&self) -> Range { + self.0.range() + } + // TODO: See issue issue #88 + fn key_points(&self, hint: HintType) -> Vec { + let range = 0..(self.0.size() + self.1) / self.1; + //let logic_range: RangedCoordusize = range.into(); + + let interval = + ((range.end - range.start + hint.bold_points() - 1) / hint.bold_points()).max(1); + let count = (range.end - range.start) / interval; + + let idx_iter = (0..hint.bold_points()).map(|x| x * interval); + + if hint.weight().allow_light_points() && count < hint.bold_points() * 2 { + let outer_ticks = idx_iter; + let outer_tick_size = interval * self.1; + let inner_ticks_per_group = hint.max_num_points() / outer_ticks.len(); + let inner_ticks = (outer_tick_size + inner_ticks_per_group - 1) / inner_ticks_per_group; + let inner_ticks: Vec<_> = (0..(outer_tick_size / inner_ticks)) + .map(move |x| x * inner_ticks) + .collect(); + let size = self.0.size(); + return outer_ticks + .flat_map(|base| inner_ticks.iter().map(move |&ofs| base * self.1 + ofs)) + .take_while(|&idx| idx < size) + .map(|x| self.0.from_index(x).unwrap()) + .collect(); + } + + idx_iter + .map(|x| self.0.from_index(x * self.1).unwrap()) + .collect() + } +} + +#[cfg(test)] +mod test { + use super::*; + #[test] + fn test_group_by() { + let coord = (0..100).group_by(10); + assert_eq!(coord.size(), 11); + for (idx, val) in (0..).zip(coord.values()) { + assert_eq!(val, idx * 10); + assert_eq!(coord.from_index(idx as usize), Some(val)); + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/combinators/linspace.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/combinators/linspace.rs new file mode 100644 index 0000000000000000000000000000000000000000..14b5ebaad7c3a247dcab68b79011281da33638b5 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/combinators/linspace.rs @@ -0,0 +1,433 @@ +use crate::coord::ranged1d::types::RangedCoordusize; +use crate::coord::ranged1d::{ + AsRangedCoord, DiscreteRanged, KeyPointHint, NoDefaultFormatting, Ranged, ValueFormatter, +}; +use std::cmp::{Ordering, PartialOrd}; +use std::marker::PhantomData; +use std::ops::{Add, Range, Sub}; + +/// The type marker used to denote the rounding method. +/// Since we are mapping any range to a discrete range thus not all values are +/// perfect mapped to the grid points. In this case, this type marker gives hints +/// for the linspace coord for how to treat the non-grid-point values. +pub trait LinspaceRoundingMethod { + /// Search for the value within the given values array and rounding method + /// + /// - `values`: The values we want to search + /// - `target`: The target value + /// - `returns`: The index if we found the matching item, otherwise none + fn search(values: &[V], target: &V) -> Option; +} + +/// This type marker means linspace do the exact match for searching +/// which means if there's no value strictly equals to the target, the coord spec +/// reports not found result. +#[derive(Clone)] +pub struct Exact(PhantomData); + +impl LinspaceRoundingMethod for Exact { + fn search(values: &[V], target: &V) -> Option { + values.iter().position(|x| target == x) + } +} + +/// This type marker means we round up the value. Which means we try to find a +/// minimal value in the values array that is greater or equal to the target. +#[derive(Clone)] +pub struct Ceil(PhantomData); + +impl LinspaceRoundingMethod for Ceil { + fn search(values: &[V], target: &V) -> Option { + let ascending = if values.len() < 2 { + true + } else { + values[0].partial_cmp(&values[1]) == Some(Ordering::Less) + }; + + match values.binary_search_by(|probe| { + if ascending { + probe.partial_cmp(target).unwrap() + } else { + target.partial_cmp(probe).unwrap() + } + }) { + Ok(idx) => Some(idx), + Err(idx) => { + let offset = if ascending { 0 } else { 1 }; + + if idx < offset || idx >= values.len() + offset { + return None; + } + Some(idx - offset) + } + } + } +} + +/// This means we use the round down. Which means we try to find a +/// maximum value in the values array that is less or equal to the target. +#[derive(Clone)] +pub struct Floor(PhantomData); + +impl LinspaceRoundingMethod for Floor { + fn search(values: &[V], target: &V) -> Option { + let ascending = if values.len() < 2 { + true + } else { + values[0].partial_cmp(&values[1]) == Some(Ordering::Less) + }; + + match values.binary_search_by(|probe| { + if ascending { + probe.partial_cmp(target).unwrap() + } else { + target.partial_cmp(probe).unwrap() + } + }) { + Ok(idx) => Some(idx), + Err(idx) => { + let offset = if ascending { 1 } else { 0 }; + + if idx < offset || idx >= values.len() + offset { + return None; + } + Some(idx - offset) + } + } + } +} + +/// This means we use the rounding. Which means we try to find the closet +/// value in the array that matches the target +#[derive(Clone)] +pub struct Round(PhantomData<(V, S)>); + +impl LinspaceRoundingMethod for Round +where + V: Add + PartialOrd + Sub + Clone, + S: PartialOrd + Clone, +{ + fn search(values: &[V], target: &V) -> Option { + let ascending = if values.len() < 2 { + true + } else { + values[0].partial_cmp(&values[1]) == Some(Ordering::Less) + }; + + match values.binary_search_by(|probe| { + if ascending { + probe.partial_cmp(target).unwrap() + } else { + target.partial_cmp(probe).unwrap() + } + }) { + Ok(idx) => Some(idx), + Err(idx) => { + if idx == 0 { + return Some(0); + } + + if idx == values.len() { + return Some(idx - 1); + } + + let left_delta = if ascending { + target.clone() - values[idx - 1].clone() + } else { + values[idx - 1].clone() - target.clone() + }; + let right_delta = if ascending { + values[idx].clone() - target.clone() + } else { + target.clone() - values[idx].clone() + }; + + if left_delta.partial_cmp(&right_delta) == Some(Ordering::Less) { + Some(idx - 1) + } else { + Some(idx) + } + } + } + } +} + +/// The coordinate combinator that transform a continuous coordinate to a discrete coordinate +/// to a discrete coordinate by a giving step. +/// +/// For example, range `0f32..100f32` is a continuous coordinate, thus this prevent us having a +/// histogram on it since Plotters doesn't know how to segment the range into buckets. +/// In this case, to get a histogram, we need to split the original range to a +/// set of discrete buckets (for example, 0.5 per bucket). +/// +/// The linspace decorate abstracting this method. For example, we can have a discrete coordinate: +/// `(0f32..100f32).step(0.5)`. +/// +/// Linspace also supports different types of bucket matching method - This configuration alters the behavior of +/// [DiscreteCoord::index_of](../trait.DiscreteCoord.html#tymethod.index_of) for Linspace coord spec +/// - **Flooring**, the value falls into the nearst bucket smaller than it. See [Linspace::use_floor](struct.Linspace.html#method.use_floor) +/// - **Round**, the value falls into the nearst bucket. See [Linearspace::use_round](struct.Linspace.html#method.use_round) +/// - **Ceiling**, the value falls into the nearst bucket larger than itself. See [Linspace::use_ceil](struct.Linspace.html#method.use_ceil) +/// - **Exact Matchting**, the value must be exactly same as the butcket value. See [Linspace::use_exact](struct.Linspace.html#method.use_exact) +#[derive(Clone)] +pub struct Linspace> +where + T::ValueType: Add + PartialOrd + Clone, +{ + step: S, + inner: T, + grid_value: Vec, + _phatom: PhantomData, +} + +impl> Linspace +where + T::ValueType: Add + PartialOrd + Clone, +{ + fn compute_grid_values(&mut self) { + let range = self.inner.range(); + + match ( + range.start.partial_cmp(&range.end), + (range.start.clone() + self.step.clone()).partial_cmp(&range.end), + ) { + (Some(a), Some(b)) if a != b || a == Ordering::Equal || b == Ordering::Equal => (), + (Some(a), Some(_)) => { + let mut current = range.start; + while current.partial_cmp(&range.end) == Some(a) { + self.grid_value.push(current.clone()); + current = current + self.step.clone(); + } + } + _ => (), + } + } + + /// Set the linspace use the round up method for value matching + /// + /// - **returns**: The newly created linspace that uses new matching method + pub fn use_ceil(self) -> Linspace> { + Linspace { + step: self.step, + inner: self.inner, + grid_value: self.grid_value, + _phatom: PhantomData, + } + } + + /// Set the linspace use the round down method for value matching + /// + /// - **returns**: The newly created linspace that uses new matching method + pub fn use_floor(self) -> Linspace> { + Linspace { + step: self.step, + inner: self.inner, + grid_value: self.grid_value, + _phatom: PhantomData, + } + } + + /// Set the linspace use the best match method for value matching + /// + /// - **returns**: The newly created linspace that uses new matching method + pub fn use_round(self) -> Linspace> + where + T::ValueType: Sub, + S: PartialOrd, + { + Linspace { + step: self.step, + inner: self.inner, + grid_value: self.grid_value, + _phatom: PhantomData, + } + } + + /// Set the linspace use the exact match method for value matching + /// + /// - **returns**: The newly created linspace that uses new matching method + pub fn use_exact(self) -> Linspace> + where + T::ValueType: Sub, + S: PartialOrd, + { + Linspace { + step: self.step, + inner: self.inner, + grid_value: self.grid_value, + _phatom: PhantomData, + } + } +} + +impl ValueFormatter for Linspace +where + R: Ranged + ValueFormatter, + RM: LinspaceRoundingMethod, + T: Add + PartialOrd + Clone, + S: Clone, +{ + fn format(value: &T) -> String { + R::format(value) + } +} + +impl> Ranged for Linspace +where + T::ValueType: Add + PartialOrd + Clone, +{ + type FormatOption = NoDefaultFormatting; + type ValueType = T::ValueType; + + fn range(&self) -> Range { + self.inner.range() + } + + fn map(&self, value: &T::ValueType, limit: (i32, i32)) -> i32 { + self.inner.map(value, limit) + } + + fn key_points(&self, hint: Hint) -> Vec { + if self.grid_value.is_empty() { + return vec![]; + } + let idx_range: RangedCoordusize = (0..(self.grid_value.len() - 1)).into(); + + idx_range + .key_points(hint) + .into_iter() + .map(|x| self.grid_value[x].clone()) + .collect() + } +} + +impl> DiscreteRanged + for Linspace +where + T::ValueType: Add + PartialOrd + Clone, +{ + fn size(&self) -> usize { + self.grid_value.len() + } + + fn index_of(&self, value: &T::ValueType) -> Option { + R::search(self.grid_value.as_ref(), value) + } + + fn from_index(&self, idx: usize) -> Option { + self.grid_value.get(idx).cloned() + } +} + +/// Makes a linspace coordinate from the ranged coordinates. +pub trait IntoLinspace: AsRangedCoord { + /// Set the step value, make a linspace coordinate from the given range. + /// By default the matching method use the exact match + /// + /// - `val`: The step value + /// - **returns*: The newly created linspace + fn step(self, val: S) -> Linspace> + where + Self::Value: Add + PartialOrd + Clone, + { + let mut ret = Linspace { + step: val, + inner: self.into(), + grid_value: vec![], + _phatom: PhantomData, + }; + + ret.compute_grid_values(); + + ret + } +} + +impl IntoLinspace for T {} + +#[cfg(test)] +mod test { + use super::*; + + #[test] + fn test_float_linspace() { + let coord = (0.0f64..100.0f64).step(0.1); + + assert_eq!(coord.map(&23.12, (0, 10000)), 2312); + assert_eq!(coord.range(), 0.0..100.0); + assert_eq!(coord.key_points(100000).len(), 1001); + assert_eq!(coord.size(), 1001); + assert_eq!(coord.index_of(&coord.from_index(230).unwrap()), Some(230)); + assert!((coord.from_index(230).unwrap() - 23.0).abs() < 1e-5); + } + + #[test] + fn test_rounding_methods() { + let coord = (0.0f64..100.0f64).step(1.0); + + assert_eq!(coord.index_of(&1.0), Some(1)); + assert_eq!(coord.index_of(&1.2), None); + + let coord = coord.use_floor(); + assert_eq!(coord.index_of(&1.0), Some(1)); + assert_eq!(coord.index_of(&1.2), Some(1)); + assert_eq!(coord.index_of(&23.9), Some(23)); + assert_eq!(coord.index_of(&10000.0), Some(99)); + assert_eq!(coord.index_of(&-1.0), None); + + let coord = coord.use_ceil(); + assert_eq!(coord.index_of(&1.0), Some(1)); + assert_eq!(coord.index_of(&1.2), Some(2)); + assert_eq!(coord.index_of(&23.9), Some(24)); + assert_eq!(coord.index_of(&10000.0), None); + assert_eq!(coord.index_of(&-1.0), Some(0)); + + let coord = coord.use_round(); + assert_eq!(coord.index_of(&1.0), Some(1)); + assert_eq!(coord.index_of(&1.2), Some(1)); + assert_eq!(coord.index_of(&1.7), Some(2)); + assert_eq!(coord.index_of(&23.9), Some(24)); + assert_eq!(coord.index_of(&10000.0), Some(99)); + assert_eq!(coord.index_of(&-1.0), Some(0)); + + let coord = (0.0f64..-100.0f64).step(-1.0); + + assert_eq!(coord.index_of(&-1.0), Some(1)); + assert_eq!(coord.index_of(&-1.2), None); + + let coord = coord.use_floor(); + assert_eq!(coord.index_of(&-1.0), Some(1)); + assert_eq!(coord.index_of(&-1.2), Some(2)); + assert_eq!(coord.index_of(&-23.9), Some(24)); + assert_eq!(coord.index_of(&-10000.0), None); + assert_eq!(coord.index_of(&1.0), Some(0)); + + let coord = coord.use_ceil(); + assert_eq!(coord.index_of(&-1.0), Some(1)); + assert_eq!(coord.index_of(&-1.2), Some(1)); + assert_eq!(coord.index_of(&-23.9), Some(23)); + assert_eq!(coord.index_of(&-10000.0), Some(99)); + assert_eq!(coord.index_of(&1.0), None); + + let coord = coord.use_round(); + assert_eq!(coord.index_of(&-1.0), Some(1)); + assert_eq!(coord.index_of(&-1.2), Some(1)); + assert_eq!(coord.index_of(&-1.7), Some(2)); + assert_eq!(coord.index_of(&-23.9), Some(24)); + assert_eq!(coord.index_of(&-10000.0), Some(99)); + assert_eq!(coord.index_of(&1.0), Some(0)); + } + + #[cfg(feature = "chrono")] + #[test] + fn test_duration_linspace() { + use chrono::Duration; + let coord = (Duration::seconds(0)..Duration::seconds(100)).step(Duration::milliseconds(1)); + + assert_eq!(coord.size(), 100_000); + assert_eq!(coord.index_of(&coord.from_index(230).unwrap()), Some(230)); + assert_eq!(coord.key_points(10000000).len(), 100_000); + assert_eq!(coord.range(), Duration::seconds(0)..Duration::seconds(100)); + assert_eq!(coord.map(&Duration::seconds(25), (0, 100_000)), 25000); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/combinators/logarithmic.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/combinators/logarithmic.rs new file mode 100644 index 0000000000000000000000000000000000000000..cd1dfd5be85d4d3bfb6e038506714dbdfeb346a3 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/combinators/logarithmic.rs @@ -0,0 +1,287 @@ +use crate::coord::ranged1d::types::RangedCoordf64; +use crate::coord::ranged1d::{AsRangedCoord, DefaultFormatting, KeyPointHint, Ranged}; +use std::marker::PhantomData; +use std::ops::Range; + +/// The trait for the type that is able to be presented in the log scale. +/// This trait is primarily used by [LogRangeExt](struct.LogRangeExt.html). +pub trait LogScalable: Clone { + /// Make the conversion from the type to the floating point number + fn as_f64(&self) -> f64; + /// Convert a floating point number to the scale + fn from_f64(f: f64) -> Self; +} + +macro_rules! impl_log_scalable { + (i, $t:ty) => { + impl LogScalable for $t { + fn as_f64(&self) -> f64 { + if *self != 0 { + return *self as f64; + } + // If this is an integer, we should allow zero point to be shown + // on the chart, thus we can't map the zero point to inf. + // So we just assigning a value smaller than 1 as the alternative + // of the zero point. + return 0.5; + } + fn from_f64(f: f64) -> $t { + f.round() as $t + } + } + }; + (f, $t:ty) => { + impl LogScalable for $t { + fn as_f64(&self) -> f64 { + *self as f64 + } + fn from_f64(f: f64) -> $t { + f as $t + } + } + }; +} + +impl_log_scalable!(i, u8); +impl_log_scalable!(i, u16); +impl_log_scalable!(i, u32); +impl_log_scalable!(i, u64); +impl_log_scalable!(i, usize); + +impl_log_scalable!(i, i8); +impl_log_scalable!(i, i16); +impl_log_scalable!(i, i32); +impl_log_scalable!(i, i64); +impl_log_scalable!(i, i128); +impl_log_scalable!(i, isize); + +impl_log_scalable!(f, f32); +impl_log_scalable!(f, f64); + +/// Convert a range to a log scale coordinate spec +pub trait IntoLogRange { + /// The type of the value + type ValueType: LogScalable; + + /// Make the log scale coordinate + fn log_scale(self) -> LogRangeExt; +} + +impl IntoLogRange for Range { + type ValueType = T; + fn log_scale(self) -> LogRangeExt { + LogRangeExt { + range: self, + zero: 0.0, + base: 10.0, + } + } +} + +/// The logarithmic coordinate decorator. +/// This decorator is used to make the axis rendered as logarithmically. +#[derive(Clone)] +pub struct LogRangeExt { + range: Range, + zero: f64, + base: f64, +} + +impl LogRangeExt { + /// Set the zero point of the log scale coordinate. Zero point is the point where we map -inf + /// of the axis to the coordinate + pub fn zero_point(mut self, value: V) -> Self + where + V: PartialEq, + { + self.zero = if V::from_f64(0.0) == value { + 0.0 + } else { + value.as_f64() + }; + + self + } + + /// Set the base multiplier + pub fn base(mut self, base: f64) -> Self { + if self.base > 1.0 { + self.base = base; + } + self + } +} + +impl From> for LogCoord { + fn from(spec: LogRangeExt) -> LogCoord { + let zero_point = spec.zero; + let mut start = spec.range.start.as_f64() - zero_point; + let mut end = spec.range.end.as_f64() - zero_point; + let negative = if start < 0.0 || end < 0.0 { + start = -start; + end = -end; + true + } else { + false + }; + + if start < end { + if start == 0.0 { + start = start.max(end * 1e-5); + } + } else if end == 0.0 { + end = end.max(start * 1e-5); + } + + LogCoord { + linear: (start.ln()..end.ln()).into(), + logic: spec.range, + normalized: start..end, + base: spec.base, + zero_point, + negative, + marker: PhantomData, + } + } +} + +impl AsRangedCoord for LogRangeExt { + type CoordDescType = LogCoord; + type Value = V; +} + +/// A log scaled coordinate axis +pub struct LogCoord { + linear: RangedCoordf64, + logic: Range, + normalized: Range, + base: f64, + zero_point: f64, + negative: bool, + marker: PhantomData, +} + +impl LogCoord { + fn value_to_f64(&self, value: &V) -> f64 { + let fv = value.as_f64() - self.zero_point; + if self.negative { + -fv + } else { + fv + } + } + + fn f64_to_value(&self, fv: f64) -> V { + let fv = if self.negative { -fv } else { fv }; + V::from_f64(fv + self.zero_point) + } + + fn is_inf(&self, fv: f64) -> bool { + let fv = if self.negative { -fv } else { fv }; + let a = V::from_f64(fv + self.zero_point); + let b = V::from_f64(self.zero_point); + + (V::as_f64(&a) - V::as_f64(&b)).abs() < f64::EPSILON + } +} + +impl Ranged for LogCoord { + type FormatOption = DefaultFormatting; + type ValueType = V; + + fn map(&self, value: &V, limit: (i32, i32)) -> i32 { + let fv = self.value_to_f64(value); + let value_ln = fv.ln(); + self.linear.map(&value_ln, limit) + } + + fn key_points(&self, hint: Hint) -> Vec { + let max_points = hint.max_num_points(); + + let base = self.base; + let base_ln = base.ln(); + + let Range { mut start, mut end } = self.normalized; + + if start > end { + std::mem::swap(&mut start, &mut end); + } + + let bold_count = ((end / start).ln().abs() / base_ln).floor().max(1.0) as usize; + + let light_density = if max_points < bold_count { + 0 + } else { + let density = 1 + (max_points - bold_count) / bold_count; + let mut exp = 1; + while exp * 10 <= density { + exp *= 10; + } + exp - 1 + }; + + let mut multiplier = base; + let mut cnt = 1; + while max_points < bold_count / cnt { + multiplier *= base; + cnt += 1; + } + + let mut ret = vec![]; + let mut val = (base).powf((start.ln() / base_ln).ceil()); + + while val <= end { + if !self.is_inf(val) { + ret.push(self.f64_to_value(val)); + } + for i in 1..=light_density { + let v = val + * (1.0 + + multiplier / f64::from(light_density as u32 + 1) * f64::from(i as u32)); + if v > end { + break; + } + if !self.is_inf(val) { + ret.push(self.f64_to_value(v)); + } + } + val *= multiplier; + } + + ret + } + + fn range(&self) -> Range { + self.logic.clone() + } +} + +/// The logarithmic coordinate decorator. +/// This decorator is used to make the axis rendered as logarithmically. +#[deprecated(note = "LogRange is deprecated, use IntoLogRange trait method instead")] +#[derive(Clone)] +pub struct LogRange(pub Range); + +#[allow(deprecated)] +impl AsRangedCoord for LogRange { + type CoordDescType = LogCoord; + type Value = V; +} + +#[allow(deprecated)] +impl From> for LogCoord { + fn from(range: LogRange) -> LogCoord { + range.0.log_scale().into() + } +} + +#[cfg(test)] +mod test { + use super::*; + #[test] + fn regression_test_issue_143() { + let range: LogCoord = (1.0..5.0).log_scale().into(); + + range.key_points(100); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/combinators/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/combinators/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..2d5280248cae7e7e2774bab40ae5758e0ce2d52c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/combinators/mod.rs @@ -0,0 +1,20 @@ +mod ckps; +pub use ckps::{BindKeyPointMethod, BindKeyPoints, WithKeyPointMethod, WithKeyPoints}; + +mod group_by; +pub use group_by::{GroupBy, ToGroupByRange}; + +mod linspace; +pub use linspace::{IntoLinspace, Linspace}; + +mod logarithmic; +pub use logarithmic::{IntoLogRange, LogCoord, LogScalable}; + +#[allow(deprecated)] +pub use logarithmic::LogRange; + +mod nested; +pub use nested::{BuildNestedCoord, NestedRange, NestedValue}; + +mod partial_axis; +pub use partial_axis::{make_partial_axis, IntoPartialAxis}; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/combinators/nested.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/combinators/nested.rs new file mode 100644 index 0000000000000000000000000000000000000000..e4a493ec82a44c1233180b057e5c5c994f913872 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/combinators/nested.rs @@ -0,0 +1,205 @@ +use crate::coord::ranged1d::{ + AsRangedCoord, DiscreteRanged, KeyPointHint, NoDefaultFormatting, Ranged, ValueFormatter, +}; +use std::ops::Range; + +/// Describe a value for a nested coordinate +#[derive(PartialEq, Eq, Clone, Debug)] +pub enum NestedValue { + /// Category value + Category(C), + /// One exact nested value + Value(C, V), +} + +impl NestedValue { + /// Get the category of current nest value + pub fn category(&self) -> &C { + match self { + NestedValue::Category(cat) => cat, + NestedValue::Value(cat, _) => cat, + } + } + /// Get the nested value from this value + pub fn nested_value(&self) -> Option<&V> { + match self { + NestedValue::Category(_) => None, + NestedValue::Value(_, val) => Some(val), + } + } +} + +impl From<(C, V)> for NestedValue { + fn from((cat, val): (C, V)) -> NestedValue { + NestedValue::Value(cat, val) + } +} + +impl From for NestedValue { + fn from(cat: C) -> NestedValue { + NestedValue::Category(cat) + } +} + +/// A nested coordinate spec which is a discrete coordinate on the top level and +/// for each value in discrete value, there is a secondary coordinate system. +/// And the value is defined as a tuple of primary coordinate value and secondary +/// coordinate value +pub struct NestedRange { + primary: Primary, + secondary: Vec, +} + +impl ValueFormatter> for NestedRange +where + P: Ranged + DiscreteRanged, + S: Ranged, + P: ValueFormatter, + S: ValueFormatter, +{ + fn format(value: &NestedValue) -> String { + match value { + NestedValue::Category(cat) => P::format(cat), + NestedValue::Value(_, val) => S::format(val), + } + } +} + +impl Ranged for NestedRange { + type FormatOption = NoDefaultFormatting; + type ValueType = NestedValue; + + fn range(&self) -> Range { + let primary_range = self.primary.range(); + + let secondary_left = self.secondary[0].range().start; + let secondary_right = self.secondary[self.primary.size() - 1].range().end; + + NestedValue::Value(primary_range.start, secondary_left) + ..NestedValue::Value(primary_range.end, secondary_right) + } + + fn map(&self, value: &Self::ValueType, limit: (i32, i32)) -> i32 { + let idx = self.primary.index_of(value.category()).unwrap_or(0); + let total = self.primary.size(); + + let bucket_size = (limit.1 - limit.0) / total as i32; + let mut residual = (limit.1 - limit.0) % total as i32; + + if residual < 0 { + residual += total as i32; + } + + let s_left = limit.0 + bucket_size * idx as i32 + residual.min(idx as i32); + let s_right = s_left + bucket_size + if (residual as usize) < idx { 1 } else { 0 }; + + if let Some(secondary_value) = value.nested_value() { + self.secondary[idx].map(secondary_value, (s_left, s_right)) + } else { + (s_left + s_right) / 2 + } + } + + fn key_points(&self, hint: Hint) -> Vec { + if !hint.weight().allow_light_points() || hint.max_num_points() < self.primary.size() * 2 { + self.primary + .key_points(hint) + .into_iter() + .map(NestedValue::Category) + .collect() + } else { + let secondary_size = + (hint.max_num_points() - self.primary.size()) / self.primary.size(); + self.primary + .values() + .enumerate() + .flat_map(|(idx, val)| { + std::iter::once(NestedValue::Category(val)).chain( + self.secondary[idx] + .key_points(secondary_size) + .into_iter() + .map(move |v| { + NestedValue::Value(self.primary.from_index(idx).unwrap(), v) + }), + ) + }) + .collect() + } + } +} + +impl DiscreteRanged for NestedRange { + fn size(&self) -> usize { + self.secondary.iter().map(|x| x.size()).sum::() + } + + fn index_of(&self, value: &Self::ValueType) -> Option { + let p_idx = self.primary.index_of(value.category())?; + let s_idx = self.secondary[p_idx].index_of(value.nested_value()?)?; + Some( + s_idx + + self.secondary[..p_idx] + .iter() + .map(|x| x.size()) + .sum::(), + ) + } + + fn from_index(&self, mut index: usize) -> Option { + for (p_idx, snd) in self.secondary.iter().enumerate() { + if snd.size() > index { + return Some(NestedValue::Value( + self.primary.from_index(p_idx).unwrap(), + snd.from_index(index).unwrap(), + )); + } + index -= snd.size(); + } + None + } +} + +/// Used to build a nested coordinate system. +pub trait BuildNestedCoord: AsRangedCoord +where + Self::CoordDescType: DiscreteRanged, +{ + /// Builds a nested coordinate system. + fn nested_coord( + self, + builder: impl Fn(::ValueType) -> S, + ) -> NestedRange { + let primary: Self::CoordDescType = self.into(); + assert!(primary.size() > 0); + + let secondary = primary + .values() + .map(|value| builder(value).into()) + .collect(); + + NestedRange { primary, secondary } + } +} + +impl BuildNestedCoord for T where T::CoordDescType: DiscreteRanged {} + +#[cfg(test)] +mod test { + use super::*; + + #[test] + fn test_nested_coord() { + let coord = (0..10).nested_coord(|x| 0..(x + 1)); + + let range = coord.range(); + + assert_eq!(NestedValue::Value(0, 0)..NestedValue::Value(10, 11), range); + assert_eq!(coord.map(&NestedValue::Category(0), (0, 1100)), 50); + assert_eq!(coord.map(&NestedValue::Value(0, 0), (0, 1100)), 0); + assert_eq!(coord.map(&NestedValue::Value(5, 4), (0, 1100)), 567); + + assert_eq!(coord.size(), (2 + 12) * 11 / 2); + assert_eq!(coord.index_of(&NestedValue::Value(5, 4)), Some(24)); + assert_eq!(coord.from_index(24), Some(NestedValue::Value(5, 4))); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/combinators/partial_axis.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/combinators/partial_axis.rs new file mode 100644 index 0000000000000000000000000000000000000000..b778ee2c7cc5edab749c8d9d0ebeaf171ef9f0ee --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/combinators/partial_axis.rs @@ -0,0 +1,113 @@ +use crate::coord::ranged1d::{ + AsRangedCoord, DefaultFormatting, DiscreteRanged, KeyPointHint, Ranged, +}; +use std::ops::Range; + +/// This axis decorator will make the axis partially display on the axis. +/// At some time, we want the axis only covers some part of the value. +/// This decorator will have an additional display range defined. +#[derive(Clone)] +pub struct PartialAxis(R, Range); + +/// The trait for the types that can be converted into a partial axis +pub trait IntoPartialAxis: AsRangedCoord { + /// Make the partial axis + /// + /// - `axis_range`: The range of the axis to be displayed + /// - **returns**: The converted range specification + fn partial_axis( + self, + axis_range: Range<::ValueType>, + ) -> PartialAxis { + PartialAxis(self.into(), axis_range) + } +} + +impl IntoPartialAxis for R {} + +impl Ranged for PartialAxis +where + R::ValueType: Clone, +{ + type FormatOption = DefaultFormatting; + type ValueType = R::ValueType; + + fn map(&self, value: &Self::ValueType, limit: (i32, i32)) -> i32 { + self.0.map(value, limit) + } + + fn key_points(&self, hint: Hint) -> Vec { + self.0.key_points(hint) + } + + fn range(&self) -> Range { + self.0.range() + } + + fn axis_pixel_range(&self, limit: (i32, i32)) -> Range { + let left = self.map(&self.1.start, limit); + let right = self.map(&self.1.end, limit); + + left.min(right)..left.max(right) + } +} + +impl DiscreteRanged for PartialAxis +where + R: Ranged, + ::ValueType: Eq + Clone, +{ + fn size(&self) -> usize { + self.0.size() + } + + fn index_of(&self, value: &R::ValueType) -> Option { + self.0.index_of(value) + } + + fn from_index(&self, index: usize) -> Option { + self.0.from_index(index) + } +} + +/// Make a partial axis based on the percentage of visible portion. +/// We can use `into_partial_axis` to create a partial axis range specification. +/// But sometimes, we want to directly specify the percentage visible to the user. +/// +/// - `axis_range`: The range specification +/// - `part`: The visible part of the axis. Each value is from [0.0, 1.0] +/// - **returns**: The partial axis created from the input, or `None` when not possible +pub fn make_partial_axis( + axis_range: Range, + part: Range, +) -> Option as AsRangedCoord>::CoordDescType>> +where + Range: AsRangedCoord, + T: num_traits::NumCast + Clone, +{ + let left: f64 = num_traits::cast(axis_range.start.clone())?; + let right: f64 = num_traits::cast(axis_range.end.clone())?; + + let full_range_size = (right - left) / (part.end - part.start); + + let full_left = left - full_range_size * part.start; + let full_right = right + full_range_size * (1.0 - part.end); + + let full_range: Range = num_traits::cast(full_left)?..num_traits::cast(full_right)?; + + let axis_range: as AsRangedCoord>::CoordDescType = axis_range.into(); + + Some(PartialAxis(full_range.into(), axis_range.range())) +} + +#[cfg(test)] +mod test { + use super::*; + #[test] + fn test_make_partial_axis() { + let r = make_partial_axis(20..80, 0.2..0.8).unwrap(); + assert_eq!(r.size(), 101); + assert_eq!(r.range(), 0..100); + assert_eq!(r.axis_pixel_range((0, 100)), 20..80); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/discrete.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/discrete.rs new file mode 100644 index 0000000000000000000000000000000000000000..8b5da4b6da4e86b52ca3e8a554d3e1c1d9b18ffa --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/discrete.rs @@ -0,0 +1,274 @@ +use crate::coord::ranged1d::{ + AsRangedCoord, KeyPointHint, NoDefaultFormatting, Ranged, ReversibleRanged, ValueFormatter, +}; +use std::ops::Range; + +/// The trait indicates the coordinate is discrete +/// This means we can bidirectionally map the range value to 0 to N +/// in which N is the number of distinct values of the range. +/// +/// This is useful since for a histgoram, this is an abstraction of bucket. +pub trait DiscreteRanged +where + Self: Ranged, +{ + /// Get the number of element in the range + /// Note: we assume that all the ranged discrete coordinate has finite value + /// + /// - **returns** The number of values in the range + fn size(&self) -> usize; + + /// Map a value to the index + /// + /// Note: This function doesn't guarantee return None when the value is out of range. + /// The only way to confirm the value is in the range is to examining the return value isn't + /// larger than self.size. + /// + /// - `value`: The value to map + /// - **returns** The index of the value + fn index_of(&self, value: &Self::ValueType) -> Option; + + /// Reverse map the index to the value + /// + /// Note: This function doesn't guarantee returning None when the index is out of range. + /// + /// - `value`: The index to map + /// - **returns** The value + // TODO: This doesn't follows rust's naming convention - however, this is a potential breaking + // change, so postpone the fix to the next major release + #[allow(clippy::wrong_self_convention)] + fn from_index(&self, index: usize) -> Option; + + /// Return a iterator that iterates over the all possible values + /// + /// - **returns** The value iterator + fn values(&self) -> DiscreteValueIter<'_, Self> + where + Self: Sized, + { + DiscreteValueIter(self, 0, self.size()) + } + + /// Returns the previous value in this range + /// + /// Normally, it's based on the `from_index` and `index_of` function. But for + /// some of the coord spec, it's possible that we value faster implementation. + /// If this is the case, we can impelemnet the type specific impl for the `previous` + /// and `next`. + /// + /// - `value`: The current value + /// - **returns**: The value piror to current value + fn previous(&self, value: &Self::ValueType) -> Option { + if let Some(idx) = self.index_of(value) { + if idx > 0 { + return self.from_index(idx - 1); + } + } + None + } + + /// Returns the next value in this range + /// + /// Normally, it's based on the `from_index` and `index_of` function. But for + /// some of the coord spec, it's possible that we value faster implementation. + /// If this is the case, we can impelemnet the type specific impl for the `previous` + /// and `next`. + /// + /// - `value`: The current value + /// - **returns**: The value next to current value + fn next(&self, value: &Self::ValueType) -> Option { + if let Some(idx) = self.index_of(value) { + if idx + 1 < self.size() { + return self.from_index(idx + 1); + } + } + None + } +} + +/// A `SegmentedCoord` is a decorator on any discrete coordinate specification. +/// This decorator will convert the discrete coordinate in two ways: +/// - Add an extra dummy element after all the values in original discrete coordinate +/// - Logically each value `v` from original coordinate system is mapped into an segment `[v, v+1)` where `v+1` denotes the successor of the `v` +/// - Introduce two types of values `SegmentValue::Exact(value)` which denotes the left end of value's segment and `SegmentValue::CenterOf(value)` which refers the center of the segment. +/// This is used in histogram types, which uses a discrete coordinate as the buckets. +/// The segmented coord always emits `CenterOf(value)` key points, thus it allows all the label and tick marks +/// of the coordinate rendered in the middle of each segment. +/// The corresponding trait [IntoSegmentedCoord](trait.IntoSegmentedCoord.html) is used to apply this decorator to coordinates. +#[derive(Clone)] +pub struct SegmentedCoord(D); + +/// The trait for types that can decorated by [SegmentedCoord](struct.SegmentedCoord.html) decorator. +pub trait IntoSegmentedCoord: AsRangedCoord +where + Self::CoordDescType: DiscreteRanged, +{ + /// Convert current ranged value into a segmented coordinate + fn into_segmented(self) -> SegmentedCoord { + SegmentedCoord(self.into()) + } +} + +impl IntoSegmentedCoord for R where R::CoordDescType: DiscreteRanged {} + +/// The value that used by the segmented coordinate. +#[derive(Clone, Debug)] +pub enum SegmentValue { + /// Means we are referring the exact position of value `T` + Exact(T), + /// Means we are referring the center of position `T` and the successor of `T` + CenterOf(T), + /// Referring the last dummy element + Last, +} + +impl> ValueFormatter> + for SegmentedCoord +where + D: ValueFormatter, +{ + fn format(value: &SegmentValue) -> String { + match value { + SegmentValue::Exact(ref value) => D::format(value), + SegmentValue::CenterOf(ref value) => D::format(value), + _ => "".to_string(), + } + } +} + +impl Ranged for SegmentedCoord { + type FormatOption = NoDefaultFormatting; + type ValueType = SegmentValue; + + fn map(&self, value: &Self::ValueType, limit: (i32, i32)) -> i32 { + let margin = ((limit.1 - limit.0) as f32 / self.0.size() as f32).round() as i32; + + match value { + SegmentValue::Exact(coord) => self.0.map(coord, (limit.0, limit.1 - margin)), + SegmentValue::CenterOf(coord) => { + let left = self.0.map(coord, (limit.0, limit.1 - margin)); + if let Some(idx) = self.0.index_of(coord) { + if idx + 1 < self.0.size() { + let right = self.0.map( + &self.0.from_index(idx + 1).unwrap(), + (limit.0, limit.1 - margin), + ); + return (left + right) / 2; + } + } + left + margin / 2 + } + SegmentValue::Last => limit.1, + } + } + + fn key_points(&self, hint: HintType) -> Vec { + self.0 + .key_points(hint) + .into_iter() + .map(SegmentValue::CenterOf) + .collect() + } + + fn range(&self) -> Range { + let range = self.0.range(); + SegmentValue::Exact(range.start)..SegmentValue::Exact(range.end) + } +} + +impl DiscreteRanged for SegmentedCoord { + fn size(&self) -> usize { + self.0.size() + 1 + } + + fn index_of(&self, value: &Self::ValueType) -> Option { + match value { + SegmentValue::Exact(value) => self.0.index_of(value), + SegmentValue::CenterOf(value) => self.0.index_of(value), + SegmentValue::Last => Some(self.0.size()), + } + } + + fn from_index(&self, idx: usize) -> Option { + match idx { + idx if idx < self.0.size() => self.0.from_index(idx).map(SegmentValue::Exact), + idx if idx == self.0.size() => Some(SegmentValue::Last), + _ => None, + } + } +} + +impl From for SegmentValue { + fn from(this: T) -> SegmentValue { + SegmentValue::Exact(this) + } +} + +impl ReversibleRanged for DC { + fn unmap(&self, input: i32, limit: (i32, i32)) -> Option { + let idx = (f64::from(input - limit.0) * (self.size() as f64) / f64::from(limit.1 - limit.0)) + .floor() as usize; + self.from_index(idx) + } +} + +/// The iterator that can be used to iterate all the values defined by a discrete coordinate +pub struct DiscreteValueIter<'a, T: DiscreteRanged>(&'a T, usize, usize); + +impl<'a, T: DiscreteRanged> Iterator for DiscreteValueIter<'a, T> { + type Item = T::ValueType; + fn next(&mut self) -> Option { + if self.1 >= self.2 { + return None; + } + let idx = self.1; + self.1 += 1; + self.0.from_index(idx) + } +} + +#[cfg(test)] +mod test { + use super::*; + #[test] + fn test_value_iter() { + let range: crate::coord::ranged1d::types::RangedCoordi32 = (-10..10).into(); + + let values: Vec<_> = range.values().collect(); + + assert_eq!(21, values.len()); + + for (expected, value) in (-10..=10).zip(values) { + assert_eq!(expected, value); + } + assert_eq!(range.next(&5), Some(6)); + assert_eq!(range.next(&10), None); + assert_eq!(range.previous(&-10), None); + assert_eq!(range.previous(&10), Some(9)); + } + + #[test] + fn test_centric_coord() { + let coord = (0..10).into_segmented(); + + assert_eq!(coord.size(), 12); + for i in 0..=11 { + match coord.from_index(i as usize) { + Some(SegmentValue::Exact(value)) => assert_eq!(i, value), + Some(SegmentValue::Last) => assert_eq!(i, 11), + _ => panic!(), + } + } + + for (kps, idx) in coord.key_points(20).into_iter().zip(0..) { + match kps { + SegmentValue::CenterOf(value) if value <= 10 => assert_eq!(value, idx), + _ => panic!(), + } + } + + assert_eq!(coord.map(&SegmentValue::CenterOf(0), (0, 24)), 1); + assert_eq!(coord.map(&SegmentValue::Exact(0), (0, 24)), 0); + assert_eq!(coord.map(&SegmentValue::Exact(1), (0, 24)), 2); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..1b2072c203b7cf6f776f5e0af8a4b6d87c9bcfc8 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/mod.rs @@ -0,0 +1,243 @@ +/*! + The one-dimensional coordinate system abstraction. + + Plotters build complex coordinate system with a combinator pattern and all the coordinate system is + built from the one dimensional coordinate system. This module defines the fundamental types used by + the one-dimensional coordinate system. + + The key trait for a one dimensional coordinate is [Ranged](trait.Ranged.html). This trait describes a + set of values which served as the 1D coordinate system in Plotters. In order to extend the coordinate system, + the new coordinate spec must implement this trait. + + The following example demonstrate how to make a customized coordinate specification + ``` +use plotters::coord::ranged1d::{Ranged, DefaultFormatting, KeyPointHint}; +use std::ops::Range; + +struct ZeroToOne; + +impl Ranged for ZeroToOne { + type ValueType = f64; + type FormatOption = DefaultFormatting; + + fn map(&self, &v: &f64, pixel_range: (i32, i32)) -> i32 { + let size = pixel_range.1 - pixel_range.0; + let v = v.min(1.0).max(0.0); + ((size as f64) * v).round() as i32 + } + + fn key_points(&self, hint: Hint) -> Vec { + if hint.max_num_points() < 3 { + vec![] + } else { + vec![0.0, 0.5, 1.0] + } + } + + fn range(&self) -> Range { + 0.0..1.0 + } +} + +use plotters::prelude::*; + +let mut buffer = vec![0; 1024 * 768 * 3]; +let root = BitMapBackend::with_buffer(&mut buffer, (1024, 768)).into_drawing_area(); + +let chart = ChartBuilder::on(&root) + .build_cartesian_2d(ZeroToOne, ZeroToOne) + .unwrap(); + + ``` +*/ +use std::fmt::Debug; +use std::ops::Range; + +pub(super) mod combinators; +pub(super) mod types; + +mod discrete; +pub use discrete::{DiscreteRanged, IntoSegmentedCoord, SegmentValue, SegmentedCoord}; + +/// Since stable Rust doesn't have specialization, it's very hard to make our own trait that +/// automatically implemented the value formatter. This trait uses as a marker indicates if we +/// should automatically implement the default value formatter based on it's `Debug` trait +pub trait DefaultValueFormatOption {} + +/// This makes the ranged coord uses the default `Debug` based formatting +pub struct DefaultFormatting; +impl DefaultValueFormatOption for DefaultFormatting {} + +/// This markers prevent Plotters to implement the default `Debug` based formatting +pub struct NoDefaultFormatting; +impl DefaultValueFormatOption for NoDefaultFormatting {} + +/// Determine how we can format a value in a coordinate system by default +pub trait ValueFormatter { + /// Format the value + fn format(_value: &V) -> String { + panic!("Unimplemented formatting method"); + } + /// Determine how we can format a value in a coordinate system by default + fn format_ext(&self, value: &V) -> String { + Self::format(value) + } +} + +// By default the value is formatted by the debug trait +impl> ValueFormatter for R +where + R::ValueType: Debug, +{ + fn format(value: &R::ValueType) -> String { + format!("{:?}", value) + } +} + +/// Specify the weight of key points. +pub enum KeyPointWeight { + /// Allows only bold key points + Bold, + /// Allows any key points + Any, +} + +impl KeyPointWeight { + /// Check if this key point weight setting allows light point + pub fn allow_light_points(&self) -> bool { + match self { + KeyPointWeight::Bold => false, + KeyPointWeight::Any => true, + } + } +} + +/// The trait for a hint provided to the key point algorithm used by the coordinate specs. +/// The most important constraint is the `max_num_points` which means the algorithm could emit no more than specific number of key points +/// `weight` is used to determine if this is used as a bold grid line or light grid line +/// `bold_points` returns the max number of corresponding bold grid lines +pub trait KeyPointHint { + /// Returns the max number of key points + fn max_num_points(&self) -> usize; + /// Returns the weight for this hint + fn weight(&self) -> KeyPointWeight; + /// Returns the point number constraint for the bold points + fn bold_points(&self) -> usize { + self.max_num_points() + } +} + +impl KeyPointHint for usize { + fn max_num_points(&self) -> usize { + *self + } + + fn weight(&self) -> KeyPointWeight { + KeyPointWeight::Any + } +} + +/// The key point hint indicates we only need key point for the bold grid lines +pub struct BoldPoints(pub usize); + +impl KeyPointHint for BoldPoints { + fn max_num_points(&self) -> usize { + self.0 + } + + fn weight(&self) -> KeyPointWeight { + KeyPointWeight::Bold + } +} + +/// The key point hint indicates that we are using the key points for the light grid lines +pub struct LightPoints { + bold_points_num: usize, + light_limit: usize, +} + +impl LightPoints { + /// Create a new light key point hind + pub fn new(bold_count: usize, requested: usize) -> Self { + Self { + bold_points_num: bold_count, + light_limit: requested, + } + } +} + +impl KeyPointHint for LightPoints { + fn max_num_points(&self) -> usize { + self.light_limit + } + + fn bold_points(&self) -> usize { + self.bold_points_num + } + + fn weight(&self) -> KeyPointWeight { + KeyPointWeight::Any + } +} + +/// The trait that indicates we have a ordered and ranged value +/// Which is used to describe any 1D axis. +pub trait Ranged { + /// This marker decides if Plotters default [ValueFormatter](trait.ValueFormatter.html) implementation should be used. + /// This associated type can be one of the following two types: + /// - [DefaultFormatting](struct.DefaultFormatting.html) will allow Plotters to automatically impl + /// the formatter based on `Debug` trait, if `Debug` trait is not impl for the `Self::Value`, + /// [ValueFormatter](trait.ValueFormatter.html) will not impl unless you impl it manually. + /// + /// - [NoDefaultFormatting](struct.NoDefaultFormatting.html) Disable the automatic `Debug` + /// based value formatting. Thus you have to impl the + /// [ValueFormatter](trait.ValueFormatter.html) manually. + /// + type FormatOption: DefaultValueFormatOption; + + /// The type of this value in this range specification + type ValueType; + + /// This function maps the value to i32, which is the drawing coordinate + fn map(&self, value: &Self::ValueType, limit: (i32, i32)) -> i32; + + /// This function gives the key points that we can draw a grid based on this + fn key_points(&self, hint: Hint) -> Vec; + + /// Get the range of this value + fn range(&self) -> Range; + + /// This function provides the on-axis part of its range + #[allow(clippy::range_plus_one)] + fn axis_pixel_range(&self, limit: (i32, i32)) -> Range { + if limit.0 < limit.1 { + limit.0..limit.1 + } else { + limit.1..limit.0 + } + } +} + +/// The trait indicates the ranged value can be map reversely, which means +/// an pixel-based coordinate is given, it's possible to figure out the underlying +/// logic value. +pub trait ReversibleRanged: Ranged { + /// Perform the reverse mapping + fn unmap(&self, input: i32, limit: (i32, i32)) -> Option; +} + +/// The trait for the type that can be converted into a ranged coordinate axis +pub trait AsRangedCoord: Sized { + /// Type to describe a coordinate system + type CoordDescType: Ranged + From; + /// Type for values in the given coordinate system + type Value; +} + +impl AsRangedCoord for T +where + T: Ranged, +{ + type CoordDescType = T; + type Value = T::ValueType; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/types/datetime.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/types/datetime.rs new file mode 100644 index 0000000000000000000000000000000000000000..3ab62d11782f82a09fa0ac9cc03f7b273cb7ca10 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/types/datetime.rs @@ -0,0 +1,1298 @@ +/// The datetime coordinates +use chrono::{Date, DateTime, Datelike, Duration, NaiveDate, NaiveDateTime, TimeZone, Timelike}; +use std::ops::{Add, Range, Sub}; + +use crate::coord::ranged1d::{ + AsRangedCoord, DefaultFormatting, DiscreteRanged, KeyPointHint, NoDefaultFormatting, Ranged, + ReversibleRanged, ValueFormatter, +}; + +/// The trait that describe some time value. This is the uniformed abstraction that works +/// for both Date, DateTime and Duration, etc. +pub trait TimeValue: Eq + Sized { + type DateType: Datelike + PartialOrd; + + /// Returns the date that is no later than the time + fn date_floor(&self) -> Self::DateType; + /// Returns the date that is no earlier than the time + fn date_ceil(&self) -> Self::DateType; + /// Returns the maximum value that is earlier than the given date + fn earliest_after_date(date: Self::DateType) -> Self; + /// Returns the duration between two time value + fn subtract(&self, other: &Self) -> Duration; + /// Add duration to time value + fn add(&self, duration: &Duration) -> Self; + /// Instantiate a date type for current time value; + fn ymd(&self, year: i32, month: u32, date: u32) -> Self::DateType; + /// Cast current date type into this type + fn from_date(date: Self::DateType) -> Self; + + /// Map the coord spec + fn map_coord(value: &Self, begin: &Self, end: &Self, limit: (i32, i32)) -> i32 { + let total_span = end.subtract(begin); + let value_span = value.subtract(begin); + + // First, lets try the nanoseconds precision + if let Some(total_ns) = total_span.num_nanoseconds() { + if let Some(value_ns) = value_span.num_nanoseconds() { + return (f64::from(limit.1 - limit.0) * value_ns as f64 / total_ns as f64) as i32 + + limit.0; + } + } + + // Yes, converting them to floating point may lose precision, but this is Ok. + // If it overflows, it means we have a time span nearly 300 years, we are safe to ignore the + // portion less than 1 day. + let total_days = total_span.num_days() as f64; + let value_days = value_span.num_days() as f64; + + (f64::from(limit.1 - limit.0) * value_days / total_days) as i32 + limit.0 + } + + /// Map pixel to coord spec + fn unmap_coord(point: i32, begin: &Self, end: &Self, limit: (i32, i32)) -> Self { + let total_span = end.subtract(begin); + let offset = (point - limit.0) as i64; + + // Check if nanoseconds fit in i64 + if let Some(total_ns) = total_span.num_nanoseconds() { + let pixel_span = (limit.1 - limit.0) as i64; + let factor = total_ns / pixel_span; + let remainder = total_ns % pixel_span; + if factor == 0 + || i64::MAX / factor > offset.abs() + || (remainder == 0 && i64::MAX / factor >= offset.abs()) + { + let nano_seconds = offset * factor + (remainder * offset) / pixel_span; + return begin.add(&Duration::nanoseconds(nano_seconds)); + } + } + + // Otherwise, use days + let total_days = total_span.num_days() as f64; + let days = (((offset as f64) * total_days) / ((limit.1 - limit.0) as f64)) as i64; + begin.add(&Duration::days(days)) + } +} + +impl TimeValue for NaiveDate { + type DateType = NaiveDate; + fn date_floor(&self) -> NaiveDate { + *self + } + fn date_ceil(&self) -> NaiveDate { + *self + } + fn earliest_after_date(date: NaiveDate) -> Self { + date + } + fn subtract(&self, other: &NaiveDate) -> Duration { + *self - *other + } + fn add(&self, other: &Duration) -> NaiveDate { + *self + *other + } + + fn ymd(&self, year: i32, month: u32, date: u32) -> Self::DateType { + NaiveDate::from_ymd(year, month, date) + } + + fn from_date(date: Self::DateType) -> Self { + date + } +} + +impl TimeValue for Date { + type DateType = Date; + fn date_floor(&self) -> Date { + self.clone() + } + fn date_ceil(&self) -> Date { + self.clone() + } + fn earliest_after_date(date: Date) -> Self { + date + } + fn subtract(&self, other: &Date) -> Duration { + self.clone() - other.clone() + } + fn add(&self, other: &Duration) -> Date { + self.clone() + *other + } + + fn ymd(&self, year: i32, month: u32, date: u32) -> Self::DateType { + self.timezone().ymd(year, month, date) + } + + fn from_date(date: Self::DateType) -> Self { + date + } +} + +impl TimeValue for DateTime { + type DateType = Date; + fn date_floor(&self) -> Date { + self.date() + } + fn date_ceil(&self) -> Date { + if self.time().num_seconds_from_midnight() > 0 { + self.date() + Duration::days(1) + } else { + self.date() + } + } + fn earliest_after_date(date: Date) -> DateTime { + date.and_hms(0, 0, 0) + } + + fn subtract(&self, other: &DateTime) -> Duration { + self.clone() - other.clone() + } + fn add(&self, other: &Duration) -> DateTime { + self.clone() + *other + } + + fn ymd(&self, year: i32, month: u32, date: u32) -> Self::DateType { + self.timezone().ymd(year, month, date) + } + + fn from_date(date: Self::DateType) -> Self { + date.and_hms(0, 0, 0) + } +} + +impl TimeValue for NaiveDateTime { + type DateType = NaiveDate; + + fn date_floor(&self) -> NaiveDate { + self.date() + } + + fn date_ceil(&self) -> NaiveDate { + if self.time().num_seconds_from_midnight() > 0 { + self.date() + Duration::days(1) + } else { + self.date() + } + } + + fn earliest_after_date(date: NaiveDate) -> NaiveDateTime { + date.and_hms(0, 0, 0) + } + + fn subtract(&self, other: &NaiveDateTime) -> Duration { + *self - *other + } + fn add(&self, other: &Duration) -> NaiveDateTime { + *self + *other + } + + fn ymd(&self, year: i32, month: u32, date: u32) -> Self::DateType { + NaiveDate::from_ymd(year, month, date) + } + + fn from_date(date: Self::DateType) -> Self { + date.and_hms(0, 0, 0) + } +} + +/// The ranged coordinate for date +#[derive(Clone)] +pub struct RangedDate(D, D); + +impl From> for RangedDate { + fn from(range: Range) -> Self { + Self(range.start, range.end) + } +} + +impl Ranged for RangedDate +where + D: Datelike + TimeValue + Sub + Add + Clone, +{ + type FormatOption = DefaultFormatting; + type ValueType = D; + + fn range(&self) -> Range { + self.0.clone()..self.1.clone() + } + + fn map(&self, value: &Self::ValueType, limit: (i32, i32)) -> i32 { + TimeValue::map_coord(value, &self.0, &self.1, limit) + } + + fn key_points(&self, hint: HintType) -> Vec { + let max_points = hint.max_num_points(); + let mut ret = vec![]; + + let total_days = (self.1.clone() - self.0.clone()).num_days(); + let total_weeks = (self.1.clone() - self.0.clone()).num_weeks(); + + if total_days > 0 && total_days as usize <= max_points { + for day_idx in 0..=total_days { + ret.push(self.0.clone() + Duration::days(day_idx)); + } + return ret; + } + + if total_weeks > 0 && total_weeks as usize <= max_points { + for day_idx in 0..=total_weeks { + ret.push(self.0.clone() + Duration::weeks(day_idx)); + } + return ret; + } + + // When all data is in the same week, just plot properly. + if total_weeks == 0 { + ret.push(self.0.clone()); + return ret; + } + + let week_per_point = ((total_weeks as f64) / (max_points as f64)).ceil() as usize; + + for idx in 0..=(total_weeks as usize / week_per_point) { + ret.push(self.0.clone() + Duration::weeks((idx * week_per_point) as i64)); + } + + ret + } +} + +impl DiscreteRanged for RangedDate +where + D: Datelike + TimeValue + Sub + Add + Clone, +{ + fn size(&self) -> usize { + ((self.1.clone() - self.0.clone()).num_days().max(-1) + 1) as usize + } + + fn index_of(&self, value: &D) -> Option { + let ret = (value.clone() - self.0.clone()).num_days(); + if ret < 0 { + return None; + } + Some(ret as usize) + } + + fn from_index(&self, index: usize) -> Option { + Some(self.0.clone() + Duration::days(index as i64)) + } +} + +impl AsRangedCoord for Range> { + type CoordDescType = RangedDate>; + type Value = Date; +} + +impl AsRangedCoord for Range { + type CoordDescType = RangedDate; + type Value = NaiveDate; +} + +/// Indicates the coord has a monthly resolution +/// +/// Note: since month doesn't have a constant duration. +/// We can't use a simple granularity to describe it. Thus we have +/// this axis decorator to make it yield monthly key-points. +#[derive(Clone)] +pub struct Monthly(Range); + +impl ValueFormatter for Monthly { + fn format(value: &T) -> String { + format!("{}-{}", value.year(), value.month()) + } +} + +impl Monthly { + fn bold_key_points(&self, hint: &H) -> Vec { + let max_points = hint.max_num_points(); + let start_date = self.0.start.date_ceil(); + let end_date = self.0.end.date_floor(); + + let mut start_year = start_date.year(); + let mut start_month = start_date.month(); + let start_day = start_date.day(); + + let end_year = end_date.year(); + let end_month = end_date.month(); + + if start_day != 1 { + start_month += 1; + if start_month == 13 { + start_month = 1; + start_year += 1; + } + } + + let total_month = (end_year - start_year) * 12 + end_month as i32 - start_month as i32; + + fn generate_key_points( + mut start_year: i32, + mut start_month: i32, + end_year: i32, + end_month: i32, + step: u32, + builder: &T, + ) -> Vec { + let mut ret = vec![]; + while end_year > start_year || (end_year == start_year && end_month >= start_month) { + ret.push(T::earliest_after_date(builder.ymd( + start_year, + start_month as u32, + 1, + ))); + start_month += step as i32; + + if start_month >= 13 { + start_year += start_month / 12; + start_month %= 12; + } + } + + ret + } + + if total_month as usize <= max_points { + // Monthly + return generate_key_points( + start_year, + start_month as i32, + end_year, + end_month as i32, + 1, + &self.0.start, + ); + } else if total_month as usize <= max_points * 3 { + // Quarterly + return generate_key_points( + start_year, + start_month as i32, + end_year, + end_month as i32, + 3, + &self.0.start, + ); + } else if total_month as usize <= max_points * 6 { + // Biyearly + return generate_key_points( + start_year, + start_month as i32, + end_year, + end_month as i32, + 6, + &self.0.start, + ); + } + + // Otherwise we could generate the yearly keypoints + generate_yearly_keypoints( + max_points, + start_year, + start_month, + end_year, + end_month, + &self.0.start, + ) + } +} + +impl Ranged for Monthly +where + Range: AsRangedCoord, +{ + type FormatOption = NoDefaultFormatting; + type ValueType = T; + + fn range(&self) -> Range { + self.0.start.clone()..self.0.end.clone() + } + + fn map(&self, value: &Self::ValueType, limit: (i32, i32)) -> i32 { + T::map_coord(value, &self.0.start, &self.0.end, limit) + } + + fn key_points(&self, hint: HintType) -> Vec { + if hint.weight().allow_light_points() && self.size() <= hint.bold_points() * 2 { + let coord: as AsRangedCoord>::CoordDescType = self.0.clone().into(); + let normal = coord.key_points(hint.max_num_points()); + return normal; + } + self.bold_key_points(&hint) + } +} + +impl DiscreteRanged for Monthly +where + Range: AsRangedCoord, +{ + fn size(&self) -> usize { + let (start_year, start_month) = { + let ceil = self.0.start.date_ceil(); + (ceil.year(), ceil.month()) + }; + let (end_year, end_month) = { + let floor = self.0.end.date_floor(); + (floor.year(), floor.month()) + }; + ((end_year - start_year).max(0) * 12 + + (1 - start_month as i32) + + (end_month as i32 - 1) + + 1) + .max(0) as usize + } + + fn index_of(&self, value: &T) -> Option { + let this_year = value.date_floor().year(); + let this_month = value.date_floor().month(); + + let start_year = self.0.start.date_ceil().year(); + let start_month = self.0.start.date_ceil().month(); + + let ret = (this_year - start_year).max(0) * 12 + + (1 - start_month as i32) + + (this_month as i32 - 1); + if ret >= 0 { + return Some(ret as usize); + } + None + } + + fn from_index(&self, index: usize) -> Option { + if index == 0 { + return Some(T::earliest_after_date(self.0.start.date_ceil())); + } + let index_from_start_year = index + (self.0.start.date_ceil().month() - 1) as usize; + let year = self.0.start.date_ceil().year() + index_from_start_year as i32 / 12; + let month = index_from_start_year % 12; + Some(T::earliest_after_date(self.0.start.ymd( + year, + month as u32 + 1, + 1, + ))) + } +} + +/// Indicate the coord has a yearly granularity. +#[derive(Clone)] +pub struct Yearly(Range); + +fn generate_yearly_keypoints( + max_points: usize, + mut start_year: i32, + start_month: u32, + mut end_year: i32, + end_month: u32, + builder: &T, +) -> Vec { + if start_month > end_month { + end_year -= 1; + } + + let mut exp10 = 1; + + while (end_year - start_year + 1) as usize / (exp10 * 10) > max_points { + exp10 *= 10; + } + + let mut freq = exp10; + + for try_freq in &[1, 2, 5, 10] { + freq = *try_freq * exp10; + if (end_year - start_year + 1) as usize / (exp10 * *try_freq) <= max_points { + break; + } + } + + let mut ret = vec![]; + + while start_year <= end_year { + ret.push(T::earliest_after_date(builder.ymd( + start_year, + start_month, + 1, + ))); + start_year += freq as i32; + } + + ret +} + +impl ValueFormatter for Yearly { + fn format(value: &T) -> String { + format!("{}-{}", value.year(), value.month()) + } +} + +impl Ranged for Yearly +where + Range: AsRangedCoord, +{ + type FormatOption = NoDefaultFormatting; + type ValueType = T; + + fn range(&self) -> Range { + self.0.start.clone()..self.0.end.clone() + } + + fn map(&self, value: &Self::ValueType, limit: (i32, i32)) -> i32 { + T::map_coord(value, &self.0.start, &self.0.end, limit) + } + + fn key_points(&self, hint: HintType) -> Vec { + if hint.weight().allow_light_points() && self.size() <= hint.bold_points() * 2 { + return Monthly(self.0.clone()).key_points(hint); + } + let max_points = hint.max_num_points(); + let start_date = self.0.start.date_ceil(); + let end_date = self.0.end.date_floor(); + + let mut start_year = start_date.year(); + let mut start_month = start_date.month(); + let start_day = start_date.day(); + + let end_year = end_date.year(); + let end_month = end_date.month(); + + if start_day != 1 { + start_month += 1; + if start_month == 13 { + start_month = 1; + start_year += 1; + } + } + + generate_yearly_keypoints( + max_points, + start_year, + start_month, + end_year, + end_month, + &self.0.start, + ) + } +} + +impl DiscreteRanged for Yearly +where + Range: AsRangedCoord, +{ + fn size(&self) -> usize { + let year_start = self.0.start.date_ceil().year(); + let year_end = self.0.end.date_floor().year(); + ((year_end - year_start).max(-1) + 1) as usize + } + + fn index_of(&self, value: &T) -> Option { + let year_start = self.0.start.date_ceil().year(); + let year_value = value.date_floor().year(); + let ret = year_value - year_start; + if ret < 0 { + return None; + } + Some(ret as usize) + } + + fn from_index(&self, index: usize) -> Option { + let year = self.0.start.date_ceil().year() + index as i32; + let ret = T::earliest_after_date(self.0.start.ymd(year, 1, 1)); + if ret.date_ceil() <= self.0.start.date_floor() { + return Some(self.0.start.clone()); + } + Some(ret) + } +} + +/// The trait that converts a normal date coord into a monthly one +pub trait IntoMonthly { + /// Converts a normal date coord into a monthly one + fn monthly(self) -> Monthly; +} + +/// The trait that converts a normal date coord into a yearly one +pub trait IntoYearly { + /// Converts a normal date coord into a yearly one + fn yearly(self) -> Yearly; +} + +impl IntoMonthly for Range { + fn monthly(self) -> Monthly { + Monthly(self) + } +} + +impl IntoYearly for Range { + fn yearly(self) -> Yearly { + Yearly(self) + } +} + +/// The ranged coordinate for the date and time +#[derive(Clone)] +pub struct RangedDateTime(DT, DT); + +impl AsRangedCoord for Range> { + type CoordDescType = RangedDateTime>; + type Value = DateTime; +} + +impl From>> for RangedDateTime> { + fn from(range: Range>) -> Self { + Self(range.start, range.end) + } +} + +impl From> for RangedDateTime { + fn from(range: Range) -> Self { + Self(range.start, range.end) + } +} + +impl
Ranged for RangedDateTime
+where + DT: Datelike + Timelike + TimeValue + Clone + PartialOrd, + DT: Add, + DT: Sub, + RangedDate: Ranged, +{ + type FormatOption = DefaultFormatting; + type ValueType = DT; + + fn range(&self) -> Range
{ + self.0.clone()..self.1.clone() + } + + fn map(&self, value: &Self::ValueType, limit: (i32, i32)) -> i32 { + TimeValue::map_coord(value, &self.0, &self.1, limit) + } + + fn key_points(&self, hint: HintType) -> Vec { + let max_points = hint.max_num_points(); + let total_span = self.1.clone() - self.0.clone(); + + if let Some(total_ns) = total_span.num_nanoseconds() { + if let Some(actual_ns_per_point) = + compute_period_per_point(total_ns as u64, max_points, true) + { + let start_time_ns = u64::from(self.0.num_seconds_from_midnight()) * 1_000_000_000 + + u64::from(self.0.nanosecond()); + + let mut start_time = DT::from_date(self.0.date_floor()) + + Duration::nanoseconds(if start_time_ns % actual_ns_per_point > 0 { + start_time_ns + (actual_ns_per_point - start_time_ns % actual_ns_per_point) + } else { + start_time_ns + } as i64); + + let mut ret = vec![]; + + while start_time < self.1 { + ret.push(start_time.clone()); + start_time = start_time + Duration::nanoseconds(actual_ns_per_point as i64); + } + + return ret; + } + } + + // Otherwise, it actually behaves like a date + let date_range = RangedDate(self.0.date_ceil(), self.1.date_floor()); + + date_range + .key_points(max_points) + .into_iter() + .map(DT::from_date) + .collect() + } +} + +impl
ReversibleRanged for RangedDateTime
+where + DT: Datelike + Timelike + TimeValue + Clone + PartialOrd, + DT: Add, + DT: Sub, + RangedDate: Ranged, +{ + /// Perform the reverse mapping + fn unmap(&self, input: i32, limit: (i32, i32)) -> Option { + Some(TimeValue::unmap_coord(input, &self.0, &self.1, limit)) + } +} + +/// The coordinate that for duration of time +#[derive(Clone)] +pub struct RangedDuration(Duration, Duration); + +impl AsRangedCoord for Range { + type CoordDescType = RangedDuration; + type Value = Duration; +} + +impl From> for RangedDuration { + fn from(range: Range) -> Self { + Self(range.start, range.end) + } +} + +impl Ranged for RangedDuration { + type FormatOption = DefaultFormatting; + type ValueType = Duration; + + fn range(&self) -> Range { + self.0..self.1 + } + + fn map(&self, value: &Self::ValueType, limit: (i32, i32)) -> i32 { + let total_span = self.1 - self.0; + let value_span = *value - self.0; + + if let Some(total_ns) = total_span.num_nanoseconds() { + if let Some(value_ns) = value_span.num_nanoseconds() { + return limit.0 + + (f64::from(limit.1 - limit.0) * value_ns as f64 / total_ns as f64 + 1e-10) + as i32; + } + return limit.1; + } + + let total_days = total_span.num_days(); + let value_days = value_span.num_days(); + + limit.0 + + (f64::from(limit.1 - limit.0) * value_days as f64 / total_days as f64 + 1e-10) as i32 + } + + fn key_points(&self, hint: HintType) -> Vec { + let max_points = hint.max_num_points(); + let total_span = self.1 - self.0; + + if let Some(total_ns) = total_span.num_nanoseconds() { + if let Some(period) = compute_period_per_point(total_ns as u64, max_points, false) { + let mut start_ns = self.0.num_nanoseconds().unwrap(); + + if start_ns as u64 % period > 0 { + if start_ns > 0 { + start_ns += period as i64 - (start_ns % period as i64); + } else { + start_ns -= start_ns % period as i64; + } + } + + let mut current = Duration::nanoseconds(start_ns); + let mut ret = vec![]; + + while current < self.1 { + ret.push(current); + current += Duration::nanoseconds(period as i64); + } + + return ret; + } + } + + let begin_days = self.0.num_days(); + let end_days = self.1.num_days(); + + let mut days_per_tick = 1; + let mut idx = 0; + const MULTIPLIER: &[i32] = &[1, 2, 5]; + + while (end_days - begin_days) / i64::from(days_per_tick * MULTIPLIER[idx]) + > max_points as i64 + { + idx += 1; + if idx == MULTIPLIER.len() { + idx = 0; + days_per_tick *= 10; + } + } + + days_per_tick *= MULTIPLIER[idx]; + + let mut ret = vec![]; + + let mut current = Duration::days( + self.0.num_days() + + if Duration::days(self.0.num_days()) != self.0 { + 1 + } else { + 0 + }, + ); + + while current < self.1 { + ret.push(current); + current += Duration::days(i64::from(days_per_tick)); + } + + ret + } +} + +#[allow(clippy::inconsistent_digit_grouping)] +fn compute_period_per_point(total_ns: u64, max_points: usize, sub_daily: bool) -> Option { + let min_ns_per_point = total_ns as f64 / max_points as f64; + let actual_ns_per_point: u64 = (10u64).pow(min_ns_per_point.log10().floor() as u32); + + fn determine_actual_ns_per_point( + total_ns: u64, + mut actual_ns_per_point: u64, + units: &[u64], + base: u64, + max_points: usize, + ) -> u64 { + let mut unit_per_point_idx = 0; + while total_ns / actual_ns_per_point > max_points as u64 * units[unit_per_point_idx] { + unit_per_point_idx += 1; + if unit_per_point_idx == units.len() { + unit_per_point_idx = 0; + actual_ns_per_point *= base; + } + } + units[unit_per_point_idx] * actual_ns_per_point + } + + if actual_ns_per_point < 1_000_000_000 { + Some(determine_actual_ns_per_point( + total_ns, + actual_ns_per_point, + &[1, 2, 5], + 10, + max_points, + )) + } else if actual_ns_per_point < 3600_000_000_000 { + Some(determine_actual_ns_per_point( + total_ns, + 1_000_000_000, + &[1, 2, 5, 10, 15, 20, 30], + 60, + max_points, + )) + } else if actual_ns_per_point < 3600_000_000_000 * 24 { + Some(determine_actual_ns_per_point( + total_ns, + 3600_000_000_000, + &[1, 2, 4, 8, 12], + 24, + max_points, + )) + } else if !sub_daily { + if actual_ns_per_point < 3600_000_000_000 * 24 * 10 { + Some(determine_actual_ns_per_point( + total_ns, + 3600_000_000_000 * 24, + &[1, 2, 5, 7], + 10, + max_points, + )) + } else { + Some(determine_actual_ns_per_point( + total_ns, + 3600_000_000_000 * 24 * 10, + &[1, 2, 5], + 10, + max_points, + )) + } + } else { + None + } +} + +#[cfg(test)] +mod test { + use super::*; + use chrono::{TimeZone, Utc}; + + #[test] + fn test_date_range_long() { + let range = Utc.ymd(1000, 1, 1)..Utc.ymd(2999, 1, 1); + + let ranged_coord = Into::>::into(range); + + assert_eq!(ranged_coord.map(&Utc.ymd(1000, 8, 10), (0, 100)), 0); + assert_eq!(ranged_coord.map(&Utc.ymd(2999, 8, 10), (0, 100)), 100); + + let kps = ranged_coord.key_points(23); + + assert!(kps.len() <= 23); + let max = kps + .iter() + .zip(kps.iter().skip(1)) + .map(|(p, n)| (*n - *p).num_days()) + .max() + .unwrap(); + let min = kps + .iter() + .zip(kps.iter().skip(1)) + .map(|(p, n)| (*n - *p).num_days()) + .min() + .unwrap(); + assert_eq!(max, min); + assert_eq!(max % 7, 0); + } + + #[test] + fn test_date_range_short() { + let range = Utc.ymd(2019, 1, 1)..Utc.ymd(2019, 1, 21); + let ranged_coord = Into::>::into(range); + + let kps = ranged_coord.key_points(4); + + assert_eq!(kps.len(), 3); + + let max = kps + .iter() + .zip(kps.iter().skip(1)) + .map(|(p, n)| (*n - *p).num_days()) + .max() + .unwrap(); + let min = kps + .iter() + .zip(kps.iter().skip(1)) + .map(|(p, n)| (*n - *p).num_days()) + .min() + .unwrap(); + assert_eq!(max, min); + assert_eq!(max, 7); + + let kps = ranged_coord.key_points(30); + assert_eq!(kps.len(), 21); + let max = kps + .iter() + .zip(kps.iter().skip(1)) + .map(|(p, n)| (*n - *p).num_days()) + .max() + .unwrap(); + let min = kps + .iter() + .zip(kps.iter().skip(1)) + .map(|(p, n)| (*n - *p).num_days()) + .min() + .unwrap(); + assert_eq!(max, min); + assert_eq!(max, 1); + } + + #[test] + fn test_yearly_date_range() { + use crate::coord::ranged1d::BoldPoints; + let range = Utc.ymd(1000, 8, 5)..Utc.ymd(2999, 1, 1); + let ranged_coord = range.yearly(); + + assert_eq!(ranged_coord.map(&Utc.ymd(1000, 8, 10), (0, 100)), 0); + assert_eq!(ranged_coord.map(&Utc.ymd(2999, 8, 10), (0, 100)), 100); + + let kps = ranged_coord.key_points(23); + + assert!(kps.len() <= 23); + let max = kps + .iter() + .zip(kps.iter().skip(1)) + .map(|(p, n)| (*n - *p).num_days()) + .max() + .unwrap(); + let min = kps + .iter() + .zip(kps.iter().skip(1)) + .map(|(p, n)| (*n - *p).num_days()) + .min() + .unwrap(); + assert!(max != min); + + assert!(kps.into_iter().all(|x| x.month() == 9 && x.day() == 1)); + + let range = Utc.ymd(2019, 8, 5)..Utc.ymd(2020, 1, 1); + let ranged_coord = range.yearly(); + let kps = ranged_coord.key_points(BoldPoints(23)); + assert!(kps.len() == 1); + } + + #[test] + fn test_monthly_date_range() { + let range = Utc.ymd(2019, 8, 5)..Utc.ymd(2020, 9, 1); + let ranged_coord = range.monthly(); + + use crate::coord::ranged1d::BoldPoints; + + let kps = ranged_coord.key_points(BoldPoints(15)); + + assert!(kps.len() <= 15); + assert!(kps.iter().all(|x| x.day() == 1)); + assert!(kps.into_iter().any(|x| x.month() != 9)); + + let kps = ranged_coord.key_points(BoldPoints(5)); + assert!(kps.len() <= 5); + assert!(kps.iter().all(|x| x.day() == 1)); + let kps: Vec<_> = kps.into_iter().map(|x| x.month()).collect(); + assert_eq!(kps, vec![9, 12, 3, 6, 9]); + + // TODO: Investigate why max_point = 1 breaks the contract + let kps = ranged_coord.key_points(3); + assert!(kps.len() == 3); + assert!(kps.iter().all(|x| x.day() == 1)); + let kps: Vec<_> = kps.into_iter().map(|x| x.month()).collect(); + assert_eq!(kps, vec![9, 3, 9]); + } + + #[test] + fn test_datetime_long_range() { + let coord: RangedDateTime<_> = + (Utc.ymd(1000, 1, 1).and_hms(0, 0, 0)..Utc.ymd(3000, 1, 1).and_hms(0, 0, 0)).into(); + + assert_eq!( + coord.map(&Utc.ymd(1000, 1, 1).and_hms(0, 0, 0), (0, 100)), + 0 + ); + assert_eq!( + coord.map(&Utc.ymd(3000, 1, 1).and_hms(0, 0, 0), (0, 100)), + 100 + ); + + let kps = coord.key_points(23); + + assert!(kps.len() <= 23); + let max = kps + .iter() + .zip(kps.iter().skip(1)) + .map(|(p, n)| (*n - *p).num_seconds()) + .max() + .unwrap(); + let min = kps + .iter() + .zip(kps.iter().skip(1)) + .map(|(p, n)| (*n - *p).num_seconds()) + .min() + .unwrap(); + assert!(max == min); + assert!(max % (24 * 3600 * 7) == 0); + } + + #[test] + fn test_datetime_medium_range() { + let coord: RangedDateTime<_> = + (Utc.ymd(2019, 1, 1).and_hms(0, 0, 0)..Utc.ymd(2019, 1, 11).and_hms(0, 0, 0)).into(); + + let kps = coord.key_points(23); + + assert!(kps.len() <= 23); + let max = kps + .iter() + .zip(kps.iter().skip(1)) + .map(|(p, n)| (*n - *p).num_seconds()) + .max() + .unwrap(); + let min = kps + .iter() + .zip(kps.iter().skip(1)) + .map(|(p, n)| (*n - *p).num_seconds()) + .min() + .unwrap(); + assert!(max == min); + assert_eq!(max, 12 * 3600); + } + + #[test] + fn test_datetime_short_range() { + let coord: RangedDateTime<_> = + (Utc.ymd(2019, 1, 1).and_hms(0, 0, 0)..Utc.ymd(2019, 1, 2).and_hms(0, 0, 0)).into(); + + let kps = coord.key_points(50); + + assert!(kps.len() <= 50); + let max = kps + .iter() + .zip(kps.iter().skip(1)) + .map(|(p, n)| (*n - *p).num_seconds()) + .max() + .unwrap(); + let min = kps + .iter() + .zip(kps.iter().skip(1)) + .map(|(p, n)| (*n - *p).num_seconds()) + .min() + .unwrap(); + assert!(max == min); + assert_eq!(max, 1800); + } + + #[test] + fn test_datetime_nano_range() { + let start = Utc.ymd(2019, 1, 1).and_hms(0, 0, 0); + let end = start + Duration::nanoseconds(100); + let coord: RangedDateTime<_> = (start..end).into(); + + let kps = coord.key_points(50); + + assert!(kps.len() <= 50); + let max = kps + .iter() + .zip(kps.iter().skip(1)) + .map(|(p, n)| (*n - *p).num_nanoseconds().unwrap()) + .max() + .unwrap(); + let min = kps + .iter() + .zip(kps.iter().skip(1)) + .map(|(p, n)| (*n - *p).num_nanoseconds().unwrap()) + .min() + .unwrap(); + assert!(max == min); + assert_eq!(max, 2); + } + + #[test] + fn test_duration_long_range() { + let coord: RangedDuration = (Duration::days(-1000000)..Duration::days(1000000)).into(); + + assert_eq!(coord.map(&Duration::days(-1000000), (0, 100)), 0); + assert_eq!(coord.map(&Duration::days(1000000), (0, 100)), 100); + + let kps = coord.key_points(23); + + assert!(kps.len() <= 23); + let max = kps + .iter() + .zip(kps.iter().skip(1)) + .map(|(p, n)| (*n - *p).num_seconds()) + .max() + .unwrap(); + let min = kps + .iter() + .zip(kps.iter().skip(1)) + .map(|(p, n)| (*n - *p).num_seconds()) + .min() + .unwrap(); + assert!(max == min); + assert!(max % (24 * 3600 * 10000) == 0); + } + + #[test] + fn test_duration_daily_range() { + let coord: RangedDuration = (Duration::days(0)..Duration::hours(25)).into(); + + let kps = coord.key_points(23); + + assert!(kps.len() <= 23); + let max = kps + .iter() + .zip(kps.iter().skip(1)) + .map(|(p, n)| (*n - *p).num_seconds()) + .max() + .unwrap(); + let min = kps + .iter() + .zip(kps.iter().skip(1)) + .map(|(p, n)| (*n - *p).num_seconds()) + .min() + .unwrap(); + assert!(max == min); + assert_eq!(max, 3600 * 2); + } + + #[test] + fn test_date_discrete() { + let coord: RangedDate> = (Utc.ymd(2019, 1, 1)..Utc.ymd(2019, 12, 31)).into(); + assert_eq!(coord.size(), 365); + assert_eq!(coord.index_of(&Utc.ymd(2019, 2, 28)), Some(31 + 28 - 1)); + assert_eq!(coord.from_index(364), Some(Utc.ymd(2019, 12, 31))); + } + + #[test] + fn test_monthly_discrete() { + let coord1 = (Utc.ymd(2019, 1, 10)..Utc.ymd(2019, 12, 31)).monthly(); + let coord2 = (Utc.ymd(2019, 1, 10)..Utc.ymd(2020, 1, 1)).monthly(); + assert_eq!(coord1.size(), 12); + assert_eq!(coord2.size(), 13); + + for i in 1..=12 { + assert_eq!(coord1.from_index(i - 1).unwrap().month(), i as u32); + assert_eq!( + coord1.index_of(&coord1.from_index(i - 1).unwrap()).unwrap(), + i - 1 + ); + } + } + + #[test] + fn test_yearly_discrete() { + let coord1 = (Utc.ymd(2000, 1, 10)..Utc.ymd(2019, 12, 31)).yearly(); + assert_eq!(coord1.size(), 20); + + for i in 0..20 { + assert_eq!(coord1.from_index(i).unwrap().year(), 2000 + i as i32); + assert_eq!(coord1.index_of(&coord1.from_index(i).unwrap()).unwrap(), i); + } + } + + #[test] + fn test_datetime_with_unmap() { + let start_time = Utc.ymd(2021, 1, 1).and_hms(8, 0, 0); + let end_time = Utc.ymd(2023, 1, 1).and_hms(8, 0, 0); + let mid = Utc.ymd(2022, 1, 1).and_hms(8, 0, 0); + let coord: RangedDateTime<_> = (start_time..end_time).into(); + let pos = coord.map(&mid, (1000, 2000)); + assert_eq!(pos, 1500); + let value = coord.unmap(pos, (1000, 2000)); + assert_eq!(value, Some(mid)); + } + + #[test] + fn test_naivedatetime_with_unmap() { + let start_time = NaiveDate::from_ymd(2021, 1, 1).and_hms_milli(8, 0, 0, 0); + let end_time = NaiveDate::from_ymd(2023, 1, 1).and_hms_milli(8, 0, 0, 0); + let mid = NaiveDate::from_ymd(2022, 1, 1).and_hms_milli(8, 0, 0, 0); + let coord: RangedDateTime<_> = (start_time..end_time).into(); + let pos = coord.map(&mid, (1000, 2000)); + assert_eq!(pos, 1500); + let value = coord.unmap(pos, (1000, 2000)); + assert_eq!(value, Some(mid)); + } + + #[test] + fn test_date_with_unmap() { + let start_date = Utc.ymd(2021, 1, 1); + let end_date = Utc.ymd(2023, 1, 1); + let mid = Utc.ymd(2022, 1, 1); + let coord: RangedDate> = (start_date..end_date).into(); + let pos = coord.map(&mid, (1000, 2000)); + assert_eq!(pos, 1500); + let value = coord.unmap(pos, (1000, 2000)); + assert_eq!(value, Some(mid)); + } + + #[test] + fn test_naivedate_with_unmap() { + let start_date = NaiveDate::from_ymd(2021, 1, 1); + let end_date = NaiveDate::from_ymd(2023, 1, 1); + let mid = NaiveDate::from_ymd(2022, 1, 1); + let coord: RangedDate = (start_date..end_date).into(); + let pos = coord.map(&mid, (1000, 2000)); + assert_eq!(pos, 1500); + let value = coord.unmap(pos, (1000, 2000)); + assert_eq!(value, Some(mid)); + } + + #[test] + fn test_datetime_unmap_for_nanoseconds() { + let start_time = Utc.ymd(2021, 1, 1).and_hms(8, 0, 0); + let end_time = start_time + Duration::nanoseconds(1900); + let mid = start_time + Duration::nanoseconds(950); + let coord: RangedDateTime<_> = (start_time..end_time).into(); + let pos = coord.map(&mid, (1000, 2000)); + assert_eq!(pos, 1500); + let value = coord.unmap(pos, (1000, 2000)); + assert_eq!(value, Some(mid)); + } + + #[test] + fn test_datetime_unmap_for_nanoseconds_small_period() { + let start_time = Utc.ymd(2021, 1, 1).and_hms(8, 0, 0); + let end_time = start_time + Duration::nanoseconds(400); + let coord: RangedDateTime<_> = (start_time..end_time).into(); + let value = coord.unmap(2000, (1000, 2000)); + assert_eq!(value, Some(end_time)); + let mid = start_time + Duration::nanoseconds(200); + let value = coord.unmap(500, (0, 1000)); + assert_eq!(value, Some(mid)); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/types/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/types/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..6a0fd864d9e84546d58cf7baafb3b4f3bd05effe --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/types/mod.rs @@ -0,0 +1,16 @@ +#[cfg(feature = "chrono")] +mod datetime; +#[cfg(feature = "chrono")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "chrono")))] +pub use datetime::{ + IntoMonthly, IntoYearly, Monthly, RangedDate, RangedDateTime, RangedDuration, Yearly, +}; + +mod numeric; +pub use numeric::{ + RangedCoordf32, RangedCoordf64, RangedCoordi128, RangedCoordi32, RangedCoordi64, + RangedCoordisize, RangedCoordu128, RangedCoordu32, RangedCoordu64, RangedCoordusize, +}; + +mod slice; +pub use slice::RangedSlice; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/types/numeric.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/types/numeric.rs new file mode 100644 index 0000000000000000000000000000000000000000..8a9ab2d67504f635fd331ab110e3ebd43675d28b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/types/numeric.rs @@ -0,0 +1,461 @@ +use std::convert::TryFrom; +use std::ops::Range; + +use crate::coord::ranged1d::{ + AsRangedCoord, DefaultFormatting, DiscreteRanged, KeyPointHint, NoDefaultFormatting, Ranged, + ReversibleRanged, ValueFormatter, +}; + +macro_rules! impl_discrete_trait { + ($name:ident) => { + impl DiscreteRanged for $name { + fn size(&self) -> usize { + if &self.1 < &self.0 { + return 0; + } + let values = self.1 - self.0; + (values + 1) as usize + } + + fn index_of(&self, value: &Self::ValueType) -> Option { + if value < &self.0 { + return None; + } + let ret = value - self.0; + Some(ret as usize) + } + + fn from_index(&self, index: usize) -> Option { + if let Ok(index) = Self::ValueType::try_from(index) { + return Some(self.0 + index); + } + None + } + } + }; +} + +macro_rules! impl_ranged_type_trait { + ($value:ty, $coord:ident) => { + impl AsRangedCoord for Range<$value> { + type CoordDescType = $coord; + type Value = $value; + } + }; +} +macro_rules! impl_reverse_mapping_trait { + ($type:ty, $name: ident) => { + impl ReversibleRanged for $name { + fn unmap(&self, p: i32, (min, max): (i32, i32)) -> Option<$type> { + if p < min.min(max) || p > max.max(min) || min == max { + return None; + } + + let logical_offset = f64::from(p - min) / f64::from(max - min); + + return Some(((self.1 - self.0) as f64 * logical_offset + self.0 as f64) as $type); + } + } + }; +} +macro_rules! make_numeric_coord { + ($type:ty, $name:ident, $key_points:ident, $doc: expr, $fmt: ident) => { + #[doc = $doc] + #[derive(Clone)] + pub struct $name($type, $type); + impl From> for $name { + fn from(range: Range<$type>) -> Self { + return $name(range.start, range.end); + } + } + impl Ranged for $name { + type FormatOption = $fmt; + type ValueType = $type; + #[allow(clippy::float_cmp)] + fn map(&self, v: &$type, limit: (i32, i32)) -> i32 { + // Corner case: If we have a range that have only one value, + // then we just assign everything to the only point + if self.1 == self.0 { + return (limit.1 - limit.0) / 2; + } + + let logic_length = (*v as f64 - self.0 as f64) / (self.1 as f64 - self.0 as f64); + + let actual_length = limit.1 - limit.0; + + if actual_length == 0 { + return limit.1; + } + + if logic_length.is_infinite() { + if logic_length.is_sign_positive() { + return limit.1; + } else { + return limit.0; + } + } + + if actual_length > 0 { + return limit.0 + (actual_length as f64 * logic_length + 1e-3).floor() as i32; + } else { + return limit.0 + (actual_length as f64 * logic_length - 1e-3).ceil() as i32; + } + } + fn key_points(&self, hint: Hint) -> Vec<$type> { + $key_points((self.0, self.1), hint.max_num_points()) + } + fn range(&self) -> Range<$type> { + return self.0..self.1; + } + } + }; + ($type:ty, $name:ident, $key_points:ident, $doc: expr) => { + make_numeric_coord!($type, $name, $key_points, $doc, DefaultFormatting); + }; +} + +macro_rules! gen_key_points_comp { + (float, $name:ident, $type:ty) => { + fn $name(range: ($type, $type), max_points: usize) -> Vec<$type> { + if max_points == 0 { + return vec![]; + } + + let range = (range.0.min(range.1) as f64, range.1.max(range.0) as f64); + + assert!(!(range.0.is_nan() || range.1.is_nan())); + + if (range.0 - range.1).abs() < f64::EPSILON { + return vec![range.0 as $type]; + } + + let mut scale = (10f64).powf((range.1 - range.0).log(10.0).floor()); + // The value granularity controls how we round the values. + // To avoid generating key points like 1.00000000001, we round to the nearest multiple of the + // value granularity. + // By default, we make the granularity as the 1/10 of the scale. + let mut value_granularity = scale / 10.0; + fn rem_euclid(a: f64, b: f64) -> f64 { + let ret = if b > 0.0 { + a - (a / b).floor() * b + } else { + a - (a / b).ceil() * b + }; + if (ret - b).abs() < f64::EPSILON { + 0.0 + } else { + ret + } + } + + // At this point we need to make sure that the loop invariant: + // The scale must yield number of points than requested + if 1 + ((range.1 - range.0) / scale).floor() as usize > max_points { + scale *= 10.0; + value_granularity *= 10.0; + } + + 'outer: loop { + let old_scale = scale; + for nxt in [2.0, 5.0, 10.0].iter() { + let mut new_left = range.0 - rem_euclid(range.0, old_scale / nxt); + if new_left < range.0 { + new_left += old_scale / nxt; + } + let new_right = range.1 - rem_euclid(range.1, old_scale / nxt); + + let npoints = 1.0 + ((new_right - new_left) / old_scale * nxt); + + if npoints.round() as usize > max_points { + break 'outer; + } + + scale = old_scale / nxt; + } + scale = old_scale / 10.0; + value_granularity /= 10.0; + } + + let mut ret = vec![]; + // In some extreme cases, left might be too big, so that (left + scale) - left == 0 due to + // floating point error. + // In this case, we may loop forever. To avoid this, we need to use two variables to store + // the current left value. So we need keep a left_base and a left_relative. + let left = { + let mut value = range.0 - rem_euclid(range.0, scale); + if value < range.0 { + value += scale; + } + value + }; + let left_base = (left / value_granularity).floor() * value_granularity; + let mut left_relative = left - left_base; + let right = range.1 - rem_euclid(range.1, scale); + while (right - left_relative - left_base) >= -f64::EPSILON { + let new_left_relative = + (left_relative / value_granularity).round() * value_granularity; + if new_left_relative < 0.0 { + left_relative += value_granularity; + } + ret.push((left_relative + left_base) as $type); + left_relative += scale; + } + return ret; + } + }; + (integer, $name:ident, $type:ty) => { + fn $name(range: ($type, $type), max_points: usize) -> Vec<$type> { + let mut scale: $type = 1; + let range = (range.0.min(range.1), range.0.max(range.1)); + let range_size = range.1 as f64 - range.0 as f64; + 'outer: while (range_size / scale as f64).ceil() > max_points as f64 { + let next_scale = scale * 10; + for new_scale in [scale * 2, scale * 5, scale * 10].iter() { + scale = *new_scale; + if (range_size / *new_scale as f64).ceil() < max_points as f64 { + break 'outer; + } + } + scale = next_scale; + } + + let (mut left, right) = ( + range.0 + (scale - range.0 % scale) % scale, + range.1 - range.1 % scale, + ); + + let mut ret = vec![]; + while left <= right { + ret.push(left as $type); + if left < right { + left += scale; + } else { + break; + } + } + + return ret; + } + }; +} + +gen_key_points_comp!(float, compute_f32_key_points, f32); +gen_key_points_comp!(float, compute_f64_key_points, f64); +gen_key_points_comp!(integer, compute_i32_key_points, i32); +gen_key_points_comp!(integer, compute_u32_key_points, u32); +gen_key_points_comp!(integer, compute_i64_key_points, i64); +gen_key_points_comp!(integer, compute_u64_key_points, u64); +gen_key_points_comp!(integer, compute_i128_key_points, i128); +gen_key_points_comp!(integer, compute_u128_key_points, u128); +gen_key_points_comp!(integer, compute_isize_key_points, isize); +gen_key_points_comp!(integer, compute_usize_key_points, usize); + +make_numeric_coord!( + f32, + RangedCoordf32, + compute_f32_key_points, + "The ranged coordinate for type f32", + NoDefaultFormatting +); +impl_reverse_mapping_trait!(f32, RangedCoordf32); +impl ValueFormatter for RangedCoordf32 { + fn format(value: &f32) -> String { + crate::data::float::FloatPrettyPrinter { + allow_scientific: false, + min_decimal: 1, + max_decimal: 5, + } + .print(*value as f64) + } +} +make_numeric_coord!( + f64, + RangedCoordf64, + compute_f64_key_points, + "The ranged coordinate for type f64", + NoDefaultFormatting +); +impl_reverse_mapping_trait!(f64, RangedCoordf64); +impl ValueFormatter for RangedCoordf64 { + fn format(value: &f64) -> String { + crate::data::float::FloatPrettyPrinter { + allow_scientific: false, + min_decimal: 1, + max_decimal: 5, + } + .print(*value) + } +} +make_numeric_coord!( + u32, + RangedCoordu32, + compute_u32_key_points, + "The ranged coordinate for type u32" +); +make_numeric_coord!( + i32, + RangedCoordi32, + compute_i32_key_points, + "The ranged coordinate for type i32" +); +make_numeric_coord!( + u64, + RangedCoordu64, + compute_u64_key_points, + "The ranged coordinate for type u64" +); +make_numeric_coord!( + i64, + RangedCoordi64, + compute_i64_key_points, + "The ranged coordinate for type i64" +); +make_numeric_coord!( + u128, + RangedCoordu128, + compute_u128_key_points, + "The ranged coordinate for type u128" +); +make_numeric_coord!( + i128, + RangedCoordi128, + compute_i128_key_points, + "The ranged coordinate for type i128" +); +make_numeric_coord!( + usize, + RangedCoordusize, + compute_usize_key_points, + "The ranged coordinate for type usize" +); +make_numeric_coord!( + isize, + RangedCoordisize, + compute_isize_key_points, + "The ranged coordinate for type isize" +); + +impl_discrete_trait!(RangedCoordu32); +impl_discrete_trait!(RangedCoordi32); +impl_discrete_trait!(RangedCoordu64); +impl_discrete_trait!(RangedCoordi64); +impl_discrete_trait!(RangedCoordu128); +impl_discrete_trait!(RangedCoordi128); +impl_discrete_trait!(RangedCoordusize); +impl_discrete_trait!(RangedCoordisize); + +impl_ranged_type_trait!(f32, RangedCoordf32); +impl_ranged_type_trait!(f64, RangedCoordf64); +impl_ranged_type_trait!(i32, RangedCoordi32); +impl_ranged_type_trait!(u32, RangedCoordu32); +impl_ranged_type_trait!(i64, RangedCoordi64); +impl_ranged_type_trait!(u64, RangedCoordu64); +impl_ranged_type_trait!(i128, RangedCoordi128); +impl_ranged_type_trait!(u128, RangedCoordu128); +impl_ranged_type_trait!(isize, RangedCoordisize); +impl_ranged_type_trait!(usize, RangedCoordusize); + +#[cfg(test)] +mod test { + use super::*; + #[test] + fn test_key_points() { + let kp = compute_i32_key_points((0, 999), 28); + + assert!(!kp.is_empty()); + assert!(kp.len() <= 28); + + let kp = compute_f64_key_points((-1.2, 1.2), 1); + assert!(kp.len() == 1); + + let kp = compute_f64_key_points((-1.2, 1.2), 0); + assert!(kp.is_empty()); + } + + #[test] + fn test_linear_coord_map() { + let coord: RangedCoordu32 = (0..20).into(); + assert_eq!(coord.key_points(11).len(), 11); + assert_eq!(coord.key_points(11)[0], 0); + assert_eq!(coord.key_points(11)[10], 20); + assert_eq!(coord.map(&5, (0, 100)), 25); + + let coord: RangedCoordf32 = (0f32..20f32).into(); + assert_eq!(coord.map(&5.0, (0, 100)), 25); + } + + #[test] + fn test_linear_coord_system() { + let _coord = + crate::coord::ranged2d::cartesian::Cartesian2d::::new( + 0..10, + 0..10, + (0..1024, 0..768), + ); + } + + #[test] + fn test_coord_unmap() { + let coord: RangedCoordu32 = (0..20).into(); + let pos = coord.map(&5, (1000, 2000)); + let value = coord.unmap(pos, (1000, 2000)); + assert_eq!(value, Some(5)); + } + + #[test] + fn regression_test_issue_253_zero_sized_coord_not_hang() { + let coord: RangedCoordf32 = (0.0..0.0).into(); + let _points = coord.key_points(10); + } + + #[test] + fn test_small_coord() { + let coord: RangedCoordf64 = (0.0..1e-25).into(); + let points = coord.key_points(10); + assert!(!points.is_empty()); + } + + #[test] + fn regression_test_issue_255_reverse_f32_coord_no_hang() { + let coord: RangedCoordf32 = (10.0..0.0).into(); + let _points = coord.key_points(10); + } + + #[test] + fn regression_test_issue_358_key_points_no_hang() { + let coord: RangedCoordf64 = (-200.0..801.0).into(); + let points = coord.key_points(500); + assert!(points.len() <= 500); + } + + #[test] + fn regression_test_issue_358_key_points_no_hang_2() { + let coord: RangedCoordf64 = (10000000000001f64..10000000000002f64).into(); + let points = coord.key_points(500); + assert!(points.len() <= 500); + } + + #[test] + fn test_coord_follows_hint() { + let coord: RangedCoordf64 = (1.0..2.0).into(); + let points = coord.key_points(6); + assert_eq!(points.len(), 6); + assert_eq!(points[0], 1.0); + let coord: RangedCoordf64 = (1.0..125.0).into(); + let points = coord.key_points(12); + assert_eq!(points.len(), 12); + let coord: RangedCoordf64 = (0.9995..1.0005).into(); + let points = coord.key_points(11); + assert_eq!(points.len(), 11); + let coord: RangedCoordf64 = (0.9995..1.0005).into(); + let points = coord.key_points(2); + assert!(points.len() <= 2); + } + + #[test] + fn regression_test_issue_304_intmax_keypoint_no_panic() { + let coord: RangedCoordu32 = (0..u32::MAX).into(); + let p = coord.key_points(10); + assert!(!p.is_empty() && p.len() <= 10); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/types/slice.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/types/slice.rs new file mode 100644 index 0000000000000000000000000000000000000000..13be3d7f4340aa3881e39bc51aa128dca9e869b5 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged1d/types/slice.rs @@ -0,0 +1,100 @@ +use crate::coord::ranged1d::{ + AsRangedCoord, DefaultFormatting, DiscreteRanged, KeyPointHint, Ranged, +}; +use std::ops::Range; + +/// A range that is defined by a slice of values. +/// +/// Please note: the behavior of constructing an empty range may cause panic +#[derive(Clone)] +pub struct RangedSlice<'a, T: PartialEq>(&'a [T]); + +impl<'a, T: PartialEq> Ranged for RangedSlice<'a, T> { + type FormatOption = DefaultFormatting; + type ValueType = &'a T; + + fn range(&self) -> Range<&'a T> { + // If inner slice is empty, we should always panic + &self.0[0]..&self.0[self.0.len() - 1] + } + + fn map(&self, value: &Self::ValueType, limit: (i32, i32)) -> i32 { + match self.0.iter().position(|x| &x == value) { + Some(pos) => { + let pixel_span = limit.1 - limit.0; + let value_span = self.0.len() - 1; + (f64::from(limit.0) + + f64::from(pixel_span) + * (f64::from(pos as u32) / f64::from(value_span as u32))) + .round() as i32 + } + None => limit.0, + } + } + + fn key_points(&self, hint: Hint) -> Vec { + let max_points = hint.max_num_points(); + let mut ret = vec![]; + let intervals = (self.0.len() - 1) as f64; + let step = (intervals / max_points as f64 + 1.0) as usize; + for idx in (0..self.0.len()).step_by(step) { + ret.push(&self.0[idx]); + } + ret + } +} + +impl<'a, T: PartialEq> DiscreteRanged for RangedSlice<'a, T> { + fn size(&self) -> usize { + self.0.len() + } + + fn index_of(&self, value: &&'a T) -> Option { + self.0.iter().position(|x| &x == value) + } + + fn from_index(&self, index: usize) -> Option<&'a T> { + if self.0.len() <= index { + return None; + } + Some(&self.0[index]) + } +} + +impl<'a, T: PartialEq> From<&'a [T]> for RangedSlice<'a, T> { + fn from(range: &'a [T]) -> Self { + RangedSlice(range) + } +} + +impl<'a, T: PartialEq> AsRangedCoord for &'a [T] { + type CoordDescType = RangedSlice<'a, T>; + type Value = &'a T; +} + +#[cfg(test)] +mod test { + use super::*; + #[test] + fn test_slice_range() { + let my_slice = [1, 2, 3, 0, -1, -2]; + let slice_range: RangedSlice = my_slice[..].into(); + + assert_eq!(slice_range.range(), &1..&-2); + assert_eq!( + slice_range.key_points(6), + my_slice.iter().collect::>() + ); + assert_eq!(slice_range.map(&&0, (0, 50)), 30); + } + + #[test] + fn test_slice_range_discrete() { + let my_slice = [1, 2, 3, 0, -1, -2]; + let slice_range: RangedSlice = my_slice[..].into(); + + assert_eq!(slice_range.size(), 6); + assert_eq!(slice_range.index_of(&&3), Some(2)); + assert_eq!(slice_range.from_index(2), Some(&3)); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged2d/cartesian.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged2d/cartesian.rs new file mode 100644 index 0000000000000000000000000000000000000000..57d2240fabc9c2da452bef60d4c770e9d9935aac --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged2d/cartesian.rs @@ -0,0 +1,154 @@ +/*! + The 2-dimensional cartesian coordinate system. + + This module provides the 2D cartesian coordinate system, which is composed by two independent + ranged 1D coordinate specification. + + This type of coordinate system is used by the chart constructed with [ChartBuilder::build_cartesian_2d](../../chart/ChartBuilder.html#method.build_cartesian_2d). +*/ + +use crate::coord::ranged1d::{KeyPointHint, Ranged, ReversibleRanged}; +use crate::coord::{CoordTranslate, ReverseCoordTranslate}; + +use crate::style::ShapeStyle; +use plotters_backend::{BackendCoord, DrawingBackend, DrawingErrorKind}; + +use std::ops::Range; + +/// A 2D Cartesian coordinate system described by two 1D ranged coordinate specs. +#[derive(Clone)] +pub struct Cartesian2d { + logic_x: X, + logic_y: Y, + back_x: (i32, i32), + back_y: (i32, i32), +} + +impl Cartesian2d { + /// Create a new 2D cartesian coordinate system + /// - `logic_x` and `logic_y` : The description for the 1D coordinate system + /// - `actual`: The pixel range on the screen for this coordinate system + pub fn new, IntoY: Into>( + logic_x: IntoX, + logic_y: IntoY, + actual: (Range, Range), + ) -> Self { + Self { + logic_x: logic_x.into(), + logic_y: logic_y.into(), + back_x: (actual.0.start, actual.0.end), + back_y: (actual.1.start, actual.1.end), + } + } + + /// Draw the mesh for the coordinate system + pub fn draw_mesh< + E, + DrawMesh: FnMut(MeshLine) -> Result<(), E>, + XH: KeyPointHint, + YH: KeyPointHint, + >( + &self, + h_limit: YH, + v_limit: XH, + mut draw_mesh: DrawMesh, + ) -> Result<(), E> { + let (xkp, ykp) = ( + self.logic_x.key_points(v_limit), + self.logic_y.key_points(h_limit), + ); + + for logic_x in xkp { + let x = self.logic_x.map(&logic_x, self.back_x); + draw_mesh(MeshLine::XMesh( + (x, self.back_y.0), + (x, self.back_y.1), + &logic_x, + ))?; + } + + for logic_y in ykp { + let y = self.logic_y.map(&logic_y, self.back_y); + draw_mesh(MeshLine::YMesh( + (self.back_x.0, y), + (self.back_x.1, y), + &logic_y, + ))?; + } + + Ok(()) + } + + /// Get the range of X axis + pub fn get_x_range(&self) -> Range { + self.logic_x.range() + } + + /// Get the range of Y axis + pub fn get_y_range(&self) -> Range { + self.logic_y.range() + } + + /// Get the horizental backend coordinate range where X axis should be drawn + pub fn get_x_axis_pixel_range(&self) -> Range { + self.logic_x.axis_pixel_range(self.back_x) + } + + /// Get the vertical backend coordinate range where Y axis should be drawn + pub fn get_y_axis_pixel_range(&self) -> Range { + self.logic_y.axis_pixel_range(self.back_y) + } + + /// Get the 1D coordinate spec for X axis + pub fn x_spec(&self) -> &X { + &self.logic_x + } + + /// Get the 1D coordinate spec for Y axis + pub fn y_spec(&self) -> &Y { + &self.logic_y + } +} + +impl CoordTranslate for Cartesian2d { + type From = (X::ValueType, Y::ValueType); + + fn translate(&self, from: &Self::From) -> BackendCoord { + ( + self.logic_x.map(&from.0, self.back_x), + self.logic_y.map(&from.1, self.back_y), + ) + } +} + +impl ReverseCoordTranslate for Cartesian2d { + fn reverse_translate(&self, input: BackendCoord) -> Option { + Some(( + self.logic_x.unmap(input.0, self.back_x)?, + self.logic_y.unmap(input.1, self.back_y)?, + )) + } +} + +/// Represent a coordinate mesh for the two ranged value coordinate system +pub enum MeshLine<'a, X: Ranged, Y: Ranged> { + /// Used to plot the horizontal lines of the mesh + XMesh(BackendCoord, BackendCoord, &'a X::ValueType), + /// Used to plot the vertical lines of the mesh + YMesh(BackendCoord, BackendCoord, &'a Y::ValueType), +} + +impl<'a, X: Ranged, Y: Ranged> MeshLine<'a, X, Y> { + /// Draw a single mesh line onto the backend + pub fn draw( + &self, + backend: &mut DB, + style: &ShapeStyle, + ) -> Result<(), DrawingErrorKind> { + let (&left, &right) = match self { + MeshLine::XMesh(a, b, _) => (a, b), + MeshLine::YMesh(a, b, _) => (a, b), + }; + backend.draw_line(left, right, style) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged2d/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged2d/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..eae9425c27e43cbb51b816062aea9de92fd8b1ad --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged2d/mod.rs @@ -0,0 +1 @@ +pub mod cartesian; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged3d/cartesian3d.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged3d/cartesian3d.rs new file mode 100644 index 0000000000000000000000000000000000000000..8719680c54bfc0ac7eb9764a4a0716aa1a13441f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged3d/cartesian3d.rs @@ -0,0 +1,131 @@ +use super::{ProjectionMatrix, ProjectionMatrixBuilder}; +use crate::coord::ranged1d::Ranged; +use crate::coord::CoordTranslate; +use plotters_backend::BackendCoord; + +use std::ops::Range; + +/// A 3D cartesian coordinate system +#[derive(Clone)] +pub struct Cartesian3d { + pub(crate) logic_x: X, + pub(crate) logic_y: Y, + pub(crate) logic_z: Z, + coord_size: (i32, i32, i32), + projection: ProjectionMatrix, +} + +impl Cartesian3d { + fn compute_default_size(actual_x: Range, actual_y: Range) -> i32 { + (actual_x.end - actual_x.start).min(actual_y.end - actual_y.start) * 4 / 5 + } + fn create_projection ProjectionMatrix>( + actual_x: Range, + actual_y: Range, + coord_size: (i32, i32, i32), + f: F, + ) -> ProjectionMatrix { + let center_3d = (coord_size.0 / 2, coord_size.1 / 2, coord_size.2 / 2); + let center_2d = ( + (actual_x.end + actual_x.start) / 2, + (actual_y.end + actual_y.start) / 2, + ); + let mut pb = ProjectionMatrixBuilder::new(); + pb.set_pivot(center_3d, center_2d); + f(pb) + } + /// Creates a Cartesian3d object with the given projection. + pub fn with_projection< + SX: Into, + SY: Into, + SZ: Into, + F: FnOnce(ProjectionMatrixBuilder) -> ProjectionMatrix, + >( + logic_x: SX, + logic_y: SY, + logic_z: SZ, + (actual_x, actual_y): (Range, Range), + build_projection_matrix: F, + ) -> Self { + let default_size = Self::compute_default_size(actual_x.clone(), actual_y.clone()); + let coord_size = (default_size, default_size, default_size); + Self { + logic_x: logic_x.into(), + logic_y: logic_y.into(), + logic_z: logic_z.into(), + coord_size, + projection: Self::create_projection( + actual_x, + actual_y, + coord_size, + build_projection_matrix, + ), + } + } + + /// Sets the pixel sizes and projections according to the given ranges. + pub fn set_coord_pixel_range( + &mut self, + actual_x: Range, + actual_y: Range, + coord_size: (i32, i32, i32), + ) -> &mut Self { + self.coord_size = coord_size; + self.projection = + Self::create_projection(actual_x, actual_y, coord_size, |pb| pb.into_matrix()); + self + } + + /// Set the projection matrix + pub fn set_projection ProjectionMatrix>( + &mut self, + actual_x: Range, + actual_y: Range, + f: F, + ) -> &mut Self { + self.projection = Self::create_projection(actual_x, actual_y, self.coord_size, f); + self + } + + /// Create a new coordinate + pub fn new, SY: Into, SZ: Into>( + logic_x: SX, + logic_y: SY, + logic_z: SZ, + (actual_x, actual_y): (Range, Range), + ) -> Self { + Self::with_projection(logic_x, logic_y, logic_z, (actual_x, actual_y), |pb| { + pb.into_matrix() + }) + } + /// Get the projection matrix + pub fn projection(&self) -> &ProjectionMatrix { + &self.projection + } + + /// Do not project, only transform the guest coordinate system + pub fn map_3d(&self, x: &X::ValueType, y: &Y::ValueType, z: &Z::ValueType) -> (i32, i32, i32) { + ( + self.logic_x.map(x, (0, self.coord_size.0)), + self.logic_y.map(y, (0, self.coord_size.1)), + self.logic_z.map(z, (0, self.coord_size.2)), + ) + } + + /// Get the depth of the projection + pub fn projected_depth(&self, x: &X::ValueType, y: &Y::ValueType, z: &Z::ValueType) -> i32 { + self.projection.projected_depth(self.map_3d(x, y, z)) + } +} + +impl CoordTranslate for Cartesian3d { + type From = (X::ValueType, Y::ValueType, Z::ValueType); + fn translate(&self, coord: &Self::From) -> BackendCoord { + let pixel_coord_3d = self.map_3d(&coord.0, &coord.1, &coord.2); + self.projection * pixel_coord_3d + } + + fn depth(&self, coord: &Self::From) -> i32 { + self.projected_depth(&coord.0, &coord.1, &coord.2) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged3d/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged3d/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..274a70d8e9e72df23e64175f25aa41bb4f1adb16 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged3d/mod.rs @@ -0,0 +1,5 @@ +mod projection; +pub use projection::{ProjectionMatrix, ProjectionMatrixBuilder}; + +mod cartesian3d; +pub use cartesian3d::Cartesian3d; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged3d/projection.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged3d/projection.rs new file mode 100644 index 0000000000000000000000000000000000000000..a9c57c1b34dae449185d9f9562e6e8a4370d2ff8 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/coord/ranged3d/projection.rs @@ -0,0 +1,209 @@ +use std::f64::consts::PI; +use std::ops::Mul; + +/// The projection matrix which is used to project the 3D space to the 2D display panel +#[derive(Clone, Debug, Copy)] +pub struct ProjectionMatrix([[f64; 4]; 4]); + +impl AsRef<[[f64; 4]; 4]> for ProjectionMatrix { + fn as_ref(&self) -> &[[f64; 4]; 4] { + &self.0 + } +} + +impl AsMut<[[f64; 4]; 4]> for ProjectionMatrix { + fn as_mut(&mut self) -> &mut [[f64; 4]; 4] { + &mut self.0 + } +} + +impl From<[[f64; 4]; 4]> for ProjectionMatrix { + fn from(data: [[f64; 4]; 4]) -> Self { + ProjectionMatrix(data) + } +} + +impl Default for ProjectionMatrix { + fn default() -> Self { + ProjectionMatrix::rotate(PI, 0.0, 0.0) + } +} + +impl Mul for ProjectionMatrix { + type Output = ProjectionMatrix; + fn mul(self, other: ProjectionMatrix) -> ProjectionMatrix { + let mut ret = ProjectionMatrix::zero(); + for r in 0..4 { + for c in 0..4 { + for k in 0..4 { + ret.0[r][c] += other.0[r][k] * self.0[k][c]; + } + } + } + ret.normalize(); + ret + } +} + +impl Mul<(i32, i32, i32)> for ProjectionMatrix { + type Output = (i32, i32); + fn mul(self, (x, y, z): (i32, i32, i32)) -> (i32, i32) { + let (x, y, z) = (x as f64, y as f64, z as f64); + let m = self.0; + ( + (x * m[0][0] + y * m[0][1] + z * m[0][2] + m[0][3]) as i32, + (x * m[1][0] + y * m[1][1] + z * m[1][2] + m[1][3]) as i32, + ) + } +} + +impl Mul<(f64, f64, f64)> for ProjectionMatrix { + type Output = (i32, i32); + fn mul(self, (x, y, z): (f64, f64, f64)) -> (i32, i32) { + let m = self.0; + ( + (x * m[0][0] + y * m[0][1] + z * m[0][2] + m[0][3]) as i32, + (x * m[1][0] + y * m[1][1] + z * m[1][2] + m[1][3]) as i32, + ) + } +} + +impl ProjectionMatrix { + /// Returns the identity matrix + pub fn one() -> Self { + ProjectionMatrix([ + [1.0, 0.0, 0.0, 0.0], + [0.0, 1.0, 0.0, 0.0], + [0.0, 0.0, 1.0, 0.0], + [0.0, 0.0, 0.0, 1.0], + ]) + } + /// Returns the zero maxtrix + pub fn zero() -> Self { + ProjectionMatrix([[0.0; 4]; 4]) + } + /// Returns the matrix which shift the coordinate + pub fn shift(x: f64, y: f64, z: f64) -> Self { + ProjectionMatrix([ + [1.0, 0.0, 0.0, x], + [0.0, 1.0, 0.0, y], + [0.0, 0.0, 1.0, z], + [0.0, 0.0, 0.0, 1.0], + ]) + } + /// Returns the matrix which rotates the coordinate + #[allow(clippy::many_single_char_names)] + pub fn rotate(x: f64, y: f64, z: f64) -> Self { + let (c, b, a) = (x, y, z); + ProjectionMatrix([ + [ + a.cos() * b.cos(), + a.cos() * b.sin() * c.sin() - a.sin() * c.cos(), + a.cos() * b.sin() * c.cos() + a.sin() * c.sin(), + 0.0, + ], + [ + a.sin() * b.cos(), + a.sin() * b.sin() * c.sin() + a.cos() * c.cos(), + a.sin() * b.sin() * c.cos() - a.cos() * c.sin(), + 0.0, + ], + [-b.sin(), b.cos() * c.sin(), b.cos() * c.cos(), 0.0], + [0.0, 0.0, 0.0, 1.0], + ]) + } + /// Returns the matrix that applies a scale factor + pub fn scale(factor: f64) -> Self { + ProjectionMatrix([ + [1.0, 0.0, 0.0, 0.0], + [0.0, 1.0, 0.0, 0.0], + [0.0, 0.0, 1.0, 0.0], + [0.0, 0.0, 0.0, 1.0 / factor], + ]) + } + /// Normalize the matrix, this will make the metric unit to 1 + pub fn normalize(&mut self) { + if self.0[3][3] > 1e-20 { + for r in 0..4 { + for c in 0..4 { + self.0[r][c] /= self.0[3][3]; + } + } + } + } + + /// Get the distance of the point in guest coordinate from the screen in pixels + pub fn projected_depth(&self, (x, y, z): (i32, i32, i32)) -> i32 { + let r = &self.0[2]; + (r[0] * x as f64 + r[1] * y as f64 + r[2] * z as f64 + r[3]) as i32 + } +} + +/// The helper struct to build a projection matrix +#[derive(Copy, Clone)] +pub struct ProjectionMatrixBuilder { + /// Specifies the yaw of the 3D coordinate system + pub yaw: f64, + /// Specifies the pitch of the 3D coordinate system + pub pitch: f64, + /// Specifies the scale of the 3D coordinate system + pub scale: f64, + pivot_before: (i32, i32, i32), + pivot_after: (i32, i32), +} + +impl Default for ProjectionMatrixBuilder { + fn default() -> Self { + Self { + yaw: 0.5, + pitch: 0.15, + scale: 1.0, + pivot_after: (0, 0), + pivot_before: (0, 0, 0), + } + } +} + +impl ProjectionMatrixBuilder { + /// Creates a new, default projection matrix builder object. + pub fn new() -> Self { + Self::default() + } + + /// Set the pivot point, which means the 3D coordinate "before" should be mapped into + /// the 2D coordinatet "after" + pub fn set_pivot(&mut self, before: (i32, i32, i32), after: (i32, i32)) -> &mut Self { + self.pivot_before = before; + self.pivot_after = after; + self + } + + /// Build the matrix based on the configuration + pub fn into_matrix(self) -> ProjectionMatrix { + let mut ret = if self.pivot_before == (0, 0, 0) { + ProjectionMatrix::default() + } else { + let (x, y, z) = self.pivot_before; + ProjectionMatrix::shift(-x as f64, -y as f64, -z as f64) * ProjectionMatrix::default() + }; + + if self.yaw.abs() > 1e-20 { + ret = ret * ProjectionMatrix::rotate(0.0, self.yaw, 0.0); + } + + if self.pitch.abs() > 1e-20 { + ret = ret * ProjectionMatrix::rotate(self.pitch, 0.0, 0.0); + } + + if (self.scale - 1.0).abs() > 1e-20 { + ret = ret * ProjectionMatrix::scale(self.scale); + } + + if self.pivot_after != (0, 0) { + let (x, y) = self.pivot_after; + ret = ret * ProjectionMatrix::shift(x as f64, y as f64, 0.0); + } + + ret + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/drawing/backend_impl/mocked.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/drawing/backend_impl/mocked.rs new file mode 100644 index 0000000000000000000000000000000000000000..7569e732296c0d1cb1e6ac8fda95bc8f9e679684 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/drawing/backend_impl/mocked.rs @@ -0,0 +1,296 @@ +use crate::coord::Shift; +use crate::drawing::area::IntoDrawingArea; +use crate::drawing::DrawingArea; +use crate::style::RGBAColor; +use plotters_backend::{ + BackendColor, BackendCoord, BackendStyle, BackendTextStyle, DrawingBackend, DrawingErrorKind, +}; + +use std::collections::VecDeque; + +pub fn check_color(left: BackendColor, right: RGBAColor) { + assert_eq!( + RGBAColor(left.rgb.0, left.rgb.1, left.rgb.2, left.alpha), + right + ); +} + +pub struct MockedBackend { + height: u32, + width: u32, + init_count: u32, + pub draw_count: u32, + pub num_draw_pixel_call: u32, + pub num_draw_line_call: u32, + pub num_draw_rect_call: u32, + pub num_draw_circle_call: u32, + pub num_draw_text_call: u32, + pub num_draw_path_call: u32, + pub num_fill_polygon_call: u32, + check_draw_pixel: VecDeque>, + check_draw_line: VecDeque>, + check_draw_rect: VecDeque>, + check_draw_path: VecDeque)>>, + check_draw_circle: VecDeque>, + check_draw_text: VecDeque>, + check_fill_polygon: VecDeque)>>, + drop_check: Option>, +} + +macro_rules! def_set_checker_func { + (drop_check, $($param:ty),*) => { + pub fn drop_check(&mut self, check:T) -> &mut Self { + self.drop_check = Some(Box::new(check)); + self + } + }; + ($name:ident, $($param:ty),*) => { + pub fn $name(&mut self, check:T) -> &mut Self { + self.$name.push_back(Box::new(check)); + self + } + } +} + +impl MockedBackend { + pub fn new(width: u32, height: u32) -> Self { + MockedBackend { + height, + width, + init_count: 0, + draw_count: 0, + num_draw_pixel_call: 0, + num_draw_line_call: 0, + num_draw_rect_call: 0, + num_draw_circle_call: 0, + num_draw_text_call: 0, + num_draw_path_call: 0, + num_fill_polygon_call: 0, + check_draw_pixel: vec![].into(), + check_draw_line: vec![].into(), + check_draw_rect: vec![].into(), + check_draw_path: vec![].into(), + check_draw_circle: vec![].into(), + check_draw_text: vec![].into(), + check_fill_polygon: vec![].into(), + drop_check: None, + } + } + + def_set_checker_func!(check_draw_pixel, RGBAColor, BackendCoord); + def_set_checker_func!(check_draw_line, RGBAColor, u32, BackendCoord, BackendCoord); + def_set_checker_func!( + check_draw_rect, + RGBAColor, + u32, + bool, + BackendCoord, + BackendCoord + ); + def_set_checker_func!(check_draw_path, RGBAColor, u32, Vec); + def_set_checker_func!(check_draw_circle, RGBAColor, u32, bool, BackendCoord, u32); + def_set_checker_func!(check_draw_text, RGBAColor, &str, f64, BackendCoord, &str); + def_set_checker_func!(drop_check, &Self); + def_set_checker_func!(check_fill_polygon, RGBAColor, Vec); + + fn check_before_draw(&mut self) { + self.draw_count += 1; + //assert_eq!(self.init_count, self.draw_count); + } +} + +#[derive(Debug)] +pub struct MockedError; + +impl std::fmt::Display for MockedError { + fn fmt(&self, fmt: &mut std::fmt::Formatter) -> std::fmt::Result { + write!(fmt, "MockedError") + } +} + +impl std::error::Error for MockedError {} + +impl DrawingBackend for MockedBackend { + type ErrorType = MockedError; + + fn get_size(&self) -> (u32, u32) { + (self.width, self.height) + } + + fn ensure_prepared(&mut self) -> Result<(), DrawingErrorKind> { + self.init_count += 1; + Ok(()) + } + + fn present(&mut self) -> Result<(), DrawingErrorKind> { + self.init_count = 0; + self.draw_count = 0; + Ok(()) + } + + fn draw_pixel( + &mut self, + point: BackendCoord, + color: BackendColor, + ) -> Result<(), DrawingErrorKind> { + self.check_before_draw(); + self.num_draw_pixel_call += 1; + let color = RGBAColor(color.rgb.0, color.rgb.1, color.rgb.2, color.alpha); + if let Some(mut checker) = self.check_draw_pixel.pop_front() { + checker(color, point); + + if self.check_draw_pixel.is_empty() { + self.check_draw_pixel.push_back(checker); + } + } + Ok(()) + } + + fn draw_line( + &mut self, + from: BackendCoord, + to: BackendCoord, + style: &S, + ) -> Result<(), DrawingErrorKind> { + self.check_before_draw(); + self.num_draw_line_call += 1; + let color = style.color(); + let color = RGBAColor(color.rgb.0, color.rgb.1, color.rgb.2, color.alpha); + if let Some(mut checker) = self.check_draw_line.pop_front() { + checker(color, style.stroke_width(), from, to); + + if self.check_draw_line.is_empty() { + self.check_draw_line.push_back(checker); + } + } + Ok(()) + } + + fn draw_rect( + &mut self, + upper_left: BackendCoord, + bottom_right: BackendCoord, + style: &S, + fill: bool, + ) -> Result<(), DrawingErrorKind> { + self.check_before_draw(); + self.num_draw_rect_call += 1; + let color = style.color(); + let color = RGBAColor(color.rgb.0, color.rgb.1, color.rgb.2, color.alpha); + if let Some(mut checker) = self.check_draw_rect.pop_front() { + checker(color, style.stroke_width(), fill, upper_left, bottom_right); + + if self.check_draw_rect.is_empty() { + self.check_draw_rect.push_back(checker); + } + } + Ok(()) + } + + fn draw_path>( + &mut self, + path: I, + style: &S, + ) -> Result<(), DrawingErrorKind> { + self.check_before_draw(); + self.num_draw_path_call += 1; + let color = style.color(); + let color = RGBAColor(color.rgb.0, color.rgb.1, color.rgb.2, color.alpha); + if let Some(mut checker) = self.check_draw_path.pop_front() { + checker(color, style.stroke_width(), path.into_iter().collect()); + + if self.check_draw_path.is_empty() { + self.check_draw_path.push_back(checker); + } + } + Ok(()) + } + + fn draw_circle( + &mut self, + center: BackendCoord, + radius: u32, + style: &S, + fill: bool, + ) -> Result<(), DrawingErrorKind> { + self.check_before_draw(); + self.num_draw_circle_call += 1; + let color = style.color(); + let color = RGBAColor(color.rgb.0, color.rgb.1, color.rgb.2, color.alpha); + if let Some(mut checker) = self.check_draw_circle.pop_front() { + checker(color, style.stroke_width(), fill, center, radius); + + if self.check_draw_circle.is_empty() { + self.check_draw_circle.push_back(checker); + } + } + Ok(()) + } + + fn fill_polygon>( + &mut self, + path: I, + style: &S, + ) -> Result<(), DrawingErrorKind> { + self.check_before_draw(); + self.num_fill_polygon_call += 1; + let color = style.color(); + let color = RGBAColor(color.rgb.0, color.rgb.1, color.rgb.2, color.alpha); + if let Some(mut checker) = self.check_fill_polygon.pop_front() { + checker(color, path.into_iter().collect()); + + if self.check_fill_polygon.is_empty() { + self.check_fill_polygon.push_back(checker); + } + } + Ok(()) + } + + fn draw_text( + &mut self, + text: &str, + style: &S, + pos: BackendCoord, + ) -> Result<(), DrawingErrorKind> { + let color = style.color(); + let color = RGBAColor(color.rgb.0, color.rgb.1, color.rgb.2, color.alpha); + self.check_before_draw(); + self.num_draw_text_call += 1; + if let Some(mut checker) = self.check_draw_text.pop_front() { + checker(color, style.family().as_str(), style.size(), pos, text); + + if self.check_draw_text.is_empty() { + self.check_draw_text.push_back(checker); + } + } + Ok(()) + } +} + +impl Drop for MockedBackend { + fn drop(&mut self) { + // `self.drop_check` is typically a testing function; it can panic. + // The current `drop` call may be a part of stack unwinding caused + // by another panic. If so, we should never call it. + if std::thread::panicking() { + return; + } + + let mut temp = None; + std::mem::swap(&mut temp, &mut self.drop_check); + + if let Some(mut checker) = temp { + checker(self); + } + } +} + +pub fn create_mocked_drawing_area( + width: u32, + height: u32, + setup: F, +) -> DrawingArea { + let mut backend = MockedBackend::new(width, height); + setup(&mut backend); + backend.into_drawing_area() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/drawing/backend_impl/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/drawing/backend_impl/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..59daa8d6cef880d43bf84046f8c23880803092d3 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/drawing/backend_impl/mod.rs @@ -0,0 +1,16 @@ +#[cfg(test)] +mod mocked; +#[cfg(test)] +pub use mocked::{check_color, create_mocked_drawing_area, MockedBackend}; + +/// This is the dummy backend placeholder for the backend that never fails +#[derive(Debug)] +pub struct DummyBackendError; + +impl std::fmt::Display for DummyBackendError { + fn fmt(&self, fmt: &mut std::fmt::Formatter) -> std::fmt::Result { + write!(fmt, "{:?}", self) + } +} + +impl std::error::Error for DummyBackendError {} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/colors/colormaps.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/colors/colormaps.rs new file mode 100644 index 0000000000000000000000000000000000000000..35ebddbfaa868aebe96059dcb5f7a59a674049a5 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/colors/colormaps.rs @@ -0,0 +1,370 @@ +use crate::style::{HSLColor, RGBAColor, RGBColor}; + +/// Converts scalar values to colors. +pub trait ColorMap +where + FloatType: num_traits::Float, +{ + /// Takes a scalar value 0.0 <= h <= 1.0 and returns the corresponding color. + /// Typically color-scales are named according to which color-type they return. + /// To use upper and lower bounds with this function see [get_color_normalized](ColorMap::get_color_normalized). + fn get_color(&self, h: FloatType) -> ColorType { + self.get_color_normalized(h, FloatType::zero(), FloatType::one()) + } + + /// A slight abstraction over [get_color](ColorMap::get_color) function where lower and upper bound can be specified. + fn get_color_normalized(&self, h: FloatType, min: FloatType, max: FloatType) -> ColorType; +} + +/// This struct is used to dynamically construct colormaps by giving it a slice of colors. +/// It can then be used when being intantiated, but not with associated functions. +/// ``` +/// use plotters::prelude::{BLACK,BLUE,WHITE,DerivedColorMap,ColorMap}; +/// +/// let derived_colormap = DerivedColorMap::new( +/// &[BLACK, +/// BLUE, +/// WHITE] +/// ); +/// +/// assert_eq!(derived_colormap.get_color(0.0), BLACK); +/// assert_eq!(derived_colormap.get_color(0.5), BLUE); +/// assert_eq!(derived_colormap.get_color(1.0), WHITE); +/// ``` +pub struct DerivedColorMap { + colors: Vec, +} + +impl DerivedColorMap { + /// This function lets the user define a new colormap by simply specifying colors in the correct order. + /// For calculation of the color values, the colors will be spaced evenly apart. + pub fn new(colors: &[ColorType]) -> Self { + DerivedColorMap { + colors: colors.to_vec(), + } + } +} + +#[macro_export] +#[doc(hidden)] +macro_rules! calculate_new_color_value( + ($relative_difference:expr, $colors:expr, $index_upper:expr, $index_lower:expr, RGBColor) => { + RGBColor( + // These equations are a very complicated way of writing a simple linear extrapolation with lots of casting between numerical values + // In principle every cast should be safe which is why we choose to unwrap + // (1.0 - r) * color_value_1 + r * color_value_2 + ((FloatType::one() - $relative_difference) * FloatType::from_u8($colors[$index_upper].0).unwrap() + $relative_difference * FloatType::from_u8($colors[$index_lower].0).unwrap()).round().to_u8().unwrap(), + ((FloatType::one() - $relative_difference) * FloatType::from_u8($colors[$index_upper].1).unwrap() + $relative_difference * FloatType::from_u8($colors[$index_lower].1).unwrap()).round().to_u8().unwrap(), + ((FloatType::one() - $relative_difference) * FloatType::from_u8($colors[$index_upper].2).unwrap() + $relative_difference * FloatType::from_u8($colors[$index_lower].2).unwrap()).round().to_u8().unwrap() + ) + }; + ($relative_difference:expr, $colors:expr, $index_upper:expr, $index_lower:expr, RGBAColor) => { + RGBAColor( + // These equations are a very complicated way of writing a simple linear extrapolation with lots of casting between numerical values + // In principle every cast should be safe which is why we choose to unwrap + // (1.0 - r) * color_value_1 + r * color_value_2 + ((FloatType::one() - $relative_difference) * FloatType::from_u8($colors[$index_upper].0).unwrap() + $relative_difference * FloatType::from_u8($colors[$index_lower].0).unwrap()).round().to_u8().unwrap(), + ((FloatType::one() - $relative_difference) * FloatType::from_u8($colors[$index_upper].1).unwrap() + $relative_difference * FloatType::from_u8($colors[$index_lower].1).unwrap()).round().to_u8().unwrap(), + ((FloatType::one() - $relative_difference) * FloatType::from_u8($colors[$index_upper].2).unwrap() + $relative_difference * FloatType::from_u8($colors[$index_lower].2).unwrap()).round().to_u8().unwrap(), + ((FloatType::one() - $relative_difference) * FloatType::from_f64($colors[$index_upper].3).unwrap() + $relative_difference * FloatType::from_f64($colors[$index_lower].3).unwrap()).to_f64().unwrap() + ) + }; + ($relative_difference:expr, $colors:expr, $index_upper:expr, $index_lower:expr, HSLColor) => { + HSLColor( + // These equations are a very complicated way of writing a simple linear extrapolation with lots of casting between numerical values + // In principle every cast should be safe which is why we choose to unwrap + // (1.0 - r) * color_value_1 + r * color_value_2 + ((FloatType::one() - $relative_difference) * FloatType::from_f64($colors[$index_upper].0).unwrap() + $relative_difference * FloatType::from_f64($colors[$index_lower].0).unwrap()).to_f64().unwrap(), + ((FloatType::one() - $relative_difference) * FloatType::from_f64($colors[$index_upper].1).unwrap() + $relative_difference * FloatType::from_f64($colors[$index_lower].1).unwrap()).to_f64().unwrap(), + ((FloatType::one() - $relative_difference) * FloatType::from_f64($colors[$index_upper].2).unwrap() + $relative_difference * FloatType::from_f64($colors[$index_lower].2).unwrap()).to_f64().unwrap(), + ) + }; +); + +// Helper function to calculate the lower and upper index nearest to a provided float value. +// +// Used to obtain colors from a colorscale given a value h between 0.0 and 1.0. +// It also returns the relative difference which can then be used to calculate a linear interpolation between the two nearest colors. +// ``` +// # use plotters::prelude::*; +// let r = calculate_relative_difference_index_lower_upper(1.2, 1.0, 3.0, 4); +// let (relative_difference, lower_index, upper_index) = r; +// +// assert_eq!(relative_difference, 0.7000000000000001); +// assert_eq!(lower_index, 0); +// assert_eq!(upper_index, 1); +// ``` +#[doc(hidden)] +pub fn calculate_relative_difference_index_lower_upper< + FloatType: num_traits::Float + num_traits::FromPrimitive + num_traits::ToPrimitive, +>( + h: FloatType, + min: FloatType, + max: FloatType, + n_steps: usize, +) -> (FloatType, usize, usize) { + // Ensure that we do have a value in bounds + let h = num_traits::clamp(h, min, max); + // Next calculate a normalized value between 0.0 and 1.0 + let t = (h - min) / (max - min); + let approximate_index = + t * (FloatType::from_usize(n_steps).unwrap() - FloatType::one()).max(FloatType::zero()); + // Calculate which index are the two most nearest of the supplied value + let index_lower = approximate_index.floor().to_usize().unwrap(); + let index_upper = approximate_index.ceil().to_usize().unwrap(); + // Calculate the relative difference, ie. is the actual value more towards the color of index_upper or index_lower? + let relative_difference = approximate_index.ceil() - approximate_index; + (relative_difference, index_lower, index_upper) +} + +macro_rules! implement_color_scale_for_derived_color_map{ + ($($color_type:ident),+) => { + $( + impl ColorMap<$color_type, FloatType> for DerivedColorMap<$color_type> { + fn get_color_normalized(&self, h: FloatType, min: FloatType, max: FloatType) -> $color_type { + let ( + relative_difference, + index_lower, + index_upper + ) = calculate_relative_difference_index_lower_upper( + h, + min, + max, + self.colors.len() + ); + // Interpolate the final color linearly + $crate::calculate_new_color_value!( + relative_difference, + self.colors, + index_upper, + index_lower, + $color_type + ) + } + } + )+ + } +} + +implement_color_scale_for_derived_color_map! {RGBAColor, RGBColor, HSLColor} + +#[macro_export] +#[doc(hidden)] +// Counts the number of arguments which are separated by spaces +// +// This macro is used internally to determine the size of an array to hold all new colors. +// ``` +// # use plotters::count; +// let counted = count!{Plotting is fun}; +// assert_eq!(counted, 3); +// +// let counted2 = count!{0_usize was my favourite 1_f64 last century}; +// assert_eq!(counted2, 7); +// +// let new_array = ["Hello"; count!(Plotting is fun)]; +// assert_eq!(new_array, ["Hello"; 3]); +// ``` +macro_rules! count { + () => (0usize); + ($x:tt $($xs:tt)* ) => (1usize + $crate::count!($($xs)*)); +} + +#[macro_export] +#[doc(hidden)] +/// Converts a given color identifier and a sequence of colors to an array of them. +macro_rules! define_colors_from_list_of_values_or_directly{ + ($color_type:ident, $(($($color_value:expr),+)),+) => { + [$($color_type($($color_value),+)),+] + }; + ($($color_complete:tt),+) => { + [$($color_complete),+] + }; +} + +#[macro_export] +#[doc(hidden)] +/// Implements the [ColorMap] trait on a given color scale. +macro_rules! implement_linear_interpolation_color_map { + ($color_scale_name:ident, $color_type:ident) => { + impl + ColorMap<$color_type, FloatType> for $color_scale_name + { + fn get_color_normalized( + &self, + h: FloatType, + min: FloatType, + max: FloatType, + ) -> $color_type { + let ( + relative_difference, + index_lower, + index_upper + ) = calculate_relative_difference_index_lower_upper( + h, + min, + max, + Self::COLORS.len() + ); + // Interpolate the final color linearly + $crate::calculate_new_color_value!( + relative_difference, + Self::COLORS, + index_upper, + index_lower, + $color_type + ) + } + } + + impl $color_scale_name { + #[doc = "Get color value from `"] + #[doc = stringify!($color_scale_name)] + #[doc = "` by supplying a parameter 0.0 <= h <= 1.0"] + pub fn get_color( + h: FloatType, + ) -> $color_type { + let color_scale = $color_scale_name {}; + color_scale.get_color(h) + } + + #[doc = "Get color value from `"] + #[doc = stringify!($color_scale_name)] + #[doc = "` by supplying lower and upper bounds min, max and a parameter h where min <= h <= max"] + pub fn get_color_normalized< + FloatType: std::fmt::Debug + num_traits::Float + num_traits::FromPrimitive + num_traits::ToPrimitive, + >( + h: FloatType, + min: FloatType, + max: FloatType, + ) -> $color_type { + let color_scale = $color_scale_name {}; + color_scale.get_color_normalized(h, min, max) + } + } + }; +} + +#[doc(inline)] +pub use crate::def_linear_colormap; + +#[macro_export] +#[doc(hidden)] +/// Create a new colormap with evenly spaced colors and interpolates between them automatically. +/// +/// This macro works by taking a identifier (name) for the colormap, the type of color to specify, a +/// docstring and a list of colors and constructs an empty struct on which it implements the [ColorMap] trait. +/// +/// ``` +/// use plotters::prelude::*; +/// def_linear_colormap! { +/// BlackWhite, +/// RGBColor, +/// "Simple chromatic colormap from black to white.", +/// ( 0, 0, 0), +/// (255, 255, 255) +/// } +/// +/// assert_eq!(BlackWhite::get_color(0.0), RGBColor(0,0,0)); +/// ``` +/// +/// Hint: Some helper macros and functions have been deliberately hidden from end users. +/// Look for them in the source code if you are interested. +macro_rules! def_linear_colormap{ + ($color_scale_name:ident, $color_type:ident, $doc:expr, $(($($color_value:expr),+)),*) => { + #[doc = $doc] + pub struct $color_scale_name; + + impl $color_scale_name { + // const COLORS: [$color_type; $number_colors] = [$($color_type($($color_value),+)),+]; + // const COLORS: [$color_type; $crate::count!($(($($color_value:expr),+))*)] = [$($color_type($($color_value),+)),+]; + const COLORS: [$color_type; $crate::count!($(($($color_value:expr),+))*)] = $crate::define_colors_from_list_of_values_or_directly!{$color_type, $(($($color_value),+)),*}; + } + + $crate::implement_linear_interpolation_color_map!{$color_scale_name, $color_type} + }; + ($color_scale_name:ident, $color_type:ident, $doc:expr, $($color_complete:tt),+) => { + #[doc = $doc] + pub struct $color_scale_name; + + impl $color_scale_name { + const COLORS: [$color_type; $crate::count!($($color_complete)*)] = $crate::define_colors_from_list_of_values_or_directly!{$($color_complete),+}; + } + + $crate::implement_linear_interpolation_color_map!{$color_scale_name, $color_type} + } +} + +def_linear_colormap! { + ViridisRGBA, + RGBAColor, + "A colormap optimized for visually impaired people (RGBA format). + It is currently the default colormap also used by [matplotlib](https://matplotlib.org/stable/tutorials/colors/colormaps.html). + Read more in this [paper](https://doi.org/10.1371/journal.pone.0199239)", + ( 68, 1, 84, 1.0), + ( 70, 50, 127, 1.0), + ( 54, 92, 141, 1.0), + ( 39, 127, 143, 1.0), + ( 31, 162, 136, 1.0), + ( 74, 194, 110, 1.0), + (160, 219, 57, 1.0), + (254, 232, 37, 1.0) +} + +def_linear_colormap! { + ViridisRGB, + RGBColor, + "A colormap optimized for visually impaired people (RGB Format). + It is currently the default colormap also used by [matplotlib](https://matplotlib.org/stable/tutorials/colors/colormaps.html). + Read more in this [paper](https://doi.org/10.1371/journal.pone.0199239)", + ( 68, 1, 84), + ( 70, 50, 127), + ( 54, 92, 141), + ( 39, 127, 143), + ( 31, 162, 136), + ( 74, 194, 110), + (160, 219, 57), + (254, 232, 37) +} + +def_linear_colormap! { + BlackWhite, + RGBColor, + "Simple chromatic colormap from black to white.", + ( 0, 0, 0), + (255, 255, 255) +} + +def_linear_colormap! { + MandelbrotHSL, + HSLColor, + "Colormap created to replace the one used in the mandelbrot example.", + (0.0, 1.0, 0.5), + (1.0, 1.0, 0.5) +} + +def_linear_colormap! { + VulcanoHSL, + HSLColor, + "A vulcanic colormap that display red/orange and black colors", + (2.0/3.0, 1.0, 0.7), + ( 0.0, 1.0, 0.7) +} + +use super::full_palette::*; +def_linear_colormap! { + Bone, + RGBColor, + "Dark colormap going from black over blue to white.", + BLACK, + BLUE, + WHITE +} + +def_linear_colormap! { + Copper, + RGBColor, + "Friendly black to brown colormap.", + BLACK, + BROWN, + ORANGE +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/colors/full_palette.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/colors/full_palette.rs new file mode 100644 index 0000000000000000000000000000000000000000..6a1a17252414fc3db41a5156900e020933d0e63e --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/colors/full_palette.rs @@ -0,0 +1,1263 @@ +//! A full color palette derived from the +//! [Material Design 2014 Color Palette](https://material.io/design/color/the-color-system.html). +//! Colors are chosen to go well with each other, and each color is available in several tints, +//! ranging from 50 (very light) to 900 (very dark). A tint of 500 is considered "standard". Color's whose tint starts +//! with an 'A' (for example [`RED_A400`]) are *accent* colors and are more saturated than their +//! standard counterparts. +//! +//! See the full list of colors defined in this module: +//! +//! +use super::RGBColor; + +/* +Colors were auto-generated from the Material-UI color palette using the following +Javascript code. It can be run in a code sandbox here: https://codesandbox.io/s/q9nj9o6o44?file=/index.js + +/////////////////////////////////////////////////////// +import React from "react"; +import { render } from "react-dom"; +import * as c from "material-ui/colors"; + +function capitalize(name) { + return name.charAt(0).toUpperCase() + name.slice(1); +} + +function kebabize(str) { + return str + .split("") + .map((letter, idx) => { + return letter.toUpperCase() === letter + ? `${idx !== 0 ? " " : ""}${letter.toLowerCase()}` + : letter; + }) + .join(""); +} + +function hexToRgb(hex) { + var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex); + return result + ? { + r: parseInt(result[1], 16), + g: parseInt(result[2], 16), + b: parseInt(result[3], 16) + } + : null; +} + +function ColorList() { + const colorNames = Object.keys(c); + + return ( +
+      {colorNames.map((name, i) => (
+        
+ {"//"} {name} +
+ {(() => { + const rustName = name.toUpperCase(); + const cvalue = c[name][500]; + const color = hexToRgb(cvalue); + if (color == null) { + return ""; + } + let docComment = `*${capitalize(kebabize(name))}*; same as [\`${rustName}_500\`]`; + return `define_color!(${rustName}, ${color.r}, ${color.g}, ${color.b}, "${docComment}");`; + })()} +
+ {Object.entries(c[name]).map(([cname, cvalue]) => { + const color = hexToRgb(cvalue); + if (color == null) { + return ""; + } + const rustName = `${name.toUpperCase()}_${cname}`; + const adjective = + cname > 500 + ? cname >= 800 + ? "Dark " + : "Darker " + : cname < 500 + ? cname <= 100 + ? "Light " + : "Lighter " + : ""; + const readableName = kebabize(name); + let docComment = `${adjective}*${ + adjective ? readableName : capitalize(readableName) + }* with a tint of ${cname}`; + if (cname.charAt(0) === "A") { + docComment = + "Accent *" + + docComment.charAt(1).toLowerCase() + + docComment.slice(2); + } + return ( +
+ define_color!({rustName}, {color.r}, {color.g}, {color.b}, " + {docComment}"); +
+ ); + })} +
+ ))} +
+ ); +} + +render(, document.querySelector("#root")); +/////////////////////////////////////////////////////// +*/ + +// common +define_color!(WHITE, 255, 255, 255, "*White*"); +define_color!(BLACK, 0, 0, 0, "*Black*"); +// red +define_color!(RED, 244, 67, 54, "*Red*; same as [`RED_500`]"); +define_color!(RED_50, 255, 235, 238, "Light *red* with a tint of 50"); +define_color!(RED_100, 255, 205, 210, "Light *red* with a tint of 100"); +define_color!(RED_200, 239, 154, 154, "Lighter *red* with a tint of 200"); +define_color!(RED_300, 229, 115, 115, "Lighter *red* with a tint of 300"); +define_color!(RED_400, 239, 83, 80, "Lighter *red* with a tint of 400"); +define_color!(RED_500, 244, 67, 54, "*Red* with a tint of 500"); +define_color!(RED_600, 229, 57, 53, "Darker *red* with a tint of 600"); +define_color!(RED_700, 211, 47, 47, "Darker *red* with a tint of 700"); +define_color!(RED_800, 198, 40, 40, "Dark *red* with a tint of 800"); +define_color!(RED_900, 183, 28, 28, "Dark *red* with a tint of 900"); +define_color!(RED_A100, 255, 138, 128, "Accent *red* with a tint of A100"); +define_color!(RED_A200, 255, 82, 82, "Accent *red* with a tint of A200"); +define_color!(RED_A400, 255, 23, 68, "Accent *red* with a tint of A400"); +define_color!(RED_A700, 213, 0, 0, "Accent *red* with a tint of A700"); +// pink +define_color!(PINK, 233, 30, 99, "*Pink*; same as [`PINK_500`]"); +define_color!(PINK_50, 252, 228, 236, "Light *pink* with a tint of 50"); +define_color!(PINK_100, 248, 187, 208, "Light *pink* with a tint of 100"); +define_color!(PINK_200, 244, 143, 177, "Lighter *pink* with a tint of 200"); +define_color!(PINK_300, 240, 98, 146, "Lighter *pink* with a tint of 300"); +define_color!(PINK_400, 236, 64, 122, "Lighter *pink* with a tint of 400"); +define_color!(PINK_500, 233, 30, 99, "*Pink* with a tint of 500"); +define_color!(PINK_600, 216, 27, 96, "Darker *pink* with a tint of 600"); +define_color!(PINK_700, 194, 24, 91, "Darker *pink* with a tint of 700"); +define_color!(PINK_800, 173, 20, 87, "Dark *pink* with a tint of 800"); +define_color!(PINK_900, 136, 14, 79, "Dark *pink* with a tint of 900"); +define_color!( + PINK_A100, + 255, + 128, + 171, + "Accent *pink* with a tint of A100" +); +define_color!(PINK_A200, 255, 64, 129, "Accent *pink* with a tint of A200"); +define_color!(PINK_A400, 245, 0, 87, "Accent *pink* with a tint of A400"); +define_color!(PINK_A700, 197, 17, 98, "Accent *pink* with a tint of A700"); +// purple +define_color!(PURPLE, 156, 39, 176, "*Purple*; same as [`PURPLE_500`]"); +define_color!(PURPLE_50, 243, 229, 245, "Light *purple* with a tint of 50"); +define_color!( + PURPLE_100, + 225, + 190, + 231, + "Light *purple* with a tint of 100" +); +define_color!( + PURPLE_200, + 206, + 147, + 216, + "Lighter *purple* with a tint of 200" +); +define_color!( + PURPLE_300, + 186, + 104, + 200, + "Lighter *purple* with a tint of 300" +); +define_color!( + PURPLE_400, + 171, + 71, + 188, + "Lighter *purple* with a tint of 400" +); +define_color!(PURPLE_500, 156, 39, 176, "*Purple* with a tint of 500"); +define_color!( + PURPLE_600, + 142, + 36, + 170, + "Darker *purple* with a tint of 600" +); +define_color!( + PURPLE_700, + 123, + 31, + 162, + "Darker *purple* with a tint of 700" +); +define_color!(PURPLE_800, 106, 27, 154, "Dark *purple* with a tint of 800"); +define_color!(PURPLE_900, 74, 20, 140, "Dark *purple* with a tint of 900"); +define_color!( + PURPLE_A100, + 234, + 128, + 252, + "Accent *purple* with a tint of A100" +); +define_color!( + PURPLE_A200, + 224, + 64, + 251, + "Accent *purple* with a tint of A200" +); +define_color!( + PURPLE_A400, + 213, + 0, + 249, + "Accent *purple* with a tint of A400" +); +define_color!( + PURPLE_A700, + 170, + 0, + 255, + "Accent *purple* with a tint of A700" +); +// deepPurple +define_color!( + DEEPPURPLE, + 103, + 58, + 183, + "*Deep purple*; same as [`DEEPPURPLE_500`]" +); +define_color!( + DEEPPURPLE_50, + 237, + 231, + 246, + "Light *deep purple* with a tint of 50" +); +define_color!( + DEEPPURPLE_100, + 209, + 196, + 233, + "Light *deep purple* with a tint of 100" +); +define_color!( + DEEPPURPLE_200, + 179, + 157, + 219, + "Lighter *deep purple* with a tint of 200" +); +define_color!( + DEEPPURPLE_300, + 149, + 117, + 205, + "Lighter *deep purple* with a tint of 300" +); +define_color!( + DEEPPURPLE_400, + 126, + 87, + 194, + "Lighter *deep purple* with a tint of 400" +); +define_color!( + DEEPPURPLE_500, + 103, + 58, + 183, + "*Deep purple* with a tint of 500" +); +define_color!( + DEEPPURPLE_600, + 94, + 53, + 177, + "Darker *deep purple* with a tint of 600" +); +define_color!( + DEEPPURPLE_700, + 81, + 45, + 168, + "Darker *deep purple* with a tint of 700" +); +define_color!( + DEEPPURPLE_800, + 69, + 39, + 160, + "Dark *deep purple* with a tint of 800" +); +define_color!( + DEEPPURPLE_900, + 49, + 27, + 146, + "Dark *deep purple* with a tint of 900" +); +define_color!( + DEEPPURPLE_A100, + 179, + 136, + 255, + "Accent *deep purple* with a tint of A100" +); +define_color!( + DEEPPURPLE_A200, + 124, + 77, + 255, + "Accent *deep purple* with a tint of A200" +); +define_color!( + DEEPPURPLE_A400, + 101, + 31, + 255, + "Accent *deep purple* with a tint of A400" +); +define_color!( + DEEPPURPLE_A700, + 98, + 0, + 234, + "Accent *deep purple* with a tint of A700" +); +// indigo +define_color!(INDIGO, 63, 81, 181, "*Indigo*; same as [`INDIGO_500`]"); +define_color!(INDIGO_50, 232, 234, 246, "Light *indigo* with a tint of 50"); +define_color!( + INDIGO_100, + 197, + 202, + 233, + "Light *indigo* with a tint of 100" +); +define_color!( + INDIGO_200, + 159, + 168, + 218, + "Lighter *indigo* with a tint of 200" +); +define_color!( + INDIGO_300, + 121, + 134, + 203, + "Lighter *indigo* with a tint of 300" +); +define_color!( + INDIGO_400, + 92, + 107, + 192, + "Lighter *indigo* with a tint of 400" +); +define_color!(INDIGO_500, 63, 81, 181, "*Indigo* with a tint of 500"); +define_color!( + INDIGO_600, + 57, + 73, + 171, + "Darker *indigo* with a tint of 600" +); +define_color!( + INDIGO_700, + 48, + 63, + 159, + "Darker *indigo* with a tint of 700" +); +define_color!(INDIGO_800, 40, 53, 147, "Dark *indigo* with a tint of 800"); +define_color!(INDIGO_900, 26, 35, 126, "Dark *indigo* with a tint of 900"); +define_color!( + INDIGO_A100, + 140, + 158, + 255, + "Accent *indigo* with a tint of A100" +); +define_color!( + INDIGO_A200, + 83, + 109, + 254, + "Accent *indigo* with a tint of A200" +); +define_color!( + INDIGO_A400, + 61, + 90, + 254, + "Accent *indigo* with a tint of A400" +); +define_color!( + INDIGO_A700, + 48, + 79, + 254, + "Accent *indigo* with a tint of A700" +); +// blue +define_color!(BLUE, 33, 150, 243, "*Blue*; same as [`BLUE_500`]"); +define_color!(BLUE_50, 227, 242, 253, "Light *blue* with a tint of 50"); +define_color!(BLUE_100, 187, 222, 251, "Light *blue* with a tint of 100"); +define_color!(BLUE_200, 144, 202, 249, "Lighter *blue* with a tint of 200"); +define_color!(BLUE_300, 100, 181, 246, "Lighter *blue* with a tint of 300"); +define_color!(BLUE_400, 66, 165, 245, "Lighter *blue* with a tint of 400"); +define_color!(BLUE_500, 33, 150, 243, "*Blue* with a tint of 500"); +define_color!(BLUE_600, 30, 136, 229, "Darker *blue* with a tint of 600"); +define_color!(BLUE_700, 25, 118, 210, "Darker *blue* with a tint of 700"); +define_color!(BLUE_800, 21, 101, 192, "Dark *blue* with a tint of 800"); +define_color!(BLUE_900, 13, 71, 161, "Dark *blue* with a tint of 900"); +define_color!( + BLUE_A100, + 130, + 177, + 255, + "Accent *blue* with a tint of A100" +); +define_color!(BLUE_A200, 68, 138, 255, "Accent *blue* with a tint of A200"); +define_color!(BLUE_A400, 41, 121, 255, "Accent *blue* with a tint of A400"); +define_color!(BLUE_A700, 41, 98, 255, "Accent *blue* with a tint of A700"); +// lightBlue +define_color!( + LIGHTBLUE, + 3, + 169, + 244, + "*Light blue*; same as [`LIGHTBLUE_500`]" +); +define_color!( + LIGHTBLUE_50, + 225, + 245, + 254, + "Light *light blue* with a tint of 50" +); +define_color!( + LIGHTBLUE_100, + 179, + 229, + 252, + "Light *light blue* with a tint of 100" +); +define_color!( + LIGHTBLUE_200, + 129, + 212, + 250, + "Lighter *light blue* with a tint of 200" +); +define_color!( + LIGHTBLUE_300, + 79, + 195, + 247, + "Lighter *light blue* with a tint of 300" +); +define_color!( + LIGHTBLUE_400, + 41, + 182, + 246, + "Lighter *light blue* with a tint of 400" +); +define_color!( + LIGHTBLUE_500, + 3, + 169, + 244, + "*Light blue* with a tint of 500" +); +define_color!( + LIGHTBLUE_600, + 3, + 155, + 229, + "Darker *light blue* with a tint of 600" +); +define_color!( + LIGHTBLUE_700, + 2, + 136, + 209, + "Darker *light blue* with a tint of 700" +); +define_color!( + LIGHTBLUE_800, + 2, + 119, + 189, + "Dark *light blue* with a tint of 800" +); +define_color!( + LIGHTBLUE_900, + 1, + 87, + 155, + "Dark *light blue* with a tint of 900" +); +define_color!( + LIGHTBLUE_A100, + 128, + 216, + 255, + "Accent *light blue* with a tint of A100" +); +define_color!( + LIGHTBLUE_A200, + 64, + 196, + 255, + "Accent *light blue* with a tint of A200" +); +define_color!( + LIGHTBLUE_A400, + 0, + 176, + 255, + "Accent *light blue* with a tint of A400" +); +define_color!( + LIGHTBLUE_A700, + 0, + 145, + 234, + "Accent *light blue* with a tint of A700" +); +// cyan +define_color!(CYAN, 0, 188, 212, "*Cyan*; same as [`CYAN_500`]"); +define_color!(CYAN_50, 224, 247, 250, "Light *cyan* with a tint of 50"); +define_color!(CYAN_100, 178, 235, 242, "Light *cyan* with a tint of 100"); +define_color!(CYAN_200, 128, 222, 234, "Lighter *cyan* with a tint of 200"); +define_color!(CYAN_300, 77, 208, 225, "Lighter *cyan* with a tint of 300"); +define_color!(CYAN_400, 38, 198, 218, "Lighter *cyan* with a tint of 400"); +define_color!(CYAN_500, 0, 188, 212, "*Cyan* with a tint of 500"); +define_color!(CYAN_600, 0, 172, 193, "Darker *cyan* with a tint of 600"); +define_color!(CYAN_700, 0, 151, 167, "Darker *cyan* with a tint of 700"); +define_color!(CYAN_800, 0, 131, 143, "Dark *cyan* with a tint of 800"); +define_color!(CYAN_900, 0, 96, 100, "Dark *cyan* with a tint of 900"); +define_color!( + CYAN_A100, + 132, + 255, + 255, + "Accent *cyan* with a tint of A100" +); +define_color!(CYAN_A200, 24, 255, 255, "Accent *cyan* with a tint of A200"); +define_color!(CYAN_A400, 0, 229, 255, "Accent *cyan* with a tint of A400"); +define_color!(CYAN_A700, 0, 184, 212, "Accent *cyan* with a tint of A700"); +// teal +define_color!(TEAL, 0, 150, 136, "*Teal*; same as [`TEAL_500`]"); +define_color!(TEAL_50, 224, 242, 241, "Light *teal* with a tint of 50"); +define_color!(TEAL_100, 178, 223, 219, "Light *teal* with a tint of 100"); +define_color!(TEAL_200, 128, 203, 196, "Lighter *teal* with a tint of 200"); +define_color!(TEAL_300, 77, 182, 172, "Lighter *teal* with a tint of 300"); +define_color!(TEAL_400, 38, 166, 154, "Lighter *teal* with a tint of 400"); +define_color!(TEAL_500, 0, 150, 136, "*Teal* with a tint of 500"); +define_color!(TEAL_600, 0, 137, 123, "Darker *teal* with a tint of 600"); +define_color!(TEAL_700, 0, 121, 107, "Darker *teal* with a tint of 700"); +define_color!(TEAL_800, 0, 105, 92, "Dark *teal* with a tint of 800"); +define_color!(TEAL_900, 0, 77, 64, "Dark *teal* with a tint of 900"); +define_color!( + TEAL_A100, + 167, + 255, + 235, + "Accent *teal* with a tint of A100" +); +define_color!( + TEAL_A200, + 100, + 255, + 218, + "Accent *teal* with a tint of A200" +); +define_color!(TEAL_A400, 29, 233, 182, "Accent *teal* with a tint of A400"); +define_color!(TEAL_A700, 0, 191, 165, "Accent *teal* with a tint of A700"); +// green +define_color!(GREEN, 76, 175, 80, "*Green*; same as [`GREEN_500`]"); +define_color!(GREEN_50, 232, 245, 233, "Light *green* with a tint of 50"); +define_color!(GREEN_100, 200, 230, 201, "Light *green* with a tint of 100"); +define_color!( + GREEN_200, + 165, + 214, + 167, + "Lighter *green* with a tint of 200" +); +define_color!( + GREEN_300, + 129, + 199, + 132, + "Lighter *green* with a tint of 300" +); +define_color!( + GREEN_400, + 102, + 187, + 106, + "Lighter *green* with a tint of 400" +); +define_color!(GREEN_500, 76, 175, 80, "*Green* with a tint of 500"); +define_color!(GREEN_600, 67, 160, 71, "Darker *green* with a tint of 600"); +define_color!(GREEN_700, 56, 142, 60, "Darker *green* with a tint of 700"); +define_color!(GREEN_800, 46, 125, 50, "Dark *green* with a tint of 800"); +define_color!(GREEN_900, 27, 94, 32, "Dark *green* with a tint of 900"); +define_color!( + GREEN_A100, + 185, + 246, + 202, + "Accent *green* with a tint of A100" +); +define_color!( + GREEN_A200, + 105, + 240, + 174, + "Accent *green* with a tint of A200" +); +define_color!( + GREEN_A400, + 0, + 230, + 118, + "Accent *green* with a tint of A400" +); +define_color!(GREEN_A700, 0, 200, 83, "Accent *green* with a tint of A700"); +// lightGreen +define_color!( + LIGHTGREEN, + 139, + 195, + 74, + "*Light green*; same as [`LIGHTGREEN_500`]" +); +define_color!( + LIGHTGREEN_50, + 241, + 248, + 233, + "Light *light green* with a tint of 50" +); +define_color!( + LIGHTGREEN_100, + 220, + 237, + 200, + "Light *light green* with a tint of 100" +); +define_color!( + LIGHTGREEN_200, + 197, + 225, + 165, + "Lighter *light green* with a tint of 200" +); +define_color!( + LIGHTGREEN_300, + 174, + 213, + 129, + "Lighter *light green* with a tint of 300" +); +define_color!( + LIGHTGREEN_400, + 156, + 204, + 101, + "Lighter *light green* with a tint of 400" +); +define_color!( + LIGHTGREEN_500, + 139, + 195, + 74, + "*Light green* with a tint of 500" +); +define_color!( + LIGHTGREEN_600, + 124, + 179, + 66, + "Darker *light green* with a tint of 600" +); +define_color!( + LIGHTGREEN_700, + 104, + 159, + 56, + "Darker *light green* with a tint of 700" +); +define_color!( + LIGHTGREEN_800, + 85, + 139, + 47, + "Dark *light green* with a tint of 800" +); +define_color!( + LIGHTGREEN_900, + 51, + 105, + 30, + "Dark *light green* with a tint of 900" +); +define_color!( + LIGHTGREEN_A100, + 204, + 255, + 144, + "Accent *light green* with a tint of A100" +); +define_color!( + LIGHTGREEN_A200, + 178, + 255, + 89, + "Accent *light green* with a tint of A200" +); +define_color!( + LIGHTGREEN_A400, + 118, + 255, + 3, + "Accent *light green* with a tint of A400" +); +define_color!( + LIGHTGREEN_A700, + 100, + 221, + 23, + "Accent *light green* with a tint of A700" +); +// lime +define_color!(LIME, 205, 220, 57, "*Lime*; same as [`LIME_500`]"); +define_color!(LIME_50, 249, 251, 231, "Light *lime* with a tint of 50"); +define_color!(LIME_100, 240, 244, 195, "Light *lime* with a tint of 100"); +define_color!(LIME_200, 230, 238, 156, "Lighter *lime* with a tint of 200"); +define_color!(LIME_300, 220, 231, 117, "Lighter *lime* with a tint of 300"); +define_color!(LIME_400, 212, 225, 87, "Lighter *lime* with a tint of 400"); +define_color!(LIME_500, 205, 220, 57, "*Lime* with a tint of 500"); +define_color!(LIME_600, 192, 202, 51, "Darker *lime* with a tint of 600"); +define_color!(LIME_700, 175, 180, 43, "Darker *lime* with a tint of 700"); +define_color!(LIME_800, 158, 157, 36, "Dark *lime* with a tint of 800"); +define_color!(LIME_900, 130, 119, 23, "Dark *lime* with a tint of 900"); +define_color!( + LIME_A100, + 244, + 255, + 129, + "Accent *lime* with a tint of A100" +); +define_color!(LIME_A200, 238, 255, 65, "Accent *lime* with a tint of A200"); +define_color!(LIME_A400, 198, 255, 0, "Accent *lime* with a tint of A400"); +define_color!(LIME_A700, 174, 234, 0, "Accent *lime* with a tint of A700"); +// yellow +define_color!(YELLOW, 255, 235, 59, "*Yellow*; same as [`YELLOW_500`]"); +define_color!(YELLOW_50, 255, 253, 231, "Light *yellow* with a tint of 50"); +define_color!( + YELLOW_100, + 255, + 249, + 196, + "Light *yellow* with a tint of 100" +); +define_color!( + YELLOW_200, + 255, + 245, + 157, + "Lighter *yellow* with a tint of 200" +); +define_color!( + YELLOW_300, + 255, + 241, + 118, + "Lighter *yellow* with a tint of 300" +); +define_color!( + YELLOW_400, + 255, + 238, + 88, + "Lighter *yellow* with a tint of 400" +); +define_color!(YELLOW_500, 255, 235, 59, "*Yellow* with a tint of 500"); +define_color!( + YELLOW_600, + 253, + 216, + 53, + "Darker *yellow* with a tint of 600" +); +define_color!( + YELLOW_700, + 251, + 192, + 45, + "Darker *yellow* with a tint of 700" +); +define_color!(YELLOW_800, 249, 168, 37, "Dark *yellow* with a tint of 800"); +define_color!(YELLOW_900, 245, 127, 23, "Dark *yellow* with a tint of 900"); +define_color!( + YELLOW_A100, + 255, + 255, + 141, + "Accent *yellow* with a tint of A100" +); +define_color!( + YELLOW_A200, + 255, + 255, + 0, + "Accent *yellow* with a tint of A200" +); +define_color!( + YELLOW_A400, + 255, + 234, + 0, + "Accent *yellow* with a tint of A400" +); +define_color!( + YELLOW_A700, + 255, + 214, + 0, + "Accent *yellow* with a tint of A700" +); +// amber +define_color!(AMBER, 255, 193, 7, "*Amber*; same as [`AMBER_500`]"); +define_color!(AMBER_50, 255, 248, 225, "Light *amber* with a tint of 50"); +define_color!(AMBER_100, 255, 236, 179, "Light *amber* with a tint of 100"); +define_color!( + AMBER_200, + 255, + 224, + 130, + "Lighter *amber* with a tint of 200" +); +define_color!( + AMBER_300, + 255, + 213, + 79, + "Lighter *amber* with a tint of 300" +); +define_color!( + AMBER_400, + 255, + 202, + 40, + "Lighter *amber* with a tint of 400" +); +define_color!(AMBER_500, 255, 193, 7, "*Amber* with a tint of 500"); +define_color!(AMBER_600, 255, 179, 0, "Darker *amber* with a tint of 600"); +define_color!(AMBER_700, 255, 160, 0, "Darker *amber* with a tint of 700"); +define_color!(AMBER_800, 255, 143, 0, "Dark *amber* with a tint of 800"); +define_color!(AMBER_900, 255, 111, 0, "Dark *amber* with a tint of 900"); +define_color!( + AMBER_A100, + 255, + 229, + 127, + "Accent *amber* with a tint of A100" +); +define_color!( + AMBER_A200, + 255, + 215, + 64, + "Accent *amber* with a tint of A200" +); +define_color!( + AMBER_A400, + 255, + 196, + 0, + "Accent *amber* with a tint of A400" +); +define_color!( + AMBER_A700, + 255, + 171, + 0, + "Accent *amber* with a tint of A700" +); +// orange +define_color!(ORANGE, 255, 152, 0, "*Orange*; same as [`ORANGE_500`]"); +define_color!(ORANGE_50, 255, 243, 224, "Light *orange* with a tint of 50"); +define_color!( + ORANGE_100, + 255, + 224, + 178, + "Light *orange* with a tint of 100" +); +define_color!( + ORANGE_200, + 255, + 204, + 128, + "Lighter *orange* with a tint of 200" +); +define_color!( + ORANGE_300, + 255, + 183, + 77, + "Lighter *orange* with a tint of 300" +); +define_color!( + ORANGE_400, + 255, + 167, + 38, + "Lighter *orange* with a tint of 400" +); +define_color!(ORANGE_500, 255, 152, 0, "*Orange* with a tint of 500"); +define_color!( + ORANGE_600, + 251, + 140, + 0, + "Darker *orange* with a tint of 600" +); +define_color!( + ORANGE_700, + 245, + 124, + 0, + "Darker *orange* with a tint of 700" +); +define_color!(ORANGE_800, 239, 108, 0, "Dark *orange* with a tint of 800"); +define_color!(ORANGE_900, 230, 81, 0, "Dark *orange* with a tint of 900"); +define_color!( + ORANGE_A100, + 255, + 209, + 128, + "Accent *orange* with a tint of A100" +); +define_color!( + ORANGE_A200, + 255, + 171, + 64, + "Accent *orange* with a tint of A200" +); +define_color!( + ORANGE_A400, + 255, + 145, + 0, + "Accent *orange* with a tint of A400" +); +define_color!( + ORANGE_A700, + 255, + 109, + 0, + "Accent *orange* with a tint of A700" +); +// deepOrange +define_color!( + DEEPORANGE, + 255, + 87, + 34, + "*Deep orange*; same as [`DEEPORANGE_500`]" +); +define_color!( + DEEPORANGE_50, + 251, + 233, + 231, + "Light *deep orange* with a tint of 50" +); +define_color!( + DEEPORANGE_100, + 255, + 204, + 188, + "Light *deep orange* with a tint of 100" +); +define_color!( + DEEPORANGE_200, + 255, + 171, + 145, + "Lighter *deep orange* with a tint of 200" +); +define_color!( + DEEPORANGE_300, + 255, + 138, + 101, + "Lighter *deep orange* with a tint of 300" +); +define_color!( + DEEPORANGE_400, + 255, + 112, + 67, + "Lighter *deep orange* with a tint of 400" +); +define_color!( + DEEPORANGE_500, + 255, + 87, + 34, + "*Deep orange* with a tint of 500" +); +define_color!( + DEEPORANGE_600, + 244, + 81, + 30, + "Darker *deep orange* with a tint of 600" +); +define_color!( + DEEPORANGE_700, + 230, + 74, + 25, + "Darker *deep orange* with a tint of 700" +); +define_color!( + DEEPORANGE_800, + 216, + 67, + 21, + "Dark *deep orange* with a tint of 800" +); +define_color!( + DEEPORANGE_900, + 191, + 54, + 12, + "Dark *deep orange* with a tint of 900" +); +define_color!( + DEEPORANGE_A100, + 255, + 158, + 128, + "Accent *deep orange* with a tint of A100" +); +define_color!( + DEEPORANGE_A200, + 255, + 110, + 64, + "Accent *deep orange* with a tint of A200" +); +define_color!( + DEEPORANGE_A400, + 255, + 61, + 0, + "Accent *deep orange* with a tint of A400" +); +define_color!( + DEEPORANGE_A700, + 221, + 44, + 0, + "Accent *deep orange* with a tint of A700" +); +// brown +define_color!(BROWN, 121, 85, 72, "*Brown*; same as [`BROWN_500`]"); +define_color!(BROWN_50, 239, 235, 233, "Light *brown* with a tint of 50"); +define_color!(BROWN_100, 215, 204, 200, "Light *brown* with a tint of 100"); +define_color!( + BROWN_200, + 188, + 170, + 164, + "Lighter *brown* with a tint of 200" +); +define_color!( + BROWN_300, + 161, + 136, + 127, + "Lighter *brown* with a tint of 300" +); +define_color!( + BROWN_400, + 141, + 110, + 99, + "Lighter *brown* with a tint of 400" +); +define_color!(BROWN_500, 121, 85, 72, "*Brown* with a tint of 500"); +define_color!(BROWN_600, 109, 76, 65, "Darker *brown* with a tint of 600"); +define_color!(BROWN_700, 93, 64, 55, "Darker *brown* with a tint of 700"); +define_color!(BROWN_800, 78, 52, 46, "Dark *brown* with a tint of 800"); +define_color!(BROWN_900, 62, 39, 35, "Dark *brown* with a tint of 900"); +define_color!( + BROWN_A100, + 215, + 204, + 200, + "Accent *brown* with a tint of A100" +); +define_color!( + BROWN_A200, + 188, + 170, + 164, + "Accent *brown* with a tint of A200" +); +define_color!( + BROWN_A400, + 141, + 110, + 99, + "Accent *brown* with a tint of A400" +); +define_color!(BROWN_A700, 93, 64, 55, "Accent *brown* with a tint of A700"); +// grey +define_color!(GREY, 158, 158, 158, "*Grey*; same as [`GREY_500`]"); +define_color!(GREY_50, 250, 250, 250, "Light *grey* with a tint of 50"); +define_color!(GREY_100, 245, 245, 245, "Light *grey* with a tint of 100"); +define_color!(GREY_200, 238, 238, 238, "Lighter *grey* with a tint of 200"); +define_color!(GREY_300, 224, 224, 224, "Lighter *grey* with a tint of 300"); +define_color!(GREY_400, 189, 189, 189, "Lighter *grey* with a tint of 400"); +define_color!(GREY_500, 158, 158, 158, "*Grey* with a tint of 500"); +define_color!(GREY_600, 117, 117, 117, "Darker *grey* with a tint of 600"); +define_color!(GREY_700, 97, 97, 97, "Darker *grey* with a tint of 700"); +define_color!(GREY_800, 66, 66, 66, "Dark *grey* with a tint of 800"); +define_color!(GREY_900, 33, 33, 33, "Dark *grey* with a tint of 900"); +define_color!( + GREY_A100, + 213, + 213, + 213, + "Accent *grey* with a tint of A100" +); +define_color!( + GREY_A200, + 170, + 170, + 170, + "Accent *grey* with a tint of A200" +); +define_color!(GREY_A400, 48, 48, 48, "Accent *grey* with a tint of A400"); +define_color!(GREY_A700, 97, 97, 97, "Accent *grey* with a tint of A700"); +// blueGrey +define_color!( + BLUEGREY, + 96, + 125, + 139, + "*Blue grey*; same as [`BLUEGREY_500`]" +); +define_color!( + BLUEGREY_50, + 236, + 239, + 241, + "Light *blue grey* with a tint of 50" +); +define_color!( + BLUEGREY_100, + 207, + 216, + 220, + "Light *blue grey* with a tint of 100" +); +define_color!( + BLUEGREY_200, + 176, + 190, + 197, + "Lighter *blue grey* with a tint of 200" +); +define_color!( + BLUEGREY_300, + 144, + 164, + 174, + "Lighter *blue grey* with a tint of 300" +); +define_color!( + BLUEGREY_400, + 120, + 144, + 156, + "Lighter *blue grey* with a tint of 400" +); +define_color!(BLUEGREY_500, 96, 125, 139, "*Blue grey* with a tint of 500"); +define_color!( + BLUEGREY_600, + 84, + 110, + 122, + "Darker *blue grey* with a tint of 600" +); +define_color!( + BLUEGREY_700, + 69, + 90, + 100, + "Darker *blue grey* with a tint of 700" +); +define_color!( + BLUEGREY_800, + 55, + 71, + 79, + "Dark *blue grey* with a tint of 800" +); +define_color!( + BLUEGREY_900, + 38, + 50, + 56, + "Dark *blue grey* with a tint of 900" +); +define_color!( + BLUEGREY_A100, + 207, + 216, + 220, + "Accent *blue grey* with a tint of A100" +); +define_color!( + BLUEGREY_A200, + 176, + 190, + 197, + "Accent *blue grey* with a tint of A200" +); +define_color!( + BLUEGREY_A400, + 120, + 144, + 156, + "Accent *blue grey* with a tint of A400" +); +define_color!( + BLUEGREY_A700, + 69, + 90, + 100, + "Accent *blue grey* with a tint of A700" +); diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/colors/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/colors/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..aadee70ad2781eb7dc950a9992bfb8e32d5e31c7 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/colors/mod.rs @@ -0,0 +1,67 @@ +//! Basic predefined colors. +use super::{RGBAColor, RGBColor}; + +// Taken from https://stackoverflow.com/questions/60905060/prevent-line-break-in-doc-test +/// Macro for allowing dynamic creation of doc attributes. +#[macro_export] +macro_rules! doc { + { + $(#[$m:meta])* + $( + [$doc:expr] + $(#[$n:meta])* + )* + @ $thing:item + } => { + $(#[$m])* + $( + #[doc = $doc] + $(#[$n])* + )* + $thing + } +} + +/// Defines and names a color based on its R, G, B, A values. +#[macro_export] +macro_rules! define_color { + ($name:ident, $r:expr, $g:expr, $b:expr, $doc:expr) => { + doc! { + [$doc] + // Format a colored box that will show up in the docs + [concat!("(" )] + [concat!("*rgb = (", $r,", ", $g, ", ", $b, ")*)")] + @pub const $name: RGBColor = RGBColor($r, $g, $b); + } + }; + + ($name:ident, $r:expr, $g:expr, $b:expr, $a: expr, $doc:expr) => { + doc! { + [$doc] + // Format a colored box that will show up in the docs + [concat!("(" )] + [concat!("*rgba = (", $r,", ", $g, ", ", $b, ", ", $a, ")*)")] + @pub const $name: RGBAColor = RGBAColor($r, $g, $b, $a); + } + }; +} + +define_color!(WHITE, 255, 255, 255, "White"); +define_color!(BLACK, 0, 0, 0, "Black"); +define_color!(RED, 255, 0, 0, "Red"); +define_color!(GREEN, 0, 255, 0, "Green"); +define_color!(BLUE, 0, 0, 255, "Blue"); +define_color!(YELLOW, 255, 255, 0, "Yellow"); +define_color!(CYAN, 0, 255, 255, "Cyan"); +define_color!(MAGENTA, 255, 0, 255, "Magenta"); +define_color!(TRANSPARENT, 0, 0, 0, 0.0, "Transparent"); + +#[cfg(feature = "colormaps")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "colormaps")))] +/// Colormaps can be used to simply go from a scalar value to a color value which will be more/less +/// intense corresponding to the value of the supplied scalar. +/// These colormaps can also be defined by the user and be used with lower and upper bounds. +pub mod colormaps; +#[cfg(feature = "full_palette")] +#[cfg_attr(doc_cfg, doc(cfg(feature = "full_palette")))] +pub mod full_palette; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/font/ab_glyph.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/font/ab_glyph.rs new file mode 100644 index 0000000000000000000000000000000000000000..42b43344491de0e0e8f06e2cec69f9a27bc528a6 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/font/ab_glyph.rs @@ -0,0 +1,160 @@ +use super::{FontData, FontFamily, FontStyle, LayoutBox}; +use ab_glyph::{Font, FontRef, ScaleFont}; +use core::fmt::{self, Display}; +use once_cell::sync::Lazy; +use std::collections::HashMap; +use std::error::Error; +use std::sync::RwLock; + +struct FontMap { + map: HashMap>, +} +impl FontMap { + fn new() -> Self { + Self { + map: HashMap::with_capacity(4), + } + } + fn insert(&mut self, style: FontStyle, font: FontRef<'static>) -> Option> { + self.map.insert(style.as_str().to_string(), font) + } + // fn get(&self, style: FontStyle) -> Option<&FontRef<'static>> { + // self.map.get(style.as_str()) + // } + fn get_fallback(&self, style: FontStyle) -> Option<&FontRef<'static>> { + self.map + .get(style.as_str()) + .or_else(|| self.map.get(FontStyle::Normal.as_str())) + } +} + +static FONTS: Lazy>> = Lazy::new(|| RwLock::new(HashMap::new())); +pub struct InvalidFont { + _priv: (), +} + +// Note for future contributors: There is nothing fundamental about the static reference requirement here. +// It would be reasonably easy to add a function which accepts an owned buffer, +// or even a reference counted buffer, instead. +/// Register a font in the fonts table. +/// +/// The `name` parameter gives the name this font shall be referred to +/// in the other APIs, like `"sans-serif"`. +/// +/// Unprovided font styles for a given name will fallback to `FontStyle::Normal` +/// if that is available for that name, when other functions lookup fonts which +/// are registered with this function. +/// +/// The `bytes` parameter should be the complete contents +/// of an OpenType font file, like: +/// ```ignore +/// include_bytes!("FiraGO-Regular.otf") +/// ``` +pub fn register_font( + name: &str, + style: FontStyle, + bytes: &'static [u8], +) -> Result<(), InvalidFont> { + let font = FontRef::try_from_slice(bytes).map_err(|_| InvalidFont { _priv: () })?; + let mut lock = FONTS.write().unwrap(); + lock.entry(name.to_string()) + .or_insert_with(FontMap::new) + .insert(style, font); + Ok(()) +} + +#[derive(Clone)] +pub struct FontDataInternal { + font_ref: FontRef<'static>, +} + +#[derive(Debug, Clone)] +pub enum FontError { + /// No idea what the problem is + Unknown, + /// No font data available for the requested family and style. + FontUnavailable, +} +impl Display for FontError { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + // Since it makes literally no difference to how we'd format + // this, just delegate to the derived Debug formatter. + write!(f, "{:?}", self) + } +} +impl Error for FontError {} + +impl FontData for FontDataInternal { + // TODO: can we rename this to `Error`? + type ErrorType = FontError; + fn new(family: FontFamily<'_>, style: FontStyle) -> Result { + Ok(Self { + font_ref: FONTS + .read() + .unwrap() + .get(family.as_str()) + .and_then(|fam| fam.get_fallback(style)) + .ok_or(FontError::FontUnavailable)? + .clone(), + }) + } + // TODO: ngl, it makes no sense that this uses the same error type as `new` + fn estimate_layout(&self, size: f64, text: &str) -> Result { + let pixel_per_em = size / 1.24; + // let units_per_em = self.font_ref.units_per_em().unwrap(); + let font = self.font_ref.as_scaled(size as f32); + + let mut x_pixels = 0f32; + + let mut prev = None; + for c in text.chars() { + let glyph_id = font.glyph_id(c); + let size = font.h_advance(glyph_id); + x_pixels += size; + if let Some(pc) = prev { + x_pixels += font.kern(pc, glyph_id); + } + prev = Some(glyph_id); + } + + Ok(((0, 0), (x_pixels as i32, pixel_per_em as i32))) + } + fn draw Result<(), E>>( + &self, + pos: (i32, i32), + size: f64, + text: &str, + mut draw: DrawFunc, + ) -> Result, Self::ErrorType> { + let font = self.font_ref.as_scaled(size as f32); + let mut draw = |x: i32, y: i32, c| { + let (base_x, base_y) = pos; + draw(base_x + x, base_y + y, c) + }; + let mut x_shift = 0f32; + let mut prev = None; + for c in text.chars() { + if let Some(pc) = prev { + x_shift += font.kern(font.glyph_id(pc), font.glyph_id(c)); + } + prev = Some(c); + let glyph = font.scaled_glyph(c); + if let Some(q) = font.outline_glyph(glyph) { + let rect = q.px_bounds(); + let y_shift = ((size as f32) / 2.0 + rect.min.y) as i32; + let x_shift = x_shift as i32; + let mut buf = vec![]; + q.draw(|x, y, c| buf.push((x, y, c))); + for (x, y, c) in buf { + draw(x as i32 + x_shift, y as i32 + y_shift, c).map_err(|_e| { + // Note: If ever `plotters` adds a tracing or logging crate, + // this would be a good place to use it. + FontError::Unknown + })?; + } + } + x_shift += font.h_advance(font.glyph_id(c)); + } + Ok(Ok(())) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/font/font_desc.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/font/font_desc.rs new file mode 100644 index 0000000000000000000000000000000000000000..a101a5d8bfb08a3ca206acbf9b6f32b2a31e6d41 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/font/font_desc.rs @@ -0,0 +1,220 @@ +use super::{FontData, FontDataInternal}; +use crate::style::text_anchor::Pos; +use crate::style::{Color, TextStyle}; + +use std::convert::From; + +pub use plotters_backend::{FontFamily, FontStyle, FontTransform}; + +/// The error type for the font implementation +pub type FontError = ::ErrorType; + +/// The type we used to represent a result of any font operations +pub type FontResult = Result; + +/// Describes a font +#[derive(Clone)] +pub struct FontDesc<'a> { + size: f64, + family: FontFamily<'a>, + data: FontResult, + transform: FontTransform, + style: FontStyle, +} + +impl<'a> FontDesc<'a> { + /// Create a new font + /// + /// - `family`: The font family name + /// - `size`: The size of the font + /// - `style`: The font variations + /// - **returns** The newly created font description + pub fn new(family: FontFamily<'a>, size: f64, style: FontStyle) -> Self { + Self { + size, + family, + data: FontDataInternal::new(family, style), + transform: FontTransform::None, + style, + } + } + + /// Create a new font desc with the same font but different size + /// + /// - `size`: The new size to set + /// - **returns** The newly created font descriptor with a new size + pub fn resize(&self, size: f64) -> Self { + Self { + size, + family: self.family, + data: self.data.clone(), + transform: self.transform.clone(), + style: self.style, + } + } + + /// Set the style of the font + /// + /// - `style`: The new style + /// - **returns** The new font description with this style applied + pub fn style(&self, style: FontStyle) -> Self { + Self { + size: self.size, + family: self.family, + data: self.data.clone(), + transform: self.transform.clone(), + style, + } + } + + /// Set the font transformation + /// + /// - `trans`: The new transformation + /// - **returns** The new font description with this font transformation applied + pub fn transform(&self, trans: FontTransform) -> Self { + Self { + size: self.size, + family: self.family, + data: self.data.clone(), + transform: trans, + style: self.style, + } + } + + /// Get the font transformation description + pub fn get_transform(&self) -> FontTransform { + self.transform.clone() + } + + /** Returns a new text style object with the specified `color`. + + # Example + + ``` + use plotters::prelude::*; + let text_style = ("sans-serif", 20).into_font().color(&RED); + let drawing_area = SVGBackend::new("font_desc_color.svg", (200, 100)).into_drawing_area(); + drawing_area.fill(&WHITE).unwrap(); + drawing_area.draw_text("This is a big red label", &text_style, (10, 50)); + ``` + + The result is a text label colorized accordingly: + + ![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@f030ed3/apidoc/font_desc_color.svg) + + # See also + + [`IntoTextStyle::with_color()`](crate::style::IntoTextStyle::with_color) + + [`IntoTextStyle::into_text_style()`](crate::style::IntoTextStyle::into_text_style) for a more succinct example + + */ + pub fn color(&self, color: &C) -> TextStyle<'a> { + TextStyle { + font: self.clone(), + color: color.to_backend_color(), + pos: Pos::default(), + } + } + + /// Returns the font family + pub fn get_family(&self) -> FontFamily { + self.family + } + + /// Get the name of the font + pub fn get_name(&self) -> &str { + self.family.as_str() + } + + /// Get the name of the style + pub fn get_style(&self) -> FontStyle { + self.style + } + + /// Get the size of font + pub fn get_size(&self) -> f64 { + self.size + } + + /// Get the size of the text if rendered in this font + /// + /// For a TTF type, zero point of the layout box is the left most baseline char of the string + /// Thus the upper bound of the box is most likely be negative + pub fn layout_box(&self, text: &str) -> FontResult<((i32, i32), (i32, i32))> { + match &self.data { + Ok(ref font) => font.estimate_layout(self.size, text), + Err(e) => Err(e.clone()), + } + } + + /// Get the size of the text if rendered in this font. + /// This is similar to `layout_box` function, but it apply the font transformation + /// and estimate the overall size of the font + pub fn box_size(&self, text: &str) -> FontResult<(u32, u32)> { + let ((min_x, min_y), (max_x, max_y)) = self.layout_box(text)?; + let (w, h) = self.get_transform().transform(max_x - min_x, max_y - min_y); + Ok((w.unsigned_abs(), h.unsigned_abs())) + } + + /// Actually draws a font with a drawing function + pub fn draw Result<(), E>>( + &self, + text: &str, + (x, y): (i32, i32), + draw: DrawFunc, + ) -> FontResult> { + match &self.data { + Ok(ref font) => font.draw((x, y), self.size, text, draw), + Err(e) => Err(e.clone()), + } + } +} + +impl<'a> From<&'a str> for FontDesc<'a> { + fn from(from: &'a str) -> FontDesc<'a> { + FontDesc::new(from.into(), 12.0, FontStyle::Normal) + } +} + +impl<'a> From> for FontDesc<'a> { + fn from(family: FontFamily<'a>) -> FontDesc<'a> { + FontDesc::new(family, 12.0, FontStyle::Normal) + } +} + +impl<'a, T: Into> From<(FontFamily<'a>, T)> for FontDesc<'a> { + fn from((family, size): (FontFamily<'a>, T)) -> FontDesc<'a> { + FontDesc::new(family, size.into(), FontStyle::Normal) + } +} + +impl<'a, T: Into> From<(&'a str, T)> for FontDesc<'a> { + fn from((typeface, size): (&'a str, T)) -> FontDesc<'a> { + FontDesc::new(typeface.into(), size.into(), FontStyle::Normal) + } +} + +impl<'a, T: Into, S: Into> From<(FontFamily<'a>, T, S)> for FontDesc<'a> { + fn from((family, size, style): (FontFamily<'a>, T, S)) -> FontDesc<'a> { + FontDesc::new(family, size.into(), style.into()) + } +} + +impl<'a, T: Into, S: Into> From<(&'a str, T, S)> for FontDesc<'a> { + fn from((typeface, size, style): (&'a str, T, S)) -> FontDesc<'a> { + FontDesc::new(typeface.into(), size.into(), style.into()) + } +} + +/// The trait that allows some type turns into a font description +pub trait IntoFont<'a> { + /// Make the font description from the source type + fn into_font(self) -> FontDesc<'a>; +} + +impl<'a, T: Into>> IntoFont<'a> for T { + fn into_font(self) -> FontDesc<'a> { + self.into() + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/font/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/font/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..d80ee289d048a028e7daa6508c56d9627ceeb248 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/font/mod.rs @@ -0,0 +1,77 @@ +/// The implementation of an actual font implementation +/// +/// This exists since for the image rendering task, we want to use +/// the system font. But in wasm application, we want the browser +/// to handle all the font issue. +/// +/// Thus we need different mechanism for the font implementation + +#[cfg(all( + not(all(target_arch = "wasm32", not(target_os = "wasi"))), + feature = "ttf" +))] +mod ttf; +#[cfg(all( + not(all(target_arch = "wasm32", not(target_os = "wasi"))), + feature = "ttf" +))] +use ttf::FontDataInternal; + +#[cfg(all( + not(target_arch = "wasm32"), + not(target_os = "wasi"), + feature = "ab_glyph" +))] +mod ab_glyph; +#[cfg(all( + not(target_arch = "wasm32"), + not(target_os = "wasi"), + feature = "ab_glyph" +))] +pub use self::ab_glyph::register_font; +#[cfg(all( + not(target_arch = "wasm32"), + not(target_os = "wasi"), + feature = "ab_glyph", + not(feature = "ttf") +))] +use self::ab_glyph::FontDataInternal; + +#[cfg(all( + not(all(target_arch = "wasm32", not(target_os = "wasi"))), + not(feature = "ttf"), + not(feature = "ab_glyph") +))] +mod naive; +#[cfg(all( + not(all(target_arch = "wasm32", not(target_os = "wasi"))), + not(feature = "ttf"), + not(feature = "ab_glyph") +))] +use naive::FontDataInternal; + +#[cfg(all(target_arch = "wasm32", not(target_os = "wasi")))] +mod web; +#[cfg(all(target_arch = "wasm32", not(target_os = "wasi")))] +use web::FontDataInternal; + +mod font_desc; +pub use font_desc::*; + +/// Represents a box where a text label can be fit +pub type LayoutBox = ((i32, i32), (i32, i32)); + +pub trait FontData: Clone { + type ErrorType: Sized + std::error::Error + Clone; + fn new(family: FontFamily, style: FontStyle) -> Result; + fn estimate_layout(&self, size: f64, text: &str) -> Result; + fn draw Result<(), E>>( + &self, + _pos: (i32, i32), + _size: f64, + _text: &str, + _draw: DrawFunc, + ) -> Result, Self::ErrorType> { + panic!("The font implementation is unable to draw text"); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/font/naive.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/font/naive.rs new file mode 100644 index 0000000000000000000000000000000000000000..99530401baac85a4edf1df96d4bd104225d6db85 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/font/naive.rs @@ -0,0 +1,40 @@ +use super::{FontData, FontFamily, FontStyle, LayoutBox}; + +#[derive(Debug, Clone)] +pub struct FontError; + +impl std::fmt::Display for FontError { + fn fmt(&self, fmt: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> { + write!(fmt, "General Error")?; + Ok(()) + } +} + +impl std::error::Error for FontError {} + +#[derive(Clone)] +pub struct FontDataInternal(String, String); + +impl FontData for FontDataInternal { + type ErrorType = FontError; + fn new(family: FontFamily, style: FontStyle) -> Result { + Ok(FontDataInternal( + family.as_str().into(), + style.as_str().into(), + )) + } + + /// Note: This is only a crude estimatation, since for some backend such as SVG, we have no way to + /// know the real size of the text anyway. Thus using font-kit is an overkill and doesn't helps + /// the layout. + fn estimate_layout(&self, size: f64, text: &str) -> Result { + let em = size / 1.24 / 1.24; + Ok(( + (0, -em.round() as i32), + ( + (em * 0.7 * text.len() as f64).round() as i32, + (em * 0.24).round() as i32, + ), + )) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/font/ttf.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/font/ttf.rs new file mode 100644 index 0000000000000000000000000000000000000000..5d5a720917805512e5c596b4816d2a8ff718c175 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/font/ttf.rs @@ -0,0 +1,320 @@ +use std::borrow::{Borrow, Cow}; +use std::cell::RefCell; +use std::collections::HashMap; +use std::sync::{Arc, RwLock}; + +use lazy_static::lazy_static; + +use font_kit::{ + canvas::{Canvas, Format, RasterizationOptions}, + error::{FontLoadingError, GlyphLoadingError}, + family_name::FamilyName, + font::Font, + handle::Handle, + hinting::HintingOptions, + properties::{Properties, Style, Weight}, + source::SystemSource, +}; + +use ttf_parser::{Face, GlyphId}; + +use pathfinder_geometry::transform2d::Transform2F; +use pathfinder_geometry::vector::{Vector2F, Vector2I}; + +use super::{FontData, FontFamily, FontStyle, LayoutBox}; + +type FontResult = Result; + +#[derive(Debug, Clone)] +pub enum FontError { + LockError, + NoSuchFont(String, String), + FontLoadError(Arc), + GlyphError(Arc), +} + +impl std::fmt::Display for FontError { + fn fmt(&self, fmt: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> { + match self { + FontError::LockError => write!(fmt, "Could not lock mutex"), + FontError::NoSuchFont(family, style) => { + write!(fmt, "No such font: {} {}", family, style) + } + FontError::FontLoadError(e) => write!(fmt, "Font loading error {}", e), + FontError::GlyphError(e) => write!(fmt, "Glyph error {}", e), + } + } +} + +impl std::error::Error for FontError {} + +lazy_static! { + static ref DATA_CACHE: RwLock>> = + RwLock::new(HashMap::new()); +} + +thread_local! { + static FONT_SOURCE: SystemSource = SystemSource::new(); + static FONT_OBJECT_CACHE: RefCell> = RefCell::new(HashMap::new()); +} + +const PLACEHOLDER_CHAR: char = '�'; + +#[derive(Clone)] +struct FontExt { + inner: Font, + face: Option>, +} + +impl Drop for FontExt { + fn drop(&mut self) { + // We should make sure the face object dead first + self.face.take(); + } +} + +impl FontExt { + fn new(font: Font) -> Self { + let handle = font.handle(); + let (data, idx) = match handle.as_ref() { + Some(Handle::Memory { bytes, font_index }) => (&bytes[..], *font_index), + _ => unreachable!(), + }; + let face = unsafe { + std::mem::transmute::, Option>>( + ttf_parser::Face::parse(data, idx).ok(), + ) + }; + Self { inner: font, face } + } + + fn query_kerning_table(&self, prev: u32, next: u32) -> f32 { + if let Some(face) = self.face.as_ref() { + if let Some(kern) = face.tables().kern { + let kern = kern + .subtables + .into_iter() + .filter(|st| st.horizontal && !st.variable) + .filter_map(|st| st.glyphs_kerning(GlyphId(prev as u16), GlyphId(next as u16))) + .next() + .unwrap_or(0); + return kern as f32; + } + } + 0.0 + } +} + +impl std::ops::Deref for FontExt { + type Target = Font; + fn deref(&self) -> &Font { + &self.inner + } +} + +/// Lazily load font data. Font type doesn't own actual data, which +/// lives in the cache. +fn load_font_data(face: FontFamily, style: FontStyle) -> FontResult { + let key = match style { + FontStyle::Normal => Cow::Borrowed(face.as_str()), + _ => Cow::Owned(format!("{}, {}", face.as_str(), style.as_str())), + }; + + // First, we try to find the font object for current thread + if let Some(font_object) = FONT_OBJECT_CACHE.with(|font_object_cache| { + font_object_cache + .borrow() + .get(Borrow::::borrow(&key)) + .cloned() + }) { + return Ok(font_object); + } + + // Then we need to check if the data cache contains the font data + let cache = DATA_CACHE.read().unwrap(); + if let Some(data) = cache.get(Borrow::::borrow(&key)) { + data.clone().map(|handle| { + handle + .load() + .map(FontExt::new) + .map_err(|e| FontError::FontLoadError(Arc::new(e))) + })??; + } + drop(cache); + + // Otherwise we should load from system + let mut properties = Properties::new(); + match style { + FontStyle::Normal => properties.style(Style::Normal), + FontStyle::Italic => properties.style(Style::Italic), + FontStyle::Oblique => properties.style(Style::Oblique), + FontStyle::Bold => properties.weight(Weight::BOLD), + }; + + let family = match face { + FontFamily::Serif => FamilyName::Serif, + FontFamily::SansSerif => FamilyName::SansSerif, + FontFamily::Monospace => FamilyName::Monospace, + FontFamily::Name(name) => FamilyName::Title(name.to_owned()), + }; + + let make_not_found_error = + || FontError::NoSuchFont(face.as_str().to_owned(), style.as_str().to_owned()); + + if let Ok(handle) = FONT_SOURCE + .with(|source| source.select_best_match(&[family, FamilyName::SansSerif], &properties)) + { + let font = handle + .load() + .map(FontExt::new) + .map_err(|e| FontError::FontLoadError(Arc::new(e))); + let (should_cache, data) = match font.as_ref().map(|f| f.handle()) { + Ok(None) => (false, Err(FontError::LockError)), + Ok(Some(handle)) => (true, Ok(handle)), + Err(e) => (true, Err(e.clone())), + }; + + if should_cache { + DATA_CACHE + .write() + .map_err(|_| FontError::LockError)? + .insert(key.clone().into_owned(), data); + } + + if let Ok(font) = font.as_ref() { + FONT_OBJECT_CACHE.with(|font_object_cache| { + font_object_cache + .borrow_mut() + .insert(key.into_owned(), font.clone()); + }); + } + + return font; + } + Err(make_not_found_error()) +} + +#[derive(Clone)] +pub struct FontDataInternal(FontExt); + +impl FontData for FontDataInternal { + type ErrorType = FontError; + + fn new(family: FontFamily, style: FontStyle) -> Result { + Ok(FontDataInternal(load_font_data(family, style)?)) + } + + fn estimate_layout(&self, size: f64, text: &str) -> Result { + let font = &self.0; + let pixel_per_em = size / 1.24; + let metrics = font.metrics(); + + let font = &self.0; + + let mut x_in_unit = 0f32; + + let mut prev = None; + let place_holder = font.glyph_for_char(PLACEHOLDER_CHAR); + + for c in text.chars() { + if let Some(glyph_id) = font.glyph_for_char(c).or(place_holder) { + if let Ok(size) = font.advance(glyph_id) { + x_in_unit += size.x(); + } + if let Some(pc) = prev { + x_in_unit += font.query_kerning_table(pc, glyph_id); + } + prev = Some(glyph_id); + } + } + + let x_pixels = x_in_unit * pixel_per_em as f32 / metrics.units_per_em as f32; + + Ok(((0, 0), (x_pixels as i32, pixel_per_em as i32))) + } + + fn draw Result<(), E>>( + &self, + (base_x, mut base_y): (i32, i32), + size: f64, + text: &str, + mut draw: DrawFunc, + ) -> Result, Self::ErrorType> { + let em = (size / 1.24) as f32; + + let mut x = base_x as f32; + let font = &self.0; + let metrics = font.metrics(); + + let canvas_size = size as usize; + + base_y -= (0.24 * em) as i32; + + let mut prev = None; + let place_holder = font.glyph_for_char(PLACEHOLDER_CHAR); + + let mut result = Ok(()); + + for c in text.chars() { + if let Some(glyph_id) = font.glyph_for_char(c).or(place_holder) { + if let Some(pc) = prev { + x += font.query_kerning_table(pc, glyph_id) * em / metrics.units_per_em as f32; + } + + let mut canvas = Canvas::new(Vector2I::splat(canvas_size as i32), Format::A8); + + result = font + .rasterize_glyph( + &mut canvas, + glyph_id, + em, + Transform2F::from_translation(Vector2F::new(0.0, em)), + HintingOptions::None, + RasterizationOptions::GrayscaleAa, + ) + .map_err(|e| FontError::GlyphError(Arc::new(e))) + .and(result); + + let base_x = x as i32; + + for dy in 0..canvas_size { + for dx in 0..canvas_size { + let alpha = canvas.pixels[dy * canvas_size + dx] as f32 / 255.0; + if let Err(e) = draw(base_x + dx as i32, base_y + dy as i32, alpha) { + return Ok(Err(e)); + } + } + } + + x += font.advance(glyph_id).map(|size| size.x()).unwrap_or(0.0) * em + / metrics.units_per_em as f32; + + prev = Some(glyph_id); + } + } + result?; + Ok(Ok(())) + } +} + +#[cfg(test)] +mod test { + + use super::*; + + #[test] + fn test_font_cache() -> FontResult<()> { + // We cannot only check the size of font cache, because + // the test case may be run in parallel. Thus the font cache + // may contains other fonts. + let _a = load_font_data(FontFamily::Serif, FontStyle::Normal)?; + assert!(DATA_CACHE.read().unwrap().contains_key("serif")); + + let _b = load_font_data(FontFamily::Serif, FontStyle::Normal)?; + assert!(DATA_CACHE.read().unwrap().contains_key("serif")); + + // TODO: Check they are the same + + Ok(()) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/font/web.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/font/web.rs new file mode 100644 index 0000000000000000000000000000000000000000..7af99965d16859f2e7ffd61ca0be8355192ffac8 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/font/web.rs @@ -0,0 +1,46 @@ +use super::{FontData, FontFamily, FontStyle, LayoutBox}; +use wasm_bindgen::JsCast; +use web_sys::{window, HtmlElement}; + +#[derive(Debug, Clone)] +pub enum FontError { + UnknownError, +} + +impl std::fmt::Display for FontError { + fn fmt(&self, fmt: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> { + match self { + _ => write!(fmt, "Unknown error"), + } + } +} + +impl std::error::Error for FontError {} + +#[derive(Clone)] +pub struct FontDataInternal(String, String); + +impl FontData for FontDataInternal { + type ErrorType = FontError; + fn new(family: FontFamily, style: FontStyle) -> Result { + Ok(FontDataInternal( + family.as_str().into(), + style.as_str().into(), + )) + } + fn estimate_layout(&self, size: f64, text: &str) -> Result { + let window = window().unwrap(); + let document = window.document().unwrap(); + let body = document.body().unwrap(); + let span = document.create_element("span").unwrap(); + span.set_text_content(Some(text)); + span.set_attribute("style", &format!("display: inline-block; font-family:{}; font-style:{}; font-size: {}px; position: fixed; top: 100%", self.0, self.1, size)).unwrap(); + let span = span.into(); + body.append_with_node_1(&span).unwrap(); + let elem = JsCast::dyn_into::(span).unwrap(); + let height = elem.offset_height() as i32; + let width = elem.offset_width() as i32; + elem.remove(); + Ok(((0, 0), (width, height))) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/palette.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/palette.rs new file mode 100644 index 0000000000000000000000000000000000000000..d98df293be788c6e5e514b077f96febf6dc1ac11 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/palette.rs @@ -0,0 +1,66 @@ +use super::color::PaletteColor; + +/// Represents a color palette +pub trait Palette { + /// Array of colors + const COLORS: &'static [(u8, u8, u8)]; + /// Returns a color from the palette + fn pick(idx: usize) -> PaletteColor + where + Self: Sized, + { + PaletteColor::::pick(idx) + } +} + +/// The palette of 99% accessibility +pub struct Palette99; +/// The palette of 99.99% accessibility +pub struct Palette9999; +/// The palette of 100% accessibility +pub struct Palette100; + +impl Palette for Palette99 { + const COLORS: &'static [(u8, u8, u8)] = &[ + (230, 25, 75), + (60, 180, 75), + (255, 225, 25), + (0, 130, 200), + (245, 130, 48), + (145, 30, 180), + (70, 240, 240), + (240, 50, 230), + (210, 245, 60), + (250, 190, 190), + (0, 128, 128), + (230, 190, 255), + (170, 110, 40), + (255, 250, 200), + (128, 0, 0), + (170, 255, 195), + (128, 128, 0), + (255, 215, 180), + (0, 0, 128), + (128, 128, 128), + (0, 0, 0), + ]; +} + +impl Palette for Palette9999 { + const COLORS: &'static [(u8, u8, u8)] = &[ + (255, 225, 25), + (0, 130, 200), + (245, 130, 48), + (250, 190, 190), + (230, 190, 255), + (128, 0, 0), + (0, 0, 128), + (128, 128, 128), + (0, 0, 0), + ]; +} + +impl Palette for Palette100 { + const COLORS: &'static [(u8, u8, u8)] = + &[(255, 225, 25), (0, 130, 200), (128, 128, 128), (0, 0, 0)]; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/shape.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/shape.rs new file mode 100644 index 0000000000000000000000000000000000000000..97ac6b6eec40e82f22a9fea9198b914ceadbdbb1 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/shape.rs @@ -0,0 +1,98 @@ +use super::color::{Color, RGBAColor}; +use plotters_backend::{BackendColor, BackendStyle}; + +/// Style for any shape +#[derive(Copy, Clone, Debug, PartialEq)] +pub struct ShapeStyle { + /// Specification of the color. + pub color: RGBAColor, + /// Whether the style is filled with color. + pub filled: bool, + /// Stroke width. + pub stroke_width: u32, +} + +impl ShapeStyle { + /** + Returns a filled style with the same color and stroke width. + + # Example + + ``` + use plotters::prelude::*; + let original_style = ShapeStyle { + color: BLUE.mix(0.6), + filled: false, + stroke_width: 2, + }; + let filled_style = original_style.filled(); + let drawing_area = SVGBackend::new("shape_style_filled.svg", (400, 200)).into_drawing_area(); + drawing_area.fill(&WHITE).unwrap(); + drawing_area.draw(&Circle::new((150, 100), 90, original_style)); + drawing_area.draw(&Circle::new((250, 100), 90, filled_style)); + ``` + + The result is a figure with two circles, one of them filled: + + ![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@b0b94d5/apidoc/shape_style_filled.svg) + */ + pub fn filled(&self) -> Self { + Self { + color: self.color.to_rgba(), + filled: true, + stroke_width: self.stroke_width, + } + } + + /** + Returns a new style with the same color and the specified stroke width. + + # Example + + ``` + use plotters::prelude::*; + let original_style = ShapeStyle { + color: BLUE.mix(0.6), + filled: false, + stroke_width: 2, + }; + let new_style = original_style.stroke_width(5); + let drawing_area = SVGBackend::new("shape_style_stroke_width.svg", (400, 200)).into_drawing_area(); + drawing_area.fill(&WHITE).unwrap(); + drawing_area.draw(&Circle::new((150, 100), 90, original_style)); + drawing_area.draw(&Circle::new((250, 100), 90, new_style)); + ``` + + The result is a figure with two circles, one of them thicker than the other: + + ![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@b0b94d5/apidoc/shape_style_stroke_width.svg) + */ + pub fn stroke_width(&self, width: u32) -> Self { + Self { + color: self.color.to_rgba(), + filled: self.filled, + stroke_width: width, + } + } +} + +impl From for ShapeStyle { + fn from(f: T) -> Self { + ShapeStyle { + color: f.to_rgba(), + filled: false, + stroke_width: 1, + } + } +} + +impl BackendStyle for ShapeStyle { + /// Returns the color as interpreted by the backend. + fn color(&self) -> BackendColor { + self.color.to_backend_color() + } + /// Returns the stroke width. + fn stroke_width(&self) -> u32 { + self.stroke_width + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/size.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/size.rs new file mode 100644 index 0000000000000000000000000000000000000000..254df8d4fef31e3afcc948ef0bda4d9d79681c27 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/size.rs @@ -0,0 +1,186 @@ +use crate::coord::CoordTranslate; +use crate::drawing::DrawingArea; +use plotters_backend::DrawingBackend; + +/// The trait indicates that the type has a dimensional data. +/// This is the abstraction for the relative sizing model. +/// A relative sizing value is able to be converted into a concrete size +/// when coupling with a type with `HasDimension` type. +pub trait HasDimension { + /// Get the dimensional data for this object + fn dim(&self) -> (u32, u32); +} + +impl HasDimension for DrawingArea { + fn dim(&self) -> (u32, u32) { + self.dim_in_pixel() + } +} + +impl HasDimension for (u32, u32) { + fn dim(&self) -> (u32, u32) { + *self + } +} + +/// The trait that describes a size, it may be a relative size which the +/// size is determined by the parent size, e.g., 10% of the parent width +pub trait SizeDesc { + /// Convert the size into the number of pixels + /// + /// - `parent`: The reference to the parent container of this size + /// - **returns**: The number of pixels + fn in_pixels(&self, parent: &T) -> i32; +} + +impl SizeDesc for i32 { + fn in_pixels(&self, _parent: &D) -> i32 { + *self + } +} + +impl SizeDesc for u32 { + fn in_pixels(&self, _parent: &D) -> i32 { + *self as i32 + } +} + +impl SizeDesc for f32 { + fn in_pixels(&self, _parent: &D) -> i32 { + *self as i32 + } +} + +impl SizeDesc for f64 { + fn in_pixels(&self, _parent: &D) -> i32 { + *self as i32 + } +} + +/// Describes a relative size, might be +/// 1. portion of height +/// 2. portion of width +/// 3. portion of the minimal of height and weight +pub enum RelativeSize { + /// Percentage height + Height(f64), + /// Percentage width + Width(f64), + /// Percentage of either height or width, which is smaller + Smaller(f64), +} + +impl RelativeSize { + /// Set the lower bound of the relative size. + /// + /// - `min_sz`: The minimal size the relative size can be in pixels + /// - **returns**: The relative size with the bound + pub fn min(self, min_sz: i32) -> RelativeSizeWithBound { + RelativeSizeWithBound { + size: self, + min: Some(min_sz), + max: None, + } + } + + /// Set the upper bound of the relative size + /// + /// - `max_size`: The maximum size in pixels for this relative size + /// - **returns** The relative size with the upper bound + pub fn max(self, max_sz: i32) -> RelativeSizeWithBound { + RelativeSizeWithBound { + size: self, + max: Some(max_sz), + min: None, + } + } +} + +impl SizeDesc for RelativeSize { + fn in_pixels(&self, parent: &D) -> i32 { + let (w, h) = parent.dim(); + match self { + RelativeSize::Width(p) => *p * f64::from(w), + RelativeSize::Height(p) => *p * f64::from(h), + RelativeSize::Smaller(p) => *p * f64::from(w.min(h)), + } + .round() as i32 + } +} + +/// Allows a value turns into a relative size +pub trait AsRelative: Into { + /// Make the value a relative size of percentage of width + fn percent_width(self) -> RelativeSize { + RelativeSize::Width(self.into() / 100.0) + } + /// Make the value a relative size of percentage of height + fn percent_height(self) -> RelativeSize { + RelativeSize::Height(self.into() / 100.0) + } + /// Make the value a relative size of percentage of minimal of height and width + fn percent(self) -> RelativeSize { + RelativeSize::Smaller(self.into() / 100.0) + } +} + +impl> AsRelative for T {} + +/// The struct describes a relative size with upper bound and lower bound +pub struct RelativeSizeWithBound { + size: RelativeSize, + min: Option, + max: Option, +} + +impl RelativeSizeWithBound { + /// Set the lower bound of the bounded relative size + /// + /// - `min_sz`: The lower bound of this size description + /// - **returns**: The newly created size description with the bound + pub fn min(mut self, min_sz: i32) -> RelativeSizeWithBound { + self.min = Some(min_sz); + self + } + + /// Set the upper bound of the bounded relative size + /// + /// - `min_sz`: The upper bound of this size description + /// - **returns**: The newly created size description with the bound + pub fn max(mut self, max_sz: i32) -> RelativeSizeWithBound { + self.max = Some(max_sz); + self + } +} + +impl SizeDesc for RelativeSizeWithBound { + fn in_pixels(&self, parent: &D) -> i32 { + let size = self.size.in_pixels(parent); + let size_lower_capped = self.min.map_or(size, |x| x.max(size)); + self.max.map_or(size_lower_capped, |x| x.min(size)) + } +} + +#[cfg(test)] +mod test { + use super::*; + #[test] + fn test_relative_size() { + let size = (10).percent_height(); + assert_eq!(size.in_pixels(&(100, 200)), 20); + + let size = (10).percent_width(); + assert_eq!(size.in_pixels(&(100, 200)), 10); + + let size = (-10).percent_width(); + assert_eq!(size.in_pixels(&(100, 200)), -10); + + let size = (10).percent_width().min(30); + assert_eq!(size.in_pixels(&(100, 200)), 30); + assert_eq!(size.in_pixels(&(400, 200)), 40); + + let size = (10).percent(); + assert_eq!(size.in_pixels(&(100, 200)), 10); + assert_eq!(size.in_pixels(&(400, 200)), 20); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/text.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/text.rs new file mode 100644 index 0000000000000000000000000000000000000000..e98f3193da5006dfbc5a375d433bfd362d30b806 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plotters-0.3.7/src/style/text.rs @@ -0,0 +1,327 @@ +use super::color::Color; +use super::font::{FontDesc, FontError, FontFamily, FontStyle, FontTransform}; +use super::size::{HasDimension, SizeDesc}; +use super::BLACK; +pub use plotters_backend::text_anchor; +use plotters_backend::{BackendColor, BackendCoord, BackendStyle, BackendTextStyle}; + +/// Style of a text +#[derive(Clone)] +pub struct TextStyle<'a> { + /// The font description + pub font: FontDesc<'a>, + /// The text color + pub color: BackendColor, + /// The anchor point position + pub pos: text_anchor::Pos, +} + +/// Trait for values that can be converted into `TextStyle` values +pub trait IntoTextStyle<'a> { + /** Converts the value into a TextStyle value. + + `parent` is used in some cases to convert a font size from points to pixels. + + # Example + + ``` + use plotters::prelude::*; + let drawing_area = SVGBackend::new("into_text_style.svg", (200, 100)).into_drawing_area(); + drawing_area.fill(&WHITE).unwrap(); + let text_style = ("sans-serif", 20, &RED).into_text_style(&drawing_area); + drawing_area.draw_text("This is a big red label", &text_style, (10, 50)).unwrap(); + ``` + + The result is a text label styled accordingly: + + ![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@f030ed3/apidoc/into_text_style.svg) + + */ + fn into_text_style(self, parent: &P) -> TextStyle<'a>; + + /** Specifies the color of the text element + + # Example + + ``` + use plotters::prelude::*; + let drawing_area = SVGBackend::new("with_color.svg", (200, 100)).into_drawing_area(); + drawing_area.fill(&WHITE).unwrap(); + let text_style = ("sans-serif", 20).with_color(RED).into_text_style(&drawing_area); + drawing_area.draw_text("This is a big red label", &text_style, (10, 50)).unwrap(); + ``` + + The result is a text label styled accordingly: + + ![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@f030ed3/apidoc/with_color.svg) + + # See also + + [`FontDesc::color()`] + + [`IntoTextStyle::into_text_style()`] for a more succinct example + + */ + fn with_color(self, color: C) -> TextStyleBuilder<'a, Self> + where + Self: Sized, + { + TextStyleBuilder { + base: self, + new_color: Some(color.to_backend_color()), + new_pos: None, + _phatom: std::marker::PhantomData, + } + } + + /** Specifies the position of the text anchor relative to the text element + + # Example + + ``` + use plotters::{prelude::*,style::text_anchor::{HPos, Pos, VPos}}; + let anchor_position = (200,100); + let anchor_left_bottom = Pos::new(HPos::Left, VPos::Bottom); + let anchor_right_top = Pos::new(HPos::Right, VPos::Top); + let drawing_area = SVGBackend::new("with_anchor.svg", (400, 200)).into_drawing_area(); + drawing_area.fill(&WHITE).unwrap(); + drawing_area.draw(&Circle::new(anchor_position, 5, RED.filled())); + let text_style_right_top = BLACK.with_anchor::(anchor_right_top).into_text_style(&drawing_area); + drawing_area.draw_text("The anchor sits at the right top of this label", &text_style_right_top, anchor_position); + let text_style_left_bottom = BLACK.with_anchor::(anchor_left_bottom).into_text_style(&drawing_area); + drawing_area.draw_text("The anchor sits at the left bottom of this label", &text_style_left_bottom, anchor_position); + ``` + + The result has a red pixel at the center and two text labels positioned accordingly: + + ![](https://cdn.jsdelivr.net/gh/facorread/plotters-doc-data@b0b94d5/apidoc/with_anchor.svg) + + # See also + + [`TextStyle::pos()`] + + */ + fn with_anchor(self, pos: text_anchor::Pos) -> TextStyleBuilder<'a, Self> + where + Self: Sized, + { + TextStyleBuilder { + base: self, + new_pos: Some(pos), + new_color: None, + _phatom: std::marker::PhantomData, + } + } +} + +pub struct TextStyleBuilder<'a, T: IntoTextStyle<'a>> { + base: T, + new_color: Option, + new_pos: Option, + _phatom: std::marker::PhantomData<&'a T>, +} + +impl<'a, T: IntoTextStyle<'a>> IntoTextStyle<'a> for TextStyleBuilder<'a, T> { + fn into_text_style(self, parent: &P) -> TextStyle<'a> { + let mut base = self.base.into_text_style(parent); + if let Some(color) = self.new_color { + base.color = color; + } + if let Some(pos) = self.new_pos { + base = base.pos(pos); + } + base + } +} + +impl<'a> TextStyle<'a> { + /// Sets the color of the style. + /// + /// - `color`: The required color + /// - **returns** The up-to-dated text style + /// + /// ```rust + /// use plotters::prelude::*; + /// + /// let style = TextStyle::from(("sans-serif", 20).into_font()).color(&RED); + /// ``` + pub fn color(&self, color: &'a C) -> Self { + Self { + font: self.font.clone(), + color: color.to_backend_color(), + pos: self.pos, + } + } + + /// Sets the font transformation of the style. + /// + /// - `trans`: The required transformation + /// - **returns** The up-to-dated text style + /// + /// ```rust + /// use plotters::prelude::*; + /// + /// let style = TextStyle::from(("sans-serif", 20).into_font()).transform(FontTransform::Rotate90); + /// ``` + pub fn transform(&self, trans: FontTransform) -> Self { + Self { + font: self.font.clone().transform(trans), + color: self.color, + pos: self.pos, + } + } + + /// Sets the anchor position. + /// + /// - `pos`: The required anchor position + /// - **returns** The up-to-dated text style + /// + /// ```rust + /// use plotters::prelude::*; + /// use plotters::style::text_anchor::{Pos, HPos, VPos}; + /// + /// let pos = Pos::new(HPos::Left, VPos::Top); + /// let style = TextStyle::from(("sans-serif", 20).into_font()).pos(pos); + /// ``` + /// + /// # See also + /// + /// [`IntoTextStyle::with_anchor()`] + pub fn pos(&self, pos: text_anchor::Pos) -> Self { + Self { + font: self.font.clone(), + color: self.color, + pos, + } + } +} + +impl<'a> IntoTextStyle<'a> for FontDesc<'a> { + fn into_text_style(self, _: &P) -> TextStyle<'a> { + self.into() + } +} + +impl<'a> IntoTextStyle<'a> for TextStyle<'a> { + fn into_text_style(self, _: &P) -> TextStyle<'a> { + self + } +} + +impl<'a> IntoTextStyle<'a> for &'a str { + fn into_text_style(self, _: &P) -> TextStyle<'a> { + self.into() + } +} + +impl<'a> IntoTextStyle<'a> for FontFamily<'a> { + fn into_text_style(self, _: &P) -> TextStyle<'a> { + self.into() + } +} + +impl IntoTextStyle<'static> for u32 { + fn into_text_style(self, _: &P) -> TextStyle<'static> { + TextStyle::from((FontFamily::SansSerif, self)) + } +} + +impl IntoTextStyle<'static> for f64 { + fn into_text_style(self, _: &P) -> TextStyle<'static> { + TextStyle::from((FontFamily::SansSerif, self)) + } +} + +impl<'a, T: Color> IntoTextStyle<'a> for &'a T { + fn into_text_style(self, _: &P) -> TextStyle<'a> { + TextStyle::from(FontFamily::SansSerif).color(self) + } +} + +impl<'a, F: Into>, T: SizeDesc> IntoTextStyle<'a> for (F, T) { + fn into_text_style(self, parent: &P) -> TextStyle<'a> { + (self.0.into(), self.1.in_pixels(parent)).into() + } +} + +impl<'a, F: Into>, T: SizeDesc, C: Color> IntoTextStyle<'a> for (F, T, &'a C) { + fn into_text_style(self, parent: &P) -> TextStyle<'a> { + IntoTextStyle::into_text_style((self.0, self.1), parent).color(self.2) + } +} + +impl<'a, F: Into>, T: SizeDesc> IntoTextStyle<'a> for (F, T, FontStyle) { + fn into_text_style(self, parent: &P) -> TextStyle<'a> { + (self.0.into(), self.1.in_pixels(parent), self.2).into() + } +} + +impl<'a, F: Into>, T: SizeDesc, C: Color> IntoTextStyle<'a> + for (F, T, FontStyle, &'a C) +{ + fn into_text_style(self, parent: &P) -> TextStyle<'a> { + IntoTextStyle::into_text_style((self.0, self.1, self.2), parent).color(self.3) + } +} + +/// Make sure that we are able to automatically copy the `TextStyle` +impl<'a, 'b: 'a> From<&'b TextStyle<'a>> for TextStyle<'a> { + fn from(this: &'b TextStyle<'a>) -> Self { + this.clone() + } +} + +impl<'a, T: Into>> From for TextStyle<'a> { + fn from(font: T) -> Self { + Self { + font: font.into(), + color: BLACK.to_backend_color(), + pos: text_anchor::Pos::default(), + } + } +} + +impl<'a> BackendTextStyle for TextStyle<'a> { + type FontError = FontError; + fn color(&self) -> BackendColor { + self.color + } + + fn size(&self) -> f64 { + self.font.get_size() + } + + fn transform(&self) -> FontTransform { + self.font.get_transform() + } + + fn style(&self) -> FontStyle { + self.font.get_style() + } + + #[allow(clippy::type_complexity)] + fn layout_box(&self, text: &str) -> Result<((i32, i32), (i32, i32)), Self::FontError> { + self.font.layout_box(text) + } + + fn anchor(&self) -> text_anchor::Pos { + self.pos + } + + fn family(&self) -> FontFamily { + self.font.get_family() + } + + fn draw Result<(), E>>( + &self, + text: &str, + pos: BackendCoord, + mut draw: DrawFunc, + ) -> Result, Self::FontError> { + let color = self.color.color(); + self.font.draw(text, pos, move |x, y, a| { + let mix_color = color.mix(a as f64); + draw(x, y, mix_color) + }) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/quinn-proto-0.11.13/src/bloom_token_log.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/quinn-proto-0.11.13/src/bloom_token_log.rs new file mode 100644 index 0000000000000000000000000000000000000000..dd5e83d39406a072bca87596a3ab98426b34bf0a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/quinn-proto-0.11.13/src/bloom_token_log.rs @@ -0,0 +1,368 @@ +use std::{ + collections::HashSet, + f64::consts::LN_2, + hash::{BuildHasher, Hasher}, + mem::{size_of, take}, + sync::Mutex, +}; + +use fastbloom::BloomFilter; +use rustc_hash::FxBuildHasher; +use tracing::{trace, warn}; + +use crate::{Duration, SystemTime, TokenLog, TokenReuseError, UNIX_EPOCH}; + +/// Bloom filter-based [`TokenLog`] +/// +/// Parameterizable over an approximate maximum number of bytes to allocate. Starts out by storing +/// used tokens in a hash set. Once the hash set becomes too large, converts it to a bloom filter. +/// This achieves a memory profile of linear growth with an upper bound. +/// +/// Divides time into periods based on `lifetime` and stores two filters at any given moment, for +/// each of the two periods currently non-expired tokens could expire in. As such, turns over +/// filters as time goes on to avoid bloom filter false positive rate increasing infinitely over +/// time. +pub struct BloomTokenLog(Mutex); + +impl BloomTokenLog { + /// Construct with an approximate maximum memory usage and expected number of validation token + /// usages per expiration period + /// + /// Calculates the optimal bloom filter k number automatically. + pub fn new_expected_items(max_bytes: usize, expected_hits: u64) -> Self { + Self::new(max_bytes, optimal_k_num(max_bytes, expected_hits)) + } + + /// Construct with an approximate maximum memory usage and a [bloom filter k number][bloom] + /// + /// [bloom]: https://en.wikipedia.org/wiki/Bloom_filter + /// + /// If choosing a custom k number, note that `BloomTokenLog` always maintains two filters + /// between them and divides the allocation budget of `max_bytes` evenly between them. As such, + /// each bloom filter will contain `max_bytes * 4` bits. + pub fn new(max_bytes: usize, k_num: u32) -> Self { + Self(Mutex::new(State { + config: FilterConfig { + filter_max_bytes: max_bytes / 2, + k_num, + }, + period_1_start: UNIX_EPOCH, + filter_1: Filter::default(), + filter_2: Filter::default(), + })) + } +} + +impl TokenLog for BloomTokenLog { + fn check_and_insert( + &self, + nonce: u128, + issued: SystemTime, + lifetime: Duration, + ) -> Result<(), TokenReuseError> { + trace!(%nonce, "check_and_insert"); + + if lifetime.is_zero() { + // avoid divide-by-zero if lifetime is zero + return Err(TokenReuseError); + } + + let mut guard = self.0.lock().unwrap(); + let state = &mut *guard; + + // calculate how many periods past period 1 the token expires + let expires_at = issued + lifetime; + let Ok(periods_forward) = expires_at + .duration_since(state.period_1_start) + .map(|duration| duration.as_nanos() / lifetime.as_nanos()) + else { + // shouldn't happen unless time travels backwards or lifetime changes or the current + // system time is before the Unix epoch + warn!("BloomTokenLog presented with token too far in past"); + return Err(TokenReuseError); + }; + + // get relevant filter + let filter = match periods_forward { + 0 => &mut state.filter_1, + 1 => &mut state.filter_2, + 2 => { + // turn over filter 1 + state.filter_1 = take(&mut state.filter_2); + state.period_1_start += lifetime; + &mut state.filter_2 + } + _ => { + // turn over both filters + state.filter_1 = Filter::default(); + state.filter_2 = Filter::default(); + state.period_1_start = expires_at; + &mut state.filter_1 + } + }; + + // insert into the filter + // + // the token's nonce needs to guarantee uniqueness because of the role it plays in the + // encryption of the tokens, so it is 128 bits. but since the token log can tolerate false + // positives, we trim it down to 64 bits, which would still only have a small collision + // rate even at significant amounts of usage, while allowing us to store twice as many in + // the hash set variant. + // + // token nonce values are uniformly randomly generated server-side and cryptographically + // integrity-checked, so we don't need to employ secure hashing to trim it down to 64 bits, + // we can simply truncate. + // + // per the Rust reference, we can truncate by simply casting: + // https://doc.rust-lang.org/stable/reference/expressions/operator-expr.html#numeric-cast + filter.check_and_insert(nonce as u64, &state.config) + } +} + +/// Default to 20 MiB max memory consumption and expected one million hits +/// +/// With the default validation token lifetime of 2 weeks, this corresponds to one token usage per +/// 1.21 seconds. +impl Default for BloomTokenLog { + fn default() -> Self { + Self::new_expected_items(DEFAULT_MAX_BYTES, DEFAULT_EXPECTED_HITS) + } +} + +/// Lockable state of [`BloomTokenLog`] +struct State { + config: FilterConfig, + // filter_1 covers tokens that expire in the period starting at period_1_start and extending + // lifetime after. filter_2 covers tokens for the next lifetime after that. + period_1_start: SystemTime, + filter_1: Filter, + filter_2: Filter, +} + +/// Unchanging parameters governing [`Filter`] behavior +struct FilterConfig { + filter_max_bytes: usize, + k_num: u32, +} + +/// Period filter within [`State`] +enum Filter { + Set(HashSet), + Bloom(BloomFilter), +} + +impl Filter { + fn check_and_insert( + &mut self, + fingerprint: u64, + config: &FilterConfig, + ) -> Result<(), TokenReuseError> { + match self { + Self::Set(hset) => { + if !hset.insert(fingerprint) { + return Err(TokenReuseError); + } + + if hset.capacity() * size_of::() <= config.filter_max_bytes { + return Ok(()); + } + + // convert to bloom + // avoid panicking if user passed in filter_max_bytes of 0. we document that this + // limit is approximate, so just fudge it up to 1. + let mut bloom = BloomFilter::with_num_bits((config.filter_max_bytes * 8).max(1)) + .hasher(FxBuildHasher) + .hashes(config.k_num); + for item in &*hset { + bloom.insert(item); + } + *self = Self::Bloom(bloom); + } + Self::Bloom(bloom) => { + if bloom.insert(&fingerprint) { + return Err(TokenReuseError); + } + } + } + Ok(()) + } +} + +impl Default for Filter { + fn default() -> Self { + Self::Set(HashSet::default()) + } +} + +/// `BuildHasher` of `IdentityHasher` +#[derive(Default)] +struct IdentityBuildHasher; + +impl BuildHasher for IdentityBuildHasher { + type Hasher = IdentityHasher; + + fn build_hasher(&self) -> Self::Hasher { + IdentityHasher::default() + } +} + +/// Hasher that is the identity operation--it assumes that exactly 8 bytes will be hashed, and the +/// resultant hash is those bytes as a `u64` +#[derive(Default)] +struct IdentityHasher { + data: [u8; 8], + #[cfg(debug_assertions)] + wrote_8_byte_slice: bool, +} + +impl Hasher for IdentityHasher { + fn write(&mut self, bytes: &[u8]) { + #[cfg(debug_assertions)] + { + assert!(!self.wrote_8_byte_slice); + assert_eq!(bytes.len(), 8); + self.wrote_8_byte_slice = true; + } + self.data.copy_from_slice(bytes); + } + + fn finish(&self) -> u64 { + #[cfg(debug_assertions)] + assert!(self.wrote_8_byte_slice); + u64::from_ne_bytes(self.data) + } +} + +fn optimal_k_num(num_bytes: usize, expected_hits: u64) -> u32 { + // be more forgiving rather than panickey here. excessively high num_bits may occur if the user + // wishes it to be unbounded, so just saturate. expected_hits of 0 would cause divide-by-zero, + // so just fudge it up to 1 in that case. + let num_bits = (num_bytes as u64).saturating_mul(8); + let expected_hits = expected_hits.max(1); + // reference for this formula: https://programming.guide/bloom-filter-calculator.html + // optimal k = (m ln 2) / n + // wherein m is the number of bits, and n is the number of elements in the set. + // + // we also impose a minimum return value of 1, to avoid making the bloom filter entirely + // useless in the case that the user provided an absurdly high ratio of hits / bytes. + (((num_bits as f64 / expected_hits as f64) * LN_2).round() as u32).max(1) +} + +// remember to change the doc comment for `impl Default for BloomTokenLog` if these ever change +const DEFAULT_MAX_BYTES: usize = 10 << 20; +const DEFAULT_EXPECTED_HITS: u64 = 1_000_000; + +#[cfg(test)] +mod test { + use super::*; + use rand::prelude::*; + use rand_pcg::Pcg32; + + fn new_rng() -> impl Rng { + Pcg32::from_seed(0xdeadbeefdeadbeefdeadbeefdeadbeef_u128.to_le_bytes()) + } + + #[test] + fn identity_hash_test() { + let mut rng = new_rng(); + let builder = IdentityBuildHasher; + for _ in 0..100 { + let n = rng.random::(); + let hash = builder.hash_one(n); + assert_eq!(hash, n); + } + } + + #[test] + fn optimal_k_num_test() { + assert_eq!(optimal_k_num(10 << 20, 1_000_000), 58); + assert_eq!(optimal_k_num(10 << 20, 1_000_000_000_000_000), 1); + // assert that these don't panic: + optimal_k_num(10 << 20, 0); + optimal_k_num(usize::MAX, 1_000_000); + } + + #[test] + fn bloom_token_log_conversion() { + let mut rng = new_rng(); + let mut log = BloomTokenLog::new_expected_items(800, 200); + + let issued = SystemTime::now(); + let lifetime = Duration::from_secs(1_000_000); + + for i in 0..200 { + let token = rng.random::(); + let result = log.check_and_insert(token, issued, lifetime); + { + let filter = &log.0.lock().unwrap().filter_1; + if let Filter::Set(ref hset) = *filter { + assert!(hset.capacity() * size_of::() <= 800); + assert_eq!(hset.len(), i + 1); + assert!(result.is_ok()); + } else { + assert!(i > 10, "definitely bloomed too early"); + } + } + assert!(log.check_and_insert(token, issued, lifetime).is_err()); + } + + assert!( + matches!(log.0.get_mut().unwrap().filter_1, Filter::Bloom { .. }), + "didn't bloom" + ); + } + + #[test] + fn turn_over() { + let mut rng = new_rng(); + let log = BloomTokenLog::new_expected_items(800, 200); + let lifetime = Duration::from_secs(1_000); + let mut old = Vec::default(); + let mut accepted = 0; + + for i in 0..200 { + let token = rng.random::(); + let now = UNIX_EPOCH + lifetime * 10 + lifetime * i / 10; + let issued = now - lifetime.mul_f32(rng.random_range(0.0..3.0)); + let result = log.check_and_insert(token, issued, lifetime); + if result.is_ok() { + accepted += 1; + } + old.push((token, issued)); + let old_idx = rng.random_range(0..old.len()); + let (old_token, old_issued) = old[old_idx]; + assert!( + log.check_and_insert(old_token, old_issued, lifetime) + .is_err() + ); + } + assert!(accepted > 0); + } + + fn test_doesnt_panic(log: BloomTokenLog) { + let mut rng = new_rng(); + + let issued = SystemTime::now(); + let lifetime = Duration::from_secs(1_000_000); + + for _ in 0..200 { + let _ = log.check_and_insert(rng.random::(), issued, lifetime); + } + } + + #[test] + fn max_bytes_zero() { + // "max bytes" is documented to be approximate. but make sure it doesn't panic. + test_doesnt_panic(BloomTokenLog::new_expected_items(0, 200)); + } + + #[test] + fn expected_hits_zero() { + test_doesnt_panic(BloomTokenLog::new_expected_items(100, 0)); + } + + #[test] + fn k_num_zero() { + test_doesnt_panic(BloomTokenLog::new(100, 0)); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/benches/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/benches/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..966353923a6a87ce8f9b64a2d150aa56a341796b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/benches/mod.rs @@ -0,0 +1,217 @@ +//! Benchmarks for rustix. +//! +//! To enable these benchmarks, add `--cfg=criterion` to RUSTFLAGS and enable +//! the "fs", "time", and "process" cargo features. +//! +//! ```sh +//! RUSTFLAGS=--cfg=criterion cargo bench --features=fs,time,process,stdio +//! ``` + +#[cfg(any( + not(criterion), + not(feature = "fs"), + not(feature = "process"), + not(feature = "time"), + not(feature = "stdio"), + windows, + target_os = "emscripten", + target_os = "redox", + target_os = "wasi", +))] +fn main() { + unimplemented!( + "Add --cfg=criterion to RUSTFLAGS and enable the \"fs\", \"time\", \"process\", and \ + \"stdio\" cargo features." + ) +} + +#[cfg(not(any( + not(criterion), + not(feature = "fs"), + not(feature = "process"), + not(feature = "time"), + not(feature = "stdio"), + windows, + target_os = "emscripten", + target_os = "redox", + target_os = "wasi", +)))] +use criterion::{criterion_group, criterion_main}; + +#[cfg(not(any( + not(criterion), + not(feature = "fs"), + not(feature = "process"), + not(feature = "time"), + not(feature = "stdio"), + windows, + target_os = "emscripten", + target_os = "redox", + target_os = "wasi", +)))] +mod suite { + use criterion::Criterion; + + pub(super) fn simple_statat(c: &mut Criterion) { + use rustix::fs::{statat, AtFlags, CWD}; + + c.bench_function("simple statat", |b| { + b.iter(|| { + statat(CWD, "/", AtFlags::empty()).unwrap(); + }) + }); + } + + pub(super) fn simple_statat_libc(c: &mut Criterion) { + c.bench_function("simple statat libc", |b| { + b.iter(|| { + let mut s = std::mem::MaybeUninit::::uninit(); + unsafe { + assert_eq!( + libc::fstatat( + libc::AT_FDCWD, + std::ffi::CString::new("/").unwrap().as_c_str().as_ptr() as _, + s.as_mut_ptr(), + 0 + ), + 0 + ); + } + }) + }); + } + + pub(super) fn simple_statat_libc_cstr(c: &mut Criterion) { + c.bench_function("simple statat libc cstr", |b| { + b.iter(|| { + let mut s = std::mem::MaybeUninit::::uninit(); + unsafe { + assert_eq!( + libc::fstatat( + libc::AT_FDCWD, + rustix::cstr!("/").as_ptr() as _, + s.as_mut_ptr(), + 0 + ), + 0 + ); + } + }) + }); + } + + pub(super) fn simple_statat_cstr(c: &mut Criterion) { + use rustix::fs::{statat, AtFlags, CWD}; + + c.bench_function("simple statat cstr", |b| { + b.iter(|| { + statat(CWD, rustix::cstr!("/"), AtFlags::empty()).unwrap(); + }) + }); + } + + pub(super) fn simple_fstat(c: &mut Criterion) { + use rustix::fs::fstat; + + c.bench_function("simple fstat", |b| { + b.iter(|| { + fstat(rustix::stdio::stdin()).unwrap(); + }) + }); + } + + pub(super) fn simple_fstat_libc(c: &mut Criterion) { + c.bench_function("simple fstat libc", |b| { + b.iter(|| { + let mut s = std::mem::MaybeUninit::::uninit(); + unsafe { + assert_eq!(libc::fstat(libc::STDIN_FILENO, s.as_mut_ptr()), 0); + } + }) + }); + } + + #[cfg(not(target_os = "wasi"))] + pub(super) fn simple_clock_gettime(c: &mut Criterion) { + use rustix::time::{clock_gettime, ClockId}; + + c.bench_function("simple clock_gettime", |b| { + b.iter(|| { + let _ = clock_gettime(ClockId::Monotonic); + }) + }); + } + + #[cfg(not(target_os = "wasi"))] + pub(super) fn simple_clock_gettime_libc(c: &mut Criterion) { + c.bench_function("simple clock_gettime libc", |b| { + b.iter(|| { + let mut s = std::mem::MaybeUninit::::uninit(); + unsafe { + assert_eq!( + libc::clock_gettime(libc::CLOCK_MONOTONIC, s.as_mut_ptr()), + 0 + ); + let _ = s.assume_init(); + } + }) + }); + } + + #[cfg(not(target_os = "wasi"))] + pub(super) fn simple_getpid(c: &mut Criterion) { + use rustix::process::getpid; + + c.bench_function("simple getpid", |b| { + b.iter(|| { + let _ = getpid(); + }) + }); + } + + #[cfg(not(target_os = "wasi"))] + pub(super) fn simple_getpid_libc(c: &mut Criterion) { + c.bench_function("simple getpid libc", |b| { + b.iter(|| unsafe { + let _ = libc::getpid(); + }) + }); + } +} + +#[cfg(not(any( + not(criterion), + not(feature = "fs"), + not(feature = "process"), + not(feature = "time"), + not(feature = "stdio"), + windows, + target_os = "emscripten", + target_os = "redox", + target_os = "wasi", +)))] +criterion_group!( + benches, + suite::simple_statat, + suite::simple_statat_libc, + suite::simple_statat_libc_cstr, + suite::simple_statat_cstr, + suite::simple_fstat, + suite::simple_fstat_libc, + suite::simple_clock_gettime, + suite::simple_clock_gettime_libc, + suite::simple_getpid, + suite::simple_getpid_libc +); +#[cfg(not(any( + not(criterion), + not(feature = "fs"), + not(feature = "process"), + not(feature = "time"), + not(feature = "stdio"), + windows, + target_os = "emscripten", + target_os = "redox", + target_os = "wasi", +)))] +criterion_main!(benches); diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/bitcast.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/bitcast.rs new file mode 100644 index 0000000000000000000000000000000000000000..db17c7cb1ded36a82326a4461bbf1fd16d8c8c6a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/bitcast.rs @@ -0,0 +1,39 @@ +//! The `bitcast` and `bitflags_bits` macros. + +#![allow(unused_macros)] + +// Ensure that the source and destination types are both primitive integer +// types and the same size, and then bitcast. +macro_rules! bitcast { + ($x:expr) => {{ + if false { + // Ensure the source and destinations are primitive integer types. + let _ = !$x; + let _ = $x as u8; + 0 + } else if false { + // Ensure that the source and destinations are the same size. + #[allow( + unsafe_code, + unused_unsafe, + clippy::useless_transmute, + clippy::missing_transmute_annotations + )] + // SAFETY: This code is under an `if false`. + unsafe { + ::core::mem::transmute($x) + } + } else { + // Do the conversion. + $x as _ + } + }}; +} + +/// Return a [`bitcast`] of the value of `$x.bits()`, where `$x` is a +/// `bitflags` type. +macro_rules! bitflags_bits { + ($x:expr) => {{ + bitcast!($x.bits()) + }}; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/buffer.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/buffer.rs new file mode 100644 index 0000000000000000000000000000000000000000..3584c5b39f8613d10c980d138f1be16d9ff1f711 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/buffer.rs @@ -0,0 +1,457 @@ +//! Utilities for functions that return data via buffers. + +#![allow(unsafe_code)] + +#[cfg(feature = "alloc")] +use alloc::vec::Vec; +use core::mem::MaybeUninit; +use core::slice; + +/// A memory buffer that may be uninitialized. +/// +/// There are three types that implement the `Buffer` trait, and the type you +/// use determines the return type of the functions that use it: +/// +/// | If you pass a… | You get back a… | +/// | ------------------------ | --------------- | +/// | `&mut [u8]` | `usize`, indicating the number of elements initialized. | +/// | `&mut [MaybeUninit]` | `(&mut [u8], &mut [MaybeUninit])`, holding the initialized and uninitialized subslices. | +/// | [`SpareCapacity`] | `usize`, indicating the number of elements initialized. And the `Vec` is extended. | +/// +/// # Examples +/// +/// Passing a `&mut [u8]`: +/// +/// ``` +/// # use rustix::io::read; +/// # fn example(fd: rustix::fd::BorrowedFd) -> rustix::io::Result<()> { +/// let mut buf = [0_u8; 64]; +/// let nread = read(fd, &mut buf)?; +/// // `nread` is the number of bytes read. +/// # Ok(()) +/// # } +/// ``` +/// +/// Passing a `&mut [MaybeUninit]`: +/// +/// ``` +/// # use rustix::io::read; +/// # use std::mem::MaybeUninit; +/// # fn example(fd: rustix::fd::BorrowedFd) -> rustix::io::Result<()> { +/// let mut buf = [MaybeUninit::::uninit(); 64]; +/// let (init, uninit) = read(fd, &mut buf)?; +/// // `init` is a `&mut [u8]` with the initialized bytes. +/// // `uninit` is a `&mut [MaybeUninit]` with the remaining bytes. +/// # Ok(()) +/// # } +/// ``` +/// +/// Passing a [`SpareCapacity`], via the [`spare_capacity`] helper function: +/// +/// ``` +/// # use rustix::io::read; +/// # use rustix::buffer::spare_capacity; +/// # fn example(fd: rustix::fd::BorrowedFd) -> rustix::io::Result<()> { +/// let mut buf = Vec::with_capacity(64); +/// let nread = read(fd, spare_capacity(&mut buf))?; +/// // `nread` is the number of bytes read. +/// // Also, `buf.len()` is now `nread` elements longer than it was before. +/// # Ok(()) +/// # } +/// ``` +/// +/// # Guide to error messages +/// +/// Sometimes code using `Buffer` can encounter non-obvious error messages. +/// Here are some we've encountered, along with ways to fix them. +/// +/// If you see errors like +/// "cannot move out of `self` which is behind a mutable reference" +/// and +/// "move occurs because `x` has type `&mut [u8]`, which does not implement the `Copy` trait", +/// replace `x` with `&mut *x`. See `error_buffer_wrapper` in +/// examples/buffer_errors.rs. +/// +/// If you see errors like +/// "type annotations needed" +/// and +/// "cannot infer type of the type parameter `Buf` declared on the function `read`", +/// you may need to change a `&mut []` to `&mut [0_u8; 0]`. See +/// `error_empty_slice` in examples/buffer_errors.rs. +/// +/// If you see errors like +/// "the trait bound `[MaybeUninit; 1]: Buffer` is not satisfied", +/// add a `&mut` to pass the array by reference instead of by value. See +/// `error_array_by_value` in examples/buffer_errors.rs. +/// +/// If you see errors like +/// "cannot move out of `x`, a captured variable in an `FnMut` closure", +/// try replacing `x` with `&mut *x`, or, if that doesn't work, try moving a +/// `let` into the closure body. See `error_retry_closure` and +/// `error_retry_indirect_closure` in examples/buffer_errors.rs. +/// +/// If you see errors like +/// "captured variable cannot escape `FnMut` closure body", +/// use an explicit loop instead of `retry_on_intr`, assuming you're using +/// that. See `error_retry_closure_uninit` in examples/buffer_errors.rs. +#[cfg_attr( + rustc_diagnostics, + diagnostic::on_unimplemented( + message = "rustix does not accept `{Self}` buffers", + label = "Unsupported buffer type", + note = "only (potentially uninitialized) byte arrays, slices, and Vecs are supported", + note = "please read the docs: https://docs.rs/rustix/latest/rustix/buffer/trait.Buffer.html" + ) +)] +pub trait Buffer: private::Sealed {} + +// Implement `Buffer` for all the types that implement `Sealed`. +impl Buffer for &mut [T] {} +impl Buffer for &mut [T; N] {} +#[cfg(feature = "alloc")] +impl Buffer for &mut Vec {} +impl Buffer for &mut [MaybeUninit] {} +impl Buffer for &mut [MaybeUninit; N] {} +#[cfg(feature = "alloc")] +impl Buffer for &mut Vec> {} +#[cfg(feature = "alloc")] +impl<'a, T> Buffer for SpareCapacity<'a, T> {} + +impl private::Sealed for &mut [T] { + type Output = usize; + + #[inline] + fn parts_mut(&mut self) -> (*mut T, usize) { + (self.as_mut_ptr(), self.len()) + } + + #[inline] + unsafe fn assume_init(self, len: usize) -> Self::Output { + len + } +} + +impl private::Sealed for &mut [T; N] { + type Output = usize; + + #[inline] + fn parts_mut(&mut self) -> (*mut T, usize) { + (self.as_mut_ptr(), N) + } + + #[inline] + unsafe fn assume_init(self, len: usize) -> Self::Output { + len + } +} + +// `Vec` implements `DerefMut` to `&mut [T]`, however it doesn't get +// auto-derefed in a `impl Buffer`, so we add this `impl` so that our users +// don't have to add an extra `*` in these situations. +#[cfg(feature = "alloc")] +impl private::Sealed for &mut Vec { + type Output = usize; + + #[inline] + fn parts_mut(&mut self) -> (*mut T, usize) { + (self.as_mut_ptr(), self.len()) + } + + #[inline] + unsafe fn assume_init(self, len: usize) -> Self::Output { + len + } +} + +impl<'a, T> private::Sealed for &'a mut [MaybeUninit] { + type Output = (&'a mut [T], &'a mut [MaybeUninit]); + + #[inline] + fn parts_mut(&mut self) -> (*mut T, usize) { + (self.as_mut_ptr().cast(), self.len()) + } + + #[inline] + unsafe fn assume_init(self, len: usize) -> Self::Output { + let (init, uninit) = self.split_at_mut(len); + + // SAFETY: The user asserts that the slice is now initialized. + let init = slice::from_raw_parts_mut(init.as_mut_ptr().cast::(), init.len()); + + (init, uninit) + } +} + +impl<'a, T, const N: usize> private::Sealed for &'a mut [MaybeUninit; N] { + type Output = (&'a mut [T], &'a mut [MaybeUninit]); + + #[inline] + fn parts_mut(&mut self) -> (*mut T, usize) { + (self.as_mut_ptr().cast(), self.len()) + } + + #[inline] + unsafe fn assume_init(self, len: usize) -> Self::Output { + let (init, uninit) = self.split_at_mut(len); + + // SAFETY: The user asserts that the slice is now initialized. + let init = slice::from_raw_parts_mut(init.as_mut_ptr().cast::(), init.len()); + + (init, uninit) + } +} + +#[cfg(feature = "alloc")] +impl<'a, T> private::Sealed for &'a mut Vec> { + type Output = (&'a mut [T], &'a mut [MaybeUninit]); + + #[inline] + fn parts_mut(&mut self) -> (*mut T, usize) { + (self.as_mut_ptr().cast(), self.len()) + } + + #[inline] + unsafe fn assume_init(self, len: usize) -> Self::Output { + let (init, uninit) = self.split_at_mut(len); + + // SAFETY: The user asserts that the slice is now initialized. + let init = slice::from_raw_parts_mut(init.as_mut_ptr().cast::(), init.len()); + + (init, uninit) + } +} + +/// A type that implements [`Buffer`] by appending to a `Vec`, up to its +/// capacity. +/// +/// To use this, use the [`spare_capacity`] function. +/// +/// Because this uses the capacity, and never reallocates, the `Vec` should +/// have some non-empty spare capacity. +#[cfg(feature = "alloc")] +#[cfg_attr(docsrs, doc(cfg(feature = "alloc")))] +pub struct SpareCapacity<'a, T>(&'a mut Vec); + +/// Construct an [`SpareCapacity`], which implements [`Buffer`]. +/// +/// This wraps a `Vec` and uses the spare capacity of the `Vec` as the buffer +/// to receive data in, automatically calling `set_len` on the `Vec` to set the +/// length to include the received elements. +/// +/// This uses the existing capacity, and never allocates, so the `Vec` should +/// have some non-empty spare capacity! +/// +/// # Examples +/// +/// ``` +/// # fn test(input: rustix::fd::BorrowedFd) -> rustix::io::Result<()> { +/// use rustix::buffer::spare_capacity; +/// use rustix::io::{read, Errno}; +/// +/// let mut buf = Vec::with_capacity(1024); +/// match read(input, spare_capacity(&mut buf)) { +/// Ok(0) => { /* end of stream */ } +/// Ok(n) => { /* `buf` is now `n` bytes longer */ } +/// Err(Errno::INTR) => { /* `buf` is unmodified */ } +/// Err(e) => { +/// return Err(e); +/// } +/// } +/// +/// # Ok(()) +/// # } +/// ``` +#[cfg(feature = "alloc")] +#[cfg_attr(docsrs, doc(cfg(feature = "alloc")))] +pub fn spare_capacity<'a, T>(v: &'a mut Vec) -> SpareCapacity<'a, T> { + debug_assert_ne!( + v.capacity(), + 0, + "`extend` uses spare capacity, and never allocates new memory, so the `Vec` passed to it \ + should have some spare capacity." + ); + + SpareCapacity(v) +} + +#[cfg(feature = "alloc")] +impl<'a, T> private::Sealed for SpareCapacity<'a, T> { + /// The mutated `Vec` reflects the number of bytes read. We also return + /// this number, and a value of 0 indicates the end of the stream has + /// been reached. + type Output = usize; + + #[inline] + fn parts_mut(&mut self) -> (*mut T, usize) { + let spare = self.0.spare_capacity_mut(); + (spare.as_mut_ptr().cast(), spare.len()) + } + + #[inline] + unsafe fn assume_init(self, len: usize) -> Self::Output { + // We initialized `len` elements; extend the `Vec` to include them. + self.0.set_len(self.0.len() + len); + len + } +} + +mod private { + pub trait Sealed { + /// The result of the process operation. + type Output; + + /// Return a pointer and length for this buffer. + /// + /// The length is the number of elements of type `T`, not a number of + /// bytes. + /// + /// It's tempting to have this return `&mut [MaybeUninit]` instead, + /// however that would require this function to be `unsafe`, because + /// callers could use the `&mut [MaybeUninit]` slice to set elements + /// to `MaybeUninit::::uninit()`, which would be a problem if `Self` + /// is `&mut [T]` or similar. + fn parts_mut(&mut self) -> (*mut T, usize); + + /// Convert a finished buffer pointer into its result. + /// + /// # Safety + /// + /// At least `len` elements of the buffer must now be initialized. + #[must_use] + unsafe fn assume_init(self, len: usize) -> Self::Output; + } +} + +#[cfg(test)] +mod tests { + #[allow(unused_imports)] + use super::*; + + #[cfg(not(windows))] + #[test] + fn test_compilation() { + use crate::io::read; + use core::mem::MaybeUninit; + + // We need to obtain input stream, so open our own source file. + let input = std::fs::File::open("src/buffer.rs").unwrap(); + + let mut buf = vec![0_u8; 3]; + buf.reserve(32); + let _x: usize = read(&input, spare_capacity(&mut buf)).unwrap(); + let _x: (&mut [u8], &mut [MaybeUninit]) = + read(&input, buf.spare_capacity_mut()).unwrap(); + let _x: usize = read(&input, &mut buf).unwrap(); + let _x: usize = read(&input, &mut *buf).unwrap(); + let _x: usize = read(&input, &mut buf[..]).unwrap(); + let _x: usize = read(&input, &mut (*buf)[..]).unwrap(); + + let mut buf = [0, 0, 0]; + let _x: usize = read(&input, &mut buf).unwrap(); + let _x: usize = read(&input, &mut buf[..]).unwrap(); + + let mut buf = [ + MaybeUninit::uninit(), + MaybeUninit::uninit(), + MaybeUninit::uninit(), + ]; + let _x: (&mut [u8], &mut [MaybeUninit]) = read(&input, &mut buf).unwrap(); + let _x: (&mut [u8], &mut [MaybeUninit]) = read(&input, &mut buf[..]).unwrap(); + + let mut buf = vec![ + MaybeUninit::uninit(), + MaybeUninit::uninit(), + MaybeUninit::uninit(), + ]; + let _x: (&mut [u8], &mut [MaybeUninit]) = read(&input, &mut buf).unwrap(); + let _x: (&mut [u8], &mut [MaybeUninit]) = read(&input, &mut buf[..]).unwrap(); + } + + #[cfg(not(windows))] + #[test] + fn test_slice() { + use crate::io::read; + use std::io::{Seek, SeekFrom}; + + // We need to obtain input stream with contents that we can compare + // against, so open our own source file. + let mut input = std::fs::File::open("src/buffer.rs").unwrap(); + + let mut buf = [0_u8; 64]; + let nread = read(&input, &mut buf).unwrap(); + assert_eq!(nread, buf.len()); + assert_eq!( + &buf[..58], + b"//! Utilities for functions that return data via buffers.\n" + ); + input.seek(SeekFrom::End(-1)).unwrap(); + let nread = read(&input, &mut buf).unwrap(); + assert_eq!(nread, 1); + input.seek(SeekFrom::End(0)).unwrap(); + let nread = read(&input, &mut buf).unwrap(); + assert_eq!(nread, 0); + } + + #[cfg(not(windows))] + #[test] + fn test_slice_uninit() { + use crate::io::read; + use core::mem::MaybeUninit; + use std::io::{Seek, SeekFrom}; + + // We need to obtain input stream with contents that we can compare + // against, so open our own source file. + let mut input = std::fs::File::open("src/buffer.rs").unwrap(); + + let mut buf = [MaybeUninit::::uninit(); 64]; + let (init, uninit) = read(&input, &mut buf).unwrap(); + assert_eq!(uninit.len(), 0); + assert_eq!( + &init[..58], + b"//! Utilities for functions that return data via buffers.\n" + ); + assert_eq!(init.len(), buf.len()); + assert_eq!( + unsafe { core::mem::transmute::<&mut [MaybeUninit], &mut [u8]>(&mut buf[..58]) }, + b"//! Utilities for functions that return data via buffers.\n" + ); + input.seek(SeekFrom::End(-1)).unwrap(); + let (init, uninit) = read(&input, &mut buf).unwrap(); + assert_eq!(init.len(), 1); + assert_eq!(uninit.len(), buf.len() - 1); + input.seek(SeekFrom::End(0)).unwrap(); + let (init, uninit) = read(&input, &mut buf).unwrap(); + assert_eq!(init.len(), 0); + assert_eq!(uninit.len(), buf.len()); + } + + #[cfg(not(windows))] + #[test] + fn test_spare_capacity() { + use crate::io::read; + use std::io::{Seek, SeekFrom}; + + // We need to obtain input stream with contents that we can compare + // against, so open our own source file. + let mut input = std::fs::File::open("src/buffer.rs").unwrap(); + + let mut buf = Vec::with_capacity(64); + let nread = read(&input, spare_capacity(&mut buf)).unwrap(); + assert_eq!(nread, buf.capacity()); + assert_eq!(nread, buf.len()); + assert_eq!( + &buf[..58], + b"//! Utilities for functions that return data via buffers.\n" + ); + buf.clear(); + input.seek(SeekFrom::End(-1)).unwrap(); + let nread = read(&input, spare_capacity(&mut buf)).unwrap(); + assert_eq!(nread, 1); + assert_eq!(buf.len(), 1); + buf.clear(); + input.seek(SeekFrom::End(0)).unwrap(); + let nread = read(&input, spare_capacity(&mut buf)).unwrap(); + assert_eq!(nread, 0); + assert!(buf.is_empty()); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/check_types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/check_types.rs new file mode 100644 index 0000000000000000000000000000000000000000..fb7e7a286b07992a8452855ee67bbe9082949aea --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/check_types.rs @@ -0,0 +1,135 @@ +//! Macros for checking that types have the same layout as other types. + +#![allow(unused_macros)] + +/// Check that the size and alignment of a type match the `sys` bindings. +macro_rules! check_type { + ($struct:ident) => { + assert_eq_size!($struct, c::$struct); + assert_eq_align!($struct, c::$struct); + }; +} + +/// The same as `check_type`, but for unions and anonymous structs we've +/// renamed to avoid having types like `bindgen_ty_1` in the API. +macro_rules! check_renamed_type { + ($to:ident, $from:ident) => { + assert_eq_size!($to, c::$from); + assert_eq_align!($to, c::$from); + }; +} + +/// Check that the field of a struct has the same offset as the corresponding +/// field in the `sys` bindings. +macro_rules! check_struct_field { + ($struct:ident, $field:ident) => { + const_assert_eq!( + memoffset::offset_of!($struct, $field), + memoffset::offset_of!(c::$struct, $field) + ); + + // This can't use `const_assert_eq` because `span_of` returns a + // `Range`, which can't be compared in const contexts. + assert_eq!( + memoffset::span_of!($struct, $field), + memoffset::span_of!(c::$struct, $field) + ); + }; +} + +/// The same as `check_struct_field`, but for unions and anonymous structs +/// we've renamed to avoid having types like `bindgen_ty_1` in the API. +macro_rules! check_struct_renamed_field { + ($struct:ident, $to:ident, $from:ident) => { + const_assert_eq!( + memoffset::offset_of!($struct, $to), + memoffset::offset_of!(c::$struct, $from) + ); + + // As above, this can't use `const_assert_eq`. + assert_eq!( + memoffset::span_of!($struct, $to), + memoffset::span_of!(c::$struct, $from) + ); + }; +} + +/// The same as `check_struct_field`, but for when the struct is renamed +/// but the field is not. +macro_rules! check_renamed_struct_field { + ($to_struct:ident, $from_struct:ident, $field:ident) => { + const_assert_eq!( + memoffset::offset_of!($to_struct, $field), + memoffset::offset_of!(c::$from_struct, $field) + ); + + // As above, this can't use `const_assert_eq`. + assert_eq!( + memoffset::span_of!($to_struct, $field), + memoffset::span_of!(c::$from_struct, $field) + ); + }; +} + +/// The same as `check_struct_renamed_field`, but for when both the struct and +/// a field are renamed. +macro_rules! check_renamed_struct_renamed_field { + ($to_struct:ident, $from_struct:ident, $to:ident, $from:ident) => { + const_assert_eq!( + memoffset::offset_of!($to_struct, $to), + memoffset::offset_of!(c::$from_struct, $from) + ); + + // As above, this can't use `const_assert_eq`. + assert_eq!( + memoffset::span_of!($to_struct, $to), + memoffset::span_of!(c::$from_struct, $from) + ); + }; +} + +/// For the common case of no renaming, check all fields of a struct. +macro_rules! check_struct { + ($name:ident, $($field:ident),*) => { + // Check the size and alignment. + check_type!($name); + + // Check that we have all the fields. + if false { + #[allow(unreachable_code)] + let _test = $name { + $($field: panic!()),* + }; + #[allow(unreachable_code)] + let _test = c::$name { + $($field: panic!()),* + }; + } + + // Check that the fields have the right sizes and offsets. + $(check_struct_field!($name, $field));* + }; +} + +/// For the case of renaming, check all fields of a struct. +macro_rules! check_renamed_struct { + ($to_struct:ident, $from_struct:ident, $($field:ident),*) => { + // Check the size and alignment. + check_renamed_type!($to_struct, $from_struct); + + // Check that we have all the fields. + if false { + #[allow(unreachable_code)] + let _test = $to_struct { + $($field: panic!()),* + }; + #[allow(unreachable_code)] + let _test = c::$from_struct { + $($field: panic!()),* + }; + } + + // Check that the fields have the right sizes and offsets. + $(check_renamed_struct_field!($to_struct, $from_struct, $field));* + }; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/clockid.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/clockid.rs new file mode 100644 index 0000000000000000000000000000000000000000..d274380f25d37ee5199eff937ebedd09af40c39a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/clockid.rs @@ -0,0 +1,232 @@ +use crate::backend::c; +use crate::fd::BorrowedFd; +use crate::io; + +/// `CLOCK_*` constants for use with [`clock_gettime`]. +/// +/// These constants are always supported at runtime, so `clock_gettime` never +/// has to fail with `INVAL` due to an unsupported clock. See +/// [`DynamicClockId`] for a greater set of clocks, with the caveat that not +/// all of them are always supported. +/// +/// [`clock_gettime`]: crate::time::clock_gettime +#[cfg(not(any(apple, target_os = "wasi")))] +#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] +#[cfg_attr( + not(any(target_os = "aix", target_os = "cygwin", target_os = "dragonfly")), + repr(i32) +)] +#[cfg_attr(any(target_os = "cygwin", target_os = "dragonfly"), repr(u64))] +#[cfg_attr(target_os = "aix", repr(i64))] +#[non_exhaustive] +pub enum ClockId { + /// `CLOCK_REALTIME` + #[doc(alias = "CLOCK_REALTIME")] + Realtime = bitcast!(c::CLOCK_REALTIME), + + /// `CLOCK_MONOTONIC` + #[doc(alias = "CLOCK_MONOTONIC")] + Monotonic = bitcast!(c::CLOCK_MONOTONIC), + + /// `CLOCK_UPTIME` + /// + /// On FreeBSD, this is an alias for [`Self::Boottime`]. + /// + /// On OpenBSD, this differs from `Self::Boottime`; it only advances when + /// the system is not suspended. + /// + /// [`Self::Uptime`]: https://docs.rs/rustix/*/x86_64-unknown-freebsd/rustix/time/enum.ClockId.html#variant.Uptime + #[cfg(any(freebsdlike, target_os = "openbsd"))] + #[doc(alias = "CLOCK_UPTIME")] + Uptime = c::CLOCK_UPTIME, + + /// `CLOCK_PROCESS_CPUTIME_ID` + #[cfg(not(any( + solarish, + target_os = "horizon", + target_os = "netbsd", + target_os = "redox", + target_os = "vita" + )))] + #[doc(alias = "CLOCK_PROCESS_CPUTIME_ID")] + ProcessCPUTime = c::CLOCK_PROCESS_CPUTIME_ID, + + /// `CLOCK_THREAD_CPUTIME_ID` + #[cfg(not(any( + solarish, + target_os = "horizon", + target_os = "netbsd", + target_os = "redox", + target_os = "vita" + )))] + #[doc(alias = "CLOCK_THREAD_CPUTIME_ID")] + ThreadCPUTime = c::CLOCK_THREAD_CPUTIME_ID, + + /// `CLOCK_REALTIME_COARSE` + #[cfg(any(linux_kernel, target_os = "freebsd"))] + #[doc(alias = "CLOCK_REALTIME_COARSE")] + RealtimeCoarse = c::CLOCK_REALTIME_COARSE, + + /// `CLOCK_MONOTONIC_COARSE` + #[cfg(any(linux_kernel, target_os = "freebsd"))] + #[doc(alias = "CLOCK_MONOTONIC_COARSE")] + MonotonicCoarse = c::CLOCK_MONOTONIC_COARSE, + + /// `CLOCK_MONOTONIC_RAW` + #[cfg(linux_kernel)] + #[doc(alias = "CLOCK_MONOTONIC_RAW")] + MonotonicRaw = c::CLOCK_MONOTONIC_RAW, + + /// `CLOCK_REALTIME_ALARM` + #[cfg(linux_kernel)] + #[doc(alias = "CLOCK_REALTIME_ALARM")] + RealtimeAlarm = bitcast!(c::CLOCK_REALTIME_ALARM), + + /// `CLOCK_TAI`, available on Linux ≥ 3.10 + #[cfg(all(linux_kernel, feature = "linux_4_11"))] + #[doc(alias = "CLOCK_TAI")] + Tai = bitcast!(c::CLOCK_TAI), + + /// `CLOCK_BOOTTIME` + #[cfg(any(linux_kernel, target_os = "fuchsia", target_os = "openbsd"))] + #[doc(alias = "CLOCK_BOOTTIME")] + Boottime = bitcast!(c::CLOCK_BOOTTIME), + + /// `CLOCK_BOOTTIME_ALARM` + #[cfg(any(linux_kernel, target_os = "fuchsia"))] + #[doc(alias = "CLOCK_BOOTTIME_ALARM")] + BoottimeAlarm = bitcast!(c::CLOCK_BOOTTIME_ALARM), +} + +#[cfg(not(any(apple, target_os = "wasi")))] +impl TryFrom for ClockId { + type Error = io::Errno; + + fn try_from(value: c::clockid_t) -> Result { + match value { + c::CLOCK_REALTIME => Ok(ClockId::Realtime), + c::CLOCK_MONOTONIC => Ok(ClockId::Monotonic), + #[cfg(any(freebsdlike, target_os = "openbsd"))] + c::CLOCK_UPTIME => Ok(ClockId::Uptime), + #[cfg(not(any( + solarish, + target_os = "horizon", + target_os = "netbsd", + target_os = "redox", + target_os = "vita" + )))] + c::CLOCK_PROCESS_CPUTIME_ID => Ok(ClockId::ProcessCPUTime), + #[cfg(not(any( + solarish, + target_os = "horizon", + target_os = "netbsd", + target_os = "redox", + target_os = "vita" + )))] + c::CLOCK_THREAD_CPUTIME_ID => Ok(ClockId::ThreadCPUTime), + #[cfg(any(linux_kernel, target_os = "freebsd"))] + c::CLOCK_REALTIME_COARSE => Ok(ClockId::RealtimeCoarse), + #[cfg(any(linux_kernel, target_os = "freebsd"))] + c::CLOCK_MONOTONIC_COARSE => Ok(ClockId::MonotonicCoarse), + #[cfg(linux_kernel)] + c::CLOCK_MONOTONIC_RAW => Ok(ClockId::MonotonicRaw), + #[cfg(linux_kernel)] + c::CLOCK_REALTIME_ALARM => Ok(ClockId::RealtimeAlarm), + #[cfg(all(linux_kernel, feature = "linux_4_11"))] + c::CLOCK_TAI => Ok(ClockId::Tai), + #[cfg(any(linux_kernel, target_os = "fuchsia", target_os = "openbsd"))] + c::CLOCK_BOOTTIME => Ok(ClockId::Boottime), + #[cfg(any(linux_kernel, target_os = "fuchsia"))] + c::CLOCK_BOOTTIME_ALARM => Ok(ClockId::BoottimeAlarm), + _ => Err(io::Errno::RANGE), + } + } +} + +/// `CLOCK_*` constants for use with [`clock_gettime`]. +/// +/// These constants are always supported at runtime, so `clock_gettime` never +/// has to fail with `INVAL` due to an unsupported clock. See +/// [`DynamicClockId`] for a greater set of clocks, with the caveat that not +/// all of them are always supported. +/// +/// [`clock_gettime`]: crate::time::clock_gettime +#[cfg(apple)] +#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] +#[repr(u32)] +#[non_exhaustive] +pub enum ClockId { + /// `CLOCK_REALTIME` + #[doc(alias = "CLOCK_REALTIME")] + Realtime = c::CLOCK_REALTIME, + + /// `CLOCK_MONOTONIC` + #[doc(alias = "CLOCK_MONOTONIC")] + Monotonic = c::CLOCK_MONOTONIC, + + /// `CLOCK_PROCESS_CPUTIME_ID` + #[doc(alias = "CLOCK_PROCESS_CPUTIME_ID")] + ProcessCPUTime = c::CLOCK_PROCESS_CPUTIME_ID, + + /// `CLOCK_THREAD_CPUTIME_ID` + #[doc(alias = "CLOCK_THREAD_CPUTIME_ID")] + ThreadCPUTime = c::CLOCK_THREAD_CPUTIME_ID, +} + +#[cfg(apple)] +impl TryFrom for ClockId { + type Error = io::Errno; + + fn try_from(value: c::clockid_t) -> Result { + match value { + c::CLOCK_REALTIME => Ok(ClockId::Realtime), + c::CLOCK_MONOTONIC => Ok(ClockId::Monotonic), + c::CLOCK_PROCESS_CPUTIME_ID => Ok(ClockId::ProcessCPUTime), + c::CLOCK_THREAD_CPUTIME_ID => Ok(ClockId::ThreadCPUTime), + _ => Err(io::Errno::RANGE), + } + } +} + +/// `CLOCK_*` constants for use with [`clock_gettime_dynamic`]. +/// +/// These constants may be unsupported at runtime, depending on the OS version, +/// and `clock_gettime_dynamic` may fail with `INVAL`. See [`ClockId`] for +/// clocks which are always supported at runtime. +/// +/// [`clock_gettime_dynamic`]: crate::time::clock_gettime_dynamic +#[cfg(not(target_os = "wasi"))] +#[derive(Debug, Copy, Clone)] +#[non_exhaustive] +pub enum DynamicClockId<'a> { + /// `ClockId` values that are always supported at runtime. + Known(ClockId), + + /// Linux dynamic clocks. + Dynamic(BorrowedFd<'a>), + + /// `CLOCK_REALTIME_ALARM` + #[cfg(any(linux_kernel, target_os = "fuchsia"))] + #[doc(alias = "CLOCK_REALTIME_ALARM")] + RealtimeAlarm, + + /// `CLOCK_TAI`, available on Linux ≥ 3.10 + #[cfg(linux_kernel)] + #[doc(alias = "CLOCK_TAI")] + Tai, + + /// `CLOCK_BOOTTIME` + #[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "openbsd" + ))] + #[doc(alias = "CLOCK_BOOTTIME")] + Boottime, + + /// `CLOCK_BOOTTIME_ALARM` + #[cfg(any(linux_kernel, target_os = "fuchsia"))] + #[doc(alias = "CLOCK_BOOTTIME_ALARM")] + BoottimeAlarm, +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/cstr.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/cstr.rs new file mode 100644 index 0000000000000000000000000000000000000000..46cde2f8732b11ad50c4e831ecadddd720d9d3c7 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/cstr.rs @@ -0,0 +1,109 @@ +/// A macro for [`CStr`] literals. +/// +/// This can make passing string literals to rustix APIs more efficient, since +/// most underlying system calls with string arguments expect NUL-terminated +/// strings, and passing strings to rustix as `CStr`s means that rustix doesn't +/// need to copy them into a separate buffer to NUL-terminate them. +/// +/// In Rust ≥ 1.77, users can use [C-string literals] instead of this macro. +/// +/// [`CStr`]: crate::ffi::CStr +/// [C-string literals]: https://blog.rust-lang.org/2024/03/21/Rust-1.77.0.html#c-string-literals +/// +/// # Examples +/// +/// ``` +/// # #[cfg(feature = "fs")] +/// # fn main() -> rustix::io::Result<()> { +/// use rustix::cstr; +/// use rustix::fs::{statat, AtFlags, CWD}; +/// +/// let metadata = statat(CWD, cstr!("Cargo.toml"), AtFlags::empty())?; +/// # Ok(()) +/// # } +/// # #[cfg(not(feature = "fs"))] +/// # fn main() {} +/// ``` +#[allow(unused_macros)] +#[macro_export] +macro_rules! cstr { + ($str:literal) => {{ + // Check for NUL manually, to ensure safety. + // + // In release builds, with strings that don't contain NULs, this + // constant-folds away. + // + // We don't use std's `CStr::from_bytes_with_nul`; as of this writing, + // that function isn't defined as `#[inline]` in std and doesn't + // constant-fold away. + ::core::assert!( + !::core::iter::Iterator::any(&mut ::core::primitive::str::bytes($str), |b| b == b'\0'), + "cstr argument contains embedded NUL bytes", + ); + + #[allow(unsafe_code, unused_unsafe)] + { + // Now that we know the string doesn't have embedded NULs, we can + // call `from_bytes_with_nul_unchecked`, which as of this writing + // is defined as `#[inline]` and completely optimizes away. + // + // SAFETY: We have manually checked that the string does not + // contain embedded NULs above, and we append or own NUL terminator + // here. + unsafe { + $crate::ffi::CStr::from_bytes_with_nul_unchecked( + ::core::concat!($str, "\0").as_bytes(), + ) + } + } + }}; +} + +#[cfg(test)] +mod tests { + #[allow(unused_imports)] + use super::*; + + #[test] + fn test_cstr() { + use crate::ffi::CString; + use alloc::borrow::ToOwned as _; + assert_eq!(cstr!(""), &*CString::new("").unwrap()); + assert_eq!(cstr!("").to_owned(), CString::new("").unwrap()); + assert_eq!(cstr!("hello"), &*CString::new("hello").unwrap()); + assert_eq!(cstr!("hello").to_owned(), CString::new("hello").unwrap()); + } + + #[test] + #[should_panic] + fn test_invalid_cstr() { + let _ = cstr!("hello\0world"); + } + + #[test] + #[should_panic] + fn test_invalid_empty_cstr() { + let _ = cstr!("\0"); + } + + #[no_implicit_prelude] + mod hygiene { + #[allow(unused_macros)] + #[test] + fn macro_hygiene() { + macro_rules! assert { + ($($tt:tt)*) => { + ::core::panic!("cstr! called the wrong assert! macro"); + }; + } + macro_rules! concat { + ($($tt:tt)*) => {{ + let v: &str = ::core::panic!("cstr! called the wrong concat! macro"); + v + }}; + } + + let _ = cstr!("foo"); + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/event/epoll.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/event/epoll.rs new file mode 100644 index 0000000000000000000000000000000000000000..839f05de6074fad9ed1de9dea2c6564ea619d830 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/event/epoll.rs @@ -0,0 +1,347 @@ +//! Linux `epoll` support. +//! +//! # Examples +//! +//! ```no_run +//! # #[cfg(feature = "net")] +//! # fn main() -> std::io::Result<()> { +//! use rustix::buffer::spare_capacity; +//! use rustix::event::epoll; +//! use rustix::fd::AsFd; +//! use rustix::io::{ioctl_fionbio, read, write}; +//! use rustix::net::{ +//! accept, bind, listen, socket, AddressFamily, Ipv4Addr, SocketAddrV4, SocketType, +//! }; +//! use std::collections::HashMap; +//! use std::os::unix::io::AsRawFd; +//! +//! // Create a socket and listen on it. +//! let listen_sock = socket(AddressFamily::INET, SocketType::STREAM, None)?; +//! bind(&listen_sock, &SocketAddrV4::new(Ipv4Addr::LOCALHOST, 0))?; +//! listen(&listen_sock, 1)?; +//! +//! // Create an epoll object. Using `Owning` here means the epoll object will +//! // take ownership of the file descriptors registered with it. +//! let epoll = epoll::create(epoll::CreateFlags::CLOEXEC)?; +//! +//! // Register the socket with the epoll object. +//! epoll::add( +//! &epoll, +//! &listen_sock, +//! epoll::EventData::new_u64(1), +//! epoll::EventFlags::IN, +//! )?; +//! +//! // Keep track of the sockets we've opened. +//! let mut next_id = epoll::EventData::new_u64(2); +//! let mut sockets = HashMap::new(); +//! +//! // Process events. +//! let mut event_list = Vec::with_capacity(4); +//! loop { +//! epoll::wait(&epoll, spare_capacity(&mut event_list), None)?; +//! for event in event_list.drain(..) { +//! let target = event.data; +//! if target.u64() == 1 { +//! // Accept a new connection, set it to non-blocking, and +//! // register to be notified when it's ready to write to. +//! let conn_sock = accept(&listen_sock)?; +//! ioctl_fionbio(&conn_sock, true)?; +//! epoll::add( +//! &epoll, +//! &conn_sock, +//! next_id, +//! epoll::EventFlags::OUT | epoll::EventFlags::ET, +//! )?; +//! +//! // Keep track of the socket. +//! sockets.insert(next_id, conn_sock); +//! next_id = epoll::EventData::new_u64(next_id.u64() + 1); +//! } else { +//! // Write a message to the stream and then unregister it. +//! let target = sockets.remove(&target).unwrap(); +//! write(&target, b"hello\n")?; +//! let _ = epoll::delete(&epoll, &target)?; +//! } +//! } +//! } +//! # } +//! # #[cfg(not(feature = "net"))] +//! # fn main() {} +//! ``` + +#![allow(unsafe_code)] +#![allow(unused_qualifications)] + +use super::epoll; +pub use crate::backend::event::epoll::*; +use crate::backend::event::syscalls; +use crate::buffer::Buffer; +use crate::fd::{AsFd, OwnedFd}; +use crate::io; +use crate::timespec::Timespec; +use core::ffi::c_void; +use core::hash::{Hash, Hasher}; + +/// `epoll_create1(flags)`—Creates a new epoll object. +/// +/// Use the [`epoll::CreateFlags::CLOEXEC`] flag to prevent the resulting file +/// descriptor from being implicitly passed across `exec` boundaries. +/// +/// # References +/// - [Linux] +/// - [illumos] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/epoll_create.2.html +/// [illumos]: https://www.illumos.org/man/3C/epoll_create +#[inline] +#[doc(alias = "epoll_create1")] +pub fn create(flags: epoll::CreateFlags) -> io::Result { + syscalls::epoll_create(flags) +} + +/// `epoll_ctl(self, EPOLL_CTL_ADD, data, event)`—Adds an element to an epoll +/// object. +/// +/// This registers interest in any of the events set in `event_flags` occurring +/// on the file descriptor associated with `data`. +/// +/// `close`ing a file descriptor does not necessarily unregister interest which +/// can lead to spurious events being returned from [`epoll::wait`]. If a file +/// descriptor is an `Arc`, then `epoll` can be thought to +/// maintain a `Weak` to the file descriptor. Check the +/// [faq] for details. +/// +/// # References +/// - [Linux] +/// - [illumos] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/epoll_ctl.2.html +/// [illumos]: https://www.illumos.org/man/3C/epoll_ctl +/// [faq]: https://man7.org/linux/man-pages/man7/epoll.7.html#:~:text=Will%20closing%20a%20file%20descriptor%20cause%20it%20to%20be%20removed%20from%20all%0A%20%20%20%20%20%20%20%20%20%20epoll%20interest%20lists%3F +#[doc(alias = "epoll_ctl")] +#[inline] +pub fn add( + epoll: EpollFd, + source: SourceFd, + data: epoll::EventData, + event_flags: epoll::EventFlags, +) -> io::Result<()> { + syscalls::epoll_add( + epoll.as_fd(), + source.as_fd(), + &Event { + flags: event_flags, + data, + #[cfg(all(libc, target_os = "redox"))] + _pad: 0, + }, + ) +} + +/// `epoll_ctl(self, EPOLL_CTL_MOD, target, event)`—Modifies an element in a +/// given epoll object. +/// +/// This sets the events of interest with `target` to `events`. +/// +/// # References +/// - [Linux] +/// - [illumos] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/epoll_ctl.2.html +/// [illumos]: https://www.illumos.org/man/3C/epoll_ctl +#[doc(alias = "epoll_ctl")] +#[inline] +pub fn modify( + epoll: EpollFd, + source: SourceFd, + data: epoll::EventData, + event_flags: epoll::EventFlags, +) -> io::Result<()> { + syscalls::epoll_mod( + epoll.as_fd(), + source.as_fd(), + &Event { + flags: event_flags, + data, + #[cfg(all(libc, target_os = "redox"))] + _pad: 0, + }, + ) +} + +/// `epoll_ctl(self, EPOLL_CTL_DEL, target, NULL)`—Removes an element in a +/// given epoll object. +/// +/// # References +/// - [Linux] +/// - [illumos] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/epoll_ctl.2.html +/// [illumos]: https://www.illumos.org/man/3C/epoll_ctl +#[doc(alias = "epoll_ctl")] +#[inline] +pub fn delete(epoll: EpollFd, source: SourceFd) -> io::Result<()> { + syscalls::epoll_del(epoll.as_fd(), source.as_fd()) +} + +/// `epoll_wait(self, events, timeout)`—Waits for registered events of +/// interest. +/// +/// For each event of interest, an element is written to `events`. +/// +/// Linux versions older than 5.11 (those that don't support `epoll_pwait2`) +/// don't support timeouts greater than `c_int::MAX` milliseconds; if an +/// unsupported timeout is passed, this function fails with +/// [`io::Errno::INVAL`]. Enable the "linux_5_11" feature to enable the full +/// range of timeouts. +/// +/// # References +/// - [Linux] +/// - [illumos] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/epoll_wait.2.html +/// [illumos]: https://www.illumos.org/man/3C/epoll_wait +#[doc(alias = "epoll_wait")] +#[inline] +pub fn wait>( + epoll: EpollFd, + mut event_list: Buf, + timeout: Option<&Timespec>, +) -> io::Result { + // SAFETY: `epoll_wait` behaves. + let nfds = unsafe { syscalls::epoll_wait(epoll.as_fd(), event_list.parts_mut(), timeout)? }; + // SAFETY: `epoll_wait` behaves. + unsafe { Ok(event_list.assume_init(nfds)) } +} + +/// A record of an event that occurred. +#[repr(C)] +#[cfg_attr(all(not(libc), target_arch = "x86_64"), repr(packed))] +#[cfg_attr( + all( + libc, + linux_kernel, + any( + all( + target_arch = "x86", + not(target_env = "musl"), + not(target_os = "android"), + ), + target_arch = "x86_64", + ) + ), + repr(packed) +)] +#[cfg_attr( + all(solarish, any(target_arch = "x86", target_arch = "x86_64")), + repr(packed(4)) +)] +#[derive(Copy, Clone, Eq, PartialEq, Hash)] +pub struct Event { + /// Which specific event(s) occurred. + pub flags: EventFlags, + /// User data. + pub data: EventData, + + #[cfg(all(libc, target_os = "redox"))] + _pad: u64, +} + +/// Data associated with an [`epoll::Event`]. This can either be a 64-bit +/// integer value or a pointer which preserves pointer provenance. +#[repr(C)] +#[derive(Copy, Clone)] +pub union EventData { + /// A 64-bit integer value. + as_u64: u64, + + /// A `*mut c_void` which preserves pointer provenance, extended to be + /// 64-bit so that if we read the value as a `u64` union field, we don't + /// get uninitialized memory. + sixty_four_bit_pointer: SixtyFourBitPointer, +} + +impl EventData { + /// Construct a new value containing a `u64`. + #[inline] + pub const fn new_u64(value: u64) -> Self { + Self { as_u64: value } + } + + /// Construct a new value containing a `*mut c_void`. + #[inline] + pub const fn new_ptr(value: *mut c_void) -> Self { + Self { + sixty_four_bit_pointer: SixtyFourBitPointer { + pointer: value, + #[cfg(target_pointer_width = "32")] + _padding: 0, + }, + } + } + + /// Return the value as a `u64`. + /// + /// If the stored value was a pointer, the pointer is zero-extended to a + /// `u64`. + #[inline] + pub fn u64(self) -> u64 { + unsafe { self.as_u64 } + } + + /// Return the value as a `*mut c_void`. + /// + /// If the stored value was a `u64`, the least-significant bits of the + /// `u64` are returned as a pointer value. + #[inline] + pub fn ptr(self) -> *mut c_void { + unsafe { self.sixty_four_bit_pointer.pointer } + } +} + +impl PartialEq for EventData { + #[inline] + fn eq(&self, other: &Self) -> bool { + self.u64() == other.u64() + } +} + +impl Eq for EventData {} + +impl Hash for EventData { + #[inline] + fn hash(&self, state: &mut H) { + self.u64().hash(state) + } +} + +#[repr(C)] +#[derive(Copy, Clone)] +struct SixtyFourBitPointer { + #[cfg(target_endian = "big")] + #[cfg(target_pointer_width = "32")] + _padding: u32, + + pointer: *mut c_void, + + #[cfg(target_endian = "little")] + #[cfg(target_pointer_width = "32")] + _padding: u32, +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::backend::c; + + #[test] + fn test_epoll_layouts() { + check_renamed_type!(Event, epoll_event); + check_renamed_struct_renamed_field!(Event, epoll_event, flags, events); + #[cfg(libc)] + check_renamed_struct_renamed_field!(Event, epoll_event, data, u64); + #[cfg(not(libc))] + check_renamed_struct_renamed_field!(Event, epoll_event, data, data); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/event/eventfd.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/event/eventfd.rs new file mode 100644 index 0000000000000000000000000000000000000000..a76f2cfcff9bbee4a52050d617d94420e83e1ade --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/event/eventfd.rs @@ -0,0 +1,20 @@ +use crate::fd::OwnedFd; +use crate::{backend, io}; + +pub use backend::event::types::EventfdFlags; + +/// `eventfd(initval, flags)`—Creates a file descriptor for event +/// notification. +/// +/// # References +/// - [Linux] +/// - [FreeBSD] +/// - [illumos] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/eventfd.2.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?eventfd +/// [illumos]: https://illumos.org/man/3C/eventfd +#[inline] +pub fn eventfd(initval: u32, flags: EventfdFlags) -> io::Result { + backend::event::syscalls::eventfd(initval, flags) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/event/kqueue.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/event/kqueue.rs new file mode 100644 index 0000000000000000000000000000000000000000..897d93980e3052f5906ad722b2ea905cff45c21c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/event/kqueue.rs @@ -0,0 +1,466 @@ +//! An API for interfacing with `kqueue`. + +use crate::buffer::Buffer; +use crate::fd::{AsFd, OwnedFd, RawFd}; +use crate::pid::Pid; +use crate::signal::Signal; +use crate::timespec::Timespec; +use crate::{backend, io}; + +use backend::c::{self, intptr_t, kevent as kevent_t, uintptr_t}; +use backend::event::syscalls; + +use core::mem::zeroed; +use core::time::Duration; + +/// A `kqueue` event for use with [`kevent`]. +#[repr(transparent)] +#[derive(Copy, Clone)] +pub struct Event { + // The layout varies between BSDs and macOS. + inner: kevent_t, +} + +impl Event { + /// Create a new `Event`. + #[allow(clippy::needless_update)] + pub fn new(filter: EventFilter, flags: EventFlags, udata: *mut c::c_void) -> Event { + let (ident, data, filter, fflags) = match filter { + EventFilter::Read(fd) => (fd as uintptr_t, 0, c::EVFILT_READ, 0), + EventFilter::Write(fd) => (fd as _, 0, c::EVFILT_WRITE, 0), + #[cfg(target_os = "freebsd")] + EventFilter::Empty(fd) => (fd as _, 0, c::EVFILT_EMPTY, 0), + EventFilter::Vnode { vnode, flags } => (vnode as _, 0, c::EVFILT_VNODE, flags.bits()), + EventFilter::Proc { pid, flags } => { + (Pid::as_raw(Some(pid)) as _, 0, c::EVFILT_PROC, flags.bits()) + } + EventFilter::Signal { signal, times: _ } => { + (signal.as_raw() as _, 0, c::EVFILT_SIGNAL, 0) + } + EventFilter::Timer { ident, timer } => { + #[cfg(any(apple, target_os = "freebsd", target_os = "netbsd"))] + let (data, fflags) = match timer { + Some(timer) => { + if timer.subsec_millis() == 0 { + (timer.as_secs() as _, c::NOTE_SECONDS) + } else if timer.subsec_nanos() == 0 { + (timer.as_micros() as _, c::NOTE_USECONDS) + } else { + (timer.as_nanos() as _, c::NOTE_NSECONDS) + } + } + None => (intptr_t::MAX, c::NOTE_SECONDS), + }; + #[cfg(any(target_os = "dragonfly", target_os = "openbsd"))] + let (data, fflags) = match timer { + Some(timer) => (timer.as_millis() as _, 0), + None => (intptr_t::MAX, 0), + }; + + (ident as _, data, c::EVFILT_TIMER, fflags) + } + #[cfg(any(apple, freebsdlike))] + EventFilter::User { + ident, + flags, + user_flags, + } => (ident as _, 0, c::EVFILT_USER, flags.bits() | user_flags.0), + EventFilter::Unknown => panic!("unknown filter"), + }; + + Event { + inner: kevent_t { + ident, + filter: filter as _, + flags: flags.bits() as _, + fflags, + data: { + // On OpenBSD, data is an `i64` and not an `isize`. + data as _ + }, + udata: { + // On NetBSD, udata is an `isize` and not a pointer. + udata as _ + }, + ..unsafe { zeroed() } + }, + } + } + + /// Get the event flags for this event. + pub fn flags(&self) -> EventFlags { + EventFlags::from_bits_retain(self.inner.flags as _) + } + + /// Get the user data for this event. + pub fn udata(&self) -> *mut c::c_void { + // On NetBSD, udata is an isize and not a pointer. + self.inner.udata as _ + } + + /// Get the raw data for this event. + pub fn data(&self) -> i64 { + // On some BSDs, data is an `isize` and not an `i64`. + self.inner.data as _ + } + + /// Get the filter of this event. + pub fn filter(&self) -> EventFilter { + match self.inner.filter as _ { + c::EVFILT_READ => EventFilter::Read(self.inner.ident as _), + c::EVFILT_WRITE => EventFilter::Write(self.inner.ident as _), + #[cfg(target_os = "freebsd")] + c::EVFILT_EMPTY => EventFilter::Empty(self.inner.ident as _), + c::EVFILT_VNODE => EventFilter::Vnode { + vnode: self.inner.ident as _, + flags: VnodeEvents::from_bits_retain(self.inner.fflags), + }, + c::EVFILT_PROC => EventFilter::Proc { + pid: Pid::from_raw(self.inner.ident as _).unwrap(), + flags: ProcessEvents::from_bits_retain(self.inner.fflags), + }, + c::EVFILT_SIGNAL => EventFilter::Signal { + // SAFETY: `EventFilter::new` requires a valid `Signal`. + signal: unsafe { Signal::from_raw_unchecked(self.inner.ident as _) }, + times: self.inner.data as _, + }, + c::EVFILT_TIMER => EventFilter::Timer { + ident: self.inner.ident as _, + timer: { + let (data, fflags) = (self.inner.data, self.inner.fflags); + #[cfg(not(any(apple, target_os = "freebsd", target_os = "netbsd")))] + let _ = fflags; + #[cfg(any(apple, target_os = "freebsd", target_os = "netbsd"))] + match fflags as _ { + c::NOTE_SECONDS => Some(Duration::from_secs(data as _)), + c::NOTE_USECONDS => Some(Duration::from_micros(data as _)), + c::NOTE_NSECONDS => Some(Duration::from_nanos(data as _)), + _ => { + // Unknown timer flags. + None + } + } + #[cfg(any(target_os = "dragonfly", target_os = "openbsd"))] + Some(Duration::from_millis(data as _)) + }, + }, + #[cfg(any(apple, freebsdlike))] + c::EVFILT_USER => EventFilter::User { + ident: self.inner.ident as _, + flags: UserFlags::from_bits_retain(self.inner.fflags), + user_flags: UserDefinedFlags(self.inner.fflags & EVFILT_USER_FLAGS), + }, + _ => EventFilter::Unknown, + } + } +} + +/// Bottom 24 bits of a `u32`. +#[cfg(any(apple, freebsdlike))] +const EVFILT_USER_FLAGS: u32 = 0x00ff_ffff; + +/// The possible filters for a `kqueue`. +#[repr(i16)] +#[non_exhaustive] +pub enum EventFilter { + /// A read filter. + Read(RawFd), + + /// A write filter. + Write(RawFd), + + /// An empty filter. + #[cfg(target_os = "freebsd")] + Empty(RawFd), + + /// A VNode filter. + Vnode { + /// The file descriptor we looked for events in. + vnode: RawFd, + + /// The flags for this event. + flags: VnodeEvents, + }, + + /// A process filter. + Proc { + /// The process ID we waited on. + pid: Pid, + + /// The flags for this event. + flags: ProcessEvents, + }, + + /// A signal filter. + Signal { + /// The signal number we waited on. + signal: Signal, + + /// The number of times the signal has been received since the last + /// call to kevent. + times: usize, + }, + + /// A timer filter. + Timer { + /// The identifier for this event. + ident: intptr_t, + + /// The duration for this event. + timer: Option, + }, + + /// A user filter. + #[cfg(any(apple, freebsdlike))] + User { + /// The identifier for this event. + ident: intptr_t, + + /// The flags for this event. + flags: UserFlags, + + /// The user-defined flags for this event. + user_flags: UserDefinedFlags, + }, + + /// This filter is unknown. + /// + /// # Panics + /// + /// Passing this into `Event::new()` will result in a panic. + Unknown, +} + +bitflags::bitflags! { + /// The flags for a `kqueue` event specifying actions to perform. + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct EventFlags: u16 { + /// Add the event to the `kqueue`. + const ADD = c::EV_ADD as _; + + /// Enable the event. + const ENABLE = c::EV_ENABLE as _; + + /// Disable the event. + const DISABLE = c::EV_DISABLE as _; + + /// Delete the event from the `kqueue`. + const DELETE = c::EV_DELETE as _; + + /// TODO + const RECEIPT = c::EV_RECEIPT as _; + + /// Clear the event after it is triggered. + const ONESHOT = c::EV_ONESHOT as _; + + /// TODO + const CLEAR = c::EV_CLEAR as _; + + /// TODO + const EOF = c::EV_EOF as _; + + /// TODO + const ERROR = c::EV_ERROR as _; + + /// + const _ = !0; + } +} + +bitflags::bitflags! { + /// The flags for a virtual node event. + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct VnodeEvents: u32 { + /// The file was deleted. + const DELETE = c::NOTE_DELETE; + + /// The file was written to. + const WRITE = c::NOTE_WRITE; + + /// The file was extended. + const EXTEND = c::NOTE_EXTEND; + + /// The file had its attributes changed. + const ATTRIBUTES = c::NOTE_ATTRIB; + + /// The file was renamed. + const RENAME = c::NOTE_RENAME; + + /// Access to the file was revoked. + const REVOKE = c::NOTE_REVOKE; + + /// The link count of the file has changed. + const LINK = c::NOTE_LINK; + + /// + const _ = !0; + } +} + +bitflags::bitflags! { + /// The flags for a process event. + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct ProcessEvents: u32 { + /// The process exited. + const EXIT = c::NOTE_EXIT; + + /// The process forked itself. + const FORK = c::NOTE_FORK; + + /// The process executed a new process. + const EXEC = c::NOTE_EXEC; + + /// Follow the process through `fork` calls (write only). + const TRACK = c::NOTE_TRACK; + + /// An error has occurred with following the process. + const TRACKERR = c::NOTE_TRACKERR; + + /// + const _ = !0; + } +} + +#[cfg(any(apple, freebsdlike))] +bitflags::bitflags! { + /// The flags for a user event. + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct UserFlags: u32 { + /// Ignore the user input flags. + #[doc(alias = "NOP")] + const NOINPUT = c::NOTE_FFNOP; + + /// Bitwise AND `fflags`. + const AND = c::NOTE_FFAND; + + /// Bitwise OR `fflags`. + const OR = c::NOTE_FFOR; + + /// Copy `fflags`. + const COPY = c::NOTE_FFCOPY; + + /// Control mask for operations. + const CTRLMASK = c::NOTE_FFCTRLMASK; + + /// User defined flags for masks. + const UDFMASK = c::NOTE_FFLAGSMASK; + + /// Trigger the event. + const TRIGGER = c::NOTE_TRIGGER; + + /// + const _ = !0; + } +} + +/// User-defined flags. +/// +/// Only the lower 24 bits are used in this struct. +#[repr(transparent)] +#[cfg(any(apple, freebsdlike))] +#[derive(Clone, Copy, Debug, Eq, PartialEq)] +pub struct UserDefinedFlags(u32); + +#[cfg(any(apple, freebsdlike))] +impl UserDefinedFlags { + /// Create a new `UserDefinedFlags` from a `u32`. + pub fn new(flags: u32) -> Self { + Self(flags & EVFILT_USER_FLAGS) + } + + /// Get the underlying `u32`. + pub fn get(self) -> u32 { + self.0 + } +} + +/// `kqueue()`—Create a new `kqueue` file descriptor. +/// +/// # References +/// - [Apple] +/// - [FreeBSD] +/// - [OpenBSD] +/// - [NetBSD] +/// - [DragonFly BSD] +/// +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/kqueue.2.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=kqueue&sektion=2 +/// [OpenBSD]: https://man.openbsd.org/kqueue.2 +/// [NetBSD]: https://man.netbsd.org/kqueue.2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=kqueue§ion=2 +pub fn kqueue() -> io::Result { + syscalls::kqueue() +} + +/// `kevent(kqueue, changelist, eventlist, timeout)`—Wait for events on a +/// `kqueue`. +/// +/// If an unsupported timeout is passed, this function fails with +/// [`io::Errno::INVAL`]. +/// +/// # Safety +/// +/// The file descriptors referred to by the `Event` structs must be valid for +/// the lifetime of the `kqueue` file descriptor. +/// +/// # References +/// - [Apple] +/// - [FreeBSD] +/// - [OpenBSD] +/// - [NetBSD] +/// - [DragonFly BSD] +/// +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/kevent.2.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=kevent&sektion=2 +/// [OpenBSD]: https://man.openbsd.org/kevent.2 +/// [NetBSD]: https://man.netbsd.org/kevent.2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=kevent§ion=2 +pub unsafe fn kevent_timespec>( + kqueue: Fd, + changelist: &[Event], + mut eventlist: Buf, + timeout: Option<&Timespec>, +) -> io::Result { + // Populate the event list with events. + let len = syscalls::kevent(kqueue.as_fd(), changelist, eventlist.parts_mut(), timeout) + .map(|res| res as _)?; + + Ok(eventlist.assume_init(len)) +} + +/// `kevent(kqueue, changelist, eventlist, timeout)`—Wait for events on a +/// `kqueue`. +/// +/// This is a wrapper around [`kevent_timespec`] which takes a `Duration` +/// instead of a `Timespec` for the timemout value. `Timespec` has a signed +/// `i64` seconds field; if converting `Duration` to `Timespec` overflows, +/// `None` is passed as the timeout instead, such such a large timeout would +/// be effectively infinite in practice. +/// +/// # Safety +/// +/// The file descriptors referred to by the `Event` structs must be valid for +/// the lifetime of the `kqueue` file descriptor. +pub unsafe fn kevent>( + kqueue: Fd, + changelist: &[Event], + eventlist: Buf, + timeout: Option, +) -> io::Result { + let timeout = match timeout { + Some(timeout) => match timeout.as_secs().try_into() { + Ok(tv_sec) => Some(Timespec { + tv_sec, + tv_nsec: timeout.subsec_nanos() as _, + }), + Err(_) => None, + }, + None => None, + }; + + kevent_timespec(kqueue, changelist, eventlist, timeout.as_ref()) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/event/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/event/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..29dfc22722eb1b94c51575a8552f6bb85455727c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/event/mod.rs @@ -0,0 +1,34 @@ +//! Event operations. + +#[cfg(any(linux_kernel, target_os = "illumos", target_os = "redox"))] +pub mod epoll; +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "illumos", + target_os = "espidf" +))] +mod eventfd; +#[cfg(bsd)] +pub mod kqueue; +#[cfg(not(any(windows, target_os = "redox", target_os = "wasi")))] +mod pause; +mod poll; +#[cfg(solarish)] +pub mod port; +#[cfg(any(bsd, linux_kernel, windows, target_os = "wasi"))] +mod select; + +pub use crate::timespec::{Nsecs, Secs, Timespec}; +#[cfg(any( + linux_kernel, + target_os = "freebsd", + target_os = "illumos", + target_os = "espidf" +))] +pub use eventfd::{eventfd, EventfdFlags}; +#[cfg(not(any(windows, target_os = "redox", target_os = "wasi")))] +pub use pause::*; +pub use poll::{poll, PollFd, PollFlags}; +#[cfg(any(bsd, linux_kernel, windows, target_os = "wasi"))] +pub use select::*; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/event/pause.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/event/pause.rs new file mode 100644 index 0000000000000000000000000000000000000000..411030119cbcbe06e12ae5e018015076a9c916e4 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/event/pause.rs @@ -0,0 +1,31 @@ +use crate::backend; + +/// `pause()`—Sleep until interrupted by a signal. +/// +/// The POSIX `pause` interface returns an error code, but the only thing +/// `pause` does is sleep until interrupted by a signal. If it were exposed in +/// the API here it would always return `Errno::INTR`, so for simplicity the +/// return value is omitted. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [Apple] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/pause.html +/// [Linux]: https://man7.org/linux/man-pages/man2/pause.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/pause.3.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=pause&sektion=3 +/// [NetBSD]: https://man.netbsd.org/pause.3 +/// [OpenBSD]: https://man.openbsd.org/pause.3 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=pause§ion=3 +/// [illumos]: https://illumos.org/man/2/pause +#[inline] +pub fn pause() { + backend::event::syscalls::pause() +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/event/poll.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/event/poll.rs new file mode 100644 index 0000000000000000000000000000000000000000..bf25fd5df97d3d8f85b95b714bc0251b6217b981 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/event/poll.rs @@ -0,0 +1,47 @@ +use crate::event::Timespec; +use crate::{backend, io}; + +pub use backend::event::poll_fd::{PollFd, PollFlags}; + +/// `poll(self.fds, timeout)`—Wait for events on lists of file descriptors. +/// +/// Some platforms (those that don't support `ppoll`) don't support timeouts +/// greater than `c_int::MAX` milliseconds; if an unsupported timeout is +/// passed, this function fails with [`io::Errno::INVAL`]. +/// +/// On macOS, `poll` doesn't work on fds for /dev/tty or /dev/null, however +/// [`select`] is available and does work on these fds. +/// +/// [`select`]: crate::event::select() +/// +/// This function does not use the [`Buffer`] trait because the `fds` list is +/// both an input and output buffer. +/// +/// [`Buffer`]: crate::buffer::Buffer +/// +/// # References +/// - [Beej's Guide to Network Programming] +/// - [POSIX] +/// - [Linux] +/// - [Apple] +/// - [Winsock] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// +/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/slightly-advanced-techniques.html#poll +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/poll.html +/// [Linux]: https://man7.org/linux/man-pages/man2/poll.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/poll.2.html +/// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsapoll +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=poll&sektion=2 +/// [NetBSD]: https://man.netbsd.org/poll.2 +/// [OpenBSD]: https://man.openbsd.org/poll.2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=poll§ion=2 +/// [illumos]: https://illumos.org/man/2/poll +#[inline] +pub fn poll(fds: &mut [PollFd<'_>], timeout: Option<&Timespec>) -> io::Result { + backend::event::syscalls::poll(fds, timeout) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/event/port.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/event/port.rs new file mode 100644 index 0000000000000000000000000000000000000000..7cc5f939e50efd8dbc64df566217b21fe8d4527f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/event/port.rs @@ -0,0 +1,197 @@ +//! Solaris/illumos event ports. +//! +//! # Examples +//! +//! ``` +//! # fn test() -> std::io::Result<()> { +//! use rustix::event::port; +//! use rustix::stdio::stdout; +//! use std::io; +//! +//! let some_fd = stdout(); +//! let some_userdata = 7 as *mut _; +//! +//! // Create a port. +//! let port = port::create()?; +//! +//! // Associate `some_fd` with the port. +//! unsafe { +//! port::associate_fd(&port, some_fd, port::PollFlags::IN, some_userdata)?; +//! } +//! +//! // Get a single event. +//! let event = port::get(&port, None)?; +//! +//! assert_eq!(event.userdata(), some_userdata); +//! # Ok(()) +//! # } +//! ``` + +use crate::backend::c; +use crate::backend::event::syscalls; +use crate::buffer::Buffer; +use crate::fd::{AsFd, AsRawFd, OwnedFd}; +use crate::timespec::Timespec; +use crate::{ffi, io}; + +pub use super::PollFlags; + +/// The structure representing a port event. +#[repr(transparent)] +#[doc(alias = "port_event")] +pub struct Event(pub(crate) c::port_event); + +impl Event { + /// Get the events associated with this event. + pub fn events(&self) -> i32 { + self.0.portev_events + } + + /// Get the event source associated with this event. + pub fn object(&self) -> usize { + self.0.portev_object + } + + /// Get the userdata associated with this event. + pub fn userdata(&self) -> *mut ffi::c_void { + self.0.portev_user + } +} + +/// `port_create()`—Creates a new port. +/// +/// # References +/// - [OpenSolaris] +/// - [illumos] +/// +/// [OpenSolaris]: https://www.unix.com/man-page/opensolaris/3C/port_create/ +/// [illumos]: https://illumos.org/man/3C/port_create +#[doc(alias = "port_create")] +pub fn create() -> io::Result { + syscalls::port_create() +} + +/// `port_associate(_, PORT_SOURCE_FD, _, _, _)`—Associates a file descriptor +/// with a port. +/// +/// # Safety +/// +/// Any `object`s passed into the `port` must be valid for the lifetime of the +/// `port`. Logically, `port` keeps a borrowed reference to the `object` until +/// it is removed via [`dissociate_fd`]. +/// +/// # References +/// - [OpenSolaris] +/// - [illumos] +/// +/// [OpenSolaris]: https://www.unix.com/man-page/opensolaris/3C/port_associate/ +/// [illumos]: https://illumos.org/man/3C/port_associate +#[doc(alias = "port_associate")] +pub unsafe fn associate_fd( + port: Fd, + object: RawFd, + events: PollFlags, + userdata: *mut ffi::c_void, +) -> io::Result<()> { + syscalls::port_associate( + port.as_fd(), + c::PORT_SOURCE_FD, + object.as_raw_fd() as _, + events.bits() as _, + userdata.cast(), + ) +} + +/// `port_dissociate(_, PORT_SOURCE_FD, _)`—Dissociates a file descriptor +/// from a port. +/// +/// # Safety +/// +/// The file descriptor passed into this function must have been previously +/// associated with the port via [`associate_fd`]. +/// +/// # References +/// - [OpenSolaris] +/// - [illumos] +/// +/// [OpenSolaris]: https://www.unix.com/man-page/opensolaris/3C/port_dissociate +/// [illumos]: https://illumos.org/man/3C/port_dissociate +#[doc(alias = "port_dissociate")] +pub unsafe fn dissociate_fd(port: Fd, object: RawFd) -> io::Result<()> { + syscalls::port_dissociate(port.as_fd(), c::PORT_SOURCE_FD, object.as_raw_fd() as _) +} + +/// `port_get(port, timeout)`—Gets an event from a port. +/// +/// If an unsupported timeout is passed, this function fails with +/// [`io::Errno::INVAL`]. +/// +/// # References +/// - [OpenSolaris] +/// - [illumos] +/// +/// [OpenSolaris]: https://www.unix.com/man-page/opensolaris/3C/port_get/ +/// [illumos]: https://illumos.org/man/3C/port_get +#[doc(alias = "port_get")] +pub fn get(port: Fd, timeout: Option<&Timespec>) -> io::Result { + syscalls::port_get(port.as_fd(), timeout) +} + +/// `port_getn(port, events, min_events, timeout)`—Gets multiple events from +/// a port. +/// +/// If `events` is empty, this does nothing and returns immediately. +/// +/// To query the number of events without retrieving any, use [`getn_query`]. +/// +/// If an unsupported timeout is passed, this function fails with +/// [`io::Errno::INVAL`]. +/// +/// # References +/// - [OpenSolaris] +/// - [illumos] +/// +/// [OpenSolaris]: https://www.unix.com/man-page/opensolaris/3C/port_getn/ +/// [illumos]: https://illumos.org/man/3C/port_getn +#[doc(alias = "port_getn")] +pub fn getn>( + port: Fd, + mut events: Buf, + min_events: u32, + timeout: Option<&Timespec>, +) -> io::Result { + // SAFETY: `port_getn` behaves. + let nevents = + unsafe { syscalls::port_getn(port.as_fd(), events.parts_mut(), min_events, timeout)? }; + // SAFETY: `port_getn` behaves. + unsafe { Ok(events.assume_init(nevents)) } +} + +/// `port_getn(port, NULL, 0, NULL)`—Queries the number of events +/// available from a port. +/// +/// To retrieve the events, use [`getn`]. +/// +/// # References +/// - [OpenSolaris] +/// - [illumos] +/// +/// [OpenSolaris]: https://www.unix.com/man-page/opensolaris/3C/port_getn/ +/// [illumos]: https://illumos.org/man/3C/port_getn +#[doc(alias = "port_getn")] +pub fn getn_query(port: Fd) -> io::Result { + syscalls::port_getn_query(port.as_fd()) +} + +/// `port_send(port, events, userdata)`—Sends an event to a port. +/// +/// # References +/// - [OpenSolaris] +/// - [illumos] +/// +/// [OpenSolaris]: https://www.unix.com/man-page/opensolaris/3C/port_send/ +/// [illumos]: https://illumos.org/man/3C/port_send +#[doc(alias = "port_send")] +pub fn send(port: Fd, events: i32, userdata: *mut ffi::c_void) -> io::Result<()> { + syscalls::port_send(port.as_fd(), events, userdata.cast()) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/event/select.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/event/select.rs new file mode 100644 index 0000000000000000000000000000000000000000..6bb93b5386862339c636d52adb127481a1eb0425 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/event/select.rs @@ -0,0 +1,391 @@ +//! The `select` function. +//! +//! # Safety +//! +//! `select` is unsafe due to I/O safety. +#![allow(unsafe_code)] + +#[cfg(any(linux_like, target_os = "wasi"))] +use crate::backend::c; +use crate::event::Timespec; +use crate::fd::RawFd; +use crate::{backend, io}; +#[cfg(any(windows, target_os = "wasi"))] +use core::mem::align_of; +use core::mem::size_of; + +/// wasi-libc's `fd_set` type. The libc bindings for it have private fields, so +/// we redeclare it for ourselves so that we can access the fields. They're +/// publicly exposed in wasi-libc. +#[cfg(target_os = "wasi")] +#[repr(C)] +struct FD_SET { + /// The wasi-libc headers call this `__nfds`. + fd_count: usize, + /// The wasi-libc headers call this `__fds`. + fd_array: [i32; c::FD_SETSIZE], +} + +#[cfg(windows)] +use windows_sys::Win32::Networking::WinSock::FD_SET; + +/// Storage element type for use with [`select`]. +#[cfg(all( + target_pointer_width = "64", + any(windows, target_os = "freebsd", target_os = "dragonfly") +))] +#[repr(transparent)] +#[derive(Copy, Clone, Default)] +pub struct FdSetElement(pub(crate) u64); + +/// Storage element type for use with [`select`]. +#[cfg(linux_like)] +#[repr(transparent)] +#[derive(Copy, Clone, Default)] +pub struct FdSetElement(pub(crate) c::c_ulong); + +/// Storage element type for use with [`select`]. +#[cfg(not(any( + linux_like, + target_os = "wasi", + all( + target_pointer_width = "64", + any(windows, target_os = "freebsd", target_os = "dragonfly") + ) +)))] +#[repr(transparent)] +#[derive(Copy, Clone, Default)] +pub struct FdSetElement(pub(crate) u32); + +/// Storage element type for use with [`select`]. +#[cfg(target_os = "wasi")] +#[repr(transparent)] +#[derive(Copy, Clone, Default)] +pub struct FdSetElement(pub(crate) usize); + +/// `select(nfds, readfds, writefds, exceptfds, timeout)`—Wait for events on +/// sets of file descriptors. +/// +/// `readfds`, `writefds`, `exceptfds` must point to arrays of `FdSetElement` +/// containing at least `nfds.div_ceil(size_of::())` elements. +/// +/// If an unsupported timeout is passed, this function fails with +/// [`io::Errno::INVAL`]. +/// +/// This `select` wrapper differs from POSIX in that `nfds` is not limited to +/// `FD_SETSIZE`. Instead of using the fixed-sized `fd_set` type, this function +/// takes raw pointers to arrays of `fd_set_num_elements(max_fd + 1, num_fds)`, +/// where `max_fd` is the maximum value of any fd that will be inserted into +/// the set, and `num_fds` is the maximum number of fds that will be inserted +/// into the set. +/// +/// In particular, on Apple platforms, this function behaves as if +/// `_DARWIN_UNLIMITED_SELECT` were predefined. +/// +/// On illumos, this function is not defined because the `select` function on +/// this platform always has an `FD_SETSIZE` limitation, following POSIX. This +/// platform's documentation recommends using [`poll`] instead. +/// +/// [`fd_set_insert`], [`fd_set_remove`], and [`FdSetIter`] are provided for +/// setting, clearing, and iterating with sets. +/// +/// [`poll`]: crate::event::poll() +/// +/// # Safety +/// +/// All fds in all the sets must correspond to open file descriptors. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [Apple] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [Winsock] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/select.html +/// [Linux]: https://man7.org/linux/man-pages/man2/select.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/select.2.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=select&sektion=2 +/// [NetBSD]: https://man.netbsd.org/select.2 +/// [OpenBSD]: https://man.openbsd.org/select.2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=select§ion=2 +/// [Winsock]: https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-select +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Waiting-for-I_002fO.html#index-select +pub unsafe fn select( + nfds: i32, + readfds: Option<&mut [FdSetElement]>, + writefds: Option<&mut [FdSetElement]>, + exceptfds: Option<&mut [FdSetElement]>, + timeout: Option<&Timespec>, +) -> io::Result { + backend::event::syscalls::select(nfds, readfds, writefds, exceptfds, timeout) +} + +#[cfg(not(any(windows, target_os = "wasi")))] +const BITS: usize = size_of::() * 8; + +/// Set `fd` in the set pointed to by `fds`. +#[doc(alias = "FD_SET")] +#[inline] +pub fn fd_set_insert(fds: &mut [FdSetElement], fd: RawFd) { + #[cfg(not(any(windows, target_os = "wasi")))] + { + let fd = fd as usize; + fds[fd / BITS].0 |= 1 << (fd % BITS); + } + + #[cfg(any(windows, target_os = "wasi"))] + { + let set = unsafe { &mut *fds.as_mut_ptr().cast::() }; + let fd_count = set.fd_count; + let fd_array = &set.fd_array[..fd_count as usize]; + + if !fd_array.contains(&(fd as _)) { + let fd_array = &mut set.fd_array[..fd_count as usize + 1]; + set.fd_count = fd_count + 1; + fd_array[fd_count as usize] = fd as _; + } + } +} + +/// Clear `fd` in the set pointed to by `fds`. +#[doc(alias = "FD_CLR")] +#[inline] +pub fn fd_set_remove(fds: &mut [FdSetElement], fd: RawFd) { + #[cfg(not(any(windows, target_os = "wasi")))] + { + let fd = fd as usize; + fds[fd / BITS].0 &= !(1 << (fd % BITS)); + } + + #[cfg(any(windows, target_os = "wasi"))] + { + let set = unsafe { &mut *fds.as_mut_ptr().cast::() }; + let fd_count = set.fd_count; + let fd_array = &set.fd_array[..fd_count as usize]; + + if let Some(pos) = fd_array.iter().position(|p| *p as RawFd == fd) { + set.fd_count = fd_count - 1; + set.fd_array[pos] = *set.fd_array.last().unwrap(); + } + } +} + +/// Compute the minimum `nfds` value needed for the set pointed to by `fds`. +#[inline] +pub fn fd_set_bound(fds: &[FdSetElement]) -> RawFd { + #[cfg(not(any(windows, target_os = "wasi")))] + { + if let Some(position) = fds.iter().rposition(|element| element.0 != 0) { + let element = fds[position].0; + (position * BITS + (BITS - element.leading_zeros() as usize)) as RawFd + } else { + 0 + } + } + + #[cfg(any(windows, target_os = "wasi"))] + { + let set = unsafe { &*fds.as_ptr().cast::() }; + let fd_count = set.fd_count; + let fd_array = &set.fd_array[..fd_count as usize]; + let mut max = 0; + for fd in fd_array { + if *fd >= max { + max = *fd + 1; + } + } + max as RawFd + } +} + +/// Compute the number of `FdSetElement`s needed to hold a set which can +/// contain up to `set_count` file descriptors with values less than `nfds`. +#[inline] +pub fn fd_set_num_elements(set_count: usize, nfds: RawFd) -> usize { + #[cfg(any(windows, target_os = "wasi"))] + { + let _ = nfds; + + fd_set_num_elements_for_fd_array(set_count) + } + + #[cfg(not(any(windows, target_os = "wasi")))] + { + let _ = set_count; + + fd_set_num_elements_for_bitvector(nfds) + } +} + +/// `fd_set_num_elements` implementation on platforms with fd array +/// implementations. +#[cfg(any(windows, target_os = "wasi"))] +#[inline] +pub(crate) fn fd_set_num_elements_for_fd_array(set_count: usize) -> usize { + // Ensure that we always have a big enough set to dereference an `FD_SET`. + core::cmp::max( + fd_set_num_elements_for_fd_array_raw(set_count), + div_ceil(size_of::(), size_of::()), + ) +} + +/// Compute the raw `fd_set_num_elements` value, before ensuring the value is +/// big enough to dereference an `FD_SET`. +#[cfg(any(windows, target_os = "wasi"))] +#[inline] +fn fd_set_num_elements_for_fd_array_raw(set_count: usize) -> usize { + // Allocate space for an `fd_count` field, plus `set_count` elements + // for the `fd_array` field. + div_ceil( + core::cmp::max(align_of::(), align_of::()) + set_count * size_of::(), + size_of::(), + ) +} + +/// `fd_set_num_elements` implementation on platforms with bitvector +/// implementations. +#[cfg(not(any(windows, target_os = "wasi")))] +#[inline] +pub(crate) fn fd_set_num_elements_for_bitvector(nfds: RawFd) -> usize { + // Allocate space for a dense bitvector for `nfds` bits. + let nfds = nfds as usize; + div_ceil(nfds, BITS) +} + +fn div_ceil(lhs: usize, rhs: usize) -> usize { + let d = lhs / rhs; + let r = lhs % rhs; + if r > 0 { + d + 1 + } else { + d + } +} + +/// An iterator over the fds in a set. +#[doc(alias = "FD_ISSET")] +#[cfg(not(any(windows, target_os = "wasi")))] +pub struct FdSetIter<'a> { + current: RawFd, + fds: &'a [FdSetElement], +} + +/// An iterator over the fds in a set. +#[doc(alias = "FD_ISSET")] +#[cfg(any(windows, target_os = "wasi"))] +pub struct FdSetIter<'a> { + current: usize, + fds: &'a [FdSetElement], +} + +impl<'a> FdSetIter<'a> { + /// Construct a `FdSetIter` for the given set. + pub fn new(fds: &'a [FdSetElement]) -> Self { + Self { current: 0, fds } + } +} + +#[cfg(not(any(windows, target_os = "wasi")))] +impl<'a> Iterator for FdSetIter<'a> { + type Item = RawFd; + + fn next(&mut self) -> Option { + if let Some(element) = self.fds.get(self.current as usize / BITS) { + // Test whether the current element has more bits set. + let shifted = element.0 >> ((self.current as usize % BITS) as u32); + if shifted != 0 { + let fd = self.current + shifted.trailing_zeros() as RawFd; + self.current = fd + 1; + return Some(fd); + } + + // Search through the array for the next element with bits set. + if let Some(index) = self.fds[(self.current as usize / BITS) + 1..] + .iter() + .position(|element| element.0 != 0) + { + let index = index + (self.current as usize / BITS) + 1; + let element = self.fds[index].0; + let fd = (index * BITS) as RawFd + element.trailing_zeros() as RawFd; + self.current = fd + 1; + return Some(fd); + } + } + None + } +} + +#[cfg(any(windows, target_os = "wasi"))] +impl<'a> Iterator for FdSetIter<'a> { + type Item = RawFd; + + fn next(&mut self) -> Option { + let current = self.current; + + let set = unsafe { &*self.fds.as_ptr().cast::() }; + let fd_count = set.fd_count; + let fd_array = &set.fd_array[..fd_count as usize]; + + if current == fd_count as usize { + return None; + } + let fd = fd_array[current as usize]; + self.current = current + 1; + Some(fd as RawFd) + } +} + +#[cfg(test)] +mod tests { + use super::*; + use core::mem::{align_of, size_of}; + + #[test] + #[cfg(any(windows, target_os = "wasi"))] + fn layouts() { + // The `FdSetElement` array should be suitably aligned. + assert_eq!(align_of::(), align_of::()); + + // The layout of `FD_SET` should match our layout of a set of the same + // size. + assert_eq!( + fd_set_num_elements_for_fd_array_raw( + memoffset::span_of!(FD_SET, fd_array).len() / size_of::() + ) * size_of::(), + size_of::() + ); + assert_eq!( + fd_set_num_elements_for_fd_array( + memoffset::span_of!(FD_SET, fd_array).len() / size_of::() + ) * size_of::(), + size_of::() + ); + + // Don't create fd sets smaller than `FD_SET`. + assert_eq!( + fd_set_num_elements_for_fd_array(0) * size_of::(), + size_of::() + ); + } + + #[test] + #[cfg(any(bsd, linux_kernel))] + fn layouts() { + use crate::backend::c; + + // The `FdSetElement` array should be suitably aligned. + assert_eq!(align_of::(), align_of::()); + + // The layout of `fd_set` should match our layout of a set of the same + // size. + assert_eq!( + fd_set_num_elements_for_bitvector(c::FD_SETSIZE as RawFd) * size_of::(), + size_of::() + ); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/ffi.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/ffi.rs new file mode 100644 index 0000000000000000000000000000000000000000..073b6b12045067cc16394f20b76c29173d13bd81 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/ffi.rs @@ -0,0 +1,23 @@ +//! Utilities related to FFI bindings. + +// If we have std, use it. +#[cfg(not(windows))] +#[cfg(feature = "std")] +pub use std::ffi::{CStr, CString, FromBytesWithNulError, NulError}; +#[cfg(feature = "std")] +pub use std::os::raw::{ + c_char, c_int, c_long, c_longlong, c_short, c_uint, c_ulong, c_ulonglong, c_ushort, c_void, +}; + +// If we don't have std, we can depend on core and alloc having these features +// in Rust 1.64+. +#[cfg(not(windows))] +#[cfg(all(feature = "alloc", not(feature = "std")))] +pub use alloc::ffi::{CString, NulError}; +#[cfg(not(feature = "std"))] +pub use core::ffi::{ + c_char, c_int, c_long, c_longlong, c_short, c_uint, c_ulong, c_ulonglong, c_ushort, c_void, +}; +#[cfg(not(windows))] +#[cfg(not(feature = "std"))] +pub use core::ffi::{CStr, FromBytesWithNulError}; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/abs.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/abs.rs new file mode 100644 index 0000000000000000000000000000000000000000..6642fee656b70aa580b414c7b7820dcd79e8baea --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/abs.rs @@ -0,0 +1,304 @@ +//! POSIX-style filesystem functions which operate on bare paths. + +use crate::fd::OwnedFd; +#[cfg(not(any(target_os = "espidf", target_os = "horizon", target_os = "vita")))] +use crate::fs::Access; +#[cfg(not(any( + solarish, + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "netbsd", + target_os = "nto", + target_os = "redox", + target_os = "vita", + target_os = "wasi", +)))] +use crate::fs::StatFs; +#[cfg(not(any(target_os = "wasi")))] +use crate::fs::StatVfs; +use crate::fs::{Mode, OFlags, Stat}; +#[cfg(not(target_os = "wasi"))] +use crate::ugid::{Gid, Uid}; +use crate::{backend, io, path}; +#[cfg(feature = "alloc")] +use { + crate::ffi::{CStr, CString}, + crate::path::SMALL_PATH_BUFFER_SIZE, + alloc::vec::Vec, +}; + +/// `open(path, oflags, mode)`—Opens a file. +/// +/// POSIX guarantees that `open` will use the lowest unused file descriptor, +/// however it is not safe in general to rely on this, as file descriptors may +/// be unexpectedly allocated on other threads or in libraries. +/// +/// The `Mode` argument is only significant when creating a file. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/open.html +/// [Linux]: https://man7.org/linux/man-pages/man2/open.2.html +#[inline] +pub fn open(path: P, flags: OFlags, mode: Mode) -> io::Result { + path.into_with_c_str(|path| backend::fs::syscalls::open(path, flags, mode)) +} + +/// `chmod(path, mode)`—Sets file or directory permissions. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/chmod.html +/// [Linux]: https://man7.org/linux/man-pages/man2/chmod.2.html +#[cfg(not(target_os = "wasi"))] +#[inline] +pub fn chmod(path: P, mode: Mode) -> io::Result<()> { + path.into_with_c_str(|path| backend::fs::syscalls::chmod(path, mode)) +} + +/// `stat(path)`—Queries metadata for a file or directory. +/// +/// [`Mode::from_raw_mode`] and [`FileType::from_raw_mode`] may be used to +/// interpret the `st_mode` field. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stat.html +/// [Linux]: https://man7.org/linux/man-pages/man2/stat.2.html +/// [`Mode::from_raw_mode`]: crate::fs::Mode::from_raw_mode +/// [`FileType::from_raw_mode`]: crate::fs::FileType::from_raw_mode +#[inline] +pub fn stat(path: P) -> io::Result { + path.into_with_c_str(backend::fs::syscalls::stat) +} + +/// `lstat(path)`—Queries metadata for a file or directory, without following +/// symlinks. +/// +/// [`Mode::from_raw_mode`] and [`FileType::from_raw_mode`] may be used to +/// interpret the `st_mode` field. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/lstat.html +/// [Linux]: https://man7.org/linux/man-pages/man2/lstat.2.html +/// [`Mode::from_raw_mode`]: crate::fs::Mode::from_raw_mode +/// [`FileType::from_raw_mode`]: crate::fs::FileType::from_raw_mode +#[inline] +pub fn lstat(path: P) -> io::Result { + path.into_with_c_str(backend::fs::syscalls::lstat) +} + +/// `readlink(path)`—Reads the contents of a symlink. +/// +/// If `reuse` is non-empty, reuse its buffer to store the result if possible. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/readlink.html +/// [Linux]: https://man7.org/linux/man-pages/man2/readlink.2.html +#[cfg(feature = "alloc")] +#[cfg_attr(docsrs, doc(cfg(feature = "alloc")))] +#[inline] +pub fn readlink>>(path: P, reuse: B) -> io::Result { + path.into_with_c_str(|path| _readlink(path, reuse.into())) +} + +#[cfg(feature = "alloc")] +fn _readlink(path: &CStr, mut buffer: Vec) -> io::Result { + // This code would benefit from having a better way to read into + // uninitialized memory, but that requires `unsafe`. + buffer.clear(); + buffer.reserve(SMALL_PATH_BUFFER_SIZE); + buffer.resize(buffer.capacity(), 0_u8); + + loop { + let nread = backend::fs::syscalls::readlink(path, &mut buffer)?; + + let nread = nread as usize; + assert!(nread <= buffer.len()); + if nread < buffer.len() { + buffer.resize(nread, 0_u8); + return Ok(CString::new(buffer).unwrap()); + } + // Use `Vec` reallocation strategy to grow capacity exponentially. + buffer.reserve(1); + buffer.resize(buffer.capacity(), 0_u8); + } +} + +/// `rename(old_path, new_path)`—Renames a file or directory. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/rename.html +/// [Linux]: https://man7.org/linux/man-pages/man2/rename.2.html +#[inline] +pub fn rename(old_path: P, new_path: Q) -> io::Result<()> { + old_path.into_with_c_str(|old_path| { + new_path.into_with_c_str(|new_path| backend::fs::syscalls::rename(old_path, new_path)) + }) +} + +/// `unlink(path)`—Unlinks a file. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/unlink.html +/// [Linux]: https://man7.org/linux/man-pages/man2/unlink.2.html +#[inline] +pub fn unlink(path: P) -> io::Result<()> { + path.into_with_c_str(backend::fs::syscalls::unlink) +} + +/// `rmdir(path)`—Removes a directory. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/rmdir.html +/// [Linux]: https://man7.org/linux/man-pages/man2/rmdir.2.html +#[inline] +pub fn rmdir(path: P) -> io::Result<()> { + path.into_with_c_str(backend::fs::syscalls::rmdir) +} + +/// `link(old_path, new_path)`—Creates a hard link. +/// +/// POSIX leaves it implementation-defined whether `link` follows a symlink in +/// `old_path`, or creates a new link to the symbolic link itself. On platforms +/// which have it, [`linkat`] avoids this problem since it has an [`AtFlags`] +/// parameter and the [`AtFlags::SYMLINK_FOLLOW`] flag determines whether +/// symlinks should be followed. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/link.html +/// [Linux]: https://man7.org/linux/man-pages/man2/link.2.html +/// [`linkat`]: crate::fs::linkat +/// [`AtFlags`]: crate::fs::AtFlags +/// [`AtFlags::SYMLINK_FOLLOW`]: crate::fs::AtFlags::SYMLINK_FOLLOW +#[inline] +pub fn link(old_path: P, new_path: Q) -> io::Result<()> { + old_path.into_with_c_str(|old_path| { + new_path.into_with_c_str(|new_path| backend::fs::syscalls::link(old_path, new_path)) + }) +} + +/// `symlink(old_path, new_path)`—Creates a symlink. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/symlink.html +/// [Linux]: https://man7.org/linux/man-pages/man2/symlink.2.html +#[inline] +pub fn symlink(old_path: P, new_path: Q) -> io::Result<()> { + old_path.into_with_c_str(|old_path| { + new_path.into_with_c_str(|new_path| backend::fs::syscalls::symlink(old_path, new_path)) + }) +} + +/// `mkdir(path, mode)`—Creates a directory. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/mkdir.html +/// [Linux]: https://man7.org/linux/man-pages/man2/mkdir.2.html +#[inline] +pub fn mkdir(path: P, mode: Mode) -> io::Result<()> { + path.into_with_c_str(|path| backend::fs::syscalls::mkdir(path, mode)) +} + +/// `access(path, access)`—Tests permissions for a file or directory. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/access.html +/// [Linux]: https://man7.org/linux/man-pages/man2/access.2.html +#[cfg(not(any(target_os = "espidf", target_os = "horizon", target_os = "vita")))] +#[inline] +pub fn access(path: P, access: Access) -> io::Result<()> { + path.into_with_c_str(|path| backend::fs::syscalls::access(path, access)) +} + +/// `statfs`—Queries filesystem metadata. +/// +/// Compared to [`statvfs`], this function often provides more information, +/// though it's less portable. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/statfs.2.html +#[cfg(not(any( + solarish, + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "netbsd", + target_os = "nto", + target_os = "redox", + target_os = "vita", + target_os = "wasi", +)))] +#[inline] +pub fn statfs(path: P) -> io::Result { + path.into_with_c_str(backend::fs::syscalls::statfs) +} + +/// `statvfs`—Queries filesystem metadata, POSIX version. +/// +/// Compared to [`statfs`], this function often provides less information, but +/// it is more portable. But even so, filesystems are very diverse and not all +/// the fields are meaningful for every filesystem. And `f_fsid` doesn't seem +/// to have a clear meaning anywhere. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/statvfs.html +/// [Linux]: https://man7.org/linux/man-pages/man2/statvfs.2.html +#[cfg(not(any(target_os = "wasi")))] +#[inline] +pub fn statvfs(path: P) -> io::Result { + path.into_with_c_str(backend::fs::syscalls::statvfs) +} + +/// `chown(path, owner, group)`—Sets open file or directory ownership. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/chown.html +/// [Linux]: https://man7.org/linux/man-pages/man2/chown.2.html +#[cfg(not(target_os = "wasi"))] +#[inline] +pub fn chown(path: P, owner: Option, group: Option) -> io::Result<()> { + path.into_with_c_str(|path| backend::fs::syscalls::chown(path, owner, group)) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/at.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/at.rs new file mode 100644 index 0000000000000000000000000000000000000000..bddb53473c85a1037a086cee1f8c01af3979f3ce --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/at.rs @@ -0,0 +1,512 @@ +//! POSIX-style `*at` functions. +//! +//! The `dirfd` argument to these functions may be a file descriptor for a +//! directory, the special value [`CWD`], or the special value [`ABS`]. +//! +//! [`CWD`]: crate::fs::CWD +//! [`ABS`]: crate::fs::ABS + +#![allow(unsafe_code)] + +use crate::buffer::Buffer; +use crate::fd::OwnedFd; +#[cfg(not(any(target_os = "espidf", target_os = "horizon", target_os = "vita")))] +use crate::fs::Access; +#[cfg(not(target_os = "espidf"))] +use crate::fs::AtFlags; +#[cfg(apple)] +use crate::fs::CloneFlags; +#[cfg(any(linux_kernel, apple))] +use crate::fs::RenameFlags; +#[cfg(not(target_os = "espidf"))] +use crate::fs::Stat; +#[cfg(not(any(apple, target_os = "espidf", target_os = "vita", target_os = "wasi")))] +use crate::fs::{Dev, FileType}; +#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] +use crate::fs::{Gid, Uid}; +use crate::fs::{Mode, OFlags}; +use crate::{backend, io, path}; +use backend::fd::AsFd; +#[cfg(feature = "alloc")] +use { + crate::ffi::{CStr, CString}, + crate::path::SMALL_PATH_BUFFER_SIZE, + alloc::vec::Vec, + backend::fd::BorrowedFd, +}; +#[cfg(not(any(target_os = "espidf", target_os = "vita")))] +use {crate::fs::Timestamps, crate::timespec::Nsecs}; + +/// `UTIME_NOW` for use with [`utimensat`]. +/// +/// [`utimensat`]: crate::fs::utimensat +#[cfg(not(any( + target_os = "espidf", + target_os = "horizon", + target_os = "redox", + target_os = "vita" +)))] +pub const UTIME_NOW: Nsecs = backend::c::UTIME_NOW as Nsecs; + +/// `UTIME_OMIT` for use with [`utimensat`]. +/// +/// [`utimensat`]: crate::fs::utimensat +#[cfg(not(any( + target_os = "espidf", + target_os = "horizon", + target_os = "redox", + target_os = "vita" +)))] +pub const UTIME_OMIT: Nsecs = backend::c::UTIME_OMIT as Nsecs; + +/// `openat(dirfd, path, oflags, mode)`—Opens a file. +/// +/// POSIX guarantees that `openat` will use the lowest unused file descriptor, +/// however it is not safe in general to rely on this, as file descriptors may +/// be unexpectedly allocated on other threads or in libraries. +/// +/// The `Mode` argument is only significant when creating a file. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/openat.html +/// [Linux]: https://man7.org/linux/man-pages/man2/openat.2.html +#[inline] +pub fn openat( + dirfd: Fd, + path: P, + oflags: OFlags, + create_mode: Mode, +) -> io::Result { + path.into_with_c_str(|path| { + backend::fs::syscalls::openat(dirfd.as_fd(), path, oflags, create_mode) + }) +} + +/// `readlinkat(fd, path)`—Reads the contents of a symlink. +/// +/// If `reuse` already has available capacity, reuse it if possible. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/readlinkat.html +/// [Linux]: https://man7.org/linux/man-pages/man2/readlinkat.2.html +#[cfg(feature = "alloc")] +#[cfg_attr(docsrs, doc(cfg(feature = "alloc")))] +#[inline] +pub fn readlinkat>>( + dirfd: Fd, + path: P, + reuse: B, +) -> io::Result { + path.into_with_c_str(|path| _readlinkat(dirfd.as_fd(), path, reuse.into())) +} + +#[cfg(feature = "alloc")] +#[allow(unsafe_code)] +fn _readlinkat(dirfd: BorrowedFd<'_>, path: &CStr, mut buffer: Vec) -> io::Result { + buffer.clear(); + buffer.reserve(SMALL_PATH_BUFFER_SIZE); + + loop { + let buf = buffer.spare_capacity_mut(); + + // SAFETY: `readlinkat` behaves. + let nread = unsafe { + backend::fs::syscalls::readlinkat( + dirfd.as_fd(), + path, + (buf.as_mut_ptr().cast(), buf.len()), + )? + }; + + debug_assert!(nread <= buffer.capacity()); + if nread < buffer.capacity() { + // SAFETY: From the [documentation]: “On success, these calls + // return the number of bytes placed in buf.” + // + // [documentation]: https://man7.org/linux/man-pages/man2/readlinkat.2.html + unsafe { + buffer.set_len(nread); + } + + // SAFETY: + // - “readlink places the contents of the symbolic link pathname + // in the buffer buf” + // - [POSIX definition 3.271: Pathname]: “A string that is used + // to identify a file.” + // - [POSIX definition 3.375: String]: “A contiguous sequence of + // bytes terminated by and including the first null byte.” + // - “readlink does not append a terminating null byte to buf.” + // + // Thus, there will be no NUL bytes in the string. + // + // [POSIX definition 3.271: Pathname]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap03.html#tag_03_271 + // [POSIX definition 3.375: String]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap03.html#tag_03_375 + unsafe { + return Ok(CString::from_vec_unchecked(buffer)); + } + } + + // Use `Vec` reallocation strategy to grow capacity exponentially. + buffer.reserve(buffer.capacity() + 1); + } +} + +/// `readlinkat(fd, path)`—Reads the contents of a symlink, without +/// allocating. +/// +/// This is the "raw" version which avoids allocating, but which truncates the +/// string if it doesn't fit in the provided buffer, and doesn't NUL-terminate +/// the string. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/readlinkat.html +/// [Linux]: https://man7.org/linux/man-pages/man2/readlinkat.2.html +#[inline] +pub fn readlinkat_raw>( + dirfd: Fd, + path: P, + mut buf: Buf, +) -> io::Result { + // SAFETY: `readlinkat` behaves. + let len = path.into_with_c_str(|path| unsafe { + backend::fs::syscalls::readlinkat(dirfd.as_fd(), path, buf.parts_mut()) + })?; + // SAFETY: `readlinkat` behaves. + unsafe { Ok(buf.assume_init(len)) } +} + +/// `mkdirat(fd, path, mode)`—Creates a directory. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/mkdirat.html +/// [Linux]: https://man7.org/linux/man-pages/man2/mkdirat.2.html +#[inline] +pub fn mkdirat(dirfd: Fd, path: P, mode: Mode) -> io::Result<()> { + path.into_with_c_str(|path| backend::fs::syscalls::mkdirat(dirfd.as_fd(), path, mode)) +} + +/// `linkat(old_dirfd, old_path, new_dirfd, new_path, flags)`—Creates a hard +/// link. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/linkat.html +/// [Linux]: https://man7.org/linux/man-pages/man2/linkat.2.html +#[cfg(not(target_os = "espidf"))] +#[inline] +pub fn linkat( + old_dirfd: PFd, + old_path: P, + new_dirfd: QFd, + new_path: Q, + flags: AtFlags, +) -> io::Result<()> { + old_path.into_with_c_str(|old_path| { + new_path.into_with_c_str(|new_path| { + backend::fs::syscalls::linkat( + old_dirfd.as_fd(), + old_path, + new_dirfd.as_fd(), + new_path, + flags, + ) + }) + }) +} + +/// `unlinkat(fd, path, flags)`—Unlinks a file or remove a directory. +/// +/// With the [`REMOVEDIR`] flag, this removes a directory. This is in place of +/// a `rmdirat` function. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [`REMOVEDIR`]: AtFlags::REMOVEDIR +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/unlinkat.html +/// [Linux]: https://man7.org/linux/man-pages/man2/unlinkat.2.html +#[cfg(not(target_os = "espidf"))] +#[inline] +pub fn unlinkat(dirfd: Fd, path: P, flags: AtFlags) -> io::Result<()> { + path.into_with_c_str(|path| backend::fs::syscalls::unlinkat(dirfd.as_fd(), path, flags)) +} + +/// `renameat(old_dirfd, old_path, new_dirfd, new_path)`—Renames a file or +/// directory. +/// +/// See [`renameat_with`] to pass additional flags. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/renameat.html +/// [Linux]: https://man7.org/linux/man-pages/man2/renameat.2.html +#[inline] +pub fn renameat( + old_dirfd: PFd, + old_path: P, + new_dirfd: QFd, + new_path: Q, +) -> io::Result<()> { + old_path.into_with_c_str(|old_path| { + new_path.into_with_c_str(|new_path| { + backend::fs::syscalls::renameat( + old_dirfd.as_fd(), + old_path, + new_dirfd.as_fd(), + new_path, + ) + }) + }) +} + +/// `renameat2(old_dirfd, old_path, new_dirfd, new_path, flags)`—Renames a +/// file or directory. +/// +/// `renameat_with` is the same as [`renameat`] but adds an additional +/// flags operand. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/renameat2.2.html +#[cfg(any(apple, linux_kernel))] +#[inline] +#[doc(alias = "renameat2")] +#[doc(alias = "renameatx_np")] +pub fn renameat_with( + old_dirfd: PFd, + old_path: P, + new_dirfd: QFd, + new_path: Q, + flags: RenameFlags, +) -> io::Result<()> { + old_path.into_with_c_str(|old_path| { + new_path.into_with_c_str(|new_path| { + backend::fs::syscalls::renameat2( + old_dirfd.as_fd(), + old_path, + new_dirfd.as_fd(), + new_path, + flags, + ) + }) + }) +} + +/// `symlinkat(old_path, new_dirfd, new_path)`—Creates a symlink. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/symlinkat.html +/// [Linux]: https://man7.org/linux/man-pages/man2/symlinkat.2.html +#[inline] +pub fn symlinkat( + old_path: P, + new_dirfd: Fd, + new_path: Q, +) -> io::Result<()> { + old_path.into_with_c_str(|old_path| { + new_path.into_with_c_str(|new_path| { + backend::fs::syscalls::symlinkat(old_path, new_dirfd.as_fd(), new_path) + }) + }) +} + +/// `fstatat(dirfd, path, flags)`—Queries metadata for a file or directory. +/// +/// [`Mode::from_raw_mode`] and [`FileType::from_raw_mode`] may be used to +/// interpret the `st_mode` field. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fstatat.html +/// [Linux]: https://man7.org/linux/man-pages/man2/fstatat.2.html +/// [`Mode::from_raw_mode`]: crate::fs::Mode::from_raw_mode +/// [`FileType::from_raw_mode`]: crate::fs::FileType::from_raw_mode +#[cfg(not(target_os = "espidf"))] +#[inline] +#[doc(alias = "fstatat")] +pub fn statat(dirfd: Fd, path: P, flags: AtFlags) -> io::Result { + path.into_with_c_str(|path| backend::fs::syscalls::statat(dirfd.as_fd(), path, flags)) +} + +/// `faccessat(dirfd, path, access, flags)`—Tests permissions for a file or +/// directory. +/// +/// On Linux before 5.8, this function uses the `faccessat` system call which +/// doesn't support any flags. This function emulates support for the +/// [`AtFlags::EACCESS`] flag by checking whether the uid and gid of the +/// process match the effective uid and gid, in which case the `EACCESS` flag +/// can be ignored. In Linux 5.8 and beyond `faccessat2` is used, which +/// supports flags. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/faccessat.html +/// [Linux]: https://man7.org/linux/man-pages/man2/faccessat.2.html +#[cfg(not(any(target_os = "espidf", target_os = "horizon", target_os = "vita")))] +#[inline] +#[doc(alias = "faccessat")] +pub fn accessat( + dirfd: Fd, + path: P, + access: Access, + flags: AtFlags, +) -> io::Result<()> { + path.into_with_c_str(|path| backend::fs::syscalls::accessat(dirfd.as_fd(), path, access, flags)) +} + +/// `utimensat(dirfd, path, times, flags)`—Sets file or directory timestamps. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/utimensat.html +/// [Linux]: https://man7.org/linux/man-pages/man2/utimensat.2.html +#[cfg(not(any(target_os = "espidf", target_os = "horizon", target_os = "vita")))] +#[inline] +pub fn utimensat( + dirfd: Fd, + path: P, + times: &Timestamps, + flags: AtFlags, +) -> io::Result<()> { + path.into_with_c_str(|path| backend::fs::syscalls::utimensat(dirfd.as_fd(), path, times, flags)) +} + +/// `fchmodat(dirfd, path, mode, flags)`—Sets file or directory permissions. +/// +/// Platform support for flags varies widely, for example on Linux +/// [`AtFlags::SYMLINK_NOFOLLOW`] is not implemented and therefore +/// [`io::Errno::OPNOTSUPP`] will be returned. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fchmodat.html +/// [Linux]: https://man7.org/linux/man-pages/man2/fchmodat.2.html +#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] +#[inline] +#[doc(alias = "fchmodat")] +pub fn chmodat( + dirfd: Fd, + path: P, + mode: Mode, + flags: AtFlags, +) -> io::Result<()> { + path.into_with_c_str(|path| backend::fs::syscalls::chmodat(dirfd.as_fd(), path, mode, flags)) +} + +/// `fclonefileat(src, dst_dir, dst, flags)`—Efficiently copies between files. +/// +/// # References +/// - [Apple] +/// +/// [Apple]: https://github.com/apple-oss-distributions/xnu/blob/main/bsd/man/man2/clonefile.2 +#[cfg(apple)] +#[inline] +pub fn fclonefileat( + src: Fd, + dst_dir: DstFd, + dst: P, + flags: CloneFlags, +) -> io::Result<()> { + dst.into_with_c_str(|dst| { + backend::fs::syscalls::fclonefileat(src.as_fd(), dst_dir.as_fd(), dst, flags) + }) +} + +/// `mknodat(dirfd, path, mode, dev)`—Creates special or normal files. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/mknodat.html +/// [Linux]: https://man7.org/linux/man-pages/man2/mknodat.2.html +#[cfg(not(any( + apple, + target_os = "espidf", + target_os = "horizon", + target_os = "vita", + target_os = "wasi" +)))] +#[inline] +pub fn mknodat( + dirfd: Fd, + path: P, + file_type: FileType, + mode: Mode, + dev: Dev, +) -> io::Result<()> { + path.into_with_c_str(|path| { + backend::fs::syscalls::mknodat(dirfd.as_fd(), path, file_type, mode, dev) + }) +} + +/// `mkfifoat(dirfd, path, mode)`—Make a FIFO special file. +/// +/// # References +/// - [POSIX] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/mkfifoat.html +#[cfg(not(any( + apple, + target_os = "espidf", + target_os = "horizon", + target_os = "vita", + target_os = "wasi" +)))] +#[inline] +pub fn mkfifoat(dirfd: Fd, path: P, mode: Mode) -> io::Result<()> { + mknodat(dirfd, path, FileType::Fifo, mode, 0) +} + +/// `fchownat(dirfd, path, owner, group, flags)`—Sets file or directory +/// ownership. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fchownat.html +/// [Linux]: https://man7.org/linux/man-pages/man2/fchownat.2.html +#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] +#[inline] +#[doc(alias = "fchownat")] +pub fn chownat( + dirfd: Fd, + path: P, + owner: Option, + group: Option, + flags: AtFlags, +) -> io::Result<()> { + path.into_with_c_str(|path| { + backend::fs::syscalls::chownat(dirfd.as_fd(), path, owner, group, flags) + }) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/constants.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/constants.rs new file mode 100644 index 0000000000000000000000000000000000000000..a4f8e6e07c27f628b890ed5399ceff184be23fdd --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/constants.rs @@ -0,0 +1,359 @@ +//! Filesystem API constants, translated into `bitflags` constants. + +use crate::backend; + +pub use crate::timespec::{Nsecs, Secs, Timespec}; +pub use backend::fs::types::*; + +impl FileType { + /// Returns `true` if this `FileType` is a regular file. + pub fn is_file(self) -> bool { + self == Self::RegularFile + } + + /// Returns `true` if this `FileType` is a directory. + pub fn is_dir(self) -> bool { + self == Self::Directory + } + + /// Returns `true` if this `FileType` is a symlink. + pub fn is_symlink(self) -> bool { + self == Self::Symlink + } + + /// Returns `true` if this `FileType` is a fifo. + #[cfg(not(target_os = "wasi"))] + pub fn is_fifo(self) -> bool { + self == Self::Fifo + } + + /// Returns `true` if this `FileType` is a socket. + #[cfg(not(target_os = "wasi"))] + pub fn is_socket(self) -> bool { + self == Self::Socket + } + + /// Returns `true` if this `FileType` is a character device. + pub fn is_char_device(self) -> bool { + self == Self::CharacterDevice + } + + /// Returns `true` if this `FileType` is a block device. + pub fn is_block_device(self) -> bool { + self == Self::BlockDevice + } +} + +#[cfg(test)] +#[allow(unused_imports)] +#[allow(unsafe_code)] +mod tests { + use super::*; + use crate::backend::c; + // Rust's libc crate lacks statx for Non-glibc targets. + #[cfg(all(target_os = "linux", target_env = "gnu"))] + use crate::fs::{Statx, StatxTimestamp}; + + #[test] + fn test_layouts() { + #[cfg(linux_raw_dep)] + assert_eq_size!(FsWord, linux_raw_sys::general::__fsword_t); + + // Don't test against `__kernel_mode_t` on platforms where it's a + // `u16`. + #[cfg(linux_raw_dep)] + #[cfg(not(any( + target_arch = "x86", + target_arch = "sparc", + target_arch = "avr", + target_arch = "arm", + )))] + assert_eq_size!(RawMode, linux_raw_sys::general::__kernel_mode_t); + + #[cfg(linux_raw_dep)] + #[cfg(any( + target_arch = "x86", + target_arch = "sparc", + target_arch = "avr", + target_arch = "arm", + ))] + assert_eq_size!(u16, linux_raw_sys::general::__kernel_mode_t); + + let some_stat: Stat = unsafe { core::mem::zeroed() }; + + // Ensure that seconds fields are 64-bit on non-y2038-bug platforms, and + // on Linux where we use statx. + #[cfg(any(linux_kernel, not(fix_y2038)))] + { + assert_eq!(some_stat.st_atime, 0_i64); + assert_eq!(some_stat.st_mtime, 0_i64); + assert_eq!(some_stat.st_ctime, 0_i64); + } + + // Ensure that file offsets are 64-bit. + assert_eq!(some_stat.st_size, 0_i64); + + // Check that various fields match expected types. + assert_eq!(some_stat.st_mode, 0 as RawMode); + assert_eq!(some_stat.st_dev, 0 as Dev); + assert_eq!(some_stat.st_rdev, 0 as Dev); + assert_eq!(some_stat.st_uid, 0 as crate::ugid::RawUid); + assert_eq!(some_stat.st_gid, 0 as crate::ugid::RawGid); + + // `Stat` should match `c::stat` or `c::stat64` unless we need y2038 + // fixes and are using a different layout. + #[cfg(not(any( + all(libc, linux_kernel, target_pointer_width = "32"), + all( + linux_raw, + any( + target_pointer_width = "32", + target_arch = "mips64", + target_arch = "mips64r6" + ) + ) + )))] + { + // Check that `Stat` matches `c::stat`. + #[cfg(not(all( + libc, + any( + all(linux_kernel, target_pointer_width = "64"), + target_os = "hurd", + target_os = "emscripten", + target_os = "l4re", + ) + )))] + { + check_renamed_type!(Stat, stat); + check_renamed_struct_field!(Stat, stat, st_dev); + check_renamed_struct_field!(Stat, stat, st_ino); + check_renamed_struct_field!(Stat, stat, st_nlink); + check_renamed_struct_field!(Stat, stat, st_mode); + check_renamed_struct_field!(Stat, stat, st_uid); + check_renamed_struct_field!(Stat, stat, st_gid); + #[cfg(all( + linux_raw, + not(any( + target_arch = "aarch64", + target_arch = "powerpc64", + target_arch = "riscv64", + target_arch = "s390x" + )) + ))] + check_renamed_struct_field!(Stat, stat, __pad0); + check_renamed_struct_field!(Stat, stat, st_rdev); + #[cfg(all(linux_raw, not(any(target_arch = "powerpc64", target_arch = "x86_64"))))] + check_renamed_struct_field!(Stat, stat, __pad1); + check_renamed_struct_field!(Stat, stat, st_size); + check_renamed_struct_field!(Stat, stat, st_blksize); + #[cfg(all( + linux_raw, + not(any( + target_arch = "powerpc64", + target_arch = "s390x", + target_arch = "x86_64" + )) + ))] + check_renamed_struct_field!(Stat, stat, __pad2); + check_renamed_struct_field!(Stat, stat, st_blocks); + check_renamed_struct_field!(Stat, stat, st_atime); + #[cfg(not(target_os = "netbsd"))] + check_renamed_struct_field!(Stat, stat, st_atime_nsec); + #[cfg(target_os = "netbsd")] + check_renamed_struct_renamed_field!(Stat, stat, st_atime_nsec, st_atimensec); + check_renamed_struct_field!(Stat, stat, st_mtime); + #[cfg(not(target_os = "netbsd"))] + check_renamed_struct_field!(Stat, stat, st_mtime_nsec); + #[cfg(target_os = "netbsd")] + check_renamed_struct_renamed_field!(Stat, stat, st_mtime_nsec, st_mtimensec); + check_renamed_struct_field!(Stat, stat, st_ctime); + #[cfg(not(target_os = "netbsd"))] + check_renamed_struct_field!(Stat, stat, st_ctime_nsec); + #[cfg(target_os = "netbsd")] + check_renamed_struct_renamed_field!(Stat, stat, st_ctime_nsec, st_ctimensec); + #[cfg(all( + linux_raw, + not(any( + target_arch = "aarch64", + target_arch = "powerpc64", + target_arch = "riscv64" + )) + ))] + check_renamed_struct_field!(Stat, stat, __unused); + #[cfg(all(linux_raw, not(any(target_arch = "s390x", target_arch = "x86_64"))))] + check_renamed_struct_field!(Stat, stat, __unused4); + #[cfg(all(linux_raw, not(any(target_arch = "s390x", target_arch = "x86_64"))))] + check_renamed_struct_field!(Stat, stat, __unused5); + #[cfg(all( + linux_raw, + not(any( + target_arch = "aarch64", + target_arch = "riscv64", + target_arch = "s390x", + target_arch = "x86_64" + )) + ))] + check_renamed_struct_field!(Stat, stat, __unused6); + } + + // Check that `Stat` matches `c::stat64`. + #[cfg(all( + libc, + any( + all(linux_kernel, target_pointer_width = "64"), + target_os = "hurd", + target_os = "emscripten", + target_os = "l4re", + ) + ))] + { + check_renamed_type!(Stat, stat64); + check_renamed_struct_field!(Stat, stat64, st_dev); + check_renamed_struct_field!(Stat, stat64, st_ino); + check_renamed_struct_field!(Stat, stat64, st_nlink); + check_renamed_struct_field!(Stat, stat64, st_mode); + check_renamed_struct_field!(Stat, stat64, st_uid); + check_renamed_struct_field!(Stat, stat64, st_gid); + #[cfg(all( + linux_raw, + not(any( + target_arch = "aarch64", + target_arch = "powerpc64", + target_arch = "riscv64", + target_arch = "s390x" + )) + ))] + check_renamed_struct_field!(Stat, stat64, __pad0); + check_renamed_struct_field!(Stat, stat64, st_rdev); + #[cfg(all(linux_raw, not(any(target_arch = "powerpc64", target_arch = "x86_64"))))] + check_renamed_struct_field!(Stat, stat64, __pad1); + check_renamed_struct_field!(Stat, stat64, st_size); + check_renamed_struct_field!(Stat, stat64, st_blksize); + #[cfg(all( + linux_raw, + not(any( + target_arch = "powerpc64", + target_arch = "s390x", + target_arch = "x86_64" + )) + ))] + check_renamed_struct_field!(Stat, stat64, __pad2); + check_renamed_struct_field!(Stat, stat64, st_blocks); + check_renamed_struct_field!(Stat, stat64, st_atime); + check_renamed_struct_field!(Stat, stat64, st_atime_nsec); + check_renamed_struct_field!(Stat, stat64, st_mtime); + check_renamed_struct_field!(Stat, stat64, st_mtime_nsec); + check_renamed_struct_field!(Stat, stat64, st_ctime); + check_renamed_struct_field!(Stat, stat64, st_ctime_nsec); + #[cfg(all( + linux_raw, + not(any( + target_arch = "aarch64", + target_arch = "powerpc64", + target_arch = "riscv64" + )) + ))] + check_renamed_struct_field!(Stat, stat64, __unused); + #[cfg(all(linux_raw, not(any(target_arch = "s390x", target_arch = "x86_64"))))] + check_renamed_struct_field!(Stat, stat64, __unused4); + #[cfg(all(linux_raw, not(any(target_arch = "s390x", target_arch = "x86_64"))))] + check_renamed_struct_field!(Stat, stat64, __unused5); + #[cfg(all( + linux_raw, + not(any( + target_arch = "aarch64", + target_arch = "riscv64", + target_arch = "s390x", + target_arch = "x86_64" + )) + ))] + check_renamed_struct_field!(Stat, stat64, __unused6); + } + } + + #[cfg(not(any( + solarish, + target_os = "cygwin", + target_os = "haiku", + target_os = "nto", + target_os = "redox", + target_os = "wasi", + )))] + { + check_renamed_type!(Fsid, fsid_t); + #[cfg(not(libc))] // libc hides the `val` field + check_renamed_struct_field!(Fsid, fsid_t, val); + } + + #[cfg(linux_like)] + { + check_renamed_type!(StatFs, statfs64); + check_renamed_struct_field!(StatFs, statfs64, f_type); + check_renamed_struct_field!(StatFs, statfs64, f_bsize); + check_renamed_struct_field!(StatFs, statfs64, f_blocks); + check_renamed_struct_field!(StatFs, statfs64, f_bfree); + check_renamed_struct_field!(StatFs, statfs64, f_bavail); + check_renamed_struct_field!(StatFs, statfs64, f_files); + check_renamed_struct_field!(StatFs, statfs64, f_ffree); + check_renamed_struct_field!(StatFs, statfs64, f_fsid); + check_renamed_struct_field!(StatFs, statfs64, f_namelen); + check_renamed_struct_field!(StatFs, statfs64, f_frsize); + check_renamed_struct_field!(StatFs, statfs64, f_flags); + #[cfg(linux_raw)] + check_renamed_struct_field!(StatFs, statfs64, f_spare); + } + + // Rust's libc crate lacks statx for Non-glibc targets. + #[cfg(all(target_os = "linux", target_env = "gnu"))] + { + check_renamed_type!(StatxTimestamp, statx_timestamp); + check_renamed_struct_field!(StatxTimestamp, statx_timestamp, tv_sec); + check_renamed_struct_field!(StatxTimestamp, statx_timestamp, tv_nsec); + #[cfg(linux_raw)] + check_renamed_struct_field!(StatxTimestamp, statx_timestamp, __reserved); + + check_renamed_type!(Statx, statx); + check_renamed_struct_field!(Statx, statx, stx_mask); + check_renamed_struct_field!(Statx, statx, stx_blksize); + check_renamed_struct_field!(Statx, statx, stx_attributes); + check_renamed_struct_field!(Statx, statx, stx_nlink); + check_renamed_struct_field!(Statx, statx, stx_uid); + check_renamed_struct_field!(Statx, statx, stx_gid); + check_renamed_struct_field!(Statx, statx, stx_mode); + #[cfg(linux_raw)] + check_renamed_struct_field!(Statx, statx, __spare0); + check_renamed_struct_field!(Statx, statx, stx_ino); + check_renamed_struct_field!(Statx, statx, stx_size); + check_renamed_struct_field!(Statx, statx, stx_blocks); + check_renamed_struct_field!(Statx, statx, stx_attributes_mask); + check_renamed_struct_field!(Statx, statx, stx_atime); + check_renamed_struct_field!(Statx, statx, stx_btime); + check_renamed_struct_field!(Statx, statx, stx_ctime); + check_renamed_struct_field!(Statx, statx, stx_mtime); + check_renamed_struct_field!(Statx, statx, stx_rdev_major); + check_renamed_struct_field!(Statx, statx, stx_rdev_minor); + check_renamed_struct_field!(Statx, statx, stx_dev_major); + check_renamed_struct_field!(Statx, statx, stx_dev_minor); + check_renamed_struct_field!(Statx, statx, stx_mnt_id); + check_renamed_struct_field!(Statx, statx, stx_dio_mem_align); + check_renamed_struct_field!(Statx, statx, stx_dio_offset_align); + #[cfg(not(libc))] // not in libc yet + check_renamed_struct_field!(Statx, statx, stx_subvol); + #[cfg(not(libc))] // not in libc yet + check_renamed_struct_field!(Statx, statx, stx_atomic_write_unit_min); + #[cfg(not(libc))] // not in libc yet + check_renamed_struct_field!(Statx, statx, stx_atomic_write_unit_max); + #[cfg(not(libc))] // not in libc yet + check_renamed_struct_field!(Statx, statx, stx_atomic_write_segments_max); + #[cfg(linux_raw)] + check_renamed_struct_field!(Statx, statx, stx_dio_read_offset_align); + #[cfg(linux_raw)] + check_renamed_struct_field!(Statx, statx, stx_atomic_write_unit_max_opt); + #[cfg(linux_raw)] + check_renamed_struct_field!(Statx, statx, __spare2); + #[cfg(linux_raw)] + check_renamed_struct_field!(Statx, statx, __spare3); + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/copy_file_range.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/copy_file_range.rs new file mode 100644 index 0000000000000000000000000000000000000000..b927d572b7202872a326d0414a5fcd8472245d2a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/copy_file_range.rs @@ -0,0 +1,20 @@ +use crate::{backend, io}; +use backend::fd::AsFd; + +/// `copy_file_range(fd_in, off_in, fd_out, off_out, len, 0)`—Copies data +/// from one file to another. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/copy_file_range.2.html +#[inline] +pub fn copy_file_range( + fd_in: InFd, + off_in: Option<&mut u64>, + fd_out: OutFd, + off_out: Option<&mut u64>, + len: usize, +) -> io::Result { + backend::fs::syscalls::copy_file_range(fd_in.as_fd(), off_in, fd_out.as_fd(), off_out, len) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/dir.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/dir.rs new file mode 100644 index 0000000000000000000000000000000000000000..b3e1e3b999d9ce7d77bf1639ca1e6b9b36211415 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/dir.rs @@ -0,0 +1,5 @@ +//! `Dir` and `DirEntry`. + +use crate::backend; + +pub use backend::fs::dir::{Dir, DirEntry}; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/fadvise.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/fadvise.rs new file mode 100644 index 0000000000000000000000000000000000000000..93d8e08109aa1aac7f39f17dfb1857e42e5d784e --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/fadvise.rs @@ -0,0 +1,28 @@ +use crate::{backend, io}; +use backend::fd::AsFd; +use backend::fs::types::Advice; +use core::num::NonZeroU64; + +/// `posix_fadvise(fd, offset, len, advice)`—Declares an expected access +/// pattern for a file. +/// +/// If `len` is `None`, the advice extends to the end of the file. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [FreeBSD] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/posix_fadvise.html +/// [Linux]: https://man7.org/linux/man-pages/man2/posix_fadvise.2.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=posix_fadvise&sektion=2 +#[inline] +#[doc(alias = "posix_fadvise")] +pub fn fadvise( + fd: Fd, + offset: u64, + len: Option, + advice: Advice, +) -> io::Result<()> { + backend::fs::syscalls::fadvise(fd.as_fd(), offset, len, advice) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/fcntl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/fcntl.rs new file mode 100644 index 0000000000000000000000000000000000000000..ba5368c8632af6b49270186bcbf1dbbc0168a0ab --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/fcntl.rs @@ -0,0 +1,107 @@ +//! The Unix `fcntl` function is effectively lots of different functions hidden +//! behind a single dynamic dispatch interface. In order to provide a type-safe +//! API, rustix makes them all separate functions so that they can have +//! dedicated static type signatures. + +#[cfg(not(any( + target_os = "emscripten", + target_os = "espidf", + target_os = "fuchsia", + target_os = "horizon", + target_os = "redox", + target_os = "vita", + target_os = "wasi" +)))] +use crate::fs::FlockOperation; +use crate::{backend, io}; +use backend::fd::AsFd; +use backend::fs::types::OFlags; + +/// `fcntl(fd, F_GETFL)`—Returns a file descriptor's access mode and status. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fcntl.html +/// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html +#[inline] +#[doc(alias = "F_GETFL")] +pub fn fcntl_getfl(fd: Fd) -> io::Result { + backend::fs::syscalls::fcntl_getfl(fd.as_fd()) +} + +/// `fcntl(fd, F_SETFL, flags)`—Sets a file descriptor's status. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fcntl.html +/// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html +#[inline] +#[doc(alias = "F_SETFL")] +pub fn fcntl_setfl(fd: Fd, flags: OFlags) -> io::Result<()> { + backend::fs::syscalls::fcntl_setfl(fd.as_fd(), flags) +} + +/// `fcntl(fd, F_GET_SEALS)`—Return the seals for `fd`'s inode. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html +#[cfg(any(linux_kernel, target_os = "freebsd", target_os = "fuchsia"))] +#[inline] +#[doc(alias = "F_GET_SEALS")] +pub fn fcntl_get_seals(fd: Fd) -> io::Result { + backend::fs::syscalls::fcntl_get_seals(fd.as_fd()) +} + +#[cfg(any(linux_kernel, target_os = "freebsd", target_os = "fuchsia"))] +use backend::fs::types::SealFlags; + +/// `fcntl(fd, F_ADD_SEALS)`—Add seals to `fd`'s inode. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html +#[cfg(any(linux_kernel, target_os = "freebsd", target_os = "fuchsia"))] +#[inline] +#[doc(alias = "F_ADD_SEALS")] +pub fn fcntl_add_seals(fd: Fd, seals: SealFlags) -> io::Result<()> { + backend::fs::syscalls::fcntl_add_seals(fd.as_fd(), seals) +} + +/// `fcntl(fd, F_SETLK)`—Acquire or release an `fcntl`-style lock. +/// +/// This function doesn't currently have an offset or len; it currently always +/// sets the `l_len` field to 0, which is a special case that means the entire +/// file should be locked. +/// +/// Unlike `flock`-style locks, `fcntl`-style locks are process-associated, +/// meaning that they don't guard against being acquired by two threads in the +/// same process. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fcntl.html +/// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html +#[cfg(not(any( + target_os = "emscripten", + target_os = "espidf", + target_os = "fuchsia", + target_os = "horizon", + target_os = "redox", + target_os = "vita", + target_os = "wasi" +)))] +#[inline] +#[doc(alias = "F_SETLK")] +#[doc(alias = "F_SETLKW")] +pub fn fcntl_lock(fd: Fd, operation: FlockOperation) -> io::Result<()> { + backend::fs::syscalls::fcntl_lock(fd.as_fd(), operation) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/fcntl_apple.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/fcntl_apple.rs new file mode 100644 index 0000000000000000000000000000000000000000..a32e46d7473955b41c885c2efd10e18302fe5e82 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/fcntl_apple.rs @@ -0,0 +1,66 @@ +use crate::{backend, io}; +use backend::fd::AsFd; + +/// `fcntl(fd, F_RDADVISE, radvisory { offset, len })` +/// +/// # References +/// - [Apple] +/// +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html +#[doc(alias = "F_RDADVISE")] +#[inline] +pub fn fcntl_rdadvise(fd: Fd, offset: u64, len: u64) -> io::Result<()> { + backend::fs::syscalls::fcntl_rdadvise(fd.as_fd(), offset, len) +} + +/// `fcntl(fd, F_FULLFSYNC)` +/// +/// # References +/// - [Apple] +/// +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html +#[doc(alias = "F_FULLSYNC")] +#[inline] +pub fn fcntl_fullfsync(fd: Fd) -> io::Result<()> { + backend::fs::syscalls::fcntl_fullfsync(fd.as_fd()) +} + +/// `fcntl(fd, F_NOCACHE, value)`—Turn data caching off or on for a file +/// descriptor. +/// +/// See [this mailing list post] for additional information about the meanings +/// of `F_NOCACHE` and `F_GLOBAL_NOCACHE`. +/// +/// [this mailing list post]: https://lists.apple.com/archives/filesystem-dev/2007/Sep/msg00010.html +/// +/// See also [`fcntl_global_nocache`]. +/// +/// # References +/// - [Apple] +/// +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html +#[doc(alias = "F_NOCACHE")] +#[inline] +pub fn fcntl_nocache(fd: Fd, value: bool) -> io::Result<()> { + backend::fs::syscalls::fcntl_nocache(fd.as_fd(), value) +} + +/// `fcntl(fd, F_GLOBAL_NOCACHE, value)`—Turn data caching off or on for all +/// file descriptors. +/// +/// See [this mailing list post] for additional information about the meanings +/// of `F_NOCACHE` and `F_GLOBAL_NOCACHE`. +/// +/// [this mailing list post]: https://lists.apple.com/archives/filesystem-dev/2007/Sep/msg00010.html +/// +/// See also [`fcntl_nocache`]. +/// +/// # References +/// - [Apple] +/// +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html +#[doc(alias = "F_GLOBAL_NOCACHE")] +#[inline] +pub fn fcntl_global_nocache(fd: Fd, value: bool) -> io::Result<()> { + backend::fs::syscalls::fcntl_global_nocache(fd.as_fd(), value) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/fcopyfile.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/fcopyfile.rs new file mode 100644 index 0000000000000000000000000000000000000000..e8f26ffdcb3d9bd55e3d99eb6e0b889920600840 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/fcopyfile.rs @@ -0,0 +1,88 @@ +use crate::fs::CopyfileFlags; +use crate::{backend, io}; +use backend::fd::AsFd; +use backend::fs::types::copyfile_state_t; + +/// `fcopyfile(from, to, state, flags)` +/// +/// # Safety +/// +/// The `state` operand must be allocated with `copyfile_state_alloc` and not +/// yet freed with `copyfile_state_free`. +/// +/// # References +/// - [Apple] +/// +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/fcopyfile.3.html +#[inline] +pub unsafe fn fcopyfile( + from: FromFd, + to: ToFd, + state: copyfile_state_t, + flags: CopyfileFlags, +) -> io::Result<()> { + backend::fs::syscalls::fcopyfile(from.as_fd(), to.as_fd(), state, flags) +} + +/// `copyfile_state_alloc()` +/// +/// # References +/// - [Apple] +/// +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/fcopyfile.3.html +#[inline] +pub fn copyfile_state_alloc() -> io::Result { + backend::fs::syscalls::copyfile_state_alloc() +} + +/// `copyfile_state_free(state)` +/// +/// # Safety +/// +/// The `state` operand must be allocated with `copyfile_state_alloc` and not +/// yet freed with `copyfile_state_free`. +/// +/// # References +/// - [Apple] +/// +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/fcopyfile.3.html +#[inline] +pub unsafe fn copyfile_state_free(state: copyfile_state_t) -> io::Result<()> { + backend::fs::syscalls::copyfile_state_free(state) +} + +/// `copyfile_state_get(state, COPYFILE_STATE_COPIED)` +/// +/// # Safety +/// +/// The `state` operand must be allocated with `copyfile_state_alloc` and not +/// yet freed with `copyfile_state_free`. +/// +/// # References +/// - [Apple] +/// +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/fcopyfile.3.html +#[inline] +pub unsafe fn copyfile_state_get_copied(state: copyfile_state_t) -> io::Result { + backend::fs::syscalls::copyfile_state_get_copied(state) +} + +/// `copyfile_state_get(state, flags, dst)` +/// +/// # Safety +/// +/// The `state` operand must be allocated with `copyfile_state_alloc` and not +/// yet freed with `copyfile_state_free`. +/// +/// # References +/// - [Apple] +/// +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/fcopyfile.3.html +#[inline] +pub unsafe fn copyfile_state_get( + state: copyfile_state_t, + flag: u32, + dst: *mut core::ffi::c_void, +) -> io::Result<()> { + backend::fs::syscalls::copyfile_state_get(state, flag, dst) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/fd.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/fd.rs new file mode 100644 index 0000000000000000000000000000000000000000..61cd3f47d55b4043ae033bac0482e47afe887038 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/fd.rs @@ -0,0 +1,331 @@ +//! Functions which operate on file descriptors. + +#[cfg(not(target_os = "wasi"))] +use crate::fs::Mode; +#[cfg(not(target_os = "wasi"))] +use crate::fs::{Gid, Uid}; +use crate::fs::{SeekFrom, Timespec}; +use crate::{backend, io}; +use backend::fd::AsFd; +#[cfg(not(any( + netbsdlike, + target_os = "dragonfly", + target_os = "espidf", + target_os = "horizon", + target_os = "nto", + target_os = "redox", + target_os = "vita", +)))] +use backend::fs::types::FallocateFlags; +#[cfg(not(any( + target_os = "espidf", + target_os = "horizon", + target_os = "solaris", + target_os = "vita", + target_os = "wasi" +)))] +use backend::fs::types::FlockOperation; +#[cfg(linux_kernel)] +use backend::fs::types::FsWord; +use backend::fs::types::Stat; +#[cfg(not(any( + solarish, + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "netbsd", + target_os = "nto", + target_os = "redox", + target_os = "vita", + target_os = "wasi", +)))] +use backend::fs::types::StatFs; +#[cfg(not(target_os = "wasi"))] +use backend::fs::types::StatVfs; + +/// Timestamps used by [`utimensat`] and [`futimens`]. +/// +/// [`utimensat`]: crate::fs::utimensat +/// [`futimens`]: crate::fs::futimens +// This is `repr(C)` and specifically laid out to match the representation used +// by `utimensat` and `futimens`, which expect 2-element arrays of timestamps. +#[repr(C)] +#[derive(Debug, Clone)] +pub struct Timestamps { + /// The timestamp of the last access to a filesystem object. + pub last_access: Timespec, + + /// The timestamp of the last modification of a filesystem object. + pub last_modification: Timespec, +} + +/// The filesystem magic number for procfs. +/// +/// See [the `fstatfs` manual page] for more information. +/// +/// [the `fstatfs` manual page]: https://man7.org/linux/man-pages/man2/fstatfs.2.html#DESCRIPTION +#[cfg(linux_kernel)] +pub const PROC_SUPER_MAGIC: FsWord = backend::c::PROC_SUPER_MAGIC as FsWord; + +/// The filesystem magic number for NFS. +/// +/// See [the `fstatfs` manual page] for more information. +/// +/// [the `fstatfs` manual page]: https://man7.org/linux/man-pages/man2/fstatfs.2.html#DESCRIPTION +#[cfg(linux_kernel)] +pub const NFS_SUPER_MAGIC: FsWord = backend::c::NFS_SUPER_MAGIC as FsWord; + +/// `lseek(fd, offset, whence)`—Repositions a file descriptor within a file. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/lseek.html +/// [Linux]: https://man7.org/linux/man-pages/man2/lseek.2.html +#[inline] +#[doc(alias = "lseek")] +pub fn seek(fd: Fd, pos: SeekFrom) -> io::Result { + backend::fs::syscalls::seek(fd.as_fd(), pos) +} + +/// `lseek(fd, 0, SEEK_CUR)`—Returns the current position within a file. +/// +/// Return the current position of the file descriptor. This is a subset of +/// the functionality of `seek`, but this interface makes it easier for users +/// to declare their intent not to mutate any state. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/lseek.html +/// [Linux]: https://man7.org/linux/man-pages/man2/lseek.2.html +#[inline] +#[doc(alias = "lseek")] +pub fn tell(fd: Fd) -> io::Result { + backend::fs::syscalls::tell(fd.as_fd()) +} + +/// `fchmod(fd, mode)`—Sets open file or directory permissions. +/// +/// This implementation does not support [`OFlags::PATH`] file descriptors, +/// even on platforms where the host libc emulates it. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fchmod.html +/// [Linux]: https://man7.org/linux/man-pages/man2/fchmod.2.html +/// [`OFlags::PATH`]: crate::fs::OFlags::PATH +#[cfg(not(target_os = "wasi"))] +#[inline] +pub fn fchmod(fd: Fd, mode: Mode) -> io::Result<()> { + backend::fs::syscalls::fchmod(fd.as_fd(), mode) +} + +/// `fchown(fd, owner, group)`—Sets open file or directory ownership. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fchown.html +/// [Linux]: https://man7.org/linux/man-pages/man2/fchown.2.html +#[cfg(not(target_os = "wasi"))] +#[inline] +pub fn fchown(fd: Fd, owner: Option, group: Option) -> io::Result<()> { + backend::fs::syscalls::fchown(fd.as_fd(), owner, group) +} + +/// `fstat(fd)`—Queries metadata for an open file or directory. +/// +/// [`Mode::from_raw_mode`] and [`FileType::from_raw_mode`] may be used to +/// interpret the `st_mode` field. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fstat.html +/// [Linux]: https://man7.org/linux/man-pages/man2/fstat.2.html +/// [`Mode::from_raw_mode`]: Mode::from_raw_mode +/// [`FileType::from_raw_mode`]: crate::fs::FileType::from_raw_mode +#[inline] +pub fn fstat(fd: Fd) -> io::Result { + backend::fs::syscalls::fstat(fd.as_fd()) +} + +/// `fstatfs(fd)`—Queries filesystem statistics for an open file or directory. +/// +/// Compared to [`fstatvfs`], this function often provides more information, +/// though it's less portable. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/fstatfs.2.html +#[cfg(not(any( + solarish, + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "netbsd", + target_os = "nto", + target_os = "redox", + target_os = "vita", + target_os = "wasi", +)))] +#[inline] +pub fn fstatfs(fd: Fd) -> io::Result { + backend::fs::syscalls::fstatfs(fd.as_fd()) +} + +/// `fstatvfs(fd)`—Queries filesystem statistics for an open file or +/// directory, POSIX version. +/// +/// Compared to [`fstatfs`], this function often provides less information, +/// but it is more portable. But even so, filesystems are very diverse and not +/// all the fields are meaningful for every filesystem. And `f_fsid` doesn't +/// seem to have a clear meaning anywhere. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fstatvfs.html +/// [Linux]: https://man7.org/linux/man-pages/man2/fstatvfs.2.html +#[cfg(not(target_os = "wasi"))] +#[inline] +pub fn fstatvfs(fd: Fd) -> io::Result { + backend::fs::syscalls::fstatvfs(fd.as_fd()) +} + +/// `futimens(fd, times)`—Sets timestamps for an open file or directory. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/futimens.html +/// [Linux]: https://man7.org/linux/man-pages/man2/utimensat.2.html +#[cfg(not(any(target_os = "espidf", target_os = "horizon", target_os = "vita")))] +#[inline] +pub fn futimens(fd: Fd, times: &Timestamps) -> io::Result<()> { + backend::fs::syscalls::futimens(fd.as_fd(), times) +} + +/// `fallocate(fd, mode, offset, len)`—Adjusts file allocation. +/// +/// This is a more general form of `posix_fallocate`, adding a `mode` argument +/// which modifies the behavior. On platforms which only support +/// `posix_fallocate` and not the more general form, no `FallocateFlags` values +/// are defined so it will always be empty. +/// +/// # References +/// - [POSIX] +/// - [Linux `fallocate`] +/// - [Linux `posix_fallocate`] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/posix_fallocate.html +/// [Linux `fallocate`]: https://man7.org/linux/man-pages/man2/fallocate.2.html +/// [Linux `posix_fallocate`]: https://man7.org/linux/man-pages/man3/posix_fallocate.3.html +#[cfg(not(any( + netbsdlike, + target_os = "dragonfly", + target_os = "espidf", + target_os = "horizon", + target_os = "nto", + target_os = "redox", + target_os = "vita", +)))] // not implemented in libc for NetBSD yet +#[inline] +#[doc(alias = "posix_fallocate")] +pub fn fallocate(fd: Fd, mode: FallocateFlags, offset: u64, len: u64) -> io::Result<()> { + backend::fs::syscalls::fallocate(fd.as_fd(), mode, offset, len) +} + +/// `fsync(fd)`—Ensures that file data and metadata is written to the +/// underlying storage device. +/// +/// On iOS and macOS this isn't sufficient to ensure that data has reached +/// persistent storage; use [`fcntl_fullfsync`] to ensure that. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fsync.html +/// [Linux]: https://man7.org/linux/man-pages/man2/fsync.2.html +/// [`fcntl_fullfsync`]: https://docs.rs/rustix/*/x86_64-apple-darwin/rustix/fs/fn.fcntl_fullfsync.html +#[inline] +pub fn fsync(fd: Fd) -> io::Result<()> { + backend::fs::syscalls::fsync(fd.as_fd()) +} + +/// `fdatasync(fd)`—Ensures that file data is written to the underlying +/// storage device. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fdatasync.html +/// [Linux]: https://man7.org/linux/man-pages/man2/fdatasync.2.html +#[cfg(not(any( + apple, + target_os = "dragonfly", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "redox", + target_os = "vita", +)))] +#[inline] +pub fn fdatasync(fd: Fd) -> io::Result<()> { + backend::fs::syscalls::fdatasync(fd.as_fd()) +} + +/// `ftruncate(fd, length)`—Sets the length of a file. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/ftruncate.html +/// [Linux]: https://man7.org/linux/man-pages/man2/ftruncate.2.html +#[inline] +pub fn ftruncate(fd: Fd, length: u64) -> io::Result<()> { + backend::fs::syscalls::ftruncate(fd.as_fd(), length) +} + +/// `flock(fd, operation)`—Acquire or release an advisory lock on an open file. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/flock.2.html +#[cfg(not(any( + target_os = "espidf", + target_os = "horizon", + target_os = "solaris", + target_os = "vita", + target_os = "wasi" +)))] +#[inline] +pub fn flock(fd: Fd, operation: FlockOperation) -> io::Result<()> { + backend::fs::syscalls::flock(fd.as_fd(), operation) +} + +/// `syncfs(fd)`—Flush cached filesystem data. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/syncfs.2.html +#[cfg(linux_kernel)] +#[inline] +pub fn syncfs(fd: Fd) -> io::Result<()> { + backend::fs::syscalls::syncfs(fd.as_fd()) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/getpath.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/getpath.rs new file mode 100644 index 0000000000000000000000000000000000000000..8e14ff2f20e6d4248c74b04434f22c5aa7da32d4 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/getpath.rs @@ -0,0 +1,14 @@ +use crate::ffi::CString; +use crate::{backend, io}; +use backend::fd::AsFd; + +/// `fcntl(fd, F_GETPATH)` +/// +/// # References +/// - [Apple] +/// +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html +#[inline] +pub fn getpath(fd: Fd) -> io::Result { + backend::fs::syscalls::getpath(fd.as_fd()) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/id.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/id.rs new file mode 100644 index 0000000000000000000000000000000000000000..1fc2ef81f840e1a73b62900588139824a3b01da6 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/id.rs @@ -0,0 +1 @@ +pub use crate::ugid::{Gid, Uid}; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/inotify.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/inotify.rs new file mode 100644 index 0000000000000000000000000000000000000000..ad03dfa6b282a1a11bb9a81d3b14bc23e632b58d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/inotify.rs @@ -0,0 +1,219 @@ +//! inotify support for working with inotify objects. +//! +//! # Examples +//! +//! ``` +//! use rustix::fs::inotify; +//! use rustix::io; +//! use std::mem::MaybeUninit; +//! +//! # fn test() -> io::Result<()> { +//! // Create an inotify object. In this example, we use `NONBLOCK` so that the +//! // reader fails with `WOULDBLOCK` when no events are ready. Otherwise it +//! // will block until at least one event is ready. +//! let inotify = inotify::init(inotify::CreateFlags::NONBLOCK)?; +//! +//! // Add a directory to watch. +//! inotify::add_watch( +//! &inotify, +//! "/path/to/some/directory/to/watch", +//! inotify::WatchFlags::ALL_EVENTS, +//! )?; +//! +//! // Generate some events in the watched directory… +//! +//! // Loop over pending events. +//! let mut buf = [MaybeUninit::uninit(); 512]; +//! let mut iter = inotify::Reader::new(inotify, &mut buf); +//! loop { +//! let entry = match iter.next() { +//! // Stop iterating if there are no more events for now. +//! Err(io::Errno::WOULDBLOCK) => break, +//! Err(e) => return Err(e), +//! Ok(entry) => entry, +//! }; +//! +//! // Use `entry`… +//! } +//! +//! # Ok(()) +//! # } + +#![allow(unused_qualifications)] + +use super::inotify; +pub use crate::backend::fs::inotify::{CreateFlags, ReadFlags, WatchFlags}; +use crate::backend::fs::syscalls; +use crate::fd::{AsFd, OwnedFd}; +use crate::ffi::CStr; +use crate::io; +use crate::io::{read, Errno}; +use core::mem::{align_of, size_of, MaybeUninit}; +use linux_raw_sys::general::inotify_event; + +/// `inotify_init1(flags)`—Creates a new inotify object. +/// +/// Use the [`CreateFlags::CLOEXEC`] flag to prevent the resulting file +/// descriptor from being implicitly passed across `exec` boundaries. +#[doc(alias = "inotify_init1")] +#[inline] +pub fn init(flags: inotify::CreateFlags) -> io::Result { + syscalls::inotify_init1(flags) +} + +/// `inotify_add_watch(self, path, flags)`—Adds a watch to inotify. +/// +/// This registers or updates a watch for the filesystem path `path` and +/// returns a watch descriptor corresponding to this watch. +/// +/// Note: Due to the existence of hardlinks, providing two different paths to +/// this method may result in it returning the same watch descriptor. An +/// application should keep track of this externally to avoid logic errors. +#[doc(alias = "inotify_add_watch")] +#[inline] +pub fn add_watch( + inot: Fd, + path: P, + flags: inotify::WatchFlags, +) -> io::Result { + path.into_with_c_str(|path| syscalls::inotify_add_watch(inot.as_fd(), path, flags)) +} + +/// `inotify_rm_watch(self, wd)`—Removes a watch from this inotify. +/// +/// The watch descriptor provided should have previously been returned by +/// [`inotify::add_watch`] and not previously have been removed. +#[doc(alias = "inotify_rm_watch")] +#[inline] +pub fn remove_watch(inot: Fd, wd: i32) -> io::Result<()> { + syscalls::inotify_rm_watch(inot.as_fd(), wd) +} + +/// An inotify event iterator implemented with the read syscall. +/// +/// See the [`RawDir`] API for more details and usage examples as this API is +/// based on it. +/// +/// [`RawDir`]: crate::fs::raw_dir::RawDir +pub struct Reader<'buf, Fd: AsFd> { + fd: Fd, + buf: &'buf mut [MaybeUninit], + initialized: usize, + offset: usize, +} + +impl<'buf, Fd: AsFd> Reader<'buf, Fd> { + /// Create a new iterator from the given file descriptor and buffer. + pub fn new(fd: Fd, buf: &'buf mut [MaybeUninit]) -> Self { + Self { + fd, + buf: { + let offset = buf.as_ptr().align_offset(align_of::()); + if offset < buf.len() { + &mut buf[offset..] + } else { + &mut [] + } + }, + initialized: 0, + offset: 0, + } + } +} + +/// An inotify event. +#[doc(alias = "inotify_event")] +#[derive(Debug)] +pub struct Event<'a> { + wd: i32, + events: ReadFlags, + cookie: u32, + file_name: Option<&'a CStr>, +} + +impl<'a> Event<'a> { + /// Returns the watch for which this event occurs. + #[inline] + pub fn wd(&self) -> i32 { + self.wd + } + + /// Returns a description of the events. + #[inline] + #[doc(alias = "mask")] + pub fn events(&self) -> ReadFlags { + self.events + } + + /// Returns the unique cookie associating related events. + #[inline] + pub fn cookie(&self) -> u32 { + self.cookie + } + + /// Returns the file name of this event, if any. + #[inline] + pub fn file_name(&self) -> Option<&CStr> { + self.file_name + } +} + +impl<'buf, Fd: AsFd> Reader<'buf, Fd> { + /// Read the next inotify event. + /// + /// This is similar to [`Iterator::next`] except that it doesn't return an + /// `Option`, because the stream doesn't have an ending. It always returns + /// events or errors. + /// + /// If there are no events in the buffer and none ready to be read: + /// - If the file descriptor was opened with + /// [`inotify::CreateFlags::NONBLOCK`], this will fail with + /// [`Errno::AGAIN`]. + /// - Otherwise this will block until at least one event is ready or an + /// error occurs. + #[allow(unsafe_code)] + #[allow(clippy::should_implement_trait)] + pub fn next(&mut self) -> io::Result> { + if self.is_buffer_empty() { + match read(self.fd.as_fd(), &mut *self.buf).map(|(init, _)| init.len()) { + Ok(0) => return Err(Errno::INVAL), + Ok(bytes_read) => { + self.initialized = bytes_read; + self.offset = 0; + } + Err(e) => return Err(e), + } + } + + let ptr = self.buf[self.offset..].as_ptr(); + + // SAFETY: + // - This data is initialized by the check above. + // - Assumption: the kernel will not give us partial structs. + // - Assumption: the kernel uses proper alignment between structs. + // - The starting pointer is aligned (performed in `Reader::new`). + let event = unsafe { &*ptr.cast::() }; + + self.offset += size_of::() + usize::try_from(event.len).unwrap(); + + Ok(Event { + wd: event.wd, + events: ReadFlags::from_bits_retain(event.mask), + cookie: event.cookie, + file_name: if event.len > 0 { + // SAFETY: The kernel guarantees a NUL-terminated string. + Some(unsafe { CStr::from_ptr(event.name.as_ptr().cast()) }) + } else { + None + }, + }) + } + + /// Returns true if the internal buffer is empty and will be refilled when + /// calling [`next`]. This is useful to avoid further blocking reads. + /// + /// [`next`]: Self::next + pub fn is_buffer_empty(&self) -> bool { + self.offset >= self.initialized + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/ioctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/ioctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..16e0dda125c6302c318abcf511d6f44ffde4d67d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/ioctl.rs @@ -0,0 +1,169 @@ +//! Filesystem-oriented `ioctl` functions. + +#![allow(unsafe_code)] + +#[cfg(linux_kernel)] +use { + crate::backend::c, + crate::fd::AsFd, + crate::{backend, ffi, io, ioctl}, +}; + +use bitflags::bitflags; + +#[cfg(all(linux_kernel, not(any(target_arch = "sparc", target_arch = "sparc64"))))] +use crate::fd::{AsRawFd as _, BorrowedFd}; + +/// `ioctl(fd, BLKSSZGET)`—Returns the logical block size of a block device. +/// +/// This is mentioned in the [Linux `openat` manual page]. +/// +/// [Linux `openat` manual page]: https://man7.org/linux/man-pages/man2/openat.2.html +#[cfg(linux_kernel)] +#[inline] +#[doc(alias = "BLKSSZGET")] +pub fn ioctl_blksszget(fd: Fd) -> io::Result { + // SAFETY: `BLZSSZGET` is a getter opcode that gets a `u32`. + unsafe { + let ctl = ioctl::Getter::<{ c::BLKSSZGET }, c::c_uint>::new(); + ioctl::ioctl(fd, ctl) + } +} + +/// `ioctl(fd, BLKPBSZGET)`—Returns the physical block size of a block device. +#[cfg(linux_kernel)] +#[inline] +#[doc(alias = "BLKPBSZGET")] +pub fn ioctl_blkpbszget(fd: Fd) -> io::Result { + // SAFETY: `BLKPBSZGET` is a getter opcode that gets a `u32`. + unsafe { + let ctl = ioctl::Getter::<{ c::BLKPBSZGET }, c::c_uint>::new(); + ioctl::ioctl(fd, ctl) + } +} + +/// `ioctl(fd, FICLONE, src_fd)`—Share data between open files. +/// +/// This ioctl is not available on SPARC platforms. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/ioctl_ficlone.2.html +#[cfg(all(linux_kernel, not(any(target_arch = "sparc", target_arch = "sparc64"))))] +#[inline] +#[doc(alias = "FICLONE")] +pub fn ioctl_ficlone(fd: Fd, src_fd: SrcFd) -> io::Result<()> { + unsafe { ioctl::ioctl(fd, Ficlone(src_fd.as_fd())) } +} + +/// `ioctl(fd, EXT4_IOC_RESIZE_FS, blocks)`—Resize ext4 filesystem on fd. +#[cfg(linux_raw_dep)] +#[inline] +#[doc(alias = "EXT4_IOC_RESIZE_FS")] +pub fn ext4_ioc_resize_fs(fd: Fd, blocks: u64) -> io::Result<()> { + // SAFETY: `EXT4_IOC_RESIZE_FS` is a pointer setter opcode. + unsafe { + let ctl = ioctl::Setter::<{ backend::fs::EXT4_IOC_RESIZE_FS }, u64>::new(blocks); + ioctl::ioctl(fd, ctl) + } +} + +#[cfg(all(linux_kernel, not(any(target_arch = "sparc", target_arch = "sparc64"))))] +struct Ficlone<'a>(BorrowedFd<'a>); + +#[cfg(all(linux_kernel, not(any(target_arch = "sparc", target_arch = "sparc64"))))] +unsafe impl ioctl::Ioctl for Ficlone<'_> { + type Output = (); + + const IS_MUTATING: bool = false; + + fn opcode(&self) -> ioctl::Opcode { + c::FICLONE as ioctl::Opcode + } + + fn as_ptr(&mut self) -> *mut c::c_void { + self.0.as_raw_fd() as *mut c::c_void + } + + unsafe fn output_from_ptr( + _: ioctl::IoctlOutput, + _: *mut c::c_void, + ) -> io::Result { + Ok(()) + } +} + +#[cfg(linux_raw_dep)] +bitflags! { + /// `FS_*` constants for use with [`ioctl_getflags`]. + /// + /// [`ioctl_getflags`]: crate::fs::ioctl::ioctl_getflags + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct IFlags: ffi::c_uint { + /// `FS_APPEND_FL` + const APPEND = linux_raw_sys::general::FS_APPEND_FL; + /// `FS_COMPR_FL` + const COMPRESSED = linux_raw_sys::general::FS_COMPR_FL; + /// `FS_DIRSYNC_FL` + const DIRSYNC = linux_raw_sys::general::FS_DIRSYNC_FL; + /// `FS_IMMUTABLE_FL` + const IMMUTABLE = linux_raw_sys::general::FS_IMMUTABLE_FL; + /// `FS_JOURNAL_DATA_FL` + const JOURNALING = linux_raw_sys::general::FS_JOURNAL_DATA_FL; + /// `FS_NOATIME_FL` + const NOATIME = linux_raw_sys::general::FS_NOATIME_FL; + /// `FS_NOCOW_FL` + const NOCOW = linux_raw_sys::general::FS_NOCOW_FL; + /// `FS_NODUMP_FL` + const NODUMP = linux_raw_sys::general::FS_NODUMP_FL; + /// `FS_NOTAIL_FL` + const NOTAIL = linux_raw_sys::general::FS_NOTAIL_FL; + /// `FS_PROJINHERIT_FL` + const PROJECT_INHERIT = linux_raw_sys::general::FS_PROJINHERIT_FL; + /// `FS_SECRM_FL` + const SECURE_REMOVAL = linux_raw_sys::general::FS_SECRM_FL; + /// `FS_SYNC_FL` + const SYNC = linux_raw_sys::general::FS_SYNC_FL; + /// `FS_TOPDIR_FL` + const TOPDIR = linux_raw_sys::general::FS_TOPDIR_FL; + /// `FS_UNRM_FL` + const UNRM = linux_raw_sys::general::FS_UNRM_FL; + } +} + +/// `ioctl(fd, FS_IOC_GETFLAGS)`—Returns the [inode flags] attributes +/// +/// [inode flags]: https://man7.org/linux/man-pages/man2/ioctl_iflags.2.html +#[cfg(linux_raw_dep)] +#[inline] +#[doc(alias = "FS_IOC_GETFLAGS")] +pub fn ioctl_getflags(fd: Fd) -> io::Result { + unsafe { + #[cfg(target_pointer_width = "32")] + let ctl = ioctl::Getter::<{ c::FS_IOC32_GETFLAGS }, u32>::new(); + #[cfg(target_pointer_width = "64")] + let ctl = ioctl::Getter::<{ c::FS_IOC_GETFLAGS }, u32>::new(); + + ioctl::ioctl(fd, ctl).map(IFlags::from_bits_retain) + } +} + +/// `ioctl(fd, FS_IOC_SETFLAGS)`—Modify the [inode flags] attributes +/// +/// [inode flags]: https://man7.org/linux/man-pages/man2/ioctl_iflags.2.html +#[cfg(linux_raw_dep)] +#[inline] +#[doc(alias = "FS_IOC_SETFLAGS")] +pub fn ioctl_setflags(fd: Fd, flags: IFlags) -> io::Result<()> { + unsafe { + #[cfg(target_pointer_width = "32")] + let ctl = ioctl::Setter::<{ c::FS_IOC32_SETFLAGS }, u32>::new(flags.bits()); + + #[cfg(target_pointer_width = "64")] + let ctl = ioctl::Setter::<{ c::FS_IOC_SETFLAGS }, u32>::new(flags.bits()); + + ioctl::ioctl(fd, ctl) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/makedev.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/makedev.rs new file mode 100644 index 0000000000000000000000000000000000000000..e6cf5c0e924069c5fb3e23f666697770e4b0573b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/makedev.rs @@ -0,0 +1,35 @@ +use crate::backend; +use crate::fs::Dev; + +/// `makedev(maj, min)`—Compute a device ID from a given major and minor ID. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man3/makedev.3.html +#[inline] +pub fn makedev(maj: u32, min: u32) -> Dev { + backend::fs::makedev::makedev(maj, min) +} + +/// `minor(dev)`—Compute the minor ID of a given device ID. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man3/minor.3.html +#[inline] +pub fn minor(dev: Dev) -> u32 { + backend::fs::makedev::minor(dev) +} + +/// `major(dev)`—Compute the major ID of a given device ID. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man3/major.3.html +#[inline] +pub fn major(dev: Dev) -> u32 { + backend::fs::makedev::major(dev) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/memfd_create.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/memfd_create.rs new file mode 100644 index 0000000000000000000000000000000000000000..6e49771f0f3e1ae692fc15372784e11925a25d77 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/memfd_create.rs @@ -0,0 +1,22 @@ +use crate::fd::OwnedFd; +use crate::{backend, io, path}; +use backend::fs::types::MemfdFlags; + +/// `memfd_create(name, flags)`—Create an anonymous file. +/// +/// For a higher-level API to this functionality, see the [memfd] crate. +/// +/// [memfd]: https://crates.io/crates/memfd +/// +/// # References +/// - [Linux] +/// - [glibc] +/// - [FreeBSD] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/memfd_create.2.html +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Memory_002dmapped-I_002fO.html#index-memfd_005fcreate +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?memfd_create +#[inline] +pub fn memfd_create(name: P, flags: MemfdFlags) -> io::Result { + name.into_with_c_str(|name| backend::fs::syscalls::memfd_create(name, flags)) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..35ca17af0c5162af7b977c01cbb2eb53780f7fbb --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/mod.rs @@ -0,0 +1,139 @@ +//! Filesystem operations. + +mod abs; +#[cfg(not(target_os = "redox"))] +mod at; +mod constants; +#[cfg(linux_kernel)] +mod copy_file_range; +#[cfg(all(feature = "alloc", not(any(target_os = "espidf", target_os = "redox"))))] +mod dir; +#[cfg(not(any( + apple, + netbsdlike, + target_os = "dragonfly", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "redox", + target_os = "solaris", + target_os = "vita", +)))] +mod fadvise; +pub(crate) mod fcntl; +#[cfg(apple)] +mod fcntl_apple; +#[cfg(apple)] +mod fcopyfile; +pub(crate) mod fd; +#[cfg(all(apple, feature = "alloc"))] +mod getpath; +#[cfg(not(target_os = "wasi"))] // WASI doesn't have get[gpu]id. +mod id; +#[cfg(linux_raw_dep)] +pub mod inotify; +#[cfg(linux_kernel)] +mod ioctl; +#[cfg(not(any( + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "vita", + target_os = "wasi" +)))] +mod makedev; +#[cfg(any(linux_kernel, target_os = "freebsd"))] +mod memfd_create; +#[cfg(linux_raw_dep)] +mod openat2; +#[cfg(linux_kernel)] +mod raw_dir; +mod seek_from; +#[cfg(target_os = "linux")] +mod sendfile; +#[cfg(not(any(target_os = "espidf", target_os = "redox")))] +mod special; +#[cfg(linux_kernel)] +mod statx; +#[cfg(not(any( + target_os = "espidf", + target_os = "horizon", + target_os = "redox", + target_os = "vita", + target_os = "wasi" +)))] +mod sync; +#[cfg(any(apple, linux_kernel, target_os = "hurd"))] +mod xattr; + +pub use abs::*; +#[cfg(not(target_os = "redox"))] +pub use at::*; +pub use constants::*; +#[cfg(linux_kernel)] +pub use copy_file_range::copy_file_range; +#[cfg(all(feature = "alloc", not(any(target_os = "espidf", target_os = "redox"))))] +pub use dir::{Dir, DirEntry}; +#[cfg(not(any( + apple, + netbsdlike, + target_os = "dragonfly", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "redox", + target_os = "solaris", + target_os = "vita", +)))] +pub use fadvise::fadvise; +pub use fcntl::*; +#[cfg(apple)] +pub use fcntl_apple::*; +#[cfg(apple)] +pub use fcopyfile::*; +pub use fd::*; +#[cfg(all(apple, feature = "alloc"))] +pub use getpath::getpath; +#[cfg(not(target_os = "wasi"))] +pub use id::*; +#[cfg(linux_kernel)] +pub use ioctl::*; +#[cfg(not(any( + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "vita", + target_os = "wasi" +)))] +pub use makedev::*; +#[cfg(any(linux_kernel, target_os = "freebsd"))] +pub use memfd_create::memfd_create; +#[cfg(linux_raw_dep)] +pub use openat2::openat2; +#[cfg(linux_kernel)] +pub use raw_dir::{RawDir, RawDirEntry}; +pub use seek_from::SeekFrom; +#[cfg(target_os = "linux")] +pub use sendfile::sendfile; +#[cfg(not(any(target_os = "espidf", target_os = "redox")))] +pub use special::*; +#[cfg(linux_kernel)] +pub use statx::*; +#[cfg(not(any( + target_os = "espidf", + target_os = "horizon", + target_os = "redox", + target_os = "vita", + target_os = "wasi" +)))] +pub use sync::sync; +#[cfg(any(apple, linux_kernel, target_os = "hurd"))] +pub use xattr::*; + +/// Re-export types common to POSIX-ish platforms. +#[cfg(feature = "std")] +#[cfg(unix)] +pub use std::os::unix::fs::{DirEntryExt, FileExt, FileTypeExt, MetadataExt, OpenOptionsExt}; +#[cfg(feature = "std")] +#[cfg(all(wasi_ext, target_os = "wasi"))] +pub use std::os::wasi::fs::{DirEntryExt, FileExt, FileTypeExt, MetadataExt, OpenOptionsExt}; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/openat2.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/openat2.rs new file mode 100644 index 0000000000000000000000000000000000000000..0a0e1d16c787ae696085e84ca61950130508c4ba --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/openat2.rs @@ -0,0 +1,24 @@ +use crate::fd::OwnedFd; +use crate::{backend, io, path}; +use backend::fd::AsFd; +use backend::fs::types::{Mode, OFlags, ResolveFlags}; + +/// `openat2(dirfd, path, OpenHow { oflags, mode, resolve }, sizeof(OpenHow))`— +/// Opens a file with more options. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/openat2.2.html +#[inline] +pub fn openat2( + dirfd: Fd, + path: P, + oflags: OFlags, + mode: Mode, + resolve: ResolveFlags, +) -> io::Result { + path.into_with_c_str(|path| { + backend::fs::syscalls::openat2(dirfd.as_fd(), path, oflags, mode, resolve) + }) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/raw_dir.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/raw_dir.rs new file mode 100644 index 0000000000000000000000000000000000000000..4b14be38a020b5e12df6cb798c0ddd868afdf16b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/raw_dir.rs @@ -0,0 +1,254 @@ +//! `RawDir` and `RawDirEntry`. + +use crate::backend::fs::syscalls::getdents_uninit; +use crate::fd::AsFd; +use crate::ffi::CStr; +use crate::fs::FileType; +use crate::io; +use core::fmt; +use core::mem::{align_of, MaybeUninit}; + +#[cfg(not(linux_raw_dep))] +use libc::dirent64 as linux_dirent64; +#[cfg(linux_raw_dep)] +use linux_raw_sys::general::linux_dirent64; + +/// A directory iterator implemented with getdents. +/// +/// Note: This implementation does not handle growing the buffer. If this +/// functionality is necessary, you'll need to drop the current iterator, +/// resize the buffer, and then re-create the iterator. The iterator is +/// guaranteed to continue where it left off provided the file descriptor isn't +/// changed. See the example in [`RawDir::new`]. +pub struct RawDir<'buf, Fd: AsFd> { + fd: Fd, + buf: &'buf mut [MaybeUninit], + initialized: usize, + offset: usize, +} + +impl<'buf, Fd: AsFd> RawDir<'buf, Fd> { + /// Create a new iterator from the given file descriptor and buffer. + /// + /// Note: the buffer size may be trimmed to accommodate alignment + /// requirements. + /// + /// # Examples + /// + /// ## Simple but non-portable + /// + /// These examples are non-portable, because file systems may not have a + /// maximum file name length. If you can make assumptions that bound + /// this length, then these examples may suffice. + /// + /// Using the heap: + /// + /// ``` + /// # use std::mem::MaybeUninit; + /// # use rustix::fs::{CWD, Mode, OFlags, openat, RawDir}; + /// # use rustix::cstr; + /// + /// let fd = openat( + /// CWD, + /// cstr!("."), + /// OFlags::RDONLY | OFlags::DIRECTORY | OFlags::CLOEXEC, + /// Mode::empty(), + /// ) + /// .unwrap(); + /// + /// let mut buf = Vec::with_capacity(8192); + /// let mut iter = RawDir::new(fd, buf.spare_capacity_mut()); + /// while let Some(entry) = iter.next() { + /// let entry = entry.unwrap(); + /// dbg!(&entry); + /// } + /// ``` + /// + /// Using the stack: + /// + /// ``` + /// # use std::mem::MaybeUninit; + /// # use rustix::fs::{CWD, Mode, OFlags, openat, RawDir}; + /// # use rustix::cstr; + /// + /// let fd = openat( + /// CWD, + /// cstr!("."), + /// OFlags::RDONLY | OFlags::DIRECTORY | OFlags::CLOEXEC, + /// Mode::empty(), + /// ) + /// .unwrap(); + /// + /// let mut buf = [MaybeUninit::uninit(); 2048]; + /// let mut iter = RawDir::new(fd, &mut buf); + /// while let Some(entry) = iter.next() { + /// let entry = entry.unwrap(); + /// dbg!(&entry); + /// } + /// ``` + /// + /// ## Portable + /// + /// Heap allocated growing buffer for supporting directory entries with + /// arbitrarily large file names: + /// + /// ```ignore + /// # // The `ignore` above can be removed when we can depend on Rust 1.65. + /// # use std::mem::MaybeUninit; + /// # use rustix::fs::{CWD, Mode, OFlags, openat, RawDir}; + /// # use rustix::io::Errno; + /// # use rustix::cstr; + /// + /// let fd = openat( + /// CWD, + /// cstr!("."), + /// OFlags::RDONLY | OFlags::DIRECTORY | OFlags::CLOEXEC, + /// Mode::empty(), + /// ) + /// .unwrap(); + /// + /// let mut buf = Vec::with_capacity(8192); + /// 'read: loop { + /// 'resize: { + /// let mut iter = RawDir::new(&fd, buf.spare_capacity_mut()); + /// while let Some(entry) = iter.next() { + /// let entry = match entry { + /// Err(Errno::INVAL) => break 'resize, + /// r => r.unwrap(), + /// }; + /// dbg!(&entry); + /// } + /// break 'read; + /// } + /// + /// let new_capacity = buf.capacity() * 2; + /// buf.reserve(new_capacity); + /// } + /// ``` + pub fn new(fd: Fd, buf: &'buf mut [MaybeUninit]) -> Self { + Self { + fd, + buf: { + let offset = buf.as_ptr().align_offset(align_of::()); + if offset < buf.len() { + &mut buf[offset..] + } else { + &mut [] + } + }, + initialized: 0, + offset: 0, + } + } +} + +/// A raw directory entry, similar to [`std::fs::DirEntry`]. +/// +/// Unlike the std version, this may represent the `.` or `..` entries. +pub struct RawDirEntry<'a> { + file_name: &'a CStr, + file_type: u8, + inode_number: u64, + next_entry_cookie: i64, +} + +impl<'a> fmt::Debug for RawDirEntry<'a> { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + let mut f = f.debug_struct("RawDirEntry"); + f.field("file_name", &self.file_name()); + f.field("file_type", &self.file_type()); + f.field("ino", &self.ino()); + f.field("next_entry_cookie", &self.next_entry_cookie()); + f.finish() + } +} + +impl<'a> RawDirEntry<'a> { + /// Returns the file name of this directory entry. + #[inline] + pub fn file_name(&self) -> &CStr { + self.file_name + } + + /// Returns the type of this directory entry. + #[inline] + pub fn file_type(&self) -> FileType { + FileType::from_dirent_d_type(self.file_type) + } + + /// Returns the inode number of this directory entry. + #[inline] + #[doc(alias = "inode_number")] + pub fn ino(&self) -> u64 { + self.inode_number + } + + /// Returns the seek cookie to the next directory entry. + #[inline] + #[doc(alias = "off")] + pub fn next_entry_cookie(&self) -> u64 { + self.next_entry_cookie as u64 + } +} + +impl<'buf, Fd: AsFd> RawDir<'buf, Fd> { + /// Identical to [`Iterator::next`] except that [`Iterator::Item`] borrows + /// from self. + /// + /// Note: this interface will be broken to implement a stdlib iterator API + /// with GAT support once one becomes available. + #[allow(unsafe_code)] + #[allow(clippy::should_implement_trait)] + pub fn next(&mut self) -> Option>> { + if self.is_buffer_empty() { + match getdents_uninit(self.fd.as_fd(), self.buf) { + Ok(0) => return None, + Ok(bytes_read) => { + self.initialized = bytes_read; + self.offset = 0; + } + Err(e) => return Some(Err(e)), + } + } + + let dirent_ptr = self.buf[self.offset..].as_ptr(); + // SAFETY: + // - This data is initialized by the check above. + // - Assumption: the kernel will not give us partial structs. + // - Assumption: the kernel uses proper alignment between structs. + // - The starting pointer is aligned (performed in `RawDir::new`). + let dirent = unsafe { &*dirent_ptr.cast::() }; + + self.offset += usize::from(dirent.d_reclen); + + Some(Ok(RawDirEntry { + file_type: dirent.d_type, + inode_number: dirent.d_ino.into(), + next_entry_cookie: dirent.d_off.into(), + // SAFETY: The kernel guarantees a NUL-terminated string. + file_name: unsafe { CStr::from_ptr(dirent.d_name.as_ptr().cast()) }, + })) + } + + /// Returns true if the internal buffer is empty and will be refilled when + /// calling [`next`]. + /// + /// [`next`]: Self::next + pub fn is_buffer_empty(&self) -> bool { + self.offset >= self.initialized + } +} + +/// ```compile_fail +/// use rustix::fs::{CWD, Mode, OFlags, RawDir, openat}; +/// use std::mem::MaybeUninit; +/// +/// let mut buf = [MaybeUninit::uninit(); 47]; +/// let fd = openat(CWD, c".", OFlags::DIRECTORY, Mode::empty()).unwrap(); +/// let mut iter = RawDir::new(fd, &mut buf); +/// let item1 = iter.next().unwrap(); +/// let item2 = iter.next().unwrap(); +/// println!("{item2:?}"); +/// println!("{item1:?}"); +/// ``` +fn _doctest() {} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/seek_from.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/seek_from.rs new file mode 100644 index 0000000000000000000000000000000000000000..bc0907cae35bf510698534eadf4cd0e72b1f5cb1 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/seek_from.rs @@ -0,0 +1,53 @@ +//! The following is derived from Rust's +//! library/std/src/io/mod.rs at revision +//! dca3f1b786efd27be3b325ed1e01e247aa589c3b. + +/// Enumeration of possible methods to seek within an I/O object. +/// +/// It is used by the [`seek`] function. +/// +/// This is similar to [`std::io::SeekFrom`], however it adds platform-specific +/// seek options. +/// +/// [`seek`]: crate::fs::seek +#[derive(Copy, PartialEq, Eq, Clone, Debug)] +#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] +pub enum SeekFrom { + /// Sets the offset to the provided number of bytes. + #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] + Start(#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] u64), + + /// Sets the offset to the size of this object plus the specified number of + /// bytes. + /// + /// It is possible to seek beyond the end of an object, but it's an error + /// to seek before byte 0. + #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] + End(#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] i64), + + /// Sets the offset to the current position plus the specified number of + /// bytes. + /// + /// It is possible to seek beyond the end of an object, but it's an error + /// to seek before byte 0. + #[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] + Current(#[cfg_attr(staged_api, stable(feature = "rust1", since = "1.0.0"))] i64), + + /// Sets the offset to the current position plus the specified number of + /// bytes, plus the distance to the next byte which is not in a hole. + /// + /// If the offset is in a hole at the end of the file, the seek will fail + /// with [`Errno::NXIO`]. + /// + /// [`Errno::NXIO`]: crate::io::Errno::NXIO + #[cfg(any(apple, freebsdlike, linux_kernel, solarish))] + Data(u64), + + /// Sets the offset to the current position plus the specified number of + /// bytes, plus the distance to the next byte which is in a hole. + /// + /// If there is no hole past the offset, it will be set to the end of the + /// file i.e. there is an implicit hole at the end of any file. + #[cfg(any(apple, freebsdlike, linux_kernel, solarish))] + Hole(u64), +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/sendfile.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/sendfile.rs new file mode 100644 index 0000000000000000000000000000000000000000..db3d60228f164a0f043e648a57892526d7c94077 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/sendfile.rs @@ -0,0 +1,20 @@ +use crate::{backend, io}; +use backend::fd::AsFd; + +/// `sendfile(out_fd, in_fd, offset, count)`—Transfer data between file +/// descriptors. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/sendfile.2.html +#[cfg(linux_kernel)] +#[inline] +pub fn sendfile( + out_fd: OutFd, + in_fd: InFd, + offset: Option<&mut u64>, + count: usize, +) -> io::Result { + backend::fs::syscalls::sendfile(out_fd.as_fd(), in_fd.as_fd(), offset, count) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/special.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/special.rs new file mode 100644 index 0000000000000000000000000000000000000000..276a775f7199ef35f3cec7f75104f97583574938 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/special.rs @@ -0,0 +1,80 @@ +//! The `CWD` and `ABS` constants, representing the current working directory +//! and absolute-only paths, respectively. +//! +//! # Safety +//! +//! This file uses `AT_FDCWD`, which is a raw file descriptor, but which is +//! always valid, and `-EBADF`, which is an undocumented by commonly used +//! convention of passing a value which will always fail if the accompanying +//! path isn't absolute. + +#![allow(unsafe_code)] + +use crate::backend; +use backend::c; +use backend::fd::{BorrowedFd, RawFd}; + +/// `AT_FDCWD`—A handle representing the current working directory. +/// +/// This is a file descriptor which refers to the process current directory +/// which can be used as the directory argument in `*at` functions such as +/// [`openat`]. +/// +/// # References +/// - [POSIX] +/// +/// [`openat`]: crate::fs::openat +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/fcntl.h.html +// SAFETY: `AT_FDCWD` is a reserved value that is never dynamically +// allocated, so it'll remain valid for the duration of `'static`. +#[cfg(not(target_os = "horizon"))] +#[doc(alias = "AT_FDCWD")] +pub const CWD: BorrowedFd<'static> = + unsafe { BorrowedFd::<'static>::borrow_raw(c::AT_FDCWD as RawFd) }; + +/// `-EBADF`—A handle that requires paths to be absolute. +/// +/// This is a file descriptor which refers to no directory, which can be used +/// as the directory argument in `*at` functions such as [`openat`], which +/// causes them to fail with [`BADF`] if the accompanying path is not absolute. +/// +/// This corresponds to the undocumented by commonly used convention of +/// passing `-EBADF` as the `dirfd` argument, which is ignored if the path is +/// absolute, and evokes an `EBADF` error otherwise. +/// +/// [`openat`]: crate::fs::openat +/// [`BADF`]: crate::io::Errno::BADF +// SAFETY: This `-EBADF` convention is commonly used, such as in lxc, so OS's +// aren't going to break it. +pub const ABS: BorrowedFd<'static> = + unsafe { BorrowedFd::<'static>::borrow_raw(c::EBADF.wrapping_neg() as RawFd) }; + +#[cfg(test)] +mod tests { + use super::*; + use crate::fd::AsRawFd as _; + + #[test] + fn test_cwd() { + assert!(CWD.as_raw_fd() != -1); + assert!(CWD.as_raw_fd() != c::STDIN_FILENO); + assert!(CWD.as_raw_fd() != c::STDOUT_FILENO); + assert!(CWD.as_raw_fd() != c::STDERR_FILENO); + #[cfg(linux_kernel)] + #[cfg(feature = "io_uring")] + assert!(CWD.as_raw_fd() != crate::io_uring::IORING_REGISTER_FILES_SKIP.as_raw_fd()); + } + + #[test] + fn test_abs() { + assert!(ABS.as_raw_fd() < 0); + assert!(ABS.as_raw_fd() != -1); + assert!(ABS.as_raw_fd() != c::AT_FDCWD); + assert!(ABS.as_raw_fd() != c::STDIN_FILENO); + assert!(ABS.as_raw_fd() != c::STDOUT_FILENO); + assert!(ABS.as_raw_fd() != c::STDERR_FILENO); + #[cfg(linux_kernel)] + #[cfg(feature = "io_uring")] + assert!(ABS.as_raw_fd() != crate::io_uring::IORING_REGISTER_FILES_SKIP.as_raw_fd()); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/statx.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/statx.rs new file mode 100644 index 0000000000000000000000000000000000000000..f8be29f7d0c430536b7a5a84d32ed4ad8d30e6f3 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/statx.rs @@ -0,0 +1,277 @@ +//! Linux `statx`. + +use crate::fd::AsFd; +use crate::fs::AtFlags; +use crate::{backend, io, path}; +use backend::c; +use bitflags::bitflags; + +#[cfg(feature = "linux_4_11")] +use backend::fs::syscalls::statx as _statx; +#[cfg(not(feature = "linux_4_11"))] +use compat::statx as _statx; + +/// `struct statx` for use with [`statx`]. +#[repr(C)] +#[derive(Debug, Copy, Clone)] +#[allow(missing_docs)] +#[non_exhaustive] +pub struct Statx { + pub stx_mask: u32, + pub stx_blksize: u32, + pub stx_attributes: StatxAttributes, + pub stx_nlink: u32, + pub stx_uid: u32, + pub stx_gid: u32, + pub stx_mode: u16, + pub(crate) __spare0: [u16; 1], + pub stx_ino: u64, + pub stx_size: u64, + pub stx_blocks: u64, + pub stx_attributes_mask: StatxAttributes, + pub stx_atime: StatxTimestamp, + pub stx_btime: StatxTimestamp, + pub stx_ctime: StatxTimestamp, + pub stx_mtime: StatxTimestamp, + pub stx_rdev_major: u32, + pub stx_rdev_minor: u32, + pub stx_dev_major: u32, + pub stx_dev_minor: u32, + pub stx_mnt_id: u64, + pub stx_dio_mem_align: u32, + pub stx_dio_offset_align: u32, + pub stx_subvol: u64, + pub stx_atomic_write_unit_min: u32, + pub stx_atomic_write_unit_max: u32, + pub stx_atomic_write_segments_max: u32, + pub stx_dio_read_offset_align: u32, + pub stx_atomic_write_unit_max_opt: u32, + pub __spare2: [u32; 1usize], + pub __spare3: [u64; 8usize], +} + +/// `struct statx_timestamp` for use with [`Statx`]. +#[repr(C)] +#[derive(Debug, Copy, Clone)] +#[non_exhaustive] +pub struct StatxTimestamp { + /// Seconds. + pub tv_sec: i64, + + /// Nanoseconds. Must be less than 1_000_000_000. + pub tv_nsec: u32, + + pub(crate) __reserved: i32, +} + +bitflags! { + /// `STATX_*` constants for use with [`statx`]. + /// + /// [`statx`]: crate::fs::statx + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct StatxFlags: u32 { + /// `STATX_TYPE` + const TYPE = c::STATX_TYPE; + + /// `STATX_MODE` + const MODE = c::STATX_MODE; + + /// `STATX_NLINK` + const NLINK = c::STATX_NLINK; + + /// `STATX_UID` + const UID = c::STATX_UID; + + /// `STATX_GID` + const GID = c::STATX_GID; + + /// `STATX_ATIME` + const ATIME = c::STATX_ATIME; + + /// `STATX_MTIME` + const MTIME = c::STATX_MTIME; + + /// `STATX_CTIME` + const CTIME = c::STATX_CTIME; + + /// `STATX_INO` + const INO = c::STATX_INO; + + /// `STATX_SIZE` + const SIZE = c::STATX_SIZE; + + /// `STATX_BLOCKS` + const BLOCKS = c::STATX_BLOCKS; + + /// `STATX_BASIC_STATS` + const BASIC_STATS = c::STATX_BASIC_STATS; + + /// `STATX_BTIME` + const BTIME = c::STATX_BTIME; + + /// `STATX_MNT_ID` (since Linux 5.8) + const MNT_ID = c::STATX_MNT_ID; + + /// `STATX_DIOALIGN` (since Linux 6.1) + const DIOALIGN = c::STATX_DIOALIGN; + + /// `STATX_ALL` + const ALL = c::STATX_ALL; + + /// + const _ = !0; + } +} + +bitflags! { + /// `STATX_ATTR_*` flags for use with [`Statx`]. + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct StatxAttributes: u64 { + /// `STATX_ATTR_COMPRESSED` + const COMPRESSED = c::STATX_ATTR_COMPRESSED as u64; + + /// `STATX_ATTR_IMMUTABLE` + const IMMUTABLE = c::STATX_ATTR_IMMUTABLE as u64; + + /// `STATX_ATTR_APPEND` + const APPEND = c::STATX_ATTR_APPEND as u64; + + /// `STATX_ATTR_NODUMP` + const NODUMP = c::STATX_ATTR_NODUMP as u64; + + /// `STATX_ATTR_ENCRYPTED` + const ENCRYPTED = c::STATX_ATTR_ENCRYPTED as u64; + + /// `STATX_ATTR_AUTOMOUNT` + const AUTOMOUNT = c::STATX_ATTR_AUTOMOUNT as u64; + + /// `STATX_ATTR_MOUNT_ROOT` + const MOUNT_ROOT = c::STATX_ATTR_MOUNT_ROOT as u64; + + /// `STATX_ATTR_VERITY` + const VERITY = c::STATX_ATTR_VERITY as u64; + + /// `STATX_ATTR_DAX` + const DAX = c::STATX_ATTR_DAX as u64; + + /// + const _ = !0; + } +} + +/// `statx(dirfd, path, flags, mask, statxbuf)`—Extended `stat`. +/// +/// This function returns [`io::Errno::NOSYS`] if `statx` is not available on +/// the platform, such as Linux before 4.11. This also includes older Docker +/// versions where the actual syscall fails with different error codes; rustix +/// handles this and translates them into `NOSYS`. +/// +/// # References +/// - [Linux] +/// +/// # Examples +/// +/// ``` +/// # use std::path::Path; +/// # use std::io; +/// # use rustix::fs::{AtFlags, StatxFlags}; +/// # use rustix::fd::BorrowedFd; +/// /// Try to determine if the provided path is a mount root. Will return +/// /// `Ok(None)` if the kernel is not new enough to support `statx` or +/// /// [`StatxAttributes::MOUNT_ROOT`]. +/// fn is_mountpoint(root: BorrowedFd<'_>, path: &Path) -> io::Result> { +/// use rustix::fs::{AtFlags, StatxAttributes, StatxFlags}; +/// +/// match rustix::fs::statx( +/// root, +/// path, +/// AtFlags::NO_AUTOMOUNT | AtFlags::SYMLINK_NOFOLLOW, +/// StatxFlags::empty(), +/// ) { +/// Ok(r) => { +/// let present = r.stx_attributes_mask.contains(StatxAttributes::MOUNT_ROOT); +/// Ok(present.then(|| r.stx_attributes.contains(StatxAttributes::MOUNT_ROOT))) +/// } +/// Err(rustix::io::Errno::NOSYS) => Ok(None), +/// Err(e) => Err(e.into()), +/// } +/// } +/// ``` +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/statx.2.html +#[inline] +pub fn statx( + dirfd: Fd, + path: P, + flags: AtFlags, + mask: StatxFlags, +) -> io::Result { + path.into_with_c_str(|path| _statx(dirfd.as_fd(), path, flags, mask)) +} + +#[cfg(not(feature = "linux_4_11"))] +mod compat { + use crate::fd::BorrowedFd; + use crate::ffi::CStr; + use crate::fs::{AtFlags, Statx, StatxFlags}; + use crate::{backend, io}; + use core::sync::atomic::{AtomicU8, Ordering}; + + // Linux kernel prior to 4.11 and old versions of Docker don't support + // `statx`. We store the availability in a global to avoid unnecessary + // syscalls. + // + // 0: Unknown + // 1: Not available + // 2: Available + static STATX_STATE: AtomicU8 = AtomicU8::new(0); + + #[inline] + pub fn statx( + dirfd: BorrowedFd<'_>, + path: &CStr, + flags: AtFlags, + mask: StatxFlags, + ) -> io::Result { + match STATX_STATE.load(Ordering::Relaxed) { + 0 => statx_init(dirfd, path, flags, mask), + 1 => Err(io::Errno::NOSYS), + _ => backend::fs::syscalls::statx(dirfd, path, flags, mask), + } + } + + /// The first `statx` call. We don't know if `statx` is available yet. + fn statx_init( + dirfd: BorrowedFd<'_>, + path: &CStr, + flags: AtFlags, + mask: StatxFlags, + ) -> io::Result { + match backend::fs::syscalls::statx(dirfd, path, flags, mask) { + Err(err) => statx_error(err), + result => { + STATX_STATE.store(2, Ordering::Relaxed); + result + } + } + } + + /// The first `statx` call failed. We can get a variety of error codes + /// from seccomp configs or faulty FUSE drivers, so we don't trust + /// `ENOSYS` or `EPERM` to tell us whether statx is available. + #[cold] + fn statx_error(err: io::Errno) -> io::Result { + if backend::fs::syscalls::is_statx_available() { + // Statx is available. Record this, and fail with the error + // code of the initial `statx` call. + STATX_STATE.store(2, Ordering::Relaxed); + Err(err) + } else { + // Statx is not available. Record this, and fail with `NOSYS`. + STATX_STATE.store(1, Ordering::Relaxed); + Err(io::Errno::NOSYS) + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/sync.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/sync.rs new file mode 100644 index 0000000000000000000000000000000000000000..cb5f070496bbbcfeb55017547ec7479c8b03bd4d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/sync.rs @@ -0,0 +1,14 @@ +use crate::backend; + +/// `sync`—Flush cached filesystem data for all filesystems. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/sync.html +/// [Linux]: https://man7.org/linux/man-pages/man2/sync.2.html +#[inline] +pub fn sync() { + backend::fs::syscalls::sync(); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/xattr.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/xattr.rs new file mode 100644 index 0000000000000000000000000000000000000000..ea0eaea1286bbdd0e5d31fcdcd472df5546b5ee3 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/fs/xattr.rs @@ -0,0 +1,256 @@ +//! Extended attribute functions. + +#![allow(unsafe_code)] + +use crate::buffer::Buffer; +use crate::{backend, ffi, io, path}; +use backend::c; +use backend::fd::AsFd; +use bitflags::bitflags; + +bitflags! { + /// `XATTR_*` constants for use with [`setxattr`], and other `*setxattr` + /// functions. + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct XattrFlags: ffi::c_uint { + /// `XATTR_CREATE` + const CREATE = c::XATTR_CREATE as c::c_uint; + + /// `XATTR_REPLACE` + const REPLACE = c::XATTR_REPLACE as c::c_uint; + + /// + const _ = !0; + } +} + +/// `getxattr(path, name, value)`—Get extended filesystem attributes. +/// +/// For a higher-level API to xattr functionality, see the [xattr] crate. +/// +/// [xattr]: https://crates.io/crates/xattr +/// +/// # References +/// - [Linux] +/// - [Apple] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/getxattr.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getxattr.2.html +#[inline] +pub fn getxattr>( + path: P, + name: Name, + mut value: Buf, +) -> io::Result { + path.into_with_c_str(|path| { + name.into_with_c_str(|name| { + // SAFETY: `getxattr` behaves. + let len = unsafe { backend::fs::syscalls::getxattr(path, name, value.parts_mut())? }; + // SAFETY: `getxattr` behaves. + unsafe { Ok(value.assume_init(len)) } + }) + }) +} + +/// `lgetxattr(path, name, value.as_ptr(), value.len())`—Get extended +/// filesystem attributes, without following symlinks in the last path +/// component. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/lgetxattr.2.html +#[inline] +pub fn lgetxattr>( + path: P, + name: Name, + mut value: Buf, +) -> io::Result { + path.into_with_c_str(|path| { + name.into_with_c_str(|name| { + // SAFETY: `lgetxattr` behaves. + let len = unsafe { backend::fs::syscalls::lgetxattr(path, name, value.parts_mut())? }; + // SAFETY: `lgetxattr` behaves. + unsafe { Ok(value.assume_init(len)) } + }) + }) +} + +/// `fgetxattr(fd, name, value.as_ptr(), value.len())`—Get extended +/// filesystem attributes on an open file descriptor. +/// +/// # References +/// - [Linux] +/// - [Apple] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/fgetxattr.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fgetxattr.2.html +#[inline] +pub fn fgetxattr>( + fd: Fd, + name: Name, + mut value: Buf, +) -> io::Result { + name.into_with_c_str(|name| { + // SAFETY: `fgetxattr` behaves. + let len = unsafe { backend::fs::syscalls::fgetxattr(fd.as_fd(), name, value.parts_mut())? }; + // SAFETY: `fgetxattr` behaves. + unsafe { Ok(value.assume_init(len)) } + }) +} + +/// `setxattr(path, name, value.as_ptr(), value.len(), flags)`—Set extended +/// filesystem attributes. +/// +/// # References +/// - [Linux] +/// - [Apple] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/setxattr.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/setxattr.2.html +#[inline] +pub fn setxattr( + path: P, + name: Name, + value: &[u8], + flags: XattrFlags, +) -> io::Result<()> { + path.into_with_c_str(|path| { + name.into_with_c_str(|name| backend::fs::syscalls::setxattr(path, name, value, flags)) + }) +} + +/// `setxattr(path, name, value.as_ptr(), value.len(), flags)`—Set extended +/// filesystem attributes, without following symlinks in the last path +/// component. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/lsetxattr.2.html +#[inline] +pub fn lsetxattr( + path: P, + name: Name, + value: &[u8], + flags: XattrFlags, +) -> io::Result<()> { + path.into_with_c_str(|path| { + name.into_with_c_str(|name| backend::fs::syscalls::lsetxattr(path, name, value, flags)) + }) +} + +/// `fsetxattr(fd, name, value.as_ptr(), value.len(), flags)`—Set extended +/// filesystem attributes on an open file descriptor. +/// +/// # References +/// - [Linux] +/// - [Apple] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/fsetxattr.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fsetxattr.2.html +#[inline] +pub fn fsetxattr( + fd: Fd, + name: Name, + value: &[u8], + flags: XattrFlags, +) -> io::Result<()> { + name.into_with_c_str(|name| backend::fs::syscalls::fsetxattr(fd.as_fd(), name, value, flags)) +} + +/// `listxattr(path, list.as_ptr(), list.len())`—List extended filesystem +/// attributes. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/listxattr.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/listxattr.2.html +#[inline] +pub fn listxattr>(path: P, mut list: Buf) -> io::Result { + path.into_with_c_str(|path| { + // SAFETY: `listxattr` behaves. + let len = unsafe { backend::fs::syscalls::listxattr(path, list.parts_mut())? }; + // SAFETY: `listxattr` behaves. + unsafe { Ok(list.assume_init(len)) } + }) +} + +/// `llistxattr(path, list.as_ptr(), list.len())`—List extended filesystem +/// attributes, without following symlinks in the last path component. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/llistxattr.2.html +#[inline] +pub fn llistxattr>( + path: P, + mut list: Buf, +) -> io::Result { + path.into_with_c_str(|path| { + // SAFETY: `flistxattr` behaves. + let len = unsafe { backend::fs::syscalls::llistxattr(path, list.parts_mut())? }; + // SAFETY: `flistxattr` behaves. + unsafe { Ok(list.assume_init(len)) } + }) +} + +/// `flistxattr(fd, list.as_ptr(), list.len())`—List extended filesystem +/// attributes on an open file descriptor. +/// +/// # References +/// - [Linux] +/// - [Apple] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/flistxattr.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/flistxattr.2.html +#[inline] +pub fn flistxattr>(fd: Fd, mut list: Buf) -> io::Result { + // SAFETY: `flistxattr` behaves. + let len = unsafe { backend::fs::syscalls::flistxattr(fd.as_fd(), list.parts_mut())? }; + // SAFETY: `flistxattr` behaves. + unsafe { Ok(list.assume_init(len)) } +} + +/// `removexattr(path, name)`—Remove an extended filesystem attribute. +/// +/// # References +/// - [Linux] +/// - [Apple] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/removexattr.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/removexattr.2.html +pub fn removexattr(path: P, name: Name) -> io::Result<()> { + path.into_with_c_str(|path| { + name.into_with_c_str(|name| backend::fs::syscalls::removexattr(path, name)) + }) +} + +/// `lremovexattr(path, name)`—Remove an extended filesystem attribute, +/// without following symlinks in the last path component. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/lremovexattr.2.html +pub fn lremovexattr(path: P, name: Name) -> io::Result<()> { + path.into_with_c_str(|path| { + name.into_with_c_str(|name| backend::fs::syscalls::lremovexattr(path, name)) + }) +} + +/// `fremovexattr(fd, name)`—Remove an extended filesystem attribute on an +/// open file descriptor. +/// +/// # References +/// - [Linux] +/// - [Apple] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/fremovexattr.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fremovexattr.2.html +pub fn fremovexattr(fd: Fd, name: Name) -> io::Result<()> { + name.into_with_c_str(|name| backend::fs::syscalls::fremovexattr(fd.as_fd(), name)) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io/close.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io/close.rs new file mode 100644 index 0000000000000000000000000000000000000000..9317edfec07dcf8271113ba79a3d483e07dbe4ff --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io/close.rs @@ -0,0 +1,71 @@ +//! The unsafe `close` for raw file descriptors. +//! +//! # Safety +//! +//! Operating on raw file descriptors is unsafe. +#![allow(unsafe_code)] + +use crate::backend; +use backend::fd::RawFd; + +/// `close(raw_fd)`—Closes a `RawFd` directly. +/// +/// Most users won't need to use this, as [`OwnedFd`] automatically closes its +/// file descriptor on `Drop`. +/// +/// This function does not return a `Result`, as it is the [responsibility] of +/// filesystem designers to not return errors from `close`. Users who chose to +/// use NFS or similar filesystems should take care to monitor for problems +/// externally. +/// +/// [responsibility]: https://lwn.net/Articles/576518/ +/// +/// # References +/// - [Beej's Guide to Network Programming] +/// - [POSIX] +/// - [Linux] +/// - [Apple] +/// - [Winsock] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [`OwnedFd`]: crate::fd::OwnedFd +/// [Beej's Guide to Network Programming]: https://beej.us/guide/bgnet/html/split/system-calls-or-bust.html#close-and-shutdownget-outta-my-face +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/close.html +/// [Linux]: https://man7.org/linux/man-pages/man2/close.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/close.2.html#//apple_ref/doc/man/2/close +/// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-closesocket +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=close&sektion=2 +/// [NetBSD]: https://man.netbsd.org/close.2 +/// [OpenBSD]: https://man.openbsd.org/close.2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=close§ion=2 +/// [illumos]: https://illumos.org/man/2/close +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Opening-and-Closing-Files.html#index-close +/// +/// # Safety +/// +/// This function takes a `RawFd`, which must be valid before the call, and is +/// not valid after the call. +#[inline] +pub unsafe fn close(raw_fd: RawFd) { + backend::io::syscalls::close(raw_fd) +} + +/// `close(raw_fd)`—Closes a `RawFd` directly, and report any errors returned +/// by the OS. +/// +/// The rustix developers do not intend the existence of this feature to imply +/// that anyone should use it. +/// +/// # Safety +/// +/// This function takes a `RawFd`, which must be valid before the call, and is +/// not valid after the call, even if it fails. +#[cfg(feature = "try_close")] +pub unsafe fn try_close(raw_fd: RawFd) -> crate::io::Result<()> { + backend::io::syscalls::try_close(raw_fd) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io/dup.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io/dup.rs new file mode 100644 index 0000000000000000000000000000000000000000..1d1a4852d9d8eaa761a7ec1cc69bf52568674211 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io/dup.rs @@ -0,0 +1,125 @@ +//! Functions which duplicate file descriptors. + +use crate::fd::OwnedFd; +use crate::{backend, io}; +use backend::fd::AsFd; + +#[cfg(not(target_os = "wasi"))] +pub use backend::io::types::DupFlags; + +/// `dup(fd)`—Creates a new `OwnedFd` instance that shares the same +/// underlying [file description] as `fd`. +/// +/// This function does not set the `O_CLOEXEC` flag. To do a `dup` that does +/// set `O_CLOEXEC`, use [`fcntl_dupfd_cloexec`]. +/// +/// POSIX guarantees that `dup` will use the lowest unused file descriptor, +/// however it is not safe in general to rely on this, as file descriptors may +/// be unexpectedly allocated on other threads or in libraries. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [Apple] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [file description]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap03.html#tag_03_258 +/// [`fcntl_dupfd_cloexec`]: crate::io::fcntl_dupfd_cloexec +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/dup.html +/// [Linux]: https://man7.org/linux/man-pages/man2/dup.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/dup.2.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=dup&sektion=2 +/// [NetBSD]: https://man.netbsd.org/dup.2 +/// [OpenBSD]: https://man.openbsd.org/dup.2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=dup§ion=2 +/// [illumos]: https://illumos.org/man/2/dup +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Duplicating-Descriptors.html +#[cfg(not(target_os = "wasi"))] +#[inline] +pub fn dup(fd: Fd) -> io::Result { + backend::io::syscalls::dup(fd.as_fd()) +} + +/// `dup2(fd, new)`—Changes the [file description] of a file descriptor. +/// +/// `dup2` conceptually closes `new` and then sets the file description for +/// `new` to be the same as the one for `fd`. This is a very unusual operation, +/// and should only be used on file descriptors where you know how `new` will +/// be subsequently used. +/// +/// This function does not set the `O_CLOEXEC` flag. To do a `dup2` that does +/// set `O_CLOEXEC`, use [`dup3`] with [`DupFlags::CLOEXEC`] on platforms which +/// support it, or [`fcntl_dupfd_cloexec`]. +/// +/// For `dup2` to stdin, stdout, and stderr, see [`stdio::dup2_stdin`], +/// [`stdio::dup2_stdout`], and [`stdio::dup2_stderr`]. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [Apple] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [file description]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap03.html#tag_03_258 +/// [`fcntl_dupfd_cloexec`]: crate::io::fcntl_dupfd_cloexec +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/dup2.html +/// [Linux]: https://man7.org/linux/man-pages/man2/dup2.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/dup2.2.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=dup2&sektion=2 +/// [NetBSD]: https://man.netbsd.org/dup2.2 +/// [OpenBSD]: https://man.openbsd.org/dup2.2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=dup2§ion=2 +/// [illumos]: https://illumos.org/man/2/dup +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Duplicating-Descriptors.html +/// [`stdio::dup2_stdin`]: crate::stdio::dup2_stdin +/// [`stdio::dup2_stdout`]: crate::stdio::dup2_stdout +/// [`stdio::dup2_stderr`]: crate::stdio::dup2_stderr +#[cfg(not(target_os = "wasi"))] +#[inline] +pub fn dup2(fd: Fd, new: &mut OwnedFd) -> io::Result<()> { + backend::io::syscalls::dup2(fd.as_fd(), new) +} + +/// `dup3(fd, new, flags)`—Changes the [file description] of a file +/// descriptor, with flags. +/// +/// `dup3` is the same as [`dup2`] but adds an additional flags operand, and it +/// fails in the case that `fd` and `new` have the same file descriptor value. +/// This additional difference is the reason this function isn't named +/// `dup2_with`. +/// +/// # References +/// - [Linux] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// +/// [file description]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap03.html#tag_03_258 +/// [Linux]: https://man7.org/linux/man-pages/man2/dup3.2.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=dup3&sektion=3 +/// [NetBSD]: https://man.netbsd.org/dup3.2 +/// [OpenBSD]: https://man.openbsd.org/dup3.2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=dup3§ion=3 +#[cfg(not(any( + target_os = "aix", + target_os = "espidf", + target_os = "horizon", + target_os = "nto", + target_os = "vita", + target_os = "wasi" +)))] +#[inline] +pub fn dup3(fd: Fd, new: &mut OwnedFd, flags: DupFlags) -> io::Result<()> { + backend::io::syscalls::dup3(fd.as_fd(), new, flags) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io/errno.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io/errno.rs new file mode 100644 index 0000000000000000000000000000000000000000..7d3eadf7ed9cfdd8a7e202b3e55e7439d26cc433 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io/errno.rs @@ -0,0 +1,74 @@ +//! The `Errno` type, which is a minimal wrapper around an error code. +//! +//! We define the error constants as individual `const`s instead of an enum +//! because we may not know about all of the host's error values and we don't +//! want unrecognized values to create undefined behavior. + +use crate::backend; +#[cfg(all(not(feature = "std"), error_in_core))] +use core::error; +use core::{fmt, result}; +#[cfg(feature = "std")] +use std::error; + +/// A specialized [`Result`] type for `rustix` APIs. +pub type Result = result::Result; + +pub use backend::io::errno::Errno; + +impl Errno { + /// Shorthand for `std::io::Error::from(self).kind()`. + #[cfg(feature = "std")] + #[inline] + pub fn kind(self) -> std::io::ErrorKind { + std::io::Error::from(self).kind() + } +} + +impl fmt::Display for Errno { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + #[cfg(feature = "std")] + { + std::io::Error::from(*self).fmt(f) + } + #[cfg(not(feature = "std"))] + { + write!(f, "os error {}", self.raw_os_error()) + } + } +} + +impl fmt::Debug for Errno { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + #[cfg(feature = "std")] + { + std::io::Error::from(*self).fmt(f) + } + #[cfg(not(feature = "std"))] + { + write!(f, "os error {}", self.raw_os_error()) + } + } +} + +#[cfg(any(feature = "std", error_in_core))] +impl error::Error for Errno {} + +#[cfg(feature = "std")] +impl From for std::io::Error { + #[inline] + fn from(err: Errno) -> Self { + Self::from_raw_os_error(err.raw_os_error() as _) + } +} + +/// Call `f` until it either succeeds or fails other than [`Errno::INTR`]. +#[inline] +pub fn retry_on_intr Result>(mut f: F) -> Result { + loop { + match f() { + Err(Errno::INTR) => (), + result => return result, + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io/fcntl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io/fcntl.rs new file mode 100644 index 0000000000000000000000000000000000000000..fcb63a3bad2a8517bc23e7b8c1d655dbdd7cbf9d --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io/fcntl.rs @@ -0,0 +1,143 @@ +//! The Unix `fcntl` function is effectively lots of different functions hidden +//! behind a single dynamic dispatch interface. In order to provide a type-safe +//! API, rustix makes them all separate functions so that they can have +//! dedicated static type signatures. +//! +//! `fcntl` functions which are not specific to files or directories live in +//! the [`io`] module instead. +//! +//! [`io`]: crate::io + +use crate::{backend, io}; +use backend::fd::{AsFd, OwnedFd, RawFd}; + +pub use backend::io::types::FdFlags; + +/// `fcntl(fd, F_GETFD)`—Returns a file descriptor's flags. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [Apple] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fcntl.html +/// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=fcntl&sektion=2 +/// [NetBSD]: https://man.netbsd.org/fcntl.2 +/// [OpenBSD]: https://man.openbsd.org/fcntl.2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=fcntl§ion=2 +/// [illumos]: https://illumos.org/man/2/fcntl +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Control-Operations.html#index-fcntl-function +#[inline] +#[doc(alias = "F_GETFD")] +pub fn fcntl_getfd(fd: Fd) -> io::Result { + backend::io::syscalls::fcntl_getfd(fd.as_fd()) +} + +/// `fcntl(fd, F_SETFD, flags)`—Sets a file descriptor's flags. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [Apple] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fcntl.html +/// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=fcntl&sektion=2 +/// [NetBSD]: https://man.netbsd.org/fcntl.2 +/// [OpenBSD]: https://man.openbsd.org/fcntl.2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=fcntl§ion=2 +/// [illumos]: https://illumos.org/man/2/fcntl +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Control-Operations.html#index-fcntl-function +#[inline] +#[doc(alias = "F_SETFD")] +pub fn fcntl_setfd(fd: Fd, flags: FdFlags) -> io::Result<()> { + backend::io::syscalls::fcntl_setfd(fd.as_fd(), flags) +} + +/// `fcntl(fd, F_DUPFD_CLOEXEC)`—Creates a new `OwnedFd` instance, with value +/// at least `min`, that has `O_CLOEXEC` set and that shares the same +/// underlying [file description] as `fd`. +/// +/// POSIX guarantees that `F_DUPFD_CLOEXEC` will use the lowest unused file +/// descriptor which is at least `min`, however it is not safe in general to +/// rely on this, as file descriptors may be unexpectedly allocated on other +/// threads or in libraries. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [Apple] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fcntl.html +/// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=fcntl&sektion=2 +/// [NetBSD]: https://man.netbsd.org/fcntl.2 +/// [OpenBSD]: https://man.openbsd.org/fcntl.2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=fcntl§ion=2 +/// [illumos]: https://illumos.org/man/2/fcntl +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Control-Operations.html#index-fcntl-function +/// [file description]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap03.html#tag_03_258 +#[cfg(not(any(target_os = "espidf", target_os = "wasi")))] +#[inline] +#[doc(alias = "F_DUPFD_CLOEXEC")] +pub fn fcntl_dupfd_cloexec(fd: Fd, min: RawFd) -> io::Result { + backend::io::syscalls::fcntl_dupfd_cloexec(fd.as_fd(), min) +} + +/// `fcntl(fd, F_DUPFD)`—Creates a new `OwnedFd` instance, with value at +/// least `min`, that shares the same underlying [file description] as `fd`. +/// +/// POSIX guarantees that `F_DUPFD` will use the lowest unused file descriptor +/// which is at least `min`, however it is not safe in general to rely on this, +/// as file descriptors may be unexpectedly allocated on other threads or in +/// libraries. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [Apple] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fcntl.html +/// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=fcntl&sektion=2 +/// [NetBSD]: https://man.netbsd.org/fcntl.2 +/// [OpenBSD]: https://man.openbsd.org/fcntl.2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=fcntl§ion=2 +/// [illumos]: https://illumos.org/man/2/fcntl +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Control-Operations.html#index-fcntl-function +/// [file description]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap03.html#tag_03_258 +#[cfg(target_os = "espidf")] +#[inline] +#[doc(alias = "F_DUPFD")] +pub fn fcntl_dupfd(fd: Fd, min: RawFd) -> io::Result { + backend::io::syscalls::fcntl_dupfd(fd.as_fd(), min) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io/ioctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io/ioctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..33bf07cf5ef5b2996b76904fca5e0e83d2840879 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io/ioctl.rs @@ -0,0 +1,98 @@ +//! The Unix `ioctl` function is effectively lots of different functions hidden +//! behind a single dynamic dispatch interface. In order to provide a type-safe +//! API, rustix makes them all separate functions so that they can have +//! dedicated static type signatures. +//! +//! Some ioctls, such as those related to filesystems, terminals, and +//! processes, live in other top-level API modules. + +#![allow(unsafe_code)] + +use crate::{backend, io, ioctl}; +use backend::c; +use backend::fd::AsFd; + +/// `ioctl(fd, FIOCLEX, NULL)`—Set the close-on-exec flag. +/// +/// This is similar to `fcntl(fd, F_SETFD, FD_CLOEXEC)`, except that it avoids +/// clearing any other flags that might be set. +/// +/// Linux: Note that `ioctl` can not be used on `OFlags::PATH` file +/// descriptors. +#[cfg(any(apple, linux_kernel))] +#[inline] +#[doc(alias = "FIOCLEX")] +#[doc(alias = "FD_CLOEXEC")] +pub fn ioctl_fioclex(fd: Fd) -> io::Result<()> { + // SAFETY: `FIOCLEX` is a no-argument setter opcode. + unsafe { + let ctl = ioctl::NoArg::<{ c::FIOCLEX }>::new(); + ioctl::ioctl(fd, ctl) + } +} + +/// `ioctl(fd, FIONCLEX, NULL)`—Remove the close-on-exec flag. +/// +/// This is similar to `fcntl_setfd(fd, FdFlags::empty())`, except that it avoids +/// clearing any other flags that might be set. +/// +/// Linux: Note that `ioctl` can not be used on `OFlags::PATH` file +/// descriptors. +#[cfg(any(apple, linux_kernel))] +#[inline] +#[doc(alias = "FIONCLEX")] +pub fn ioctl_fionclex(fd: Fd) -> io::Result<()> { + // SAFETY: `FIONCLEX` is a no-argument setter opcode. + unsafe { + let ctl = ioctl::NoArg::<{ c::FIONCLEX }>::new(); + ioctl::ioctl(fd, ctl) + } +} + +/// `ioctl(fd, FIONBIO, &value)`—Enables or disables non-blocking mode. +/// +/// # References +/// - [Winsock] +/// - [NetBSD] +/// - [OpenBSD] +/// +/// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/winsock/winsock-ioctls#unix-ioctl-codes +/// [NetBSD]: https://man.netbsd.org/ioctl.2#GENERIC%20IOCTLS +/// [OpenBSD]: https://man.openbsd.org/ioctl.2#GENERIC_IOCTLS +#[inline] +#[doc(alias = "FIONBIO")] +pub fn ioctl_fionbio(fd: Fd, value: bool) -> io::Result<()> { + // SAFETY: `FIONBIO` is a pointer setter opcode. + unsafe { + let ctl = ioctl::Setter::<{ c::FIONBIO }, c::c_int>::new(value.into()); + ioctl::ioctl(fd, ctl) + } +} + +/// `ioctl(fd, FIONREAD)`—Returns the number of bytes ready to be read. +/// +/// The result of this function gets silently coerced into a C `int` by the OS, +/// so it may contain a wrapped value. +/// +/// # References +/// - [Linux] +/// - [Winsock] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/ioctl_tty.2.html +/// [Winsock]: https://docs.microsoft.com/en-us/windows/win32/winsock/winsock-ioctls#unix-ioctl-codes +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=ioctl&sektion=2#GENERIC%09IOCTLS +/// [NetBSD]: https://man.netbsd.org/ioctl.2#GENERIC%20IOCTLS +/// [OpenBSD]: https://man.openbsd.org/ioctl.2#GENERIC_IOCTLS +#[cfg(not(any(target_os = "espidf", target_os = "horizon", target_os = "vita")))] +#[inline] +#[doc(alias = "FIONREAD")] +pub fn ioctl_fionread(fd: Fd) -> io::Result { + // SAFETY: `FIONREAD` is a getter opcode that gets a `c_int`. + unsafe { + let ctl = ioctl::Getter::<{ c::FIONREAD }, c::c_int>::new(); + ioctl::ioctl(fd, ctl).map(|n| n as u64) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..a2994d74ae5921918cbf631718be32ed45cabe35 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io/mod.rs @@ -0,0 +1,24 @@ +//! I/O operations. +//! +//! If you're looking for [`SeekFrom`], it's in the [`fs`] module. +//! +//! [`SeekFrom`]: crate::fs::SeekFrom +//! [`fs`]: crate::fs + +mod close; +#[cfg(not(windows))] +mod dup; +mod errno; +#[cfg(not(windows))] +mod fcntl; +mod ioctl; +mod read_write; + +pub use close::*; +#[cfg(not(windows))] +pub use dup::*; +pub use errno::{retry_on_intr, Errno, Result}; +#[cfg(not(windows))] +pub use fcntl::*; +pub use ioctl::*; +pub use read_write::*; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io/read_write.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io/read_write.rs new file mode 100644 index 0000000000000000000000000000000000000000..0e0969103291ae920e96f6e68a927bf05a332c70 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io/read_write.rs @@ -0,0 +1,310 @@ +//! `read` and `write`, optionally positioned, optionally vectored. + +#![allow(unsafe_code)] + +use crate::buffer::Buffer; +use crate::{backend, io}; +use backend::fd::AsFd; + +// Declare `IoSlice` and `IoSliceMut`. +#[cfg(not(windows))] +pub use crate::maybe_polyfill::io::{IoSlice, IoSliceMut}; + +#[cfg(all(linux_kernel, not(target_os = "android")))] +pub use backend::io::types::ReadWriteFlags; + +/// `read(fd, buf)`—Reads from a stream. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [Apple] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/read.html +/// [Linux]: https://man7.org/linux/man-pages/man2/read.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/read.2.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=read&sektion=2 +/// [NetBSD]: https://man.netbsd.org/read.2 +/// [OpenBSD]: https://man.openbsd.org/read.2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=read§ion=2 +/// [illumos]: https://illumos.org/man/2/read +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/I_002fO-Primitives.html#index-reading-from-a-file-descriptor +#[inline] +pub fn read>(fd: Fd, mut buf: Buf) -> io::Result { + // SAFETY: `read` behaves. + let len = unsafe { backend::io::syscalls::read(fd.as_fd(), buf.parts_mut())? }; + // SAFETY: `read` behaves. + unsafe { Ok(buf.assume_init(len)) } +} + +/// `write(fd, buf)`—Writes to a stream. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [Apple] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/write.html +/// [Linux]: https://man7.org/linux/man-pages/man2/write.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/write.2.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=write&sektion=2 +/// [NetBSD]: https://man.netbsd.org/write.2 +/// [OpenBSD]: https://man.openbsd.org/write.2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=write§ion=2 +/// [illumos]: https://illumos.org/man/2/write +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/I_002fO-Primitives.html#index-writing-to-a-file-descriptor +#[inline] +pub fn write(fd: Fd, buf: &[u8]) -> io::Result { + backend::io::syscalls::write(fd.as_fd(), buf) +} + +/// `pread(fd, buf, offset)`—Reads from a file at a given position. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [Apple] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/pread.html +/// [Linux]: https://man7.org/linux/man-pages/man2/pread.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/pread.2.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=pread&sektion=2 +/// [NetBSD]: https://man.netbsd.org/pread.2 +/// [OpenBSD]: https://man.openbsd.org/pread.2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=pread§ion=2 +/// [illumos]: https://illumos.org/man/2/pread +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/I_002fO-Primitives.html#index-pread64 +#[cfg(not(windows))] +#[inline] +pub fn pread>( + fd: Fd, + mut buf: Buf, + offset: u64, +) -> io::Result { + // SAFETY: `pread` behaves. + let len = unsafe { backend::io::syscalls::pread(fd.as_fd(), buf.parts_mut(), offset)? }; + // SAFETY: `pread` behaves. + unsafe { Ok(buf.assume_init(len)) } +} + +/// `pwrite(fd, bufs)`—Writes to a file at a given position. +/// +/// Contrary to POSIX, on many popular platforms including Linux and FreeBSD, +/// if the file is opened in append mode, this ignores the offset appends the +/// data to the end of the file. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [Apple] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/pwrite.html +/// [Linux]: https://man7.org/linux/man-pages/man2/pwrite.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/pwrite.2.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=pwrite&sektion=2 +/// [NetBSD]: https://man.netbsd.org/pwrite.2 +/// [OpenBSD]: https://man.openbsd.org/pwrite.2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=pwrite§ion=2 +/// [illumos]: https://illumos.org/man/2/pwrite +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/I_002fO-Primitives.html#index-pwrite64 +#[cfg(not(windows))] +#[inline] +pub fn pwrite(fd: Fd, buf: &[u8], offset: u64) -> io::Result { + backend::io::syscalls::pwrite(fd.as_fd(), buf, offset) +} + +/// `readv(fd, bufs)`—Reads from a stream into multiple buffers. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [Apple] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/readv.html +/// [Linux]: https://man7.org/linux/man-pages/man2/readv.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/readv.2.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=readv&sektion=2 +/// [NetBSD]: https://man.netbsd.org/readv.2 +/// [OpenBSD]: https://man.openbsd.org/readv.2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=readv§ion=2 +/// [illumos]: https://illumos.org/man/2/readv +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Scatter_002dGather.html#index-readv +#[cfg(not(any(windows, target_os = "espidf", target_os = "horizon")))] +#[inline] +pub fn readv(fd: Fd, bufs: &mut [IoSliceMut<'_>]) -> io::Result { + backend::io::syscalls::readv(fd.as_fd(), bufs) +} + +/// `writev(fd, bufs)`—Writes to a stream from multiple buffers. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [Apple] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/writev.html +/// [Linux]: https://man7.org/linux/man-pages/man2/writev.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/writev.2.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=writev&sektion=2 +/// [NetBSD]: https://man.netbsd.org/writev.2 +/// [OpenBSD]: https://man.openbsd.org/writev.2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=writev§ion=2 +/// [illumos]: https://illumos.org/man/2/writev +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Scatter_002dGather.html#index-writev +#[cfg(not(any(windows, target_os = "espidf", target_os = "horizon")))] +#[inline] +pub fn writev(fd: Fd, bufs: &[IoSlice<'_>]) -> io::Result { + backend::io::syscalls::writev(fd.as_fd(), bufs) +} + +/// `preadv(fd, bufs, offset)`—Reads from a file at a given position into +/// multiple buffers. +/// +/// # References +/// - [Linux] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/preadv.2.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=preadv&sektion=2 +/// [NetBSD]: https://man.netbsd.org/preadv.2 +/// [OpenBSD]: https://man.openbsd.org/preadv.2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=preadv§ion=2 +/// [illumos]: https://illumos.org/man/2/preadv +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Scatter_002dGather.html#index-preadv64 +#[cfg(not(any( + windows, + target_os = "cygwin", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "nto", + target_os = "redox", + target_os = "solaris", + target_os = "vita", +)))] +#[inline] +pub fn preadv(fd: Fd, bufs: &mut [IoSliceMut<'_>], offset: u64) -> io::Result { + backend::io::syscalls::preadv(fd.as_fd(), bufs, offset) +} + +/// `pwritev(fd, bufs, offset)`—Writes to a file at a given position from +/// multiple buffers. +/// +/// Contrary to POSIX, on many popular platforms including Linux and FreeBSD, +/// if the file is opened in append mode, this ignores the offset appends the +/// data to the end of the file. +/// +/// # References +/// - [Linux] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/pwritev.2.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=pwritev&sektion=2 +/// [NetBSD]: https://man.netbsd.org/pwritev.2 +/// [OpenBSD]: https://man.openbsd.org/pwritev.2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=pwritev§ion=2 +/// [illumos]: https://illumos.org/man/2/pwritev +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/I_002fO-Primitives.html#index-pwrite64 +#[cfg(not(any( + windows, + target_os = "cygwin", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "nto", + target_os = "redox", + target_os = "solaris", + target_os = "vita", +)))] +#[inline] +pub fn pwritev(fd: Fd, bufs: &[IoSlice<'_>], offset: u64) -> io::Result { + backend::io::syscalls::pwritev(fd.as_fd(), bufs, offset) +} + +/// `preadv2(fd, bufs, offset, flags)`—Reads data, with several options. +/// +/// An `offset` of `u64::MAX` means to use and update the current file offset. +/// +/// # References +/// - [Linux] +/// - [glibc] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/preadv2.2.html +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Scatter_002dGather.html#index-preadv64v2 +#[cfg(all(linux_kernel, not(target_os = "android")))] +#[inline] +pub fn preadv2( + fd: Fd, + bufs: &mut [IoSliceMut<'_>], + offset: u64, + flags: ReadWriteFlags, +) -> io::Result { + backend::io::syscalls::preadv2(fd.as_fd(), bufs, offset, flags) +} + +/// `pwritev2(fd, bufs, offset, flags)`—Writes data, with several options. +/// +/// An `offset` of `u64::MAX` means to use and update the current file offset. +/// +/// # References +/// - [Linux] +/// - [glibc] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/pwritev2.2.html +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Scatter_002dGather.html#index-pwritev64v2 +#[cfg(all(linux_kernel, not(target_os = "android")))] +#[inline] +pub fn pwritev2( + fd: Fd, + bufs: &[IoSlice<'_>], + offset: u64, + flags: ReadWriteFlags, +) -> io::Result { + backend::io::syscalls::pwritev2(fd.as_fd(), bufs, offset, flags) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io_uring/bindgen_types.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io_uring/bindgen_types.rs new file mode 100644 index 0000000000000000000000000000000000000000..c45aefb679d586f515d48b571cf519f8a9a5c875 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io_uring/bindgen_types.rs @@ -0,0 +1,101 @@ +//! Local versions of types that bindgen would use. + +use crate::utils::{as_mut_ptr, as_ptr}; + +/// This represents an incomplete array field at the end of a struct. +/// +/// This is called `__IncompleteArrayField` in bindgen bindings. +#[repr(C)] +#[derive(Default)] +pub struct IncompleteArrayField(::core::marker::PhantomData, [T; 0]); + +#[allow(missing_docs)] +impl IncompleteArrayField { + #[inline] + pub const fn new() -> Self { + Self(::core::marker::PhantomData, []) + } + + #[inline] + pub fn as_ptr(&self) -> *const T { + as_ptr(self).cast::() + } + + #[inline] + pub fn as_mut_ptr(&mut self) -> *mut T { + as_mut_ptr(self).cast::() + } + + #[inline] + pub unsafe fn as_slice(&self, len: usize) -> &[T] { + ::core::slice::from_raw_parts(self.as_ptr(), len) + } + + #[inline] + pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { + ::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len) + } +} + +impl ::core::fmt::Debug for IncompleteArrayField { + fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fmt.write_str("IncompleteArrayField") + } +} + +/// This represents a toplevel union field. +/// +/// This is called `__BindgenUnionField` in bindgen bindings. +pub struct UnionField(::core::marker::PhantomData); + +#[allow(missing_docs)] +impl UnionField { + #[inline] + pub const fn new() -> Self { + Self(::core::marker::PhantomData) + } + + #[inline] + pub unsafe fn as_ref(&self) -> &T { + ::core::mem::transmute(self) + } + + #[inline] + pub unsafe fn as_mut(&mut self) -> &mut T { + ::core::mem::transmute(self) + } +} + +impl ::core::default::Default for UnionField { + #[inline] + fn default() -> Self { + Self::new() + } +} + +impl ::core::clone::Clone for UnionField { + #[inline] + fn clone(&self) -> Self { + *self + } +} + +impl ::core::marker::Copy for UnionField {} + +impl ::core::fmt::Debug for UnionField { + fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + fmt.write_str("UnionField") + } +} + +impl ::core::hash::Hash for UnionField { + fn hash(&self, _state: &mut H) {} +} + +impl ::core::cmp::PartialEq for UnionField { + fn eq(&self, _other: &Self) -> bool { + true + } +} + +impl ::core::cmp::Eq for UnionField {} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io_uring/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io_uring/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..f4084ef17955cf1128f279ad170009e312dfe36b --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/io_uring/mod.rs @@ -0,0 +1,2213 @@ +//! Linux [io_uring]. +//! +//! This API is very low-level. The main adaptations it makes from the raw +//! Linux io_uring API are the use of appropriately-sized `bitflags`, `enum`, +//! `Result`, `OwnedFd`, `AsFd`, `RawFd`, and `*mut c_void` in place of plain +//! integers. +//! +//! For a higher-level API built on top of this, see the [rustix-uring] crate. +//! +//! # Safety +//! +//! io_uring operates on raw pointers and raw file descriptors. Rustix does not +//! attempt to provide a safe API for these, because the abstraction level is +//! too low for this to be practical. Safety should be introduced in +//! higher-level abstraction layers. +//! +//! # References +//! - [Linux] +//! - [io_uring header] +//! +//! [Linux]: https://www.man7.org/linux/man-pages/man7/io_uring.7.html +//! [io_uring]: https://en.wikipedia.org/wiki/Io_uring +//! [io_uring header]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/io_uring.h?h=v6.13 +//! [rustix-uring]: https://crates.io/crates/rustix-uring +#![allow(unsafe_code)] + +mod bindgen_types; + +use crate::fd::{AsFd, BorrowedFd, OwnedFd, RawFd}; +use crate::utils::option_as_ptr; +use crate::{backend, io}; +use bindgen_types::*; +use core::cmp::Ordering; +use core::ffi::c_void; +use core::hash::{Hash, Hasher}; +use core::mem::size_of; +use core::ptr::null_mut; +use linux_raw_sys::net; + +// Export types used in io_uring APIs. +pub use crate::clockid::ClockId; +pub use crate::event::epoll::{ + Event as EpollEvent, EventData as EpollEventData, EventFlags as EpollEventFlags, +}; +pub use crate::ffi::c_char; +pub use crate::fs::{ + Advice, AtFlags, Mode, OFlags, RenameFlags, ResolveFlags, Statx, StatxFlags, XattrFlags, +}; +pub use crate::io::ReadWriteFlags; +pub use crate::kernel_sigset::KernelSigSet; +pub use crate::net::addr::{SocketAddrLen, SocketAddrOpaque, SocketAddrStorage}; +pub use crate::net::{RecvFlags, SendFlags, SocketFlags}; +pub use crate::signal::Signal; +pub use crate::thread::futex::{ + Wait as FutexWait, WaitFlags as FutexWaitFlags, WaitPtr as FutexWaitPtr, + WaitvFlags as FutexWaitvFlags, +}; +pub use crate::timespec::{Nsecs, Secs, Timespec}; + +mod sys { + pub(super) use linux_raw_sys::io_uring::*; + #[cfg(test)] + pub(super) use { + crate::backend::c::iovec, linux_raw_sys::general::open_how, linux_raw_sys::net::msghdr, + }; +} + +/// `msghdr` +#[allow(missing_docs)] +#[repr(C)] +pub struct MsgHdr { + pub msg_name: *mut c_void, + pub msg_namelen: SocketAddrLen, + pub msg_iov: *mut iovec, + pub msg_iovlen: usize, + pub msg_control: *mut c_void, + pub msg_controllen: usize, + pub msg_flags: RecvFlags, +} + +/// `io_uring_setup(entries, params)`—Setup a context for performing +/// asynchronous I/O. +/// +/// # Safety +/// +/// If [`IoringSetupFlags::ATTACH_WQ`] is set, the `wq_fd` field of +/// `io_uring_params` must be an open file descriptor. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://www.man7.org/linux/man-pages/man2/io_uring_setup.2.html +#[inline] +pub unsafe fn io_uring_setup(entries: u32, params: &mut io_uring_params) -> io::Result { + backend::io_uring::syscalls::io_uring_setup(entries, params) +} + +/// `io_uring_register(fd, opcode, arg, nr_args)`—Register files or user +/// buffers for asynchronous I/O. +/// +/// To pass flags, use [`io_uring_register_with`]. +/// +/// # Safety +/// +/// io_uring operates on raw pointers and raw file descriptors. Users are +/// responsible for ensuring that memory and resources are only accessed in +/// valid ways. +/// +/// If `opcode` is `IoringRegisterOp::RegisterRingFds`, `arg` must point to +/// mutable memory, despite being `*const`. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://www.man7.org/linux/man-pages/man2/io_uring_register.2.html +#[inline] +pub unsafe fn io_uring_register( + fd: Fd, + opcode: IoringRegisterOp, + arg: *const c_void, + nr_args: u32, +) -> io::Result { + backend::io_uring::syscalls::io_uring_register(fd.as_fd(), opcode, arg, nr_args) +} + +/// `io_uring_register_with(fd, opcode, flags, arg, nr_args)`—Register files or +/// user buffers for asynchronous I/O. +/// +/// # Safety +/// +/// io_uring operates on raw pointers and raw file descriptors. Users are +/// responsible for ensuring that memory and resources are only accessed in +/// valid ways. +/// +/// If `opcode` is `IoringRegisterOp::RegisterRingFds`, `arg` must point to +/// mutable memory, despite being `*const`. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://www.man7.org/linux/man-pages/man2/io_uring_register.2.html +#[inline] +pub unsafe fn io_uring_register_with( + fd: Fd, + opcode: IoringRegisterOp, + flags: IoringRegisterFlags, + arg: *const c_void, + nr_args: u32, +) -> io::Result { + backend::io_uring::syscalls::io_uring_register_with(fd.as_fd(), opcode, flags, arg, nr_args) +} + +/// `io_uring_enter(fd, to_submit, min_complete, flags, 0, 0)`—Initiate +/// and/or complete asynchronous I/O. +/// +/// This version has no `arg` argument. To pass: +/// - a signal mask, use [`io_uring_enter_sigmask`]. +/// - an [`io_uring_getevents_arg`], use [`io_uring_enter_arg`] (aka +/// `io_uring_enter2`). +/// +/// # Safety +/// +/// io_uring operates on raw pointers and raw file descriptors. Users are +/// responsible for ensuring that memory and resources are only accessed in +/// valid ways. +/// +/// And, `flags` must not have [`IoringEnterFlags::EXT_ARG`] or +/// [`IoringEnterFlags::EXT_ARG_REG`] set. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://www.man7.org/linux/man-pages/man2/io_uring_enter.2.html +#[doc(alias = "io_uring_enter2")] +#[inline] +pub unsafe fn io_uring_enter( + fd: Fd, + to_submit: u32, + min_complete: u32, + flags: IoringEnterFlags, +) -> io::Result { + debug_assert!(!flags.contains(IoringEnterFlags::EXT_ARG)); + debug_assert!(!flags.contains(IoringEnterFlags::EXT_ARG_REG)); + + backend::io_uring::syscalls::io_uring_enter( + fd.as_fd(), + to_submit, + min_complete, + flags, + null_mut(), + 0, + ) +} + +/// `io_uring_enter(fd, to_submit, min_complete, flags, sigmask, +/// sizeof(*sigmask))`— Initiate and/or complete asynchronous I/O, with a +/// signal mask. +/// +/// # Safety +/// +/// io_uring operates on raw pointers and raw file descriptors. Users are +/// responsible for ensuring that memory and resources are only accessed in +/// valid ways. +/// +/// And, `flags` must not have [`IoringEnterFlags::EXT_ARG`] or +/// [`IoringEnterFlags::EXT_ARG_REG`] set. +/// +/// And, the `KernelSigSet` referred to by `arg` must not contain any signal +/// numbers reserved by libc. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://www.man7.org/linux/man-pages/man2/io_uring_enter.2.html +#[doc(alias = "io_uring_enter")] +#[inline] +pub unsafe fn io_uring_enter_sigmask( + fd: Fd, + to_submit: u32, + min_complete: u32, + flags: IoringEnterFlags, + sigmask: Option<&KernelSigSet>, +) -> io::Result { + debug_assert!(!flags.contains(IoringEnterFlags::EXT_ARG)); + debug_assert!(!flags.contains(IoringEnterFlags::EXT_ARG_REG)); + + backend::io_uring::syscalls::io_uring_enter( + fd.as_fd(), + to_submit, + min_complete, + flags, + option_as_ptr(sigmask).cast::(), + size_of::(), + ) +} + +/// `io_uring_enter2(fd, to_submit, min_complete, flags, arg, sizeof(*arg))`— +/// Initiate and/or complete asynchronous I/O, with a signal mask and a +/// timeout. +/// +/// # Safety +/// +/// io_uring operates on raw pointers and raw file descriptors. Users are +/// responsible for ensuring that memory and resources are only accessed in +/// valid ways. +/// +/// And, `flags` must have [`IoringEnterFlags::EXT_ARG`] set, and must not have +/// [`IoringEnterFlags::EXT_ARG_REG`] set. +/// +/// And, the `KernelSigSet` pointed to by the `io_uring_getenvets_arg` referred +/// to by `arg` must not contain any signal numbers reserved by libc. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://www.man7.org/linux/man-pages/man2/io_uring_enter.2.html +#[doc(alias = "io_uring_enter")] +#[doc(alias = "io_uring_enter2")] +#[inline] +pub unsafe fn io_uring_enter_arg( + fd: Fd, + to_submit: u32, + min_complete: u32, + flags: IoringEnterFlags, + arg: Option<&io_uring_getevents_arg>, +) -> io::Result { + debug_assert!(flags.contains(IoringEnterFlags::EXT_ARG)); + debug_assert!(!flags.contains(IoringEnterFlags::EXT_ARG_REG)); + + backend::io_uring::syscalls::io_uring_enter( + fd.as_fd(), + to_submit, + min_complete, + flags, + option_as_ptr(arg).cast::(), + size_of::(), + ) +} + +// TODO: Uncomment this when we support `IoringRegisterOp::CQWAIT_REG`. +/* +/// `io_uring_enter2(fd, to_submit, min_complete, flags, offset, +/// sizeof(io_uring_reg_wait))`— Initiate and/or complete asynchronous I/O, +/// using a previously registered `io_uring_reg_wait`. +/// +/// `offset` is an offset into an area of wait regions previously registered +/// with [`io_uring_register`] using the [`IoringRegisterOp::CQWAIT_REG`] +/// operation. +/// +/// # Safety +/// +/// io_uring operates on raw pointers and raw file descriptors. Users are +/// responsible for ensuring that memory and resources are only accessed in +/// valid ways. +/// +/// And, `flags` must have [`IoringEnterFlags::EXT_ARG_REG`] set, and must not +/// have [`IoringEnterFlags::EXT_ARG`] set. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://www.man7.org/linux/man-pages/man2/io_uring_enter.2.html +#[doc(alias = "io_uring_enter")] +#[doc(alias = "io_uring_enter2")] +#[inline] +pub unsafe fn io_uring_enter_reg_wait( + fd: Fd, + to_submit: u32, + min_complete: u32, + flags: IoringEnterFlags, + reg_wait: usize, +) -> io::Result { + debug_assert!(!flags.contains(IoringEnterFlags::EXT_ARG)); + debug_assert!(flags.contains(IoringEnterFlags::EXT_ARG_REG)); + + backend::io_uring::syscalls::io_uring_enter( + fd.as_fd(), + to_submit, + min_complete, + flags, + reg_wait as *mut c_void, + size_of::(), + ) +} +*/ + +bitflags::bitflags! { + /// `IORING_ENTER_*` flags for use with [`io_uring_enter`]. + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct IoringEnterFlags: u32 { + /// `IORING_ENTER_GETEVENTS` + const GETEVENTS = sys::IORING_ENTER_GETEVENTS; + + /// `IORING_ENTER_SQ_WAKEUP` + const SQ_WAKEUP = sys::IORING_ENTER_SQ_WAKEUP; + + /// `IORING_ENTER_SQ_WAIT` + const SQ_WAIT = sys::IORING_ENTER_SQ_WAIT; + + /// `IORING_ENTER_EXT_ARG` (since Linux 5.11) + const EXT_ARG = sys::IORING_ENTER_EXT_ARG; + + /// `IORING_ENTER_REGISTERED_RING` + const REGISTERED_RING = sys::IORING_ENTER_REGISTERED_RING; + + /// `IORING_ENTER_ABS_TIMER` (since Linux 6.12) + const ABS_TIMER = sys::IORING_ENTER_ABS_TIMER; + + /// `IORING_ENTER_EXT_ARG_REG` (since Linux 6.12) + const EXT_ARG_REG = sys::IORING_ENTER_EXT_ARG_REG; + + /// + const _ = !0; + } +} + +/// `IORING_REGISTER_*` and `IORING_UNREGISTER_*` constants for use with +/// [`io_uring_register`]. +#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)] +#[repr(u8)] +#[non_exhaustive] +pub enum IoringRegisterOp { + /// `IORING_REGISTER_BUFFERS` + RegisterBuffers = sys::io_uring_register_op::IORING_REGISTER_BUFFERS as _, + + /// `IORING_UNREGISTER_BUFFERS` + UnregisterBuffers = sys::io_uring_register_op::IORING_UNREGISTER_BUFFERS as _, + + /// `IORING_REGISTER_FILES` + RegisterFiles = sys::io_uring_register_op::IORING_REGISTER_FILES as _, + + /// `IORING_UNREGISTER_FILES` + UnregisterFiles = sys::io_uring_register_op::IORING_UNREGISTER_FILES as _, + + /// `IORING_REGISTER_EVENTFD` + RegisterEventfd = sys::io_uring_register_op::IORING_REGISTER_EVENTFD as _, + + /// `IORING_UNREGISTER_EVENTFD` + UnregisterEventfd = sys::io_uring_register_op::IORING_UNREGISTER_EVENTFD as _, + + /// `IORING_REGISTER_FILES_UPDATE` + RegisterFilesUpdate = sys::io_uring_register_op::IORING_REGISTER_FILES_UPDATE as _, + + /// `IORING_REGISTER_EVENTFD_ASYNC` + RegisterEventfdAsync = sys::io_uring_register_op::IORING_REGISTER_EVENTFD_ASYNC as _, + + /// `IORING_REGISTER_PROBE` + RegisterProbe = sys::io_uring_register_op::IORING_REGISTER_PROBE as _, + + /// `IORING_REGISTER_PERSONALITY` + RegisterPersonality = sys::io_uring_register_op::IORING_REGISTER_PERSONALITY as _, + + /// `IORING_UNREGISTER_PERSONALITY` + UnregisterPersonality = sys::io_uring_register_op::IORING_UNREGISTER_PERSONALITY as _, + + /// `IORING_REGISTER_RESTRICTIONS` + RegisterRestrictions = sys::io_uring_register_op::IORING_REGISTER_RESTRICTIONS as _, + + /// `IORING_REGISTER_ENABLE_RINGS` + RegisterEnableRings = sys::io_uring_register_op::IORING_REGISTER_ENABLE_RINGS as _, + + /// `IORING_REGISTER_BUFFERS2` + RegisterBuffers2 = sys::io_uring_register_op::IORING_REGISTER_BUFFERS2 as _, + + /// `IORING_REGISTER_BUFFERS_UPDATE` + RegisterBuffersUpdate = sys::io_uring_register_op::IORING_REGISTER_BUFFERS_UPDATE as _, + + /// `IORING_REGISTER_FILES2` + RegisterFiles2 = sys::io_uring_register_op::IORING_REGISTER_FILES2 as _, + + /// `IORING_REGISTER_FILES_UPDATE2` + RegisterFilesUpdate2 = sys::io_uring_register_op::IORING_REGISTER_FILES_UPDATE2 as _, + + /// `IORING_REGISTER_IOWQ_AFF` + RegisterIowqAff = sys::io_uring_register_op::IORING_REGISTER_IOWQ_AFF as _, + + /// `IORING_UNREGISTER_IOWQ_AFF` + UnregisterIowqAff = sys::io_uring_register_op::IORING_UNREGISTER_IOWQ_AFF as _, + + /// `IORING_REGISTER_IOWQ_MAX_WORKERS` + RegisterIowqMaxWorkers = sys::io_uring_register_op::IORING_REGISTER_IOWQ_MAX_WORKERS as _, + + /// `IORING_REGISTER_RING_FDS` + RegisterRingFds = sys::io_uring_register_op::IORING_REGISTER_RING_FDS as _, + + /// `IORING_UNREGISTER_RING_FDS` + UnregisterRingFds = sys::io_uring_register_op::IORING_UNREGISTER_RING_FDS as _, + + /// `IORING_REGISTER_PBUF_RING` + RegisterPbufRing = sys::io_uring_register_op::IORING_REGISTER_PBUF_RING as _, + + /// `IORING_UNREGISTER_PBUF_RING` + UnregisterPbufRing = sys::io_uring_register_op::IORING_UNREGISTER_PBUF_RING as _, + + /// `IORING_REGISTER_SYNC_CANCEL` + RegisterSyncCancel = sys::io_uring_register_op::IORING_REGISTER_SYNC_CANCEL as _, + + /// `IORING_REGISTER_FILE_ALLOC_RANGE` + RegisterFileAllocRange = sys::io_uring_register_op::IORING_REGISTER_FILE_ALLOC_RANGE as _, + + /// `IORING_REGISTER_PBUF_STATUS` (since Linux 6.8) + RegisterPbufStatus = sys::io_uring_register_op::IORING_REGISTER_PBUF_STATUS as _, + + /// `IORING_REGISTER_NAPI` (since Linux 6.9) + RegisterNapi = sys::io_uring_register_op::IORING_REGISTER_NAPI as _, + + /// `IORING_UNREGISTER_NAPI` (since Linux 6.9) + UnregisterNapi = sys::io_uring_register_op::IORING_UNREGISTER_NAPI as _, + + /// `IORING_REGISTER_CLOCK` (since Linux 6.12) + RegisterClock = sys::io_uring_register_op::IORING_REGISTER_CLOCK as _, + + /// `IORING_REGISTER_CLONE_BUFFERS ` (since Linux 6.12) + RegisterCloneBuffers = sys::io_uring_register_op::IORING_REGISTER_CLONE_BUFFERS as _, + + /// `IORING_REGISTER_SEND_MSG_RING` (since Linux 6.12) + RegisterSendMsgRing = sys::io_uring_register_op::IORING_REGISTER_SEND_MSG_RING as _, + + /// `IORING_REGISTER_RESIZE_RINGS`(since Linux 6.13) + RegisterResizeRings = sys::io_uring_register_op::IORING_REGISTER_RESIZE_RINGS as _, +} + +bitflags::bitflags! { + /// `IORING_REGISTER_*` flags for use with [`io_uring_register_with`]. + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct IoringRegisterFlags: u32 { + /// `IORING_REGISTER_USE_REGISTERED_RING` + const USE_REGISTERED_RING = sys::io_uring_register_op::IORING_REGISTER_USE_REGISTERED_RING as u32; + + /// + const _ = !0; + } +} + +/// `IORING_OP_*` constants for use with [`io_uring_sqe`]. +#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)] +#[repr(u8)] +#[non_exhaustive] +pub enum IoringOp { + /// `IORING_OP_NOP` + Nop = sys::io_uring_op::IORING_OP_NOP as _, + + /// `IORING_OP_ACCEPT` + Accept = sys::io_uring_op::IORING_OP_ACCEPT as _, + + /// `IORING_OP_ASYNC_CANCEL` + AsyncCancel = sys::io_uring_op::IORING_OP_ASYNC_CANCEL as _, + + /// `IORING_OP_CLOSE` + Close = sys::io_uring_op::IORING_OP_CLOSE as _, + + /// `IORING_OP_CONNECT` + Connect = sys::io_uring_op::IORING_OP_CONNECT as _, + + /// `IORING_OP_EPOLL_CTL` + EpollCtl = sys::io_uring_op::IORING_OP_EPOLL_CTL as _, + + /// `IORING_OP_FADVISE` + Fadvise = sys::io_uring_op::IORING_OP_FADVISE as _, + + /// `IORING_OP_FALLOCATE` + Fallocate = sys::io_uring_op::IORING_OP_FALLOCATE as _, + + /// `IORING_OP_FILES_UPDATE` + FilesUpdate = sys::io_uring_op::IORING_OP_FILES_UPDATE as _, + + /// `IORING_OP_FSYNC` + Fsync = sys::io_uring_op::IORING_OP_FSYNC as _, + + /// `IORING_OP_LINKAT` + Linkat = sys::io_uring_op::IORING_OP_LINKAT as _, + + /// `IORING_OP_LINK_TIMEOUT` + LinkTimeout = sys::io_uring_op::IORING_OP_LINK_TIMEOUT as _, + + /// `IORING_OP_MADVISE` + Madvise = sys::io_uring_op::IORING_OP_MADVISE as _, + + /// `IORING_OP_MKDIRAT` + Mkdirat = sys::io_uring_op::IORING_OP_MKDIRAT as _, + + /// `IORING_OP_OPENAT` + Openat = sys::io_uring_op::IORING_OP_OPENAT as _, + + /// `IORING_OP_OPENAT2` + Openat2 = sys::io_uring_op::IORING_OP_OPENAT2 as _, + + /// `IORING_OP_POLL_ADD` + PollAdd = sys::io_uring_op::IORING_OP_POLL_ADD as _, + + /// `IORING_OP_POLL_REMOVE` + PollRemove = sys::io_uring_op::IORING_OP_POLL_REMOVE as _, + + /// `IORING_OP_PROVIDE_BUFFERS` + ProvideBuffers = sys::io_uring_op::IORING_OP_PROVIDE_BUFFERS as _, + + /// `IORING_OP_READ` + Read = sys::io_uring_op::IORING_OP_READ as _, + + /// `IORING_OP_READV` + Readv = sys::io_uring_op::IORING_OP_READV as _, + + /// `IORING_OP_READ_FIXED` + ReadFixed = sys::io_uring_op::IORING_OP_READ_FIXED as _, + + /// `IORING_OP_RECV` + Recv = sys::io_uring_op::IORING_OP_RECV as _, + + /// `IORING_OP_RECVMSG` + Recvmsg = sys::io_uring_op::IORING_OP_RECVMSG as _, + + /// `IORING_OP_REMOVE_BUFFERS` + RemoveBuffers = sys::io_uring_op::IORING_OP_REMOVE_BUFFERS as _, + + /// `IORING_OP_RENAMEAT` + Renameat = sys::io_uring_op::IORING_OP_RENAMEAT as _, + + /// `IORING_OP_SEND` + Send = sys::io_uring_op::IORING_OP_SEND as _, + + /// `IORING_OP_SENDMSG` + Sendmsg = sys::io_uring_op::IORING_OP_SENDMSG as _, + + /// `IORING_OP_SHUTDOWN` + Shutdown = sys::io_uring_op::IORING_OP_SHUTDOWN as _, + + /// `IORING_OP_SPLICE` + Splice = sys::io_uring_op::IORING_OP_SPLICE as _, + + /// `IORING_OP_STATX` + Statx = sys::io_uring_op::IORING_OP_STATX as _, + + /// `IORING_OP_SYMLINKAT` + Symlinkat = sys::io_uring_op::IORING_OP_SYMLINKAT as _, + + /// `IORING_OP_SYNC_FILE_RANGE` + SyncFileRange = sys::io_uring_op::IORING_OP_SYNC_FILE_RANGE as _, + + /// `IORING_OP_TEE` + Tee = sys::io_uring_op::IORING_OP_TEE as _, + + /// `IORING_OP_TIMEOUT` + Timeout = sys::io_uring_op::IORING_OP_TIMEOUT as _, + + /// `IORING_OP_TIMEOUT_REMOVE` + TimeoutRemove = sys::io_uring_op::IORING_OP_TIMEOUT_REMOVE as _, + + /// `IORING_OP_UNLINKAT` + Unlinkat = sys::io_uring_op::IORING_OP_UNLINKAT as _, + + /// `IORING_OP_WRITE` + Write = sys::io_uring_op::IORING_OP_WRITE as _, + + /// `IORING_OP_WRITEV` + Writev = sys::io_uring_op::IORING_OP_WRITEV as _, + + /// `IORING_OP_WRITE_FIXED` + WriteFixed = sys::io_uring_op::IORING_OP_WRITE_FIXED as _, + + /// `IORING_OP_MSG_RING` + MsgRing = sys::io_uring_op::IORING_OP_MSG_RING as _, + + /// `IORING_OP_FSETXATTR` + Fsetxattr = sys::io_uring_op::IORING_OP_FSETXATTR as _, + + /// `IORING_OP_SETXATTR` + Setxattr = sys::io_uring_op::IORING_OP_SETXATTR as _, + + /// `IORING_OP_FGETXATTR` + Fgetxattr = sys::io_uring_op::IORING_OP_FGETXATTR as _, + + /// `IORING_OP_GETXATTR` + Getxattr = sys::io_uring_op::IORING_OP_GETXATTR as _, + + /// `IORING_OP_SOCKET` + Socket = sys::io_uring_op::IORING_OP_SOCKET as _, + + /// `IORING_OP_URING_CMD` + UringCmd = sys::io_uring_op::IORING_OP_URING_CMD as _, + + /// `IORING_OP_SEND_ZC` + SendZc = sys::io_uring_op::IORING_OP_SEND_ZC as _, + + /// `IORING_OP_SENDMSG_ZC` + SendmsgZc = sys::io_uring_op::IORING_OP_SENDMSG_ZC as _, + + /// `IORING_OP_READ_MULTISHOT` (since Linux 6.7) + ReadMultishot = sys::io_uring_op::IORING_OP_READ_MULTISHOT as _, + + /// `IORING_OP_WAITID` (since Linux 6.5) + Waitid = sys::io_uring_op::IORING_OP_WAITID as _, + + /// `IORING_OP_FUTEX_WAIT` (since Linux 6.7) + FutexWait = sys::io_uring_op::IORING_OP_FUTEX_WAIT as _, + + /// `IORING_OP_FUTEX_WAKE` (since Linux 6.7) + FutexWake = sys::io_uring_op::IORING_OP_FUTEX_WAKE as _, + + /// `IORING_OP_FUTEX_WAITV` (since Linux 6.7) + FutexWaitv = sys::io_uring_op::IORING_OP_FUTEX_WAITV as _, + + /// `IORING_OP_FIXED_FD_INSTALL` (since Linux 6.8) + FixedFdInstall = sys::io_uring_op::IORING_OP_FIXED_FD_INSTALL as _, + + /// `IORING_OP_FTRUNCATE` (since Linux 6.9) + Ftruncate = sys::io_uring_op::IORING_OP_FTRUNCATE as _, + + /// `IORING_OP_BIND` (since Linux 6.11) + Bind = sys::io_uring_op::IORING_OP_BIND as _, + + /// `IORING_OP_LISTEN` (since Linux 6.11) + Listen = sys::io_uring_op::IORING_OP_LISTEN as _, +} + +impl Default for IoringOp { + #[inline] + fn default() -> Self { + Self::Nop + } +} + +/// `IORING_RESTRICTION_*` constants for use with [`io_uring_restriction`]. +#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)] +#[repr(u16)] +#[non_exhaustive] +pub enum IoringRestrictionOp { + /// `IORING_RESTRICTION_REGISTER_OP` + RegisterOp = sys::io_uring_register_restriction_op::IORING_RESTRICTION_REGISTER_OP as _, + + /// `IORING_RESTRICTION_SQE_FLAGS_ALLOWED` + SqeFlagsAllowed = + sys::io_uring_register_restriction_op::IORING_RESTRICTION_SQE_FLAGS_ALLOWED as _, + + /// `IORING_RESTRICTION_SQE_FLAGS_REQUIRED` + SqeFlagsRequired = + sys::io_uring_register_restriction_op::IORING_RESTRICTION_SQE_FLAGS_REQUIRED as _, + + /// `IORING_RESTRICTION_SQE_OP` + SqeOp = sys::io_uring_register_restriction_op::IORING_RESTRICTION_SQE_OP as _, +} + +impl Default for IoringRestrictionOp { + #[inline] + fn default() -> Self { + Self::RegisterOp + } +} + +/// `IORING_MSG_*` constants which represent commands for use with +/// [`IoringOp::MsgRing`], (`seq.addr`) +#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)] +#[repr(u64)] +#[non_exhaustive] +pub enum IoringMsgringCmds { + /// `IORING_MSG_DATA` + Data = sys::io_uring_msg_ring_flags::IORING_MSG_DATA as _, + + /// `IORING_MSG_SEND_FD` + SendFd = sys::io_uring_msg_ring_flags::IORING_MSG_SEND_FD as _, +} + +bitflags::bitflags! { + /// `IORING_SETUP_*` flags for use with [`io_uring_params`]. + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct IoringSetupFlags: u32 { + /// `IORING_SETUP_ATTACH_WQ` + const ATTACH_WQ = sys::IORING_SETUP_ATTACH_WQ; + + /// `IORING_SETUP_CLAMP` + const CLAMP = sys::IORING_SETUP_CLAMP; + + /// `IORING_SETUP_CQSIZE` + const CQSIZE = sys::IORING_SETUP_CQSIZE; + + /// `IORING_SETUP_IOPOLL` + const IOPOLL = sys::IORING_SETUP_IOPOLL; + + /// `IORING_SETUP_R_DISABLED` + const R_DISABLED = sys::IORING_SETUP_R_DISABLED; + + /// `IORING_SETUP_SQPOLL` + const SQPOLL = sys::IORING_SETUP_SQPOLL; + + /// `IORING_SETUP_SQ_AFF` + const SQ_AFF = sys::IORING_SETUP_SQ_AFF; + + /// `IORING_SETUP_SQE128` + const SQE128 = sys::IORING_SETUP_SQE128; + + /// `IORING_SETUP_CQE32` + const CQE32 = sys::IORING_SETUP_CQE32; + + /// `IORING_SETUP_SUBMIT_ALL` + const SUBMIT_ALL = sys::IORING_SETUP_SUBMIT_ALL; + + /// `IORING_SETUP_COOP_TRASKRUN` + const COOP_TASKRUN = sys::IORING_SETUP_COOP_TASKRUN; + + /// `IORING_SETUP_TASKRUN_FLAG` + const TASKRUN_FLAG = sys::IORING_SETUP_TASKRUN_FLAG; + + /// `IORING_SETUP_SINGLE_ISSUER` + const SINGLE_ISSUER = sys::IORING_SETUP_SINGLE_ISSUER; + + /// `IORING_SETUP_DEFER_TASKRUN` + const DEFER_TASKRUN = sys::IORING_SETUP_DEFER_TASKRUN; + + /// `IORING_SETUP_NO_MMAP` + const NO_MMAP = sys::IORING_SETUP_NO_MMAP; + + /// `IORING_SETUP_REGISTERED_FD_ONLY` + const REGISTERED_FD_ONLY = sys::IORING_SETUP_REGISTERED_FD_ONLY; + + /// `IORING_SETUP_NO_SQARRAY` + const NO_SQARRAY = sys::IORING_SETUP_NO_SQARRAY; + + /// + const _ = !0; + } +} + +bitflags::bitflags! { + /// `IOSQE_*` flags for use with [`io_uring_sqe`]. + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct IoringSqeFlags: u8 { + /// `1 << IOSQE_ASYNC_BIT` + const ASYNC = 1 << sys::io_uring_sqe_flags_bit::IOSQE_ASYNC_BIT as u8; + + /// `1 << IOSQE_BUFFER_SELECT_BIT` + const BUFFER_SELECT = 1 << sys::io_uring_sqe_flags_bit::IOSQE_BUFFER_SELECT_BIT as u8; + + /// `1 << IOSQE_FIXED_FILE_BIT` + const FIXED_FILE = 1 << sys::io_uring_sqe_flags_bit::IOSQE_FIXED_FILE_BIT as u8; + + /// 1 << `IOSQE_IO_DRAIN_BIT` + const IO_DRAIN = 1 << sys::io_uring_sqe_flags_bit::IOSQE_IO_DRAIN_BIT as u8; + + /// `1 << IOSQE_IO_HARDLINK_BIT` + const IO_HARDLINK = 1 << sys::io_uring_sqe_flags_bit::IOSQE_IO_HARDLINK_BIT as u8; + + /// `1 << IOSQE_IO_LINK_BIT` + const IO_LINK = 1 << sys::io_uring_sqe_flags_bit::IOSQE_IO_LINK_BIT as u8; + + /// `1 << IOSQE_CQE_SKIP_SUCCESS_BIT` + const CQE_SKIP_SUCCESS = 1 << sys::io_uring_sqe_flags_bit::IOSQE_CQE_SKIP_SUCCESS_BIT as u8; + + /// + const _ = !0; + } +} + +bitflags::bitflags! { + /// `IORING_CQE_F_*` flags for use with [`io_uring_cqe`]. + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct IoringCqeFlags: u32 { + /// `IORING_CQE_F_BUFFER` + const BUFFER = bitcast!(sys::IORING_CQE_F_BUFFER); + + /// `IORING_CQE_F_MORE` + const MORE = bitcast!(sys::IORING_CQE_F_MORE); + + /// `IORING_CQE_F_SOCK_NONEMPTY` + const SOCK_NONEMPTY = bitcast!(sys::IORING_CQE_F_SOCK_NONEMPTY); + + /// `IORING_CQE_F_NOTIF` + const NOTIF = bitcast!(sys::IORING_CQE_F_NOTIF); + + /// + const _ = !0; + } +} + +bitflags::bitflags! { + /// `IORING_FSYNC_*` flags for use with [`io_uring_sqe`]. + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct IoringFsyncFlags: u32 { + /// `IORING_FSYNC_DATASYNC` + const DATASYNC = sys::IORING_FSYNC_DATASYNC; + + /// + const _ = !0; + } +} + +bitflags::bitflags! { + /// `IORING_TIMEOUT_*` and `IORING_LINK_TIMEOUT_UPDATE` flags for use with + /// [`io_uring_sqe`]. + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct IoringTimeoutFlags: u32 { + /// `IORING_TIMEOUT_ABS` + const ABS = sys::IORING_TIMEOUT_ABS; + + /// `IORING_TIMEOUT_UPDATE` + const UPDATE = sys::IORING_TIMEOUT_UPDATE; + + /// `IORING_TIMEOUT_BOOTTIME` + const BOOTTIME = sys::IORING_TIMEOUT_BOOTTIME; + + /// `IORING_TIMEOUT_ETIME_SUCCESS` + const ETIME_SUCCESS = sys::IORING_TIMEOUT_ETIME_SUCCESS; + + /// `IORING_TIMEOUT_REALTIME` + const REALTIME = sys::IORING_TIMEOUT_REALTIME; + + /// `IORING_TIMEOUT_CLOCK_MASK` + const CLOCK_MASK = sys::IORING_TIMEOUT_CLOCK_MASK; + + /// `IORING_TIMEOUT_UPDATE_MASK` + const UPDATE_MASK = sys::IORING_TIMEOUT_UPDATE_MASK; + + /// `IORING_LINK_TIMEOUT_UPDATE` + const LINK_TIMEOUT_UPDATE = sys::IORING_LINK_TIMEOUT_UPDATE; + + /// + const _ = !0; + } +} + +bitflags::bitflags! { + /// `SPLICE_F_*` flags for use with [`io_uring_sqe`]. + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct SpliceFlags: u32 { + /// `SPLICE_F_FD_IN_FIXED` + const FD_IN_FIXED = sys::SPLICE_F_FD_IN_FIXED; + + /// + const _ = !0; + } +} + +bitflags::bitflags! { + /// `IORING_MSG_RING_*` flags for use with [`io_uring_sqe`]. + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct IoringMsgringFlags: u32 { + /// `IORING_MSG_RING_CQE_SKIP` + const CQE_SKIP = sys::IORING_MSG_RING_CQE_SKIP; + + /// `IORING_MSG_RING_FLAGS_PASS` + const FLAGS_PASS = sys::IORING_MSG_RING_FLAGS_PASS; + + /// + const _ = !0; + } +} + +bitflags::bitflags! { + /// `IORING_URING_CMD_*` flags for use with [`io_uring_sqe`]. + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct IoringUringCmdFlags: u32 { + /// `IORING_URING_CMD_FIXED` + const FIXED = sys::IORING_URING_CMD_FIXED; + + /// `IORING_URING_CMD_MASK` + const MASK = sys::IORING_URING_CMD_MASK; + + /// + const _ = !0; + } +} + +bitflags::bitflags! { + /// `IORING_ASYNC_CANCEL_*` flags for use with [`io_uring_sqe`]. + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct IoringAsyncCancelFlags: u32 { + /// `IORING_ASYNC_CANCEL_ALL` + const ALL = sys::IORING_ASYNC_CANCEL_ALL; + + /// `IORING_ASYNC_CANCEL_FD` + const FD = sys::IORING_ASYNC_CANCEL_FD; + + /// `IORING_ASYNC_CANCEL_FD` + const ANY = sys::IORING_ASYNC_CANCEL_ANY; + + /// `IORING_ASYNC_CANCEL_FD` + const FD_FIXED = sys::IORING_ASYNC_CANCEL_FD_FIXED; + + /// + const _ = !0; + } +} + +bitflags::bitflags! { + /// `IORING_FIXED_FD_*` flags for use with [`io_uring_sqe`]. + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct IoringFixedFdFlags: u32 { + /// `IORING_FIXED_FD_NO_CLOEXEC` + const NO_CLOEXEC = sys::IORING_FIXED_FD_NO_CLOEXEC; + + /// + const _ = !0; + } +} + +bitflags::bitflags! { + /// `IORING_FEAT_*` flags for use with [`io_uring_params`]. + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct IoringFeatureFlags: u32 { + /// `IORING_FEAT_CQE_SKIP` + const CQE_SKIP = sys::IORING_FEAT_CQE_SKIP; + + /// `IORING_FEAT_CUR_PERSONALITY` + const CUR_PERSONALITY = sys::IORING_FEAT_CUR_PERSONALITY; + + /// `IORING_FEAT_EXT_ARG` + const EXT_ARG = sys::IORING_FEAT_EXT_ARG; + + /// `IORING_FEAT_FAST_POLL` + const FAST_POLL = sys::IORING_FEAT_FAST_POLL; + + /// `IORING_FEAT_NATIVE_WORKERS` + const NATIVE_WORKERS = sys::IORING_FEAT_NATIVE_WORKERS; + + /// `IORING_FEAT_NODROP` + const NODROP = sys::IORING_FEAT_NODROP; + + /// `IORING_FEAT_POLL_32BITS` + const POLL_32BITS = sys::IORING_FEAT_POLL_32BITS; + + /// `IORING_FEAT_RSRC_TAGS` + const RSRC_TAGS = sys::IORING_FEAT_RSRC_TAGS; + + /// `IORING_FEAT_RW_CUR_POS` + const RW_CUR_POS = sys::IORING_FEAT_RW_CUR_POS; + + /// `IORING_FEAT_SINGLE_MMAP` + const SINGLE_MMAP = sys::IORING_FEAT_SINGLE_MMAP; + + /// `IORING_FEAT_SQPOLL_NONFIXED` + const SQPOLL_NONFIXED = sys::IORING_FEAT_SQPOLL_NONFIXED; + + /// `IORING_FEAT_SUBMIT_STABLE` + const SUBMIT_STABLE = sys::IORING_FEAT_SUBMIT_STABLE; + + /// `IORING_FEAT_LINKED_FILE` + const LINKED_FILE = sys::IORING_FEAT_LINKED_FILE; + + /// `IORING_FEAT_REG_REG_RING` + const REG_REG_RING = sys::IORING_FEAT_REG_REG_RING; + + /// `IORING_FEAT_RECVSEND_BUNDLE` + const RECVSEND_BUNDLE = sys::IORING_FEAT_RECVSEND_BUNDLE; + + /// + const _ = !0; + } +} + +bitflags::bitflags! { + /// `IO_URING_OP_*` flags for use with [`io_uring_probe_op`]. + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct IoringOpFlags: u16 { + /// `IO_URING_OP_SUPPORTED` + const SUPPORTED = sys::IO_URING_OP_SUPPORTED as _; + + /// + const _ = !0; + } +} + +bitflags::bitflags! { + /// `IORING_RSRC_*` flags for use with [`io_uring_rsrc_register`]. + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct IoringRsrcFlags: u32 { + /// `IORING_RSRC_REGISTER_SPARSE` + const REGISTER_SPARSE = sys::IORING_RSRC_REGISTER_SPARSE as _; + + /// + const _ = !0; + } +} + +bitflags::bitflags! { + /// `IORING_SQ_*` flags. + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct IoringSqFlags: u32 { + /// `IORING_SQ_NEED_WAKEUP` + const NEED_WAKEUP = sys::IORING_SQ_NEED_WAKEUP; + + /// `IORING_SQ_CQ_OVERFLOW` + const CQ_OVERFLOW = sys::IORING_SQ_CQ_OVERFLOW; + + /// `IORING_SQ_TASKRUN` + const TASKRUN = sys::IORING_SQ_TASKRUN; + + /// + const _ = !0; + } +} + +bitflags::bitflags! { + /// `IORING_CQ_*` flags. + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct IoringCqFlags: u32 { + /// `IORING_CQ_EVENTFD_DISABLED` + const EVENTFD_DISABLED = sys::IORING_CQ_EVENTFD_DISABLED; + + /// + const _ = !0; + } +} + +bitflags::bitflags! { + /// `IORING_POLL_*` flags. + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct IoringPollFlags: u32 { + /// `IORING_POLL_ADD_MULTI` + const ADD_MULTI = sys::IORING_POLL_ADD_MULTI; + + /// `IORING_POLL_UPDATE_EVENTS` + const UPDATE_EVENTS = sys::IORING_POLL_UPDATE_EVENTS; + + /// `IORING_POLL_UPDATE_USER_DATA` + const UPDATE_USER_DATA = sys::IORING_POLL_UPDATE_USER_DATA; + + /// `IORING_POLL_ADD_LEVEL` + const ADD_LEVEL = sys::IORING_POLL_ADD_LEVEL; + + /// + const _ = !0; + } +} + +bitflags::bitflags! { + /// send/sendmsg flags (`sqe.ioprio`) + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct IoringSendFlags: u16 { + /// `IORING_RECVSEND_POLL_FIRST`. + /// + /// See also [`IoringRecvFlags::POLL_FIRST`]. + const POLL_FIRST = sys::IORING_RECVSEND_POLL_FIRST as _; + + /// `IORING_RECVSEND_FIXED_BUF` + /// + /// See also [`IoringRecvFlags::FIXED_BUF`]. + const FIXED_BUF = sys::IORING_RECVSEND_FIXED_BUF as _; + + /// `IORING_SEND_ZC_REPORT_USAGE` (since Linux 6.2) + const ZC_REPORT_USAGE = sys::IORING_SEND_ZC_REPORT_USAGE as _; + + /// `IORING_RECVSEND_BUNDLE` + /// + /// See also [`IoringRecvFlags::BUNDLE`]. + const BUNDLE = sys::IORING_RECVSEND_BUNDLE as _; + + /// + const _ = !0; + } +} + +bitflags::bitflags! { + /// recv/recvmsg flags (`sqe.ioprio`) + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct IoringRecvFlags: u16 { + /// `IORING_RECVSEND_POLL_FIRST` + /// + /// See also [`IoringSendFlags::POLL_FIRST`]. + const POLL_FIRST = sys::IORING_RECVSEND_POLL_FIRST as _; + + /// `IORING_RECV_MULTISHOT` + const MULTISHOT = sys::IORING_RECV_MULTISHOT as _; + + /// `IORING_RECVSEND_FIXED_BUF` + /// + /// See also [`IoringSendFlags::FIXED_BUF`]. + const FIXED_BUF = sys::IORING_RECVSEND_FIXED_BUF as _; + + /// `IORING_RECVSEND_BUNDLE` + /// + /// See also [`IoringSendFlags::BUNDLE`]. + const BUNDLE = sys::IORING_RECVSEND_BUNDLE as _; + + /// + const _ = !0; + } +} + +bitflags::bitflags! { + /// accept flags (`sqe.ioprio`) + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct IoringAcceptFlags: u16 { + /// `IORING_ACCEPT_MULTISHOT` + const MULTISHOT = sys::IORING_ACCEPT_MULTISHOT as _; + + /// + const _ = !0; + } +} + +bitflags::bitflags! { + /// recvmsg out flags + #[repr(transparent)] + #[derive(Default, Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct RecvmsgOutFlags: u32 { + /// `MSG_EOR` + const EOR = net::MSG_EOR; + + /// `MSG_TRUNC` + const TRUNC = net::MSG_TRUNC; + + /// `MSG_CTRUNC` + const CTRUNC = net::MSG_CTRUNC; + + /// `MSG_OOB` + const OOB = net::MSG_OOB; + + /// `MSG_ERRQUEUE` + const ERRQUEUE = net::MSG_ERRQUEUE; + + /// + const _ = !0; + } +} + +#[allow(missing_docs)] +pub const IORING_CQE_BUFFER_SHIFT: u32 = sys::IORING_CQE_BUFFER_SHIFT as _; +#[allow(missing_docs)] +pub const IORING_FILE_INDEX_ALLOC: i32 = sys::IORING_FILE_INDEX_ALLOC as _; + +// Re-export these as `u64`, which is the `offset` type in `rustix::io::mmap`. +#[allow(missing_docs)] +pub const IORING_OFF_SQ_RING: u64 = sys::IORING_OFF_SQ_RING as _; +#[allow(missing_docs)] +pub const IORING_OFF_CQ_RING: u64 = sys::IORING_OFF_CQ_RING as _; +#[allow(missing_docs)] +pub const IORING_OFF_SQES: u64 = sys::IORING_OFF_SQES as _; + +/// `IORING_REGISTER_FILES_SKIP` +// SAFETY: `IORING_REGISTER_FILES_SKIP` is a reserved value that is never +// dynamically allocated, so it'll remain valid for the duration of +// `'static`. +pub const IORING_REGISTER_FILES_SKIP: BorrowedFd<'static> = + unsafe { BorrowedFd::<'static>::borrow_raw(sys::IORING_REGISTER_FILES_SKIP as RawFd) }; + +/// `IORING_NOTIF_USAGE_ZC_COPIED` (since Linux 6.2) +pub const IORING_NOTIF_USAGE_ZC_COPIED: i32 = sys::IORING_NOTIF_USAGE_ZC_COPIED as _; + +/// A pointer in the io_uring API. +/// +/// `io_uring`'s native API represents pointers as `u64` values. In order to +/// preserve strict-provenance, use a `*mut c_void`. On platforms where +/// pointers are narrower than 64 bits, this requires additional padding. +#[repr(C)] +#[cfg_attr(any(target_arch = "arm", target_arch = "powerpc"), repr(align(8)))] +#[derive(Copy, Clone)] +#[non_exhaustive] +pub struct io_uring_ptr { + #[cfg(all(target_pointer_width = "32", target_endian = "big"))] + #[doc(hidden)] + pub __pad32: u32, + #[cfg(all(target_pointer_width = "16", target_endian = "big"))] + #[doc(hidden)] + pub __pad16: u16, + + /// The pointer value. + pub ptr: *mut c_void, + + #[cfg(all(target_pointer_width = "16", target_endian = "little"))] + #[doc(hidden)] + pub __pad16: u16, + #[cfg(all(target_pointer_width = "32", target_endian = "little"))] + #[doc(hidden)] + pub __pad32: u32, +} + +impl io_uring_ptr { + /// Construct a null `io_uring_ptr`. + #[inline] + pub const fn null() -> Self { + Self::new(null_mut()) + } + + /// Construct a new `io_uring_ptr`. + #[inline] + pub const fn new(ptr: *mut c_void) -> Self { + Self { + ptr, + + #[cfg(target_pointer_width = "16")] + __pad16: 0, + #[cfg(any(target_pointer_width = "16", target_pointer_width = "32"))] + __pad32: 0, + } + } +} + +impl From<*mut c_void> for io_uring_ptr { + #[inline] + fn from(ptr: *mut c_void) -> Self { + Self::new(ptr) + } +} + +impl PartialEq for io_uring_ptr { + #[inline] + fn eq(&self, other: &Self) -> bool { + self.ptr.eq(&other.ptr) + } +} + +impl Eq for io_uring_ptr {} + +#[allow(clippy::non_canonical_partial_ord_impl)] +impl PartialOrd for io_uring_ptr { + #[inline] + fn partial_cmp(&self, other: &Self) -> Option { + self.ptr.partial_cmp(&other.ptr) + } +} + +impl Ord for io_uring_ptr { + #[inline] + fn cmp(&self, other: &Self) -> Ordering { + self.ptr.cmp(&other.ptr) + } +} + +impl Hash for io_uring_ptr { + #[inline] + fn hash(&self, state: &mut H) { + self.ptr.hash(state) + } +} + +impl Default for io_uring_ptr { + #[inline] + fn default() -> Self { + Self::null() + } +} + +impl core::fmt::Pointer for io_uring_ptr { + fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { + self.ptr.fmt(f) + } +} + +impl core::fmt::Debug for io_uring_ptr { + fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { + self.ptr.fmt(f) + } +} + +/// User data in the io_uring API. +/// +/// `io_uring`'s native API represents `user_data` fields as `u64` values. In +/// order to preserve strict-provenance, use a union which allows users to +/// optionally store pointers. +#[repr(C)] +#[derive(Copy, Clone)] +pub union io_uring_user_data { + /// An arbitrary `u64`. + pub u64_: u64, + + /// A pointer. + pub ptr: io_uring_ptr, +} + +impl io_uring_user_data { + /// Create a zero-initialized `Self`. + pub const fn zeroed() -> Self { + // Initialize the `u64_` field, which is the size of the full union. + // This can use `core::mem::zeroed` in Rust 1.75. + Self { u64_: 0 } + } + + /// Return the `u64` value. + #[inline] + pub const fn u64_(self) -> u64 { + // SAFETY: All the fields have the same underlying representation. + unsafe { self.u64_ } + } + + /// Create a `Self` from a `u64` value. + #[inline] + pub const fn from_u64(u64_: u64) -> Self { + Self { u64_ } + } + + /// Return the `ptr` pointer value. + #[inline] + pub const fn ptr(self) -> *mut c_void { + // SAFETY: All the fields have the same underlying representation. + unsafe { self.ptr }.ptr + } + + /// Create a `Self` from a pointer value. + #[inline] + pub const fn from_ptr(ptr: *mut c_void) -> Self { + Self { + ptr: io_uring_ptr::new(ptr), + } + } +} + +impl From for io_uring_user_data { + #[inline] + fn from(u64_: u64) -> Self { + Self::from_u64(u64_) + } +} + +impl From<*mut c_void> for io_uring_user_data { + #[inline] + fn from(ptr: *mut c_void) -> Self { + Self::from_ptr(ptr) + } +} + +impl PartialEq for io_uring_user_data { + #[inline] + fn eq(&self, other: &Self) -> bool { + // SAFETY: `io_uring_ptr` and `u64` have the same layout. + unsafe { self.u64_.eq(&other.u64_) } + } +} + +impl Eq for io_uring_user_data {} + +#[allow(clippy::non_canonical_partial_ord_impl)] +impl PartialOrd for io_uring_user_data { + #[inline] + fn partial_cmp(&self, other: &Self) -> Option { + // SAFETY: `io_uring_ptr` and `u64` have the same layout. + unsafe { self.u64_.partial_cmp(&other.u64_) } + } +} + +impl Ord for io_uring_user_data { + #[inline] + fn cmp(&self, other: &Self) -> Ordering { + // SAFETY: `io_uring_ptr` and `u64` have the same layout. + unsafe { self.u64_.cmp(&other.u64_) } + } +} + +impl Hash for io_uring_user_data { + #[inline] + fn hash(&self, state: &mut H) { + // SAFETY: `io_uring_ptr` and `u64` have the same layout. + unsafe { self.u64_.hash(state) } + } +} + +impl Default for io_uring_user_data { + #[inline] + fn default() -> Self { + Self::zeroed() + } +} + +impl core::fmt::Debug for io_uring_user_data { + fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { + // SAFETY: Just format as a `u64`, since formatting doesn't preserve + // provenance, and we don't have a discriminant. + unsafe { self.u64_.fmt(f) } + } +} + +/// An io_uring Submission Queue Entry. +#[allow(missing_docs)] +#[repr(C)] +#[derive(Copy, Clone, Default)] +pub struct io_uring_sqe { + pub opcode: IoringOp, + pub flags: IoringSqeFlags, + pub ioprio: ioprio_union, + pub fd: RawFd, + pub off_or_addr2: off_or_addr2_union, + pub addr_or_splice_off_in: addr_or_splice_off_in_union, + pub len: len_union, + pub op_flags: op_flags_union, + pub user_data: io_uring_user_data, + pub buf: buf_union, + pub personality: u16, + pub splice_fd_in_or_file_index_or_addr_len: splice_fd_in_or_file_index_or_addr_len_union, + pub addr3_or_cmd: addr3_or_cmd_union, +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Copy, Clone)] +pub union ioprio_union { + pub recv_flags: IoringRecvFlags, + pub send_flags: IoringSendFlags, + pub accept_flags: IoringAcceptFlags, + pub ioprio: u16, +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Copy, Clone)] +pub union len_union { + pub poll_flags: IoringPollFlags, + pub len: u32, +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Copy, Clone)] +pub union addr3_or_cmd_union { + pub addr3: addr3_struct, + pub cmd: [u8; 0], +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Copy, Clone, Default)] +#[non_exhaustive] +pub struct addr3_struct { + pub addr3: u64, + #[doc(hidden)] + pub __pad2: [u64; 1], +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Copy, Clone)] +pub union off_or_addr2_union { + pub off: u64, + pub addr2: io_uring_ptr, + pub cmd_op: cmd_op_struct, + pub user_data: io_uring_user_data, +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Copy, Clone)] +#[non_exhaustive] +pub struct cmd_op_struct { + pub cmd_op: u32, + #[doc(hidden)] + pub __pad1: u32, +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Copy, Clone)] +pub union addr_or_splice_off_in_union { + pub addr: io_uring_ptr, + pub splice_off_in: u64, + pub msgring_cmd: IoringMsgringCmds, + pub user_data: io_uring_user_data, +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Copy, Clone)] +pub union op_flags_union { + pub rw_flags: crate::io::ReadWriteFlags, + pub fsync_flags: IoringFsyncFlags, + pub poll_events: u16, + pub poll32_events: u32, + pub sync_range_flags: u32, + /// `msg_flags` is split into `send_flags` and `recv_flags`. + #[doc(alias = "msg_flags")] + pub send_flags: SendFlags, + /// `msg_flags` is split into `send_flags` and `recv_flags`. + #[doc(alias = "msg_flags")] + pub recv_flags: RecvFlags, + pub timeout_flags: IoringTimeoutFlags, + pub accept_flags: SocketFlags, + pub cancel_flags: IoringAsyncCancelFlags, + pub open_flags: OFlags, + pub statx_flags: AtFlags, + pub fadvise_advice: Advice, + pub splice_flags: SpliceFlags, + pub rename_flags: RenameFlags, + pub unlink_flags: AtFlags, + pub hardlink_flags: AtFlags, + pub xattr_flags: XattrFlags, + pub msg_ring_flags: IoringMsgringFlags, + pub uring_cmd_flags: IoringUringCmdFlags, + pub futex_flags: FutexWaitvFlags, + pub install_fd_flags: IoringFixedFdFlags, +} + +#[allow(missing_docs)] +#[repr(C, packed)] +#[derive(Copy, Clone)] +pub union buf_union { + pub buf_index: u16, + pub buf_group: u16, +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Copy, Clone)] +pub union splice_fd_in_or_file_index_or_addr_len_union { + pub splice_fd_in: i32, + pub file_index: u32, + pub addr_len: addr_len_struct, +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Copy, Clone)] +#[non_exhaustive] +pub struct addr_len_struct { + pub addr_len: u16, + #[doc(hidden)] + pub __pad3: [u16; 1], +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Copy, Clone)] +#[non_exhaustive] +pub struct io_uring_sync_cancel_reg { + pub addr: io_uring_user_data, + pub fd: i32, + pub flags: IoringAsyncCancelFlags, + pub timeout: Timespec, + pub opcode: u8, + #[doc(hidden)] + pub pad: [u8; 7], + #[doc(hidden)] + pub pad2: [u64; 3], +} + +impl Default for io_uring_sync_cancel_reg { + #[inline] + fn default() -> Self { + Self { + addr: Default::default(), + fd: Default::default(), + flags: Default::default(), + timeout: Timespec { + tv_sec: 0, + tv_nsec: 0, + }, + opcode: Default::default(), + pad: Default::default(), + pad2: Default::default(), + } + } +} + +/// An io_uring Completion Queue Entry. +/// +/// This does not derive `Copy` or `Clone` because the `big_cqe` field is not +/// automatically copyable. +#[allow(missing_docs)] +#[repr(C)] +#[derive(Debug, Default)] +pub struct io_uring_cqe { + pub user_data: io_uring_user_data, + pub res: i32, + pub flags: IoringCqeFlags, + pub big_cqe: IncompleteArrayField, +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Copy, Clone, Default)] +#[non_exhaustive] +pub struct io_uring_restriction { + pub opcode: IoringRestrictionOp, + pub register_or_sqe_op_or_sqe_flags: register_or_sqe_op_or_sqe_flags_union, + #[doc(hidden)] + pub resv: u8, + #[doc(hidden)] + pub resv2: [u32; 3], +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Copy, Clone)] +pub union register_or_sqe_op_or_sqe_flags_union { + pub register_op: IoringRegisterOp, + pub sqe_op: IoringOp, + pub sqe_flags: IoringSqeFlags, +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Debug, Copy, Clone, Default)] +#[non_exhaustive] +pub struct io_uring_params { + pub sq_entries: u32, + pub cq_entries: u32, + pub flags: IoringSetupFlags, + pub sq_thread_cpu: u32, + pub sq_thread_idle: u32, + pub features: IoringFeatureFlags, + pub wq_fd: RawFd, + #[doc(hidden)] + pub resv: [u32; 3], + pub sq_off: io_sqring_offsets, + pub cq_off: io_cqring_offsets, +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Debug, Copy, Clone, Default)] +#[non_exhaustive] +pub struct io_sqring_offsets { + pub head: u32, + pub tail: u32, + pub ring_mask: u32, + pub ring_entries: u32, + pub flags: u32, + pub dropped: u32, + pub array: u32, + #[doc(hidden)] + pub resv1: u32, + pub user_addr: io_uring_ptr, +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Debug, Copy, Clone, Default)] +#[non_exhaustive] +pub struct io_cqring_offsets { + pub head: u32, + pub tail: u32, + pub ring_mask: u32, + pub ring_entries: u32, + pub overflow: u32, + pub cqes: u32, + pub flags: u32, + #[doc(hidden)] + pub resv1: u32, + pub user_addr: io_uring_ptr, +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Debug, Default)] +#[non_exhaustive] +pub struct io_uring_probe { + pub last_op: IoringOp, + pub ops_len: u8, + #[doc(hidden)] + pub resv: u16, + #[doc(hidden)] + pub resv2: [u32; 3], + pub ops: IncompleteArrayField, +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Debug, Copy, Clone, Default)] +#[non_exhaustive] +pub struct io_uring_probe_op { + pub op: IoringOp, + #[doc(hidden)] + pub resv: u8, + pub flags: IoringOpFlags, + #[doc(hidden)] + pub resv2: u32, +} + +#[allow(missing_docs)] +#[repr(C, align(8))] +#[derive(Debug, Copy, Clone, Default)] +#[non_exhaustive] +pub struct io_uring_files_update { + pub offset: u32, + #[doc(hidden)] + pub resv: u32, + pub fds: io_uring_ptr, +} + +#[allow(missing_docs)] +#[repr(C, align(8))] +#[derive(Debug, Copy, Clone, Default)] +#[non_exhaustive] +pub struct io_uring_rsrc_register { + pub nr: u32, + pub flags: IoringRsrcFlags, + #[doc(hidden)] + pub resv2: u64, + pub data: io_uring_ptr, + pub tags: io_uring_ptr, +} + +#[allow(missing_docs)] +#[repr(C, align(8))] +#[derive(Debug, Copy, Clone, Default)] +#[non_exhaustive] +pub struct io_uring_rsrc_update { + pub offset: u32, + #[doc(hidden)] + pub resv: u32, + pub data: io_uring_ptr, +} + +#[allow(missing_docs)] +#[repr(C, align(8))] +#[derive(Debug, Copy, Clone, Default)] +#[non_exhaustive] +pub struct io_uring_rsrc_update2 { + pub offset: u32, + #[doc(hidden)] + pub resv: u32, + pub data: io_uring_ptr, + pub tags: io_uring_ptr, + pub nr: u32, + #[doc(hidden)] + pub resv2: u32, +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Debug, Copy, Clone, Default)] +pub struct io_uring_getevents_arg { + pub sigmask: io_uring_ptr, + pub sigmask_sz: u32, + pub min_wait_usec: u32, + pub ts: io_uring_ptr, +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct io_uring_recvmsg_out { + pub namelen: SocketAddrLen, + pub controllen: u32, + pub payloadlen: u32, + pub flags: RecvmsgOutFlags, +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iovec { + pub iov_base: *mut c_void, + pub iov_len: usize, +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Debug, Copy, Clone, Default)] +#[non_exhaustive] +pub struct open_how { + /// An [`OFlags`] value represented as a `u64`. + pub flags: u64, + + /// A [`Mode`] value represented as a `u64`. + pub mode: u64, + + pub resolve: ResolveFlags, +} + +impl open_how { + /// Create a zero-initialized `Self`. + pub const fn zeroed() -> Self { + Self { + flags: 0, + mode: 0, + resolve: ResolveFlags::empty(), + } + } +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Debug, Copy, Clone, Default)] +#[non_exhaustive] +pub struct io_uring_buf_reg { + pub ring_addr: io_uring_ptr, + pub ring_entries: u32, + pub bgid: u16, + pub flags: u16, + #[doc(hidden)] + pub resv: [u64; 3_usize], +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Debug, Copy, Clone, Default)] +#[non_exhaustive] +pub struct io_uring_buf { + pub addr: io_uring_ptr, + pub len: u32, + pub bid: u16, + #[doc(hidden)] + pub resv: u16, +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Debug, Copy, Clone, Default)] +#[non_exhaustive] +pub struct buf_ring_tail_struct { + #[doc(hidden)] + pub resv1: u64, + #[doc(hidden)] + pub resv2: u32, + #[doc(hidden)] + pub resv3: u16, + pub tail: u16, +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Debug, Default)] +pub struct buf_ring_bufs_struct { + pub bufs: IncompleteArrayField, +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Debug, Default)] +pub struct tail_or_bufs_struct { + pub tail: UnionField, + pub bufs: UnionField, + pub union_field: [u64; 2], +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Debug, Default)] +pub struct io_uring_buf_ring { + pub tail_or_bufs: tail_or_bufs_struct, +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Debug, Default)] +#[non_exhaustive] +pub struct io_uring_napi { + pub busy_poll_to: u32, + pub prefer_busy_poll: u8, + pub opcode: u8, + #[doc(hidden)] + pub pad: [u8; 2], + pub op_param: u32, + #[doc(hidden)] + pub resv: u32, +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Debug, Default)] +#[non_exhaustive] +pub struct io_uring_clone_buffers { + pub src_fd: u32, + pub flags: u32, + pub src_off: u32, + pub dst_off: u32, + pub nr: u32, + #[doc(hidden)] + pub pad: [u32; 3], +} + +#[allow(missing_docs)] +#[repr(C)] +#[derive(Debug, Default)] +#[non_exhaustive] +pub struct io_uring_reg_wait { + pub ts: Timespec, + pub min_wait_usec: u32, + pub flags: u32, + pub sigmask: io_uring_ptr, + pub sigmask_sz: u32, + #[doc(hidden)] + pub pad: [u32; 3], + #[doc(hidden)] + pub pad2: [u64; 2], +} + +impl Default for ioprio_union { + #[inline] + fn default() -> Self { + default_union!(ioprio_union, ioprio) + } +} + +impl Default for len_union { + #[inline] + fn default() -> Self { + default_union!(len_union, len) + } +} + +impl Default for off_or_addr2_union { + #[inline] + fn default() -> Self { + default_union!(off_or_addr2_union, off) + } +} + +impl Default for addr_or_splice_off_in_union { + #[inline] + fn default() -> Self { + default_union!(addr_or_splice_off_in_union, splice_off_in) + } +} + +impl Default for addr3_or_cmd_union { + #[inline] + fn default() -> Self { + default_union!(addr3_or_cmd_union, addr3) + } +} + +impl Default for op_flags_union { + #[inline] + fn default() -> Self { + default_union!(op_flags_union, sync_range_flags) + } +} + +impl Default for buf_union { + #[inline] + fn default() -> Self { + default_union!(buf_union, buf_index) + } +} + +impl Default for splice_fd_in_or_file_index_or_addr_len_union { + #[inline] + fn default() -> Self { + default_union!(splice_fd_in_or_file_index_or_addr_len_union, splice_fd_in) + } +} + +impl Default for register_or_sqe_op_or_sqe_flags_union { + #[inline] + fn default() -> Self { + default_union!(register_or_sqe_op_or_sqe_flags_union, sqe_flags) + } +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::fd::AsRawFd as _; + + /// Check that our custom structs and unions have the same layout as the + /// kernel's versions. + #[test] + fn io_uring_layouts() { + use sys as c; + + // `io_uring_ptr` is a replacement for `u64`. + assert_eq_size!(io_uring_ptr, u64); + assert_eq_align!(io_uring_ptr, u64); + + // Test that pointers are stored in `io_uring_ptr` in the way that + // io_uring stores them in a `u64`. + unsafe { + const MAGIC: u64 = !0x0123_4567_89ab_cdef; + let ptr = io_uring_ptr::new(MAGIC as usize as *mut c_void); + assert_eq!(ptr.ptr, MAGIC as usize as *mut c_void); + #[cfg(target_pointer_width = "16")] + assert_eq!(ptr.__pad16, 0); + #[cfg(any(target_pointer_width = "16", target_pointer_width = "32"))] + assert_eq!(ptr.__pad32, 0); + let int = core::mem::transmute::(ptr); + assert_eq!(int, MAGIC as usize as u64); + } + + // `io_uring_user_data` is a replacement for `u64`. + assert_eq_size!(io_uring_user_data, u64); + assert_eq_align!(io_uring_user_data, u64); + + // Test that `u64`s and pointers are properly stored in + // `io_uring_user_data`. + unsafe { + const MAGIC: u64 = !0x0123_4567_89ab_cdef; + let user_data = io_uring_user_data::from_u64(MAGIC); + assert_eq!(user_data.u64_(), MAGIC); + assert_eq!( + core::mem::transmute::(user_data), + MAGIC + ); + let user_data = io_uring_user_data::from_ptr(MAGIC as usize as *mut c_void); + assert_eq!(user_data.ptr(), MAGIC as usize as *mut c_void); + assert_eq!( + core::mem::transmute::(user_data), + MAGIC as usize as u64 + ); + } + + check_renamed_type!(off_or_addr2_union, io_uring_sqe__bindgen_ty_1); + check_renamed_type!(addr_or_splice_off_in_union, io_uring_sqe__bindgen_ty_2); + check_renamed_type!(addr3_or_cmd_union, io_uring_sqe__bindgen_ty_6); + check_renamed_type!(op_flags_union, io_uring_sqe__bindgen_ty_3); + check_renamed_type!(buf_union, io_uring_sqe__bindgen_ty_4); + check_renamed_type!( + splice_fd_in_or_file_index_or_addr_len_union, + io_uring_sqe__bindgen_ty_5 + ); + check_renamed_type!(addr_len_struct, io_uring_sqe__bindgen_ty_5__bindgen_ty_1); + check_renamed_type!( + register_or_sqe_op_or_sqe_flags_union, + io_uring_restriction__bindgen_ty_1 + ); + + check_renamed_type!(addr3_struct, io_uring_sqe__bindgen_ty_6__bindgen_ty_1); + check_renamed_type!(cmd_op_struct, io_uring_sqe__bindgen_ty_1__bindgen_ty_1); + + check_type!(io_uring_sqe); + check_struct_field!(io_uring_sqe, opcode); + check_struct_field!(io_uring_sqe, flags); + check_struct_field!(io_uring_sqe, ioprio); + check_struct_field!(io_uring_sqe, fd); + check_struct_renamed_field!(io_uring_sqe, off_or_addr2, __bindgen_anon_1); + check_struct_renamed_field!(io_uring_sqe, addr_or_splice_off_in, __bindgen_anon_2); + check_struct_field!(io_uring_sqe, len); + check_struct_renamed_field!(io_uring_sqe, op_flags, __bindgen_anon_3); + check_struct_field!(io_uring_sqe, user_data); + check_struct_renamed_field!(io_uring_sqe, buf, __bindgen_anon_4); + check_struct_field!(io_uring_sqe, personality); + check_struct_renamed_field!( + io_uring_sqe, + splice_fd_in_or_file_index_or_addr_len, + __bindgen_anon_5 + ); + check_struct_renamed_field!(io_uring_sqe, addr3_or_cmd, __bindgen_anon_6); + + check_type!(io_uring_restriction); + check_struct_field!(io_uring_restriction, opcode); + check_struct_renamed_field!( + io_uring_restriction, + register_or_sqe_op_or_sqe_flags, + __bindgen_anon_1 + ); + check_struct_field!(io_uring_restriction, resv); + check_struct_field!(io_uring_restriction, resv2); + + check_struct!(io_uring_cqe, user_data, res, flags, big_cqe); + check_struct!( + io_uring_params, + sq_entries, + cq_entries, + flags, + sq_thread_cpu, + sq_thread_idle, + features, + wq_fd, + resv, + sq_off, + cq_off + ); + check_struct!( + io_sqring_offsets, + head, + tail, + ring_mask, + ring_entries, + flags, + dropped, + array, + resv1, + user_addr + ); + check_struct!( + io_cqring_offsets, + head, + tail, + ring_mask, + ring_entries, + overflow, + cqes, + flags, + resv1, + user_addr + ); + check_struct!(io_uring_recvmsg_out, namelen, controllen, payloadlen, flags); + check_struct!(io_uring_probe, last_op, ops_len, resv, resv2, ops); + check_struct!(io_uring_probe_op, op, resv, flags, resv2); + check_struct!(io_uring_files_update, offset, resv, fds); + check_struct!(io_uring_rsrc_register, nr, flags, resv2, data, tags); + check_struct!(io_uring_rsrc_update, offset, resv, data); + check_struct!(io_uring_rsrc_update2, offset, resv, data, tags, nr, resv2); + check_struct!( + io_uring_getevents_arg, + sigmask, + sigmask_sz, + min_wait_usec, + ts + ); + check_struct!(iovec, iov_base, iov_len); + check_struct!(open_how, flags, mode, resolve); + check_struct!(io_uring_buf_reg, ring_addr, ring_entries, bgid, flags, resv); + check_struct!(io_uring_buf, addr, len, bid, resv); + check_struct!( + io_uring_sync_cancel_reg, + addr, + fd, + flags, + timeout, + opcode, + pad, + pad2 + ); + + check_renamed_type!(tail_or_bufs_struct, io_uring_buf_ring__bindgen_ty_1); + check_renamed_type!( + buf_ring_tail_struct, + io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 + ); + check_renamed_type!( + buf_ring_bufs_struct, + io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 + ); + check_struct_renamed_field!(io_uring_buf_ring, tail_or_bufs, __bindgen_anon_1); + + check_struct!( + io_uring_napi, + busy_poll_to, + prefer_busy_poll, + opcode, + pad, + op_param, + resv + ); + check_struct!( + io_uring_clone_buffers, + src_fd, + flags, + src_off, + dst_off, + nr, + pad + ); + check_struct!( + io_uring_reg_wait, + ts, + min_wait_usec, + flags, + sigmask, + sigmask_sz, + pad, + pad2 + ); + + check_renamed_struct!( + MsgHdr, + msghdr, + msg_name, + msg_namelen, + msg_iov, + msg_iovlen, + msg_control, + msg_controllen, + msg_flags + ); + } + + #[test] + fn test_io_uring_register_files_skip() { + use crate::backend::c; + assert!(IORING_REGISTER_FILES_SKIP.as_raw_fd() != -1); + assert!(IORING_REGISTER_FILES_SKIP.as_raw_fd() != c::STDIN_FILENO); + assert!(IORING_REGISTER_FILES_SKIP.as_raw_fd() != c::STDOUT_FILENO); + assert!(IORING_REGISTER_FILES_SKIP.as_raw_fd() != c::STDERR_FILENO); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/ioctl/bsd.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/ioctl/bsd.rs new file mode 100644 index 0000000000000000000000000000000000000000..965b31d12b18cc955fa934b4b190783ac69ad353 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/ioctl/bsd.rs @@ -0,0 +1,27 @@ +//! `ioctl` opcode behavior for BSD platforms. + +use super::{Direction, Opcode}; + +pub(super) const fn compose_opcode( + dir: Direction, + group: Opcode, + num: Opcode, + size: Opcode, +) -> Opcode { + let dir = match dir { + Direction::None => NONE, + Direction::Read => READ, + Direction::Write => WRITE, + Direction::ReadWrite => READ | WRITE, + }; + + dir | num | (group << 8) | ((size & IOCPARAM_MASK) << 16) +} + +// `IOC_VOID` +pub const NONE: Opcode = 0x2000_0000; +// `IOC_OUT` (“out” is from the perspective of the kernel) +pub const READ: Opcode = 0x4000_0000; +// `IOC_IN` (“in” is from the perspective of the kernel) +pub const WRITE: Opcode = 0x8000_0000; +pub const IOCPARAM_MASK: Opcode = 0x1FFF; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/ioctl/linux.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/ioctl/linux.rs new file mode 100644 index 0000000000000000000000000000000000000000..8d96a1b28c27382e898a833715226c528918beae --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/ioctl/linux.rs @@ -0,0 +1,124 @@ +//! `ioctl` opcode behavior for Linux platforms. + +use super::{Direction, Opcode}; +use consts::*; + +/// Compose an opcode from its component parts. +pub(super) const fn compose_opcode( + dir: Direction, + group: Opcode, + num: Opcode, + size: Opcode, +) -> Opcode { + macro_rules! mask_and_shift { + ($val:expr, $shift:expr, $mask:expr) => {{ + ($val & $mask) << $shift + }}; + } + + let dir = match dir { + Direction::None => NONE, + Direction::Read => READ, + Direction::Write => WRITE, + Direction::ReadWrite => READ | WRITE, + }; + + mask_and_shift!(group, GROUP_SHIFT, GROUP_MASK) + | mask_and_shift!(num, NUM_SHIFT, NUM_MASK) + | mask_and_shift!(size, SIZE_SHIFT, SIZE_MASK) + | mask_and_shift!(dir, DIR_SHIFT, DIR_MASK) +} + +const NUM_BITS: Opcode = 8; +const GROUP_BITS: Opcode = 8; + +const NUM_SHIFT: Opcode = 0; +const GROUP_SHIFT: Opcode = NUM_SHIFT + NUM_BITS; +const SIZE_SHIFT: Opcode = GROUP_SHIFT + GROUP_BITS; +const DIR_SHIFT: Opcode = SIZE_SHIFT + SIZE_BITS; + +const NUM_MASK: Opcode = (1 << NUM_BITS) - 1; +const GROUP_MASK: Opcode = (1 << GROUP_BITS) - 1; +const SIZE_MASK: Opcode = (1 << SIZE_BITS) - 1; +const DIR_MASK: Opcode = (1 << DIR_BITS) - 1; + +#[cfg(any( + target_arch = "x86", + target_arch = "arm", + target_arch = "s390x", + target_arch = "x86_64", + target_arch = "aarch64", + target_arch = "riscv32", + target_arch = "riscv64", + target_arch = "loongarch64", + target_arch = "csky" +))] +mod consts { + use super::Opcode; + + pub(super) const NONE: Opcode = 0; + pub(super) const READ: Opcode = 2; + pub(super) const WRITE: Opcode = 1; + pub(super) const SIZE_BITS: Opcode = 14; + pub(super) const DIR_BITS: Opcode = 2; +} + +#[cfg(any( + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "mips64", + target_arch = "mips64r6", + target_arch = "powerpc", + target_arch = "powerpc64", + target_arch = "sparc", + target_arch = "sparc64" +))] +mod consts { + use super::Opcode; + + pub(super) const NONE: Opcode = 1; + pub(super) const READ: Opcode = 2; + pub(super) const WRITE: Opcode = 4; + pub(super) const SIZE_BITS: Opcode = 13; + pub(super) const DIR_BITS: Opcode = 3; +} + +#[cfg(test)] +mod tests { + #[allow(unused_imports)] + use super::*; + + #[cfg(all(linux_raw_dep, not(any( + // These have no ioctl opcodes defined in linux_raw_sys so we can't use + // that as a known-good value for this test. + target_arch = "sparc", + target_arch = "sparc64" +))))] + #[test] + fn check_known_opcodes() { + use crate::backend::c::{c_long, c_uint}; + use core::mem::size_of; + + // _IOR('U', 15, unsigned int) + assert_eq!( + compose_opcode( + Direction::Read, + b'U' as Opcode, + 15, + size_of::() as Opcode + ), + linux_raw_sys::ioctl::USBDEVFS_CLAIMINTERFACE as Opcode + ); + + // _IOW('v', 2, long) + assert_eq!( + compose_opcode( + Direction::Write, + b'v' as Opcode, + 2, + size_of::() as Opcode + ), + linux_raw_sys::ioctl::FS_IOC_SETVERSION as Opcode + ); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/ioctl/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/ioctl/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..70c690530908c45a2f2295ed2c1e77b3be16c887 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/ioctl/mod.rs @@ -0,0 +1,376 @@ +//! Unsafe `ioctl` API. +//! +//! Unix systems expose a number of `ioctl`'s. `ioctl`s have been adopted as a +//! general purpose system call for making calls into the kernel. In addition +//! to the wide variety of system calls that are included by default in the +//! kernel, many drivers expose their own `ioctl`'s for controlling their +//! behavior, some of which are proprietary. Therefore it is impossible to make +//! a safe interface for every `ioctl` call, as they all have wildly varying +//! semantics. +//! +//! This module provides an unsafe interface to write your own `ioctl` API. To +//! start, create a type that implements [`Ioctl`]. Then, pass it to [`ioctl`] +//! to make the `ioctl` call. + +#![allow(unsafe_code)] + +use crate::fd::{AsFd, BorrowedFd}; +use crate::ffi as c; +use crate::io::Result; + +#[cfg(any(linux_kernel, bsd, target_os = "redox"))] +use core::mem; + +pub use patterns::*; + +mod patterns; + +#[cfg(any(linux_kernel, target_os = "redox"))] +mod linux; + +#[cfg(bsd)] +mod bsd; + +#[cfg(any(linux_kernel, target_os = "redox"))] +use linux as platform; + +#[cfg(bsd)] +use bsd as platform; + +/// Perform an `ioctl` call. +/// +/// `ioctl` was originally intended to act as a way of modifying the behavior +/// of files, but has since been adopted as a general purpose system call for +/// making calls into the kernel. In addition to the default calls exposed by +/// generic file descriptors, many drivers expose their own `ioctl` calls for +/// controlling their behavior, some of which are proprietary. +/// +/// This crate exposes many other `ioctl` interfaces with safe and idiomatic +/// wrappers, like [`ioctl_fionbio`] and [`ioctl_fionread`]. It is recommended +/// to use those instead of this function, as they are safer and more +/// idiomatic. For other cases, implement the [`Ioctl`] API and pass it to this +/// function. +/// +/// See documentation for [`Ioctl`] for more information. +/// +/// [`ioctl_fionbio`]: crate::io::ioctl_fionbio +/// [`ioctl_fionread`]: crate::io::ioctl_fionread +/// +/// # Safety +/// +/// While [`Ioctl`] takes much of the unsafety out of `ioctl` calls, callers +/// must still ensure that the opcode value, operand type, and data access +/// correctly reflect what's in the device driver servicing the call. `ioctl` +/// calls form a protocol between the userspace `ioctl` callers and the device +/// drivers in the kernel, and safety depends on both sides agreeing and +/// upholding the expectations of the other. +/// +/// And, `ioctl` calls can read and write arbitrary memory and have arbitrary +/// side effects. Callers must ensure that any memory accesses and side effects +/// are compatible with Rust language invariants. +/// +/// # References +/// - [Linux] +/// - [Winsock] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [Apple] +/// - [Solaris] +/// - [illumos] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/ioctl.2.html +/// [Winsock]: https://learn.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-ioctlsocket +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=ioctl&sektion=2 +/// [NetBSD]: https://man.netbsd.org/ioctl.2 +/// [OpenBSD]: https://man.openbsd.org/ioctl.2 +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/ioctl.2.html +/// [Solaris]: https://docs.oracle.com/cd/E23824_01/html/821-1463/ioctl-2.html +/// [illumos]: https://illumos.org/man/2/ioctl +#[inline] +pub unsafe fn ioctl(fd: F, mut ioctl: I) -> Result { + let fd = fd.as_fd(); + let request = ioctl.opcode(); + let arg = ioctl.as_ptr(); + + // SAFETY: The variant of `Ioctl` asserts that this is a valid IOCTL call + // to make. + let output = if I::IS_MUTATING { + _ioctl(fd, request, arg)? + } else { + _ioctl_readonly(fd, request, arg)? + }; + + // SAFETY: The variant of `Ioctl` asserts that this is a valid pointer to + // the output data. + I::output_from_ptr(output, arg) +} + +unsafe fn _ioctl(fd: BorrowedFd<'_>, request: Opcode, arg: *mut c::c_void) -> Result { + crate::backend::io::syscalls::ioctl(fd, request, arg) +} + +unsafe fn _ioctl_readonly( + fd: BorrowedFd<'_>, + request: Opcode, + arg: *mut c::c_void, +) -> Result { + crate::backend::io::syscalls::ioctl_readonly(fd, request, arg) +} + +/// A trait defining the properties of an `ioctl` command. +/// +/// Objects implementing this trait can be passed to [`ioctl`] to make an +/// `ioctl` call. The contents of the object represent the inputs to the +/// `ioctl` call. The inputs must be convertible to a pointer through the +/// `as_ptr` method. In most cases, this involves either casting a number to a +/// pointer, or creating a pointer to the actual data. The latter case is +/// necessary for `ioctl` calls that modify userspace data. +/// +/// # Safety +/// +/// This trait is unsafe to implement because it is impossible to guarantee +/// that the `ioctl` call is safe. The `ioctl` call may be proprietary, or it +/// may be unsafe to call in certain circumstances. +/// +/// By implementing this trait, you guarantee that: +/// +/// - The `ioctl` call expects the input provided by `as_ptr` and produces the +/// output as indicated by `output`. +/// - That `output_from_ptr` can safely take the pointer from `as_ptr` and +/// cast it to the correct type, *only* after the `ioctl` call. +/// - That the return value of `opcode` uniquely identifies the `ioctl` call. +/// - That, for whatever platforms you are targeting, the `ioctl` call is safe +/// to make. +/// - If `IS_MUTATING` is false, that no userspace data will be modified by +/// the `ioctl` call. +pub unsafe trait Ioctl { + /// The type of the output data. + /// + /// Given a pointer, one should be able to construct an instance of this + /// type. + type Output; + + /// Does the `ioctl` mutate any data in the userspace? + /// + /// If the `ioctl` call does not mutate any data in the userspace, then + /// making this `false` enables optimizations that can make the call + /// faster. When in doubt, set this to `true`. + /// + /// # Safety + /// + /// This should only be set to `false` if the `ioctl` call does not mutate + /// any data in the userspace. Undefined behavior may occur if this is set + /// to `false` when it should be `true`. + const IS_MUTATING: bool; + + /// Get the opcode used by this `ioctl` command. + /// + /// There are different types of opcode depending on the operation. See + /// documentation for [`opcode`] for more information. + fn opcode(&self) -> Opcode; + + /// Get a pointer to the data to be passed to the `ioctl` command. + /// + /// See trait-level documentation for more information. + fn as_ptr(&mut self) -> *mut c::c_void; + + /// Cast the output data to the correct type. + /// + /// # Safety + /// + /// The `extract_output` value must be the resulting value after a + /// successful `ioctl` call, and `out` is the direct return value of an + /// `ioctl` call that did not fail. In this case `extract_output` is the + /// pointer that was passed to the `ioctl` call. + unsafe fn output_from_ptr( + out: IoctlOutput, + extract_output: *mut c::c_void, + ) -> Result; +} + +/// Const functions for computing opcode values. +/// +/// Linux's headers define macros such as `_IO`, `_IOR`, `_IOW`, and `_IOWR` +/// for defining ioctl values in a structured way that encode whether they +/// are reading and/or writing, and other information about the ioctl. The +/// functions in this module correspond to those macros. +/// +/// If you're writing a driver and defining your own ioctl numbers, it's +/// recommended to use these functions to compute them. +#[cfg(any(linux_kernel, bsd, target_os = "redox"))] +pub mod opcode { + use super::*; + + /// Create a new opcode from a direction, group, number, and size. + /// + /// This corresponds to the C macro `_IOC(direction, group, number, size)` + #[doc(alias = "_IOC")] + #[inline] + pub const fn from_components( + direction: Direction, + group: u8, + number: u8, + data_size: usize, + ) -> Opcode { + assert!(data_size <= Opcode::MAX as usize, "data size is too large"); + + platform::compose_opcode( + direction, + group as Opcode, + number as Opcode, + data_size as Opcode, + ) + } + + /// Create a new opcode from a group, a number, that uses no data. + /// + /// This corresponds to the C macro `_IO(group, number)`. + #[doc(alias = "_IO")] + #[inline] + pub const fn none(group: u8, number: u8) -> Opcode { + from_components(Direction::None, group, number, 0) + } + + /// Create a new reading opcode from a group, a number and the type of + /// data. + /// + /// This corresponds to the C macro `_IOR(group, number, T)`. + #[doc(alias = "_IOR")] + #[inline] + pub const fn read(group: u8, number: u8) -> Opcode { + from_components(Direction::Read, group, number, mem::size_of::()) + } + + /// Create a new writing opcode from a group, a number and the type of + /// data. + /// + /// This corresponds to the C macro `_IOW(group, number, T)`. + #[doc(alias = "_IOW")] + #[inline] + pub const fn write(group: u8, number: u8) -> Opcode { + from_components(Direction::Write, group, number, mem::size_of::()) + } + + /// Create a new reading and writing opcode from a group, a number and the + /// type of data. + /// + /// This corresponds to the C macro `_IOWR(group, number, T)`. + #[doc(alias = "_IOWR")] + #[inline] + pub const fn read_write(group: u8, number: u8) -> Opcode { + from_components(Direction::ReadWrite, group, number, mem::size_of::()) + } +} + +/// The direction that an `ioctl` is going. +/// +/// The direction is relative to userspace: `Read` means reading data from the +/// kernel, and `Write` means the kernel writing data to userspace. +#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] +pub enum Direction { + /// None of the above. + None, + + /// Read data from the kernel. + Read, + + /// Write data to the kernel. + Write, + + /// Read and write data to the kernel. + ReadWrite, +} + +/// The type used by the `ioctl` to signify the output. +pub type IoctlOutput = c::c_int; + +/// The type used by the `ioctl` to signify the command. +pub type Opcode = _Opcode; + +// Under raw Linux, this is an `unsigned int`. +#[cfg(linux_raw)] +type _Opcode = c::c_uint; + +// On libc Linux with GNU libc or uclibc, this is an `unsigned long`. +#[cfg(all( + not(linux_raw), + target_os = "linux", + any(target_env = "gnu", target_env = "uclibc") +))] +type _Opcode = c::c_ulong; + +// Musl uses `c_int`. +#[cfg(all( + not(linux_raw), + target_os = "linux", + not(target_env = "gnu"), + not(target_env = "uclibc") +))] +type _Opcode = c::c_int; + +// Android uses `c_int`. +#[cfg(all(not(linux_raw), target_os = "android"))] +type _Opcode = c::c_int; + +// BSD, Haiku, Hurd, Redox, and Vita use `unsigned long`. +#[cfg(any( + bsd, + target_os = "redox", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "vita" +))] +type _Opcode = c::c_ulong; + +// AIX, Emscripten, Fuchsia, Solaris, and WASI use a `int`. +#[cfg(any( + solarish, + target_os = "aix", + target_os = "cygwin", + target_os = "fuchsia", + target_os = "emscripten", + target_os = "nto", + target_os = "wasi", +))] +type _Opcode = c::c_int; + +// ESP-IDF uses a `c_uint`. +#[cfg(target_os = "espidf")] +type _Opcode = c::c_uint; + +// Windows has `ioctlsocket`, which uses `i32`. +#[cfg(windows)] +type _Opcode = i32; + +#[cfg(linux_raw_dep)] +#[cfg(not(any(target_arch = "sparc", target_arch = "sparc64")))] +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_opcode_funcs() { + // `TUNGETDEVNETNS` is defined as `_IO('T', 227)`. + assert_eq!( + linux_raw_sys::ioctl::TUNGETDEVNETNS as Opcode, + opcode::none(b'T', 227) + ); + // `FS_IOC_GETVERSION` is defined as `_IOR('v', 1, long)`. + assert_eq!( + linux_raw_sys::ioctl::FS_IOC_GETVERSION as Opcode, + opcode::read::(b'v', 1) + ); + // `TUNSETNOCSUM` is defined as `_IOW('T', 200, int)`. + assert_eq!( + linux_raw_sys::ioctl::TUNSETNOCSUM as Opcode, + opcode::write::(b'T', 200) + ); + // `FIFREEZE` is defined as `_IOWR('X', 119, int)`. + assert_eq!( + linux_raw_sys::ioctl::FIFREEZE as Opcode, + opcode::read_write::(b'X', 119) + ); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/ioctl/patterns.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/ioctl/patterns.rs new file mode 100644 index 0000000000000000000000000000000000000000..a08aae74ebfbac0d51e201fe44ea58a73e702333 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/ioctl/patterns.rs @@ -0,0 +1,268 @@ +//! Implements typical patterns for `ioctl` usage. + +use super::{Ioctl, IoctlOutput, Opcode}; + +use crate::backend::c; +use crate::io::Result; + +use core::ptr::addr_of_mut; +use core::{fmt, mem}; + +/// Implements an `ioctl` with no real arguments. +/// +/// To compute a value for the `OPCODE` argument, see the functions in the +/// [`opcode`] module. +/// +/// [`opcode`]: crate::ioctl::opcode +pub struct NoArg {} + +impl fmt::Debug for NoArg { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.debug_tuple("NoArg").field(&OPCODE).finish() + } +} + +impl NoArg { + /// Create a new no-argument `ioctl` object. + /// + /// # Safety + /// + /// - `OPCODE` must provide a valid opcode. + #[inline] + pub const unsafe fn new() -> Self { + Self {} + } +} + +unsafe impl Ioctl for NoArg { + type Output = (); + + const IS_MUTATING: bool = false; + + fn opcode(&self) -> self::Opcode { + OPCODE + } + + fn as_ptr(&mut self) -> *mut c::c_void { + core::ptr::null_mut() + } + + unsafe fn output_from_ptr(_: IoctlOutput, _: *mut c::c_void) -> Result { + Ok(()) + } +} + +/// Implements the traditional “getter” pattern for `ioctl`s. +/// +/// Some `ioctl`s just read data into the userspace. As this is a popular +/// pattern, this structure implements it. +/// +/// To compute a value for the `OPCODE` argument, see the functions in the +/// [`opcode`] module. +/// +/// [`opcode`]: crate::ioctl::opcode +pub struct Getter { + /// The output data. + output: mem::MaybeUninit, +} + +impl fmt::Debug for Getter { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.debug_tuple("Getter").field(&OPCODE).finish() + } +} + +impl Getter { + /// Create a new getter-style `ioctl` object. + /// + /// # Safety + /// + /// - `OPCODE` must provide a valid opcode. + /// - For this opcode, `Output` must be the type that the kernel expects + /// to write into. + #[inline] + pub const unsafe fn new() -> Self { + Self { + output: mem::MaybeUninit::uninit(), + } + } +} + +unsafe impl Ioctl for Getter { + type Output = Output; + + const IS_MUTATING: bool = true; + + fn opcode(&self) -> self::Opcode { + OPCODE + } + + fn as_ptr(&mut self) -> *mut c::c_void { + self.output.as_mut_ptr().cast() + } + + unsafe fn output_from_ptr(_: IoctlOutput, ptr: *mut c::c_void) -> Result { + Ok(ptr.cast::().read()) + } +} + +/// Implements the pattern for `ioctl`s where a pointer argument is given to +/// the `ioctl`. +/// +/// The opcode must be read-only. +/// +/// To compute a value for the `OPCODE` argument, see the functions in the +/// [`opcode`] module. +/// +/// [`opcode`]: crate::ioctl::opcode +pub struct Setter { + /// The input data. + input: Input, +} + +impl fmt::Debug for Setter { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.debug_tuple("Setter") + .field(&OPCODE) + .field(&self.input) + .finish() + } +} + +impl Setter { + /// Create a new pointer setter-style `ioctl` object. + /// + /// # Safety + /// + /// - `OPCODE` must provide a valid opcode. + /// - For this opcode, `Input` must be the type that the kernel expects to + /// get. + #[inline] + pub const unsafe fn new(input: Input) -> Self { + Self { input } + } +} + +unsafe impl Ioctl for Setter { + type Output = (); + + const IS_MUTATING: bool = false; + + fn opcode(&self) -> self::Opcode { + OPCODE + } + + fn as_ptr(&mut self) -> *mut c::c_void { + addr_of_mut!(self.input).cast::() + } + + unsafe fn output_from_ptr(_: IoctlOutput, _: *mut c::c_void) -> Result { + Ok(()) + } +} + +/// Implements an “updater” pattern for `ioctl`s. +/// +/// The ioctl takes a reference to a struct that it reads its input from, +/// then writes output to the same struct. +/// +/// To compute a value for the `OPCODE` argument, see the functions in the +/// [`opcode`] module. +/// +/// [`opcode`]: crate::ioctl::opcode +pub struct Updater<'a, const OPCODE: Opcode, Value> { + /// Reference to input/output data. + value: &'a mut Value, +} + +impl<'a, const OPCODE: Opcode, Value> Updater<'a, OPCODE, Value> { + /// Create a new pointer updater-style `ioctl` object. + /// + /// # Safety + /// + /// - `OPCODE` must provide a valid opcode. + /// - For this opcode, `Value` must be the type that the kernel expects to + /// get. + #[inline] + pub unsafe fn new(value: &'a mut Value) -> Self { + Self { value } + } +} + +unsafe impl<'a, const OPCODE: Opcode, T> Ioctl for Updater<'a, OPCODE, T> { + type Output = (); + + const IS_MUTATING: bool = true; + + fn opcode(&self) -> self::Opcode { + OPCODE + } + + fn as_ptr(&mut self) -> *mut c::c_void { + (self.value as *mut T).cast() + } + + unsafe fn output_from_ptr(_output: IoctlOutput, _ptr: *mut c::c_void) -> Result<()> { + Ok(()) + } +} + +/// Implements an `ioctl` that passes an integer into the `ioctl`. +/// +/// To compute a value for the `OPCODE` argument, see the functions in the +/// [`opcode`] module. +/// +/// [`opcode`]: crate::ioctl::opcode +pub struct IntegerSetter { + /// The value to pass in. + /// + /// For strict provenance preservation, this is a pointer. + value: *mut c::c_void, +} + +impl IntegerSetter { + /// Create a new integer `Ioctl` helper containing a `usize`. + /// + /// # Safety + /// + /// - `OPCODE` must provide a valid opcode. + /// - For this opcode, it must expect an integer. + /// - The integer is in the valid range for this opcode. + #[inline] + pub const unsafe fn new_usize(value: usize) -> Self { + Self { value: value as _ } + } + + /// Create a new integer `Ioctl` helper containing a `*mut c_void`. + /// + /// # Safety + /// + /// - `OPCODE` must provide a valid opcode. + /// - For this opcode, it must expect an integer. + /// - The integer is in the valid range for this opcode. + #[inline] + pub const unsafe fn new_pointer(value: *mut c::c_void) -> Self { + Self { value } + } +} + +unsafe impl Ioctl for IntegerSetter { + type Output = (); + + const IS_MUTATING: bool = false; + + fn opcode(&self) -> self::Opcode { + OPCODE + } + + fn as_ptr(&mut self) -> *mut c::c_void { + self.value + } + + unsafe fn output_from_ptr( + _out: IoctlOutput, + _extract_output: *mut c::c_void, + ) -> Result { + Ok(()) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/kernel_sigset.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/kernel_sigset.rs new file mode 100644 index 0000000000000000000000000000000000000000..706bcb8cb206c0cc868dcc6779ca4d49df8317c4 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/kernel_sigset.rs @@ -0,0 +1,326 @@ +//! The [`KernelSigSet`] type. + +#![allow(unsafe_code)] +#![allow(non_camel_case_types)] + +use crate::backend::c; +use crate::signal::Signal; +use core::fmt; +use linux_raw_sys::general::{kernel_sigset_t, _NSIG}; + +/// `kernel_sigset_t`—A set of signal numbers, as used by some syscalls. +/// +/// This is similar to `libc::sigset_t`, but with only enough space for the +/// signals currently known to be used by the kernel. libc implementations +/// reserve extra space so that if Linux defines new signals in the future +/// they can add support without breaking their dynamic linking ABI. Rustix +/// doesn't support a dynamic linking ABI, so if we need to increase the +/// size of `KernelSigSet` in the future, we can do so. +/// +/// It's also the case that the last time Linux changed the size of its +/// `kernel_sigset_t` was when it added support for POSIX.1b signals in 1999. +/// +/// `KernelSigSet` is guaranteed to have a subset of the layout of +/// `libc::sigset_t`. +/// +/// libc implementations typically also reserve some signal values for internal +/// use. In a process that contains a libc, some unsafe functions invoke +/// undefined behavior if passed a `KernelSigSet` that contains one of the +/// signals that the libc reserves. +#[repr(transparent)] +#[derive(Clone)] +pub struct KernelSigSet(kernel_sigset_t); + +impl KernelSigSet { + /// Create a new empty `KernelSigSet`. + pub const fn empty() -> Self { + const fn zeros() -> [c::c_ulong; N] { + [0; N] + } + Self(kernel_sigset_t { sig: zeros() }) + } + + /// Create a new `KernelSigSet` with all signals set. + /// + /// This includes signals which are typically reserved for libc. + pub const fn all() -> Self { + const fn ones() -> [c::c_ulong; N] { + [!0; N] + } + Self(kernel_sigset_t { sig: ones() }) + } + + /// Remove all signals. + pub fn clear(&mut self) { + *self = Self(kernel_sigset_t { + sig: Default::default(), + }); + } + + /// Insert a signal. + pub fn insert(&mut self, sig: Signal) { + let sigs_per_elt = core::mem::size_of_val(&self.0.sig[0]) * 8; + + let raw = (sig.as_raw().wrapping_sub(1)) as usize; + self.0.sig[raw / sigs_per_elt] |= 1 << (raw % sigs_per_elt); + } + + /// Insert all signals. + pub fn insert_all(&mut self) { + self.0.sig.fill(!0); + } + + /// Remove a signal. + pub fn remove(&mut self, sig: Signal) { + let sigs_per_elt = core::mem::size_of_val(&self.0.sig[0]) * 8; + + let raw = (sig.as_raw().wrapping_sub(1)) as usize; + self.0.sig[raw / sigs_per_elt] &= !(1 << (raw % sigs_per_elt)); + } + + /// Test whether a given signal is present. + pub fn contains(&self, sig: Signal) -> bool { + let sigs_per_elt = core::mem::size_of_val(&self.0.sig[0]) * 8; + + let raw = (sig.as_raw().wrapping_sub(1)) as usize; + (self.0.sig[raw / sigs_per_elt] & (1 << (raw % sigs_per_elt))) != 0 + } +} + +impl Default for KernelSigSet { + #[inline] + fn default() -> Self { + Self::empty() + } +} + +impl fmt::Debug for KernelSigSet { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + let mut d = f.debug_set(); + + // Surprisingly, `_NSIG` is inclusive. + for i in 1..=_NSIG { + // SAFETY: This value is non-zero, in range, and only used for + // debug output. + let sig = unsafe { Signal::from_raw_unchecked(i as _) }; + + if self.contains(sig) { + d.entry(&sig); + } + } + + d.finish() + } +} + +#[cfg(test)] +mod tests { + use super::*; + #[cfg(linux_raw)] + use crate::runtime::{KERNEL_SIGRTMAX, KERNEL_SIGRTMIN}; + use core::mem::{align_of, size_of}; + + #[test] + fn test_assumptions() { + #[cfg(linux_raw)] + assert!(KERNEL_SIGRTMAX as usize - 1 < size_of::() * 8); + } + + #[test] + fn test_layouts() { + assert!(size_of::() <= size_of::()); + assert!(align_of::() <= align_of::()); + } + + /// A bunch of signals for testing. + fn sigs() -> Vec { + #[allow(unused_mut)] + let mut sigs = vec![ + Signal::HUP, + Signal::INT, + Signal::QUIT, + Signal::ILL, + Signal::TRAP, + Signal::ABORT, + Signal::BUS, + Signal::FPE, + Signal::KILL, + Signal::USR1, + Signal::SEGV, + Signal::USR2, + Signal::PIPE, + Signal::ALARM, + Signal::TERM, + Signal::CHILD, + Signal::CONT, + Signal::STOP, + Signal::TSTP, + Signal::TTIN, + Signal::TTOU, + Signal::URG, + Signal::XCPU, + Signal::XFSZ, + Signal::VTALARM, + Signal::PROF, + Signal::WINCH, + Signal::SYS, + unsafe { Signal::from_raw_unchecked(libc::SIGRTMIN()) }, + unsafe { Signal::from_raw_unchecked(libc::SIGRTMIN() + 7) }, + unsafe { Signal::from_raw_unchecked(libc::SIGRTMAX()) }, + ]; + + #[cfg(linux_raw)] + { + sigs.push(unsafe { Signal::from_raw_unchecked(KERNEL_SIGRTMIN) }); + sigs.push(unsafe { Signal::from_raw_unchecked(KERNEL_SIGRTMIN + 7) }); + sigs.push(unsafe { Signal::from_raw_unchecked(KERNEL_SIGRTMAX) }); + } + + sigs + } + + /// A bunch of non-reserved signals for testing. + fn libc_sigs() -> [Signal; 31] { + [ + Signal::HUP, + Signal::INT, + Signal::QUIT, + Signal::ILL, + Signal::TRAP, + Signal::ABORT, + Signal::BUS, + Signal::FPE, + Signal::KILL, + Signal::USR1, + Signal::SEGV, + Signal::USR2, + Signal::PIPE, + Signal::ALARM, + Signal::TERM, + Signal::CHILD, + Signal::CONT, + Signal::STOP, + Signal::TSTP, + Signal::TTIN, + Signal::TTOU, + Signal::URG, + Signal::XCPU, + Signal::XFSZ, + Signal::VTALARM, + Signal::PROF, + Signal::WINCH, + Signal::SYS, + unsafe { Signal::from_raw_unchecked(libc::SIGRTMIN()) }, + unsafe { Signal::from_raw_unchecked(libc::SIGRTMIN() + 7) }, + unsafe { Signal::from_raw_unchecked(libc::SIGRTMAX()) }, + ] + } + + #[test] + fn test_ops_plain() { + for sig in sigs() { + let mut set = KernelSigSet::empty(); + for sig in sigs() { + assert!(!set.contains(sig)); + } + + set.insert(sig); + assert!(set.contains(sig)); + for sig in sigs().iter().filter(|s| **s != sig) { + assert!(!set.contains(*sig)); + } + + set.remove(sig); + for sig in sigs() { + assert!(!set.contains(sig)); + } + } + } + + #[test] + fn test_clear() { + let mut set = KernelSigSet::empty(); + for sig in sigs() { + set.insert(sig); + } + + set.clear(); + + for sig in sigs() { + assert!(!set.contains(sig)); + } + } + + // io_uring libraries assume that libc's `sigset_t` matches the layout + // of the Linux kernel's `kernel_sigset_t`. Test that rustix's layout + // matches as well. + #[test] + fn test_libc_layout_compatibility() { + use crate::utils::as_ptr; + + let mut lc = unsafe { core::mem::zeroed::() }; + let mut ru = KernelSigSet::empty(); + let r = unsafe { libc::sigemptyset(&mut lc) }; + + assert_eq!(r, 0); + assert_eq!( + unsafe { + libc::memcmp( + as_ptr(&lc).cast(), + as_ptr(&ru).cast(), + core::mem::size_of::(), + ) + }, + 0 + ); + + for sig in libc_sigs() { + ru.insert(sig); + assert_ne!( + unsafe { + libc::memcmp( + as_ptr(&lc).cast(), + as_ptr(&ru).cast(), + core::mem::size_of::(), + ) + }, + 0 + ); + let r = unsafe { libc::sigaddset(&mut lc, sig.as_raw()) }; + assert_eq!(r, 0); + assert_eq!( + unsafe { + libc::memcmp( + as_ptr(&lc).cast(), + as_ptr(&ru).cast(), + core::mem::size_of::(), + ) + }, + 0 + ); + ru.remove(sig); + assert_ne!( + unsafe { + libc::memcmp( + as_ptr(&lc).cast(), + as_ptr(&ru).cast(), + core::mem::size_of::(), + ) + }, + 0 + ); + let r = unsafe { libc::sigdelset(&mut lc, sig.as_raw()) }; + assert_eq!(r, 0); + assert_eq!( + unsafe { + libc::memcmp( + as_ptr(&lc).cast(), + as_ptr(&ru).cast(), + core::mem::size_of::(), + ) + }, + 0 + ); + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/lib.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/lib.rs new file mode 100644 index 0000000000000000000000000000000000000000..8d4a5e5216d8648a0512f5b1083e7a6e3e3266e8 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/lib.rs @@ -0,0 +1,427 @@ +//! `rustix` provides efficient memory-safe and [I/O-safe] wrappers to +//! POSIX-like, Unix-like, Linux, and Winsock syscall-like APIs, with +//! configurable backends. +//! +//! With rustix, you can write code like this: +//! +//! ``` +//! # #[cfg(feature = "net")] +//! # fn read(sock: std::net::TcpStream, buf: &mut [u8]) -> std::io::Result<()> { +//! # use rustix::net::RecvFlags; +//! let (nread, _received) = rustix::net::recv(&sock, buf, RecvFlags::PEEK)?; +//! # let _ = nread; +//! # Ok(()) +//! # } +//! ``` +//! +//! instead of like this: +//! +//! ``` +//! # #[cfg(feature = "net")] +//! # fn read(sock: std::net::TcpStream, buf: &mut [u8]) -> std::io::Result<()> { +//! # #[cfg(unix)] +//! # use std::os::unix::io::AsRawFd; +//! # #[cfg(target_os = "wasi")] +//! # use std::os::wasi::io::AsRawFd; +//! # #[cfg(windows)] +//! # use windows_sys::Win32::Networking::WinSock as libc; +//! # #[cfg(windows)] +//! # use std::os::windows::io::AsRawSocket; +//! # const MSG_PEEK: i32 = libc::MSG_PEEK; +//! let nread = unsafe { +//! #[cfg(any(unix, target_os = "wasi"))] +//! let raw = sock.as_raw_fd(); +//! #[cfg(windows)] +//! let raw = sock.as_raw_socket(); +//! match libc::recv( +//! raw as _, +//! buf.as_mut_ptr().cast(), +//! buf.len().try_into().unwrap_or(i32::MAX as _), +//! MSG_PEEK, +//! ) { +//! -1 => return Err(std::io::Error::last_os_error()), +//! nread => nread as usize, +//! } +//! }; +//! # let _ = nread; +//! # Ok(()) +//! # } +//! ``` +//! +//! rustix's APIs perform the following tasks: +//! - Error values are translated to [`Result`]s. +//! - Buffers are passed as Rust slices. +//! - Out-parameters are presented as return values. +//! - Path arguments use [`Arg`], so they accept any string type. +//! - File descriptors are passed and returned via [`AsFd`] and [`OwnedFd`] +//! instead of bare integers, ensuring I/O safety. +//! - Constants use `enum`s and [`bitflags`] types, and enable [support for +//! externally defined flags]. +//! - Multiplexed functions (eg. `fcntl`, `ioctl`, etc.) are de-multiplexed. +//! - Variadic functions (eg. `openat`, etc.) are presented as non-variadic. +//! - Functions that return strings automatically allocate sufficient memory +//! and retry the syscall as needed to determine the needed length. +//! - Functions and types which need `l` prefixes or `64` suffixes to enable +//! large-file support (LFS) are used automatically. File sizes and offsets +//! are always presented as `u64` and `i64`. +//! - Behaviors that depend on the sizes of C types like `long` are hidden. +//! - In some places, more human-friendly and less historical-accident names +//! are used (and documentation aliases are used so that the original names +//! can still be searched for). +//! - Provide y2038 compatibility, on platforms which support this. +//! - Correct selected platform bugs, such as behavioral differences when +//! running under seccomp. +//! - Use `timespec` for timestamps and timeouts instead of `timeval` and +//! `c_int` milliseconds. +//! +//! Things they don't do include: +//! - Detecting whether functions are supported at runtime, except in specific +//! cases where new interfaces need to be detected to support y2038 and LFS. +//! - Hiding significant differences between platforms. +//! - Restricting ambient authorities. +//! - Imposing sandboxing features such as filesystem path or network address +//! sandboxing. +//! +//! See [`cap-std`], [`system-interface`], and [`io-streams`] for libraries +//! which do hide significant differences between platforms, and [`cap-std`] +//! which does perform sandboxing and restricts ambient authorities. +//! +//! [`cap-std`]: https://crates.io/crates/cap-std +//! [`system-interface`]: https://crates.io/crates/system-interface +//! [`io-streams`]: https://crates.io/crates/io-streams +//! [`bitflags`]: bitflags +//! [`AsFd`]: crate::fd::AsFd +//! [`OwnedFd`]: crate::fd::OwnedFd +//! [I/O-safe]: https://github.com/rust-lang/rfcs/blob/master/text/3128-io-safety.md +//! [`Arg`]: path::Arg +//! [support for externally defined flags]: bitflags#externally-defined-flags + +#![deny(missing_docs)] +#![allow(stable_features)] +#![cfg_attr(linux_raw, deny(unsafe_code))] +#![cfg_attr(rustc_attrs, feature(rustc_attrs))] +#![cfg_attr(docsrs, feature(doc_cfg))] +#![cfg_attr(all(wasi_ext, target_os = "wasi", feature = "std"), feature(wasi_ext))] +#![cfg_attr(core_ffi_c, feature(core_ffi_c))] +#![cfg_attr(core_c_str, feature(core_c_str))] +#![cfg_attr(error_in_core, feature(error_in_core))] +#![cfg_attr(all(feature = "alloc", alloc_c_string), feature(alloc_c_string))] +#![cfg_attr(all(feature = "alloc", alloc_ffi), feature(alloc_ffi))] +#![cfg_attr(not(feature = "std"), no_std)] +#![cfg_attr(feature = "rustc-dep-of-std", feature(ip))] +#![cfg_attr(feature = "rustc-dep-of-std", allow(internal_features))] +#![cfg_attr( + any(feature = "rustc-dep-of-std", core_intrinsics), + feature(core_intrinsics) +)] +#![cfg_attr(asm_experimental_arch, feature(asm_experimental_arch))] +#![cfg_attr(not(feature = "all-apis"), allow(dead_code))] +// It is common in Linux and libc APIs for types to vary between platforms. +#![allow(clippy::unnecessary_cast)] +// It is common in Linux and libc APIs for types to vary between platforms. +#![allow(clippy::useless_conversion)] +// This clippy lint gets too many false positives. +#![allow(clippy::needless_lifetimes)] +// Until `unnecessary_transmutes` is recognized by our MSRV, don't warn about +// it being unrecognized. +#![allow(unknown_lints)] +// Until `cast_signed` and `cast_unsigned` are supported by our MSRV, don't +// warn about transmutes that could be changed to them. +#![allow(unnecessary_transmutes)] +// Redox and WASI have enough differences that it isn't worth precisely +// conditionalizing all the `use`s for them. Similar for if we don't have +// "all-apis". +#![cfg_attr( + any(target_os = "redox", target_os = "wasi", not(feature = "all-apis")), + allow(unused_imports) +)] +// wasip2 conditionally gates stdlib APIs such as `OsStrExt`. +// +#![cfg_attr( + all( + target_os = "wasi", + target_env = "p2", + any(feature = "fs", feature = "mount", feature = "net"), + wasip2, + ), + feature(wasip2) +)] + +#[cfg(all(feature = "alloc", feature = "rustc-dep-of-std"))] +extern crate rustc_std_workspace_alloc as alloc; + +#[cfg(all(feature = "alloc", not(feature = "rustc-dep-of-std")))] +extern crate alloc; + +// Use `static_assertions` macros if we have them, or a polyfill otherwise. +#[cfg(all(test, static_assertions))] +#[macro_use] +#[allow(unused_imports)] +extern crate static_assertions; +#[cfg(all(test, not(static_assertions)))] +#[macro_use] +#[allow(unused_imports)] +mod static_assertions; + +pub mod buffer; +#[cfg(not(windows))] +#[macro_use] +pub(crate) mod cstr; +#[macro_use] +pub(crate) mod utils; +// Polyfill for `std` in `no_std` builds. +#[cfg_attr(feature = "std", path = "maybe_polyfill/std/mod.rs")] +#[cfg_attr(not(feature = "std"), path = "maybe_polyfill/no_std/mod.rs")] +pub(crate) mod maybe_polyfill; +#[cfg(test)] +#[macro_use] +pub(crate) mod check_types; +#[macro_use] +pub(crate) mod bitcast; +#[cfg(sanitize_memory)] +pub(crate) mod msan; + +// linux_raw: Weak symbols are used by the use-libc-auxv feature for +// glibc 2.15 support. +// +// libc: Weak symbols are used to call various functions available in some +// versions of libc and not others. +#[cfg(any( + all(linux_raw, feature = "use-libc-auxv"), + all(libc, not(any(windows, target_os = "espidf", target_os = "wasi"))) +))] +#[macro_use] +mod weak; + +// Pick the backend implementation to use. +#[cfg_attr(libc, path = "backend/libc/mod.rs")] +#[cfg_attr(linux_raw, path = "backend/linux_raw/mod.rs")] +mod backend; + +/// Export the `*Fd` types and traits that are used in rustix's public API. +/// +/// This module exports the types and traits from [`std::os::fd`], or polyills +/// on Rust < 1.66 or on Windows. +/// +/// On Windows, the polyfill consists of aliases of the socket types and +/// traits, For example, [`OwnedSocket`] is aliased to `OwnedFd`, and so on, +/// and there are blanket impls for `AsFd` etc. that map to `AsSocket` impls. +/// These blanket impls suffice for using the traits, however not for +/// implementing them, so this module also exports `AsSocket` and the other +/// traits as-is so that users can implement them if needed. +/// +/// [`OwnedSocket`]: https://doc.rust-lang.org/stable/std/os/windows/io/struct.OwnedSocket.html +pub mod fd { + pub use super::backend::fd::*; +} + +// The public API modules. +#[cfg(feature = "event")] +#[cfg_attr(docsrs, doc(cfg(feature = "event")))] +pub mod event; +pub mod ffi; +#[cfg(not(windows))] +#[cfg(feature = "fs")] +#[cfg_attr(docsrs, doc(cfg(feature = "fs")))] +pub mod fs; +pub mod io; +#[cfg(all(linux_kernel, not(target_os = "android")))] +#[cfg(feature = "io_uring")] +#[cfg_attr(docsrs, doc(cfg(feature = "io_uring")))] +pub mod io_uring; +pub mod ioctl; +#[cfg(not(any( + windows, + target_os = "espidf", + target_os = "horizon", + target_os = "vita", + target_os = "wasi" +)))] +#[cfg(feature = "mm")] +#[cfg_attr(docsrs, doc(cfg(feature = "mm")))] +pub mod mm; +#[cfg(linux_kernel)] +#[cfg(feature = "mount")] +#[cfg_attr(docsrs, doc(cfg(feature = "mount")))] +pub mod mount; +#[cfg(not(target_os = "wasi"))] +#[cfg(feature = "net")] +#[cfg_attr(docsrs, doc(cfg(feature = "net")))] +pub mod net; +#[cfg(not(any(windows, target_os = "espidf")))] +#[cfg(feature = "param")] +#[cfg_attr(docsrs, doc(cfg(feature = "param")))] +pub mod param; +#[cfg(not(windows))] +#[cfg(any(feature = "fs", feature = "mount", feature = "net"))] +#[cfg_attr( + docsrs, + doc(cfg(any(feature = "fs", feature = "mount", feature = "net"))) +)] +pub mod path; +#[cfg(feature = "pipe")] +#[cfg_attr(docsrs, doc(cfg(feature = "pipe")))] +#[cfg(not(any(windows, target_os = "wasi")))] +pub mod pipe; +#[cfg(not(windows))] +#[cfg(feature = "process")] +#[cfg_attr(docsrs, doc(cfg(feature = "process")))] +pub mod process; +#[cfg(not(windows))] +#[cfg(not(target_os = "wasi"))] +#[cfg(feature = "pty")] +#[cfg_attr(docsrs, doc(cfg(feature = "pty")))] +pub mod pty; +#[cfg(not(windows))] +#[cfg(feature = "rand")] +#[cfg_attr(docsrs, doc(cfg(feature = "rand")))] +pub mod rand; +#[cfg(not(any( + windows, + target_os = "android", + target_os = "espidf", + target_os = "horizon", + target_os = "vita", + target_os = "wasi" +)))] +#[cfg(feature = "shm")] +#[cfg_attr(docsrs, doc(cfg(feature = "shm")))] +pub mod shm; +#[cfg(not(windows))] +#[cfg(feature = "stdio")] +#[cfg_attr(docsrs, doc(cfg(feature = "stdio")))] +pub mod stdio; +#[cfg(feature = "system")] +#[cfg(not(any(windows, target_os = "wasi")))] +#[cfg_attr(docsrs, doc(cfg(feature = "system")))] +pub mod system; +#[cfg(not(any(windows, target_os = "horizon", target_os = "vita")))] +#[cfg(feature = "termios")] +#[cfg_attr(docsrs, doc(cfg(feature = "termios")))] +pub mod termios; +#[cfg(not(windows))] +#[cfg(feature = "thread")] +#[cfg_attr(docsrs, doc(cfg(feature = "thread")))] +pub mod thread; +#[cfg(not(any(windows, target_os = "espidf")))] +#[cfg(feature = "time")] +#[cfg_attr(docsrs, doc(cfg(feature = "time")))] +pub mod time; + +// "runtime" is also a public API module, but it's only for libc-like users. +#[cfg(not(windows))] +#[cfg(feature = "runtime")] +#[cfg(linux_raw)] +#[cfg_attr(not(document_experimental_runtime_api), doc(hidden))] +#[cfg_attr(docsrs, doc(cfg(feature = "runtime")))] +pub mod runtime; + +// Declare "fs" as a non-public module if "fs" isn't enabled but we need it for +// reading procfs. +#[cfg(not(windows))] +#[cfg(not(feature = "fs"))] +#[cfg(all( + linux_raw, + not(feature = "use-libc-auxv"), + not(feature = "use-explicitly-provided-auxv"), + any( + feature = "param", + feature = "runtime", + feature = "thread", + feature = "time", + target_arch = "x86", + ) +))] +#[cfg_attr(docsrs, doc(cfg(feature = "fs")))] +pub(crate) mod fs; + +// Similarly, declare `path` as a non-public module if needed. +#[cfg(not(windows))] +#[cfg(not(any(feature = "fs", feature = "mount", feature = "net")))] +#[cfg(all( + linux_raw, + not(feature = "use-libc-auxv"), + not(feature = "use-explicitly-provided-auxv"), + any( + feature = "param", + feature = "runtime", + feature = "thread", + feature = "time", + target_arch = "x86", + ) +))] +pub(crate) mod path; + +// Private modules used by multiple public modules. +#[cfg(not(any(windows, target_os = "espidf")))] +#[cfg(any(feature = "thread", feature = "time"))] +mod clockid; +#[cfg(linux_kernel)] +#[cfg(any(feature = "io_uring", feature = "runtime"))] +mod kernel_sigset; +#[cfg(not(any(windows, target_os = "wasi")))] +#[cfg(any( + feature = "process", + feature = "runtime", + feature = "termios", + feature = "thread", + all(bsd, feature = "event"), + all(linux_kernel, feature = "net") +))] +mod pid; +#[cfg(any(feature = "process", feature = "thread"))] +#[cfg(linux_kernel)] +mod prctl; +#[cfg(not(any(windows, target_os = "espidf", target_os = "wasi")))] +#[cfg(any( + feature = "io_uring", + feature = "process", + feature = "runtime", + all(bsd, feature = "event") +))] +mod signal; +#[cfg(any( + feature = "fs", + feature = "event", + feature = "process", + feature = "runtime", + feature = "thread", + feature = "time", + all(feature = "event", any(bsd, linux_kernel, windows, target_os = "wasi")), + all( + linux_raw, + not(feature = "use-libc-auxv"), + not(feature = "use-explicitly-provided-auxv"), + any( + feature = "param", + feature = "process", + feature = "runtime", + feature = "time", + target_arch = "x86", + ) + ) +))] +mod timespec; +#[cfg(not(any(windows, target_os = "wasi")))] +#[cfg(any( + feature = "fs", + feature = "process", + feature = "thread", + all( + linux_raw, + not(feature = "use-libc-auxv"), + not(feature = "use-explicitly-provided-auxv"), + any( + feature = "param", + feature = "runtime", + feature = "time", + target_arch = "x86", + ) + ), + all(linux_kernel, feature = "net") +))] +mod ugid; + +#[cfg(doc)] +#[cfg_attr(docsrs, doc(cfg(doc)))] +pub mod not_implemented; diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/mm/madvise.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/mm/madvise.rs new file mode 100644 index 0000000000000000000000000000000000000000..4ab910e868cbd5afdd8e041cf7f86d9f630823d1 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/mm/madvise.rs @@ -0,0 +1,49 @@ +//! The `madvise` function. +//! +//! # Safety +//! +//! `madvise` operates on a raw pointer. Some forms of `madvise` may +//! mutate the memory or have other side effects. +#![allow(unsafe_code)] + +use crate::{backend, io}; +use core::ffi::c_void; + +pub use backend::mm::types::Advice; + +/// `posix_madvise(addr, len, advice)`—Declares an expected access pattern +/// for a memory-mapped file. +/// +/// # Safety +/// +/// `addr` must be a valid pointer to memory that is appropriate to call +/// `posix_madvise` on. Some forms of `advice` may mutate the memory or evoke a +/// variety of side-effects on the mapping and/or the file. +/// +/// # References +/// - [POSIX] +/// - [Linux `madvise`] +/// - [Linux `posix_madvise`] +/// - [Apple] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/posix_madvise.html +/// [Linux `madvise`]: https://man7.org/linux/man-pages/man2/madvise.2.html +/// [Linux `posix_madvise`]: https://man7.org/linux/man-pages/man3/posix_madvise.3.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/madvise.2.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=madvise&sektion=2 +/// [NetBSD]: https://man.netbsd.org/madvise.2 +/// [OpenBSD]: https://man.openbsd.org/madvise.2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=madvise§ion=2 +/// [illumos]: https://illumos.org/man/3C/madvise +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Memory_002dmapped-I_002fO.html#index-madvise +#[inline] +#[doc(alias = "posix_madvise")] +pub unsafe fn madvise(addr: *mut c_void, len: usize, advice: Advice) -> io::Result<()> { + backend::mm::syscalls::madvise(addr, len, advice) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/msan.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/msan.rs new file mode 100644 index 0000000000000000000000000000000000000000..027ad09e3d798463017d474026b8cf2410ce70c2 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/msan.rs @@ -0,0 +1,12 @@ +use core::ffi::c_void; +use core::mem::size_of; + +extern "C" { + /// + #[link_name = "__msan_unpoison"] + pub(crate) fn unpoison(a: *const c_void, size: usize); +} + +pub(crate) fn unpoison_maybe_uninit(t: &MaybeUninit) { + unpoison(t.as_ptr(), size_of::()) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/not_implemented.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/not_implemented.rs new file mode 100644 index 0000000000000000000000000000000000000000..7220295b683bb9adf35f6d2f42b63d0ab5e2b0fd --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/not_implemented.rs @@ -0,0 +1,347 @@ +//! Documentation about unimplemented functions. +//! +//! This module contains documentation for several functions that rustix does +//! not implement, either because they are out of scope, or because they are +//! could probably be implemented but are not yet. + +macro_rules! not_implemented { + ($func:ident) => { + /// See the [module comment](self). + pub fn $func() { + unimplemented!() + } + }; +} + +/// Memory-allocation functions are out of scope for rustix. +/// +/// It is possible to implement `malloc`, `free`, and similar functions in +/// Rust, however rustix itself is focused on syscall-like functions. This +/// module contains an incomplete list of such functions. +/// +/// There are several allocator implementations for Rust; one of them is +/// [dlmalloc]. For a rustix-based implementation, see [rustix-dlmalloc]. +/// Another allocator implementation is [talc]. +/// +/// [dlmalloc]: https://crates.io/crates/dlmalloc +/// [talc]: https://crates.io/crates/talc +/// [rustix-dlmalloc]: https://crates.io/crates/rustix-dlmalloc +pub mod memory_allocation { + not_implemented!(malloc); + not_implemented!(realloc); + not_implemented!(calloc); + not_implemented!(free); + not_implemented!(posix_memalign); + not_implemented!(aligned_alloc); + not_implemented!(malloc_usable_size); +} + +/// Functions which need access to libc internals are out of scope for rustix. +/// +/// Most Rust programs have a libc present, and when a libc is present, it +/// expects to be the only thing in the process that can do certain operations. +/// For example, there can be only one `atexit` list in a process, only one +/// `pthread_atfork` list in a process, only one implementation of pthreads in +/// a process, and so on, and libc expects to own the one of each of those +/// things. And libc implementations may expect to be involved in signal +/// handling. So, these functions are believed to be out of scope for rustix. +/// This module contains an incomplete list of such functions. +/// +/// It would be possible to make a rust library which provides safe or +/// ergonomic wrappers around these libc functions, however that is out of +/// scope for rustix itself. +/// +/// If you would like to write a Rust program which does not use a libc, and +/// which does provide APIs for some of these functions, [Eyra] and [origin] +/// are two libraries which may be useful, and which provide public interfaces +/// for some of this functionality. +/// +/// If you are otherwise writing Rust code which you know will not share a +/// process with a libc, perhaps because you are writing a libc or similar +/// yourself, rustix's codebase does include experimental implementations of +/// the primitives needed to implement most of these functions. +/// +/// [Eyra]: https://github.com/sunfishcode/eyra?tab=readme-ov-file#eyra +/// [origin]: https://github.com/sunfishcode/origin?tab=readme-ov-file#origin +pub mod libc_internals { + not_implemented!(exit); + not_implemented!(fork); + not_implemented!(clone); + not_implemented!(clone3); + not_implemented!(brk); + not_implemented!(sigaction); + not_implemented!(sigaltstack); + not_implemented!(sigprocmask); + not_implemented!(sigwait); + not_implemented!(sigwaitinfo); + not_implemented!(sigtimedwait); + not_implemented!(set_thread_area); + not_implemented!(set_tid_address); + not_implemented!(tkill); + not_implemented!(sched_setscheduler); + not_implemented!(rseq); + not_implemented!(setuid); + not_implemented!(setgid); + not_implemented!(seteuid); + not_implemented!(setegid); + not_implemented!(setreuid); + not_implemented!(setregid); + not_implemented!(setresuid); + not_implemented!(setresgid); + not_implemented!(setgroups); + + not_implemented!(pthread_atfork); + not_implemented!(pthread_attr_destroy); + not_implemented!(pthread_attr_getaffinity_np); + not_implemented!(pthread_attr_getdetachstate); + not_implemented!(pthread_attr_getguardsize); + not_implemented!(pthread_attr_getinheritsched); + not_implemented!(pthread_attr_getschedparam); + not_implemented!(pthread_attr_getschedpolicy); + not_implemented!(pthread_attr_getscope); + not_implemented!(pthread_attr_getsigmask_np); + not_implemented!(pthread_attr_getstack); + not_implemented!(pthread_attr_getstackaddr); + not_implemented!(pthread_attr_getstacksize); + not_implemented!(pthread_attr_init); + not_implemented!(pthread_attr_setaffinity_np); + not_implemented!(pthread_attr_setdetachstate); + not_implemented!(pthread_attr_setguardsize); + not_implemented!(pthread_attr_setinheritsched); + not_implemented!(pthread_attr_setschedparam); + not_implemented!(pthread_attr_setschedpolicy); + not_implemented!(pthread_attr_setscope); + not_implemented!(pthread_attr_setsigmask_np); + not_implemented!(pthread_attr_setstack); + not_implemented!(pthread_attr_setstackaddr); + not_implemented!(pthread_attr_setstacksize); + not_implemented!(pthread_barrierattr_destroy); + not_implemented!(pthread_barrierattr_getpshared); + not_implemented!(pthread_barrierattr_init); + not_implemented!(pthread_barrierattr_setpshared); + not_implemented!(pthread_barrier_destroy); + not_implemented!(pthread_barrier_wait); + not_implemented!(pthread_cancel); + not_implemented!(pthread_cleanup_pop); + not_implemented!(pthread_cleanup_pop_restore_np); + not_implemented!(pthread_cleanup_push); + not_implemented!(pthread_cleanup_push_defer_np); + not_implemented!(pthread_condattr_destroy); + not_implemented!(pthread_condattr_getclock); + not_implemented!(pthread_condattr_getpshared); + not_implemented!(pthread_condattr_init); + not_implemented!(pthread_condattr_setclock); + not_implemented!(pthread_condattr_setpshared); + not_implemented!(pthread_cond_broadcast); + not_implemented!(pthread_cond_destroy); + not_implemented!(pthread_cond_signal); + not_implemented!(pthread_cond_timedwait); + not_implemented!(pthread_create); + not_implemented!(pthread_detach); + not_implemented!(pthread_equal); + not_implemented!(pthread_exit); + not_implemented!(pthread_getaffinity_np); + not_implemented!(pthread_getattr_default_np); + not_implemented!(pthread_getattr_np); + not_implemented!(pthread_getconcurrency); + not_implemented!(pthread_getcpuclockid); + not_implemented!(pthread_getname_np); + not_implemented!(pthread_getschedparam); + not_implemented!(pthread_getspecific); + not_implemented!(pthread_join); + not_implemented!(pthread_key_create); + not_implemented!(pthread_key_delete); + not_implemented!(pthread_kill); + not_implemented!(pthread_kill_other_threads_np); + not_implemented!(pthread_mutexattr_destroy); + not_implemented!(pthread_mutexattr_getprioceiling); + not_implemented!(pthread_mutexattr_getprotocol); + not_implemented!(pthread_mutexattr_getpshared); + not_implemented!(pthread_mutexattr_getrobust); + not_implemented!(pthread_mutexattr_getrobust_np); + not_implemented!(pthread_mutexattr_gettype); + not_implemented!(pthread_mutexattr_init); + not_implemented!(pthread_mutexattr_setprioceiling); + not_implemented!(pthread_mutexattr_setprotocol); + not_implemented!(pthread_mutexattr_setpshared); + not_implemented!(pthread_mutexattr_setrobust); + not_implemented!(pthread_mutexattr_setrobust_np); + not_implemented!(pthread_mutexattr_settype); + not_implemented!(pthread_mutex_consistent); + not_implemented!(pthread_mutex_consistent_np); + not_implemented!(pthread_mutex_destroy); + not_implemented!(pthread_mutex_getprioceiling); + not_implemented!(pthread_mutex_init); + not_implemented!(pthread_mutex_lock); + not_implemented!(pthread_mutex_setprioceiling); + not_implemented!(pthread_mutex_timedlock); + not_implemented!(pthread_mutex_trylock); + not_implemented!(pthread_once); + not_implemented!(pthread_rwlockattr_destroy); + not_implemented!(pthread_rwlockattr_getkind_np); + not_implemented!(pthread_rwlockattr_getpshared); + not_implemented!(pthread_rwlockattr_init); + not_implemented!(pthread_rwlockattr_setkind_np); + not_implemented!(pthread_rwlockattr_setpshared); + not_implemented!(pthread_rwlock_destroy); + not_implemented!(pthread_rwlock_rdlock); + not_implemented!(pthread_rwlock_timedrdlock); + not_implemented!(pthread_rwlock_timedwrlock); + not_implemented!(pthread_rwlock_tryrdlock); + not_implemented!(pthread_rwlock_trywrlock); + not_implemented!(pthread_rwlock_unlock); + not_implemented!(pthread_rwlock_wrlock); + not_implemented!(pthread_self); + not_implemented!(pthread_setaffinity_np); + not_implemented!(pthread_setattr_default_np); + not_implemented!(pthread_setcancelstate); + not_implemented!(pthread_setcanceltype); + not_implemented!(pthread_setconcurrency); + not_implemented!(pthread_setname_np); + not_implemented!(pthread_setschedparam); + not_implemented!(pthread_setschedprio); + not_implemented!(pthread_setspecific); + not_implemented!(pthread_sigmask); + not_implemented!(pthread_sigqueue); + not_implemented!(pthread_spin_destroy); + not_implemented!(pthread_spin_init); + not_implemented!(pthread_spin_lock); + not_implemented!(pthread_spin_trylock); + not_implemented!(pthread_spin_unlock); + not_implemented!(pthread_testcancel); + not_implemented!(pthread_timedjoin_np); + not_implemented!(pthread_tryjoin_np); + not_implemented!(pthread_yield); +} + +/// Functions which provide higher-level functionality are out of scope for +/// rustix. +/// +/// These functions are provided by typical libc implementations, but are +/// higher-level than the simple syscall-like functions that rustix focuses on. +/// They could be implemented as a separate library built on top of rustix, +/// rather than being part of rustix itself. This module contains an incomplete +/// list of such functions. +pub mod higher_level { + not_implemented!(getpwent); + not_implemented!(getpwuid); + not_implemented!(getpwnam); + not_implemented!(getpwuid_r); + not_implemented!(getpwnam_r); + not_implemented!(gethostbyname); + not_implemented!(execv); + not_implemented!(execvp); + not_implemented!(execvpe); + not_implemented!(wordexp); + not_implemented!(localtime); + not_implemented!(localtime_r); + not_implemented!(gmtime); + not_implemented!(gmtime_r); + not_implemented!(ctime); + not_implemented!(ctime_r); + not_implemented!(asctime); + not_implemented!(asctime_r); + not_implemented!(mktime); + not_implemented!(getifaddrs); + + /// See [rustix-openpty](https://crates.io/crates/rustix-openpty). + pub fn closefrom() { + unimplemented!() + } + /// See [rustix-openpty](https://crates.io/crates/rustix-openpty). + pub fn login_tty() { + unimplemented!() + } + /// See [rustix-openpty](https://crates.io/crates/rustix-openpty). + pub fn openpty() { + unimplemented!() + } + + /// See [`std::io::IsTerminal`]. + /// + /// For Rust < 1.70, see [is-terminal]. For a rustix-based implementation, + /// see [rustix-is-terminal]. + /// + /// [`std::io::IsTerminal`]: std::io::IsTerminal + /// [is-terminal]: https://crates.io/crates/is-terminal + /// [rustix-is-terminal]: https://crates.io/crates/rustix-is-terminal + pub fn isatty() { + unimplemented!() + } +} + +/// Functions which don't seem possible to even call from Rust with current +/// language features, even with `unsafe`. +pub mod impossible { + not_implemented!(vfork); + not_implemented!(sigreturn); + not_implemented!(setjmp); + not_implemented!(longjmp); + not_implemented!(sigsetjmp); + not_implemented!(siglongjmp); +} + +/// These functions are not yet implemented in rustix, but probably could be. +/// +/// These are functions that users have asked about, and which probably are in +/// scope for rustix, but are not yet implemented. This module contains an +/// incomplete list of such functions. +pub mod yet { + not_implemented!(tgkill); + not_implemented!(raise); + not_implemented!(sysctl); + not_implemented!(mq_open); + not_implemented!(mq_send); + not_implemented!(mq_unlink); + not_implemented!(recvmmsg); + not_implemented!(cachestat); + not_implemented!(fanotify_init); + not_implemented!(fanotify_mark); + not_implemented!(signalfd); + not_implemented!(mount_setattr); + not_implemented!(extattr_delete_fd); + not_implemented!(extattr_delete_link); + not_implemented!(extattr_get_fd); + not_implemented!(extattr_get_link); + not_implemented!(extattr_list_fd); + not_implemented!(extattr_list_link); + not_implemented!(extattr_set_fd); + not_implemented!(extattr_set_link); + not_implemented!(get_mempolicy); + not_implemented!(mbind); + not_implemented!(set_mempolicy); + not_implemented!(migrate_pages); + not_implemented!(move_pages); + not_implemented!(fchmodat2); + not_implemented!(shmat); + not_implemented!(shmdt); + not_implemented!(shmget); + not_implemented!(shmctl); +} + +/// These functions are not quite yet finished in rustix. +/// +/// Rustix's codebase includes experimental implementations of these functions, +/// however they are not yet publicly exposed because their API might need more +/// work and/or they don't yet have a libc backend implementation yet. +/// +/// See [#1314] for more information, and please leave comments if there are +/// specific functions you're interested in. +/// +/// [#1314]: https://github.com/bytecodealliance/rustix/issues/1314 +pub mod quite_yet { + not_implemented!(_exit); + not_implemented!(_Exit); + not_implemented!(exit_group); + not_implemented!(sigpending); + not_implemented!(sigsuspend); + not_implemented!(execveat); + not_implemented!(execve); + + /// For now, use `rustix::process::uname().nodename()` instead. + /// + /// See also the [module comment](self). + pub fn gethostname() { + unimplemented!() + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/pid.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/pid.rs new file mode 100644 index 0000000000000000000000000000000000000000..fc0dc9e6894c9da96de846b5b3d7394f42cd1280 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/pid.rs @@ -0,0 +1,182 @@ +//! The `Pid` type. + +#![allow(unsafe_code)] + +use core::{fmt, num::NonZeroI32}; + +/// A process identifier as a raw integer. +pub type RawPid = i32; + +/// `pid_t`—A non-zero Unix process ID. +/// +/// This is a pid, and not a pidfd. It is not a file descriptor, and the +/// process it refers to could disappear at any time and be replaced by +/// another, unrelated, process. +/// +/// On Linux, `Pid` values are also used to identify threads. +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Debug, Hash)] +pub struct Pid(NonZeroI32); + +impl Pid { + /// A `Pid` corresponding to the init process (pid 1). + pub const INIT: Self = Self(match NonZeroI32::new(1) { + Some(n) => n, + None => panic!("unreachable"), + }); + + /// Converts a `RawPid` into a `Pid`. + /// + /// Returns `Some` for positive values, and `None` for zero values. + /// + /// This is safe because a `Pid` is a number without any guarantees for the + /// kernel. Non-child `Pid`s are always racy for any syscalls, but can only + /// cause logic errors. If you want race-free access to or control of + /// non-child processes, please consider other mechanisms like [pidfd] on + /// Linux. + /// + /// Passing a negative number doesn't invoke undefined behavior, but it + /// may cause unexpected behavior. + /// + /// [pidfd]: https://man7.org/linux/man-pages/man2/pidfd_open.2.html + #[inline] + pub const fn from_raw(raw: RawPid) -> Option { + debug_assert!(raw >= 0); + match NonZeroI32::new(raw) { + Some(non_zero) => Some(Self(non_zero)), + None => None, + } + } + + /// Converts a known positive `RawPid` into a `Pid`. + /// + /// Passing a negative number doesn't invoke undefined behavior, but it + /// may cause unexpected behavior. + /// + /// # Safety + /// + /// The caller must guarantee `raw` is non-zero. + #[inline] + pub const unsafe fn from_raw_unchecked(raw: RawPid) -> Self { + debug_assert!(raw > 0); + Self(NonZeroI32::new_unchecked(raw)) + } + + /// Creates a `Pid` holding the ID of the given child process. + #[cfg(feature = "std")] + #[inline] + pub fn from_child(child: &std::process::Child) -> Self { + let id = child.id(); + // SAFETY: We know the returned ID is valid because it came directly + // from an OS API. + unsafe { Self::from_raw_unchecked(id as i32) } + } + + /// Converts a `Pid` into a `NonZeroI32`. + #[inline] + pub const fn as_raw_nonzero(self) -> NonZeroI32 { + self.0 + } + + /// Converts a `Pid` into a `RawPid`. + /// + /// This is the same as `self.as_raw_nonzero().get()`. + #[inline] + pub const fn as_raw_pid(self) -> RawPid { + self.0.get() + } + + /// Converts an `Option` into a `RawPid`. + #[inline] + pub const fn as_raw(pid: Option) -> RawPid { + match pid { + Some(pid) => pid.0.get(), + None => 0, + } + } + + /// Test whether this pid represents the init process ([`Pid::INIT`]). + #[inline] + pub const fn is_init(self) -> bool { + self.0.get() == Self::INIT.0.get() + } +} + +impl fmt::Display for Pid { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.0.fmt(f) + } +} +impl fmt::Binary for Pid { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.0.fmt(f) + } +} +impl fmt::Octal for Pid { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.0.fmt(f) + } +} +impl fmt::LowerHex for Pid { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.0.fmt(f) + } +} +impl fmt::UpperHex for Pid { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.0.fmt(f) + } +} +#[cfg(lower_upper_exp_for_non_zero)] +impl fmt::LowerExp for Pid { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.0.fmt(f) + } +} +#[cfg(lower_upper_exp_for_non_zero)] +impl fmt::UpperExp for Pid { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.0.fmt(f) + } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_sizes() { + use core::mem::transmute; + + assert_eq_size!(RawPid, NonZeroI32); + assert_eq_size!(RawPid, Pid); + assert_eq_size!(RawPid, Option); + + // Rustix doesn't depend on `Option` matching the ABI of a raw integer + // for correctness, but it should work nonetheless. + const_assert_eq!(0 as RawPid, unsafe { + transmute::, RawPid>(None) + }); + const_assert_eq!(4567 as RawPid, unsafe { + transmute::, RawPid>(Some(Pid::from_raw_unchecked(4567))) + }); + } + + #[test] + fn test_ctors() { + use std::num::NonZeroI32; + assert!(Pid::from_raw(0).is_none()); + assert_eq!( + Pid::from_raw(77).unwrap().as_raw_nonzero(), + NonZeroI32::new(77).unwrap() + ); + assert_eq!(Pid::from_raw(77).unwrap().as_raw_pid(), 77); + assert_eq!(Pid::as_raw(Pid::from_raw(77)), 77); + } + + #[test] + fn test_specials() { + assert!(Pid::from_raw(1).unwrap().is_init()); + assert_eq!(Pid::from_raw(1).unwrap(), Pid::INIT); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/pipe.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/pipe.rs new file mode 100644 index 0000000000000000000000000000000000000000..267c99d511f67f3eea07d3ad30d365d1e11485f6 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/pipe.rs @@ -0,0 +1,222 @@ +//! `pipe` and related APIs. + +#![allow(unsafe_code)] + +use crate::fd::OwnedFd; +use crate::{backend, io}; +#[cfg(not(any( + solarish, + windows, + target_os = "espidf", + target_os = "haiku", + target_os = "redox", + target_os = "vita", + target_os = "wasi", +)))] +use backend::c; +#[cfg(linux_kernel)] +use backend::fd::AsFd; + +#[cfg(not(apple))] +pub use backend::pipe::types::PipeFlags; + +#[cfg(linux_kernel)] +pub use backend::pipe::types::{IoSliceRaw, SpliceFlags}; + +/// `PIPE_BUF`—The maximum length at which writes to a pipe are atomic. +/// +/// # References +/// - [Linux] +/// - [POSIX] +/// +/// [Linux]: https://man7.org/linux/man-pages/man7/pipe.7.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/write.html +#[cfg(not(any( + solarish, + windows, + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "redox", + target_os = "vita", + target_os = "wasi", +)))] +pub const PIPE_BUF: usize = c::PIPE_BUF; + +/// `pipe()`—Creates a pipe. +/// +/// This function creates a pipe and returns two file descriptors, for the +/// reading and writing ends of the pipe, respectively. +/// +/// See [`pipe_with`] to pass additional flags. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [Apple] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/pipe.html +/// [Linux]: https://man7.org/linux/man-pages/man2/pipe.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/pipe.2.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=pipe&sektion=2 +/// [NetBSD]: https://man.netbsd.org/pipe.2 +/// [OpenBSD]: https://man.openbsd.org/pipe.2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=pipe§ion=2 +/// [illumos]: https://illumos.org/man/2/pipe +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Creating-a-Pipe.html +#[inline] +pub fn pipe() -> io::Result<(OwnedFd, OwnedFd)> { + backend::pipe::syscalls::pipe() +} + +/// `pipe2(flags)`—Creates a pipe, with flags. +/// +/// `pipe_with` is the same as [`pipe`] but adds an additional flags operand. +/// +/// This function creates a pipe and returns two file descriptors, for the +/// reading and writing ends of the pipe, respectively. +/// +/// # References +/// - [Linux] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/pipe2.2.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=pipe2&sektion=2 +/// [NetBSD]: https://man.netbsd.org/pipe2.2 +/// [OpenBSD]: https://man.openbsd.org/pipe2.2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=pipe2§ion=2 +/// [illumos]: https://illumos.org/man/2/pipe2 +#[cfg(not(any( + apple, + target_os = "aix", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "nto" +)))] +#[inline] +#[doc(alias = "pipe2")] +pub fn pipe_with(flags: PipeFlags) -> io::Result<(OwnedFd, OwnedFd)> { + backend::pipe::syscalls::pipe_with(flags) +} + +/// `splice(fd_in, off_in, fd_out, off_out, len, flags)`—Transfer data +/// between a file and a pipe. +/// +/// This function transfers up to `len` bytes of data from the file descriptor +/// `fd_in` to the file descriptor `fd_out`, where one of the file descriptors +/// must refer to a pipe. +/// +/// `off_*` must be `None` if the corresponding fd refers to a pipe. Otherwise +/// its value points to the starting offset to the file, from which the data is +/// read/written. On success, the number of bytes read/written is added to the +/// offset. +/// +/// Passing `None` causes the read/write to start from the file offset, and the +/// file offset is adjusted appropriately. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/splice.2.html +#[cfg(linux_kernel)] +#[inline] +pub fn splice( + fd_in: FdIn, + off_in: Option<&mut u64>, + fd_out: FdOut, + off_out: Option<&mut u64>, + len: usize, + flags: SpliceFlags, +) -> io::Result { + backend::pipe::syscalls::splice(fd_in.as_fd(), off_in, fd_out.as_fd(), off_out, len, flags) +} + +/// `vmsplice(fd, bufs, flags)`—Transfer data between memory and a pipe. +/// +/// If `fd` is the write end of the pipe, the function maps the memory pointer +/// at by `bufs` to the pipe. +/// +/// If `fd` is the read end of the pipe, the function writes data from the pipe +/// to said memory. +/// +/// # Safety +/// +/// If the memory must not be mutated (such as when `bufs` were originally +/// immutable slices), it is up to the caller to ensure that the write end of +/// the pipe is placed in `fd`. +/// +/// Additionally if `SpliceFlags::GIFT` is set, the caller must also ensure +/// that the contents of `bufs` in never modified following the call, and that +/// all of the pointers in `bufs` are page aligned, and the lengths are +/// multiples of a page size in bytes. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/vmsplice.2.html +#[cfg(linux_kernel)] +#[inline] +pub unsafe fn vmsplice( + fd: PipeFd, + bufs: &[IoSliceRaw<'_>], + flags: SpliceFlags, +) -> io::Result { + backend::pipe::syscalls::vmsplice(fd.as_fd(), bufs, flags) +} + +/// `tee(fd_in, fd_out, len, flags)`—Copy data between pipes without +/// consuming it. +/// +/// This reads up to `len` bytes from `in_fd` without consuming them, and +/// writes them to `out_fd`. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/tee.2.html +#[cfg(linux_kernel)] +#[inline] +pub fn tee( + fd_in: FdIn, + fd_out: FdOut, + len: usize, + flags: SpliceFlags, +) -> io::Result { + backend::pipe::syscalls::tee(fd_in.as_fd(), fd_out.as_fd(), len, flags) +} + +/// `fnctl(fd, F_GETPIPE_SZ)`—Return the buffer capacity of a pipe. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html +#[cfg(linux_kernel)] +#[inline] +pub fn fcntl_getpipe_size(fd: Fd) -> io::Result { + backend::pipe::syscalls::fcntl_getpipe_size(fd.as_fd()) +} + +/// `fnctl(fd, F_SETPIPE_SZ)`—Set the buffer capacity of a pipe. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html +#[cfg(linux_kernel)] +#[inline] +pub fn fcntl_setpipe_size(fd: Fd, size: usize) -> io::Result { + backend::pipe::syscalls::fcntl_setpipe_size(fd.as_fd(), size) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/prctl.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/prctl.rs new file mode 100644 index 0000000000000000000000000000000000000000..ab8ba24298a25ad65471fa6d983b32b3935c3a68 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/prctl.rs @@ -0,0 +1,72 @@ +//! Helper functions for `prctl` syscalls. + +#![allow(unsafe_code)] + +use crate::backend::prctl::syscalls; +use crate::ffi::{c_int, c_void}; +use crate::io; +use crate::utils::as_mut_ptr; +use bitflags::bitflags; +use core::mem::MaybeUninit; +use core::ptr::null_mut; + +#[cfg(linux_raw_dep)] +bitflags! { + /// `PR_PAC_AP*` + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct PointerAuthenticationKeys: u32 { + /// `PR_PAC_APIAKEY`—Instruction authentication key `A`. + const INSTRUCTION_AUTHENTICATION_KEY_A = linux_raw_sys::prctl::PR_PAC_APIAKEY; + /// `PR_PAC_APIBKEY`—Instruction authentication key `B`. + const INSTRUCTION_AUTHENTICATION_KEY_B = linux_raw_sys::prctl::PR_PAC_APIBKEY; + /// `PR_PAC_APDAKEY`—Data authentication key `A`. + const DATA_AUTHENTICATION_KEY_A = linux_raw_sys::prctl::PR_PAC_APDAKEY; + /// `PR_PAC_APDBKEY`—Data authentication key `B`. + const DATA_AUTHENTICATION_KEY_B = linux_raw_sys::prctl::PR_PAC_APDBKEY; + /// `PR_PAC_APGAKEY`—Generic authentication `A` key. + const GENERIC_AUTHENTICATION_KEY_A = linux_raw_sys::prctl::PR_PAC_APGAKEY; + + /// + const _ = !0; + } +} + +#[inline] +pub(crate) unsafe fn prctl_1arg(option: c_int) -> io::Result { + const NULL: *mut c_void = null_mut(); + syscalls::prctl(option, NULL, NULL, NULL, NULL) +} + +#[inline] +pub(crate) unsafe fn prctl_2args(option: c_int, arg2: *mut c_void) -> io::Result { + const NULL: *mut c_void = null_mut(); + syscalls::prctl(option, arg2, NULL, NULL, NULL) +} + +#[inline] +pub(crate) unsafe fn prctl_3args( + option: c_int, + arg2: *mut c_void, + arg3: *mut c_void, +) -> io::Result { + syscalls::prctl(option, arg2, arg3, null_mut(), null_mut()) +} + +#[inline] +pub(crate) unsafe fn prctl_get_at_arg2_optional

(option: i32) -> io::Result

{ + let mut value: MaybeUninit

= MaybeUninit::uninit(); + prctl_2args(option, value.as_mut_ptr().cast())?; + Ok(value.assume_init()) +} + +#[inline] +pub(crate) unsafe fn prctl_get_at_arg2(option: i32) -> io::Result +where + P: Default, + T: TryFrom, +{ + let mut value: P = Default::default(); + prctl_2args(option, as_mut_ptr(&mut value).cast())?; + TryFrom::try_from(value) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/pty.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/pty.rs new file mode 100644 index 0000000000000000000000000000000000000000..560dfc13630b750c2f2e8a98395427a342b3d282 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/pty.rs @@ -0,0 +1,223 @@ +//! Pseudoterminal operations. +//! +//! For the `openpty` and `login_tty` functions, see the +//! [rustix-openpty crate]. +//! +//! [rustix-openpty crate]: https://crates.io/crates/rustix-openpty + +#![allow(unsafe_code)] + +use crate::backend::c; +use crate::fd::{AsFd, OwnedFd}; +use crate::fs::OFlags; +use crate::{backend, io}; +#[cfg(all( + feature = "alloc", + any( + apple, + linux_like, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos" + ) +))] +use {crate::ffi::CString, alloc::vec::Vec}; + +#[cfg(target_os = "linux")] +use crate::{fd::FromRawFd as _, ioctl}; + +bitflags::bitflags! { + /// `O_*` flags for use with [`openpt`] and [`ioctl_tiocgptpeer`]. + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)] + pub struct OpenptFlags: u32 { + /// `O_RDWR` + const RDWR = c::O_RDWR as c::c_uint; + + /// `O_NOCTTY` + #[cfg(not(any(target_os = "espidf", target_os = "horizon", target_os = "l4re", target_os = "redox", target_os = "vita")))] + const NOCTTY = c::O_NOCTTY as c::c_uint; + + /// `O_CLOEXEC` + /// + /// The standard `posix_openpt` function doesn't support `CLOEXEC`, but + /// rustix supports it on Linux, and FreeBSD and NetBSD support it. + #[cfg(any(linux_kernel, target_os = "freebsd", target_os = "netbsd"))] + const CLOEXEC = c::O_CLOEXEC as c::c_uint; + + /// + const _ = !0; + } +} + +impl From for OFlags { + #[inline] + fn from(flags: OpenptFlags) -> Self { + // `OpenptFlags` is a subset of `OFlags`. + Self::from_bits_retain(flags.bits() as _) + } +} + +/// `posix_openpt(flags)`—Open a pseudoterminal device. +/// +/// On Linux, an additional `CLOEXEC` flag value may be passed to request the +/// close-on-exec flag be set. +/// +/// On Linux, if the system has no free pseudoterminals available, the +/// underlying system call fails with [`io::Errno::NOSPC`], however this rustix +/// function translates that to [`io::Errno::AGAIN`], so that the linux_raw and +/// libc backends have the same behavior. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [Apple] +/// - [FreeBSD] +/// - [DragonFly BSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [illumos] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/posix_openpt.html +/// [Linux]: https://man7.org/linux/man-pages/man3/posix_openpt.3.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/posix_openpt.3.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=posix_openpt&sektion=2 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=posix_openpt§ion=3 +/// [NetBSD]: https://man.netbsd.org/posix_openpt.3 +/// [OpenBSD]: https://man.openbsd.org/posix_openpt +/// [illumos]: https://illumos.org/man/3C/posix_openpt +#[inline] +#[doc(alias = "posix_openpt")] +pub fn openpt(flags: OpenptFlags) -> io::Result { + // On Linux, open the device ourselves so that we can support `CLOEXEC`. + #[cfg(linux_kernel)] + { + use crate::fs::{open, Mode}; + match open(cstr!("/dev/ptmx"), flags.into(), Mode::empty()) { + // Match libc `openat` behavior with `ENOSPC`. + Err(io::Errno::NOSPC) => Err(io::Errno::AGAIN), + otherwise => otherwise, + } + } + + // On all other platforms, use `openpt`. + #[cfg(not(linux_kernel))] + { + backend::pty::syscalls::openpt(flags) + } +} + +/// `ptsname(fd)`—Return the name of a pseudoterminal. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/ptsname.html +/// [Linux]: https://man7.org/linux/man-pages/man3/ptsname.3.html +/// [illumos]: https://www.illumos.org/man/3C/ptsname +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Allocation.html#index-ptsname +#[cfg(all( + feature = "alloc", + any( + apple, + linux_like, + target_os = "freebsd", + target_os = "fuchsia", + target_os = "illumos" + ) +))] +#[inline] +#[doc(alias = "ptsname_r")] +#[cfg_attr(docsrs, doc(cfg(feature = "alloc")))] +pub fn ptsname>>(fd: Fd, reuse: B) -> io::Result { + backend::pty::syscalls::ptsname(fd.as_fd(), reuse.into()) +} + +/// `unlockpt(fd)`—Unlock a pseudoterminal. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/unlockpt.html +/// [Linux]: https://man7.org/linux/man-pages/man3/unlockpt.3.html +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Allocation.html#index-unlockpt +#[inline] +pub fn unlockpt(fd: Fd) -> io::Result<()> { + backend::pty::syscalls::unlockpt(fd.as_fd()) +} + +/// `grantpt(fd)`—Grant access to the user side of a pseudoterminal. +/// +/// On Linux, calling this function has no effect, as the kernel is expected to +/// grant the appropriate access. On all other platforms, this function has +/// unspecified behavior if the calling process has a [`Signal::CHILD`] signal +/// handler installed. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/grantpt.html +/// [Linux]: https://man7.org/linux/man-pages/man3/grantpt.3.html +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Allocation.html#index-grantpt +/// [`Signal::CHILD`]: crate::process::Signal::CHILD +#[inline] +pub fn grantpt(fd: Fd) -> io::Result<()> { + #[cfg(not(linux_kernel))] + { + backend::pty::syscalls::grantpt(fd.as_fd()) + } + + // On Linux, we assume the kernel has already granted the needed + // permissions to the user side of the pseudoterminal. + #[cfg(linux_kernel)] + { + let _ = fd; + Ok(()) + } +} + +/// `ioctl(fd, TIOCGPTPEER)`—Open the user side of a pseudoterminal. +/// +/// This function is currently only implemented on Linux. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/ioctl_tty.2.html +#[cfg(target_os = "linux")] +#[inline] +pub fn ioctl_tiocgptpeer(fd: Fd, flags: OpenptFlags) -> io::Result { + unsafe { ioctl::ioctl(fd, Tiocgptpeer(flags)) } +} + +#[cfg(target_os = "linux")] +struct Tiocgptpeer(OpenptFlags); + +#[cfg(target_os = "linux")] +unsafe impl ioctl::Ioctl for Tiocgptpeer { + type Output = OwnedFd; + + const IS_MUTATING: bool = false; + + fn opcode(&self) -> ioctl::Opcode { + c::TIOCGPTPEER as ioctl::Opcode + } + + fn as_ptr(&mut self) -> *mut c::c_void { + self.0.bits() as *mut c::c_void + } + + unsafe fn output_from_ptr( + ret: ioctl::IoctlOutput, + _arg: *mut c::c_void, + ) -> io::Result { + Ok(OwnedFd::from_raw_fd(ret)) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/runtime.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/runtime.rs new file mode 100644 index 0000000000000000000000000000000000000000..9b612b8badb504fbdd25908cc94ef5232e310468 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/runtime.rs @@ -0,0 +1,925 @@ +//! Experimental low-level implementation details for libc-like runtime +//! libraries such as [Origin]. +//! +//! ⚠ These are not normal functions. ⚠ +//! +//! - Some of the functions in this module cannot be used in a process which +//! also has a libc present. This can be true even for functions that have +//! the same name as a libc function that Rust code can use. Such functions +//! are not marked `unsafe` (unless they are unsafe for other reasons), even +//! though they invoke Undefined Behavior if called in a process which has a +//! libc present. +//! +//! - Some of the functions in this module don't behave exactly the same way +//! as functions in libc with similar names. Sometimes information about the +//! differences is included in the Linux documentation under “C +//! library/kernel differences” sections. But not always. +//! +//! - The safety requirements of the functions in this module are not fully +//! documented. +//! +//! - The API for these functions is not considered stable, and this module is +//! `doc(hidden)`. +//! +//! ⚠ Caution is indicated. ⚠ +//! +//! These functions are for implementing thread-local storage (TLS), managing +//! threads, loaded libraries, and other process-wide resources. Most of +//! `rustix` doesn't care about what other libraries are linked into the +//! program or what they're doing, but the features in this module generally +//! can only be used by one entity within a process. +//! +//! All that said, there are some functions in this module would could +//! potentially be stabilized and moved to other modules. See also the +//! documentation for specific functions in the [`not_implemented`] module, and +//! the discussion in [#1314]. +//! +//! [Origin]: https://github.com/sunfishcode/origin#readme +//! [`not_implemented`]: crate::not_implemented +//! [#1314]: https://github.com/bytecodealliance/rustix/issues/1314 +//! +//! # Safety +//! +//! This module is intended to be used for implementing a runtime library such +//! as libc. Use of these features for any other purpose is likely to create +//! serious problems. +#![allow(unsafe_code)] + +use crate::ffi::CStr; +#[cfg(feature = "fs")] +use crate::fs::AtFlags; +use crate::pid::Pid; +use crate::{backend, io}; +#[cfg(feature = "fs")] +use backend::fd::AsFd; +use core::ffi::c_void; + +pub use crate::kernel_sigset::KernelSigSet; +pub use crate::signal::Signal; + +/// `kernel_sigaction` +/// +/// On some architectures, the `sa_restorer` field is omitted. +/// +/// This type does not have the same layout as `libc::sigaction`. +#[allow(missing_docs)] +#[derive(Debug, Default, Clone)] +#[repr(C)] +pub struct KernelSigaction { + pub sa_handler_kernel: KernelSighandler, + pub sa_flags: KernelSigactionFlags, + #[cfg(not(any( + target_arch = "csky", + target_arch = "loongarch64", + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "mips64", + target_arch = "mips64r6", + target_arch = "riscv32", + target_arch = "riscv64" + )))] + pub sa_restorer: KernelSigrestore, + pub sa_mask: KernelSigSet, +} + +bitflags::bitflags! { + /// Flags for use with [`KernelSigaction`]. + /// + /// This type does not have the same layout as `sa_flags` field in + /// `libc::sigaction`, however the flags have the same values as their + /// libc counterparts. + #[repr(transparent)] + #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug, Default)] + pub struct KernelSigactionFlags: crate::ffi::c_ulong { + /// `SA_NOCLDSTOP` + const NOCLDSTOP = linux_raw_sys::general::SA_NOCLDSTOP as _; + + /// `SA_NOCLDWAIT` (since Linux 2.6) + const NOCLDWAIT = linux_raw_sys::general::SA_NOCLDWAIT as _; + + /// `SA_NODEFER` + const NODEFER = linux_raw_sys::general::SA_NODEFER as _; + + /// `SA_ONSTACK` + const ONSTACK = linux_raw_sys::general::SA_ONSTACK as _; + + /// `SA_RESETHAND` + const RESETHAND = linux_raw_sys::general::SA_RESETHAND as _; + + /// `SA_RESTART` + const RESTART = linux_raw_sys::general::SA_RESTART as _; + + /// `SA_RESTORER` + #[cfg(not(any( + target_arch = "csky", + target_arch = "loongarch64", + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "mips64", + target_arch = "mips64r6", + target_arch = "riscv32", + target_arch = "riscv64" + )))] + const RESTORER = linux_raw_sys::general::SA_RESTORER as _; + + /// `SA_SIGINFO` (since Linux 2.2) + const SIGINFO = linux_raw_sys::general::SA_SIGINFO as _; + + /// `SA_UNSUPPORTED` (since Linux 5.11) + const UNSUPPORTED = linux_raw_sys::general::SA_UNSUPPORTED as _; + + /// `SA_EXPOSE_TAGBITS` (since Linux 5.11) + const EXPOSE_TAGBITS = linux_raw_sys::general::SA_EXPOSE_TAGBITS as _; + + /// + const _ = !0; + } +} + +/// `__sigrestore_t` +/// +/// This type differs from `libc::sigrestore_t`, but can be transmuted to it. +pub type KernelSigrestore = Option; + +/// `__kernel_sighandler_t` +/// +/// This type differs from `libc::sighandler_t`, but can be transmuted to it. +pub type KernelSighandler = Option; + +/// Return a special “ignore” signal handler for ignoring signals. +/// +/// This isn't the `SIG_IGN` value itself; it's a function that returns the +/// `SIG_IGN` value. +/// +/// If you're looking for `kernel_sig_dfl`; use [`KERNEL_SIG_DFL`]. +#[doc(alias = "SIG_IGN")] +#[must_use] +pub const fn kernel_sig_ign() -> KernelSighandler { + linux_raw_sys::signal_macros::sig_ign() +} + +/// A special “default” signal handler representing the default behavior +/// for handling a signal. +/// +/// If you're looking for `KERNEL_SIG_IGN`; use [`kernel_sig_ign`]. +#[doc(alias = "SIG_DFL")] +pub const KERNEL_SIG_DFL: KernelSighandler = linux_raw_sys::signal_macros::SIG_DFL; + +/// `stack_t` +/// +/// This type is guaranteed to have the same layout as `libc::stack_t`. +/// +/// If we want to expose this in public APIs, we should encapsulate the +/// `linux_raw_sys` type. +pub use linux_raw_sys::general::stack_t as Stack; + +/// `siginfo_t` +/// +/// This type is guaranteed to have the same layout as `libc::siginfo_t`. +/// +/// If we want to expose this in public APIs, we should encapsulate the +/// `linux_raw_sys` type. +pub use linux_raw_sys::general::siginfo_t as Siginfo; + +pub use crate::timespec::{Nsecs, Secs, Timespec}; + +/// `SIG_*` constants for use with [`kernel_sigprocmask`]. +#[repr(u32)] +pub enum How { + /// `SIG_BLOCK` + BLOCK = linux_raw_sys::general::SIG_BLOCK, + + /// `SIG_UNBLOCK` + UNBLOCK = linux_raw_sys::general::SIG_UNBLOCK, + + /// `SIG_SETMASK` + SETMASK = linux_raw_sys::general::SIG_SETMASK, +} + +#[cfg(target_arch = "x86")] +#[inline] +pub unsafe fn set_thread_area(u_info: &mut UserDesc) -> io::Result<()> { + backend::runtime::syscalls::tls::set_thread_area(u_info) +} + +#[cfg(target_arch = "arm")] +#[inline] +pub unsafe fn arm_set_tls(data: *mut c_void) -> io::Result<()> { + backend::runtime::syscalls::tls::arm_set_tls(data) +} + +/// `prctl(PR_SET_FS, data)`—Set the x86-64 `fs` register. +/// +/// # Safety +/// +/// This is a very low-level feature for implementing threading libraries. +/// See the references links above. +#[cfg(target_arch = "x86_64")] +#[inline] +pub unsafe fn set_fs(data: *mut c_void) { + backend::runtime::syscalls::tls::set_fs(data) +} + +/// Set the x86-64 thread ID address. +/// +/// # Safety +/// +/// This is a very low-level feature for implementing threading libraries. +/// See the references links above. +#[inline] +pub unsafe fn set_tid_address(data: *mut c_void) -> Pid { + backend::runtime::syscalls::tls::set_tid_address(data) +} + +#[cfg(target_arch = "x86")] +pub use backend::runtime::tls::UserDesc; + +/// `syscall(SYS_exit, status)`—Exit the current thread. +/// +/// # Safety +/// +/// This is a very low-level feature for implementing threading libraries. +#[inline] +pub unsafe fn exit_thread(status: i32) -> ! { + backend::runtime::syscalls::tls::exit_thread(status) +} + +/// Exit all the threads in the current process' thread group. +/// +/// This is equivalent to `_exit` and `_Exit` in libc. +/// +/// This does not call any `__cxa_atexit`, `atexit`, or any other destructors. +/// Most programs should use [`std::process::exit`] instead of calling this +/// directly. +/// +/// # References +/// - [POSIX `_Exit`] +/// - [Linux `exit_group`] +/// - [Linux `_Exit`] +/// +/// [POSIX `_Exit`]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/_Exit.html +/// [Linux `exit_group`]: https://man7.org/linux/man-pages/man2/exit_group.2.html +/// [Linux `_Exit`]: https://man7.org/linux/man-pages/man2/_Exit.2.html +#[doc(alias = "_exit", alias = "_Exit")] +#[inline] +pub fn exit_group(status: i32) -> ! { + backend::runtime::syscalls::exit_group(status) +} + +/// `EXIT_SUCCESS` for use with [`exit_group`]. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdlib.h.html +/// [Linux]: https://man7.org/linux/man-pages/man3/exit.3.html +pub const EXIT_SUCCESS: i32 = backend::c::EXIT_SUCCESS; + +/// `EXIT_FAILURE` for use with [`exit_group`]. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdlib.h.html +/// [Linux]: https://man7.org/linux/man-pages/man3/exit.3.html +pub const EXIT_FAILURE: i32 = backend::c::EXIT_FAILURE; + +/// `(getauxval(AT_PHDR), getauxval(AT_PHENT), getauxval(AT_PHNUM))`—Returns +/// the address, ELF segment header size, and number of ELF segment headers for +/// the main executable. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man3/getauxval.3.html +#[inline] +pub fn exe_phdrs() -> (*const c_void, usize, usize) { + backend::param::auxv::exe_phdrs() +} + +/// `getauxval(AT_ENTRY)`—Returns the address of the program entrypoint. +/// +/// Most code interested in the program entrypoint address should instead use a +/// symbol reference to `_start`. That will be properly PC-relative or +/// relocated if needed, and will come with appropriate pointer type and +/// pointer provenance. +/// +/// This function is intended only for use in code that implements those +/// relocations, to compute the ASLR offset. It has type `usize`, so it doesn't +/// carry any provenance, and it shouldn't be used to dereference memory. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man3/getauxval.3.html +#[inline] +pub fn entry() -> usize { + backend::param::auxv::entry() +} + +/// `getauxval(AT_RANDOM)`—Returns the address of 16 pseudorandom bytes. +/// +/// These bytes are for use by libc. For anything else, use the `rand` crate. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man3/getauxval.3.html +#[inline] +pub fn random() -> *const [u8; 16] { + backend::param::auxv::random() +} + +/// `fork()`—Creates a new process by duplicating the calling process. +/// +/// On success, `Fork::ParentOf` containing the pid of the child process is +/// returned in the parent, and `Fork::Child` containing the pid of the child +/// process is returned in the child. +/// +/// Unlike its POSIX and libc counterparts, this `fork` does not invoke any +/// handlers (such as those registered with `pthread_atfork`). +/// +/// The program environment in the child after a `fork` and before an `execve` +/// is very special. All code that executes in this environment must avoid: +/// +/// - Acquiring any other locks that are held in other threads on the parent +/// at the time of the `fork`, as the child only contains one thread, and +/// attempting to acquire such locks will deadlock (though this is [not +/// considered unsafe]). +/// +/// - Performing any dynamic allocation using the global allocator, since +/// global allocators may use locks to ensure thread safety, and their locks +/// may not be released in the child process, so attempts to allocate may +/// deadlock (as described in the previous point). +/// +/// - Accessing any external state which the parent assumes it has exclusive +/// access to, such as a file protected by a file lock, as this could +/// corrupt the external state. +/// +/// - Accessing any random-number-generator state inherited from the parent, +/// as the parent may have the same state and generate the same random +/// numbers, which may violate security invariants. +/// +/// - Accessing any thread runtime state, since this function does not update +/// the thread id in the thread runtime, so thread runtime functions could +/// cause undefined behavior. +/// +/// - Accessing any memory shared with the parent, such as a [`MAP_SHARED`] +/// mapping, even with anonymous or [`memfd_create`] mappings, as this could +/// cause undefined behavior. +/// +/// - Calling any C function which isn't known to be [async-signal-safe], as +/// that could cause undefined behavior. The extent to which this also +/// applies to Rust functions is unclear at this time. +/// +/// - And more. +/// +/// # Safety +/// +/// The child must avoid accessing any memory shared with the parent in a +/// way that invokes undefined behavior. It must avoid accessing any threading +/// runtime functions in a way that invokes undefined behavior. And it must +/// avoid invoking any undefined behavior through any function that is not +/// guaranteed to be async-signal-safe. But, what does async-signal-safe even +/// mean in a Rust program? This documentation does not have all the answers. +/// +/// So you're on your own. And on top of all the troubles with `fork` in +/// general, this wrapper implementation is highly experimental. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// # Literary interlude +/// +/// > Do not jump on ancient uncles. +/// > Do not yell at average mice. +/// > Do not wear a broom to breakfast. +/// > Do not ask a snake’s advice. +/// > Do not bathe in chocolate pudding. +/// > Do not talk to bearded bears. +/// > Do not smoke cigars on sofas. +/// > Do not dance on velvet chairs. +/// > Do not take a whale to visit +/// > Russell’s mother’s cousin’s yacht. +/// > And whatever else you do do +/// > It is better you +/// > Do not. +/// +/// — “Rules”, by Karla Kuskin +/// +/// [`MAP_SHARED`]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/mmap.html +/// [not considered unsafe]: https://doc.rust-lang.org/reference/behavior-not-considered-unsafe.html#deadlocks +/// [`memfd_create`]: https://man7.org/linux/man-pages/man2/memfd_create.2.html +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fork.html +/// [Linux]: https://man7.org/linux/man-pages/man2/fork.2.html +/// [async-signal-safe]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/V2_chap02.html#tag_15_04_03 +pub unsafe fn kernel_fork() -> io::Result { + backend::runtime::syscalls::kernel_fork() +} + +/// Regular Unix `fork` doesn't tell the child its own PID because it assumes +/// the child can just do `getpid`. That's true, but it's more fun if it +/// doesn't have to. +pub enum Fork { + /// This is returned in the child process after a `fork`. It holds the PID + /// of the child. + Child(Pid), + + /// This is returned in the parent process after a `fork`. It holds the PID + /// of the child. + ParentOf(Pid), +} + +/// `execveat(dirfd, path.as_c_str(), argv, envp, flags)`—Execute a new +/// command using the current process. +/// +/// Taking raw-pointers-to-raw-pointers is convenient for c-scape, but we +/// should think about potentially a more Rust-idiomatic API if this is ever +/// made public. +/// +/// # Safety +/// +/// The `argv` and `envp` pointers must point to NUL-terminated arrays, and +/// their contents must be pointers to NUL-terminated byte arrays. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/execveat.2.html +#[inline] +#[cfg(feature = "fs")] +#[cfg_attr(docsrs, doc(cfg(feature = "fs")))] +#[must_use] +pub unsafe fn execveat( + dirfd: Fd, + path: &CStr, + argv: *const *const u8, + envp: *const *const u8, + flags: AtFlags, +) -> io::Errno { + backend::runtime::syscalls::execveat(dirfd.as_fd(), path, argv, envp, flags) +} + +/// `execve(path.as_c_str(), argv, envp)`—Execute a new command using the +/// current process. +/// +/// Taking raw-pointers-to-raw-pointers is convenient for c-scape, but we +/// should think about potentially a more Rust-idiomatic API if this is ever +/// made public. +/// +/// # Safety +/// +/// The `argv` and `envp` pointers must point to NUL-terminated arrays, and +/// their contents must be pointers to NUL-terminated byte arrays. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/execve.2.html +#[inline] +#[must_use] +pub unsafe fn execve(path: &CStr, argv: *const *const u8, envp: *const *const u8) -> io::Errno { + backend::runtime::syscalls::execve(path, argv, envp) +} + +/// `sigaction(signal, &new, &old)`—Modify and/or query a signal handler. +/// +/// # Safety +/// +/// You're on your own. And on top of all the troubles with signal handlers, +/// this implementation is highly experimental. Even further, it differs from +/// the libc `sigaction` in several non-obvious and unsafe ways. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/sigaction.html +/// [Linux]: https://man7.org/linux/man-pages/man2/sigaction.2.html +#[inline] +pub unsafe fn kernel_sigaction( + signal: Signal, + new: Option, +) -> io::Result { + backend::runtime::syscalls::kernel_sigaction(signal, new) +} + +/// `sigaltstack(new, old)`—Modify and/or query a signal stack. +/// +/// # Safety +/// +/// The memory region described by `new` must readable and writable and larger +/// than the platform minimum signal stack size, and must have a guard region +/// that conforms to the platform conventions for stack guard regions. The +/// flags in `new` must be valid. This function does not diagnose all the +/// errors that libc `sigaltstack` functions are documented as diagnosing. +/// +/// While the memory region pointed to by `new` is registered as a signal +/// stack, it must remain readable and writable, and must not be mutated in +/// any way other than by having a signal handler run in it, and must not be +/// the referent of a Rust reference from outside the signal handler. +/// +/// If code elsewhere in the program is depending on signal handlers being run +/// on a particular stack, this could break that code's assumptions. And if the +/// caller is depending on signal handlers being run on the stack specified in +/// the call, its assumptions could be broken by code elsewhere in the program +/// calling this function. +/// +/// There are probably things out there that assume that all alternate signal +/// stack registration goes through libc, and this does not go through libc. +/// +/// There may be further safety hazards not yet documented here. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/sigaltstack.html +/// [Linux]: https://man7.org/linux/man-pages/man2/sigaltstack.2.html +#[inline] +pub unsafe fn kernel_sigaltstack(new: Option) -> io::Result { + backend::runtime::syscalls::kernel_sigaltstack(new) +} + +/// `tkill(tid, sig)`—Send a signal to a thread. +/// +/// # Safety +/// +/// Causing an individual thread to abruptly terminate without involving the +/// process' thread runtime (such as the libpthread or the libc) evokes +/// undefined behavior. +/// +/// Also, this is not `tgkill`, so the warning about the hazard of recycled +/// thread IDs applies. +/// +/// There may be further safety hazards not yet documented here. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/tkill.2.html +#[inline] +pub unsafe fn tkill(tid: Pid, sig: Signal) -> io::Result<()> { + backend::runtime::syscalls::tkill(tid, sig) +} + +/// `rt_sigprocmask(how, set, oldset)`—Adjust the process signal mask. +/// +/// If this is ever exposed publicly, we should think about whether it should +/// mask out signals reserved by libc. +/// +/// # Safety +/// +/// If there is a libc in the process, the `set` must not contain any signal +/// reserved by the libc. +/// +/// If code elsewhere in the program is depending on delivery of a signal for +/// any reason, for example to prevent it from executing some code, this could +/// cause it to miss that signal, and for example execute that code. And if the +/// caller is depending on delivery of a signal for any reason, its assumptions +/// could be broken by code elsewhere in the program calling this function. +/// +/// There may be further safety hazards not yet documented here. +/// +/// # References +/// - [Linux `rt_sigprocmask`] +/// - [Linux `pthread_sigmask`] +/// +/// [Linux `rt_sigprocmask`]: https://man7.org/linux/man-pages/man2/rt_sigprocmask.2.html +/// [Linux `pthread_sigmask`]: https://man7.org/linux/man-pages/man3/pthread_sigmask.3.html +#[inline] +#[doc(alias = "pthread_sigmask")] +#[doc(alias = "rt_sigprocmask")] +pub unsafe fn kernel_sigprocmask(how: How, set: Option<&KernelSigSet>) -> io::Result { + backend::runtime::syscalls::kernel_sigprocmask(how, set) +} + +/// `sigpending()`—Query the pending signals. +/// +/// If this is ever exposed publicly, we should think about whether it should +/// mask out signals reserved by libc. +/// +/// # References +/// - [Linux `sigpending`] +/// +/// [Linux `sigpending`]: https://man7.org/linux/man-pages/man2/sigpending.2.html +#[inline] +pub fn kernel_sigpending() -> KernelSigSet { + backend::runtime::syscalls::kernel_sigpending() +} + +/// `sigsuspend(set)`—Suspend the calling thread and wait for signals. +/// +/// If this is ever exposed publicly, we should think about whether it should +/// be made to fail if given signals reserved by libc. +/// +/// # References +/// - [Linux `sigsuspend`] +/// +/// [Linux `sigsuspend`]: https://man7.org/linux/man-pages/man2/sigsuspend.2.html +#[inline] +pub fn kernel_sigsuspend(set: &KernelSigSet) -> io::Result<()> { + backend::runtime::syscalls::kernel_sigsuspend(set) +} + +/// `sigwait(set)`—Wait for signals. +/// +/// If this is ever exposed publicly, we should think about whether it should +/// mask out signals reserved by libc. +/// +/// # Safety +/// +/// If there is a libc in the process, the `set` must not contain any signal +/// reserved by the libc. +/// +/// If code elsewhere in the program is depending on delivery of a signal for +/// any reason, for example to prevent it from executing some code, this could +/// cause it to miss that signal, and for example execute that code. And if the +/// caller is depending on delivery of a signal for any reason, its assumptions +/// could be broken by code elsewhere in the program calling this function. +/// +/// There may be further safety hazards not yet documented here. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man3/sigwait.3.html +#[inline] +pub unsafe fn kernel_sigwait(set: &KernelSigSet) -> io::Result { + backend::runtime::syscalls::kernel_sigwait(set) +} + +/// `sigwaitinfo(set)`—Wait for signals, returning a [`Siginfo`]. +/// +/// If this is ever exposed publicly, we should think about whether it should +/// mask out signals reserved by libc. +/// +/// # Safety +/// +/// If there is a libc in the process, the `set` must not contain any signal +/// reserved by the libc. +/// +/// If code elsewhere in the program is depending on delivery of a signal for +/// any reason, for example to prevent it from executing some code, this could +/// cause it to miss that signal, and for example execute that code. And if the +/// caller is depending on delivery of a signal for any reason, its assumptions +/// could be broken by code elsewhere in the program calling this function. +/// +/// There may be further safety hazards not yet documented here. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/sigwaitinfo.2.html +#[inline] +pub unsafe fn kernel_sigwaitinfo(set: &KernelSigSet) -> io::Result { + backend::runtime::syscalls::kernel_sigwaitinfo(set) +} + +/// `sigtimedwait(set)`—Wait for signals, optionally with a timeout. +/// +/// If this is ever exposed publicly, we should think about whether it should +/// mask out signals reserved by libc. +/// +/// # Safety +/// +/// If there is a libc in the process, the `set` must not contain any signal +/// reserved by the libc. +/// +/// If code elsewhere in the program is depending on delivery of a signal for +/// any reason, for example to prevent it from executing some code, this could +/// cause it to miss that signal, and for example execute that code. And if the +/// caller is depending on delivery of a signal for any reason, its assumptions +/// could be broken by code elsewhere in the program calling this function. +/// +/// There may be further safety hazards not yet documented here. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/sigtimedwait.2.html +#[inline] +pub unsafe fn kernel_sigtimedwait( + set: &KernelSigSet, + timeout: Option<&Timespec>, +) -> io::Result { + backend::runtime::syscalls::kernel_sigtimedwait(set, timeout) +} + +/// `getauxval(AT_SECURE)`—Returns the Linux “secure execution” mode. +/// +/// Return a boolean value indicating whether “secure execution” mode was +/// requested, due to the process having elevated privileges. This includes +/// whether the `AT_SECURE` AUX value is set, and whether the initial real UID +/// and GID differ from the initial effective UID and GID. +/// +/// The meaning of “secure execution” mode is beyond the scope of this +/// comment. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man3/getauxval.3.html +#[inline] +pub fn linux_secure() -> bool { + backend::param::auxv::linux_secure() +} + +/// `brk(addr)`—Change the location of the “program break”. +/// +/// # Safety +/// +/// This is not identical to `brk` in libc. libc `brk` may have bookkeeping +/// that needs to be kept up to date that this doesn't keep up to date, so +/// don't use it unless you know your code won't share a process with a libc +/// (perhaps because you yourself are implementing a libc). +#[inline] +pub unsafe fn kernel_brk(addr: *mut c_void) -> io::Result<*mut c_void> { + backend::runtime::syscalls::kernel_brk(addr) +} + +/// `SIGRTMIN`—The start of the raw OS “real-time” signal range. +/// +/// This is the raw `SIGRTMIN` value from the OS, which is not the same as the +/// `SIGRTMIN` macro provided by libc. Don't use this unless you know your code +/// won't share a process with a libc (perhaps because you yourself are +/// implementing a libc). +pub const KERNEL_SIGRTMIN: i32 = linux_raw_sys::general::SIGRTMIN as i32; + +/// `SIGRTMAX`—The last of the raw OS “real-time” signal range. +/// +/// This is the raw `SIGRTMAX` value from the OS, which is not the same as the +/// `SIGRTMAX` macro provided by libc. Don't use this unless you know your code +/// won't share a process with a libc (perhaps because you yourself are +/// implementing a libc). +pub const KERNEL_SIGRTMAX: i32 = { + // Use the actual `SIGRTMAX` value on platforms which define it. + #[cfg(not(any( + target_arch = "arm", + target_arch = "s390x", + target_arch = "x86", + target_arch = "x86_64", + )))] + { + linux_raw_sys::general::SIGRTMAX as i32 + } + + // On platforms that don't, derive it from `_NSIG`. + // + // In the Linux kernel headers, `_NSIG` refers to the number of signals + // known to the kernel. It's 64 on most architectures. + // + // In libc headers, `_NSIG` refers to the exclusive upper bound of the + // signals known to the kernel. It's 65 on most architectures. + // + // This discrepancy arises because a signal value of 0 is used as a + // sentinel, and the first `sigset_t` bit is signal 1 instead of 0. The + // Linux kernel headers and libc headers disagree on the interpretation of + // `_NSIG` as a result. + // + // Here, we use the Linux kernel header value. + #[cfg(any( + target_arch = "arm", + target_arch = "s390x", + target_arch = "x86", + target_arch = "x86_64", + ))] + { + linux_raw_sys::general::_NSIG as i32 + } +}; + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_assumptions() { + assert!(libc::SIGSYS < KERNEL_SIGRTMIN); + assert!(KERNEL_SIGRTMIN <= libc::SIGRTMIN()); + + // POSIX guarantees at least 8 RT signals. + assert!(libc::SIGRTMIN() + 8 <= KERNEL_SIGRTMAX); + + // POSIX guarantees at least 8 RT signals, and it's not uncommon for + // libc implementations to reserve up to 3 for their own purposes. + assert!(KERNEL_SIGRTMIN + 8 + 3 <= KERNEL_SIGRTMAX); + + assert!(KERNEL_SIGRTMAX <= libc::SIGRTMAX()); + assert!(libc::SIGRTMAX() as u32 <= linux_raw_sys::general::_NSIG); + + assert!(KERNEL_SIGRTMAX as usize - 1 < core::mem::size_of::() * 8); + } + + #[test] + fn test_layouts_matching_libc() { + use linux_raw_sys::general::siginfo__bindgen_ty_1__bindgen_ty_1; + + // c-scape assumes rustix's `Siginfo` matches libc's. We don't use + // check_types macros because we want to test compatibility with actual + // libc, not the `crate::backend::c` which might be our own + // implementation. + assert_eq_size!(Siginfo, libc::siginfo_t); + assert_eq_align!(Siginfo, libc::siginfo_t); + assert_eq!( + memoffset::span_of!(Siginfo, ..), + memoffset::span_of!(Siginfo, __bindgen_anon_1) + ); + assert_eq!( + memoffset::span_of!(siginfo__bindgen_ty_1__bindgen_ty_1, si_signo), + memoffset::span_of!(libc::siginfo_t, si_signo) + ); + assert_eq!( + memoffset::span_of!(siginfo__bindgen_ty_1__bindgen_ty_1, si_errno), + memoffset::span_of!(libc::siginfo_t, si_errno) + ); + assert_eq!( + memoffset::span_of!(siginfo__bindgen_ty_1__bindgen_ty_1, si_code), + memoffset::span_of!(libc::siginfo_t, si_code) + ); + + // c-scape assumes rustix's `Stack` matches libc's. Similar to above. + assert_eq_size!(Stack, libc::stack_t); + assert_eq_align!(Stack, libc::stack_t); + assert_eq!( + memoffset::span_of!(Stack, ss_sp), + memoffset::span_of!(libc::stack_t, ss_sp) + ); + assert_eq!( + memoffset::span_of!(Stack, ss_flags), + memoffset::span_of!(libc::stack_t, ss_flags) + ); + assert_eq!( + memoffset::span_of!(Stack, ss_size), + memoffset::span_of!(libc::stack_t, ss_size) + ); + } + + #[test] + fn test_layouts_matching_kernel() { + use linux_raw_sys::general as c; + + // Rustix's versions of these must match the kernel's versions. + // Some architectures have `sa_restorer`. + #[cfg(not(any( + target_arch = "csky", + target_arch = "loongarch64", + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "mips64", + target_arch = "mips64r6", + target_arch = "riscv32", + target_arch = "riscv64" + )))] + check_renamed_struct!( + KernelSigaction, + kernel_sigaction, + sa_handler_kernel, + sa_flags, + sa_restorer, + sa_mask + ); + // Some architectures omit `sa_restorer`. + #[cfg(any( + target_arch = "csky", + target_arch = "loongarch64", + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "mips64", + target_arch = "mips64r6", + target_arch = "riscv32", + target_arch = "riscv64" + ))] + check_renamed_struct!( + KernelSigaction, + kernel_sigaction, + sa_handler_kernel, + sa_flags, + sa_mask + ); + assert_eq_size!(KernelSigactionFlags, crate::ffi::c_ulong); + assert_eq_align!(KernelSigactionFlags, crate::ffi::c_ulong); + check_renamed_type!(KernelSigrestore, __sigrestore_t); + check_renamed_type!(KernelSighandler, __kernel_sighandler_t); + + assert_eq!( + libc::SA_NOCLDSTOP, + KernelSigactionFlags::NOCLDSTOP.bits() as _ + ); + assert_eq!( + libc::SA_NOCLDWAIT, + KernelSigactionFlags::NOCLDWAIT.bits() as _ + ); + assert_eq!(libc::SA_NODEFER, KernelSigactionFlags::NODEFER.bits() as _); + assert_eq!(libc::SA_ONSTACK, KernelSigactionFlags::ONSTACK.bits() as _); + assert_eq!( + libc::SA_RESETHAND, + KernelSigactionFlags::RESETHAND.bits() as _ + ); + assert_eq!(libc::SA_RESTART, KernelSigactionFlags::RESTART.bits() as _); + assert_eq!(libc::SA_SIGINFO, KernelSigactionFlags::SIGINFO.bits() as _); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/shm.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/shm.rs new file mode 100644 index 0000000000000000000000000000000000000000..f279250d17e43c861e1b7a00cc2486dd566d0896 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/shm.rs @@ -0,0 +1,96 @@ +//! POSIX shared memory +//! +//! # Examples +//! +//! ``` +//! use rustix::fs::{ftruncate, Mode}; +//! use rustix::mm::{mmap, MapFlags, ProtFlags}; +//! use rustix::{io, shm}; +//! use std::mem::size_of; +//! use std::ptr::null_mut; +//! +//! # fn example() -> io::Result<()> { +//! // A type describing the data to be shared. +//! #[repr(C)] +//! struct MyBufferType { +//! // … +//! } +//! +//! // Create the shared memory object. +//! let shm_path = "/rustix-shm-example"; +//! let fd = shm::open( +//! shm_path, +//! shm::OFlags::CREATE | shm::OFlags::EXCL | shm::OFlags::RDWR, +//! Mode::RUSR | Mode::WUSR, +//! )?; +//! +//! // Resize the shared memory object to the size of our data. +//! ftruncate(&fd, size_of::() as u64)?; +//! +//! // Map the shared memory object into our address space. +//! // +//! // SAFETY: We're creating a new mapping that's independent of any existing +//! // memory allocations. There are interesting things to say about *using* +//! // `ptr`, but that's for another safety comment. +//! let ptr = unsafe { +//! mmap( +//! null_mut(), +//! size_of::(), +//! ProtFlags::READ | ProtFlags::WRITE, +//! MapFlags::SHARED, +//! &fd, +//! 0, +//! )? +//! }; +//! +//! // Use `ptr`… +//! +//! // Remove the shared memory object name. +//! shm::unlink(shm_path)?; +//! # Ok(()) +//! # } +//! ``` + +#![allow(unused_qualifications)] + +use crate::fd::OwnedFd; +use crate::{backend, io, path}; + +use super::shm; +pub use crate::backend::fs::types::Mode; +pub use crate::backend::shm::types::ShmOFlags as OFlags; + +/// `shm_open(name, oflags, mode)`—Opens a shared memory object. +/// +/// For portability, `name` should begin with a slash, contain no other +/// slashes, and be no longer than an implementation-defined limit (255 on +/// Linux). +/// +/// Exactly one of [`shm::OFlags::RDONLY`] and [`shm::OFlags::RDWR`] should be +/// passed. The file descriptor will be opened with `FD_CLOEXEC` set. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/shm_open.html +/// [Linux]: https://man7.org/linux/man-pages/man3/shm_open.3.html +#[doc(alias = "shm_open")] +#[inline] +pub fn open(name: P, flags: shm::OFlags, mode: Mode) -> io::Result { + name.into_with_c_str(|name| backend::shm::syscalls::shm_open(name, flags, mode)) +} + +/// `shm_unlink(name)`—Unlinks a shared memory object. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/shm_unlink.html +/// [Linux]: https://man7.org/linux/man-pages/man3/shm_unlink.3.html +#[doc(alias = "shm_unlink")] +#[inline] +pub fn unlink(name: P) -> io::Result<()> { + name.into_with_c_str(backend::shm::syscalls::shm_unlink) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/signal.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/signal.rs new file mode 100644 index 0000000000000000000000000000000000000000..e69c64b836e461c3e857f34c3ea4afba13d4af7c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/signal.rs @@ -0,0 +1,539 @@ +//! Signal numbers. +//! +//! # Safety +//! +//! Some signal numbers are reserved by the libc. +//! [`Signal::from_raw_unchecked`] and [`Signal::from_raw_nonzero_unchecked`] +//! allow constructing `Signal` values with arbitrary values. Users must avoid +//! using reserved values to send, consume, or block any signals or alter any +//! signal handlers. +//! +//! See the individual functions' safety comments for more details. +#![allow(unsafe_code)] + +use crate::backend::c; +use core::fmt; +use core::num::NonZeroI32; + +/// A signal number for use with [`kill_process`], [`kill_process_group`], and +/// [`kill_current_process_group`]. +/// +/// For additional constructors such as [`Signal::rt_min`] +/// (aka `libc::SIGRTMIN`), [`Signal::rt_max`] (aka `libc::SIGRTMAX`), +/// [`Signal::rt`] (aka `|n| libc::SIGRTMIN() + n`), [`Signal::from_raw`], and +/// [`Signal::from_raw_nonzero`], see [rustix-libc-wrappers]. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html +/// [Linux]: https://man7.org/linux/man-pages/man7/signal.7.html +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Standard-Signals.html +/// +/// [`kill_process`]: crate::process::kill_process +/// [`kill_process_group`]: crate::process::kill_process_group +/// [`kill_current_process_group`]: crate::process::kill_current_process_group +/// [`Signal::rt_min`]: https://docs.rs/rustix-libc-wrappers/*/rustix_libc_wrappers/trait.SignalExt.html#tymethod.rt_min +/// [`Signal::rt_max`]: https://docs.rs/rustix-libc-wrappers/*/rustix_libc_wrappers/trait.SignalExt.html#tymethod.rt_max +/// [`Signal::rt`]: https://docs.rs/rustix-libc-wrappers/*/rustix_libc_wrappers/trait.SignalExt.html#tymethod.rt +/// [`Signal::from_raw`]: https://docs.rs/rustix-libc-wrappers/*/rustix_libc_wrappers/trait.SignalExt.html#tymethod.from_raw +/// [`Signal::from_raw_nonzero`]: https://docs.rs/rustix-libc-wrappers/*/rustix_libc_wrappers/trait.SignalExt.html#tymethod.from_raw_nonzero +/// [rustix-libc-wrappers]: https://docs.rs/rustix-libc-wrappers +#[doc(alias = "SIGRTMIN")] +#[doc(alias = "SIGRTMAX")] +#[derive(Copy, Clone, Eq, PartialEq)] +#[repr(transparent)] +pub struct Signal(NonZeroI32); + +// SAFETY: The libc-defined signal values are all non-zero. +#[rustfmt::skip] +impl Signal { + /// `SIGHUP` + pub const HUP: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGHUP) }); + /// `SIGINT` + pub const INT: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGINT) }); + /// `SIGQUIT` + pub const QUIT: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGQUIT) }); + /// `SIGILL` + pub const ILL: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGILL) }); + /// `SIGTRAP` + pub const TRAP: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGTRAP) }); + /// `SIGABRT`, aka `SIGIOT` + #[doc(alias = "IOT")] + #[doc(alias = "ABRT")] + pub const ABORT: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGABRT) }); + /// `SIGBUS` + pub const BUS: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGBUS) }); + /// `SIGFPE` + pub const FPE: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGFPE) }); + /// `SIGKILL` + pub const KILL: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGKILL) }); + /// `SIGUSR1` + #[cfg(not(target_os = "vita"))] + pub const USR1: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGUSR1) }); + /// `SIGSEGV` + pub const SEGV: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGSEGV) }); + /// `SIGUSR2` + #[cfg(not(target_os = "vita"))] + pub const USR2: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGUSR2) }); + /// `SIGPIPE` + pub const PIPE: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGPIPE) }); + /// `SIGALRM` + #[doc(alias = "ALRM")] + pub const ALARM: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGALRM) }); + /// `SIGTERM` + pub const TERM: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGTERM) }); + /// `SIGSTKFLT` + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "cygwin", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "nto", + target_os = "vita", + all( + linux_kernel, + any( + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "mips64", + target_arch = "mips64r6", + target_arch = "sparc", + target_arch = "sparc64" + ), + ), + )))] + pub const STKFLT: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGSTKFLT) }); + /// `SIGCHLD` + #[cfg(not(target_os = "vita"))] + #[doc(alias = "CHLD")] + pub const CHILD: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGCHLD) }); + /// `SIGCONT` + #[cfg(not(target_os = "vita"))] + pub const CONT: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGCONT) }); + /// `SIGSTOP` + #[cfg(not(target_os = "vita"))] + pub const STOP: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGSTOP) }); + /// `SIGTSTP` + #[cfg(not(target_os = "vita"))] + pub const TSTP: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGTSTP) }); + /// `SIGTTIN` + #[cfg(not(target_os = "vita"))] + pub const TTIN: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGTTIN) }); + /// `SIGTTOU` + #[cfg(not(target_os = "vita"))] + pub const TTOU: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGTTOU) }); + /// `SIGURG` + #[cfg(not(target_os = "vita"))] + pub const URG: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGURG) }); + /// `SIGXCPU` + #[cfg(not(target_os = "vita"))] + pub const XCPU: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGXCPU) }); + /// `SIGXFSZ` + #[cfg(not(target_os = "vita"))] + pub const XFSZ: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGXFSZ) }); + /// `SIGVTALRM` + #[cfg(not(target_os = "vita"))] + #[doc(alias = "VTALRM")] + pub const VTALARM: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGVTALRM) }); + /// `SIGPROF` + #[cfg(not(target_os = "vita"))] + pub const PROF: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGPROF) }); + /// `SIGWINCH` + #[cfg(not(target_os = "vita"))] + pub const WINCH: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGWINCH) }); + /// `SIGIO`, aka `SIGPOLL` + #[doc(alias = "POLL")] + #[cfg(not(any(target_os = "haiku", target_os = "vita")))] + pub const IO: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGIO) }); + /// `SIGPWR` + #[cfg(not(any( + bsd, + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "vita" + )))] + #[doc(alias = "PWR")] + pub const POWER: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGPWR) }); + /// `SIGSYS`, aka `SIGUNUSED` + #[doc(alias = "UNUSED")] + pub const SYS: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGSYS) }); + /// `SIGEMT` + #[cfg(any( + bsd, + solarish, + target_os = "aix", + target_os = "hermit", + all( + linux_kernel, + any( + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "mips64", + target_arch = "mips64r6", + target_arch = "sparc", + target_arch = "sparc64" + ) + ) + ))] + pub const EMT: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGEMT) }); + /// `SIGINFO` + #[cfg(bsd)] + pub const INFO: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGINFO) }); + /// `SIGTHR` + #[cfg(target_os = "freebsd")] + #[doc(alias = "LWP")] + pub const THR: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGTHR) }); + /// `SIGLIBRT` + #[cfg(target_os = "freebsd")] + pub const LIBRT: Self = Self(unsafe { NonZeroI32::new_unchecked(c::SIGLIBRT) }); +} + +impl Signal { + /// Convert a `Signal` to a raw signal number. + /// + /// To convert to a `NonZeroI32`, use [`Signal::as_raw_nonzero`]. + #[inline] + pub const fn as_raw(self) -> i32 { + self.0.get() + } + + /// Convert a `Signal` to a raw non-zero signal number. + #[inline] + pub const fn as_raw_nonzero(self) -> NonZeroI32 { + self.0 + } + + /// Convert a raw signal number into a `Signal` without checks. + /// + /// For a safe checked version, see [`Signal::from_raw`] in + /// [rustix-libc-wrappers]. + /// + /// # Safety + /// + /// `sig` must be a valid and non-zero signal number. + /// + /// And, if `sig` is a signal number reserved by the libc, such as a value + /// from the libc [`SIGRTMIN`] to the libc [`SIGRTMAX`], inclusive, then + /// the resulting `Signal` must not be used to send, consume, or block any + /// signals or alter any signal handlers. + /// + /// [`Signal::from_raw`]: https://docs.rs/rustix-libc-wrappers/*/rustix_libc_wrappers/trait.SignalExt.html#tymethod.from_raw + /// [rustix-libc-wrappers]: https://docs.rs/rustix-libc-wrappers + /// [`SIGRTMIN`]: https://docs.rs/libc/*/libc/fn.SIGRTMIN.html + /// [`SIGRTMAX`]: https://docs.rs/libc/*/libc/fn.SIGRTMAX.html + #[inline] + pub const unsafe fn from_raw_unchecked(sig: i32) -> Self { + Self::from_raw_nonzero_unchecked(NonZeroI32::new_unchecked(sig)) + } + + /// Convert a raw non-zero signal number into a `Signal` without checks. + /// + /// For a safe checked version, see [`Signal::from_raw_nonzero`] in + /// [rustix-libc-wrappers]. + /// + /// # Safety + /// + /// `sig` must be a valid signal number. + /// + /// And, if `sig` is a signal number reserved by the libc, such as a value + /// from [`SIGRTMIN`] to [`SIGRTMAX`] inclusive, then the resulting + /// `Signal` must not be used to send, consume, or block any signals or + /// alter any signal handlers. + /// + /// [`Signal::from_raw_nonzero`]: https://docs.rs/rustix-libc-wrappers/*/rustix_libc_wrappers/trait.SignalExt.html#tymethod.from_raw_nonzero + /// [rustix-libc-wrappers]: https://docs.rs/rustix-libc-wrappers + /// [`SIGRTMIN`]: https://docs.rs/libc/*/libc/fn.SIGRTMIN.html + /// [`SIGRTMAX`]: https://docs.rs/libc/*/libc/fn.SIGRTMAX.html + #[inline] + pub const unsafe fn from_raw_nonzero_unchecked(sig: NonZeroI32) -> Self { + Self(sig) + } + + /// Convert a raw named signal number into a `Signal`. + /// + /// If the given signal number corresponds to one of the named constant + /// signal values, such as [`Signal::HUP`] or [`Signal::INT`], return the + /// `Signal` value. Otherwise return `None`. + /// + /// Signals in the range `SIGRTMIN` through `SIGRTMAX` are not supported by + /// this function. For a constructor that does recognize those values, see + /// [`Signal::from_raw`] in [rustix-libc-wrappers]. + /// + /// [`Signal::from_raw`]: https://docs.rs/rustix-libc-wrappers/*/rustix_libc_wrappers/trait.SignalExt.html#tymethod.from_raw + /// [rustix-libc-wrappers]: https://docs.rs/rustix-libc-wrappers + pub const fn from_named_raw(sig: i32) -> Option { + if let Some(sig) = NonZeroI32::new(sig) { + Self::from_named_raw_nonzero(sig) + } else { + None + } + } + + /// Convert a raw non-zero named signal number into a `Signal`. + /// + /// If the given signal number corresponds to one of the constant signal + /// values, such as [`Signal::HUP`] or [`Signal::INT`], return the + /// `Signal` value. Otherwise return `None`. + /// + /// Signals in the range `SIGRTMIN` through `SIGRTMAX` are not supported by + /// this function. For a constructor that does recognize those values, see + /// [`Signal::from_raw_nonzero`] in [rustix-libc-wrappers]. + /// + /// [`Signal::from_raw_nonzero`]: https://docs.rs/rustix-libc-wrappers/*/rustix_libc_wrappers/trait.SignalExt.html#tymethod.from_raw_nonzero + /// [rustix-libc-wrappers]: https://docs.rs/rustix-libc-wrappers + pub const fn from_named_raw_nonzero(sig: NonZeroI32) -> Option { + match sig.get() { + c::SIGHUP => Some(Self::HUP), + c::SIGINT => Some(Self::INT), + c::SIGQUIT => Some(Self::QUIT), + c::SIGILL => Some(Self::ILL), + c::SIGTRAP => Some(Self::TRAP), + c::SIGABRT => Some(Self::ABORT), + c::SIGBUS => Some(Self::BUS), + c::SIGFPE => Some(Self::FPE), + c::SIGKILL => Some(Self::KILL), + #[cfg(not(target_os = "vita"))] + c::SIGUSR1 => Some(Self::USR1), + c::SIGSEGV => Some(Self::SEGV), + #[cfg(not(target_os = "vita"))] + c::SIGUSR2 => Some(Self::USR2), + c::SIGPIPE => Some(Self::PIPE), + c::SIGALRM => Some(Self::ALARM), + c::SIGTERM => Some(Self::TERM), + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "cygwin", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "nto", + target_os = "vita", + all( + linux_kernel, + any( + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "mips64", + target_arch = "mips64r6", + target_arch = "sparc", + target_arch = "sparc64" + ), + ) + )))] + c::SIGSTKFLT => Some(Self::STKFLT), + #[cfg(not(target_os = "vita"))] + c::SIGCHLD => Some(Self::CHILD), + #[cfg(not(target_os = "vita"))] + c::SIGCONT => Some(Self::CONT), + #[cfg(not(target_os = "vita"))] + c::SIGSTOP => Some(Self::STOP), + #[cfg(not(target_os = "vita"))] + c::SIGTSTP => Some(Self::TSTP), + #[cfg(not(target_os = "vita"))] + c::SIGTTIN => Some(Self::TTIN), + #[cfg(not(target_os = "vita"))] + c::SIGTTOU => Some(Self::TTOU), + #[cfg(not(target_os = "vita"))] + c::SIGURG => Some(Self::URG), + #[cfg(not(target_os = "vita"))] + c::SIGXCPU => Some(Self::XCPU), + #[cfg(not(target_os = "vita"))] + c::SIGXFSZ => Some(Self::XFSZ), + #[cfg(not(target_os = "vita"))] + c::SIGVTALRM => Some(Self::VTALARM), + #[cfg(not(target_os = "vita"))] + c::SIGPROF => Some(Self::PROF), + #[cfg(not(target_os = "vita"))] + c::SIGWINCH => Some(Self::WINCH), + #[cfg(not(any(target_os = "haiku", target_os = "vita")))] + c::SIGIO => Some(Self::IO), + #[cfg(not(any( + bsd, + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "vita" + )))] + c::SIGPWR => Some(Self::POWER), + c::SIGSYS => Some(Self::SYS), + #[cfg(any( + bsd, + solarish, + target_os = "aix", + target_os = "hermit", + all( + linux_kernel, + any( + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "mips64", + target_arch = "mips64r6", + target_arch = "sparc", + target_arch = "sparc64" + ) + ) + ))] + c::SIGEMT => Some(Self::EMT), + #[cfg(bsd)] + c::SIGINFO => Some(Self::INFO), + #[cfg(target_os = "freebsd")] + c::SIGTHR => Some(Self::THR), + #[cfg(target_os = "freebsd")] + c::SIGLIBRT => Some(Self::LIBRT), + + _ => None, + } + } +} + +impl fmt::Debug for Signal { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + match *self { + Self::HUP => "Signal::HUP".fmt(f), + Self::INT => "Signal::INT".fmt(f), + Self::QUIT => "Signal::QUIT".fmt(f), + Self::ILL => "Signal::ILL".fmt(f), + Self::TRAP => "Signal::TRAP".fmt(f), + Self::ABORT => "Signal::ABORT".fmt(f), + Self::BUS => "Signal::BUS".fmt(f), + Self::FPE => "Signal::FPE".fmt(f), + Self::KILL => "Signal::KILL".fmt(f), + #[cfg(not(target_os = "vita"))] + Self::USR1 => "Signal::USR1".fmt(f), + Self::SEGV => "Signal::SEGV".fmt(f), + #[cfg(not(target_os = "vita"))] + Self::USR2 => "Signal::USR2".fmt(f), + Self::PIPE => "Signal::PIPE".fmt(f), + Self::ALARM => "Signal::ALARM".fmt(f), + Self::TERM => "Signal::TERM".fmt(f), + #[cfg(not(any( + bsd, + solarish, + target_os = "aix", + target_os = "cygwin", + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "nto", + target_os = "vita", + all( + linux_kernel, + any( + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "mips64", + target_arch = "mips64r6", + target_arch = "sparc", + target_arch = "sparc64" + ), + ), + )))] + Self::STKFLT => "Signal::STKFLT".fmt(f), + #[cfg(not(target_os = "vita"))] + Self::CHILD => "Signal::CHILD".fmt(f), + #[cfg(not(target_os = "vita"))] + Self::CONT => "Signal::CONT".fmt(f), + #[cfg(not(target_os = "vita"))] + Self::STOP => "Signal::STOP".fmt(f), + #[cfg(not(target_os = "vita"))] + Self::TSTP => "Signal::TSTP".fmt(f), + #[cfg(not(target_os = "vita"))] + Self::TTIN => "Signal::TTIN".fmt(f), + #[cfg(not(target_os = "vita"))] + Self::TTOU => "Signal::TTOU".fmt(f), + #[cfg(not(target_os = "vita"))] + Self::URG => "Signal::URG".fmt(f), + #[cfg(not(target_os = "vita"))] + Self::XCPU => "Signal::XCPU".fmt(f), + #[cfg(not(target_os = "vita"))] + Self::XFSZ => "Signal::XFSZ".fmt(f), + #[cfg(not(target_os = "vita"))] + Self::VTALARM => "Signal::VTALARM".fmt(f), + #[cfg(not(target_os = "vita"))] + Self::PROF => "Signal::PROF".fmt(f), + #[cfg(not(target_os = "vita"))] + Self::WINCH => "Signal::WINCH".fmt(f), + #[cfg(not(any(target_os = "haiku", target_os = "vita")))] + Self::IO => "Signal::IO".fmt(f), + #[cfg(not(any( + bsd, + target_os = "haiku", + target_os = "horizon", + target_os = "hurd", + target_os = "vita" + )))] + Self::POWER => "Signal::POWER".fmt(f), + Self::SYS => "Signal::SYS".fmt(f), + #[cfg(any( + bsd, + solarish, + target_os = "aix", + target_os = "hermit", + all( + linux_kernel, + any( + target_arch = "mips", + target_arch = "mips32r6", + target_arch = "mips64", + target_arch = "mips64r6", + target_arch = "sparc", + target_arch = "sparc64" + ) + ) + ))] + Self::EMT => "Signal::EMT".fmt(f), + #[cfg(bsd)] + Self::INFO => "Signal::INFO".fmt(f), + #[cfg(target_os = "freebsd")] + Self::THR => "Signal::THR".fmt(f), + #[cfg(target_os = "freebsd")] + Self::LIBRT => "Signal::LIBRT".fmt(f), + + n => { + "Signal::from_raw(".fmt(f)?; + n.as_raw().fmt(f)?; + ")".fmt(f) + } + } + } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_basics() { + assert_eq!(Signal::HUP.as_raw(), libc::SIGHUP); + unsafe { + assert_eq!(Signal::from_raw_unchecked(libc::SIGHUP), Signal::HUP); + assert_eq!( + Signal::from_raw_nonzero_unchecked(NonZeroI32::new(libc::SIGHUP).unwrap()), + Signal::HUP + ); + } + } + + #[test] + fn test_named() { + assert_eq!(Signal::from_named_raw(-1), None); + assert_eq!(Signal::from_named_raw(0), None); + assert_eq!(Signal::from_named_raw(c::SIGHUP), Some(Signal::HUP)); + assert_eq!(Signal::from_named_raw(c::SIGSEGV), Some(Signal::SEGV)); + assert_eq!(Signal::from_named_raw(c::SIGSYS), Some(Signal::SYS)); + #[cfg(any(linux_like, solarish, target_os = "hurd"))] + { + assert_eq!(Signal::from_named_raw(libc::SIGRTMIN()), None); + assert_eq!(Signal::from_named_raw(libc::SIGRTMAX()), None); + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/static_assertions.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/static_assertions.rs new file mode 100644 index 0000000000000000000000000000000000000000..3d0711811d11f9cfb45389473c8560a084fabfb8 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/static_assertions.rs @@ -0,0 +1,36 @@ +//! Workarounds for Rust 1.63 where some things in the `static_assertions` +//! crate do things that don't work in const contexts. We want to call them in +//! const contexts in Rust versions where that's supported so that problems are +//! caught at compile time, and fall back to dynamic asserts in Rust 1.63. + +#![allow(unused_macros)] + +macro_rules! assert_eq_size { + ($x:ty, $y:ty) => { + assert_eq!(core::mem::size_of::<$x>(), core::mem::size_of::<$y>()); + }; +} + +macro_rules! assert_eq_align { + ($x:ty, $y:ty) => { + assert_eq!(core::mem::align_of::<$x>(), core::mem::align_of::<$y>()); + }; +} + +macro_rules! const_assert_eq { + ($x:expr, $y:expr) => { + assert_eq!($x, $y); + }; +} + +macro_rules! const_assert_ne { + ($x:expr, $y:expr) => { + assert_ne!($x, $y); + }; +} + +macro_rules! const_assert { + ($x:expr) => { + assert!($x); + }; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/stdio.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/stdio.rs new file mode 100644 index 0000000000000000000000000000000000000000..e5ea0d4f46dbc519ffec710b57e46df9861086bf --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/stdio.rs @@ -0,0 +1,523 @@ +//! Functions returning the stdio file descriptors. +//! +//! # Safety +//! +//! Some of the functions in this module can cause the process' stdio file +//! descriptors to be closed, which breaks the assumption made in Rust's std +//! that these file descriptors are always open. +//! +//! And in no-std mode, some of the functions in this module similarly assume +//! that the process' stdio file descriptors are open, which we don't take as +//! given in no-std mode because we don't have std also making that assumption. +//! +//! See the individual functions' safety comments for more details. +#![allow(unsafe_code)] + +use crate::backend; +use crate::fd::OwnedFd; +use backend::c; +use backend::fd::{BorrowedFd, FromRawFd as _, RawFd}; + +#[cfg(not(any(windows, target_os = "wasi")))] +use { + crate::io, + backend::fd::{AsFd, AsRawFd as _}, + core::mem::ManuallyDrop, +}; + +/// `STDIN_FILENO`—Standard input, borrowed. +/// +/// In `std`-using configurations, this is a safe function, because the +/// standard library already assumes that the stdin file descriptor is always +/// valid. In `no_std` configurations, it is `unsafe`. +/// +/// # Warning +/// +/// This function allows reading directly from stdin without coordinating +/// with the buffering performed by [`std::io::Stdin`], so it could cause +/// corrupted input. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stdin.html +/// [Linux]: https://man7.org/linux/man-pages/man3/stdin.3.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stdin&sektion=4 +/// [NetBSD]: https://man.netbsd.org/stdin.4 +/// [OpenBSD]: https://man.openbsd.org/stdin.4 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=stdin§ion=4 +/// [illumos]: https://illumos.org/man/4FS/stdin +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Standard-Streams.html#index-stdin +#[cfg(feature = "std")] +#[doc(alias = "STDIN_FILENO")] +#[inline] +pub const fn stdin() -> BorrowedFd<'static> { + // SAFETY: When "std" is enabled, the standard library assumes that the + // stdio file descriptors are all valid. + unsafe { BorrowedFd::borrow_raw(c::STDIN_FILENO as RawFd) } +} + +/// `STDIN_FILENO`—Standard input, borrowed. +/// +/// In `std`-using configurations, this is a safe function, because the +/// standard library already assumes that the stdin file descriptor is always +/// valid. In `no_std` configurations, it is `unsafe`. +/// +/// # Safety +/// +/// In `no_std` configurations, the process' stdin file descriptor can be +/// closed, potentially on other threads, in which case the file descriptor +/// index number (`STDIN_FILENO`) could be dynamically reused for other +/// purposes, potentially on different threads. +/// +/// # Warning +/// +/// This function allows reading directly from stdin without coordinating +/// with the buffering performed by [`std::io::Stdin`], so it could cause +/// corrupted input. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stdin.html +/// [Linux]: https://man7.org/linux/man-pages/man3/stdin.3.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stdin&sektion=4 +/// [NetBSD]: https://man.netbsd.org/stdin.4 +/// [OpenBSD]: https://man.openbsd.org/stdin.4 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=stdin§ion=4 +/// [illumos]: https://illumos.org/man/4FS/stdin +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Standard-Streams.html#index-stdin +#[cfg(not(feature = "std"))] +#[doc(alias = "STDIN_FILENO")] +#[inline] +pub const unsafe fn stdin() -> BorrowedFd<'static> { + BorrowedFd::borrow_raw(c::STDIN_FILENO as RawFd) +} + +/// `STDIN_FILENO`—Standard input, owned. +/// +/// This is similar to [`stdin`], however it returns an `OwnedFd` which closes +/// standard input when it is dropped. +/// +/// # Safety +/// +/// Safe `std`-using Rust code is permitted to assume that the stdin file +/// descriptor is always valid. This function returns an `OwnedFd` which will +/// close the stdin file descriptor when dropped. +/// +/// # Warning +/// +/// This has the same hazards as [`stdin`]. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stdin.html +/// [Linux]: https://man7.org/linux/man-pages/man3/stdin.3.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stdin&sektion=4 +/// [NetBSD]: https://man.netbsd.org/stdin.4 +/// [OpenBSD]: https://man.openbsd.org/stdin.4 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=stdin§ion=4 +/// [illumos]: https://illumos.org/man/4FS/stdin +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Standard-Streams.html#index-stdin +#[doc(alias = "STDIN_FILENO")] +#[inline] +pub unsafe fn take_stdin() -> OwnedFd { + backend::fd::OwnedFd::from_raw_fd(c::STDIN_FILENO as RawFd) +} + +/// `STDOUT_FILENO`—Standard output, borrowed. +/// +/// In `std`-using configurations, this is a safe function, because the +/// standard library already assumes that the stdout file descriptor is always +/// valid. In `no_std` configurations, it is `unsafe`. +/// +/// # Warning +/// +/// This function allows writing directly to stdout without coordinating +/// with the buffering performed by [`std::io::Stdout`], so it could cause +/// corrupted output. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stdout.html +/// [Linux]: https://man7.org/linux/man-pages/man3/stdout.3.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stdout&sektion=4 +/// [NetBSD]: https://man.netbsd.org/stdout.4 +/// [OpenBSD]: https://man.openbsd.org/stdout.4 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=stdout§ion=4 +/// [illumos]: https://illumos.org/man/4FS/stdout +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Standard-Streams.html#index-stdout +#[cfg(feature = "std")] +#[doc(alias = "STDOUT_FILENO")] +#[inline] +pub const fn stdout() -> BorrowedFd<'static> { + // SAFETY: When "std" is enabled, the standard library assumes that the + // stdio file descriptors are all valid. + unsafe { BorrowedFd::borrow_raw(c::STDOUT_FILENO as RawFd) } +} + +/// `STDOUT_FILENO`—Standard output, borrowed. +/// +/// In `std`-using configurations, this is a safe function, because the +/// standard library already assumes that the stdout file descriptor is always +/// valid. In `no_std` configurations, it is `unsafe`. +/// +/// # Safety +/// +/// In `no_std` configurations, the process' stdout file descriptor can be +/// closed, potentially on other threads, in which case the file descriptor +/// index number (`STDOUT_FILENO`) could be dynamically reused for other +/// purposes, potentially on different threads. +/// +/// # Warning +/// +/// This function allows writing directly to stdout without coordinating +/// with the buffering performed by [`std::io::Stdout`], so it could cause +/// corrupted output. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stdout.html +/// [Linux]: https://man7.org/linux/man-pages/man3/stdout.3.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stdout&sektion=4 +/// [NetBSD]: https://man.netbsd.org/stdout.4 +/// [OpenBSD]: https://man.openbsd.org/stdout.4 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=stdout§ion=4 +/// [illumos]: https://illumos.org/man/4FS/stdout +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Standard-Streams.html#index-stdout +#[cfg(not(feature = "std"))] +#[doc(alias = "STDOUT_FILENO")] +#[inline] +pub const unsafe fn stdout() -> BorrowedFd<'static> { + BorrowedFd::borrow_raw(c::STDOUT_FILENO as RawFd) +} + +/// `STDOUT_FILENO`—Standard output, owned. +/// +/// This is similar to [`stdout`], however it returns an `OwnedFd` which closes +/// standard output when it is dropped. +/// +/// # Safety +/// +/// Safe `std`-using Rust code is permitted to assume that the stdout file +/// descriptor is always valid. This function returns an `OwnedFd` which will +/// close the stdout file descriptor when dropped. +/// +/// # Warning +/// +/// This has the same hazards as [`stdout`]. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stdout.html +/// [Linux]: https://man7.org/linux/man-pages/man3/stdout.3.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stdout&sektion=4 +/// [NetBSD]: https://man.netbsd.org/stdout.4 +/// [OpenBSD]: https://man.openbsd.org/stdout.4 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=stdout§ion=4 +/// [illumos]: https://illumos.org/man/4FS/stdout +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Standard-Streams.html#index-stdout +#[doc(alias = "STDOUT_FILENO")] +#[inline] +pub unsafe fn take_stdout() -> OwnedFd { + backend::fd::OwnedFd::from_raw_fd(c::STDOUT_FILENO as RawFd) +} + +/// `STDERR_FILENO`—Standard error, borrowed. +/// +/// In `std`-using configurations, this is a safe function, because the +/// standard library already assumes that the stderr file descriptor is always +/// valid. In `no_std` configurations, it is `unsafe`. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stderr.html +/// [Linux]: https://man7.org/linux/man-pages/man3/stderr.3.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stderr&sektion=4 +/// [NetBSD]: https://man.netbsd.org/stderr.4 +/// [OpenBSD]: https://man.openbsd.org/stderr.4 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=stderr§ion=4 +/// [illumos]: https://illumos.org/man/4FS/stderr +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Standard-Streams.html#index-stderr +#[cfg(feature = "std")] +#[doc(alias = "STDERR_FILENO")] +#[inline] +pub const fn stderr() -> BorrowedFd<'static> { + // SAFETY: When "std" is enabled, the standard library assumes that the + // stdio file descriptors are all valid. + unsafe { BorrowedFd::borrow_raw(c::STDERR_FILENO as RawFd) } +} + +/// `STDERR_FILENO`—Standard error, borrowed. +/// +/// In `std`-using configurations, this is a safe function, because the +/// standard library already assumes that the stderr file descriptor is always +/// valid. In `no_std` configurations, it is `unsafe`. +/// +/// # Safety +/// +/// In `no_std` configurations, the process' stderr file descriptor can be +/// closed, potentially on other threads, in which case the file descriptor +/// index number (`STDERR_FILENO`) could be dynamically reused for other +/// purposes, potentially on different threads. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stderr.html +/// [Linux]: https://man7.org/linux/man-pages/man3/stderr.3.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stderr&sektion=4 +/// [NetBSD]: https://man.netbsd.org/stderr.4 +/// [OpenBSD]: https://man.openbsd.org/stderr.4 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=stderr§ion=4 +/// [illumos]: https://illumos.org/man/4FS/stderr +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Standard-Streams.html#index-stderr +#[cfg(not(feature = "std"))] +#[doc(alias = "STDERR_FILENO")] +#[inline] +pub const unsafe fn stderr() -> BorrowedFd<'static> { + BorrowedFd::borrow_raw(c::STDERR_FILENO as RawFd) +} + +/// `STDERR_FILENO`—Standard error, owned. +/// +/// This is similar to [`stderr`], however it returns an `OwnedFd` which closes +/// standard output when it is dropped. +/// +/// # Safety +/// +/// Safe std-using Rust code is permitted to assume that the stderr file +/// descriptor is always valid. This function returns an `OwnedFd` which will +/// close the stderr file descriptor when dropped. +/// +/// # Other hazards +/// +/// This has the same hazards as [`stderr`]. +/// +/// And, when the `OwnedFd` is dropped, subsequent newly created file +/// descriptors may unknowingly reuse the stderr file descriptor number, which +/// may break common assumptions, so it should typically only be dropped at the +/// end of a program when no more file descriptors will be created. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stderr.html +/// [Linux]: https://man7.org/linux/man-pages/man3/stderr.3.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stderr&sektion=4 +/// [NetBSD]: https://man.netbsd.org/stderr.4 +/// [OpenBSD]: https://man.openbsd.org/stderr.4 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=stderr§ion=4 +/// [illumos]: https://illumos.org/man/4FS/stderr +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Standard-Streams.html#index-stderr +#[doc(alias = "STDERR_FILENO")] +#[inline] +pub unsafe fn take_stderr() -> OwnedFd { + backend::fd::OwnedFd::from_raw_fd(c::STDERR_FILENO as RawFd) +} + +/// `STDIN_FILENO`—Standard input, raw. +/// +/// This is similar to [`stdin`], however it returns a `RawFd`. +/// +/// # Other hazards +/// +/// This has the same hazards as [`stdin`]. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stdin.html +/// [Linux]: https://man7.org/linux/man-pages/man3/stdin.3.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stdin&sektion=4 +/// [NetBSD]: https://man.netbsd.org/stdin.4 +/// [OpenBSD]: https://man.openbsd.org/stdin.4 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=stdin§ion=4 +/// [illumos]: https://illumos.org/man/4FS/stdin +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Standard-Streams.html#index-stdin +#[doc(alias = "STDIN_FILENO")] +#[inline] +pub const fn raw_stdin() -> RawFd { + c::STDIN_FILENO as RawFd +} + +/// `STDOUT_FILENO`—Standard output, raw. +/// +/// This is similar to [`stdout`], however it returns a `RawFd`. +/// +/// # Other hazards +/// +/// This has the same hazards as [`stdout`]. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stdout.html +/// [Linux]: https://man7.org/linux/man-pages/man3/stdout.3.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stdout&sektion=4 +/// [NetBSD]: https://man.netbsd.org/stdout.4 +/// [OpenBSD]: https://man.openbsd.org/stdout.4 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=stdout§ion=4 +/// [illumos]: https://illumos.org/man/4FS/stdout +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Standard-Streams.html#index-stdout +#[doc(alias = "STDOUT_FILENO")] +#[inline] +pub const fn raw_stdout() -> RawFd { + c::STDOUT_FILENO as RawFd +} + +/// `STDERR_FILENO`—Standard error, raw. +/// +/// This is similar to [`stderr`], however it returns a `RawFd`. +/// +/// # Other hazards +/// +/// This has the same hazards as [`stderr`]. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [FreeBSD] +/// - [NetBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/stderr.html +/// [Linux]: https://man7.org/linux/man-pages/man3/stderr.3.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=stderr&sektion=4 +/// [NetBSD]: https://man.netbsd.org/stderr.4 +/// [OpenBSD]: https://man.openbsd.org/stderr.4 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=stderr§ion=4 +/// [illumos]: https://illumos.org/man/4FS/stderr +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Standard-Streams.html#index-stderr +#[doc(alias = "STDERR_FILENO")] +#[inline] +pub const fn raw_stderr() -> RawFd { + c::STDERR_FILENO as RawFd +} + +/// Utility function to safely `dup2` over stdin (fd 0). +#[cfg(not(any(windows, target_os = "wasi")))] +#[inline] +pub fn dup2_stdin(fd: Fd) -> io::Result<()> { + let fd = fd.as_fd(); + if fd.as_raw_fd() != c::STDIN_FILENO { + // SAFETY: We wrap the returned `OwnedFd` to `ManuallyDrop` so that it + // isn't dropped. + let mut target = ManuallyDrop::new(unsafe { take_stdin() }); + backend::io::syscalls::dup2(fd, &mut target)?; + } + Ok(()) +} + +/// Utility function to safely `dup2` over stdout (fd 1). +#[cfg(not(any(windows, target_os = "wasi")))] +#[inline] +pub fn dup2_stdout(fd: Fd) -> io::Result<()> { + let fd = fd.as_fd(); + if fd.as_raw_fd() != c::STDOUT_FILENO { + // SAFETY: We wrap the returned `OwnedFd` to `ManuallyDrop` so that it + // isn't dropped. + let mut target = ManuallyDrop::new(unsafe { take_stdout() }); + backend::io::syscalls::dup2(fd, &mut target)?; + } + Ok(()) +} + +/// Utility function to safely `dup2` over stderr (fd 2). +#[cfg(not(any(windows, target_os = "wasi")))] +#[inline] +pub fn dup2_stderr(fd: Fd) -> io::Result<()> { + let fd = fd.as_fd(); + if fd.as_raw_fd() != c::STDERR_FILENO { + // SAFETY: We wrap the returned `OwnedFd` to `ManuallyDrop` so that it + // isn't dropped. + let mut target = ManuallyDrop::new(unsafe { take_stderr() }); + backend::io::syscalls::dup2(fd, &mut target)?; + } + Ok(()) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/system.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/system.rs new file mode 100644 index 0000000000000000000000000000000000000000..70204aef8bf873335b34a2be5e8183ed9c74d823 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/system.rs @@ -0,0 +1,317 @@ +//! Uname and other system-level functions. + +#![allow(unsafe_code)] + +use crate::backend; +#[cfg(target_os = "linux")] +use crate::backend::c; +use crate::ffi::CStr; +#[cfg(not(any(target_os = "espidf", target_os = "emscripten", target_os = "vita")))] +use crate::io; +use core::fmt; + +#[cfg(linux_kernel)] +pub use backend::system::types::Sysinfo; + +#[cfg(linux_kernel)] +use crate::fd::AsFd; +#[cfg(linux_kernel)] +use crate::ffi::c_int; + +/// `uname()`—Returns high-level information about the runtime OS and +/// hardware. +/// +/// For `gethostname()`, use [`Uname::nodename`] on the result. +/// +/// # References +/// - [POSIX] +/// - [Linux] +/// - [Apple] +/// - [NetBSD] +/// - [FreeBSD] +/// - [OpenBSD] +/// - [DragonFly BSD] +/// - [illumos] +/// - [glibc] +/// +/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/uname.html +/// [Linux]: https://man7.org/linux/man-pages/man2/uname.2.html +/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/uname.3.html +/// [NetBSD]: https://man.netbsd.org/uname.3 +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=uname&sektion=3 +/// [OpenBSD]: https://man.openbsd.org/uname.3 +/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=uname§ion=3 +/// [illumos]: https://illumos.org/man/2/uname +/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Platform-Type.html +#[doc(alias = "gethostname")] +#[inline] +pub fn uname() -> Uname { + Uname(backend::system::syscalls::uname()) +} + +/// `struct utsname`—Return type for [`uname`]. +#[doc(alias = "utsname")] +pub struct Uname(backend::system::types::RawUname); + +impl Uname { + /// `sysname`—Operating system release name. + #[inline] + pub fn sysname(&self) -> &CStr { + Self::to_cstr(self.0.sysname.as_ptr().cast()) + } + + /// `nodename`—Name with vague meaning. + /// + /// This is intended to be a network name, however it's unable to convey + /// information about hosts that have multiple names, or any information + /// about where the names are visible. + /// + /// This corresponds to the `gethostname` value. + #[inline] + pub fn nodename(&self) -> &CStr { + Self::to_cstr(self.0.nodename.as_ptr().cast()) + } + + /// `release`—Operating system release version string. + #[inline] + pub fn release(&self) -> &CStr { + Self::to_cstr(self.0.release.as_ptr().cast()) + } + + /// `version`—Operating system build identifiers. + #[inline] + pub fn version(&self) -> &CStr { + Self::to_cstr(self.0.version.as_ptr().cast()) + } + + /// `machine`—Hardware architecture identifier. + #[inline] + pub fn machine(&self) -> &CStr { + Self::to_cstr(self.0.machine.as_ptr().cast()) + } + + /// `domainname`—NIS or YP domain identifier. + #[cfg(linux_kernel)] + #[inline] + pub fn domainname(&self) -> &CStr { + Self::to_cstr(self.0.domainname.as_ptr().cast()) + } + + #[inline] + fn to_cstr<'a>(ptr: *const u8) -> &'a CStr { + // SAFETY: Strings returned from the kernel are always NUL-terminated. + unsafe { CStr::from_ptr(ptr.cast()) } + } +} + +impl fmt::Debug for Uname { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + #[cfg(not(linux_kernel))] + { + write!( + f, + "{:?} {:?} {:?} {:?} {:?}", + self.sysname(), + self.nodename(), + self.release(), + self.version(), + self.machine(), + ) + } + #[cfg(linux_kernel)] + { + write!( + f, + "{:?} {:?} {:?} {:?} {:?} {:?}", + self.sysname(), + self.nodename(), + self.release(), + self.version(), + self.machine(), + self.domainname(), + ) + } + } +} + +/// `sysinfo()`—Returns status information about the runtime OS. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/uname.2.html +#[cfg(linux_kernel)] +#[inline] +pub fn sysinfo() -> Sysinfo { + backend::system::syscalls::sysinfo() +} + +/// `sethostname(name)`—Sets the system host name. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/sethostname.2.html +#[cfg(not(any( + target_os = "emscripten", + target_os = "espidf", + target_os = "horizon", + target_os = "redox", + target_os = "vita", + target_os = "wasi" +)))] +#[inline] +pub fn sethostname(name: &[u8]) -> io::Result<()> { + backend::system::syscalls::sethostname(name) +} + +/// `setdomain(name)`—Sets the system NIS domain name. +/// +/// # References +/// - [Linux] +/// - [FreeBSD] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/setdomainname.2.html +/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=setdomainname&sektion=3 +#[cfg(not(any( + target_os = "cygwin", + target_os = "emscripten", + target_os = "espidf", + target_os = "haiku", + target_os = "horizon", + target_os = "illumos", + target_os = "redox", + target_os = "solaris", + target_os = "vita", + target_os = "wasi", +)))] +#[inline] +pub fn setdomainname(name: &[u8]) -> io::Result<()> { + backend::system::syscalls::setdomainname(name) +} + +/// Reboot command for use with [`reboot`]. +#[cfg(target_os = "linux")] +#[derive(Copy, Clone, Debug, Eq, PartialEq)] +#[repr(i32)] +#[non_exhaustive] +pub enum RebootCommand { + /// Disables the Ctrl-Alt-Del keystroke. + /// + /// When disabled, the keystroke will send a [`Signal::INT`] to + /// [`Pid::INIT`]. + /// + /// [`Signal::INT`]: crate::process::Signal::INT + /// [`Pid::INIT`]: crate::process::Pid::INIT + CadOff = c::LINUX_REBOOT_CMD_CAD_OFF, + /// Enables the Ctrl-Alt-Del keystroke. + /// + /// When enabled, the keystroke will trigger a [`Restart`]. + /// + /// [`Restart`]: Self::Restart + CadOn = c::LINUX_REBOOT_CMD_CAD_ON, + /// Prints the message "System halted" and halts the system + Halt = c::LINUX_REBOOT_CMD_HALT, + /// Execute a kernel that has been loaded earlier with [`kexec_load`]. + /// + /// [`kexec_load`]: https://man7.org/linux/man-pages/man2/kexec_load.2.html + Kexec = c::LINUX_REBOOT_CMD_KEXEC, + /// Prints the message "Power down.", stops the system, and tries to remove + /// all power + PowerOff = c::LINUX_REBOOT_CMD_POWER_OFF, + /// Prints the message "Restarting system." and triggers a restart + Restart = c::LINUX_REBOOT_CMD_RESTART, + /// Hibernate the system by suspending to disk + SwSuspend = c::LINUX_REBOOT_CMD_SW_SUSPEND, +} + +/// `reboot`—Reboot the system or enable/disable Ctrl-Alt-Del. +/// +/// The reboot syscall, despite the name, can actually do much more than +/// reboot. +/// +/// Among other things, it can: +/// - Restart, Halt, Power Off, and Suspend the system +/// - Enable and disable the Ctrl-Alt-Del keystroke +/// - Execute other kernels +/// - Terminate init inside PID namespaces +/// +/// It is highly recommended to carefully read the kernel documentation before +/// calling this function. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/reboot.2.html +#[cfg(target_os = "linux")] +pub fn reboot(cmd: RebootCommand) -> io::Result<()> { + backend::system::syscalls::reboot(cmd) +} + +/// `init_module`—Load a kernel module. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/init_module.2.html +#[inline] +#[cfg(linux_kernel)] +pub fn init_module(image: &[u8], param_values: &CStr) -> io::Result<()> { + backend::system::syscalls::init_module(image, param_values) +} + +/// `finit_module`—Load a kernel module from a file descriptor. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/finit_module.2.html +#[inline] +#[cfg(linux_kernel)] +pub fn finit_module(fd: Fd, param_values: &CStr, flags: c_int) -> io::Result<()> { + backend::system::syscalls::finit_module(fd.as_fd(), param_values, flags) +} + +/// `delete_module`—Unload a kernel module. +/// +/// # References +/// - [Linux] +/// +/// [Linux]: https://man7.org/linux/man-pages/man2/delete_module.2.html +#[inline] +#[cfg(linux_kernel)] +pub fn delete_module(name: &CStr, flags: c_int) -> io::Result<()> { + backend::system::syscalls::delete_module(name, flags) +} + +#[cfg(test)] +mod tests { + #[allow(unused_imports)] + use super::*; + #[allow(unused_imports)] + use crate::backend::c; + + #[cfg(linux_kernel)] + #[test] + fn test_sysinfo_layouts() { + // Don't assert the size for `Sysinfo` because `c::sysinfo` has a + // computed-size padding field at the end that bindgen doesn't support, + // and `c::sysinfo` may add fields over time. + assert_eq!( + core::mem::align_of::(), + core::mem::align_of::() + ); + check_renamed_struct_field!(Sysinfo, sysinfo, uptime); + check_renamed_struct_field!(Sysinfo, sysinfo, loads); + check_renamed_struct_field!(Sysinfo, sysinfo, totalram); + check_renamed_struct_field!(Sysinfo, sysinfo, freeram); + check_renamed_struct_field!(Sysinfo, sysinfo, sharedram); + check_renamed_struct_field!(Sysinfo, sysinfo, bufferram); + check_renamed_struct_field!(Sysinfo, sysinfo, totalswap); + check_renamed_struct_field!(Sysinfo, sysinfo, freeswap); + check_renamed_struct_field!(Sysinfo, sysinfo, procs); + check_renamed_struct_field!(Sysinfo, sysinfo, totalhigh); + check_renamed_struct_field!(Sysinfo, sysinfo, freehigh); + check_renamed_struct_field!(Sysinfo, sysinfo, mem_unit); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/timespec.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/timespec.rs new file mode 100644 index 0000000000000000000000000000000000000000..a6458bbcaf214831579059efcc10be65c8625a9e --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/timespec.rs @@ -0,0 +1,428 @@ +//! `Timespec` and related types, which are used by multiple public API +//! modules. + +#![allow(dead_code)] + +use core::num::TryFromIntError; +use core::ops::{Add, AddAssign, Neg, Sub, SubAssign}; +use core::time::Duration; + +use crate::backend::c; +#[allow(unused)] +use crate::ffi; +#[cfg(not(fix_y2038))] +use core::ptr::null; + +/// `struct timespec`—A quantity of time in seconds plus nanoseconds. +#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, PartialOrd, Ord)] +#[repr(C)] +pub struct Timespec { + /// Seconds. + pub tv_sec: Secs, + + /// Nanoseconds. Must be less than 1_000_000_000. + /// + /// When passed to [`rustix::fs::utimensat`], this field may instead be + /// assigned the values [`UTIME_NOW`] or [`UTIME_OMIT`]. + /// + /// [`UTIME_NOW`]: crate::fs::UTIME_NOW + /// [`UTIME_OMIT`]: crate::fs::UTIME_OMIT + /// [`rustix::fs::utimensat`]: crate::fs::utimensat + pub tv_nsec: Nsecs, +} + +/// A type for the `tv_sec` field of [`Timespec`]. +pub type Secs = i64; + +/// A type for the `tv_nsec` field of [`Timespec`]. +#[cfg(any( + fix_y2038, + linux_raw, + all(libc, target_arch = "x86_64", target_pointer_width = "32") +))] +pub type Nsecs = i64; + +/// A type for the `tv_nsec` field of [`Timespec`]. +#[cfg(all( + not(fix_y2038), + libc, + not(all(target_arch = "x86_64", target_pointer_width = "32")) +))] +pub type Nsecs = ffi::c_long; + +impl Timespec { + /// Checked `Timespec` addition. Returns `None` if overflow occurred. + /// + /// # Panics + /// + /// If `0 <= .tv_nsec < 1_000_000_000` doesn't hold, this function may + /// panic or return unexpected results. + /// + /// # Example + /// + /// ``` + /// use rustix::event::Timespec; + /// + /// assert_eq!( + /// Timespec { + /// tv_sec: 1, + /// tv_nsec: 2 + /// } + /// .checked_add(Timespec { + /// tv_sec: 30, + /// tv_nsec: 40 + /// }), + /// Some(Timespec { + /// tv_sec: 31, + /// tv_nsec: 42 + /// }) + /// ); + /// assert_eq!( + /// Timespec { + /// tv_sec: 0, + /// tv_nsec: 999_999_999 + /// } + /// .checked_add(Timespec { + /// tv_sec: 0, + /// tv_nsec: 2 + /// }), + /// Some(Timespec { + /// tv_sec: 1, + /// tv_nsec: 1 + /// }) + /// ); + /// assert_eq!( + /// Timespec { + /// tv_sec: i64::MAX, + /// tv_nsec: 999_999_999 + /// } + /// .checked_add(Timespec { + /// tv_sec: 0, + /// tv_nsec: 1 + /// }), + /// None + /// ); + /// ``` + pub const fn checked_add(self, rhs: Self) -> Option { + if let Some(mut tv_sec) = self.tv_sec.checked_add(rhs.tv_sec) { + let mut tv_nsec = self.tv_nsec + rhs.tv_nsec; + if tv_nsec >= 1_000_000_000 { + tv_nsec -= 1_000_000_000; + if let Some(carried_sec) = tv_sec.checked_add(1) { + tv_sec = carried_sec; + } else { + return None; + } + } + Some(Self { tv_sec, tv_nsec }) + } else { + None + } + } + + /// Checked `Timespec` subtraction. Returns `None` if overflow occurred. + /// + /// # Panics + /// + /// If `0 <= .tv_nsec < 1_000_000_000` doesn't hold, this function may + /// panic or return unexpected results. + /// + /// # Example + /// + /// ``` + /// use rustix::event::Timespec; + /// + /// assert_eq!( + /// Timespec { + /// tv_sec: 31, + /// tv_nsec: 42 + /// } + /// .checked_sub(Timespec { + /// tv_sec: 30, + /// tv_nsec: 40 + /// }), + /// Some(Timespec { + /// tv_sec: 1, + /// tv_nsec: 2 + /// }) + /// ); + /// assert_eq!( + /// Timespec { + /// tv_sec: 1, + /// tv_nsec: 1 + /// } + /// .checked_sub(Timespec { + /// tv_sec: 0, + /// tv_nsec: 2 + /// }), + /// Some(Timespec { + /// tv_sec: 0, + /// tv_nsec: 999_999_999 + /// }) + /// ); + /// assert_eq!( + /// Timespec { + /// tv_sec: i64::MIN, + /// tv_nsec: 0 + /// } + /// .checked_sub(Timespec { + /// tv_sec: 0, + /// tv_nsec: 1 + /// }), + /// None + /// ); + /// ``` + pub const fn checked_sub(self, rhs: Self) -> Option { + if let Some(mut tv_sec) = self.tv_sec.checked_sub(rhs.tv_sec) { + let mut tv_nsec = self.tv_nsec - rhs.tv_nsec; + if tv_nsec < 0 { + tv_nsec += 1_000_000_000; + if let Some(borrowed_sec) = tv_sec.checked_sub(1) { + tv_sec = borrowed_sec; + } else { + return None; + } + } + Some(Self { tv_sec, tv_nsec }) + } else { + None + } + } + + /// Convert from `Timespec` to `c::c_int` milliseconds, rounded up. + pub(crate) fn as_c_int_millis(&self) -> Option { + let secs = self.tv_sec; + if secs < 0 { + return None; + } + secs.checked_mul(1000) + .and_then(|millis| { + // Add the nanoseconds, converted to milliseconds, rounding up. + // With Rust 1.73.0 this can use `div_ceil`. + millis.checked_add((i64::from(self.tv_nsec) + 999_999) / 1_000_000) + }) + .and_then(|millis| c::c_int::try_from(millis).ok()) + } +} + +impl TryFrom for Duration { + type Error = TryFromIntError; + + fn try_from(ts: Timespec) -> Result { + Ok(Self::new(ts.tv_sec.try_into()?, ts.tv_nsec as _)) + } +} + +impl TryFrom for Timespec { + type Error = TryFromIntError; + + fn try_from(dur: Duration) -> Result { + Ok(Self { + tv_sec: dur.as_secs().try_into()?, + tv_nsec: dur.subsec_nanos() as _, + }) + } +} + +impl Add for Timespec { + type Output = Self; + + fn add(self, rhs: Self) -> Self { + self.checked_add(rhs) + .expect("overflow when adding timespecs") + } +} + +impl AddAssign for Timespec { + fn add_assign(&mut self, rhs: Self) { + *self = *self + rhs; + } +} + +impl Sub for Timespec { + type Output = Self; + + fn sub(self, rhs: Self) -> Self { + self.checked_sub(rhs) + .expect("overflow when subtracting timespecs") + } +} + +impl SubAssign for Timespec { + fn sub_assign(&mut self, rhs: Self) { + *self = *self - rhs; + } +} + +impl Neg for Timespec { + type Output = Self; + + fn neg(self) -> Self { + Self::default() - self + } +} + +/// On 32-bit glibc platforms, `timespec` has anonymous padding fields, which +/// Rust doesn't support yet (see `unnamed_fields`), so we define our own +/// struct with explicit padding, with bidirectional `From` impls. +#[cfg(fix_y2038)] +#[repr(C)] +#[derive(Debug, Clone)] +pub(crate) struct LibcTimespec { + pub(crate) tv_sec: Secs, + + #[cfg(target_endian = "big")] + padding: core::mem::MaybeUninit, + + pub(crate) tv_nsec: i32, + + #[cfg(target_endian = "little")] + padding: core::mem::MaybeUninit, +} + +#[cfg(fix_y2038)] +impl From for Timespec { + #[inline] + fn from(t: LibcTimespec) -> Self { + Self { + tv_sec: t.tv_sec, + tv_nsec: t.tv_nsec as _, + } + } +} + +#[cfg(fix_y2038)] +impl From for LibcTimespec { + #[inline] + fn from(t: Timespec) -> Self { + Self { + tv_sec: t.tv_sec, + tv_nsec: t.tv_nsec as _, + padding: core::mem::MaybeUninit::uninit(), + } + } +} + +#[cfg(not(fix_y2038))] +pub(crate) fn as_libc_timespec_ptr(timespec: &Timespec) -> *const c::timespec { + #[cfg(test)] + { + assert_eq_size!(Timespec, c::timespec); + } + crate::utils::as_ptr(timespec).cast::() +} + +#[cfg(not(fix_y2038))] +pub(crate) fn as_libc_timespec_mut_ptr( + timespec: &mut core::mem::MaybeUninit, +) -> *mut c::timespec { + #[cfg(test)] + { + assert_eq_size!(Timespec, c::timespec); + } + timespec.as_mut_ptr().cast::() +} + +#[cfg(not(fix_y2038))] +pub(crate) fn option_as_libc_timespec_ptr(timespec: Option<&Timespec>) -> *const c::timespec { + match timespec { + None => null(), + Some(timespec) => as_libc_timespec_ptr(timespec), + } +} + +/// As described [here], Apple platforms may return a negative nanoseconds +/// value in some cases; adjust it so that nanoseconds is always in +/// `0..1_000_000_000`. +/// +/// [here]: https://github.com/rust-lang/rust/issues/108277#issuecomment-1787057158 +#[cfg(apple)] +#[inline] +pub(crate) fn fix_negative_nsecs( + mut secs: c::time_t, + mut nsecs: c::c_long, +) -> (c::time_t, c::c_long) { + #[cold] + fn adjust(secs: &mut c::time_t, nsecs: c::c_long) -> c::c_long { + assert!(nsecs >= -1_000_000_000); + assert!(*secs < 0); + assert!(*secs > c::time_t::MIN); + *secs -= 1; + nsecs + 1_000_000_000 + } + + if nsecs < 0 { + nsecs = adjust(&mut secs, nsecs); + } + (secs, nsecs) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[cfg(apple)] + #[test] + fn test_negative_timestamps() { + let mut secs = -59; + let mut nsecs = -900_000_000; + (secs, nsecs) = fix_negative_nsecs(secs, nsecs); + assert_eq!(secs, -60); + assert_eq!(nsecs, 100_000_000); + (secs, nsecs) = fix_negative_nsecs(secs, nsecs); + assert_eq!(secs, -60); + assert_eq!(nsecs, 100_000_000); + } + + #[test] + fn test_sizes() { + assert_eq_size!(Secs, u64); + const_assert!(core::mem::size_of::() >= core::mem::size_of::<(u64, u32)>()); + const_assert!(core::mem::size_of::() >= 4); + + let mut t = Timespec { + tv_sec: 0, + tv_nsec: 0, + }; + + // `tv_nsec` needs to be able to hold nanoseconds up to a second. + t.tv_nsec = 999_999_999_u32 as _; + assert_eq!(t.tv_nsec as u64, 999_999_999_u64); + + // `tv_sec` needs to be able to hold more than 32-bits of seconds. + t.tv_sec = 0x1_0000_0000_u64 as _; + assert_eq!(t.tv_sec as u64, 0x1_0000_0000_u64); + } + + // Test that our workarounds are needed. + #[cfg(fix_y2038)] + #[test] + #[allow(deprecated)] + fn test_fix_y2038() { + assert_eq_size!(libc::time_t, u32); + } + + // Test that our workarounds are not needed. + #[cfg(not(fix_y2038))] + #[test] + fn timespec_layouts() { + use crate::backend::c; + check_renamed_struct!(Timespec, timespec, tv_sec, tv_nsec); + } + + // Test that `Timespec` matches Linux's `__kernel_timespec`. + #[cfg(linux_raw_dep)] + #[test] + fn test_against_kernel_timespec() { + assert_eq_size!(Timespec, linux_raw_sys::general::__kernel_timespec); + assert_eq_align!(Timespec, linux_raw_sys::general::__kernel_timespec); + assert_eq!( + memoffset::span_of!(Timespec, tv_sec), + memoffset::span_of!(linux_raw_sys::general::__kernel_timespec, tv_sec) + ); + assert_eq!( + memoffset::span_of!(Timespec, tv_nsec), + memoffset::span_of!(linux_raw_sys::general::__kernel_timespec, tv_nsec) + ); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/ugid.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/ugid.rs new file mode 100644 index 0000000000000000000000000000000000000000..11edb19b30c1b94ec1c992cdf95bac6a818fd3cb --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/ugid.rs @@ -0,0 +1,193 @@ +//! User and Group ID types. + +use core::fmt; + +use crate::backend::c; +use crate::ffi; + +/// A group identifier as a raw integer. +pub type RawGid = ffi::c_uint; +/// A user identifier as a raw integer. +pub type RawUid = ffi::c_uint; + +/// `uid_t`—A Unix user ID. +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Debug, Hash)] +pub struct Uid(RawUid); + +/// `gid_t`—A Unix group ID. +#[repr(transparent)] +#[derive(Copy, Clone, Eq, PartialEq, Debug, Hash)] +pub struct Gid(RawGid); + +impl Uid { + /// A `Uid` corresponding to the root user (uid 0). + pub const ROOT: Self = Self(0); + + /// Converts a `RawUid` into a `Uid`. + /// + /// `raw` must be the value of a valid Unix user ID, and not `-1`. + #[inline] + pub fn from_raw(raw: RawUid) -> Self { + debug_assert_ne!(raw, !0); + Self(raw) + } + + /// Converts a `RawUid` into a `Uid`. + /// + /// `raw` must be the value of a valid Unix user ID, and not `-1`. + #[inline] + pub const fn from_raw_unchecked(raw: RawUid) -> Self { + Self(raw) + } + + /// Converts a `Uid` into a `RawUid`. + #[inline] + pub const fn as_raw(self) -> RawUid { + self.0 + } + + /// Test whether this uid represents the root user ([`Uid::ROOT`]). + #[inline] + pub const fn is_root(self) -> bool { + self.0 == Self::ROOT.0 + } +} + +impl Gid { + /// A `Gid` corresponding to the root group (gid 0). + pub const ROOT: Self = Self(0); + + /// Converts a `RawGid` into a `Gid`. + /// + /// `raw` must be the value of a valid Unix group ID, and not `-1`. + #[inline] + pub fn from_raw(raw: RawGid) -> Self { + debug_assert_ne!(raw, !0); + Self(raw) + } + + /// Converts a `RawGid` into a `Gid`. + /// + /// `raw` must be the value of a valid Unix group ID, and not `-1`. + #[inline] + pub const fn from_raw_unchecked(raw: RawGid) -> Self { + Self(raw) + } + + /// Converts a `Gid` into a `RawGid`. + #[inline] + pub const fn as_raw(self) -> RawGid { + self.0 + } + + /// Test whether this gid represents the root group ([`Gid::ROOT`]). + #[inline] + pub const fn is_root(self) -> bool { + self.0 == Self::ROOT.0 + } +} + +impl fmt::Display for Uid { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.0.fmt(f) + } +} +impl fmt::Binary for Uid { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.0.fmt(f) + } +} +impl fmt::Octal for Uid { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.0.fmt(f) + } +} +impl fmt::LowerHex for Uid { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.0.fmt(f) + } +} +impl fmt::UpperHex for Uid { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.0.fmt(f) + } +} +impl fmt::LowerExp for Uid { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.0.fmt(f) + } +} +impl fmt::UpperExp for Uid { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.0.fmt(f) + } +} + +impl fmt::Display for Gid { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.0.fmt(f) + } +} +impl fmt::Binary for Gid { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.0.fmt(f) + } +} +impl fmt::Octal for Gid { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.0.fmt(f) + } +} +impl fmt::LowerHex for Gid { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.0.fmt(f) + } +} +impl fmt::UpperHex for Gid { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.0.fmt(f) + } +} +impl fmt::LowerExp for Gid { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.0.fmt(f) + } +} +impl fmt::UpperExp for Gid { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.0.fmt(f) + } +} + +// Return the raw value of the IDs. In case of `None` it returns `!0` since it +// has the same bit pattern as `-1` indicating no change to the owner/group ID. +pub(crate) fn translate_fchown_args( + owner: Option, + group: Option, +) -> (c::uid_t, c::gid_t) { + let ow = match owner { + Some(o) => o.as_raw(), + None => !0, + }; + + let gr = match group { + Some(g) => g.as_raw(), + None => !0, + }; + + (ow as c::uid_t, gr as c::gid_t) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_sizes() { + assert_eq_size!(RawUid, u32); + assert_eq_size!(RawGid, u32); + assert_eq_size!(RawUid, libc::uid_t); + assert_eq_size!(RawGid, libc::gid_t); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/utils.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/utils.rs new file mode 100644 index 0000000000000000000000000000000000000000..77eb26c1410225c55e0caef823299b584ffb3ecd --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/utils.rs @@ -0,0 +1,76 @@ +//! Miscellaneous minor utilities. + +#![allow(dead_code)] +#![allow(unused_macros)] + +use core::ffi::c_void; +use core::mem::{align_of, size_of}; +use core::ptr::{null, null_mut, NonNull}; + +/// Convert a `&T` into a `*const T` without using an `as`. +#[inline] +pub(crate) const fn as_ptr(t: &T) -> *const T { + t +} + +/// Convert a `&mut T` into a `*mut T` without using an `as`. +#[inline] +pub(crate) fn as_mut_ptr(t: &mut T) -> *mut T { + t +} + +/// Convert an `Option<&T>` into a possibly-null `*const T`. +#[inline] +pub(crate) const fn option_as_ptr(t: Option<&T>) -> *const T { + match t { + Some(t) => t, + None => null(), + } +} + +/// Convert an `Option<&mut T>` into a possibly-null `*mut T`. +#[inline] +pub(crate) fn option_as_mut_ptr(t: Option<&mut T>) -> *mut T { + match t { + Some(t) => t, + None => null_mut(), + } +} + +/// Convert a `*mut c_void` to a `*mut T`, checking that it is not null, +/// misaligned, or pointing to a region of memory that wraps around the address +/// space. +pub(crate) fn check_raw_pointer(value: *mut c_void) -> Option> { + if (value as usize).checked_add(size_of::()).is_none() + || (value as usize) % align_of::() != 0 + { + return None; + } + + NonNull::new(value.cast()) +} + +/// Create a union value containing a default value in one of its arms. +/// +/// The field names a union field which must have the same size as the union +/// itself. +macro_rules! default_union { + ($union:ident, $field:ident) => {{ + let u = $union { + $field: Default::default(), + }; + + // Assert that the given field initializes the whole union. + #[cfg(test)] + unsafe { + let field_value = u.$field; + assert_eq!( + core::mem::size_of_val(&u), + core::mem::size_of_val(&field_value) + ); + const_assert_eq!(memoffset::offset_of_union!($union, $field), 0); + } + + u + }}; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/weak.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/weak.rs new file mode 100644 index 0000000000000000000000000000000000000000..b17e4b1ce4235cba585fc592e0059c81f70fb245 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.3/src/weak.rs @@ -0,0 +1,288 @@ +// Implementation derived from `weak` in Rust's +// library/std/src/sys/unix/weak.rs at revision +// fd0cb0cdc21dd9c06025277d772108f8d42cb25f. +// +// Ideally we should update to a newer version which doesn't need `dlsym`, +// however that depends on the `extern_weak` feature which is currently +// unstable. + +#![cfg_attr(linux_raw, allow(unsafe_code))] + +//! Support for "weak linkage" to symbols on Unix +//! +//! Some I/O operations we do in libstd require newer versions of OSes but we +//! need to maintain binary compatibility with older releases for now. In order +//! to use the new functionality when available we use this module for +//! detection. +//! +//! One option to use here is weak linkage, but that is unfortunately only +//! really workable on Linux. Hence, use dlsym to get the symbol value at +//! runtime. This is also done for compatibility with older versions of glibc, +//! and to avoid creating dependencies on `GLIBC_PRIVATE` symbols. It assumes +//! that we've been dynamically linked to the library the symbol comes from, +//! but that is currently always the case for things like libpthread/libc. +//! +//! A long time ago this used weak linkage for the `__pthread_get_minstack` +//! symbol, but that caused Debian to detect an unnecessarily strict versioned +//! dependency on libc6 (#23628). + +// There are a variety of `#[cfg]`s controlling which targets are involved in +// each instance of `weak!` and `syscall!`. Rather than trying to unify all of +// that, we'll just allow that some unix targets don't use this module at all. +#![allow(dead_code, unused_macros)] +#![allow(clippy::doc_markdown)] + +use crate::ffi::CStr; +use core::ffi::c_void; +use core::ptr::null_mut; +use core::sync::atomic::{self, AtomicPtr, Ordering}; +use core::{marker, mem}; + +const NULL: *mut c_void = null_mut(); +const INVALID: *mut c_void = 1 as *mut c_void; + +macro_rules! weak { + ($vis:vis fn $name:ident($($t:ty),*) -> $ret:ty) => ( + #[allow(non_upper_case_globals)] + $vis static $name: $crate::weak::Weak $ret> = + $crate::weak::Weak::new(concat!(stringify!($name), '\0')); + ) +} + +pub(crate) struct Weak { + name: &'static str, + addr: AtomicPtr, + _marker: marker::PhantomData, +} + +impl Weak { + pub(crate) const fn new(name: &'static str) -> Self { + Self { + name, + addr: AtomicPtr::new(INVALID), + _marker: marker::PhantomData, + } + } + + pub(crate) fn get(&self) -> Option { + assert_eq!(mem::size_of::(), mem::size_of::()); + unsafe { + // Relaxed is fine here because we fence before reading through the + // pointer (see the comment below). + match self.addr.load(Ordering::Relaxed) { + INVALID => self.initialize(), + NULL => None, + addr => { + let func = mem::transmute_copy::<*mut c_void, F>(&addr); + // The caller is presumably going to read through this + // value (by calling the function we've dlsymed). This + // means we'd need to have loaded it with at least C11's + // consume ordering in order to be guaranteed that the data + // we read from the pointer isn't from before the pointer + // was stored. Rust has no equivalent to + // memory_order_consume, so we use an acquire fence (sorry, + // ARM). + // + // Now, in practice this likely isn't needed even on CPUs + // where relaxed and consume mean different things. The + // symbols we're loading are probably present (or not) at + // init, and even if they aren't the runtime dynamic loader + // is extremely likely have sufficient barriers internally + // (possibly implicitly, for example the ones provided by + // invoking `mprotect`). + // + // That said, none of that's *guaranteed*, and so we fence. + atomic::fence(Ordering::Acquire); + Some(func) + } + } + } + } + + // Cold because it should only happen during first-time initialization. + #[cold] + unsafe fn initialize(&self) -> Option { + let val = fetch(self.name); + // This synchronizes with the acquire fence in `get`. + self.addr.store(val, Ordering::Release); + + match val { + NULL => None, + addr => Some(mem::transmute_copy::<*mut c_void, F>(&addr)), + } + } +} + +// To avoid having the `linux_raw` backend depend on the libc crate, just +// declare the few things we need in a module called `libc` so that `fetch` +// uses it. +#[cfg(linux_raw)] +mod libc { + use core::ptr; + use linux_raw_sys::ctypes::{c_char, c_void}; + + #[cfg(all(target_os = "android", target_pointer_width = "32"))] + pub(super) const RTLD_DEFAULT: *mut c_void = -1isize as *mut c_void; + #[cfg(not(all(target_os = "android", target_pointer_width = "32")))] + pub(super) const RTLD_DEFAULT: *mut c_void = ptr::null_mut(); + + extern "C" { + pub(super) fn dlsym(handle: *mut c_void, symbol: *const c_char) -> *mut c_void; + } + + #[test] + fn test_abi() { + assert_eq!(self::RTLD_DEFAULT, ::libc::RTLD_DEFAULT); + } +} + +unsafe fn fetch(name: &str) -> *mut c_void { + let name = match CStr::from_bytes_with_nul(name.as_bytes()) { + Ok(c_str) => c_str, + Err(..) => return null_mut(), + }; + libc::dlsym(libc::RTLD_DEFAULT, name.as_ptr().cast()) +} + +#[cfg(not(linux_kernel))] +macro_rules! syscall { + ($vis:vis fn $name:ident($($arg_name:ident: $t:ty),*) via $_sys_name:ident -> $ret:ty) => ( + $vis unsafe fn $name($($arg_name: $t),*) -> $ret { + weak! { fn $name($($t),*) -> $ret } + + if let Some(fun) = $name.get() { + fun($($arg_name),*) + } else { + libc_errno::set_errno(libc_errno::Errno(libc::ENOSYS)); + -1 + } + } + ) +} + +#[cfg(linux_kernel)] +macro_rules! syscall { + ($vis:vis fn $name:ident($($arg_name:ident: $t:ty),*) via $sys_name:ident -> $ret:ty) => ( + $vis unsafe fn $name($($arg_name:$t),*) -> $ret { + // This looks like a hack, but `concat_idents` only accepts idents + // (not paths). + use libc::*; + + #[allow(dead_code)] + trait AsSyscallArg { + type SyscallArgType; + fn into_syscall_arg(self) -> Self::SyscallArgType; + } + + // Pass pointer types as pointers, to preserve provenance. + impl AsSyscallArg for *mut T { + type SyscallArgType = *mut T; + fn into_syscall_arg(self) -> Self::SyscallArgType { self } + } + impl AsSyscallArg for *const T { + type SyscallArgType = *const T; + fn into_syscall_arg(self) -> Self::SyscallArgType { self } + } + + // Pass `BorrowedFd` values as the integer value. + impl AsSyscallArg for $crate::fd::BorrowedFd<'_> { + type SyscallArgType = ::libc::c_int; + fn into_syscall_arg(self) -> Self::SyscallArgType { + $crate::fd::AsRawFd::as_raw_fd(&self) as _ + } + } + + // Coerce integer values into `c_long`. + impl AsSyscallArg for i8 { + type SyscallArgType = ::libc::c_int; + fn into_syscall_arg(self) -> Self::SyscallArgType { self.into() } + } + impl AsSyscallArg for u8 { + type SyscallArgType = ::libc::c_int; + fn into_syscall_arg(self) -> Self::SyscallArgType { self.into() } + } + impl AsSyscallArg for i16 { + type SyscallArgType = ::libc::c_int; + fn into_syscall_arg(self) -> Self::SyscallArgType { self.into() } + } + impl AsSyscallArg for u16 { + type SyscallArgType = ::libc::c_int; + fn into_syscall_arg(self) -> Self::SyscallArgType { self.into() } + } + impl AsSyscallArg for i32 { + type SyscallArgType = ::libc::c_int; + fn into_syscall_arg(self) -> Self::SyscallArgType { self } + } + impl AsSyscallArg for u32 { + type SyscallArgType = ::libc::c_uint; + fn into_syscall_arg(self) -> Self::SyscallArgType { self } + } + impl AsSyscallArg for usize { + type SyscallArgType = ::libc::c_ulong; + fn into_syscall_arg(self) -> Self::SyscallArgType { self as _ } + } + + // On 64-bit platforms, also coerce `i64` and `u64` since `c_long` + // is 64-bit and can hold those values. + #[cfg(target_pointer_width = "64")] + impl AsSyscallArg for i64 { + type SyscallArgType = ::libc::c_long; + fn into_syscall_arg(self) -> Self::SyscallArgType { self } + } + #[cfg(target_pointer_width = "64")] + impl AsSyscallArg for u64 { + type SyscallArgType = ::libc::c_ulong; + fn into_syscall_arg(self) -> Self::SyscallArgType { self } + } + + // `concat_idents` is [unstable], so we take an extra `sys_name` + // parameter and have our users do the concat for us for now. + // + // [unstable]: https://github.com/rust-lang/rust/issues/29599 + /* + syscall( + concat_idents!(SYS_, $name), + $($arg_name.into_syscall_arg()),* + ) as $ret + */ + + syscall($sys_name, $($arg_name.into_syscall_arg()),*) as $ret + } + ) +} + +macro_rules! weakcall { + ($vis:vis fn $name:ident($($arg_name:ident: $t:ty),*) -> $ret:ty) => ( + $vis unsafe fn $name($($arg_name: $t),*) -> $ret { + weak! { fn $name($($t),*) -> $ret } + + // Use a weak symbol from libc when possible, allowing `LD_PRELOAD` + // interposition, but if it's not found just fail. + if let Some(fun) = $name.get() { + fun($($arg_name),*) + } else { + libc_errno::set_errno(libc_errno::Errno(libc::ENOSYS)); + -1 + } + } + ) +} + +/// A combination of `weakcall` and `syscall`. Use the libc function if it's +/// available, and fall back to `libc::syscall` otherwise. +macro_rules! weak_or_syscall { + ($vis:vis fn $name:ident($($arg_name:ident: $t:ty),*) via $sys_name:ident -> $ret:ty) => ( + $vis unsafe fn $name($($arg_name: $t),*) -> $ret { + weak! { fn $name($($t),*) -> $ret } + + // Use a weak symbol from libc when possible, allowing `LD_PRELOAD` + // interposition, but if it's not found just fail. + if let Some(fun) = $name.get() { + fun($($arg_name),*) + } else { + syscall! { fn $name($($arg_name: $t),*) via $sys_name -> $ret } + $name($($arg_name),*) + } + } + ) +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/examples/internal/bench.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/examples/internal/bench.rs new file mode 100644 index 0000000000000000000000000000000000000000..5ef69d0509477a041cb752e5f1d443d429f1ca79 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/examples/internal/bench.rs @@ -0,0 +1,664 @@ +// This program does assorted benchmarking of rustls. +// +// Note: we don't use any of the standard 'cargo bench', 'test::Bencher', +// etc. because it's unstable at the time of writing. + +use std::convert::TryInto; +use std::env; +use std::fs; +use std::io::{self, Read, Write}; +use std::ops::Deref; +use std::ops::DerefMut; +use std::sync::Arc; +use std::time::{Duration, Instant}; + +use rustls::client::{ClientSessionMemoryCache, NoClientSessionStorage}; +use rustls::server::{ + AllowAnyAuthenticatedClient, NoClientAuth, NoServerSessionStorage, ServerSessionMemoryCache, +}; +use rustls::RootCertStore; +use rustls::Ticketer; +use rustls::{ClientConfig, ClientConnection}; +use rustls::{ConnectionCommon, SideData}; +use rustls::{ServerConfig, ServerConnection}; + +fn duration_nanos(d: Duration) -> f64 { + (d.as_secs() as f64) + f64::from(d.subsec_nanos()) / 1e9 +} + +fn _bench(count: usize, name: &'static str, f_setup: Fsetup, f_test: Ftest) +where + Fsetup: Fn() -> S, + Ftest: Fn(S), +{ + let mut times = Vec::new(); + + for _ in 0..count { + let state = f_setup(); + let start = Instant::now(); + f_test(state); + times.push(duration_nanos(Instant::now().duration_since(start))); + } + + println!("{}", name); + println!("{:?}", times); +} + +fn time(mut f: F) -> f64 +where + F: FnMut(), +{ + let start = Instant::now(); + f(); + let end = Instant::now(); + duration_nanos(end.duration_since(start)) +} + +fn transfer(left: &mut L, right: &mut R, expect_data: Option) -> f64 +where + L: DerefMut + Deref>, + R: DerefMut + Deref>, + LS: SideData, + RS: SideData, +{ + let mut tls_buf = [0u8; 262144]; + let mut read_time = 0f64; + let mut data_left = expect_data; + let mut data_buf = [0u8; 8192]; + + loop { + let mut sz = 0; + + while left.wants_write() { + let written = left + .write_tls(&mut tls_buf[sz..].as_mut()) + .unwrap(); + if written == 0 { + break; + } + + sz += written; + } + + if sz == 0 { + return read_time; + } + + let mut offs = 0; + loop { + let start = Instant::now(); + match right.read_tls(&mut tls_buf[offs..sz].as_ref()) { + Ok(read) => { + right.process_new_packets().unwrap(); + offs += read; + } + Err(err) => { + panic!("error on transfer {}..{}: {}", offs, sz, err); + } + } + + if let Some(left) = &mut data_left { + loop { + let sz = match right.reader().read(&mut data_buf) { + Ok(sz) => sz, + Err(err) if err.kind() == io::ErrorKind::WouldBlock => break, + Err(err) => panic!("failed to read data: {}", err), + }; + + *left -= sz; + if *left == 0 { + break; + } + } + } + + let end = Instant::now(); + read_time += duration_nanos(end.duration_since(start)); + if sz == offs { + break; + } + } + } +} + +#[derive(PartialEq, Clone, Copy)] +enum ClientAuth { + No, + Yes, +} + +#[derive(PartialEq, Clone, Copy)] +enum Resumption { + No, + SessionID, + Tickets, +} + +impl Resumption { + fn label(&self) -> &'static str { + match *self { + Resumption::No => "no-resume", + Resumption::SessionID => "sessionid", + Resumption::Tickets => "tickets", + } + } +} + +// copied from tests/api.rs +#[derive(PartialEq, Clone, Copy, Debug)] +enum KeyType { + Rsa, + Ecdsa, + Ed25519, +} + +struct BenchmarkParam { + key_type: KeyType, + ciphersuite: rustls::SupportedCipherSuite, + version: &'static rustls::SupportedProtocolVersion, +} + +impl BenchmarkParam { + const fn new( + key_type: KeyType, + ciphersuite: rustls::SupportedCipherSuite, + version: &'static rustls::SupportedProtocolVersion, + ) -> BenchmarkParam { + BenchmarkParam { + key_type, + ciphersuite, + version, + } + } +} + +static ALL_BENCHMARKS: &[BenchmarkParam] = &[ + #[cfg(feature = "tls12")] + BenchmarkParam::new( + KeyType::Rsa, + rustls::cipher_suite::TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, + &rustls::version::TLS12, + ), + #[cfg(feature = "tls12")] + BenchmarkParam::new( + KeyType::Ecdsa, + rustls::cipher_suite::TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, + &rustls::version::TLS12, + ), + #[cfg(feature = "tls12")] + BenchmarkParam::new( + KeyType::Rsa, + rustls::cipher_suite::TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, + &rustls::version::TLS12, + ), + #[cfg(feature = "tls12")] + BenchmarkParam::new( + KeyType::Rsa, + rustls::cipher_suite::TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, + &rustls::version::TLS12, + ), + #[cfg(feature = "tls12")] + BenchmarkParam::new( + KeyType::Rsa, + rustls::cipher_suite::TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, + &rustls::version::TLS12, + ), + #[cfg(feature = "tls12")] + BenchmarkParam::new( + KeyType::Ecdsa, + rustls::cipher_suite::TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, + &rustls::version::TLS12, + ), + #[cfg(feature = "tls12")] + BenchmarkParam::new( + KeyType::Ecdsa, + rustls::cipher_suite::TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, + &rustls::version::TLS12, + ), + BenchmarkParam::new( + KeyType::Rsa, + rustls::cipher_suite::TLS13_CHACHA20_POLY1305_SHA256, + &rustls::version::TLS13, + ), + BenchmarkParam::new( + KeyType::Rsa, + rustls::cipher_suite::TLS13_AES_256_GCM_SHA384, + &rustls::version::TLS13, + ), + BenchmarkParam::new( + KeyType::Rsa, + rustls::cipher_suite::TLS13_AES_128_GCM_SHA256, + &rustls::version::TLS13, + ), + BenchmarkParam::new( + KeyType::Ecdsa, + rustls::cipher_suite::TLS13_AES_128_GCM_SHA256, + &rustls::version::TLS13, + ), + BenchmarkParam::new( + KeyType::Ed25519, + rustls::cipher_suite::TLS13_AES_128_GCM_SHA256, + &rustls::version::TLS13, + ), +]; + +impl KeyType { + fn path_for(&self, part: &str) -> String { + match self { + KeyType::Rsa => format!("test-ca/rsa/{}", part), + KeyType::Ecdsa => format!("test-ca/ecdsa/{}", part), + KeyType::Ed25519 => format!("test-ca/eddsa/{}", part), + } + } + + fn get_chain(&self) -> Vec { + rustls_pemfile::certs(&mut io::BufReader::new( + fs::File::open(self.path_for("end.fullchain")).unwrap(), + )) + .unwrap() + .iter() + .map(|v| rustls::Certificate(v.clone())) + .collect() + } + + fn get_key(&self) -> rustls::PrivateKey { + rustls::PrivateKey( + rustls_pemfile::pkcs8_private_keys(&mut io::BufReader::new( + fs::File::open(self.path_for("end.key")).unwrap(), + )) + .unwrap()[0] + .clone(), + ) + } + + fn get_client_chain(&self) -> Vec { + rustls_pemfile::certs(&mut io::BufReader::new( + fs::File::open(self.path_for("client.fullchain")).unwrap(), + )) + .unwrap() + .iter() + .map(|v| rustls::Certificate(v.clone())) + .collect() + } + + fn get_client_key(&self) -> rustls::PrivateKey { + rustls::PrivateKey( + rustls_pemfile::pkcs8_private_keys(&mut io::BufReader::new( + fs::File::open(self.path_for("client.key")).unwrap(), + )) + .unwrap()[0] + .clone(), + ) + } +} + +fn make_server_config( + params: &BenchmarkParam, + client_auth: ClientAuth, + resume: Resumption, + max_fragment_size: Option, +) -> ServerConfig { + let client_auth = match client_auth { + ClientAuth::Yes => { + let roots = params.key_type.get_chain(); + let mut client_auth_roots = RootCertStore::empty(); + for root in roots { + client_auth_roots.add(&root).unwrap(); + } + AllowAnyAuthenticatedClient::new(client_auth_roots) + } + ClientAuth::No => NoClientAuth::new(), + }; + + let mut cfg = ServerConfig::builder() + .with_safe_default_cipher_suites() + .with_safe_default_kx_groups() + .with_protocol_versions(&[params.version]) + .unwrap() + .with_client_cert_verifier(client_auth) + .with_single_cert(params.key_type.get_chain(), params.key_type.get_key()) + .expect("bad certs/private key?"); + + if resume == Resumption::SessionID { + cfg.session_storage = ServerSessionMemoryCache::new(128); + } else if resume == Resumption::Tickets { + cfg.ticketer = Ticketer::new().unwrap(); + } else { + cfg.session_storage = Arc::new(NoServerSessionStorage {}); + } + + cfg.max_fragment_size = max_fragment_size; + cfg +} + +fn make_client_config( + params: &BenchmarkParam, + clientauth: ClientAuth, + resume: Resumption, +) -> ClientConfig { + let mut root_store = RootCertStore::empty(); + let mut rootbuf = + io::BufReader::new(fs::File::open(params.key_type.path_for("ca.cert")).unwrap()); + root_store.add_parsable_certificates(&rustls_pemfile::certs(&mut rootbuf).unwrap()); + + let cfg = ClientConfig::builder() + .with_cipher_suites(&[params.ciphersuite]) + .with_safe_default_kx_groups() + .with_protocol_versions(&[params.version]) + .unwrap() + .with_root_certificates(root_store); + + let mut cfg = if clientauth == ClientAuth::Yes { + cfg.with_single_cert( + params.key_type.get_client_chain(), + params.key_type.get_client_key(), + ) + .unwrap() + } else { + cfg.with_no_client_auth() + }; + + if resume != Resumption::No { + cfg.session_storage = ClientSessionMemoryCache::new(128); + } else { + cfg.session_storage = Arc::new(NoClientSessionStorage {}); + } + + cfg +} + +fn apply_work_multiplier(work: u64) -> u64 { + let mul = match env::var("BENCH_MULTIPLIER") { + Ok(val) => val + .parse::() + .expect("invalid BENCH_MULTIPLIER value"), + Err(_) => 1., + }; + + ((work as f64) * mul).round() as u64 +} + +fn bench_handshake(params: &BenchmarkParam, clientauth: ClientAuth, resume: Resumption) { + let client_config = Arc::new(make_client_config(params, clientauth, resume)); + let server_config = Arc::new(make_server_config(params, clientauth, resume, None)); + + assert!(params.ciphersuite.version() == params.version); + + let rounds = apply_work_multiplier(if resume == Resumption::No { 512 } else { 4096 }); + let mut client_time = 0f64; + let mut server_time = 0f64; + + for _ in 0..rounds { + let server_name = "localhost".try_into().unwrap(); + let mut client = ClientConnection::new(Arc::clone(&client_config), server_name).unwrap(); + let mut server = ServerConnection::new(Arc::clone(&server_config)).unwrap(); + + server_time += time(|| { + transfer(&mut client, &mut server, None); + }); + client_time += time(|| { + transfer(&mut server, &mut client, None); + }); + server_time += time(|| { + transfer(&mut client, &mut server, None); + }); + client_time += time(|| { + transfer(&mut server, &mut client, None); + }); + } + + println!( + "handshakes\t{:?}\t{:?}\t{:?}\tclient\t{}\t{}\t{:.2}\thandshake/s", + params.version, + params.key_type, + params.ciphersuite.suite(), + if clientauth == ClientAuth::Yes { + "mutual" + } else { + "server-auth" + }, + resume.label(), + (rounds as f64) / client_time + ); + println!( + "handshakes\t{:?}\t{:?}\t{:?}\tserver\t{}\t{}\t{:.2}\thandshake/s", + params.version, + params.key_type, + params.ciphersuite.suite(), + if clientauth == ClientAuth::Yes { + "mutual" + } else { + "server-auth" + }, + resume.label(), + (rounds as f64) / server_time + ); +} + +fn do_handshake_step(client: &mut ClientConnection, server: &mut ServerConnection) -> bool { + if server.is_handshaking() || client.is_handshaking() { + transfer(client, server, None); + transfer(server, client, None); + true + } else { + false + } +} + +fn do_handshake(client: &mut ClientConnection, server: &mut ServerConnection) { + while do_handshake_step(client, server) {} +} + +fn bench_bulk(params: &BenchmarkParam, plaintext_size: u64, max_fragment_size: Option) { + let client_config = Arc::new(make_client_config(params, ClientAuth::No, Resumption::No)); + let server_config = Arc::new(make_server_config( + params, + ClientAuth::No, + Resumption::No, + max_fragment_size, + )); + + let server_name = "localhost".try_into().unwrap(); + let mut client = ClientConnection::new(client_config, server_name).unwrap(); + client.set_buffer_limit(None); + let mut server = ServerConnection::new(Arc::clone(&server_config)).unwrap(); + server.set_buffer_limit(None); + + do_handshake(&mut client, &mut server); + + let mut buf = Vec::new(); + buf.resize(plaintext_size as usize, 0u8); + + let total_data = apply_work_multiplier(if plaintext_size < 8192 { + 64 * 1024 * 1024 + } else { + 1024 * 1024 * 1024 + }); + let rounds = total_data / plaintext_size; + let mut time_send = 0f64; + let mut time_recv = 0f64; + + for _ in 0..rounds { + time_send += time(|| { + server.writer().write_all(&buf).unwrap(); + }); + + time_recv += transfer(&mut server, &mut client, Some(buf.len())); + } + + let mfs_str = format!( + "max_fragment_size:{}", + max_fragment_size + .map(|v| v.to_string()) + .unwrap_or_else(|| "default".to_string()) + ); + let total_mbs = ((plaintext_size * rounds) as f64) / (1024. * 1024.); + println!( + "bulk\t{:?}\t{:?}\t{}\tsend\t{:.2}\tMB/s", + params.version, + params.ciphersuite.suite(), + mfs_str, + total_mbs / time_send + ); + println!( + "bulk\t{:?}\t{:?}\t{}\trecv\t{:.2}\tMB/s", + params.version, + params.ciphersuite.suite(), + mfs_str, + total_mbs / time_recv + ); +} + +fn bench_memory(params: &BenchmarkParam, conn_count: u64) { + let client_config = Arc::new(make_client_config(params, ClientAuth::No, Resumption::No)); + let server_config = Arc::new(make_server_config( + params, + ClientAuth::No, + Resumption::No, + None, + )); + + // The target here is to end up with conn_count post-handshake + // server and client sessions. + let conn_count = (conn_count / 2) as usize; + let mut servers = Vec::with_capacity(conn_count); + let mut clients = Vec::with_capacity(conn_count); + + for _i in 0..conn_count { + servers.push(ServerConnection::new(Arc::clone(&server_config)).unwrap()); + let server_name = "localhost".try_into().unwrap(); + clients.push(ClientConnection::new(Arc::clone(&client_config), server_name).unwrap()); + } + + for _step in 0..5 { + for (client, server) in clients + .iter_mut() + .zip(servers.iter_mut()) + { + do_handshake_step(client, server); + } + } + + for client in clients.iter_mut() { + client + .writer() + .write_all(&[0u8; 1024]) + .unwrap(); + } + + for (client, server) in clients + .iter_mut() + .zip(servers.iter_mut()) + { + transfer(client, server, Some(1024)); + } +} + +fn lookup_matching_benches(name: &str) -> Vec<&BenchmarkParam> { + let r: Vec<&BenchmarkParam> = ALL_BENCHMARKS + .iter() + .filter(|params| { + format!("{:?}", params.ciphersuite.suite()).to_lowercase() == name.to_lowercase() + }) + .collect(); + + if r.is_empty() { + panic!("unknown suite {:?}", name); + } + + r +} + +fn selected_tests(mut args: env::Args) { + let mode = args + .next() + .expect("first argument must be mode"); + + match mode.as_ref() { + "bulk" => match args.next() { + Some(suite) => { + let len = args + .next() + .map(|arg| { + arg.parse::() + .expect("3rd arg must be plaintext size integer") + }) + .unwrap_or(1048576); + let mfs = args.next().map(|arg| { + arg.parse::() + .expect("4th arg must be max_fragment_size integer") + }); + for param in lookup_matching_benches(&suite).iter() { + bench_bulk(param, len, mfs); + } + } + None => { + panic!("bulk needs ciphersuite argument"); + } + }, + + "handshake" | "handshake-resume" | "handshake-ticket" => match args.next() { + Some(suite) => { + let resume = if mode == "handshake" { + Resumption::No + } else if mode == "handshake-resume" { + Resumption::SessionID + } else { + Resumption::Tickets + }; + + for param in lookup_matching_benches(&suite).iter() { + bench_handshake(param, ClientAuth::No, resume); + } + } + None => { + panic!("handshake* needs ciphersuite argument"); + } + }, + + "memory" => match args.next() { + Some(suite) => { + let count = args + .next() + .map(|arg| { + arg.parse::() + .expect("3rd arg must be connection count integer") + }) + .unwrap_or(1000000); + for param in lookup_matching_benches(&suite).iter() { + bench_memory(param, count); + } + } + None => { + panic!("memory needs ciphersuite argument"); + } + }, + + _ => { + panic!("unsupported mode {:?}", mode); + } + } +} + +fn all_tests() { + for test in ALL_BENCHMARKS.iter() { + bench_bulk(test, 1024 * 1024, None); + bench_bulk(test, 1024 * 1024, Some(10000)); + bench_handshake(test, ClientAuth::No, Resumption::No); + bench_handshake(test, ClientAuth::Yes, Resumption::No); + bench_handshake(test, ClientAuth::No, Resumption::SessionID); + bench_handshake(test, ClientAuth::Yes, Resumption::SessionID); + bench_handshake(test, ClientAuth::No, Resumption::Tickets); + bench_handshake(test, ClientAuth::Yes, Resumption::Tickets); + } +} + +fn main() { + let mut args = env::args(); + if args.len() > 1 { + args.next(); + selected_tests(args); + } else { + all_tests(); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/examples/internal/bogo_shim.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/examples/internal/bogo_shim.rs new file mode 100644 index 0000000000000000000000000000000000000000..6e4de620ce542882f371dc6a2517713b5908b668 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/examples/internal/bogo_shim.rs @@ -0,0 +1,1195 @@ +// This is a test shim for the BoringSSL-Go ('bogo') TLS +// test suite. See bogo/ for this in action. +// +// https://boringssl.googlesource.com/boringssl/+/master/ssl/test +// + +use base64; +use env_logger; +use rustls; + +use rustls::internal::msgs::codec::{Codec, Reader}; +use rustls::internal::msgs::persist; +use rustls::quic::{self, ClientQuicExt, QuicExt, ServerQuicExt}; +use rustls::server::ClientHello; +use rustls::{CipherSuite, ProtocolVersion}; +use rustls::{ClientConnection, Connection, ServerConnection}; + +use std::convert::TryInto; +use std::env; +use std::fs; +use std::io; +use std::io::BufReader; +use std::io::{Read, Write}; +use std::net; +use std::process; +use std::sync::Arc; +use std::time::SystemTime; + +static BOGO_NACK: i32 = 89; + +macro_rules! println_err( + ($($arg:tt)*) => { { + writeln!(&mut ::std::io::stderr(), $($arg)*).unwrap(); + } } +); + +#[derive(Debug)] +struct Options { + port: u16, + server: bool, + max_fragment: Option, + resumes: usize, + verify_peer: bool, + require_any_client_cert: bool, + offer_no_client_cas: bool, + tickets: bool, + resume_with_tickets_disabled: bool, + queue_data: bool, + queue_data_on_resume: bool, + only_write_one_byte_after_handshake: bool, + only_write_one_byte_after_handshake_on_resume: bool, + shut_down_after_handshake: bool, + check_close_notify: bool, + host_name: String, + use_sni: bool, + send_sct: bool, + key_file: String, + cert_file: String, + protocols: Vec, + support_tls13: bool, + support_tls12: bool, + min_version: Option, + max_version: Option, + server_ocsp_response: Vec, + server_sct_list: Vec, + use_signing_scheme: u16, + curves: Option>, + export_keying_material: usize, + export_keying_material_label: String, + export_keying_material_context: String, + export_keying_material_context_used: bool, + read_size: usize, + quic_transport_params: Vec, + expect_quic_transport_params: Vec, + enable_early_data: bool, + expect_ticket_supports_early_data: bool, + expect_accept_early_data: bool, + expect_reject_early_data: bool, + expect_version: u16, + resumption_delay: u32, +} + +impl Options { + fn new() -> Self { + Options { + port: 0, + server: false, + max_fragment: None, + resumes: 0, + verify_peer: false, + tickets: true, + resume_with_tickets_disabled: false, + host_name: "example.com".to_string(), + use_sni: false, + send_sct: false, + queue_data: false, + queue_data_on_resume: false, + only_write_one_byte_after_handshake: false, + only_write_one_byte_after_handshake_on_resume: false, + shut_down_after_handshake: false, + check_close_notify: false, + require_any_client_cert: false, + offer_no_client_cas: false, + key_file: "".to_string(), + cert_file: "".to_string(), + protocols: vec![], + support_tls13: true, + support_tls12: true, + min_version: None, + max_version: None, + server_ocsp_response: vec![], + server_sct_list: vec![], + use_signing_scheme: 0, + curves: None, + export_keying_material: 0, + export_keying_material_label: "".to_string(), + export_keying_material_context: "".to_string(), + export_keying_material_context_used: false, + read_size: 512, + quic_transport_params: vec![], + expect_quic_transport_params: vec![], + enable_early_data: false, + expect_ticket_supports_early_data: false, + expect_accept_early_data: false, + expect_reject_early_data: false, + expect_version: 0, + resumption_delay: 0, + } + } + + fn version_allowed(&self, vers: ProtocolVersion) -> bool { + (self.min_version.is_none() || vers.get_u16() >= self.min_version.unwrap().get_u16()) + && (self.max_version.is_none() || vers.get_u16() <= self.max_version.unwrap().get_u16()) + } + + fn tls13_supported(&self) -> bool { + self.support_tls13 && self.version_allowed(ProtocolVersion::TLSv1_3) + } + + fn tls12_supported(&self) -> bool { + self.support_tls12 && self.version_allowed(ProtocolVersion::TLSv1_2) + } + + fn supported_versions(&self) -> Vec<&'static rustls::SupportedProtocolVersion> { + let mut versions = vec![]; + + if self.tls12_supported() { + versions.push(&rustls::version::TLS12); + } + + if self.tls13_supported() { + versions.push(&rustls::version::TLS13); + } + versions + } +} + +fn load_cert(filename: &str) -> Vec { + let certfile = fs::File::open(filename).expect("cannot open certificate file"); + let mut reader = BufReader::new(certfile); + rustls_pemfile::certs(&mut reader) + .unwrap() + .iter() + .map(|v| rustls::Certificate(v.clone())) + .collect() +} + +fn load_key(filename: &str) -> rustls::PrivateKey { + let keyfile = fs::File::open(filename).expect("cannot open private key file"); + let mut reader = BufReader::new(keyfile); + let keys = rustls_pemfile::pkcs8_private_keys(&mut reader).unwrap(); + assert!(keys.len() == 1); + rustls::PrivateKey(keys[0].clone()) +} + +fn split_protocols(protos: &str) -> Vec { + let mut ret = Vec::new(); + + let mut offs = 0; + while offs < protos.len() { + let len = protos.as_bytes()[offs] as usize; + let item = protos[offs + 1..offs + 1 + len].to_string(); + ret.push(item); + offs += 1 + len; + } + + ret +} + +struct DummyClientAuth { + mandatory: bool, +} + +impl rustls::server::ClientCertVerifier for DummyClientAuth { + fn offer_client_auth(&self) -> bool { + true + } + + fn client_auth_mandatory(&self) -> Option { + Some(self.mandatory) + } + + fn client_auth_root_subjects(&self) -> Option { + Some(rustls::DistinguishedNames::new()) + } + + fn verify_client_cert( + &self, + _end_entity: &rustls::Certificate, + _intermediates: &[rustls::Certificate], + _now: SystemTime, + ) -> Result { + Ok(rustls::server::ClientCertVerified::assertion()) + } +} + +struct DummyServerAuth { + send_sct: bool, +} + +impl rustls::client::ServerCertVerifier for DummyServerAuth { + fn verify_server_cert( + &self, + _end_entity: &rustls::Certificate, + _certs: &[rustls::Certificate], + _hostname: &rustls::ServerName, + _scts: &mut dyn Iterator, + _ocsp: &[u8], + _now: SystemTime, + ) -> Result { + Ok(rustls::client::ServerCertVerified::assertion()) + } + + fn request_scts(&self) -> bool { + self.send_sct + } +} + +struct FixedSignatureSchemeSigningKey { + key: Arc, + scheme: rustls::SignatureScheme, +} + +impl rustls::sign::SigningKey for FixedSignatureSchemeSigningKey { + fn choose_scheme( + &self, + offered: &[rustls::SignatureScheme], + ) -> Option> { + if offered.contains(&self.scheme) { + self.key.choose_scheme(&[self.scheme]) + } else { + self.key.choose_scheme(&[]) + } + } + fn algorithm(&self) -> rustls::SignatureAlgorithm { + self.key.algorithm() + } +} + +struct FixedSignatureSchemeServerCertResolver { + resolver: Arc, + scheme: rustls::SignatureScheme, +} + +impl rustls::server::ResolvesServerCert for FixedSignatureSchemeServerCertResolver { + fn resolve(&self, client_hello: ClientHello) -> Option> { + let mut certkey = self.resolver.resolve(client_hello)?; + Arc::make_mut(&mut certkey).key = Arc::new(FixedSignatureSchemeSigningKey { + key: certkey.key.clone(), + scheme: self.scheme, + }); + Some(certkey) + } +} + +struct FixedSignatureSchemeClientCertResolver { + resolver: Arc, + scheme: rustls::SignatureScheme, +} + +impl rustls::client::ResolvesClientCert for FixedSignatureSchemeClientCertResolver { + fn resolve( + &self, + acceptable_issuers: &[&[u8]], + sigschemes: &[rustls::SignatureScheme], + ) -> Option> { + if !sigschemes.contains(&self.scheme) { + quit(":NO_COMMON_SIGNATURE_ALGORITHMS:"); + } + let mut certkey = self + .resolver + .resolve(acceptable_issuers, sigschemes)?; + Arc::make_mut(&mut certkey).key = Arc::new(FixedSignatureSchemeSigningKey { + key: certkey.key.clone(), + scheme: self.scheme, + }); + Some(certkey) + } + + fn has_certs(&self) -> bool { + self.resolver.has_certs() + } +} + +fn lookup_scheme(scheme: u16) -> rustls::SignatureScheme { + match scheme { + 0x0401 => rustls::SignatureScheme::RSA_PKCS1_SHA256, + 0x0501 => rustls::SignatureScheme::RSA_PKCS1_SHA384, + 0x0601 => rustls::SignatureScheme::RSA_PKCS1_SHA512, + 0x0403 => rustls::SignatureScheme::ECDSA_NISTP256_SHA256, + 0x0503 => rustls::SignatureScheme::ECDSA_NISTP384_SHA384, + 0x0804 => rustls::SignatureScheme::RSA_PSS_SHA256, + 0x0805 => rustls::SignatureScheme::RSA_PSS_SHA384, + 0x0806 => rustls::SignatureScheme::RSA_PSS_SHA512, + 0x0807 => rustls::SignatureScheme::ED25519, + // TODO: add support for Ed448 + // 0x0808 => rustls::SignatureScheme::ED448, + _ => { + println_err!("Unsupported signature scheme {:04x}", scheme); + process::exit(BOGO_NACK); + } + } +} + +fn lookup_kx_group(group: u16) -> &'static rustls::SupportedKxGroup { + match group { + 0x001d => &rustls::kx_group::X25519, + 0x0017 => &rustls::kx_group::SECP256R1, + 0x0018 => &rustls::kx_group::SECP384R1, + _ => { + println_err!("Unsupported kx group {:04x}", group); + process::exit(BOGO_NACK); + } + } +} + +struct ServerCacheWithResumptionDelay { + delay: u32, + storage: Arc, +} + +impl ServerCacheWithResumptionDelay { + fn new(delay: u32) -> Arc { + Arc::new(Self { + delay, + storage: rustls::server::ServerSessionMemoryCache::new(32), + }) + } +} + +fn align_time() { + /* we don't have an injectable clock source in rustls' public api, and + * resumption timing is in seconds resolution, so tests that use + * resumption_delay tend to be flickery if the seconds time ticks + * during this. + * + * this function delays until a fresh second ticks, which alleviates + * this. gross! + */ + use std::{thread, time}; + + fn sample() -> u64 { + time::SystemTime::now() + .duration_since(time::SystemTime::UNIX_EPOCH) + .unwrap() + .as_secs() + } + + let start_secs = sample(); + while start_secs == sample() { + thread::sleep(time::Duration::from_millis(20)); + } +} + +impl rustls::server::StoresServerSessions for ServerCacheWithResumptionDelay { + fn put(&self, key: Vec, value: Vec) -> bool { + let mut ssv = persist::ServerSessionValue::read_bytes(&value).unwrap(); + ssv.creation_time_sec -= self.delay as u64; + + self.storage + .put(key, ssv.get_encoding()) + } + + fn get(&self, key: &[u8]) -> Option> { + self.storage.get(key) + } + + fn take(&self, key: &[u8]) -> Option> { + self.storage.take(key) + } + + fn can_cache(&self) -> bool { + self.storage.can_cache() + } +} + +fn make_server_cfg(opts: &Options) -> Arc { + let client_auth = + if opts.verify_peer || opts.offer_no_client_cas || opts.require_any_client_cert { + Arc::new(DummyClientAuth { + mandatory: opts.require_any_client_cert, + }) + } else { + rustls::server::NoClientAuth::new() + }; + + let cert = load_cert(&opts.cert_file); + let key = load_key(&opts.key_file); + + let kx_groups = if let Some(curves) = &opts.curves { + curves + .iter() + .map(|curveid| lookup_kx_group(*curveid)) + .collect() + } else { + rustls::ALL_KX_GROUPS.to_vec() + }; + + let mut cfg = rustls::ServerConfig::builder() + .with_safe_default_cipher_suites() + .with_kx_groups(&kx_groups) + .with_protocol_versions(&opts.supported_versions()) + .unwrap() + .with_client_cert_verifier(client_auth) + .with_single_cert_with_ocsp_and_sct( + cert.clone(), + key, + opts.server_ocsp_response.clone(), + opts.server_sct_list.clone(), + ) + .unwrap(); + + cfg.session_storage = ServerCacheWithResumptionDelay::new(opts.resumption_delay); + cfg.max_fragment_size = opts.max_fragment; + + if opts.use_signing_scheme > 0 { + let scheme = lookup_scheme(opts.use_signing_scheme); + cfg.cert_resolver = Arc::new(FixedSignatureSchemeServerCertResolver { + resolver: cfg.cert_resolver.clone(), + scheme, + }); + } + + if opts.tickets { + cfg.ticketer = rustls::Ticketer::new().unwrap(); + } else if opts.resumes == 0 { + cfg.session_storage = Arc::new(rustls::server::NoServerSessionStorage {}); + } + + if !opts.protocols.is_empty() { + cfg.alpn_protocols = opts + .protocols + .iter() + .map(|proto| proto.as_bytes().to_vec()) + .collect::>(); + } + + if opts.enable_early_data { + // see kMaxEarlyDataAccepted in boringssl, which bogo validates + cfg.max_early_data_size = 14336; + cfg.send_half_rtt_data = true; + } + + Arc::new(cfg) +} + +struct ClientCacheWithoutKxHints { + delay: u32, + storage: Arc, +} + +impl ClientCacheWithoutKxHints { + fn new(delay: u32) -> Arc { + Arc::new(ClientCacheWithoutKxHints { + delay, + storage: rustls::client::ClientSessionMemoryCache::new(32), + }) + } +} + +impl rustls::client::StoresClientSessions for ClientCacheWithoutKxHints { + fn put(&self, key: Vec, value: Vec) -> bool { + if key.len() > 2 && key[0] == b'k' && key[1] == b'x' { + return true; + } + + let mut reader = Reader::init(&value[2..]); + let csv = CipherSuite::read_bytes(&value[..2]) + .and_then(|suite| { + persist::ClientSessionValue::read(&mut reader, suite, &rustls::ALL_CIPHER_SUITES) + }) + .unwrap(); + + let value = match csv { + persist::ClientSessionValue::Tls13(mut tls13) => { + tls13.common.rewind_epoch(self.delay); + tls13.get_encoding() + } + persist::ClientSessionValue::Tls12(mut tls12) => { + tls12.common.rewind_epoch(self.delay); + tls12.get_encoding() + } + }; + + self.storage.put(key, value) + } + + fn get(&self, key: &[u8]) -> Option> { + self.storage.get(key) + } +} + +fn make_client_cfg(opts: &Options) -> Arc { + let kx_groups = if let Some(curves) = &opts.curves { + curves + .iter() + .map(|curveid| lookup_kx_group(*curveid)) + .collect() + } else { + rustls::ALL_KX_GROUPS.to_vec() + }; + + let cfg = rustls::ClientConfig::builder() + .with_safe_default_cipher_suites() + .with_kx_groups(&kx_groups) + .with_protocol_versions(&opts.supported_versions()) + .expect("inconsistent settings") + .with_custom_certificate_verifier(Arc::new(DummyServerAuth { + send_sct: opts.send_sct, + })); + + let mut cfg = if !opts.cert_file.is_empty() && !opts.key_file.is_empty() { + let cert = load_cert(&opts.cert_file); + let key = load_key(&opts.key_file); + cfg.with_single_cert(cert, key).unwrap() + } else { + cfg.with_no_client_auth() + }; + + if !opts.cert_file.is_empty() && opts.use_signing_scheme > 0 { + let scheme = lookup_scheme(opts.use_signing_scheme); + cfg.client_auth_cert_resolver = Arc::new(FixedSignatureSchemeClientCertResolver { + resolver: cfg.client_auth_cert_resolver.clone(), + scheme, + }); + } + + let persist = ClientCacheWithoutKxHints::new(opts.resumption_delay); + cfg.session_storage = persist; + cfg.enable_sni = opts.use_sni; + cfg.max_fragment_size = opts.max_fragment; + + if !opts.protocols.is_empty() { + cfg.alpn_protocols = opts + .protocols + .iter() + .map(|proto| proto.as_bytes().to_vec()) + .collect(); + } + + if opts.enable_early_data { + cfg.enable_early_data = true; + } + + Arc::new(cfg) +} + +fn quit(why: &str) -> ! { + println_err!("{}", why); + process::exit(0) +} + +fn quit_err(why: &str) -> ! { + println_err!("{}", why); + process::exit(1) +} + +fn handle_err(err: rustls::Error) -> ! { + use rustls::Error; + use rustls::{AlertDescription, ContentType}; + use std::{thread, time}; + + println!("TLS error: {:?}", err); + thread::sleep(time::Duration::from_millis(100)); + + match err { + Error::InappropriateHandshakeMessage { .. } | Error::InappropriateMessage { .. } => { + quit(":UNEXPECTED_MESSAGE:") + } + Error::AlertReceived(AlertDescription::RecordOverflow) => { + quit(":TLSV1_ALERT_RECORD_OVERFLOW:") + } + Error::AlertReceived(AlertDescription::HandshakeFailure) => quit(":HANDSHAKE_FAILURE:"), + Error::AlertReceived(AlertDescription::ProtocolVersion) => quit(":WRONG_VERSION:"), + Error::AlertReceived(AlertDescription::InternalError) => { + quit(":PEER_ALERT_INTERNAL_ERROR:") + } + Error::CorruptMessagePayload(ContentType::Alert) => quit(":BAD_ALERT:"), + Error::CorruptMessagePayload(ContentType::ChangeCipherSpec) => { + quit(":BAD_CHANGE_CIPHER_SPEC:") + } + Error::CorruptMessagePayload(ContentType::Handshake) => quit(":BAD_HANDSHAKE_MSG:"), + Error::CorruptMessagePayload(ContentType::Unknown(42)) => quit(":GARBAGE:"), + Error::CorruptMessage => quit(":GARBAGE:"), + Error::DecryptError => quit(":DECRYPTION_FAILED_OR_BAD_RECORD_MAC:"), + Error::PeerIncompatibleError(_) => quit(":INCOMPATIBLE:"), + Error::PeerMisbehavedError(s) if s == "too much early_data received" => { + quit(":TOO_MUCH_READ_EARLY_DATA:") + } + Error::PeerMisbehavedError(_) => quit(":PEER_MISBEHAVIOUR:"), + Error::NoCertificatesPresented => quit(":NO_CERTS:"), + Error::AlertReceived(AlertDescription::UnexpectedMessage) => quit(":BAD_ALERT:"), + Error::AlertReceived(AlertDescription::DecompressionFailure) => { + quit_err(":SSLV3_ALERT_DECOMPRESSION_FAILURE:") + } + Error::InvalidCertificateEncoding => quit(":CANNOT_PARSE_LEAF_CERT:"), + Error::InvalidCertificateSignature => quit(":BAD_SIGNATURE:"), + Error::InvalidCertificateSignatureType => quit(":WRONG_SIGNATURE_TYPE:"), + Error::PeerSentOversizedRecord => quit(":DATA_LENGTH_TOO_LONG:"), + _ => { + println_err!("unhandled error: {:?}", err); + quit(":FIXME:") + } + } +} + +fn flush(sess: &mut Connection, conn: &mut net::TcpStream) { + while sess.wants_write() { + match sess.write_tls(conn) { + Err(err) => { + println!("IO error: {:?}", err); + process::exit(0); + } + Ok(_) => {} + } + } + conn.flush().unwrap(); +} + +fn client(conn: &mut Connection) -> &mut ClientConnection { + conn.try_into().unwrap() +} + +fn server(conn: &mut Connection) -> &mut ServerConnection { + match conn { + Connection::Server(s) => s, + _ => panic!("Connection is not a ServerConnection"), + } +} + +fn exec(opts: &Options, mut sess: Connection, count: usize) { + let mut sent_message = false; + + if opts.queue_data || (opts.queue_data_on_resume && count > 0) { + if count > 0 && opts.enable_early_data { + let len = client(&mut sess) + .early_data() + .expect("0rtt not available") + .write(b"hello") + .expect("0rtt write failed"); + sess.writer() + .write_all(&b"hello"[len..]) + .unwrap(); + sent_message = true; + } else if !opts.only_write_one_byte_after_handshake { + let _ = sess.writer().write_all(b"hello"); + sent_message = true; + } + } + + let addrs = [ + net::SocketAddr::from((net::Ipv6Addr::LOCALHOST, opts.port)), + net::SocketAddr::from((net::Ipv4Addr::LOCALHOST, opts.port)), + ]; + let mut conn = net::TcpStream::connect(&addrs[..]).expect("cannot connect"); + let mut sent_shutdown = false; + let mut sent_exporter = false; + let mut quench_writes = false; + + loop { + if !quench_writes { + flush(&mut sess, &mut conn); + } + + if sess.wants_read() { + match sess.read_tls(&mut conn) { + Ok(_) => {} + Err(ref err) if err.kind() == io::ErrorKind::ConnectionReset => {} + Err(err) => panic!("invalid read: {}", err), + }; + + if let Err(err) = sess.process_new_packets() { + flush(&mut sess, &mut conn); /* send any alerts before exiting */ + handle_err(err); + } + } + + if opts.server && opts.enable_early_data { + if let Some(ref mut ed) = server(&mut sess).early_data() { + let mut data = Vec::new(); + let data_len = ed + .read_to_end(&mut data) + .expect("cannot read early_data"); + + for b in data.iter_mut() { + *b ^= 0xff; + } + + sess.writer() + .write_all(&data[..data_len]) + .expect("cannot echo early_data in 1rtt data"); + } + } + + if !sess.is_handshaking() && opts.export_keying_material > 0 && !sent_exporter { + let mut export = Vec::new(); + export.resize(opts.export_keying_material, 0u8); + sess.export_keying_material( + &mut export, + opts.export_keying_material_label + .as_bytes(), + if opts.export_keying_material_context_used { + Some( + opts.export_keying_material_context + .as_bytes(), + ) + } else { + None + }, + ) + .unwrap(); + sess.writer() + .write_all(&export) + .unwrap(); + sent_exporter = true; + } + + if !sess.is_handshaking() && opts.only_write_one_byte_after_handshake && !sent_message { + println!("writing message and then only one byte of its tls frame"); + flush(&mut sess, &mut conn); + + sess.writer() + .write_all(b"hello") + .unwrap(); + sent_message = true; + + let mut one_byte = [0u8]; + let mut cursor = io::Cursor::new(&mut one_byte[..]); + sess.write_tls(&mut cursor).unwrap(); + conn.write(&one_byte).expect("IO error"); + + quench_writes = true; + } + + if opts.enable_early_data && !opts.server && !sess.is_handshaking() && count > 0 { + if opts.expect_accept_early_data && !client(&mut sess).is_early_data_accepted() { + quit_err("Early data was not accepted, but we expect the opposite"); + } else if opts.expect_reject_early_data && client(&mut sess).is_early_data_accepted() { + quit_err("Early data was accepted, but we expect the opposite"); + } + if opts.expect_version == 0x0304 { + match sess.protocol_version() { + Some(ProtocolVersion::TLSv1_3) | Some(ProtocolVersion::Unknown(0x7f17)) => {} + _ => quit_err("wrong protocol version"), + } + } + } + + if !sess.is_handshaking() + && !opts + .expect_quic_transport_params + .is_empty() + { + let their_transport_params = sess + .quic_transport_parameters() + .expect("missing peer quic transport params"); + assert_eq!(opts.expect_quic_transport_params, their_transport_params); + } + + let mut buf = [0u8; 1024]; + let len = match sess + .reader() + .read(&mut buf[..opts.read_size]) + { + Ok(0) => { + if opts.check_close_notify { + println!("close notify ok"); + } + println!("EOF (tls)"); + return; + } + Ok(len) => len, + Err(err) if err.kind() == io::ErrorKind::WouldBlock => 0, + Err(err) if err.kind() == io::ErrorKind::UnexpectedEof => { + if opts.check_close_notify { + quit_err(":CLOSE_WITHOUT_CLOSE_NOTIFY:"); + } + println!("EOF (tcp)"); + return; + } + Err(err) => panic!("unhandled read error {:?}", err), + }; + + if opts.shut_down_after_handshake && !sent_shutdown && !sess.is_handshaking() { + sess.send_close_notify(); + sent_shutdown = true; + } + + if quench_writes && len > 0 { + println!("unquenching writes after {:?}", len); + quench_writes = false; + } + + for b in buf.iter_mut() { + *b ^= 0xff; + } + + sess.writer() + .write_all(&buf[..len]) + .unwrap(); + } +} + +fn main() { + let mut args: Vec<_> = env::args().collect(); + env_logger::init(); + + args.remove(0); + + if !args.is_empty() && args[0] == "-is-handshaker-supported" { + println!("No"); + process::exit(0); + } + println!("options: {:?}", args); + + let mut opts = Options::new(); + + while !args.is_empty() { + let arg = args.remove(0); + match arg.as_ref() { + "-port" => { + opts.port = args.remove(0).parse::().unwrap(); + } + "-server" => { + opts.server = true; + } + "-key-file" => { + opts.key_file = args.remove(0); + } + "-cert-file" => { + opts.cert_file = args.remove(0); + } + "-resume-count" => { + opts.resumes = args.remove(0).parse::().unwrap(); + } + "-no-tls13" => { + opts.support_tls13 = false; + } + "-no-tls12" => { + opts.support_tls12 = false; + } + "-min-version" => { + let min = args.remove(0).parse::().unwrap(); + opts.min_version = Some(ProtocolVersion::Unknown(min)); + } + "-max-version" => { + let max = args.remove(0).parse::().unwrap(); + opts.max_version = Some(ProtocolVersion::Unknown(max)); + } + "-max-send-fragment" => { + let max_fragment = args.remove(0).parse::().unwrap(); + opts.max_fragment = Some(max_fragment + 5); // ours includes header + } + "-read-size" => { + let rdsz = args.remove(0).parse::().unwrap(); + opts.read_size = rdsz; + } + "-tls13-variant" => { + let variant = args.remove(0).parse::().unwrap(); + if variant != 1 { + println!("NYI TLS1.3 variant selection: {:?} {:?}", arg, variant); + process::exit(BOGO_NACK); + } + } + "-no-ticket" => { + opts.tickets = false; + } + "-on-resume-no-ticket" => { + opts.resume_with_tickets_disabled = true; + } + "-signing-prefs" => { + let alg = args.remove(0).parse::().unwrap(); + opts.use_signing_scheme = alg; + } + "-max-cert-list" | + "-expect-curve-id" | + "-expect-resume-curve-id" | + "-expect-peer-signature-algorithm" | + "-expect-peer-verify-pref" | + "-expect-advertised-alpn" | + "-expect-alpn" | + "-on-initial-expect-alpn" | + "-on-resume-expect-alpn" | + "-on-retry-expect-alpn" | + "-expect-server-name" | + "-expect-ocsp-response" | + "-expect-signed-cert-timestamps" | + "-expect-certificate-types" | + "-expect-client-ca-list" | + "-on-retry-expect-early-data-reason" | + "-on-resume-expect-early-data-reason" | + "-on-initial-expect-early-data-reason" | + "-on-initial-expect-cipher" | + "-on-resume-expect-cipher" | + "-on-retry-expect-cipher" | + "-expect-ticket-age-skew" | + "-handshaker-path" | + "-application-settings" | + "-expect-msg-callback" => { + println!("not checking {} {}; NYI", arg, args.remove(0)); + } + + "-expect-secure-renegotiation" | + "-expect-no-session-id" | + "-enable-ed25519" | + "-expect-hrr" | + "-expect-no-hrr" | + "-on-resume-expect-no-offer-early-data" | + "-key-update" | //< we could implement an API for this + "-expect-tls13-downgrade" | + "-expect-session-id" => { + println!("not checking {}; NYI", arg); + } + + "-export-keying-material" => { + opts.export_keying_material = args.remove(0).parse::().unwrap(); + } + "-export-label" => { + opts.export_keying_material_label = args.remove(0); + } + "-export-context" => { + opts.export_keying_material_context = args.remove(0); + } + "-use-export-context" => { + opts.export_keying_material_context_used = true; + } + "-quic-transport-params" => { + opts.quic_transport_params = base64::decode(args.remove(0).as_bytes()) + .expect("invalid base64"); + } + "-expect-quic-transport-params" => { + opts.expect_quic_transport_params = base64::decode(args.remove(0).as_bytes()) + .expect("invalid base64"); + } + + "-ocsp-response" => { + opts.server_ocsp_response = base64::decode(args.remove(0).as_bytes()) + .expect("invalid base64"); + } + "-signed-cert-timestamps" => { + opts.server_sct_list = base64::decode(args.remove(0).as_bytes()) + .expect("invalid base64"); + + if opts.server_sct_list.len() == 2 && + opts.server_sct_list[0] == 0x00 && + opts.server_sct_list[1] == 0x00 { + quit(":INVALID_SCT_LIST:"); + } + } + "-select-alpn" => { + opts.protocols.push(args.remove(0)); + } + "-require-any-client-certificate" => { + opts.require_any_client_cert = true; + } + "-verify-peer" => { + opts.verify_peer = true; + } + "-shim-writes-first" => { + opts.queue_data = true; + } + "-read-with-unfinished-write" => { + opts.queue_data = true; + opts.only_write_one_byte_after_handshake = true; + } + "-shim-shuts-down" => { + opts.shut_down_after_handshake = true; + } + "-check-close-notify" => { + opts.check_close_notify = true; + } + "-host-name" => { + opts.host_name = args.remove(0); + opts.use_sni = true; + } + "-advertise-alpn" => { + opts.protocols = split_protocols(&args.remove(0)); + } + "-use-null-client-ca-list" => { + opts.offer_no_client_cas = true; + } + "-enable-signed-cert-timestamps" => { + opts.send_sct = true; + } + "-enable-early-data" => { + opts.tickets = false; + opts.enable_early_data = true; + } + "-on-resume-shim-writes-first" => { + opts.queue_data_on_resume = true; + } + "-on-resume-read-with-unfinished-write" => { + opts.queue_data_on_resume = true; + opts.only_write_one_byte_after_handshake_on_resume = true; + } + "-expect-ticket-supports-early-data" => { + opts.expect_ticket_supports_early_data = true; + } + "-expect-accept-early-data" | + "-on-resume-expect-accept-early-data" => { + opts.expect_accept_early_data = true; + } + "-expect-early-data-reason" | + "-on-resume-expect-reject-early-data-reason" => { + let reason = args.remove(0); + match reason.as_str() { + "disabled" | "protocol_version" => { + opts.expect_reject_early_data = true; + } + _ => { + println!("NYI early data reason: {}", reason); + process::exit(1); + } + } + } + "-expect-reject-early-data" | + "-on-resume-expect-reject-early-data" => { + opts.expect_reject_early_data = true; + } + "-expect-version" => { + opts.expect_version = args.remove(0).parse::().unwrap(); + } + "-curves" => { + let curve = args.remove(0).parse::().unwrap(); + if let Some(mut curves) = opts.curves.take() { + curves.push(curve); + } else { + opts.curves = Some(vec![ curve ]); + } + } + "-resumption-delay" => { + opts.resumption_delay = args.remove(0).parse::().unwrap(); + align_time(); + } + + // defaults: + "-enable-all-curves" | + "-renegotiate-ignore" | + "-no-tls11" | + "-no-tls1" | + "-no-ssl3" | + "-handoff" | + "-decline-alpn" | + "-expect-no-session" | + "-expect-session-miss" | + "-expect-extended-master-secret" | + "-expect-ticket-renewal" | + "-enable-ocsp-stapling" | + // internal openssl details: + "-async" | + "-implicit-handshake" | + "-use-old-client-cert-callback" | + "-use-early-callback" => {} + + // Not implemented things + "-dtls" | + "-cipher" | + "-psk" | + "-renegotiate-freely" | + "-false-start" | + "-fallback-scsv" | + "-fail-early-callback" | + "-fail-cert-callback" | + "-install-ddos-callback" | + "-advertise-npn" | + "-verify-fail" | + "-expect-channel-id" | + "-send-channel-id" | + "-select-next-proto" | + "-expect-verify-result" | + "-send-alert" | + "-digest-prefs" | + "-use-exporter-between-reads" | + "-ticket-key" | + "-tls-unique" | + "-enable-server-custom-extension" | + "-enable-client-custom-extension" | + "-expect-dhe-group-size" | + "-use-ticket-callback" | + "-enable-grease" | + "-enable-channel-id" | + "-expect-early-data-info" | + "-expect-cipher-aes" | + "-retain-only-sha256-client-cert-initial" | + "-use-client-ca-list" | + "-expect-draft-downgrade" | + "-allow-unknown-alpn-protos" | + "-on-initial-tls13-variant" | + "-on-initial-expect-curve-id" | + "-on-resume-export-early-keying-material" | + "-on-resume-enable-early-data" | + "-export-early-keying-material" | + "-handshake-twice" | + "-on-resume-verify-fail" | + "-reverify-on-resume" | + "-verify-prefs" | + "-no-op-extra-handshake" | + "-expect-peer-cert-file" | + "-no-rsa-pss-rsae-certs" | + "-ignore-tls13-downgrade" | + "-on-initial-expect-peer-cert-file" => { + println!("NYI option {:?}", arg); + process::exit(BOGO_NACK); + } + + _ => { + println!("unhandled option {:?}", arg); + process::exit(1); + } + } + } + + println!("opts {:?}", opts); + + let mut server_cfg = if opts.server { + Some(make_server_cfg(&opts)) + } else { + None + }; + let client_cfg = if !opts.server { + Some(make_client_cfg(&opts)) + } else { + None + }; + + fn make_session( + opts: &Options, + scfg: &Option>, + ccfg: &Option>, + ) -> Connection { + if opts.server { + let scfg = Arc::clone(scfg.as_ref().unwrap()); + let s = if opts.quic_transport_params.is_empty() { + rustls::ServerConnection::new(scfg).unwrap() + } else { + rustls::ServerConnection::new_quic( + scfg, + quic::Version::V1, + opts.quic_transport_params.clone(), + ) + .unwrap() + }; + s.into() + } else { + let server_name = opts + .host_name + .as_str() + .try_into() + .unwrap(); + let ccfg = Arc::clone(ccfg.as_ref().unwrap()); + let c = if opts.quic_transport_params.is_empty() { + rustls::ClientConnection::new(ccfg, server_name) + } else { + rustls::ClientConnection::new_quic( + ccfg, + quic::Version::V1, + server_name, + opts.quic_transport_params.clone(), + ) + } + .unwrap(); + c.into() + } + } + + for i in 0..opts.resumes + 1 { + let sess = make_session(&opts, &server_cfg, &client_cfg); + exec(&opts, sess, i); + + if opts.resume_with_tickets_disabled { + opts.tickets = false; + server_cfg = Some(make_server_cfg(&opts)); + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/examples/internal/trytls_shim.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/examples/internal/trytls_shim.rs new file mode 100644 index 0000000000000000000000000000000000000000..f47bbd027bac976c21aae60baf18e06b064114e0 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/examples/internal/trytls_shim.rs @@ -0,0 +1,120 @@ +// A Rustls stub for TryTLS +// +// Author: Joachim Viide +// See: https://github.com/HowNetWorks/trytls-rustls-stub +// + +use rustls::{ClientConfig, ClientConnection, Error, OwnedTrustAnchor, RootCertStore}; +use std::convert::TryInto; +use std::env; +use std::error::Error as StdError; +use std::fs::File; +use std::io::{BufReader, Read, Write}; +use std::net::TcpStream; +use std::process; +use std::sync::Arc; + +enum Verdict { + Accept, + Reject(Error), +} + +fn parse_args(args: &[String]) -> Result<(String, u16, ClientConfig), Box> { + let mut root_store = RootCertStore::empty(); + match args.len() { + 3 => { + root_store.add_server_trust_anchors( + webpki_roots::TLS_SERVER_ROOTS + .0 + .iter() + .map(|ta| { + OwnedTrustAnchor::from_subject_spki_name_constraints( + ta.subject, + ta.spki, + ta.name_constraints, + ) + }), + ); + } + 4 => { + let f = File::open(&args[3])?; + root_store + .add_parsable_certificates(&rustls_pemfile::certs(&mut BufReader::new(f)).unwrap()); + } + _ => { + return Err(From::from("Incorrect number of arguments")); + } + }; + let config = rustls::ClientConfig::builder() + .with_safe_defaults() + .with_root_certificates(root_store) + .with_no_client_auth(); + + let port = args[2].parse()?; + Ok((args[1].clone(), port, config)) +} + +fn communicate( + host: String, + port: u16, + config: ClientConfig, +) -> Result> { + let server_name = host.as_str().try_into().unwrap(); + let rc_config = Arc::new(config); + let mut client = ClientConnection::new(rc_config, server_name).unwrap(); + let mut stream = TcpStream::connect((&*host, port))?; + + client + .writer() + .write_all(b"GET / HTTP/1.0\r\nConnection: close\r\nContent-Length: 0\r\n\r\n")?; + loop { + while client.wants_write() { + client.write_tls(&mut stream)?; + } + + if client.wants_read() { + if client.read_tls(&mut stream)? == 0 { + return Err(From::from("Connection closed")); + } + + if let Err(err) = client.process_new_packets() { + return match err { + Error::InvalidCertificateData(_) + | Error::InvalidCertificateSignature + | Error::InvalidCertificateSignatureType + | Error::InvalidCertificateEncoding + | Error::AlertReceived(_) => Ok(Verdict::Reject(err)), + _ => Err(From::from(format!("{:?}", err))), + }; + } + + if client.reader().read(&mut [0])? > 0 { + return Ok(Verdict::Accept); + } + } + } +} + +fn main() { + let args: Vec = env::args().collect(); + let (host, port, config) = parse_args(&args).unwrap_or_else(|err| { + println!("Argument error: {}", err); + process::exit(2); + }); + + match communicate(host, port, config) { + Ok(Verdict::Accept) => { + println!("ACCEPT"); + process::exit(0); + } + Ok(Verdict::Reject(reason)) => { + println!("{:?}", reason); + println!("REJECT"); + process::exit(0); + } + Err(err) => { + println!("{}", err); + process::exit(1); + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/server/handy.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/server/handy.rs new file mode 100644 index 0000000000000000000000000000000000000000..296d20c666cc99cd160ea607e343960e1f76b003 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/server/handy.rs @@ -0,0 +1,278 @@ +use crate::error::Error; +use crate::key; +use crate::limited_cache; +use crate::server; +use crate::server::ClientHello; +use crate::sign; + +use std::collections; +use std::sync::{Arc, Mutex}; + +/// Something which never stores sessions. +pub struct NoServerSessionStorage {} + +impl server::StoresServerSessions for NoServerSessionStorage { + fn put(&self, _id: Vec, _sec: Vec) -> bool { + false + } + fn get(&self, _id: &[u8]) -> Option> { + None + } + fn take(&self, _id: &[u8]) -> Option> { + None + } + fn can_cache(&self) -> bool { + false + } +} + +/// An implementer of `StoresServerSessions` that stores everything +/// in memory. If enforces a limit on the number of stored sessions +/// to bound memory usage. +pub struct ServerSessionMemoryCache { + cache: Mutex, Vec>>, +} + +impl ServerSessionMemoryCache { + /// Make a new ServerSessionMemoryCache. `size` is the maximum + /// number of stored sessions, and may be rounded-up for + /// efficiency. + pub fn new(size: usize) -> Arc { + Arc::new(Self { + cache: Mutex::new(limited_cache::LimitedCache::new(size)), + }) + } +} + +impl server::StoresServerSessions for ServerSessionMemoryCache { + fn put(&self, key: Vec, value: Vec) -> bool { + self.cache + .lock() + .unwrap() + .insert(key, value); + true + } + + fn get(&self, key: &[u8]) -> Option> { + self.cache + .lock() + .unwrap() + .get(key) + .cloned() + } + + fn take(&self, key: &[u8]) -> Option> { + self.cache.lock().unwrap().remove(key) + } + + fn can_cache(&self) -> bool { + true + } +} + +/// Something which never produces tickets. +pub(super) struct NeverProducesTickets {} + +impl server::ProducesTickets for NeverProducesTickets { + fn enabled(&self) -> bool { + false + } + fn lifetime(&self) -> u32 { + 0 + } + fn encrypt(&self, _bytes: &[u8]) -> Option> { + None + } + fn decrypt(&self, _bytes: &[u8]) -> Option> { + None + } +} + +/// Something which always resolves to the same cert chain. +pub(super) struct AlwaysResolvesChain(Arc); + +impl AlwaysResolvesChain { + /// Creates an `AlwaysResolvesChain`, auto-detecting the underlying private + /// key type and encoding. + pub(super) fn new( + chain: Vec, + priv_key: &key::PrivateKey, + ) -> Result { + let key = sign::any_supported_type(priv_key) + .map_err(|_| Error::General("invalid private key".into()))?; + Ok(Self(Arc::new(sign::CertifiedKey::new(chain, key)))) + } + + /// Creates an `AlwaysResolvesChain`, auto-detecting the underlying private + /// key type and encoding. + /// + /// If non-empty, the given OCSP response and SCTs are attached. + pub(super) fn new_with_extras( + chain: Vec, + priv_key: &key::PrivateKey, + ocsp: Vec, + scts: Vec, + ) -> Result { + let mut r = Self::new(chain, priv_key)?; + + { + let cert = Arc::make_mut(&mut r.0); + if !ocsp.is_empty() { + cert.ocsp = Some(ocsp); + } + if !scts.is_empty() { + cert.sct_list = Some(scts); + } + } + + Ok(r) + } +} + +impl server::ResolvesServerCert for AlwaysResolvesChain { + fn resolve(&self, _client_hello: ClientHello) -> Option> { + Some(Arc::clone(&self.0)) + } +} + +/// Something that resolves do different cert chains/keys based +/// on client-supplied server name (via SNI). +pub struct ResolvesServerCertUsingSni { + by_name: collections::HashMap>, +} + +impl ResolvesServerCertUsingSni { + /// Create a new and empty (i.e., knows no certificates) resolver. + pub fn new() -> Self { + Self { + by_name: collections::HashMap::new(), + } + } + + /// Add a new `sign::CertifiedKey` to be used for the given SNI `name`. + /// + /// This function fails if `name` is not a valid DNS name, or if + /// it's not valid for the supplied certificate, or if the certificate + /// chain is syntactically faulty. + pub fn add(&mut self, name: &str, ck: sign::CertifiedKey) -> Result<(), Error> { + let checked_name = webpki::DnsNameRef::try_from_ascii_str(name) + .map_err(|_| Error::General("Bad DNS name".into()))? + .to_owned(); + + ck.cross_check_end_entity_cert(Some(checked_name.as_ref()))?; + let as_str: &str = checked_name.as_ref().into(); + self.by_name + .insert(as_str.to_string(), Arc::new(ck)); + Ok(()) + } +} + +impl server::ResolvesServerCert for ResolvesServerCertUsingSni { + fn resolve(&self, client_hello: ClientHello) -> Option> { + if let Some(name) = client_hello.server_name() { + self.by_name.get(name).map(Arc::clone) + } else { + // This kind of resolver requires SNI + None + } + } +} + +#[cfg(test)] +mod test { + use super::*; + use crate::server::ProducesTickets; + use crate::server::ResolvesServerCert; + use crate::server::StoresServerSessions; + + #[test] + fn test_noserversessionstorage_drops_put() { + let c = NoServerSessionStorage {}; + assert!(!c.put(vec![0x01], vec![0x02])); + } + + #[test] + fn test_noserversessionstorage_denies_gets() { + let c = NoServerSessionStorage {}; + c.put(vec![0x01], vec![0x02]); + assert_eq!(c.get(&[]), None); + assert_eq!(c.get(&[0x01]), None); + assert_eq!(c.get(&[0x02]), None); + } + + #[test] + fn test_noserversessionstorage_denies_takes() { + let c = NoServerSessionStorage {}; + assert_eq!(c.take(&[]), None); + assert_eq!(c.take(&[0x01]), None); + assert_eq!(c.take(&[0x02]), None); + } + + #[test] + fn test_serversessionmemorycache_accepts_put() { + let c = ServerSessionMemoryCache::new(4); + assert!(c.put(vec![0x01], vec![0x02])); + } + + #[test] + fn test_serversessionmemorycache_persists_put() { + let c = ServerSessionMemoryCache::new(4); + assert!(c.put(vec![0x01], vec![0x02])); + assert_eq!(c.get(&[0x01]), Some(vec![0x02])); + assert_eq!(c.get(&[0x01]), Some(vec![0x02])); + } + + #[test] + fn test_serversessionmemorycache_overwrites_put() { + let c = ServerSessionMemoryCache::new(4); + assert!(c.put(vec![0x01], vec![0x02])); + assert!(c.put(vec![0x01], vec![0x04])); + assert_eq!(c.get(&[0x01]), Some(vec![0x04])); + } + + #[test] + fn test_serversessionmemorycache_drops_to_maintain_size_invariant() { + let c = ServerSessionMemoryCache::new(2); + assert!(c.put(vec![0x01], vec![0x02])); + assert!(c.put(vec![0x03], vec![0x04])); + assert!(c.put(vec![0x05], vec![0x06])); + assert!(c.put(vec![0x07], vec![0x08])); + assert!(c.put(vec![0x09], vec![0x0a])); + + let count = c.get(&[0x01]).iter().count() + + c.get(&[0x03]).iter().count() + + c.get(&[0x05]).iter().count() + + c.get(&[0x07]).iter().count() + + c.get(&[0x09]).iter().count(); + + assert!(count < 5); + } + + #[test] + fn test_neverproducestickets_does_nothing() { + let npt = NeverProducesTickets {}; + assert!(!npt.enabled()); + assert_eq!(0, npt.lifetime()); + assert_eq!(None, npt.encrypt(&[])); + assert_eq!(None, npt.decrypt(&[])); + } + + #[test] + fn test_resolvesservercertusingsni_requires_sni() { + let rscsni = ResolvesServerCertUsingSni::new(); + assert!(rscsni + .resolve(ClientHello::new(&None, &[], None, &[])) + .is_none()); + } + + #[test] + fn test_resolvesservercertusingsni_handles_unknown_name() { + let rscsni = ResolvesServerCertUsingSni::new(); + let name = webpki::DnsNameRef::try_from_ascii_str("hello.com") + .unwrap() + .to_owned(); + assert!(rscsni + .resolve(ClientHello::new(&Some(name), &[], None, &[])) + .is_none()); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/server/hs.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/server/hs.rs new file mode 100644 index 0000000000000000000000000000000000000000..6fc3bd86267f1fe7bca9e0d9d3ea706dc9ef034a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/server/hs.rs @@ -0,0 +1,522 @@ +use crate::conn::{CommonState, ConnectionRandoms, State}; +#[cfg(feature = "tls12")] +use crate::enums::CipherSuite; +use crate::enums::{ProtocolVersion, SignatureScheme}; +use crate::error::Error; +use crate::hash_hs::{HandshakeHash, HandshakeHashBuffer}; +#[cfg(feature = "logging")] +use crate::log::{debug, trace}; +use crate::msgs::enums::HandshakeType; +use crate::msgs::enums::{AlertDescription, Compression, ExtensionType}; +#[cfg(feature = "tls12")] +use crate::msgs::handshake::SessionID; +use crate::msgs::handshake::{ClientHelloPayload, Random, ServerExtension}; +use crate::msgs::handshake::{ConvertProtocolNameList, ConvertServerNameList, HandshakePayload}; +use crate::msgs::message::{Message, MessagePayload}; +use crate::msgs::persist; +use crate::server::{ClientHello, ServerConfig}; +use crate::suites; +use crate::SupportedCipherSuite; + +use super::server_conn::ServerConnectionData; +#[cfg(feature = "tls12")] +use super::tls12; +use crate::server::common::ActiveCertifiedKey; +use crate::server::tls13; + +use std::sync::Arc; + +pub(super) type NextState = Box>; +pub(super) type NextStateOrError = Result; +pub(super) type ServerContext<'a> = crate::conn::Context<'a, ServerConnectionData>; + +pub(super) fn incompatible(common: &mut CommonState, why: &str) -> Error { + common.send_fatal_alert(AlertDescription::HandshakeFailure); + Error::PeerIncompatibleError(why.to_string()) +} + +fn bad_version(common: &mut CommonState, why: &str) -> Error { + common.send_fatal_alert(AlertDescription::ProtocolVersion); + Error::PeerIncompatibleError(why.to_string()) +} + +pub(super) fn decode_error(common: &mut CommonState, why: &str) -> Error { + common.send_fatal_alert(AlertDescription::DecodeError); + Error::PeerMisbehavedError(why.to_string()) +} + +pub(super) fn can_resume( + suite: SupportedCipherSuite, + sni: &Option, + using_ems: bool, + resumedata: &persist::ServerSessionValue, +) -> bool { + // The RFCs underspecify what happens if we try to resume to + // an unoffered/varying suite. We merely don't resume in weird cases. + // + // RFC 6066 says "A server that implements this extension MUST NOT accept + // the request to resume the session if the server_name extension contains + // a different name. Instead, it proceeds with a full handshake to + // establish a new session." + resumedata.cipher_suite == suite.suite() + && (resumedata.extended_ms == using_ems || (resumedata.extended_ms && !using_ems)) + && &resumedata.sni == sni +} + +#[derive(Default)] +pub(super) struct ExtensionProcessing { + // extensions to reply with + pub(super) exts: Vec, + #[cfg(feature = "tls12")] + pub(super) send_ticket: bool, +} + +impl ExtensionProcessing { + pub(super) fn new() -> Self { + Default::default() + } + + pub(super) fn process_common( + &mut self, + config: &ServerConfig, + cx: &mut ServerContext<'_>, + ocsp_response: &mut Option<&[u8]>, + sct_list: &mut Option<&[u8]>, + hello: &ClientHelloPayload, + resumedata: Option<&persist::ServerSessionValue>, + extra_exts: Vec, + ) -> Result<(), Error> { + // ALPN + let our_protocols = &config.alpn_protocols; + let maybe_their_protocols = hello.get_alpn_extension(); + if let Some(their_protocols) = maybe_their_protocols { + let their_protocols = their_protocols.to_slices(); + + if their_protocols + .iter() + .any(|protocol| protocol.is_empty()) + { + return Err(Error::PeerMisbehavedError( + "client offered empty ALPN protocol".to_string(), + )); + } + + cx.common.alpn_protocol = our_protocols + .iter() + .find(|protocol| their_protocols.contains(&protocol.as_slice())) + .cloned(); + if let Some(ref selected_protocol) = cx.common.alpn_protocol { + debug!("Chosen ALPN protocol {:?}", selected_protocol); + self.exts + .push(ServerExtension::make_alpn(&[selected_protocol])); + } else if !our_protocols.is_empty() { + cx.common + .send_fatal_alert(AlertDescription::NoApplicationProtocol); + return Err(Error::NoApplicationProtocol); + } + } + + #[cfg(feature = "quic")] + { + if cx.common.is_quic() { + // QUIC has strict ALPN, unlike TLS's more backwards-compatible behavior. RFC 9001 + // says: "The server MUST treat the inability to select a compatible application + // protocol as a connection error of type 0x0178". We judge that ALPN was desired + // (rather than some out-of-band protocol negotiation mechanism) iff any ALPN + // protocols were configured locally or offered by the client. This helps prevent + // successful establishment of connections between peers that can't understand + // each other. + if cx.common.alpn_protocol.is_none() + && (!our_protocols.is_empty() || maybe_their_protocols.is_some()) + { + cx.common + .send_fatal_alert(AlertDescription::NoApplicationProtocol); + return Err(Error::NoApplicationProtocol); + } + + match hello.get_quic_params_extension() { + Some(params) => cx.common.quic.params = Some(params), + None => { + return Err(cx + .common + .missing_extension("QUIC transport parameters not found")); + } + } + } + } + + let for_resume = resumedata.is_some(); + // SNI + if !for_resume && hello.get_sni_extension().is_some() { + self.exts + .push(ServerExtension::ServerNameAck); + } + + // Send status_request response if we have one. This is not allowed + // if we're resuming, and is only triggered if we have an OCSP response + // to send. + if !for_resume + && hello + .find_extension(ExtensionType::StatusRequest) + .is_some() + { + if ocsp_response.is_some() && !cx.common.is_tls13() { + // Only TLS1.2 sends confirmation in ServerHello + self.exts + .push(ServerExtension::CertificateStatusAck); + } + } else { + // Throw away any OCSP response so we don't try to send it later. + ocsp_response.take(); + } + + if !for_resume + && hello + .find_extension(ExtensionType::SCT) + .is_some() + { + if !cx.common.is_tls13() { + // Take the SCT list, if any, so we don't send it later, + // and put it in the legacy extension. + if let Some(sct_list) = sct_list.take() { + self.exts + .push(ServerExtension::make_sct(sct_list.to_vec())); + } + } + } else { + // Throw away any SCT list so we don't send it later. + sct_list.take(); + } + + self.exts.extend(extra_exts); + + Ok(()) + } + + #[cfg(feature = "tls12")] + pub(super) fn process_tls12( + &mut self, + config: &ServerConfig, + hello: &ClientHelloPayload, + using_ems: bool, + ) { + // Renegotiation. + // (We don't do reneg at all, but would support the secure version if we did.) + let secure_reneg_offered = hello + .find_extension(ExtensionType::RenegotiationInfo) + .is_some() + || hello + .cipher_suites + .contains(&CipherSuite::TLS_EMPTY_RENEGOTIATION_INFO_SCSV); + + if secure_reneg_offered { + self.exts + .push(ServerExtension::make_empty_renegotiation_info()); + } + + // Tickets: + // If we get any SessionTicket extension and have tickets enabled, + // we send an ack. + if hello + .find_extension(ExtensionType::SessionTicket) + .is_some() + && config.ticketer.enabled() + { + self.send_ticket = true; + self.exts + .push(ServerExtension::SessionTicketAck); + } + + // Confirm use of EMS if offered. + if using_ems { + self.exts + .push(ServerExtension::ExtendedMasterSecretAck); + } + } +} + +pub(super) struct ExpectClientHello { + pub(super) config: Arc, + pub(super) extra_exts: Vec, + pub(super) transcript: HandshakeHashOrBuffer, + #[cfg(feature = "tls12")] + pub(super) session_id: SessionID, + #[cfg(feature = "tls12")] + pub(super) using_ems: bool, + pub(super) done_retry: bool, + pub(super) send_ticket: bool, +} + +impl ExpectClientHello { + pub(super) fn new(config: Arc, extra_exts: Vec) -> Self { + let mut transcript_buffer = HandshakeHashBuffer::new(); + + if config.verifier.offer_client_auth() { + transcript_buffer.set_client_auth_enabled(); + } + + Self { + config, + extra_exts, + transcript: HandshakeHashOrBuffer::Buffer(transcript_buffer), + #[cfg(feature = "tls12")] + session_id: SessionID::empty(), + #[cfg(feature = "tls12")] + using_ems: false, + done_retry: false, + send_ticket: false, + } + } + + /// Continues handling of a `ClientHello` message once config and certificate are available. + pub(super) fn with_certified_key( + self, + mut sig_schemes: Vec, + client_hello: &ClientHelloPayload, + m: &Message, + cx: &mut ServerContext<'_>, + ) -> NextStateOrError { + let tls13_enabled = self + .config + .supports_version(ProtocolVersion::TLSv1_3); + let tls12_enabled = self + .config + .supports_version(ProtocolVersion::TLSv1_2); + + // Are we doing TLS1.3? + let maybe_versions_ext = client_hello.get_versions_extension(); + let version = if let Some(versions) = maybe_versions_ext { + if versions.contains(&ProtocolVersion::TLSv1_3) && tls13_enabled { + ProtocolVersion::TLSv1_3 + } else if !versions.contains(&ProtocolVersion::TLSv1_2) || !tls12_enabled { + return Err(bad_version(cx.common, "TLS1.2 not offered/enabled")); + } else if cx.common.is_quic() { + return Err(bad_version( + cx.common, + "Expecting QUIC connection, but client does not support TLSv1_3", + )); + } else { + ProtocolVersion::TLSv1_2 + } + } else if client_hello.client_version.get_u16() < ProtocolVersion::TLSv1_2.get_u16() { + return Err(bad_version(cx.common, "Client does not support TLSv1_2")); + } else if !tls12_enabled && tls13_enabled { + return Err(bad_version( + cx.common, + "Server requires TLS1.3, but client omitted versions ext", + )); + } else if cx.common.is_quic() { + return Err(bad_version( + cx.common, + "Expecting QUIC connection, but client does not support TLSv1_3", + )); + } else { + ProtocolVersion::TLSv1_2 + }; + + cx.common.negotiated_version = Some(version); + + // We communicate to the upper layer what kind of key they should choose + // via the sigschemes value. Clients tend to treat this extension + // orthogonally to offered ciphersuites (even though, in TLS1.2 it is not). + // So: reduce the offered sigschemes to those compatible with the + // intersection of ciphersuites. + let client_suites = self + .config + .cipher_suites + .iter() + .copied() + .filter(|scs| { + client_hello + .cipher_suites + .contains(&scs.suite()) + }) + .collect::>(); + + sig_schemes + .retain(|scheme| suites::compatible_sigscheme_for_suites(*scheme, &client_suites)); + + // Choose a certificate. + let certkey = { + let client_hello = ClientHello::new( + &cx.data.sni, + &sig_schemes, + client_hello.get_alpn_extension(), + &client_hello.cipher_suites, + ); + + let certkey = self + .config + .cert_resolver + .resolve(client_hello); + + certkey.ok_or_else(|| { + cx.common + .send_fatal_alert(AlertDescription::AccessDenied); + Error::General("no server certificate chain resolved".to_string()) + })? + }; + let certkey = ActiveCertifiedKey::from_certified_key(&certkey); + + // Reduce our supported ciphersuites by the certificate. + // (no-op for TLS1.3) + let suitable_suites = + suites::reduce_given_sigalg(&self.config.cipher_suites, certkey.get_key().algorithm()); + + // And version + let suitable_suites = suites::reduce_given_version(&suitable_suites, version); + + let suite = if self.config.ignore_client_order { + suites::choose_ciphersuite_preferring_server( + &client_hello.cipher_suites, + &suitable_suites, + ) + } else { + suites::choose_ciphersuite_preferring_client( + &client_hello.cipher_suites, + &suitable_suites, + ) + } + .ok_or_else(|| incompatible(cx.common, "no ciphersuites in common"))?; + + debug!("decided upon suite {:?}", suite); + cx.common.suite = Some(suite); + + // Start handshake hash. + let starting_hash = suite.hash_algorithm(); + let transcript = match self.transcript { + HandshakeHashOrBuffer::Buffer(inner) => inner.start_hash(starting_hash), + HandshakeHashOrBuffer::Hash(inner) if inner.algorithm() == starting_hash => inner, + _ => { + return Err(cx + .common + .illegal_param("hash differed on retry")); + } + }; + + // Save their Random. + let randoms = ConnectionRandoms::new(client_hello.random, Random::new()?); + match suite { + SupportedCipherSuite::Tls13(suite) => tls13::CompleteClientHelloHandling { + config: self.config, + transcript, + suite, + randoms, + done_retry: self.done_retry, + send_ticket: self.send_ticket, + extra_exts: self.extra_exts, + } + .handle_client_hello(cx, certkey, m, client_hello, sig_schemes), + #[cfg(feature = "tls12")] + SupportedCipherSuite::Tls12(suite) => tls12::CompleteClientHelloHandling { + config: self.config, + transcript, + session_id: self.session_id, + suite, + using_ems: self.using_ems, + randoms, + send_ticket: self.send_ticket, + extra_exts: self.extra_exts, + } + .handle_client_hello( + cx, + certkey, + m, + client_hello, + sig_schemes, + tls13_enabled, + ), + } + } +} + +impl State for ExpectClientHello { + fn handle(self: Box, cx: &mut ServerContext<'_>, m: Message) -> NextStateOrError { + let (client_hello, sig_schemes) = + process_client_hello(&m, self.done_retry, cx.common, cx.data)?; + self.with_certified_key(sig_schemes, client_hello, &m, cx) + } +} + +/// Configuration-independent validation of a `ClientHello` message. +/// +/// This represents the first part of the `ClientHello` handling, where we do all validation that +/// doesn't depend on a `ServerConfig` being available and extract everything needed to build a +/// [`ClientHello`] value for a [`ResolvesServerConfig`]/`ResolvesServerCert`]. +/// +/// Note that this will modify `data.sni` even if config or certificate resolution fail. +pub(super) fn process_client_hello<'a>( + m: &'a Message, + done_retry: bool, + common: &mut CommonState, + data: &mut ServerConnectionData, +) -> Result<(&'a ClientHelloPayload, Vec), Error> { + let client_hello = + require_handshake_msg!(m, HandshakeType::ClientHello, HandshakePayload::ClientHello)?; + trace!("we got a clienthello {:?}", client_hello); + + if !client_hello + .compression_methods + .contains(&Compression::Null) + { + common.send_fatal_alert(AlertDescription::IllegalParameter); + return Err(Error::PeerIncompatibleError( + "client did not offer Null compression".to_string(), + )); + } + + if client_hello.has_duplicate_extension() { + return Err(decode_error(common, "client sent duplicate extensions")); + } + + // No handshake messages should follow this one in this flight. + common.check_aligned_handshake()?; + + // Extract and validate the SNI DNS name, if any, before giving it to + // the cert resolver. In particular, if it is invalid then we should + // send an Illegal Parameter alert instead of the Internal Error alert + // (or whatever) that we'd send if this were checked later or in a + // different way. + let sni: Option = match client_hello.get_sni_extension() { + Some(sni) => { + if sni.has_duplicate_names_for_type() { + return Err(decode_error( + common, + "ClientHello SNI contains duplicate name types", + )); + } + + if let Some(hostname) = sni.get_single_hostname() { + Some(hostname.into()) + } else { + return Err(common.illegal_param("ClientHello SNI did not contain a hostname")); + } + } + None => None, + }; + + // save only the first SNI + if let (Some(sni), false) = (&sni, done_retry) { + // Save the SNI into the session. + // The SNI hostname is immutable once set. + assert!(data.sni.is_none()); + data.sni = Some(sni.clone()) + } else if data.sni != sni { + return Err(Error::PeerIncompatibleError( + "SNI differed on retry".to_string(), + )); + } + + let sig_schemes = client_hello + .get_sigalgs_extension() + .ok_or_else(|| incompatible(common, "client didn't describe signature schemes"))? + .clone(); + + Ok((client_hello, sig_schemes)) +} + +#[allow(clippy::large_enum_variant)] +pub(crate) enum HandshakeHashOrBuffer { + Buffer(HandshakeHashBuffer), + Hash(HandshakeHash), +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/server/server_conn.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/server/server_conn.rs new file mode 100644 index 0000000000000000000000000000000000000000..7e226e4c983f1a0488f598aeb80502eba63c3ae9 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/server/server_conn.rs @@ -0,0 +1,849 @@ +use crate::builder::{ConfigBuilder, WantsCipherSuites}; +use crate::conn::{CommonState, ConnectionCommon, Side, State}; +use crate::enums::{CipherSuite, ProtocolVersion, SignatureScheme}; +use crate::error::Error; +use crate::kx::SupportedKxGroup; +#[cfg(feature = "logging")] +use crate::log::trace; +use crate::msgs::base::{Payload, PayloadU8}; +#[cfg(feature = "quic")] +use crate::msgs::enums::AlertDescription; +use crate::msgs::handshake::{ClientHelloPayload, ServerExtension}; +use crate::msgs::message::Message; +use crate::sign; +use crate::suites::SupportedCipherSuite; +use crate::vecbuf::ChunkVecBuffer; +use crate::verify; +#[cfg(feature = "secret_extraction")] +use crate::ExtractedSecrets; +use crate::KeyLog; +#[cfg(feature = "quic")] +use crate::{conn::Protocol, quic}; + +use super::hs; + +use std::marker::PhantomData; +use std::ops::{Deref, DerefMut}; +use std::sync::Arc; +use std::{fmt, io}; + +/// A trait for the ability to store server session data. +/// +/// The keys and values are opaque. +/// +/// Both the keys and values should be treated as +/// **highly sensitive data**, containing enough key material +/// to break all security of the corresponding sessions. +/// +/// Implementations can be lossy (in other words, forgetting +/// key/value pairs) without any negative security consequences. +/// +/// However, note that `take` **must** reliably delete a returned +/// value. If it does not, there may be security consequences. +/// +/// `put` and `take` are mutating operations; this isn't expressed +/// in the type system to allow implementations freedom in +/// how to achieve interior mutability. `Mutex` is a common +/// choice. +pub trait StoresServerSessions: Send + Sync { + /// Store session secrets encoded in `value` against `key`, + /// overwrites any existing value against `key`. Returns `true` + /// if the value was stored. + fn put(&self, key: Vec, value: Vec) -> bool; + + /// Find a value with the given `key`. Return it, or None + /// if it doesn't exist. + fn get(&self, key: &[u8]) -> Option>; + + /// Find a value with the given `key`. Return it and delete it; + /// or None if it doesn't exist. + fn take(&self, key: &[u8]) -> Option>; + + /// Whether the store can cache another session. This is used to indicate to clients + /// whether their session can be resumed; the implementation is not required to remember + /// a session even if it returns `true` here. + fn can_cache(&self) -> bool; +} + +/// A trait for the ability to encrypt and decrypt tickets. +pub trait ProducesTickets: Send + Sync { + /// Returns true if this implementation will encrypt/decrypt + /// tickets. Should return false if this is a dummy + /// implementation: the server will not send the SessionTicket + /// extension and will not call the other functions. + fn enabled(&self) -> bool; + + /// Returns the lifetime in seconds of tickets produced now. + /// The lifetime is provided as a hint to clients that the + /// ticket will not be useful after the given time. + /// + /// This lifetime must be implemented by key rolling and + /// erasure, *not* by storing a lifetime in the ticket. + /// + /// The objective is to limit damage to forward secrecy caused + /// by tickets, not just limiting their lifetime. + fn lifetime(&self) -> u32; + + /// Encrypt and authenticate `plain`, returning the resulting + /// ticket. Return None if `plain` cannot be encrypted for + /// some reason: an empty ticket will be sent and the connection + /// will continue. + fn encrypt(&self, plain: &[u8]) -> Option>; + + /// Decrypt `cipher`, validating its authenticity protection + /// and recovering the plaintext. `cipher` is fully attacker + /// controlled, so this decryption must be side-channel free, + /// panic-proof, and otherwise bullet-proof. If the decryption + /// fails, return None. + fn decrypt(&self, cipher: &[u8]) -> Option>; +} + +/// How to choose a certificate chain and signing key for use +/// in server authentication. +pub trait ResolvesServerCert: Send + Sync { + /// Choose a certificate chain and matching key given simplified + /// ClientHello information. + /// + /// Return `None` to abort the handshake. + fn resolve(&self, client_hello: ClientHello) -> Option>; +} + +/// A struct representing the received Client Hello +pub struct ClientHello<'a> { + server_name: &'a Option, + signature_schemes: &'a [SignatureScheme], + alpn: Option<&'a Vec>, + cipher_suites: &'a [CipherSuite], +} + +impl<'a> ClientHello<'a> { + /// Creates a new ClientHello + pub(super) fn new( + server_name: &'a Option, + signature_schemes: &'a [SignatureScheme], + alpn: Option<&'a Vec>, + cipher_suites: &'a [CipherSuite], + ) -> Self { + trace!("sni {:?}", server_name); + trace!("sig schemes {:?}", signature_schemes); + trace!("alpn protocols {:?}", alpn); + trace!("cipher suites {:?}", cipher_suites); + + ClientHello { + server_name, + signature_schemes, + alpn, + cipher_suites, + } + } + + /// Get the server name indicator. + /// + /// Returns `None` if the client did not supply a SNI. + pub fn server_name(&self) -> Option<&str> { + self.server_name + .as_ref() + .map(>::as_ref) + } + + /// Get the compatible signature schemes. + /// + /// Returns standard-specified default if the client omitted this extension. + pub fn signature_schemes(&self) -> &[SignatureScheme] { + self.signature_schemes + } + + /// Get the ALPN protocol identifiers submitted by the client. + /// + /// Returns `None` if the client did not include an ALPN extension. + /// + /// Application Layer Protocol Negotiation (ALPN) is a TLS extension that lets a client + /// submit a set of identifiers that each a represent an application-layer protocol. + /// The server will then pick its preferred protocol from the set submitted by the client. + /// Each identifier is represented as a byte array, although common values are often ASCII-encoded. + /// See the official RFC-7301 specifications at + /// for more information on ALPN. + /// + /// For example, a HTTP client might specify "http/1.1" and/or "h2". Other well-known values + /// are listed in the at IANA registry at + /// . + /// + /// The server can specify supported ALPN protocols by setting [`ServerConfig::alpn_protocols`]. + /// During the handshake, the server will select the first protocol configured that the client supports. + pub fn alpn(&self) -> Option> { + self.alpn.map(|protocols| { + protocols + .iter() + .map(|proto| proto.0.as_slice()) + }) + } + + /// Get cipher suites. + pub fn cipher_suites(&self) -> &[CipherSuite] { + self.cipher_suites + } +} + +/// Common configuration for a set of server sessions. +/// +/// Making one of these can be expensive, and should be +/// once per process rather than once per connection. +/// +/// These must be created via the [`ServerConfig::builder()`] function. +/// +/// # Defaults +/// +/// * [`ServerConfig::max_fragment_size`]: the default is `None`: TLS packets are not fragmented to a specific size. +/// * [`ServerConfig::session_storage`]: the default stores 256 sessions in memory. +/// * [`ServerConfig::alpn_protocols`]: the default is empty -- no ALPN protocol is negotiated. +/// * [`ServerConfig::key_log`]: key material is not logged. +#[derive(Clone)] +pub struct ServerConfig { + /// List of ciphersuites, in preference order. + pub(super) cipher_suites: Vec, + + /// List of supported key exchange groups. + /// + /// The first is the highest priority: they will be + /// offered to the client in this order. + pub(super) kx_groups: Vec<&'static SupportedKxGroup>, + + /// Ignore the client's ciphersuite order. Instead, + /// choose the top ciphersuite in the server list + /// which is supported by the client. + pub ignore_client_order: bool, + + /// The maximum size of TLS message we'll emit. If None, we don't limit TLS + /// message lengths except to the 2**16 limit specified in the standard. + /// + /// rustls enforces an arbitrary minimum of 32 bytes for this field. + /// Out of range values are reported as errors from ServerConnection::new. + /// + /// Setting this value to the TCP MSS may improve latency for stream-y workloads. + pub max_fragment_size: Option, + + /// How to store client sessions. + pub session_storage: Arc, + + /// How to produce tickets. + pub ticketer: Arc, + + /// How to choose a server cert and key. + pub cert_resolver: Arc, + + /// Protocol names we support, most preferred first. + /// If empty we don't do ALPN at all. + pub alpn_protocols: Vec>, + + /// Supported protocol versions, in no particular order. + /// The default is all supported versions. + pub(super) versions: crate::versions::EnabledVersions, + + /// How to verify client certificates. + pub(super) verifier: Arc, + + /// How to output key material for debugging. The default + /// does nothing. + pub key_log: Arc, + + /// Allows traffic secrets to be extracted after the handshake, + /// e.g. for kTLS setup. + #[cfg(feature = "secret_extraction")] + pub enable_secret_extraction: bool, + + /// Amount of early data to accept for sessions created by + /// this config. Specify 0 to disable early data. The + /// default is 0. + /// + /// Read the early data via [`ServerConnection::early_data`]. + /// + /// The units for this are _both_ plaintext bytes, _and_ ciphertext + /// bytes, depending on whether the server accepts a client's early_data + /// or not. It is therefore recommended to include some slop in + /// this value to account for the unknown amount of ciphertext + /// expansion in the latter case. + pub max_early_data_size: u32, + + /// Whether the server should send "0.5RTT" data. This means the server + /// sends data after its first flight of handshake messages, without + /// waiting for the client to complete the handshake. + /// + /// This can improve TTFB latency for either server-speaks-first protocols, + /// or client-speaks-first protocols when paired with "0RTT" data. This + /// comes at the cost of a subtle weakening of the normal handshake + /// integrity guarantees that TLS provides. Note that the initial + /// `ClientHello` is indirectly authenticated because it is included + /// in the transcript used to derive the keys used to encrypt the data. + /// + /// This only applies to TLS1.3 connections. TLS1.2 connections cannot + /// do this optimisation and this setting is ignored for them. It is + /// also ignored for TLS1.3 connections that even attempt client + /// authentication. + /// + /// This defaults to false. This means the first application data + /// sent by the server comes after receiving and validating the client's + /// handshake up to the `Finished` message. This is the safest option. + pub send_half_rtt_data: bool, +} + +impl fmt::Debug for ServerConfig { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.debug_struct("ServerConfig") + .field("ignore_client_order", &self.ignore_client_order) + .field("max_fragment_size", &self.max_fragment_size) + .field("alpn_protocols", &self.alpn_protocols) + .field("max_early_data_size", &self.max_early_data_size) + .field("send_half_rtt_data", &self.send_half_rtt_data) + .finish_non_exhaustive() + } +} + +impl ServerConfig { + /// Create builder to build up the server configuration. + /// + /// For more information, see the [`ConfigBuilder`] documentation. + pub fn builder() -> ConfigBuilder { + ConfigBuilder { + state: WantsCipherSuites(()), + side: PhantomData, + } + } + + #[doc(hidden)] + /// We support a given TLS version if it's quoted in the configured + /// versions *and* at least one ciphersuite for this version is + /// also configured. + pub fn supports_version(&self, v: ProtocolVersion) -> bool { + self.versions.contains(v) + && self + .cipher_suites + .iter() + .any(|cs| cs.version().version == v) + } +} + +/// Allows reading of early data in resumed TLS1.3 connections. +/// +/// "Early data" is also known as "0-RTT data". +/// +/// This structure implements [`std::io::Read`]. +pub struct ReadEarlyData<'a> { + early_data: &'a mut EarlyDataState, +} + +impl<'a> ReadEarlyData<'a> { + fn new(early_data: &'a mut EarlyDataState) -> Self { + ReadEarlyData { early_data } + } +} + +impl<'a> std::io::Read for ReadEarlyData<'a> { + fn read(&mut self, buf: &mut [u8]) -> io::Result { + self.early_data.read(buf) + } + + #[cfg(read_buf)] + fn read_buf(&mut self, cursor: io::BorrowedCursor<'_>) -> io::Result<()> { + self.early_data.read_buf(cursor) + } +} + +/// This represents a single TLS server connection. +/// +/// Send TLS-protected data to the peer using the `io::Write` trait implementation. +/// Read data from the peer using the `io::Read` trait implementation. +pub struct ServerConnection { + inner: ConnectionCommon, +} + +impl ServerConnection { + /// Make a new ServerConnection. `config` controls how + /// we behave in the TLS protocol. + pub fn new(config: Arc) -> Result { + Self::from_config(config, vec![]) + } + + fn from_config( + config: Arc, + extra_exts: Vec, + ) -> Result { + let mut common = CommonState::new(Side::Server); + common.set_max_fragment_size(config.max_fragment_size)?; + #[cfg(feature = "secret_extraction")] + { + common.enable_secret_extraction = config.enable_secret_extraction; + } + Ok(Self { + inner: ConnectionCommon::new( + Box::new(hs::ExpectClientHello::new(config, extra_exts)), + ServerConnectionData::default(), + common, + ), + }) + } + + /// Retrieves the SNI hostname, if any, used to select the certificate and + /// private key. + /// + /// This returns `None` until some time after the client's SNI extension + /// value is processed during the handshake. It will never be `None` when + /// the connection is ready to send or process application data, unless the + /// client does not support SNI. + /// + /// This is useful for application protocols that need to enforce that the + /// SNI hostname matches an application layer protocol hostname. For + /// example, HTTP/1.1 servers commonly expect the `Host:` header field of + /// every request on a connection to match the hostname in the SNI extension + /// when the client provides the SNI extension. + /// + /// The SNI hostname is also used to match sessions during session + /// resumption. + pub fn sni_hostname(&self) -> Option<&str> { + self.inner.data.get_sni_str() + } + + /// Application-controlled portion of the resumption ticket supplied by the client, if any. + /// + /// Recovered from the prior session's `set_resumption_data`. Integrity is guaranteed by rustls. + /// + /// Returns `Some` iff a valid resumption ticket has been received from the client. + pub fn received_resumption_data(&self) -> Option<&[u8]> { + self.inner + .data + .received_resumption_data + .as_ref() + .map(|x| &x[..]) + } + + /// Set the resumption data to embed in future resumption tickets supplied to the client. + /// + /// Defaults to the empty byte string. Must be less than 2^15 bytes to allow room for other + /// data. Should be called while `is_handshaking` returns true to ensure all transmitted + /// resumption tickets are affected. + /// + /// Integrity will be assured by rustls, but the data will be visible to the client. If secrecy + /// from the client is desired, encrypt the data separately. + pub fn set_resumption_data(&mut self, data: &[u8]) { + assert!(data.len() < 2usize.pow(15)); + self.inner.data.resumption_data = data.into(); + } + + /// Explicitly discard early data, notifying the client + /// + /// Useful if invariants encoded in `received_resumption_data()` cannot be respected. + /// + /// Must be called while `is_handshaking` is true. + pub fn reject_early_data(&mut self) { + assert!( + self.is_handshaking(), + "cannot retroactively reject early data" + ); + self.inner.data.early_data.reject(); + } + + /// Returns an `io::Read` implementer you can read bytes from that are + /// received from a client as TLS1.3 0RTT/"early" data, during the handshake. + /// + /// This returns `None` in many circumstances, such as : + /// + /// - Early data is disabled if [`ServerConfig::max_early_data_size`] is zero (the default). + /// - The session negotiated with the client is not TLS1.3. + /// - The client just doesn't support early data. + /// - The connection doesn't resume an existing session. + /// - The client hasn't sent a full ClientHello yet. + pub fn early_data(&mut self) -> Option { + if self + .inner + .data + .early_data + .was_accepted() + { + Some(ReadEarlyData::new(&mut self.inner.data.early_data)) + } else { + None + } + } + + /// Extract secrets, so they can be used when configuring kTLS, for example. + #[cfg(feature = "secret_extraction")] + pub fn extract_secrets(self) -> Result { + self.inner.extract_secrets() + } +} + +impl fmt::Debug for ServerConnection { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + f.debug_struct("ServerConnection") + .finish() + } +} + +impl Deref for ServerConnection { + type Target = ConnectionCommon; + + fn deref(&self) -> &Self::Target { + &self.inner + } +} + +impl DerefMut for ServerConnection { + fn deref_mut(&mut self) -> &mut Self::Target { + &mut self.inner + } +} + +impl From for crate::Connection { + fn from(conn: ServerConnection) -> Self { + Self::Server(conn) + } +} + +/// Handle on a server-side connection before configuration is available. +/// +/// The `Acceptor` allows the caller to provide a [`ServerConfig`] based on the [`ClientHello`] of +/// the incoming connection. +pub struct Acceptor { + inner: Option>, +} + +impl Default for Acceptor { + fn default() -> Self { + Self { + inner: Some(ConnectionCommon::new( + Box::new(Accepting), + ServerConnectionData::default(), + CommonState::new(Side::Server), + )), + } + } +} + +impl Acceptor { + /// Create a new `Acceptor`. + #[deprecated( + since = "0.20.7", + note = "Use Acceptor::default instead for an infallible constructor" + )] + pub fn new() -> Result { + Ok(Self::default()) + } + + /// Returns true if the caller should call [`Connection::read_tls()`] as soon as possible. + /// + /// Since the purpose of an Acceptor is to read and then parse TLS bytes, this always returns true. + /// + /// [`Connection::read_tls()`]: crate::Connection::read_tls + #[deprecated(since = "0.20.7", note = "Always returns true")] + pub fn wants_read(&self) -> bool { + self.inner + .as_ref() + .map(|conn| conn.common_state.wants_read()) + .unwrap_or(false) + } + + /// Read TLS content from `rd`. + /// + /// Returns an error if this `Acceptor` has already yielded an [`Accepted`]. For more details, + /// refer to [`Connection::read_tls()`]. + /// + /// [`Connection::read_tls()`]: crate::Connection::read_tls + pub fn read_tls(&mut self, rd: &mut dyn io::Read) -> Result { + match &mut self.inner { + Some(conn) => conn.read_tls(rd), + None => Err(io::Error::new( + io::ErrorKind::Other, + "acceptor cannot read after successful acceptance", + )), + } + } + + /// Check if a `ClientHello` message has been received. + /// + /// Returns `Ok(None)` if the complete `ClientHello` has not yet been received. + /// Do more I/O and then call this function again. + /// + /// Returns `Ok(Some(accepted))` if the connection has been accepted. Call + /// `accepted.into_connection()` to continue. Do not call this function again. + /// + /// Returns `Err(err)` if an error occurred. Do not call this function again. + pub fn accept(&mut self) -> Result, Error> { + let mut connection = match self.inner.take() { + Some(conn) => conn, + None => { + return Err(Error::General("Acceptor polled after completion".into())); + } + }; + + let message = match connection.first_handshake_message()? { + Some(msg) => msg, + None => { + self.inner = Some(connection); + return Ok(None); + } + }; + + let (_, sig_schemes) = hs::process_client_hello( + &message, + false, + &mut connection.common_state, + &mut connection.data, + )?; + + Ok(Some(Accepted { + connection, + message, + sig_schemes, + })) + } +} + +/// Represents a `ClientHello` message received through the [`Acceptor`]. +/// +/// Contains the state required to resume the connection through [`Accepted::into_connection()`]. +pub struct Accepted { + connection: ConnectionCommon, + message: Message, + sig_schemes: Vec, +} + +impl Accepted { + /// Get the [`ClientHello`] for this connection. + pub fn client_hello(&self) -> ClientHello<'_> { + let payload = Self::client_hello_payload(&self.message); + ClientHello::new( + &self.connection.data.sni, + &self.sig_schemes, + payload.get_alpn_extension(), + &payload.cipher_suites, + ) + } + + /// Convert the [`Accepted`] into a [`ServerConnection`]. + /// + /// Takes the state returned from [`Acceptor::accept()`] as well as the [`ServerConfig`] and + /// [`sign::CertifiedKey`] that should be used for the session. Returns an error if + /// configuration-dependent validation of the received `ClientHello` message fails. + pub fn into_connection(mut self, config: Arc) -> Result { + self.connection + .common_state + .set_max_fragment_size(config.max_fragment_size)?; + + #[cfg(feature = "secret_extraction")] + { + self.connection + .common_state + .enable_secret_extraction = config.enable_secret_extraction; + } + + let state = hs::ExpectClientHello::new(config, Vec::new()); + let mut cx = hs::ServerContext { + common: &mut self.connection.common_state, + data: &mut self.connection.data, + }; + + let new = state.with_certified_key( + self.sig_schemes, + Self::client_hello_payload(&self.message), + &self.message, + &mut cx, + )?; + + self.connection.replace_state(new); + Ok(ServerConnection { + inner: self.connection, + }) + } + + fn client_hello_payload(message: &Message) -> &ClientHelloPayload { + match &message.payload { + crate::msgs::message::MessagePayload::Handshake { parsed, .. } => match &parsed.payload + { + crate::msgs::handshake::HandshakePayload::ClientHello(ch) => ch, + _ => unreachable!(), + }, + _ => unreachable!(), + } + } +} + +struct Accepting; + +impl State for Accepting { + fn handle( + self: Box, + _cx: &mut hs::ServerContext<'_>, + _m: Message, + ) -> Result>, Error> { + Err(Error::General("unreachable state".into())) + } +} + +pub(super) enum EarlyDataState { + New, + Accepted(ChunkVecBuffer), + Rejected, +} + +impl Default for EarlyDataState { + fn default() -> Self { + Self::New + } +} + +impl EarlyDataState { + pub(super) fn reject(&mut self) { + *self = Self::Rejected; + } + + pub(super) fn accept(&mut self, max_size: usize) { + *self = Self::Accepted(ChunkVecBuffer::new(Some(max_size))); + } + + fn was_accepted(&self) -> bool { + matches!(self, Self::Accepted(_)) + } + + pub(super) fn was_rejected(&self) -> bool { + matches!(self, Self::Rejected) + } + + fn read(&mut self, buf: &mut [u8]) -> io::Result { + match self { + Self::Accepted(ref mut received) => received.read(buf), + _ => Err(io::Error::from(io::ErrorKind::BrokenPipe)), + } + } + + #[cfg(read_buf)] + fn read_buf(&mut self, cursor: io::BorrowedCursor<'_>) -> io::Result<()> { + match self { + Self::Accepted(ref mut received) => received.read_buf(cursor), + _ => Err(io::Error::from(io::ErrorKind::BrokenPipe)), + } + } + + pub(super) fn take_received_plaintext(&mut self, bytes: Payload) -> bool { + let available = bytes.0.len(); + match self { + Self::Accepted(ref mut received) if received.apply_limit(available) == available => { + received.append(bytes.0); + true + } + _ => false, + } + } +} + +// these branches not reachable externally, unless something else goes wrong. +#[test] +fn test_read_in_new_state() { + assert_eq!( + format!("{:?}", EarlyDataState::default().read(&mut [0u8; 5])), + "Err(Kind(BrokenPipe))" + ); +} + +#[cfg(read_buf)] +#[test] +fn test_read_buf_in_new_state() { + use std::io::BorrowedBuf; + + let mut buf = [0u8; 5]; + let mut buf: BorrowedBuf<'_> = buf.as_mut_slice().into(); + assert_eq!( + format!("{:?}", EarlyDataState::default().read_buf(buf.unfilled())), + "Err(Kind(BrokenPipe))" + ); +} + +/// State associated with a server connection. +#[derive(Default)] +pub struct ServerConnectionData { + pub(super) sni: Option, + pub(super) received_resumption_data: Option>, + pub(super) resumption_data: Vec, + pub(super) early_data: EarlyDataState, +} + +impl ServerConnectionData { + pub(super) fn get_sni_str(&self) -> Option<&str> { + self.sni.as_ref().map(AsRef::as_ref) + } +} + +impl crate::conn::SideData for ServerConnectionData {} + +#[cfg(feature = "quic")] +impl quic::QuicExt for ServerConnection { + fn quic_transport_parameters(&self) -> Option<&[u8]> { + self.inner + .common_state + .quic + .params + .as_ref() + .map(|v| v.as_ref()) + } + + fn zero_rtt_keys(&self) -> Option { + Some(quic::DirectionalKeys::new( + self.inner + .common_state + .suite + .and_then(|suite| suite.tls13())?, + self.inner + .common_state + .quic + .early_secret + .as_ref()?, + )) + } + + fn read_hs(&mut self, plaintext: &[u8]) -> Result<(), Error> { + self.inner.read_quic_hs(plaintext) + } + + fn write_hs(&mut self, buf: &mut Vec) -> Option { + quic::write_hs(&mut self.inner.common_state, buf) + } + + fn alert(&self) -> Option { + self.inner.common_state.quic.alert + } +} + +/// Methods specific to QUIC server sessions +#[cfg(feature = "quic")] +#[cfg_attr(docsrs, doc(cfg(feature = "quic")))] +pub trait ServerQuicExt { + /// Make a new QUIC ServerConnection. This differs from `ServerConnection::new()` + /// in that it takes an extra argument, `params`, which contains the + /// TLS-encoded transport parameters to send. + fn new_quic( + config: Arc, + quic_version: quic::Version, + params: Vec, + ) -> Result { + if !config.supports_version(ProtocolVersion::TLSv1_3) { + return Err(Error::General( + "TLS 1.3 support is required for QUIC".into(), + )); + } + + if config.max_early_data_size != 0 && config.max_early_data_size != 0xffff_ffff { + return Err(Error::General( + "QUIC sessions must set a max early data of 0 or 2^32-1".into(), + )); + } + + let ext = match quic_version { + quic::Version::V1Draft => ServerExtension::TransportParametersDraft(params), + quic::Version::V1 => ServerExtension::TransportParameters(params), + }; + let mut new = ServerConnection::from_config(config, vec![ext])?; + new.inner.common_state.protocol = Protocol::Quic; + Ok(new) + } +} + +#[cfg(feature = "quic")] +impl ServerQuicExt for ServerConnection {} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/server/tls12.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/server/tls12.rs new file mode 100644 index 0000000000000000000000000000000000000000..45b6c78c0aa4ff12e26409d4d27f59fde90d47ae --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/server/tls12.rs @@ -0,0 +1,941 @@ +use crate::check::inappropriate_message; +use crate::conn::{CommonState, ConnectionRandoms, Side, State}; +use crate::enums::ProtocolVersion; +use crate::error::Error; +use crate::hash_hs::HandshakeHash; +use crate::key::Certificate; +#[cfg(feature = "logging")] +use crate::log::{debug, trace}; +use crate::msgs::base::Payload; +use crate::msgs::ccs::ChangeCipherSpecPayload; +use crate::msgs::codec::Codec; +use crate::msgs::enums::{AlertDescription, ContentType, HandshakeType}; +use crate::msgs::handshake::{ClientECDHParams, HandshakeMessagePayload, HandshakePayload}; +use crate::msgs::handshake::{NewSessionTicketPayload, SessionID}; +use crate::msgs::message::{Message, MessagePayload}; +use crate::msgs::persist; +#[cfg(feature = "secret_extraction")] +use crate::suites::PartiallyExtractedSecrets; +use crate::tls12::{self, ConnectionSecrets, Tls12CipherSuite}; +use crate::{kx, ticketer, verify}; + +use super::common::ActiveCertifiedKey; +use super::hs::{self, ServerContext}; +use super::server_conn::{ProducesTickets, ServerConfig, ServerConnectionData}; + +use ring::constant_time; + +use std::sync::Arc; + +pub(super) use client_hello::CompleteClientHelloHandling; + +mod client_hello { + use crate::enums::SignatureScheme; + use crate::msgs::enums::ECPointFormat; + use crate::msgs::enums::{ClientCertificateType, Compression}; + use crate::msgs::handshake::{CertificateRequestPayload, ClientSessionTicket, Random}; + use crate::msgs::handshake::{ + CertificateStatus, DigitallySignedStruct, ECDHEServerKeyExchange, + }; + use crate::msgs::handshake::{ClientExtension, SessionID}; + use crate::msgs::handshake::{ClientHelloPayload, ServerHelloPayload}; + use crate::msgs::handshake::{ECPointFormatList, ServerECDHParams, SupportedPointFormats}; + use crate::msgs::handshake::{ServerExtension, ServerKeyExchangePayload}; + use crate::sign; + + use super::*; + + pub(in crate::server) struct CompleteClientHelloHandling { + pub(in crate::server) config: Arc, + pub(in crate::server) transcript: HandshakeHash, + pub(in crate::server) session_id: SessionID, + pub(in crate::server) suite: &'static Tls12CipherSuite, + pub(in crate::server) using_ems: bool, + pub(in crate::server) randoms: ConnectionRandoms, + pub(in crate::server) send_ticket: bool, + pub(in crate::server) extra_exts: Vec, + } + + impl CompleteClientHelloHandling { + pub(in crate::server) fn handle_client_hello( + mut self, + cx: &mut ServerContext<'_>, + server_key: ActiveCertifiedKey, + chm: &Message, + client_hello: &ClientHelloPayload, + sigschemes_ext: Vec, + tls13_enabled: bool, + ) -> hs::NextStateOrError { + // -- TLS1.2 only from hereon in -- + self.transcript.add_message(chm); + + if client_hello.ems_support_offered() { + self.using_ems = true; + } + + let groups_ext = client_hello + .get_namedgroups_extension() + .ok_or_else(|| hs::incompatible(cx.common, "client didn't describe groups"))?; + let ecpoints_ext = client_hello + .get_ecpoints_extension() + .ok_or_else(|| hs::incompatible(cx.common, "client didn't describe ec points"))?; + + trace!("namedgroups {:?}", groups_ext); + trace!("ecpoints {:?}", ecpoints_ext); + + if !ecpoints_ext.contains(&ECPointFormat::Uncompressed) { + cx.common + .send_fatal_alert(AlertDescription::IllegalParameter); + return Err(Error::PeerIncompatibleError( + "client didn't support uncompressed ec points".to_string(), + )); + } + + // -- If TLS1.3 is enabled, signal the downgrade in the server random + if tls13_enabled { + self.randoms.server[24..].copy_from_slice(&tls12::DOWNGRADE_SENTINEL); + } + + // -- Check for resumption -- + // We can do this either by (in order of preference): + // 1. receiving a ticket that decrypts + // 2. receiving a sessionid that is in our cache + // + // If we receive a ticket, the sessionid won't be in our + // cache, so don't check. + // + // If either works, we end up with a ServerConnectionValue + // which is passed to start_resumption and concludes + // our handling of the ClientHello. + // + let mut ticket_received = false; + let resume_data = client_hello + .get_ticket_extension() + .and_then(|ticket_ext| match ticket_ext { + ClientExtension::SessionTicket(ClientSessionTicket::Offer(ticket)) => { + Some(ticket) + } + _ => None, + }) + .and_then(|ticket| { + ticket_received = true; + debug!("Ticket received"); + let data = self.config.ticketer.decrypt(&ticket.0); + if data.is_none() { + debug!("Ticket didn't decrypt"); + } + data + }) + .or_else(|| { + // Perhaps resume? If we received a ticket, the sessionid + // does not correspond to a real session. + if client_hello.session_id.is_empty() || ticket_received { + return None; + } + + self.config + .session_storage + .get(&client_hello.session_id.get_encoding()) + }) + .and_then(|x| persist::ServerSessionValue::read_bytes(&x)) + .filter(|resumedata| { + hs::can_resume(self.suite.into(), &cx.data.sni, self.using_ems, resumedata) + }); + + if let Some(data) = resume_data { + return self.start_resumption(cx, client_hello, &client_hello.session_id, data); + } + + // Now we have chosen a ciphersuite, we can make kx decisions. + let sigschemes = self + .suite + .resolve_sig_schemes(&sigschemes_ext); + + if sigschemes.is_empty() { + return Err(hs::incompatible(cx.common, "no overlapping sigschemes")); + } + + let group = self + .config + .kx_groups + .iter() + .find(|skxg| groups_ext.contains(&skxg.name)) + .cloned() + .ok_or_else(|| hs::incompatible(cx.common, "no supported group"))?; + + let ecpoint = ECPointFormatList::supported() + .iter() + .find(|format| ecpoints_ext.contains(format)) + .cloned() + .ok_or_else(|| hs::incompatible(cx.common, "no supported point format"))?; + + debug_assert_eq!(ecpoint, ECPointFormat::Uncompressed); + + let (mut ocsp_response, mut sct_list) = + (server_key.get_ocsp(), server_key.get_sct_list()); + + // If we're not offered a ticket or a potential session ID, allocate a session ID. + if !self.config.session_storage.can_cache() { + self.session_id = SessionID::empty(); + } else if self.session_id.is_empty() && !ticket_received { + self.session_id = SessionID::random()?; + } + + self.send_ticket = emit_server_hello( + &self.config, + &mut self.transcript, + cx, + self.session_id, + self.suite, + self.using_ems, + &mut ocsp_response, + &mut sct_list, + client_hello, + None, + &self.randoms, + self.extra_exts, + )?; + emit_certificate(&mut self.transcript, cx.common, server_key.get_cert()); + if let Some(ocsp_response) = ocsp_response { + emit_cert_status(&mut self.transcript, cx.common, ocsp_response); + } + let server_kx = emit_server_kx( + &mut self.transcript, + cx.common, + sigschemes, + group, + server_key.get_key(), + &self.randoms, + )?; + let doing_client_auth = emit_certificate_req(&self.config, &mut self.transcript, cx)?; + emit_server_hello_done(&mut self.transcript, cx.common); + + if doing_client_auth { + Ok(Box::new(ExpectCertificate { + config: self.config, + transcript: self.transcript, + randoms: self.randoms, + session_id: self.session_id, + suite: self.suite, + using_ems: self.using_ems, + server_kx, + send_ticket: self.send_ticket, + })) + } else { + Ok(Box::new(ExpectClientKx { + config: self.config, + transcript: self.transcript, + randoms: self.randoms, + session_id: self.session_id, + suite: self.suite, + using_ems: self.using_ems, + server_kx, + client_cert: None, + send_ticket: self.send_ticket, + })) + } + } + + fn start_resumption( + mut self, + cx: &mut ServerContext<'_>, + client_hello: &ClientHelloPayload, + id: &SessionID, + resumedata: persist::ServerSessionValue, + ) -> hs::NextStateOrError { + debug!("Resuming connection"); + + if resumedata.extended_ms && !self.using_ems { + return Err(cx + .common + .illegal_param("refusing to resume without ems")); + } + + self.session_id = *id; + self.send_ticket = emit_server_hello( + &self.config, + &mut self.transcript, + cx, + self.session_id, + self.suite, + self.using_ems, + &mut None, + &mut None, + client_hello, + Some(&resumedata), + &self.randoms, + self.extra_exts, + )?; + + let secrets = ConnectionSecrets::new_resume( + self.randoms, + self.suite, + &resumedata.master_secret.0, + ); + self.config.key_log.log( + "CLIENT_RANDOM", + &secrets.randoms.client, + &secrets.master_secret, + ); + cx.common + .start_encryption_tls12(&secrets, Side::Server); + cx.common.peer_certificates = resumedata.client_cert_chain; + + if self.send_ticket { + emit_ticket( + &secrets, + &mut self.transcript, + self.using_ems, + cx, + &*self.config.ticketer, + )?; + } + emit_ccs(cx.common); + cx.common + .record_layer + .start_encrypting(); + emit_finished(&secrets, &mut self.transcript, cx.common); + + Ok(Box::new(ExpectCcs { + config: self.config, + secrets, + transcript: self.transcript, + session_id: self.session_id, + using_ems: self.using_ems, + resuming: true, + send_ticket: self.send_ticket, + })) + } + } + + fn emit_server_hello( + config: &ServerConfig, + transcript: &mut HandshakeHash, + cx: &mut ServerContext<'_>, + session_id: SessionID, + suite: &'static Tls12CipherSuite, + using_ems: bool, + ocsp_response: &mut Option<&[u8]>, + sct_list: &mut Option<&[u8]>, + hello: &ClientHelloPayload, + resumedata: Option<&persist::ServerSessionValue>, + randoms: &ConnectionRandoms, + extra_exts: Vec, + ) -> Result { + let mut ep = hs::ExtensionProcessing::new(); + ep.process_common( + config, + cx, + ocsp_response, + sct_list, + hello, + resumedata, + extra_exts, + )?; + ep.process_tls12(config, hello, using_ems); + + let sh = Message { + version: ProtocolVersion::TLSv1_2, + payload: MessagePayload::handshake(HandshakeMessagePayload { + typ: HandshakeType::ServerHello, + payload: HandshakePayload::ServerHello(ServerHelloPayload { + legacy_version: ProtocolVersion::TLSv1_2, + random: Random::from(randoms.server), + session_id, + cipher_suite: suite.common.suite, + compression_method: Compression::Null, + extensions: ep.exts, + }), + }), + }; + + trace!("sending server hello {:?}", sh); + transcript.add_message(&sh); + cx.common.send_msg(sh, false); + Ok(ep.send_ticket) + } + + fn emit_certificate( + transcript: &mut HandshakeHash, + common: &mut CommonState, + cert_chain: &[Certificate], + ) { + let c = Message { + version: ProtocolVersion::TLSv1_2, + payload: MessagePayload::handshake(HandshakeMessagePayload { + typ: HandshakeType::Certificate, + payload: HandshakePayload::Certificate(cert_chain.to_owned()), + }), + }; + + transcript.add_message(&c); + common.send_msg(c, false); + } + + fn emit_cert_status(transcript: &mut HandshakeHash, common: &mut CommonState, ocsp: &[u8]) { + let st = CertificateStatus::new(ocsp.to_owned()); + + let c = Message { + version: ProtocolVersion::TLSv1_2, + payload: MessagePayload::handshake(HandshakeMessagePayload { + typ: HandshakeType::CertificateStatus, + payload: HandshakePayload::CertificateStatus(st), + }), + }; + + transcript.add_message(&c); + common.send_msg(c, false); + } + + fn emit_server_kx( + transcript: &mut HandshakeHash, + common: &mut CommonState, + sigschemes: Vec, + skxg: &'static kx::SupportedKxGroup, + signing_key: &dyn sign::SigningKey, + randoms: &ConnectionRandoms, + ) -> Result { + let kx = kx::KeyExchange::start(skxg).ok_or(Error::FailedToGetRandomBytes)?; + let secdh = ServerECDHParams::new(skxg.name, kx.pubkey.as_ref()); + + let mut msg = Vec::new(); + msg.extend(randoms.client); + msg.extend(randoms.server); + secdh.encode(&mut msg); + + let signer = signing_key + .choose_scheme(&sigschemes) + .ok_or_else(|| Error::General("incompatible signing key".to_string()))?; + let sigscheme = signer.scheme(); + let sig = signer.sign(&msg)?; + + let skx = ServerKeyExchangePayload::ECDHE(ECDHEServerKeyExchange { + params: secdh, + dss: DigitallySignedStruct::new(sigscheme, sig), + }); + + let m = Message { + version: ProtocolVersion::TLSv1_2, + payload: MessagePayload::handshake(HandshakeMessagePayload { + typ: HandshakeType::ServerKeyExchange, + payload: HandshakePayload::ServerKeyExchange(skx), + }), + }; + + transcript.add_message(&m); + common.send_msg(m, false); + Ok(kx) + } + + fn emit_certificate_req( + config: &ServerConfig, + transcript: &mut HandshakeHash, + cx: &mut ServerContext<'_>, + ) -> Result { + let client_auth = &config.verifier; + + if !client_auth.offer_client_auth() { + return Ok(false); + } + + let verify_schemes = client_auth.supported_verify_schemes(); + + let names = client_auth + .client_auth_root_subjects() + .ok_or_else(|| { + debug!("could not determine root subjects based on SNI"); + cx.common + .send_fatal_alert(AlertDescription::AccessDenied); + Error::General("client rejected by client_auth_root_subjects".into()) + })?; + + let cr = CertificateRequestPayload { + certtypes: vec![ + ClientCertificateType::RSASign, + ClientCertificateType::ECDSASign, + ], + sigschemes: verify_schemes, + canames: names, + }; + + let m = Message { + version: ProtocolVersion::TLSv1_2, + payload: MessagePayload::handshake(HandshakeMessagePayload { + typ: HandshakeType::CertificateRequest, + payload: HandshakePayload::CertificateRequest(cr), + }), + }; + + trace!("Sending CertificateRequest {:?}", m); + transcript.add_message(&m); + cx.common.send_msg(m, false); + Ok(true) + } + + fn emit_server_hello_done(transcript: &mut HandshakeHash, common: &mut CommonState) { + let m = Message { + version: ProtocolVersion::TLSv1_2, + payload: MessagePayload::handshake(HandshakeMessagePayload { + typ: HandshakeType::ServerHelloDone, + payload: HandshakePayload::ServerHelloDone, + }), + }; + + transcript.add_message(&m); + common.send_msg(m, false); + } +} + +// --- Process client's Certificate for client auth --- +struct ExpectCertificate { + config: Arc, + transcript: HandshakeHash, + randoms: ConnectionRandoms, + session_id: SessionID, + suite: &'static Tls12CipherSuite, + using_ems: bool, + server_kx: kx::KeyExchange, + send_ticket: bool, +} + +impl State for ExpectCertificate { + fn handle(mut self: Box, cx: &mut ServerContext<'_>, m: Message) -> hs::NextStateOrError { + self.transcript.add_message(&m); + let cert_chain = require_handshake_msg_move!( + m, + HandshakeType::Certificate, + HandshakePayload::Certificate + )?; + + // If we can't determine if the auth is mandatory, abort + let mandatory = self + .config + .verifier + .client_auth_mandatory() + .ok_or_else(|| { + debug!("could not determine if client auth is mandatory based on SNI"); + cx.common + .send_fatal_alert(AlertDescription::AccessDenied); + Error::General("client rejected by client_auth_mandatory".into()) + })?; + + trace!("certs {:?}", cert_chain); + + let client_cert = match cert_chain.split_first() { + None if mandatory => { + cx.common + .send_fatal_alert(AlertDescription::CertificateRequired); + return Err(Error::NoCertificatesPresented); + } + None => { + debug!("client auth requested but no certificate supplied"); + self.transcript.abandon_client_auth(); + None + } + Some((end_entity, intermediates)) => { + let now = std::time::SystemTime::now(); + self.config + .verifier + .verify_client_cert(end_entity, intermediates, now) + .map_err(|err| { + hs::incompatible(cx.common, "certificate invalid"); + err + })?; + + Some(cert_chain) + } + }; + + Ok(Box::new(ExpectClientKx { + config: self.config, + transcript: self.transcript, + randoms: self.randoms, + session_id: self.session_id, + suite: self.suite, + using_ems: self.using_ems, + server_kx: self.server_kx, + client_cert, + send_ticket: self.send_ticket, + })) + } +} + +// --- Process client's KeyExchange --- +struct ExpectClientKx { + config: Arc, + transcript: HandshakeHash, + randoms: ConnectionRandoms, + session_id: SessionID, + suite: &'static Tls12CipherSuite, + using_ems: bool, + server_kx: kx::KeyExchange, + client_cert: Option>, + send_ticket: bool, +} + +impl State for ExpectClientKx { + fn handle(mut self: Box, cx: &mut ServerContext<'_>, m: Message) -> hs::NextStateOrError { + let client_kx = require_handshake_msg!( + m, + HandshakeType::ClientKeyExchange, + HandshakePayload::ClientKeyExchange + )?; + self.transcript.add_message(&m); + let ems_seed = self + .using_ems + .then(|| self.transcript.get_current_hash()); + + // Complete key agreement, and set up encryption with the + // resulting premaster secret. + let peer_kx_params = + tls12::decode_ecdh_params::(cx.common, &client_kx.0)?; + let secrets = ConnectionSecrets::from_key_exchange( + self.server_kx, + &peer_kx_params.public.0, + ems_seed, + self.randoms, + self.suite, + )?; + + self.config.key_log.log( + "CLIENT_RANDOM", + &secrets.randoms.client, + &secrets.master_secret, + ); + cx.common + .start_encryption_tls12(&secrets, Side::Server); + + if let Some(client_cert) = self.client_cert { + Ok(Box::new(ExpectCertificateVerify { + config: self.config, + secrets, + transcript: self.transcript, + session_id: self.session_id, + using_ems: self.using_ems, + client_cert, + send_ticket: self.send_ticket, + })) + } else { + Ok(Box::new(ExpectCcs { + config: self.config, + secrets, + transcript: self.transcript, + session_id: self.session_id, + using_ems: self.using_ems, + resuming: false, + send_ticket: self.send_ticket, + })) + } + } +} + +// --- Process client's certificate proof --- +struct ExpectCertificateVerify { + config: Arc, + secrets: ConnectionSecrets, + transcript: HandshakeHash, + session_id: SessionID, + using_ems: bool, + client_cert: Vec, + send_ticket: bool, +} + +impl State for ExpectCertificateVerify { + fn handle(mut self: Box, cx: &mut ServerContext<'_>, m: Message) -> hs::NextStateOrError { + let rc = { + let sig = require_handshake_msg!( + m, + HandshakeType::CertificateVerify, + HandshakePayload::CertificateVerify + )?; + + match self.transcript.take_handshake_buf() { + Some(msgs) => { + let certs = &self.client_cert; + self.config + .verifier + .verify_tls12_signature(&msgs, &certs[0], sig) + } + None => { + // This should be unreachable; the handshake buffer was initialized with + // client authentication if the verifier wants to offer it. + // `transcript.abandon_client_auth()` can extract it, but its only caller in + // this flow will also set `ExpectClientKx::client_cert` to `None`, making it + // impossible to reach this state. + cx.common + .send_fatal_alert(AlertDescription::AccessDenied); + Err(Error::General("client authentication not set up".into())) + } + } + }; + + if let Err(e) = rc { + cx.common + .send_fatal_alert(AlertDescription::AccessDenied); + return Err(e); + } + + trace!("client CertificateVerify OK"); + cx.common.peer_certificates = Some(self.client_cert); + + self.transcript.add_message(&m); + Ok(Box::new(ExpectCcs { + config: self.config, + secrets: self.secrets, + transcript: self.transcript, + session_id: self.session_id, + using_ems: self.using_ems, + resuming: false, + send_ticket: self.send_ticket, + })) + } +} + +// --- Process client's ChangeCipherSpec --- +struct ExpectCcs { + config: Arc, + secrets: ConnectionSecrets, + transcript: HandshakeHash, + session_id: SessionID, + using_ems: bool, + resuming: bool, + send_ticket: bool, +} + +impl State for ExpectCcs { + fn handle(self: Box, cx: &mut ServerContext<'_>, m: Message) -> hs::NextStateOrError { + match m.payload { + MessagePayload::ChangeCipherSpec(..) => {} + payload => { + return Err(inappropriate_message( + &payload, + &[ContentType::ChangeCipherSpec], + )) + } + } + + // CCS should not be received interleaved with fragmented handshake-level + // message. + cx.common.check_aligned_handshake()?; + + cx.common + .record_layer + .start_decrypting(); + Ok(Box::new(ExpectFinished { + config: self.config, + secrets: self.secrets, + transcript: self.transcript, + session_id: self.session_id, + using_ems: self.using_ems, + resuming: self.resuming, + send_ticket: self.send_ticket, + })) + } +} + +// --- Process client's Finished --- +fn get_server_connection_value_tls12( + secrets: &ConnectionSecrets, + using_ems: bool, + cx: &ServerContext<'_>, + time_now: ticketer::TimeBase, +) -> persist::ServerSessionValue { + let version = ProtocolVersion::TLSv1_2; + let secret = secrets.get_master_secret(); + + let mut v = persist::ServerSessionValue::new( + cx.data.sni.as_ref(), + version, + secrets.suite().common.suite, + secret, + cx.common.peer_certificates.clone(), + cx.common.alpn_protocol.clone(), + cx.data.resumption_data.clone(), + time_now, + 0, + ); + + if using_ems { + v.set_extended_ms_used(); + } + + v +} + +fn emit_ticket( + secrets: &ConnectionSecrets, + transcript: &mut HandshakeHash, + using_ems: bool, + cx: &mut ServerContext<'_>, + ticketer: &dyn ProducesTickets, +) -> Result<(), Error> { + let time_now = ticketer::TimeBase::now()?; + let plain = get_server_connection_value_tls12(secrets, using_ems, cx, time_now).get_encoding(); + + // If we can't produce a ticket for some reason, we can't + // report an error. Send an empty one. + let ticket = ticketer + .encrypt(&plain) + .unwrap_or_default(); + let ticket_lifetime = ticketer.lifetime(); + + let m = Message { + version: ProtocolVersion::TLSv1_2, + payload: MessagePayload::handshake(HandshakeMessagePayload { + typ: HandshakeType::NewSessionTicket, + payload: HandshakePayload::NewSessionTicket(NewSessionTicketPayload::new( + ticket_lifetime, + ticket, + )), + }), + }; + + transcript.add_message(&m); + cx.common.send_msg(m, false); + Ok(()) +} + +fn emit_ccs(common: &mut CommonState) { + let m = Message { + version: ProtocolVersion::TLSv1_2, + payload: MessagePayload::ChangeCipherSpec(ChangeCipherSpecPayload {}), + }; + + common.send_msg(m, false); +} + +fn emit_finished( + secrets: &ConnectionSecrets, + transcript: &mut HandshakeHash, + common: &mut CommonState, +) { + let vh = transcript.get_current_hash(); + let verify_data = secrets.server_verify_data(&vh); + let verify_data_payload = Payload::new(verify_data); + + let f = Message { + version: ProtocolVersion::TLSv1_2, + payload: MessagePayload::handshake(HandshakeMessagePayload { + typ: HandshakeType::Finished, + payload: HandshakePayload::Finished(verify_data_payload), + }), + }; + + transcript.add_message(&f); + common.send_msg(f, true); +} + +struct ExpectFinished { + config: Arc, + secrets: ConnectionSecrets, + transcript: HandshakeHash, + session_id: SessionID, + using_ems: bool, + resuming: bool, + send_ticket: bool, +} + +impl State for ExpectFinished { + fn handle(mut self: Box, cx: &mut ServerContext<'_>, m: Message) -> hs::NextStateOrError { + let finished = + require_handshake_msg!(m, HandshakeType::Finished, HandshakePayload::Finished)?; + + cx.common.check_aligned_handshake()?; + + let vh = self.transcript.get_current_hash(); + let expect_verify_data = self.secrets.client_verify_data(&vh); + + let _fin_verified = + constant_time::verify_slices_are_equal(&expect_verify_data, &finished.0) + .map_err(|_| { + cx.common + .send_fatal_alert(AlertDescription::DecryptError); + Error::DecryptError + }) + .map(|_| verify::FinishedMessageVerified::assertion())?; + + // Save connection, perhaps + if !self.resuming && !self.session_id.is_empty() { + let time_now = ticketer::TimeBase::now()?; + let value = + get_server_connection_value_tls12(&self.secrets, self.using_ems, cx, time_now); + + let worked = self + .config + .session_storage + .put(self.session_id.get_encoding(), value.get_encoding()); + if worked { + debug!("Session saved"); + } else { + debug!("Session not saved"); + } + } + + // Send our CCS and Finished. + self.transcript.add_message(&m); + if !self.resuming { + if self.send_ticket { + emit_ticket( + &self.secrets, + &mut self.transcript, + self.using_ems, + cx, + &*self.config.ticketer, + )?; + } + emit_ccs(cx.common); + cx.common + .record_layer + .start_encrypting(); + emit_finished(&self.secrets, &mut self.transcript, cx.common); + } + + cx.common.start_traffic(); + Ok(Box::new(ExpectTraffic { + secrets: self.secrets, + _fin_verified, + })) + } +} + +// --- Process traffic --- +struct ExpectTraffic { + secrets: ConnectionSecrets, + _fin_verified: verify::FinishedMessageVerified, +} + +impl ExpectTraffic {} + +impl State for ExpectTraffic { + fn handle(self: Box, cx: &mut ServerContext<'_>, m: Message) -> hs::NextStateOrError { + match m.payload { + MessagePayload::ApplicationData(payload) => cx + .common + .take_received_plaintext(payload), + payload => { + return Err(inappropriate_message( + &payload, + &[ContentType::ApplicationData], + )); + } + } + Ok(self) + } + + fn export_keying_material( + &self, + output: &mut [u8], + label: &[u8], + context: Option<&[u8]>, + ) -> Result<(), Error> { + self.secrets + .export_keying_material(output, label, context); + Ok(()) + } + + #[cfg(feature = "secret_extraction")] + fn extract_secrets(&self) -> Result { + self.secrets + .extract_secrets(Side::Server) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/server/tls13.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/server/tls13.rs new file mode 100644 index 0000000000000000000000000000000000000000..ab672f4ba4a92a4fff3902353a3705d79b1d6c25 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/server/tls13.rs @@ -0,0 +1,1388 @@ +use crate::check::inappropriate_handshake_message; +use crate::conn::{CommonState, ConnectionRandoms, State}; +use crate::enums::ProtocolVersion; +use crate::error::Error; +use crate::hash_hs::HandshakeHash; +use crate::key::Certificate; +#[cfg(feature = "logging")] +use crate::log::{debug, trace, warn}; +use crate::msgs::codec::Codec; +use crate::msgs::enums::{AlertDescription, KeyUpdateRequest}; +use crate::msgs::enums::{ContentType, HandshakeType}; +use crate::msgs::handshake::HandshakeMessagePayload; +use crate::msgs::handshake::HandshakePayload; +use crate::msgs::handshake::{NewSessionTicketExtension, NewSessionTicketPayloadTLS13}; +use crate::msgs::message::{Message, MessagePayload}; +use crate::msgs::persist; +use crate::rand; +use crate::server::ServerConfig; +use crate::ticketer; +use crate::tls13::key_schedule::{KeyScheduleTraffic, KeyScheduleTrafficWithClientFinishedPending}; +use crate::tls13::Tls13CipherSuite; +use crate::verify; +#[cfg(feature = "quic")] +use crate::{check::inappropriate_message, conn::Protocol}; +#[cfg(feature = "secret_extraction")] +use crate::{conn::Side, suites::PartiallyExtractedSecrets}; + +use super::hs::{self, HandshakeHashOrBuffer, ServerContext}; +use super::server_conn::ServerConnectionData; + +use std::sync::Arc; + +use ring::constant_time; + +pub(super) use client_hello::CompleteClientHelloHandling; + +mod client_hello { + use crate::enums::SignatureScheme; + use crate::kx; + use crate::msgs::base::{Payload, PayloadU8}; + use crate::msgs::ccs::ChangeCipherSpecPayload; + use crate::msgs::enums::NamedGroup; + use crate::msgs::enums::{Compression, PSKKeyExchangeMode}; + use crate::msgs::handshake::CertReqExtension; + use crate::msgs::handshake::CertificateEntry; + use crate::msgs::handshake::CertificateExtension; + use crate::msgs::handshake::CertificatePayloadTLS13; + use crate::msgs::handshake::CertificateRequestPayloadTLS13; + use crate::msgs::handshake::CertificateStatus; + use crate::msgs::handshake::ClientHelloPayload; + use crate::msgs::handshake::DigitallySignedStruct; + use crate::msgs::handshake::HelloRetryExtension; + use crate::msgs::handshake::HelloRetryRequest; + use crate::msgs::handshake::KeyShareEntry; + use crate::msgs::handshake::Random; + use crate::msgs::handshake::ServerExtension; + use crate::msgs::handshake::ServerHelloPayload; + use crate::msgs::handshake::SessionID; + #[cfg(feature = "quic")] + use crate::quic; + use crate::server::common::ActiveCertifiedKey; + use crate::sign; + use crate::tls13::key_schedule::{ + KeyScheduleEarly, KeyScheduleHandshake, KeySchedulePreHandshake, + }; + + use super::*; + + #[derive(PartialEq)] + pub(super) enum EarlyDataDecision { + Disabled, + RequestedButRejected, + Accepted, + } + + pub(in crate::server) struct CompleteClientHelloHandling { + pub(in crate::server) config: Arc, + pub(in crate::server) transcript: HandshakeHash, + pub(in crate::server) suite: &'static Tls13CipherSuite, + pub(in crate::server) randoms: ConnectionRandoms, + pub(in crate::server) done_retry: bool, + pub(in crate::server) send_ticket: bool, + pub(in crate::server) extra_exts: Vec, + } + + fn max_early_data_size(configured: u32) -> usize { + if configured != 0 { + configured as usize + } else { + // The relevant max_early_data_size may in fact be unknowable: if + // we (the server) have turned off early_data but the client has + // a stale ticket from when we allowed early_data: we'll naturally + // reject early_data but need an upper bound on the amount of data + // to drop. + // + // Use a single maximum-sized message. + 16384 + } + } + + impl CompleteClientHelloHandling { + fn check_binder( + &self, + suite: &'static Tls13CipherSuite, + client_hello: &Message, + psk: &[u8], + binder: &[u8], + ) -> bool { + let binder_plaintext = match &client_hello.payload { + MessagePayload::Handshake { parsed, .. } => { + parsed.get_encoding_for_binder_signing() + } + _ => unreachable!(), + }; + + let handshake_hash = self + .transcript + .get_hash_given(&binder_plaintext); + + let key_schedule = KeyScheduleEarly::new(suite.hkdf_algorithm, psk); + let real_binder = + key_schedule.resumption_psk_binder_key_and_sign_verify_data(&handshake_hash); + + constant_time::verify_slices_are_equal(real_binder.as_ref(), binder).is_ok() + } + + fn attempt_tls13_ticket_decryption( + &mut self, + ticket: &[u8], + ) -> Option { + if self.config.ticketer.enabled() { + self.config + .ticketer + .decrypt(ticket) + .and_then(|plain| persist::ServerSessionValue::read_bytes(&plain)) + } else { + self.config + .session_storage + .take(ticket) + .and_then(|plain| persist::ServerSessionValue::read_bytes(&plain)) + } + } + + pub(in crate::server) fn handle_client_hello( + mut self, + cx: &mut ServerContext<'_>, + server_key: ActiveCertifiedKey, + chm: &Message, + client_hello: &ClientHelloPayload, + mut sigschemes_ext: Vec, + ) -> hs::NextStateOrError { + if client_hello.compression_methods.len() != 1 { + return Err(cx + .common + .illegal_param("client offered wrong compressions")); + } + + let groups_ext = client_hello + .get_namedgroups_extension() + .ok_or_else(|| hs::incompatible(cx.common, "client didn't describe groups"))?; + + let tls13_schemes = sign::supported_sign_tls13(); + sigschemes_ext.retain(|scheme| tls13_schemes.contains(scheme)); + + let shares_ext = client_hello + .get_keyshare_extension() + .ok_or_else(|| hs::incompatible(cx.common, "client didn't send keyshares"))?; + + if client_hello.has_keyshare_extension_with_duplicates() { + return Err(cx + .common + .illegal_param("client sent duplicate keyshares")); + } + + let early_data_requested = client_hello.early_data_extension_offered(); + + // EarlyData extension is illegal in second ClientHello + if self.done_retry && early_data_requested { + return Err(cx + .common + .illegal_param("client sent EarlyData in second ClientHello")); + } + + // choose a share that we support + let chosen_share = self + .config + .kx_groups + .iter() + .find_map(|group| { + shares_ext + .iter() + .find(|share| share.group == group.name) + }); + + let chosen_share = match chosen_share { + Some(s) => s, + None => { + // We don't have a suitable key share. Choose a suitable group and + // send a HelloRetryRequest. + let retry_group_maybe = self + .config + .kx_groups + .iter() + .find(|group| groups_ext.contains(&group.name)) + .cloned(); + + self.transcript.add_message(chm); + + if let Some(group) = retry_group_maybe { + if self.done_retry { + return Err(cx + .common + .illegal_param("did not follow retry request")); + } + + emit_hello_retry_request( + &mut self.transcript, + self.suite, + client_hello.session_id, + cx.common, + group.name, + ); + emit_fake_ccs(cx.common); + + let skip_early_data = max_early_data_size(self.config.max_early_data_size); + + let next = Box::new(hs::ExpectClientHello { + config: self.config, + transcript: HandshakeHashOrBuffer::Hash(self.transcript), + #[cfg(feature = "tls12")] + session_id: SessionID::empty(), + #[cfg(feature = "tls12")] + using_ems: false, + done_retry: true, + send_ticket: self.send_ticket, + extra_exts: self.extra_exts, + }); + + return if early_data_requested { + Ok(Box::new(ExpectAndSkipRejectedEarlyData { + skip_data_left: skip_early_data, + next, + })) + } else { + Ok(next) + }; + } + + return Err(hs::incompatible( + cx.common, + "no kx group overlap with client", + )); + } + }; + + let mut chosen_psk_index = None; + let mut resumedata = None; + let time_now = ticketer::TimeBase::now()?; + + if let Some(psk_offer) = client_hello.get_psk() { + if !client_hello.check_psk_ext_is_last() { + return Err(cx + .common + .illegal_param("psk extension in wrong position")); + } + + if psk_offer.binders.is_empty() { + return Err(hs::decode_error(cx.common, "psk extension missing binder")); + } + + if psk_offer.binders.len() != psk_offer.identities.len() { + return Err(cx + .common + .illegal_param("psk extension mismatched ids/binders")); + } + + for (i, psk_id) in psk_offer.identities.iter().enumerate() { + let resume = match self + .attempt_tls13_ticket_decryption(&psk_id.identity.0) + .map(|resumedata| { + resumedata.set_freshness(psk_id.obfuscated_ticket_age, time_now) + }) + .filter(|resumedata| { + hs::can_resume(self.suite.into(), &cx.data.sni, false, resumedata) + }) { + Some(resume) => resume, + None => continue, + }; + + if !self.check_binder( + self.suite, + chm, + &resume.master_secret.0, + &psk_offer.binders[i].0, + ) { + cx.common + .send_fatal_alert(AlertDescription::DecryptError); + return Err(Error::PeerMisbehavedError( + "client sent wrong binder".to_string(), + )); + } + + chosen_psk_index = Some(i); + resumedata = Some(resume); + break; + } + } + + if !client_hello.psk_mode_offered(PSKKeyExchangeMode::PSK_DHE_KE) { + debug!("Client unwilling to resume, DHE_KE not offered"); + self.send_ticket = false; + chosen_psk_index = None; + resumedata = None; + } else { + self.send_ticket = true; + } + + if let Some(ref resume) = resumedata { + cx.data.received_resumption_data = Some(resume.application_data.0.clone()); + cx.common.peer_certificates = resume.client_cert_chain.clone(); + } + + let full_handshake = resumedata.is_none(); + self.transcript.add_message(chm); + let key_schedule = emit_server_hello( + &mut self.transcript, + &self.randoms, + self.suite, + cx, + &client_hello.session_id, + chosen_share, + chosen_psk_index, + resumedata + .as_ref() + .map(|x| &x.master_secret.0[..]), + &self.config, + )?; + if !self.done_retry { + emit_fake_ccs(cx.common); + } + + let (mut ocsp_response, mut sct_list) = + (server_key.get_ocsp(), server_key.get_sct_list()); + let doing_early_data = emit_encrypted_extensions( + &mut self.transcript, + self.suite, + cx, + &mut ocsp_response, + &mut sct_list, + client_hello, + resumedata.as_ref(), + self.extra_exts, + &self.config, + )?; + + let doing_client_auth = if full_handshake { + let client_auth = + emit_certificate_req_tls13(&mut self.transcript, cx, &self.config)?; + emit_certificate_tls13( + &mut self.transcript, + cx.common, + server_key.get_cert(), + ocsp_response, + sct_list, + ); + emit_certificate_verify_tls13( + &mut self.transcript, + cx.common, + server_key.get_key(), + &sigschemes_ext, + )?; + client_auth + } else { + false + }; + + // If we're not doing early data, then the next messages we receive + // are encrypted with the handshake keys. + match doing_early_data { + EarlyDataDecision::Disabled => { + cx.common + .record_layer + .set_message_decrypter( + self.suite + .derive_decrypter(key_schedule.client_key()), + ); + cx.data.early_data.reject(); + } + EarlyDataDecision::RequestedButRejected => { + debug!("Client requested early_data, but not accepted: switching to handshake keys with trial decryption"); + cx.common + .record_layer + .set_message_decrypter_with_trial_decryption( + self.suite + .derive_decrypter(key_schedule.client_key()), + max_early_data_size(self.config.max_early_data_size), + ); + cx.data.early_data.reject(); + } + EarlyDataDecision::Accepted => { + cx.data + .early_data + .accept(self.config.max_early_data_size as usize); + } + } + + cx.common.check_aligned_handshake()?; + let key_schedule_traffic = emit_finished_tls13( + &mut self.transcript, + self.suite, + &self.randoms, + cx, + key_schedule, + &self.config, + ); + + if !doing_client_auth && self.config.send_half_rtt_data { + // Application data can be sent immediately after Finished, in one + // flight. However, if client auth is enabled, we don't want to send + // application data to an unauthenticated peer. + cx.common.start_outgoing_traffic(); + } + + if doing_client_auth { + Ok(Box::new(ExpectCertificate { + config: self.config, + transcript: self.transcript, + suite: self.suite, + key_schedule: key_schedule_traffic, + send_ticket: self.send_ticket, + })) + } else if doing_early_data == EarlyDataDecision::Accepted && !cx.common.is_quic() { + // Not used for QUIC: RFC 9001 §8.3: Clients MUST NOT send the EndOfEarlyData + // message. A server MUST treat receipt of a CRYPTO frame in a 0-RTT packet as a + // connection error of type PROTOCOL_VIOLATION. + Ok(Box::new(ExpectEarlyData { + config: self.config, + transcript: self.transcript, + suite: self.suite, + key_schedule: key_schedule_traffic, + send_ticket: self.send_ticket, + })) + } else { + Ok(Box::new(ExpectFinished { + config: self.config, + transcript: self.transcript, + suite: self.suite, + key_schedule: key_schedule_traffic, + send_ticket: self.send_ticket, + })) + } + } + } + + fn emit_server_hello( + transcript: &mut HandshakeHash, + randoms: &ConnectionRandoms, + suite: &'static Tls13CipherSuite, + cx: &mut ServerContext<'_>, + session_id: &SessionID, + share: &KeyShareEntry, + chosen_psk_idx: Option, + resuming_psk: Option<&[u8]>, + config: &ServerConfig, + ) -> Result { + let mut extensions = Vec::new(); + + // Prepare key exchange + let kx = kx::KeyExchange::choose(share.group, &config.kx_groups) + .and_then(kx::KeyExchange::start) + .ok_or(Error::FailedToGetRandomBytes)?; + + let kse = KeyShareEntry::new(share.group, kx.pubkey.as_ref()); + extensions.push(ServerExtension::KeyShare(kse)); + extensions.push(ServerExtension::SupportedVersions(ProtocolVersion::TLSv1_3)); + + if let Some(psk_idx) = chosen_psk_idx { + extensions.push(ServerExtension::PresharedKey(psk_idx as u16)); + } + + let sh = Message { + version: ProtocolVersion::TLSv1_2, + payload: MessagePayload::handshake(HandshakeMessagePayload { + typ: HandshakeType::ServerHello, + payload: HandshakePayload::ServerHello(ServerHelloPayload { + legacy_version: ProtocolVersion::TLSv1_2, + random: Random::from(randoms.server), + session_id: *session_id, + cipher_suite: suite.common.suite, + compression_method: Compression::Null, + extensions, + }), + }), + }; + + cx.common.check_aligned_handshake()?; + + let client_hello_hash = transcript.get_hash_given(&[]); + + trace!("sending server hello {:?}", sh); + transcript.add_message(&sh); + cx.common.send_msg(sh, false); + + // Start key schedule + let (key_schedule_pre_handshake, early_data_client_key) = if let Some(psk) = resuming_psk { + let early_key_schedule = KeyScheduleEarly::new(suite.hkdf_algorithm, psk); + let client_early_traffic_secret = early_key_schedule.client_early_traffic_secret( + &client_hello_hash, + &*config.key_log, + &randoms.client, + ); + + ( + KeySchedulePreHandshake::from(early_key_schedule), + Some(client_early_traffic_secret), + ) + } else { + (KeySchedulePreHandshake::new(suite.hkdf_algorithm), None) + }; + + // Do key exchange + let key_schedule = kx.complete(&share.payload.0, |secret| { + Ok(key_schedule_pre_handshake.into_handshake(secret)) + })?; + + let handshake_hash = transcript.get_current_hash(); + let (key_schedule, _client_key, server_key) = key_schedule.derive_handshake_secrets( + handshake_hash, + &*config.key_log, + &randoms.client, + ); + + // Set up to encrypt with handshake secrets, but decrypt with early_data keys. + // If not doing early_data after all, this is corrected later to the handshake + // keys (now stored in key_schedule). + cx.common + .record_layer + .set_message_encrypter(suite.derive_encrypter(&server_key)); + + if let Some(key) = &early_data_client_key { + cx.common + .record_layer + .set_message_decrypter(suite.derive_decrypter(key)); + } + + #[cfg(feature = "quic")] + if cx.common.is_quic() { + // If 0-RTT should be rejected, this will be clobbered by ExtensionProcessing + // before the application can see. + cx.common.quic.early_secret = early_data_client_key; + cx.common.quic.hs_secrets = + Some(quic::Secrets::new(_client_key, server_key, suite, false)); + } + + Ok(key_schedule) + } + + fn emit_fake_ccs(common: &mut CommonState) { + if common.is_quic() { + return; + } + let m = Message { + version: ProtocolVersion::TLSv1_2, + payload: MessagePayload::ChangeCipherSpec(ChangeCipherSpecPayload {}), + }; + common.send_msg(m, false); + } + + fn emit_hello_retry_request( + transcript: &mut HandshakeHash, + suite: &'static Tls13CipherSuite, + session_id: SessionID, + common: &mut CommonState, + group: NamedGroup, + ) { + let mut req = HelloRetryRequest { + legacy_version: ProtocolVersion::TLSv1_2, + session_id, + cipher_suite: suite.common.suite, + extensions: Vec::new(), + }; + + req.extensions + .push(HelloRetryExtension::KeyShare(group)); + req.extensions + .push(HelloRetryExtension::SupportedVersions( + ProtocolVersion::TLSv1_3, + )); + + let m = Message { + version: ProtocolVersion::TLSv1_2, + payload: MessagePayload::handshake(HandshakeMessagePayload { + typ: HandshakeType::HelloRetryRequest, + payload: HandshakePayload::HelloRetryRequest(req), + }), + }; + + trace!("Requesting retry {:?}", m); + transcript.rollup_for_hrr(); + transcript.add_message(&m); + common.send_msg(m, false); + } + + fn decide_if_early_data_allowed( + cx: &mut ServerContext<'_>, + client_hello: &ClientHelloPayload, + resumedata: Option<&persist::ServerSessionValue>, + suite: &'static Tls13CipherSuite, + config: &ServerConfig, + ) -> EarlyDataDecision { + let early_data_requested = client_hello.early_data_extension_offered(); + let rejected_or_disabled = match early_data_requested { + true => EarlyDataDecision::RequestedButRejected, + false => EarlyDataDecision::Disabled, + }; + + let resume = match resumedata { + Some(resume) => resume, + None => { + // never any early data if not resuming. + return rejected_or_disabled; + } + }; + + /* Non-zero max_early_data_size controls whether early_data is allowed at all. + * We also require stateful resumption. */ + let early_data_configured = config.max_early_data_size > 0 && !config.ticketer.enabled(); + + /* "For PSKs provisioned via NewSessionTicket, a server MUST validate + * that the ticket age for the selected PSK identity (computed by + * subtracting ticket_age_add from PskIdentity.obfuscated_ticket_age + * modulo 2^32) is within a small tolerance of the time since the ticket + * was issued (see Section 8)." -- this is implemented in ServerSessionValue::set_freshness() + * and related. + * + * "In order to accept early data, the server [...] MUST verify that the + * following values are the same as those associated with the + * selected PSK: + * + * - The TLS version number + * - The selected cipher suite + * - The selected ALPN [RFC7301] protocol, if any" + * + * (RFC8446, 4.2.10) */ + let early_data_possible = early_data_requested + && resume.is_fresh() + && Some(resume.version) == cx.common.negotiated_version + && resume.cipher_suite == suite.common.suite + && resume.alpn.as_ref().map(|x| &x.0) == cx.common.alpn_protocol.as_ref(); + + if early_data_configured && early_data_possible && !cx.data.early_data.was_rejected() { + EarlyDataDecision::Accepted + } else { + #[cfg(feature = "quic")] + if cx.common.is_quic() { + // Clobber value set in tls13::emit_server_hello + cx.common.quic.early_secret = None; + } + + rejected_or_disabled + } + } + + fn emit_encrypted_extensions( + transcript: &mut HandshakeHash, + suite: &'static Tls13CipherSuite, + cx: &mut ServerContext<'_>, + ocsp_response: &mut Option<&[u8]>, + sct_list: &mut Option<&[u8]>, + hello: &ClientHelloPayload, + resumedata: Option<&persist::ServerSessionValue>, + extra_exts: Vec, + config: &ServerConfig, + ) -> Result { + let mut ep = hs::ExtensionProcessing::new(); + ep.process_common( + config, + cx, + ocsp_response, + sct_list, + hello, + resumedata, + extra_exts, + )?; + + let early_data = decide_if_early_data_allowed(cx, hello, resumedata, suite, config); + if early_data == EarlyDataDecision::Accepted { + ep.exts.push(ServerExtension::EarlyData); + } + + let ee = Message { + version: ProtocolVersion::TLSv1_3, + payload: MessagePayload::handshake(HandshakeMessagePayload { + typ: HandshakeType::EncryptedExtensions, + payload: HandshakePayload::EncryptedExtensions(ep.exts), + }), + }; + + trace!("sending encrypted extensions {:?}", ee); + transcript.add_message(&ee); + cx.common.send_msg(ee, true); + Ok(early_data) + } + + fn emit_certificate_req_tls13( + transcript: &mut HandshakeHash, + cx: &mut ServerContext<'_>, + config: &ServerConfig, + ) -> Result { + if !config.verifier.offer_client_auth() { + return Ok(false); + } + + let mut cr = CertificateRequestPayloadTLS13 { + context: PayloadU8::empty(), + extensions: Vec::new(), + }; + + let schemes = config + .verifier + .supported_verify_schemes(); + cr.extensions + .push(CertReqExtension::SignatureAlgorithms(schemes.to_vec())); + + let names = config + .verifier + .client_auth_root_subjects() + .ok_or_else(|| { + debug!("could not determine root subjects based on SNI"); + cx.common + .send_fatal_alert(AlertDescription::AccessDenied); + Error::General("client rejected by client_auth_root_subjects".into()) + })?; + + if !names.is_empty() { + cr.extensions + .push(CertReqExtension::AuthorityNames(names)); + } + + let m = Message { + version: ProtocolVersion::TLSv1_3, + payload: MessagePayload::handshake(HandshakeMessagePayload { + typ: HandshakeType::CertificateRequest, + payload: HandshakePayload::CertificateRequestTLS13(cr), + }), + }; + + trace!("Sending CertificateRequest {:?}", m); + transcript.add_message(&m); + cx.common.send_msg(m, true); + Ok(true) + } + + fn emit_certificate_tls13( + transcript: &mut HandshakeHash, + common: &mut CommonState, + cert_chain: &[Certificate], + ocsp_response: Option<&[u8]>, + sct_list: Option<&[u8]>, + ) { + let mut cert_entries = vec![]; + for cert in cert_chain { + let entry = CertificateEntry { + cert: cert.to_owned(), + exts: Vec::new(), + }; + + cert_entries.push(entry); + } + + if let Some(end_entity_cert) = cert_entries.first_mut() { + // Apply OCSP response to first certificate (we don't support OCSP + // except for leaf certs). + if let Some(ocsp) = ocsp_response { + let cst = CertificateStatus::new(ocsp.to_owned()); + end_entity_cert + .exts + .push(CertificateExtension::CertificateStatus(cst)); + } + + // Likewise, SCT + if let Some(sct_list) = sct_list { + end_entity_cert + .exts + .push(CertificateExtension::make_sct(sct_list.to_owned())); + } + } + + let cert_body = CertificatePayloadTLS13::new(cert_entries); + let c = Message { + version: ProtocolVersion::TLSv1_3, + payload: MessagePayload::handshake(HandshakeMessagePayload { + typ: HandshakeType::Certificate, + payload: HandshakePayload::CertificateTLS13(cert_body), + }), + }; + + trace!("sending certificate {:?}", c); + transcript.add_message(&c); + common.send_msg(c, true); + } + + fn emit_certificate_verify_tls13( + transcript: &mut HandshakeHash, + common: &mut CommonState, + signing_key: &dyn sign::SigningKey, + schemes: &[SignatureScheme], + ) -> Result<(), Error> { + let message = verify::construct_tls13_server_verify_message(&transcript.get_current_hash()); + + let signer = signing_key + .choose_scheme(schemes) + .ok_or_else(|| hs::incompatible(common, "no overlapping sigschemes"))?; + + let scheme = signer.scheme(); + let sig = signer.sign(&message)?; + + let cv = DigitallySignedStruct::new(scheme, sig); + + let m = Message { + version: ProtocolVersion::TLSv1_3, + payload: MessagePayload::handshake(HandshakeMessagePayload { + typ: HandshakeType::CertificateVerify, + payload: HandshakePayload::CertificateVerify(cv), + }), + }; + + trace!("sending certificate-verify {:?}", m); + transcript.add_message(&m); + common.send_msg(m, true); + Ok(()) + } + + fn emit_finished_tls13( + transcript: &mut HandshakeHash, + suite: &'static Tls13CipherSuite, + randoms: &ConnectionRandoms, + cx: &mut ServerContext<'_>, + key_schedule: KeyScheduleHandshake, + config: &ServerConfig, + ) -> KeyScheduleTrafficWithClientFinishedPending { + let handshake_hash = transcript.get_current_hash(); + let verify_data = key_schedule.sign_server_finish(&handshake_hash); + let verify_data_payload = Payload::new(verify_data.as_ref()); + + let m = Message { + version: ProtocolVersion::TLSv1_3, + payload: MessagePayload::handshake(HandshakeMessagePayload { + typ: HandshakeType::Finished, + payload: HandshakePayload::Finished(verify_data_payload), + }), + }; + + trace!("sending finished {:?}", m); + transcript.add_message(&m); + let hash_at_server_fin = transcript.get_current_hash(); + cx.common.send_msg(m, true); + + // Now move to application data keys. Read key change is deferred until + // the Finish message is received & validated. + let (key_schedule_traffic, _client_key, server_key) = key_schedule + .into_traffic_with_client_finished_pending( + hash_at_server_fin, + &*config.key_log, + &randoms.client, + ); + cx.common + .record_layer + .set_message_encrypter(suite.derive_encrypter(&server_key)); + + #[cfg(feature = "quic")] + { + cx.common.quic.traffic_secrets = + Some(quic::Secrets::new(_client_key, server_key, suite, false)); + } + + key_schedule_traffic + } +} + +struct ExpectAndSkipRejectedEarlyData { + skip_data_left: usize, + next: Box, +} + +impl State for ExpectAndSkipRejectedEarlyData { + fn handle(mut self: Box, cx: &mut ServerContext<'_>, m: Message) -> hs::NextStateOrError { + /* "The server then ignores early data by skipping all records with an external + * content type of "application_data" (indicating that they are encrypted), + * up to the configured max_early_data_size." + * (RFC8446, 14.2.10) */ + if let MessagePayload::ApplicationData(ref skip_data) = m.payload { + if skip_data.0.len() <= self.skip_data_left { + self.skip_data_left -= skip_data.0.len(); + return Ok(self); + } + } + + self.next.handle(cx, m) + } +} + +struct ExpectCertificate { + config: Arc, + transcript: HandshakeHash, + suite: &'static Tls13CipherSuite, + key_schedule: KeyScheduleTrafficWithClientFinishedPending, + send_ticket: bool, +} + +impl State for ExpectCertificate { + fn handle(mut self: Box, cx: &mut ServerContext<'_>, m: Message) -> hs::NextStateOrError { + let certp = require_handshake_msg!( + m, + HandshakeType::Certificate, + HandshakePayload::CertificateTLS13 + )?; + self.transcript.add_message(&m); + + // We don't send any CertificateRequest extensions, so any extensions + // here are illegal. + if certp.any_entry_has_extension() { + return Err(Error::PeerMisbehavedError( + "client sent unsolicited cert extension".to_string(), + )); + } + + let client_cert = certp.convert(); + + let mandatory = self + .config + .verifier + .client_auth_mandatory() + .ok_or_else(|| { + debug!("could not determine if client auth is mandatory based on SNI"); + cx.common + .send_fatal_alert(AlertDescription::AccessDenied); + Error::General("client rejected by client_auth_mandatory".into()) + })?; + + let (end_entity, intermediates) = match client_cert.split_first() { + None => { + if !mandatory { + debug!("client auth requested but no certificate supplied"); + self.transcript.abandon_client_auth(); + return Ok(Box::new(ExpectFinished { + config: self.config, + suite: self.suite, + key_schedule: self.key_schedule, + transcript: self.transcript, + send_ticket: self.send_ticket, + })); + } + + cx.common + .send_fatal_alert(AlertDescription::CertificateRequired); + return Err(Error::NoCertificatesPresented); + } + Some(chain) => chain, + }; + + let now = std::time::SystemTime::now(); + self.config + .verifier + .verify_client_cert(end_entity, intermediates, now) + .map_err(|err| { + hs::incompatible(cx.common, "certificate invalid"); + err + })?; + + Ok(Box::new(ExpectCertificateVerify { + config: self.config, + suite: self.suite, + transcript: self.transcript, + key_schedule: self.key_schedule, + client_cert, + send_ticket: self.send_ticket, + })) + } +} + +struct ExpectCertificateVerify { + config: Arc, + transcript: HandshakeHash, + suite: &'static Tls13CipherSuite, + key_schedule: KeyScheduleTrafficWithClientFinishedPending, + client_cert: Vec, + send_ticket: bool, +} + +impl State for ExpectCertificateVerify { + fn handle(mut self: Box, cx: &mut ServerContext<'_>, m: Message) -> hs::NextStateOrError { + let rc = { + let sig = require_handshake_msg!( + m, + HandshakeType::CertificateVerify, + HandshakePayload::CertificateVerify + )?; + let handshake_hash = self.transcript.get_current_hash(); + self.transcript.abandon_client_auth(); + let certs = &self.client_cert; + let msg = verify::construct_tls13_client_verify_message(&handshake_hash); + + self.config + .verifier + .verify_tls13_signature(&msg, &certs[0], sig) + }; + + if let Err(e) = rc { + cx.common + .send_fatal_alert(AlertDescription::AccessDenied); + return Err(e); + } + + trace!("client CertificateVerify OK"); + cx.common.peer_certificates = Some(self.client_cert); + + self.transcript.add_message(&m); + Ok(Box::new(ExpectFinished { + config: self.config, + suite: self.suite, + key_schedule: self.key_schedule, + transcript: self.transcript, + send_ticket: self.send_ticket, + })) + } +} + +// --- Process (any number of) early ApplicationData messages, +// followed by a terminating handshake EndOfEarlyData message --- + +struct ExpectEarlyData { + config: Arc, + transcript: HandshakeHash, + suite: &'static Tls13CipherSuite, + key_schedule: KeyScheduleTrafficWithClientFinishedPending, + send_ticket: bool, +} + +impl State for ExpectEarlyData { + fn handle(mut self: Box, cx: &mut ServerContext<'_>, m: Message) -> hs::NextStateOrError { + match m.payload { + MessagePayload::ApplicationData(payload) => { + match cx + .data + .early_data + .take_received_plaintext(payload) + { + true => Ok(self), + false => { + cx.common + .send_fatal_alert(AlertDescription::UnexpectedMessage); + Err(Error::PeerMisbehavedError( + "too much early_data received".into(), + )) + } + } + } + MessagePayload::Handshake { + parsed: + HandshakeMessagePayload { + typ: HandshakeType::EndOfEarlyData, + payload: HandshakePayload::EndOfEarlyData, + }, + .. + } => { + cx.common + .record_layer + .set_message_decrypter( + self.suite + .derive_decrypter(self.key_schedule.client_key()), + ); + + self.transcript.add_message(&m); + Ok(Box::new(ExpectFinished { + config: self.config, + suite: self.suite, + key_schedule: self.key_schedule, + transcript: self.transcript, + send_ticket: self.send_ticket, + })) + } + payload => Err(inappropriate_handshake_message( + &payload, + &[ContentType::ApplicationData, ContentType::Handshake], + &[HandshakeType::EndOfEarlyData], + )), + } + } +} + +// --- Process client's Finished --- +fn get_server_session_value( + transcript: &mut HandshakeHash, + suite: &'static Tls13CipherSuite, + key_schedule: &KeyScheduleTraffic, + cx: &ServerContext<'_>, + nonce: &[u8], + time_now: ticketer::TimeBase, + age_obfuscation_offset: u32, +) -> persist::ServerSessionValue { + let version = ProtocolVersion::TLSv1_3; + + let handshake_hash = transcript.get_current_hash(); + let secret = + key_schedule.resumption_master_secret_and_derive_ticket_psk(&handshake_hash, nonce); + + persist::ServerSessionValue::new( + cx.data.sni.as_ref(), + version, + suite.common.suite, + secret, + cx.common.peer_certificates.clone(), + cx.common.alpn_protocol.clone(), + cx.data.resumption_data.clone(), + time_now, + age_obfuscation_offset, + ) +} + +struct ExpectFinished { + config: Arc, + transcript: HandshakeHash, + suite: &'static Tls13CipherSuite, + key_schedule: KeyScheduleTrafficWithClientFinishedPending, + send_ticket: bool, +} + +impl ExpectFinished { + fn emit_ticket( + transcript: &mut HandshakeHash, + suite: &'static Tls13CipherSuite, + cx: &mut ServerContext<'_>, + key_schedule: &KeyScheduleTraffic, + config: &ServerConfig, + ) -> Result<(), Error> { + let nonce = rand::random_vec(32)?; + let now = ticketer::TimeBase::now()?; + let age_add = rand::random_u32()?; + let plain = + get_server_session_value(transcript, suite, key_schedule, cx, &nonce, now, age_add) + .get_encoding(); + + let stateless = config.ticketer.enabled(); + let (ticket, lifetime) = if stateless { + let ticket = match config.ticketer.encrypt(&plain) { + Some(t) => t, + None => return Ok(()), + }; + (ticket, config.ticketer.lifetime()) + } else { + let id = rand::random_vec(32)?; + let stored = config + .session_storage + .put(id.clone(), plain); + if !stored { + trace!("resumption not available; not issuing ticket"); + return Ok(()); + } + let stateful_lifetime = 24 * 60 * 60; // this is a bit of a punt + (id, stateful_lifetime) + }; + + let mut payload = NewSessionTicketPayloadTLS13::new(lifetime, age_add, nonce, ticket); + + if config.max_early_data_size > 0 { + if !stateless { + payload + .exts + .push(NewSessionTicketExtension::EarlyData( + config.max_early_data_size, + )); + } else { + // We implement RFC8446 section 8.1: by enforcing that 0-RTT is + // only possible if using stateful resumption + warn!("early_data with stateless resumption is not allowed"); + } + } + + let m = Message { + version: ProtocolVersion::TLSv1_3, + payload: MessagePayload::handshake(HandshakeMessagePayload { + typ: HandshakeType::NewSessionTicket, + payload: HandshakePayload::NewSessionTicketTLS13(payload), + }), + }; + + trace!("sending new ticket {:?} (stateless: {})", m, stateless); + transcript.add_message(&m); + cx.common.send_msg(m, true); + Ok(()) + } +} + +impl State for ExpectFinished { + fn handle(mut self: Box, cx: &mut ServerContext<'_>, m: Message) -> hs::NextStateOrError { + let finished = + require_handshake_msg!(m, HandshakeType::Finished, HandshakePayload::Finished)?; + + let handshake_hash = self.transcript.get_current_hash(); + let (key_schedule_traffic, expect_verify_data, client_key) = self + .key_schedule + .sign_client_finish(&handshake_hash); + + let fin = constant_time::verify_slices_are_equal(expect_verify_data.as_ref(), &finished.0) + .map_err(|_| { + cx.common + .send_fatal_alert(AlertDescription::DecryptError); + warn!("Finished wrong"); + Error::DecryptError + }) + .map(|_| verify::FinishedMessageVerified::assertion())?; + + // nb. future derivations include Client Finished, but not the + // main application data keying. + self.transcript.add_message(&m); + + cx.common.check_aligned_handshake()?; + + // Install keying to read future messages. + cx.common + .record_layer + .set_message_decrypter(self.suite.derive_decrypter(&client_key)); + + if self.send_ticket { + Self::emit_ticket( + &mut self.transcript, + self.suite, + cx, + &key_schedule_traffic, + &self.config, + )?; + } + + // Application data may now flow, even if we have client auth enabled. + cx.common.start_traffic(); + + #[cfg(feature = "quic")] + { + if cx.common.protocol == Protocol::Quic { + return Ok(Box::new(ExpectQuicTraffic { + key_schedule: key_schedule_traffic, + _fin_verified: fin, + })); + } + } + + Ok(Box::new(ExpectTraffic { + suite: self.suite, + key_schedule: key_schedule_traffic, + want_write_key_update: false, + _fin_verified: fin, + })) + } +} + +// --- Process traffic --- +struct ExpectTraffic { + suite: &'static Tls13CipherSuite, + key_schedule: KeyScheduleTraffic, + want_write_key_update: bool, + _fin_verified: verify::FinishedMessageVerified, +} + +impl ExpectTraffic { + fn handle_key_update( + &mut self, + common: &mut CommonState, + kur: &KeyUpdateRequest, + ) -> Result<(), Error> { + #[cfg(feature = "quic")] + { + if let Protocol::Quic = common.protocol { + common.send_fatal_alert(AlertDescription::UnexpectedMessage); + let msg = "KeyUpdate received in QUIC connection".to_string(); + warn!("{}", msg); + return Err(Error::PeerMisbehavedError(msg)); + } + } + + common.check_aligned_handshake()?; + + match kur { + KeyUpdateRequest::UpdateNotRequested => {} + KeyUpdateRequest::UpdateRequested => { + self.want_write_key_update = true; + } + _ => { + common.send_fatal_alert(AlertDescription::IllegalParameter); + return Err(Error::CorruptMessagePayload(ContentType::Handshake)); + } + } + + // Update our read-side keys. + let new_read_key = self + .key_schedule + .next_client_application_traffic_secret(); + common + .record_layer + .set_message_decrypter( + self.suite + .derive_decrypter(&new_read_key), + ); + + Ok(()) + } +} + +impl State for ExpectTraffic { + fn handle(mut self: Box, cx: &mut ServerContext, m: Message) -> hs::NextStateOrError { + match m.payload { + MessagePayload::ApplicationData(payload) => cx + .common + .take_received_plaintext(payload), + MessagePayload::Handshake { + parsed: + HandshakeMessagePayload { + payload: HandshakePayload::KeyUpdate(key_update), + .. + }, + .. + } => self.handle_key_update(cx.common, &key_update)?, + payload => { + return Err(inappropriate_handshake_message( + &payload, + &[ContentType::ApplicationData, ContentType::Handshake], + &[HandshakeType::KeyUpdate], + )); + } + } + + Ok(self) + } + + fn export_keying_material( + &self, + output: &mut [u8], + label: &[u8], + context: Option<&[u8]>, + ) -> Result<(), Error> { + self.key_schedule + .export_keying_material(output, label, context) + } + + fn perhaps_write_key_update(&mut self, common: &mut CommonState) { + if self.want_write_key_update { + self.want_write_key_update = false; + common.send_msg_encrypt(Message::build_key_update_notify().into()); + + let write_key = self + .key_schedule + .next_server_application_traffic_secret(); + common + .record_layer + .set_message_encrypter(self.suite.derive_encrypter(&write_key)); + } + } + + #[cfg(feature = "secret_extraction")] + fn extract_secrets(&self) -> Result { + self.key_schedule + .extract_secrets(self.suite.common.aead_algorithm, Side::Server) + } +} + +#[cfg(feature = "quic")] +struct ExpectQuicTraffic { + key_schedule: KeyScheduleTraffic, + _fin_verified: verify::FinishedMessageVerified, +} + +#[cfg(feature = "quic")] +impl State for ExpectQuicTraffic { + fn handle(self: Box, _cx: &mut ServerContext<'_>, m: Message) -> hs::NextStateOrError { + // reject all messages + Err(inappropriate_message(&m.payload, &[])) + } + + fn export_keying_material( + &self, + output: &mut [u8], + label: &[u8], + context: Option<&[u8]>, + ) -> Result<(), Error> { + self.key_schedule + .export_keying_material(output, label, context) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-arstechnica.0.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-arstechnica.0.der new file mode 100644 index 0000000000000000000000000000000000000000..ac81cd85ec8d9eaddab3eedc92cfbf72ae643905 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-arstechnica.0.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-arstechnica.1.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-arstechnica.1.der new file mode 100644 index 0000000000000000000000000000000000000000..93f1fb0c6b5686ff607c1297cd0adbdd08b28f54 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-arstechnica.1.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-arstechnica.2.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-arstechnica.2.der new file mode 100644 index 0000000000000000000000000000000000000000..1dfb0e70faadbce1e2af09df6a528e061e25c471 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-arstechnica.2.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-arstechnica.3.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-arstechnica.3.der new file mode 100644 index 0000000000000000000000000000000000000000..75df0cc7c0be230aca9aec4f9d5e958ea3b268ac Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-arstechnica.3.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-duckduckgo.0.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-duckduckgo.0.der new file mode 100644 index 0000000000000000000000000000000000000000..9f8267ca9259269393b3af3301adc69efbeee840 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-duckduckgo.0.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-duckduckgo.1.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-duckduckgo.1.der new file mode 100644 index 0000000000000000000000000000000000000000..dd6a50f3273eab884f2245df8b0ad90967850380 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-duckduckgo.1.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-github.0.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-github.0.der new file mode 100644 index 0000000000000000000000000000000000000000..86d6fce22f2ac46e8eb07684d21a843addd541e6 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-github.0.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-github.1.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-github.1.der new file mode 100644 index 0000000000000000000000000000000000000000..78a66bb47b43ec0f159ad7b272bac79c6ca9a5fc Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-github.1.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-google.0.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-google.0.der new file mode 100644 index 0000000000000000000000000000000000000000..e8c41b21f57de6a6820185eb494897c042f5b666 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-google.0.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-google.1.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-google.1.der new file mode 100644 index 0000000000000000000000000000000000000000..6671504243234497789577922adeb7c9f40d61a8 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-google.1.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-google.2.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-google.2.der new file mode 100644 index 0000000000000000000000000000000000000000..fd888ec600cd6080760b109daa9c26d8ea9a88e1 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-google.2.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-hn.0.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-hn.0.der new file mode 100644 index 0000000000000000000000000000000000000000..bc42b61abcbe360423cb87a967b31ce7ce68cfa2 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-hn.0.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-hn.1.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-hn.1.der new file mode 100644 index 0000000000000000000000000000000000000000..dd6a50f3273eab884f2245df8b0ad90967850380 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-hn.1.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-reddit.0.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-reddit.0.der new file mode 100644 index 0000000000000000000000000000000000000000..3a26d368ceee328890f4fb354327ed097b7bafea Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-reddit.0.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-reddit.1.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-reddit.1.der new file mode 100644 index 0000000000000000000000000000000000000000..dd6a50f3273eab884f2245df8b0ad90967850380 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-reddit.1.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-rustlang.0.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-rustlang.0.der new file mode 100644 index 0000000000000000000000000000000000000000..3af1cadfd8f23ad9eb304b9df27ba2166c3f9b02 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-rustlang.0.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-rustlang.1.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-rustlang.1.der new file mode 100644 index 0000000000000000000000000000000000000000..93f1fb0c6b5686ff607c1297cd0adbdd08b28f54 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-rustlang.1.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-rustlang.2.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-rustlang.2.der new file mode 100644 index 0000000000000000000000000000000000000000..1dfb0e70faadbce1e2af09df6a528e061e25c471 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-rustlang.2.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-rustlang.3.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-rustlang.3.der new file mode 100644 index 0000000000000000000000000000000000000000..75df0cc7c0be230aca9aec4f9d5e958ea3b268ac Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-rustlang.3.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-servo.0.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-servo.0.der new file mode 100644 index 0000000000000000000000000000000000000000..0b6271ff545ded2d9e9ee2b7c439789809da1479 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-servo.0.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-servo.1.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-servo.1.der new file mode 100644 index 0000000000000000000000000000000000000000..41c742136ce864a9d7a90253af5b9f1642672d5f Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-servo.1.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-stackoverflow.0.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-stackoverflow.0.der new file mode 100644 index 0000000000000000000000000000000000000000..68068a77c5ba02d9b45f91bbc9593d87b8e9c7b0 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-stackoverflow.0.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-stackoverflow.1.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-stackoverflow.1.der new file mode 100644 index 0000000000000000000000000000000000000000..2d66ea723ea4f983874b3ffacdf612bd90e150d7 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-stackoverflow.1.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-stackoverflow.2.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-stackoverflow.2.der new file mode 100644 index 0000000000000000000000000000000000000000..79a33ba5908c84a1d790715853f435daee569995 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-stackoverflow.2.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-twitter.0.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-twitter.0.der new file mode 100644 index 0000000000000000000000000000000000000000..36f4e06d476e3cb7570a58da95ac979b4915f503 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-twitter.0.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-twitter.1.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-twitter.1.der new file mode 100644 index 0000000000000000000000000000000000000000..608f16c792172d34c2fe19cb77905975a6582521 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-twitter.1.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-wapo.0.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-wapo.0.der new file mode 100644 index 0000000000000000000000000000000000000000..94d2cd97be27bcda15a55a85f778cfb72beddfe7 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-wapo.0.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-wapo.1.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-wapo.1.der new file mode 100644 index 0000000000000000000000000000000000000000..99ced211ba8a4465076a867f21a3b1792ff893d3 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-wapo.1.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-wikipedia.0.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-wikipedia.0.der new file mode 100644 index 0000000000000000000000000000000000000000..5452038166df37809be83013abcbb83471c6bc31 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-wikipedia.0.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-wikipedia.1.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-wikipedia.1.der new file mode 100644 index 0000000000000000000000000000000000000000..7d8413a3474b4cfb6a84d46dc35f75628d29ccc6 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/cert-wikipedia.1.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/eddsakey.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/eddsakey.der new file mode 100644 index 0000000000000000000000000000000000000000..8eff00da9f2302d364110b78cb9bbbbdb750950f Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/eddsakey.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/nistp256key.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/nistp256key.der new file mode 100644 index 0000000000000000000000000000000000000000..57551822e40e63d3e9dff134e85a8ffd84d95851 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/nistp256key.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/nistp256key.pkcs8.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/nistp256key.pkcs8.der new file mode 100644 index 0000000000000000000000000000000000000000..8e64b2c81f3c56d779dfb7a6ee4c3ee9d0cec000 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/nistp256key.pkcs8.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/nistp384key.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/nistp384key.der new file mode 100644 index 0000000000000000000000000000000000000000..80f0769af0d0d7501fb3c778cfcd79f76c14f91b Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/nistp384key.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/nistp384key.pkcs8.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/nistp384key.pkcs8.der new file mode 100644 index 0000000000000000000000000000000000000000..f85de4319c6542670ee6b443280a0c6b30662bd8 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/nistp384key.pkcs8.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/rsa2048key.pkcs1.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/rsa2048key.pkcs1.der new file mode 100644 index 0000000000000000000000000000000000000000..d93402d2c9c4339d38407543b92be1cf32beb9a6 Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/rsa2048key.pkcs1.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/rsa2048key.pkcs8.der b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/rsa2048key.pkcs8.der new file mode 100644 index 0000000000000000000000000000000000000000..8e5c2e817ddfe06b75a1be432f600f96c25834cf Binary files /dev/null and b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/testdata/rsa2048key.pkcs8.der differ diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/tls12/cipher.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/tls12/cipher.rs new file mode 100644 index 0000000000000000000000000000000000000000..2910c20ce1f42f8f2981ce06681ef2cf10d07df3 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/tls12/cipher.rs @@ -0,0 +1,236 @@ +use crate::cipher::{make_nonce, Iv, MessageDecrypter, MessageEncrypter}; +use crate::enums::ProtocolVersion; +use crate::error::Error; +use crate::msgs::base::Payload; +use crate::msgs::codec; +use crate::msgs::enums::ContentType; +use crate::msgs::fragmenter::MAX_FRAGMENT_LEN; +use crate::msgs::message::{BorrowedPlainMessage, OpaqueMessage, PlainMessage}; + +use ring::aead; + +const TLS12_AAD_SIZE: usize = 8 + 1 + 2 + 2; + +fn make_tls12_aad( + seq: u64, + typ: ContentType, + vers: ProtocolVersion, + len: usize, +) -> ring::aead::Aad<[u8; TLS12_AAD_SIZE]> { + let mut out = [0; TLS12_AAD_SIZE]; + codec::put_u64(seq, &mut out[0..]); + out[8] = typ.get_u8(); + codec::put_u16(vers.get_u16(), &mut out[9..]); + codec::put_u16(len as u16, &mut out[11..]); + ring::aead::Aad::from(out) +} + +pub(crate) struct AesGcm; + +impl Tls12AeadAlgorithm for AesGcm { + fn decrypter(&self, dec_key: aead::LessSafeKey, dec_iv: &[u8]) -> Box { + let mut ret = GcmMessageDecrypter { + dec_key, + dec_salt: [0u8; 4], + }; + + debug_assert_eq!(dec_iv.len(), 4); + ret.dec_salt.copy_from_slice(dec_iv); + Box::new(ret) + } + + fn encrypter( + &self, + enc_key: aead::LessSafeKey, + write_iv: &[u8], + explicit: &[u8], + ) -> Box { + debug_assert_eq!(write_iv.len(), 4); + debug_assert_eq!(explicit.len(), 8); + + // The GCM nonce is constructed from a 32-bit 'salt' derived + // from the master-secret, and a 64-bit explicit part, + // with no specified construction. Thanks for that. + // + // We use the same construction as TLS1.3/ChaCha20Poly1305: + // a starting point extracted from the key block, xored with + // the sequence number. + let mut iv = Iv(Default::default()); + iv.0[..4].copy_from_slice(write_iv); + iv.0[4..].copy_from_slice(explicit); + + Box::new(GcmMessageEncrypter { enc_key, iv }) + } +} + +pub(crate) struct ChaCha20Poly1305; + +impl Tls12AeadAlgorithm for ChaCha20Poly1305 { + fn decrypter(&self, dec_key: aead::LessSafeKey, iv: &[u8]) -> Box { + Box::new(ChaCha20Poly1305MessageDecrypter { + dec_key, + dec_offset: Iv::copy(iv), + }) + } + + fn encrypter( + &self, + enc_key: aead::LessSafeKey, + enc_iv: &[u8], + _: &[u8], + ) -> Box { + Box::new(ChaCha20Poly1305MessageEncrypter { + enc_key, + enc_offset: Iv::copy(enc_iv), + }) + } +} + +pub(crate) trait Tls12AeadAlgorithm: Send + Sync + 'static { + fn decrypter(&self, key: aead::LessSafeKey, iv: &[u8]) -> Box; + fn encrypter( + &self, + key: aead::LessSafeKey, + iv: &[u8], + extra: &[u8], + ) -> Box; +} + +/// A `MessageEncrypter` for AES-GCM AEAD ciphersuites. TLS 1.2 only. +struct GcmMessageEncrypter { + enc_key: aead::LessSafeKey, + iv: Iv, +} + +/// A `MessageDecrypter` for AES-GCM AEAD ciphersuites. TLS1.2 only. +struct GcmMessageDecrypter { + dec_key: aead::LessSafeKey, + dec_salt: [u8; 4], +} + +const GCM_EXPLICIT_NONCE_LEN: usize = 8; +const GCM_OVERHEAD: usize = GCM_EXPLICIT_NONCE_LEN + 16; + +impl MessageDecrypter for GcmMessageDecrypter { + fn decrypt(&self, mut msg: OpaqueMessage, seq: u64) -> Result { + let payload = &mut msg.payload.0; + if payload.len() < GCM_OVERHEAD { + return Err(Error::DecryptError); + } + + let nonce = { + let mut nonce = [0u8; 12]; + nonce[..4].copy_from_slice(&self.dec_salt); + nonce[4..].copy_from_slice(&payload[..8]); + aead::Nonce::assume_unique_for_key(nonce) + }; + + let aad = make_tls12_aad(seq, msg.typ, msg.version, payload.len() - GCM_OVERHEAD); + + let plain_len = self + .dec_key + .open_within(nonce, aad, payload, GCM_EXPLICIT_NONCE_LEN..) + .map_err(|_| Error::DecryptError)? + .len(); + + if plain_len > MAX_FRAGMENT_LEN { + return Err(Error::PeerSentOversizedRecord); + } + + payload.truncate(plain_len); + Ok(msg.into_plain_message()) + } +} + +impl MessageEncrypter for GcmMessageEncrypter { + fn encrypt(&self, msg: BorrowedPlainMessage, seq: u64) -> Result { + let nonce = make_nonce(&self.iv, seq); + let aad = make_tls12_aad(seq, msg.typ, msg.version, msg.payload.len()); + + let total_len = msg.payload.len() + self.enc_key.algorithm().tag_len(); + let mut payload = Vec::with_capacity(GCM_EXPLICIT_NONCE_LEN + total_len); + payload.extend_from_slice(&nonce.as_ref()[4..]); + payload.extend_from_slice(msg.payload); + + self.enc_key + .seal_in_place_separate_tag(nonce, aad, &mut payload[GCM_EXPLICIT_NONCE_LEN..]) + .map(|tag| payload.extend(tag.as_ref())) + .map_err(|_| Error::General("encrypt failed".to_string()))?; + + Ok(OpaqueMessage { + typ: msg.typ, + version: msg.version, + payload: Payload::new(payload), + }) + } +} + +/// The RFC7905/RFC7539 ChaCha20Poly1305 construction. +/// This implementation does the AAD construction required in TLS1.2. +/// TLS1.3 uses `TLS13MessageEncrypter`. +struct ChaCha20Poly1305MessageEncrypter { + enc_key: aead::LessSafeKey, + enc_offset: Iv, +} + +/// The RFC7905/RFC7539 ChaCha20Poly1305 construction. +/// This implementation does the AAD construction required in TLS1.2. +/// TLS1.3 uses `TLS13MessageDecrypter`. +struct ChaCha20Poly1305MessageDecrypter { + dec_key: aead::LessSafeKey, + dec_offset: Iv, +} + +const CHACHAPOLY1305_OVERHEAD: usize = 16; + +impl MessageDecrypter for ChaCha20Poly1305MessageDecrypter { + fn decrypt(&self, mut msg: OpaqueMessage, seq: u64) -> Result { + let payload = &mut msg.payload.0; + + if payload.len() < CHACHAPOLY1305_OVERHEAD { + return Err(Error::DecryptError); + } + + let nonce = make_nonce(&self.dec_offset, seq); + let aad = make_tls12_aad( + seq, + msg.typ, + msg.version, + payload.len() - CHACHAPOLY1305_OVERHEAD, + ); + + let plain_len = self + .dec_key + .open_in_place(nonce, aad, payload) + .map_err(|_| Error::DecryptError)? + .len(); + + if plain_len > MAX_FRAGMENT_LEN { + return Err(Error::PeerSentOversizedRecord); + } + + payload.truncate(plain_len); + Ok(msg.into_plain_message()) + } +} + +impl MessageEncrypter for ChaCha20Poly1305MessageEncrypter { + fn encrypt(&self, msg: BorrowedPlainMessage, seq: u64) -> Result { + let nonce = make_nonce(&self.enc_offset, seq); + let aad = make_tls12_aad(seq, msg.typ, msg.version, msg.payload.len()); + + let total_len = msg.payload.len() + self.enc_key.algorithm().tag_len(); + let mut buf = Vec::with_capacity(total_len); + buf.extend_from_slice(msg.payload); + + self.enc_key + .seal_in_place_append_tag(nonce, aad, &mut buf) + .map_err(|_| Error::General("encrypt failed".to_string()))?; + + Ok(OpaqueMessage { + typ: msg.typ, + version: msg.version, + payload: Payload::new(buf), + }) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/tls12/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/tls12/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..4024aeef604e2b83e3bbf6e37b50207ccbdf40ce --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/tls12/mod.rs @@ -0,0 +1,537 @@ +use crate::cipher::{MessageDecrypter, MessageEncrypter}; +use crate::conn::{CommonState, ConnectionRandoms, Side}; +use crate::enums::{CipherSuite, SignatureScheme}; +use crate::kx; +use crate::msgs::codec::{Codec, Reader}; +use crate::msgs::enums::{AlertDescription, ContentType}; +use crate::msgs::handshake::KeyExchangeAlgorithm; +use crate::suites::{BulkAlgorithm, CipherSuiteCommon, SupportedCipherSuite}; +#[cfg(feature = "secret_extraction")] +use crate::suites::{ConnectionTrafficSecrets, PartiallyExtractedSecrets}; +use crate::Error; + +use ring::aead; +use ring::digest::Digest; + +use std::fmt; + +mod cipher; +pub(crate) use cipher::{AesGcm, ChaCha20Poly1305, Tls12AeadAlgorithm}; + +mod prf; + +/// The TLS1.2 ciphersuite TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256. +pub static TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256: SupportedCipherSuite = + SupportedCipherSuite::Tls12(&Tls12CipherSuite { + common: CipherSuiteCommon { + suite: CipherSuite::TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, + bulk: BulkAlgorithm::Chacha20Poly1305, + aead_algorithm: &ring::aead::CHACHA20_POLY1305, + }, + kx: KeyExchangeAlgorithm::ECDHE, + sign: TLS12_ECDSA_SCHEMES, + fixed_iv_len: 12, + explicit_nonce_len: 0, + aead_alg: &ChaCha20Poly1305, + hmac_algorithm: ring::hmac::HMAC_SHA256, + }); + +/// The TLS1.2 ciphersuite TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 +pub static TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256: SupportedCipherSuite = + SupportedCipherSuite::Tls12(&Tls12CipherSuite { + common: CipherSuiteCommon { + suite: CipherSuite::TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, + bulk: BulkAlgorithm::Chacha20Poly1305, + aead_algorithm: &ring::aead::CHACHA20_POLY1305, + }, + kx: KeyExchangeAlgorithm::ECDHE, + sign: TLS12_RSA_SCHEMES, + fixed_iv_len: 12, + explicit_nonce_len: 0, + aead_alg: &ChaCha20Poly1305, + hmac_algorithm: ring::hmac::HMAC_SHA256, + }); + +/// The TLS1.2 ciphersuite TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 +pub static TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256: SupportedCipherSuite = + SupportedCipherSuite::Tls12(&Tls12CipherSuite { + common: CipherSuiteCommon { + suite: CipherSuite::TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, + bulk: BulkAlgorithm::Aes128Gcm, + aead_algorithm: &ring::aead::AES_128_GCM, + }, + kx: KeyExchangeAlgorithm::ECDHE, + sign: TLS12_RSA_SCHEMES, + fixed_iv_len: 4, + explicit_nonce_len: 8, + aead_alg: &AesGcm, + hmac_algorithm: ring::hmac::HMAC_SHA256, + }); + +/// The TLS1.2 ciphersuite TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 +pub static TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384: SupportedCipherSuite = + SupportedCipherSuite::Tls12(&Tls12CipherSuite { + common: CipherSuiteCommon { + suite: CipherSuite::TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, + bulk: BulkAlgorithm::Aes256Gcm, + aead_algorithm: &ring::aead::AES_256_GCM, + }, + kx: KeyExchangeAlgorithm::ECDHE, + sign: TLS12_RSA_SCHEMES, + fixed_iv_len: 4, + explicit_nonce_len: 8, + aead_alg: &AesGcm, + hmac_algorithm: ring::hmac::HMAC_SHA384, + }); + +/// The TLS1.2 ciphersuite TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 +pub static TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256: SupportedCipherSuite = + SupportedCipherSuite::Tls12(&Tls12CipherSuite { + common: CipherSuiteCommon { + suite: CipherSuite::TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, + bulk: BulkAlgorithm::Aes128Gcm, + aead_algorithm: &ring::aead::AES_128_GCM, + }, + kx: KeyExchangeAlgorithm::ECDHE, + sign: TLS12_ECDSA_SCHEMES, + fixed_iv_len: 4, + explicit_nonce_len: 8, + aead_alg: &AesGcm, + hmac_algorithm: ring::hmac::HMAC_SHA256, + }); + +/// The TLS1.2 ciphersuite TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 +pub static TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384: SupportedCipherSuite = + SupportedCipherSuite::Tls12(&Tls12CipherSuite { + common: CipherSuiteCommon { + suite: CipherSuite::TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, + bulk: BulkAlgorithm::Aes256Gcm, + aead_algorithm: &ring::aead::AES_256_GCM, + }, + kx: KeyExchangeAlgorithm::ECDHE, + sign: TLS12_ECDSA_SCHEMES, + fixed_iv_len: 4, + explicit_nonce_len: 8, + aead_alg: &AesGcm, + hmac_algorithm: ring::hmac::HMAC_SHA384, + }); + +static TLS12_ECDSA_SCHEMES: &[SignatureScheme] = &[ + SignatureScheme::ED25519, + SignatureScheme::ECDSA_NISTP521_SHA512, + SignatureScheme::ECDSA_NISTP384_SHA384, + SignatureScheme::ECDSA_NISTP256_SHA256, +]; + +static TLS12_RSA_SCHEMES: &[SignatureScheme] = &[ + SignatureScheme::RSA_PSS_SHA512, + SignatureScheme::RSA_PSS_SHA384, + SignatureScheme::RSA_PSS_SHA256, + SignatureScheme::RSA_PKCS1_SHA512, + SignatureScheme::RSA_PKCS1_SHA384, + SignatureScheme::RSA_PKCS1_SHA256, +]; + +/// A TLS 1.2 cipher suite supported by rustls. +pub struct Tls12CipherSuite { + /// Common cipher suite fields. + pub common: CipherSuiteCommon, + pub(crate) hmac_algorithm: ring::hmac::Algorithm, + /// How to exchange/agree keys. + pub kx: KeyExchangeAlgorithm, + + /// How to sign messages for authentication. + pub sign: &'static [SignatureScheme], + + /// How long the fixed part of the 'IV' is. + /// + /// This isn't usually an IV, but we continue the + /// terminology misuse to match the standard. + pub fixed_iv_len: usize, + + /// This is a non-standard extension which extends the + /// key block to provide an initial explicit nonce offset, + /// in a deterministic and safe way. GCM needs this, + /// chacha20poly1305 works this way by design. + pub explicit_nonce_len: usize, + + pub(crate) aead_alg: &'static dyn Tls12AeadAlgorithm, +} + +impl Tls12CipherSuite { + /// Resolve the set of supported `SignatureScheme`s from the + /// offered `SupportedSignatureSchemes`. If we return an empty + /// set, the handshake terminates. + pub fn resolve_sig_schemes(&self, offered: &[SignatureScheme]) -> Vec { + self.sign + .iter() + .filter(|pref| offered.contains(pref)) + .cloned() + .collect() + } + + /// Which hash function to use with this suite. + pub fn hash_algorithm(&self) -> &'static ring::digest::Algorithm { + self.hmac_algorithm.digest_algorithm() + } +} + +impl From<&'static Tls12CipherSuite> for SupportedCipherSuite { + fn from(s: &'static Tls12CipherSuite) -> Self { + Self::Tls12(s) + } +} + +impl PartialEq for Tls12CipherSuite { + fn eq(&self, other: &Self) -> bool { + self.common.suite == other.common.suite + } +} + +impl fmt::Debug for Tls12CipherSuite { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.debug_struct("Tls12CipherSuite") + .field("suite", &self.common.suite) + .field("bulk", &self.common.bulk) + .finish() + } +} + +/// TLS1.2 per-connection keying material +pub(crate) struct ConnectionSecrets { + pub(crate) randoms: ConnectionRandoms, + suite: &'static Tls12CipherSuite, + pub(crate) master_secret: [u8; 48], +} + +impl ConnectionSecrets { + pub(crate) fn from_key_exchange( + kx: kx::KeyExchange, + peer_pub_key: &[u8], + ems_seed: Option, + randoms: ConnectionRandoms, + suite: &'static Tls12CipherSuite, + ) -> Result { + let mut ret = Self { + randoms, + suite, + master_secret: [0u8; 48], + }; + + let (label, seed) = match ems_seed { + Some(seed) => ("extended master secret", Seed::Ems(seed)), + None => ( + "master secret", + Seed::Randoms(join_randoms(&ret.randoms.client, &ret.randoms.server)), + ), + }; + + kx.complete(peer_pub_key, |secret| { + prf::prf( + &mut ret.master_secret, + suite.hmac_algorithm, + secret, + label.as_bytes(), + seed.as_ref(), + ); + Ok(()) + })?; + + Ok(ret) + } + + pub(crate) fn new_resume( + randoms: ConnectionRandoms, + suite: &'static Tls12CipherSuite, + master_secret: &[u8], + ) -> Self { + let mut ret = Self { + randoms, + suite, + master_secret: [0u8; 48], + }; + ret.master_secret + .copy_from_slice(master_secret); + ret + } + + /// Make a `MessageCipherPair` based on the given supported ciphersuite `scs`, + /// and the session's `secrets`. + pub(crate) fn make_cipher_pair(&self, side: Side) -> MessageCipherPair { + fn split_key<'a>( + key_block: &'a [u8], + alg: &'static aead::Algorithm, + ) -> (aead::LessSafeKey, &'a [u8]) { + // Might panic if the key block is too small. + let (key, rest) = key_block.split_at(alg.key_len()); + // Won't panic because its only prerequisite is that `key` is `alg.key_len()` bytes long. + let key = aead::UnboundKey::new(alg, key).unwrap(); + (aead::LessSafeKey::new(key), rest) + } + + // Make a key block, and chop it up. + // nb. we don't implement any ciphersuites with nonzero mac_key_len. + let key_block = self.make_key_block(); + + let suite = self.suite; + let scs = &suite.common; + + let (client_write_key, key_block) = split_key(&key_block, scs.aead_algorithm); + let (server_write_key, key_block) = split_key(key_block, scs.aead_algorithm); + let (client_write_iv, key_block) = key_block.split_at(suite.fixed_iv_len); + let (server_write_iv, extra) = key_block.split_at(suite.fixed_iv_len); + + let (write_key, write_iv, read_key, read_iv) = match side { + Side::Client => ( + client_write_key, + client_write_iv, + server_write_key, + server_write_iv, + ), + Side::Server => ( + server_write_key, + server_write_iv, + client_write_key, + client_write_iv, + ), + }; + + ( + suite + .aead_alg + .decrypter(read_key, read_iv), + suite + .aead_alg + .encrypter(write_key, write_iv, extra), + ) + } + + fn make_key_block(&self) -> Vec { + let suite = &self.suite; + let common = &self.suite.common; + + let len = + (common.aead_algorithm.key_len() + suite.fixed_iv_len) * 2 + suite.explicit_nonce_len; + + let mut out = Vec::new(); + out.resize(len, 0u8); + + // NOTE: opposite order to above for no good reason. + // Don't design security protocols on drugs, kids. + let randoms = join_randoms(&self.randoms.server, &self.randoms.client); + prf::prf( + &mut out, + self.suite.hmac_algorithm, + &self.master_secret, + b"key expansion", + &randoms, + ); + + out + } + + pub(crate) fn suite(&self) -> &'static Tls12CipherSuite { + self.suite + } + + pub(crate) fn get_master_secret(&self) -> Vec { + let mut ret = Vec::new(); + ret.extend_from_slice(&self.master_secret); + ret + } + + fn make_verify_data(&self, handshake_hash: &Digest, label: &[u8]) -> Vec { + let mut out = Vec::new(); + out.resize(12, 0u8); + + prf::prf( + &mut out, + self.suite.hmac_algorithm, + &self.master_secret, + label, + handshake_hash.as_ref(), + ); + out + } + + pub(crate) fn client_verify_data(&self, handshake_hash: &Digest) -> Vec { + self.make_verify_data(handshake_hash, b"client finished") + } + + pub(crate) fn server_verify_data(&self, handshake_hash: &Digest) -> Vec { + self.make_verify_data(handshake_hash, b"server finished") + } + + pub(crate) fn export_keying_material( + &self, + output: &mut [u8], + label: &[u8], + context: Option<&[u8]>, + ) { + let mut randoms = Vec::new(); + randoms.extend_from_slice(&self.randoms.client); + randoms.extend_from_slice(&self.randoms.server); + if let Some(context) = context { + assert!(context.len() <= 0xffff); + (context.len() as u16).encode(&mut randoms); + randoms.extend_from_slice(context); + } + + prf::prf( + output, + self.suite.hmac_algorithm, + &self.master_secret, + label, + &randoms, + ) + } + + #[cfg(feature = "secret_extraction")] + pub(crate) fn extract_secrets(&self, side: Side) -> Result { + // Make a key block, and chop it up + let key_block = self.make_key_block(); + + let suite = self.suite; + let algo = suite.common.aead_algorithm; + + let (client_key, key_block) = key_block.split_at(algo.key_len()); + let (server_key, key_block) = key_block.split_at(algo.key_len()); + let (client_iv, key_block) = key_block.split_at(suite.fixed_iv_len); + let (server_iv, extra) = key_block.split_at(suite.fixed_iv_len); + + // A key/IV pair (fixed IV len is 4 for GCM, 12 for Chacha) + struct Pair<'a> { + key: &'a [u8], + iv: &'a [u8], + } + + let client_pair = Pair { + key: client_key, + iv: client_iv, + }; + let server_pair = Pair { + key: server_key, + iv: server_iv, + }; + + let (client_secrets, server_secrets) = if algo == &ring::aead::AES_128_GCM { + let extract = |pair: Pair| -> ConnectionTrafficSecrets { + let mut key = [0u8; 16]; + key.copy_from_slice(pair.key); + + let mut salt = [0u8; 4]; + salt.copy_from_slice(pair.iv); + + let mut iv = [0u8; 8]; + iv.copy_from_slice(&extra[..8]); + + ConnectionTrafficSecrets::Aes128Gcm { key, salt, iv } + }; + + (extract(client_pair), extract(server_pair)) + } else if algo == &ring::aead::AES_256_GCM { + let extract = |pair: Pair| -> ConnectionTrafficSecrets { + let mut key = [0u8; 32]; + key.copy_from_slice(pair.key); + + let mut salt = [0u8; 4]; + salt.copy_from_slice(pair.iv); + + let mut iv = [0u8; 8]; + iv.copy_from_slice(&extra[..8]); + + ConnectionTrafficSecrets::Aes256Gcm { key, salt, iv } + }; + + (extract(client_pair), extract(server_pair)) + } else if algo == &ring::aead::CHACHA20_POLY1305 { + let extract = |pair: Pair| -> ConnectionTrafficSecrets { + let mut key = [0u8; 32]; + key.copy_from_slice(pair.key); + + let mut iv = [0u8; 12]; + iv.copy_from_slice(pair.iv); + + ConnectionTrafficSecrets::Chacha20Poly1305 { key, iv } + }; + + (extract(client_pair), extract(server_pair)) + } else { + return Err(Error::General(format!( + "exporting secrets for {:?}: unimplemented", + algo + ))); + }; + + let (tx, rx) = match side { + Side::Client => (client_secrets, server_secrets), + Side::Server => (server_secrets, client_secrets), + }; + Ok(PartiallyExtractedSecrets { tx, rx }) + } +} + +enum Seed { + Ems(Digest), + Randoms([u8; 64]), +} + +impl AsRef<[u8]> for Seed { + fn as_ref(&self) -> &[u8] { + match self { + Self::Ems(seed) => seed.as_ref(), + Self::Randoms(randoms) => randoms.as_ref(), + } + } +} + +fn join_randoms(first: &[u8; 32], second: &[u8; 32]) -> [u8; 64] { + let mut randoms = [0u8; 64]; + randoms[..32].copy_from_slice(first); + randoms[32..].copy_from_slice(second); + randoms +} + +type MessageCipherPair = (Box, Box); + +pub(crate) fn decode_ecdh_params( + common: &mut CommonState, + kx_params: &[u8], +) -> Result { + decode_ecdh_params_::(kx_params).ok_or_else(|| { + common.send_fatal_alert(AlertDescription::DecodeError); + Error::CorruptMessagePayload(ContentType::Handshake) + }) +} + +fn decode_ecdh_params_(kx_params: &[u8]) -> Option { + let mut rd = Reader::init(kx_params); + let ecdh_params = T::read(&mut rd)?; + match rd.any_left() { + false => Some(ecdh_params), + true => None, + } +} + +pub(crate) const DOWNGRADE_SENTINEL: [u8; 8] = [0x44, 0x4f, 0x57, 0x4e, 0x47, 0x52, 0x44, 0x01]; + +#[cfg(test)] +mod tests { + use super::*; + use crate::msgs::handshake::{ClientECDHParams, ServerECDHParams}; + + #[test] + fn server_ecdhe_remaining_bytes() { + let key = kx::KeyExchange::start(&kx::X25519).unwrap(); + let server_params = ServerECDHParams::new(key.group(), key.pubkey.as_ref()); + let mut server_buf = Vec::new(); + server_params.encode(&mut server_buf); + server_buf.push(34); + assert!(decode_ecdh_params_::(&server_buf).is_none()); + } + + #[test] + fn client_ecdhe_invalid() { + assert!(decode_ecdh_params_::(&[34]).is_none()); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/tls12/prf.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/tls12/prf.rs new file mode 100644 index 0000000000000000000000000000000000000000..24ff8baacffc553060a6c88e74bcc33fec9f3963 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/tls12/prf.rs @@ -0,0 +1,67 @@ +use ring::hmac; + +fn concat_sign(key: &hmac::Key, a: &[u8], b: &[u8]) -> hmac::Tag { + let mut ctx = hmac::Context::with_key(key); + ctx.update(a); + ctx.update(b); + ctx.sign() +} + +fn p(out: &mut [u8], alg: hmac::Algorithm, secret: &[u8], seed: &[u8]) { + let hmac_key = hmac::Key::new(alg, secret); + + // A(1) + let mut current_a = hmac::sign(&hmac_key, seed); + let chunk_size = alg.digest_algorithm().output_len; + for chunk in out.chunks_mut(chunk_size) { + // P_hash[i] = HMAC_hash(secret, A(i) + seed) + let p_term = concat_sign(&hmac_key, current_a.as_ref(), seed); + chunk.copy_from_slice(&p_term.as_ref()[..chunk.len()]); + + // A(i+1) = HMAC_hash(secret, A(i)) + current_a = hmac::sign(&hmac_key, current_a.as_ref()); + } +} + +fn concat(a: &[u8], b: &[u8]) -> Vec { + let mut ret = Vec::new(); + ret.extend_from_slice(a); + ret.extend_from_slice(b); + ret +} + +pub(crate) fn prf(out: &mut [u8], alg: hmac::Algorithm, secret: &[u8], label: &[u8], seed: &[u8]) { + let joined_seed = concat(label, seed); + p(out, alg, secret, &joined_seed); +} + +#[cfg(test)] +mod tests { + use ring::hmac::{HMAC_SHA256, HMAC_SHA512}; + + #[test] + fn check_sha256() { + let secret = b"\x9b\xbe\x43\x6b\xa9\x40\xf0\x17\xb1\x76\x52\x84\x9a\x71\xdb\x35"; + let seed = b"\xa0\xba\x9f\x93\x6c\xda\x31\x18\x27\xa6\xf7\x96\xff\xd5\x19\x8c"; + let label = b"test label"; + let expect = include_bytes!("../testdata/prf-result.1.bin"); + let mut output = [0u8; 100]; + + super::prf(&mut output, HMAC_SHA256, secret, label, seed); + assert_eq!(expect.len(), output.len()); + assert_eq!(expect.to_vec(), output.to_vec()); + } + + #[test] + fn check_sha512() { + let secret = b"\xb0\x32\x35\x23\xc1\x85\x35\x99\x58\x4d\x88\x56\x8b\xbb\x05\xeb"; + let seed = b"\xd4\x64\x0e\x12\xe4\xbc\xdb\xfb\x43\x7f\x03\xe6\xae\x41\x8e\xe5"; + let label = b"test label"; + let expect = include_bytes!("../testdata/prf-result.2.bin"); + let mut output = [0u8; 196]; + + super::prf(&mut output, HMAC_SHA512, secret, label, seed); + assert_eq!(expect.len(), output.len()); + assert_eq!(expect.to_vec(), output.to_vec()); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/tls13/key_schedule.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/tls13/key_schedule.rs new file mode 100644 index 0000000000000000000000000000000000000000..098c7b7c87fa40559d4881a31a7704b6b04c408e --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/tls13/key_schedule.rs @@ -0,0 +1,800 @@ +use crate::cipher::{Iv, IvLen}; +use crate::error::Error; +use crate::msgs::base::PayloadU8; +use crate::KeyLog; +#[cfg(feature = "secret_extraction")] +use crate::{ + conn::Side, + suites::{ConnectionTrafficSecrets, PartiallyExtractedSecrets}, +}; + +/// Key schedule maintenance for TLS1.3 +use ring::{ + aead, + digest::{self, Digest}, + hkdf::{self, KeyType as _}, + hmac, +}; + +/// The kinds of secret we can extract from `KeySchedule`. +#[derive(Debug, Clone, Copy, PartialEq)] +enum SecretKind { + ResumptionPskBinderKey, + ClientEarlyTrafficSecret, + ClientHandshakeTrafficSecret, + ServerHandshakeTrafficSecret, + ClientApplicationTrafficSecret, + ServerApplicationTrafficSecret, + ExporterMasterSecret, + ResumptionMasterSecret, + DerivedSecret, +} + +impl SecretKind { + fn to_bytes(self) -> &'static [u8] { + use self::SecretKind::*; + match self { + ResumptionPskBinderKey => b"res binder", + ClientEarlyTrafficSecret => b"c e traffic", + ClientHandshakeTrafficSecret => b"c hs traffic", + ServerHandshakeTrafficSecret => b"s hs traffic", + ClientApplicationTrafficSecret => b"c ap traffic", + ServerApplicationTrafficSecret => b"s ap traffic", + ExporterMasterSecret => b"exp master", + ResumptionMasterSecret => b"res master", + DerivedSecret => b"derived", + } + } + + fn log_label(self) -> Option<&'static str> { + use self::SecretKind::*; + Some(match self { + ClientEarlyTrafficSecret => "CLIENT_EARLY_TRAFFIC_SECRET", + ClientHandshakeTrafficSecret => "CLIENT_HANDSHAKE_TRAFFIC_SECRET", + ServerHandshakeTrafficSecret => "SERVER_HANDSHAKE_TRAFFIC_SECRET", + ClientApplicationTrafficSecret => "CLIENT_TRAFFIC_SECRET_0", + ServerApplicationTrafficSecret => "SERVER_TRAFFIC_SECRET_0", + ExporterMasterSecret => "EXPORTER_SECRET", + _ => { + return None; + } + }) + } +} + +/// This is the TLS1.3 key schedule. It stores the current secret and +/// the type of hash. This isn't used directly; but only through the +/// typestates. +struct KeySchedule { + current: hkdf::Prk, + algorithm: ring::hkdf::Algorithm, +} + +// We express the state of a contained KeySchedule using these +// typestates. This means we can write code that cannot accidentally +// (e.g.) encrypt application data using a KeySchedule solely constructed +// with an empty or trivial secret, or extract the wrong kind of secrets +// at a given point. + +/// KeySchedule for early data stage. +pub(crate) struct KeyScheduleEarly { + ks: KeySchedule, +} + +impl KeyScheduleEarly { + pub(crate) fn new(algorithm: hkdf::Algorithm, secret: &[u8]) -> Self { + Self { + ks: KeySchedule::new(algorithm, secret), + } + } + + pub(crate) fn client_early_traffic_secret( + &self, + hs_hash: &Digest, + key_log: &dyn KeyLog, + client_random: &[u8; 32], + ) -> hkdf::Prk { + self.ks.derive_logged_secret( + SecretKind::ClientEarlyTrafficSecret, + hs_hash.as_ref(), + key_log, + client_random, + ) + } + + pub(crate) fn resumption_psk_binder_key_and_sign_verify_data( + &self, + hs_hash: &Digest, + ) -> hmac::Tag { + let resumption_psk_binder_key = self + .ks + .derive_for_empty_hash(SecretKind::ResumptionPskBinderKey); + self.ks + .sign_verify_data(&resumption_psk_binder_key, hs_hash) + } +} + +/// Pre-handshake key schedule +/// +/// The inner `KeySchedule` is either constructed without any secrets based on ths HKDF algorithm +/// or is extracted from a `KeyScheduleEarly`. This can then be used to derive the `KeyScheduleHandshakeStart`. +pub(crate) struct KeySchedulePreHandshake { + ks: KeySchedule, +} + +impl KeySchedulePreHandshake { + pub(crate) fn new(algorithm: hkdf::Algorithm) -> Self { + Self { + ks: KeySchedule::new_with_empty_secret(algorithm), + } + } + + pub(crate) fn into_handshake(mut self, secret: &[u8]) -> KeyScheduleHandshakeStart { + self.ks.input_secret(secret); + KeyScheduleHandshakeStart { ks: self.ks } + } +} + +impl From for KeySchedulePreHandshake { + fn from(KeyScheduleEarly { ks }: KeyScheduleEarly) -> Self { + Self { ks } + } +} + +/// KeySchedule during handshake. +pub(crate) struct KeyScheduleHandshakeStart { + ks: KeySchedule, +} + +impl KeyScheduleHandshakeStart { + pub(crate) fn derive_handshake_secrets( + self, + hs_hash: Digest, + key_log: &dyn KeyLog, + client_random: &[u8; 32], + ) -> (KeyScheduleHandshake, hkdf::Prk, hkdf::Prk) { + // Use an empty handshake hash for the initial handshake. + let client_secret = self.ks.derive_logged_secret( + SecretKind::ClientHandshakeTrafficSecret, + hs_hash.as_ref(), + key_log, + client_random, + ); + + let server_secret = self.ks.derive_logged_secret( + SecretKind::ServerHandshakeTrafficSecret, + hs_hash.as_ref(), + key_log, + client_random, + ); + + let new = KeyScheduleHandshake { + ks: self.ks, + client_handshake_traffic_secret: client_secret.clone(), + server_handshake_traffic_secret: server_secret.clone(), + }; + + (new, client_secret, server_secret) + } +} + +pub(crate) struct KeyScheduleHandshake { + ks: KeySchedule, + client_handshake_traffic_secret: hkdf::Prk, + server_handshake_traffic_secret: hkdf::Prk, +} + +impl KeyScheduleHandshake { + pub(crate) fn sign_server_finish(&self, hs_hash: &Digest) -> hmac::Tag { + self.ks + .sign_finish(&self.server_handshake_traffic_secret, hs_hash) + } + + pub(crate) fn client_key(&self) -> &hkdf::Prk { + &self.client_handshake_traffic_secret + } + + pub(crate) fn into_traffic_with_client_finished_pending( + self, + hs_hash: Digest, + key_log: &dyn KeyLog, + client_random: &[u8; 32], + ) -> ( + KeyScheduleTrafficWithClientFinishedPending, + hkdf::Prk, + hkdf::Prk, + ) { + let traffic = KeyScheduleTraffic::new(self.ks, hs_hash, key_log, client_random); + + let client_secret = traffic + .current_client_traffic_secret + .clone(); + let server_secret = traffic + .current_server_traffic_secret + .clone(); + + let new = KeyScheduleTrafficWithClientFinishedPending { + handshake_client_traffic_secret: self.client_handshake_traffic_secret, + traffic, + }; + + (new, client_secret, server_secret) + } +} + +/// KeySchedule during traffic stage, retaining the ability to calculate the client's +/// finished verify_data. The traffic stage key schedule can be extracted from it +/// through signing the client finished hash. +pub(crate) struct KeyScheduleTrafficWithClientFinishedPending { + handshake_client_traffic_secret: hkdf::Prk, + traffic: KeyScheduleTraffic, +} + +impl KeyScheduleTrafficWithClientFinishedPending { + pub(crate) fn client_key(&self) -> &hkdf::Prk { + &self.handshake_client_traffic_secret + } + + pub(crate) fn sign_client_finish( + self, + hs_hash: &Digest, + ) -> (KeyScheduleTraffic, hmac::Tag, hkdf::Prk) { + let tag = self + .traffic + .ks + .sign_finish(&self.handshake_client_traffic_secret, hs_hash); + + let client_secret = self + .traffic + .current_client_traffic_secret + .clone(); + + (self.traffic, tag, client_secret) + } +} + +/// KeySchedule during traffic stage. All traffic & exporter keys are guaranteed +/// to be available. +pub(crate) struct KeyScheduleTraffic { + ks: KeySchedule, + current_client_traffic_secret: hkdf::Prk, + current_server_traffic_secret: hkdf::Prk, + current_exporter_secret: hkdf::Prk, +} + +impl KeyScheduleTraffic { + fn new( + mut ks: KeySchedule, + hs_hash: Digest, + key_log: &dyn KeyLog, + client_random: &[u8; 32], + ) -> Self { + ks.input_empty(); + + let current_client_traffic_secret = ks.derive_logged_secret( + SecretKind::ClientApplicationTrafficSecret, + hs_hash.as_ref(), + key_log, + client_random, + ); + + let current_server_traffic_secret = ks.derive_logged_secret( + SecretKind::ServerApplicationTrafficSecret, + hs_hash.as_ref(), + key_log, + client_random, + ); + + let current_exporter_secret = ks.derive_logged_secret( + SecretKind::ExporterMasterSecret, + hs_hash.as_ref(), + key_log, + client_random, + ); + + Self { + ks, + current_client_traffic_secret, + current_server_traffic_secret, + current_exporter_secret, + } + } + + pub(crate) fn next_server_application_traffic_secret(&mut self) -> hkdf::Prk { + let secret = self + .ks + .derive_next(&self.current_server_traffic_secret); + self.current_server_traffic_secret = secret.clone(); + secret + } + + pub(crate) fn next_client_application_traffic_secret(&mut self) -> hkdf::Prk { + let secret = self + .ks + .derive_next(&self.current_client_traffic_secret); + self.current_client_traffic_secret = secret.clone(); + secret + } + + pub(crate) fn resumption_master_secret_and_derive_ticket_psk( + &self, + hs_hash: &Digest, + nonce: &[u8], + ) -> Vec { + let resumption_master_secret = self.ks.derive( + self.ks.algorithm(), + SecretKind::ResumptionMasterSecret, + hs_hash.as_ref(), + ); + self.ks + .derive_ticket_psk(&resumption_master_secret, nonce) + } + + pub(crate) fn export_keying_material( + &self, + out: &mut [u8], + label: &[u8], + context: Option<&[u8]>, + ) -> Result<(), Error> { + self.ks + .export_keying_material(&self.current_exporter_secret, out, label, context) + } + + #[cfg(feature = "secret_extraction")] + pub(crate) fn extract_secrets( + &self, + algo: &ring::aead::Algorithm, + side: Side, + ) -> Result { + fn expand( + secret: &hkdf::Prk, + ) -> Result<([u8; KEY_LEN], [u8; IV_LEN]), Error> { + let mut key = [0u8; KEY_LEN]; + let mut iv = [0u8; IV_LEN]; + + hkdf_expand_info(secret, PayloadU8Len(key.len()), b"key", &[], |okm| { + okm.fill(&mut key) + }) + .map_err(|_| Error::General("hkdf_expand_info failed".to_string()))?; + + hkdf_expand_info(secret, PayloadU8Len(iv.len()), b"iv", &[], |okm| { + okm.fill(&mut iv) + }) + .map_err(|_| Error::General("hkdf_expand_info failed".to_string()))?; + + Ok((key, iv)) + } + + let client_secrets; + let server_secrets; + + if algo == &ring::aead::AES_128_GCM { + let extract = |secret: &hkdf::Prk| -> Result { + let (key, iv_in) = expand::<16, 12>(secret)?; + + let mut salt = [0u8; 4]; + salt.copy_from_slice(&iv_in[..4]); + + let mut iv = [0u8; 8]; + iv.copy_from_slice(&iv_in[4..]); + + Ok(ConnectionTrafficSecrets::Aes128Gcm { key, salt, iv }) + }; + + client_secrets = extract(&self.current_client_traffic_secret)?; + server_secrets = extract(&self.current_server_traffic_secret)?; + } else if algo == &ring::aead::AES_256_GCM { + let extract = |secret: &hkdf::Prk| -> Result { + let (key, iv_in) = expand::<32, 12>(secret)?; + + let mut salt = [0u8; 4]; + salt.copy_from_slice(&iv_in[..4]); + + let mut iv = [0u8; 8]; + iv.copy_from_slice(&iv_in[4..]); + + Ok(ConnectionTrafficSecrets::Aes256Gcm { key, salt, iv }) + }; + + client_secrets = extract(&self.current_client_traffic_secret)?; + server_secrets = extract(&self.current_server_traffic_secret)?; + } else if algo == &ring::aead::CHACHA20_POLY1305 { + let extract = |secret: &hkdf::Prk| -> Result { + let (key, iv) = expand::<32, 12>(secret)?; + Ok(ConnectionTrafficSecrets::Chacha20Poly1305 { key, iv }) + }; + + client_secrets = extract(&self.current_client_traffic_secret)?; + server_secrets = extract(&self.current_server_traffic_secret)?; + } else { + return Err(Error::General(format!( + "exporting secrets for {:?}: unimplemented", + algo + ))); + } + + let (tx, rx) = match side { + crate::conn::Side::Client => (client_secrets, server_secrets), + crate::conn::Side::Server => (server_secrets, client_secrets), + }; + Ok(PartiallyExtractedSecrets { tx, rx }) + } +} + +impl KeySchedule { + fn new(algorithm: hkdf::Algorithm, secret: &[u8]) -> Self { + let zeroes = [0u8; digest::MAX_OUTPUT_LEN]; + let salt = hkdf::Salt::new(algorithm, &zeroes[..algorithm.len()]); + Self { + current: salt.extract(secret), + algorithm, + } + } + + #[inline] + fn algorithm(&self) -> hkdf::Algorithm { + self.algorithm + } + + fn new_with_empty_secret(algorithm: hkdf::Algorithm) -> Self { + let zeroes = [0u8; digest::MAX_OUTPUT_LEN]; + Self::new(algorithm, &zeroes[..algorithm.len()]) + } + + /// Input the empty secret. + fn input_empty(&mut self) { + let zeroes = [0u8; digest::MAX_OUTPUT_LEN]; + self.input_secret(&zeroes[..self.algorithm.len()]); + } + + /// Input the given secret. + fn input_secret(&mut self, secret: &[u8]) { + let salt: hkdf::Salt = self.derive_for_empty_hash(SecretKind::DerivedSecret); + self.current = salt.extract(secret); + } + + /// Derive a secret of given `kind`, using current handshake hash `hs_hash`. + fn derive(&self, key_type: L, kind: SecretKind, hs_hash: &[u8]) -> T + where + T: for<'a> From>, + L: hkdf::KeyType, + { + hkdf_expand(&self.current, key_type, kind.to_bytes(), hs_hash) + } + + fn derive_logged_secret( + &self, + kind: SecretKind, + hs_hash: &[u8], + key_log: &dyn KeyLog, + client_random: &[u8; 32], + ) -> hkdf::Prk { + let log_label = kind + .log_label() + .expect("not a loggable secret"); + if key_log.will_log(log_label) { + let secret = self + .derive::(PayloadU8Len(self.algorithm.len()), kind, hs_hash) + .into_inner(); + key_log.log(log_label, client_random, &secret); + } + self.derive(self.algorithm, kind, hs_hash) + } + + /// Derive a secret of given `kind` using the hash of the empty string + /// for the handshake hash. Useful only for + /// `SecretKind::ResumptionPSKBinderKey` and + /// `SecretKind::DerivedSecret`. + fn derive_for_empty_hash(&self, kind: SecretKind) -> T + where + T: for<'a> From>, + { + let digest_alg = self + .algorithm + .hmac_algorithm() + .digest_algorithm(); + let empty_hash = digest::digest(digest_alg, &[]); + self.derive(self.algorithm, kind, empty_hash.as_ref()) + } + + /// Sign the finished message consisting of `hs_hash` using a current + /// traffic secret. + fn sign_finish(&self, base_key: &hkdf::Prk, hs_hash: &Digest) -> hmac::Tag { + self.sign_verify_data(base_key, hs_hash) + } + + /// Sign the finished message consisting of `hs_hash` using the key material + /// `base_key`. + fn sign_verify_data(&self, base_key: &hkdf::Prk, hs_hash: &Digest) -> hmac::Tag { + let hmac_alg = self.algorithm.hmac_algorithm(); + let hmac_key = hkdf_expand(base_key, hmac_alg, b"finished", &[]); + hmac::sign(&hmac_key, hs_hash.as_ref()) + } + + /// Derive the next application traffic secret, returning it. + fn derive_next(&self, base_key: &hkdf::Prk) -> hkdf::Prk { + hkdf_expand(base_key, self.algorithm, b"traffic upd", &[]) + } + + /// Derive the PSK to use given a resumption_master_secret and + /// ticket_nonce. + fn derive_ticket_psk(&self, rms: &hkdf::Prk, nonce: &[u8]) -> Vec { + let payload: PayloadU8 = hkdf_expand( + rms, + PayloadU8Len(self.algorithm.len()), + b"resumption", + nonce, + ); + payload.into_inner() + } + + fn export_keying_material( + &self, + current_exporter_secret: &hkdf::Prk, + out: &mut [u8], + label: &[u8], + context: Option<&[u8]>, + ) -> Result<(), Error> { + let digest_alg = self + .algorithm + .hmac_algorithm() + .digest_algorithm(); + + let h_empty = digest::digest(digest_alg, &[]); + let secret: hkdf::Prk = hkdf_expand( + current_exporter_secret, + self.algorithm, + label, + h_empty.as_ref(), + ); + + let h_context = digest::digest(digest_alg, context.unwrap_or(&[])); + + // TODO: Test what happens when this fails + hkdf_expand_info( + &secret, + PayloadU8Len(out.len()), + b"exporter", + h_context.as_ref(), + |okm| okm.fill(out), + ) + .map_err(|_| Error::General("exporting too much".to_string())) + } +} + +pub(crate) fn hkdf_expand(secret: &hkdf::Prk, key_type: L, label: &[u8], context: &[u8]) -> T +where + T: for<'a> From>, + L: hkdf::KeyType, +{ + hkdf_expand_info(secret, key_type, label, context, |okm| okm.into()) +} + +fn hkdf_expand_info( + secret: &hkdf::Prk, + key_type: L, + label: &[u8], + context: &[u8], + f: F, +) -> T +where + F: for<'b> FnOnce(hkdf::Okm<'b, L>) -> T, + L: hkdf::KeyType, +{ + const LABEL_PREFIX: &[u8] = b"tls13 "; + + let output_len = u16::to_be_bytes(key_type.len() as u16); + let label_len = u8::to_be_bytes((LABEL_PREFIX.len() + label.len()) as u8); + let context_len = u8::to_be_bytes(context.len() as u8); + + let info = &[ + &output_len[..], + &label_len[..], + LABEL_PREFIX, + label, + &context_len[..], + context, + ]; + let okm = secret.expand(info, key_type).unwrap(); + + f(okm) +} + +pub(crate) struct PayloadU8Len(pub(crate) usize); +impl hkdf::KeyType for PayloadU8Len { + fn len(&self) -> usize { + self.0 + } +} + +impl From> for PayloadU8 { + fn from(okm: hkdf::Okm) -> Self { + let mut r = vec![0u8; okm.len().0]; + okm.fill(&mut r[..]).unwrap(); + Self::new(r) + } +} + +pub(crate) fn derive_traffic_key( + secret: &hkdf::Prk, + aead_algorithm: &'static aead::Algorithm, +) -> aead::UnboundKey { + hkdf_expand(secret, aead_algorithm, b"key", &[]) +} + +pub(crate) fn derive_traffic_iv(secret: &hkdf::Prk) -> Iv { + hkdf_expand(secret, IvLen, b"iv", &[]) +} + +#[cfg(test)] +mod test { + use super::{derive_traffic_iv, derive_traffic_key, KeySchedule, SecretKind}; + use crate::KeyLog; + use ring::{aead, hkdf}; + + #[test] + fn test_vectors() { + /* These test vectors generated with OpenSSL. */ + let hs_start_hash = [ + 0xec, 0x14, 0x7a, 0x06, 0xde, 0xa3, 0xc8, 0x84, 0x6c, 0x02, 0xb2, 0x23, 0x8e, 0x41, + 0xbd, 0xdc, 0x9d, 0x89, 0xf9, 0xae, 0xa1, 0x7b, 0x5e, 0xfd, 0x4d, 0x74, 0x82, 0xaf, + 0x75, 0x88, 0x1c, 0x0a, + ]; + + let hs_full_hash = [ + 0x75, 0x1a, 0x3d, 0x4a, 0x14, 0xdf, 0xab, 0xeb, 0x68, 0xe9, 0x2c, 0xa5, 0x91, 0x8e, + 0x24, 0x08, 0xb9, 0xbc, 0xb0, 0x74, 0x89, 0x82, 0xec, 0x9c, 0x32, 0x30, 0xac, 0x30, + 0xbb, 0xeb, 0x23, 0xe2, + ]; + + let ecdhe_secret = [ + 0xe7, 0xb8, 0xfe, 0xf8, 0x90, 0x3b, 0x52, 0x0c, 0xb9, 0xa1, 0x89, 0x71, 0xb6, 0x9d, + 0xd4, 0x5d, 0xca, 0x53, 0xce, 0x2f, 0x12, 0xbf, 0x3b, 0xef, 0x93, 0x15, 0xe3, 0x12, + 0x71, 0xdf, 0x4b, 0x40, + ]; + + let client_hts = [ + 0x61, 0x7b, 0x35, 0x07, 0x6b, 0x9d, 0x0e, 0x08, 0xcf, 0x73, 0x1d, 0x94, 0xa8, 0x66, + 0x14, 0x78, 0x41, 0x09, 0xef, 0x25, 0x55, 0x51, 0x92, 0x1d, 0xd4, 0x6e, 0x04, 0x01, + 0x35, 0xcf, 0x46, 0xab, + ]; + + let client_hts_key = [ + 0x62, 0xd0, 0xdd, 0x00, 0xf6, 0x96, 0x19, 0xd3, 0xb8, 0x19, 0x3a, 0xb4, 0xa0, 0x95, + 0x85, 0xa7, + ]; + + let client_hts_iv = [ + 0xff, 0xf7, 0x5d, 0xf5, 0xad, 0x35, 0xd5, 0xcb, 0x3c, 0x53, 0xf3, 0xa9, + ]; + + let server_hts = [ + 0xfc, 0xf7, 0xdf, 0xe6, 0x4f, 0xa2, 0xc0, 0x4f, 0x62, 0x35, 0x38, 0x7f, 0x43, 0x4e, + 0x01, 0x42, 0x23, 0x36, 0xd9, 0xc0, 0x39, 0xde, 0x68, 0x47, 0xa0, 0xb9, 0xdd, 0xcf, + 0x29, 0xa8, 0x87, 0x59, + ]; + + let server_hts_key = [ + 0x04, 0x67, 0xf3, 0x16, 0xa8, 0x05, 0xb8, 0xc4, 0x97, 0xee, 0x67, 0x04, 0x7b, 0xbc, + 0xbc, 0x54, + ]; + + let server_hts_iv = [ + 0xde, 0x83, 0xa7, 0x3e, 0x9d, 0x81, 0x4b, 0x04, 0xc4, 0x8b, 0x78, 0x09, + ]; + + let client_ats = [ + 0xc1, 0x4a, 0x6d, 0x79, 0x76, 0xd8, 0x10, 0x2b, 0x5a, 0x0c, 0x99, 0x51, 0x49, 0x3f, + 0xee, 0x87, 0xdc, 0xaf, 0xf8, 0x2c, 0x24, 0xca, 0xb2, 0x14, 0xe8, 0xbe, 0x71, 0xa8, + 0x20, 0x6d, 0xbd, 0xa5, + ]; + + let client_ats_key = [ + 0xcc, 0x9f, 0x5f, 0x98, 0x0b, 0x5f, 0x10, 0x30, 0x6c, 0xba, 0xd7, 0xbe, 0x98, 0xd7, + 0x57, 0x2e, + ]; + + let client_ats_iv = [ + 0xb8, 0x09, 0x29, 0xe8, 0xd0, 0x2c, 0x70, 0xf6, 0x11, 0x62, 0xed, 0x6b, + ]; + + let server_ats = [ + 0x2c, 0x90, 0x77, 0x38, 0xd3, 0xf8, 0x37, 0x02, 0xd1, 0xe4, 0x59, 0x8f, 0x48, 0x48, + 0x53, 0x1d, 0x9f, 0x93, 0x65, 0x49, 0x1b, 0x9f, 0x7f, 0x52, 0xc8, 0x22, 0x29, 0x0d, + 0x4c, 0x23, 0x21, 0x92, + ]; + + let server_ats_key = [ + 0x0c, 0xb2, 0x95, 0x62, 0xd8, 0xd8, 0x8f, 0x48, 0xb0, 0x2c, 0xbf, 0xbe, 0xd7, 0xe6, + 0x2b, 0xb3, + ]; + + let server_ats_iv = [ + 0x0d, 0xb2, 0x8f, 0x98, 0x85, 0x86, 0xa1, 0xb7, 0xe4, 0xd5, 0xc6, 0x9c, + ]; + + let hkdf = hkdf::HKDF_SHA256; + let mut ks = KeySchedule::new_with_empty_secret(hkdf); + ks.input_secret(&ecdhe_secret); + + assert_traffic_secret( + &ks, + SecretKind::ClientHandshakeTrafficSecret, + &hs_start_hash, + &client_hts, + &client_hts_key, + &client_hts_iv, + ); + + assert_traffic_secret( + &ks, + SecretKind::ServerHandshakeTrafficSecret, + &hs_start_hash, + &server_hts, + &server_hts_key, + &server_hts_iv, + ); + + ks.input_empty(); + + assert_traffic_secret( + &ks, + SecretKind::ClientApplicationTrafficSecret, + &hs_full_hash, + &client_ats, + &client_ats_key, + &client_ats_iv, + ); + + assert_traffic_secret( + &ks, + SecretKind::ServerApplicationTrafficSecret, + &hs_full_hash, + &server_ats, + &server_ats_key, + &server_ats_iv, + ); + } + + fn assert_traffic_secret( + ks: &KeySchedule, + kind: SecretKind, + hash: &[u8], + expected_traffic_secret: &[u8], + expected_key: &[u8], + expected_iv: &[u8], + ) { + struct Log<'a>(&'a [u8]); + impl KeyLog for Log<'_> { + fn log(&self, _label: &str, _client_random: &[u8], secret: &[u8]) { + assert_eq!(self.0, secret); + } + } + let log = Log(expected_traffic_secret); + let traffic_secret = ks.derive_logged_secret(kind, hash, &log, &[0; 32]); + + // Since we can't test key equality, we test the output of sealing with the key instead. + let aead_alg = &aead::AES_128_GCM; + let key = derive_traffic_key(&traffic_secret, aead_alg); + let seal_output = seal_zeroes(key); + let expected_key = aead::UnboundKey::new(aead_alg, expected_key).unwrap(); + let expected_seal_output = seal_zeroes(expected_key); + assert_eq!(seal_output, expected_seal_output); + assert!(seal_output.len() >= 48); // Sanity check. + + let iv = derive_traffic_iv(&traffic_secret); + assert_eq!(iv.value(), expected_iv); + } + + fn seal_zeroes(key: aead::UnboundKey) -> Vec { + let key = aead::LessSafeKey::new(key); + let mut seal_output = vec![0; 32]; + key.seal_in_place_append_tag( + aead::Nonce::assume_unique_for_key([0; aead::NONCE_LEN]), + aead::Aad::empty(), + &mut seal_output, + ) + .unwrap(); + seal_output + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/tls13/mod.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/tls13/mod.rs new file mode 100644 index 0000000000000000000000000000000000000000..3f5b27d2c19170a70516fd0c751d4420fdf71ac4 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-0.20.9/src/tls13/mod.rs @@ -0,0 +1,224 @@ +use crate::cipher::{make_nonce, Iv, MessageDecrypter, MessageEncrypter}; +use crate::enums::{CipherSuite, ProtocolVersion}; +use crate::error::Error; +use crate::msgs::base::Payload; +use crate::msgs::codec::Codec; +use crate::msgs::enums::ContentType; +use crate::msgs::fragmenter::MAX_FRAGMENT_LEN; +use crate::msgs::message::{BorrowedPlainMessage, OpaqueMessage, PlainMessage}; +use crate::suites::{BulkAlgorithm, CipherSuiteCommon, SupportedCipherSuite}; + +use ring::{aead, hkdf}; + +use std::fmt; + +pub(crate) mod key_schedule; +use key_schedule::{derive_traffic_iv, derive_traffic_key}; + +/// The TLS1.3 ciphersuite TLS_CHACHA20_POLY1305_SHA256 +pub static TLS13_CHACHA20_POLY1305_SHA256: SupportedCipherSuite = + SupportedCipherSuite::Tls13(TLS13_CHACHA20_POLY1305_SHA256_INTERNAL); + +pub(crate) static TLS13_CHACHA20_POLY1305_SHA256_INTERNAL: &Tls13CipherSuite = &Tls13CipherSuite { + common: CipherSuiteCommon { + suite: CipherSuite::TLS13_CHACHA20_POLY1305_SHA256, + bulk: BulkAlgorithm::Chacha20Poly1305, + aead_algorithm: &ring::aead::CHACHA20_POLY1305, + }, + hkdf_algorithm: ring::hkdf::HKDF_SHA256, + #[cfg(feature = "quic")] + confidentiality_limit: u64::MAX, + #[cfg(feature = "quic")] + integrity_limit: 1 << 36, +}; + +/// The TLS1.3 ciphersuite TLS_AES_256_GCM_SHA384 +pub static TLS13_AES_256_GCM_SHA384: SupportedCipherSuite = + SupportedCipherSuite::Tls13(&Tls13CipherSuite { + common: CipherSuiteCommon { + suite: CipherSuite::TLS13_AES_256_GCM_SHA384, + bulk: BulkAlgorithm::Aes256Gcm, + aead_algorithm: &ring::aead::AES_256_GCM, + }, + hkdf_algorithm: ring::hkdf::HKDF_SHA384, + #[cfg(feature = "quic")] + confidentiality_limit: 1 << 23, + #[cfg(feature = "quic")] + integrity_limit: 1 << 52, + }); + +/// The TLS1.3 ciphersuite TLS_AES_128_GCM_SHA256 +pub static TLS13_AES_128_GCM_SHA256: SupportedCipherSuite = + SupportedCipherSuite::Tls13(TLS13_AES_128_GCM_SHA256_INTERNAL); + +pub(crate) static TLS13_AES_128_GCM_SHA256_INTERNAL: &Tls13CipherSuite = &Tls13CipherSuite { + common: CipherSuiteCommon { + suite: CipherSuite::TLS13_AES_128_GCM_SHA256, + bulk: BulkAlgorithm::Aes128Gcm, + aead_algorithm: &ring::aead::AES_128_GCM, + }, + hkdf_algorithm: ring::hkdf::HKDF_SHA256, + #[cfg(feature = "quic")] + confidentiality_limit: 1 << 23, + #[cfg(feature = "quic")] + integrity_limit: 1 << 52, +}; + +/// A TLS 1.3 cipher suite supported by rustls. +pub struct Tls13CipherSuite { + /// Common cipher suite fields. + pub common: CipherSuiteCommon, + pub(crate) hkdf_algorithm: ring::hkdf::Algorithm, + #[cfg(feature = "quic")] + pub(crate) confidentiality_limit: u64, + #[cfg(feature = "quic")] + pub(crate) integrity_limit: u64, +} + +impl Tls13CipherSuite { + pub(crate) fn derive_encrypter(&self, secret: &hkdf::Prk) -> Box { + let key = derive_traffic_key(secret, self.common.aead_algorithm); + let iv = derive_traffic_iv(secret); + + Box::new(Tls13MessageEncrypter { + enc_key: aead::LessSafeKey::new(key), + iv, + }) + } + + /// Derive a `MessageDecrypter` object from the concerned TLS 1.3 + /// cipher suite. + pub fn derive_decrypter(&self, secret: &hkdf::Prk) -> Box { + let key = derive_traffic_key(secret, self.common.aead_algorithm); + let iv = derive_traffic_iv(secret); + + Box::new(Tls13MessageDecrypter { + dec_key: aead::LessSafeKey::new(key), + iv, + }) + } + + /// Which hash function to use with this suite. + pub fn hash_algorithm(&self) -> &'static ring::digest::Algorithm { + self.hkdf_algorithm + .hmac_algorithm() + .digest_algorithm() + } + + /// Can a session using suite self resume from suite prev? + pub fn can_resume_from(&self, prev: &'static Self) -> Option<&'static Self> { + (prev.hash_algorithm() == self.hash_algorithm()).then(|| prev) + } +} + +impl From<&'static Tls13CipherSuite> for SupportedCipherSuite { + fn from(s: &'static Tls13CipherSuite) -> Self { + Self::Tls13(s) + } +} + +impl PartialEq for Tls13CipherSuite { + fn eq(&self, other: &Self) -> bool { + self.common.suite == other.common.suite + } +} + +impl fmt::Debug for Tls13CipherSuite { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.debug_struct("Tls13CipherSuite") + .field("suite", &self.common.suite) + .field("bulk", &self.common.bulk) + .finish() + } +} + +struct Tls13MessageEncrypter { + enc_key: aead::LessSafeKey, + iv: Iv, +} + +struct Tls13MessageDecrypter { + dec_key: aead::LessSafeKey, + iv: Iv, +} + +fn unpad_tls13(v: &mut Vec) -> ContentType { + loop { + match v.pop() { + Some(0) => {} + Some(content_type) => return ContentType::from(content_type), + None => return ContentType::Unknown(0), + } + } +} + +fn make_tls13_aad(len: usize) -> ring::aead::Aad<[u8; TLS13_AAD_SIZE]> { + ring::aead::Aad::from([ + 0x17, // ContentType::ApplicationData + 0x3, // ProtocolVersion (major) + 0x3, // ProtocolVersion (minor) + (len >> 8) as u8, + len as u8, + ]) +} + +// https://datatracker.ietf.org/doc/html/rfc8446#section-5.2 +const TLS13_AAD_SIZE: usize = 1 + 2 + 2; + +impl MessageEncrypter for Tls13MessageEncrypter { + fn encrypt(&self, msg: BorrowedPlainMessage, seq: u64) -> Result { + let total_len = msg.payload.len() + 1 + self.enc_key.algorithm().tag_len(); + let mut payload = Vec::with_capacity(total_len); + payload.extend_from_slice(msg.payload); + msg.typ.encode(&mut payload); + + let nonce = make_nonce(&self.iv, seq); + let aad = make_tls13_aad(total_len); + + self.enc_key + .seal_in_place_append_tag(nonce, aad, &mut payload) + .map_err(|_| Error::General("encrypt failed".to_string()))?; + + Ok(OpaqueMessage { + typ: ContentType::ApplicationData, + version: ProtocolVersion::TLSv1_2, + payload: Payload::new(payload), + }) + } +} + +impl MessageDecrypter for Tls13MessageDecrypter { + fn decrypt(&self, mut msg: OpaqueMessage, seq: u64) -> Result { + let payload = &mut msg.payload.0; + if payload.len() < self.dec_key.algorithm().tag_len() { + return Err(Error::DecryptError); + } + + let nonce = make_nonce(&self.iv, seq); + let aad = make_tls13_aad(payload.len()); + let plain_len = self + .dec_key + .open_in_place(nonce, aad, payload) + .map_err(|_| Error::DecryptError)? + .len(); + + payload.truncate(plain_len); + + if payload.len() > MAX_FRAGMENT_LEN + 1 { + return Err(Error::PeerSentOversizedRecord); + } + + msg.typ = unpad_tls13(payload); + if msg.typ == ContentType::Unknown(0) { + let msg = "peer sent bad TLSInnerPlaintext".to_string(); + return Err(Error::PeerMisbehavedError(msg)); + } + + if payload.len() > MAX_FRAGMENT_LEN { + return Err(Error::PeerSentOversizedRecord); + } + + msg.version = ProtocolVersion::TLSv1_3; + Ok(msg.into_plain_message()) + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/benches/file.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/benches/file.rs new file mode 100644 index 0000000000000000000000000000000000000000..bd4a247df662e2c9161520090617c69b1e71a08a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/benches/file.rs @@ -0,0 +1,55 @@ +// $ cargo bench --features full,test --bench file + +#![feature(rustc_private, test)] +#![recursion_limit = "1024"] +#![allow( + clippy::items_after_statements, + clippy::missing_panics_doc, + clippy::must_use_candidate +)] + +extern crate test; + +#[macro_use] +#[path = "../tests/macros/mod.rs"] +mod macros; + +#[path = "../tests/common/mod.rs"] +mod common; +#[path = "../tests/repo/mod.rs"] +pub mod repo; + +use proc_macro2::{Span, TokenStream}; +use std::fs; +use std::str::FromStr; +use syn::parse::{ParseStream, Parser}; +use test::Bencher; + +const FILE: &str = "tests/rust/library/core/src/str/mod.rs"; + +fn get_tokens() -> TokenStream { + repo::clone_rust(); + let content = fs::read_to_string(FILE).unwrap(); + TokenStream::from_str(&content).unwrap() +} + +#[bench] +fn baseline(b: &mut Bencher) { + let tokens = get_tokens(); + b.iter(|| drop(tokens.clone())); +} + +#[bench] +fn create_token_buffer(b: &mut Bencher) { + let tokens = get_tokens(); + fn immediate_fail(_input: ParseStream) -> syn::Result<()> { + Err(syn::Error::new(Span::call_site(), "")) + } + b.iter(|| immediate_fail.parse2(tokens.clone())); +} + +#[bench] +fn parse_file(b: &mut Bencher) { + let tokens = get_tokens(); + b.iter(|| syn::parse2::(tokens.clone())); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/benches/rust.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/benches/rust.rs new file mode 100644 index 0000000000000000000000000000000000000000..e3f8f550abb1a1d47d123e80e68fab29cd225126 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/benches/rust.rs @@ -0,0 +1,170 @@ +// $ cargo bench --features full,test --bench rust +// +// Syn only, useful for profiling: +// $ RUSTFLAGS='--cfg syn_only' cargo build --release --features full,test --bench rust + +#![cfg_attr(not(syn_only), feature(rustc_private))] +#![recursion_limit = "1024"] +#![allow(clippy::cast_lossless, clippy::unnecessary_wraps)] + +#[macro_use] +#[path = "../tests/macros/mod.rs"] +mod macros; + +#[path = "../tests/common/mod.rs"] +mod common; +#[path = "../tests/repo/mod.rs"] +mod repo; + +use std::fs; +use std::time::{Duration, Instant}; + +#[cfg(not(syn_only))] +mod tokenstream_parse { + use proc_macro2::TokenStream; + use std::str::FromStr; + + pub fn bench(content: &str) -> Result<(), ()> { + TokenStream::from_str(content).map(drop).map_err(drop) + } +} + +mod syn_parse { + pub fn bench(content: &str) -> Result<(), ()> { + syn::parse_file(content).map(drop).map_err(drop) + } +} + +#[cfg(not(syn_only))] +mod librustc_parse { + extern crate rustc_data_structures; + extern crate rustc_error_messages; + extern crate rustc_errors; + extern crate rustc_parse; + extern crate rustc_session; + extern crate rustc_span; + + use rustc_data_structures::sync::Lrc; + use rustc_error_messages::FluentBundle; + use rustc_errors::{emitter::Emitter, translation::Translate, Diagnostic, Handler}; + use rustc_session::parse::ParseSess; + use rustc_span::source_map::{FilePathMapping, SourceMap}; + use rustc_span::{edition::Edition, FileName}; + + pub fn bench(content: &str) -> Result<(), ()> { + struct SilentEmitter; + + impl Emitter for SilentEmitter { + fn emit_diagnostic(&mut self, _diag: &Diagnostic) {} + fn source_map(&self) -> Option<&Lrc> { + None + } + } + + impl Translate for SilentEmitter { + fn fluent_bundle(&self) -> Option<&Lrc> { + None + } + fn fallback_fluent_bundle(&self) -> &FluentBundle { + panic!("silent emitter attempted to translate a diagnostic"); + } + } + + rustc_span::create_session_if_not_set_then(Edition::Edition2018, |_| { + let cm = Lrc::new(SourceMap::new(FilePathMapping::empty())); + let emitter = Box::new(SilentEmitter); + let handler = Handler::with_emitter(false, None, emitter); + let sess = ParseSess::with_span_handler(handler, cm); + if let Err(diagnostic) = rustc_parse::parse_crate_from_source_str( + FileName::Custom("bench".to_owned()), + content.to_owned(), + &sess, + ) { + diagnostic.cancel(); + return Err(()); + }; + Ok(()) + }) + } +} + +#[cfg(not(syn_only))] +mod read_from_disk { + pub fn bench(content: &str) -> Result<(), ()> { + _ = content; + Ok(()) + } +} + +fn exec(mut codepath: impl FnMut(&str) -> Result<(), ()>) -> Duration { + let begin = Instant::now(); + let mut success = 0; + let mut total = 0; + + walkdir::WalkDir::new("tests/rust/src") + .into_iter() + .filter_entry(repo::base_dir_filter) + .for_each(|entry| { + let entry = entry.unwrap(); + let path = entry.path(); + if path.is_dir() { + return; + } + let content = fs::read_to_string(path).unwrap(); + let ok = codepath(&content).is_ok(); + success += ok as usize; + total += 1; + if !ok { + eprintln!("FAIL {}", path.display()); + } + }); + + assert_eq!(success, total); + begin.elapsed() +} + +fn main() { + repo::clone_rust(); + + macro_rules! testcases { + ($($(#[$cfg:meta])* $name:ident,)*) => { + [ + $( + $(#[$cfg])* + (stringify!($name), $name::bench as fn(&str) -> Result<(), ()>), + )* + ] + }; + } + + #[cfg(not(syn_only))] + { + let mut lines = 0; + let mut files = 0; + exec(|content| { + lines += content.lines().count(); + files += 1; + Ok(()) + }); + eprintln!("\n{} lines in {} files", lines, files); + } + + for (name, f) in testcases!( + #[cfg(not(syn_only))] + read_from_disk, + #[cfg(not(syn_only))] + tokenstream_parse, + syn_parse, + #[cfg(not(syn_only))] + librustc_parse, + ) { + eprint!("{:20}", format!("{}:", name)); + let elapsed = exec(f); + eprintln!( + "elapsed={}.{:03}s", + elapsed.as_secs(), + elapsed.subsec_millis(), + ); + } + eprintln!(); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/attr.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/attr.rs new file mode 100644 index 0000000000000000000000000000000000000000..bace94f43c8549de54dc429d9fd01fa731b99247 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/attr.rs @@ -0,0 +1,662 @@ +use super::*; +use crate::punctuated::Punctuated; +use proc_macro2::TokenStream; +use std::iter; +use std::slice; + +#[cfg(feature = "parsing")] +use crate::parse::{Parse, ParseBuffer, ParseStream, Parser, Result}; +#[cfg(feature = "parsing")] +use crate::punctuated::Pair; + +ast_struct! { + /// An attribute like `#[repr(transparent)]`. + /// + /// *This type is available only if Syn is built with the `"derive"` or `"full"` + /// feature.* + /// + ///
+ /// + /// # Syntax + /// + /// Rust has six types of attributes. + /// + /// - Outer attributes like `#[repr(transparent)]`. These appear outside or + /// in front of the item they describe. + /// - Inner attributes like `#![feature(proc_macro)]`. These appear inside + /// of the item they describe, usually a module. + /// - Outer doc comments like `/// # Example`. + /// - Inner doc comments like `//! Please file an issue`. + /// - Outer block comments `/** # Example */`. + /// - Inner block comments `/*! Please file an issue */`. + /// + /// The `style` field of type `AttrStyle` distinguishes whether an attribute + /// is outer or inner. Doc comments and block comments are promoted to + /// attributes, as this is how they are processed by the compiler and by + /// `macro_rules!` macros. + /// + /// The `path` field gives the possibly colon-delimited path against which + /// the attribute is resolved. It is equal to `"doc"` for desugared doc + /// comments. The `tokens` field contains the rest of the attribute body as + /// tokens. + /// + /// ```text + /// #[derive(Copy)] #[crate::precondition x < 5] + /// ^^^^^^~~~~~~ ^^^^^^^^^^^^^^^^^^^ ~~~~~ + /// path tokens path tokens + /// ``` + /// + ///
+ /// + /// # Parsing from tokens to Attribute + /// + /// This type does not implement the [`Parse`] trait and thus cannot be + /// parsed directly by [`ParseStream::parse`]. Instead use + /// [`ParseStream::call`] with one of the two parser functions + /// [`Attribute::parse_outer`] or [`Attribute::parse_inner`] depending on + /// which you intend to parse. + /// + /// [`Parse`]: parse::Parse + /// [`ParseStream::parse`]: parse::ParseBuffer::parse + /// [`ParseStream::call`]: parse::ParseBuffer::call + /// + /// ``` + /// use syn::{Attribute, Ident, Result, Token}; + /// use syn::parse::{Parse, ParseStream}; + /// + /// // Parses a unit struct with attributes. + /// // + /// // #[path = "s.tmpl"] + /// // struct S; + /// struct UnitStruct { + /// attrs: Vec, + /// struct_token: Token![struct], + /// name: Ident, + /// semi_token: Token![;], + /// } + /// + /// impl Parse for UnitStruct { + /// fn parse(input: ParseStream) -> Result { + /// Ok(UnitStruct { + /// attrs: input.call(Attribute::parse_outer)?, + /// struct_token: input.parse()?, + /// name: input.parse()?, + /// semi_token: input.parse()?, + /// }) + /// } + /// } + /// ``` + /// + ///


+ /// + /// # Parsing from Attribute to structured arguments + /// + /// The grammar of attributes in Rust is very flexible, which makes the + /// syntax tree not that useful on its own. In particular, arguments of the + /// attribute are held in an arbitrary `tokens: TokenStream`. Macros are + /// expected to check the `path` of the attribute, decide whether they + /// recognize it, and then parse the remaining tokens according to whatever + /// grammar they wish to require for that kind of attribute. + /// + /// If the attribute you are parsing is expected to conform to the + /// conventional structured form of attribute, use [`parse_meta()`] to + /// obtain that structured representation. If the attribute follows some + /// other grammar of its own, use [`parse_args()`] to parse that into the + /// expected data structure. + /// + /// [`parse_meta()`]: Attribute::parse_meta + /// [`parse_args()`]: Attribute::parse_args + /// + ///


+ /// + /// # Doc comments + /// + /// The compiler transforms doc comments, such as `/// comment` and `/*! + /// comment */`, into attributes before macros are expanded. Each comment is + /// expanded into an attribute of the form `#[doc = r"comment"]`. + /// + /// As an example, the following `mod` items are expanded identically: + /// + /// ``` + /// # use syn::{ItemMod, parse_quote}; + /// let doc: ItemMod = parse_quote! { + /// /// Single line doc comments + /// /// We write so many! + /// /** + /// * Multi-line comments... + /// * May span many lines + /// */ + /// mod example { + /// //! Of course, they can be inner too + /// /*! And fit in a single line */ + /// } + /// }; + /// let attr: ItemMod = parse_quote! { + /// #[doc = r" Single line doc comments"] + /// #[doc = r" We write so many!"] + /// #[doc = r" + /// * Multi-line comments... + /// * May span many lines + /// "] + /// mod example { + /// #![doc = r" Of course, they can be inner too"] + /// #![doc = r" And fit in a single line "] + /// } + /// }; + /// assert_eq!(doc, attr); + /// ``` + #[cfg_attr(doc_cfg, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct Attribute { + pub pound_token: Token![#], + pub style: AttrStyle, + pub bracket_token: token::Bracket, + pub path: Path, + pub tokens: TokenStream, + } +} + +impl Attribute { + /// Parses the content of the attribute, consisting of the path and tokens, + /// as a [`Meta`] if possible. + /// + /// *This function is available only if Syn is built with the `"parsing"` + /// feature.* + #[cfg(feature = "parsing")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "parsing")))] + pub fn parse_meta(&self) -> Result { + fn clone_ident_segment(segment: &PathSegment) -> PathSegment { + PathSegment { + ident: segment.ident.clone(), + arguments: PathArguments::None, + } + } + + let path = Path { + leading_colon: self + .path + .leading_colon + .as_ref() + .map(|colon| Token![::](colon.spans)), + segments: self + .path + .segments + .pairs() + .map(|pair| match pair { + Pair::Punctuated(seg, punct) => { + Pair::Punctuated(clone_ident_segment(seg), Token![::](punct.spans)) + } + Pair::End(seg) => Pair::End(clone_ident_segment(seg)), + }) + .collect(), + }; + + let parser = |input: ParseStream| parsing::parse_meta_after_path(path, input); + parse::Parser::parse2(parser, self.tokens.clone()) + } + + /// Parse the arguments to the attribute as a syntax tree. + /// + /// This is similar to `syn::parse2::(attr.tokens)` except that: + /// + /// - the surrounding delimiters are *not* included in the input to the + /// parser; and + /// - the error message has a more useful span when `tokens` is empty. + /// + /// ```text + /// #[my_attr(value < 5)] + /// ^^^^^^^^^ what gets parsed + /// ``` + /// + /// *This function is available only if Syn is built with the `"parsing"` + /// feature.* + #[cfg(feature = "parsing")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "parsing")))] + pub fn parse_args(&self) -> Result { + self.parse_args_with(T::parse) + } + + /// Parse the arguments to the attribute using the given parser. + /// + /// *This function is available only if Syn is built with the `"parsing"` + /// feature.* + #[cfg(feature = "parsing")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "parsing")))] + pub fn parse_args_with(&self, parser: F) -> Result { + let parser = |input: ParseStream| { + let args = enter_args(self, input)?; + parse::parse_stream(parser, &args) + }; + parser.parse2(self.tokens.clone()) + } + + /// Parses zero or more outer attributes from the stream. + /// + /// *This function is available only if Syn is built with the `"parsing"` + /// feature.* + #[cfg(feature = "parsing")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "parsing")))] + pub fn parse_outer(input: ParseStream) -> Result> { + let mut attrs = Vec::new(); + while input.peek(Token![#]) { + attrs.push(input.call(parsing::single_parse_outer)?); + } + Ok(attrs) + } + + /// Parses zero or more inner attributes from the stream. + /// + /// *This function is available only if Syn is built with the `"parsing"` + /// feature.* + #[cfg(feature = "parsing")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "parsing")))] + pub fn parse_inner(input: ParseStream) -> Result> { + let mut attrs = Vec::new(); + parsing::parse_inner(input, &mut attrs)?; + Ok(attrs) + } +} + +#[cfg(feature = "parsing")] +fn expected_parentheses(attr: &Attribute) -> String { + let style = match attr.style { + AttrStyle::Outer => "#", + AttrStyle::Inner(_) => "#!", + }; + + let mut path = String::new(); + for segment in &attr.path.segments { + if !path.is_empty() || attr.path.leading_colon.is_some() { + path += "::"; + } + path += &segment.ident.to_string(); + } + + format!("{}[{}(...)]", style, path) +} + +#[cfg(feature = "parsing")] +fn enter_args<'a>(attr: &Attribute, input: ParseStream<'a>) -> Result> { + if input.is_empty() { + let expected = expected_parentheses(attr); + let msg = format!("expected attribute arguments in parentheses: {}", expected); + return Err(crate::error::new2( + attr.pound_token.span, + attr.bracket_token.span, + msg, + )); + } else if input.peek(Token![=]) { + let expected = expected_parentheses(attr); + let msg = format!("expected parentheses: {}", expected); + return Err(input.error(msg)); + }; + + let content; + if input.peek(token::Paren) { + parenthesized!(content in input); + } else if input.peek(token::Bracket) { + bracketed!(content in input); + } else if input.peek(token::Brace) { + braced!(content in input); + } else { + return Err(input.error("unexpected token in attribute arguments")); + } + + if input.is_empty() { + Ok(content) + } else { + Err(input.error("unexpected token in attribute arguments")) + } +} + +ast_enum! { + /// Distinguishes between attributes that decorate an item and attributes + /// that are contained within an item. + /// + /// *This type is available only if Syn is built with the `"derive"` or `"full"` + /// feature.* + /// + /// # Outer attributes + /// + /// - `#[repr(transparent)]` + /// - `/// # Example` + /// - `/** Please file an issue */` + /// + /// # Inner attributes + /// + /// - `#![feature(proc_macro)]` + /// - `//! # Example` + /// - `/*! Please file an issue */` + #[cfg_attr(doc_cfg, doc(cfg(any(feature = "full", feature = "derive"))))] + pub enum AttrStyle { + Outer, + Inner(Token![!]), + } +} + +ast_enum_of_structs! { + /// Content of a compile-time structured attribute. + /// + /// *This type is available only if Syn is built with the `"derive"` or `"full"` + /// feature.* + /// + /// ## Path + /// + /// A meta path is like the `test` in `#[test]`. + /// + /// ## List + /// + /// A meta list is like the `derive(Copy)` in `#[derive(Copy)]`. + /// + /// ## NameValue + /// + /// A name-value meta is like the `path = "..."` in `#[path = + /// "sys/windows.rs"]`. + /// + /// # Syntax tree enum + /// + /// This type is a [syntax tree enum]. + /// + /// [syntax tree enum]: Expr#syntax-tree-enums + #[cfg_attr(doc_cfg, doc(cfg(any(feature = "full", feature = "derive"))))] + pub enum Meta { + Path(Path), + + /// A structured list within an attribute, like `derive(Copy, Clone)`. + List(MetaList), + + /// A name-value pair within an attribute, like `feature = "nightly"`. + NameValue(MetaNameValue), + } +} + +ast_struct! { + /// A structured list within an attribute, like `derive(Copy, Clone)`. + /// + /// *This type is available only if Syn is built with the `"derive"` or + /// `"full"` feature.* + #[cfg_attr(doc_cfg, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct MetaList { + pub path: Path, + pub paren_token: token::Paren, + pub nested: Punctuated, + } +} + +ast_struct! { + /// A name-value pair within an attribute, like `feature = "nightly"`. + /// + /// *This type is available only if Syn is built with the `"derive"` or + /// `"full"` feature.* + #[cfg_attr(doc_cfg, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct MetaNameValue { + pub path: Path, + pub eq_token: Token![=], + pub lit: Lit, + } +} + +impl Meta { + /// Returns the identifier that begins this structured meta item. + /// + /// For example this would return the `test` in `#[test]`, the `derive` in + /// `#[derive(Copy)]`, and the `path` in `#[path = "sys/windows.rs"]`. + pub fn path(&self) -> &Path { + match self { + Meta::Path(path) => path, + Meta::List(meta) => &meta.path, + Meta::NameValue(meta) => &meta.path, + } + } +} + +ast_enum_of_structs! { + /// Element of a compile-time attribute list. + /// + /// *This type is available only if Syn is built with the `"derive"` or `"full"` + /// feature.* + #[cfg_attr(doc_cfg, doc(cfg(any(feature = "full", feature = "derive"))))] + pub enum NestedMeta { + /// A structured meta item, like the `Copy` in `#[derive(Copy)]` which + /// would be a nested `Meta::Path`. + Meta(Meta), + + /// A Rust literal, like the `"new_name"` in `#[rename("new_name")]`. + Lit(Lit), + } +} + +/// Conventional argument type associated with an invocation of an attribute +/// macro. +/// +/// For example if we are developing an attribute macro that is intended to be +/// invoked on function items as follows: +/// +/// ``` +/// # const IGNORE: &str = stringify! { +/// #[my_attribute(path = "/v1/refresh")] +/// # }; +/// pub fn refresh() { +/// /* ... */ +/// } +/// ``` +/// +/// The implementation of this macro would want to parse its attribute arguments +/// as type `AttributeArgs`. +/// +/// ``` +/// # extern crate proc_macro; +/// # +/// use proc_macro::TokenStream; +/// use syn::{parse_macro_input, AttributeArgs, ItemFn}; +/// +/// # const IGNORE: &str = stringify! { +/// #[proc_macro_attribute] +/// # }; +/// pub fn my_attribute(args: TokenStream, input: TokenStream) -> TokenStream { +/// let args = parse_macro_input!(args as AttributeArgs); +/// let input = parse_macro_input!(input as ItemFn); +/// +/// /* ... */ +/// # "".parse().unwrap() +/// } +/// ``` +#[cfg_attr(doc_cfg, doc(cfg(any(feature = "full", feature = "derive"))))] +pub type AttributeArgs = Vec; + +pub trait FilterAttrs<'a> { + type Ret: Iterator; + + fn outer(self) -> Self::Ret; + fn inner(self) -> Self::Ret; +} + +impl<'a> FilterAttrs<'a> for &'a [Attribute] { + type Ret = iter::Filter, fn(&&Attribute) -> bool>; + + fn outer(self) -> Self::Ret { + fn is_outer(attr: &&Attribute) -> bool { + match attr.style { + AttrStyle::Outer => true, + AttrStyle::Inner(_) => false, + } + } + self.iter().filter(is_outer) + } + + fn inner(self) -> Self::Ret { + fn is_inner(attr: &&Attribute) -> bool { + match attr.style { + AttrStyle::Inner(_) => true, + AttrStyle::Outer => false, + } + } + self.iter().filter(is_inner) + } +} + +#[cfg(feature = "parsing")] +pub mod parsing { + use super::*; + use crate::ext::IdentExt; + use crate::parse::{Parse, ParseStream, Result}; + + pub fn parse_inner(input: ParseStream, attrs: &mut Vec) -> Result<()> { + while input.peek(Token![#]) && input.peek2(Token![!]) { + attrs.push(input.call(parsing::single_parse_inner)?); + } + Ok(()) + } + + pub fn single_parse_inner(input: ParseStream) -> Result { + let content; + Ok(Attribute { + pound_token: input.parse()?, + style: AttrStyle::Inner(input.parse()?), + bracket_token: bracketed!(content in input), + path: content.call(Path::parse_mod_style)?, + tokens: content.parse()?, + }) + } + + pub fn single_parse_outer(input: ParseStream) -> Result { + let content; + Ok(Attribute { + pound_token: input.parse()?, + style: AttrStyle::Outer, + bracket_token: bracketed!(content in input), + path: content.call(Path::parse_mod_style)?, + tokens: content.parse()?, + }) + } + + // Like Path::parse_mod_style but accepts keywords in the path. + fn parse_meta_path(input: ParseStream) -> Result { + Ok(Path { + leading_colon: input.parse()?, + segments: { + let mut segments = Punctuated::new(); + while input.peek(Ident::peek_any) { + let ident = Ident::parse_any(input)?; + segments.push_value(PathSegment::from(ident)); + if !input.peek(Token![::]) { + break; + } + let punct = input.parse()?; + segments.push_punct(punct); + } + if segments.is_empty() { + return Err(input.error("expected path")); + } else if segments.trailing_punct() { + return Err(input.error("expected path segment")); + } + segments + }, + }) + } + + #[cfg_attr(doc_cfg, doc(cfg(feature = "parsing")))] + impl Parse for Meta { + fn parse(input: ParseStream) -> Result { + let path = input.call(parse_meta_path)?; + parse_meta_after_path(path, input) + } + } + + #[cfg_attr(doc_cfg, doc(cfg(feature = "parsing")))] + impl Parse for MetaList { + fn parse(input: ParseStream) -> Result { + let path = input.call(parse_meta_path)?; + parse_meta_list_after_path(path, input) + } + } + + #[cfg_attr(doc_cfg, doc(cfg(feature = "parsing")))] + impl Parse for MetaNameValue { + fn parse(input: ParseStream) -> Result { + let path = input.call(parse_meta_path)?; + parse_meta_name_value_after_path(path, input) + } + } + + #[cfg_attr(doc_cfg, doc(cfg(feature = "parsing")))] + impl Parse for NestedMeta { + fn parse(input: ParseStream) -> Result { + if input.peek(Lit) && !(input.peek(LitBool) && input.peek2(Token![=])) { + input.parse().map(NestedMeta::Lit) + } else if input.peek(Ident::peek_any) + || input.peek(Token![::]) && input.peek3(Ident::peek_any) + { + input.parse().map(NestedMeta::Meta) + } else { + Err(input.error("expected identifier or literal")) + } + } + } + + pub fn parse_meta_after_path(path: Path, input: ParseStream) -> Result { + if input.peek(token::Paren) { + parse_meta_list_after_path(path, input).map(Meta::List) + } else if input.peek(Token![=]) { + parse_meta_name_value_after_path(path, input).map(Meta::NameValue) + } else { + Ok(Meta::Path(path)) + } + } + + fn parse_meta_list_after_path(path: Path, input: ParseStream) -> Result { + let content; + Ok(MetaList { + path, + paren_token: parenthesized!(content in input), + nested: content.parse_terminated(NestedMeta::parse)?, + }) + } + + fn parse_meta_name_value_after_path(path: Path, input: ParseStream) -> Result { + Ok(MetaNameValue { + path, + eq_token: input.parse()?, + lit: input.parse()?, + }) + } +} + +#[cfg(feature = "printing")] +mod printing { + use super::*; + use proc_macro2::TokenStream; + use quote::ToTokens; + + #[cfg_attr(doc_cfg, doc(cfg(feature = "printing")))] + impl ToTokens for Attribute { + fn to_tokens(&self, tokens: &mut TokenStream) { + self.pound_token.to_tokens(tokens); + if let AttrStyle::Inner(b) = &self.style { + b.to_tokens(tokens); + } + self.bracket_token.surround(tokens, |tokens| { + self.path.to_tokens(tokens); + self.tokens.to_tokens(tokens); + }); + } + } + + #[cfg_attr(doc_cfg, doc(cfg(feature = "printing")))] + impl ToTokens for MetaList { + fn to_tokens(&self, tokens: &mut TokenStream) { + self.path.to_tokens(tokens); + self.paren_token.surround(tokens, |tokens| { + self.nested.to_tokens(tokens); + }); + } + } + + #[cfg_attr(doc_cfg, doc(cfg(feature = "printing")))] + impl ToTokens for MetaNameValue { + fn to_tokens(&self, tokens: &mut TokenStream) { + self.path.to_tokens(tokens); + self.eq_token.to_tokens(tokens); + self.lit.to_tokens(tokens); + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/await.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/await.rs new file mode 100644 index 0000000000000000000000000000000000000000..038c6a5d12cd2364dd8587d55b9b6aad860bf0ab --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/await.rs @@ -0,0 +1,2 @@ +// See include!("await.rs") in token.rs. +export_token_macro! {[await]} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/bigint.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/bigint.rs new file mode 100644 index 0000000000000000000000000000000000000000..5397d6beee1d40ae628e7fc8b61f10f922c1d28a --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/bigint.rs @@ -0,0 +1,66 @@ +use std::ops::{AddAssign, MulAssign}; + +// For implementing base10_digits() accessor on LitInt. +pub struct BigInt { + digits: Vec, +} + +impl BigInt { + pub fn new() -> Self { + BigInt { digits: Vec::new() } + } + + pub fn to_string(&self) -> String { + let mut repr = String::with_capacity(self.digits.len()); + + let mut has_nonzero = false; + for digit in self.digits.iter().rev() { + has_nonzero |= *digit != 0; + if has_nonzero { + repr.push((*digit + b'0') as char); + } + } + + if repr.is_empty() { + repr.push('0'); + } + + repr + } + + fn reserve_two_digits(&mut self) { + let len = self.digits.len(); + let desired = + len + !self.digits.ends_with(&[0, 0]) as usize + !self.digits.ends_with(&[0]) as usize; + self.digits.resize(desired, 0); + } +} + +impl AddAssign for BigInt { + // Assumes increment <16. + fn add_assign(&mut self, mut increment: u8) { + self.reserve_two_digits(); + + let mut i = 0; + while increment > 0 { + let sum = self.digits[i] + increment; + self.digits[i] = sum % 10; + increment = sum / 10; + i += 1; + } + } +} + +impl MulAssign for BigInt { + // Assumes base <=16. + fn mul_assign(&mut self, base: u8) { + self.reserve_two_digits(); + + let mut carry = 0; + for digit in &mut self.digits { + let prod = *digit * base + carry; + *digit = prod % 10; + carry = prod / 10; + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/buffer.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/buffer.rs new file mode 100644 index 0000000000000000000000000000000000000000..0d5cf30d5794594ccc5bc4216bf411afb02ccd7c --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/buffer.rs @@ -0,0 +1,398 @@ +//! A stably addressed token buffer supporting efficient traversal based on a +//! cheaply copyable cursor. +//! +//! *This module is available only if Syn is built with the `"parsing"` feature.* + +// This module is heavily commented as it contains most of the unsafe code in +// Syn, and caution should be used when editing it. The public-facing interface +// is 100% safe but the implementation is fragile internally. + +#[cfg(all( + not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "wasi"))), + feature = "proc-macro" +))] +use crate::proc_macro as pm; +use crate::Lifetime; +use proc_macro2::{Delimiter, Group, Ident, Literal, Punct, Spacing, Span, TokenStream, TokenTree}; +use std::cmp::Ordering; +use std::marker::PhantomData; + +/// Internal type which is used instead of `TokenTree` to represent a token tree +/// within a `TokenBuffer`. +enum Entry { + // Mimicking types from proc-macro. + // Group entries contain the offset to the matching End entry. + Group(Group, usize), + Ident(Ident), + Punct(Punct), + Literal(Literal), + // End entries contain the offset (negative) to the start of the buffer. + End(isize), +} + +/// A buffer that can be efficiently traversed multiple times, unlike +/// `TokenStream` which requires a deep copy in order to traverse more than +/// once. +/// +/// *This type is available only if Syn is built with the `"parsing"` feature.* +pub struct TokenBuffer { + // NOTE: Do not implement clone on this - while the current design could be + // cloned, other designs which could be desirable may not be cloneable. + entries: Box<[Entry]>, +} + +impl TokenBuffer { + fn recursive_new(entries: &mut Vec, stream: TokenStream) { + for tt in stream { + match tt { + TokenTree::Ident(ident) => entries.push(Entry::Ident(ident)), + TokenTree::Punct(punct) => entries.push(Entry::Punct(punct)), + TokenTree::Literal(literal) => entries.push(Entry::Literal(literal)), + TokenTree::Group(group) => { + let group_start_index = entries.len(); + entries.push(Entry::End(0)); // we replace this below + Self::recursive_new(entries, group.stream()); + let group_end_index = entries.len(); + entries.push(Entry::End(-(group_end_index as isize))); + let group_end_offset = group_end_index - group_start_index; + entries[group_start_index] = Entry::Group(group, group_end_offset); + } + } + } + } + + /// Creates a `TokenBuffer` containing all the tokens from the input + /// `proc_macro::TokenStream`. + /// + /// *This method is available only if Syn is built with both the `"parsing"` and + /// `"proc-macro"` features.* + #[cfg(all( + not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "wasi"))), + feature = "proc-macro" + ))] + pub fn new(stream: pm::TokenStream) -> Self { + Self::new2(stream.into()) + } + + /// Creates a `TokenBuffer` containing all the tokens from the input + /// `proc_macro2::TokenStream`. + pub fn new2(stream: TokenStream) -> Self { + let mut entries = Vec::new(); + Self::recursive_new(&mut entries, stream); + entries.push(Entry::End(-(entries.len() as isize))); + Self { + entries: entries.into_boxed_slice(), + } + } + + /// Creates a cursor referencing the first token in the buffer and able to + /// traverse until the end of the buffer. + pub fn begin(&self) -> Cursor { + let ptr = self.entries.as_ptr(); + unsafe { Cursor::create(ptr, ptr.add(self.entries.len() - 1)) } + } +} + +/// A cheaply copyable cursor into a `TokenBuffer`. +/// +/// This cursor holds a shared reference into the immutable data which is used +/// internally to represent a `TokenStream`, and can be efficiently manipulated +/// and copied around. +/// +/// An empty `Cursor` can be created directly, or one may create a `TokenBuffer` +/// object and get a cursor to its first token with `begin()`. +/// +/// Two cursors are equal if they have the same location in the same input +/// stream, and have the same scope. +/// +/// *This type is available only if Syn is built with the `"parsing"` feature.* +pub struct Cursor<'a> { + // The current entry which the `Cursor` is pointing at. + ptr: *const Entry, + // This is the only `Entry::End` object which this cursor is allowed to + // point at. All other `End` objects are skipped over in `Cursor::create`. + scope: *const Entry, + // Cursor is covariant in 'a. This field ensures that our pointers are still + // valid. + marker: PhantomData<&'a Entry>, +} + +impl<'a> Cursor<'a> { + /// Creates a cursor referencing a static empty TokenStream. + pub fn empty() -> Self { + // It's safe in this situation for us to put an `Entry` object in global + // storage, despite it not actually being safe to send across threads + // (`Ident` is a reference into a thread-local table). This is because + // this entry never includes a `Ident` object. + // + // This wrapper struct allows us to break the rules and put a `Sync` + // object in global storage. + struct UnsafeSyncEntry(Entry); + unsafe impl Sync for UnsafeSyncEntry {} + static EMPTY_ENTRY: UnsafeSyncEntry = UnsafeSyncEntry(Entry::End(0)); + + Cursor { + ptr: &EMPTY_ENTRY.0, + scope: &EMPTY_ENTRY.0, + marker: PhantomData, + } + } + + /// This create method intelligently exits non-explicitly-entered + /// `None`-delimited scopes when the cursor reaches the end of them, + /// allowing for them to be treated transparently. + unsafe fn create(mut ptr: *const Entry, scope: *const Entry) -> Self { + // NOTE: If we're looking at a `End`, we want to advance the cursor + // past it, unless `ptr == scope`, which means that we're at the edge of + // our cursor's scope. We should only have `ptr != scope` at the exit + // from None-delimited groups entered with `ignore_none`. + while let Entry::End(_) = *ptr { + if ptr == scope { + break; + } + ptr = ptr.add(1); + } + + Cursor { + ptr, + scope, + marker: PhantomData, + } + } + + /// Get the current entry. + fn entry(self) -> &'a Entry { + unsafe { &*self.ptr } + } + + /// Bump the cursor to point at the next token after the current one. This + /// is undefined behavior if the cursor is currently looking at an + /// `Entry::End`. + /// + /// If the cursor is looking at an `Entry::Group`, the bumped cursor will + /// point at the first token in the group (with the same scope end). + unsafe fn bump_ignore_group(self) -> Cursor<'a> { + Cursor::create(self.ptr.offset(1), self.scope) + } + + /// While the cursor is looking at a `None`-delimited group, move it to look + /// at the first token inside instead. If the group is empty, this will move + /// the cursor past the `None`-delimited group. + /// + /// WARNING: This mutates its argument. + fn ignore_none(&mut self) { + while let Entry::Group(group, _) = self.entry() { + if group.delimiter() == Delimiter::None { + unsafe { *self = self.bump_ignore_group() }; + } else { + break; + } + } + } + + /// Checks whether the cursor is currently pointing at the end of its valid + /// scope. + pub fn eof(self) -> bool { + // We're at eof if we're at the end of our scope. + self.ptr == self.scope + } + + /// If the cursor is pointing at a `Group` with the given delimiter, returns + /// a cursor into that group and one pointing to the next `TokenTree`. + pub fn group(mut self, delim: Delimiter) -> Option<(Cursor<'a>, Span, Cursor<'a>)> { + // If we're not trying to enter a none-delimited group, we want to + // ignore them. We have to make sure to _not_ ignore them when we want + // to enter them, of course. For obvious reasons. + if delim != Delimiter::None { + self.ignore_none(); + } + + if let Entry::Group(group, end_offset) = self.entry() { + if group.delimiter() == delim { + let end_of_group = unsafe { self.ptr.add(*end_offset) }; + let inside_of_group = unsafe { Cursor::create(self.ptr.add(1), end_of_group) }; + let after_group = unsafe { Cursor::create(end_of_group, self.scope) }; + return Some((inside_of_group, group.span(), after_group)); + } + } + + None + } + + /// If the cursor is pointing at a `Ident`, returns it along with a cursor + /// pointing at the next `TokenTree`. + pub fn ident(mut self) -> Option<(Ident, Cursor<'a>)> { + self.ignore_none(); + match self.entry() { + Entry::Ident(ident) => Some((ident.clone(), unsafe { self.bump_ignore_group() })), + _ => None, + } + } + + /// If the cursor is pointing at a `Punct`, returns it along with a cursor + /// pointing at the next `TokenTree`. + pub fn punct(mut self) -> Option<(Punct, Cursor<'a>)> { + self.ignore_none(); + match self.entry() { + Entry::Punct(punct) if punct.as_char() != '\'' => { + Some((punct.clone(), unsafe { self.bump_ignore_group() })) + } + _ => None, + } + } + + /// If the cursor is pointing at a `Literal`, return it along with a cursor + /// pointing at the next `TokenTree`. + pub fn literal(mut self) -> Option<(Literal, Cursor<'a>)> { + self.ignore_none(); + match self.entry() { + Entry::Literal(literal) => Some((literal.clone(), unsafe { self.bump_ignore_group() })), + _ => None, + } + } + + /// If the cursor is pointing at a `Lifetime`, returns it along with a + /// cursor pointing at the next `TokenTree`. + pub fn lifetime(mut self) -> Option<(Lifetime, Cursor<'a>)> { + self.ignore_none(); + match self.entry() { + Entry::Punct(punct) if punct.as_char() == '\'' && punct.spacing() == Spacing::Joint => { + let next = unsafe { self.bump_ignore_group() }; + let (ident, rest) = next.ident()?; + let lifetime = Lifetime { + apostrophe: punct.span(), + ident, + }; + Some((lifetime, rest)) + } + _ => None, + } + } + + /// Copies all remaining tokens visible from this cursor into a + /// `TokenStream`. + pub fn token_stream(self) -> TokenStream { + let mut tts = Vec::new(); + let mut cursor = self; + while let Some((tt, rest)) = cursor.token_tree() { + tts.push(tt); + cursor = rest; + } + tts.into_iter().collect() + } + + /// If the cursor is pointing at a `TokenTree`, returns it along with a + /// cursor pointing at the next `TokenTree`. + /// + /// Returns `None` if the cursor has reached the end of its stream. + /// + /// This method does not treat `None`-delimited groups as transparent, and + /// will return a `Group(None, ..)` if the cursor is looking at one. + pub fn token_tree(self) -> Option<(TokenTree, Cursor<'a>)> { + let (tree, len) = match self.entry() { + Entry::Group(group, end_offset) => (group.clone().into(), *end_offset), + Entry::Literal(literal) => (literal.clone().into(), 1), + Entry::Ident(ident) => (ident.clone().into(), 1), + Entry::Punct(punct) => (punct.clone().into(), 1), + Entry::End(_) => return None, + }; + + let rest = unsafe { Cursor::create(self.ptr.add(len), self.scope) }; + Some((tree, rest)) + } + + /// Returns the `Span` of the current token, or `Span::call_site()` if this + /// cursor points to eof. + pub fn span(self) -> Span { + match self.entry() { + Entry::Group(group, _) => group.span(), + Entry::Literal(literal) => literal.span(), + Entry::Ident(ident) => ident.span(), + Entry::Punct(punct) => punct.span(), + Entry::End(_) => Span::call_site(), + } + } + + /// Skip over the next token without cloning it. Returns `None` if this + /// cursor points to eof. + /// + /// This method treats `'lifetimes` as a single token. + pub(crate) fn skip(self) -> Option> { + let len = match self.entry() { + Entry::End(_) => return None, + + // Treat lifetimes as a single tt for the purposes of 'skip'. + Entry::Punct(punct) if punct.as_char() == '\'' && punct.spacing() == Spacing::Joint => { + match unsafe { &*self.ptr.add(1) } { + Entry::Ident(_) => 2, + _ => 1, + } + } + + Entry::Group(_, end_offset) => *end_offset, + _ => 1, + }; + + Some(unsafe { Cursor::create(self.ptr.add(len), self.scope) }) + } +} + +impl<'a> Copy for Cursor<'a> {} + +impl<'a> Clone for Cursor<'a> { + fn clone(&self) -> Self { + *self + } +} + +impl<'a> Eq for Cursor<'a> {} + +impl<'a> PartialEq for Cursor<'a> { + fn eq(&self, other: &Self) -> bool { + self.ptr == other.ptr + } +} + +impl<'a> PartialOrd for Cursor<'a> { + fn partial_cmp(&self, other: &Self) -> Option { + if same_buffer(*self, *other) { + Some(self.ptr.cmp(&other.ptr)) + } else { + None + } + } +} + +pub(crate) fn same_scope(a: Cursor, b: Cursor) -> bool { + a.scope == b.scope +} + +pub(crate) fn same_buffer(a: Cursor, b: Cursor) -> bool { + unsafe { + match (&*a.scope, &*b.scope) { + (Entry::End(a_offset), Entry::End(b_offset)) => { + a.scope.offset(*a_offset) == b.scope.offset(*b_offset) + } + _ => unreachable!(), + } + } +} + +#[cfg(any(feature = "full", feature = "derive"))] +pub(crate) fn cmp_assuming_same_buffer(a: Cursor, b: Cursor) -> Ordering { + a.ptr.cmp(&b.ptr) +} + +pub(crate) fn open_span_of_group(cursor: Cursor) -> Span { + match cursor.entry() { + Entry::Group(group, _) => group.span_open(), + _ => cursor.span(), + } +} + +pub(crate) fn close_span_of_group(cursor: Cursor) -> Span { + match cursor.entry() { + Entry::Group(group, _) => group.span_close(), + _ => cursor.span(), + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/custom_keyword.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/custom_keyword.rs new file mode 100644 index 0000000000000000000000000000000000000000..a3ec9d4cb701b33a1eb71aef77f518a4e85a6231 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/custom_keyword.rs @@ -0,0 +1,253 @@ +/// Define a type that supports parsing and printing a given identifier as if it +/// were a keyword. +/// +/// # Usage +/// +/// As a convention, it is recommended that this macro be invoked within a +/// module called `kw` or `keyword` and that the resulting parser be invoked +/// with a `kw::` or `keyword::` prefix. +/// +/// ``` +/// mod kw { +/// syn::custom_keyword!(whatever); +/// } +/// ``` +/// +/// The generated syntax tree node supports the following operations just like +/// any built-in keyword token. +/// +/// - [Peeking] — `input.peek(kw::whatever)` +/// +/// - [Parsing] — `input.parse::()?` +/// +/// - [Printing] — `quote!( ... #whatever_token ... )` +/// +/// - Construction from a [`Span`] — `let whatever_token = kw::whatever(sp)` +/// +/// - Field access to its span — `let sp = whatever_token.span` +/// +/// [Peeking]: crate::parse::ParseBuffer::peek +/// [Parsing]: crate::parse::ParseBuffer::parse +/// [Printing]: quote::ToTokens +/// [`Span`]: proc_macro2::Span +/// +/// # Example +/// +/// This example parses input that looks like `bool = true` or `str = "value"`. +/// The key must be either the identifier `bool` or the identifier `str`. If +/// `bool`, the value may be either `true` or `false`. If `str`, the value may +/// be any string literal. +/// +/// The symbols `bool` and `str` are not reserved keywords in Rust so these are +/// not considered keywords in the `syn::token` module. Like any other +/// identifier that is not a keyword, these can be declared as custom keywords +/// by crates that need to use them as such. +/// +/// ``` +/// use syn::{LitBool, LitStr, Result, Token}; +/// use syn::parse::{Parse, ParseStream}; +/// +/// mod kw { +/// syn::custom_keyword!(bool); +/// syn::custom_keyword!(str); +/// } +/// +/// enum Argument { +/// Bool { +/// bool_token: kw::bool, +/// eq_token: Token![=], +/// value: LitBool, +/// }, +/// Str { +/// str_token: kw::str, +/// eq_token: Token![=], +/// value: LitStr, +/// }, +/// } +/// +/// impl Parse for Argument { +/// fn parse(input: ParseStream) -> Result { +/// let lookahead = input.lookahead1(); +/// if lookahead.peek(kw::bool) { +/// Ok(Argument::Bool { +/// bool_token: input.parse::()?, +/// eq_token: input.parse()?, +/// value: input.parse()?, +/// }) +/// } else if lookahead.peek(kw::str) { +/// Ok(Argument::Str { +/// str_token: input.parse::()?, +/// eq_token: input.parse()?, +/// value: input.parse()?, +/// }) +/// } else { +/// Err(lookahead.error()) +/// } +/// } +/// } +/// ``` +#[macro_export] +macro_rules! custom_keyword { + ($ident:ident) => { + #[allow(non_camel_case_types)] + pub struct $ident { + pub span: $crate::__private::Span, + } + + #[doc(hidden)] + #[allow(dead_code, non_snake_case)] + pub fn $ident<__S: $crate::__private::IntoSpans<[$crate::__private::Span; 1]>>( + span: __S, + ) -> $ident { + $ident { + span: $crate::__private::IntoSpans::into_spans(span)[0], + } + } + + impl $crate::__private::Default for $ident { + fn default() -> Self { + $ident { + span: $crate::__private::Span::call_site(), + } + } + } + + $crate::impl_parse_for_custom_keyword!($ident); + $crate::impl_to_tokens_for_custom_keyword!($ident); + $crate::impl_clone_for_custom_keyword!($ident); + $crate::impl_extra_traits_for_custom_keyword!($ident); + }; +} + +// Not public API. +#[cfg(feature = "parsing")] +#[doc(hidden)] +#[macro_export] +macro_rules! impl_parse_for_custom_keyword { + ($ident:ident) => { + // For peek. + impl $crate::token::CustomToken for $ident { + fn peek(cursor: $crate::buffer::Cursor) -> $crate::__private::bool { + if let $crate::__private::Some((ident, _rest)) = cursor.ident() { + ident == stringify!($ident) + } else { + false + } + } + + fn display() -> &'static $crate::__private::str { + concat!("`", stringify!($ident), "`") + } + } + + impl $crate::parse::Parse for $ident { + fn parse(input: $crate::parse::ParseStream) -> $crate::parse::Result<$ident> { + input.step(|cursor| { + if let $crate::__private::Some((ident, rest)) = cursor.ident() { + if ident == stringify!($ident) { + return $crate::__private::Ok(($ident { span: ident.span() }, rest)); + } + } + $crate::__private::Err(cursor.error(concat!( + "expected `", + stringify!($ident), + "`" + ))) + }) + } + } + }; +} + +// Not public API. +#[cfg(not(feature = "parsing"))] +#[doc(hidden)] +#[macro_export] +macro_rules! impl_parse_for_custom_keyword { + ($ident:ident) => {}; +} + +// Not public API. +#[cfg(feature = "printing")] +#[doc(hidden)] +#[macro_export] +macro_rules! impl_to_tokens_for_custom_keyword { + ($ident:ident) => { + impl $crate::__private::ToTokens for $ident { + fn to_tokens(&self, tokens: &mut $crate::__private::TokenStream2) { + let ident = $crate::Ident::new(stringify!($ident), self.span); + $crate::__private::TokenStreamExt::append(tokens, ident); + } + } + }; +} + +// Not public API. +#[cfg(not(feature = "printing"))] +#[doc(hidden)] +#[macro_export] +macro_rules! impl_to_tokens_for_custom_keyword { + ($ident:ident) => {}; +} + +// Not public API. +#[cfg(feature = "clone-impls")] +#[doc(hidden)] +#[macro_export] +macro_rules! impl_clone_for_custom_keyword { + ($ident:ident) => { + impl $crate::__private::Copy for $ident {} + + #[allow(clippy::expl_impl_clone_on_copy)] + impl $crate::__private::Clone for $ident { + fn clone(&self) -> Self { + *self + } + } + }; +} + +// Not public API. +#[cfg(not(feature = "clone-impls"))] +#[doc(hidden)] +#[macro_export] +macro_rules! impl_clone_for_custom_keyword { + ($ident:ident) => {}; +} + +// Not public API. +#[cfg(feature = "extra-traits")] +#[doc(hidden)] +#[macro_export] +macro_rules! impl_extra_traits_for_custom_keyword { + ($ident:ident) => { + impl $crate::__private::Debug for $ident { + fn fmt(&self, f: &mut $crate::__private::Formatter) -> $crate::__private::fmt::Result { + $crate::__private::Formatter::write_str( + f, + concat!("Keyword [", stringify!($ident), "]"), + ) + } + } + + impl $crate::__private::Eq for $ident {} + + impl $crate::__private::PartialEq for $ident { + fn eq(&self, _other: &Self) -> $crate::__private::bool { + true + } + } + + impl $crate::__private::Hash for $ident { + fn hash<__H: $crate::__private::Hasher>(&self, _state: &mut __H) {} + } + }; +} + +// Not public API. +#[cfg(not(feature = "extra-traits"))] +#[doc(hidden)] +#[macro_export] +macro_rules! impl_extra_traits_for_custom_keyword { + ($ident:ident) => {}; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/custom_punctuation.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/custom_punctuation.rs new file mode 100644 index 0000000000000000000000000000000000000000..118a8453daabf8105f84f79e431b4b222424c82e --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/custom_punctuation.rs @@ -0,0 +1,300 @@ +/// Define a type that supports parsing and printing a multi-character symbol +/// as if it were a punctuation token. +/// +/// # Usage +/// +/// ``` +/// syn::custom_punctuation!(LeftRightArrow, <=>); +/// ``` +/// +/// The generated syntax tree node supports the following operations just like +/// any built-in punctuation token. +/// +/// - [Peeking] — `input.peek(LeftRightArrow)` +/// +/// - [Parsing] — `input.parse::()?` +/// +/// - [Printing] — `quote!( ... #lrarrow ... )` +/// +/// - Construction from a [`Span`] — `let lrarrow = LeftRightArrow(sp)` +/// +/// - Construction from multiple [`Span`] — `let lrarrow = LeftRightArrow([sp, sp, sp])` +/// +/// - Field access to its spans — `let spans = lrarrow.spans` +/// +/// [Peeking]: crate::parse::ParseBuffer::peek +/// [Parsing]: crate::parse::ParseBuffer::parse +/// [Printing]: quote::ToTokens +/// [`Span`]: proc_macro2::Span +/// +/// # Example +/// +/// ``` +/// use proc_macro2::{TokenStream, TokenTree}; +/// use syn::parse::{Parse, ParseStream, Peek, Result}; +/// use syn::punctuated::Punctuated; +/// use syn::Expr; +/// +/// syn::custom_punctuation!(PathSeparator, ); +/// +/// // expr expr expr ... +/// struct PathSegments { +/// segments: Punctuated, +/// } +/// +/// impl Parse for PathSegments { +/// fn parse(input: ParseStream) -> Result { +/// let mut segments = Punctuated::new(); +/// +/// let first = parse_until(input, PathSeparator)?; +/// segments.push_value(syn::parse2(first)?); +/// +/// while input.peek(PathSeparator) { +/// segments.push_punct(input.parse()?); +/// +/// let next = parse_until(input, PathSeparator)?; +/// segments.push_value(syn::parse2(next)?); +/// } +/// +/// Ok(PathSegments { segments }) +/// } +/// } +/// +/// fn parse_until(input: ParseStream, end: E) -> Result { +/// let mut tokens = TokenStream::new(); +/// while !input.is_empty() && !input.peek(end) { +/// let next: TokenTree = input.parse()?; +/// tokens.extend(Some(next)); +/// } +/// Ok(tokens) +/// } +/// +/// fn main() { +/// let input = r#" a::b c::d::e "#; +/// let _: PathSegments = syn::parse_str(input).unwrap(); +/// } +/// ``` +#[macro_export] +macro_rules! custom_punctuation { + ($ident:ident, $($tt:tt)+) => { + pub struct $ident { + pub spans: $crate::custom_punctuation_repr!($($tt)+), + } + + #[doc(hidden)] + #[allow(dead_code, non_snake_case)] + pub fn $ident<__S: $crate::__private::IntoSpans<$crate::custom_punctuation_repr!($($tt)+)>>( + spans: __S, + ) -> $ident { + let _validate_len = 0 $(+ $crate::custom_punctuation_len!(strict, $tt))*; + $ident { + spans: $crate::__private::IntoSpans::into_spans(spans) + } + } + + impl $crate::__private::Default for $ident { + fn default() -> Self { + $ident($crate::__private::Span::call_site()) + } + } + + $crate::impl_parse_for_custom_punctuation!($ident, $($tt)+); + $crate::impl_to_tokens_for_custom_punctuation!($ident, $($tt)+); + $crate::impl_clone_for_custom_punctuation!($ident, $($tt)+); + $crate::impl_extra_traits_for_custom_punctuation!($ident, $($tt)+); + }; +} + +// Not public API. +#[cfg(feature = "parsing")] +#[doc(hidden)] +#[macro_export] +macro_rules! impl_parse_for_custom_punctuation { + ($ident:ident, $($tt:tt)+) => { + impl $crate::token::CustomToken for $ident { + fn peek(cursor: $crate::buffer::Cursor) -> bool { + $crate::token::parsing::peek_punct(cursor, $crate::stringify_punct!($($tt)+)) + } + + fn display() -> &'static $crate::__private::str { + concat!("`", $crate::stringify_punct!($($tt)+), "`") + } + } + + impl $crate::parse::Parse for $ident { + fn parse(input: $crate::parse::ParseStream) -> $crate::parse::Result<$ident> { + let spans: $crate::custom_punctuation_repr!($($tt)+) = + $crate::token::parsing::punct(input, $crate::stringify_punct!($($tt)+))?; + Ok($ident(spans)) + } + } + }; +} + +// Not public API. +#[cfg(not(feature = "parsing"))] +#[doc(hidden)] +#[macro_export] +macro_rules! impl_parse_for_custom_punctuation { + ($ident:ident, $($tt:tt)+) => {}; +} + +// Not public API. +#[cfg(feature = "printing")] +#[doc(hidden)] +#[macro_export] +macro_rules! impl_to_tokens_for_custom_punctuation { + ($ident:ident, $($tt:tt)+) => { + impl $crate::__private::ToTokens for $ident { + fn to_tokens(&self, tokens: &mut $crate::__private::TokenStream2) { + $crate::token::printing::punct($crate::stringify_punct!($($tt)+), &self.spans, tokens) + } + } + }; +} + +// Not public API. +#[cfg(not(feature = "printing"))] +#[doc(hidden)] +#[macro_export] +macro_rules! impl_to_tokens_for_custom_punctuation { + ($ident:ident, $($tt:tt)+) => {}; +} + +// Not public API. +#[cfg(feature = "clone-impls")] +#[doc(hidden)] +#[macro_export] +macro_rules! impl_clone_for_custom_punctuation { + ($ident:ident, $($tt:tt)+) => { + impl $crate::__private::Copy for $ident {} + + #[allow(clippy::expl_impl_clone_on_copy)] + impl $crate::__private::Clone for $ident { + fn clone(&self) -> Self { + *self + } + } + }; +} + +// Not public API. +#[cfg(not(feature = "clone-impls"))] +#[doc(hidden)] +#[macro_export] +macro_rules! impl_clone_for_custom_punctuation { + ($ident:ident, $($tt:tt)+) => {}; +} + +// Not public API. +#[cfg(feature = "extra-traits")] +#[doc(hidden)] +#[macro_export] +macro_rules! impl_extra_traits_for_custom_punctuation { + ($ident:ident, $($tt:tt)+) => { + impl $crate::__private::Debug for $ident { + fn fmt(&self, f: &mut $crate::__private::Formatter) -> $crate::__private::fmt::Result { + $crate::__private::Formatter::write_str(f, stringify!($ident)) + } + } + + impl $crate::__private::Eq for $ident {} + + impl $crate::__private::PartialEq for $ident { + fn eq(&self, _other: &Self) -> $crate::__private::bool { + true + } + } + + impl $crate::__private::Hash for $ident { + fn hash<__H: $crate::__private::Hasher>(&self, _state: &mut __H) {} + } + }; +} + +// Not public API. +#[cfg(not(feature = "extra-traits"))] +#[doc(hidden)] +#[macro_export] +macro_rules! impl_extra_traits_for_custom_punctuation { + ($ident:ident, $($tt:tt)+) => {}; +} + +// Not public API. +#[doc(hidden)] +#[macro_export] +macro_rules! custom_punctuation_repr { + ($($tt:tt)+) => { + [$crate::__private::Span; 0 $(+ $crate::custom_punctuation_len!(lenient, $tt))+] + }; +} + +// Not public API. +#[doc(hidden)] +#[macro_export] +#[rustfmt::skip] +macro_rules! custom_punctuation_len { + ($mode:ident, +) => { 1 }; + ($mode:ident, +=) => { 2 }; + ($mode:ident, &) => { 1 }; + ($mode:ident, &&) => { 2 }; + ($mode:ident, &=) => { 2 }; + ($mode:ident, @) => { 1 }; + ($mode:ident, !) => { 1 }; + ($mode:ident, ^) => { 1 }; + ($mode:ident, ^=) => { 2 }; + ($mode:ident, :) => { 1 }; + ($mode:ident, ::) => { 2 }; + ($mode:ident, ,) => { 1 }; + ($mode:ident, /) => { 1 }; + ($mode:ident, /=) => { 2 }; + ($mode:ident, .) => { 1 }; + ($mode:ident, ..) => { 2 }; + ($mode:ident, ...) => { 3 }; + ($mode:ident, ..=) => { 3 }; + ($mode:ident, =) => { 1 }; + ($mode:ident, ==) => { 2 }; + ($mode:ident, >=) => { 2 }; + ($mode:ident, >) => { 1 }; + ($mode:ident, <=) => { 2 }; + ($mode:ident, <) => { 1 }; + ($mode:ident, *=) => { 2 }; + ($mode:ident, !=) => { 2 }; + ($mode:ident, |) => { 1 }; + ($mode:ident, |=) => { 2 }; + ($mode:ident, ||) => { 2 }; + ($mode:ident, #) => { 1 }; + ($mode:ident, ?) => { 1 }; + ($mode:ident, ->) => { 2 }; + ($mode:ident, <-) => { 2 }; + ($mode:ident, %) => { 1 }; + ($mode:ident, %=) => { 2 }; + ($mode:ident, =>) => { 2 }; + ($mode:ident, ;) => { 1 }; + ($mode:ident, <<) => { 2 }; + ($mode:ident, <<=) => { 3 }; + ($mode:ident, >>) => { 2 }; + ($mode:ident, >>=) => { 3 }; + ($mode:ident, *) => { 1 }; + ($mode:ident, -) => { 1 }; + ($mode:ident, -=) => { 2 }; + ($mode:ident, ~) => { 1 }; + (lenient, $tt:tt) => { 0 }; + (strict, $tt:tt) => {{ $crate::custom_punctuation_unexpected!($tt); 0 }}; +} + +// Not public API. +#[doc(hidden)] +#[macro_export] +macro_rules! custom_punctuation_unexpected { + () => {}; +} + +// Not public API. +#[doc(hidden)] +#[macro_export] +macro_rules! stringify_punct { + ($($tt:tt)+) => { + concat!($(stringify!($tt)),+) + }; +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/data.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/data.rs new file mode 100644 index 0000000000000000000000000000000000000000..3b466618f8abe4210b24f28c980f6cc4fd64f8f2 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/data.rs @@ -0,0 +1,493 @@ +use super::*; +use crate::punctuated::Punctuated; + +ast_struct! { + /// An enum variant. + /// + /// *This type is available only if Syn is built with the `"derive"` or `"full"` + /// feature.* + #[cfg_attr(doc_cfg, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct Variant { + /// Attributes tagged on the variant. + pub attrs: Vec, + + /// Name of the variant. + pub ident: Ident, + + /// Content stored in the variant. + pub fields: Fields, + + /// Explicit discriminant: `Variant = 1` + pub discriminant: Option<(Token![=], Expr)>, + } +} + +ast_enum_of_structs! { + /// Data stored within an enum variant or struct. + /// + /// *This type is available only if Syn is built with the `"derive"` or `"full"` + /// feature.* + /// + /// # Syntax tree enum + /// + /// This type is a [syntax tree enum]. + /// + /// [syntax tree enum]: Expr#syntax-tree-enums + #[cfg_attr(doc_cfg, doc(cfg(any(feature = "full", feature = "derive"))))] + pub enum Fields { + /// Named fields of a struct or struct variant such as `Point { x: f64, + /// y: f64 }`. + Named(FieldsNamed), + + /// Unnamed fields of a tuple struct or tuple variant such as `Some(T)`. + Unnamed(FieldsUnnamed), + + /// Unit struct or unit variant such as `None`. + Unit, + } +} + +ast_struct! { + /// Named fields of a struct or struct variant such as `Point { x: f64, + /// y: f64 }`. + /// + /// *This type is available only if Syn is built with the `"derive"` or + /// `"full"` feature.* + #[cfg_attr(doc_cfg, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct FieldsNamed { + pub brace_token: token::Brace, + pub named: Punctuated, + } +} + +ast_struct! { + /// Unnamed fields of a tuple struct or tuple variant such as `Some(T)`. + /// + /// *This type is available only if Syn is built with the `"derive"` or + /// `"full"` feature.* + #[cfg_attr(doc_cfg, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct FieldsUnnamed { + pub paren_token: token::Paren, + pub unnamed: Punctuated, + } +} + +impl Fields { + /// Get an iterator over the borrowed [`Field`] items in this object. This + /// iterator can be used to iterate over a named or unnamed struct or + /// variant's fields uniformly. + pub fn iter(&self) -> punctuated::Iter { + match self { + Fields::Unit => crate::punctuated::empty_punctuated_iter(), + Fields::Named(f) => f.named.iter(), + Fields::Unnamed(f) => f.unnamed.iter(), + } + } + + /// Get an iterator over the mutably borrowed [`Field`] items in this + /// object. This iterator can be used to iterate over a named or unnamed + /// struct or variant's fields uniformly. + pub fn iter_mut(&mut self) -> punctuated::IterMut { + match self { + Fields::Unit => crate::punctuated::empty_punctuated_iter_mut(), + Fields::Named(f) => f.named.iter_mut(), + Fields::Unnamed(f) => f.unnamed.iter_mut(), + } + } + + /// Returns the number of fields. + pub fn len(&self) -> usize { + match self { + Fields::Unit => 0, + Fields::Named(f) => f.named.len(), + Fields::Unnamed(f) => f.unnamed.len(), + } + } + + /// Returns `true` if there are zero fields. + pub fn is_empty(&self) -> bool { + match self { + Fields::Unit => true, + Fields::Named(f) => f.named.is_empty(), + Fields::Unnamed(f) => f.unnamed.is_empty(), + } + } +} + +impl IntoIterator for Fields { + type Item = Field; + type IntoIter = punctuated::IntoIter; + + fn into_iter(self) -> Self::IntoIter { + match self { + Fields::Unit => Punctuated::::new().into_iter(), + Fields::Named(f) => f.named.into_iter(), + Fields::Unnamed(f) => f.unnamed.into_iter(), + } + } +} + +impl<'a> IntoIterator for &'a Fields { + type Item = &'a Field; + type IntoIter = punctuated::Iter<'a, Field>; + + fn into_iter(self) -> Self::IntoIter { + self.iter() + } +} + +impl<'a> IntoIterator for &'a mut Fields { + type Item = &'a mut Field; + type IntoIter = punctuated::IterMut<'a, Field>; + + fn into_iter(self) -> Self::IntoIter { + self.iter_mut() + } +} + +ast_struct! { + /// A field of a struct or enum variant. + /// + /// *This type is available only if Syn is built with the `"derive"` or `"full"` + /// feature.* + #[cfg_attr(doc_cfg, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct Field { + /// Attributes tagged on the field. + pub attrs: Vec, + + /// Visibility of the field. + pub vis: Visibility, + + /// Name of the field, if any. + /// + /// Fields of tuple structs have no names. + pub ident: Option, + + pub colon_token: Option, + + /// Type of the field. + pub ty: Type, + } +} + +ast_enum_of_structs! { + /// The visibility level of an item: inherited or `pub` or + /// `pub(restricted)`. + /// + /// *This type is available only if Syn is built with the `"derive"` or `"full"` + /// feature.* + /// + /// # Syntax tree enum + /// + /// This type is a [syntax tree enum]. + /// + /// [syntax tree enum]: Expr#syntax-tree-enums + #[cfg_attr(doc_cfg, doc(cfg(any(feature = "full", feature = "derive"))))] + pub enum Visibility { + /// A public visibility level: `pub`. + Public(VisPublic), + + /// A crate-level visibility: `crate`. + Crate(VisCrate), + + /// A visibility level restricted to some path: `pub(self)` or + /// `pub(super)` or `pub(crate)` or `pub(in some::module)`. + Restricted(VisRestricted), + + /// An inherited visibility, which usually means private. + Inherited, + } +} + +ast_struct! { + /// A public visibility level: `pub`. + /// + /// *This type is available only if Syn is built with the `"derive"` or + /// `"full"` feature.* + #[cfg_attr(doc_cfg, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct VisPublic { + pub pub_token: Token![pub], + } +} + +ast_struct! { + /// A crate-level visibility: `crate`. + /// + /// *This type is available only if Syn is built with the `"derive"` or + /// `"full"` feature.* + #[cfg_attr(doc_cfg, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct VisCrate { + pub crate_token: Token![crate], + } +} + +ast_struct! { + /// A visibility level restricted to some path: `pub(self)` or + /// `pub(super)` or `pub(crate)` or `pub(in some::module)`. + /// + /// *This type is available only if Syn is built with the `"derive"` or + /// `"full"` feature.* + #[cfg_attr(doc_cfg, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct VisRestricted { + pub pub_token: Token![pub], + pub paren_token: token::Paren, + pub in_token: Option, + pub path: Box, + } +} + +#[cfg(feature = "parsing")] +pub mod parsing { + use super::*; + use crate::ext::IdentExt; + use crate::parse::discouraged::Speculative; + use crate::parse::{Parse, ParseStream, Result}; + + #[cfg_attr(doc_cfg, doc(cfg(feature = "parsing")))] + impl Parse for Variant { + fn parse(input: ParseStream) -> Result { + let attrs = input.call(Attribute::parse_outer)?; + let _visibility: Visibility = input.parse()?; + let ident: Ident = input.parse()?; + let fields = if input.peek(token::Brace) { + Fields::Named(input.parse()?) + } else if input.peek(token::Paren) { + Fields::Unnamed(input.parse()?) + } else { + Fields::Unit + }; + let discriminant = if input.peek(Token![=]) { + let eq_token: Token![=] = input.parse()?; + let discriminant: Expr = input.parse()?; + Some((eq_token, discriminant)) + } else { + None + }; + Ok(Variant { + attrs, + ident, + fields, + discriminant, + }) + } + } + + #[cfg_attr(doc_cfg, doc(cfg(feature = "parsing")))] + impl Parse for FieldsNamed { + fn parse(input: ParseStream) -> Result { + let content; + Ok(FieldsNamed { + brace_token: braced!(content in input), + named: content.parse_terminated(Field::parse_named)?, + }) + } + } + + #[cfg_attr(doc_cfg, doc(cfg(feature = "parsing")))] + impl Parse for FieldsUnnamed { + fn parse(input: ParseStream) -> Result { + let content; + Ok(FieldsUnnamed { + paren_token: parenthesized!(content in input), + unnamed: content.parse_terminated(Field::parse_unnamed)?, + }) + } + } + + impl Field { + /// Parses a named (braced struct) field. + #[cfg_attr(doc_cfg, doc(cfg(feature = "parsing")))] + pub fn parse_named(input: ParseStream) -> Result { + Ok(Field { + attrs: input.call(Attribute::parse_outer)?, + vis: input.parse()?, + ident: Some(if input.peek(Token![_]) { + input.call(Ident::parse_any) + } else { + input.parse() + }?), + colon_token: Some(input.parse()?), + ty: input.parse()?, + }) + } + + /// Parses an unnamed (tuple struct) field. + #[cfg_attr(doc_cfg, doc(cfg(feature = "parsing")))] + pub fn parse_unnamed(input: ParseStream) -> Result { + Ok(Field { + attrs: input.call(Attribute::parse_outer)?, + vis: input.parse()?, + ident: None, + colon_token: None, + ty: input.parse()?, + }) + } + } + + #[cfg_attr(doc_cfg, doc(cfg(feature = "parsing")))] + impl Parse for Visibility { + fn parse(input: ParseStream) -> Result { + // Recognize an empty None-delimited group, as produced by a $:vis + // matcher that matched no tokens. + if input.peek(token::Group) { + let ahead = input.fork(); + let group = crate::group::parse_group(&ahead)?; + if group.content.is_empty() { + input.advance_to(&ahead); + return Ok(Visibility::Inherited); + } + } + + if input.peek(Token![pub]) { + Self::parse_pub(input) + } else if input.peek(Token![crate]) { + Self::parse_crate(input) + } else { + Ok(Visibility::Inherited) + } + } + } + + impl Visibility { + fn parse_pub(input: ParseStream) -> Result { + let pub_token = input.parse::()?; + + if input.peek(token::Paren) { + let ahead = input.fork(); + + let content; + let paren_token = parenthesized!(content in ahead); + if content.peek(Token![crate]) + || content.peek(Token![self]) + || content.peek(Token![super]) + { + let path = content.call(Ident::parse_any)?; + + // Ensure there are no additional tokens within `content`. + // Without explicitly checking, we may misinterpret a tuple + // field as a restricted visibility, causing a parse error. + // e.g. `pub (crate::A, crate::B)` (Issue #720). + if content.is_empty() { + input.advance_to(&ahead); + return Ok(Visibility::Restricted(VisRestricted { + pub_token, + paren_token, + in_token: None, + path: Box::new(Path::from(path)), + })); + } + } else if content.peek(Token![in]) { + let in_token: Token![in] = content.parse()?; + let path = content.call(Path::parse_mod_style)?; + + input.advance_to(&ahead); + return Ok(Visibility::Restricted(VisRestricted { + pub_token, + paren_token, + in_token: Some(in_token), + path: Box::new(path), + })); + } + } + + Ok(Visibility::Public(VisPublic { pub_token })) + } + + fn parse_crate(input: ParseStream) -> Result { + if input.peek2(Token![::]) { + Ok(Visibility::Inherited) + } else { + Ok(Visibility::Crate(VisCrate { + crate_token: input.parse()?, + })) + } + } + + #[cfg(feature = "full")] + pub(crate) fn is_some(&self) -> bool { + match self { + Visibility::Inherited => false, + _ => true, + } + } + } +} + +#[cfg(feature = "printing")] +mod printing { + use super::*; + use crate::print::TokensOrDefault; + use proc_macro2::TokenStream; + use quote::{ToTokens, TokenStreamExt}; + + #[cfg_attr(doc_cfg, doc(cfg(feature = "printing")))] + impl ToTokens for Variant { + fn to_tokens(&self, tokens: &mut TokenStream) { + tokens.append_all(&self.attrs); + self.ident.to_tokens(tokens); + self.fields.to_tokens(tokens); + if let Some((eq_token, disc)) = &self.discriminant { + eq_token.to_tokens(tokens); + disc.to_tokens(tokens); + } + } + } + + #[cfg_attr(doc_cfg, doc(cfg(feature = "printing")))] + impl ToTokens for FieldsNamed { + fn to_tokens(&self, tokens: &mut TokenStream) { + self.brace_token.surround(tokens, |tokens| { + self.named.to_tokens(tokens); + }); + } + } + + #[cfg_attr(doc_cfg, doc(cfg(feature = "printing")))] + impl ToTokens for FieldsUnnamed { + fn to_tokens(&self, tokens: &mut TokenStream) { + self.paren_token.surround(tokens, |tokens| { + self.unnamed.to_tokens(tokens); + }); + } + } + + #[cfg_attr(doc_cfg, doc(cfg(feature = "printing")))] + impl ToTokens for Field { + fn to_tokens(&self, tokens: &mut TokenStream) { + tokens.append_all(&self.attrs); + self.vis.to_tokens(tokens); + if let Some(ident) = &self.ident { + ident.to_tokens(tokens); + TokensOrDefault(&self.colon_token).to_tokens(tokens); + } + self.ty.to_tokens(tokens); + } + } + + #[cfg_attr(doc_cfg, doc(cfg(feature = "printing")))] + impl ToTokens for VisPublic { + fn to_tokens(&self, tokens: &mut TokenStream) { + self.pub_token.to_tokens(tokens); + } + } + + #[cfg_attr(doc_cfg, doc(cfg(feature = "printing")))] + impl ToTokens for VisCrate { + fn to_tokens(&self, tokens: &mut TokenStream) { + self.crate_token.to_tokens(tokens); + } + } + + #[cfg_attr(doc_cfg, doc(cfg(feature = "printing")))] + impl ToTokens for VisRestricted { + fn to_tokens(&self, tokens: &mut TokenStream) { + self.pub_token.to_tokens(tokens); + self.paren_token.surround(tokens, |tokens| { + // TODO: If we have a path which is not "self" or "super" or + // "crate", automatically add the "in" token. + self.in_token.to_tokens(tokens); + self.path.to_tokens(tokens); + }); + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/derive.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/derive.rs new file mode 100644 index 0000000000000000000000000000000000000000..af9bb91b7a8d523dedaa8559f1e6340ebdf39935 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/derive.rs @@ -0,0 +1,274 @@ +use super::*; +use crate::punctuated::Punctuated; + +ast_struct! { + /// Data structure sent to a `proc_macro_derive` macro. + /// + /// *This type is available only if Syn is built with the `"derive"` feature.* + #[cfg_attr(doc_cfg, doc(cfg(feature = "derive")))] + pub struct DeriveInput { + /// Attributes tagged on the whole struct or enum. + pub attrs: Vec, + + /// Visibility of the struct or enum. + pub vis: Visibility, + + /// Name of the struct or enum. + pub ident: Ident, + + /// Generics required to complete the definition. + pub generics: Generics, + + /// Data within the struct or enum. + pub data: Data, + } +} + +ast_enum_of_structs! { + /// The storage of a struct, enum or union data structure. + /// + /// *This type is available only if Syn is built with the `"derive"` feature.* + /// + /// # Syntax tree enum + /// + /// This type is a [syntax tree enum]. + /// + /// [syntax tree enum]: Expr#syntax-tree-enums + #[cfg_attr(doc_cfg, doc(cfg(feature = "derive")))] + pub enum Data { + /// A struct input to a `proc_macro_derive` macro. + Struct(DataStruct), + + /// An enum input to a `proc_macro_derive` macro. + Enum(DataEnum), + + /// An untagged union input to a `proc_macro_derive` macro. + Union(DataUnion), + } + + do_not_generate_to_tokens +} + +ast_struct! { + /// A struct input to a `proc_macro_derive` macro. + /// + /// *This type is available only if Syn is built with the `"derive"` + /// feature.* + #[cfg_attr(doc_cfg, doc(cfg(feature = "derive")))] + pub struct DataStruct { + pub struct_token: Token![struct], + pub fields: Fields, + pub semi_token: Option, + } +} + +ast_struct! { + /// An enum input to a `proc_macro_derive` macro. + /// + /// *This type is available only if Syn is built with the `"derive"` + /// feature.* + #[cfg_attr(doc_cfg, doc(cfg(feature = "derive")))] + pub struct DataEnum { + pub enum_token: Token![enum], + pub brace_token: token::Brace, + pub variants: Punctuated, + } +} + +ast_struct! { + /// An untagged union input to a `proc_macro_derive` macro. + /// + /// *This type is available only if Syn is built with the `"derive"` + /// feature.* + #[cfg_attr(doc_cfg, doc(cfg(feature = "derive")))] + pub struct DataUnion { + pub union_token: Token![union], + pub fields: FieldsNamed, + } +} + +#[cfg(feature = "parsing")] +pub mod parsing { + use super::*; + use crate::parse::{Parse, ParseStream, Result}; + + #[cfg_attr(doc_cfg, doc(cfg(feature = "parsing")))] + impl Parse for DeriveInput { + fn parse(input: ParseStream) -> Result { + let attrs = input.call(Attribute::parse_outer)?; + let vis = input.parse::()?; + + let lookahead = input.lookahead1(); + if lookahead.peek(Token![struct]) { + let struct_token = input.parse::()?; + let ident = input.parse::()?; + let generics = input.parse::()?; + let (where_clause, fields, semi) = data_struct(input)?; + Ok(DeriveInput { + attrs, + vis, + ident, + generics: Generics { + where_clause, + ..generics + }, + data: Data::Struct(DataStruct { + struct_token, + fields, + semi_token: semi, + }), + }) + } else if lookahead.peek(Token![enum]) { + let enum_token = input.parse::()?; + let ident = input.parse::()?; + let generics = input.parse::()?; + let (where_clause, brace, variants) = data_enum(input)?; + Ok(DeriveInput { + attrs, + vis, + ident, + generics: Generics { + where_clause, + ..generics + }, + data: Data::Enum(DataEnum { + enum_token, + brace_token: brace, + variants, + }), + }) + } else if lookahead.peek(Token![union]) { + let union_token = input.parse::()?; + let ident = input.parse::()?; + let generics = input.parse::()?; + let (where_clause, fields) = data_union(input)?; + Ok(DeriveInput { + attrs, + vis, + ident, + generics: Generics { + where_clause, + ..generics + }, + data: Data::Union(DataUnion { + union_token, + fields, + }), + }) + } else { + Err(lookahead.error()) + } + } + } + + pub fn data_struct( + input: ParseStream, + ) -> Result<(Option, Fields, Option)> { + let mut lookahead = input.lookahead1(); + let mut where_clause = None; + if lookahead.peek(Token![where]) { + where_clause = Some(input.parse()?); + lookahead = input.lookahead1(); + } + + if where_clause.is_none() && lookahead.peek(token::Paren) { + let fields = input.parse()?; + + lookahead = input.lookahead1(); + if lookahead.peek(Token![where]) { + where_clause = Some(input.parse()?); + lookahead = input.lookahead1(); + } + + if lookahead.peek(Token![;]) { + let semi = input.parse()?; + Ok((where_clause, Fields::Unnamed(fields), Some(semi))) + } else { + Err(lookahead.error()) + } + } else if lookahead.peek(token::Brace) { + let fields = input.parse()?; + Ok((where_clause, Fields::Named(fields), None)) + } else if lookahead.peek(Token![;]) { + let semi = input.parse()?; + Ok((where_clause, Fields::Unit, Some(semi))) + } else { + Err(lookahead.error()) + } + } + + pub fn data_enum( + input: ParseStream, + ) -> Result<( + Option, + token::Brace, + Punctuated, + )> { + let where_clause = input.parse()?; + + let content; + let brace = braced!(content in input); + let variants = content.parse_terminated(Variant::parse)?; + + Ok((where_clause, brace, variants)) + } + + pub fn data_union(input: ParseStream) -> Result<(Option, FieldsNamed)> { + let where_clause = input.parse()?; + let fields = input.parse()?; + Ok((where_clause, fields)) + } +} + +#[cfg(feature = "printing")] +mod printing { + use super::*; + use crate::attr::FilterAttrs; + use crate::print::TokensOrDefault; + use proc_macro2::TokenStream; + use quote::ToTokens; + + #[cfg_attr(doc_cfg, doc(cfg(feature = "printing")))] + impl ToTokens for DeriveInput { + fn to_tokens(&self, tokens: &mut TokenStream) { + for attr in self.attrs.outer() { + attr.to_tokens(tokens); + } + self.vis.to_tokens(tokens); + match &self.data { + Data::Struct(d) => d.struct_token.to_tokens(tokens), + Data::Enum(d) => d.enum_token.to_tokens(tokens), + Data::Union(d) => d.union_token.to_tokens(tokens), + } + self.ident.to_tokens(tokens); + self.generics.to_tokens(tokens); + match &self.data { + Data::Struct(data) => match &data.fields { + Fields::Named(fields) => { + self.generics.where_clause.to_tokens(tokens); + fields.to_tokens(tokens); + } + Fields::Unnamed(fields) => { + fields.to_tokens(tokens); + self.generics.where_clause.to_tokens(tokens); + TokensOrDefault(&data.semi_token).to_tokens(tokens); + } + Fields::Unit => { + self.generics.where_clause.to_tokens(tokens); + TokensOrDefault(&data.semi_token).to_tokens(tokens); + } + }, + Data::Enum(data) => { + self.generics.where_clause.to_tokens(tokens); + data.brace_token.surround(tokens, |tokens| { + data.variants.to_tokens(tokens); + }); + } + Data::Union(data) => { + self.generics.where_clause.to_tokens(tokens); + data.fields.to_tokens(tokens); + } + } + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/discouraged.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/discouraged.rs new file mode 100644 index 0000000000000000000000000000000000000000..a46129b6a159b56b53d21b93368cd53016cd98d3 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/discouraged.rs @@ -0,0 +1,194 @@ +//! Extensions to the parsing API with niche applicability. + +use super::*; + +/// Extensions to the `ParseStream` API to support speculative parsing. +pub trait Speculative { + /// Advance this parse stream to the position of a forked parse stream. + /// + /// This is the opposite operation to [`ParseStream::fork`]. You can fork a + /// parse stream, perform some speculative parsing, then join the original + /// stream to the fork to "commit" the parsing from the fork to the main + /// stream. + /// + /// If you can avoid doing this, you should, as it limits the ability to + /// generate useful errors. That said, it is often the only way to parse + /// syntax of the form `A* B*` for arbitrary syntax `A` and `B`. The problem + /// is that when the fork fails to parse an `A`, it's impossible to tell + /// whether that was because of a syntax error and the user meant to provide + /// an `A`, or that the `A`s are finished and it's time to start parsing + /// `B`s. Use with care. + /// + /// Also note that if `A` is a subset of `B`, `A* B*` can be parsed by + /// parsing `B*` and removing the leading members of `A` from the + /// repetition, bypassing the need to involve the downsides associated with + /// speculative parsing. + /// + /// [`ParseStream::fork`]: ParseBuffer::fork + /// + /// # Example + /// + /// There has been chatter about the possibility of making the colons in the + /// turbofish syntax like `path::to::` no longer required by accepting + /// `path::to` in expression position. Specifically, according to [RFC + /// 2544], [`PathSegment`] parsing should always try to consume a following + /// `<` token as the start of generic arguments, and reset to the `<` if + /// that fails (e.g. the token is acting as a less-than operator). + /// + /// This is the exact kind of parsing behavior which requires the "fork, + /// try, commit" behavior that [`ParseStream::fork`] discourages. With + /// `advance_to`, we can avoid having to parse the speculatively parsed + /// content a second time. + /// + /// This change in behavior can be implemented in syn by replacing just the + /// `Parse` implementation for `PathSegment`: + /// + /// ``` + /// # use syn::ext::IdentExt; + /// use syn::parse::discouraged::Speculative; + /// # use syn::parse::{Parse, ParseStream}; + /// # use syn::{Ident, PathArguments, Result, Token}; + /// + /// pub struct PathSegment { + /// pub ident: Ident, + /// pub arguments: PathArguments, + /// } + /// # + /// # impl From for PathSegment + /// # where + /// # T: Into, + /// # { + /// # fn from(ident: T) -> Self { + /// # PathSegment { + /// # ident: ident.into(), + /// # arguments: PathArguments::None, + /// # } + /// # } + /// # } + /// + /// impl Parse for PathSegment { + /// fn parse(input: ParseStream) -> Result { + /// if input.peek(Token![super]) + /// || input.peek(Token![self]) + /// || input.peek(Token![Self]) + /// || input.peek(Token![crate]) + /// { + /// let ident = input.call(Ident::parse_any)?; + /// return Ok(PathSegment::from(ident)); + /// } + /// + /// let ident = input.parse()?; + /// if input.peek(Token![::]) && input.peek3(Token![<]) { + /// return Ok(PathSegment { + /// ident, + /// arguments: PathArguments::AngleBracketed(input.parse()?), + /// }); + /// } + /// if input.peek(Token![<]) && !input.peek(Token![<=]) { + /// let fork = input.fork(); + /// if let Ok(arguments) = fork.parse() { + /// input.advance_to(&fork); + /// return Ok(PathSegment { + /// ident, + /// arguments: PathArguments::AngleBracketed(arguments), + /// }); + /// } + /// } + /// Ok(PathSegment::from(ident)) + /// } + /// } + /// + /// # syn::parse_str::("a").unwrap(); + /// ``` + /// + /// # Drawbacks + /// + /// The main drawback of this style of speculative parsing is in error + /// presentation. Even if the lookahead is the "correct" parse, the error + /// that is shown is that of the "fallback" parse. To use the same example + /// as the turbofish above, take the following unfinished "turbofish": + /// + /// ```text + /// let _ = f<&'a fn(), for<'a> serde::>(); + /// ``` + /// + /// If this is parsed as generic arguments, we can provide the error message + /// + /// ```text + /// error: expected identifier + /// --> src.rs:L:C + /// | + /// L | let _ = f<&'a fn(), for<'a> serde::>(); + /// | ^ + /// ``` + /// + /// but if parsed using the above speculative parsing, it falls back to + /// assuming that the `<` is a less-than when it fails to parse the generic + /// arguments, and tries to interpret the `&'a` as the start of a labelled + /// loop, resulting in the much less helpful error + /// + /// ```text + /// error: expected `:` + /// --> src.rs:L:C + /// | + /// L | let _ = f<&'a fn(), for<'a> serde::>(); + /// | ^^ + /// ``` + /// + /// This can be mitigated with various heuristics (two examples: show both + /// forks' parse errors, or show the one that consumed more tokens), but + /// when you can control the grammar, sticking to something that can be + /// parsed LL(3) and without the LL(*) speculative parsing this makes + /// possible, displaying reasonable errors becomes much more simple. + /// + /// [RFC 2544]: https://github.com/rust-lang/rfcs/pull/2544 + /// [`PathSegment`]: crate::PathSegment + /// + /// # Performance + /// + /// This method performs a cheap fixed amount of work that does not depend + /// on how far apart the two streams are positioned. + /// + /// # Panics + /// + /// The forked stream in the argument of `advance_to` must have been + /// obtained by forking `self`. Attempting to advance to any other stream + /// will cause a panic. + fn advance_to(&self, fork: &Self); +} + +impl<'a> Speculative for ParseBuffer<'a> { + fn advance_to(&self, fork: &Self) { + if !crate::buffer::same_scope(self.cursor(), fork.cursor()) { + panic!("Fork was not derived from the advancing parse stream"); + } + + let (self_unexp, self_sp) = inner_unexpected(self); + let (fork_unexp, fork_sp) = inner_unexpected(fork); + if !Rc::ptr_eq(&self_unexp, &fork_unexp) { + match (fork_sp, self_sp) { + // Unexpected set on the fork, but not on `self`, copy it over. + (Some(span), None) => { + self_unexp.set(Unexpected::Some(span)); + } + // Unexpected unset. Use chain to propagate errors from fork. + (None, None) => { + fork_unexp.set(Unexpected::Chain(self_unexp)); + + // Ensure toplevel 'unexpected' tokens from the fork don't + // bubble up the chain by replacing the root `unexpected` + // pointer, only 'unexpected' tokens from existing group + // parsers should bubble. + fork.unexpected + .set(Some(Rc::new(Cell::new(Unexpected::None)))); + } + // Unexpected has been set on `self`. No changes needed. + (_, Some(_)) => {} + } + } + + // See comment on `cell` in the struct definition. + self.cell + .set(unsafe { mem::transmute::>(fork.cursor()) }); + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/drops.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/drops.rs new file mode 100644 index 0000000000000000000000000000000000000000..89b42d82ef1f824fd670b78f43af401597d02252 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/drops.rs @@ -0,0 +1,58 @@ +use std::iter; +use std::mem::ManuallyDrop; +use std::ops::{Deref, DerefMut}; +use std::option; +use std::slice; + +#[repr(transparent)] +pub(crate) struct NoDrop(ManuallyDrop); + +impl NoDrop { + pub(crate) fn new(value: T) -> Self + where + T: TrivialDrop, + { + NoDrop(ManuallyDrop::new(value)) + } +} + +impl Deref for NoDrop { + type Target = T; + fn deref(&self) -> &Self::Target { + &self.0 + } +} + +impl DerefMut for NoDrop { + fn deref_mut(&mut self) -> &mut Self::Target { + &mut self.0 + } +} + +pub(crate) trait TrivialDrop {} + +impl TrivialDrop for iter::Empty {} +impl<'a, T> TrivialDrop for slice::Iter<'a, T> {} +impl<'a, T> TrivialDrop for slice::IterMut<'a, T> {} +impl<'a, T> TrivialDrop for option::IntoIter<&'a T> {} +impl<'a, T> TrivialDrop for option::IntoIter<&'a mut T> {} + +#[test] +fn test_needs_drop() { + use std::mem::needs_drop; + + struct NeedsDrop; + + impl Drop for NeedsDrop { + fn drop(&mut self) {} + } + + assert!(needs_drop::()); + + // Test each of the types with a handwritten TrivialDrop impl above. + assert!(!needs_drop::>()); + assert!(!needs_drop::>()); + assert!(!needs_drop::>()); + assert!(!needs_drop::>()); + assert!(!needs_drop::>()); +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/error.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/error.rs new file mode 100644 index 0000000000000000000000000000000000000000..e301367d5e4eb43c13649a8700e6edd8cabf4f0f --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/error.rs @@ -0,0 +1,428 @@ +#[cfg(feature = "parsing")] +use crate::buffer::Cursor; +use crate::thread::ThreadBound; +use proc_macro2::{ + Delimiter, Group, Ident, LexError, Literal, Punct, Spacing, Span, TokenStream, TokenTree, +}; +#[cfg(feature = "printing")] +use quote::ToTokens; +use std::fmt::{self, Debug, Display}; +use std::iter::FromIterator; +use std::slice; +use std::vec; + +/// The result of a Syn parser. +pub type Result = std::result::Result; + +/// Error returned when a Syn parser cannot parse the input tokens. +/// +/// # Error reporting in proc macros +/// +/// The correct way to report errors back to the compiler from a procedural +/// macro is by emitting an appropriately spanned invocation of +/// [`compile_error!`] in the generated code. This produces a better diagnostic +/// message than simply panicking the macro. +/// +/// [`compile_error!`]: std::compile_error! +/// +/// When parsing macro input, the [`parse_macro_input!`] macro handles the +/// conversion to `compile_error!` automatically. +/// +/// [`parse_macro_input!`]: crate::parse_macro_input! +/// +/// ``` +/// # extern crate proc_macro; +/// # +/// use proc_macro::TokenStream; +/// use syn::{parse_macro_input, AttributeArgs, ItemFn}; +/// +/// # const IGNORE: &str = stringify! { +/// #[proc_macro_attribute] +/// # }; +/// pub fn my_attr(args: TokenStream, input: TokenStream) -> TokenStream { +/// let args = parse_macro_input!(args as AttributeArgs); +/// let input = parse_macro_input!(input as ItemFn); +/// +/// /* ... */ +/// # TokenStream::new() +/// } +/// ``` +/// +/// For errors that arise later than the initial parsing stage, the +/// [`.to_compile_error()`] or [`.into_compile_error()`] methods can be used to +/// perform an explicit conversion to `compile_error!`. +/// +/// [`.to_compile_error()`]: Error::to_compile_error +/// [`.into_compile_error()`]: Error::into_compile_error +/// +/// ``` +/// # extern crate proc_macro; +/// # +/// # use proc_macro::TokenStream; +/// # use syn::{parse_macro_input, DeriveInput}; +/// # +/// # const IGNORE: &str = stringify! { +/// #[proc_macro_derive(MyDerive)] +/// # }; +/// pub fn my_derive(input: TokenStream) -> TokenStream { +/// let input = parse_macro_input!(input as DeriveInput); +/// +/// // fn(DeriveInput) -> syn::Result +/// expand::my_derive(input) +/// .unwrap_or_else(syn::Error::into_compile_error) +/// .into() +/// } +/// # +/// # mod expand { +/// # use proc_macro2::TokenStream; +/// # use syn::{DeriveInput, Result}; +/// # +/// # pub fn my_derive(input: DeriveInput) -> Result { +/// # unimplemented!() +/// # } +/// # } +/// ``` +pub struct Error { + messages: Vec, +} + +struct ErrorMessage { + // Span is implemented as an index into a thread-local interner to keep the + // size small. It is not safe to access from a different thread. We want + // errors to be Send and Sync to play nicely with the Failure crate, so pin + // the span we're given to its original thread and assume it is + // Span::call_site if accessed from any other thread. + start_span: ThreadBound, + end_span: ThreadBound, + message: String, +} + +#[cfg(test)] +struct _Test +where + Error: Send + Sync; + +impl Error { + /// Usually the [`ParseStream::error`] method will be used instead, which + /// automatically uses the correct span from the current position of the + /// parse stream. + /// + /// Use `Error::new` when the error needs to be triggered on some span other + /// than where the parse stream is currently positioned. + /// + /// [`ParseStream::error`]: crate::parse::ParseBuffer::error + /// + /// # Example + /// + /// ``` + /// use syn::{Error, Ident, LitStr, Result, Token}; + /// use syn::parse::ParseStream; + /// + /// // Parses input that looks like `name = "string"` where the key must be + /// // the identifier `name` and the value may be any string literal. + /// // Returns the string literal. + /// fn parse_name(input: ParseStream) -> Result { + /// let name_token: Ident = input.parse()?; + /// if name_token != "name" { + /// // Trigger an error not on the current position of the stream, + /// // but on the position of the unexpected identifier. + /// return Err(Error::new(name_token.span(), "expected `name`")); + /// } + /// input.parse::()?; + /// let s: LitStr = input.parse()?; + /// Ok(s) + /// } + /// ``` + pub fn new(span: Span, message: T) -> Self { + return new(span, message.to_string()); + + fn new(span: Span, message: String) -> Error { + Error { + messages: vec![ErrorMessage { + start_span: ThreadBound::new(span), + end_span: ThreadBound::new(span), + message, + }], + } + } + } + + /// Creates an error with the specified message spanning the given syntax + /// tree node. + /// + /// Unlike the `Error::new` constructor, this constructor takes an argument + /// `tokens` which is a syntax tree node. This allows the resulting `Error` + /// to attempt to span all tokens inside of `tokens`. While you would + /// typically be able to use the `Spanned` trait with the above `Error::new` + /// constructor, implementation limitations today mean that + /// `Error::new_spanned` may provide a higher-quality error message on + /// stable Rust. + /// + /// When in doubt it's recommended to stick to `Error::new` (or + /// `ParseStream::error`)! + #[cfg(feature = "printing")] + pub fn new_spanned(tokens: T, message: U) -> Self { + return new_spanned(tokens.into_token_stream(), message.to_string()); + + fn new_spanned(tokens: TokenStream, message: String) -> Error { + let mut iter = tokens.into_iter(); + let start = iter.next().map_or_else(Span::call_site, |t| t.span()); + let end = iter.last().map_or(start, |t| t.span()); + Error { + messages: vec![ErrorMessage { + start_span: ThreadBound::new(start), + end_span: ThreadBound::new(end), + message, + }], + } + } + } + + /// The source location of the error. + /// + /// Spans are not thread-safe so this function returns `Span::call_site()` + /// if called from a different thread than the one on which the `Error` was + /// originally created. + pub fn span(&self) -> Span { + let start = match self.messages[0].start_span.get() { + Some(span) => *span, + None => return Span::call_site(), + }; + let end = match self.messages[0].end_span.get() { + Some(span) => *span, + None => return Span::call_site(), + }; + start.join(end).unwrap_or(start) + } + + /// Render the error as an invocation of [`compile_error!`]. + /// + /// The [`parse_macro_input!`] macro provides a convenient way to invoke + /// this method correctly in a procedural macro. + /// + /// [`compile_error!`]: std::compile_error! + /// [`parse_macro_input!`]: crate::parse_macro_input! + pub fn to_compile_error(&self) -> TokenStream { + self.messages + .iter() + .map(ErrorMessage::to_compile_error) + .collect() + } + + /// Render the error as an invocation of [`compile_error!`]. + /// + /// [`compile_error!`]: std::compile_error! + /// + /// # Example + /// + /// ``` + /// # extern crate proc_macro; + /// # + /// use proc_macro::TokenStream; + /// use syn::{parse_macro_input, DeriveInput, Error}; + /// + /// # const _: &str = stringify! { + /// #[proc_macro_derive(MyTrait)] + /// # }; + /// pub fn derive_my_trait(input: TokenStream) -> TokenStream { + /// let input = parse_macro_input!(input as DeriveInput); + /// my_trait::expand(input) + /// .unwrap_or_else(Error::into_compile_error) + /// .into() + /// } + /// + /// mod my_trait { + /// use proc_macro2::TokenStream; + /// use syn::{DeriveInput, Result}; + /// + /// pub(crate) fn expand(input: DeriveInput) -> Result { + /// /* ... */ + /// # unimplemented!() + /// } + /// } + /// ``` + pub fn into_compile_error(self) -> TokenStream { + self.to_compile_error() + } + + /// Add another error message to self such that when `to_compile_error()` is + /// called, both errors will be emitted together. + pub fn combine(&mut self, another: Error) { + self.messages.extend(another.messages); + } +} + +impl ErrorMessage { + fn to_compile_error(&self) -> TokenStream { + let start = self + .start_span + .get() + .cloned() + .unwrap_or_else(Span::call_site); + let end = self.end_span.get().cloned().unwrap_or_else(Span::call_site); + + // compile_error!($message) + TokenStream::from_iter(vec![ + TokenTree::Ident(Ident::new("compile_error", start)), + TokenTree::Punct({ + let mut punct = Punct::new('!', Spacing::Alone); + punct.set_span(start); + punct + }), + TokenTree::Group({ + let mut group = Group::new(Delimiter::Brace, { + TokenStream::from_iter(vec![TokenTree::Literal({ + let mut string = Literal::string(&self.message); + string.set_span(end); + string + })]) + }); + group.set_span(end); + group + }), + ]) + } +} + +#[cfg(feature = "parsing")] +pub fn new_at(scope: Span, cursor: Cursor, message: T) -> Error { + if cursor.eof() { + Error::new(scope, format!("unexpected end of input, {}", message)) + } else { + let span = crate::buffer::open_span_of_group(cursor); + Error::new(span, message) + } +} + +#[cfg(all(feature = "parsing", any(feature = "full", feature = "derive")))] +pub fn new2(start: Span, end: Span, message: T) -> Error { + return new2(start, end, message.to_string()); + + fn new2(start: Span, end: Span, message: String) -> Error { + Error { + messages: vec![ErrorMessage { + start_span: ThreadBound::new(start), + end_span: ThreadBound::new(end), + message, + }], + } + } +} + +impl Debug for Error { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + if self.messages.len() == 1 { + formatter + .debug_tuple("Error") + .field(&self.messages[0]) + .finish() + } else { + formatter + .debug_tuple("Error") + .field(&self.messages) + .finish() + } + } +} + +impl Debug for ErrorMessage { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + Debug::fmt(&self.message, formatter) + } +} + +impl Display for Error { + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + formatter.write_str(&self.messages[0].message) + } +} + +impl Clone for Error { + fn clone(&self) -> Self { + Error { + messages: self.messages.clone(), + } + } +} + +impl Clone for ErrorMessage { + fn clone(&self) -> Self { + let start = self + .start_span + .get() + .cloned() + .unwrap_or_else(Span::call_site); + let end = self.end_span.get().cloned().unwrap_or_else(Span::call_site); + ErrorMessage { + start_span: ThreadBound::new(start), + end_span: ThreadBound::new(end), + message: self.message.clone(), + } + } +} + +impl std::error::Error for Error {} + +impl From for Error { + fn from(err: LexError) -> Self { + Error::new(err.span(), "lex error") + } +} + +impl IntoIterator for Error { + type Item = Error; + type IntoIter = IntoIter; + + fn into_iter(self) -> Self::IntoIter { + IntoIter { + messages: self.messages.into_iter(), + } + } +} + +pub struct IntoIter { + messages: vec::IntoIter, +} + +impl Iterator for IntoIter { + type Item = Error; + + fn next(&mut self) -> Option { + Some(Error { + messages: vec![self.messages.next()?], + }) + } +} + +impl<'a> IntoIterator for &'a Error { + type Item = Error; + type IntoIter = Iter<'a>; + + fn into_iter(self) -> Self::IntoIter { + Iter { + messages: self.messages.iter(), + } + } +} + +pub struct Iter<'a> { + messages: slice::Iter<'a, ErrorMessage>, +} + +impl<'a> Iterator for Iter<'a> { + type Item = Error; + + fn next(&mut self) -> Option { + Some(Error { + messages: vec![self.messages.next()?.clone()], + }) + } +} + +impl Extend for Error { + fn extend>(&mut self, iter: T) { + for err in iter { + self.combine(err); + } + } +} diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/export.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/export.rs new file mode 100644 index 0000000000000000000000000000000000000000..f478d091ea12090f3f8078d287a23619bbe7e485 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/export.rs @@ -0,0 +1,39 @@ +pub use std::clone::Clone; +pub use std::cmp::{Eq, PartialEq}; +pub use std::default::Default; +pub use std::fmt::{self, Debug, Formatter}; +pub use std::hash::{Hash, Hasher}; +pub use std::marker::Copy; +pub use std::option::Option::{None, Some}; +pub use std::result::Result::{Err, Ok}; + +#[cfg(feature = "printing")] +pub extern crate quote; + +pub use proc_macro2::{Span, TokenStream as TokenStream2}; + +#[cfg(feature = "parsing")] +pub use crate::group::{parse_braces, parse_brackets, parse_parens}; + +pub use crate::span::IntoSpans; + +#[cfg(all( + not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "wasi"))), + feature = "proc-macro" +))] +pub use proc_macro::TokenStream; + +#[cfg(feature = "printing")] +pub use quote::{ToTokens, TokenStreamExt}; + +#[allow(non_camel_case_types)] +pub type bool = help::Bool; +#[allow(non_camel_case_types)] +pub type str = help::Str; + +mod help { + pub type Bool = bool; + pub type Str = str; +} + +pub struct private(pub(crate) ()); diff --git a/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/expr.rs b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/expr.rs new file mode 100644 index 0000000000000000000000000000000000000000..93a59b0e20d77e391e1cc4b6619c74d829824998 --- /dev/null +++ b/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-1.0.109/src/expr.rs @@ -0,0 +1,3558 @@ +use super::*; +use crate::punctuated::Punctuated; +#[cfg(feature = "full")] +use crate::reserved::Reserved; +use proc_macro2::{Span, TokenStream}; +#[cfg(feature = "printing")] +use quote::IdentFragment; +#[cfg(feature = "printing")] +use std::fmt::{self, Display}; +use std::hash::{Hash, Hasher}; +#[cfg(feature = "parsing")] +use std::mem; + +ast_enum_of_structs! { + /// A Rust expression. + /// + /// *This type is available only if Syn is built with the `"derive"` or `"full"` + /// feature, but most of the variants are not available unless "full" is enabled.* + /// + /// # Syntax tree enums + /// + /// This type is a syntax tree enum. In Syn this and other syntax tree enums + /// are designed to be traversed using the following rebinding idiom. + /// + /// ``` + /// # use syn::Expr; + /// # + /// # fn example(expr: Expr) { + /// # const IGNORE: &str = stringify! { + /// let expr: Expr = /* ... */; + /// # }; + /// match expr { + /// Expr::MethodCall(expr) => { + /// /* ... */ + /// } + /// Expr::Cast(expr) => { + /// /* ... */ + /// } + /// Expr::If(expr) => { + /// /* ... */ + /// } + /// + /// /* ... */ + /// # _ => {} + /// # } + /// # } + /// ``` + /// + /// We begin with a variable `expr` of type `Expr` that has no fields + /// (because it is an enum), and by matching on it and rebinding a variable + /// with the same name `expr` we effectively imbue our variable with all of + /// the data fields provided by the variant that it turned out to be. So for + /// example above if we ended up in the `MethodCall` case then we get to use + /// `expr.receiver`, `expr.args` etc; if we ended up in the `If` case we get + /// to use `expr.cond`, `expr.then_branch`, `expr.else_branch`. + /// + /// This approach avoids repeating the variant names twice on every line. + /// + /// ``` + /// # use syn::{Expr, ExprMethodCall}; + /// # + /// # fn example(expr: Expr) { + /// // Repetitive; recommend not doing this. + /// match expr { + /// Expr::MethodCall(ExprMethodCall { method, args, .. }) => { + /// # } + /// # _ => {} + /// # } + /// # } + /// ``` + /// + /// In general, the name to which a syntax tree enum variant is bound should + /// be a suitable name for the complete syntax tree enum type. + /// + /// ``` + /// # use syn::{Expr, ExprField}; + /// # + /// # fn example(discriminant: ExprField) { + /// // Binding is called `base` which is the name I would use if I were + /// // assigning `*discriminant.base` without an `if let`. + /// if let Expr::Tuple(base) = *discriminant.base { + /// # } + /// # } + /// ``` + /// + /// A sign that you may not be choosing the right variable names is if you + /// see names getting repeated in your code, like accessing + /// `receiver.receiver` or `pat.pat` or `cond.cond`. + #[cfg_attr(doc_cfg, doc(cfg(any(feature = "full", feature = "derive"))))] + #[cfg_attr(not(syn_no_non_exhaustive), non_exhaustive)] + pub enum Expr { + /// A slice literal expression: `[a, b, c, d]`. + Array(ExprArray), + + /// An assignment expression: `a = compute()`. + Assign(ExprAssign), + + /// A compound assignment expression: `counter += 1`. + AssignOp(ExprAssignOp), + + /// An async block: `async { ... }`. + Async(ExprAsync), + + /// An await expression: `fut.await`. + Await(ExprAwait), + + /// A binary operation: `a + b`, `a * b`. + Binary(ExprBinary), + + /// A blocked scope: `{ ... }`. + Block(ExprBlock), + + /// A box expression: `box f`. + Box(ExprBox), + + /// A `break`, with an optional label to break and an optional + /// expression. + Break(ExprBreak), + + /// A function call expression: `invoke(a, b)`. + Call(ExprCall), + + /// A cast expression: `foo as f64`. + Cast(ExprCast), + + /// A closure expression: `|a, b| a + b`. + Closure(ExprClosure), + + /// A `continue`, with an optional label. + Continue(ExprContinue), + + /// Access of a named struct field (`obj.k`) or unnamed tuple struct + /// field (`obj.0`). + Field(ExprField), + + /// A for loop: `for pat in expr { ... }`. + ForLoop(ExprForLoop), + + /// An expression contained within invisible delimiters. + /// + /// This variant is important for faithfully representing the precedence + /// of expressions and is related to `None`-delimited spans in a + /// `TokenStream`. + Group(ExprGroup), + + /// An `if` expression with an optional `else` block: `if expr { ... } + /// else { ... }`. + /// + /// The `else` branch expression may only be an `If` or `Block` + /// expression, not any of the other types of expression. + If(ExprIf), + + /// A square bracketed indexing expression: `vector[2]`. + Index(ExprIndex), + + /// A `let` guard: `let Some(x) = opt`. + Let(ExprLet), + + /// A literal in place of an expression: `1`, `"foo"`. + Lit(ExprLit), + + /// Conditionless loop: `loop { ... }`. + Loop(ExprLoop), + + /// A macro invocation expression: `format!("{}", q)`. + Macro(ExprMacro), + + /// A `match` expression: `match n { Some(n) => {}, None => {} }`. + Match(ExprMatch), + + /// A method call expression: `x.foo::(a, b)`. + MethodCall(ExprMethodCall), + + /// A parenthesized expression: `(a + b)`. + Paren(ExprParen), + + /// A path like `std::mem::replace` possibly containing generic + /// parameters and a qualified self-type. + /// + /// A plain identifier like `x` is a path of length 1. + Path(ExprPath), + + /// A range expression: `1..2`, `1..`, `..2`, `1..=2`, `..=2`. + Range(ExprRange), + + /// A referencing operation: `&a` or `&mut a`. + Reference(ExprReference), + + /// An array literal constructed from one repeated element: `[0u8; N]`. + Repeat(ExprRepeat), + + /// A `return`, with an optional value to be returned. + Return(ExprReturn), + + /// A struct literal expression: `Point { x: 1, y: 1 }`. + /// + /// The `rest` provides the value of the remaining fields as in `S { a: + /// 1, b: 1, ..rest }`. + Struct(ExprStruct), + + /// A try-expression: `expr?`. + Try(ExprTry), + + /// A try block: `try { ... }`. + TryBlock(ExprTryBlock), + + /// A tuple expression: `(a, b, c, d)`. + Tuple(ExprTuple), + + /// A type ascription expression: `foo: f64`. + Type(ExprType), + + /// A unary operation: `!x`, `*x`. + Unary(ExprUnary), + + /// An unsafe block: `unsafe { ... }`. + Unsafe(ExprUnsafe), + + /// Tokens in expression position not interpreted by Syn. + Verbatim(TokenStream), + + /// A while loop: `while expr { ... }`. + While(ExprWhile), + + /// A yield expression: `yield expr`. + Yield(ExprYield), + + // Not public API. + // + // For testing exhaustiveness in downstream code, use the following idiom: + // + // match expr { + // Expr::Array(expr) => {...} + // Expr::Assign(expr) => {...} + // ... + // Expr::Yield(expr) => {...} + // + // #[cfg_attr(test, deny(non_exhaustive_omitted_patterns))] + // _ => { /* some sane fallback */ } + // } + // + // This way we fail your tests but don't break your library when adding + // a variant. You will be notified by a test failure when a variant is + // added, so that you can add code to handle it, but your library will + // continue to compile and work for downstream users in the interim. + #[cfg(syn_no_non_exhaustive)] + #[doc(hidden)] + __NonExhaustive, + } +} + +ast_struct! { + /// A slice literal expression: `[a, b, c, d]`. + /// + /// *This type is available only if Syn is built with the `"full"` feature.* + #[cfg_attr(doc_cfg, doc(cfg(feature = "full")))] + pub struct ExprArray #full { + pub attrs: Vec, + pub bracket_token: token::Bracket, + pub elems: Punctuated, + } +} + +ast_struct! { + /// An assignment expression: `a = compute()`. + /// + /// *This type is available only if Syn is built with the `"full"` feature.* + #[cfg_attr(doc_cfg, doc(cfg(feature = "full")))] + pub struct ExprAssign #full { + pub attrs: Vec, + pub left: Box, + pub eq_token: Token![=], + pub right: Box, + } +} + +ast_struct! { + /// A compound assignment expression: `counter += 1`. + /// + /// *This type is available only if Syn is built with the `"full"` feature.* + #[cfg_attr(doc_cfg, doc(cfg(feature = "full")))] + pub struct ExprAssignOp #full { + pub attrs: Vec, + pub left: Box, + pub op: BinOp, + pub right: Box, + } +} + +ast_struct! { + /// An async block: `async { ... }`. + /// + /// *This type is available only if Syn is built with the `"full"` feature.* + #[cfg_attr(doc_cfg, doc(cfg(feature = "full")))] + pub struct ExprAsync #full { + pub attrs: Vec, + pub async_token: Token![async], + pub capture: Option, + pub block: Block, + } +} + +ast_struct! { + /// An await expression: `fut.await`. + /// + /// *This type is available only if Syn is built with the `"full"` feature.* + #[cfg_attr(doc_cfg, doc(cfg(feature = "full")))] + pub struct ExprAwait #full { + pub attrs: Vec, + pub base: Box, + pub dot_token: Token![.], + pub await_token: token::Await, + } +} + +ast_struct! { + /// A binary operation: `a + b`, `a * b`. + /// + /// *This type is available only if Syn is built with the `"derive"` or + /// `"full"` feature.* + #[cfg_attr(doc_cfg, doc(cfg(any(feature = "full", feature = "derive"))))] + pub struct ExprBinary { + pub attrs: Vec, + pub left: Box, + pub op: BinOp, + pub right: Box, + } +} + +ast_struct! { + /// A blocked scope: `{ ... }`. + /// + /// *This type is available only if Syn is built with the `"full"` feature.* + #[cfg_attr(doc_cfg, doc(cfg(feature = "full")))] + pub struct ExprBlock #full { + pub attrs: Vec, + pub label: Option